query
stringlengths
7
5.25k
document
stringlengths
15
1.06M
metadata
dict
negatives
sequencelengths
3
101
negative_scores
sequencelengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Change Method. Write your reversible migrations using this method. More information on writing migrations is available here: The following commands can be used in this method and Phinx will automatically reverse them when rolling back: createTable renameTable addColumn renameColumn addIndex addForeignKey Remember to call "create()" or "update()" and NOT "save()" when working with the Table class.
public function change() { $this->execute( 'CREATE TABLE `user_login_providers` ( `user_id` int(11) NOT NULL, `login_provider` enum(\'facebook\',\'twitter\') NOT NULL, `login_provider_user_id` varchar(255) NOT NULL, `updated_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`user_id`,`login_provider`), UNIQUE KEY `login_provider_user_id` (`login_provider`,`login_provider_user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8;' ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function change()\n {\n // Migration for table entry\n $table = $this->table('entry');\n $table\n ->addColumn('domain', 'string', array('limit' => 25))\n ->addColumn('url', 'string', array('limit' => 255))\n ->addColumn('title', 'string', array('limit' => 255))\n ->addColumn('code', 'string', array('limit' => 64))\n ->addColumn('Countdown', 'integer', array('limit' => 11))\n ->addColumn('ExpireDate', 'datetime', array('null' => true))\n ->addColumn('ExpiryAction', 'enum', array('values' => array('stop','free')))\n ->addColumn('created', 'datetime')\n ->addColumn('deleted', 'boolean', array('limit' => 1))\n ->addColumn('used', 'integer', array('default' => '0', 'signed' => false))\n ->create();\n\n\n // Migration for table users\n $table = $this->table('user');\n $table\n ->addColumn('settings', 'text', array('null' => true))\n ->addColumn('email', 'string', array('limit' => 128))\n ->addColumn('firstname', 'string', array('null' => true, 'limit' => 32))\n ->addColumn('lastname', 'string', array('null' => true, 'limit' => 32))\n ->addColumn('password', 'string', array('limit' => 40))\n ->addColumn('login', 'string', array('limit' => 32))\n ->addColumn('DatCreate', 'datetime', array())\n ->addColumn('DatSave', 'datetime', array('null' => true))\n ->addColumn('last_modifier_id', 'integer', array('null' => true, 'signed' => false))\n ->create();\n }", "public function change()\n {\n $table = $this->table('languages');\n $table->addColumn('is_rtl', 'boolean', [\n 'default' => false,\n 'null' => false,\n ]);\n $table->addColumn('trashed', 'datetime', [\n 'default' => null,\n 'null' => true,\n ]);\n $table->changeColumn('is_active', 'boolean', [\n 'default' => true,\n 'null' => false,\n ]);\n $table->renameColumn('short_code', 'code');\n $table->removeColumn('description');\n $table->update();\n }", "public function change()\n {\n $table = $this->table('orders');\n $table->addColumn('user_id', 'integer', [\n 'default' => null,\n 'null' => false,\n ]);\n $table->addColumn('order_address', 'string', [\n 'default' => null,\n 'null' => false,\n ]);\n $table->addColumn('order_tel', 'string', [\n 'default' => null,\n 'null' => false,\n ]);\n $table->addColumn('order_name', 'string', [\n 'default' => null,\n 'null' => false,\n ]);\n $table->addColumn('order_email', 'string', [\n 'default' => null,\n 'null' => false,\n ]);\n $table->addColumn('credit_code', 'string', [\n 'default' => null,\n 'null' => false,\n ]);\n $table->addColumn('created_datetime', 'datetime', [\n 'default' => null,\n 'null' => false,\n\n ]);\n $table->addColumn('updated_datetime', 'datetime', [\n 'default' => CURRENT_TIMESTAMP,\n 'null' => false,\n\n ]);\n $table->addColumn('del_flg', 'string', [\n 'default' => 0,\n 'null' => false,\n\n ]);\n $table->addColumn('buy_status', 'string', [\n 'default' => null,\n 'null' => false,\n ]);\n $table->create();\n }", "public function change(): void\n {\n $table = $this->table('t_transaction');\n $table->addColumn('references_id', 'uuid')\n ->addcolumn('invoice_id', 'string', ['limit' => 20])\n ->addcolumn('item_name', 'string')\n ->addcolumn('amount', 'integer')\n ->addcolumn('payment_type', 'string', ['limit' => 15])\n ->addcolumn('customer_name', 'string', ['limit' => 50])\n ->addColumn('number_va', 'string', ['limit' => 15])\n ->addColumn('merchant_id', 'uuid')\n ->addcolumn('status', 'string', ['limit' => 7])\n ->addTimestamps('create_at')\n ->create();\n }", "public function change()\n {\n $wallet = $this->table('wallet');\n $wallet->addColumn('description', 'string', ['limit' => 100])\n ->addColumn('primary', 'enum', ['values' => ['y', 'n']])\n ->addColumn('user_id', 'integer')\n ->addColumn('total_avg', 'string', ['limit' => 50, 'default' => '0.00'])\n ->addColumn('total_balance', 'string', ['limit' => 50, 'default' => '0.00'])\n ->addColumn('total_stock', 'string', ['limit' => 50, 'default' => '0.00'])\n ->addColumn('total_fund', 'string', ['limit' => 50, 'default' => '0.00'])\n ->addColumn('profit', 'string', ['limit' => 50, 'default' => '0.00'])\n ->addColumn('variation', 'string', ['limit' => 50, 'default' => '0.00'])\n ->addColumn('variation_money', 'string', ['limit' => 50, 'default' => '0.00'])\n ->addColumn('created_at', 'datetime', ['default' => 'CURRENT_TIMESTAMP'])\n ->addColumn('updated_at', 'datetime', ['default' => 'CURRENT_TIMESTAMP'])\n ->addForeignKey('user_id', 'user', ['id'], ['constraint' => 'fk_wallet_user_id'])\n ->create();\n }", "public function change()\n {\n $table = $this->table('orders');\n $table->addColumn('payment_method', 'string', [\n 'default' => null,\n 'limit' => 50,\n 'null' => true,\n 'after' => 'invoice_file'\n ]);\n $table->addColumn('transaction_status', 'string', [\n 'default' => null,\n 'limit' => 255,\n 'null' => true,\n 'after' => 'payment_method'\n ]);\n $table->addColumn('transactionId', 'string', [\n 'default' => null,\n 'limit' => 255,\n 'null' => true,\n 'after' => 'transaction_status'\n ]);\n $table->addColumn('signature', 'string', [\n 'default' => null,\n 'limit' => 255,\n 'null' => true,\n 'after' => 'transactionId'\n ]);\n $table->addColumn('transaction_responce', 'string', [\n 'default' => null,\n 'limit' => 255,\n 'null' => true,\n 'after' => 'signature'\n ]);\n $table->update();\n }", "public function change()\n {\n $table = $this->table('reset_codes');\n $table->addColumn('uuid', 'string')\n ->addColumn('code', 'text')\n ->addColumn('created_at', 'datetime', ['default' => 'CURRENT_TIMESTAMP'])\n ->addColumn('updated_at', 'datetime', ['default' => 'CURRENT_TIMESTAMP'])\n ->addColumn('expiration', 'datetime', ['default' => 'CURRENT_TIMESTAMP'])\n ->addIndex(['uuid'], ['unique' => true])\n ->addForeignKey('uuid', 'users', 'uuid', ['delete'=> 'CASCADE', 'update'=> 'NO_ACTION'])\n ->create();\n }", "public function change()\n {\n $table = $this->table('names');\n $table->addColumn('username', 'string', [\n 'limit' => 16,\n 'null' => false,\n ]);\n $table->addColumn('order_key', 'integer', [\n 'null' => false,\n ]);\n $table->addColumn('name', 'string', [\n 'limit' => 255,\n 'null' => false,\n ]);\n $table->addColumn('type', 'string', [\n 'limit' => 16,\n 'null' => false,\n ]);\n $table->addColumn('display', 'integer', [\n 'null' => false,\n ]);\n $table->addColumn('clipped', 'string', [\n 'limit' => 16,\n 'null' => true,\n ]);\n $table->create();\n\n $table->addForeignKey(\n 'username',\n 'users', 'username',\n [ 'update' => 'CASCADE', 'delete' => 'CASCADE' ]\n );\n $table->update();\n }", "public function change()\n {\n //角色信息\n $table = $this->table('admin_role');\n $table->addColumn('rolename','string',['limit'=>20,'comment'=>'角色名'])\n ->addColumn('status','integer',['default'=>0,'comment'=>'状态'])\n ->addColumn('remark','string',['limit'=>30,'comment'=>'备注'])\n ->addColumn('create_by','integer',['comment'=>'创建者'])\n ->addTimestamps()\n ->addIndex('rolename',['unique'=>true])\n ->create();\n \n //管理员用户和角色对应表\n $table = $this->table('admin_user_role')\n ->addColumn('adminuser_id','integer',['comment'=>'管理员用户ID'])\n ->addColumn('role_id','integer',['comment'=>'角色id'])\n ->addTimestamps()\n ->create();\n }", "public function change()\n {\n\t\t\t// Create challange table (PrimaryKey is auto created)\n\t\t\t$this->table('shopify_app_reviews')\n\t\t\t\t->addColumn('shopify_domain', 'string', ['limit' => 255])\n\t\t\t\t->addColumn('app_slug', 'string', ['limit' => 255])\n\t\t\t\t->addColumn('star_rating', 'integer', ['null' => true])\n\t\t\t\t->addColumn('previous_star_rating', 'integer', ['null' => true])\n\t\t\t\t->addColumn('updated_at', 'datetime', ['null' => true])\n\t\t\t\t->addColumn('created_at', 'datetime', ['null' => true])\n\t\t\t\t->addIndex('shopify_domain', ['unique' => true])\n\t\t\t\t->addIndex('app_slug', ['unique' => true])\n\t\t\t\t->create();\n }", "public function change()\n {\n $table = $this->table('posts');\n $table\n ->addColumn('slug', 'string', [\n 'limit' => '255',\n ])\n ->addColumn('title', 'string', [\n 'limit' => '255',\n ])\n ->addColumn('body', 'text')\n ->addColumn('created', 'datetime')\n ->addColumn('modified', 'datetime')\n ->addColumn('created_by', 'integer', [\n 'limit' => '11',\n 'signed' => false\n ])\n ->addColumn('modified_by', 'integer', [\n 'limit' => '11',\n 'signed' => false\n ])\n ->save();\n $table = $this->table('users');\n $table\n ->addColumn('username', 'string', [\n 'limit' => '50',\n ])\n ->addColumn('password', 'string', [\n 'limit' => '100',\n ])\n ->addColumn('email', 'string', [\n 'limit' => '100',\n ])\n ->addColumn('firstname', 'string', [\n 'limit' => '50',\n ])\n ->addColumn('lastname', 'string', [\n 'limit' => '50',\n ])\n ->addColumn('created', 'datetime')\n ->addColumn('modified', 'datetime')\n ->addColumn('created_by', 'integer', [\n 'limit' => '11',\n 'signed' => false\n ])\n ->addColumn('modified_by', 'integer', [\n 'limit' => '11',\n 'signed' => false\n ])\n ->save();\n }", "public function change(): void\n {\n $this->table('filestore')\n ->addColumn('uuid', 'uuid', ['null' => false])\n ->addColumn('hash', 'string', ['length' => 32, 'null' => false])\n ->addColumn('filename', 'string', ['length' => 100, 'null' => false])\n ->addColumn('bytes', 'integer', ['signed' => false, 'null' => false])\n ->addColumn('parent', 'uuid', ['null' => true])\n ->addColumn('meta', 'json', ['null' => false])\n ->addColumn('created', 'biginteger', ['signed' => false, 'null' => false])\n ->addColumn('created_by', 'uuid', ['null' => false])\n ->addIndex(['uuid'], ['unique' => true])\n ->addIndex(['hash'])\n ->addIndex(['filename'])\n ->addIndex(['parent'])\n ->addForeignKey(['created_by'], 'user', ['uuid'])\n ->create();\n }", "public function change()\n {\n $table = $this->table('jobs',['engine'=>'Innodb', 'comment' => '岗位表', 'signed' => false]);\n $table->addColumn('job_name', 'string',['limit' => 15,'default'=>'','comment'=>'岗位名称'])\n ->addColumn('coding', 'string', ['default' => '', 'comment' => '编码', 'limit' => 50])\n ->addColumn('creator_id', 'integer',['default' => 0, 'comment'=>'创建人ID'])\n ->addColumn('status', 'integer',['limit' => \\Phinx\\Db\\Adapter\\MysqlAdapter::INT_TINY,'default'=> 1,'comment'=>'1 正常 2 停用'])\n ->addColumn('sort', 'integer',['default'=> 0,'comment'=>'排序字段'])\n ->addColumn('description', 'string', ['default' => '', 'comment' => '描述', 'limit' => 255])\n ->addColumn('created_at', 'integer', array('default'=>0,'comment'=>'创建时间', 'signed' => false ))\n ->addColumn('updated_at', 'integer', array('default'=>0,'comment'=>'更新时间', 'signed' => false))\n ->addColumn('deleted_at', 'integer', array('default'=>0,'comment'=>'删除状态,null 未删除 timestamp 已删除', 'signed' => false))\n ->create();\n }", "public function change()\n {\n $table = $this->table('users');\n $table->addColumn('full_name', 'string', array('limit' => 150))\n ->addColumn('ci', 'string')\n ->addColumn('email', 'string', array('limit' => 150))\n ->addColumn('password', 'string')\n ->addColumn('phone', 'string')\n ->addColumn('photo', 'string')\n ->addColumn('photo_dir', 'string')\n ->addColumn('role', 'enum', array('values' => 'dentist, prosthesis'))\n ->addColumn('created', 'datetime')\n ->addColumn('modified', 'datetime')\n ->create();\n }", "public function change()\n {\n $table = $this->table('companies');\n $table->addColumn('name', 'string', [\n 'limit' => 255\n ]);\n\n $table->addColumn('fantasy', 'string', [\n 'limit' => 255\n ]);\n\n $table->addColumn('address', 'string', [\n 'limit' => 255\n ]);\n\n $table->addColumn('city', 'string', [\n 'limit' => 45\n ]);\n\n $table->addColumn('state', 'string', [\n 'limit' => 45\n ]);\n\n $table->addColumn('zipcode', 'string', [\n 'limit' => 8\n ]);\n\n $table->addColumn('cnpj', 'string', [\n 'limit' => 14\n ]);\n\n $table->addColumn('cpf', 'string', [\n 'limit' => 11\n ]);\n\n $table->addColumn('state_registration', 'string', [\n 'limit' => 12\n ]);\n\n $table->addColumn('logo', 'string', [\n 'limit' => 255\n ]);\n\n $table->addColumn('status', 'integer', [\n 'default' => 1\n ]);\n\n $table->addColumn('email', 'string', [\n 'limit' => 80\n ]);\n\n $table->addColumn('people_id', 'integer');\n $table->addForeignKey('people_id', 'peoples','id');\n\n $table->addColumn('created', 'datetime');\n $table->addColumn('modified', 'datetime');\n $table->create();\n }", "public function change()\n {\n $table = $this->table('role', ['engine' => 'InnoDB', 'collation' => config('database.connections.mysql.charset') . '_unicode_ci']);\n $table->addColumn('name', 'string', ['limit' => 100, 'comment' => '角色唯一标识'])\n ->addColumn('title', 'string', ['limit' => 100, 'comment' => '角色名称'])\n ->addColumn('pid', 'integer', ['limit' => 11, 'default' => 0, 'comment' => '父级标识'])\n ->addColumn('mode', 'integer', ['limit' => 11, 'default' => 3, 'comment' => '数据权限类型'])\n ->addColumn('status', 'integer', ['limit' => 11, 'default' => 0, 'comment' => '状态'])\n ->addIndex(['name'], ['unique' => true])\n ->create();\n }", "public function change()\n {\n $this->table('change_history')\n ->setComment('数据修改记录')\n ->setEngine('InnoDB')\n ->addColumn('model_type','string', ['comment' => '数据模型类名'])\n ->addColumn('model_id', 'integer', ['comment' => '数据ID'])\n ->addColumn('before', 'text', ['comment' => '修改前内容'])\n ->addColumn('after', 'text', ['comment' => '修改后内容'])\n ->addColumn('method', 'string', ['comment' => '请求方式'])\n ->addColumn('url', 'text', ['comment' => '请求url'])\n ->addColumn('param', 'text', ['comment' => '请求参数'])\n ->addFingerPrint()\n ->create();\n }", "public function change()\n {\n $table = $this->table('notifications');\n $table->addColumn('destination', 'enum', [\n 'values' => [\n 'Global',\n 'Role',\n 'User'\n ]\n ]);\n $table->addColumn('role_id', 'string', [\n 'default' => '',\n 'limit' => 32\n ]);\n $table->changeColumn('user_id', 'string', [\n 'default' => '',\n 'limit' => 36\n ]);\n $table->removeColumn('seen');\n $table->removeColumn('deleted');\n $table->update();\n\n $tableLogs = $this->table('admin_l_t_e_notification_logs');\n $tableLogs->addColumn('notification_id', 'integer');\n $tableLogs->addColumn('user_id', 'string', [\n 'default' => null,\n 'limit' => 36,\n 'null' => false\n ]);\n $tableLogs->addColumn('created', 'datetime');\n $tableLogs->create();\n }", "public function change()\n {\n $table = $this->table('questions');\n $table->addColumn('lang_type_id', 'integer', [\n 'default' => null,\n 'limit' => 11,\n 'null' => false,\n ]);\n \n $table->addColumn('title', 'string', [\n 'default' => null,\n 'limit' => 150,\n 'null' => false,\n ]);\n $table->addColumn('resolved', 'boolean', [\n 'default' => false,\n 'null' => true,\n ]);\n $table->addColumn('pv', 'biginteger', [\n 'default' => null,\n 'limit' => 20,\n 'null' => false,\n ]);\n $table->addColumn('created_at', 'datetime', [\n 'default' => null,\n 'null' => false,\n ]);\n $table->addColumn('updated_at', 'datetime', [\n 'default' => null,\n 'null' => false,\n ]);\n \n $table->addIndex([\n 'lang_type_id',\n ], [\n 'name' => 'BY_LANG_TYPE_ID',\n 'unique' => false,\n ]);\n \n // テーブル定義上は\n // titleがユニークになっていないのは移行前システムに同名タイトルがあった為\n $table->addIndex([\n 'title',\n ], [\n 'name' => 'BY_TITLE',\n 'unique' => false,\n ]);\n $table->create();\n }", "public function change(): void\n {\n $leads = $this->table('leads');\n $leads->addColumn('id_proyecto', 'integer')\n ->addColumn('status', 'integer')\n ->addColumn('comentarios', 'text')\n ->addColumn('created_at', 'timestamp')\n ->addColumn('updated_at', 'timestamp')\n ->addForeignKey('id_proyecto', 'proyectos', 'id', ['delete' => 'NO_ACTION', 'update' => 'NO_ACTION'])\n ->create();\n\n $datos = $this->table('datos');\n $datos->addColumn('id_lead', 'integer')\n ->addColumn('campo', 'string', ['limit' => 250])\n ->addColumn('valor', 'string', ['limit' => 250])\n ->addColumn('created_at', 'timestamp')\n ->addColumn('updated_at', 'timestamp')\n ->addForeignKey('id_lead', 'leads', 'id', ['delete' => 'CASCADE', 'update' => 'CASCADE'])\n ->create();\n }", "public function change(): void\n {\n //$users = $this->table('users', array('id' => false, 'primary_key' => ['uuid']));\n $users = $this->table('users');\n $users->addColumn('uuid', 'binary', ['limit' => 16])\n ->addColumn('username', 'string', ['limit' => 20])\n ->addColumn('password', 'string', ['limit' => 255])\n ->addColumn('email', 'string', ['limit' => 100])\n ->addColumn('first_name', 'string', ['limit' => 30])\n ->addColumn('last_name', 'string', ['limit' => 30])\n ->addTimestamps()\n ->addIndex(['uuid', 'username', 'email'], ['unique' => true])\n ->create();\n }", "public function change()\n {\n $table = $this->table('entrant_to_ticket');\n\n if (!$table->exists()) {\n $table\n ->addColumn('id_entrant', 'integer')\n ->addColumn('id_ticket', 'integer')\n ->addColumn('is_done', 'boolean', [\n 'default' => 0\n ])\n ->addColumn('rating', 'integer')\n ->addForeignKey('id_entrant', 'entrants')\n ->addForeignKey('id_ticket', 'tickets')\n\n ->addTimestamps('created', 'modified')\n ->save();\n }\n }", "public function change()\n {\n $table = $this->table('backupDish', ['id'=>false, 'primary_key'=>['sequenceNumber']]);\n $table\n ->addColumn('sequenceNumber', 'integer', ['limit'=>8])\n ->addColumn('dishNumber', 'integer', ['limit' => 8])\n ->addColumn('dishName', 'string', ['limit' => 32])\n ->addColumn('createDate', 'date')\n ->addColumn('price', 'integer', ['limit' => 12])\n ->addColumn('description', 'string', ['limit' => 1000])\n ->addColumn('userName', 'string', ['limit' => 32])\n ->addColumn('deleteOn', 'date')\n ->addColumn('imageName', 'string', ['limit' => 32])\n ->create();\n $sql = 'ALTER TABLE backupDish MODIFY COLUMN sequenceNumber int auto_increment';\n $this->execute($sql);\n }", "public function change()\n {\n $table = $this->table('tbl_branches');\n $table->addColumn('id', 'integer', [\n 'autoIncrement' => true,\n 'default' => null,\n 'limit' => 5,\n 'null' => false,\n ]);\n $table->addColumn('name', 'string', [\n 'default' => null,\n 'limit' => 120,\n 'null' => false,\n ]);\n $table->addColumn('description', 'text', [\n 'default' => null,\n 'null' => true,\n ]);\n $table->addColumn('college_id', 'integer', [\n 'default' => null,\n 'limit' => 5,\n 'null' => false,\n ]);\n $table->addColumn('start_date', 'string', [\n 'default' => null,\n 'limit' => 50,\n 'null' => false,\n ]);\n $table->addColumn('end_date', 'string', [\n 'default' => null,\n 'limit' => 50,\n 'null' => false,\n ]);\n $table->addColumn('total_seats', 'integer', [\n 'default' => null,\n 'limit' => 11,\n 'null' => false,\n ]);\n $table->addColumn('total_durations', 'integer', [\n 'default' => null,\n 'limit' => 5,\n 'null' => false,\n ]);\n $table->addColumn('status', 'integer', [\n 'default' => 1,\n 'limit' => 5,\n 'null' => false,\n ]);\n $table->addColumn('created_at', 'datetime', [\n 'default' => 'CURRENT_TIMESTAMP',\n 'null' => false,\n ]);\n $table->addPrimaryKey([\n 'id',\n ]);\n $table->create();\n }", "public function change()\n {\n $table = $this->table('block_attributes', ['signed' => false]);\n $table->addColumn('block_id', 'integer', [\n 'limit' => 10,\n 'null' => false,\n ]);\n $table->addColumn('attribute_id', 'integer', [\n 'limit' => 10,\n 'null' => false,\n ]);\n $table->addColumn('created', 'datetime', [\n 'default' => 'CURRENT_TIMESTAMP',\n 'null' => false,\n 'comment' => '作成日',\n ]);\n $table->addColumn('modified', 'timestamp', [\n 'default' => null,\n 'null' => false,\n 'comment' => '更新日',\n ]);\n $table->addIndex([\n 'block_id',\n 'attribute_id',\n ], [\n 'name' => 'UNIQUE_BLOCK_ATTRIBUTE',\n 'unique' => true,\n ]);\n $table->create();\n }", "public function change()\n {\n $this->table('news', ['id' => false, 'primary_key' => ['id']])\n ->addColumn('id', 'biginteger', ['identity' => true])\n ->addColumn('title', 'string', ['limit' => 255])\n ->create();\n\n $this->table('news1', ['id' => false, 'primary_key' => ['id']])\n ->addColumn('id', 'biginteger', ['identity' => true])\n ->addColumn('title', 'string', ['limit' => 255])\n ->create();\n }", "public function change()\n {\n $table = $this->table('pokemons');\n $table->addColumn('name', 'string', [\n 'default' => null,\n 'limit' => 255,\n 'null' => false,\n ]);\n $table->addColumn('height', 'integer', [\n 'default' => null,\n 'limit' => 11,\n 'null' => false,\n ]);\n $table->addColumn('weight', 'integer', [\n 'default' => null,\n 'limit' => 11,\n 'null' => false,\n ]);\n $table->addColumn('default_front_sprite_url', 'string', [\n 'default' => null,\n 'limit' => 255,\n 'null' => false,\n ]);\n $table->addColumn('created', 'datetime', [\n 'default' => null,\n 'null' => false,\n ]);\n $table->addColumn('modified', 'datetime', [\n 'default' => null,\n 'null' => false,\n ]);\n $table->create();\n }", "public function change()\n {\n $table = $this->table('insurance_mst');\n\n $table->addColumn('deputytype_code', 'string', ['limit' => 10, 'null' => false]);\n $table->addColumn('code', 'string', ['limit' => 10, 'null' => false]);\n $table->addColumn('insurance_name_local_01', 'string', ['limit' => 100, 'null' => false]);\n $table->addColumn('insurance_name_local_02', 'string', ['limit' => 100, 'null' => false]);\n $table->addColumn('insurance_name_eng', 'string', ['limit' => 100, 'null' => true]);\n $table->addColumn('lifetime_flg', 'boolean', ['limit' => 2, 'null' => false, 'default' => -1, 'comment' => 'Non-life = 0, lifetime = 1, the selection formula = -1']);\n $table->addColumn('data_flg', 'boolean', ['limit' => 1, 'null' => false, 'default' => 1]);\n\n $table->addColumn('created_time', 'datetime');\n $table->addColumn('create_user', 'string', ['limit'=> 100, 'null' => false]);\n $table->addColumn('update_time', 'datetime');\n $table->addColumn('update_user', 'string', ['limit'=> 100, 'null' => false]);\n\n $table->create();\n }", "public function change()\n {\n \\magein\\php_tools\\extra\\Migrate::create(\n $this->table('system_log'),\n [\n ['uid', 'integer', ['limit' => 11, 'comment' => '管理员']],\n ['controller', 'string', ['comment' => '控制器']],\n ['action', 'string', ['comment' => '行为']],\n ['get', 'string', ['limit' => 1500, 'comment' => 'get参数']],\n ['post', 'text', ['comment' => 'post参数']],\n ['ip', 'string', ['limit' => 30, 'comment' => 'IP地址']]\n ]\n );\n }", "public function change()\n {\n $table = $this->table('site_instances');\n $table->addColumn('adapter', 'string')\n ->addColumn('endpoint', 'string')\n ->addColumn('last_retrieved', 'datetime', array('null' => true))\n ->addColumn('update_interval', 'integer', ['default' => 168])\n ->save();\n\n $table = $this->table('data');\n $table->addColumn('site_instance_id', 'integer')\n ->addColumn('key', 'string')\n ->addColumn('value', 'string')\n ->addColumn('timestamp', 'datetime')\n ->save();\n }", "public function change()\n {\n $this->table('categories')\n ->addColumn('id', 'integer', [\n 'autoIncrement' => true,\n 'default' => null,\n 'limit' => null,\n 'null' => false,\n 'signed' => false,\n ])\n ->addPrimaryKey(['id'])\n ->addColumn('categoryCd', 'string', [\n 'default' => null,\n 'limit' => 20,\n 'null' => false,\n // 'unique' => true, // 一意の名称\n ])\n ->addIndex(['categoryCd'], ['unique' => true])\n ->addColumn('categoryName', 'string', [\n 'default' => null,\n 'limit' => 255,\n 'null' => true,\n ])\n ->addPrimaryKey(['categoryName'])\n ->addColumn('subCategoryName', 'string', [\n 'default' => null,\n 'limit' => 255,\n 'null' => true,\n ])\n // ->addPrimaryKey(['subCategoryName'])\n ->addColumn('created', 'datetime', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ])\n ->addColumn('modified', 'datetime', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ])\n ->create();\n }", "public function change()\n {\n $this->schema->table('recurring_expenses',function($table){\n $table->date('end_repeat')->nullable();\n $table->boolean('ended')->default(false);\n $table->enum('repeat',['0','1','7','14','30','365'])->nullable();\n });\n\n $this->schema->table('expenses',function($table){\n $table->dropColumn('end_repeat');\n $table->dropColumn('repeat');\n $table->integer('parent_id')->nullable();\n $table->foreign('parent_id')->references('id')->on('expenses')->onDelete('cascade');\n });\n }", "public function change()\n {\n $table = $this->table('through', ['engine'=>'InnoDB','comment'=>'微信用户认证表', 'id'=>'t_id']);\n $table->addColumn('uid', 'integer', ['limit' => 11, 'null'=>false, 'default'=>0, 'comment'=>'用户id'])\n ->addColumn('realName', 'string', ['limit' => 45, 'null'=>false, 'default'=>'', 'comment'=>'姓名'])\n ->addColumn('phone', 'string', ['limit' => 45, 'null'=>false, 'default'=>'', 'comment'=>'电话'])\n ->addColumn('email', 'string', ['limit' => 128,'null'=>false, 'default'=> '', 'comment'=>'邮箱'])\n ->addColumn('position', 'string', ['limit' => 128,'null'=>false, 'default'=> '', 'comment'=>'职位'])\n ->addColumn('company', 'string', ['limit' => 128,'null'=>false, 'default'=> '', 'comment'=>'公司'])\n ->addColumn('card', 'string', ['limit' => 128,'null'=>false, 'default'=> '', 'comment'=>'名片'])\n ->addColumn('createTime', 'integer', ['limit' => 11,'null'=>false, 'default'=>0, 'comment'=>'创建时间'])\n ->addColumn('updateTime', 'integer', ['limit' => 11,'null'=>false, 'default'=>0, 'comment'=>'更新时间'])\n ->addColumn('throughTime', 'integer', ['limit' => 11,'null'=>false, 'default'=>0, 'comment'=>'通过审核时间'])\n ->addColumn('lastTime', 'integer', ['limit' => 11,'null'=>false, 'default'=>0, 'comment'=>'上次登录时间'])\n ->addColumn('status', 'integer', ['limit' => \\Phinx\\Db\\Adapter\\MysqlAdapter::INT_TINY,'null'=>false, 'default'=>0, 'comment'=>'状态:0未审核;1审核通过;-1审核未通过'])\n ->save();\n }", "public function change()\n {\n $table = $this->table('users');\n $table->addColumn('created', 'integer',['default' => 0])\n ->addColumn('email', 'string',['default' => ''])\n ->addColumn('password', 'string',['default' => ''])\n ->create();\n }", "public function change()\n {\n $table = $this->table('m_access_log', ['engine'=>'InnoDB']);\n $table->addColumn('ip', 'string', ['limit'=>32,'default'=>'','comment'=>'ip地址'])\n ->addColumn('area', 'string', ['limit'=>32])\n ->addColumn('country', 'string', ['limit'=>32])\n ->addColumn('region', 'string', ['limit'=>32])\n ->addColumn('city', 'string', ['limit'=>32])\n ->addColumn('isp', 'string', ['limit'=>16])\n ->addColumn('create_at', 'integer', ['limit'=>10])\n ->create();\n }", "public function change()\r\n {\r\n $table = $this->table('carts')\r\n ->addColumn('delivery_id', 'integer', [\r\n 'after' => 'customer_id',\r\n 'default' => null,\r\n 'limit' => 11,\r\n 'null' => true,\r\n ])\r\n ->addIndex(\r\n [\r\n 'delivery_id',\r\n ]\r\n )\r\n ->addForeignKey(\r\n 'delivery_id',\r\n 'deliveries',\r\n 'id',\r\n [\r\n 'update' => 'CASCADE',\r\n 'delete' => 'CASCADE'\r\n ]\r\n )\r\n ->update();\r\n }", "public function change()\n {\n\t /**\n\t * status 0=unpaid, 1=paid, 2=fulfilled\n\t */\n\t $table = $this->table('accounts_crypto_payments');\n\t $table\n\t\t ->addColumn('source_type', 'string',['limit' => 20, 'null' => true])\n\t\t ->addColumn('aup_transaction_id', 'integer',['null' => true])\n\t\t ->addColumn('accountUrlPrefix', 'string',['limit' => 17, 'null' => false])\n\t\t ->addColumn('username', 'string',['limit' => 30, 'null' => true])\n\t\t ->addColumn('invoice_id', 'integer',['null' => true])\n\t\t ->addColumn('destination_currency', 'string',['limit' => 3, 'null' => false])\n\t\t ->addColumn('currency_amount', 'string',['limit' => '23','null' => true, 'default' => '0.00000000'])\n\t\t ->addColumn('status', 'integer',['null' => 'false', 'default' => 0])\n\t\t ->addColumn('created', 'datetime',['default' => 'CURRENT_TIMESTAMP'])\n\t\t ->addColumn('updated', 'datetime',['default' => 'CURRENT_TIMESTAMP'])\n\n\t\t ->addIndex(['source_type', 'aup_transaction_id', 'accountUrlPrefix', 'username', 'invoice_id', 'destination_currency', 'status', 'created', 'updated'], ['unique' => false])\n\t\t ->addIndex(['aup_transaction_id', 'accountUrlPrefix', 'invoice_id'], ['unique' => false])\n\t\t ->create();\n\t $table = $this->table('accounts_crypto_payments');\n\t $table\n\t\t ->addForeignKey('accountUrlPrefix', 'accounts', 'accountUrlPrefix',['delete'=>'CASCADE', 'update'=>'CASCADE'])\n\t\t ->addForeignKey('aup_transaction_id', 'accounts_users_propay_transactions', 'id',['delete'=>'CASCADE', 'update'=>'CASCADE'])\n\t\t ->update();\n }", "public function change()\n {\n $table = $this->table('api_requests', ['id' => false, 'primary_key' => ['id']]);\n $table->addColumn('id', 'uuid', [\n 'default' => null,\n 'limit' => null,\n 'null' => false,\n ]);\n $table->addColumn('http_method', 'string', [\n 'limit' => 10,\n 'null' => false,\n ]);\n $table->addColumn('endpoint', 'string', [\n 'limit' => 2048,\n 'null' => false,\n ]);\n $table->addColumn('token', 'string', [\n 'default' => null,\n 'limit' => 2048,\n ]);\n $table->addColumn('ip_address', 'string', [\n 'default' => null,\n 'limit' => 50,\n 'null' => false,\n ]);\n $table->addColumn('request_data', 'text', [\n 'default' => null,\n 'null' => false,\n ]);\n $table->addColumn('response_code', 'integer', [\n 'limit' => 5,\n 'default' => null,\n 'null' => false,\n ]);\n $table->addColumn('response_data', 'text', [\n 'default' => null,\n 'null' => false,\n ]);\n $table->addColumn('exception', 'text', [\n 'default' => null,\n 'null' => false,\n ]);\n $table->addColumn('created', 'datetime', [\n 'null' => false,\n ]);\n $table->addColumn('modified', 'datetime', [\n 'null' => false,\n ]);\n $table->create();\n }", "public function change()\n {\n $this->table('mail_queues')\n ->addColumn('id', 'uuid', [\n 'default' => null,\n 'limit' => null,\n 'null' => false,\n ])\n ->addPrimaryKey(['id'])\n ->addColumn('template', 'string', [\n 'default' => \"default\",\n 'limit' => 50,\n 'null' => false,\n ])\n ->addColumn('toUser', 'string', [\n 'limit' => 250,\n 'null' => false,\n ])\n ->addColumn('subject', 'string', [\n 'limit' => 250,\n 'null' => false,\n ])\n ->addColumn('viewvars', 'text', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ])\n ->addColumn('body', 'text', [\n 'default' => null,\n 'limit' => null,\n 'null' => false,\n ])\n ->addColumn('created_at', 'timestamp', [\n 'default' => 'CURRENT_TIMESTAMP',\n 'limit' => null,\n 'null' => false,\n ])\n ->create();\n }", "public function change()\n {\n $this->table('rents')\n ->addColumn('url', 'string', [\n 'default' => null,\n 'limit' => 500,\n 'null' => false,\n ])\n ->addColumn('price', 'string', [\n 'default' => null,\n 'limit' => 10,\n 'null' => false,\n ])\n ->addColumn('kanri_charge', 'string', [\n 'default' => null,\n 'limit' => 10,\n 'null' => true,\n ])\n ->addColumn('sikikin', 'string', [\n 'default' => null,\n 'limit' => 10,\n 'null' => true,\n ])\n ->addColumn('reikin', 'string', [\n 'default' => null,\n 'limit' => 10,\n 'null' => true,\n ])\n ->addColumn('place', 'string', [\n 'default' => null,\n 'limit' => 45,\n 'null' => true,\n ])\n ->addColumn('access', 'string', [\n 'default' => null,\n 'limit' => 45,\n 'null' => true,\n ])\n ->addColumn('width', 'string', [\n 'default' => null,\n 'limit' => 45,\n 'null' => true,\n ])\n ->addColumn('room_type', 'string', [\n 'default' => null,\n 'limit' => 45,\n 'null' => true,\n ])\n ->addColumn('build_date', 'string', [\n 'default' => null,\n 'limit' => 45,\n 'null' => true,\n ])\n ->addColumn('floor', 'string', [\n 'default' => null,\n 'limit' => 45,\n 'null' => true,\n ])\n ->addColumn('etc', 'string', [\n 'default' => null,\n 'limit' => 300,\n 'null' => true,\n ])\n ->addColumn('created', 'date', [\n 'default' => null,\n 'limit' => null,\n 'null' => false,\n ])\n ->create();\n }", "public function change()\n {\n $table = $this->table('sales');\n $table\n ->addColumn('seller_id', 'integer', [\n 'null' => false,\n ])\n ->addForeignKey('seller_id', 'sellers', 'id', [\n 'delete' => 'CASCADE',\n 'update' => 'CASCADE',\n ]);\n $table->addColumn('value', 'decimal', [\n 'default' => null,\n 'null' => false\n ]);\n $table->addColumn('comission', 'decimal', [\n 'default' => null,\n 'null' => false,\n ]);\n $table->addTimestamps(null, false);\n $table->addTimestamps(false);\n $table->create();\n }", "public function change()\n {\n $this->table('users')\n ->addColumn('first_name', 'string', [\n 'null' => true,\n 'default' => null,\n ])\n ->addColumn('last_name', 'string', [\n 'null' => true,\n 'default' => null,\n ])\n ->addColumn('email', 'string', [\n 'null' => true,\n 'default' => null,\n ])\n ->addColumn('password', 'string', [\n 'null' => false,\n ])\n ->addColumn('active', 'boolean', [\n 'default' => false,\n 'null' => false,\n ])\n ->addColumn('created', 'datetime', [\n 'null' => false,\n ])\n ->addColumn('modified', 'datetime', [\n 'null' => false,\n ])\n ->create();\n\n $this->table('groups')\n ->addColumn('name', 'string', [\n 'null' => false,\n ])\n ->addColumn('created', 'datetime', [\n 'null' => false,\n ])\n ->addColumn('modified', 'datetime', [\n 'null' => false,\n ])\n ->create();\n\n $this->table('groups_users')\n ->addColumn('group_id', 'integer', [\n 'null' => false,\n ])\n ->addColumn('user_id', 'integer', [\n 'null' => false,\n ])\n ->addColumn('role', 'string', [\n 'null' => false,\n 'default' => 'user',\n ])\n ->create();\n\n $this->table('tags')\n ->addColumn('name', 'string', [\n 'null' => false,\n ])\n ->addColumn('occurrence', 'integer', [\n 'null' => false,\n ])\n ->addColumn('created', 'datetime', [\n 'null' => false,\n ])\n ->addColumn('modified', 'datetime', [\n 'null' => false,\n ])\n ->create();\n\n $this->table('tagged')\n ->addColumn('table_alias', 'string', [\n 'null' => false,\n ])\n ->addColumn('foreign_key', 'integer', [\n 'null' => false,\n ])\n ->addColumn('tag_id', 'integer', [\n 'null' => false,\n ])\n ->addColumn('created', 'datetime', [\n 'null' => false,\n ])\n ->addColumn('modified', 'datetime', [\n 'null' => false,\n ])\n ->create();\n\n $this->table('files')\n ->addColumn('group_id', 'integer', [\n 'null' => false,\n ])\n ->addColumn('name', 'string', [\n 'null' => false,\n ])\n ->addColumn('type', 'string', [\n 'null' => false,\n ])\n ->addColumn('path', 'string', [\n 'null' => false,\n ])\n ->addColumn('metadata', 'jsonb', [\n 'null' => true,\n 'default' => null,\n ])\n ->addColumn('created', 'datetime', [\n 'null' => false,\n ])\n ->addColumn('modified', 'datetime', [\n 'null' => false,\n ])\n ->create();\n\n }", "public function change()\n {\n $table = $this->table('articles');\n $table\n //Categories has been moved to a table.\n ->removeColumn('category')\n //Should be datetime for sorting the article by date.\n ->removeColumn('publish_date')\n ->save();\n\n $table\n ->addColumn('publish_date', 'datetime', ['after' => 'modified_by'])\n ->save();\n }", "public function change()\n { \n $table = $this->table('shop_products');\n $table->addColumn('title','string') //商品名\n ->addColumn('status_id','integer', array('null'=>true,'default'=>0)) //商品状态\n ->addColumn('price','integer', array('null'=>true))//价格\n ->addColumn('discount','integer', array('null'=>true))// 折扣\n ->addColumn('Original_Price','integer', array('null'=>true))//原价\n ->addColumn('Inventory','integer', array('null'=>true))// 库存\n ->addColumn('sales','integer', array('null'=>true))//销量 \n ->addColumn('rate','integer', array('null'=>true))//好评率 \n ->addColumn('labels','string', array('null'=>true))//产品标签\n ->addColumn('logo','string', array('null'=>true))//商品logo\n ->addColumn('Preview_picture','text', array('null'=>true))//图片预览\n ->addColumn('thumbnail','string', array('null'=>true))//缩略图\n ->addColumn('images','text', array('null'=>true))//商品图集\n ->addColumn('updated_at','integer', array('null'=>true))//图片预览\n ->addColumn('detail','text', array('null'=>true))//商品详情\n ->addColumn('create_time','integer', array('null'=>true))//创建时间\n ->addColumn('update_time','integer', array('null'=>true))//更新时间\n ->addColumn('description','string', array('null'=>true))//商品简单描述\n ->addColumn('porder_id','integer', array('null'=>true))//商品排序\n ->addColumn('readme','text', array('null'=>true))//购买提示\n ->addColumn('rush_time','integer', array('null'=>true))//剩余抢购时间\n\n ->save();\n\n }", "public function change()\n {\n\n\n\n $this->table('familles$des$articles', HTML_Phinx::id_default())\n ->addColumn(HTML_Phinx::id())\n ->addColumn(HTML_Phinx::text_master('familles$des$articles'))\n ->addColumn(HTML_Phinx::textarea('note'))\n ->addColumn(HTML_Phinx::datetime('date_ajoute'))\n ->addColumn(HTML_Phinx::datetime('date_modifier'))\n ->create();\n\n\n $faker = Faker\\Factory::create('fr_FR');\n $date = date(\"Y-m-d H:i:s\", $faker->unixTime('now'));\n $data = [\n [\n 'familles$des$articles' => \"filtre\",\n\n \"note\" => \"Certaines opérations sont exonérées de TVA. Découvrez les secteurs d'activités et les opérations concernées par cette exonération.\",\n \"date_ajoute\" => $date,\n \"date_modifier\" => $date\n ], [\n 'familles$des$articles' => \"pc\",\n\n \"note\" => \"La taxe sur la valeur ajoutée ou TVA est un impôt indirect sur la consommation.\",\n \"date_ajoute\" => $date,\n \"date_modifier\" => $date\n ]];\n\n $this->table('familles$des$articles')->insert($data)->save();\n }", "public function change()\n {\n $table = $this->table('clients');\n $table->addColumn('cpf','string', ['null' => false, 'limit' => 11,'type' => 'unique'])\n ->addColumn('rg','string', ['null' => false,'limit' => 10,'type' => 'unique'])\n ->addColumn('nome','string', ['null' => false,'type' => 'unique'])\n ->addColumn('endereco','string', ['null' => false,])\n ->addColumn('dt_nasc','date', ['null' => false,])\n ->addColumn('email','string', ['null' => true,'type' => 'unique'])\n ->addColumn('telefone1','string', ['null' => false,'limit' => 9,])\n ->addColumn('telefone2','string', ['null' => true,'limit' => 9,])\n ->addColumn('created','datetime',[ 'null' => false,])\n ->addColumn('modified','datetime', ['null' => false,])\n ->create();\n\n\n }", "public function change()\n {\n $table = $this->table('cotation_product_items');\n $table->addColumn('cotation_product_id', 'integer', [\n 'default' => null,\n 'null' => false,\n 'limit' => 11,\n ]);\n $table->addForeignKey('cotation_product_id', 'cotation_products', 'id');\n $table->addColumn('item_name', 'string', [\n 'default' => null,\n 'limit' => 255,\n 'null' => false,\n ]);\n $table->addColumn('quantity', 'integer', [\n 'default' => null,\n 'limit' => 11,\n 'null' => false,\n ]);\n $table->addColumn('quote', 'float', [\n 'default' => null,\n 'null' => false,\n ]);\n $table->addColumn('manufacturer', 'string', [\n 'default' => null,\n 'limit' => 255,\n 'null' => false,\n ]);\n $table->addColumn('model', 'string', [\n 'default' => null,\n 'limit' => 255,\n 'null' => false,\n ]);\n $table->addColumn('sku', 'string', [\n 'default' => null,\n 'limit' => 255,\n 'null' => true,\n ]);\n $table->create();\n }", "public function change()\n {\n $table = $this->table('calendars');\n $hasSource = $table->hasColumn('calendar_source');\n $hasSourceId = $table->hasColumn('calendar_source_id');\n\n if ($hasSource) {\n $table->renameColumn('calendar_source', 'source');\n }\n\n if ($hasSourceId) {\n $table->renameColumn('calendar_source_id', 'source_id');\n }\n }", "public function change()\n {\n $table = $this->table('caught_fishes');\n $table->addColumn('fish_type_id', 'integer', [\n 'default' => null,\n 'limit' => 11,\n 'null' => false,\n ]);\n $table->addColumn('fishing_place_id', 'integer', [\n 'default' => null,\n 'limit' => 11,\n 'null' => false,\n ]);\n $table->addColumn('lure_id', 'integer', [\n 'default' => null,\n 'limit' => 11,\n 'null' => true,\n ]);\n $table->addColumn('caught_time', 'datetime', [\n 'default' => null,\n 'null' => false,\n ]);\n $table->addColumn('released', 'boolean', [\n 'default' => null,\n 'null' => false,\n ]);\n $table->addColumn('weight', 'integer', [\n 'default' => null,\n 'limit' => 11,\n 'null' => true,\n ]);\n $table->addColumn('length', 'integer', [\n 'default' => null,\n 'limit' => 11,\n 'null' => true,\n ]);\n $table->addColumn('air_pressure', 'integer', [\n 'default' => null,\n 'limit' => 11,\n 'null' => true,\n ]);\n $table->addColumn('air_temperature', 'integer', [\n 'default' => null,\n 'limit' => 11,\n 'null' => true,\n ]);\n $table->addColumn('water_temperature', 'integer', [\n 'default' => null,\n 'limit' => 11,\n 'null' => true,\n ]);\n $table->addColumn('weather_type_id', 'integer', [\n 'default' => null,\n 'limit' => 11,\n 'null' => true,\n ]);\n $table->addColumn('created', 'datetime', [\n 'default' => null,\n 'null' => false,\n ]);\n $table->addColumn('modified', 'datetime', [\n 'default' => null,\n 'null' => false,\n ]);\n $table->addIndex([\n 'fish_type_id',\n ], [\n 'name' => 'BY_FISH_TYPE_ID',\n 'unique' => false,\n ]);\n $table->addIndex([\n 'fishing_place_id',\n ], [\n 'name' => 'BY_FISHING_PLACE_ID',\n 'unique' => false,\n ]);\n $table->addIndex([\n 'lure_id',\n ], [\n 'name' => 'BY_LURE_ID',\n 'unique' => false,\n ]);\n $table->addIndex([\n 'caught_time',\n ], [\n 'name' => 'BY_CAUGHT_TIME',\n 'unique' => false,\n ]);\n $table->addIndex([\n 'released',\n ], [\n 'name' => 'BY_RELEASED',\n 'unique' => false,\n ]);\n $table->addIndex([\n 'weight',\n ], [\n 'name' => 'BY_WEIGHT',\n 'unique' => false,\n ]);\n $table->addIndex([\n 'length',\n ], [\n 'name' => 'BY_LENGTH',\n 'unique' => false,\n ]);\n $table->addIndex([\n 'air_pressure',\n ], [\n 'name' => 'BY_AIR_PRESSURE',\n 'unique' => false,\n ]);\n $table->addIndex([\n 'air_temperature',\n ], [\n 'name' => 'BY_AIR_TEMPERATURE',\n 'unique' => false,\n ]);\n $table->addIndex([\n 'weather_type_id',\n ], [\n 'name' => 'BY_WEATHER_TYPE_ID',\n 'unique' => false,\n ]);\n $table->addIndex([\n 'water_temperature',\n ], [\n 'name' => 'BY_WATER_TEMPERATURE',\n 'unique' => false,\n ]);\n $table->addIndex([\n 'created',\n ], [\n 'name' => 'BY_CREATED',\n 'unique' => false,\n ]);\n $table->addIndex([\n 'modified',\n ], [\n 'name' => 'BY_MODIFIED',\n 'unique' => false,\n ]);\n $table->create();\n }", "public function change()\n {\n $table = $this->table('menus');\n $table->addColumn('name', 'string', [\n 'default' => null,\n 'limit' => 255,\n 'null' => true,\n ]);\n $table->addColumn('key', 'string', [\n 'default' => null,\n 'limit' => 255,\n 'null' => true,\n ]);\n $table->addColumn('tag', 'string', [\n 'default' => null,\n 'limit' => 255,\n 'null' => true,\n ]);\n $table->addColumn('tag_attributes', 'text', [\n 'default' => null,\n 'null' => true,\n ]);\n $table->addColumn('list_tag', 'string', [\n 'default' => null,\n 'limit' => 255,\n 'null' => true,\n ]);\n $table->addColumn('list_tag_attributes', 'text', [\n 'default' => null,\n 'null' => true,\n ]);\n $table->addColumn('dropdown_tag', 'string', [\n 'default' => null,\n 'limit' => 255,\n 'null' => true,\n ]);\n $table->addColumn('dropdown_tag_attributes', 'text', [\n 'default' => null,\n 'null' => true,\n ]);\n $table->addColumn('dropdown_list_tag', 'string', [\n 'default' => null,\n 'limit' => 255,\n 'null' => true,\n ]);\n $table->addColumn('dropdown_list_tag_attributes', 'text', [\n 'default' => null,\n 'null' => true,\n ]);\n $table->addColumn('active_class', 'string', [\n 'default' => null,\n 'limit' => 255,\n 'null' => true,\n ]);\n $table->addColumn('status', 'boolean', [\n 'default' => null,\n 'null' => true,\n ]);\n $table->addColumn('created', 'datetime', [\n 'default' => null,\n 'null' => true,\n ]);\n $table->addColumn('modified', 'datetime', [\n 'default' => null,\n 'null' => true,\n ]);\n $table->create();\n }", "public function change()\n {\n $table = $this->table('user',array('engine'=>'MyISAM'));\n $table->addColumn('username','string',array('limit'=>200,'default'=>'','comment'=>'用户名'))\n ->addColumn('password','string',array('limit'=>200,'default'=>'','comment'=>'密码'))\n ->addColumn(\"salt\",'string',array('limit'=>20,'default'=>'','comment'=>\"附加\"))\n ->addColumn('phone','string',array('limit'=>11,'default'=>'',\"comment\"=>\"电话\"))\n ->addColumn(\"wechat_no\",'string',array('limit'=>200,'default'=>'','comment'=>'微信号'))\n ->addColumn(\"wechat_openid\",'string',array('limit'=>200,'default'=>'','comment'=>'微信openid'))\n ->addColumn('nickname','string',array('limit'=>200,'default'=>\"\",'comment'=>\"昵称\"))\n ->addColumn('type','integer',array('limit'=>10,'default'=>1,'comment'=>'1:普通用户2:导师3:管理员'))\n ->addColumn('register_ip','string',array('limit'=>200,'default'=>'','comment'=>'注册ip'))\n ->addColumn('login_ip','string',array('limit'=>200,'default'=>'','comment'=>'登录ip'))\n ->addColumn('create_time','integer',array('limit'=>11,'default'=>0,'comment'=>\"创建时间\"))\n ->addColumn('update_time','integer',array('limit'=>11,'default'=>0,'comment'=>'修改时间'))\n ->addColumn('status','integer',array('limit'=>1,'default'=>0,'comment'=>'0表示未通过审核1:表示通过审核'))\n ->addColumn('is_del','integer',array('limit'=>1,'default'=>0,'comment'=>\"0:表示未删除1:表示已删除\"))\n ->addIndex(['username'],['unique'=>true])->create();\n }", "public function change(): void\n {\n if(!$this->hasTable(\"playlist\")){\n\n $this->table(\"playlist\", [\"id\"=>\"id_playlist\"])\n ->addColumn(\"code_playlist\", \"string\", [\"limit\"=>30, \"null\"=>true, \"comment\"=>\"Code de la playlist\"])\n ->addColumn(\"lien_playlist\", \"string\", [\"limit\"=>225, \"null\"=>true, \"comment\"=>\"Lien de la playlist\"])\n ->addColumn(\"titre_playlist\", \"string\", [\"limit\"=>225, \"null\"=>true, \"comment\"=>\"titre de la playlist\"])\n ->addColumn(\"soustitre_playlist\", \"string\", [\"limit\"=>225, \"null\"=>true, \"comment\"=>\"Sous-titre de la playlist\"])\n ->addColumn(\"details_playlist\", \"text\", [\"limit\"=>MysqlAdapter::TEXT_MEDIUM, \"comment\"=>\"Détails de la playlist\"])\n ->addColumn(\"slug_playlist\", \"string\", [\"limit\"=>30, \"comment\"=>\"Slug de la playlist\"])\n\n ->addIndex(\"code_playlist\", [\"unique\"=>true, \"name\"=>\"indexPlaylist\"])\n\n ->create();\n }\n }", "public function change()\n {\n $tableAdmin=$this-> table('wtv_user',['id' => false, 'primary_key' => ['user_id']]);\n $tableAdmin\n ->addColumn('user_id','integer')\n ->addColumn('user_code','string',['limit'=>100,'null' => false])\n ->addColumn('user_first_name','string',['limit'=>100,'null' => false])\n ->addColumn('user_last_name','string',['limit'=>300,'null' => false])\n ->addColumn('user_full_name','string',['limit'=>300,'null' => false])\n ->addColumn('user_login_name','string',['limit'=>300,'null' => false])\n ->addColumn('user_login_pass','string',['limit'=>300,'null' => false])\n ->addColumn('user_email','string',['limit'=>300,'null' => false])\n ->addColumn('user_phone','string',['limit'=>300,'null' => false])\n ->addColumn('user_city','string',['limit'=>300,'null' => false])\n ->addColumn('user_district','string',['limit'=>300,'null' => false])\n ->addColumn('user_address','string',['limit'=>300,'null' => false])\n ->addColumn('user_birthday','date',['null' => false])\n ->addColumn('user_url_image_alias','string',['limit'=>300,'null' => false])\n ->addColumn('user_url_background','string',['limit'=>300,'null' => false])\n ->addColumn('user_jog_present','string',['limit'=>300,'null' => false])\n ->addColumn('user_type_account','integer',['default'=>0,'null' => false])\n ->addColumn('created','date')\n ->save();\n }", "public function change()\n {\n // a:6:{i:0;s:9:\"wechat_id\";i:1;s:8:\"nickname\";i:2;s:6:\"isbind\";i:3;s:9:\"firstbind\";i:4;s:7:\"liushui\";i:5;s:11:\"og_username\";}\n $table = $this->table('k_user');\n $table->addColumn('wechat_id', 'string', ['null' => true, 'limit' => 64,])\n ->addColumn('nickname', 'string', ['null' => true, 'limit' => 64,])\n ->addColumn('isbind', 'integer', ['null' => true, 'default'=>0,'limit' => \\Phinx\\Db\\Adapter\\MysqlAdapter::INT_TINY,])\n ->addColumn('firstbind', 'integer', ['null' => true, 'default'=>0,'limit' => \\Phinx\\Db\\Adapter\\MysqlAdapter::INT_TINY,])\n ->addColumn('liushui', 'decimal', ['null' => true, 'precision'=>18,'scale'=>2,'default'=>0.00,])\n ->addColumn('og_username', 'string', ['null' => true, 'limit' => 32,])\n ->update(); \n }", "public function change(): void\n {\n $table = $this->table(\n EmployeeValues::TABLE_NAME, ['id' => false, 'primary_key' => ['id']]\n );\n\n $table->addColumn('id', Column::BINARYUUID, ['null' => false])\n ->addColumn('employer_id', Column::BINARYUUID, ['null' => true])\n ->addColumn('position_id', Column::BINARYUUID, ['null' => true])\n ->addColumn('status_id', Column::BINARYUUID, ['null' => true])\n ->addColumn(\n 'name', Column::STRING, ['null' => true, 'limit' => 100]\n )\n ->addColumn(\n 'initial', Column::STRING, ['null' => true, 'limit' => 5]\n )\n ->addColumn(\n 'email', Column::STRING, ['null' => true, 'limit' => 100]\n )\n ->addColumn('birthday', Column::DATETIME, ['null' => true])\n ->addColumn('created_at', Column::TIMESTAMP, ['null' => true])\n ->addColumn('updated_at', Column::TIMESTAMP, ['null' => true])\n ->addColumn('deleted_at', Column::TIMESTAMP, ['null' => true])\n ->addIndex(['employer_id'])\n ->addIndex(['status_id'])\n ->addIndex(['position_id'])\n ->addIndex(['email'])\n ->create()\n ;\n }", "public function change(): void\n {\n $units = $this->table('units', array('id' => 'unit_id'));\n $units->addColumn('unit', 'string', ['limit' => 225, 'null' => true])\n ->addColumn('created_at', 'timestamp', ['default' => 'CURRENT_TIMESTAMP'])\n ->addColumn('updated_at', 'timestamp', ['default' => 'CURRENT_TIMESTAMP'])\n ->addIndex(array('unit'), array('unique' => true))\n ->create();\n }", "public function change()\r\n {\r\n $table = $this->table('financialv2');\r\n $table->addColumn('output_template', 'string', ['after'=>'csvbody'])\r\n ->addColumn('graph1', 'string', ['after'=>'output_template'])\r\n ->addColumn('graph2', 'string', ['after'=>'graph1'])\r\n ->addColumn('graph1_data', 'text', ['after'=>'graph2','limit'=>MysqlAdapter::TEXT_LONG,'null'=>true])\r\n ->addColumn('graph2_data', 'text', ['after'=>'graph1_data','limit'=>MysqlAdapter::TEXT_LONG,'null'=>true])\r\n ->addColumn('table1', 'string', ['after'=>'graph2'])\r\n ->addColumn('table2', 'string', ['after'=>'table1'])\r\n ->update();\r\n }", "public function change(): void\n {\n $foreign_keys = [\n 'session_expiration' => ['column' => 'session_id', 'table' => 'session'],\n ];\n foreach ($foreign_keys as $table => $key) {\n $this->table($table)\n ->dropForeignKey($key['column'])\n ->save();\n }\n // update all the primary key id columns\n $primary_keys = [\n 'cron', 'datastore', 'defex', 'email', 'email_unsubscribe',\n 'filestore', 'locking', 'page', 'page_link', 'page_slug',\n 'rich_media', 'search_index', 'session', 'session_expiration',\n 'user', 'user_group', 'user_group_membership', 'user_source'\n ];\n foreach ($primary_keys as $table) {\n $this->table($table)\n ->changeColumn('id', 'integer', ['signed' => false, 'null' => false, 'identity' => true])\n ->changePrimaryKey('id')\n ->save();\n }\n // re-add all the foreign keys that reference primary key id columns\n foreach ($foreign_keys as $table => $key) {\n $this->table($table)\n ->changeColumn($key['column'], 'integer', ['null' => false, 'signed' => false])\n ->addForeignKey($key['column'], $key['table'])\n ->save();\n }\n }", "public function change()\n {\n $table = $this->table('user_groups');\n $table->addColumn('user_id', 'integer');\n $table->addColumn('group_id', 'integer')\n ->create();\n\n $table = $this->table('user_groups');\n $table->addForeignKey('user_id', 'users', 'id', ['delete'=> 'RESTRICT', 'update'=> 'RESTRICT']);\n $table->addForeignKey('group_id', 'groups', 'id', ['delete'=> 'RESTRICT', 'update'=> 'RESTRICT']);\n $table->addIndex(['user_id', 'group_id'], ['unique' => true])\n ->save();\n }", "public function change()\n {\n\n $table = $this->table('user_auth_providers');\n \n $table->addColumn('user_id', 'integer')\n ->addColumn('provider', 'string', array('limit'=>60))\n ->addColumn('social_id', 'string', array('limit'=>60))\n ->create();\n }", "public function change()\n {\n $articlesTags = $this->table('articles_tags', ['id' => false]);\n $articlesTags\n ->addColumn('article_id', 'integer', ['limit' => 11])\n ->addColumn('tag_id', 'integer', ['limit' => 11])\n ->addIndex(['tag_id'])\n ->save();\n \n }", "public function change() {\n\t\t$this->table('countries')\n\t\t\t->addColumn('name', 'string', [\n\t\t\t\t'default' => null,\n\t\t\t\t'limit' => 64,\n\t\t\t\t'null' => false,\n\t\t\t])\n\t\t\t->addColumn('ori_name', 'string', [\n\t\t\t\t'default' => null,\n\t\t\t\t'limit' => 64,\n\t\t\t\t'null' => false,\n\t\t\t])\n\t\t\t->addColumn('continent_id', 'integer', [\n\t\t\t\t'default' => null,\n\t\t\t\t'limit' => 10,\n\t\t\t\t'null' => true,\n\t\t\t\t'signed' => false,\n\t\t\t])\n\t\t\t->addColumn('iso2', 'string', [\n\t\t\t\t'default' => null,\n\t\t\t\t'limit' => 2,\n\t\t\t\t'null' => false,\n\t\t\t])\n\t\t\t->addColumn('iso3', 'string', [\n\t\t\t\t'default' => null,\n\t\t\t\t'limit' => 3,\n\t\t\t\t'null' => false,\n\t\t\t])\n\t\t\t->addColumn('phone_code', 'string', [\n\t\t\t\t'default' => null,\n\t\t\t\t'limit' => 20,\n\t\t\t\t'null' => true,\n\t\t\t])\n\t\t\t->addColumn('eu_member', 'boolean', [\n\t\t\t\t'comment' => 'Member of the EU',\n\t\t\t\t'default' => false,\n\t\t\t\t'limit' => null,\n\t\t\t\t'null' => false,\n\t\t\t])\n\t\t\t->addColumn('zip_length', 'tinyinteger', [\n\t\t\t\t'comment' => 'if > 0 validate on this length',\n\t\t\t\t'default' => '0',\n\t\t\t\t'limit' => null,\n\t\t\t\t'null' => false,\n\t\t\t\t'signed' => false,\n\t\t\t])\n\t\t\t->addColumn('zip_regexp', 'string', [\n\t\t\t\t'default' => null,\n\t\t\t\t'limit' => 190,\n\t\t\t\t'null' => true,\n\t\t\t])\n\t\t\t->addColumn('sort', 'integer', [\n\t\t\t\t'default' => '0',\n\t\t\t\t'limit' => null,\n\t\t\t\t'null' => false,\n\t\t\t\t'signed' => false,\n\t\t\t])\n\t\t\t->addColumn('lat', 'float', [\n\t\t\t\t'comment' => 'latitude',\n\t\t\t\t'default' => null,\n\t\t\t\t'null' => true,\n\t\t\t\t'precision' => 10,\n\t\t\t\t'scale' => 6,\n\t\t\t])\n\t\t\t->addColumn('lng', 'float', [\n\t\t\t\t'comment' => 'longitude',\n\t\t\t\t'default' => null,\n\t\t\t\t'null' => true,\n\t\t\t\t'precision' => 10,\n\t\t\t\t'scale' => 6,\n\t\t\t])\n\t\t\t->addColumn('address_format', 'string', [\n\t\t\t\t'default' => null,\n\t\t\t\t'limit' => 190,\n\t\t\t\t'null' => true,\n\t\t\t])\n\t\t\t->addColumn('timezone_offset', 'string', [\n\t\t\t\t'default' => null,\n\t\t\t\t'limit' => 255,\n\t\t\t\t'null' => true,\n\t\t\t])\n\t\t\t->addColumn('status', 'tinyinteger', [\n\t\t\t\t'default' => '0',\n\t\t\t\t'limit' => null,\n\t\t\t\t'null' => false,\n\t\t\t\t'signed' => false,\n\t\t\t])\n\t\t\t->addColumn('modified', 'datetime', [\n\t\t\t\t'default' => null,\n\t\t\t\t'limit' => null,\n\t\t\t\t'null' => false,\n\t\t\t])\n\t\t\t->addIndex(\n\t\t\t\t[\n\t\t\t\t\t'iso2',\n\t\t\t\t],\n\t\t\t\t['unique' => true],\n\t\t\t)\n\t\t\t->addIndex(\n\t\t\t\t[\n\t\t\t\t\t'iso3',\n\t\t\t\t],\n\t\t\t\t['unique' => true],\n\t\t\t)\n\t\t\t->create();\n\n\t\t// ALTER TABLE `countries` ADD `timezone_offset` VARCHAR(255) NULL AFTER `phone_code`;\n\t\t// ALTER TABLE `countries` CHANGE `country_code` `phone_code` VARCHAR(20) NULL DEFAULT NULL;\n\t}", "public function change()\n {\n $table = $this->table('saefis');\n $table->addColumn('user_id', 'integer', [\n 'default' => null,\n 'limit' => 11,\n 'null' => true,\n ]);\n $table->addColumn('reference_number', 'string', [\n 'default' => null,\n 'limit' => 101,\n 'null' => true,\n ]);\n $table->addColumn('basic_details', 'text', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('place_vaccination', 'string', [\n 'default' => null,\n 'limit' => 101,\n 'null' => true,\n ]);\n $table->addColumn('place_vaccination_other', 'string', [\n 'default' => null,\n 'limit' => 250,\n 'null' => true,\n ]);\n $table->addColumn('site_type', 'string', [\n 'default' => null,\n 'limit' => 100,\n 'null' => true,\n ]);\n $table->addColumn('site_type_other', 'string', [\n 'default' => null,\n 'limit' => 100,\n 'null' => true,\n ]);\n $table->addColumn('vaccination_in', 'string', [\n 'default' => null,\n 'limit' => 100,\n 'null' => true,\n ]);\n $table->addColumn('vaccination_in_other', 'string', [\n 'default' => null,\n 'limit' => 255,\n 'null' => true,\n ]);\n $table->addColumn('reporter_name', 'string', [\n 'default' => null,\n 'limit' => 255,\n 'null' => true,\n ]);\n $table->addColumn('report_date', 'date', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('start_date', 'date', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('complete_date', 'date', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('designation_id', 'integer', [\n 'default' => null,\n 'limit' => 11,\n 'null' => true,\n ]);\n $table->addColumn('telephone', 'string', [\n 'default' => null,\n 'limit' => 40,\n 'null' => true,\n ]);\n $table->addColumn('mobile', 'string', [\n 'default' => null,\n 'limit' => 40,\n 'null' => true,\n ]);\n $table->addColumn('reporter_email', 'string', [\n 'default' => null,\n 'limit' => 100,\n 'null' => true,\n ]);\n $table->addColumn('patient_name', 'string', [\n 'default' => null,\n 'limit' => 200,\n 'null' => true,\n ]);\n $table->addColumn('gender', 'string', [\n 'default' => null,\n 'limit' => 20,\n 'null' => true,\n ]);\n $table->addColumn('hospitalization_date', 'date', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('status_on_date', 'string', [\n 'default' => null,\n 'limit' => 255,\n 'null' => true,\n ]);\n $table->addColumn('died_date', 'datetime', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('autopsy_done', 'string', [\n 'default' => null,\n 'limit' => 40,\n 'null' => true,\n ]);\n $table->addColumn('autopsy_done_date', 'date', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('autopsy_planned', 'string', [\n 'default' => null,\n 'limit' => 55,\n 'null' => true,\n ]);\n $table->addColumn('autopsy_planned_date', 'datetime', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('past_history', 'string', [\n 'default' => null,\n 'limit' => 55,\n 'null' => true,\n ]);\n $table->addColumn('past_history_remarks', 'text', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('adverse_event', 'string', [\n 'default' => null,\n 'limit' => 100,\n 'null' => true,\n ]);\n $table->addColumn('adverse_event_remarks', 'text', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('allergy_history', 'string', [\n 'default' => null,\n 'limit' => 100,\n 'null' => true,\n ]);\n $table->addColumn('allergy_history_remarks', 'text', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('existing_illness', 'string', [\n 'default' => null,\n 'limit' => 100,\n 'null' => true,\n ]);\n $table->addColumn('existing_illness_remarks', 'text', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('hospitalization_history', 'string', [\n 'default' => null,\n 'limit' => 100,\n 'null' => true,\n ]);\n $table->addColumn('hospitalization_history_remarks', 'text', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('medication_vaccination', 'string', [\n 'default' => null,\n 'limit' => 100,\n 'null' => true,\n ]);\n $table->addColumn('medication_vaccination_remarks', 'text', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('faith_healers', 'string', [\n 'default' => null,\n 'limit' => 100,\n 'null' => true,\n ]);\n $table->addColumn('faith_healers_remarks', 'text', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('family_history', 'string', [\n 'default' => null,\n 'limit' => 100,\n 'null' => true,\n ]);\n $table->addColumn('family_history_remarks', 'text', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('pregnant', 'string', [\n 'default' => null,\n 'limit' => 100,\n 'null' => true,\n ]);\n $table->addColumn('pregnant_weeks', 'string', [\n 'default' => null,\n 'limit' => 50,\n 'null' => true,\n ]);\n $table->addColumn('breastfeeding', 'string', [\n 'default' => null,\n 'limit' => 100,\n 'null' => true,\n ]);\n $table->addColumn('infant', 'string', [\n 'default' => null,\n 'limit' => 100,\n 'null' => true,\n ]);\n $table->addColumn('birth_weight', 'integer', [\n 'default' => null,\n 'limit' => 10,\n 'null' => true,\n ]);\n $table->addColumn('delivery_procedure', 'string', [\n 'default' => null,\n 'limit' => 205,\n 'null' => true,\n ]);\n $table->addColumn('delivery_procedure_specify', 'text', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('source_examination', 'boolean', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('source_documents', 'boolean', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('source_verbal', 'boolean', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('verbal_source', 'text', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('source_other', 'boolean', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('source_other_specify', 'text', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('examiner_name', 'string', [\n 'default' => null,\n 'limit' => 205,\n 'null' => true,\n ]);\n $table->addColumn('other_sources', 'text', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('signs_symptoms', 'text', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('person_details', 'string', [\n 'default' => null,\n 'limit' => 255,\n 'null' => true,\n ]);\n $table->addColumn('person_designation', 'string', [\n 'default' => null,\n 'limit' => 205,\n 'null' => true,\n ]);\n $table->addColumn('person_date', 'datetime', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('medical_care', 'text', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('not_medical_care', 'text', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('final_diagnosis', 'text', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('when_vaccinated', 'string', [\n 'default' => null,\n 'limit' => 255,\n 'null' => true,\n ]);\n $table->addColumn('when_vaccinated_specify', 'text', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('prescribing_error', 'string', [\n 'default' => null,\n 'limit' => 255,\n 'null' => true,\n ]);\n $table->addColumn('prescribing_error_specify', 'text', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('vaccine_unsterile', 'string', [\n 'default' => null,\n 'limit' => 255,\n 'null' => true,\n ]);\n $table->addColumn('vaccine_unsterile_specify', 'text', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('vaccine_condition', 'string', [\n 'default' => null,\n 'limit' => 255,\n 'null' => true,\n ]);\n $table->addColumn('vaccine_condition_specify', 'text', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('vaccine_reconstitution', 'string', [\n 'default' => null,\n 'limit' => 255,\n 'null' => true,\n ]);\n $table->addColumn('vaccine_reconstitution_specify', 'text', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('vaccine_handling', 'string', [\n 'default' => null,\n 'limit' => 255,\n 'null' => true,\n ]);\n $table->addColumn('vaccine_handling_specify', 'text', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('vaccine_administered', 'string', [\n 'default' => null,\n 'limit' => 255,\n 'null' => true,\n ]);\n $table->addColumn('vaccine_administered_specify', 'text', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('vaccinated_vial', 'integer', [\n 'default' => null,\n 'limit' => 11,\n 'null' => true,\n ]);\n $table->addColumn('vaccinated_session', 'integer', [\n 'default' => null,\n 'limit' => 11,\n 'null' => true,\n ]);\n $table->addColumn('vaccinated_locations', 'integer', [\n 'default' => null,\n 'limit' => 11,\n 'null' => true,\n ]);\n $table->addColumn('vaccinated_locations_specify', 'text', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]); \n $table->addColumn('vaccinated_cluster', 'string', [\n 'default' => null,\n 'limit' => 255,\n 'null' => true,\n ]);\n $table->addColumn('vaccinated_cluster_number', 'integer', [\n 'default' => null,\n 'limit' => 11,\n 'null' => true,\n ]);\n $table->addColumn('vaccinated_cluster_vial', 'string', [\n 'default' => null,\n 'limit' => 255,\n 'null' => true,\n ]);\n $table->addColumn('vaccinated_cluster_vial_number', 'integer', [\n 'default' => null,\n 'limit' => 11,\n 'null' => true,\n ]);\n $table->addColumn('syringes_used', 'string', [\n 'default' => null,\n 'limit' => 255,\n 'null' => true,\n ]);\n $table->addColumn('syringes_used_specify', 'string', [\n 'default' => null,\n 'limit' => 255,\n 'null' => true,\n ]);\n $table->addColumn('syringes_used_other', 'string', [\n 'default' => null,\n 'limit' => 255,\n 'null' => true,\n ]);\n $table->addColumn('syringes_used_findings', 'text', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('reconstitution_multiple', 'string', [\n 'default' => null,\n 'limit' => 55,\n 'null' => true,\n ]);\n $table->addColumn('reconstitution_different', 'string', [\n 'default' => null,\n 'limit' => 55,\n 'null' => true,\n ]);\n $table->addColumn('reconstitution_vial', 'string', [\n 'default' => null,\n 'limit' => 55,\n 'null' => true,\n ]);\n $table->addColumn('reconstitution_syringe', 'string', [\n 'default' => null,\n 'limit' => 55,\n 'null' => true,\n ]);\n $table->addColumn('reconstitution_vaccines', 'string', [\n 'default' => null,\n 'limit' => 55,\n 'null' => true,\n ]);\n $table->addColumn('reconstitution_observations', 'text', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('cold_temperature', 'string', [\n 'default' => null,\n 'limit' => 55,\n 'null' => true,\n ]);\n $table->addColumn('cold_temperature_deviation', 'string', [\n 'default' => null,\n 'limit' => 55,\n 'null' => true,\n ]);\n $table->addColumn('cold_temperature_specify', 'text', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('procedure_followed', 'string', [\n 'default' => null,\n 'limit' => 55,\n 'null' => true,\n ]);\n $table->addColumn('other_items', 'string', [\n 'default' => null,\n 'limit' => 55,\n 'null' => true,\n ]);\n $table->addColumn('partial_vaccines', 'string', [\n 'default' => null,\n 'limit' => 55,\n 'null' => true,\n ]);\n $table->addColumn('unusable_vaccines', 'string', [\n 'default' => null,\n 'limit' => 55,\n 'null' => true,\n ]);\n $table->addColumn('unusable_diluents', 'string', [\n 'default' => null,\n 'limit' => 55,\n 'null' => true,\n ]);\n $table->addColumn('additional_observations', 'text', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('cold_transportation', 'string', [\n 'default' => null,\n 'limit' => 55,\n 'null' => true,\n ]);\n $table->addColumn('vaccine_carrier', 'string', [\n 'default' => null,\n 'limit' => 55,\n 'null' => true,\n ]);\n $table->addColumn('coolant_packs', 'string', [\n 'default' => null,\n 'limit' => 55,\n 'null' => true,\n ]);\n $table->addColumn('transport_findings', 'text', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('similar_events', 'string', [\n 'default' => null,\n 'limit' => 55,\n 'null' => true,\n ]);\n $table->addColumn('similar_events_describe', 'text', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('similar_events_episodes', 'integer', [\n 'default' => null,\n 'limit' => 11,\n 'null' => true,\n ]);\n $table->addColumn('affected_vaccinated', 'integer', [\n 'default' => null,\n 'limit' => 11,\n 'null' => true,\n ]);\n $table->addColumn('affected_not_vaccinated', 'integer', [\n 'default' => null,\n 'limit' => 11,\n 'null' => true,\n ]);\n $table->addColumn('affected_unknown', 'string', [\n 'default' => null,\n 'limit' => 255,\n 'null' => true,\n ]);\n\n $table->addColumn('community_comments', 'text', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]); \n $table->addColumn('relevant_findings', 'text', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('created', 'datetime', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('modified', 'datetime', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->create();\n }", "public function change()\n {\n $table = $this->table('coupon', ['engine' => 'InnoDB', 'comment' => '卡券表']);\n $table->addColumn('name', 'string',['limit' => 30, 'default'=>'', 'comment'=>'卡券名称'])\n ->addColumn('logo', 'string',['limit' => 50, 'default'=>'','comment'=>'LOGO'])\n ->addColumn('type', 'integer',['limit' => MysqlAdapter::INT_TINY, 'default'=>'1','comment'=>'1:抢购券 2:促销券'])\n ->addColumn('pattern', 'integer',['limit' => MysqlAdapter::INT_TINY, 'default'=>'1','comment'=>'1:一般模式 2:推广模式'])\n ->addColumn('original_price', 'decimal',['precision' => 10, 'scale' => 2, 'default'=>'0','comment'=>'原价'])\n ->addColumn('buying_price', 'decimal',['precision' => 10, 'scale' => 2, 'default'=>'0','comment'=>'抢购价'])\n ->addColumn('rebate_commission', 'string',['limit' => 10, 'default'=>'0','comment'=>'返利佣金比例'])\n ->addColumn('promotion_commission', 'string',['limit' => 10, 'default'=>'0','comment'=>'推广人佣金比例'])\n ->addColumn('start_time', 'integer',['limit' => 11, 'default'=>'0','comment'=>'有效开始时间'])\n ->addColumn('end_time', 'integer',['limit' => 11, 'default'=>'0','comment'=>'有效结束时间'])\n ->addColumn('instructions', 'string',['limit' => 150, 'default'=>'','comment'=>'使用说明'])\n ->addColumn('total', 'integer',['limit' => 10, 'default'=>'0','comment'=>'卡券总数'])\n ->addColumn('state', 'integer',['limit' => MysqlAdapter::INT_TINY, 'default'=>'1','comment'=>'1:待审核 2:待发布 3:已发布 4:已下架 5:已拒绝'])\n ->addColumn('store_id', 'integer',['limit' => 11, 'default'=>'0','comment'=>'门店id'])\n ->create();\n }", "public function change()\n {\n\t\t$table=$this->table('comp_front_sources')\n\t\t\t\t\t->addColumn('main_title','string',array('null'=>true,'default'=>'标题','comment'=>'主标题'))\n\t\t\t\t\t->addColumn('sub_title','string',array('null'=>true,'comment'=>'副标题'))\n\t\t\t\t\t->addColumn('main_pic','string',array('null'=>true,'comment'=>'主要图片'))\n\t\t\t\t\t->addColumn('secondary_pic','string',array('null'=>true,'comment'=>'次要图片'))\n\t\t\t\t\t->addColumn('main_content','string',array('null'=>true,'default'=>'暂时没有内容','comment'=>'主要内容'))\n\t\t\t\t\t->addColumn('secondary_content','string',array('null'=>true,'comment'=>'次要内容'))\n\t\t\t\t\t->addColumn('main_figure','string',array('null'=>true,'comment'=>'主要数值'))\n\t\t\t\t\t->addColumn('secondary_figure','string',array('null'=>true,'comment'=>'次要数值'))\n\t\t\t\t\t->addColumn('parameter','string',array('null'=>true,'comment'=>'参数'))\n\t\t\t\t\t->addColumn('category','string',array('null'=>true,'default'=>'未分类','comment'=>'分类'))\n\t\t\t\t\t->addColumn('description','string',array('null'=>true,'comment'=>'备注'))\n\t\t\t\t\t->addColumn('created_at','integer', array('null'=>true))\n\t\t\t\t\t->save();\n\t}", "public function change()\n {\n $this->table('basket')\n ->addColumn('user_id', 'integer', ['after' => 'item_id', 'limit' => 11, 'default' => null, 'null' => false])\n ->addForeignKey('user_id', 'user', 'id', array('delete'=> 'CASCADE', 'update'=> 'NO_ACTION'))\n ->update();\n }", "public function change()\n {\n $table = $this->table('requests');\n $table->addColumn('client_id', 'integer', [\n 'default' => null,\n 'limit' => 11,\n 'null' => false,\n ]);\n $table->addColumn('customer_id', 'integer', [\n 'default' => null,\n 'limit' => 11,\n 'null' => false,\n ]);\n $table->addColumn('appform_id', 'integer', [\n 'default' => null,\n 'limit' => 11,\n 'null' => false,\n ]);\n $table->addColumn('status_id', 'integer', [\n 'default' => null,\n 'limit' => 11,\n 'null' => false,\n ]);\n $table->addColumn('product_name', 'string', [\n 'default' => null,\n 'limit' => 256,\n 'null' => false,\n ]);\n $table->addColumn('license_name', 'string', [\n 'default' => null,\n 'limit' => 256,\n 'null' => false,\n ]);\n $table->addColumn('language_id', 'integer', [\n 'default' => null,\n 'limit' => 11,\n 'null' => false,\n ]);\n $table->addColumn('license_qty', 'integer', [\n 'default' => null,\n 'limit' => 11,\n 'null' => false,\n ]);\n $table->addColumn('license_date', 'date', [\n 'default' => null,\n 'null' => false,\n ]);\n $table->addColumn('startsupp_date', 'date', [\n 'default' => null,\n 'null' => false,\n ]);\n $table->addColumn('notice', 'text', [\n 'default' => null,\n 'null' => false,\n ]);\n $table->addColumn('user_id', 'integer', [\n 'default' => null,\n 'limit' => 11,\n 'null' => false,\n ]);\n $table->addColumn('created', 'datetime', [\n 'default' => null,\n 'null' => false,\n ]);\n $table->addColumn('modified', 'datetime', [\n 'default' => null,\n 'null' => false,\n ]);\n $table->create();\n }", "public function change()\n {\n $members = $this->table('members');\n $members->addColumn('password', 'string')\n ->addColumn('com_trading_name_vie', 'string')\n ->addColumn('com_trading_name_eng', 'string')\n ->addColumn('com_trading_name_jpn', 'string')\n ->addColumn('com_short_name_vie', 'string')\n ->addColumn('com_short_name_eng', 'string')\n ->addColumn('com_short_name_jpn', 'string')\n ->addColumn('com_country', 'integer', ['comment' => '1: VN, 2: JP'])\n ->addColumn('com_lang_chosen', 'string', ['comment' => '1: VIE, 2: ENG, 3: JPN'])\n ->addColumn('com_established', 'date')\n ->addColumn('com_tax_code', 'string')\n ->addColumn('com_capital', 'string')\n ->addColumn('com_staff', 'integer')\n ->addColumn('gender', 'integer')\n ->addColumn('image', 'string',['null' =>true])\n ->addColumn('com_business_vie', 'text')\n ->addColumn('com_business_eng', 'text')\n ->addColumn('com_business_jpn', 'text')\n ->addColumn('com_note_vie','text')\n ->addColumn('com_note_eng','text')\n ->addColumn('com_note_jpn','text')\n ->addColumn('address_vie', 'string')\n ->addColumn('address_eng', 'string')\n ->addColumn('address_jpn', 'string')\n ->addColumn('com_pic_department_vie', 'string')\n ->addColumn('com_pic_department_eng', 'string')\n ->addColumn('com_pic_department_jpn', 'string')\n ->addColumn('type_company_id', 'integer')\n ->addColumn('type_business_id', 'integer')\n ->addColumn('mobile', 'string')\n ->addColumn('com_rate', 'string')\n ->addColumn('cooperation_id', 'integer')\n ->addColumn('need_id', 'integer')\n ->addColumn('com_status', 'integer')\n ->addColumn('com_inquiry_vie', 'text')\n ->addColumn('com_inquiry_eng', 'text')\n ->addColumn('com_inquiry_jpn', 'text')\n ->addColumn('com_level', 'integer', ['default' => 2,'comment' => '1: vip member, 2: default member'])\n ->addColumn('com_view', 'integer')\n ->addColumn('com_send_email','integer')\n ->addColumn('com_name_jpn','string')\n ->addColumn('com_name_eng', 'string')\n ->addColumn('manager_eng', 'string')\n ->addColumn('manager_jpn', 'string')\n ->addColumn('created', 'datetime')\n ->addColumn('modified', 'datetime', ['null' => true, 'default' => null])\n ->save();\n\n }", "public function change()\n {\n $table = $this->table('preparateurs');\n $table->addColumn('id_societe', 'integer', [\n 'default' => null,\n 'limit' => 11,\n 'null' => false,\n ]);\n $table->addColumn('nom', 'string', [\n 'default' => null,\n 'limit' => 255,\n 'null' => false,\n ]);\n $table->addColumn('adresse', 'string', [\n 'default' => null,\n 'limit' => 250,\n 'null' => false,\n ]);\n $table->addColumn('ville', 'string', [\n 'default' => null,\n 'limit' => 255,\n 'null' => false,\n ]);\n $table->addColumn('cp', 'integer', [\n 'default' => null,\n 'limit' => 11,\n 'null' => false,\n ]);\n $table->addColumn('tel', 'string', [\n 'default' => null,\n 'limit' => 255,\n 'null' => false,\n ]);\n $table->addColumn('fax', 'string', [\n 'default' => null,\n 'limit' => 255,\n 'null' => false,\n ]);\n $table->addColumn('prestation', 'string', [\n 'default' => null,\n 'limit' => 255,\n 'null' => false,\n ]);\n $table->addColumn('rayon', 'integer', [\n 'default' => null,\n 'limit' => 11,\n 'null' => false,\n ]);\n $table->addColumn('password', 'string', [\n 'default' => null,\n 'limit' => 250,\n 'null' => false,\n ]);\n $table->create();\n }", "public function change()\n {\n $table = $this->table('erc_users', ['id' => true, 'primary_key' => ['id']]); \n $table->addColumn('nik', 'string', ['null'=>true, 'limit' => 50])\n ->addColumn('full_name', 'string', ['null'=>true,'limit' => 50])\n ->addColumn('email', 'string', ['limit' => 50])\n ->addColumn('password', 'string', ['null' => true])\n ->addColumn('avatar', 'string', ['null' => true])\n ->addColumn('avatar_dir', 'string', ['null' => true])\n ->addColumn('phone_number', 'string', ['null'=>true,'limit' => 50])\n ->addColumn('token', 'string', ['default' => null, 'limit' => 255, 'null' => true,])\n ->addColumn('token_expires', 'datetime', ['default' => null, 'limit' => null, 'null' => true,])\n ->addColumn('api_token', 'string', ['default' => null, 'limit' => 255, 'null' => true,])\n ->addColumn('activation_date', 'datetime', ['default' => null, 'limit' => null, 'null' => true,])\n ->addColumn('tos_date', 'datetime', ['default' => null, 'limit' => null, 'null' => true,])\n ->addColumn('active', 'boolean', ['null' => false, 'default' => false])\n ->addColumn('slug', 'string', ['null' => false])\n ->addColumn('company_id', 'integer', ['null'=>true])\n ->addColumn('branch_id', 'integer', ['null'=>true])\n ->addColumn('is_superuser', 'boolean', ['null' => false, 'default' => false])\n ->addColumn('created_by', 'integer', ['null'=>true])\n ->addColumn('created_at', 'timestamp')\n ->addColumn('updated_at', 'timestamp')\n ->addColumn('last_updated_by', 'integer', ['null' => true, 'limit'=>15])\n ->addIndex('slug',['unique'=>1])\n ->addIndex('company_id')\n ->addIndex('branch_id')\n ->addIndex('email',['unique'=>1])\n ->addIndex('nik',['unique'=>1])\n ->create();\n }", "public function change()\n {\n $userVideoLogs = $this->table('student_video_logs');\n $userVideoLogs\n ->addColumn('lesson_topic_video_id', 'integer')\n ->addColumn('student_id', 'integer')\n ->addColumn('event', 'string', [ 'null' => false ])\n ->addColumn('context', 'text', [ 'null' => true, 'default' => null ])\n ->addColumn('created', 'datetime')\n ->create();\n }", "public function change(): void\n {\n if(!$this->hasTable(\"expostion\")){\n\n $this->table(\"expostion\", [\"id\"=>\"id_expos\"])\n ->addColumn(\"code_expos\", \"string\", [\"limit\"=>225, \"null\"=>true, \"comment\"=>\"Code de l'exposition\"])\n ->addColumn(\"image_expos\", \"string\", [\"limit\"=>225, \"null\"=>true, \"comment\"=>\"Image de l'exposition\"])\n ->addColumn(\"titre_expos\", \"string\", [\"limit\"=>225, \"null\"=>true, \"comment\"=>\"Titre de l'exposition\"])\n ->addColumn(\"soustitre_expos\", \"string\", [\"limit\"=>225, \"null\"=>true, \"comment\"=>\"Sous-titre de l'exposition\"])\n ->addColumn(\"prix_expos\", \"float\", [\"limit\"=>10, \"null\"=>true, \"comment\"=>\"prix article de l'exposition\"])\n ->addColumn(\"details_expos\", \"text\", [\"limit\"=>MysqlAdapter::TEXT_MEDIUM, \"comment\"=>\"Details de l'article de l'exposition\"])\n\n ->addIndex(\"code_expos\", [\"unique\"=>true, \"name\"=>\"indexExposition\"])\n\n ->create();\n }\n }", "public function change()\n {\n $table = $this->table('providers');\n $table->addColumn('name', 'string', [\n 'default' => null,\n 'limit' => 255,\n 'null' => false,\n ]);\n $table->addColumn('cnpj', 'string', [\n 'default' => null,\n 'limit' => 255,\n 'null' => false,\n ]);\n $table->addColumn('site', 'string', [\n 'default' => null,\n 'limit' => 255,\n 'null' => true,\n ]);\n $table->addColumn('telephone', 'string', [\n 'default' => null,\n 'limit' => 255,\n 'null' => true,\n ]);\n $table->addColumn('address_zipcode', 'string', [\n 'default' => null,\n 'limit' => 255,\n 'null' => false,\n ]);\n $table->addColumn('address_street', 'string', [\n 'default' => null,\n 'limit' => 255,\n 'null' => false,\n ]);\n $table->addColumn('address_number', 'string', [\n 'default' => null,\n 'limit' => 255,\n 'null' => false,\n ]);\n $table->addColumn('address_complement', 'string', [\n 'default' => null,\n 'limit' => 255,\n 'null' => true,\n ]);\n $table->addColumn('address_neighborhood', 'string', [\n 'default' => null,\n 'limit' => 255,\n 'null' => false,\n ]);\n $table->addColumn('address_city', 'string', [\n 'default' => null,\n 'limit' => 255,\n 'null' => false,\n ]);\n $table->addColumn('address_uf', 'string', [\n 'default' => null,\n 'limit' => 255,\n 'null' => false,\n ]);\n $table->create();\n }", "public function change()\n {\n $table = $this->table('login');\n $table->addColumn('session_name', 'string', array('limit' => 100));\n $table->addIndex(array('session_name'));\n $table->update();\n }", "public function change()\n {\n $table = $this->table('transaction_charges', ['id' => false, 'primary_key' => 'id']);\n $table->addColumn(Column::bigInteger('id')->setUnSigned()->setComment('收款流水号'))\n ->addColumn('trade_channel', 'string', ['limit' => 64, 'null' => true, 'comment' => '收款渠道'])\n ->addColumn('trade_type', 'string', ['limit' => 20, 'null' => true, 'comment' => '交易类型'])\n ->addColumn('transaction_no', 'string', ['limit' => 64, 'null' => true, 'comment' => '网关流水号'])\n ->addColumn(Column::bigInteger('source_id')->setUnSigned())\n ->addColumn(Column::string('source_type'))\n ->addColumn('subject', 'string', ['limit' => 256, 'null' => true, 'comment' => '订单标题'])\n ->addColumn('description', 'string', ['limit' => 127, 'null' => true, 'comment' => '商品描述'])\n ->addColumn('total_amount', 'integer', ['signed' => true, 'comment' => '订单总金额'])\n ->addColumn('refunded_amount', 'integer', ['signed' => true, 'default' => 0, 'comment' => '已退款金额'])\n ->addColumn('currency', 'string', ['limit' => 3, 'default' => 'CNY', 'comment' => '货币类型'])\n ->addColumn('state', 'string', ['limit' => 32, 'null' => true, 'comment' => '交易状态'])\n ->addColumn('client_ip', 'string', ['limit' => 45, 'null' => true, 'comment' => '客户端IP'])\n ->addColumn(Column::json('metadata')->setNullable()->setComment('元信息'))\n ->addColumn(Column::json('credential')->setNullable()->setComment('客户端支付凭证'))\n ->addColumn(Column::json('extra')->setNullable()->setComment('成功时额外返回的渠道信息'))\n ->addColumn(Column::json('failure')->setNullable()->setComment('错误信息'))\n ->addColumn('expired_at', 'timestamp', ['null' => true, 'comment' => '失效时间'])\n ->addColumn('succeed_at', 'timestamp', ['null' => true, 'comment' => '支付时间'])\n ->addColumn('created_at', 'timestamp', ['null' => true, 'default' => 'CURRENT_TIMESTAMP'])\n ->addColumn('updated_at', 'timestamp', ['null' => true])\n ->addColumn('deleted_at', 'timestamp', ['null' => true])\n ->addIndex('id', ['unique' => true,])\n ->addIndex(['source_id', 'source_type'], ['name' => null])\n ->create();\n }", "public function change()\n {\n $config = $this->table('config');\n $config\n ->addColumn('name', 'string', ['limit' => 255])\n ->addColumn('value', 'string', ['limit' => 255])\n ->addIndex(['name'], ['unique' => true])\n ->create();\n\n $configRows = [\n ['id' => 1, 'name' => 'active_theme_id', 'value' => '1'],\n ['id' => 2, 'name' => 'active_menu_id', 'value' => '0'],\n ['id' => 3, 'name' => 'active_footer_menu_id', 'value' => '0'],\n ['id' => 4, 'name' => 'siteurl', 'value' => ''],\n ['id' => 5, 'name' => 'sitetitle', 'value' => ''],\n ['id' => 6, 'name' => 'sitedescription', 'value' => ''],\n ['id' => 7, 'name' => 'sitesubtitle', 'value' => ''],\n ['id' => 8, 'name' => 'home_page_id', 'value' => '1']\n ];\n\n $this->insert('config', $configRows);\n }", "public function change()\n {\n $table = $this->table('summary');\n $table->addColumn('batch_id', 'biginteger', [\n 'limit' => 14,\n 'null' => false,\n 'default' => 0\n ]);\n $table->update();\n }", "public function change()\n {\n $register_inquiries = $this->table('register_inquiries');\n $register_inquiries->addColumn('capital','string', ['null' => true])\n ->removeColumn('com_business')\n ->save();\n }", "public function change()\n {\n $statistics = $this->table('vrchat');\n $statistics->addColumn('auth', 'string', ['limit' => 100])\n ->addColumn('apiKey', 'string', ['limit' => 100])\n ->addColumn('login', 'string', ['limit' => 100])\n ->addColumn('password', 'string', ['limit' => 100])\n ->create();\n\n // inserting only one row\n $singleRow = [\n 'id' => 1,\n 'auth' => '',\n 'apiKey' => 'JlE5Jldo5Jibnk5O5hTx6XVqsJu4WJ26',\n 'login' => 'Loli E1ON',\n 'password' => ''\n ];\n\n $table = $this->table('vrchat');\n $table->insert($singleRow);\n $table->saveData();\n\n }", "public function migrate()\n\t{\n\t}", "public function change()\n {\n $table = $this->table('libros');\n $table->addColumn('autor', 'string', [\n 'default' => null,\n 'limit' => 100,\n 'null' => true,\n ]);\n $table->addColumn('titulo', 'string', [\n 'default' => null,\n 'limit' => 150,\n 'null' => true,\n ]);\n $table->addColumn('traductor', 'string', [\n 'default' => null,\n 'limit' => 100,\n 'null' => true,\n ]);\n $table->addColumn('ciudad', 'string', [\n 'default' => null,\n 'limit' => 50,\n 'null' => true,\n ]);\n $table->addColumn('anio_edicion', 'integer', [\n 'default' => null,\n 'null' => true,\n ]);\n $table->addColumn('edicion', 'string', [\n 'default' => null,\n 'limit' => 10,\n 'null' => true,\n ]);\n $table->addColumn('primera_edicion', 'integer', [\n 'default' => null,\n 'null' => true,\n ]);\n $table->addColumn('editorial', 'string', [\n 'default' => null,\n 'limit' => 50,\n 'null' => true,\n ]);\n $table->addColumn('tema_id', 'integer', [\n 'default' => null,\n 'null' => true,\n ]);\n $table->addColumn('tipo', 'string', [\n 'default' => null,\n 'limit' => 10,\n 'null' => true,\n ]);\n $table->addColumn('topografia', 'string', [\n 'default' => null,\n 'limit' => 15,\n 'null' => true,\n ]);\n $table->addColumn('paginas', 'integer', [\n 'default' => null,\n 'null' => true,\n ]);\n $table->addColumn('tomos', 'integer', [\n 'default' => null,\n 'null' => true,\n ]);\n $table->addColumn('idioma', 'string', [\n 'default' => null,\n 'limit' => 20,\n 'null' => true,\n ]);\n $table->addColumn('observaciones', 'text', [\n 'default' => null,\n 'null' => true,\n ]);\n $table->addColumn('baja', 'boolean', [\n 'default' => null,\n 'null' => true,\n ]);\n $table->addColumn('created', 'datetime', [\n 'default' => null,\n 'null' => false,\n ]);\n $table->addColumn('modified', 'datetime', [\n 'default' => null,\n 'null' => false,\n ]);\n\n $table->create();\n\n $current_timestamp = Carbon::now();\n // Inserta artículos de la base de datos antigua\n $this->execute('insert into libros (id, autor, titulo, traductor, ciudad, anio_edicion, edicion, primera_edicion, editorial, tema_id, tipo, topografia, paginas, tomos, idioma, observaciones, baja, created, modified) select id, lAutor, lTitulo, lTraductor, lCiudad, lAnioEdicion, lEdicion, lPrimeraEdicion, lEditorial, subtema_id+30, lTipo, lTopografia, lPaginas, lTomos, lIdioma, lObservaciones, lBaja, \"' . $current_timestamp . '\", \"' . $current_timestamp . '\" from old_libros');\n }", "public function change()\n {\n $users = $this->table('users', ['id' => 'uid', 'collation' => 'utf8mb4_general_ci']);\n $users->addColumn('gid', 'integer', ['comment' => '所属用户组ID'])\n ->addColumn('nick', 'string', ['limit' => 50, 'comment' => '用户昵称'])\n ->addColumn('email', 'string', ['limit' => 100])\n ->addColumn('password', 'string', ['limit' => 60])\n ->addColumn('avatar', 'string', ['limit' => 255, 'null' => true])\n ->addColumn('motto', 'string', ['limit' => 100, 'null' => true])\n ->addColumn('phone', 'string', ['limit' => 11, 'null' => true])\n ->addColumn('create_ip', 'string', ['limit' => 15])\n ->addColumn('create_time', 'integer')\n ->addColumn('update_time', 'integer')\n ->addColumn('delete_time', 'integer', ['null' => true])\n ->addColumn('last_time', 'integer', ['null' => true])\n ->addColumn('last_ip', 'string', ['limit' => 15, 'null' => true])\n ->addColumn('status', 'integer', ['limit' => 1])\n ->addColumn('handle_code', 'string', ['limit' => 64, 'null' => true, 'comment' => '用户操作代码'])\n ->addColumn('overdue_time', 'integer', ['null' => true])\n ->addIndex(['uid', 'gid'], ['unique' => true])\n ->create();\n\n $fields = $this->table('fields', ['id' => 'feid', 'collation' => 'utf8mb4_general_ci'])\n ->addColumn('name', 'string', ['limit' => 200])\n ->addColumn('value', 'text')\n ->create();\n\n $forums = $this->table('forums', ['id' => 'fid', 'collation' => 'utf8mb4_general_ci'])\n ->addColumn('name', 'string')\n ->addColumn('description', 'string', ['null' => true])\n ->addColumn('create_time', 'integer')\n ->addColumn('update_time', 'integer')\n ->addColumn('delete_time', 'integer', ['null' => true])\n ->addColumn('status', 'integer', ['limit' => 1])\n ->create();\n\n $groups = $this->table('groups', ['id' => 'gid', 'collation' => 'utf8mb4_general_ci'])\n ->addColumn('name', 'string')\n ->addColumn('description', 'string', ['null' => true])\n ->addColumn('rule', 'string', ['null' => true])\n ->addColumn('create_time', 'integer')\n ->addColumn('update_time', 'integer')\n ->addColumn('status', 'integer', ['limit' => 1])\n ->create();\n\n $options = $this->table('options', ['id' => false, 'collation' => 'utf8mb4_general_ci'])\n ->addColumn('name', 'string')\n ->addColumn('value', 'text')\n ->addColumn('type', 'string')\n ->create();\n\n $rule = $this->table('rule', ['id' => 'ruid', 'collation' => 'utf8mb4_general_ci'])\n ->addColumn('name', 'string')\n ->addColumn('rule', 'string')\n ->addColumn('type', 'string')\n ->addColumn('status', 'integer', ['limit' => 1])\n ->create();\n\n $topics = $this->table('topics', ['id' => 'tid', 'collation' => 'utf8mb4_general_ci'])\n ->addColumn('fid', 'integer')\n ->addColumn('uid', 'integer')\n ->addColumn('title', 'string')\n ->addColumn('content', 'text')\n ->addColumn('views', 'integer', ['default' => 0])\n ->addColumn('likes', 'integer', ['default' => 0])\n ->addColumn('create_time', 'integer')\n ->addColumn('update_time', 'integer')\n ->addColumn('delete_time', 'integer', ['null' => true])\n ->addColumn('is_top', 'integer', ['limit' => 1, 'comment' => '是否置顶,1为置顶', 'default' => 0])\n ->addColumn('is_down', 'integer', ['limit' => 1, 'comment' => '是否下沉,1为下沉', 'default' => 0])\n ->addColumn('status', 'integer', ['limit' => 1])\n ->create();\n\n $comments = $this->table('comments', ['id' => 'coid', 'collation' => 'utf8mb4_general_ci'])\n ->addColumn('tid', 'integer')\n ->addColumn('uid', 'integer')\n ->addColumn('reply_coid', 'integer', ['comment' => '回复的评论ID', 'null' => true])\n ->addColumn('content', 'text')\n ->addColumn('create_time', 'integer')\n ->addColumn('update_time', 'integer')\n ->addColumn('delete_time', 'integer', ['null' => true])\n ->addColumn('status', 'integer', ['limit' => 1])\n ->create();\n\n $files = $this->table('files', ['id' => 'file_id', 'collation' => 'utf8mb4_general_ci'])\n ->addColumn('uid', 'integer')\n ->addColumn('file_url', 'string', ['null' => true])\n ->addColumn('type', 'text')\n ->addColumn('service_type', 'integer')\n ->addColumn('create_time', 'integer')\n ->addColumn('update_time', 'integer')\n ->addColumn('delete_time', 'integer', ['null' => true])\n ->addColumn('status', 'integer', ['limit' => 1])\n ->create();\n\n }", "public function change()\n {\n $table = $this->table('information');\n $table->addColumn('reserved_at', 'timestamp', [\n 'null' => true,\n 'after' => 'information_category_id',\n 'comment' => '公開予約日',\n ]);\n $table->update();\n }", "public function change()\n {\n $this->table('preset_program')\n ->setComment('程序业务预设表')\n ->addColumn('type', 'integer', ['null' => true, 'limit' => 11, 'comment' => 'type 类型:1:平台;2:分类;3:模块;4:功能'])\n ->addColumn('parent_id', 'integer', ['null' => true, 'limit' => 11, 'comment' => '父级ID'])\n ->addColumn('name', 'string', ['null' => true, 'limit' => 32, 'comment' => 'name 名称'])\n ->addColumn('name_en', 'string', ['null' => true, 'limit' => 32, 'comment' => '英语 名称'])\n ->addColumn('name_ko', 'string', ['null' => true, 'limit' => 32, 'comment' => '韩语 名称'])\n ->addColumn('name_ja', 'string', ['null' => true, 'limit' => 32, 'comment' => '日语 名称'])\n ->addColumn('price_min', 'integer', ['null' => true, 'limit' => 11, 'comment' => 'price_min 最小报价'])\n ->addColumn('price_max', 'integer', ['null' => true, 'limit' => 11, 'comment' => 'price_max 最大报价'])\n ->addColumn('day_min', 'integer', ['null' => true, 'limit' => 11, 'comment' => 'day_min 最小工期'])\n ->addColumn('day_max', 'integer', ['null' => true, 'limit' => 11, 'comment' => 'day_max 最大工期'])\n ->addColumn('company_id', 'integer', ['null' => true, 'limit' => 11, 'comment' => 'company_id 所属公司ID'])\n ->addTimestamps()\n ->addSoftDelete()\n ->create();\n }", "public function up()\n\t{\n\t\t$this->dbforge->modify_column($this->table, $this->field);\n\t}", "public function change()\n {\n ## Alter Jenis Izin ##\n $table = $this->table('jenis_izin');\n $table\n ->changeColumn('oss_id', 'string', [\n 'default' => null,\n 'limit' => 25,\n 'null' => true,\n ])\n ->renameColumn('oss_id', 'kode_oss');\n $table->update();\n\n ## BEGIN - Create Table data_sinc ##\n $table = $this->table('data_sinc');\n\n $table->addColumn('instansi_id', 'biginteger', [\n 'default' => null,\n 'null' => true,\n ])->addIndex(['instansi_id']);\n\n $table->addColumn('dibuat_oleh', 'string', [\n 'default' => null,\n 'limit' => 25,\n 'null' => true,\n ]);\n\n $table->addColumn('tgl_dibuat', 'datetime', [\n 'default' => null,\n 'limit' => 20,\n 'null' => true,\n ]);\n\n $table->addColumn('tgl_diubah', 'datetime', [\n 'default' => null,\n 'limit' => 20,\n 'null' => true,\n ]);\n\n $table->addColumn('diubah_oleh', 'string', [\n 'default' => null,\n 'limit' => 25,\n 'null' => true,\n ]);\n\n $table->addColumn('key', 'string', [\n 'default' => null,\n 'limit' => 1000,\n 'null' => false,\n ])->addIndex(['key']);\n\n $table->addColumn('keterangan', 'string', [\n 'default' => null,\n 'limit' => 255,\n 'null' => true,\n ]);\n\n $table->addColumn('parent_id', 'biginteger', [\n 'default' => null,\n 'null' => true,\n ])->addIndex(['parent_id']);\n\n $table->addColumn('index', 'string', [\n 'default' => null,\n 'limit' => 100,\n 'null' => false,\n ])->addIndex(['index']);\n\n $table->create();\n\n ## BEGIN - Create Table data_sinc_detail ##\n $table = $this->table('data_sinc_detail');\n\n $table->addColumn('instansi_id', 'biginteger', [\n 'default' => null,\n 'null' => true,\n ])->addIndex(['instansi_id']);\n\n $table->addColumn('dibuat_oleh', 'string', [\n 'default' => null,\n 'limit' => 25,\n 'null' => true,\n ]);\n\n $table->addColumn('tgl_dibuat', 'datetime', [\n 'default' => null,\n 'limit' => 20,\n 'null' => true,\n ]);\n\n $table->addColumn('tgl_diubah', 'datetime', [\n 'default' => null,\n 'limit' => 20,\n 'null' => true,\n ]);\n\n $table->addColumn('diubah_oleh', 'string', [\n 'default' => null,\n 'limit' => 25,\n 'null' => true,\n ]);\n\n $table->addColumn('data_sinc_id', 'biginteger', [\n 'default' => null,\n 'null' => true,\n ])->addIndex(['data_sinc_id']);\n\n $table->addColumn('data_kolom_id', 'biginteger', [\n 'default' => null,\n 'null' => false,\n ])->addIndex(['data_kolom_id']);\n\n $table->addColumn('oss_type_kolom', 'string', [\n 'default' => null,\n 'limit' => 5,\n 'null' => false,\n ])->addIndex(['oss_type_kolom']);\n\n $table->addColumn('oss_kolom', 'string', [\n 'default' => null,\n 'limit' => 25,\n 'null' => true,\n ])->addIndex(['oss_kolom']);\n\n $table->create();\n\n ## BEGIN - Create Table nib ##\n $table = $this->table('nib');\n\n $table->addColumn('instansi_id', 'biginteger', [\n 'default' => null,\n 'null' => true,\n ])->addIndex(['instansi_id']);\n\n $table->addColumn('dibuat_oleh', 'string', [\n 'default' => null,\n 'limit' => 25,\n 'null' => true,\n ]);\n\n $table->addColumn('tgl_dibuat', 'datetime', [\n 'default' => null,\n 'limit' => 20,\n 'null' => true,\n ]);\n\n $table->addColumn('tgl_diubah', 'datetime', [\n 'default' => null,\n 'limit' => 20,\n 'null' => true,\n ]);\n\n $table->addColumn('diubah_oleh', 'string', [\n 'default' => null,\n 'limit' => 25,\n 'null' => true,\n ]);\n\n $table->addColumn('alamat_investasi', 'string', [\n 'default' => null,\n 'limit' => 255,\n 'null' => true,\n ]);\n\n $table->addColumn('daerah_investasi', 'string', [\n 'default' => null,\n 'limit' => 10,\n 'null' => true,\n ]);\n\n $table->addColumn('status_penanaman_modal', 'string', [\n 'default' => null,\n 'limit' => 2,\n 'null' => true,\n ])->addIndex(['status_penanaman_modal']);\n\n $table->addColumn('status_badan_hukum', 'string', [\n 'default' => null,\n 'limit' => 2,\n 'null' => true,\n ])->addIndex(['status_badan_hukum']);\n\n $table->addColumn('jangka_waktu', 'datetime', [\n 'default' => null,\n 'null' => true,\n ]);\n\n $table->addColumn('oss_id', 'string', [\n 'default' => null,\n 'limit' => 20,\n 'null' => true,\n ])->addIndex(['oss_id']);\n\n $table->addColumn('nib', 'string', [\n 'default' => null,\n 'limit' => 14,\n 'null' => false,\n ])->addIndex(['nib']);\n\n $table->create();\n }", "public function change() {\n\t\t$this->table('auth_token', ['id' => false, 'primary_key' => ['auth_token_id']])\n\t\t\t->addColumn('auth_token_id', 'string', ['limit' => 255, 'null' => false])\n\t\t\t->addColumn('user_id', 'integer', ['null' => false])\n\t\t\t->addColumn('token', 'string', ['limit' => 255, 'null' => false])\n\t\t\t->addColumn('browser', 'text', ['null' => false])\n\t\t\t->addColumn('created_at', 'datetime', ['null' => false])\n\t\t\t->addColumn('updated_at', 'datetime', ['null' => false])\n\t\t\t->addColumn('deleted_at', 'datetime', ['default' => null, 'null' => true])\n\t\t\t->save();\n\n\t\t$this->table('booking', ['id' => false, 'primary_key' => ['booking_id']])\n\t\t\t->addColumn('booking_id', 'integer', ['identity' => true])\n\t\t\t->addColumn('room_id', 'integer', ['null' => false])\n\t\t\t->addColumn('user_id', 'integer', ['null' => false])\n\t\t\t->addColumn('couple', 'boolean', ['default' => false, 'null' => false])\n\t\t\t->addColumn('couple_code', 'uuid', [])\n\t\t\t->addColumn('confirmed', 'boolean', ['default' => false, 'null' => false])\n\t\t\t->addColumn('paid', 'boolean', ['default' => false, 'null' => false])\n\t\t\t->addColumn('created_at', 'datetime', ['null' => false])\n\t\t\t->addColumn('updated_at', 'datetime', ['null' => false])\n\t\t\t->addColumn('deleted_at', 'datetime', ['default' => null, 'null' => true])\n\t\t\t->save();\n\n\t\t$this->table('booking_info', ['id' => false, 'primary_key' => ['booking_info_id']])\n\t\t\t->addColumn('booking_info_id', 'integer', ['identity' => true])\n\t\t\t->addColumn('booking_id', 'integer', ['null' => false])\n\t\t\t->addColumn('allergies', 'text', ['null' => false])\n\t\t\t->addColumn('stuff', 'text', ['null' => false])\n\t\t\t->addColumn('wishes', 'text', ['null' => false])\n\t\t\t->addColumn('night_hike', 'boolean', ['default' => false, 'null' => false])\n\t\t\t->addColumn('created_at', 'datetime', ['null' => false])\n\t\t\t->addColumn('updated_at', 'datetime', ['null' => false])\n\t\t\t->save();\n\n\t\t$this->table('gender', ['id' => false, 'primary_key' => ['gender_id']])\n\t\t\t->addColumn('gender_id', 'integer', ['identity' => true])\n\t\t\t->addColumn('name', 'string', ['limit' => 255, 'null' => false])\n\t\t\t->addColumn('gender_code', 'string', ['limit' => 255, 'null' => false])\n\t\t\t->addColumn('created_at', 'datetime', ['null' => false])\n\t\t\t->addColumn('updated_at', 'datetime', ['null' => false])\n\t\t\t->save();\n\n\t\t$this->table('gender')\n\t\t\t->insert([\n\t\t\t\t[\n\t\t\t\t\t'name' => 'männlich',\n\t\t\t\t\t'gender_code' => 'male',\n\t\t\t\t\t'created_at' => (new \\DateTime())->format('Y-m-d H:i:s'),\n\t\t\t\t\t'updated_at' => (new \\DateTime())->format('Y-m-d H:i:s'),\n\t\t\t\t],\n\t\t\t\t[\n\t\t\t\t\t'name' => 'weiblich',\n\t\t\t\t\t'gender_code' => 'female',\n\t\t\t\t\t'created_at' => (new \\DateTime())->format('Y-m-d H:i:s'),\n\t\t\t\t\t'updated_at' => (new \\DateTime())->format('Y-m-d H:i:s'),\n\t\t\t\t]\n\t\t\t])\n\t\t\t->save();\n\n\t\t$this->table('recovery_code', ['id' => false, 'primary_key' => ['recovery_code_id']])\n\t\t\t->addColumn('recovery_code_id', 'integer', ['identity' => true])\n\t\t\t->addColumn('user_id', 'integer', ['null' => false])\n\t\t\t->addColumn('code', 'string', ['limit' => 255, 'null' => false])\n\t\t\t->addColumn('created_at', 'datetime', ['null' => false])\n\t\t\t->addColumn('updated_at', 'datetime', ['null' => false])\n\t\t\t->addColumn('deleted_at', 'datetime', ['default' => null, 'null' => true])\n\t\t\t->save();\n\n\t\t$this->table('room', ['id' => false, 'primary_key' => ['room_id']])\n\t\t\t->addColumn('room_id', 'integer', ['identity' => true])\n\t\t\t->addColumn('room_type_id', 'integer', ['null' => false])\n\t\t\t->addColumn('name', 'string', ['limit' => 255, 'null' => false])\n\t\t\t->addColumn('bed_count', 'integer', ['null' => false])\n\t\t\t->addColumn('created_at', 'datetime', ['null' => false])\n\t\t\t->addColumn('updated_at', 'datetime', ['null' => false])\n\t\t\t->addColumn('deleted_at', 'datetime', ['default' => null, 'null' => true])\n\t\t\t->save();\n\n\t\t$this->table('room_type', ['id' => false, 'primary_key' => ['room_type_id']])\n\t\t\t->addColumn('room_type_id', 'integer', ['identity' => true])\n\t\t\t->addColumn('type_code', 'string', ['limit' => 255, 'null' => false])\n\t\t\t->addColumn('name', 'string', ['limit' => 255, 'null' => false])\n\t\t\t->addColumn('created_at', 'datetime', ['null' => false])\n\t\t\t->addColumn('updated_at', 'datetime', ['null' => false])\n\t\t\t->addColumn('deleted_at', 'datetime', ['default' => null, 'null' => true])\n\t\t\t->save();\n\n\t\t$this->table('room_type')\n\t\t\t->insert([\n\t\t\t\t[\n\t\t\t\t\t'type_code' => 'normal',\n\t\t\t\t\t'name' => 'Normales Zimmer',\n\t\t\t\t\t'created_at' => (new \\DateTime())->format('Y-m-d H:i:s'),\n\t\t\t\t\t'updated_at' => (new \\DateTime())->format('Y-m-d H:i:s'),\n\t\t\t\t],\n\t\t\t\t[\n\t\t\t\t\t'type_code' => 'female',\n\t\t\t\t\t'name' => 'Damenzimmer',\n\t\t\t\t\t'created_at' => (new \\DateTime())->format('Y-m-d H:i:s'),\n\t\t\t\t\t'updated_at' => (new \\DateTime())->format('Y-m-d H:i:s'),\n\t\t\t\t],\n\t\t\t\t[\n\t\t\t\t\t'type_code' => 'couple',\n\t\t\t\t\t'name' => 'Pärchenzimmer',\n\t\t\t\t\t'created_at' => (new \\DateTime())->format('Y-m-d H:i:s'),\n\t\t\t\t\t'updated_at' => (new \\DateTime())->format('Y-m-d H:i:s'),\n\t\t\t\t]\n\t\t\t])\n\t\t\t->save();\n\n\t\t$this->table('setting', ['id' => false, 'primary_key' => ['setting_id']])\n\t\t\t->addColumn('setting_id', 'integer', ['identity' => true])\n\t\t\t->addColumn('setting_code', 'string', ['limit' => 255, 'null' => false])\n\t\t\t->addColumn('value', 'text', ['null' => false])\n\t\t\t->addColumn('created_at', 'datetime', ['null' => false])\n\t\t\t->addColumn('updated_at', 'datetime', ['null' => false])\n\t\t\t->save();\n\n\t\t$this->table('setting')\n\t\t\t->insert([\n\t\t\t\t[\n\t\t\t\t\t'setting_code' => 'booking_active',\n\t\t\t\t\t'value' => '0',\n\t\t\t\t\t'created_at' => (new \\DateTime())->format('Y-m-d H:i:s'),\n\t\t\t\t\t'updated_at' => (new \\DateTime())->format('Y-m-d H:i:s'),\n\t\t\t\t],\n\t\t\t\t[\n\t\t\t\t\t'setting_code' => 'waiting_list_active',\n\t\t\t\t\t'value' => '0',\n\t\t\t\t\t'created_at' => (new \\DateTime())->format('Y-m-d H:i:s'),\n\t\t\t\t\t'updated_at' => (new \\DateTime())->format('Y-m-d H:i:s'),\n\t\t\t\t]\n\t\t\t])\n\t\t\t->save();\n\n\t\t$this->table('user', ['id' => false, 'primary_key' => ['user_id']])\n\t\t\t->addColumn('user_id', 'integer', ['identity' => true])\n\t\t\t->addColumn('username', 'string', ['limit' => 255, 'null' => false])\n\t\t\t->addColumn('password', 'string', ['limit' => 255, 'null' => false])\n\t\t\t->addColumn('email', 'string', ['limit' => 255, 'null' => false])\n\t\t\t->addColumn('is_admin', 'boolean', ['default' => false, 'null' => false])\n\t\t\t->addColumn('created_at', 'datetime', ['null' => false])\n\t\t\t->addColumn('updated_at', 'datetime', ['null' => false])\n\t\t\t->addColumn('deleted_at', 'datetime', ['default' => null, 'null' => true])\n\t\t\t->save();\n\n\t\t$this->table('user')\n\t\t\t->insert([\n\t\t\t\t[\n\t\t\t\t\t'username' => 'admin',\n\t\t\t\t\t'password' => '$2y$10$5005JYdIzvZOgOO4w7oED.n4LS.Wc9gJI1OoFjUZiZkvL1V/Db.ou',\n\t\t\t\t\t'email' => '[email protected]',\n\t\t\t\t\t'is_admin' => true,\n\t\t\t\t\t'created_at' => (new \\DateTime())->format('Y-m-d H:i:s'),\n\t\t\t\t\t'updated_at' => (new \\DateTime())->format('Y-m-d H:i:s'),\n\t\t\t\t],\n\t\t\t])\n\t\t\t->save();\n\n\t\t$this->table('user_info', ['id' => false, 'primary_key' => ['user_info_id']])\n\t\t\t->addColumn('user_info_id', 'integer', ['identity' => true])\n\t\t\t->addColumn('user_id', 'integer', ['null' => false])\n\t\t\t->addColumn('first_name', 'string', ['limit' => 255, 'null' => false])\n\t\t\t->addColumn('last_name', 'string', ['limit' => 255, 'null' => false])\n\t\t\t->addColumn('birthday', 'date', ['null' => false])\n\t\t\t->addColumn('gender_id', 'integer', ['null' => false])\n\t\t\t->addColumn('created_at', 'datetime', ['null' => false])\n\t\t\t->addColumn('updated_at', 'datetime', ['null' => false])\n\t\t\t->save();\n\n\t\t$this->table('user_info')\n\t\t\t->insert([\n\t\t\t\t[\n\t\t\t\t\t'user_id' => 1,\n\t\t\t\t\t'first_name' => 'Admin',\n\t\t\t\t\t'last_name' => 'Admin',\n\t\t\t\t\t'birthday' => (new \\DateTime())->format('Y-m-d'),\n\t\t\t\t\t'gender_id' => 1,\n\t\t\t\t\t'created_at' => (new \\DateTime())->format('Y-m-d H:i:s'),\n\t\t\t\t\t'updated_at' => (new \\DateTime())->format('Y-m-d H:i:s'),\n\t\t\t\t],\n\t\t\t])\n\t\t\t->save();\n\n\t\t$this->table('waiting_list', ['id' => false, 'primary_key' => ['waiting_list_id']])\n\t\t\t->addColumn('waiting_list_id', 'integer', ['identity' => true])\n\t\t\t->addColumn('username', 'string', ['limit' => 255, 'null' => false])\n\t\t\t->addColumn('email', 'string', ['limit' => 255, 'null' => false])\n\t\t\t->addColumn('notice', 'text', ['null' => false])\n\t\t\t->addColumn('created_at', 'datetime', ['null' => false])\n\t\t\t->addColumn('updated_at', 'datetime', ['null' => false])\n\t\t\t->addColumn('deleted_at', 'datetime', ['default' => null, 'null' => true])\n\t\t\t->save();\n }", "public function migrate() {}", "public function change()\n {\n $table = $this->table('services');\n $table->addColumn('listing_id', 'integer', [\n 'default' => null,\n 'limit' => 11,\n 'null' => false,\n ]);\n $table->addColumn('title', 'string', [\n 'default' => null,\n 'limit' => 200,\n 'null' => false,\n ]);\n $table->addColumn('slug', 'string', [\n 'default' => null,\n 'limit' => 250,\n 'null' => false,\n ]);\n $table->addColumn('service_icon', 'string', [\n 'default' => null,\n 'limit' => 150,\n 'null' => false,\n ]);\n $table->addColumn('short_description', 'string', [\n 'default' => null,\n 'limit' => 400,\n 'null' => false,\n ]);\n $table->addColumn('description', 'text', [\n 'default' => null,\n 'null' => false,\n ]);\n $table->addColumn('status', 'boolean', [\n 'default' => null,\n 'null' => false,\n ]);\n $table->addColumn('position', 'integer', [\n 'default' => null,\n 'limit' => 11,\n 'null' => false,\n ]);\n $table->addColumn('banner_image', 'string', [\n 'default' => null,\n 'limit' => 255,\n 'null' => true,\n ]);\n $table->addColumn('banner_dir', 'string', [\n 'default' => null,\n 'limit' => 255,\n 'null' => true,\n ]);\n $table->addColumn('banner_size', 'integer', [\n 'default' => null,\n 'limit' => 5,\n 'null' => true,\n ]);\n $table->addColumn('banner_type', 'string', [\n 'default' => null,\n 'limit' => 100,\n 'null' => true,\n ]);\n\n\n $table->addColumn('header_image', 'string', [\n 'default' => null,\n 'limit' => 255,\n 'null' => true,\n ]);\n $table->addColumn('header_dir', 'string', [\n 'default' => null,\n 'limit' => 255,\n 'null' => true,\n ]);\n $table->addColumn('header_size', 'integer', [\n 'default' => null,\n 'limit' => 5,\n 'null' => true,\n ]);\n $table->addColumn('header_type', 'string', [\n 'default' => null,\n 'limit' => 50,\n 'null' => true,\n ]);\n $table->addColumn('created', 'datetime', [\n 'default' => null,\n 'null' => false,\n ]);\n $table->addColumn('modified', 'datetime', [\n 'default' => null,\n 'null' => false,\n ]);\n $table->addIndex([\n 'slug','listing_id',\n \n ], [\n 'name' => 'UNIQUE_SLUG',\n 'unique' => true,\n ]);\n $table->create();\n }", "public function up()\n {\n // Drop table 'table_name' if it exists\n $this->dbforge->drop_table('lecturer', true);\n\n // Table structure for table 'table_name'\n $this->dbforge->add_field(array(\n 'nip' => array(\n \t'type' => 'VARCHAR(16)',\n\t\t\t\t'null' => true,\n\t\t\t\t'unique' => true\n\t\t\t),\n 'nik' => array(\n \t'type' => 'VARCHAR(16)',\n\t\t\t\t'null' => false,\n\t\t\t\t'unique' => true\n\t\t\t),\n 'name' => array(\n 'type' => 'VARCHAR(24)',\n 'null' => false,\n ),\n\t\t\t'id_study_program' => array(\n\t\t\t\t'type' => 'VARCHAR(24)',\n\t\t\t\t'null' => false,\n\t\t\t)\n\n ));\n $this->dbforge->add_key('nik', true);\n $this->dbforge->create_table('lecturer');\n }", "public function up()\n {\n\n $this->table('users')\n ->removeColumn('can_edit')\n ->update();\n\n $this->table('stundenplan')\n ->changeColumn('note', 'text', [\n 'default' => null,\n 'length' => null,\n 'limit' => null,\n 'null' => true,\n ])\n ->update();\n $this->table('roles')\n ->addColumn('name', 'string', [\n 'default' => null,\n 'limit' => 255,\n 'null' => false,\n ])\n ->addColumn('alias', 'string', [\n 'default' => null,\n 'limit' => 255,\n 'null' => false,\n ])\n ->addIndex(\n [\n 'alias',\n ],\n ['unique' => true]\n )\n ->create();\n\n $this->table('roles')->insert([\n [\n 'id' => '1',\n 'name' => 'Newbie',\n 'alias' => 'guest'\n ],\n [\n 'id' => '2',\n 'name' => 'Benutzer',\n 'alias' => 'user'\n ],\n [\n 'id' => '3',\n 'name' => 'Admin',\n 'alias' => 'admin'\n ],\n ])->saveData();\n\n $this->table('users')\n ->addColumn('role_id', 'integer', [\n 'after' => 'id',\n 'default' => '1',\n 'length' => 11,\n 'null' => false,\n ])\n ->addIndex(\n [\n 'role_id',\n ],\n [\n 'name' => 'FK_users_roles',\n ]\n )\n ->update();\n\n $this->table('stundenplan')\n ->addColumn('loggedInNote', 'text', [\n 'after' => 'info_for_db',\n 'default' => null,\n 'length' => null,\n 'null' => true,\n ])\n ->update();\n\n $this->table('users')\n ->addForeignKey(\n 'role_id',\n 'roles',\n 'id',\n [\n 'update' => 'CASCADE',\n 'delete' => 'RESTRICT',\n ]\n )\n ->update();\n\n $this->query('UPDATE users SET role_id = 3 WHERE email = \"[email protected]\"');\n }", "public function migrateDatabase();", "public function up()\n {\n $this->createTable('usuario_refeicao', [\n 'id' => $this->primaryKey(),\n 'usuario_id' => $this->integer(),\n 'refeicao_id' => $this->integer(),\n 'alimento_id' => $this->integer(),\n 'data_consumo' => $this->date(),\n 'horario_consumo' => $this->time(),\n 'quantidade' => $this->double(5,2),\n 'created_at' => $this->integer(),\n 'updated_at' => $this->integer() \n ]);\n\n $this->addForeignKey('fk_usuariorefeicao_usuario_id', 'usuario_refeicao', 'usuario_id', \n 'user', 'id', 'CASCADE');\n $this->addForeignKey('fk_usuariorefeicao_refeicao_id', 'usuario_refeicao', 'refeicao_id', \n 'refeicoes', 'id', 'CASCADE');\n $this->addForeignKey('fk_usuariorefeicao_alimento_id', 'usuario_refeicao', \n 'alimento_id', 'alimentos', 'id', 'CASCADE');\n }", "public function up()\n {\n $table = $this->table('qobo_translations_translations');\n $table->renameColumn('object_foreign_key', 'foreign_key');\n $table->renameColumn('object_model', 'model');\n $table->renameColumn('object_field', 'field');\n $table->renameColumn('translation', 'content');\n\n if (!$table->hasColumn('locale')) {\n $table->addColumn('locale', 'char', [\n 'default' => null,\n 'limit' => 6,\n ]);\n }\n $table->update();\n\n $table = TableRegistry::getTableLocator()->get(\"Translations.Translations\");\n $entities = $table->find()->all();\n foreach($entities as $entity) {\n $entity->setDirty('locale', true);\n $table->save($entity);\n }\n }", "public function up(): void\n {\n $this->renameTable('{{%transaction}}', '{{%finance_transaction}}');\n }", "public function change() {\n\t\t$this->table('mime_type_images')\n\t\t\t->addColumn('name', 'string', [\n\t\t\t\t'comment' => 'extension (e.g. jpg)',\n\t\t\t\t'default' => null,\n\t\t\t\t'limit' => 100,\n\t\t\t\t'null' => false,\n\t\t\t])\n\t\t\t->addColumn('ext', 'string', [\n\t\t\t\t'comment' => 'extension (lowercase!) of real image (exe.gif -> gif)',\n\t\t\t\t'default' => null,\n\t\t\t\t'limit' => 20,\n\t\t\t\t'null' => false,\n\t\t\t])\n\t\t\t->addColumn('active', 'boolean', [\n\t\t\t\t'default' => false,\n\t\t\t\t'limit' => null,\n\t\t\t\t'null' => false,\n\t\t\t])\n\t\t\t->addColumn('details', 'string', [\n\t\t\t\t'default' => null,\n\t\t\t\t'limit' => 190,\n\t\t\t\t'null' => false,\n\t\t\t])\n\t\t\t->addColumn('created', 'datetime', [\n\t\t\t\t'default' => null,\n\t\t\t\t'limit' => null,\n\t\t\t\t'null' => false,\n\t\t\t])\n\t\t\t->addColumn('modified', 'datetime', [\n\t\t\t\t'default' => null,\n\t\t\t\t'limit' => null,\n\t\t\t\t'null' => false,\n\t\t\t])\n\t\t\t->create();\n\n\t\t$this->table('mime_types')\n\t\t\t->addColumn('name', 'string', [\n\t\t\t\t'comment' => 'Program Name',\n\t\t\t\t'default' => null,\n\t\t\t\t'limit' => 100,\n\t\t\t\t'null' => false,\n\t\t\t])\n\t\t\t->addColumn('ext', 'string', [\n\t\t\t\t'comment' => 'extension (lowercase!)',\n\t\t\t\t'default' => null,\n\t\t\t\t'limit' => 20,\n\t\t\t\t'null' => false,\n\t\t\t])\n\t\t\t->addColumn('type', 'string', [\n\t\t\t\t'default' => null,\n\t\t\t\t'limit' => 190,\n\t\t\t\t'null' => false,\n\t\t\t])\n\t\t\t->addColumn('alt_type', 'string', [\n\t\t\t\t'comment' => 'alternate (sometimes there is more than one type)',\n\t\t\t\t'default' => null,\n\t\t\t\t'limit' => 190,\n\t\t\t\t'null' => false,\n\t\t\t])\n\t\t\t->addColumn('details', 'string', [\n\t\t\t\t'default' => null,\n\t\t\t\t'limit' => 190,\n\t\t\t\t'null' => false,\n\t\t\t])\n\t\t\t->addColumn('core', 'boolean', [\n\t\t\t\t'comment' => 'if part of core definitions',\n\t\t\t\t'default' => false,\n\t\t\t\t'limit' => null,\n\t\t\t\t'null' => false,\n\t\t\t])\n\t\t\t->addColumn('active', 'boolean', [\n\t\t\t\t'default' => false,\n\t\t\t\t'limit' => null,\n\t\t\t\t'null' => false,\n\t\t\t])\n\t\t\t->addColumn('created', 'datetime', [\n\t\t\t\t'default' => null,\n\t\t\t\t'limit' => null,\n\t\t\t\t'null' => false,\n\t\t\t])\n\t\t\t->addColumn('modified', 'datetime', [\n\t\t\t\t'default' => null,\n\t\t\t\t'limit' => null,\n\t\t\t\t'null' => false,\n\t\t\t])\n\t\t\t->addColumn('sort', 'integer', [\n\t\t\t\t'comment' => 'often used ones should be on top',\n\t\t\t\t'default' => '0',\n\t\t\t\t'limit' => null,\n\t\t\t\t'null' => false,\n\t\t\t])\n\t\t\t->addColumn('mime_type_image_id', 'integer', [\n\t\t\t\t'default' => null,\n\t\t\t\t'limit' => null,\n\t\t\t\t'null' => true,\n\t\t\t\t'signed' => false,\n\t\t\t])\n\t\t\t->create();\n\t}", "public function up()\n\t{\n\t\t// create the purchase_order_details table\n\t\tSchema::create('purchase_order_details', function($table) {\n\t\t\t$table->engine = 'InnoDB';\n\t\t $table->increments('id');\t\t \n\t\t $table->integer('purchase_order_id')->unsigned();//->foreign()->references('id')->on('orders');\n\t\t $table->integer('product_id')->unsigned();//->foreign()->references('id')->on('products');\n\t\t $table->integer('quantity');\t\t \t \n\t\t $table->integer('created_by')->unsigned();//->foreign()->references('id')->on('users');\t\t \n\t\t $table->integer('updated_by')->unsigned();\n\t\t $table->timestamps();\t\t \n\t\t});\t\n\t}", "public function up()\n\t{\n\t\t$this->createTable(\n\t\t\t$this->tableName,\n\t\t\tarray(\n\t\t\t\t'l_id' => 'INT UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT',\n\t\t\t\t'model_id' => 'INT UNSIGNED NOT NULL',\n\t\t\t\t'lang_id' => 'VARCHAR(5) NULL DEFAULT NULL',\n\n\t\t\t\t'l_value' => 'TEXT NULL DEFAULT NULL',\n\n\t\t\t\t'INDEX key_model_id_lang_id (model_id, lang_id)',\n\t\t\t\t'INDEX key_model_id (model_id)',\n\t\t\t\t'INDEX key_lang_id (lang_id)',\n\n\t\t\t\t'CONSTRAINT fk_configuration_lang_model_id_to_main_model_id FOREIGN KEY (model_id) REFERENCES ' . $this->relatedTableName . ' (id) ON DELETE CASCADE ON UPDATE CASCADE',\n\t\t\t\t'CONSTRAINT fk_configuration_lang_lang_id_to_language_id FOREIGN KEY (lang_id) REFERENCES {{language}} (code) ON DELETE RESTRICT ON UPDATE CASCADE',\n\t\t\t),\n\t\t\t'ENGINE=InnoDB DEFAULT CHARACTER SET=utf8 COLLATE=utf8_unicode_ci'\n\t\t);\n\t}", "public function up()\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($this->createTableName, [\n 'id' => $this->primaryKey(),\n 'name' => $this->string()->notNull(),\n 'type' => $this->integer(1)->notNull(),\n 'location' => $this->text()->defaultValue(null),\n 'description' => $this->text()->defaultValue(null),\n 'created_by' => $this->integer()->notNull(),\n 'start_at' => $this->integer()->defaultValue(null),\n 'active' => $this->boolean()->defaultValue(true),\n\n ],$tableOptions);\n\n\n $this->addColumn($this->updateTableNameHoliday, $this->addColumnOne, $this->integer()->notNull()->after('name'));\n $this->addColumn($this->updateTableNameHoliday, $this->addColumnTwo, $this->integer()->notNull()->after($this->addColumnOne));\n $this->addColumn($this->updateTableNameHolidayConfig, $this->addColumnOne, $this->integer()->notNull()->after('name'));\n $this->addColumn($this->updateTableNameHolidayConfig, $this->addColumnTwo, $this->integer()->notNull()->after($this->addColumnOne));\n\n $moduleInvite = Module::findOne(['name' => 'Actioncalendar', 'slug' => 'actioncalendar']);\n if(empty($moduleInvite)) {\n $this->batchInsert('{{%module}}', ['parent_id', 'name', 'slug', 'visible', 'sorting'], [\n [null, 'Actioncalendar', 'actioncalendar', 1, 22],\n ]);\n }\n\n }", "public function up()\n {\n\t\t$tableOptions = null;\n if ($this->db->driverName === 'mysql') {\n $tableOptions = 'CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE=InnoDB';\n }\n\t\t\n\t\t$TABLE_NAME = 'HaberDeneme12';\n $this->createTable($TABLE_NAME, [\n 'HaberID' => $this->integer(10)->notNull(),\n 'Kategori' => $this->string(12)->notNull(),\n 'Baslik' => $this->string(128)->notNull(),\n 'Ozet' => $this->text()->notNull(),\n 'Detay' => $this->text()->notNull(),\n 'Resim' => $this->text()->notNull(),\n 'EklenmeTarihi' => $this->date(),\n 'GuncellenmeTarihi' => $this->date()\n ], $tableOptions);\n\t\t\n\t\t\n\t\t$TABLE_NAME = 'HaberKategoriDeneme12';\n\t\t $this->createTable($TABLE_NAME, [\n 'KategoriID' => $this->integer(10)->notNull(),\n 'Kategori' => $this->string(20)->notNull()\n ], $tableOptions);\n\t\t\n }" ]
[ "0.79288644", "0.78923404", "0.7750449", "0.77250934", "0.77156365", "0.7713236", "0.7709932", "0.76808083", "0.76730156", "0.7629402", "0.7613927", "0.76099193", "0.75702465", "0.7551506", "0.7521027", "0.7447909", "0.74381685", "0.7435705", "0.7403743", "0.73842245", "0.73751783", "0.73659784", "0.73601156", "0.7340621", "0.73322755", "0.7240869", "0.72334254", "0.722352", "0.7153513", "0.7150716", "0.71348524", "0.71267694", "0.7110153", "0.7100028", "0.70861924", "0.7079858", "0.7069116", "0.7067921", "0.70402014", "0.703732", "0.702719", "0.7011469", "0.69813085", "0.6972778", "0.696645", "0.6960145", "0.6940741", "0.6914971", "0.6912674", "0.69096917", "0.6856032", "0.6854306", "0.6824704", "0.68051726", "0.6789203", "0.6782107", "0.6743832", "0.67240137", "0.6720706", "0.66922253", "0.66898286", "0.66646373", "0.66615796", "0.663918", "0.66192174", "0.6609343", "0.66048837", "0.66033596", "0.66006273", "0.65726715", "0.6550415", "0.6524668", "0.65163064", "0.6486665", "0.64819646", "0.64465183", "0.6410836", "0.6406767", "0.6406139", "0.6384637", "0.6349814", "0.6345593", "0.63166296", "0.629755", "0.6297017", "0.6242278", "0.62130487", "0.6202794", "0.62006307", "0.61657685", "0.6136049", "0.612307", "0.6120709", "0.6104693", "0.6052952", "0.6041925", "0.5995385", "0.5992051", "0.59855336", "0.5978859" ]
0.64362323
76
/ 2. get DB Connection
function getConnection() { // 1. create connection obj $con = new mysqli($this->host, $this->id, $this->pw, $this->dbName); // 2. check if($con->connect_errno) { return false; } return $con; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getConnection(){\n return static::$db;\n }", "public static function conn()\n {\n return (static::inst())::$_db;\n }", "public function getDbConnection()\n {\n $this->conn = Registry::get('db');\n }", "protected static function getDatabaseConnection() {}", "protected static function getDatabaseConnection() {}", "protected static function getDatabaseConnection() {}", "protected function getDatabaseConnection() {}", "protected function getDatabaseConnection() {}", "protected function getDatabaseConnection() {}", "protected function getDatabaseConnection() {}", "protected function getDatabaseConnection() {}", "protected function getDatabaseConnection() {}", "protected function getDatabaseConnection() {}", "protected function getDatabaseConnection() {}", "protected function getDatabaseConnection() {}", "protected function getDatabaseConnection() {}", "protected function getDatabaseConnection() {}", "protected function getDatabaseConnection() {}", "protected function getDatabaseConnection() {}", "protected function getDatabaseConnection() {}", "protected function getDatabaseConnection() {}", "protected function getDatabaseConnection() {}", "protected function getDatabaseConnection() {}", "protected function getDatabaseConnection() {}", "protected function getDatabaseConnection() {}", "protected function getDatabaseConnection() {}", "protected function getDatabaseConnection() {}", "protected function getDatabaseConnection() {}", "protected function getDatabaseConnection() {}", "protected function getDatabaseConnection() {}", "protected function getDatabaseConnection() {}", "protected function getDatabaseConnection() {}", "protected function getDatabaseConnection() {}", "protected function getDatabaseConnection() {}", "protected function getDatabaseConnection() {}", "protected function getDatabaseConnection() {}", "protected function getDatabaseConnection() {}", "protected function getDatabaseConnection() {}", "protected function getDatabaseConnection() {}", "protected function getDatabaseConnection() {}", "protected function getDatabaseConnection() {}", "protected function getDatabaseConnection() {}", "public function getConnection()\n\t{\n\t\treturn empty($this->db_conn) ? Db::getConnection($this->getConnectionName()) : $this->db_conn;\n\t}", "public function getConnection(){\n return $this->dbConnection;\n }", "public function getConnection()\n {\n return $this->db;\n }", "public static function getDbConnection(){\n\t\tif(!isset(self::$db)){\n\t\t\tself::setDbConnection();\n\t\t}\n\t\treturn self::$db;\n\t}", "public function getDbConnection()\n\t{\n\t\treturn parent::getDbConnection();\n\t}", "public function getConnection(): \\codename\\core\\database\r\n {\r\n return $this->db;\r\n }", "function connection()\n\t{\n\t\tif (isset($this->conn_name)) {\n\t\t\treturn Db::getConnection($this->conn_name);\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "protected function getDatabaseConnection() {\n\t\treturn $GLOBALS['TYPO3_DB'];\n\t}", "protected function getDatabaseConnection() {\n\t\treturn $GLOBALS['TYPO3_DB'];\n\t}", "function getConnection($db,$custom);", "public static function get_connection() {\n if (static::$instance === null) {\n static::$instance = new Database;\n }\n return static::$instance->db_handle;\n\t}", "public function db()\n {\n return $this->getConnection();\n }", "public function connection()\n {\n return static::$DB;\n }", "public function getConnection()\n {\n $this->connection = db($this->connectionName);\n\n return $this->connection;\n }", "public static function getConnection() {\n if (!self::$db) {\n //new connection object\n new dbConn();\n }\n //return connection\n return self::$db;\n }", "private function dbConnect(){\n $database=new \\Database();\n return $database->getConnection();\n }", "protected function db()\n\t\t{\n\t\t\tif( !$this->_db ) {\n\t\t\t\t$this->_db = \\Kalibri::db()->getConnection( $this->connectName );\n\t\t\t}\n\n\t\t\treturn $this->_db;\n\t\t}", "public function getConnection() {\n return $this->objDBConnection;\n }", "public function getConnection() {\n return $this->objDBConnection;\n }", "public function getConnection() {\n\t\t$db = Config::get('librarydirectory::database.default');\n return static::resolveConnection($db);\n }", "public function getDatabaseConnection(){\n return $this->dbConnection;\n }", "protected function getDatabaseConnection()\n {\n return $GLOBALS['TYPO3_CONF_VARS']['DB'];\n }", "protected function getDatabaseConnection()\n {\n return $GLOBALS['TYPO3_DB'];\n }", "protected function getDatabaseConnection()\n {\n return $GLOBALS['TYPO3_DB'];\n }", "protected function getDatabaseConnection()\n {\n return $GLOBALS['TYPO3_DB'];\n }", "protected function getDatabaseConnection()\n {\n return $GLOBALS['TYPO3_DB'];\n }", "protected function getDatabaseConnection()\n {\n return $GLOBALS['TYPO3_DB'];\n }", "protected function getDatabaseConnection()\n {\n return $GLOBALS['TYPO3_DB'];\n }", "protected function getDatabaseConnection()\n {\n return $GLOBALS['TYPO3_DB'];\n }", "protected function getDatabaseConnection()\n {\n return $GLOBALS['TYPO3_DB'];\n }", "protected function getDatabaseConnection()\n {\n return $GLOBALS['TYPO3_DB'];\n }", "public function getConnection(){\n \n $this->conn = null;\n \n if (is_dir($this->db_url)) {\n $this->conn=$this->db_url;\n }\n \n return $this->conn;\n }", "public function getConnection() {\n return Database::instance();\n }", "protected function getConnection()\n\t{\n\t\treturn $this->createDefaultDBConnection(TEST_DB_PDO(), TEST_GET_DB_INFO()->ldb_name);\n\t}", "public function getConnect()\n {\n $this->conn = Registry::get('db');\n }", "public static function getDatabaseConnection() {\n\t\treturn self::$con;\n\t}", "public static function getConnection() {\r\n //Guarantees single instance, if no connection object exists then create one.\r\n if (!self::$db) {\r\n //new connection object.\r\n new dbConn();\r\n }\r\n //return connection.\r\n return self::$db;\r\n }", "public function get_connection()\n {\n return $this->connection();\n }", "public static function getConnection(){\n if (self::$_instance === null){\n self::$_instance = new DB();\n }\n return self::$_instance;\n }", "public function getConnection(){\n \n \n $this->db_conn = OCILogon($this->username, $this->password,$this->db_name); \n \n return $this->db_conn;\n }", "private function getDbConnection()\n {\n $config = $this->config;\n $connectionParams = array(\n 'path' => $this->appRoot . '/vpu.db',\n 'driver' => $config['config']['database']['driver']\n );\n return DriverManager::getConnection($connectionParams, new Configuration());\n }", "public function getConnection()\n {\n return $this->createDefaultDBConnection($this->_pdo, Zend_Registry::get('config')->database->dbname);\n }", "public function getConnection()\n {\n return $this->createDefaultDBConnection($this->_pdo, Zend_Registry::get('config')->database->dbname);\n }", "protected function getDatabaseConnection( )\n {\n if( sfConfig::get('sf_use_database') )\n {\n try\n {\n return Doctrine_Manager::connection();\n }\n catch( Doctrine_Connection_Exception $e )\n {\n new sfDatabaseManager(sfContext::getInstance()->getConfiguration());\n return Doctrine_Manager::connection();\n }\n }\n\n return null;\n }", "public static function getDBConnection() {\n if (DB::$db==null) {\n DB::$db = new self();\n }\n return DB::$db->dbh;\n }", "public function getDbalConnection();", "public function getConnection()\n {\n return Database::getConnection($this->connection);\n }", "public function getConnection();", "public function getConnection();", "public function getConnection();", "public function getConnection();", "public function getConnection();", "public function getConnection();", "public function getConnection();", "public function getConnection();", "public function getConnection();", "public function getConnection();", "public function getConnection();", "public function getConnection();" ]
[ "0.86307126", "0.86262375", "0.85332894", "0.8458182", "0.8456325", "0.8456325", "0.84319764", "0.84319764", "0.84319764", "0.843153", "0.843153", "0.843153", "0.843153", "0.843153", "0.843153", "0.843153", "0.843153", "0.843153", "0.843153", "0.843153", "0.843153", "0.843153", "0.843153", "0.843153", "0.843153", "0.843153", "0.843153", "0.843153", "0.8431107", "0.8431107", "0.8430769", "0.8430769", "0.8430769", "0.8430769", "0.8430769", "0.8430769", "0.8430769", "0.8430769", "0.8430769", "0.8430769", "0.8430769", "0.8430769", "0.84073514", "0.8359946", "0.832333", "0.8311378", "0.8301978", "0.8294001", "0.82546675", "0.8195987", "0.8195987", "0.81925386", "0.8182188", "0.817687", "0.81752163", "0.8174514", "0.8163448", "0.81576383", "0.8155863", "0.8150525", "0.8150525", "0.81449664", "0.8141211", "0.81128794", "0.8072039", "0.8072039", "0.8072039", "0.8072039", "0.8072039", "0.8072039", "0.8072039", "0.8072039", "0.8072039", "0.80719", "0.806503", "0.80516475", "0.80484134", "0.80435944", "0.8007063", "0.79831624", "0.79774487", "0.79487896", "0.79334843", "0.7927148", "0.7927148", "0.79194146", "0.79176044", "0.7915207", "0.7904525", "0.7899091", "0.7899091", "0.7899091", "0.7899091", "0.7899091", "0.7899091", "0.7899091", "0.7899091", "0.7899091", "0.7899091", "0.7899091", "0.7899091" ]
0.0
-1
Render facebook comment viewhelper
public function render() { $appId = $this->arguments['appId']; $locale = $this->arguments['locale']; $code = '<div id="fb-root"></div>'; $scriptFile = 'http://connect.facebook.net/' . $locale . '/all.js#appId=' . htmlspecialchars($appId) . '&amp;xfbml=1'; $scriptTag = $this->documentHead->wrap(NULL, $scriptFile, 'js'); $this->documentHead->includeHeader($scriptTag, NULL, 'fed-facebook-comment'); $code .= $this->tag->render(); return $code; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function render($model)\n {\n return view('comments::public._comments_facebook', ['model' => $model]);\n }", "function doCommentDiv($p_commentTarget){\n\t\techo '<div class=\"fb-comments\" data-href=\"'. $p_commentTarget .'\" data-width=\"350\" data-numposts=\"3\" data-colorscheme=\"light\"></div>';\n\t}", "function dp_facebook_comment_box() {\n\tglobal $options, $options_visual;\n\t// Facebook comment\n\tif ( get_post_meta(get_the_ID(), 'dp_hide_fb_comment', true) ) return;\n\n\tif ( ($options['facebookcomment'] && get_post_type() === 'post') || ($options['facebookcomment_page'] && is_page()) ) {\n\t\techo '<div class=\"dp_fb_comments_div\"><h3 class=\"inside-title\"><span class=\"title\">'.htmlspecialchars_decode($options['fb_comments_title']).'</span></h3><div class=\"fb-comments\" data-href=\"'.get_permalink ().'\" data-num-posts=\"'.$options['number_fb_comment'].'\" data-width=\"100%\"></div></div>';\n\t}\n}", "public function render()\n {\n return view('components.post.add_comment');\n }", "public function showcommentsAction()\n {\n $comment_params=$this->_request->getParams();\n $ftvcontacts_obj = new Ep_Ftv_FtvContacts();\n $ftvrequest_obj = new Ep_Ftv_FtvRequests();\n $ftvcomments_obj = new Ep_Ftv_FtvComments();\n //$this->render(\"ftv_addcomment\"); exit;\n $request_id = $comment_params['request_id'];\n $this->_view->request_id=$request_id;\n $commentDetails=$ftvcomments_obj->getCommentsByRequests($request_id);\n\n /*$this->_view->commentDetails=$commentDetails;\n $commentsData='';\n if($commentDetails != 'NO')\n {\n $commentsData='';\n $cnt=0;\n foreach($commentDetails as $comment)\n {\n $commentsData.=\n '<li class=\"media\" id=\"comment_'.$comment['identifier'].'\">';\n $commentsData.='<div class=\"media-body\">\n <h4 class=\"media-heading\">\n <a href=\"#\" role=\"button\" data-toggle=\"modal\" data-target=\"#viewProfile-ajax\">'.utf8_encode($comment['first_name']).'</a></h4>\n '.utf8_encode(stripslashes($comment['comments'])).'\n <p class=\"muted\">'.$comment['created_at'].'</p>\n </div>\n </li>';\n }\n }*/\n $this->_view->ftvtype = \"chaine\";\n $this->_view->commentDetails = $commentDetails;\n\n $this->render(\"ftv_ftvaddcomment\");\n\n }", "public function renderCommentView($ucid) {\n global $lexicon;\n global $roles;\n\n $members = new Members();\n\n $comment_data = $this->comments['ucid-'.$ucid];\n $this->html_output .= ('<div class=\"commentia-comment\"'.' data-ucid=\"'.$comment_data['ucid'].'\">'.\"\\n\");\n $this->html_output .= ('<div class=\"commentia-comment-info\">'.\"\\n\");\n $this->html_output .= ('<img src='.$members->getMemberData($comment_data['creator_username'], 'avatar_file').' class=\"commentia-comment-info__member-avatar\">'.\"\\n\");\n $this->html_output .= ('<p class=\"commentia-comment-info__by\">'.COMMENT_INFO_COMMENT_BY.' '.($comment_data['creator_username']).', </p>'.\"\\n\");\n date_default_timezone_set(COMMENTIA_TIMEZONE);\n $this->html_output .= ('<p class=\"commentia-comment-info__timestamp\">'.COMMENT_INFO_POSTED_AT.' '.date(DATETIME_LOCALIZED,strtotime($comment_data['timestamp'])).'</p>'.\"\\n\");\n date_default_timezone_set('UTC');\n $this->html_output .= ('</div>'.\"\\n\");\n $this->html_output .= ('<div class=\"commentia-comment__content\">'.$comment_data['content'].'</div>'.\"\\n\");\n $this->html_output .= ('<div class=\"commentia-comment__edit-area\"></div>'.\"\\n\");\n\n if (!$comment_data['is_deleted']) {\n if ($_SESSION['__COMMENTIA__']['member_is_logged_in']) {\n $this->html_output .= ('<p class=\"commentia-comment-controls\">');\n $this->html_output .= ('<a href=\"javascript:void(0)\" onclick=\"showReplyArea(this)\">'.COMMENT_CONTROLS_REPLY.'</a>');\n if ($roles->memberHasUsername($comment_data['creator_username']) || $roles->memberIsAdmin()) {\n $this->html_output .= ('<a href=\"javascript:void(0)\" onclick=\"showEditArea(this)\">'.COMMENT_CONTROLS_EDIT.'</a>');\n $this->html_output .= ('<a href=\"javascript:void(0)\" onclick=\"deleteComment(this)\">'.COMMENT_CONTROLS_DELETE.'</a>');\n }\n $this->html_output .= ('</p>'.\"\\n\");\n }\n $this->html_output .= ('<div class=\"commentia-rating-controls\">');\n $this->html_output .= ('<a href=\"javascript:void(0)\" onclick=\"updateRating(this, \\'up\\')\" class=\"commentia-rating-controls__arrow commentia-rating-controls__arrow--up\"></a>');\n $this->html_output .= ('<a href=\"javascript:void(0)\" onclick=\"updateRating(this, \\'down\\')\" class=\"commentia-rating-controls__arrow commentia-rating-controls__arrow--down\"></a>');\n $this->html_output .= ('</div>');\n $this->html_output .= ('<span class=\"commentia-rating-indicator\">'.(int) $comment_data['rating'].'</span>');\n }\n\n $this->html_output .= ('<div class=\"commentia-comment__reply-area\"></div>'.\"\\n\");\n\n if ($comment_data['children']) {\n foreach($comment_data['children'] as $child) {\n if (isset($this->comments['ucid-'.$child])) {\n $this->renderCommentView($child);\n unset($this->comments['ucid-'.$child]);\n }\n }\n }\n\n $this->html_output .= ('</div>'.\"\\n\");\n\n }", "public function view() {\n\t\t$blogName = $this->args[1];\n\t\t$postURL = $this->args[2];\n\t\t$id = isset($this->args[4]) ? $this->args[4] : false;\n\t\t$this->post = $this->blogpostModel->getPostFromURL($blogName, $postURL);\n $this->postID = $this->post['postID'];\n\t\t$isOwner = ($this->user && $this->post['userID'] == $this->user->model->userID);\n\n\t\tif($id !== false) {\n\t\t\t$comments = $this->commentsModel->getComment($id);\n\t\t} else {\n\t\t\t$comments = $this->commentsModel->getComments($this->postID);\n\t\t}\n\t\t$this->view->setVar('isOwner', $isOwner);\t\n\t\t$this->view->setVar('comments', $comments);\n\n\t\t$user = false;\n\n\t\t$userInput = new Form('comment', 'comments/commentDo/' . $this->postID, 'post');\n\t\t$userInput->addInput('hidden', 'redirect', false, 'blogpost/view/' . $blogName . '/' . $postURL);\n\t\tif($this->user()) {\n\t\t\t$user = $this->user->model->userName;\n\t\t} else {\n\t\t\tif($this->fbUser) {\n\t\t\t\t$user = $this->fbUser['username'];\n\t\t\t\t$this->view->setVar('fbLogoutURL', $this->fb->getLogoutURL());\n\t\t\t} else {\n\t\t\t\t$this->view->setVar('loginError', true);\n\t\t\t\t$this->view->setVar('fbLoginURL', $this->fb->getLoginURL());\n\t\t\t}\n\t\t}\t\n\t\t$userInput->addTextArea('comment', 10, 60);\n\t\t$userInput->addInput('submit', 'submit', false, 'Submit');\n\n\t\t$this->view->setVar('commentForm', $userInput->genForm());\n\t\t$this->view->setVar('userName', $user);\n\t\t$this->view->setVar('title', 'Comments');\n\t\t$this->view->addViewFile('comments');\n\t}", "function view_comment()\n\t{\n\t\tif ( ! $this->cp->allowed_group('can_access_content'))\n\t\t{\n\t\t\tshow_error($this->lang->line('unauthorized_access'));\n\t\t}\n\n\t\t$comment_id = $this->input->get('comment_id');\n\t\t$this->view_comments('', '', '', array($comment_id));\n\t}", "public function comment()\n {\n $commentManager = new CommentManager();\n \n $comment = $commentManager->getComment($_GET['id']);\n \n require (__DIR__ . '/../view/frontend/commentView.php');\n }", "function comment_notification_text($notify_message, $comment_id) {\n extract($this->get_comment_data($comment_id));\n if ($comment->comment_type == 'facebook') {\n ob_start();\n $content = strip_tags($comment->comment_content);\n ?>\nNew Facebook Comment on your post \"<?php echo $post->post_title ?>\"\n\nAuthor : <?php echo $comment->comment_author ?> \nURL : <?php echo $comment->comment_author_url ?> \n\nComment:\n\n<?php echo $content ?> \n\nParticipate in the conversation here:\n<?php echo $this->get_permalink($post->ID) ?> \n\n <?php\n return ob_get_clean();\n } else {\n return $notify_message;\n }\n }", "public function comments()\n {\n $task = $this->getTask();\n $commentSortingDirection = $this->userMetadataCacheDecorator->get(UserMetadataModel::KEY_COMMENT_SORTING_DIRECTION, 'ASC');\n\n $this->response->html($this->template->render('CommentTooltip:board/tooltip_comments', array(\n 'task' => $task,\n 'comments' => $this->commentModel->getAll($task['id'], $commentSortingDirection)\n )));\n }", "public function actionComments()\n\t{\n\t\t// using the default layout 'protected/views/layouts/main.php'\n\t\t$this->render(\n\t\t\t'comments',\n\t\t\tarray(\n\t\t\t\t'_Comments' => Feedback::model()->findAll(array('order'=>'date_inserted DESC'))\n\t\t\t)\n\t\t);\n\t}", "public function comment()\n {\n $result = $this->dtbs->list('comment');\n $data['info'] = $result;\n $this->load->view('back/comment/anasehife',$data);\n }", "function phptemplate_comment_wrapper($content, $node) {\n if (!$content || $node->type == 'forum') {\n return '<div id=\"comments\">'. $content .'</div><a name=\"comments\"></a>';\n }\n else {\n return '<div id=\"comments\"><h2 class=\"comments\">'. t('Comments') .'</h2>'. $content .'</div><a name=\"comments\"></a>';\n }\n}", "private function comments_wrapper()\n\t{\t\t\n\t\tif($_POST)\n\t\t\t$this->add_comment();\n\n\t\t$post_id = valid::id_key($this->filter);\n\t\t$owner_id = ($this->owner->logged_in())\n\t\t\t? $this->owner->get_user()->id\n\t\t\t: FALSE;\n\t\t\t\n\t\t# get the post with child comment.\n\t\t$post = ORM::Factory('forum_cat_post', $post_id)\n\t\t\t->select(\"\n\t\t\t\tforum_cat_posts.*, forum_cats.name, forum_cats.url,\n\t\t\t\t(SELECT owner_id \n\t\t\t\t\tFROM forum_comment_votes\n\t\t\t\t\tWHERE forum_cat_post_comment_id = forum_cat_posts.forum_cat_post_comment_id\n\t\t\t\t\tAND owner_id = '$owner_id'\n\t\t\t\t) AS has_voted\n\t\t\t\")\n\t\t\t->join('forum_cats', 'forum_cats.id', 'forum_cat_posts.forum_cat_id')\n\t\t\t->where('forum_cat_posts.id', $post_id)\n\t\t\t->find();\n\t\tif(!$post->loaded)\n\t\t\tEvent::run('system.404');\n\n\t\t$view = new View('public_forum/posts_comments_wrapper');\n\t\t$view->post\t\t\t= $post;\n\t\t$view->is_logged_in\t= $this->owner->logged_in();\t\n\t\t$view->owner\t= $owner_id;\n\t\t$view->comments_list = $this->get_comments_list($post_id);\n\t\t$view->selected\t\t= self::tab_selected('votes');\t\t\n\t\treturn $view;\n\t}", "function block_core_comment_template_render_comments($comments, $block)\n {\n }", "public function facebook()\n {\n return view('conversation.facebook');\n }", "function render_block_core_comments($attributes, $content, $block)\n {\n }", "public function render()\n\t{\n\t\t$this->prefix = 'comment';\n\n\t\t$comments = $this->model->getComments();\n\n\t\t$this->items = $comments;\n\n\t\t$user = JFactory::getUser();\n\t\t$this->canDeleteComments = $user->authorise('comment.delete', 'com_monitor');\n\t\t$this->canEditComments = $user->authorise('comment.edit', 'com_monitor');\n\t\t$this->canEditOwnComments = $user->authorise('comment.edit.own', 'com_monitor');\n\t\t$this->canEditIssues = $user->authorise('issue.edit', 'com_monitor');\n\t\t$this->canEditOwnIssues = $user->authorise('issue.edit.own', 'com_monitor');\n\t\t$this->canEditProjects = $user->authorise('project.edit', 'com_monitor');\n\n\t\t$this->setLayout('default');\n\n\t\t$this->addToolbar();\n\n\t\treturn parent::render();\n\t}", "public function render() {\n\n\t\tif(!$this->commentsField) return \"Unable to determine comments field\";\n\t\t$options = $this->options; \t\n\t\t$labels = $options['labels'];\n\t\t$attrs = $options['attrs'];\n\t\t$id = $attrs['id'];\n\t\t$submitKey = $id . \"_submit\";\n\t\t$honeypot = $options['requireHoneypotField'];\n\t\t$inputValues = array('cite' => '', 'email' => '', 'website' => '', 'stars' => '', 'text' => '', 'notify' => '');\n\t\tif($honeypot) $inputValues[$honeypot] = '';\n\t\t\n\t\t$user = $this->wire('user'); \n\n\t\tif($user->isLoggedin()) {\n\t\t\t$inputValues['cite'] = $user->name; \n\t\t\t$inputValues['email'] = $user->email;\n\t\t}\n\t\t\n\t\t$input = $this->wire('input'); \n\t\t$divClass = 'new';\n\t\t$class = trim(\"CommentForm \" . $attrs['class']); \n\t\t$note = '';\n\n\t\t/*\n\t\t * Removed because this is not cache safe! Converted to JS cookie. \n\t\t * \n\t\tif(is_array($this->session->CommentForm)) {\n\t\t\t// submission data available in the session\n\t\t\t$sessionValues = $this->session->CommentForm;\n\t\t\tforeach($inputValues as $key => $value) {\n\t\t\t\tif($key == 'text') continue; \n\t\t\t\tif(!isset($sessionValues[$key])) $sessionValues[$key] = '';\n\t\t\t\t$inputValues[$key] = htmlentities($sessionValues[$key], ENT_QUOTES, $this->options['encoding']); \n\t\t\t}\n\t\t\tunset($sessionValues);\n\t\t}\n\t\t*/\n\n\t\tforeach($options['presets'] as $key => $value) {\n\t\t\tif(!is_null($value)) $inputValues[$key] = $value; \n\t\t}\n\n\t\t$out = '';\n\t\t$showForm = true; \n\t\t\n\t\tif($options['processInput'] && $input->post->$submitKey == 1) {\n\t\t\t$comment = $this->processInput(); \n\t\t\tif($comment) { \n\t\t\t\t$out .= $this->renderSuccess($comment); // success, return\n\t\t\t} else {\n\t\t\t\t$inputValues = array_merge($inputValues, $this->inputValues);\n\t\t\t\tforeach($inputValues as $key => $value) {\n\t\t\t\t\t$inputValues[$key] = htmlentities($value, ENT_QUOTES, $this->options['encoding']);\n\t\t\t\t}\n\t\t\t\t$note = \"\\n\\t$options[errorMessage]\";\n\t\t\t\t$divClass = 'error';\n\t\t\t}\n\n\t\t} else if($this->options['redirectAfterPost'] && $input->get('comment_success') === \"1\") {\n\t\t\t$note = $this->renderSuccess();\n\t\t}\n\n\t\t$form = '';\n\t\tif($showForm) {\n\t\t\tif($this->options['depth'] > 0) {\n\t\t\t\t$form = $this->renderFormThread($id, $class, $attrs, $labels, $inputValues);\n\t\t\t} else {\n\t\t\t\t$form = $this->renderFormNormal($id, $class, $attrs, $labels, $inputValues); \n\t\t\t}\n\t\t\tif(!$options['presetsEditable']) {\n\t\t\t\tforeach($options['presets'] as $key => $value) {\n\t\t\t\t\tif(!is_null($value)) $form = str_replace(\" name='$key'\", \" name='$key' disabled='disabled'\", $form); \n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t$out .= \n\t\t\t\"\\n<div id='{$id}' class='{$id}_$divClass'>\" . \t\n\t\t\t\"\\n\" . $this->options['headline'] . $note . $form . \n\t\t\t\"\\n</div><!--/$id-->\";\n\n\n\t\treturn $out; \n\t}", "public function action_index()\n\t{\n\t\t$code_id = $this->request->param('code_id');\n\t\t\n\t\tif ($code_id)\n\t\t{\n\t\t\t$view = View::factory('widgets/comment/index')\n\t\t\t\t->bind('comments', $comments);\n\t\t\t\t\n\t\t\t$comments = $this->_format_comments(\n\t\t\t\tORM::factory('comment')\n\t\t\t\t\t->where('code_id', '=', $code_id)\n\t\t\t\t\t->order_by('date_posted', 'ASC')\n\t\t\t\t\t->find_all()\n\t\t\t);\n\t\t\t\n\t\t\t$this->request->response()->body($view);\n\t\t}\n\t}", "function render_comments(){\n $response = '<table width=\"100%\" style=\"border:5px solid #dddddd;\">';\n $user_id = $this->request->get('user_id');\n if (empty($user_id)){\n $user_id = $this->request->post('user_id');\n if (empty($user_id)){\n $user_id = $this->logged_user->getId();\n }\n }\n\n $action_type = $_GET['action_type'];\n $parent_id = $_GET['parent_id'];\n\n $temp_obj = new ProjectObject($parent_id);\n $parenttype = $temp_obj->getType();\n $parentobj = new $parenttype($parent_id);\n $projectobj = new Project($parentobj->getProjectId());\n $milestone_id = $parentobj->getMilestoneId();\n if (!empty($milestone_id)){\n $milestoneobj = new Milestone($milestone_id);\n }\n $assigneesstring = '';\n list($assignees, $owner_id) = $parentobj->getAssignmentData();\n foreach($assignees as $assignee) {\n $assigneeobj = new User($assignee);\n $assigneesstring .= '<a target=\"_blank\" href=\"' . $assigneeobj->getViewUrl() . '\">' . $assigneeobj->getName() . '</a>, ';\n unset($assigneeobj);\n }\n if (!empty($assigneesstring)){\n $assigneesstring = substr($assigneesstring, 0, -2);\n }\n $dueon = date('F d, Y', strtotime($parentobj->getDueOn()));\n if ($dueon=='January 01, 1970'){\n $dueon = '--';\n }\n if ($milestoneobj){\n $priority = $milestoneobj->getPriority();\n if (!empty($priority) || $priority=='0'){\n $priority = $milestoneobj->getFormattedPriority();\n } else {\n $priority = '--';\n }\n } else {\n $priority = '--';\n }\n\n $response .= '\n <tr><td colspan=\"2\" style=\"height:20px;\">&nbsp;</td></tr>\n <tr>\n <td style=\"width:25%;\" valign=\"top\">' . $parenttype . '</td>\n <td valign=\"top\">\n <a target=\"_blank\" href=\"' . $parentobj->getViewUrl() . '\"><span class=\"homepageobject\">' . $parentobj->getName() . '</span></a>\n </td>\n </tr>\n <tr>\n <td valign=\"top\">Team &raquo; Project</td>\n <td valign=\"top\">\n <a target=\"_blank\" href=\"' . $projectobj->getOverviewUrl() . '\"><span class=\"homepageobject\">' . $projectobj->getName() . '</span></a> &raquo; ' . ($milestoneobj ? '<a target=\"_blank\" href=\"' . $milestoneobj->getViewUrl() . '\"><span class=\"homepageobject\">' . $milestoneobj->getName() . '</a></span>' : '--') .\n '</td>\n </tr>\n <tr>\n <td vlaign=\"top\">Project Priority</td>\n <td valign=\"top\">' .\n $priority .\n '</td>\n </tr>\n <tr>\n <td valign=\"top\">Due on</td>\n <td valign=\"top\">' .\n $dueon .\n '</td>\n </tr>\n <tr>\n <td valign=\"top\">Assignees</td>\n <td valign=\"top\">' .\n $assigneesstring .\n '</td>\n </tr>\n <tr><td colspan=\"2\" style=\"height:20px;\">&nbsp;</td></tr>';\n\n \t$link = mysql_connect(DB_HOST, DB_USER, DB_PASS);\n \tmysql_select_db(DB_NAME, $link);\n if ($action_type=='actionrequest'){\n $query = \"(select b.id, d.id as parent_ref , a.date_added as date_value, e.priority as prio, c.name as project_name\n from healingcrystals_assignments_action_request a\n inner join healingcrystals_project_objects b on a.comment_id=b.id\n inner join healingcrystals_project_objects d on b.parent_id=d.id\n left outer join healingcrystals_project_objects e on d.milestone_id=e.id\n inner join healingcrystals_projects c on b.project_id=c.id\n where d.id='\" . $parent_id . \"' and b.state='\" . STATE_VISIBLE . \"' and a.user_id='\" . $user_id . \"' and a.is_action_request='1'\n and d.state='\" . STATE_VISIBLE . \"' )\n union\n (select '' as id, a.object_id as parent_ref, b.created_on as date_value, e.priority as prio, c.name as project_name\n from healingcrystals_assignments_flag_fyi_actionrequest a\n inner join healingcrystals_project_objects b on a.object_id=b.id\n left outer join healingcrystals_project_objects e on b.milestone_id=e.id\n inner join healingcrystals_projects c on b.project_id=c.id\n where a.user_id='\" . $user_id . \"' and a.object_id='\" . $parent_id . \"' and flag_actionrequest='1' and b.state='\" . STATE_VISIBLE . \"'\n )\n order by prio desc, project_name, date_value desc\";\n\n } elseif ($action_type=='fyi'){\n $query = \"(select b.id, d.id as parent_ref , a.date_added as date_value, e.priority as prio, c.name as project_name\n from healingcrystals_assignments_action_request a\n inner join healingcrystals_project_objects b on a.comment_id=b.id\n inner join healingcrystals_project_objects d on b.parent_id=d.id\n left outer join healingcrystals_project_objects e on d.milestone_id=e.id\n inner join healingcrystals_projects c on b.project_id=c.id\n where d.id='\" . $parent_id . \"' and b.state='\" . STATE_VISIBLE . \"' and a.user_id='\" . $user_id . \"' and a.is_fyi='1'\n and d.state='\" . STATE_VISIBLE . \"' )\n union\n (select '' as id, a.object_id as parent_ref, b.created_on as date_value, e.priority as prio, c.name as project_name\n from healingcrystals_assignments_flag_fyi_actionrequest a\n inner join healingcrystals_project_objects b on a.object_id=b.id\n left outer join healingcrystals_project_objects e on b.milestone_id=e.id\n inner join healingcrystals_projects c on b.project_id=c.id\n where a.user_id='\" . $user_id . \"' and a.object_id='\" . $parent_id . \"' and flag_fyi='1' and b.state='\" . STATE_VISIBLE . \"'\n )\n order by prio desc, project_name, date_value desc\";\n }\n $result = mysql_query($query);\n $count = 0;\n while($entry = mysql_fetch_assoc($result)){\n $count++;\n if (!empty($entry['id'])){\n $temp_obj = new Comment($entry['id']);\n $created_by_id = $temp_obj->getCreatedById();\n $created_by_user = new User($created_by_id);\n $created_on = strtotime($temp_obj->getCreatedOn());\n $created_on = date('m-d-y', $created_on);\n\n $temp = $temp_obj->getFormattedBody(true, true);\n $comment_body = $temp;\n $response .= '\n <tr>\n <td valign=\"top\" style=\"vertical-align:top;\">\n Comment by<br/>' .\n (!empty($created_by_id) ? '<a target=\"_blank\" href=\"' . $created_by_user->getViewUrl() . '\">' . $created_by_user->getName() . '</a>' : $temp_obj->getCreatedByName()) .\n '<br/><br/><br/>\n <a target=\"_blank\" href=\"' . $temp_obj->getViewUrl() . '\">[view comment]</a><br/>&nbsp;&nbsp;&nbsp;' .\n $created_on .\n '<br/><br/><br/>' .\n ($action_type=='actionrequest' ?\n '<a class=\"mark_as_complete\" count=\"' . $count . '\" href=\"' . assemble_url('project_comment_action_request_completed', array('project_id' => $temp_obj->getProjectId(), 'comment_id' => $temp_obj->getId())) . '\">Mark Action Request Complete</a>'\n : '') .\n ($action_type=='fyi' ?\n '<a class=\"mark_as_read\" count=\"' . $count . '\" href=\"' . assemble_url('project_comment_fyi_read', array('project_id' => $temp_obj->getProjectId(), 'comment_id' => $temp_obj->getId())) . '\">Mark this Notification<br/>as Read</a>'\n : '') .\n '</td>\n <td valign=\"top\" style=\"vertical-align:top;\">\n <div style=\"width:600px;overflow:auto;\">' . $comment_body . '</div>' .\n ($show_read_link ? '<a target=\"_blank\" href=\"' . $temp_obj->getViewUrl() . '\">Click here to read the rest of this Comment</a>' : '') .\n '</td>\n </tr>\n <tr><td colspan=\"2\" style=\"height:20px;\">&nbsp;</td></tr>';\n } else {\n $response .= '\n <tr>\n <td valign=\"top\" style=\"vertical-align:top;\">\n Created by<br/>' .\n (!empty($created_by_id) ? '<a target=\"_blank\" href=\"' . $created_by_user->getViewUrl() . '\">' . $created_by_user->getName() . '</a>' : $parentobj->getCreatedByName()) .\n '<br/><br/><br/>\n <a target=\"_blank\" href=\"' . $parentobj->getViewUrl() . '\">[view object]</a><br/>&nbsp;&nbsp;&nbsp;' .\n $created_on .\n '<br/><br/><br/>' .\n ($action_type=='action_request' ?\n '<a class=\"mark_as_complete\" count=\"' . $count . '\" href=\"' . assemble_url('project_object_action_request_completed', array('project_id' => $parentobj->getProjectId())) . '&object_id=' . $parentobj->getId() . '&project_id=' . $parentobj->getProjectId() . '\">Mark Action Request Complete</a>'\n : '') .\n ($action_type=='fyi' ?\n '<a class=\"mark_as_read\" count=\"' . $count . '\" href=\"' . assemble_url('project_object_fyi_read', array('project_id' => $parentobj->getProjectId())) . '&object_id=' . $parentobj->getId() . '&project_id=' . $parentobj->getProjectId() . '\">Mark this Notification<br/>as Read</a>'\n : '') .\n '</td>\n <td valign=\"top\" style=\"vertical-align:top;\">\n <div style=\"width:600px;overflow:auto;\">' . $parentobj->getFormattedBody(true, true) . '</div>\n </td>\n </tr>\n <tr><td colspan=\"2\" style=\"height:20px;\">&nbsp;</td></tr>';\n }\n\n }\n mysql_close($link);\n $response .= '</table>';\n $this->smarty->assign('response', $response);\n }", "function lightboxgallery_print_comment($comment, $context) {\n global $DB, $CFG, $COURSE, $OUTPUT;\n\n //TODO: Move to renderer!\n\n $user = $DB->get_record('user', array('id' => $comment->userid));\n\n $deleteurl = new moodle_url('/mod/lightboxgallery/comment.php', array('id' => $comment->gallery, 'delete' => $comment->id));\n\n echo '<table cellspacing=\"0\" width=\"50%\" class=\"boxaligncenter datacomment forumpost\">'.\n '<tr class=\"header\"><td class=\"picture left\">'.$OUTPUT->user_picture($user, array('courseid' => $COURSE->id)).'</td>'.\n '<td class=\"topic starter\" align=\"left\"><a name=\"c'.$comment->id.'\"></a><div class=\"author\">'.\n '<a href=\"'.$CFG->wwwroot.'/user/view.php?id='.$user->id.'&amp;course='.$COURSE->id.'\">'.\n fullname($user, has_capability('moodle/site:viewfullnames', $context)).'</a> - '.userdate($comment->timemodified).\n '</div></td></tr>'.\n '<tr><td class=\"left side\">'.\n // TODO: user_group picture?\n '</td><td class=\"content\" align=\"left\">'.\n format_text($comment->comment, FORMAT_MOODLE).\n '<div class=\"commands\">'.\n (has_capability('mod/lightboxgallery:edit', $context) ? html_writer::link($deleteurl, get_string('delete')) : '').\n '</div>'.\n '</td></tr></table>';\n}", "public function comments()\n {\n $comments = $this->comment->getAllComments();\n $this->buildView(array('comments' => $comments));\n }", "function render_block_core_comment_template($attributes, $content, $block)\n {\n }", "public function getRawComment()\n\t{\n\t\tFoundry::checkToken();\n\n\t\t// Only registered users are allowed here.\n\t\tFoundry::requireLogin();\n\n\t\t// Get the view\n\t\t$view = Foundry::view( 'comments', false );\n\n\t\t// Check for permission first\n\t\t$access = Foundry::access();\n\n\t\tif( !$access->allowed( 'comments.read' ) )\n\t\t{\n\t\t\t$view->setMessage( JText::_( 'COM_EASYSOCIAL_COMMENTS_NOT_ALLOWED_TO_READ' ) , SOCIAL_MSG_ERROR );\n\t\t\treturn $view->call( __FUNCTION__ );\n\t\t}\n\n\t\t$id = JRequest::getInt( 'id', 0 );\n\n\t\t$table = Foundry::table( 'comments' );\n\n\t\t$state = $table->load( $id );\n\n\t\tif( !$state )\n\t\t{\n\t\t\t$view->setMessage( $table->getError(), SOCIAL_MSG_ERROR );\n\t\t\treturn $view->call( __FUNCTION__ );\n\t\t}\n\n\t\t$comment = $table->comment;\n\n\t\t$stringLib = Foundry::get( 'string' );\n\n\t\t$comment = $stringLib->escape( $comment );\n\n\n\t\t$view->call( __FUNCTION__, $comment );\n\t}", "function render_block_core_comment_content($attributes, $content, $block)\n {\n }", "function garland_preprocess_comment_wrapper(&$vars) {\n if ($vars['content'] && $vars['node']->type != 'forum') {\n $vars['content'] = '<h2 class=\"comments\">'. t('Comments') .'</h2>'. $vars['content'];\n }\n}", "public function displayComments()\n {\n global $lexicon;\n $lexicon = new Lexicon(COMMENTIA_LEX_LOCALE);\n\n global $roles;\n $roles = new Roles();\n\n /**\n * Iterates through each comment recursively, and appends it to the var holding the HTML markup.\n *\n * @param array $comment An array containing all the comment data\n */\n\n foreach ($this->comments as $comment) {\n if (isset($this->comments['ucid-'.$comment['ucid']])) {\n $this->renderCommentView($comment['ucid']);\n unset($this->comments['ucid-'.$comment['ucid']]);\n }\n }\n\n if ($_SESSION['__COMMENTIA__']['member_is_logged_in']) {\n $this->html_output .= ('<div class=\"commentia-new_comment_area\">'.\"\\n\".'<h4>'.TITLES_NEW_COMMENT.'</h4>'.\"\\n\".'<textarea id=\"comment-box\" oninput=\"autoGrow(this);\"></textarea>'.\"\\n\".'<button id=\"post-comment-button\" onclick=\"postNewComment(this);\">'.COMMENT_CONTROLS_PUBLISH.'</button>'.\"\\n\".'</div>'.\"\\n\");\n }\n\n return $this->html_output;\n }", "function pmi_preprocess_comment_wrapper(&$vars) {\n if ($vars['content'] && $vars['node']->type != 'forum') {\n $vars['content'] = '<h2 class=\"comments\">'. t('Comments') .'</h2>'. $vars['content'];\n }\n}", "public function run(){\n\t\tYii::app()->clientScript->registerScript('enterComment',\"\n\t\t\t$('#Comment_content').live('keypress', function(e){\n\t\t\t if(e.keyCode == 13){\n\t\t\t\t\te.preventDefault();\n\t\t\t\t\t//jQuery.ajax({'type':'POST','url':'/comment/comment','cache':false,'data':jQuery(this).parents(\\\"form\\\").serialize(),'success':function(html){jQuery(\\\"#comment-page\\\").html(html)}});$('#Comment_content').attr('disabled', 'disabled');\n\t\t\t\t $('#comment').trigger('click'); \n\t\t\t\t\treturn false;\n\t\t\t\t }\n \t});\", CClientScript::POS_END);\n\t\t\n\t\tYii::app()->clientScript->registerScript('deleteComment',\"\n\t\t\t$('.close > a').live('click', function(e){jQuery.ajax({'type':'GET','success':$('#comment'+$(this).attr('id').substring(1)).hide('slow'),'data':{'id':$(this).attr('id').substring(1)},'url':'\".CHtml::normalizeUrl(array('/comment/deleteComment')).\"','cache':false});return false;\n\t\t});\", CClientScript::POS_END);\n\t\t\n\t\t$this->render('commenting',array(\n\t\t\t'model'=>$this->model,\n\t\t\t'comments'=>$this->comments,\n\t\t));\n }", "function phptemplate_comment_wrapper($content, $type = null) {\n static $node_type;\n if (isset($type)) $node_type = $type;\n\n if (!$content || $node_type == 'forum') {\n return '<div id=\"comments\">'. $content . '</div>';\n }\n else {\n return '<div id=\"comments\"><h2 class=\"comments\">'. t('Comments') .'</h2>'. $content .'</div>';\n }\n}", "function ds_views_row_render_render_cache_comment($entity, $view_mode, $load_comments) {\n $element = render_cache_entity_view_single('comment', $entity, $view_mode);\n return $element;\n}", "function charangoten_custom_comment(&$a1, $op) {\n if ($op == 'insert' || $op == 'update') {\n if ($a1['stream_publish']) {\n //dpm($a1, \"dff_custom_comment, publishing to stream\");\n $node = node_load($a1['nid']);\n \n // http://wiki.developers.facebook.com/index.php/Attachment_(Streams)\n $attachment = array(\n 'name' => $a1['subject'],\n 'href' => url('node/' . $a1['nid'], array('absolute' => TRUE, 'fragment' => 'comment-' . $a1['cid'])),\n 'description' => $a1['comment'],\n 'properties' => array(t('In reply to') => array('text' => $node->title, 'href' => url(\"node/\" . $node->nid, array('absolute' => TRUE)))),\n );\n\n $user_message = t('Check out my latest comment on !site...',\n array('!site' => variable_get('site_name', t('my Drupal for Facebook powered site'))));\n $actions = array();\n $actions[] = array('text' => t('Read More'),\n 'href' => url('node/'.$a1['nid'], array('absolute' => TRUE)),\n );\n fb_stream_publish_dialog(array('user_message' => $user_message,\n 'attachment' => $attachment,\n 'action_links' => $actions,\n ));\n }\n }\n\n}", "function smarty_function_mtgreetfacebookcommenters($args, &$ctx) {\n\n $entry = $ctx->stash('entry');\n if (empty($entry))\n return '';\n\n $blog = $ctx->stash('blog');\n if (empty($blog))\n return '';\n $blog_id = $blog['blog_id'];\n\n # Load settings\n $config = $ctx->mt->db->fetch_plugin_config('FacebookCommenters', \"blog:$blog_id\");\n if (empty($config) || \n empty($config['facebook_app_key']) ||\n empty($config['facebook_story_template_id']))\n return '';\n\n # Load 'greets.tmpl'\n $dir = dirname(__FILE__);\n $dir = explode(DIRECTORY_SEPARATOR, $dir);\n array_pop($dir);\n $dir = implode(DIRECTORY_SEPARATOR, $dir);\n $fp = fopen(\"$dir/tmpl/greets.tmpl\", \"r\");\n $tmpl = '';\n while (!feof($fp)) {\n $tmpl .= fgets($fp, 1024);\n }\n fclose ($fp);\n if (empty($tmpl))\n return '';\n\n # Bind variants\n $localvars = array('fb_api_key', 'facebook_story_template_id','facebook_send_story','facebook_apply_commenter_data','facebook_act_now');\n $ctx->localize($localvars);\n $ctx->__stash['vars']['fb_api_key'] = $config['facebook_app_key'];\n $ctx->__stash['vars']['facebook_story_template_id'] = $config['facebook_story_template_id'];\n $ctx->__stash['vars']['facebook_send_story'] =\n (isset($ctx->__stash['vars']['comment_confirmation']) && $ctx->__stash['vars']['comment_confirmation']) ? 1\n : (isset($ctx->__stash['vars']['comment_pending']) && $ctx->__stash['vars']['comment_pending']) ? 1\n : 0;\n $ctx->__stash['vars']['facebook_apply_commenter_data'] = 1;\n if ($ctx->__stash['vars']['facebook_send_story'])\n $ctx->__stash['vars']['facebook_act_now'] = $ctx->__stash['vars']['facebook_send_story'];\n elseif ($ctx->__stash['vars']['facebook_apply_commenter_data'])\n $ctx->__stash['vars']['facebook_act_now'] = $ctx->__stash['vars']['facebook_apply_commenter_data'];\n\n # Build template;\n $_var_compiled = '';\n if (!$ctx->_compile_source('evaluated template', $tmpl, $_var_compiled)) {\n return $ctx->error(\"Error compiling text '$text'\");\n }\n ob_start();\n $ctx->_eval('?>' . $_var_compiled);\n $_contents = ob_get_contents();\n ob_end_clean();\n $ctx->restore($localvars);\n\n return $_contents;\n}", "function maennaco_preprocess_comment_wrapper(&$vars) {\n if ($vars['content'] && $vars['node']->type != 'forum') {\n $vars['content'] = '<h2 class=\"comments\">' . t('Comments') . '</h2>' . $vars['content'];\n }\n}", "private function my_comments_list()\n\t{\n\t\t$comments = ORM::factory('forum_cat_post_comment')\n\t\t\t->with('forum_cat_post')\n\t\t\t->where(array(\n\t\t\t\t'owner_id'\t=> $this->owner->get_user()->id,\n\t\t\t\t'is_post'\t\t=> '0'\n\t\t\t))\n\t\t\t->orderby(\"forum_cat_post_comments.$this->sort_by\", $this->order)\n\t\t\t->find_all();\n\t\tif(0 == $comments->count())\n\t\t\treturn 'No comments added yet.';\n\t\t\t\n\t\t$view = new View('public_forum/my_comments_list');\n\t\t$view->comments = $comments;\n\t\treturn $view;\n\t}", "public function Comments(){\n if(!isset($_SESSION[\"oturum\"])){\n header(\"location: \" . URL . \"login\" );\n }\n //Model Connections\n $comments = $this->model('Comments');\n $categories = $this->model('Categories');\n\n //Load data from model to views.\n $getComments = $comments->getLatestComments();\n\n //Load views\n require VIEW_PATH . \"templates/header-yonetim.php\";\n require VIEW_PATH . \"comments/index.php\";\n require VIEW_PATH . \"templates/footer-yonetim.php\";\n }", "function get_comments_popup_template()\n {\n }", "function comments_template($template) {\n global $__FB_COMMENT_EMBED;\n global $post;\n global $comments;\n\n if (!apply_filters('fbc_force_enabled', false, $post)) {\n\n if ( is_page() && apply_filters('fbc_disable_on_pages', false) ) {\n return '';\n }\n\n if ( !( is_singular() && ( have_comments() || 'open' == $post->comment_status ) ) ) {\n return '';\n }\n\n if ( $post->post_status != 'publish' || !empty($_REQUEST['preview'])) {\n return '';\n }\n\n if ( !$this->is_enabled() ) {\n return $template;\n }\n\n }\n\n $__FB_COMMENT_EMBED = true;\n return dirname(__FILE__).'/comments.php';\n }", "function theme_render_comment($comment, $args, $depth) {\n\t$GLOBALS['comment'] = $comment;\n\t?>\n\t<li <?php comment_class(); ?> id=\"li-comment-<?php comment_ID() ?>\">\n\t\t<div id=\"comment-<?php comment_ID(); ?>\">\n\t\t <div class=\"comment-author vcard\">\n\t\t <?php echo get_avatar($comment, 48); ?>\n\t\t <?php comment_author_link() ?>\n\t\t <span class=\"says\">says:</span>\n\t\t </div>\n\t\t <?php if ($comment->comment_approved == '0') : ?>\n\t\t <em class=\"moderation-notice\"><?php _e('Your comment is awaiting moderation.') ?></em><br />\n\t\t <?php endif; ?>\n\t\t\n\t\t <div class=\"comment-meta\">\n\t\t \t<a href=\"<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ?>\">\n\t\t \t\t<?php comment_date() ?> at <?php comment_time() ?>\n\t\t \t</a>\n\t\t \t<?php edit_comment_link(__('(Edit)'),' ','') ?>\n\t \t</div>\n\t\t\t\n\t\t\t<div class=\"comment-text\">\n\t\t \t<?php comment_text() ?>\n\t\t </div>\n\t\n\t\t <div class=\"comment-reply\">\n\t\t <?php comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth']))) ?>\n\t\t </div>\n\t\t</div>\n\t<?php\n}", "protected function renderSuccess(Comment $comment = null) {\n\n\t\t$pageID = (int) $this->wire('input')->post->page_id; \n\t\t\n\t\tif($pageID && $this->options['redirectAfterPost']) {\n\t\t\t// redirectAfterPost option\n\t\t\t$page = $this->wire('pages')->get($pageID); \n\t\t\tif(!$page->viewable() || !$page->id) $page = $this->wire('page');\n\t\t\t$url = $page->id ? $page->url : './';\n\t\t\t$url .= \"?comment_success=1\";\n\t\t\tif($comment && $comment->id && $comment->status > Comment::statusPending) {\n\t\t\t\t$url .= \"&comment_approved=1#Comment$comment->id\";\n\t\t\t} else {\n\t\t\t\t$url .= \"#CommentPostNote\";\n\t\t\t}\n\t\t\t$this->wire('session')->set('PageRenderNoCachePage', $page->id); // tell PageRender not to use cache if it exists for this page\n\t\t\t$this->wire('session')->redirect($url);\n\t\t\treturn '';\n\t\t}\n\t\t\n\t\tif(!$this->commentsField || $this->commentsField->moderate == FieldtypeComments::moderateAll) {\n\t\t\t// all comments are moderated\n\t\t\t$message = $this->options['pendingMessage'];\n\t\t\t\n\t\t} else if($this->commentsField->moderate == FieldtypeComments::moderateNone) {\n\t\t\t// no moderation in service\n\t\t\t$message = $this->options['successMessage'];\n\t\t\t\n\t\t} else if($comment && $comment->status > Comment::statusPending) {\n\t\t\t// comment is approved\n\t\t\t$message = $this->options['successMessage'];\n\n\t\t} else if($this->wire('input')->get('comment_approved') == 1) {\n\t\t\t// comment was approved in previous request\n\t\t\t$message = $this->options['successMessage'];\n\t\t\t\n\t\t} else {\n\t\t\t// other/comment still pending\n\t\t\t$message = $this->options['pendingMessage'];\n\t\t}\n\t\t\n\t\treturn \"<div id='CommentPostNote'>$message</div>\"; \n\t}", "public function userPostComments()\n {\n // $comments = Auth('user')->user()->comments;\n $comments = Auth::user()->comments;\n return view('frontend.user.comments', compact('comments'));\n }", "function index(){\n\t\trender('apps/comment_list/index',$data,'apps');\n\t}", "public function index()\n\t{\n\t\t$datas = fc_comment::get();\n\t\t$data = array();\n\t\tforeach ($datas as $key => $value) {\n\t\t\tif($value->user_id != NULL){ \n\t\t\t\t$texts = DB::table('users')->where('id', $value->user_id)->get();\n\t\t\t foreach ($texts as $text) {\n\t\t\t $text = $text->fname .' '.$text->lname ;\n\t\t\t }\n }\n\n\n\t\t\telse \n\t\t\t\t$text = \"Anonymous\";\n\t\t\t$value->user =$text;\n\t\t\t$data[$key] = $value;\n\n\t\t}\n\n\t return view(\"vendor.pingpong.admin.comments.index\")->with(\"data\", $data);\n\t}", "protected function getComment() {\n\t\t$comment_body = elgg_view('output/longtext', array(\n\t\t\t'value' => $this->comment->description,\n\t\t));\n//\t\tif (elgg_view_exists('output/linkify')) {\n//\t\t\t$comment_body = elgg_view('output/linkify', array(\n//\t\t\t\t'value' => $comment_body\n//\t\t\t));\n//\t\t}\n\t\t$comment_body .= elgg_view('output/attached', array(\n\t\t\t'entity' => $this->comment,\n\t\t));\n\n\t\t$attachments = $this->comment->getAttachments(array('limit' => 0));\n\t\tif ($attachments && count($attachments)) {\n\t\t\t$attachments = array_map(function(\\ElggEntity $entity) {\n\t\t\t\treturn elgg_view('output/url', [\n\t\t\t\t\t'href' => $entity->getURL(),\n\t\t\t\t\t'text' => $entity->getDisplayName(),\n\t\t\t\t]);\n\t\t\t}, $attachments);\n\n\t\t\t$attachments_text = implode(', ', array_filter($attachments));\n\t\t\tif ($attachments_text) {\n\t\t\t\t$comment_body .= elgg_echo('interactions:attachments:labelled', array($attachments_text));\n\t\t\t}\n\t\t}\n\n\t\treturn strip_tags($comment_body, '<p><strong><em><span><ul><li><ol><blockquote><img><a>');\n\t}", "function showComments()\n\t{\n $qry = mysql_query(\"SELECT * FROM `comments` \n WHERE '\" . $this->ytcode .\"' = `youtubecode`\n ORDER BY upload_date DESC\n LIMIT 0,4 \");//DEFAULT: Comments shown=3\n if (!$qry)\n die(\"FAIL: \" . mysql_error());\n\n $html = '';\n while($row = mysql_fetch_array($qry))\n {\n \n $com_user=$row['com_user'];\n $com_user = str_replace('\\\\','',$com_user);\n $comment_dis=$row['com_dis'];\n $comment_dis = str_replace('\\\\', '', $comment_dis);\n $date = new DateTime($row['upload_date']);\n\n $html .= '<p class=\"comment-p\">\n <span class=\"userName\">' . $com_user . '</span>\n <span class=\"divider\">//</span>\n <time datetime=\"' . $date->format('Y-m-d') .'\">'.\n $date->format('d/m/y g:i a')\n .'</time> : '. $comment_dis .'\n </p>'; \n }\n \n return $html;\n\t}", "function render_block_core_latest_comments($attributes = array())\n {\n }", "public function getCommentsForWallpostAction()\n {\n $params = $this->getRequest()->getParams();\n //Get users blocked and users who have blocked logged in user.\n\t$blocked_user = \\Extended\\blocked_users::getAllBlockersAndBlockedUsers(Auth_UserAdapter::getIdentity()->getId());\n\t\n\techo Zend_Json::encode( \\Extended\\comments::getCommentsForWallpost( \\Auth_UserAdapter::getIdentity()->getId(), $params['wallpost_id'], $params['offset'], 10, $blocked_user ) );\n\t\n\n\tdie;\n }", "public function render()\n {\n $comments = Comment::with('user')->get();\n return view('livewire.comment-component', compact('comments'));\n }", "function render_block_core_post_comments_form($attributes, $content, $block)\n {\n }", "function pixelgrade_comments_template() {\n\t\t// We need to pass the template path retrieved by our locate function so the component template is accounted for\n\t\t// If present in the root of the theme or child theme, `/comments.php` will take precedence.\n\t\tcomments_template( '/' . pixelgrade_make_relative_path( pixelgrade_locate_component_template( Pixelgrade_Blog::COMPONENT_SLUG, 'comments' ) ) );\n\t}", "public function index() {\n $items = $this->model->getCustomerComment();\n $data = array(\n 'items' => $items,\n );\n $this->template->write_view('content', 'FRONTEND/customer_comment', $data);\n $this->template->render();\n }", "public function showCommentOfUserAction()\n {\n $params = $this->getRequest()->getParams();\n //Get users blocked and users who have blocked logged in user.\n $blocked_user = \\Extended\\blocked_users::getAllBlockersAndBlockedUsers(Auth_UserAdapter::getIdentity()->getId());\n \n $comments_obj = \\Extended\\comments::getRowObject( $params['comment_id'] );\n \n if($blocked_user)\n {\n \t$comment_user_photo_detail = \\Extended\\comments::getUsersPhotoForComment($comments_obj->getCommentsIlook_user()->getId(), $blocked_user);\n }\n else\n {\n \t$comment_user_photo_detail['photo_path'] = \\Helper_common::getUserProfessionalPhoto($comments_obj->getCommentsIlook_user()->getId(), 3);\n \t$comment_user_photo_detail['is_photo_clickable'] = true;\n }\n if( $comments_obj->getCommentsIlook_user()->getAccount_closed_on())\n {\n \t$comment_user_photo_detail['photo_path'] = \\Helper_common::getUserProfessionalPhoto($comments_obj->getCommentsIlook_user()->getId(), 3);\n \t$comment_user_photo_detail['is_photo_clickable'] = false;\n }\n $ret_r = array();\n $ret_r['comm_id'] = $params['comment_id'];\n $ret_r['comm_text'] = $comments_obj->getComment_text();\n $ret_r['same_comm_id'] = $comments_obj->getSame_comment_id();\n $ret_r['commenter_id'] = $comments_obj->getCommentsIlook_user()->getId();\n $ret_r['commenter_fname'] = $comments_obj->getCommentsIlook_user()->getFirstname();\n $ret_r['commenter_lname'] = $comments_obj->getCommentsIlook_user()->getLastname();\n $ret_r['commenter_small_image'] = $comment_user_photo_detail['photo_path'];\n $ret_r['is_user_photo_clickable'] = $comment_user_photo_detail['is_photo_clickable'];\n $ret_r['wp_id'] = $comments_obj->getId();\n $ret_r['created_at'] = Helper_common::nicetime( $comments_obj->getCreated_at()->format( \"Y-m-d H:i:s\" ));\n echo Zend_Json::encode($ret_r);\n die;\n }", "public function showComments(){\n if (isset($_GET['id'])) {\n $postId = $_GET['id'];\n $postRepository = new PostRepository();\n //call to readById\n $post = $postRepository->readById($postId);\n $commentRepository = new CommentRepository();\n $commentlist = $commentRepository->getComments($postId);\n $this->commentView($post, $commentlist);\n }\n }", "private function getCommentShell() {\n // if comment author is NULL (not really a normal data condition), then actually fetch the comment and return it\n if ($this->commentAuthorID === null) {\n try {\n return Connect\\SocialQuestionComment::fetch($this->connectObj->ID);\n }\n catch (\\Exception $e) {\n // failure is probably due to testing, so just fall-through\n }\n }\n return parent::getSocialObjectShell('SocialQuestionComment', $this->socialQuestion, $this->commentAuthorID ?: null);\n }", "abstract public function comment();", "function display_comments($comment, $args, $depth) {\n $GLOBALS['comment'] = $comment;\n if (wp_is_mobile()) {\n echo \"<div class=\\\"well well-sm\\\">\";\n } else {\n echo \"<blockquote>\";\n }\n ?>\n <?php printf(__('%s'), get_comment_author_link()) ?>\n | <a class=\"comment-permalink\" href=\"<?php echo htmlspecialchars(get_comment_link($comment->comment_ID)) ?>\"><?php printf(__('%1$s'), get_comment_date(), get_comment_time()) ?></a> | \n <?php comment_reply_link(array_merge($args, array('depth' => $depth, 'max_depth' => $args['max_depth']))) ?>\n <hr/>\n <?php if ($comment->comment_approved == '0') : ?>\n <em><?php echo \"Your comment is awaiting moderation.\"; ?></em><br/>\n <?php endif; ?>\n <p>\n <?php comment_text(); ?>\n </p>\n <?php\n if (wp_is_mobile()) {\n echo \"</div>\";\n } else {\n echo \"</blockquote>\";\n }\n}", "function listCommentsBack()\n{\n $comments = getAllComments();\n require('view/backend/manageCommentsView.php');\n}", "function getDisplay() {\n\t\t$content = \"<h3>\" . $this->widgetTitle . \"</h3>\";\n\n\t\tif (!empty($this->facebookUrl) && \n\t\t\ttrim($this->facebookUrl) !== '') {\n\t\t\t$content .= '<span class=\"social-pages-icon social-page-facebook\"><a href=\"' . $this->facebookUrl . '\" ><i class=\"fa fa-facebook\"></i></a></span>';\n\t\t}\n\t\tif (!empty($this->twitterUrl) && \n\t\t\t\ttrim($this->twitterUrl) !== '') {\n\t\t\t$content .= '<span class=\"social-pages-icon social-page-twitter\"><a href=\"' . $this->twitterUrl . '\" ><i class=\"fa fa-twitter\"></i></a></span>';\n\t\t}\n\t\tif (!empty($this->googleplusUrl) && \n\t\t\ttrim($this->googleplusUrl) !== '') {\n\t\t\t$content .= '<span class=\"social-pages-icon social-page-google\"><a href=\"' . $this->googleplusUrl . '\" ><i class=\"fa fa-google\"></i></a></span>';\n\t\t}\n\n\t\treturn $content;\n\t}", "public function show() \r\n {\r\n \r\n $id = $this->route_params['id'];\r\n $post = Post::getbyID($id);\r\n $comments = Comment::getCommentById($id);\r\n \r\n View::render('Home/show.php', ['post' => $post , 'comments'=>$comments]);\r\n\r\n }", "function do_salmon_as_comment($module,$id,$self_url,$self_title,$title=NULL,$post=NULL,$email='',$poster_name_if_guest='',$forum=NULL,$validated=NULL)\n\t{\n\t\tif (!is_null($post)) $_POST['post'] = $post;\n\t\tif (!is_null($title)) $_POST['title'] = $title;\n\t\t$_POST['email'] = $email;\n\t\t$_POST['poster_name_if_guest'] = $poster_name_if_guest;\n\t\t\n\t\treturn do_comments(true,$module,$id,$self_url,$self_title,$forum,true,$validated,false,true);\n\t}", "protected function comments_view(array $options = array()){\r\n\r\n\t\t/* Options */\r\n\t\tif (Utility::is_loopable($options)){\r\n\t\t\tforeach($options as $key => $value){\r\n\t\t\t\tswitch($key){\r\n\t\t\t\t\tcase 'type':\r\n\t\t\t\t\t\t$type = $value;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t/* Get display data */\r\n\t\t$object = $this->get_commentable_object();\r\n\t\t$commentCount = count($object['comments']);\r\n\t\t\r\n\t\t/* Load template */\r\n\t\tinclude(BLUPATH_TEMPLATES.'/newcomments/wrapper.php');\r\n\r\n\t}", "public function create()\n\t{\n\t\t$datas = fc_blogs::get();\n\t\t$data1 = user::get();\n\t\treturn view(\"vendor.pingpong.admin.comments.create\")->with(\"datas\", $datas)->with(\"data1\", $data1);\n\t}", "public static function load()\n {\n P4Cms_PubSub::subscribe('p4cms.content.render.close',\n function($html, $helper)\n {\n $entry = $helper->getEntry();\n\n // if we don't have an entry id or the entry being rendered\n // isn't the default we won't append comments\n if (!$entry->getId()\n || $entry->getId() != $helper->getDefaultEntry()->getId()\n ) {\n return $html;\n }\n\n // let comment view helper take care of the rest.\n $html = $helper->getView()->comments(\n \"content/\" . $entry->getId(),\n (array) $entry->getValue('comments')\n ) . $html;\n\n return $html;\n }\n );\n\n // participate in content editing by providing a subform.\n P4Cms_PubSub::subscribe('p4cms.content.form.subForms',\n function(Content_Form_Content $form)\n {\n return new Comment_Form_Content(\n array(\n 'name' => 'comments',\n 'order' => -10\n )\n );\n }\n );\n\n // provide comment grid (moderate) actions\n P4Cms_PubSub::subscribe('p4cms.comment.grid.actions',\n function($actions)\n {\n $actions->addPages(\n array(\n array(\n 'label' => 'Approve',\n 'onClick' => 'p4cms.comment.grid.Actions.onClickApprove();',\n 'onShow' => 'p4cms.comment.grid.Actions.onShowApprove(this);',\n 'order' => '10'\n ),\n array(\n 'label' => 'Reject',\n 'onClick' => 'p4cms.comment.grid.Actions.onClickReject();',\n 'onShow' => 'p4cms.comment.grid.Actions.onShowReject(this);',\n 'order' => '20'\n ),\n array(\n 'label' => 'Pend',\n 'onClick' => 'p4cms.comment.grid.Actions.onClickPend();',\n 'onShow' => 'p4cms.comment.grid.Actions.onShowPend(this);',\n 'order' => '30'\n ),\n array(\n 'label' => 'Delete',\n 'onClick' => 'p4cms.comment.grid.Actions.onClickDelete();',\n 'order' => '40'\n ),\n array(\n 'label' => '-',\n 'onShow' => 'p4cms.comment.grid.Actions.onShowView(this);',\n 'order' => '50'\n ),\n array(\n 'label' => 'View Content Entry',\n 'onClick' => 'p4cms.comment.grid.Actions.onClickView();',\n 'onShow' => 'p4cms.comment.grid.Actions.onShowView(this);',\n 'order' => '60'\n ),\n )\n );\n }\n );\n\n // provide form to search comments\n P4Cms_PubSub::subscribe('p4cms.comment.grid.form.subForms',\n function(Zend_Form $form)\n {\n return new Ui_Form_GridSearch;\n }\n );\n\n // filter comment list by search term\n P4Cms_PubSub::subscribe('p4cms.comment.grid.populate',\n function(P4Cms_Record_Query $query, Zend_Form $form)\n {\n $values = $form->getValues();\n\n // extract search query.\n $keywords = isset($values['search']['query'])\n ? $values['search']['query']\n : null;\n\n // early exit if no search text.\n if (!$keywords) {\n return;\n }\n\n // add a text search filter to the comment query.\n $filter = new P4Cms_Record_Filter;\n $fields = array('comment', 'user', 'name');\n $filter->addSearch($fields, $keywords);\n $query->addFilter($filter);\n }\n );\n\n // provide form to filter comments by status.\n P4Cms_PubSub::subscribe('p4cms.comment.grid.form.subForms',\n function(Zend_Form $form)\n {\n $form = new P4Cms_Form_SubForm;\n $form->setName('status');\n $form->addElement(\n 'radio',\n 'status',\n array(\n 'label' => 'Status',\n 'multiOptions' => array(\n '' => 'Any State',\n Comment_Model_Comment::STATUS_PENDING => 'Only Pending',\n Comment_Model_Comment::STATUS_APPROVED => 'Only Approved',\n Comment_Model_Comment::STATUS_REJECTED => 'Only Rejected'\n ),\n 'autoApply' => true,\n 'value' => ''\n )\n );\n\n return $form;\n }\n );\n\n // filter comment list by status\n P4Cms_PubSub::subscribe('p4cms.comment.grid.populate',\n function(P4Cms_Record_Query $query, Zend_Form $form)\n {\n $values = $form->getValues();\n\n // extract status filter.\n $status = isset($values['status']['status'])\n ? $values['status']['status']\n : null;\n\n // early exit if no status filter.\n if (!$status) {\n return;\n }\n\n // add a status filter to the comment query.\n $filter = new P4Cms_Record_Filter;\n $filter->add('status', $status);\n $query->addFilter($filter);\n }\n );\n\n // organize comment records when pulling changes.\n P4Cms_PubSub::subscribe(\n 'p4cms.site.branch.pull.groupPaths',\n function($paths, $source, $target, $result)\n {\n $paths->addSubGroup(\n array(\n 'label' => 'Comments',\n 'basePaths' => $target->getId() . '/comments/...',\n 'inheritPaths' => $target->getId() . '/comments/...'\n )\n );\n }\n );\n }", "public function commentDo() {\n\t\tif($this->user() || $this->fbUser) { \n\t\t\tif(isset($this->args[1]) && isset($_POST['comment']) && isset($_POST['redirect'])) {\n\t\t\t\t$userName = ($this->user()) ? $this->user->model->userName : $this->fbUser['username'];\n\t\t\t\t$_POST['name'] = $userName;\n\n\t\t\t\ttry {\n\t\t\t\t\t$this->commentsModel->insertComment($this->args[1], $_POST);\t\n\t\t\t\t\tHTML::redirect($_POST['redirect']);\n\t\t\t\t} catch(Exception $excpt) {\n\t\t\t\t\t$this->view->setError($excpt);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->view->setError(new Exception('Unable to set up function'));\n\t\t\t}\n\t\t}\n\t}", "function getButton_addComment() {\r\r\n\t$PView = new PView;\r\r\n\t// PERMISSION!!!\r\r\n\tif ($PView -> getPermission(\"config\",\"permComment\",\"\")) {\r\r\n\t\tif (!$_GET['comment'] && !$_POST['submit']) {\r\r\n\t\t\t$btn = \"<a href='javascript:pv_CommentAdd();'><img src='\".e_PLUGIN.\"pviewgallery/templates/\".$PView -> getPView_config(\"template\").\"/images/comment_add.png' border='0px'alt='\".LAN_IMAGE_18.\"' title='\".LAN_IMAGE_18.\"'></a>\";\r\r\n\t\t}\r\r\n\t}\r\r\n\treturn $btn;\r\r\n}", "function warquest_home_comment_edit_do() {\r\n\r\n\t/* input */\r\n\tglobal $mid;\r\n\tglobal $sid;\r\n\tglobal $uid;\r\n\tglobal $other;\r\n\t\t \r\n\t/* output */\r\n\tglobal $page;\r\n\t\t\t\r\n\tif ($uid!=0) {\r\n\t\t$query = 'select comment from comment where id='.$uid;\r\n\t\t$result = warquest_db_query($query);\r\n\t\t$data = warquest_db_fetch_object($result);\r\n\t\t\r\n\t\t$comment = $data->comment;\r\n\t\t\r\n\t} else {\r\n\t\r\n\t\t/* Clear input parameters */\r\n\t\t$comment = \"\";\r\n\t}\r\n\t\r\n\t$page .= \"<script language=\\\"JavaScript\\\" type=\\\"text/javascript\\\">function limitText(limitField, limitNum) { if (limitField.value.length >= limitNum) { limitField.value = limitField.value.substring(0, limitNum); } } </script>\";\r\n\t\t\r\n\t$page .= '<div class=\"box\">';\t\r\n\t\r\n\t$page .= '<table>';\r\n\t$page .= '<tr>';\r\n\t$page .= '<td width=\"500\">';\r\n\r\n\tif (isset($other->pid)) {\r\n\t\t$tmp = player_format($other->pid, $other->name, $other->country);\r\n\t} else {\r\n\t\t$tmp = t('GENERAL_ALL');\r\n\t}\r\n\t$page .= t('ALLIANCE_COMMENT_TEXT2', $tmp).'<br/>'; \r\n\t\r\n\t$page .= '<textarea style=\"width:100%\" id=\"comment\" name=\"comment\" rows=\"5\" ';\r\n\t$page .= 'onKeyDown=\"limitText(this,400)\">'.$comment.'</textarea><br/>';\r\n\t$page .= warquest_show_smilies();\r\n\t$page .= '<br/><br/>';\r\n\t\r\n\tif (isset($other->pid)) {\r\n\t\t$page .= warquest_link('mid='.$mid.'&sid='.$sid.'&eid='.EVENT_HOME_COMMENT_SAVE.'&oid='.$other->pid.'&uid='.$uid, t('LINK_SAVE'), 'save').' ';\r\n\t} else {\r\n\t\t$page .= warquest_link('mid='.$mid.'&sid='.$sid.'&eid='.EVENT_HOME_COMMENT_SAVE.'&uid='.$uid, t('LINK_SAVE'), 'save').' ';\r\n\t}\r\n\t\r\n\tif ($uid!=0) {\r\n\t\t$page .= ' ';\r\n\t\t$page .= warquest_link('mid='.$mid.'&sid='.$sid.'&eid='.EVENT_HOME_COMMENT_DELETE.'&uid='.$uid, t('LINK_DELETE'), 'delete');\r\n\t}\r\n\t\r\n\t$page .= '</td>';\r\n\t$page .= '</tr>';\r\n\t$page .= '</table>';\r\n\r\n\t$page .= '</div>';\t\r\n}", "function ailyak_facebook_group_feed()\n{\n // fuck options!\n // hardcode everything!\n \n // @TODO remove access_token before github publishing\n $token = ''; // put your token here!\n $url = \"https://graph.facebook.com/v2.3/561003627289743/feed?limit=10&access_token={$token}\";\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, $url);\n curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);\n curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n curl_setopt($ch, CURLOPT_TIMEOUT, 5);\n\n $data = curl_exec($ch);\n curl_close($ch);\n $dataDecoded = json_decode($data, true);\n $posts = $dataDecoded['data'];\n \n // I have twig template,\n // but I don't have time to\n // include twig in stupid the wordpress\n \n // yes, I know ....\n // code sux... I know...\n // Today worktime: 10h 25min\n \n $return = '\n <style>\n\n .fbcomments {\n width: 100%;\n }\n \n .fbcommentreply {\n margin-left: 30px !important;\n }\n\n .fbcomments div {\n margin: auto; \n }\n\n /* Default Facebook CSS */\n .fbbody\n {\n font-family: \"lucida grande\" ,tahoma,verdana,arial,sans-serif;\n font-size: 11px;\n color: #333333;\n }\n /* Default Anchor Style */\n .fbbody a\n {\n color: #3b5998;\n outline-style: none;\n text-decoration: none;\n font-size: 11px;\n font-weight: bold;\n }\n .fbbody a:hover\n {\n text-decoration: underline;\n }\n /* Facebook Box Styles */\n .fbgreybox\n {\n background-color: #f7f7f7;\n border: 1px solid #cccccc;\n color: #333333;\n padding: 10px;\n font-size: 13px;\n font-weight: bold;\n }\n .fbbluebox\n {\n background-color: #eceff6;\n border: 1px solid #d4dae8;\n color: #333333;\n padding: 10px;\n font-size: 13px;\n font-weight: bold;\n }\n .fbinfobox\n {\n background-color: #fff9d7;\n border: 1px solid #e2c822;\n color: #333333;\n padding: 10px;\n font-size: 13px;\n font-weight: bold;\n }\n\n .fbcomment {\n text-align: left;\n }\n\n .fberrorbox\n {\n background-color: #ffebe8;\n border: 1px solid #dd3c10;\n color: #333333;\n padding: 10px;\n font-size: 13px;\n font-weight: bold;\n }\n /* Content Divider on White Background */\n .fbcontentdivider\n {\n margin-top: 15px;\n margin-bottom: 15px;\n width: 520px;\n height: 1px;\n background-color: #d8dfea;\n }\n /* Facebook Tab Style */\n .fbtab\n {\n padding: 8px;\n background-color: #d8dfea;\n color: #3b5998;\n font-weight: bold;\n float: left;\n margin-right: 4px;\n text-decoration: none;\n }\n .fbtab:hover\n {\n background-color: #3b5998;\n color: #ffffff;\n cursor: hand;\n }\n\n </style>\n ';\n \n $return .= '<div class=\"fbcomments\">';\n foreach ($posts as $post) :\n \n array_walk_recursive($post, 'ailyak_facebook_group_feed_html_escape');\n if (!empty($post['message'])):\n $postId = $post['id'];\n $postName = $post['from']['name'];\n $message = nl2br($post['message']);\n $postTimeDatetime = new \\DateTime($post['created_time']);\n $postTime = $postTimeDatetime->format(\"M, d, D, G:h\");\n $postLink = $post['actions'][0]['link'];\n \n $return .= '\n <div class=\"fbinfobox fbcomment\"> \n <div>\n <a href=\"https://www.facebook.com/' . $postId . '\">' . $postName . '</a>,\n <a href=\"' . $postLink . '\">\n ' . $postTime . '\n </a>\n </div>\n\n ' . $message . '\n </div>\n ';\n\n if (!empty($post['comments'])):\n foreach ($post['comments']['data'] as $comment):\n $commentId = $comment['id'];\n $commentFromName = $comment['from']['name'];\n $commentMessage = nl2br($comment['message']);\n $commentDateDatetime = new \\DateTime($comment['created_time']);\n $commentDate = $commentDateDatetime->format(\"M, d, D, G:h\");\n $return .= '\n <div class=\"fbgreybox fbcommentreply\"> \n <div>\n <a href=\"https://www.facebook.com/' . $commentId . '\">' . $commentFromName . '</a>,\n ' . $commentDate . '\n </div> \n ' . $commentMessage . '\n </div>\n ';\n endforeach;\n endif;\n endif;\n endforeach;\n \n return $return;\n}", "function printComment($commentId){\n ?>\n <div class=\"commentContainer\"> \n <?php\n\n $postId = getPostIdofComment($commentId);\n $user = getUserIdPost($postId);\n\n\n echo \"<br>\";\n ?>\n <div class=\"username\">\n <?php\n \n # Username\n $userId = getUserIdComment($commentId);\n echo getUsername($userId) . \"<br>\";\n\n ?> \n </div> \n \n <div class=\"time\">\n <?php\n\n # Time\n $time = getCreationTimeComment($commentId);\n echo getTimeDif($time) . \"<br>\";\n\n ?> \n </div> \n \n <div class=\"contentComment\">\n <?php\n # Content\n echo getContentComment($commentId) . \"<br>\";\n ?>\n </div>\n \n <div class=\"likeBarComment\">\n <?php\n\n # Button with Html Link displayed like a Button: Delete Post\n if (getUserIdComment($commentId) == $_SESSION['userId']) {\n\n ?>\n <div>\n <div class=\"dropdownComment\">\n <button class=\"dropbtnComment\"><img src='../View/Pictures/Icons/icons Options.PNG' alt='Options' width=\"45\" height=\"45\"></button>\n <div class=\"dropdownComment-content\">\n\n <a href='../Controller/functions.php?deleteComment=<?php echo $commentId; ?>&url=<?php echo parse_url($_SERVER[\"REQUEST_URI\"], PHP_URL_PATH); ?>&id=<?php echo $user; ?>'>Delete Comment</a>\n\n </div>\n </div> \n </div>\n <?php\n }\n echo \"<br>\";\n ?>\n </div>\n\n </div> \n <?php\n \n}", "function render_block_core_comments_title($attributes)\n {\n }", "public function show(Comment $comment)\n {\n \n }", "function displaycomments(){\nif(isset($_POST['vid'])){$this->presentation_url = safeAddSlashes($_POST['vid']);}else{$this->presentation_url = safeAddSlashes($_GET['vid']);}\nif(isset($_POST['lead_comment_author'])){$this->lead_comment_author = safeAddSlashes($_POST['lead_comment_author']);}else{$this->lead_comment_author = safeAddSlashes($_GET['lead_comment_author']);}\nif(isset($_POST['comment_author'])){$this->comment_author = safeAddSlashes($_POST['comment_author']);}else{$this->comment_author = safeAddSlashes($_GET['comment_author']);}\n//database connection begins\nrequire('database/connx.php');\n\n$db = & new MySQL($host,$dbUser,$dbPass,$dbName);\n$sql1=\"select str_name,str_comment,time_pubdate,str_msg_type from comments where str_presentation_url='\" . $this->presentation_url . \"' and str_msg_type='Posted'\" ;\n$result1=$db->query($sql1);\n$this->strcommenthtml3 = \"\";\n$this->strcommenthtml1 = \"<div><div name='no_of_comments'>\" . $result1->size() . \" comments</div>\";\nwhile ($row1 = $result1->fetch()) {\n if($row1['str_msg_type'] == 'Posted'){$this->strcommenthtml2 = \"<div id='msg_type_posted'>\";}\n else{$this->strcommenthtml2 = \"<div id='msg_type_reply'>\";};\n $this->strcommenthtml3 .= $this->strcommenthtml2 . \"<span id='db_comment'>\" . $row1['str_comment'] . \"</span><br/>\" . \"<span id='db_comment_author'>\" . $row1['str_msg_type'] . \" by \" . $row1['str_name'] . \" on \" . $row1['time_pubdate'] . \"</span> <span id='reply'><a href='#postcomment' onclick=\\\"postcomment('reply', '\" . $row1['str_name'] . \"');\\\">Reply</a></span></div>\";\n\n//comment out the reply link\n//$this->strcommenthtml3 .= $this->strcommenthtml2 . \"<span id='db_comment'>\" . $row1['str_comment'] . \"</span><br/>\" . \"<span id='db_comment_author'>\" . $row1['str_msg_type'] . \" by \" . $row1['str_name'] . \" on \" . $row1['time_pubdate'] . \"</span></div>\";\n\n//for each comment, display corresponding replies\n$sql2=\"select str_name,str_comment,time_pubdate,str_msg_type from comments where str_lead_name = '\" . $row1['str_name'] . \"' and str_presentation_url='\" . $this->presentation_url . \"' and str_msg_type='Replied'\";\n//echo $sql2 . \"<p>\";\n$result2=$db->query($sql2);\n$this->strcommenthtml5 = \"\";\n$this->strcommenthtml_1 = \"<div>\";\nwhile ($row2 = $result2->fetch()) {\n if($row2['str_msg_type'] == 'Replied'){$this->strcommenthtml6 = \"<div id='msg_type_reply'>\";}\n else{$this->strcommenthtml7 = \"<div id='msg_type_posted'>\";};\n $this->strcommenthtml5 .= $this->strcommenthtml6 . \"<span id='db_comment'>\" . $row2['str_comment'] . \"</span><br/>\" . \"<span id='db_comment_author'>\" . $row2['str_msg_type'] . \" by \" . $row2['str_name'] . \" on \" . $row2['time_pubdate'] . \"</span> <span id='reply'><a href='#postcomment' onclick=\\\"postcomment('reply', '\" . $row1['str_name'] . \"');\\\">Reply</a></span></div>\";\n\n//comment out the reply link\n//$this->strcommenthtml5 .= $this->strcommenthtml6 . \"<span id='db_comment'>\" . $row2['str_comment'] . \"</span><br/>\" . \"<span id='db_comment_author'>\" . $row2['str_msg_type'] . \" by \" . $row2['str_name'] . \" on \" . $row2['time_pubdate'] . \"</span></div>\";\n }\n$this->strcommenthtml4 = \"</div>\";\n$this->strcommenthtml3 .= $this->strcommenthtml_1 . $this->strcommenthtml5 . $this->strcommenthtml4;\n//end of display of replies\n }\n$this->strcommenthtml4 = \"</div>\";\necho $this->strcommenthtml1 . $this->strcommenthtml3 . $this->strcommenthtml4;\n\n }", "public function viewcommentsAction() {\n $id = $this->_getParam('expid');\n $ses = new Application_Model_Session();\n $ses->startSession();\n if ($ses->getSessionParameter('comnt') == 1) {\n $ses->unsetSessionParameter('comnt');\n $this->view->msg = \"Your comment has been successfully added\"; }\n $views = new Campuswisdom_Model_ExpMapper();\n $view = $views->ViewComments($id);\n $this->view->result1=$id;\n $number = count($view);\n \n if($number>0){\n try { \t\n\n $paginator = new Application_Model_ZendPagination();\n $this->view->result = $paginator->paginate($view, $this->_getParam('page'));\n \n }catch (Exception $e) {\n\n $this->view->error = 'please try another category';\n }}\n else{\n $this->view->error='No comments added see comment';\n }\n }", "public function server_social_wall(){\n echo $this->facebookTijdlijn();\n return 'Gelukt';\n }", "public function postPage(){\n require_once \"controller/Post.php\";\n $post = new Post();\n require_once \"controller/Comment.php\";\n $comment = new Comment();\n //gets the post id in URL\n $idPost = $this->_url[1];\n //adds post info\n $html_post = $post->getPost($idPost);\n $html = View::makeHtml($html_post, \"post_template\");\n $html .= \"<br/><div id=\\\"comments\\\"><h2>Commentaires</h2><ul>\";\n //count nb of comments for the post\n $nb_comments = $comment->countComments($idPost);\n //according to nb of comments\n switch ($nb_comments[\"nb_comments\"]){\n case 0:\n $html .= \"<p>Pas encore de commentaire</p>\";\n break;\n case 1:\n //adds comments infos\n $html_comments = $comment->getComments($idPost);\n $html .= View::makeHtml($html_comments, \"comments_template\");\n break;\n default:\n $html_comments = $comment->getComments($idPost);\n $html .= View::makeLoopHtml($html_comments, \"comments_template\");\n break;\n }\n //adds the \"leave a comment\" form\n $html .= \"</ul>\";\n $html .= View::makeHtml([\n \"{{ path }}\" => $GLOBALS[\"path\"],\n \"{{ idPost }}\" => $idPost\n ],\"add_comment_template\");\n $html .= \"</div>\";\n return [\n \"{{ pageTitle }}\" => $html_post[\"{{ post_title }}\"],\n \"{{ content }}\" => $html,\n \"{{ path }}\" => $GLOBALS[\"path\"]\n ];\n }", "public function run() {\n if ($this->getItemCount() > $this->getPageSize() && !Yii::app()->getRequest()->isAjaxRequest) {\n ?>\n <div class=\"comment-item items-loader\" style=\"display: none\" >\n <div class=\"comment-item-in\">\n <div class=\"comment-more\">\n <img src=\"/i/comment-bottom-more.png\" alt=\"\" /> загрузка...\n <script type=\"text/javascript\">\n window.page = 1;\n var pagerOptions=<?= CJavaScript::encode(array('ajaxOptions'=>$this->ajaxOptions,'id'=>'post-list','isLastPage'=>false))?>;\n </script>\n <?php\n \nCHtml::ajaxLink($this->label, $this->ajaxLink, $this->ajaxOptions, array('id' => 'next-items')) \n ?>\n </div>\n </div>\n </div>\n <?php\n }\n }", "function comments_link_feed()\n {\n }", "public function render()\n {\n $feed = NokIt::orderBy(\"id\",\"DESC\")->select('*')->where([\"id\" => $this->id])->first();\n return view('components.nok-it.single-feed', compact('feed'));\n }", "function wizate_comments_close() {\n\t\techo '</div>';\n }", "public function getCommentsFeed(Request $request)\n {\n return view('comments_feed');\n }", "function use_facebook_comments() {\n\treturn conditional_config('facebook_comments');\n}", "public function comments() {\n\t\t\t\t\t\t\n\t\t\t$output = '';\n\t\t\t$total = get_comments_number();\n\t\t\t\n\t\t\t$output['label'] = __('Show Comments', 'theme translation');\n\t\t\t$output['link'] = $total >= 1 ? ($total == 1 ? sprintf(__('%s Comment', 'theme translation'), get_comments_number()) : sprintf(__('%s Comments', 'theme translation'), get_comments_number())) : __('No Comments', 'theme translation');\n\t\t\t$output['url'] = get_permalink().'#comments';\n\t\t\t$output['total'] = $total;\n\n\t\t\treturn $output;\n\t\t}", "function base_comment($comment, $args, $depth) {\n\t $GLOBALS['comment'] = $comment; ?>\n\t <li <?php comment_class(); ?> id=\"li-comment-<?php comment_ID() ?>\">\n\t\t<div id=\"comment-<?php comment_ID(); ?>\">\n\t\t\t<div class=\"author-data\">\n\t\t\t\t<?php echo get_avatar( $comment, $size='40', $default='<path_to_url>' ); ?>\n\t\t\t\t<?php printf( __( '<h3 class=\"author\">%s</h3>' ), get_comment_author_link() );?>\n\t\t\t\t<div class=\"comment-meta commentmetadata\">\n\t\t\t\t\t<?php printf( __('%1$s at %2$s'), get_comment_date(), get_comment_time() ); ?>\n\t\t\t\t\t<?php edit_comment_link( __('(Edit)'),' ',''); ?>\n\t\t\t\t</div>\n\t\t\t</div>\n<?php if ($comment->comment_approved == '0') : ?>\n\t\t\t<em><?php _e('Your comment is awaiting moderation.') ?></em>\n<?php endif; ?>\n\t\t\t<div class=\"comment-entry\">\n\t\t\t\t<?php comment_text() ?>\n\t\t\t</div>\n\t\t\t<div class=\"reply\">\n\t\t\t\t<?php comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth']))) ?>\n\t\t\t</div>\n\t\t</div>\n\t</li>\n<?php\n}", "public function FbPublishComments($fb_page_id, $fb_object_id) {\n $mode = \\Drupal::request()->get('mode');\n if (isset($mode) && $mode == 'ajax') {\n $op = \\Drupal::request()->get('op');\n if ($op == 'publish') {\n $message = \\Drupal::request()->get('message');\n $requests['message'] = $message;\n } elseif ($op == 'Remove') {\n } else {\n //edit comment\n $op = 'Edit';\n $message = \\Drupal::request()->get('message');\n $requests['message'] = $message;\n }\n }\n $current_uid = isset($_GET['team']) ? $_GET['muid'] : \\Drupal::currentUser()->id();\n $properties = ['token_access'];\n $network_properties = $this->getKabbodeNetworkStatusProperty(166, $current_uid, $properties);\n $access_token = $network_properties['token_access'];\n $facebookHelper = new FacebookHelperFunction();\n $output = $facebookHelper->facebookCommentOperations($access_token, $fb_page_id, $fb_object_id, $requests, $op);\n $json_response = json_encode($output);\n return new JsonResponse($json_response);\n }", "function itstar_comments( $comment, $args, $depth ) {\n $GLOBALS['comment'] = $comment; ?>\n <div id=\"comment-<?php comment_ID(); ?>\" <?php comment_class('cf'); ?>>\n <article class=\"cf\">\n <header class=\"comment-author vcard\">\n <?php\n /*\n this is the new responsive optimized comment image. It used the new HTML5 data-attribute to display comment gravatars on larger screens only. What this means is that on larger posts, mobile sites don't have a ton of requests for comment images. This makes load time incredibly fast! If you'd like to change it back, just replace it with the regular wordpress gravatar call:\n echo get_avatar($comment,$size='32',$default='<path_to_url>' );\n */\n ?>\n <?php // custom gravatar call ?>\n <?php\n // create variable\n $bgauthemail = get_comment_author_email();\n ?>\n <img data-gravatar=\"http://www.gravatar.com/avatar/<?php echo md5( $bgauthemail ); ?>?s=40\" class=\"load-gravatar avatar avatar-48 photo\" height=\"40\" width=\"40\" src=\"<?php echo get_template_directory_uri(); ?>/library/images/nothing.gif\" />\n <?php // end custom gravatar call ?>\n <?php printf(__( '<cite class=\"fn\">%1$s</cite> %2$s', 'itstar' ), get_comment_author_link(), edit_comment_link(__( '(Edit)', 'itstar' ),' ','') ) ?>\n <time datetime=\"<?php echo comment_time('Y-m-j'); ?>\"><a href=\"<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ?>\"><?php comment_time(__( 'F jS, Y', 'itstar' )); ?> </a></time>\n\n </header>\n <?php if ($comment->comment_approved == '0') : ?>\n <div class=\"alert alert-info\">\n <p><?php _e( 'Your comment is awaiting moderation.', 'itstar' ) ?></p>\n </div>\n <?php endif; ?>\n <section class=\"comment_content cf\">\n <?php comment_text() ?>\n </section>\n <?php comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth']))) ?>\n </article>\n <?php // </li> is added by WordPress automatically ?>\n<?php\n}", "function itstar_comments( $comment, $args, $depth ) {\n $GLOBALS['comment'] = $comment; ?>\n <div id=\"comment-<?php comment_ID(); ?>\" <?php comment_class('cf'); ?>>\n <article class=\"cf\">\n <header class=\"comment-author vcard\">\n <?php\n /*\n this is the new responsive optimized comment image. It used the new HTML5 data-attribute to display comment gravatars on larger screens only. What this means is that on larger posts, mobile sites don't have a ton of requests for comment images. This makes load time incredibly fast! If you'd like to change it back, just replace it with the regular wordpress gravatar call:\n echo get_avatar($comment,$size='32',$default='<path_to_url>' );\n */\n ?>\n <?php // custom gravatar call ?>\n <?php\n // create variable\n $bgauthemail = get_comment_author_email();\n ?>\n <img data-gravatar=\"http://www.gravatar.com/avatar/<?php echo md5( $bgauthemail ); ?>?s=40\" class=\"load-gravatar avatar avatar-48 photo\" height=\"40\" width=\"40\" src=\"<?php echo get_template_directory_uri(); ?>/library/images/nothing.gif\" />\n <?php // end custom gravatar call ?>\n <?php printf(__( '<cite class=\"fn\">%1$s</cite> %2$s', 'itstar' ), get_comment_author_link(), edit_comment_link(__( '(Edit)', 'itstar' ),' ','') ) ?>\n <time datetime=\"<?php echo comment_time('Y-m-j'); ?>\"><a href=\"<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ?>\"><?php comment_time(__( 'F jS, Y', 'itstar' )); ?> </a></time>\n\n </header>\n <?php if ($comment->comment_approved == '0') : ?>\n <div class=\"alert alert-info\">\n <p><?php _e( 'Your comment is awaiting moderation.', 'itstar' ) ?></p>\n </div>\n <?php endif; ?>\n <section class=\"comment_content cf\">\n <?php comment_text() ?>\n </section>\n <?php comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth']))) ?>\n </article>\n <?php // </li> is added by WordPress automatically ?>\n<?php\n}", "public function view_comments(array $options = array()){\r\n\r\n\t\t/* Options */\r\n\t\tif (Utility::iterable($options)){\r\n\t\t\tforeach($options as $key => $value){\r\n\t\t\t\tswitch($key){\r\n\t\t\t\t\tcase 'extraCss':\r\n\t\t\t\t\t\t$extraCss = $value;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t/* Get comments */\r\n\t\t$object = $this->get_commentable_object();\r\n\t\t$comments = $object['comments'];\r\n\t\tif (empty($comments)){\r\n\t\t\tinclude(BLUPATH_TEMPLATES.'/newcomments/none.php');\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\t$commentsModel = $this->getModel('newcomments');\r\n\t\t$commentsModel->addDetails($comments);\r\n\r\n\t\t/* Prepare pagination */\r\n\t\t$commentPagination = Pagination::simple(array(\r\n\t\t\t'limit' => BluApplication::getSetting('commentListingLength', 12),\r\n\t\t\t'total' => count($comments),\r\n\t\t\t'current' => Request::getInt('comments', 1),\r\n\t\t\t'url' => '?comments='\r\n\t\t));\r\n\t\t$commentPagination->chop($comments);\r\n\r\n\t\t/* Display */\r\n\t\t$alt = false;\r\n\t\tinclude(BLUPATH_TEMPLATES.'/newcomments/listing.php');\r\n\r\n\t}", "function register_Zappy_Lates_Comment_Widget() {\n register_widget('Zappy_Lates_Comment_Widget');\n}", "function getandstorefbcommentsondbfromfacebook() {\n $sharedlink = Socialite::driver('facebook')->getUserFeeds(Auth::user()->facebook_access, Auth::user()->facebook_login_id);\n $facebookdatatostore = array();\n foreach ($sharedlink['data'] as $fbdata) {\n if (isset($fbdata['link']) && strpos($fbdata['link'], 'topic/details')) {\n $facebookdatatostore[] = $fbdata;\n }\n }\n if (isset($sharedlink['paging']) && isset($sharedlink['paging']['next'])) {\n $facebookdatatostore1 = $this->netxpagepostdatafromfacebook($sharedlink['paging']['next']);\n $finalarray = array_merge($facebookdatatostore, $facebookdatatostore1);\n }\n $fbcommObj = new Fbcomments();\n $fbcommObj->insertFBpostdata($finalarray, Auth::user()->user_id);\n }", "function starter_comment_block() {\n $items = array();\n $number = variable_get('comment_block_count', 10);\n\n foreach (comment_get_recent($number) as $comment) {\n //kpr($comment->changed);\n //print date('Y-m-d H:i', $comment->changed);\n $items[] =\n '<h3>' . l($comment->subject, 'comment/' . $comment->cid, array('fragment' => 'comment-' . $comment->cid)) . '</h3>' .\n ' <time datetime=\"'.date('Y-m-d H:i', $comment->changed).'\">' . t('@time ago', array('@time' => format_interval(REQUEST_TIME - $comment->changed))) . '</time>';\n }\n\n if ($items) {\n return theme('item_list', array('items' => $items, 'daddy' => 'comments'));\n }\n else {\n return t('No comments available.');\n }\n}", "function cellar_door_preprocess_comment(&$vars) {\n /*$comment = $vars['elements']['#comment'];\n $vars['picture'] = theme('user_picture', array('account' => $comment));*/\n}", "public function social_media()\n {\n $result = $this->dtbs->list('social');\n $data['info'] = $result;\n $this->load->view('back/social/anasehife',$data);\n }", "function dsq_comments_number($comment_text) {\n\tglobal $post;\n\n\tif ( dsq_can_replace() ) {\n\t\treturn '<span class=\"dsq-postid\" rel=\"'.htmlspecialchars(dsq_identifier_for_post($post)).'\">View Comments</span>';\n\t} else {\n\t\treturn $comment_text;\n\t}\n}", "public function commentsAction()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\t$user = Application_Model_User::getAuth();\r\n\r\n\t\t\t$id = $this->_request->getPost('id');\r\n\r\n\t\t\tif (!v::intVal()->validate($id))\r\n\t\t\t{\r\n\t\t\t\tthrow new RuntimeException('Incorrect post value: ' .\r\n\t\t\t\t\tvar_export($id, true));\r\n\t\t\t}\r\n\r\n\t\t\tif (!Application_Model_News::checkId($id, $post, ['join'=>false]))\r\n\t\t\t{\r\n\t\t\t\tthrow new RuntimeException('Incorrect post ID');\r\n\t\t\t}\r\n\r\n\t\t\t$start = $this->_request->getPost('start', 0);\r\n\r\n\t\t\tif (!v::intVal()->validate($start))\r\n\t\t\t{\r\n\t\t\t\tthrow new RuntimeException('Incorrect start value: ' .\r\n\t\t\t\t\tvar_export($start, true));\r\n\t\t\t}\r\n\r\n\t\t\t$limit = 30;\r\n\t\t\t$model = new Application_Model_Comments;\r\n\t\t\t$comments = $model->findAllByNewsId($id, [\r\n\t\t\t\t'limit' => $limit,\r\n\t\t\t\t'start' => $start,\r\n\t\t\t\t'owner_thumbs' => [[55,55]]\r\n\t\t\t]);\r\n\r\n\t\t\t$response = ['status' => 1];\r\n\r\n\t\t\tif (count($comments))\r\n\t\t\t{\r\n\t\t\t\tforeach ($comments as $comment)\r\n\t\t\t\t{\r\n\t\t\t\t\t$response['data'][] = My_ViewHelper::render('post/_comment', [\r\n\t\t\t\t\t\t'user' => $user,\r\n\t\t\t\t\t\t'comment' => $comment,\r\n\t\t\t\t\t\t'post' => $post,\r\n\t\t\t\t\t\t'limit' => 250\r\n\t\t\t\t\t]);\r\n\t\t\t\t}\r\n\r\n\t\t\t\t$count = max($post->comment - ($start + $limit), 0);\r\n\r\n\t\t\t\tif ($count > 0)\r\n\t\t\t\t{\r\n\t\t\t\t\t$response['label'] = $model->viewMoreLabel($count);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception $e)\r\n\t\t{\r\n\t\t\tMy_Log::exception($e);\r\n\t\t\t$response = [\r\n\t\t\t\t'status' => 0,\r\n\t\t\t\t'message' => $e instanceof RuntimeException ? $e->getMessage() :\r\n\t\t\t\t\t'Internal Server Error'\r\n\t\t\t];\r\n\t\t}\r\n\r\n\t\t$this->_helper->json($response);\r\n\t}", "public function view()\r\n\t{\r\n\t\t //$blogid = $id;\r\n //$blogid=$this->input->get('bid');\r\n $title = $this->uri->last_segment();\r\n\t $blogid = end(explode('_',$title));\r\n\t\t \r\n\t\t $this->template->name=$this->model->viewblog($blogid);\r\n\t\t \r\n\t\t //pagination blog comments\r\n\t\t $page_no=$this->uri->last_segment();\r\n\t\t if($page_no==0 || $page_no=='view')\r\n\t\t $page_no = 1;\r\n\t\t $offset=15*($page_no-1);\r\n\r\n\t\t //post the comments\r\n\t\t if($_POST)\r\n\t\t {\r\n\t\t\t $type_id = $this->input->post('type_id');\r\n\t\t\t $redirect_url = $this->input->post('redirect_url');\r\n\t\t\t $desc= html::specialchars($this->input->post('desc'));\r\n\t\t\t common::post_comments($this->module.\"_comments\",$blogid,$desc); //post the comments using common function \r\n\t\t\t url::redirect($redirect_url);\r\n\t\t }\r\n\t\t \r\n\t\t\r\n if(count($this->template->name))\r\n {\r\n // template code\r\n\t $this->template->title = \"Blogs:\".$this->template->name[\"mysql_fetch_array\"]->blog_title; \r\n\t $this->left=new View(\"blog_leftmenu\");\r\n\t $this->right=new View(\"blog_view\");\r\n\t \r\n\t //$this->right=new View(\"topblog\");\r\n\t $this->title_content = $this->template->name[\"mysql_fetch_array\"]->blog_title;\r\n\t $this->template->content=new View(\"template/template2\"); \r\n }\r\n else\r\n {\r\n Nauth::setMessage(-1,$this->page_notfound);\r\n\t url::redirect($this->docroot.'blog/'); \r\n }\r\n\r\n\r\n\t}", "function render_block_core_comment_edit_link($attributes, $content, $block)\n {\n }", "function renderComments(Element $element)\n {\n return '';\n }", "function charity_show_commentsrss() {\n $display = TRUE;\n $display = apply_filters('charity_show_commentsrss', $display);\n if ($display) {\n $content = \"\\t\";\n $content .= \"<link rel=\\\"alternate\\\" type=\\\"application/rss+xml\\\" href=\\\"\";\n $content .= get_bloginfo('comments_rss2_url');\n $content .= \"\\\" title=\\\"\";\n $content .= esc_html(get_bloginfo('name'));\n $content .= \" \" . __('Comments RSS feed', 'charity');\n $content .= \"\\\" />\";\n $content .= \"\\n\\n\";\n echo apply_filters('charity_commentsrss', $content);\n }\n}", "function render_block_core_comments_pagination($attributes, $content)\n {\n }" ]
[ "0.70649433", "0.68574065", "0.67960554", "0.6755998", "0.65535295", "0.6515211", "0.6441692", "0.63309836", "0.6329245", "0.6325385", "0.6308685", "0.6261741", "0.6259713", "0.6245376", "0.62325114", "0.6231672", "0.6223177", "0.6186089", "0.6164162", "0.6137066", "0.6092897", "0.6078334", "0.6069379", "0.605537", "0.6044052", "0.6014094", "0.600891", "0.59866565", "0.5966496", "0.5930627", "0.5913655", "0.5911159", "0.5904064", "0.5895536", "0.5892672", "0.5885722", "0.5879682", "0.5863557", "0.5845014", "0.5833796", "0.58192253", "0.57810736", "0.5780146", "0.5778056", "0.5764142", "0.5755298", "0.57547307", "0.574845", "0.5719779", "0.57157344", "0.5709113", "0.5700499", "0.56902146", "0.5689603", "0.56527156", "0.5649955", "0.5645437", "0.56413", "0.5640304", "0.5635531", "0.5623312", "0.56232953", "0.5622022", "0.5621248", "0.56112367", "0.5610169", "0.55821645", "0.5581484", "0.55793035", "0.5577176", "0.55709755", "0.5568826", "0.5568687", "0.556395", "0.5560541", "0.5556834", "0.555164", "0.5537881", "0.5535348", "0.5534228", "0.55305403", "0.55245185", "0.55212176", "0.5520846", "0.551924", "0.55188006", "0.55188006", "0.55165154", "0.5512271", "0.5507379", "0.5506451", "0.5504848", "0.5502382", "0.5500119", "0.5498114", "0.5492517", "0.549189", "0.54880035", "0.54877424", "0.54855335" ]
0.7577332
0
Enable (or disable) the SQL LIKE syntax (_ for any chars, % for any strings) If enabled, the search term is automatically escaped
public function useLikeSyntax(bool $useLikeSyntax = true): Wildcard { $this->useLikeSyntax = $useLikeSyntax; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function safe_sql_like($string){\n global $wpdb;\n\n // safe\n $string = $wpdb->prepare(\"%s\", $string);\n // trim '\n $tmp = explode(\"'\", $string);\n array_shift($tmp);\n array_pop($tmp);\n $string = implode(\"'\", $tmp);\n\n // Safe for LIKE'...'\n $string = str_replace( array(\"%\", \"[\", \"]\", \"^\", \"_\"), array(\"\\%\", \"\\[\", \"\\]\", \"\\^\", \"\\_\"), $string);\n\n return $string;\n }", "public static function escapeLikePattern($text){\r\n\t\t\t$text = str_replace('\\\\', '', $text);//apparently a backslash is ignored when using the LIKE operator\r\n\t\t\t$text = self::escape($text);\r\n\t\t\tif($text !==false){\r\n\t\t\t\t$text = str_replace('%', '\\%', $text);\r\n\t\t\t\t$text = str_replace('_', '\\_', $text);\r\n\t\t\t\tif(mb_strlen($text)>=3) $text .= '%';\r\n\t\t\t}\r\n\t\t\treturn $text;\r\n\t\t}", "public function escapeLike($string);", "abstract public function escapeStr($str, $like = false);", "function get_search_query($escaped = \\true)\n {\n }", "function like ($value) {\n return ' like \\''.$value.'\\'';\n }", "public function setSearchEnabled($search) {}", "public function anyString() {\n\t\treturn new LikeMatch( '%' );\n\t}", "public function escapeLikeStringDirect($str)\n\t{\n\t\t//log_message('error', 'escapeLikeStringDirect');\n\n\t\tif (is_array($str))\n\t\t{\n\t\t\tforeach ($str as $key => $val)\n\t\t\t{\n\t\t\t\t$str[$key] = $this->escapeLikeStringDirect($val);\n\t\t\t}\n\n\t\t\treturn $str;\n\t\t}\n\n\t\t$str = $this->_escapeString($str);\n\n\t\t// Escape LIKE condition wildcards\n\t\treturn str_replace([\n\t\t\t$this->likeEscapeChar,\n\t\t\t'%',\n\t\t\t'_',\n\t\t], [\n\t\t\t'\\\\' . $this->likeEscapeChar,\n\t\t\t'\\\\' . '%',\n\t\t\t'\\\\' . '_',\n\t\t], $str\n\t\t);\n\t}", "function like_escape($text)\n {\n }", "function LikeWhereClause ($field, $value)\n\t{\n\t\t$this->field = $field;\n\t\t$this->regexp = '/^' . str_replace('%','.*', preg_quote($value)) . '$/i';\n\t}", "function escapeSQL($string, $wildcard=false)\n{\n\t$db = &atkGetDb();\n\treturn $db->escapeSQL($string, $wildcard);\n}", "public function allowWildcardSearching()\n {\n $this->wildcardSearching = true;\n\n return $this;\n }", "public function bindLikeValue($value)\n {\n return '%' . $value . '%';\n }", "function BasicSearchWhere() {\n\t\tglobal $Security;\n\t\t$sSearchStr = \"\";\n\t\tif (!$Security->CanSearch()) return \"\";\n\t\t$sSearchKeyword = $this->BasicSearch->Keyword;\n\t\t$sSearchType = $this->BasicSearch->Type;\n\t\tif ($sSearchKeyword <> \"\") {\n\t\t\t$sSearch = trim($sSearchKeyword);\n\t\t\tif ($sSearchType <> \"=\") {\n\t\t\t\twhile (strpos($sSearch, \" \") !== FALSE)\n\t\t\t\t\t$sSearch = str_replace(\" \", \" \", $sSearch);\n\t\t\t\t$arKeyword = explode(\" \", trim($sSearch));\n\t\t\t\tforeach ($arKeyword as $sKeyword) {\n\t\t\t\t\tif ($sSearchStr <> \"\") $sSearchStr .= \" \" . $sSearchType . \" \";\n\t\t\t\t\t$sSearchStr .= \"(\" . $this->BasicSearchSQL($sKeyword) . \")\";\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$sSearchStr = $this->BasicSearchSQL($sSearch);\n\t\t\t}\n\t\t\t$this->Command = \"search\";\n\t\t}\n\t\tif ($this->Command == \"search\") {\n\t\t\t$this->BasicSearch->setKeyword($sSearchKeyword);\n\t\t\t$this->BasicSearch->setType($sSearchType);\n\t\t}\n\t\treturn $sSearchStr;\n\t}", "public function like($column,$data,$wildCardPlacement);", "public function __contains ( $sField, $mValue )\n {\n // There's a standard way to force case sensitive LIKE ???\n return \"$sField LIKE $mValue\";\n }", "function BasicSearchWhere() {\r\n\t\tglobal $Security;\r\n\t\t$sSearchStr = \"\";\r\n\t\t$sSearchKeyword = $this->BasicSearch->Keyword;\r\n\t\t$sSearchType = $this->BasicSearch->Type;\r\n\t\tif ($sSearchKeyword <> \"\") {\r\n\t\t\t$sSearch = trim($sSearchKeyword);\r\n\t\t\tif ($sSearchType <> \"=\") {\r\n\t\t\t\twhile (strpos($sSearch, \" \") !== FALSE)\r\n\t\t\t\t\t$sSearch = str_replace(\" \", \" \", $sSearch);\r\n\t\t\t\t$arKeyword = explode(\" \", trim($sSearch));\r\n\t\t\t\tforeach ($arKeyword as $sKeyword) {\r\n\t\t\t\t\tif ($sSearchStr <> \"\") $sSearchStr .= \" \" . $sSearchType . \" \";\r\n\t\t\t\t\t$sSearchStr .= \"(\" . $this->BasicSearchSQL($sKeyword) . \")\";\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$sSearchStr = $this->BasicSearchSQL($sSearch);\r\n\t\t\t}\r\n\t\t\t$this->Command = \"search\";\r\n\t\t}\r\n\t\tif ($this->Command == \"search\") {\r\n\t\t\t$this->BasicSearch->setKeyword($sSearchKeyword);\r\n\t\t\t$this->BasicSearch->setType($sSearchType);\r\n\t\t}\r\n\t\treturn $sSearchStr;\r\n\t}", "protected function escapeLike(string $str): string {\n return addcslashes($str, '_%');\n }", "function BasicSearchWhere() {\r\n\t\tglobal $Security, $fs_multijoin_v;\r\n\t\t$sSearchStr = \"\";\r\n\t\t$sSearchKeyword = $fs_multijoin_v->BasicSearchKeyword;\r\n\t\t$sSearchType = $fs_multijoin_v->BasicSearchType;\r\n\t\tif ($sSearchKeyword <> \"\") {\r\n\t\t\t$sSearch = trim($sSearchKeyword);\r\n\t\t\tif ($sSearchType <> \"\") {\r\n\t\t\t\twhile (strpos($sSearch, \" \") !== FALSE)\r\n\t\t\t\t\t$sSearch = str_replace(\" \", \" \", $sSearch);\r\n\t\t\t\t$arKeyword = explode(\" \", trim($sSearch));\r\n\t\t\t\tforeach ($arKeyword as $sKeyword) {\r\n\t\t\t\t\tif ($sSearchStr <> \"\") $sSearchStr .= \" \" . $sSearchType . \" \";\r\n\t\t\t\t\t$sSearchStr .= \"(\" . $this->BasicSearchSQL($sKeyword) . \")\";\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$sSearchStr = $this->BasicSearchSQL($sSearch);\r\n\t\t\t}\r\n\t\t}\r\n\t\tif ($sSearchKeyword <> \"\") {\r\n\t\t\t$fs_multijoin_v->setSessionBasicSearchKeyword($sSearchKeyword);\r\n\t\t\t$fs_multijoin_v->setSessionBasicSearchType($sSearchType);\r\n\t\t}\r\n\t\treturn $sSearchStr;\r\n\t}", "function BasicSearchSQL($Keyword)\r\n{\r\n\t$sKeyword = (!get_magic_quotes_gpc()) ? addslashes($Keyword) : $Keyword;\r\n\t$BasicSearchSQL = \"\";\r\n\t$BasicSearchSQL.= \"`nombre` LIKE '%\" . $sKeyword . \"%' OR \";\r\n\t$BasicSearchSQL.= \"`calle` LIKE '%\" . $sKeyword . \"%' OR \";\r\n\t$BasicSearchSQL.= \"`colonia` LIKE '%\" . $sKeyword . \"%' OR \";\r\n\t$BasicSearchSQL.= \"`ciudad` LIKE '%\" . $sKeyword . \"%' OR \";\r\n\t$BasicSearchSQL.= \"`codigo_postal` LIKE '%\" . $sKeyword . \"%' OR \";\r\n\t$BasicSearchSQL.= \"`lada` LIKE '%\" . $sKeyword . \"%' OR \";\r\n\t$BasicSearchSQL.= \"`telefono` LIKE '%\" . $sKeyword . \"%' OR \";\r\n\t$BasicSearchSQL.= \"`fax` LIKE '%\" . $sKeyword . \"%' OR \";\r\n\t$BasicSearchSQL.= \"`contacto` LIKE '%\" . $sKeyword . \"%' OR \";\r\n\t$BasicSearchSQL.= \"`contacto_email` LIKE '%\" . $sKeyword . \"%' OR \";\r\n\tif (substr($BasicSearchSQL, -4) == \" OR \") { $BasicSearchSQL = substr($BasicSearchSQL, 0, strlen($BasicSearchSQL)-4); }\r\n\treturn $BasicSearchSQL;\r\n}", "function buildLikeClause($requestKey, $columnName, array &$params, array &$clauses) {\n if (isset($_GET[$requestKey])) {\n $val = trim($_GET[$requestKey]);\n if (strlen($val)) {\n $clauses[] = \"$columnName like concat('%', ?, '%')\";\n $params[] = addcslashes($val, '%_');\n }\n }\n}", "private function setSearchstring(){\n $search_req = $this->main->getArrayFromSearchString($_GET['content_search']);\n\n $searchstring = '';\n\n foreach($search_req as $key => $val){\n if(strlen($val) > 0){\n $searchstring .= \"`name` LIKE '%\".DB::quote($val).\"%' OR \";\n };\n };\n\n $searchstring .= \"`name` LIKE '%\".DB::quote($_GET['content_search']).\"%'\";\n\n return $searchstring;\n }", "public function like($stringWithWildCardCharacter){\n $this->debugBacktrace();\n\n $value = $this->_real_escape_string($stringWithWildCardCharacter);\n\n if($this->last_call_where_or_having == \"where\"){\n $this->whereClause .= \" LIKE $value\";\n }\n else{\n $this->havingClause .= \" LIKE $value\";\n }\n return $this;\n }", "function BasicSearchWhere() {\n\t\tglobal $Security, $tbl_slide;\n\t\t$sSearchStr = \"\";\n\t\t$sSearchKeyword = $tbl_slide->BasicSearchKeyword;\n\t\t$sSearchType = $tbl_slide->BasicSearchType;\n\t\tif ($sSearchKeyword <> \"\") {\n\t\t\t$sSearch = trim($sSearchKeyword);\n\t\t\tif ($sSearchType <> \"\") {\n\t\t\t\twhile (strpos($sSearch, \" \") !== FALSE)\n\t\t\t\t\t$sSearch = str_replace(\" \", \" \", $sSearch);\n\t\t\t\t$arKeyword = explode(\" \", trim($sSearch));\n\t\t\t\tforeach ($arKeyword as $sKeyword) {\n\t\t\t\t\tif ($sSearchStr <> \"\") $sSearchStr .= \" \" . $sSearchType . \" \";\n\t\t\t\t\t$sSearchStr .= \"(\" . $this->BasicSearchSQL($sKeyword) . \")\";\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$sSearchStr = $this->BasicSearchSQL($sSearch);\n\t\t\t}\n\t\t}\n\t\tif ($sSearchKeyword <> \"\") {\n\t\t\t$tbl_slide->setSessionBasicSearchKeyword($sSearchKeyword);\n\t\t\t$tbl_slide->setSessionBasicSearchType($sSearchType);\n\t\t}\n\t\treturn $sSearchStr;\n\t}", "function BasicSearchWhere() {\n\t\tglobal $Security, $t_tinbai_mainsite;\n\t\t$sSearchStr = \"\";\n\t\tif (!$Security->CanSearch()) return \"\";\n\t\t$sSearchKeyword = $t_tinbai_mainsite->BasicSearchKeyword;\n\t\t$sSearchType = $t_tinbai_mainsite->BasicSearchType;\n\t\tif ($sSearchKeyword <> \"\") {\n\t\t\t$sSearch = trim($sSearchKeyword);\n\t\t\tif ($sSearchType <> \"\") {\n\t\t\t\twhile (strpos($sSearch, \" \") !== FALSE)\n\t\t\t\t\t$sSearch = str_replace(\" \", \" \", $sSearch);\n\t\t\t\t$arKeyword = explode(\" \", trim($sSearch));\n\t\t\t\tforeach ($arKeyword as $sKeyword) {\n\t\t\t\t\tif ($sSearchStr <> \"\") $sSearchStr .= \" \" . $sSearchType . \" \";\n\t\t\t\t\t$sSearchStr .= \"(\" . $this->BasicSearchSQL($sKeyword) . \")\";\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$sSearchStr = $this->BasicSearchSQL($sSearch);\n\t\t\t}\n\t\t}\n\t\tif ($sSearchKeyword <> \"\") {\n\t\t\t$t_tinbai_mainsite->setSessionBasicSearchKeyword($sSearchKeyword);\n\t\t\t$t_tinbai_mainsite->setSessionBasicSearchType($sSearchType);\n\t\t}\n\t\treturn $sSearchStr;\n\t}", "abstract protected function platformPrepareLikeStatement(\n $prefix = null,\n $column,\n $not = null,\n $bind,\n $caseSensitive = false\n );", "public function likeEscape(string $keyword): string;", "public\r\n\tfunction buildLike( $string ) {\r\n\t\treturn $string . '%';\r\n\t}", "function like($str, $searchTerm)\n {\n $searchTerm = strtolower($searchTerm);\n $str = strtolower($_SESSION['username']);\n $pos = strpos($str, $searchTerm);\n if ($pos === false)\n return false;\n else\n return true;\n }", "public function searchLike($searchField, $value)\n {\n return \" UPPER($searchField) LIKE UPPER('%{$value}%') \";\n }", "public function orLike($column,$data,$wildCardPlacement);", "public function getLikeOperator()\n {\n $grammar = $this->query->getGrammar();\n\n if ($grammar instanceof PostgresGrammar) {\n return 'ilike';\n }\n\n return 'like';\n }", "public function like(string $field = '', string $regex = '', string $flags = 'i', bool $enable_start_wildcard = TRUE, bool $enable_end_wildcard = TRUE): self\n\t{\n\t\tif ($field != '')\n\t\t{\n\t\t\t$this->push_where_field($field, $this->regex($regex, $flags, $enable_start_wildcard, $enable_end_wildcard));\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->error('At least 1 argument should be passed to method — field name', __METHOD__);\n\t\t}\n\t\t\n\t\treturn $this;\n\t}", "function searchSQL ($aRequest) {\n $sVersion = DBUtil::getOneResultKey(\"SHOW VARIABLES LIKE 'version'\", \"Value\");\n if ((int)substr($sVersion, 0, 1) >= 4) {\n $boolean_mode = \"IN BOOLEAN MODE\";\n } else {\n $boolean_mode = \"\";\n }\n\n $p = array();\n $p[0] = \"MATCH(DTT.document_text) AGAINST (? $boolean_mode)\";\n\t$p[1] = KTUtil::phraseQuote($aRequest[$this->getWidgetBase()]);\n \n // handle the boolean \"not\" stuff.\n $want_invert = KTUtil::arrayGet($aRequest, $this->getWidgetBase() . '_not');\n if (is_null($want_invert) || ($want_invert == \"0\")) {\n return $p;\n } else {\n $p[0] = '(NOT (' . $p[0] . '))';\n } \n \n return $p;\n }", "public function like($value);", "public function buildLike() {\n\t\t$params = func_get_args();\n\n\t\tif ( count( $params ) > 0 && is_array( $params[0] ) ) {\n\t\t\t$params = $params[0];\n\t\t}\n\n\t\t$s = '';\n\n\t\tforeach ( $params as $value ) {\n\t\t\tif ( $value instanceof LikeMatch ) {\n\t\t\t\t$s .= $value->toString();\n\t\t\t} else {\n\t\t\t\t$s .= $this->escapeLikeInternal( $value );\n\t\t\t}\n\t\t}\n\n\t\treturn \" LIKE '\" . $s . \"' \";\n\t}", "public function esc_like($text)\n {\n }", "public function placeholder_escape()\n {\n }", "function esc_like($text)\n{\n return addcslashes($text, '_%\\\\');\n}", "public function search($phrase='', $limit = true, $additional = false){\n global $Core;\n\n if(empty($this->tableFields)){\n $this->getTableFields();\n }\n\n $phrase = trim($Core->db->real_escape_string($phrase));\n if(!empty($phrase)){\n if($this->autocompleteField && $this->autocompleteObjectId){\n $q = \"SELECT `autocomplete`.`object_id`, TRIM(`autocomplete`.`phrase`) AS 'phrase'\";\n $q .= \" FROM `{$Core->dbName}`.`autocomplete`\";\n if(isset($this->tableFields['hidden']) && !$this->showHiddenRows){\n $q .= \" INNER JOIN `{$Core->dbName}`.`{$this->tableName}` ON `{$Core->dbName}`.`autocomplete`.`object_id` = `{$Core->dbName}`.`{$this->tableName}`.`id`\";\n }\n $q .= \" WHERE `autocomplete`.`type`={$this->autocompleteObjectId} AND `autocomplete`.`phrase` LIKE '%$phrase%'\";\n if(isset($this->tableFields['hidden']) && !$this->showHiddenRows){\n $q .= \" AND (`{$this->tableName}`.`hidden` IS NULL OR `{$this->tableName}`.`hidden` = 0)\";\n }\n if($additional){\n $q .= ' AND '.$additional;\n }\n $q .= ' GROUP BY `autocomplete`.`object_id` ORDER BY `autocomplete`.`phrase` ASC, `autocomplete`.`id` ASC';\n }\n else if($this->searchByField){\n if($this->returnPhraseOnly){\n $q = \"SELECT `id` AS 'object_id',`{$this->searchByField}` AS 'phrase'\";\n }\n else{\n $q = \"SELECT *\";\n }\n $q .= \" FROM `{$Core->dbName}`.`{$this->tableName}`\";\n $q .= \" WHERE `{$this->searchByField}` LIKE '%$phrase%'\";\n if(isset($this->tableFields['hidden']) && !$this->showHiddenRows){\n $q .= \" AND (`{$this->tableName}`.`hidden` IS NULL OR `{$this->tableName}`.`hidden` = 0)\";\n }\n if($additional){\n $q .= ' AND '.$additional;\n }\n\n $q .= \" ORDER BY `\".((!empty($this->orderByField)) ? $this->orderByField : $this->searchByField).\"` {$this->orderType}, `id` ASC\";\n if($this->additionalOrdering){\n $q .= ', '.$this->additionalOrdering;\n }\n }\n else throw new Exception(\"In order to use the search function, plesae define autocompleteField and autocompleteObjectId or searchByField!\");\n\n if($limit){\n if(is_numeric($limit)){\n $q.= \" LIMIT \".(($Core->rewrite->currentPage - 1) * $limit).','.$limit;\n }\n else{\n $q.= \" LIMIT \".(($Core->rewrite->currentPage - 1) * $Core->itemsPerPage).','.$Core->itemsPerPage;\n }\n }\n\n if($this->returnPhraseOnly){\n if($Core->db->query($q,$Core->cacheTime,'fillArraySingleField',$result,'object_id','phrase')){\n return $result;\n }\n }\n else{\n if($Core->db->query($q,$Core->cacheTime,'fillArray',$result,'id')){\n return $result;\n }\n }\n return array();\n }\n else{\n $all = $this->getAll(false,false,$limit,false,false,$additional);\n if(empty($all)){\n return array();\n }\n $result = array();\n foreach($all as $k => $v){\n if($this->autocompleteField && $this->autocompleteObjectId){\n if($this->returnPhraseOnly){\n if(is_array($this->autocompleteField)){\n $result[$k] = array();\n foreach($this->autocompleteField as $f){\n if(!empty($v[$f])){\n $result[$k][] = $v[$f];\n }\n }\n $result[$k] = implode($this->autocompleteSeparator,$result[$k]);\n }\n else{\n $result[$k] = $v[$this->autocompleteField];\n }\n }\n else return $all;\n }\n else if($this->searchByField){\n if($this->returnPhraseOnly){\n $result[$k] = $v[$this->searchByField];\n }\n else return $all;\n }\n else throw new Exception(\"In order to use the search function, please define autocompleteField and autocompleteObjectId or searchByField!\");\n }\n unset($all);\n return $result;\n }\n }", "function searchByKeyword($searchTerm) {\n $searchTerm=striptags(htmlspecialchars($searchTerm));\n $query=\"SELECT * FROM ads WHERE description LIKE '%{$searchTerm}%'\";\n }", "public function __icontains ( $sField, $mValue )\n {\n return \"$sField LIKE $mValue\";\n }", "function escapeSQL($string, $wildcard=false)\n\t{\n\t\tif ($this->connect('r') === DB_SUCCESS)\n\t\t{\n\t\t\tif ($wildcard == true)\n\t\t\t{\n\t\t\t\t$string = str_replace('%', '\\%', $string);\n\t\t\t}\n\t\t\treturn mysqli_real_escape_string($this->m_link_id, $string);\n\t\t}\n\n\t\treturn null;\n\t}", "function BasicSearchSQL($Keyword)\n{\n\t$sKeyword = (!get_magic_quotes_gpc()) ? addslashes($Keyword) : $Keyword;\n\t$BasicSearchSQL = \"\";\n\t$BasicSearchSQL.= \"`descripcion` LIKE '%\" . $sKeyword . \"%' OR \";\n\t$BasicSearchSQL.= \"`unidad_salida` LIKE '%\" . $sKeyword . \"%' OR \";\n\tif (substr($BasicSearchSQL, -4) == \" OR \") { $BasicSearchSQL = substr($BasicSearchSQL, 0, strlen($BasicSearchSQL)-4); }\n\treturn $BasicSearchSQL;\n}", "public function should_override_search_in_backend() {\n\t\treturn $this->get_override_native_search() === 'backend' || $this->should_override_search_with_instantsearch();\n\t}", "public function whereLike($table, $column, $value);", "public function globalStringConditionMatchesWildcardExpression() {}", "public function globalStringConditionMatchesWildcardExpression() {}", "public function notLike($stringWithWildCardCharacter){\n $this->debugBacktrace();\n $value = $this->_real_escape_string($stringWithWildCardCharacter);\n\n if($this->last_call_where_or_having == \"where\"){\n $this->whereClause .= \" NOT LIKE $value\";\n }\n else{\n $this->havingClause .= \" NOT LIKE $value\";\n }\n return $this;\n }", "function BuildBasicSearchSql(&$Where, &$Fld, $Keyword) {\r\n\t\t$sFldExpression = ($Fld->FldVirtualExpression <> \"\") ? $Fld->FldVirtualExpression : $Fld->FldExpression;\r\n\t\t$lFldDataType = ($Fld->FldIsVirtual) ? EW_DATATYPE_STRING : $Fld->FldDataType;\r\n\t\tif ($lFldDataType == EW_DATATYPE_NUMBER) {\r\n\t\t\t$sWrk = $sFldExpression . \" = \" . ew_QuotedValue($Keyword, $lFldDataType);\r\n\t\t} else {\r\n\t\t\t$sWrk = $sFldExpression . \" LIKE \" . ew_QuotedValue(\"%\" . $Keyword . \"%\", $lFldDataType);\r\n\t\t}\r\n\t\tif ($Where <> \"\") $Where .= \" OR \";\r\n\t\t$Where .= $sWrk;\r\n\t}", "function _search($field, $key)\n\t{\n\t\tswitch ($field)\n\t\t{\n\t\t\tcase 'name':\n\t\t\t{\n\t\t\t\t$this->db->where('MATCH(tag.name) AGAINST(\\'\"'.$this->db->escape_str($key).'\"\\' IN BOOLEAN MODE)');\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "protected function platformPrepareLikeStatement(\n $prefix = null,\n $column,\n $not = null,\n $bind,\n $caseSensitive = false\n ) {\n $likeStatement = \"{$prefix} {$column} {$not} LIKE :{$bind}\";\n\n if ($caseSensitive === true) {\n $likeStatement = \"{$prefix} LOWER({$column}) {$not} LIKE :{$bind}\";\n }\n\n return $likeStatement;\n }", "function BasicSearchWhere() {\n\tglobal $Security, $dpp_proveedores;\n\t$sSearchStr = \"\";\n\t$sSearchKeyword = ew_StripSlashes(@$_GET[EW_TABLE_BASIC_SEARCH]);\n\t$sSearchType = @$_GET[EW_TABLE_BASIC_SEARCH_TYPE];\n\tif ($sSearchKeyword <> \"\") {\n\t\t$sSearch = trim($sSearchKeyword);\n\t\tif ($sSearchType <> \"\") {\n\t\t\twhile (strpos($sSearch, \" \") !== FALSE)\n\t\t\t\t$sSearch = str_replace(\" \", \" \", $sSearch);\n\t\t\t$arKeyword = explode(\" \", trim($sSearch));\n\t\t\tforeach ($arKeyword as $sKeyword) {\n\t\t\t\tif ($sSearchStr <> \"\") $sSearchStr .= \" \" . $sSearchType . \" \";\n\t\t\t\t$sSearchStr .= \"(\" . BasicSearchSQL($sKeyword) . \")\";\n\t\t\t}\n\t\t} else {\n\t\t\t$sSearchStr = BasicSearchSQL($sSearch);\n\t\t}\n\t}\n\tif ($sSearchKeyword <> \"\") {\n\t\t$dpp_proveedores->setBasicSearchKeyword($sSearchKeyword);\n\t\t$dpp_proveedores->setBasicSearchType($sSearchType);\n\t}\n\treturn $sSearchStr;\n}", "protected function toLikeSearchString($text)\n {\n $str = preg_replace('#[\\s%]+#', '%', $text);\n\n // Remove all wildcard character at the head and tail\n $str = preg_replace('#^%+#', '', $str);\n $str = preg_replace('#%+$#', '', $str);\n \n return $str;\n }", "function _admin_search_query()\n {\n }", "function filter_query($query) {\n\n\n\n //use string replace to allow our users to use AND as a Boolean search parameter\n //All of our search engines use OR so we do not need to edit our Query to facilitate its use\n //use string replace to allow our users to use NOT as a Boolean search parameter\n $bad = array(\"NOT \", \"AND \", \"'s\", '\"');\n $good = array(\"-\", \"+\", \"\", \"'\");\n $query = str_replace($bad, $good, $query);\n\n return $query;\n}", "function searchSQL ($aRequest) {\n $sVersion = DBUtil::getOneResultKey(\"SHOW VARIABLES LIKE 'version'\", \"Value\");\n if ((int)substr($sVersion, 0, 1) >= 4) {\n $boolean_mode = \"IN BOOLEAN MODE\";\n } else {\n $boolean_mode = \"\";\n }\n\n $p = array();\n $p[0] = \"MATCH(DDCT.body) AGAINST (? $boolean_mode)\";\n\t$p[1] = KTUtil::phraseQuote($aRequest[$this->getWidgetBase()]);\n \n // handle the boolean \"not\" stuff.\n $want_invert = KTUtil::arrayGet($aRequest, $this->getWidgetBase() . '_not');\n if (is_null($want_invert) || ($want_invert == \"0\")) {\n return $p;\n } else {\n $p[0] = '(NOT (' . $p[0] . '))';\n } \n \n return $p;\n }", "function get_search($search)\n\t{\n\t\treturn $this->name . \" LIKE '%\" . $search. \"%'\";\n\t}", "protected function _wildcardize($field) {\r\n // TODO: Need to be improve, protection caracter should be found \r\n\t\t$where = array();\r\n\t\tif (strpos($value, '*') !== false) {\r\n\t\t\t$where[\"{$field} LIKE ?\"] = str_replace('*', '%', $value);\r\n\t\t} \r\n\t\telse {\r\n\t\t\t$where[\"{$column} = ?\"] = $value;\r\n\t\t}\r\n \t\r\n\t\treturn $where;\r\n }", "function SetUpBasicSearch()\r\n{\r\n\tglobal $sSrchBasic;\r\n\t$sSearch = (!get_magic_quotes_gpc()) ? addslashes(@$_GET[\"psearch\"]) : @$_GET[\"psearch\"];\r\n\t$sSearchType = @$_GET[\"psearchtype\"];\r\n\tif ($sSearch <> \"\") {\r\n\t\tif ($sSearchType <> \"\") {\r\n\t\t\twhile (strpos($sSearch, \" \") != false) {\r\n\t\t\t\t$sSearch = str_replace(\" \", \" \",$sSearch);\r\n\t\t\t}\r\n\t\t\t$arKeyword = split(\" \", trim($sSearch));\r\n\t\t\tforeach ($arKeyword as $sKeyword)\r\n\t\t\t{\r\n\t\t\t\t$sSrchBasic .= \"(\" . BasicSearchSQL($sKeyword) . \") \" . $sSearchType . \" \";\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t$sSrchBasic = BasicSearchSQL($sSearch);\r\n\t\t}\r\n\t}\r\n\tif (substr($sSrchBasic, -4) == \" OR \") { $sSrchBasic = substr($sSrchBasic, 0, strlen($sSrchBasic)-4); }\r\n\tif (substr($sSrchBasic, -5) == \" AND \") { $sSrchBasic = substr($sSrchBasic, 0, strlen($sSrchBasic)-5); }\r\n}", "function addslashes_mssql($str,$inlike=false,$escape='!')\n\t{\n\n\t\tif (is_array($str))\n\t\t{\n\t\t\tforeach($str AS $id => $value) {\n\t\t\t\t$str[$id] = addslashes_mssql($value,$inlike);\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\n\t\t\t$str\t= str_replace(\"'\", \"''\", $str);\n\n\t\t\tif ($inlike)\n\t\t\t{\n\t\t\t\t$str\t= str_replace($escape, $escape.$escape, $str);\n\t\t\t\t$str\t= str_replace('%', $escape.'%', $str);\n\t\t\t\t$str\t= str_replace('[', $escape.'[', $str);\n\t\t\t\t$str\t= str_replace(']', $escape.']', $str);\n\t\t\t\t$str\t= str_replace('_', $escape.'_', $str);\n\t\t\t}\n\n\t\t}\n\n\t\treturn $str;\n\n\t}", "public function like($field, $match = '', $wildcard = 'BOTH', $caseSensitive = true, $escape = null)\n {\n return $this->prepareLikeStatement($field, $match, 'AND ', $wildcard, '', $caseSensitive, $escape);\n }", "function BuildBasicSearchSql(&$Where, &$Fld, $Keyword) {\n\t\t$sFldExpression = ($Fld->FldVirtualExpression <> \"\") ? $Fld->FldVirtualExpression : $Fld->FldExpression;\n\t\t$lFldDataType = ($Fld->FldIsVirtual) ? EW_DATATYPE_STRING : $Fld->FldDataType;\n\t\tif ($lFldDataType == EW_DATATYPE_NUMBER) {\n\t\t\t$sWrk = $sFldExpression . \" = \" . ew_QuotedValue($Keyword, $lFldDataType);\n\t\t} else {\n\t\t\t$sWrk = $sFldExpression . \" LIKE \" . ew_QuotedValue(\"%\" . $Keyword . \"%\", $lFldDataType);\n\t\t}\n\t\tif ($Where <> \"\") $Where .= \" OR \";\n\t\t$Where .= $sWrk;\n\t}", "function BuildBasicSearchSql(&$Where, &$Fld, $Keyword) {\n\t\t$sFldExpression = ($Fld->FldVirtualExpression <> \"\") ? $Fld->FldVirtualExpression : $Fld->FldExpression;\n\t\t$lFldDataType = ($Fld->FldIsVirtual) ? EW_DATATYPE_STRING : $Fld->FldDataType;\n\t\tif ($lFldDataType == EW_DATATYPE_NUMBER) {\n\t\t\t$sWrk = $sFldExpression . \" = \" . ew_QuotedValue($Keyword, $lFldDataType);\n\t\t} else {\n\t\t\t$sWrk = $sFldExpression . \" LIKE \" . ew_QuotedValue(\"%\" . $Keyword . \"%\", $lFldDataType);\n\t\t}\n\t\tif ($Where <> \"\") $Where .= \" OR \";\n\t\t$Where .= $sWrk;\n\t}", "function title_like_posts_where( $where, $wp_query ) {\n global $wpdb;\n if ( $post_title_like = $wp_query->get( 'post_title_like' ) ) {\n $where .= ' AND ' . $wpdb->posts . '.post_title LIKE \\'%' . esc_sql( $wpdb->esc_like( $post_title_like ) ) . '%\\'';\n }\n return $where;\n}", "function like($pattern, $subject)\t{\n\t\t$pattern = str_replace('%', '.*', preg_quote($pattern));\n\t\treturn (bool) preg_match(\"/^{$pattern}$/i\", $subject);\n\t}", "public function anyChar() {\n\t\treturn new LikeMatch( '_' );\n\t}", "private function _sql_search() {\n\t\tglobal $wpdb;\n\n\t\tif (empty($this->search_term) || empty($this->search_columns)) {\n\t\t\t$this->warnings[] = __('Search parameters ignored: search_term and search_columns must be set.', CCTM_TXTDOMAIN);\n\t\t\treturn '';\n\t\t}\n\n\t\t$criteria = array();\n\n\t\tforeach ( $this->search_columns as $c ) {\n\t\t\t// For standard columns in the wp_posts table\n\t\t\tif ( in_array($c, self::$wp_posts_columns ) ) {\n\t\t\t\tswitch ($this->match_rule) {\n\t\t\t\tcase 'starts_with':\n\t\t\t\t\t$criteria[] = $wpdb->prepare(\"{$wpdb->posts}.$c LIKE %s\", $this->search_term.'%');\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'ends_with':\n\t\t\t\t\t$criteria[] = $wpdb->prepare(\"{$wpdb->posts}.$c LIKE %s\", '%'.$this->search_term);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'contains':\n\t\t\t\tdefault:\n\t\t\t\t\t$criteria[] = $wpdb->prepare(\"{$wpdb->posts}.$c LIKE %s\", '%'.$this->search_term.'%');\n\t\t\t\t}\n\t\t\t}\n\t\t\t// For custom field \"columns\" in the wp_postmeta table\n\t\t\telse {\n\t\t\t\tswitch ($this->match_rule) {\n\t\t\t\tcase 'starts_with':\n\t\t\t\t\t$criteria[] = $wpdb->prepare(\"{$wpdb->postmeta}.meta_key = %s AND {$wpdb->postmeta}.meta_value LIKE %s\"\n\t\t\t\t\t\t, $c\n\t\t\t\t\t\t, '%'.$this->search_term);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'ends_with':\n\t\t\t\t\t$criteria[] = $wpdb->prepare(\"{$wpdb->postmeta}.meta_key = %s AND {$wpdb->postmeta}.meta_value LIKE %s\"\n\t\t\t\t\t\t, $c\n\t\t\t\t\t\t, $this->search_term.'%');\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'contains':\n\t\t\t\tdefault:\n\t\t\t\t\t$criteria[] = $wpdb->prepare(\"{$wpdb->postmeta}.meta_key = %s AND {$wpdb->postmeta}.meta_value LIKE %s\"\n\t\t\t\t\t\t, $c\n\t\t\t\t\t\t, '%'.$this->search_term.'%');\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t$query = implode(' OR ', $criteria);\n\t\t$query = $this->join_rule . \" ($query)\";\n\t\treturn $query;\n\t}", "public function like($field, $match = '', $side = 'both', $escape = NULL)\n\t{\n\t\treturn $this->_like($field, $match, 'AND ', $side, '', $escape);\n\t}", "public function should_override_search_with_instantsearch() {\n\t\t$value = $this->get_override_native_search() === 'instantsearch';\n\n\t\treturn (bool) apply_filters( 'algolia_should_override_search_with_instantsearch', $value );\n\t}", "public function searchable()\n {\n return false;\n }", "function simulated_wildcard_match($context, $word, $full_cover = false)\n{\n $rexp = str_replace('%', '.*', str_replace('_', '.', str_replace('\\\\?', '.', str_replace('\\\\*', '.*', preg_quote($word)))));\n if ($full_cover) {\n $rexp = '^' . $rexp . '$';\n }\n\n return preg_match('#' . str_replace('#', '\\#', $rexp) . '#i', $context) != 0;\n}", "function format_sql( $value, $like = NULL ){\n/*************************************************************************\n * format vars for insertion into mysql\n * add %'s when needed for LIKE clauses\n */\n // Stripslashes\n if ( get_magic_quotes_gpc() ) {\n $value = stripslashes( $value );\n }\n\n // Quote if not a number or a numeric string\n if ( !is_numeric( $value ) ) {\n $value = \"'\". ( $like ? '%' : '' ) . mysql_real_escape_string( $value ) . ( $like ? '%' : '' ) .\"'\";\n }\n\n return $value;\n}", "function BasicSearchSQL($Keyword) {\n\t$sKeyword = ew_AdjustSql($Keyword);\n\t$sql = \"\";\n\t$sql .= \"`provee_dig` LIKE '%\" . $sKeyword . \"%' OR \";\n\t$sql .= \"`provee_cat_juri` LIKE '%\" . $sKeyword . \"%' OR \";\n\t$sql .= \"`provee_nombre` LIKE '%\" . $sKeyword . \"%' OR \";\n\t$sql .= \"`provee_paterno` LIKE '%\" . $sKeyword . \"%' OR \";\n\t$sql .= \"`provee_materno` LIKE '%\" . $sKeyword . \"%' OR \";\n\t$sql .= \"`provee_dir` LIKE '%\" . $sKeyword . \"%' OR \";\n\t$sql .= \"`provee_fono` LIKE '%\" . $sKeyword . \"%' OR \";\n\tif (substr($sql, -4) == \" OR \") $sql = substr($sql, 0, strlen($sql)-4);\n\treturn $sql;\n}", "public static function contains($word)\n {\n return '%' . str_replace(' ', '%', $word) . '%';\n }", "function convertToSqlLikeValue($input) {\n $result = $input;\n\n // escape special chars\n $replace_Step1 = array(\n '%' => '\\%',\n '_' => '\\_',\n );\n // replace chars given by surfer\n $replace_Step2 = array(\n '?' => '_',\n '*' => '%',\n );\n\n $result = strtr($result, $replace_Step1);\n $result = strtr($result, $replace_Step2);\n\n return $result;\n }", "function cf_search_where( $where ) {\n global $pagenow, $wpdb;\n if ( is_search() ) {\n $where = preg_replace(\n \"/\\(\\s*\".$wpdb->posts.\".post_title\\s+LIKE\\s*(\\'[^\\']+\\')\\s*\\)/\",\n \"(\".$wpdb->posts.\".post_title LIKE $1) OR (\".$wpdb->postmeta.\".meta_value LIKE $1)\", $where );\n }\n return $where;\n}", "public function getSearchEnabled() {}", "function cari($keyword)\n{\n $query = \"SELECT * FROM produk WHERE namaproduk LIKE '%$keyword%' OR \n namapenjual LIKE '%$keyword%' OR \n harga LIKE '%$keyword%' OR \n toko LIKE '%$keyword%'\";\n\n return query($query);\n}", "public static function isSafeSearchEnabled(): bool\n {\n return self::$safeSearch;\n }", "public function add_placeholder_escape($query)\n {\n }", "public function is_search()\n {\n }", "public function likeCond(string $field, string $likeCond, string $connector = \"=\", bool $not = false);", "function like($field, $match = '', $side = 'both')\r\n\t{\r\n\t\treturn $this->_like($field, $match, 'AND ', $side);\r\n\t}", "function is_search()\n {\n }", "function like($x, $y, $and=null, ...$args)\n {\n $expression = array();\n array_push($expression, $x, _LIKE, $y, $and, ...$args);\n return $expression;\n }", "function like($x, $y, $and=null, ...$args)\n {\n $expression = array();\n array_push($expression, $x, _LIKE, $y, $and, ...$args);\n return $expression;\n }", "function PrepText(&$str,$blnNullable = true,$blnEscapeSQL = true) {\n if($blnEscapeSQL) {\n if (get_magic_quotes_gpc()) $str = stripslashes($str);\n // The characters _ and % are escaped \n // to prevent DOS attacks by users\n // injecting them into your LIKE operands.\n // The ; characters is escaped to prevent \n // query stacking.\n // The - character is escaped to prevent \n // parts of your SQL code being commented\n // out by someone trying to inject\n // replacement code.\n // $str = addcslashes($str,\"_%;-\"); // can't escape stuff twice\n switch($this->strDriverType) {\n case XAO_DRIVER_RDBMS_TYPE_POSTGRES:\n $str = pg_escape_string($str);\n break;\n case XAO_DRIVER_RDBMS_TYPE_ORACLE:\n $str = str_replace(\"'\",\"''\",$str);\n break;\n case XAO_DRIVER_RDBMS_TYPE_MSSQL:\n $str = str_replace(\"'\",\"''\",$str);\n break;\n case XAO_DRIVER_RDBMS_TYPE_ACCESS:\n $str = str_replace(\"'\",\"''\",$str);\n break;\n case XAO_DRIVER_RDBMS_TYPE_MYSQL4:\n $str = mysql_escape_string($str);\n break;\n case XAO_DRIVER_RDBMS_TYPE_SQLITE:\n $str = sqlite_escape_string($str);\n break;\n default:\n $str = str_replace(\"'\",\"''\",$str);\n }\n }\n if($str) {\n $str = \"'$str'\";\n }\n else {\n if(!$blnNullable) {\n $this->XaoThrow(\n \"XaoDb::PrepText() Unhandled NOT NULL Exception. \" .\n \"See stack trace for details.\",\n debug_backtrace()\n );\n }\n $str = \"NULL\";\n }\n }", "function simpleSearch($letter){\n\t\n\t\tglobal $sql;\n\n\t\t// Préparation de la requête\n\t\t$teste = $sql->prepare(\"SET NAMES 'utf8'\");\n\t\t$teste ->execute();\n\t\t\n\t\tif($letter == 'others'){\n\t\t\t$result = $sql->prepare(\"SELECT * FROM coogle.movie inner join coogle.region on movie.region_idregion=region.idregion order by coogle.movie.originalTitle desc limit 100\");\t\t\t\n\t\t} elseif($letter == 'num'){\n\t\t\t$result = $sql->prepare(\"SELECT * FROM coogle.movie inner join coogle.region on movie.region_idregion=region.idregion WHERE coogle.movie.enTitle REGEXP '^[0-9]'\");\n\t\t} else {\t\t\n\t\t\t$result = $sql->prepare(\"SELECT * FROM coogle.movie inner join coogle.region on movie.region_idregion=region.idregion where coogle.movie.originalTitle like ('\".$letter.\"%')\") ;\n\t\t}\n\t\t\n\t\t// Envoi de la requête\n\t\t$result->execute();\n\n\t\treturn $result;\t\n\t}", "function searchTableStatique() {\n include_once('./lib/config.php');\n $table = $_POST['table'];\n $tableStatique = Doctrine_Core::getTable($table);\n $columnNames = $tableStatique->getColumnNames();\n $req = '';\n $param = array();\n $premierPassage = true;\n foreach ($columnNames as $columnName) {\n if ($columnName != 'id') {\n $req .= $premierPassage ? $columnName.' like ? ' : 'and '.$columnName.' like ? ';\n $param[] = $_POST[$columnName].'%';\n $premierPassage = false;\n }\n }\n $search = $tableStatique->findByDql($req, $param);\n echo generateContenuTableStatiqueEntab($table, $tableStatique, $search);\n}", "function search($keyword){\r\n \r\n // select all record that corespond to given keywords - can find domains which don't have associated DNS records\r\n $query = \"\r\n SELECT\r\n d.fqdn AS fqdn,\r\n r.name AS domain_name\r\n FROM\r\n \" . $this->table_name . \" AS r\r\n RIGTH OUTER JOIN domain AS d\r\n ON (r.domain = d.id)\r\n WHERE\r\n d.fqdn LIKE ? OR r.name LIKE ?\r\n ORDER BY\r\n d.fqdn ASC,\r\n r.name ASC\r\n \";\r\n \r\n // prepare query statement\r\n $stmt = $this->conn->prepare($query);\r\n \r\n // sanitize\r\n $keyword=htmlspecialchars(strip_tags($keyword));\r\n $keyword = \"%{$keyword}%\";\r\n \r\n // bind\r\n $stmt->bindParam(1, $keyword);\r\n $stmt->bindParam(2, $keyword);\r\n \r\n // execute query\r\n $stmt->execute();\r\n \r\n return $stmt;\r\n }", "function ks_disable_search($query, $error = true) {\n if (is_search() && !is_admin()) {\n $query->is_search = false;\n $query->query_vars['s'] = false;\n $query->query['s'] = false;\n\n if ($error == true) {\n $query->is_404 = true;\n }\n }\n}", "function cf_search_where( $where ) {\n global $pagenow, $wpdb;\n\n if ( is_search() ) {\n $where = preg_replace(\n \"/\\(\\s*\".$wpdb->posts.\".post_title\\s+LIKE\\s*(\\'[^\\']+\\')\\s*\\)/\",\n \"(\".$wpdb->posts.\".post_title LIKE $1) OR (\".$wpdb->postmeta.\".meta_value LIKE $1)\", $where );\n }\n\n return $where;\n}", "abstract protected function _escape($s);", "function queryFilterContains(&$layout_def)\n {\n $matches = explode(',', $layout_def['input_name0']);\n $q = \"\";\n foreach ($matches as $match) {\n // Make the match field the lowercase version of the field. This feels\n // a little dirty but I bet Mike Rowe would approve\n $match = strtolower(trim($match));\n $q .= \" \" . $this->getLowercaseColumnSelect($layout_def) . \" LIKE '%\" .$GLOBALS['db']->quote($match).\"%' OR\";\n }\n\n return rtrim($q, \" OR\");\n }", "public function __iis ( $sField, $mValue )\n {\n return \"$sField LIKE $mValue\";\n }", "function BasicSearchWhere($Default = FALSE) {\n\t\tglobal $Security;\n\t\t$sSearchStr = \"\";\n\t\tif (!$Security->CanSearch()) return \"\";\n\t\t$sSearchKeyword = ($Default) ? $this->BasicSearch->KeywordDefault : $this->BasicSearch->Keyword;\n\t\t$sSearchType = ($Default) ? $this->BasicSearch->TypeDefault : $this->BasicSearch->Type;\n\t\tif ($sSearchKeyword <> \"\") {\n\t\t\t$sSearch = trim($sSearchKeyword);\n\t\t\tif ($sSearchType <> \"=\") {\n\t\t\t\t$ar = array();\n\n\t\t\t\t// Match quoted keywords (i.e.: \"...\")\n\t\t\t\tif (preg_match_all('/\"([^\"]*)\"/i', $sSearch, $matches, PREG_SET_ORDER)) {\n\t\t\t\t\tforeach ($matches as $match) {\n\t\t\t\t\t\t$p = strpos($sSearch, $match[0]);\n\t\t\t\t\t\t$str = substr($sSearch, 0, $p);\n\t\t\t\t\t\t$sSearch = substr($sSearch, $p + strlen($match[0]));\n\t\t\t\t\t\tif (strlen(trim($str)) > 0)\n\t\t\t\t\t\t\t$ar = array_merge($ar, explode(\" \", trim($str)));\n\t\t\t\t\t\t$ar[] = $match[1]; // Save quoted keyword\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Match individual keywords\n\t\t\t\tif (strlen(trim($sSearch)) > 0)\n\t\t\t\t\t$ar = array_merge($ar, explode(\" \", trim($sSearch)));\n\n\t\t\t\t// Search keyword in any fields\n\t\t\t\tif (($sSearchType == \"OR\" || $sSearchType == \"AND\") && $this->BasicSearch->BasicSearchAnyFields) {\n\t\t\t\t\tforeach ($ar as $sKeyword) {\n\t\t\t\t\t\tif ($sKeyword <> \"\") {\n\t\t\t\t\t\t\tif ($sSearchStr <> \"\") $sSearchStr .= \" \" . $sSearchType . \" \";\n\t\t\t\t\t\t\t$sSearchStr .= \"(\" . $this->BasicSearchSQL(array($sKeyword), $sSearchType) . \")\";\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$sSearchStr = $this->BasicSearchSQL($ar, $sSearchType);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$sSearchStr = $this->BasicSearchSQL(array($sSearch), $sSearchType);\n\t\t\t}\n\t\t\tif (!$Default) $this->Command = \"search\";\n\t\t}\n\t\tif (!$Default && $this->Command == \"search\") {\n\t\t\t$this->BasicSearch->setKeyword($sSearchKeyword);\n\t\t\t$this->BasicSearch->setType($sSearchType);\n\t\t}\n\t\treturn $sSearchStr;\n\t}", "function BasicSearchWhere($Default = FALSE) {\n\t\tglobal $Security;\n\t\t$sSearchStr = \"\";\n\t\tif (!$Security->CanSearch()) return \"\";\n\t\t$sSearchKeyword = ($Default) ? $this->BasicSearch->KeywordDefault : $this->BasicSearch->Keyword;\n\t\t$sSearchType = ($Default) ? $this->BasicSearch->TypeDefault : $this->BasicSearch->Type;\n\t\tif ($sSearchKeyword <> \"\") {\n\t\t\t$sSearch = trim($sSearchKeyword);\n\t\t\tif ($sSearchType <> \"=\") {\n\t\t\t\t$ar = array();\n\n\t\t\t\t// Match quoted keywords (i.e.: \"...\")\n\t\t\t\tif (preg_match_all('/\"([^\"]*)\"/i', $sSearch, $matches, PREG_SET_ORDER)) {\n\t\t\t\t\tforeach ($matches as $match) {\n\t\t\t\t\t\t$p = strpos($sSearch, $match[0]);\n\t\t\t\t\t\t$str = substr($sSearch, 0, $p);\n\t\t\t\t\t\t$sSearch = substr($sSearch, $p + strlen($match[0]));\n\t\t\t\t\t\tif (strlen(trim($str)) > 0)\n\t\t\t\t\t\t\t$ar = array_merge($ar, explode(\" \", trim($str)));\n\t\t\t\t\t\t$ar[] = $match[1]; // Save quoted keyword\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Match individual keywords\n\t\t\t\tif (strlen(trim($sSearch)) > 0)\n\t\t\t\t\t$ar = array_merge($ar, explode(\" \", trim($sSearch)));\n\n\t\t\t\t// Search keyword in any fields\n\t\t\t\tif (($sSearchType == \"OR\" || $sSearchType == \"AND\") && $this->BasicSearch->BasicSearchAnyFields) {\n\t\t\t\t\tforeach ($ar as $sKeyword) {\n\t\t\t\t\t\tif ($sKeyword <> \"\") {\n\t\t\t\t\t\t\tif ($sSearchStr <> \"\") $sSearchStr .= \" \" . $sSearchType . \" \";\n\t\t\t\t\t\t\t$sSearchStr .= \"(\" . $this->BasicSearchSQL(array($sKeyword), $sSearchType) . \")\";\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$sSearchStr = $this->BasicSearchSQL($ar, $sSearchType);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$sSearchStr = $this->BasicSearchSQL(array($sSearch), $sSearchType);\n\t\t\t}\n\t\t\tif (!$Default) $this->Command = \"search\";\n\t\t}\n\t\tif (!$Default && $this->Command == \"search\") {\n\t\t\t$this->BasicSearch->setKeyword($sSearchKeyword);\n\t\t\t$this->BasicSearch->setType($sSearchType);\n\t\t}\n\t\treturn $sSearchStr;\n\t}", "function BasicSearchWhere($Default = FALSE) {\n\t\tglobal $Security;\n\t\t$sSearchStr = \"\";\n\t\tif (!$Security->CanSearch()) return \"\";\n\t\t$sSearchKeyword = ($Default) ? $this->BasicSearch->KeywordDefault : $this->BasicSearch->Keyword;\n\t\t$sSearchType = ($Default) ? $this->BasicSearch->TypeDefault : $this->BasicSearch->Type;\n\t\tif ($sSearchKeyword <> \"\") {\n\t\t\t$sSearch = trim($sSearchKeyword);\n\t\t\tif ($sSearchType <> \"=\") {\n\t\t\t\t$ar = array();\n\n\t\t\t\t// Match quoted keywords (i.e.: \"...\")\n\t\t\t\tif (preg_match_all('/\"([^\"]*)\"/i', $sSearch, $matches, PREG_SET_ORDER)) {\n\t\t\t\t\tforeach ($matches as $match) {\n\t\t\t\t\t\t$p = strpos($sSearch, $match[0]);\n\t\t\t\t\t\t$str = substr($sSearch, 0, $p);\n\t\t\t\t\t\t$sSearch = substr($sSearch, $p + strlen($match[0]));\n\t\t\t\t\t\tif (strlen(trim($str)) > 0)\n\t\t\t\t\t\t\t$ar = array_merge($ar, explode(\" \", trim($str)));\n\t\t\t\t\t\t$ar[] = $match[1]; // Save quoted keyword\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Match individual keywords\n\t\t\t\tif (strlen(trim($sSearch)) > 0)\n\t\t\t\t\t$ar = array_merge($ar, explode(\" \", trim($sSearch)));\n\n\t\t\t\t// Search keyword in any fields\n\t\t\t\tif (($sSearchType == \"OR\" || $sSearchType == \"AND\") && $this->BasicSearch->BasicSearchAnyFields) {\n\t\t\t\t\tforeach ($ar as $sKeyword) {\n\t\t\t\t\t\tif ($sKeyword <> \"\") {\n\t\t\t\t\t\t\tif ($sSearchStr <> \"\") $sSearchStr .= \" \" . $sSearchType . \" \";\n\t\t\t\t\t\t\t$sSearchStr .= \"(\" . $this->BasicSearchSQL(array($sKeyword), $sSearchType) . \")\";\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$sSearchStr = $this->BasicSearchSQL($ar, $sSearchType);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$sSearchStr = $this->BasicSearchSQL(array($sSearch), $sSearchType);\n\t\t\t}\n\t\t\tif (!$Default) $this->Command = \"search\";\n\t\t}\n\t\tif (!$Default && $this->Command == \"search\") {\n\t\t\t$this->BasicSearch->setKeyword($sSearchKeyword);\n\t\t\t$this->BasicSearch->setType($sSearchType);\n\t\t}\n\t\treturn $sSearchStr;\n\t}" ]
[ "0.6524427", "0.64367485", "0.6341752", "0.6142244", "0.6113179", "0.61086196", "0.60685605", "0.5942321", "0.59394175", "0.5920239", "0.5889103", "0.5838482", "0.5745852", "0.57135224", "0.570253", "0.5677892", "0.56476593", "0.56382793", "0.56084836", "0.5605581", "0.5605297", "0.56033933", "0.5594029", "0.5574646", "0.5567991", "0.5552762", "0.5510446", "0.55063313", "0.5499537", "0.5489706", "0.54754007", "0.546407", "0.54618895", "0.5431075", "0.5423744", "0.54008305", "0.53956157", "0.539501", "0.5384183", "0.53798884", "0.53736883", "0.53636456", "0.5357565", "0.532133", "0.5315382", "0.531046", "0.53075725", "0.5286356", "0.5286081", "0.5268394", "0.5248294", "0.5241818", "0.5238757", "0.5238062", "0.5226391", "0.52249163", "0.5224441", "0.5216816", "0.5216555", "0.52055883", "0.52048105", "0.5201668", "0.5196354", "0.51957744", "0.51957744", "0.5134175", "0.5130327", "0.5120855", "0.5112758", "0.51116294", "0.5107285", "0.51021963", "0.5101611", "0.5088068", "0.50866455", "0.5083379", "0.5081818", "0.50762886", "0.5074975", "0.50735885", "0.50722057", "0.5037974", "0.5031643", "0.50259334", "0.50258106", "0.5017556", "0.5010087", "0.5010087", "0.5008037", "0.49974027", "0.4996985", "0.4995043", "0.4992268", "0.4990292", "0.49800542", "0.49775583", "0.4972085", "0.4965849", "0.4965849", "0.4965849" ]
0.50771004
77
Do not ends with wildcard, or wildcard is escaped
private function isPrefixSearch(string $value): bool { if ($value[-1] !== '*' || $value[-2] === '\\') { return false; } // Filter has "?" metacharacter if (substr_count($value, '?') > substr_count($value, '\?')) { return false; } // Filter has "*" metacharacter other than last one if (substr_count($value, '*', 0, -1) > substr_count($value, '\*', 0, -1)) { return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function preg_wildcard($pat) {\n return str_replace(array('*', '?', '/'),array('.*', '.', '\\/'), $pat);\n}", "public function globalStringConditionMatchesWildcardExpression() {}", "public function globalStringConditionMatchesWildcardExpression() {}", "public function lastTokenShouldUseWildcard(): bool\n {\n return $this->wildcardLastToken;\n }", "function simulated_wildcard_match($context, $word, $full_cover = false)\n{\n $rexp = str_replace('%', '.*', str_replace('_', '.', str_replace('\\\\?', '.', str_replace('\\\\*', '.*', preg_quote($word)))));\n if ($full_cover) {\n $rexp = '^' . $rexp . '$';\n }\n\n return preg_match('#' . str_replace('#', '\\#', $rexp) . '#i', $context) != 0;\n}", "function wildcardify($s, $wrap = '%') {\n\n\n $result = '';\n $escape = false;\n $len = strlen($s);\n $foundWildcard = false;\n\n for($i = 0; $i < $len; $i++) {\n\n $c = substr($s, $i, 1);\n\n if ($escape) {\n $result .= $c;\n $escape = false;\n continue;\n } else if ($c === '\\\\') {\n $escape = true;\n continue;\n }\n\n if ($c === '%') $c = '\\\\%';\n if ($c === '_') $c = '\\\\_';\n\n $foundWildcard = $foundWildcard || ($c === '*' || $c === '?');\n\n if ($c === '*') $c = '%';\n if ($c === '?') $c = '_';\n\n $result .= $c;\n }\n\n if ($wrap && !$foundWildcard) {\n $result = \"{$wrap}{$result}{$wrap}\";\n }\n\n return $result;\n }", "public function testAddDomainWildcardCatchAll()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "public function wildcardString()\n {\n return $this->wildcardString;\n }", "public function isWildcard(): bool\n {\n return $this->phpType === self::WILDCARD;\n }", "public function anyString() {\n\t\treturn new LikeMatch( '%' );\n\t}", "function filter_pattern($value)\n {\n global $pattern;\n return !strncmp($pattern, $value, strlen($pattern));\n }", "protected static function get_pattern() {\n return '/.*/';\n }", "function glob_to_regex($glob) {\n\n $glob = str_replace('.', '\\.', $glob);\n $glob = str_replace('+', '\\+', $glob);\n $glob = str_replace('*', '.+', $glob);\n $glob = str_replace('?', '.', $glob);\n\n return $glob ? \"^$glob$\" : $glob;\n }", "function check_for_sonderziechen($strLike, $sonderzeichen) {\r\n\tif (\"?\" === $sonderzeichen) {\r\n\t\treturn preg_match(\"/.{0,}[\\?]{1,}.{0,}/\", $strLike);;\r\n\t}elseif (\"*\" === $sonderzeichen){\r\n\t\treturn preg_match(\"/.{0,}[\\*]{1,}.{0,}/\", $strLike);\r\n\t}elseif (\"%\" === $sonderzeichen){\r\n\t\treturn preg_match(\"/.{0,}[\\%]{1,}.{0,}/\", $strLike);\r\n\t}elseif (\"_\" === $sonderzeichen){\r\n\t\treturn preg_match(\"/.{0,}[\\_]{1,}.{0,}/\", $strLike);\r\n\t}else{\r\n\t\treturn preg_match(\"/.{0,}[\\*]{1,}.{0,}|.{0,}[\\?]{1,}.{0,}/\", $strLike);\r\n\t}\r\n}", "protected function canAppendWildcard($queryString)\n {\n $queryString = trim(html_entity_decode($queryString, ENT_QUOTES));\n if (substr($queryString, -1) === self::WILDCARD_CHAR) {\n return false;\n }\n\n // for fuzzy search, do not append wildcard\n if (strpos($queryString, '~') !== false) {\n return false;\n }\n\n // for range searches, do not append wildcard\n if (preg_match('/\\[.*TO.*\\]/', $queryString) || preg_match('/{.*TO.*}/', $queryString)) {\n return false;\n }\n\n // for group searches, do not append wildcard\n if (preg_match('/\\(.*\\)/', $queryString)) {\n return false;\n }\n\n // when using double quotes, do not append wildcard\n if (strpos($queryString, '\"') !== false) {\n return false;\n }\n\n return true;\n }", "function replaceWildcards($args) {\n if ($args === false) {\n return false;\n }\n for ($i = 0; $i < count($args); $i++) {\n if ($args[$i] === $this->wildcard) {\n $args[$i] = new AnythingExpectation();\n }\n }\n return $args;\n }", "public function wildcard()\n {\n return $this->wildcard;\n }", "protected function isWildcard($word)\n {\n return ends_with($word, '*') && starts_with($word, '*');\n }", "protected function getValidPattern(): string\n {\n return '/^(?P<type>[\\w\\|\\[\\]]+)(?P<var> \\$\\w+)?$|\\s/';\n }", "function wp_match_mime_types($wildcard_mime_types, $real_mime_types)\n {\n }", "public function anyChar() {\n\t\treturn new LikeMatch( '_' );\n\t}", "public static function escapeLikePattern($text){\r\n\t\t\t$text = str_replace('\\\\', '', $text);//apparently a backslash is ignored when using the LIKE operator\r\n\t\t\t$text = self::escape($text);\r\n\t\t\tif($text !==false){\r\n\t\t\t\t$text = str_replace('%', '\\%', $text);\r\n\t\t\t\t$text = str_replace('_', '\\_', $text);\r\n\t\t\t\tif(mb_strlen($text)>=3) $text .= '%';\r\n\t\t\t}\r\n\t\t\treturn $text;\r\n\t\t}", "static function glob2regex($pattern, $deliminator = null) {\n\t\t$escaped_pattern = preg_quote($pattern, '/');\n\n\t\t// we don't need to worry about a deliminator\n\t\tif($deliminator === null) return '/^' . $escaped_pattern . '$/';\n\n\t\t// build the regex string\n\t\t$escaped_deliminator = preg_quote($deliminator, '/');\n\t\treturn '/^' . implode(\n\t\t\t$escaped_deliminator,\n\t\t\tarray_map(function($s) use($deliminator, $escaped_deliminator) {\n\n\t\t\t\t// single section wildcard\n\t\t\t\tif($s == '\\*') return '[^'.$deliminator.']+';\n\n\t\t\t\t// multi-section wildcard\n\t\t\t\tif($s == '\\*\\*') return '.*';\n\n\t\t\t\treturn $s;\n\t\t\t},\n\t\t\texplode($escaped_deliminator, $escaped_pattern)\n\t\t)) . '$/';\n\t}", "public function escapeLike($string);", "protected function accept_regex() {\n return true;\n }", "public static function escapeMatchPattern($text){\r\n\t\t$text = str_replace('*', '', trim($text));\r\n\t\tif(mb_strlen($text)>=3){\r\n\t\t\tif(!strstr($text,'\"')){\r\n\t\t\t\tif(!strstr($text,\"'\")){\r\n\t\t\t\t\t//not exact phrase\r\n\t\t\t\t\tif(!strstr($text,' ')){\r\n\t\t\t\t\t\t//one word\r\n\t\t\t\t\t\t$text.='*';//truncation\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn self::escape($text);\r\n\t}", "function escapeSQL($string, $wildcard=false)\n{\n\t$db = &atkGetDb();\n\treturn $db->escapeSQL($string, $wildcard);\n}", "public function fileDenyPatternMatchesPhpExtensionDataProvider() {}", "protected function hasWildcards($subject): bool\n {\n return Str::contains($subject, '*') || Str::contains($subject, '#');\n }", "public static function isWildcard(string $text): bool\n {\n return in_array($text, self::WILDCARDS, true);\n }", "function escapeForRegex($pattern)\n{\n\t$escaped='';\n\t$escapechars = array(\"/\",\"?\",'\"', \"(\", \")\", \"'\",\"*\",\".\",\"[\",\"]\");\n\tfor ($counter = 0; $counter<strlen($pattern);$counter++)\n\t{\n\t\t$curchar = substr($pattern, $counter, 1);\n\t\tif (in_array($curchar,$escapechars))\n\t\t$escaped .= \"\\\\\";\n\t\t$escaped.=$curchar;\n\t}\n\treturn $escaped;\n}", "public function endsWithReturnsFalseForNotMatchingLastPartDataProvider() {}", "protected function fullTextWildcards($term)\n {\n return str_replace(' ', '*', $term) . '*';\n \n }", "abstract public function supportsRegexFilters();", "protected function replaceWildcards($args) {\n if ($args === false) {\n return false;\n }\n for ($i = 0; $i < count($args); $i++) {\n if ($args[$i] === $this->wildcard) {\n $args[$i] = new AnythingExpectation();\n }\n }\n return $args;\n }", "public function getSearchPattern();", "public function getSearchPattern();", "public function formatWildcards(string $value): string\n {\n $from = $to = $substFrom = $substTo = [];\n if ($this->getConfig('wildcardAny') !== '%') {\n $from[] = $this->getConfig('fromWildCardAny');\n $to[] = $this->getConfig('toWildCardAny');\n $substFrom[] = $this->getConfig('wildcardAny');\n $substTo[] = '%';\n }\n if ($this->getConfig('wildcardOne') !== '_') {\n $from[] = $this->getConfig('fromWildCardOne');\n $to[] = $this->getConfig('toWildCardOne');\n $substFrom[] = $this->getConfig('wildcardOne');\n $substTo[] = '_';\n }\n if ($from) {\n // Escape first\n $value = str_replace($from, $to, $value);\n // Replace wildcards\n $value = str_replace($substFrom, $substTo, $value);\n }\n\n return $value;\n }", "public function stripWildcards($word)\n {\n return str_replace($this->wildcard, '%', trim($word, $this->wildcard));\n }", "abstract protected function regexp(): string;", "function globi($pattern, $base = '', $suffix = ''){\n\t//Pattern is case insensitive, \n\t//$base and $suffix are prepended and appended and are case sensitive.\n\t$p = $base;\n\t$p .= preg_replace_callback('@[a-zA-Z]@i',function($matches){\n\t\t$l = $matches[0];//full match\n\t\treturn '['.strtolower($l).strtoupper($l).']';\n\t},$pattern);\n\t$p .= $suffix;\n\treturn glob($p);\n}", "protected function getNonCatchablePatterns()\n {\n return array('\\s+', ',', '(.)');\n }", "public function getAcceptExtensRegex();", "function escapeSQL($string, $wildcard=false)\n\t{\n\t\tif ($this->connect('r') === DB_SUCCESS)\n\t\t{\n\t\t\tif ($wildcard == true)\n\t\t\t{\n\t\t\t\t$string = str_replace('%', '\\%', $string);\n\t\t\t}\n\t\t\treturn mysqli_real_escape_string($this->m_link_id, $string);\n\t\t}\n\n\t\treturn null;\n\t}", "function anythingBut( $value ) {\n\t\t$this->add(\"([^\". $this->sanitize($value) .\"]*)\");\n\t\treturn $this;\n\t}", "public function getWildcard() {\n\t\treturn isset($this->wildcard) ? $this->wildcard : null;\n\t}", "function like($pattern, $subject)\t{\n\t\t$pattern = str_replace('%', '.*', preg_quote($pattern));\n\t\treturn (bool) preg_match(\"/^{$pattern}$/i\", $subject);\n\t}", "public static function wildcardSearchstring( $sSearchString ) {\n\t\t// remove beginning\n\t\t$sSearchString = trim( $sSearchString );\n\t\tif ( empty( $sSearchString ) ) {\n\t\t\treturn $sSearchString;\n\t\t}\n\n\t\tif ( self::containsStringUnescapedCharsOf( $sSearchString, '~' ) ) {\n\t\t\treturn $sSearchString;\n\t\t}\n\t\tif ( self::containsStringUnescapedCharsOf( $sSearchString, '\"' ) ) {\n\t\t\treturn $sSearchString;\n\t\t}\n\t\tif ( self::containsStringUnescapedCharsOf( $sSearchString, '^' ) ) {\n\t\t\treturn $sSearchString;\n\t\t}\n\t\tif ( self::containsStringUnescapedCharsOf( $sSearchString, '*' ) ) {\n\t\t\treturn $sSearchString;\n\t\t}\n\n\t\tif ( strpos( $sSearchString, ' ' ) !== false ) {\n\t\t\t$sSearchString = str_replace( ' ', '*', $sSearchString );\n\t\t}\n\n\t\treturn '*' . $sSearchString . '*';\n\t}", "public function beginsWithReturnsFalseForNotMatchingFirstPartDataProvider() {}", "public static function quote()\n {\n $args = func_get_args();\n $pattern = array_shift($args);\n\n return self::process($pattern, $args, false);\n }", "public function testMatchingSubstringContainingRegexMetachars() {\n\t\techo 'This will match (me). Will it ? And \\[not\\] break on regex metachars';\n\n\t\t$this->expectOutputContains( 'match (me). Will it ? And \\[' );\n\t}", "public function setPattern($pattern) {}", "protected function addWildcards($name)\n {\n return preg_replace('/\\d+(?!\\d+)/', '*', $name);\n }", "private function matchWildcard(&$domainMatchedWildcards, $arg)\n {\n foreach ($domainMatchedWildcards as $key) {\n $pattern = $this->wildcards[$key];\n if ( preg_match(\"/^$pattern$/\", $arg) )\n {\n // find matched wildcard and remove from possible wildcards.\n // array_search(needle, haystack)\n $index = array_search($key, $domainMatchedWildcards);\n unset($domainMatchedWildcards[$index]);\n return $key;\n }\n }\n }", "function match(string $string, string $pattern): bool\n{\n $specialCharacters = ['\\\\', '^', '$', '|', '?', '+', '(', ')', '[', '{'];\n $replacementCharacter = ['\\\\\\\\', '\\^', '\\$', '\\|', '\\?', '\\+', '\\(', '\\)', '\\[','\\{'];\n\n for($i = 0; $i < count($specialCharacters); $i++) {\n $pattern = str_replace($specialCharacters[$i], $replacementCharacter[$i], $pattern);\n }\n\n return preg_match(\"/^\".$pattern .\"$/\", $string);\n}", "public function filter($pat, $replacement=\"\") {\r\n $this->contents = preg_replace($pat, $replacement, $this->contents);\r\n //$this->contents = preg_filter($pat, $replacement, $this->contents);\r\n }", "public static function wildcardString($str, $wildcard, $lowercase = true)\n {\n $wild = $wildcard;\n $chars = (array) preg_split('//u', $str, -1, PREG_SPLIT_NO_EMPTY);\n\n if (count($chars) > 0) {\n foreach ($chars as $char) {\n $wild .= $char.$wildcard;\n }\n }\n\n if ($lowercase) {\n $wild = Str::lower($wild);\n }\n\n return $wild;\n }", "function ciGlob($pat, $base = '', $suffix = '')\n{\n\t$p = $base;\n\tfor($x=0; $x<strlen($pat); $x++)\n\t{\n\t\t$c = substr($pat, $x, 1);\n\t\tif( preg_match(\"/[^A-Za-z]/\", $c) )\n\t\t{\n\t\t\t$p .= $c;\n\t\t\tcontinue;\n\t\t}\n\t\t$a = strtolower($c);\n\t\t$b = strtoupper($c);\n\t\t$p .= \"[{$a}{$b}]\";\n\t}\n\t$p .= $suffix;\n\treturn glob($p);\n}", "protected function _wildcardize($field) {\r\n // TODO: Need to be improve, protection caracter should be found \r\n\t\t$where = array();\r\n\t\tif (strpos($value, '*') !== false) {\r\n\t\t\t$where[\"{$field} LIKE ?\"] = str_replace('*', '%', $value);\r\n\t\t} \r\n\t\telse {\r\n\t\t\t$where[\"{$column} = ?\"] = $value;\r\n\t\t}\r\n \t\r\n\t\treturn $where;\r\n }", "private function regexWhitelist(){\n if(sizeof($this->whitelist) === 0){\n return '/[\\s\\S]*/';\n } else {\n $whitelistRegex = '/';\n\n for ($i = 0; $i < sizeof($this->whitelist); $i++) {\n $whitelistRegex .= (($whitelistRegex !== '/') ? '|' : '') . '^(http|https):\\/\\/' . $this->whitelist[$i] . '(\\/|$)';\n }\n\n return $whitelistRegex . '/';\n }\n }", "function wp_slash_strings_only($value)\n {\n }", "public function testRouteDoesNotMatchResourceWithWildcard()\n {\n $resource = '/hello';\n $route = new \\Slim\\Route('/hello/:path+', function () {});\n $result = $route->matches($resource);\n $this->assertFalse($result);\n $this->assertEquals(array(), $route->getParams());\n }", "protected final function getDoxydocRegex () {\n\t\treturn '/\\\\*\\\\*(?:[^*](?:\\\\*[^/])?)+\\\\*/';\n\t}", "public function allowWildcardSearching()\n {\n $this->wildcardSearching = true;\n\n return $this;\n }", "static public function is_pattern(string $pattern): bool\n\t{\n\t\treturn (strpos($pattern, '<') !== false) || (strpos($pattern, ':') !== false) || (strpos($pattern, '*') !== false);\n\t}", "public function testNonMatchingRegexp()\n {\n $configDefaultField = json_decode(sprintf($this->regexpConfigStub, '/^Bar/', '', 'false'), true);\n $nonMatchingRegexpFilterWithDefaultField = new Regexp($configDefaultField);\n\n $configCustomField = json_decode(sprintf($this->regexpConfigStub, '/phpunit/', 'name', 'false'), true);\n $nonMatchingRegexpFilterWithCustomField = new Regexp($configCustomField);\n\n $this->assertFalse($nonMatchingRegexpFilterWithDefaultField->accept($this->logEvent));\n $this->assertFalse($nonMatchingRegexpFilterWithCustomField->accept($this->logEvent));\n }", "function somethingBut( $value ) {\n\t\t$this->add(\"([^\". $this->sanitize($value) .\"]+)\");\n\t\treturn $this;\n\t}", "function checkRealEscapeString($value);", "protected static function replaceWildcards($regex)\n\t{\n\t\tpreg_match_all(chr(1) . '\\(\\\\*([a-z][a-zA-Z0-9]*)\\)' . chr(1), $regex, $matches, PREG_SET_ORDER);\n\n\t\tforeach ($matches as $match)\n\t\t{\n\t\t\t$name = $match[1];\n\n\t\t\t$regex = str_replace(\"(*{$name})\", \"(?P<{$name}>.*)\", $regex);\n\t\t}\n\n\t\treturn $regex;\n\t}", "public function already_appended($pattern)\n\t{\n\t\treturn (bool)($this->that->preg_match_PLAIN($pattern) OR $this->that->preg_match_HTML($pattern)); \n\t}", "public function testGetDomainWildcardCatchAllInbox()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "public function removeWildcards(string $sPath): string\n {\n return str_replace(self::WILDCARD_SYMBOL, '', $sPath);\n }", "public function __construct($pattern) {\n $pattern = preg_quote($pattern, self::DELIMITER);\n $pattern = preg_replace_callback('/([\\\\\\\\]{1,3})\\*/', function($matches) {\n $length = strlen($matches[1]);\n if ($length === 1) {\n return '.*';\n }\n\n return '\\*';\n }, $pattern);\n\n $this->regexp = self::DELIMITER.'^'.$pattern.'$'.self::DELIMITER;\n }", "public function orLike($column,$data,$wildCardPlacement);", "public function placeholder_escape()\n {\n }", "function is_escape_2($char)\n{\n\tif ($char === \".\" || $char === \"|\" || $char === \"(\" || $char === \")\" || $char === \"*\" || $char === \"+\")\n\t\treturn true;\n\treturn false;\n}", "public function endsWithReturnsTrueForMatchingLastPartDataProvider() {}", "abstract public function escapeStr($str, $like = false);", "abstract protected function getPattern(): string;", "abstract protected function getPattern(): string;", "protected static function _escapeChar($matches) {}", "protected function getCatchablePatterns()\n {\n return array(\n '[a-zA-Z][a-zA-Z0-9_\\.]*[a-zA-Z0-9\\_\\*]*'\n );\n }", "function something() {\n\t\t$this->add(\"(.+)\");\n\t\treturn $this;\n\t}", "function ldap_filterescape($string){\n return preg_replace_callback(\n '/([\\x00-\\x1F\\*\\(\\)\\\\\\\\])/',\n function ($matches) {\n return \"\\\\\" . implode(\"\", unpack(\"H2\", $matches[1]));\n },\n $string\n );\n}", "public function hasWildcard() {\n\t\treturn isset($this->wildcard);\n\t}", "function get_broken_patterns($of_what) {\r\n\r\n global $REGEX_BROKEN;\r\n\r\n $length_of_what = strlen($of_what);\r\n $result = array();\r\n\r\n for ($i = 0; $i < $length_of_what - 1; $i++) {\r\n\r\n $result[] = '/' . substr($of_what, 0, $i + 1) . $REGEX_BROKEN . substr($of_what, $i + 1) . '/';\r\n\r\n }\r\n\r\n return $result;\r\n\r\n}", "public static function PregUnQuote($pattern)\n\t{\n\t\t// Fast check, because most parent pattern like 'DefaultProperties' don't need a replacement\n\t\tif (preg_match('/[^a-z\\s]/i', $pattern)) {\n\t\t\t// Undo the \\\\x replacement, that is a fix for \"Der gro\\xdfe BilderSauger 2.00u\" user agent match\n\t\t\t// @source https://github.com/browscap/browscap-php\n\t\t\t$pattern = preg_replace(\n\t\t\t\t['/(?<!\\\\\\\\)\\\\.\\\\*/', '/(?<!\\\\\\\\)\\\\./', '/(?<!\\\\\\\\)\\\\\\\\x/'],\n\t\t\t\t['\\\\*', '\\\\?', '\\\\x'],\n\t\t\t\t$pattern\n\t\t\t);\n\t\n\t\t\t// Undo preg_quote\n\t\t\t$pattern = str_replace(\n\t\t\t\t[\n\t\t\t\t\t'\\\\\\\\', '\\\\+', '\\\\*', '\\\\?', '\\\\[', '\\\\^', '\\\\]', '\\\\$', '\\\\(', '\\\\)', '\\\\{', '\\\\}', '\\\\=',\n\t\t\t\t\t'\\\\!', '\\\\<', '\\\\>', '\\\\|', '\\\\:', '\\\\-', '\\\\.', '\\\\/',\n\t\t\t\t],\n\t\t\t\t[\n\t\t\t\t\t'\\\\', '+', '*', '?', '[', '^', ']', '$', '(', ')', '{', '}', '=', '!', '<', '>', '|', ':',\n\t\t\t\t\t'-', '.', '/',\n\t\t\t\t],\n\t\t\t\t$pattern\n\t\t\t);\n\t\t}\n\t\n\t\treturn $pattern;\n\t}", "public function globalStringConditionMatchesEmptyRegularExpression() {}", "public function globalStringConditionMatchesEmptyRegularExpression() {}", "function sb_search($value){\r\n return '/\\(' . $value . '\\)/';\r\n}", "public function isLastPartOfStringReturnsFalseForNotMatchingFirstPartDataProvider() {}", "public function testNOTMatchingMultipleSubstrings() {\n\t\techo 'The quick brown fox jumps over the lazy dog';\n\n\t\t$this->expectOutputContains( 'brown dog' ); // Not failing.\n\t\t$this->expectOutputContains( 'lazy dog' );\n\t}", "function hasSpecial($str){\nreturn preg_match('/[\\'\\^\\.\\£\\$\\%\\&\\*\\(\\)\\}\\{\\@\\#\\~\\?\\>\\<\\>\\,\\|\\=\\_\\+\\¬\\-]/', $string);\n}", "public function getDefaultRegExp();", "public function shouldNotBeLike($expected) {}", "public static function paramsRegex()\n {\n return '/\\/{1,}([^\\:\\#\\/\\?]*' . Grav::instance()['config']->get('system.param_sep') . '[^\\:\\#\\/\\?]*)/';\n }", "public function notLike($stringWithWildCardCharacter){\n $this->debugBacktrace();\n $value = $this->_real_escape_string($stringWithWildCardCharacter);\n\n if($this->last_call_where_or_having == \"where\"){\n $this->whereClause .= \" NOT LIKE $value\";\n }\n else{\n $this->havingClause .= \" NOT LIKE $value\";\n }\n return $this;\n }", "public function getWildcardPrefixes() {}", "public function getPattern(): string;", "public function getPattern(): string;", "public static function getPatterns(): array\n {\n return ['/The world \\'([^\\']+)\\' could NOT be loaded because it contains errors and is probably corrupt\\!/'];\n }" ]
[ "0.7027334", "0.6213926", "0.6213602", "0.6180239", "0.6141113", "0.597084", "0.59657454", "0.59299636", "0.5901923", "0.58339405", "0.58012354", "0.5770793", "0.57431763", "0.57200086", "0.56906044", "0.56273824", "0.5586577", "0.55767465", "0.55575657", "0.55412656", "0.55269", "0.5483994", "0.54597235", "0.54574233", "0.54520386", "0.5447418", "0.5446811", "0.5436648", "0.54152125", "0.54114836", "0.5405757", "0.53778654", "0.53660697", "0.53544", "0.53474194", "0.5328711", "0.5328711", "0.5255337", "0.5250025", "0.52422065", "0.52384704", "0.5212265", "0.52100766", "0.5209973", "0.51906043", "0.51829004", "0.5178308", "0.5172706", "0.51716155", "0.5099495", "0.5087299", "0.5083717", "0.5079901", "0.50726897", "0.5067589", "0.50554234", "0.50551564", "0.5044076", "0.5019161", "0.5018696", "0.50061655", "0.49983191", "0.49905252", "0.49815258", "0.49696007", "0.49547157", "0.4915381", "0.49126372", "0.48644117", "0.48539102", "0.48471084", "0.4844663", "0.48385158", "0.48305273", "0.48219952", "0.48208553", "0.48181328", "0.48159245", "0.48152664", "0.48152664", "0.4782112", "0.4776571", "0.47758216", "0.47745258", "0.47727877", "0.4759122", "0.47488317", "0.4746568", "0.4744243", "0.4743928", "0.47393578", "0.47383568", "0.4736429", "0.47344303", "0.47321898", "0.47288454", "0.47265717", "0.47252572", "0.471957", "0.471957", "0.4703328" ]
0.0
-1
mentors cannot choose another mentor
public function index() { if($this->user['menteer_type']==37) redirect('/dashboard','refresh'); if($this->user['match_status']=='active') redirect('/dashboard','refresh'); $matches = $this->session->userdata('matches'); // make sure we have matches if(is_array($matches) && count($matches) > 0){ // lets add some data to the matches foreach($matches as $key=>$val) { // get user info $mentors[$key]['match_score'] = $val; $mentors[$key]['user'] = $this->Application_model->get(array('table'=>'users','id'=>$key)); $mentors[$key]['answers'] = $this->_extract_data($this->Matcher_model->get(array('table'=>'users_answers','user_id'=>$key))); } //printer($mentors); }else{ $this->session->set_userdata('skip_matches',true); redirect('/dashboard','refresh'); } $this->data['page'] = 'chooser'; $this->data['user'] = $this->user; $this->data['mentors'] = $mentors; $this->load->view('/chooser/header',$this->data); $this->load->view('/chooser/index',$this->data); $this->load->view('/chooser/footer',$this->data); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function select($mentor_id=0) {\n\n $mentor_id = $this->input->get('id');\n\n // mentors cannot choose another mentor\n if($this->user['menteer_type']==37)\n redirect('/dashboard','refresh');\n\n // if already have a selection can't go back\n if($this->user['is_matched'] > 0) {\n $this->session->set_flashdata('message', '<div class=\"alert alert-danger\">You have made your selection already.</div>');\n\n redirect('/dashboard','refresh');\n }\n\n // make sure mentor is not selected, if so return back to chooser\n\n $mentor_id = decrypt_url($mentor_id);\n\n $mentor = $this->Application_model->get(array('table'=>'users','id'=>$mentor_id));\n\n if($mentor['is_matched']==0){\n\n // update mentee\n $update_user = array(\n 'id' => $this->session->userdata('user_id'),\n 'data' => array('is_matched' => $mentor_id,'match_status' => 'pending','match_status_stamp' => date('Y-m-d H:i:s')),\n 'table' => 'users'\n );\n $this->Application_model->update($update_user);\n\n // update mentor\n $update_user = array(\n 'id' => $mentor_id,\n 'data' => array('is_matched' => $this->session->userdata('user_id'),'match_status' => 'pending','match_status_stamp' => date('Y-m-d H:i:s')),\n 'table' => 'users'\n );\n $this->Application_model->update($update_user);\n\n // send email to mentor to approve or decline request\n\n $data = array();\n $data['first_name'] = $this->user['first_name'];\n $data['last_name'] = $this->user['last_name'];\n\n $message = $this->load->view('/chooser/email/match_request', $data, true);\n $this->email->clear();\n $this->email->from($this->config->item('admin_email', 'ion_auth'), $this->config->item('site_title', 'ion_auth'));\n $this->email->to($mentor['email']);\n $this->email->subject('Request to Mentor');\n $this->email->message($message);\n\n $result = $this->email->send(); // @todo handle false send result\n\n $this->session->set_flashdata('message', '<div class=\"alert alert-info\">The Mentor you selected has been notified. You will be sent an email once they accept.</div>');\n redirect('/dashboard');\n\n\n }else{\n\n $this->session->set_flashdata('message', '<div class=\"alert alert-danger\">Sorry, the Mentor you selected was just matched. Please select again.</div>');\n redirect('/chooser');\n\n }\n\n }", "function mentors(){\n $uid = $this->session->userdata('user_id');\n // Login verification and user stats update\n if ($this->socialkit->SK_isLogged()) {\n $data['title'] = 'List of Mentors';\n $data['mentorSuggestions'] = $this->model_user->getUserMentorshipSuggestions($uid);\n $this->load->view('user/mentors', $data);\n } else {\n redirect(base_url('login').'?url='.base64_encode(uri_string()));\n }\n }", "public static function checkIfMentor($user){\n\t\tif ($user->is_mentor == 1){\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "Public Function getMentorName()\n\t{\n\t\t$Mentor = $this->_db->fetchRow('SELECT * FROM ' . $this->_mentor_to_user_table_name . ' WHERE user__id = ' . $this->id);\n\t\tif(!sizeOf($Mentor) || !$Mentor)\n\t\t\treturn false;\n\t\t$Mentor = new Mentor($Mentor->mentor__id);\n\t\treturn $Mentor->name;\n\t}", "Public Function getMyMentor()\n\t{\n\t\t$Mentor = $this->_db->fetchRow('SELECT * FROM ' . $this->_mentor_to_user_table_name . ' WHERE user__id = ' . $this->id);\n\t\tif(!sizeOf($Mentor) || !$Mentor)\n\t\t\treturn false;\n\t\t$Mentor = new Mentor($Mentor->mentor__id);\n\t\treturn $Mentor;\n\t}", "private function setMentorshipSessionMentorStatusToNotAvailable($mentorProfileId) {\n $mentorManager = new MentorManager();\n // INFO: mentor status id 1 means available\n $mentorManager->editMentor(array('status_id' => 2), $mentorProfileId);\n }", "public function isModerator()\n {\n }", "public function isModerador(){ return false; }", "public function mentions(){\n\t\t$title = \"mentioning user: @\";\n\t\t$where = \"select m.post_id from mentions m, users u2 where m.user_id = u2.user_id and u2.user_name\";\n\n\t\t#call generic routine for showing a specific list of posts:\n\t\t$this->view_specific($where, $title);\n\t}", "public function MentionLegal()\n {\n return $this->render('main/mentions_legales.html.twig', [\n 'title'=>'Mentions légales',\n ]);\n }", "public function AddMentoratUser($id){\n if($user = User::where(['id' => $id,'mentorat' => User::not_mentorat,'type' => User::user])->first()){\n $this->mail->ID840231($user->id,Session::get('userData'));\n toastr()->success('This user has been emailed to approve mentor');\n\n $user->mentorat = User::in_standby_mentorat;\n $user->save();\n }else{\n toastr()->error('Something is wrong!');\n }\n return Redirect::back();\n }", "function isTeamleiter() {\n \n $team = $this -> getTeamObject();\n if(!$team){\n return false;\n }\n \n \n $test_uid = $team -> getLeiter();\n if($test_uid == $this -> getUid()){\n return true;\n }\n else {\n return false; \n }\n }", "function giveDamage($target) :int {\n //si on ne ce tape pas nous meme\n if ($target->getId() !== $this->getId()) {\n return $target->receiveDamage($this->getAttack());\n } else {\n // TODO: return something?????\n }\n }", "private function createCreatureLowerTorso()\n {\n\n }", "public function whenMentioned(): bool\n {\n return false;\n }", "protected function restrict_to_author() {\n if ($this->post->author_id != $this->current_user->id) {\n forbidden();\n }\n }", "private function addRestrictionToMedInfo(){\n if (LoginHelper::isACurrentPatient() || !LoginHelper::isLoggedIn()){\n Router::redirect('home', '<p class=\"alert alert-danger\">Unauthorized........!!</p>');\n }\n }", "public function testSucceededDifferentUserLoggedInButModerator(): void\n {\n self::$httpAuthorizationToken = AccessTokenFixture::DATA['access-token-leslie']['id'];\n\n $this->checkSucceeded();\n }", "private function notAdmin() : void\n {\n if( intval($this->law) === self::CREATOR_LAW_LEVEL)\n {\n (new Session())->set('user','error','Impossible d\\'effectuer cette action');\n header('Location:' . self::REDIRECT_HOME);\n die();\n }\n }", "function pzdc_answer_merchants() {\n global $PraizedCommunity;\n return $PraizedCommunity->tpt_answer_merchants();\n}", "private function setMentorshipSessionMentorAndMenteeStatusesToNotAvailable($mentorProfileId, $menteeProfileId) {\n $mentorManager = new MentorManager();\n $menteeManager = new MenteeManager();\n DB::transaction(function() use($mentorManager, $mentorProfileId, $menteeManager, $menteeProfileId) {\n // INFO: mentor status id 2 means NOT available for mentorship\n $mentorManager->editMentor(array('status_id' => 2), $mentorProfileId);\n // INFO: mentee status id 2 means matched\n $menteeManager->editMentee(array('status_id' => 2), $menteeProfileId);\n });\n }", "private function setMentorshipSessionMentorAndMenteeStatusesToNotAvailable($mentorProfileId, $menteeProfileId) {\n $mentorManager = new MentorManager();\n $menteeManager = new MenteeManager();\n DB::transaction(function() use($mentorManager, $mentorProfileId, $menteeManager, $menteeProfileId) {\n // INFO: mentor status id 2 means NOT available for mentorship\n $mentorManager->editMentor(array('status_id' => 2), $mentorProfileId);\n // INFO: mentee status id 2 means matched\n $menteeManager->editMentee(array('status_id' => 2), $menteeProfileId);\n });\n }", "public function canAddUnknownPerson();", "public function declineMentorshipSession($mentorshipSessionId, $role, $id, $email) {\n $statusToSet = -1;\n $invitedPerson = null;\n $mentorshipSession = $this->getMentorshipSession($mentorshipSessionId);\n if($role === 'mentee') {\n $invitedPerson = $mentorshipSession->mentee;\n // set to cancelled by mentee if mentor has accepted or not responded yet\n if(in_array($mentorshipSession->status_id, [2, 4]) !== false)\n $statusToSet = 12;\n } else if($role === 'mentor') {\n $invitedPerson = $mentorshipSession->mentor;\n // set to cancelled by mentor if mentee has accepted or not responded yet\n if(in_array($mentorshipSession->status_id, [2, 3]) !== false)\n $statusToSet = 13;\n }\n if($statusToSet !== -1 && $invitedPerson->id == $id && $invitedPerson->email === $email) {\n $this->editMentorshipSession([\n 'status_id' => $statusToSet, 'mentorship_session_id' => $mentorshipSessionId\n ]);\n // if session is cancelled by mentee make available only the mentor and set the mentee's status to rejected,\n // else if session is cancelled by mentor make the mentor unavailable\n // else make both available\n if($statusToSet === 12) {\n $this->setMentorshipSessionMentorStatusToAvailable($mentorshipSession->mentor->id);\n $this->setMentorshipSessionMenteeStatusToRejected($mentorshipSession->mentee->id);\n } else if($statusToSet === 13) {\n $this->setMentorshipSessionMentorStatusToNotAvailable($mentorshipSession->mentor->id);\n $this->setMentorshipSessionMenteeStatusToAvailable($mentorshipSession->mentee->id);\n } else { // TODO: this was created when the account manager could decline to manage a match (maybe we do not need it anymore)\n $this->setMentorshipSessionMentorAndMenteeStatusesToAvailable(\n $mentorshipSession->mentor->id, $mentorshipSession->mentee->id\n );\n }\n return true;\n } else {\n return false;\n }\n }", "function can_message_each_other($user_id1, $user_id2) {\n\n\tif (user_is_at_least_role(ROLE_ADMIN, $user_id1) || user_is_at_least_role(ROLE_ADMIN, $user_id2)) {\n\t\t// Everyone can talk to an admin\n\t\treturn true;\n\t} else if (get_relationship($user_id1, $user_id2) == LIKE && get_relationship($user_id2, $user_id1) == LIKE) {\n\t\t// If they like each other mutually\n\t\treturn true;\n\t}\n\n\treturn false;\n}", "function getActiveMentorForMatchingDatagrid($mentor = null) {\n\t\treturn $this->mentorDatagrid->getActiveMentorForMatchingDatagrid($mentor);\n\t}", "public function getPotentialOpponents() {\n\t\t\n\t\t$userID = $this->id;\n\t\t$level = $this->level;\n\t\t$agencySize = $this->agency_size;\n\t\t$minHealth = 25;\n\t\t\t\t\n\t\t// get up to 10 people to list on the attack list\n\t\t$attackListSize = 15;\n\t\t\n\t\t$maxAgencySize = $agencySize + 5;\n\t\t$minAgencySize = max(array(1, $agencySize - 5));\n\t\t\n\t\t// temporary solution for level range\n\t\t$minLevel = $level - 5 .'<br />';\n\t\t$maxLevel = $level + 5 .'<br />';\n\t\t\n/*\t\t$query = \"SELECT * FROM users,agencies WHERE (users.level <= ? AND users.level >= ? OR users.agency_size <= ? AND users.agency_size >= ?) AND (users.health > $minHealth AND users.level>3) AND (users.id != agencies.user_one_id AND users.id != agencies.user_two_id AND agencies.accepted =1) AND users.id != ? GROUP BY users.id ORDER BY RAND() LIMIT $attackListSize\";*/\n\n\t\t/*$query = \"SELECT * FROM users,agencies WHERE (users.level <= ? AND users.level >= ? OR users.agency_size <= ? AND users.agency_size >= ?) AND (users.health > $minHealth AND users.level>3) AND (users.id NOT IN (SELECT agencies.user_one_id FROM agencies WHERE agencies.user_two_id = $userID AND agencies.accepted =1)) AND (users.id NOT IN (SELECT agencies.user_two_id FROM agencies WHERE agencies.user_one_id = $userID AND agencies.accepted =1)) AND users.id != $userID GROUP BY users.id ORDER BY users.id LIMIT $attackListSize\";*/\n\t\t\n\t\t\n\t\t $query = \"SELECT * FROM users WHERE (users.level <= ? AND users.level >= ?) AND users.id != $userID GROUP BY users.id ORDER BY users.id LIMIT $attackListSize\";\n\t\t\n\t\t$objAllPotOpps = ConnectionFactory::SelectRowsAsClasses($query, array($maxLevel, $minLevel), __CLASS__);\n\t\t\t\t\n\t\tif (!$objAllPotOpps || count($objAllPotOpps) < $attackListSize) {\n\t\t\t// TODO: execute further queries with higher level or agency size ranges if too few users\n\t\t\t//the next lines is temp solution if there is 1<x<attacklistsize opponents\n\t\t\tif ($objAllPotOpps) return $objAllPotOpps;\n\t\t\telse return array();\n\t\t}\n\n\t\t// get random indices\n\t\t$randomIntegers = getRandomIntegers($attackListSize, count($objAllPotOpps));\n\t\t\n\t\t$opponents = array();\n\t\tforeach ($randomIntegers as $key=>$value) {\n\t\t\tarray_push($opponents, $objAllPotOpps[$key]);\n\t\t}\n\t\treturn $opponents;\n\t}", "public function cantHearYou() {\n return $this->randomItem(\n \"Sorry, I didn't quite catch that.\",\n 'Can you repeat that?',\n 'One more time, please?',\n 'You want what now?'\n );\n }", "public function stop() {\n if($this->combatantA->hp > 0) {\n $this->winnerType = \"player\";\n $this->winnerID = $this->combatantAID;\n } elseif ($this->combatantB->hp > 0) {\n $this->winnerType = ($this->type == \"pvp\" ? \"player\" : \"monster\");\n $this->winnerID = $this->combatantBID;\n } else {\n $this->winnerType = \"draw\";\n }\n\n // Bounty + XP\n if($this->type == \"monster\" && $this->combatantB->hp <= 0) {\n $loot = $this->combatantB->dropItems($this->combatantA->getDropItemPerc());\n $this->combatantA->gainItems($loot);\n \n $contact = $this->combatantB->dropContact($this->combatantA->getDropContactPerc());\n $this->combatantA->gainContact($contact, \"battle\");\n\n /**\n * monster->xp can be defined to deviate from the standard\n * attack / 2 xp reward\n */\n if(isset($this->combatantB->xp)) {\n $this->combatantA->gainXp($this->combatantB->xp, \"battle\");\n } else {\n $this->combatantA->gainXp($this->combatantB->attack / 4, \"battle\");\n }\n }\n\n $this->combatantA->ongoingBattleID = null;\n if($this->type == \"pvp\") {\n // @todo Message to PVP enemy\n $this->combatantB->ongoingBattleID = null;\n }\n\n $this->state = \"resolved\";\n $this->objectState = \"\";\n\n /**\n * ToDo: why does backupbehavior think that no attribute changed\n * if we set ongoingBattleID to null?\n */\n // $this->combatantA->save();\n $this->combatantA->update();\n if($this->type == \"pvp\") {\n $this->combatantB->save();\n }\n\n $this->update();\n $this->reconstructCombatants();\n \n // Notify the world about this result\n $event = new BattleEvent($this);\n $this->combatantA->onFinishedBattle($event);\n if($this->type == \"pvp\") {\n $this->combatantB->onFinishedBattle($event);\n }\n }", "public function isGod()\n\t{\n\t\t$tbl = new Model_Table_Roles();\n\t\t$select = $tbl->select()->where('name=?','god');\n\t\tif(!$tblRows = $this->findManyToManyRowset($tbl,'Model_Table_UserRole',null,null,$select))\n\t\t{\n\t\t\tthrow new Zend_Exception('Fout bij het bepalen van uw goddelijkheid');\n\t\t}\n\t\tif($tblRows->count() > 0)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t}", "private function isNotModerator()\n {\n if (Auth::user() == null || Auth::user()->users_status != \"moderator\") {\n return true;\n }\n }", "function execute($modifier = null)\n {\n $owner = $this->getOwner();\n $target = $this->getTarget();\n\n $originalDamageToDeal = $owner->getStrength() - $target->getDefence();\n\n if($originalDamageToDeal < 0 ) {\n $originalDamageToDeal = 0;\n }\n\n $damageToDeal = $originalDamageToDeal;\n\n $defenseSkills = $target->getDefenceSkills();\n\n foreach ($defenseSkills as $defenseSkill) {\n if(get_class($defenseSkill) != get_class($this)) {\n $defenseSkill->setOwner($target);\n $defenseSkill->setTarget($owner);\n $damageToDeal = $defenseSkill->execute($damageToDeal);\n }\n }\n\n if($target->isLucky()) {\n UI::actionMessage(\" {$this->getTarget()->getName()} got lucky. {$this->getOwner()->getName()} missed \");\n $damageToDeal = 0;\n } else {\n UI::actionMessage(\" {$this->getOwner()->getName()} hit {$this->getTarget()->getName()} for {$damageToDeal} damage\");\n }\n\n $targetOriginalHealth = $target->getHealth();\n $targetNewHealth = $targetOriginalHealth - $damageToDeal;\n\n\n\n $target->setHealth($targetNewHealth);\n\n }", "public function isDosenPembimbing()\n {\n return $this->hasRole(HakAkses::DOSEN_PEMBIMBING);\n }", "public function test_user_cannot_vote_on_their_own_messages() {\n\n $this->expectException(VotingException::class);\n $this->message->upvote($this->user);\n\n }", "public function getLoser() {\n if($this->winnerType == \"draw\") {\n return \"draw\";\n } elseif($this->winnerID == $this->combatantAID && $this->winnerType == \"player\") {\n return $this->combatantB;\n } else {\n return $this->combatantA;\n }\n }", "public function run()\n {\n \t// Person against person\n \t// Person against self\n \t// Person against nature\n \t// Person against society\n \t// Person against the supernatural\n \t// Person against technology\n\n \t/*\n \t\tIn order to stop a :villainTraitList: :villainOccupation:,\n\t\t\t:mainCharacterName:, a :mainCharacterAge: year-old \n\t\t\t:mainCharacterOccupation: enlists the help of \n\t\t\t:mainCharacterPossessive: :numberOfSupportingCharacters:\n\t\t\tfriends to :resolutionAction: :resolutionNameWithArticle:.\n \t */\n\n $conflicts = [\n \t''\n ];\n }", "function findMentorForMenteeWithStudentId($id) {\r\n\t\treturn $this->mentorMapper->findMentorForMenteeWithStudentId($id);\r\n\t}", "public function testAccessWithModerator(): void {\n $this->logInModerator();\n $this->getClient()->request(\"GET\", \"/sadmin/contact\");\n\n $this->assertEquals(403, $this->getClient()->getResponse()->getStatusCode(), \"The status code expected is not ok.\");\n }", "private function isGod() : bool\n {\n return $this->user->id === 1;\n }", "public function verification_by_member($deal_id,$mem_id,&$response_msg){\n\t\t$db = new db();\n\t\t\n\t\t$q = \"select added_by_mem_id from \".TP.\"transaction where id='\".mysql_real_escape_string($deal_id).\"'\";\n\t\t$ok = $db->select_query($q);\n\t\tif(!$ok){\n\t\t\treturn false;\n\t\t}\n\t\t$row = $db->get_row();\n\t\tif($row['added_by_mem_id'] == $mem_id){\n\t\t\t$response_msg = \"As the submitter of this deal, you cannot verify it\";\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\t$q = \"select count(*) as cnt from \".TP.\"transaction_verifiers where deal_id='\".mysql_real_escape_string($deal_id).\"' and mem_id='\".mysql_real_escape_string($mem_id).\"'\";\n\t\t$ok = $db->select_query($q);\n\t\tif(!$ok){\n\t\t\treturn false;\n\t\t}\n\t\t$row = $db->get_row();\n\t\tif($row['cnt'] > 0){\n\t\t\t/*******\n\t\t\tthis member has already verified the deal as ok\n\t\t\t*********/\n\t\t\t$response_msg = \"You have already confirmed the detail\";\n\t\t\treturn true;\n\t\t}\n\t\t$q = \"insert into \".TP.\"transaction_verifiers set deal_id='\".mysql_real_escape_string($deal_id).\"', mem_id='\".mysql_real_escape_string($mem_id).\"', date_verified='\".date('Y-m-d H:i:s').\"'\";\n\t\t$ok = $db->mod_query($q);\n\t\tif(!$ok){\n\t\t\treturn false;\n\t\t}\n\t\t$response_msg = \"Thank you for confirming the deal detail\";\n\t\treturn true;\n\t}", "public function deny_permissions($resource, $resource_owner)\n\t{\n\t\t/**\n\t\t * Rights by field active\n\t\t * \n\t\t * @see the table\n\t\t */\n\t\tif ($resource->active == TRUE)\n\t\t{\n\t\t\t//join is waiting for consideration so sent again is not allowed\n\t\t\t$this->deny($resource_owner->username, 'send_join');\n\t\t}\n\t\telse\n\t\t{\n\t\t\t//join was considered now manager can do modifications\n\t\t\t$this->deny($resource_owner->username, 'join');\n\t\t}\n\t\t\n\t\t/**\n\t\t * if resource owner has a team deny join or cancel join\n\t\t */\n\t\tif ($resource_owner->team->loaded())\n\t\t{\n\t\t\t$this->deny($resource_owner->username, 'join');\n\t\t\t\n\t\t\t/**\n\t\t\t * If resource owner has difference team than resource so deny consideration:\n\t\t\t * it means manager is member of difference team than request was sent\n\t\t\t */\n\t\t\tif ($resource_owner->team->id !== $resource->team_id)\n\t\t\t{\n\t\t\t\t$this->deny($resource_owner->username, 'consideration');\n\t\t\t}\n\t\t}\n\t\t\n\t\t/**\n\t\t * If join is considered it can be deleted only by moderator\n\t\t */\n\t\tif ($this->is_allowed($resource_owner->username, 'consideration') AND $resource->active == FALSE)\n\t\t{\n\t\t\t$this->deny($resource_owner->username, 'consideration');\n\t\t\t$this->allow($resource_owner->username, 'delete_join');\n\t\t}\n\t\t/**\n\t\t * If no resource deny consideration but can join\n\t\t */\n\t\tif ( ! $resource->loaded())\n\t\t{\n\t\t\t$this->deny('player', array('consideration', 'join'));\n\t\t\t$this->allow('player', array('send_join'));\n\t\t}\n\t\treturn $this;\n\t}", "public function isWoman()\n {\n return !$this->isMan();\n }", "private function allowed_to_view_matches(){\n if(!rcp_user_can_access($this->user_id, $this->security_form_id) || !rcp_user_can_access($this->user_id, $this->defendant_id)){\n $this->error_message = esc_html__('You do not have access to this report.', 'pprsus');\n return false;\n }\n //are the variables even set\n if($this->security_form_id == '' || $this->defendant_id == '' || $this->token == ''){\n $this->error_message = esc_html__('There was a problem retrieving the prison list. Please return to the dashboard and try again.', 'pprsus');\n return false;\n }\n\n //is this a security form post type\n if(get_post_type($this->security_form_id) != 'security'){\n $this->error_message = esc_html__('There was a problem retrieving the prison list. Please return to the dashboard and try again.', 'pprsus');\n return false;\n }\n\n //does the security form or defendant belong to the current user\n $security_form_author = get_post_field('post_author', $this->security_form_id);\n if($security_form_author != $this->user_id){\n $this->error_message = esc_html__('This security report belongs to another user.', 'pprsus');\n return false;\n }\n\n $defendant_author = get_post_field('post_author', $this->defendant_id);\n if($defendant_author != $this->user_id){\n $this->error_message = esc_html__('This defendant belongs to another user.', 'pprsus');\n return false;\n }\n\n //is the token valid\n $token_from_post = get_post_meta((int)$this->security_form_id, 'secret_token', true);\n if($token_from_post != $this->token){\n $this->error_message = esc_html__('There was a problem retrieving the prison list. Please return to the dashboard and try again.', 'pprsus');\n return false;\n }\n\n return true;\n }", "function canSend($id, $type, $told) {\n\t\tglobal $ownerCd;\n\t\tif ($type == 1) {\n\t\t\t$userId = $id ;\n\t\t\t$femaleId = $toId;\n\t\t} \n\t\telseif ($type == 2) {\n\t\t\t$userId = $toId;\n\t\t\t$femaleId = $id;\n\t\t}\n\t\t\n\t\t$db->select('point');\n\t\t$db->from('male_point');\n\t\t$db->join(\n\t\t\t'male_profile',\n\t\t\t'male_point.user_id = male_profile.user_id AND male_profile.user_id = ' . $userId .' AND male_profile.owner_cd = '.$ownerCd,\n\t\t\t'inner'\n\t\t);\n\t\t$result = $db->get();\n\t\tif ( $row = array_pop($result)) {\n\t\t\t$point = $row->point;\n\t\t} \n\t\telse {\n\t\t\tprint 'No point data.';\n\t\t\texit;\n\t\t}\n\t\t\t\n\t\t$db->select('stat');\n\t\t$db->from('onair');\n\t\t$db->where('user_id', $femaleId);\n\t\t$result = $db->get();\n\t\tif ($row = array_pop($result)) {\n\t\t\t$stat = $row->stat;\n\t\t} \n\t\telse {\n\t\t\tprint 'No stat data.';\n\t\t\texit;\n\t\t}\n\t\t\n\t\tif ($point >= 0.5 && $stat == 1) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "private function addCreatorInMembersIfNotSelected()\n {\n $isSelected = false;\n foreach ($this->members as $member){\n if($member->getId() == $this->creator->getId()) {\n $isSelected = true;break;\n }\n }\n if(!$isSelected){\n $this->addMember($this->creator);\n }\n }", "public function endorse_user(User $user_to_endorse, PendingEndorsementToken $token) {\r\n\t\tif ($this->user_id && $user->user_id) {\r\n\t\t\tif ($token->is_valid()) {\r\n\t\t\t\t$sql = \"UPDATE `users` SET reputation = \";\r\n\t\t\t\t$sql .= ($token->reputation_change >=0) ? ' reputation + ' . $token->reputation_change : ' reputation - ' . abs($token->reputation_change);\r\n\t\t\t\t$sql .= \" WHERE user_id = '{$token->user_to_endorse->user_id}' LIMIT 1\";\r\n\t\t\t\t$result = $this->dbc->query($sql)\r\n\t\t\t\tor die ($this->dbc->error);\r\n\r\n\t\t\t\t//Destroy the token\r\n\t\t\t\t$token->destroy_self();\r\n\r\n\t\t\t\tif ($token->reputation_change >= 0) {\r\n\t\t\t\t\t$sql = \"INSERT INTO `user_feedback` (user_id, status) VALUES ('{$token->user_to_endorse->user_id}', 1)\";\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\t$sql = \"INSERT INTO `user_feedback` (user_id, status) VALUES ('$token->user_to_endorse->user_id}', 0)\";\r\n\t\t\t\t}\r\n\t\t\t\t$result = $this->dbc->query($sql)\r\n\t\t\t\tor die ($this->dbc->error);\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tthrow new OutOfBoundsException('OutOfBoundsException occured on request, the token id is expired');\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthrow new UnexpectedValueException('UnexpectedValueException occured on method call ' . __METHOD__ . ' because the token_id is invalid');\r\n\t\t}\r\n\t}", "private function teenagerYesorNo()\n {\n if ($this->age < 20 && $this->age >= 10) {\n $this->setTeenager(\"is a teenager\");\n \n } else if ($this->age >= 20 || $this->age < 10) {\n $this->setTeenager(\"is not a teenager\");\n }\n return $this->firstname . \" \" . $this->lastname . \" \" . $this->teenager;\n }", "public function randomQuestionWithUserInStormMode(): void\n {\n QuestionUserHelper::removeAllQuestionsForUser($this->user);\n QuestionHelper::newQuestion();\n\n $questionsList = User::randomQuestions('storm', [], Question_user::DEFAULT_BAG_LIMIT ,$this->user);\n\n $this->assertFalse($this->user->questions()->get()->contains($questionsList));\n }", "private function setMentorshipSessionMentorStatusToAvailable($mentorProfileId) {\n $mentorManager = new MentorManager();\n // INFO: mentor status id 1 means available\n $mentorManager->editMentor(array('status_id' => 1), $mentorProfileId);\n }", "public function delete($mentor_id)\n\t{\n\t\t$mentor_id = (int)trim($mentor_id);\n\t\tif($mentor_id <> '' && is_int($mentor_id))\n\t\t{\n\t\t\t$mentor = $this->Mentor_model->get_mentor($mentor_id);\n\t\t\tif($mentor)\n\t\t\t{\n\t\t\t\tif($this->Mentor_model->delete_mentor($mentor_id))\n\t\t\t\t{\n\t\t\t\t\t$this->session->set_flashdata('msg', '<div class=\"alert alert-success\"><a href=\"#\" class=\"close\" data-dismiss=\"alert\">&times;</a><strong>Success!</strong> Mentor deleted succesfully.</div>');\n\t\t\t\t}else{\n\t\t\t\t\t$this->session->set_flashdata('msg', '<div class=\"alert alert-danger\"><a href=\"#\" class=\"close\" data-dismiss=\"alert\">&times;</a><strong>Warning!</strong> Mentor not deleted successfully.</div>');\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\t$this->session->set_flashdata('msg', '<div class=\"alert alert-danger\"><a href=\"#\" class=\"close\" data-dismiss=\"alert\">&times;</a><strong>Error!</strong> Mentor information is not available.</div>');\t\t\t\t\n\t\t\t}\n\t\t}else{\n\t\t\t$this->session->set_flashdata('msg', '<div class=\"alert alert-danger\"><a href=\"#\" class=\"close\" data-dismiss=\"alert\">&times;</a><strong>Warning!</strong> Invalid mentor.</div>');\n\t\t}\n\t\tredirect($_SERVER['HTTP_REFERER']);\n\t}", "function token_ensure_owner( $p_token_id, $p_owner_id ) {\r\n\t\t$c_token_id = db_prepare_int( $p_token_id );\r\n\t\t$t_tokens_table\t= config_get( 'mantis_tokens_table' );\r\n\r\n\t\t$query = \"SELECT owner\r\n\t\t\t\t \tFROM $t_tokens_table\r\n\t\t\t\t \tWHERE id='$c_token_id'\";\r\n\t\t$result = db_query( $query );\r\n\r\n\t\tif( db_result( $result ) != $p_owner_id ) {\r\n\t\t\ttrigger_error( ERROR_GENERIC, ERROR );\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}", "function cmb_id_not_meet($field) { global $post; return $post->ID != 631; }", "public function remove_sponsor_of_ambassador($id){\n if(Auth::user()->hasRole('sponsor')){\n $user = User::find($id);\n if($user){\n if(Auth::user()->ambassadors->count() && Auth::user()->ambassadors->where('ambassador_user_id',$user->id)->count()){\n $sponsor_ambassador = SponsorAmbassador::updateOrCreate([\n 'sponsor_user_id' => Auth::id(),'ambassador_user_id'=> $user->id,\n ], [\n 'status' => 0,\n ]);\n\n if($sponsor_ambassador->sponsor_user && $sponsor_ambassador->sponsor_user->email && $sponsor_ambassador->ambassador_user && $sponsor_ambassador->ambassador_user->email){\n $become_ambassador_status = 'deactivate';\n $sponsor_user_name = ($sponsor_ambassador->sponsor_user && $sponsor_ambassador->sponsor_user->first_name ? $sponsor_ambassador->sponsor_user->first_name : \"\").' '.($sponsor_ambassador->sponsor_user && $sponsor_ambassador->sponsor_user->last_name ? $sponsor_ambassador->sponsor_user->last_name : \"\");\n $ambassador_user_name = ($sponsor_ambassador->ambassador_user && $sponsor_ambassador->ambassador_user->first_name ? $sponsor_ambassador->ambassador_user->first_name : \"\").' '.($sponsor_ambassador->ambassador_user && $sponsor_ambassador->ambassador_user->last_name ? $sponsor_ambassador->ambassador_user->last_name : \"\");\n\n //Send email to sponsor\n $sponsor_email = $sponsor_ambassador->sponsor_user->email;\n Mail::send('mail.ambassador-sponsorship',compact('become_ambassador_status','sponsor_user_name','ambassador_user_name'), function ($message) use ($sponsor_email, $ambassador_user_name) {\n $message->to($sponsor_email)->subject('Sponsor er fjernet for '.$ambassador_user_name);\n $message->from(env('MAIL_FROM_ADDRESS'), env('MAIL_FROM_NAME'));\n });\n\n //Send email to ambassador\n $ambassador_email = $sponsor_ambassador->ambassador_user->email;\n Mail::send('mail.ambassador-sponsorship',compact('become_ambassador_status','sponsor_user_name','ambassador_user_name'), function ($message) use ($ambassador_email, $ambassador_user_name) {\n $message->to($ambassador_email)->subject('Sponsor er fjernet for '.$ambassador_user_name);\n $message->from(env('MAIL_FROM_ADDRESS'), env('MAIL_FROM_NAME'));\n });\n\n //Send email to all admin user\n $admin_users = (new User())->admin_users();\n if($admin_users->count()) {\n foreach ($admin_users as $admin_user) {\n $admin_email = $admin_user->email;\n Mail::send('mail.ambassador-sponsorship',compact('become_ambassador_status','sponsor_user_name','ambassador_user_name'), function ($message) use ($admin_email, $ambassador_user_name) {\n $message->to($admin_email)->subject('Sponsor er fjernet for '.$ambassador_user_name);\n $message->from(env('MAIL_FROM_ADDRESS'), env('MAIL_FROM_NAME'));\n });\n }\n }\n }\n\n\n flash(__('flash-messages.Successfully! You have been remove sponsorship of this ambassador.'))->success();\n return redirect(localized_route('our-ambassadors'));\n\n }else{\n flash(__('flash-messages.Your are not sponsor of this ambassador.'))->error();\n return redirect(localized_route('our-ambassadors'));\n }\n }else{\n abort(404);\n }\n\n }else{\n flash(__('flash-messages.Your are not authorized to become sponsor.'))->error();\n return redirect(localized_route('our-ambassadors'));\n }\n }", "public function accept()\n {\n\n if($this->user['menteer_type']==37 && $this->user['is_matched'] > 0 && $this->user['match_status']=='pending') {\n\n // mentor update\n $update_user = array(\n 'id' => $this->session->userdata('user_id'),\n 'data' => array('match_status' => 'active','match_status_stamp' => date('y-m-d H:i:s')),\n 'table' => 'users'\n );\n $this->Application_model->update($update_user);\n\n // mentee update\n $update_user = array(\n 'id' => $this->user['is_matched'],\n 'data' => array('match_status' => 'active','match_status_stamp' => date('y-m-d H:i:s')),\n 'table' => 'users'\n );\n $this->Application_model->update($update_user);\n\n $mentee = $this->Application_model->get(array('table'=>'users','id'=>$this->user['is_matched']));\n\n // notify mentee about the accept\n\n $data = array();\n $data['first_name'] = $this->user['first_name'];\n $data['last_name'] = $this->user['last_name'];\n\n $message = $this->load->view('/chooser/email/accept', $data, true);\n $this->email->clear();\n $this->email->from($this->config->item('admin_email', 'ion_auth'), $this->config->item('site_title', 'ion_auth'));\n $this->email->to($mentee['email']);\n $this->email->subject('Mentor has accepted');\n $this->email->message($message);\n\n $result = $this->email->send(); // @todo handle false send result\n\n $this->session->set_flashdata('message', '<div class=\"alert alert-success\">The Mentee has been notified about the acceptance.</div>');\n redirect('/dashboard');\n\n }else{\n\n redirect('/dashboard');\n\n }\n\n }", "protected function owner_matches_current_user()\n {\n }", "public function isMall()\n {\n return false;\n }", "function isGroupAdmin($authorisers)\r\n{\r\n if ($authorisers == 999 || $authorisers == 0)\r\n return false;\r\n\r\n\treturn in_array($authorisers, $GLOBALS['group_membership']) \r\n\t\t\t|| \r\n\t\t\t\tin_array(2, $GLOBALS['group_membership']);\r\n}", "public function isResponsible()\n {\n return false;\n }", "public function authorize()\n {\n $user = $this->user();\n\n // Check if user is a mentor\n if ($user->type !== 'mentor') {\n throw new AuthorizationException('Sorry! Only mentors are allowed to create or update assignments');\n }\n\n // Validate mentorship id is numeric to avoid db exception on query\n if (!is_numeric($mentorship_id = $this->input('mentorship_id'))) {\n logger('Invalid input for mentorship_id supplied');\n throw new AuthorizationException('Invalid input supplied for mentorship_id');\n }\n\n // Check mentorship belongs to current mentor\n $mentorship = SolutionMentorship::query()->findOrNew($mentorship_id);\n\n if (! ($mentorship->mentor_id == $user->id)) {\n throw new AuthorizationException('Sorry! You can only create or update assignments on mentorships assigned to you');\n }\n\n return true;\n }", "public function execute() {\n\t\t// a mistake and did a negative, or you were trying to un-mute someone. I'll be nice about it\n\t\t// and let the mod/admin know what to do.\n\t\tif ($this->time < 0) {\n\t\t\t$chat = new WhisperCommand($this->server, ServerChatClient::getClient(), array($this->client),\n\t\t\t\t\"Cannot give a negative mute. Use /unmute <display name> to un-mute someone.\");\n\t\t\t$chat->execute();\n\n\t\t\treturn;\n\t\t}\n\n\t\t// If the person isn't muted yet, message them privately so we don't have a bunch of folks\n\t\t// bitch about why someone was muted. Don't make it public knowledge.\n\t\tif (!$this->recipient->isMuted()) {\n\t\t\t$chat = new WhisperCommand($this->server, ServerChatClient::getClient(), array($this->recipient),\n\t\t\t\t\"You have been muted for spam/offensive chat.\");\n\t\t\t$chat->execute();\n\t\t}\n\n\t\t// Add time on the recipient so that they can get the punishment that they deserve.\n\t\t$this->recipient->addMuteTime($this->time);\n\n\t\t// Message the administrator or moderator that the mute has successfully gone through.\n\t\t$chat = new WhisperCommand($this->server, ServerChatClient::getClient(), array($this->client),\n\t\t\t\"You have successfully muted \" . $this->recipient->getDisplayName() . \".\");\n\t\t$chat->execute();\n\t}", "public function testGetMentionsFailure()\n\t{\n\t\t$count = 10;\n\n\t\t$returnData = new stdClass;\n\t\t$returnData->code = 200;\n\t\t$returnData->body = $this->rateLimit;\n\n\t\t$path = $this->object->fetchUrl('/application/rate_limit_status.json', array(\"resources\" => \"statuses\"));\n\n\t\t$this->client->expects($this->at(0))\n\t\t->method('get')\n\t\t->with($path)\n\t\t->will($this->returnValue($returnData));\n\n\t\t$returnData = new stdClass;\n\t\t$returnData->code = 500;\n\t\t$returnData->body = $this->errorString;\n\n\t\t// Set request parameters.\n\t\t$data = array();\n\t\t$data['count'] = $count;\n\n\t\t$path = $this->object->fetchUrl('/statuses/mentions_timeline.json', $data);\n\n\t\t$this->client->expects($this->at(1))\n\t\t->method('get')\n\t\t->with($path)\n\t\t->will($this->returnValue($returnData));\n\n\t\t$this->object->getMentions($count);\n\t}", "public function testIfUserCantAccessTeamWhichHeDoesNotOwn()\n {\n /** @var User $admin */\n $admin = $this->getRepo('AttendeeApiBundle:User')->find(1);\n /** @var User $user */\n $user = $this->getRepo('AttendeeApiBundle:User')->find(2);\n\n $team = new Team();\n $team\n ->setName('team name');\n\n $manager = new TeamManager();\n $manager\n ->setUser($admin)\n ->setTeam($team);\n\n $this->em()->persist($team);\n $this->em()->persist($manager);\n $this->em()->flush();\n\n $userClient = $this->createAuthorizedClient($user);\n $userClient->request('GET', $this->url(\"api_teams_show\", array('id' => $team->getId())));\n $this->assertEquals(403, $userClient->getResponse()->getStatusCode(), 'User should not have permission to this team.');\n\n $adminClient = $this->createAuthorizedClient($admin);\n $adminClient->request('GET', $this->url(\"api_teams_show\", array('id' => $team->getId())));\n $this->assertEquals(200, $adminClient->getResponse()->getStatusCode(), 'Admin should have permission for this team.');\n }", "private function isGod() : bool\n {\n return $this->role('god');\n }", "public function message()\n {\n return __('Hit / stand is not allowed.');\n }", "function usuarios_tesoreria_distintos()\n\t{\n\t\tif($_POST['responsable_tecnico_id']==$_POST['valuador_tesoreria_id'])\n\t\t{\n\t\t\t$this->CI->form_validation->set_message('usuarios_tesoreria_distintos', \"El responsable t&eacute;cnico y el valuador de Tesorer&iacute;a deben ser diferentes.\");\n\t\t\treturn FALSE;\n\t\t}\n\t\treturn TRUE;\n\t}", "protected abstract function onAuthorizeMissingOwner(): Effect|Response;", "function isOmitted()\n\t{\n\t\treturn TRUE;\n\t}", "private function createCreatureBack()\n {\n\n }", "public function notYou()\n {\n return $this->user_id !== auth()->id();\n }", "abstract protected function putPlayersInDuel(): void;", "public function getEnemyString() {\n if($this->combatantAID == CD()->id) {\n return \"combatantB\";\n } else {\n return \"combatantA\";\n }\n }", "public function add_competitor($memberid){\n $member = Member::find_by_id($memberid);\n $sql = \"INSERT INTO tournamentCompetitors(tournamentID, competitorID, initrating) VALUES ($this->id, $memberid, $member->rating)\"; \n $result = self::$database->query($sql);\n if (!$result){\n $this->errors[] = \"Insertion of competitor failed. Either member id doesnt exist or member is already a competitor.\";\n }\n }", "private function _invited()\n {\n // Check we're not over-joined\n if (count($this->_currentChannels) < $this->_maxChannels)\n {\n $this->setChannels($this->_data->message);\n $this->_irc->join($this->_data->message);\n }\n else {\n $this->_privmessage(\n 'Sorry, I\\'m already in too many channels.', \n $this->_data->nick\n );\n }\n }", "public function testNotCorrectAssignuser() \r\n {\r\n // expect_not($model->assignuser());\r\n // expect_that($model->getErrors('id'));\r\n // expect_that($model->getErrors('authorRole'));\r\n \r\n }", "function mentees(){\n $uid = $this->session->userdata('user_id');\n if ($this->socialkit->SK_isLogged()) {\n $data['title'] = 'List of Mentees';\n $this->load->view('user/mentees', $data);\n \n } else {\n redirect(base_url('login').'?url='.base64_encode(uri_string()));\n }\n }", "function _isModerator($a_ref_id, $a_usr_id)\n\t{\n\t\treturn in_array($a_usr_id, ilForum::_getModerators($a_ref_id));\n\t}", "public function message()\n {\n return 'Given term id is not a role id.';\n }", "function eman_roles( $type='turner' )\n{\n\tswitch ( $type )\n\t{\n\t\tcase 'owner' :\n\t\t\treturn array('owner','owners_rep','consultant');\n\t\t\tbreak;\n\t\tcase 'sub' :\n\t\t\treturn array('subcontractor');\n\t\t\tbreak;\n\t\tcase 'pending' :\n\t\t\treturn array('subscriber');\n\t\t\tbreak;\n\t\tcase 'turner' :\n\t\t\treturn array('administrator','editor');\n\t\t\tbreak;\n\t}\n}", "function deny($reason) {\n $this->denied_reasons[] = $reason;\n }", "public function editGroup($id){\n $group = Group::find($id);\n\n $mentors = DB::table('clients')\n ->select('clients.name','clients.telephone','roles.name as role_name','roles.description','clients.id')\n ->join('role_clients','role_clients.client_id','=','clients.id')\n ->join('kindergarten_clients','kindergarten_clients.client_id','=','clients.id')\n ->join('roles','roles.id','=','role_clients.role_id')\n ->where('kindergarten_clients.kindergarten_id',$group->kindergarten_id)\n ->where('role_clients.role_id',Config::get('constants.roles.mentor'))\n ->get();\n\n $existInFirstMentors = DB::table('clients')\n ->select('clients.id','clients.name')\n ->join('role_clients','role_clients.client_id','=','clients.id')\n ->join('kindergarten_clients','kindergarten_clients.client_id','=','clients.id')\n ->join('groups','groups.first_mentor_id','=','clients.id')\n ->where('kindergarten_clients.kindergarten_id',$group->kindergarten_id)\n ->where('role_clients.role_id',Config::get('constants.roles.mentor'))\n ->distinct()\n ->pluck('clients.id')\n ->toArray();\n\n $existInSecondMentors = DB::table('clients')\n ->select('clients.id')\n ->join('role_clients','role_clients.client_id','=','clients.id')\n ->join('kindergarten_clients','kindergarten_clients.client_id','=','clients.id')\n ->join('groups','groups.second_mentor_id','=','clients.id')\n ->where('kindergarten_clients.kindergarten_id',$group->kindergarten_id)\n ->where('role_clients.role_id',Config::get('constants.roles.mentor'))\n ->distinct()\n ->pluck('clients.id')\n ->toArray();\n\n $notExistInFirstMentors = DB::table('clients')\n ->select('clients.name','clients.telephone','roles.name as role_name','roles.description','clients.id')\n ->join('role_clients','role_clients.client_id','=','clients.id')\n ->join('kindergarten_clients','kindergarten_clients.client_id','=','clients.id')\n ->join('roles','roles.id','=','role_clients.role_id')\n ->where('kindergarten_clients.kindergarten_id',$group->kindergarten_id)\n ->where('role_clients.role_id',Config::get('constants.roles.mentor'))\n ->whereNotIn('clients.id',$existInFirstMentors)\n ->get();\n\n $notExistInSecondMentors = DB::table('clients')\n ->select('clients.name','clients.telephone','roles.name as role_name','roles.description','clients.id')\n ->join('role_clients','role_clients.client_id','=','clients.id')\n ->join('kindergarten_clients','kindergarten_clients.client_id','=','clients.id')\n ->join('roles','roles.id','=','role_clients.role_id')\n ->where('kindergarten_clients.kindergarten_id',$group->kindergarten_id)\n ->where('role_clients.role_id',Config::get('constants.roles.mentor'))\n ->whereNotIn('clients.id',$existInSecondMentors)\n ->get();\n\n $group_categories = GroupCategory::all();\n $child_counts = array(0 => 10, 1 => 15, 2 => 20, 3 => 25, 4 => 30, 5 => 35, 6 => 40, 7 => 45, 8 => 50);\n\n return view('manager.edit-group',compact('group','group_categories','child_counts','notExistInFirstMentors','notExistInSecondMentors','mentors'));\n }", "public function attack(Character $target) {\n $rand = rand(1, 100);\n if ($rand < 10 ) {\n $status = $this->potion(); // On regénère la vie !\n }\n else if ($rand > 10 && $rand < 25) {\n $status = $this->diablotin($target); // diablotin\n }\n else if ($rand > 25 && $rand < 37) {\n $status = $this->siphonAme($target); // Siphon d'Ames\n }\n else if ($rand > 37 && $rand < 65) {\n $status = $this->drainVie($target); // Drain de vie\n }\n else if ($rand > 65 && $rand < 85) {\n $status = $this->gangreFeu($target); // GangreFeu\n }\n else{\n $status = $this->coupBaguette($target); // Attaque à la baguette !\n }\n return $status;\n }", "protected function thinkBot() {\n $cellReturn = '';\n $markers = array($this->_botMark, $this->_userMark); //offense first, then defense\n while ($this->isValidMove($cellReturn) === FALSE) {\n //defense and offense\n foreach ($markers AS $marker) {\n foreach ($this->_winningCombination AS $cells) {\n $lineCells = explode(\",\", $cells); //separate the winning combination to 3\n $marked = 0;\n $noMark = 0;\n for ($x = 0; $x < 3; $x++) {\n if (in_array($lineCells[$x], $this->_markers[$marker]))\n $marked++;\n else\n $noMark = $lineCells[$x];\n }\n if ($marked == 2 && $this->isValidMove($noMark)) {\n $cellReturn = $noMark;\n break;\n }\n }\n if ($cellReturn != '')\n break;\n }\n //plan\n if ($cellReturn == '') {\n while (!$this->isValidMove($cellReturn)) {\n $combinationRandKey = rand(0, 7);\n //separate the winning combination to 3 elements\n $lineCells = explode(\",\", $this->_winningCombination[$combinationRandKey]);\n if ($this->isValidMove($lineCells[0]))\n $cellReturn = $lineCells[0];\n elseif ($this->isValidMove($lineCells[1]))\n $cellReturn = $lineCells[1];\n else\n $cellReturn = $lineCells[2];\n }\n }\n }\n return $cellReturn;\n }", "function autoriser_forum_moderer_dist($faire, $type, $id, $qui, $opt){\n\tif ($id){\n\t\tinclude_spip('inc/forum');\n\t\tif ($racine = racine_forum($id)\n\t\t AND list($objet,$id_objet,) = $racine\n\t\t AND $objet){\n\t\t\treturn autoriser('modererforum',$objet,$id_objet);\n\t\t}\n\t}\n\t\n\t// sinon : admins uniquement\n\treturn $qui['statut']=='0minirezo'; // les admins restreints peuvent moderer leurs messages\n}", "public function isMan()\n {\n $res = $this->getEntity()->isMan();\n\t\tif($res === null)\n\t\t{\n\t\t\tSDIS62_Model_DAO_Abstract::getInstance($this::$type_objet)->create($this);\n\t\t\treturn $this->getEntity()->isMan();\n\t\t}\n return $res;\n }", "public function mentions(){\n return $this->render('home/mentions.html.twig');\n }", "function isTicketter()\n {\n if($this->role != ROLE_ADMIN || $this->role != ROLE_MANAGER) { return true; }\n else {return false; }\n \n }", "protected function matchHideForNonAdminsCondition() {}", "private function setMentorshipSessionMenteeStatusToRejected($menteeProfileId) {\n $menteeManager = new MenteeManager();\n // INFO: mentee status id 4 means rejected\n $menteeManager->editMentee(array('status_id' => 4), $menteeProfileId);\n }", "function findStudentMentorWithMenteeId($id) {\r\n\t\treturn $this->studentMapper->findStudentMentorWithMenteeId($id);\r\n\t}", "public function getEnemy() {\n if($this->combatantAID == CD()->id) {\n return $this->combatantB;\n } else {\n return $this->combatantA;\n }\n }", "public function deny()\n {\n ++$this->denied;\n\n $this->result = NODE_ACCESS_DENY;\n\n // Where the actual magic happens please read the README.md file.\n if (!$this->byVote) {\n $this->stopPropagation();\n }\n }", "public function targetMentions()\n {\n return $this->hasMany('App\\Models\\EntityMention', 'target_id', 'id');\n }", "function treatmentMoment($moments,\\Unipik\\InterventionBundle\\Entity\\Demande &$demande) {\n $this->treatmentAvoidDay(array_keys($moments, 'a-eviter'), $demande);\n $this->treatmentAllDay(array_keys($moments, 'indifferent'), $demande);\n $this->treatmentMorning(array_keys($moments, 'matin'), $demande);\n $this->treatmentAftNoon(array_keys($moments, 'apres-midi'), $demande);\n }", "public function ability() {\n\n $this->startMove(3, 0.2);\n echo \"THE ENGINE IS OVERHEATED!\\n\";\n $this->switchEngine();\n\n\n\n\n }", "public function override_pw_gating_with_pmp( $lock_or_not, $post_id, $declined, $user) {\r\n\t\t\r\n\t\t// If the post is not gated for the user, just return\r\n\t\t\r\n\t\tif ( !$lock_or_not['lock'] ) {\r\n\t\t\treturn $lock_or_not;\r\n\t\t}\n\t\t\r\n\t\t// At this point, it means the post is gated with PW and user does not have access.\r\n\t\t\r\n\t\t// Check if post is gated with PMP and if user has access.\r\n\t\t\r\n\t\t$hasaccess = false;\r\n\t\t\r\n\t\t// Temporarily remove filter we attached to PMP so it wont cause infinite loop\r\n\t\tremove_filter( 'pmpro_has_membership_access_filter', array($this, 'override_pmp_gating_with_pw'), 10 );\r\n\t\t\r\n\t\t$hasaccess = pmpro_has_membership_access( $post_id, $user->ID );\r\n\r\n\t\tif ( $hasaccess AND count( $this->get_pmp_post_membership_level_ids( $post_id ) ) > 0 ) {\r\n\t\t\t// Post is gated with PMP and user has access. Unlock the post.\r\n\t\t\r\n\t\t\t$lock_or_not['lock'] = false;\r\n\t\t\t$lock_or_not['reason'] = 'valid_patron';\r\n\t\t\t\r\n\t\t\t// Allow content\r\n\t\t\treturn $lock_or_not;\r\n\t\t\r\n\t\t}\r\n\t\t\r\n\t\t// The other option - the content is gated with PW and not PMP. If PMP user has a matching membership $ level that matches PW's tier level, allow access.\r\n\t\t\t\t\r\n\t\t// Get the matching PMP levels for the $ value of PW gated post if there is any\r\n\t\t\r\n\t\t$matching_levels = $this->match_pmp_tiers( $lock_or_not['patreon_level'] );\r\n\t\t\r\n\t\tif ( is_array( $matching_levels) AND count( $matching_levels ) > 0 ) {\r\n\t\t\t\r\n\t\t\t// User has membership levels which have matching or greater $ value than the $ level of Patreon gating. Allow content.\r\n\t\t\t\r\n\t\t\t$lock_or_not['lock'] = false;\r\n\t\t\t$lock_or_not['reason'] = 'valid_patron';\r\n\t\t\t\r\n\t\t\treturn $lock_or_not;\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t// Re-add pmp filter:\r\n\t\t\r\n\t\tadd_filter( 'pmpro_has_membership_access_filter', array($this, 'override_pmp_gating_with_pw'), 10, 4 );\t\t\r\n\t\r\n\t\t// Return unmodified result\r\n\t\t\r\n\t\treturn $lock_or_not;\r\n\t\t\r\n\t}", "function ppmess_user_legality($message_id, $post_id, $logged_user){\n\t\n\tglobal $wpdb;\n\t\n\t$query = \"SELECT * FROM {$wpdb->prefix}private_messages WHERE (message_id = $message_id AND message_parent = 0 AND post_id = $post_id ) \n\t\t\t\tAND ( receiver_id = $logged_user OR sender_id = $logged_user ) LIMIT 1\";\n\t\t\t\n\t$result = $wpdb->get_results( $query, ARRAY_A );\n\t\n\tif($wpdb->num_rows == 1)\n\t\treturn TRUE;\n\telse \n\t\treturn FALSE;\n}", "public function banUser(){\n if($this->adminVerify()){\n\n }else{\n echo \"Vous devez avoir les droits administrateur pour accéder à cette page\";\n }\n }", "public function decline()\n {\n\n if($this->user['menteer_type']==37 && $this->user['is_matched'] > 0 && $this->user['match_status']=='pending') {\n\n // mentor update\n $update_user = array(\n 'id' => $this->session->userdata('user_id'),\n 'data' => array('is_matched' => '0'),\n 'table' => 'users'\n );\n $this->Application_model->update($update_user);\n\n // mentee update\n $update_user = array(\n 'id' => $this->user['is_matched'],\n 'data' => array('is_matched' => '0'),\n 'table' => 'users'\n );\n $this->Application_model->update($update_user);\n\n $mentee = $this->Application_model->get(array('table'=>'users','id'=>$this->user['is_matched']));\n\n // notify mentee\n\n $data = array();\n $data['first_name'] = $this->user['first_name'];\n $data['last_name'] = $this->user['last_name'];\n\n $message = $this->load->view('/chooser/email/decline', $data, true);\n $this->email->clear();\n $this->email->from($this->config->item('admin_email', 'ion_auth'), $this->config->item('site_title', 'ion_auth'));\n $this->email->to($mentee['email']);\n $this->email->subject('Mentor has declined');\n $this->email->message($message);\n\n $result = $this->email->send(); // @todo handle false send result\n\n $this->session->set_flashdata('message', '<div class=\"alert alert-success\">The Mentee has been notified.</div>');\n redirect('/dashboard');\n\n }else{\n\n redirect('/dashboard');\n\n }\n\n }", "protected function setAnonymity()\n {\n \tif ( isset( $_POST['anonymity'] ) && ! empty( $_POST['anonymity'] ) ) {\n \t\t$this->data['anonymity'] = 1;\n \t} else {\n \t\t$this->data['anonymity'] = 0;\n \t}\n }", "public function getMyMentors(Request $request)\n {\n $token = $request->header('token');\n $userData = TokenHandler::decode($token);\n $userId = $userData['id'];\n $data['mentors'] = DB::table('mentors_mentees')->where('mentee_id', $userId)->get();\n if (is_null($data['mentors'])){\n return APIHandler::response(0, \"You do not have mentors, Find mentors\", $data);\n }\n\n return APIHandler::response(1, \"Your mentors\", $data);\n }", "public function has_or_relation()\n {\n }" ]
[ "0.5846575", "0.57822627", "0.5388795", "0.5173131", "0.51635134", "0.51605517", "0.5138847", "0.51092035", "0.50513875", "0.5048762", "0.4990361", "0.49639013", "0.49631122", "0.49460816", "0.49441427", "0.49330527", "0.49155772", "0.49139014", "0.48955014", "0.48932654", "0.48902407", "0.48902407", "0.48732108", "0.48726848", "0.48647648", "0.4859015", "0.48082158", "0.48031348", "0.47999144", "0.4783249", "0.47830495", "0.47657064", "0.47647923", "0.47605175", "0.47334406", "0.47291592", "0.47058958", "0.46938667", "0.4681173", "0.46779397", "0.46723974", "0.46682742", "0.46675882", "0.4652673", "0.46410033", "0.46402755", "0.4635591", "0.46278116", "0.46236557", "0.46142197", "0.46134612", "0.4606783", "0.46023232", "0.46010318", "0.4597343", "0.45899743", "0.4586478", "0.45815384", "0.45789862", "0.45685995", "0.4560194", "0.45597786", "0.4553581", "0.455217", "0.4547634", "0.45475733", "0.4546831", "0.45422408", "0.45383143", "0.4536835", "0.453174", "0.4528518", "0.45235047", "0.45199385", "0.4517176", "0.45168808", "0.45145994", "0.45106363", "0.4508879", "0.4506529", "0.45046267", "0.44935495", "0.448912", "0.44888383", "0.44877425", "0.44860277", "0.44856656", "0.44841948", "0.4477009", "0.44747657", "0.44724002", "0.44698048", "0.44697794", "0.44682878", "0.44677562", "0.4467323", "0.44668567", "0.44667813", "0.4462375", "0.4455865", "0.44531256" ]
0.0
-1
mentor accepts or declines
public function profile() { // lets check if we can access this method if($this->user['menteer_type']==37 && $this->user['is_matched'] > 0 && $this->user['match_status']=='pending') { // get mentee $mentee_id = $this->user['is_matched']; $mentee['profile']['user'] = $this->Application_model->get(array('table' => 'users', 'id' => $mentee_id)); $mentee['profile']['answers'] = $this->_extract_data( $this->Matcher_model->get(array('table' => 'users_answers', 'user_id' => $mentee_id)) ); $this->data['page'] = 'profile'; $this->data['user'] = $this->user; $this->data['mentee'] = $mentee; $this->load->view('/chooser/header', $this->data); $this->load->view('/chooser/profile', $this->data); $this->load->view('/chooser/footer', $this->data); }else{ redirect('/dashboard'); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function checkIfMentor($user){\n\t\tif ($user->is_mentor == 1){\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "function manage($verb, $args) {\n\t\treturn false;\n\t}", "function mOR(){\n try {\n $_type = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$OR;\n $_channel = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$DEFAULT_TOKEN_CHANNEL;\n // Tokenizer11.g:611:3: ( '||' ) \n // Tokenizer11.g:612:3: '||' \n {\n $this->matchString(\"||\"); \n\n\n }\n\n $this->state->type = $_type;\n $this->state->channel = $_channel;\n }\n catch(Exception $e){\n throw $e;\n }\n }", "function can_process()\n{\n\tglobal $controller,$Mode;\n\treturn \n\t\t\t(!is_empty($_POST['transaction_reason'], ' Designation Reason')) &&\n\t\t\t(!is_empty($_POST['unit_id'], 'Unit')) && \n\t\t\t(!is_empty($_POST['department_id'], 'Department')) &&\n\t\t\t(!is_empty($_POST['employee_id'], 'Employee')) &&\n\t\t\t(\n\t\t\t\t( ($_POST['employee_id'] > 0) && ($_POST['employee_leave_id'] > 0)) ?\n\t\t\t\t//(greater_sanity_check($_POST['deduct_leave'],$_POST['remaining_leave'],\"Deduction Leaves\",\"Remaining Leaves\",1)) && \n\t\t\t\tis_number($_POST['deduct_leave'], \"Deduction Leaves\") &&\n\t\t\t\t!is_empty($_POST['deduct_leave'], \"Deduction Leaves\"):\n\t\t\t\t0\n\t\t\t)\n\t\t\t;\n}", "abstract public function valid();", "function treatmentMoment($moments,\\Unipik\\InterventionBundle\\Entity\\Demande &$demande) {\n $this->treatmentAvoidDay(array_keys($moments, 'a-eviter'), $demande);\n $this->treatmentAllDay(array_keys($moments, 'indifferent'), $demande);\n $this->treatmentMorning(array_keys($moments, 'matin'), $demande);\n $this->treatmentAftNoon(array_keys($moments, 'apres-midi'), $demande);\n }", "private function approve() {\n\n }", "public function control(){\r\n $result=parent::control();\r\n if ($result==\"OK\") { $result=\"\"; }\r\n \r\n $old = $this->getOld();\r\n \r\n if($this->idLeaveType==NULL){\r\n $result.='<br/>' . i18n('idLeaveTypeMandatory');\r\n }\r\n \r\n if($this->idEmployee==NULL){\r\n $result.='<br/>' . i18n('idEmployeeMandatory');\r\n }\r\n\r\n // At least one EmployeeLeaveEarned unclosed by leave type\r\n if ($old->idle==0 and $this->idle==1) {\r\n $unclosedEmpLE = $this->getEmployeeLeaveEarnedForAnEmployee($this->idEmployee,$this->idLeaveType, false,false);\r\n if (!count($unclosedEmpLE)) {\r\n $result.='<br/>' . i18n('AtLeastOneOpenedEmployeeLeaveEarned'); \r\n }\r\n }\r\n \r\n // startDate/endDate/quantity must be defined/undefined at the same time\r\n if($this->leftQuantity==null and $this->quantity==0) {\r\n $this->leftQuantity = $this->quantity;\r\n }\r\n if( ! (\r\n ($this->startDate==null && $this->endDate==null && $this->quantity==null && $this->leftQuantity==null) || \r\n ($this->startDate!==null && $this->endDate!==null && ($this->quantity!==null && $this->quantity!==\"\") && \r\n ($this->leftQuantity!==null && $this->leftQuantity!==\"\") \r\n ))\r\n )\r\n {\r\n $result.='<br/>' . i18n('errorQuantityStartDateEndDateMustBeDefinedTogether');\r\n }\r\n \r\n //if the endDate is set before the startDate\r\n if($this->startDate > $this->endDate){\r\n $result.='<br/>' . i18n('invalidEndDate');\r\n }\r\n \r\n if($this->quantity!=null && $this->quantity<=0){\r\n $result.='<br/>' . i18n('invalidQuantity');\r\n }\r\n \r\n //TO DO: MESSAGE CONFIRM\r\n //multiple infinite or infinite=>finite\r\n //control if there is already a leaveEarned (with same idEmployee/idLeaveType) with null dates and quantity \r\n //(a leaveEarned with null dates and quantity means that the employee can ask as many leaves as he wants for this leaveType, so there cannot be at the same time \r\n //a leaveEarned which indicate the right to ask an unlimited number of leaves \r\n //and another with a quantity which indicate that the employee can ask a limited number of leaves) \r\n $clauseWhere=\"idEmployee = \".$this->idEmployee.\" AND idLeaveType = \".$this->idLeaveType.\" AND quantity IS NULL AND idle=0\";\r\n if($this->id!=NULL){\r\n $clauseWhere.=\" AND id <>\".$this->id;\r\n }\r\n $lvEarnedQNullList=$this->getSqlElementsFromCriteria(null,false,$clauseWhere);\r\n if($lvEarnedQNullList){\r\n $result.='<br/>' . i18n('errorMustDeleteNullLeaveEarnedFirst');\r\n }\r\n \r\n //TO DO: MESSAGE CONFIRM\r\n //finite=>infinite\r\n $clauseWhere=\"idEmployee = \".$this->idEmployee.\" AND idLeaveType = \".$this->idLeaveType.\" AND quantity IS NOT NULL AND idle=0\";\r\n if($this->id!=NULL){\r\n $clauseWhere.=\" AND id <>\".$this->id;\r\n }\r\n $lvEarnedQNotNullList=$this->getSqlElementsFromCriteria(null,false,$clauseWhere);\r\n if($this->quantity==null && $lvEarnedQNotNullList){\r\n $result.='<br/>' . i18n('errorMustCloseNotNullLeaveEarnedFirst');\r\n }\r\n \r\n //control if there is already a leaveEarned with the same dates/idEmployee/idLeaveType\r\n if($this->startDate!=null && $this->endDate!=null){\r\n $start=(new DateTime($this->startDate))->format('Y-m-d');\r\n $end=(new DateTime($this->endDate))->format('Y-m-d');\r\n $clauseWhere=\"idLeaveType=\".$this->idLeaveType.\" AND idEmployee=\".$this->idEmployee.\" AND idle=0 AND ( (startDate>='$start' AND NOT (startDate>'$end')) OR \"\r\n . \"(endDate<='$end' AND NOT (endDate<'$start')) OR \"\r\n . \"(startDate<='$start' AND endDate>='$end') )\";\r\n if($this->id!=null){\r\n $clauseWhere.=\"AND id <>\".$this->id;\r\n }\r\n $list=$this->getSqlElementsFromCriteria(null,false,$clauseWhere);\r\n if($list){\r\n $result.='<br/>' . i18n('errorLeaveEarnedOverlap');\r\n }\r\n }\r\n \r\n \r\n //TO DO: MESSAGE CONFIRM\r\n //a left cannot be superior to quantity\r\n if($this->quantity!=NULL){\r\n if($this->leftQuantity > $this->quantity){\r\n $result.='<br/>' . i18n('errorLeftQSuperiorToQuantity');\r\n }\r\n }\r\n \r\n $old = $this->getOld();\r\n //constraint: can't create a leaveEarned with a startDate that is not valid anymore compared to today \r\n if($this->startDate!=$old->startDate || $this->endDate != $old->endDate){\r\n $critContract=array(\"idEmployee\"=>$this->idEmployee,\"idle\"=>\"0\");\r\n \r\n $empContract = SqlElement::getFirstSqlElementFromCriteria(\"EmploymentContract\",$critContract);\r\n $critLvTypeOfEmpContractType = array(\r\n \"idLeaveType\"=>$this->idLeaveType, \r\n \"idEmploymentContractType\"=>$empContract->idEmploymentContractType, \r\n \"idle\"=>\"0\"\r\n );\r\n $lvTypeOfEmpContractType = SqlElement::getFirstSqlElementFromCriteria(\"LeaveTypeOfEmploymentContractType\",$critLvTypeOfEmpContractType);\r\n if($lvTypeOfEmpContractType){\r\n if($lvTypeOfEmpContractType->validityDuration!=null){\r\n $thisStartDateTime=new DateTime($this->startDate);\r\n $testStart=new DateTime(\"now\");\r\n $testDateInterval = new DateInterval(\"P\".$lvTypeOfEmpContractType->validityDuration.\"M\");\r\n $testStart->sub($testDateInterval);\r\n if($thisStartDateTime < $testStart){\r\n $result.='<br/>' . i18n('errorLvEarnedStartDateNotValidAnymore');\r\n }\r\n }\r\n }\r\n }\r\n \r\n //quantity and leftQuantity must be modulos of 0.5\r\n if($this->quantity!==null && trim($this->quantity)!==\"\" && $this->leftQuantity!==null && trim($this->leftQuantity)!==\"\"){\r\n if(! (fmod($this->quantity, 0.5) == 0) || ! (fmod($this->leftQuantity, 0.5) == 0)){\r\n $result.='<br/>' . i18n('errorLeftQuantityOrQuantityNotModuloOfZeroPointFive');\r\n }\r\n }\r\n \r\n $defaultControl=parent::control();\r\n if ($defaultControl!='OK') {\r\n $result.=$defaultControl;\r\n }\r\n\r\n if ($result==\"\") $result='OK';\r\n \r\n return $result;\r\n }", "public function declineMentorshipSession($mentorshipSessionId, $role, $id, $email) {\n $statusToSet = -1;\n $invitedPerson = null;\n $mentorshipSession = $this->getMentorshipSession($mentorshipSessionId);\n if($role === 'mentee') {\n $invitedPerson = $mentorshipSession->mentee;\n // set to cancelled by mentee if mentor has accepted or not responded yet\n if(in_array($mentorshipSession->status_id, [2, 4]) !== false)\n $statusToSet = 12;\n } else if($role === 'mentor') {\n $invitedPerson = $mentorshipSession->mentor;\n // set to cancelled by mentor if mentee has accepted or not responded yet\n if(in_array($mentorshipSession->status_id, [2, 3]) !== false)\n $statusToSet = 13;\n }\n if($statusToSet !== -1 && $invitedPerson->id == $id && $invitedPerson->email === $email) {\n $this->editMentorshipSession([\n 'status_id' => $statusToSet, 'mentorship_session_id' => $mentorshipSessionId\n ]);\n // if session is cancelled by mentee make available only the mentor and set the mentee's status to rejected,\n // else if session is cancelled by mentor make the mentor unavailable\n // else make both available\n if($statusToSet === 12) {\n $this->setMentorshipSessionMentorStatusToAvailable($mentorshipSession->mentor->id);\n $this->setMentorshipSessionMenteeStatusToRejected($mentorshipSession->mentee->id);\n } else if($statusToSet === 13) {\n $this->setMentorshipSessionMentorStatusToNotAvailable($mentorshipSession->mentor->id);\n $this->setMentorshipSessionMenteeStatusToAvailable($mentorshipSession->mentee->id);\n } else { // TODO: this was created when the account manager could decline to manage a match (maybe we do not need it anymore)\n $this->setMentorshipSessionMentorAndMenteeStatusesToAvailable(\n $mentorshipSession->mentor->id, $mentorshipSession->mentee->id\n );\n }\n return true;\n } else {\n return false;\n }\n }", "function execute($modifier = null)\n {\n $owner = $this->getOwner();\n $target = $this->getTarget();\n\n $originalDamageToDeal = $owner->getStrength() - $target->getDefence();\n\n if($originalDamageToDeal < 0 ) {\n $originalDamageToDeal = 0;\n }\n\n $damageToDeal = $originalDamageToDeal;\n\n $defenseSkills = $target->getDefenceSkills();\n\n foreach ($defenseSkills as $defenseSkill) {\n if(get_class($defenseSkill) != get_class($this)) {\n $defenseSkill->setOwner($target);\n $defenseSkill->setTarget($owner);\n $damageToDeal = $defenseSkill->execute($damageToDeal);\n }\n }\n\n if($target->isLucky()) {\n UI::actionMessage(\" {$this->getTarget()->getName()} got lucky. {$this->getOwner()->getName()} missed \");\n $damageToDeal = 0;\n } else {\n UI::actionMessage(\" {$this->getOwner()->getName()} hit {$this->getTarget()->getName()} for {$damageToDeal} damage\");\n }\n\n $targetOriginalHealth = $target->getHealth();\n $targetNewHealth = $targetOriginalHealth - $damageToDeal;\n\n\n\n $target->setHealth($targetNewHealth);\n\n }", "public function isDeclined(): bool;", "public function ability() {\n\n $this->startMove(3, 0.2);\n echo \"THE ENGINE IS OVERHEATED!\\n\";\n $this->switchEngine();\n\n\n\n\n }", "public function authorize()\n {\n return Gate::allows('add_to_dos') ? true : false;\n }", "function _announcementIsValid(&$request, $announcementId) {\n\t\t// must be implemented by sub-classes\n\t\tassert(false);\n\t}", "public function declined()\n\t{\n\t\treturn !$this->approved();\n\t}", "public function passes();", "public function decline()\n {\n\n if($this->user['menteer_type']==37 && $this->user['is_matched'] > 0 && $this->user['match_status']=='pending') {\n\n // mentor update\n $update_user = array(\n 'id' => $this->session->userdata('user_id'),\n 'data' => array('is_matched' => '0'),\n 'table' => 'users'\n );\n $this->Application_model->update($update_user);\n\n // mentee update\n $update_user = array(\n 'id' => $this->user['is_matched'],\n 'data' => array('is_matched' => '0'),\n 'table' => 'users'\n );\n $this->Application_model->update($update_user);\n\n $mentee = $this->Application_model->get(array('table'=>'users','id'=>$this->user['is_matched']));\n\n // notify mentee\n\n $data = array();\n $data['first_name'] = $this->user['first_name'];\n $data['last_name'] = $this->user['last_name'];\n\n $message = $this->load->view('/chooser/email/decline', $data, true);\n $this->email->clear();\n $this->email->from($this->config->item('admin_email', 'ion_auth'), $this->config->item('site_title', 'ion_auth'));\n $this->email->to($mentee['email']);\n $this->email->subject('Mentor has declined');\n $this->email->message($message);\n\n $result = $this->email->send(); // @todo handle false send result\n\n $this->session->set_flashdata('message', '<div class=\"alert alert-success\">The Mentee has been notified.</div>');\n redirect('/dashboard');\n\n }else{\n\n redirect('/dashboard');\n\n }\n\n }", "public function valid() {}", "public function valid() {}", "public function valid() {}", "public function valid() {}", "public function valid() {}", "public function valid() {}", "public function valid() {}", "public function valid() {}", "public function isModerated()\n {\n return $this->accepted !== null;\n }", "public function valid(){ }", "public function isModerador(){ return false; }", "public function valid();", "public function valid();", "public function valid();", "public function valid();", "public function accept(){\n \n }", "protected function _fcpoMandateAcceptanceNeeded() \n {\n $aMandate = $this->_oFcpoHelper->fcpoGetSessionVariable('fcpoMandate');\n if($aMandate && array_key_exists('mandate_status', $aMandate) !== false && $aMandate['mandate_status'] == 'pending') {\n if(array_key_exists('mandate_text', $aMandate) !== false) {\n return true;\n }\n }\n return false;\n }", "public function accept()\n {\n\n if($this->user['menteer_type']==37 && $this->user['is_matched'] > 0 && $this->user['match_status']=='pending') {\n\n // mentor update\n $update_user = array(\n 'id' => $this->session->userdata('user_id'),\n 'data' => array('match_status' => 'active','match_status_stamp' => date('y-m-d H:i:s')),\n 'table' => 'users'\n );\n $this->Application_model->update($update_user);\n\n // mentee update\n $update_user = array(\n 'id' => $this->user['is_matched'],\n 'data' => array('match_status' => 'active','match_status_stamp' => date('y-m-d H:i:s')),\n 'table' => 'users'\n );\n $this->Application_model->update($update_user);\n\n $mentee = $this->Application_model->get(array('table'=>'users','id'=>$this->user['is_matched']));\n\n // notify mentee about the accept\n\n $data = array();\n $data['first_name'] = $this->user['first_name'];\n $data['last_name'] = $this->user['last_name'];\n\n $message = $this->load->view('/chooser/email/accept', $data, true);\n $this->email->clear();\n $this->email->from($this->config->item('admin_email', 'ion_auth'), $this->config->item('site_title', 'ion_auth'));\n $this->email->to($mentee['email']);\n $this->email->subject('Mentor has accepted');\n $this->email->message($message);\n\n $result = $this->email->send(); // @todo handle false send result\n\n $this->session->set_flashdata('message', '<div class=\"alert alert-success\">The Mentee has been notified about the acceptance.</div>');\n redirect('/dashboard');\n\n }else{\n\n redirect('/dashboard');\n\n }\n\n }", "public function validatePerms(){ \n\t\treturn TRUE;\n\t}", "function isOmitted()\n\t{\n\t\treturn TRUE;\n\t}", "public function accept_request() {\n // Only send request if there's no existed relation between the two users\n $existed_relation_status = $this->bidirectional_relation_exists();\n \n if($existed_relation_status === \"P\") {\n /* \n Here w passed P as argument to update method to tell to update record with:\n from=$this->from\n to=$this->to\n status=\"P\"\n and change it to be like :\n from=$this->from\n to=$this->to\n status=\"F\"\n */\n\n // Update the current direction record\n $this->status = \"F\";\n $this->update(\"P\");\n\n // Add the other direction record\n $other_end = new UserRelation();\n $other_end->set_data(array(\n 'from'=>$this->to,\n 'to'=>$this->from,\n 'status'=>\"F\",\n 'since'=>date(\"Y/m/d h:i:s\")\n ));\n $other_end->add();\n\n return true;\n }\n\n return false;\n }", "private function validate() {\n $this->valid = (1 === count($this->marriages));\n }", "public function isModerator()\n {\n }", "function ctr_validateHome(&$ctx)\n{\n $reservation = $ctx['reservation'];\n\n // variables exist *AND* are not empty\n if (!empty($_POST['destination']) AND !empty($_POST['personsCounter']))\n {\n $reservation->destination = htmlspecialchars($_POST['destination']);\n $reservation->insurance = isset($_POST['insurance'])? 'True':'False';\n $personsCounter = intval($_POST['personsCounter']);\n\n // set bounds to the number of persons\n if (1 <= $personsCounter AND $personsCounter <= 30)\n {\n $reservation->personsCounter = $personsCounter;\n $reservation->save();\n\n return true;\n }\n\n $ctx['warning'] .= \"Vous ne pouvez enregistrer \".\n \"que entre 1 et 30 personnes.\\n\";\n }\n\n // Bypass checks if datas were already filled\n if ($reservation->destination)\n return true;\n\n $ctx['warning'] .= \"Veuillez remplir tous les champs correctement.\\n\";\n\n return false;\n}", "public function validateMedia(\\App\\Models\\EstablishmentMedia $media) {\n try{\n if(checkModelId($media->getIdOriginalMedia())){\n $originalMedia = $media->mediaOriginal()->first();\n if(checkModel($originalMedia)){\n\n $media->setIdOriginalMedia(0);\n switch($media->getTypeUse()){\n case Media::TYPE_USE_ETS_LOGO:\n $establishment = $media->establishment()->first();\n if(checkModel($establishment)){\n $establishment->setIdLogo($media->getId())->save();\n }\n break;\n case Media::TYPE_USE_ETS_VIDEO:\n $establishment = $media->establishment()->first();\n if(checkModel($establishment)){\n $establishment->setIdVideo($media->getId())->save();\n }\n break;\n case Media::TYPE_USE_ETS_THUMBNAIL:\n $establishment = $media->establishment()->first();\n if(checkModel($establishment)){\n $establishment->setIdThumbnail($media->getId())->save();\n }\n break;\n }\n\n $originalMedia->setIdEstablishment(0);\n $originalMedia->delete();\n }\n }\n $media->setStatus(Media::STATUS_VALIDATED)->save();\n } catch (Exception $ex) {\n // TODO Display errors\n }\n // TODO Send notification\n return redirect('/admin');\n }", "public function updateCustomValidate()\n {\n if($this->id_soldier_tmp != $this->id_soldier){\n $this->errors = \"Niepoprawny żołnierz.\";\n return false;\n }\n \n if($this->id_mission_tmp != $this->id_mission){\n $this->errors = \"Niepoprawna misja.\";\n return false;\n }\n \n if($this->detached == '1'){\n $this->errors = \"Nie można edytowac oddelegowanych żołnierzy z misji.\";\n return false;\n }\n \n $this->date_mission_add = date('Y-m-d H:i:s', strtotime($this->date_mission_add));\n \n return true;\n }", "public function canBeDeclined()\n {\n return $this->isAwaitingFee();\n }", "protected function performGuard()\n {\n $this->ensureValidType();\n $this->ensureValidUser();\n }", "public function valid()\n {\n }", "public function valid()\n {\n }", "public function valid()\n {\n }", "public function valid()\n {\n }", "public function isMan()\n {\n $res = $this->getEntity()->isMan();\n\t\tif($res === null)\n\t\t{\n\t\t\tSDIS62_Model_DAO_Abstract::getInstance($this::$type_objet)->create($this);\n\t\t\treturn $this->getEntity()->isMan();\n\t\t}\n return $res;\n }", "public function isValid()\n\t{\n\t\tif (empty($this->titre)) $this->titre = \"TITRE A REMPLACER\";\n\t\telse $this->titre = trim (preg_replace('/\\s+/', ' ', $this->titre) ); // Suppression des espaces\n\t\tif (!empty($this->contenu)) $this->contenu = trim (preg_replace('/\\s+/', ' ', $this->contenu) ); // Suppression des espaces\n\t\tif (empty($this->statut)) $this->statut = 0;\n\t\tif (empty($this->id_type)) $this->id_type = 1;\n\t\tif (empty($this->id_membre)) $this->id_membre = 0;\n\t}", "public function guardar(){\n\t}", "abstract function allowAddAction();", "public function isValid() {\n return $this->isAccepted();\n }", "function effect() {\n\t\t// Get the submission id.\n\t\t$submissionId = $this->getDataObjectId();\n\t\tif ($submissionId === false) return AUTHORIZATION_DENY;\n\n\t\t// Validate the section editor submission id.\n\t\t$sectionEditorSubmissionDao =& DAORegistry::getDAO('SectionEditorSubmissionDAO');\n\t\t$sectionEditorSubmission =& $sectionEditorSubmissionDao->getSectionEditorSubmission($submissionId);\n\t\tif (!is_a($sectionEditorSubmission, 'SectionEditorSubmission')) return AUTHORIZATION_DENY;\n\n\t\t// Check whether the article is actually part of the journal\n\t\t// in the context.\n\t\t$request =& $this->getRequest();\n\t\t$router =& $request->getRouter();\n\t\t$journal =& $router->getContext($request);\n\t\tif (!is_a($journal, 'Journal')) return AUTHORIZATION_DENY;\n\t\tif ($sectionEditorSubmission->getJournalId() != $journal->getId()) return AUTHORIZATION_DENY;\n\n\t\t// Save the section editor submission to the authorization context.\n\t\t$this->addAuthorizedContextObject(ASSOC_TYPE_ARTICLE, $sectionEditorSubmission);\n\t\treturn AUTHORIZATION_PERMIT;\n\t}", "public function comerce_alignet(Request $request){\n\n if($request->has('authorizationResult')){\n //Obteniendo la autorización de payme\n $authorizationResult = $request->input('authorizationResult');\n $purchaseOperationNumber = $request->input('purchaseOperationNumber');\n\n //Obteniendo la orden de acuerdo a la respuesta de payme\n $order = Order::where('order_code', $purchaseOperationNumber)->first();\n\n // Validacion de respuesta de payme\n // solo si el pago es autorizado se descuenta del inventario y se envía a urbaner\n if($authorizationResult === \"00\"){\n // Se actualiza la orden de compra de acuerdo de acuerdo a si ha elegido\n // delivery o no:\n if($order->delivery){\n //P: Pending, A: Atended, R: Rejected payment, D: Delivery pendiente\n $order->update([\n 'status' => 'D'\n ]);\n\n //Ademas se genera la orden en urbaner\n $this->storeUrbaner($order);\n\n }else{\n $order->update(['status' => 'A']);\n }\n\n //Actualizando el inventario de acuerdo a la compra\n $this->inventory($order);\n }else{\n // Se actualiza la orden de compra de acuerdo como rechazado:\n //P: Pending, A: Atended, R: Rejected payment, D: Delivary pendiente\n $order->update(['status' => 'R']);\n }\n };\n\n return redirect()->away('https://regalalo.pe/mi-cuenta');\n //return redirect()->away('http://localhost:4200/#/mis-pedidos');\n }", "public function Modificar(): bool;", "function can_process() {\t\n\n\tif ($_POST['expd_percentage_amt'] == \"\"){\n\t\tdisplay_error(trans(\"You need to provide the maximum monthly pay limit percentage for employee loan.\"));\n\t\tset_focus('expd_percentage_amt');\n\t\treturn false;\n\t} \n\tif (!check_num('expd_percentage_amt'))\t{\n\t\tdisplay_error(trans(\"Maximum EMI Limit should be a positive number\"));\n\t\tset_focus('login_tout');\n\t\treturn false;\n\t}\n\tif (!check_num('ot_factor'))\t{\n\t\tdisplay_error(trans(\"OT Multiplication Factor should be a positive number\"));\n\t\tset_focus('ot_factor');\n\t\treturn false;\n\t}\n\tif($_POST['monthly_choice'] == 1 && ( $_POST['BeginDay'] != 1 || $_POST['EndDay'] != 31 )) {\n\t\tdisplay_error(trans(\"For Current Month the Begin Date should be 1 and end date should be 31.\"));\n\t\tset_focus('BeginDay');\n\t\tset_focus('EndDay');\n\t\treturn false;\n\t}\n\t\t\n\tif (strlen($_POST['salary_account']) > 0 || strlen($_POST['paid_from_account']) > 0) {\n\t\tif (strlen($_POST['salary_account']) == 0 && strlen($_POST['paid_from_account']) > 0) {\n\t\t\tdisplay_error(trans(\"The Net Pay Debit Code cannot be empty.\"));\n\t\t\tset_focus('salary_account');\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (strlen($_POST['salary_account']) > 0 && strlen($_POST['paid_from_account']) == 0 ) {\n\t\t\tdisplay_error(trans(\"The Net Pay Credit Code cannot be empty.\"));\n\t\t\tset_focus('paid_from_account');\n\t\t\treturn false;\n\t\t}\n\t}\n\t\n\tif (strlen($_POST['travel_debit']) > 0 || strlen($_POST['travel_credit']) > 0) {\n\t\tif (strlen($_POST['travel_debit']) == 0 && strlen($_POST['travel_credit']) > 0) {\n\t\t\tdisplay_error(trans(\"The Travel Debit Code cannot be empty.\"));\n\t\t\tset_focus('travel_debit');\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (strlen($_POST['travel_debit']) > 0 && strlen($_POST['travel_credit']) == 0 ) {\n\t\t\tdisplay_error(trans(\"The Travel Credit Code cannot be empty.\"));\n\t\t\tset_focus('travel_credit');\n\t\t\treturn false;\n\t\t}\n\t}\n\t\n\tif (strlen($_POST['petrol_debit']) > 0 || strlen($_POST['petrol_credit']) > 0) {\n\t\tif (strlen($_POST['petrol_debit']) == 0 && strlen($_POST['petrol_credit']) > 0) {\n\t\t\tdisplay_error(trans(\"The Petrol Debit Code cannot be empty.\"));\n\t\t\tset_focus('petrol_debit');\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (strlen($_POST['petrol_debit']) > 0 && strlen($_POST['petrol_credit']) == 0 ) {\n\t\t\tdisplay_error(trans(\"The Petrol Credit Code cannot be empty.\"));\n\t\t\tset_focus('petrol_credit');\n\t\t\treturn false;\n\t\t}\n\t}\n\t\n\tif (strlen($_POST['debit_encashment']) > 0 || strlen($_POST['credit_encashment']) > 0) {\n\t\tif (strlen($_POST['debit_encashment']) == 0 && strlen($_POST['credit_encashment']) > 0) {\n\t\t\tdisplay_error(trans(\"The Encashment Debit Code cannot be empty.\"));\n\t\t\tset_focus('debit_encashment');\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (strlen($_POST['debit_encashment']) > 0 && strlen($_POST['credit_encashment']) == 0 ) {\n\t\t\tdisplay_error(trans(\"The Encashment Credit Code cannot be empty.\"));\n\t\t\tset_focus('credit_encashment');\n\t\t\treturn false;\n\t\t}\n\t}\n\t\n\treturn true;\t\n}", "public function act()\n\t{\n\t\n\t}", "public function declineMentorshipSession($mentorshipSessionId, $role, $id, $email) {\n $statusToSet = -1;\n $invitedPerson = null;\n $mentorshipSession = $this->getMentorshipSession($mentorshipSessionId);\n if($role === 'mentee') {\n $invitedPerson = $mentorshipSession->mentee;\n // set to cancelled by mentee if mentor has accepted or not responded yet\n if(in_array($mentorshipSession->status_id, [2, 4]) !== false)\n $statusToSet = 12;\n } else if($role === 'mentor') {\n $invitedPerson = $mentorshipSession->mentor;\n // set to cancelled by mentor if mentee has accepted or not responded yet\n if(in_array($mentorshipSession->status_id, [2, 3]) !== false)\n $statusToSet = 13;\n }\n if($statusToSet !== -1 && $invitedPerson->id == $id && $invitedPerson->email === $email) {\n $this->editMentorshipSession([\n 'status_id' => $statusToSet, 'mentorship_session_id' => $mentorshipSessionId\n ]);\n //mentor and mentee should become available again\n $this->setMentorshipSessionMentorAndMenteeStatusesToAvailable($mentorshipSession->mentor->id, $mentorshipSession->mentee->id);\n return true;\n } else {\n return false;\n }\n }", "public function select($mentor_id=0) {\n\n $mentor_id = $this->input->get('id');\n\n // mentors cannot choose another mentor\n if($this->user['menteer_type']==37)\n redirect('/dashboard','refresh');\n\n // if already have a selection can't go back\n if($this->user['is_matched'] > 0) {\n $this->session->set_flashdata('message', '<div class=\"alert alert-danger\">You have made your selection already.</div>');\n\n redirect('/dashboard','refresh');\n }\n\n // make sure mentor is not selected, if so return back to chooser\n\n $mentor_id = decrypt_url($mentor_id);\n\n $mentor = $this->Application_model->get(array('table'=>'users','id'=>$mentor_id));\n\n if($mentor['is_matched']==0){\n\n // update mentee\n $update_user = array(\n 'id' => $this->session->userdata('user_id'),\n 'data' => array('is_matched' => $mentor_id,'match_status' => 'pending','match_status_stamp' => date('Y-m-d H:i:s')),\n 'table' => 'users'\n );\n $this->Application_model->update($update_user);\n\n // update mentor\n $update_user = array(\n 'id' => $mentor_id,\n 'data' => array('is_matched' => $this->session->userdata('user_id'),'match_status' => 'pending','match_status_stamp' => date('Y-m-d H:i:s')),\n 'table' => 'users'\n );\n $this->Application_model->update($update_user);\n\n // send email to mentor to approve or decline request\n\n $data = array();\n $data['first_name'] = $this->user['first_name'];\n $data['last_name'] = $this->user['last_name'];\n\n $message = $this->load->view('/chooser/email/match_request', $data, true);\n $this->email->clear();\n $this->email->from($this->config->item('admin_email', 'ion_auth'), $this->config->item('site_title', 'ion_auth'));\n $this->email->to($mentor['email']);\n $this->email->subject('Request to Mentor');\n $this->email->message($message);\n\n $result = $this->email->send(); // @todo handle false send result\n\n $this->session->set_flashdata('message', '<div class=\"alert alert-info\">The Mentor you selected has been notified. You will be sent an email once they accept.</div>');\n redirect('/dashboard');\n\n\n }else{\n\n $this->session->set_flashdata('message', '<div class=\"alert alert-danger\">Sorry, the Mentor you selected was just matched. Please select again.</div>');\n redirect('/chooser');\n\n }\n\n }", "function can_process()\n{\n global $controller, $Mode;\n if ( strlen( $_POST[ 'reported_by' ] ) > 0 )\n {\n return\n (!is_empty( $_POST[ 'gate_code' ], 'Superior Response' )) &&\n (!is_empty( $_POST[ 'superior_confirmed' ], 'Superior Confirmation' )) &&\n (!is_empty( $_POST[ 'superior_comments' ], 'Superior Comments' ))\n ;\n }\n else\n {\n return\n (!is_empty( $_POST[ 'gate_code' ], 'Employee Response' )) &&\n (!is_empty( $_POST[ 'employee_confirmed' ], 'Employee Confirmation' )) &&\n (!is_empty( $_POST[ 'employee_comments' ], 'Employee Comments' ))\n ;\n }\n}", "public function acceptDeal(Barter $barter)\n {\n $left = $barter->getUserProductTroc()->name;\n $right = $barter->getUserRightProductTroc()->name;\n\n $talk = Talk::create([\n 'title' => $left.' againt '.$right,\n 'barter_id' => $barter->id,\n ]);\n\n //step 1.bis\n $barter->isClose = true;\n $barter->save();\n\n //step 2 :\n //- attach to the pivot table\n //- change the state of the products -> 1 means sells\n foreach ($barter->products()->get() as $product) {\n $product->state = 1;\n $product->save();\n $user = $product->user()->get();\n $talk->users()->attach($user);\n }\n\n //step 3 : closeTheDeal\n $this->closeDeal($barter);\n\n //step 3.bis : confirm the current user that he decline the barter\n session()->flash('message', ' Your close the barter !');\n\n //step 4 : go to the conversation\n return redirect('/talks/show/'.$talk->id);\n }", "public function set_a_gate($set=null) {\r\n\tif ($this->gatepost == -$this->status) { //doing the goback - as set by goback_to()\r\n\t\t$this->gatepost = $this->status;\r\n\t\treturn true;\r\n\t} else {\r\n\t\tif (!is_null($set)) {\r\n\t\t\t$this->status = $set;\r\n\t\t}\r\n\t\t$this->replace(); //now the goback can find it\r\n\t\treturn false;\r\n\t}\r\n}", "function run()\n {\n \n $agreement_id = $_GET[self :: PARAM_AGREEMENT_ID];\n \n if (! InternshipOrganizerRights :: is_allowed_in_internship_organizers_subtree(InternshipOrganizerRights :: ADD_MOMENT_RIGHT, $agreement_id, InternshipOrganizerRights :: TYPE_AGREEMENT))\n {\n $this->display_header();\n $this->display_error_message(Translation :: get('NotAllowed'));\n $this->display_footer();\n exit();\n }\n \n $agreement = $this->retrieve_agreement($agreement_id);\n \n $moment = new InternshipOrganizerMoment();\n $moment->set_agreement_id($agreement_id);\n $moment->set_owner($this->get_user_id());\n \n $form = new InternshipOrganizerMomentForm(InternshipOrganizerMomentForm :: TYPE_CREATE, $moment, $this->get_url(array(InternshipOrganizerAgreementManager :: PARAM_AGREEMENT_ID => $agreement_id)), $this->get_user());\n \n if ($form->validate())\n {\n $success = $form->create_moment();\n $this->redirect($success ? Translation :: get('InternshipOrganizerMomentCreated') : Translation :: get('InternshipOrganizerMomentNotCreated'), ! $success, array(InternshipOrganizerAgreementManager :: PARAM_ACTION => InternshipOrganizerAgreementManager :: ACTION_VIEW_AGREEMENT, InternshipOrganizerAgreementManager :: PARAM_AGREEMENT_ID => $agreement_id, DynamicTabsRenderer :: PARAM_SELECTED_TAB => InternshipOrganizerAgreementManagerViewerComponent :: TAB_MOMENTS));\n }\n else\n {\n $this->display_header($trail);\n $form->display();\n $this->display_footer();\n }\n }", "function enterObject($target, $method) {\n\t\t//for buildings, it's \"enter\"\n\t\t$obj = new Obj($this->mysqli, $target);\n\t\t$rule = $obj->getGroupRule($method);\n\t\tif (!$rule) return -1;//nobody can join\n\t\tif ($rule==2) {\n\t\t\t//invitation only\n\t\t\t$cr = $this->getCharRule($target, 2);//right to join\n\t\t\tif ($cr<1) return -2;//You can't join\n\t\t\t//otherwise it's okay to continue\n\t\t}\n\t\t//rule is 2 and you are invited OR rule is 1 and everybody is invited\n\t\t$sql = \"UPDATE `objects` SET `global_x`=NULL, `global_y`=NULL, `local_x`=0, `local_y`=0, `parent`=$target WHERE `uid`=$this->bodyId LIMIT 1\";\n\t\t$this->mysqli->query($sql);\n\t\tif ($this->mysqli->affected_rows==0) {\n\t\t\treturn -3;//enter failed\n\t\t}\n\t\telse {\n\t\t\t$this->x = NULL;\n\t\t\t$this->y = NULL;\n\t\t\t$this->localx = 0;\n\t\t\t$this->localy = 0;\n\t\t\t$this->building = $target;\n\t\t\t$this->updateCharLocTime(NULL, NULL, 0, 0, $target, 2, 0);\n\t\t\treturn 1;//success\n\t\t}\n\t}", "public function valid()\n {\n $allowed_values = [\"Purchase\", \"Adjustment\", \"Transfer\"];\n if (!in_array($this->container['procurement_type'], $allowed_values)) {\n return false;\n }\n return true;\n }", "public function validated();", "public function stop() {\n if($this->combatantA->hp > 0) {\n $this->winnerType = \"player\";\n $this->winnerID = $this->combatantAID;\n } elseif ($this->combatantB->hp > 0) {\n $this->winnerType = ($this->type == \"pvp\" ? \"player\" : \"monster\");\n $this->winnerID = $this->combatantBID;\n } else {\n $this->winnerType = \"draw\";\n }\n\n // Bounty + XP\n if($this->type == \"monster\" && $this->combatantB->hp <= 0) {\n $loot = $this->combatantB->dropItems($this->combatantA->getDropItemPerc());\n $this->combatantA->gainItems($loot);\n \n $contact = $this->combatantB->dropContact($this->combatantA->getDropContactPerc());\n $this->combatantA->gainContact($contact, \"battle\");\n\n /**\n * monster->xp can be defined to deviate from the standard\n * attack / 2 xp reward\n */\n if(isset($this->combatantB->xp)) {\n $this->combatantA->gainXp($this->combatantB->xp, \"battle\");\n } else {\n $this->combatantA->gainXp($this->combatantB->attack / 4, \"battle\");\n }\n }\n\n $this->combatantA->ongoingBattleID = null;\n if($this->type == \"pvp\") {\n // @todo Message to PVP enemy\n $this->combatantB->ongoingBattleID = null;\n }\n\n $this->state = \"resolved\";\n $this->objectState = \"\";\n\n /**\n * ToDo: why does backupbehavior think that no attribute changed\n * if we set ongoingBattleID to null?\n */\n // $this->combatantA->save();\n $this->combatantA->update();\n if($this->type == \"pvp\") {\n $this->combatantB->save();\n }\n\n $this->update();\n $this->reconstructCombatants();\n \n // Notify the world about this result\n $event = new BattleEvent($this);\n $this->combatantA->onFinishedBattle($event);\n if($this->type == \"pvp\") {\n $this->combatantB->onFinishedBattle($event);\n }\n }", "public function accept()\n {\n return true;\n }", "private function validate() {\n\t\n\t\t\treturn false;\n\t}", "public function authorize()\n {\n $user = $this->user();\n\n // Check if user is a mentor\n if ($user->type !== 'mentor') {\n throw new AuthorizationException('Sorry! Only mentors are allowed to create or update assignments');\n }\n\n // Validate mentorship id is numeric to avoid db exception on query\n if (!is_numeric($mentorship_id = $this->input('mentorship_id'))) {\n logger('Invalid input for mentorship_id supplied');\n throw new AuthorizationException('Invalid input supplied for mentorship_id');\n }\n\n // Check mentorship belongs to current mentor\n $mentorship = SolutionMentorship::query()->findOrNew($mentorship_id);\n\n if (! ($mentorship->mentor_id == $user->id)) {\n throw new AuthorizationException('Sorry! You can only create or update assignments on mentorships assigned to you');\n }\n\n return true;\n }", "abstract function allowEditAction();", "function yy_accept()\n {\n if (self::$yyTraceFILE) {\n fprintf(self::$yyTraceFILE, \"%sAccept!\\n\", self::$yyTracePrompt);\n }\n while ($this->yyidx >= 0) {\n $stack = $this->yy_pop_parser_stack();\n }\n /* Here code is inserted which will be executed whenever the\n ** parser accepts */\n }", "public function dispense()\n {\n $this->addValidator('model', new Validator_HasValue());\n }", "public function setTransmissor()\r\n {\r\n }", "public function Valid();", "public function can($status)\n {\n switch ($status) {\n case 'nominateAdmit':\n return (is_null($this->nominateAdmit) and is_null($this->nominateDeny));\n case 'undoNominateAdmit':\n return ($this->nominateAdmit and is_null($this->finalAdmit));\n case 'nominateDeny':\n return (is_null($this->nominateAdmit) and is_null($this->nominateDeny));\n case 'undoNominateDeny':\n return (!is_null($this->nominateDeny) and is_null($this->finalDeny));\n case 'finalAdmit':\n return ($this->nominateAdmit and is_null($this->finalAdmit));\n case 'finalDeny':\n return ($this->nominateDeny and is_null($this->finalDeny));\n case 'undoFinalAdmit':\n return (!is_null($this->finalAdmit) and is_null($this->acceptOffer) and is_null($this->declineOffer));\n case 'undoFinalDeny':\n return (!is_null($this->finalDeny) and is_null($this->acceptOffer) and is_null($this->declineOffer));\n case 'acceptOffer':\n case 'declineOffer':\n return ($this->finalAdmit and is_null($this->acceptOffer) and is_null($this->declineOffer));\n case 'undoAcceptOffer':\n return !is_null($this->acceptOffer);\n case 'undoDeclineOffer':\n return !is_null($this->declineOffer);\n }\n throw new \\Jazzee\\Exception(\"{$status} is not a valid decision status type\");\n }", "function isDeclined() {\n return $this->getStatus() == UserpointsTransaction::STATUS_DECLINED;\n }", "protected function isTargetCorrect() {}", "function member_apply($type){\n\tglobal $user;\n \n if (1 > $user->uid || '0'==$user->status) {\n $mes = 'You have no right to visit the page. <br />' .\n 'Before you visit this page, you need to login and active your account.';\n \treturn theme('block-promoting', array('title'=>t('Prompting'), 'message'=>$mes));\n }\n \n if (in_array('organizer', $user->roles)) {\n \t$vars = array(\n 'title' => 'Promoting',\n 'mes' => t('You have been organizer, do not need to apply it again.')\n );\n return theme('block-promoting', $vars);\n }\n \n $retrieved = db_query('select * from {users_organizer} where uid=:uid', array(':uid'=>$user->uid))->fetchAllAssoc('uid');\n \n if (!empty($retrieved)) {\n $organizerInfo = array_pop($retrieved);\n $mesStatus = 'status';\n switch($organizerInfo->verify) {\n \tcase 'waiting':\n $mes = t('Your application for organizer had commited, Lasooo Team is verifing your information, Please waiting a moment, we will contact you as soon as passible.');\n break;\n case 'success':\n $mes = t('You have been organizer, do not need to apply again.');\n break;\n case 'fail':\n $mes = t('Failed to apply organizer, Please checking your information.');\n $mesStatus = 'error';\n break;\n default:\n $mes = t('Hello, What we can do for you?');\n }\n \n $messages = drupal_get_messages();\n \n \tdrupal_set_message($mes, $mesStatus);\n if ('success'==$organizerInfo->verify) {\n \treturn ' ';\n }\n }\n \n return drupal_get_form('member_apply_organizer_form');\n}", "function verify()\n\t{\n\t\t$data = filter_forwarded_data($this);\n\t\tif(!empty($_POST))\n\t\t{\n\t\t\t# Approve or reject a confirmation\n\t\t\t$result = $this->_confirmation->verify($_POST);\n\t\t\t\n\t\t\t$actionPart = current(explode(\"_\", $_POST['action']));\n\t\t\t$actions = array('reject'=>'rejected', 'post'=>'posted', 'approve'=>'approved', 'verify'=>'verified');\n\t\t\t$actionWord = !empty($actions[$actionPart])? $actions[$actionPart]: 'made';\n\t\t\t\n\t\t\t$item = in_array($_POST['action'], array('approve','reject'))? 'posting': 'confirmation';\n\t\t\t$this->native_session->set('msg', ($result['boolean']? \"The \".$item.\" has been \".$actionWord: (!empty($result['msg'])? $result['msg']: \"ERROR: The \".$item.\" could not be \".$actionWord) ));\n\t\t}\n\t\telse\n\t\t{\n\t\t\t# Get list type\n\t\t\t$data['list_type'] = current(explode(\"_\", $data['action']));\n\t\t\t$data['area'] = 'verify_confirmation';\n\t\t\t$this->load->view('confirmation/addons', $data);\n\t\t}\n\t}", "public function isRelawan();", "public function testCanMakeInvestment() : void\n {\n $this->tranche->makeInvestment(100);\n\n $this->assertEquals(49900, $this->tranche-> getRemainingInvestment());\n }", "public function projectContractAccepted()\n\t{\n\n\t}", "public function canDelegate()\n { return (($this->esgrp == 'CS') || ($this->esgrp == 'BS') || ($this->esgrp == 'AS'))\n ? true : false;\n }", "public function afterValidate() {\n\t\tif($this->allowFrom !== \"\"){\n\t\t\t$res\t= preg_split(\"/\\./\",$this->allowFrom);\n\t\t\t$this->allowFrom= sprintf(\"%03d\",$res[0]).\".\".sprintf(\"%03d\",$res[1]).\".\".sprintf(\"%03d\",$res[2]).\".\".sprintf(\"%03d\",$res[3]);\n\t\t}else{\n\t\t\t$this->allowFrom = NULL;\n\t\t}\n\t\t//----------------------------------------------------------------------\n\t\t$res\t= NULL;\n\t\t// ---------------------------------------------------------------------\n\t\tif($this->allowTo !== \"\"){\n\t\t\t$res\t= preg_split(\"/\\./\",$this->allowTo);\n\t\t\t$this->allowTo\t= sprintf(\"%03d\",$res[0]).\".\".sprintf(\"%03d\",$res[1]).\".\".sprintf(\"%03d\",$res[2]).\".\".sprintf(\"%03d\",$res[3]);\n\t\t}else{\n\t\t\t$this->allowTo = NULL;\n\t\t}\n\t\t//----------------------------------------------------------------------\n\t\tparent::afterValidate();\n\t}", "public function promotional();", "function _approveDo() {\n\t\tdefined('_JEXEC') or die( 'Invalid Token' );\n\n\t\t// Instanz der Tabelle\n\t\t$row = JTable::getInstance( 'turniere', 'TableCLM' );\n\t\t$row->load( $this->id ); // Daten zu dieser ID laden\n\n\t $clmAccess = clm_core::$access; \n\t\tif (($row->tl != clm_core::$access->getJid() AND $clmAccess->access('BE_tournament_edit_round') !== true) OR $clmAccess->access('BE_tournament_edit_round') === false) {\n\t\t\t$this->app->enqueueMessage( JText::_('TOURNAMENT_NO_ACCESS'),'warning' );\n\t\t\treturn false;\n\t\t}\n\n\t\t$cid = clm_core::$load->request_array_int('cid');\n\t\t\t\t\t\t\t\t\n\t\t$roundID = $cid[0];\n\t\n\t\t// Rundendaten holen\n\t\t$round =JTable::getInstance( 'turnier_runden', 'TableCLM' );\n\t\t$round->load( $roundID ); // Daten zu dieser ID laden\n\n\t\t// Runde existent?\n\t\tif (!$round->id) {\n\t\t\t$this->app->enqueueMessage( CLMText::errorText('ROUND', 'NOTEXISTING'),'warning' );\n\t\t\treturn false;\n\t\t\n\t\t// Runde gehört zu Turnier?\n\t\t} elseif ($round->turnier != $this->id) {\n\t\t\t$this->app->enqueueMessage( CLMText::errorText('ROUND', 'NOACCESS'),'warning' );\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t$task\t\t= clm_core::$load->request_string('task');\n//\t\t$approve\t= ($task == 'approve'); // zu vergebender Wert 0/1\n\t\tif ($task == 'approve') $approve = 1; else $approve = 0; // zu vergebender Wert 0/1\n\t\n\t\t// weiterer Check: Ergebnisse vollständig?\n\t\tif ($approve == 1) {\n\t\t\t$tournamentRound = new CLMTournamentRound($this->id, $cid[0]);\n\t\t\tif (!$tournamentRound->checkResultsComplete()) {\n\t\t\t\t$this->app->enqueueMessage( CLMText::errorText('RESULTS', 'INCOMPLETE'),'warning' );\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\n\t\t// jetzt schreiben\n\t\t$round->tl_ok = $approve;\n\t\tif (!$round->store()) {\n\t\t\t$this->app->enqueueMessage( $row->getError(),'error' );\n\t\t\treturn false;\n\t\t}\n\t\t\t\t\t\t\t\t\t \n\t\tif ($approve) {\n\t\t\t$this->app->enqueueMessage( $round->name.\" \".JText::_('CLM_APPROVED') );\n\t\t} else {\n\t\t\t$this->app->enqueueMessage( $round->name.\" \".JText::_('CLM_UNAPPROVED') );\n\t\t}\n\t\n\t\t// Log\n\t\t$clmLog = new CLMLog();\n\t\t$clmLog->aktion = JText::_('ROUND').\" \".$round->name.\" (ID: \".$roundID.\"): \".$task;\n\t\t$clmLog->params = array('tid' => $this->id); // TurnierID wird als LigaID gespeichert\n\t\t$clmLog->write();\n\t\n\t\n\t\treturn true;\n\t\n\t}", "public function isAccepted_as_talk() {\n\t\t$this->getAccepted_as_talk();\n\t}", "function declineJob($postData)\n\t\t{\n\t\t\t//update the accept flag\n\t\t\t$update_1 = $this->manageContent->updateValueWhere(\"award_info\",\"is_declined\",1,\"bid_id\",$postData['bid']);\n\t\t\t$update_2 = $this->manageContent->updateValueWhere(\"award_info\",\"result_date\",date('Y-m-d g:i:s'),\"bid_id\",$postData['bid']);\n\t\t\t\n\t\t\tif( $update_1 == 1 && $update_2 == 1 )\n\t\t\t{\n\t\t\t\t//get the bid information\n\t\t\t\t$bid_details = $this->manageContent->getValue_where('bid_info','*','bid_id',$postData['bid']);\n\t\t\t\t\n\t\t\t\t//get the project details on which bid is made\n\t\t\t\t$project_details = $this->manageContent->getValue_where(\"project_info\",\"*\",\"project_id\",$bid_details[0]['project_id']);\n\t\t\t\t\n\t\t\t\t//get contractor details\n\t\t\t\t$con_details = $this->manageContent->getValue_where('user_info', '*', 'user_id', $bid_details[0]['user_id']);\n\t\t\t\t//getting employer details\n\t\t\t\t$emp_details = $this->getEmailIdFromUserId($project_details[0]['user_id']);\n\t\t\t\t//sending mail to employer\n\t\t\t\t$this->mailSent->mailForDecliningJob($emp_details[0], $emp_details[1], $con_details[0]['name'], $project_details[0]['title']);\n\t\t\t\t\n\t\t\t\techo \"Successfully declined.\";\n\t\t\t}\n\t\t}", "protected function allow() {\n\t\t\n\t\treturn true;\n\t}", "function agenda_proposer_affecter_evt($agenda_tmp, $evt_droit=3)\r\n{\r\n\t////\tAFFECTER UNIQUEMENT (mon agenda perso)\r\n\tif($agenda_tmp[\"type\"]==\"utilisateur\" && is_auteur($agenda_tmp[\"id_utilisateur\"]))\r\n\t\treturn \"affecter\";\r\n\t////\tPROPOSER OU AFFECTER (écriture sur l'agenda OU écriture limité + proprio de l'evt)\r\n\telseif($_SESSION[\"user\"][\"id_utilisateur\"]>0 && ($agenda_tmp[\"droit\"]>=2 || ($agenda_tmp[\"droit\"]==1.5 && $evt_droit==3)))\r\n\t\treturn \"proposer_affecter\";\r\n\t////\tPROPOSER UNIQUEMENT (lecture sur l'agenda OU ecriture limité + invité)\r\n\telseif(($_SESSION[\"user\"][\"id_utilisateur\"]>0 && $agenda_tmp[\"droit\"]<=1) || ($_SESSION[\"user\"][\"id_utilisateur\"]==0 && $agenda_tmp[\"droit\"]==1.5))\r\n\t\treturn \"proposer\";\r\n\t////\tSINON NADA...\r\n\telse\r\n\t\treturn false;\r\n}", "public function canMakeDeclaration()\n {\n return $this->hasCheckedAnswers() && $this->canCheckAnswers();\n }", "function run_activity_pos()\n\t\t{\n\t\t\tif ($this->bo_agent->sendOnPosted())\n\t\t\t{//First case, POSTed emails, we will try to see if there are some POSTed infos\n\t\t\t\t//form settings POSTED with wf_agent_mail_smtp['xxx'] values\n\t\t\t\t$this->retrieve_form_settings();\n\t\t\t\tif (!(isset($this->agent_values['submit_send'])))\n\t\t\t\t{\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t//erase agent data with the POSTed values\n\t\t\t\t\t$this->bo_agent->set($this->agent_values);\n\t\t\t\t\t\n\t\t\t\t\t//this will send an email only if the configuration says to do so\n\t\t\t\t\tif (!($this->bo_agent->send_post()))\n\t\t\t\t\t{\n\t\t\t\t\t\t$this->error[] = lang('Smtp Agent has detected some errors when sending email on demand whith this activity');\n\t\t\t\t\t\t$ok = false;\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$ok = true;\n\t\t\t\t\t}\n\t\t\t\t\t$this->error[] = $this->bo_agent->get_error();\n\t\t\t\t\tif ($this->bo_agent->debugmode) echo '<br />POST: Mail agent in DEBUG mode:'.implode('<br />',$this->error);\n\t\t\t\t\treturn $ok;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{//Second case , not about POSTed values, the bo_agent will see himself he he need\n\t\t\t// to do something on end of the user code\n\t\t\t\t//this will send an email only if the configuration says to do so\n\t\t\t\tif (!($this->bo_agent->send_end()))\n\t\t\t\t{\n\t\t\t\t\t$this->error[] = lang('Smtp Agent has detected some errors when sending email at the end of this activity');\n\t\t\t\t\t$ok = false;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$ok = true;\n\t\t\t\t}\n\t\t\t\t$this->error[] = $this->bo_agent->get_error();\n\t\t\t\tif ($this->bo_agent->debugmode) echo '<br />END: Mail agent in DEBUG mode:'.implode('<br />',$this->error);\n\t\t\t\treturn $ok;\n\t\t\t}\n\t\t}", "function procCtrl($ar){\n $ok = true;\n \n $p = new XParam($ar, array());\n \n // dtff !empty = date valide = écran edition\n // age si < 18 => champs complémentaire\n $dtnaiss = $this->xset->desc['dtnaiss']->post_edit($p->get('dtnaiss'));\n $diff = date_diff(new DateTime(date('Y-m-d')), new DateTime($dtnaiss->raw));\n if ($diff->y < 18){\n foreach($this->eplmodule->modcustomer->parentMandFields as $fn){\n $v = trim($p->get($fn));\n if (empty($v)){\n $ok = false;\n }\n }\n if (!$ok){\n $_REQUEST['message'] .= \"Pour un mineur renseigner les champs 'Responsable légal'\";\n }\n }\n if ($ok && $ar['_typecontrol'] == 'insert'){\n $wtpcard = trim($p->get('wtpcard'));\n if (empty($wtpcard)){\n $ok = false;\n $_REQUEST['message'] = 'Merci de renseigner le numéro de carte'; \n } else {\n list($okcard, $messcard) = $this->checkNewWTPCard($wtpcard);\n if (!$okcard){\n $ok = false;\n $_REQUEST['message'] .= $messcard;\n }\n }\n }\n// $_REQUEST['message'] .= 'TESTS';\n// $ok = false;\n$this->erreurCtrl = !$ok;\n return $ok;\n\n }", "function promote($args, &$request) {\n\t\treturn $this->_initiateEditorDecision($args, $request, 'PromoteForm');\n\t}", "public function validarLogicasNegocio($operacion){\n return;\n }", "public function validarLogicasNegocio($operacion){\n return;\n }", "public function store()\n\t{ \n $idPending = OrdenEsM::idPending(); \n $handheld = isset($input['handheld']) ? (int) $input['handheld'] : 0;\n if($idPending == -1 || $handheld == 1){\n $input = Input::All();\n $ordenM = new OrdenEsM(); \n //$ordenM->customer_id = Auth::user()->customer_id;\n $ordenM->customer_id = $input['customer_id'];\n $ordenM->warehouse_id = $input['warehouse_id'];\n $ordenM->folio = $input['folio'];\n $ordenM->type = $input['type'];\n $ordenM->pending = $input['pending'];\n $ordenM->created_at = $input['created_at'];\n $ordenM->updated_at = $input['updated_at'];\n $ordenM->save();\n return \"yes save\";\n }\n return \"no save\"; \n\t}", "public function authorize()\n {\n// $this->authorize('create', Reply::class);\n// Вместо authorize используем Gate:\n return Gate::allows('create', Reply::class); //проверка на спам сообщениями\n// return true;\n }" ]
[ "0.5110424", "0.5050101", "0.50403863", "0.5001049", "0.49633408", "0.491917", "0.48724106", "0.4865056", "0.4854512", "0.48530373", "0.48507464", "0.48219568", "0.4802577", "0.4790842", "0.478329", "0.47725713", "0.47666234", "0.4752614", "0.4752614", "0.4752614", "0.4752614", "0.4752614", "0.4752614", "0.4752614", "0.4752614", "0.47507945", "0.47490484", "0.47368306", "0.47275132", "0.47275132", "0.47275132", "0.47275132", "0.4706304", "0.4703641", "0.46631953", "0.4650573", "0.46458778", "0.4640897", "0.46302766", "0.4628382", "0.46206272", "0.4619759", "0.46065283", "0.46064377", "0.4603956", "0.4600411", "0.4600411", "0.4600411", "0.4600411", "0.45989215", "0.45904303", "0.45752865", "0.45648435", "0.45616752", "0.45609584", "0.45603198", "0.45551568", "0.45461994", "0.45448664", "0.4542873", "0.45370352", "0.45319107", "0.45302016", "0.45034325", "0.44775736", "0.44718468", "0.44610685", "0.4460213", "0.4458382", "0.444983", "0.44383165", "0.44362643", "0.44342536", "0.4429588", "0.44279975", "0.44232857", "0.44232628", "0.44166788", "0.44160554", "0.44152877", "0.44137248", "0.44129542", "0.441289", "0.44054228", "0.44002998", "0.4395488", "0.4389043", "0.43833953", "0.43807614", "0.43775618", "0.43769076", "0.43754148", "0.43753567", "0.43729603", "0.43725717", "0.43634865", "0.43595716", "0.43590167", "0.43590167", "0.43568924", "0.43560106" ]
0.0
-1
accept match (mentor function)
public function accept() { if($this->user['menteer_type']==37 && $this->user['is_matched'] > 0 && $this->user['match_status']=='pending') { // mentor update $update_user = array( 'id' => $this->session->userdata('user_id'), 'data' => array('match_status' => 'active','match_status_stamp' => date('y-m-d H:i:s')), 'table' => 'users' ); $this->Application_model->update($update_user); // mentee update $update_user = array( 'id' => $this->user['is_matched'], 'data' => array('match_status' => 'active','match_status_stamp' => date('y-m-d H:i:s')), 'table' => 'users' ); $this->Application_model->update($update_user); $mentee = $this->Application_model->get(array('table'=>'users','id'=>$this->user['is_matched'])); // notify mentee about the accept $data = array(); $data['first_name'] = $this->user['first_name']; $data['last_name'] = $this->user['last_name']; $message = $this->load->view('/chooser/email/accept', $data, true); $this->email->clear(); $this->email->from($this->config->item('admin_email', 'ion_auth'), $this->config->item('site_title', 'ion_auth')); $this->email->to($mentee['email']); $this->email->subject('Mentor has accepted'); $this->email->message($message); $result = $this->email->send(); // @todo handle false send result $this->session->set_flashdata('message', '<div class="alert alert-success">The Mentee has been notified about the acceptance.</div>'); redirect('/dashboard'); }else{ redirect('/dashboard'); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function match( $data );", "public function matching(Closure $match);", "public function runMatch()\n {\n }", "public function match(mixed $value);", "public function matches( Match_Target $target );", "public function match($value);", "public function GetMatch ();", "public function match() {\r\n\t\treturn false;\r\n\t}", "function match($field, $value);", "public function getMatch();", "public abstract function matches($value);", "public function match($message);", "public function match($subject);", "public function match( $pURI );", "protected function _match()\n {\n // SMART/TNT\n $smart = $this->_smart();\n if( $this->name == 'smart' ) return in_array($this->args, $smart) ? true : false;\n // GLOBE/TM\n $globe = $this->_globe();\n if( $this->name == 'globe' ) return in_array($this->args, $globe) ? true : false;\n // SUN\n $sun = $this->_sun();\n if( $this->name == 'sun' ) return in_array($this->args, $sun) ? true : false;\n }", "function testIfmatchWithModifiers(){\n\t\t#mdx:ifmatch2\n\t\tParam::get('phone')\n\t\t\t->filters()\n\t\t\t->ifmatch('/[a-z]/i', 'Phone cannot contain letters');\n\n\t\t$error = Param::get('phone')->process(['phone'=>'9829574K'])->error;\n\t\t#/mdx var_dump($error)\n\t\t$this->assertEquals(\"Phone cannot contain letters\", $error);\n\n\t}", "public function getMatcher();", "public function SetMatch ($match);", "static function match($string);", "abstract public function getRouteMatch();", "public function match(Request $request)\n {\n }", "abstract public function accept(string $text): bool;", "public function match(Message $message);", "public function updateMatch(){\n\t\t\n\t\t}", "function process_matches(&$output, &$match)\n\t{\n\t\tif (sizeof($match) > 0)\n\t\t{\n\t\t\t$data = implode(\"\\n\", $match);\n\t\t\tarray_unshift($output, new vB_Text_Diff_Entry($data, $data));\n\t\t}\n\n\t\t$match = array();\n\t}", "public function matches($type);", "public function matches($type);", "public function setMatch($match)\n{\n$this->match = $match;\n\nreturn $this;\n}", "function trieParTxt($txtVerif,$txtARespecter){\n\t\t\t\t$txtCorrespondant = false;\n\t\t\t\t\n\t\t\t\tif( preg_match('#'.$txtARespecter.'#',$txtVerif)) {\n\t\t\t\t\t$txtCorrespondant = true;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\treturn $txtCorrespondant;\n\t\t\t}", "public function match(ServerRequestInterface $request):Result;", "public function GetMatchedParams ();", "public function match($uri);", "public function match ($uri);", "public function Matches (\\MvcCore\\IRequest $request);", "public function setMatch(Match $match);", "private function paramMatch($match)\n {\n if (isset($this->params[$match[1]])) {\n return '('.$this->params[$match[1]].')';\n }\n return '([^/]+)';\n }", "function mLANGMATCHES(){\n try {\n $_type = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$LANGMATCHES;\n $_channel = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$DEFAULT_TOKEN_CHANNEL;\n // Tokenizer11.g:236:3: ( 'langmatches' ) \n // Tokenizer11.g:237:3: 'langmatches' \n {\n $this->matchString(\"langmatches\"); \n\n\n }\n\n $this->state->type = $_type;\n $this->state->channel = $_channel;\n }\n catch(Exception $e){\n throw $e;\n }\n }", "protected function match()\n {\n if ($this->position >= $this->length) {\n $this->stream[] = new Token(\n Tokens::T_EOF,\n null,\n $this->position\n );\n\n return false;\n }\n\n // if we don't get any matches move the position to the end of the file\n // and return true so we can get an EOF token on the next round.\n if (!preg_match($this->regex, $this->input, $matches, PREG_OFFSET_CAPTURE, $this->position)) {\n $this->position = $this->length;\n return true;\n }\n\n // if we're heare we found some tokens\n $c = count($matches);\n for ($i = 1; $i < $c; $i++) {\n if ('' === $matches[$i][0] || !isset($this->name_cache[$i-1])) {\n continue;\n }\n\n // move the position to our found offset\n $this->position = $matches[$i][1];\n\n $this->stream[] = new Token(\n $this->name_cache[$i-1],\n $matches[$i][0],\n $this->position\n );\n\n break;\n }\n\n $this->position += strlen($matches[0][0]);\n\n return true;\n }", "public function match() {\n if ( isset( $_POST['submit'] ) && !empty( $_POST['submit'] ) ) {\n Found::match( $_POST['lost'], $_POST['found'] );\n } else {\n // in case some how POST method get problem, malicious user attack\n header( \"Location: /voodoo/\" );\n exit;\n }\n header( \"Location: /voodoo/found/{$_POST['found']}\" );\n exit;\n }", "public function testParseCallbackWithMatch()\n {\n $file = '#test';\n $rule = [\n 'directive' => '~#test(\\s*\\(((.*))\\))?~',\n 'replace' => function ($match) { return 'replaced !'.$match; },\n ];\n $extras = []; // extra needed parameters like paths \n\n $out = $this->parser->parse($file, $rule, $extras);\n\n $this->assertSame('replaced !#test', $out);\n }", "public function match($request) {\n $requestArr = $this->explodeRequest($request);\n /*if (count($requestArr) < $this->countPatternArr) {\n return false;\n }*/\n for ($i = 0; $i < $this->countPatternArr; $i++) {\n if ($this->isParam($this->patternArr[$i])) {\n continue;\n }\n if (0 !== strcasecmp($this->patternArr[$i], $requestArr[$i])) {\n return false;\n }\n }\n return true;\n }", "function handle($match, $state, $pos, &$handler){\n \n $match = substr($match,9,-1); // Strip markup\n $match = preg_split('/\\|/u',$match,2); // Split commands\n \n if (!isset($match[1])) $match[1] = \"New page\";\n \n return $match;\n }", "public function get_matched_handler()\n {\n }", "public function match($rule, $screen, $field_group)\n {\n }", "public function match($rule, $screen, $field_group)\n {\n }", "public function match($rule, $screen, $field_group)\n {\n }", "public function match($rule, $screen, $field_group)\n {\n }", "public function match($rule, $screen, $field_group)\n {\n }", "public function match($rule, $screen, $field_group)\n {\n }", "public function match($rule, $screen, $field_group)\n {\n }", "public function match($rule, $screen, $field_group)\n {\n }", "public function match($rule, $screen, $field_group)\n {\n }", "public function match($rule, $screen, $field_group)\n {\n }", "public function match($rule, $screen, $field_group)\n {\n }", "public function match($rule, $screen, $field_group)\n {\n }", "public function match($rule, $screen, $field_group)\n {\n }", "public function match($rule, $screen, $field_group)\n {\n }", "public function match($rule, $screen, $field_group)\n {\n }", "public function match($rule, $screen, $field_group)\n {\n }", "public function match($rule, $screen, $field_group)\n {\n }", "public function match($rule, $screen, $field_group)\n {\n }", "public function match($rule, $screen, $field_group)\n {\n }", "public function match($rule, $screen, $field_group)\n {\n }", "public function match($rule, $screen, $field_group)\n {\n }", "public function match($rule, $screen, $field_group)\n {\n }", "function handle($match, $state, $pos, Doku_Handler $handler){\n return array($state, $match);\n }", "function match($pattern,&$matches = null){\n\t\t$out = preg_match($pattern,$this,$matches);\n\t\tif(is_array($matches)){\n\t\t\tforeach($matches as &$m){\n\t\t\t\t$m = new self($m);\n\t\t\t}\n\t\t}\n\t\treturn $out;\n\t}", "function like_match($searchParam, $subject) {\n $preg = preg_grep(\"/(.*)\" . strtolower($searchParam) . \"(.*)/\", [strtolower($subject)]);\n if(!empty($preg)){\n return true;\n }\n return false;\n}", "public function match(ServerRequestInterface $request);", "protected function match($url){\n\n //loop through routing table ($this->routes), check for a regex match to the route\n foreach ($this->routes as $route => $params):\n if( preg_match($route, $url, $matches) ){\n //matches contains the matches (params)\n // ($matches example) Array ( [0] => contolla/actioon [controller] => contolla [1] => contolla [action] => actioon [2] => actioon )\n foreach ($matches as $key => $match) {\n // we only want the custom named capture groups (strings)\n if(is_string($key)){\n //store new params from regex capture groups in the $routes params\n $params[$key] = $match;\n }\n }\n //store routes params in the instace of this object\n $this->params = $params;\n return true;\n }\n endforeach;\n //no match found\n return false;\n\n }", "abstract public function matches($object) : bool;", "function get_match($regex,$content)\n{\n preg_match($regex,$content,$matches);\n return (isset($matches[1]) ? $matches[1] : false);\n}", "public function match($methods, $match, $rewrite = null, $closure = null);", "function testIfmatch(){\n\t\t#mdx:ifmatch\n\t\tParam::get('name')\n\t\t\t->filters()\n\t\t\t->ifmatch('/\\d/', 'Name cannot contain digits');\n\n\t\t$error = Param::get('name')->process(['name'=>'M4ry'])->error;\n\t\t#/mdx var_dump($error)\n\t\t$this->assertEquals(\"Name cannot contain digits\", $error);\n\n\t}", "static function match($request) {\n foreach (self::$matchers as $matcher) {\n $response = $matcher($request);\n if ($response !== null) {\n $response->request = $request;\n return $response;\n }\n } \n return null;\n }", "function preg_match_r($pattern,$subject){\n\tpreg_match($pattern, $subject,$data);\n\treturn $data;\n}", "function yy_accept()\n {\n if (self::$yyTraceFILE) {\n fprintf(self::$yyTraceFILE, \"%sAccept!\\n\", self::$yyTracePrompt);\n }\n while ($this->yyidx >= 0) {\n $stack = $this->yy_pop_parser_stack();\n }\n /* Here code is inserted which will be executed whenever the\n ** parser accepts */\n }", "public function match(string $match): self\n {\n return $this->state(['match' => $match]);\n }", "public function regexp($regexp)\n {\n\n }", "function finish_match($buy_did, $sell_did)\n {\n }", "public function match($url){\n // $reg_exp = \"/^(?P<controller>[a-zA-Z]+)\\/(?P<action>[a-zA-Z]+)$/\";\n foreach($this->routes as $route => $params){\n if(preg_match($route, $url, $matches)){\n foreach($matches as $key=>$match){\n if(is_string($key)){\n $params[$key] = $match;\n }\n }\n $this->params = $params;\n \n return true;\n }\n }\n return false;\n }", "public function onMatch(array $matches, string $pattern): void {\n if ($this->insert) {\n $this->insert->values($matches);\n }\n }", "function test_value($text, $type){\n global $varregex, $labelregex, $intregex, $stringregex, $boolregex, $typeregex;\n if($type == 'var'){\n if(preg_match($varregex, $text)) {\n return $text;\n }\n else exit(calls::call_error(\"Error: Chybný tvar argumentu typu var.\\n\", 21));\n }\n elseif ($type == 'label') {\n if(preg_match($labelregex, $text)){\n return $text;\n }\n else exit(calls::call_error(\"Error: Chybný tvar argumentu typu label.\\n\", 21));\n }\n elseif ($type == 'int') {\n if(preg_match($intregex, $text)){\n return $text;\n }\n else exit(calls::call_error(\"Error: Chybný tvar argumentu typu int.\\n\", 21));\n }\n elseif ($type == 'string') {\n if(preg_match($stringregex, $text)){\n return $text;\n }\n else exit(calls::call_error(\"Error: Chybný tvar argumentu typu string.\\n\", 21));\n }\n elseif ($type == 'bool') {\n if(preg_match($boolregex, $text)){\n return $text;\n }\n else exit(calls::call_error(\"Error: Chybný tvar argumentu typu bool.\\n\", 21));\n }\n elseif ($type == 'type') {\n if(preg_match($typeregex, $text)){\n return $text;\n }\n else exit(calls::call_error(\"Error: Chybný tvar argumentu typu type.\\n\", 21));\n }\n }", "public function match($url=null, $method=null)\n{\n foreach(RouteCollection::group($method) as $route)\n {\n $regex = $route->convertPattern();\n if(preg_match($regex, $url, $matches))\n {\n array_shift($matches);\n $this->matches = $matches;\n $this->route = $route;\n $route->register('matches', $matches);\n $route->register('regex', $regex);\n return $route->parameters();\n }\n }\n return false;\n}", "public function post($match, $rewrite = null, $closure = null);", "function number_car($number){\n$regexp = '/[a-ż][0-9][0-9][0-9][a-ż][a-ż]/ui';\n//$regexp = '/^[a-ż][0-9][0-9][0-9][a-ż][a-ż]$/ui'; //^$ only reads in between\n//$regexp = '/\\\\w\\\\w\\\\w\\\\w\\\\w\\\\w/ui'; // \\\\w looks for each letter a numeric and underscore\n$matches = array();\nif (preg_match($regexp, $number, $matches)) {\n echo\"number car is {$matches[0]}<br>\";\n //print_r($matches);\n}else {\n echo\"enter the correct car number\\n\";\n}\n\nreturn $matches;\n}", "function accept($data,$type=NULL){\n if(is_object($data) and get_class($data)===get_class($this)) return TRUE;\n if(is_null($type)) $type = $this->get_type($data,FALSE,FALSE);\n else if(is_int($type)) $type = def(self::$types,$type,'null');\n $acc = def($this->accept,$type,0);\n if($acc<2) return $acc==1;\n $mth = 'check_' . $type;\n return $this->$mth($data);\n }", "public function accept($item);", "static public function match($line) {\n\t\tpreg_match(self::MATCH, $line['source'], $matches);\n\t\treturn $matches;\n\t}", "function Match($Type , $Var)\n{\n if($Type == \"SUBMIT\")\n {\n if($Var == \"Submit\")\n return true ;\n }\n\n\n return false ;\n}", "protected function handle_match( $key_id, $tag_key ) {\n\t\t$this->add_bind( $key_id );\n\t\t$this->set_default( $tag_key, $key_id );\n\t}", "function yy_accept()\r\n {\r\n if (self::$yyTraceFILE) {\r\n fprintf(self::$yyTraceFILE, \"%sAccept!\\n\", self::$yyTracePrompt);\r\n }\r\n while ($this->yyidx >= 0) {\r\n $stack = $this->yy_pop_parser_stack();\r\n }\r\n /* Here code is inserted which will be executed whenever the\r\n ** parser accepts */\r\n#line 52 \"smarty_internal_templateparser.y\"\r\n\r\n $this->successful = !$this->internalError;\r\n $this->internalError = false;\r\n $this->retvalue = $this->_retvalue;\r\n //echo $this->retvalue.\"\\n\\n\";\r\n#line 2606 \"smarty_internal_templateparser.php\"\r\n }", "public function acceptData($data);", "function match(Nette\\Http\\IRequest $httpRequest): ?array;", "public function getMatch()\n{\nreturn $this->match;\n}", "protected function matchParams($match)\n {\n if (isset($this->params[$match[1]])) {\n return '(' . $this->params[$match[1]] . ')';\n }\n return '([^/]+)';\n }", "abstract public function use_hint($regex_hint_result);", "public function match($match)\n {\n // set request and path based on the type of the $match parameter\n $request = $match instanceof Zend_Controller_Request_Abstract ? $match : null;\n $path = $request ? $request->getPathInfo() : $match;\n\n try {\n // look for a custom url matching path\n // if match deleted is true, honors even deleted url records.\n $this->_currentUrl = Url_Model_Url::fetch(\n $path, array('includeDeleted' => $this->_matchDeleted)\n );\n\n $params = $this->_currentUrl->getParams();\n\n // set action from the request if present\n if ($request && $request->getParam('action')) {\n $params['action'] = $request->getParam('action');\n }\n\n return $params;\n } catch (P4Cms_Record_NotFoundException $e) {\n return false;\n }\n }", "public function findMatch(\\string $uri, \\string $method);", "public function matches(Pattern $pattern);", "public function accept(){\n \n }" ]
[ "0.71907055", "0.6471715", "0.638197", "0.62994796", "0.6288225", "0.6278325", "0.6274124", "0.6178292", "0.59931046", "0.59511244", "0.59471726", "0.59334964", "0.58739156", "0.5837967", "0.5827963", "0.576698", "0.57628757", "0.5684752", "0.56835234", "0.5678467", "0.5672421", "0.5659954", "0.56259304", "0.5622894", "0.56211776", "0.56121045", "0.56121045", "0.5583261", "0.55805284", "0.5495242", "0.5483564", "0.5464117", "0.54544044", "0.5453353", "0.54250175", "0.54120034", "0.53999746", "0.53649354", "0.5360992", "0.530311", "0.5295008", "0.5253228", "0.5252012", "0.52284586", "0.52284586", "0.52284586", "0.52284586", "0.52284586", "0.52284586", "0.52284586", "0.52284586", "0.52284586", "0.52284586", "0.52284586", "0.52284586", "0.52284586", "0.52284586", "0.52284586", "0.52284586", "0.52284586", "0.52284586", "0.52284586", "0.52284586", "0.52284586", "0.52284586", "0.52230364", "0.5200019", "0.517964", "0.51748914", "0.5172599", "0.51628184", "0.5145344", "0.51407695", "0.5138298", "0.5130876", "0.51229084", "0.51158303", "0.5115426", "0.5110177", "0.5102719", "0.5100497", "0.5094671", "0.50802636", "0.50774187", "0.50650895", "0.5053199", "0.5050757", "0.5050024", "0.5041221", "0.5040444", "0.5032091", "0.5030022", "0.5023237", "0.50093585", "0.49956125", "0.49902108", "0.49803507", "0.49708647", "0.4967168", "0.49565473", "0.49469516" ]
0.0
-1
decline match (mentor function)
public function decline() { if($this->user['menteer_type']==37 && $this->user['is_matched'] > 0 && $this->user['match_status']=='pending') { // mentor update $update_user = array( 'id' => $this->session->userdata('user_id'), 'data' => array('is_matched' => '0'), 'table' => 'users' ); $this->Application_model->update($update_user); // mentee update $update_user = array( 'id' => $this->user['is_matched'], 'data' => array('is_matched' => '0'), 'table' => 'users' ); $this->Application_model->update($update_user); $mentee = $this->Application_model->get(array('table'=>'users','id'=>$this->user['is_matched'])); // notify mentee $data = array(); $data['first_name'] = $this->user['first_name']; $data['last_name'] = $this->user['last_name']; $message = $this->load->view('/chooser/email/decline', $data, true); $this->email->clear(); $this->email->from($this->config->item('admin_email', 'ion_auth'), $this->config->item('site_title', 'ion_auth')); $this->email->to($mentee['email']); $this->email->subject('Mentor has declined'); $this->email->message($message); $result = $this->email->send(); // @todo handle false send result $this->session->set_flashdata('message', '<div class="alert alert-success">The Mentee has been notified.</div>'); redirect('/dashboard'); }else{ redirect('/dashboard'); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function finish_match($buy_did, $sell_did)\n {\n }", "public function match() {\r\n\t\treturn false;\r\n\t}", "public function deleteMatch(){\n\t\t$this->getDbTable()->delete(\"\");\n\t}", "public function resetMatches() {\n //right now: set all current matches on status = 33 before the new results\n //alternative: only update \"new\" or \"different\" matches and not all, but through his the matching history is lost\n $nonactive = DB::table('matches')\n ->where('status', '!=', 32)\n ->update(array('status' => 33));\n }", "public function destroy(Match $match)\n {\n //\n }", "public function matches( Match_Target $target );", "public function runMatch()\n {\n }", "function close_match($key, $arrayvalue, $matchPercent) {\n global $close_matchPosition;\n $close_matchPosition=0;\n foreach ($arrayvalue as $match) {\n similar_text($match, $key, $p);\n if ($p >= $matchPercent) return TRUE;\n $close_matchPosition = $close_matchPosition + 1;\n }\n }", "public function eliminateMatchingBlocks()\n {\n $this->_serviceEliminateDuplicates()->eliminateMatchingBlocks();\n }", "public function updateMatch(){\n\t\t\n\t\t}", "public function testVerifyToNotWin()\n {\n\n $match = $this->createMatch();\n foreach([0, 1, 2, 3, 4, 5, 6, 7, 8] as $position) {\n $this->createMove($position, $match->id);\n }\n\n $winner = new Winner();\n $winner->verify($match, 0, 1);\n\n $matchFound = Match::find($match->id);\n\n $this->assertEquals(0, $matchFound->winner);\n\n }", "public function GetMatch ();", "public function reverseMatch( $pArgument = array() );", "protected function discard($match)\n\t{\n\t\tif (is_int($match)) {\n\t\t\tif ($match < 0) {\n\t\t\t\tunset($this->subject[count($this->subject) - $match]);\n\t\t\t} else {\n\t\t\t\tunset($this->subject[$match]);\n\t\t\t}\n\t\t} else {\n\t\t\tforeach ($this->subject as $key => $item) {\n\t\t\t\tif (stristr($item, $match)) {\n\t\t\t\t\tunset($this->subject[$key]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn $this;\n\t}", "public function confirmMatchScore($report1, $report2, $match);", "public function getMatch();", "public function removeFindThisAnywhere()\n\t{\n\t\tif(isset($this->masterArray[$this->ref_wildCard]))\n\t\t{\n\t\t\tunset($this->masterArray[$this->ref_wildCard]);\n\t\t}\n\t}", "public function cancelMatch($id)\n {\n $sql = new Sql($this->dbAdapter);\n $delete = $sql->delete('tblmatch');\n $delete->where(array('matchID = ?' => $id));\n \n $stmt = $sql->prepareStatementForSqlObject($delete);\n $result = $stmt->execute();\n \n if ($result instanceof ResultInterface)\n {\n return array('canceled' => true);\n }\n \n return array('canceled' => false);\n }", "private function save_matchday() {\r\n for ($i = 0; $i < count($this->teams_1); $i++) {\r\n if ($this->free_ticket || ($this->teams_1[$i] != $this->free_ticket_identifer &&\r\n $this->teams_2[$i] != $this->free_ticket_identifer))\r\n $matches_tmp[] = array($this->teams_1[$i], $this->teams_2[$i]);\r\n }\r\n $this->matches[] = $matches_tmp;\r\n return true;\r\n }", "public function unwant($planId)\n{\n $exist = $this->is_wanting($planId);\n \n\n\n if ($exist) {\n // stop following if following\n $this->wants()->detach($planId);\n return true;\n } else {\n // do nothing if not following\n return false;\n }\n}", "protected function manageMatches() {\n $this->invertedIndex = new InvertedIndex();\n\n foreach ($this->matches as $index => $word) {\n $this->manageWord($word, $index);\n }\n unset($index);\n unset($word);\n }", "public function stop() {\n if($this->combatantA->hp > 0) {\n $this->winnerType = \"player\";\n $this->winnerID = $this->combatantAID;\n } elseif ($this->combatantB->hp > 0) {\n $this->winnerType = ($this->type == \"pvp\" ? \"player\" : \"monster\");\n $this->winnerID = $this->combatantBID;\n } else {\n $this->winnerType = \"draw\";\n }\n\n // Bounty + XP\n if($this->type == \"monster\" && $this->combatantB->hp <= 0) {\n $loot = $this->combatantB->dropItems($this->combatantA->getDropItemPerc());\n $this->combatantA->gainItems($loot);\n \n $contact = $this->combatantB->dropContact($this->combatantA->getDropContactPerc());\n $this->combatantA->gainContact($contact, \"battle\");\n\n /**\n * monster->xp can be defined to deviate from the standard\n * attack / 2 xp reward\n */\n if(isset($this->combatantB->xp)) {\n $this->combatantA->gainXp($this->combatantB->xp, \"battle\");\n } else {\n $this->combatantA->gainXp($this->combatantB->attack / 4, \"battle\");\n }\n }\n\n $this->combatantA->ongoingBattleID = null;\n if($this->type == \"pvp\") {\n // @todo Message to PVP enemy\n $this->combatantB->ongoingBattleID = null;\n }\n\n $this->state = \"resolved\";\n $this->objectState = \"\";\n\n /**\n * ToDo: why does backupbehavior think that no attribute changed\n * if we set ongoingBattleID to null?\n */\n // $this->combatantA->save();\n $this->combatantA->update();\n if($this->type == \"pvp\") {\n $this->combatantB->save();\n }\n\n $this->update();\n $this->reconstructCombatants();\n \n // Notify the world about this result\n $event = new BattleEvent($this);\n $this->combatantA->onFinishedBattle($event);\n if($this->type == \"pvp\") {\n $this->combatantB->onFinishedBattle($event);\n }\n }", "public function destroy(Matchup $matchup)\n {\n //\n }", "public function testRejectMatchingSuggestionsUsingDELETE()\n {\n }", "function process_nonmatches(&$output, &$text_old, &$text_new)\n\t{\n\t\t$s1 = sizeof($text_old);\n\t\t$s2 = sizeof($text_new);\n\n\t\tif ($s1 > 0 AND $s2 == 0)\n\t\t{\n\t\t\t// lines deleted\n\t\t\tarray_unshift($output, new vB_Text_Diff_Entry(implode(\"\\n\", $text_old), ''));\n\t\t}\n\t\telse if ($s2 > 0 AND $s1 == 0)\n\t\t{\n\t\t\t// lines added\n\t\t\tarray_unshift($output, new vB_Text_Diff_Entry('', implode(\"\\n\", $text_new)));\n\t\t}\n\t\telse if ($s1 > 0 AND $s2 > 0)\n\t\t{\n\t\t\t// substitution\n\t\t\tarray_unshift($output, new vB_Text_Diff_Entry(implode(\"\\n\", $text_old), implode(\"\\n\", $text_new)));\n\t\t}\n\n\t\t$text_old = array();\n\t\t$text_new = array();\n\t}", "public function reset( $matched = false ) {\n\t\t$this->can_log = true;\n\t\t$this->matched = $matched;\n\t}", "private function completeMatch($match) {\r\n \t$match->isCompleted = TRUE;\r\n \t \r\n \tforeach ($this->_observers as $observer) {\r\n \t\t$observer->onMatchCompleted($match);\r\n \t}\r\n \t\r\n \t// trigger plug-ins\r\n \t$event = new MatchCompletedEvent($this->_websoccer, $this->_db, I18n::getInstance($this->_websoccer->getConfig('supported_languages')), \r\n \t\t\t$match);\r\n \tPluginMediator::dispatchEvent($event);\r\n }", "public function match( $data );", "public static function down() {\n\t\tSchema::dropTable(\"match\");\n\t}", "public function setMatch($match)\n{\n$this->match = $match;\n\nreturn $this;\n}", "function clean_pre($matches)\n {\n }", "public function deleteMethodEndMatch($teamId)\n {\n $queryString=\"DELETE FROM team_used_corruption\n WHERE team_id=$teamId\";\n $query = $this->db->query($queryString);\n }", "public function undoFinalDeny()\n {\n $this->finalDeny = null;\n $this->decisionViewed = null;\n $this->decisionLetter = null;\n }", "function clean_for_aiml_match($text)\n{\n\t$otext = $text;\n\t$text= remove_allpuncutation($text); //was not all before\n\t$text= whitespace_clean($text);\n\t$text= captialise($text);\n\t\n\trunDebug( __FILE__, __FUNCTION__, __LINE__, \"In: $otext Out:$text\",3);\n\t\t\n\treturn $text;\n}", "public function adminEndMatch() : bool\n {\n return $this->_consoleCommand('AdminEndMatch', '', 'Match ended');\n }", "public function SetMatch ($match);", "function remove()\n\t{\n\t$app = JFactory::getApplication();\n $pks = JFactory::getApplication()->input->getVar('cid', array(), 'post', 'array');\n $model = $this->getModel('match');\n $model->delete($pks);\n\t\n $this->setRedirect('index.php?option=com_sportsmanagement&view=matches'); \n \n }", "public function delVerify3($refid) \n {\n $this->db->select(\"1\");\n $this->db->from(\"ims_hris.training_target_group\");\n $this->db->where(\"ttg_training_refid\", $refid);\n\n $q = $this->db->get();\n return $q->result_case('UPPER');\n }", "public function destroy(MatchingBonus $matchingBonus)\n {\n //\n }", "function blockMatch($matchID){\n\t global $con;\n\t// ///////////////////////////////////////////////////////////////////////////////////////////////\n ////////////////////////// check the MatchID exist before we start /////////////////////////////\n \n $checkMatchIDExist = $con->prepare('SELECT sender_id,sender_ph_id,currency from matching where match_id = ? LIMIT 1') or die($con->error);\n\t$checkMatchIDExist->bind_param('s',$matchID) or die($con->error);\n\t$checkMatchIDExist->execute() or die($con->error);\n\t//ThisPHID refers to the PHID of THIS expired match. For the cron, we will be looping through a set of expired matches. Here its just ONLY ONE.\n\t$checkMatchIDExist->bind_result($ThisSender,$ThisPHID,$currency) or die($con->error); \n\t$checkMatchIDExist->store_result() or die($con->error);\n\t$checkMatchIDExist->fetch() or die($con->error);\n\t\n\n if($checkMatchIDExist->num_rows > 0){\n \t$checkMatchIDExist->close() or die($con->error);\n\t $con->begin_transaction();\n\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n/////////////////////////////////////////// Block PH, User Unpaid Matches ///////////////////////////////////////////////////////\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n\t ///////////////////////////////////////////////////////////////////////////////\n\t\t\t\t//////////////////////// 3 unexecuted/unclosed Query /////////////////////\n\t\t\t\t ///////////////////////////////////////////////////////////////////////////////\n\n\t ///////////////////// Block PH ////////////////////////////\n\t $blockSenderPH = $con->prepare(\"UPDATE ph SET blocked='1',date_blocked = now() WHERE ph_id = ?\"); \n\t\t\t$blockSenderPH->bind_param(\"s\",$ThisPHID);\n\n\t\t\t///////////////////// Block User(Sender) ////////////////////////////\n\t $blockUser = $con->prepare(\"UPDATE user_auth SET user_blocked = '1',date_blocked = now() WHERE user_id = ?\"); \n\t\t\t$blockUser->bind_param(\"s\",$ThisSender);\n \n ///////////////////// Block the Unpaid Match ////////////////////////////\n\t\t\t$blockMatch = $con->prepare(\"UPDATE matching SET blocked='1',date_blocked = now() WHERE match_id = ?\"); \n\t\t\t$blockMatch->bind_param(\"s\",$matchID);\n\n\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n/////////////////// create REVERSED PH(Matches that were confirmed before the user and other transactions were blocked) ///////////////////\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n ///////////////////////////////////////////////////////////////////////////////\n\t\t\t\t//////////////////////// 3 unexecuted/unclosed Query /////////////////////\n\t\t\t\t ///////////////////////////////////////////////////////////////////////////////\n\n\t\t\t /// get all confirmed by the receiver\n\t\t\t $conMatch = $con->prepare(\"SELECT amount,match_id from matching where sender_ph_id = ? and confirmed_by_receiver= '1' and confirmed_by_sender = '1'\") or die($con->error);\n\t\t\t\t$conMatch->bind_param('s',$ThisPHID) or die($con->error);\n\t\t\t\t$conMatch->execute() or die($con->error);\n\t\t\t\t$conMatch->bind_result($completedAmount,$completedMatchID) or die($con->error);\n\t\t\t\t$conMatch->store_result() or die($con->error);\n\t\t\t\tif($conMatch->num_rows > 0){\n\t\t\t\t\t\n\t\t\t\t\t// there is, so we loop through\n\t\t\t\t\t$TAmount = 0; //Total Amount Completed\n\t\t\t\t\t$numConfirmed = $conMatch->num_rows;\n\n\t\t\t\t\twhile($conMatch->fetch()){ echo 'mua';\n $TAmount += $completedAmount;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t $releaseDate = date(\"Y-m-d H:i:s\",time()+3600); //release time is in the next 1 hr\n \n // Generate new unique ID for the PH\n while (true) {\n\t\t\t\t $newPHID = uniqid(\"PH\");\n\n\t\t\t\t\t\t\t$checkNewPHID = $con->prepare(\"SELECT sn FROM ph WHERE ph_id = ?\") or die($con->error); \n\t\t\t\t\t\t\t$checkNewPHID->bind_param(\"s\",$newPHID) or die($con->error);\n\t\t\t\t\t\t\t$checkNewPHID->execute() or die($con->error);\n\t\t\t\t\t\t\t$checkNewPHID->bind_result($exist) or die($con->error);\n\t\t\t\t\t\t\t$checkNewPHID->store_result() or die($con->error);\n\t\t\t\t\t\t\n\t\t\t\t\t\t// create the reversed PH Now\n\t\t\t\t\t\t//check if query returns any result\n\t\t\t\t\t\t if($checkNewPHID->num_rows == 0){\n\t\t\t\t\t\t\t $checkNewPHID -> fetch();\n\t\t\t\t\t\t\t $checkNewPHID -> close();\n\n\t\t\t\t\t\t\t\t $PHQuery=$con->prepare(\"INSERT into ph (ph_id,init_amount,final_amount,balance_ALW,currency,user_id,release_date,no_to_help,no_to_help_confirmed,balance,reversed,reversed_from,date_reversed) values(?,?,?,?,?,?,?,?,?,'0','1',?,now())\") or die($con->error); //balance is 0 because this has been completed\n\t\t\t\t\t\t\t\t $PHQuery->bind_param(\"ssssssssss\",$newPHID,$TAmount,$TAmount,$TAmount,$currency,$_SESSION['user_id'],$releaseDate,$numConfirmed,$numConfirmed,$ThisPHID) or die($con->error);\n\t\t\t\t\t \n\t\t\t\t\t //////////////////////// Log this activity //////////////////////////////////////////////////////\n\t\t\t\t\t\t\t\t $logActivity=$con->prepare(\"INSERT into sys_activity_log(act_id,initiated_by,trans_id) values('2',?,?)\");\t\n\t\t\t\t\t\t\t\t $logActivity->bind_param(\"ss\",$_SESSION['user_id'],$newPHID);\n\t\t \n\n\t\t // and then break the while loop when you are done\n\t\t\t\t\t\t\t\t break;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t///Update the individual records with the latest PHID i.e newPHID\n\t\t\t\t\t\t$conMatch->data_seek(0); //return the pointer to 0\n\t\t\t\t\t\twhile($conMatch->fetch()){ echo 'me'; \n\t ///////////////////// update ////////////////////////////\n\t\t\t\t\t\t// This update must always return affected rows since $conMatch has been checked NOT EMPTY above. so we check for affected rows before commiting or rolling back\n\t\t\t\t\t\t $updateComp = $con->prepare(\"UPDATE matching SET sender_ph_id=? WHERE match_id = ?\"); \n\t\t\t\t\t\t\t\t$updateComp->bind_param(\"ss\",$newPHID,$completedMatchID);\n\t\t\t\t\t\t\t\t$updateComp->execute();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\n \n\t\t\t\t}else{\n\t\t\t\t\t//He has not completed anyone before the expire\n\t\t\t\t\t// echo \"hasnt\";\n\t\t\t\t}\n \n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n/////////////////// Handle Receiver's REFUND (all those matches that the receiver didnt receive but have expired) //////////////////////////\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n\t\t\t\t ///////////////////////////////////////////////////////////////////////////////\n\t\t\t\t//////////////////////// 2 unexecuted/unclosed Query /////////////////////\n\t\t\t\t ///////////////////////////////////////////////////////////////////////////////\n\n\t\t\t\t// get all MATCHED to this user BUT NOT confirmed by the receiver wether EXPIRED or NOT\n\t\t\t $notConMatch = $con->prepare(\"SELECT match_id,amount,receiver_gh_id from matching where sender_id = ? and confirmed_by_receiver <> '1' and confirmed_by_sender <> '1' and receiver_refunded <> 1\") or die($con->error); // Added 5Seconds extra so that NOW() will be greater than date_to_expire . Because at the time(instantenous) of executiing this script, NOW() is equal to date_to_expire and not greater than. PS: removed \" and (now() + INTERVAL 5 SECOND > date_to_expire)\" because now we are not only considering this particualr PHID but all he matches that have not just expired but even the ongoing ones. Since the user has been blocked above, all his activities have stopped , so he cant even pay anyoda person. So to avoid someone calling him to pay him whereas he has been blocked, we block/cancel every other transactions/matches attached to him and we refund them.\n\t\t\t\t$notConMatch->bind_param('s',$ThisSender) or die($con->error);\n\t\t\t\t$notConMatch->execute() or die($con->error);\n\t\t\t\t$notConMatch->bind_result($unPaidMatchID,$unpaidAmount,$RxGHID) or die($con->error);\n\t\t\t\t$notConMatch->store_result() or die($con->error);\n\t\t\t\tif($notConMatch->num_rows > 0){\n\t\t\t\t // echo \"ds\".$ThisPHID;\n\t\t\t\t\twhile($notConMatch->fetch()){\n\t ///////////////////// refund Receiver ////////////////////////////\n\t\t\t\t\t\t// echo \"re\".$ThisPHID; CASE makes sure the new value doesnt exceed the initial \n\t\t\t\t\t\t $refundRX = $con->prepare(\"UPDATE gh SET balance = CASE WHEN (balance + ?) > init_amount THEN init_amount ELSE (balance + ?) end, no_to_helpme = no_to_helpme - 1 WHERE gh_id = ?\"); \n\t\t\t\t\t\t\t\t$refundRX->bind_param(\"sss\",$unpaidAmount,$unpaidAmount,$RxGHID);\n\t\t\t\t\t\t\t\t$refundRX->execute();\n\n\t\t\t\t\t\t\t\t///////////////////// Block the Unpaid Match ////////////////////////////\n\t\t\t\t\t\t\t\t// Note: This particular Block is blocking other transaction attached to thisBlockedUser that have not been confirmed whereas the BlockMatch above blocks this particular match.\n\t\t\t\t\t\t\t\t$blockIFNot = $con->prepare(\"UPDATE matching SET blocked='1',date_blocked = now(),receiver_refunded = '1',date_refunded = now() WHERE match_id = ?\"); \n\t\t\t\t\t\t\t\t$blockIFNot->bind_param(\"s\",$unPaidMatchID);\n\t\t\t\t\t\t\t\t$blockIFNot->execute();\n\t\t\t\t\t}\n\n\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n//////// Check and Execute ( We check for errors here and execute if none or rollback if any. Also send notification if need be) /////////////\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n\n\t if($conMatch->num_rows > 0 && $notConMatch->num_rows > 0){\n\t \tif(!$blockSenderPH->execute() || !$blockUser->execute() || !$blockMatch->execute() || !$PHQuery->execute() || !$logActivity->execute() ||$updateComp->affected_rows == 0 || $refundRX->affected_rows == 0 || $blockIFNot->affected_rows == 0 || error_get_last() != NULL){\n\t\t \t$err = \"sql error : \".$con->error.\", php error : \".json_encode(error_get_last());\n\t\t\t\t\techo \"{\\\"success\\\":\\\"{$err}\\\"}\";\n\t\t\t\t\t$con->rollback();\n\t\t }else{\n\t\t \t$con->commit();\n\t\t \t\n\t\t \t\n\t\t \t $blockSenderPH->close();\n\t\t \t $blockUser->close();\n\t\t \t $blockMatch->close();\n\t\t \t $PHQuery->close();\n\t\t \t $logActivity->close();\n\t\t \t $updateComp->close();\n\t\t \t $blockIFNot->close();\n\t\t \t $refundRX->close();\n\n\t\t \t echo \"{\\\"success\\\":\\\"1\\\"}\";\n\t }\n\t }else if($conMatch->num_rows > 0 && !$notConMatch->num_rows > 0){\n\t \tif(!$blockSenderPH->execute() || !$blockUser->execute() || !$blockMatch->execute() || !$PHQuery->execute() || !$logActivity->execute() ||$updateComp->affected_rows == 0 || error_get_last() != NULL){\n\t\t \t$err = \"sql error : \".$con->error.\", php error : \".json_encode(error_get_last());\n\t\t\t\t\techo \"{\\\"success\\\":\\\"{$err}\\\"}\";\n\t\t\t\t\t$con->rollback();\n\t\t }else{\n\t\t \t$con->commit();\n\t\t \t\n\t\t \t\n\t\t \t $blockSenderPH->close();\n\t\t \t $blockUser->close();\n\t\t \t $blockMatch->close();\n\t\t \t $PHQuery->close();\n\t\t \t $logActivity->close();\n\t\t \t $updateComp->close();\n\n\t\t \t echo \"{\\\"success\\\":\\\"1\\\"}\";\n\t }\n\t }else if(!$conMatch->num_rows > 0 && $notConMatch->num_rows > 0){\n\t \tif(!$blockSenderPH->execute() || !$blockUser->execute() || !$blockMatch->execute() || $refundRX->affected_rows == 0 || $blockIFNot->affected_rows == 0 || error_get_last() != NULL){\n\t\t \t$err = \"sql error : \".$con->error.\", php error : \".json_encode(error_get_last());\n\t\t\t\t\techo \"{\\\"success\\\":\\\"{$err}\\\"}\";\n\t\t\t\t\t$con->rollback();\n\t\t }else{\n\t\t \t$con->commit();\n\t\t \t\n\t\t \t\n\t\t \t $blockSenderPH->close();\n\t\t \t $blockUser->close();\n\t\t \t $blockMatch->close();\n\t\t \t $blockIFNot->close();\n\t\t \t $refundRX->close();\n\n\t\t \t echo \"{\\\"success\\\":\\\"1\\\"}\";\n\t }\n\t }else if(!$conMatch->num_rows > 0 && !$notConMatch->num_rows > 0){\n\t \tif(!$blockSenderPH->execute() || !$blockUser->execute() || !$blockMatch->execute() || error_get_last() != NULL){\n\t\t \t$err = \"sql error : \".$con->error.\", php error : \".json_encode(error_get_last());\n\t\t\t\t\techo \"{\\\"success\\\":\\\"{$err}\\\"}\";\n\t\t\t\t\t$con->rollback();\n\t\t }else{\n\t\t \t$con->commit();\n\t\t \t\n\t\t \t\n\t\t \t $blockSenderPH->close();\n\t\t \t $blockUser->close();\n\t\t \t $blockMatch->close();\n\t\t \n\n\t\t \t echo \"{\\\"success\\\":\\\"1\\\"}\";\n\t }\n\t }else{\n\t \t\n\t }\n\n\t $conMatch->close();\n\t $notConMatch->close();\n\t\t}else{\n\t\t\t//the PHID supplied does not exist\n\t\t}\n\n}", "public function delete(User $user, Match $match)\n {\n //check if captain\n return $match->team1->id_captain === $user->id;\n }", "public function restrictSearchWithMatch() : GraphLookup\\Match\n {\n return $this->restrictSearchWithMatch;\n }", "public function matching(Closure $match);", "protected function _refine() {\n\n\t}", "public function setMatch(Match $match);", "static function removeMatchingItem($exp){\n\t\tself::init();\n\t\tself::$backend->removeMatchingItem($exp);\n\t}", "public function delete($match, $rewrite = null, $closure = null);", "public function match($subject);", "function phorum_api_diff_match($a, $b, $level=\"line\")\n{\n // set_time_limit(0); No, we don't like it.\n $answer = \"\";\n if ($level == \"line\" || $level == \"word\")\n {\n if ($level == \"line\") {\n $as = explode(\"\\n\", $a);\n $bs = explode(\"\\n\", $b);\n } else {\n $as = explode(\" \", $a);\n $bs = explode(\" \", $b);\n }\n\n $last = array();\n $next = array();\n $start = -1;\n $len = 0;\n $answer = \"\";\n for ($i = 0; $i < sizeof($as); $i++) {\n $start+= strlen($as[$i])+1;\n for ($j = 0; $j < sizeof($bs); $j++) {\n if ($as[$i] != $bs[$j]) {\n if (isset($next[$j])) unset($next[$j]);\n } else {\n if (!isset($last[$j-1]))\n $next[$j] = strlen($bs[$j]) + 1;\n else\n $next[$j] = strlen($bs[$j]) + $last[$j-1] + 1;\n if ($next[$j] > $len) {\n $len = $next[$j];\n $answer = substr($a, $start-$len+1, $len);\n }\n }\n }\n // If PHP ever copies pointers here instead of copying data,\n // this will fail. They better add array_copy() if that happens.\n $last = $next;\n }\n }\n else\n {\n $m = strlen($a);\n $n = strlen($b);\n $last = array();\n $next = array();\n $len = 0;\n $answer = \"\";\n for ($i = 0; $i < $m; $i++) {\n for ($j = 0; $j < $n; $j++) {\n if ($a[$i] != $b[$j]) {\n if (isset($next[$j])) unset($next[$j]);\n } else {\n if (!isset($last[$j-1]))\n $next[$j] = 1;\n else\n $next[$j] = 1 + $last[$j-1];\n if ($next[$j] > $len) {\n $len = $next[$j];\n $answer = substr($a, $i-$len+1, $len);\n }\n }\n }\n // If PHP ever copies pointers here instead of copying data,\n // this will fail. They better add array_copy() if that happens.\n $last = $next;\n }\n }\n\n if ($level == \"line\" && $answer == \"\") {\n return phorum_api_diff_match($a, $b, \"word\");\n } elseif ($level == \"word\" && $answer == \"\") {\n return phorum_api_diff_match($a, $b, \"letter\");\n } else {\n return $answer;\n }\n}", "public function getMatch()\n{\nreturn $this->match;\n}", "public function simulateEnabledMatchSpecificConditionsSucceeds() {}", "public function simulateEnabledMatchSpecificConditionsSucceeds() {}", "function removeMatchingItem($exp){\n\t\tcacheItem::clearMemory(null,$exp);\n\t\t$names = $this->db->select_col(self::$tableName,'name');\n\t\tif( ! empty($names)){\n\t\t\t$rem = array();\n\t\t\tforeach( $names as $name ){\n\t\t\t\tif( preg_match($exp,$name) )\n\t\t\t\t\t$rem[] = $name;\n\t\t\t}\n\t\t\tif( ! empty($rem) )\n\t\t\t\treturn $this->db->delete(self::$tableName,array('WHERE name IN (?)',$rem));\n\t\t}\n\t\treturn true;\n\t}", "public function claimerLost($claimId){\n $claim = ClaimArgueOneToOneMatchTournament::findOrFail($claimId);\n $looserId = $claim->claimer_id;\n $match = $claim->match;\n $match->winner_id = $this->getOpponentId($match, $looserId);\n $match->looser_id = $looserId;\n $match->status = 'completed';\n $match->save();\n\n// set claim status to completed\n $claim->status = 'completed';\n $claim->save();\n\n // deduct looser points(double because he is claiming won while he lost)\n $looserGamePoint = GamePoint::where('user_id' , $looserId)->where('game_id' , $match->game_id)->get()->first();\n// we deduct match points from both parties when player accept match request,\n// thats why, here we r not 2x from looser because we have points\n $looserGamePoint->points = $looserGamePoint->points - $match->points;\n $looserGamePoint->save();\n\n // fire update ranking job\n RankingJob::dispatch($match->game_id)->delay(Carbon::now()->addSeconds(30));\n\n\n// return back with success message\n session()->flash('success_msg_table' , 'Result Updated');\n return redirect()->back();\n }", "public function delVerify4($refid) \n {\n $this->db->select(\"1\");\n $this->db->from(\"ims_hris.training_cost\");\n $this->db->where(\"tc_training_refid\", $refid);\n\n $q = $this->db->get();\n return $q->result_case('UPPER');\n }", "function process_matches(&$output, &$match)\n\t{\n\t\tif (sizeof($match) > 0)\n\t\t{\n\t\t\t$data = implode(\"\\n\", $match);\n\t\t\tarray_unshift($output, new vB_Text_Diff_Entry($data, $data));\n\t\t}\n\n\t\t$match = array();\n\t}", "public function delVerify2($refid) \n {\n $this->db->select(\"1\");\n $this->db->from(\"ims_hris.cpd_head\");\n $this->db->where(\"ch_training_refid\", $refid);\n\n $q = $this->db->get();\n return $q->row_case('UPPER');\n }", "public static function reject() {\n return new Reject('Not match Reference');\n }", "public function getMatcher();", "protected function remove_iunreserved_percent_encoded($match)\n {\n }", "function compare_results(&$matcher, &$expected, &$obtained, &$ismatchpassed, &$fullpassed, &$indexfirstpassed, &$indexlastpassed, &$nextpassed, &$leftpassed) {\n $ismatchpassed = ($expected['is_match'] == $obtained['is_match']);\n $fullpassed = ($expected['full'] == $obtained['full']);\n $result = $ismatchpassed && $fullpassed;\n if ($obtained['is_match'] && $expected['is_match']) { // TODO - what if we need a character with no match?\n // checking indexes\n if ($matcher->is_supporting(preg_matcher::SUBPATTERN_CAPTURING)) {\n $indexfirstpassed = ($expected['index_first'] == $obtained['index_first']);\n $indexlastpassed = ($expected['index_last'] == $obtained['index_last']);\n } else {\n $indexfirstpassed = ($expected['index_first'][0] == $obtained['index_first'][0]);\n $indexlastpassed = ($expected['index_last'][0] == $obtained['index_last'][0]);\n }\n // checking next possible character\n if ($matcher->is_supporting(preg_matcher::NEXT_CHARACTER)) {\n $nextpassed = (($expected['next'] === '' && $obtained['next'] === '') || // both results are empty\n ($expected['next'] !== '' && $obtained['next'] !== '' && strstr($expected['next'], $obtained['next']) != false)); // expected 'next' contains obtained 'next'\n } else {\n $nextpassed = true;\n }\n // checking number of characters left\n if ($matcher->is_supporting(preg_matcher::CHARACTERS_LEFT)) {\n $leftpassed = in_array($obtained['left'], $expected['left']);\n } else {\n $leftpassed = true;\n }\n $result = $result && $indexfirstpassed && $indexlastpassed && $nextpassed && $leftpassed;\n } else {\n $indexfirstpassed = true;\n $indexlastpassed = true;\n $nextpassed = true;\n $leftpassed = true;\n }\n return $result;\n }", "function _removeFromInference($statement)\r\n\t{\r\n\t\t$return= array();\r\n\t\t$statementPosition=-1;\r\n\t\tdo\r\n\t\t{\r\n\t\t\t//get the position of the statement that should be removed\r\n\t\t\t$statementPosition=$this->findFirstMatchOff($statement->getSubject(),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t$statement->getPredicate(),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t$statement->getObject(),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t$statementPosition+1);\t\t\t\t\t\t\r\n\t\t\tif ($statementPosition!=-1)\r\n\t\t\t{\r\n\t\t\t\t//if it added any rules\r\n\t\t\t\tif (isset ($this->statementRuleIndex[$statementPosition]))\r\n\t\t\t\t{\r\n\t\t\t\t\t//remove all rules \r\n\t\t\t\t\tforeach ($this->statementRuleIndex[$statementPosition] as $key => $value)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t//remove from Rule-Trigger Index\r\n\t\t\t\t\t\tif (is_a($this,'InfModelF'))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t$trigger=$this->infRules[$key]->getTrigger();\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tif(is_a($trigger['s'],'Node'))\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t$subjectLabel=$trigger['s']->getLabel();\r\n\t\t\t\t\t\t\t} else \r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t$subjectLabel='null';\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tunset ($this->infRulesTriggerIndex['s'][$subjectLabel][array_search($key,$this->infRulesTriggerIndex['s'][$subjectLabel])]);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tif(is_a($trigger['p'],'Node'))\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t$predicateLabel=$trigger['p']->getLabel();\r\n\t\t\t\t\t\t\t} else \r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t$predicateLabel='null';\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tunset ($this->infRulesTriggerIndex['p'][$predicateLabel][array_search($key,$this->infRulesTriggerIndex['p'][$predicateLabel])]);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tif(is_a($trigger['o'],'Node'))\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t$objectLabel=$trigger['o']->getLabel();\r\n\t\t\t\t\t\t\t} else \r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t$objectLabel='null';\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tunset ($this->infRulesTriggerIndex['o'][$objectLabel][array_search($key,$this->infRulesTriggerIndex['o'][$objectLabel])]);\r\n\t\t\t\t\t\t} else\r\n\t\t\t\t\t\t//remove from Rule-Entailment Index\r\n\t\t\t\t\t\t{\t\r\n\t\t\t\t\t\t\t$entailment=$this->infRules[$key]->getEntailment();\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tif(is_a($entailment['s'],'Node'))\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t$subjectLabel=$entailment['s']->getLabel();\r\n\t\t\t\t\t\t\t} else \r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t$subjectLabel='null';\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tunset ($this->infRulesEntailIndex['s'][$subjectLabel][array_search($key,$this->infRulesEntailIndex['s'][$subjectLabel])]);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tif(is_a($entailment['p'],'Node'))\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t$predicateLabel=$entailment['p']->getLabel();\r\n\t\t\t\t\t\t\t} else \r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t$predicateLabel='null';\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tunset ($this->infRulesEntailIndex['p'][$predicateLabel][array_search($key,$this->infRulesEntailIndex['p'][$predicateLabel])]);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tif(is_a($entailment['o'],'Node'))\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t$objectLabel=$entailment['o']->getLabel();\r\n\t\t\t\t\t\t\t} else \r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t$objectLabel='null';\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tunset ($this->infRulesEntailIndex['o'][$objectLabel][array_search($key,$this->infRulesEntailIndex['o'][$objectLabel])]);\r\n\t\t\t\t\t\t}\t\r\n\t\t\t\t\t\t//remove from statement-Rule Index\r\n\t\t\t\t\t\tunset ($this->infRules[$key]);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tunset($this->statementRuleIndex[$statementPosition]);\r\n\t\t\t\t\t$return[]=$statementPosition;\r\n\t\t\t\t};\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} while($statementPosition!=-1);\r\n\t\t\r\n\t\t//return the positions of the statements to be removed OR emty array \r\n\t\t//if nothing was found.\r\n\t\treturn $return;\r\n\t}", "protected function extraCall($matches, $table){\n //void\n }", "function match( $cad, $cad2 ) \n{\n\treturn strcasecmp( $cad, $cad2 ) == 0; // Son iguales\n}", "public function testMatch()\n {\n $password = 'pass';\n $matches = LeetMatch::match($password);\n $this->assertEmpty($matches);\n\n $password = 'p4ss';\n $matches = LeetMatch::match($password);\n $this->assertCount(5, $matches);\n\n $password = 'p4ssw0rd';\n $matches = LeetMatch::match($password);\n $this->assertCount(11, $matches);\n\n // Test translated characters that are not a dictionary word.\n $password = '76+(';\n $matches = LeetMatch::match($password);\n $this->assertEmpty($matches);\n }", "public function testRemove() {\n $data = $this->expanded;\n $match = $data;\n\n unset($match['boolean']);\n $data = Hash::remove($data, 'boolean');\n $this->assertEquals($match, $data);\n\n unset($match['one']['depth']);\n $data = Hash::remove($data, 'one.depth');\n $this->assertEquals($match, $data);\n\n unset($match['one']['two']['depth']);\n $data = Hash::remove($data, 'one.two.depth');\n $this->assertEquals($match, $data);\n\n unset($match['one']['two']['three']['depth'], $match['one']['two']['three']['zero'], $match['one']['two']['three']['null']);\n $data = Hash::remove($data, 'one.two.three.depth');\n $data = Hash::remove($data, 'one.two.three.zero');\n $data = Hash::remove($data, 'one.two.three.null');\n $this->assertEquals($match, $data);\n\n unset($match['one']['two']['three']['four']['five']['six']['seven']['key']);\n $data = Hash::remove($data, 'one.two.three.four.five.six.seven.key');\n $this->assertEquals($match, $data);\n\n foreach (array(true, false, null, 123, 'foo') as $type) {\n $data = Hash::remove($data, $type);\n $this->assertEquals($match, $data);\n }\n\n $data = Hash::remove($data, 'a.fake.path');\n $this->assertEquals($match, $data);\n }", "private function isInverseMatch(): bool\n {\n return is_int($this->min) and is_int($this->max) and ($this->min > $this->max);\n }", "public function ruin()\n {\n foreach ($this->routes as $route)\n {\n if (!$route->matchesRequest($this->getIdentifier(), $this->request->getVerb()))\n {\n continue;\n }\n return $route->run();\n }\n return 'No matches found.';\n }", "abstract public function revert();", "function PatternMatching($a_link)\r\n{\r\n\t$con = mysql_connect(\"localhost\",\"Phishsecure\")or die(\"Unable to connect to MySQL\");\r\n\tmysql_select_db(\"phishsecure\", $con);\r\n\t$result2 = mysql_query(\"SELECT surl FROM seedset\");\r\n\twhile($row2 = mysql_fetch_array($result2))\r\n\t{\r\n\t\tif($row2['surl']===$a_link)\r\n\t\t{\r\n\t\t\treturn 3;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t$bv = Similarity($row2['surl'], $a_link);\r\n\t\t\tif($bv===true)\r\n\t\t\t{\r\n\t\t\t\t$phishing=2;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t$phishing=0;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\tif($phishing === 0)\r\n\t{\r\n\t\t$result3 = mysql_query(\"SELECT wurl FROM whitelist\"); \r\n\t\twhile($row3 = mysql_fetch_array($result3))\r\n\t\t{\r\n\t\t\t$bv = Similarity($row3['wurl'], $a_link);\r\n\t\t\tif($bv===true)\r\n\t\t\t{\r\n\t\t\t\t$phishing=2;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t$phishing=0;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\tmysql_close($con);\r\n\treturn $phishing;\r\n}", "function testFindWithoutResult() {\r\n $this->assertNull(\r\n \t$this->actionForwards->find(\"wrongKey\"), \"Found an forward where no one is expected!\"\r\n );\r\n }", "public function delVerify1($refid) \n {\n $this->db->select(\"1\");\n $this->db->from(\"ims_hris.training_head_detl\");\n $this->db->where(\"thd_ref_id\", $refid);\n\n $q = $this->db->get();\n return $q->row_case('UPPER');\n }", "public function unlockTeam()\n\t\t{\n\t\t\t$lockedteam = array();\n\t\t\t$lockedteam['id'] = $this->team->id;\n\t\t\t$lockedteam['teamvalue'] = ($this->players[0]->playervalue)+($this->team->RR)*($this->team->RRcost)+($this->team->FF)*10000+($this->team->A_Coach)*10000+($this->team->CheerLeader)*10000+($this->team->Apoth)*50000;\n\t\t\t$lockedteam['locked'] = 0;\n\t\t\t$table = $this->getTable('Teams','BloodBowlTable');\n\t\t\treturn $table->updTeam($lockedteam);\n\t\t\t//return true;\n\t\t}", "public function swapMatchOrdering($idA, $idB)\n {\n $this->_swapOrdering('Match', $idA, $idB);\n }", "function yy_r149(){$this->_retvalue = ' XOR '; }", "function myPear_update30(){\n\n //\n // ================================================ case 1\n // The known spammers have av_firstname=av_lastname...\n //\n $where_fl[] = 'av_firstname=av_lastname';\n $where_fl[] = 'av_firstname != \"unknown\"';\n $where_fl[] = 'av_firstname != \"x\"';\n $where_fl[] = 'av_firstname != \"li\"';\n $where_fl[] = 'av_firstname != \"S.v.M\"';\n $where_bad_fl = join(' AND ',$where_fl);\n \n // ... and a strange institute name\n $where_[] = 'av_institute REGEXP \"(http:|we have also seen|between great and greatest|row is sent off)\"';\n $where_[] = 'av_institute = \"\"';\n $where_[] = 'av_institute IS NULL';\n $where_[] = 'av_institute = av_firstname';\n $where_bad_inst = '('.join(' OR ',$where_).')';\n \n // Delete those\n bForm_Avatar::delete(join(' AND ',array($where_bad_fl,$where_bad_inst)));\n \n //\n // ================================================ case 2\n // Various mistypes\n //\n static $es = array('','//','-','---','a','b','j','c','sss','none','longchamps','jingbo','nadolsky.physics.smu.edu',\n '[email protected]','[email protected]','[email protected]','[email protected]','[email protected]','[email protected]', // spam \n '[email protected]','[email protected]','n@a',\"none@none\",\"mtrichas@\",\n 'michael.bradleyphysics.umu.se','terje.larsen','j.m','daniele.marmiroli','marisol.alcantaraortigoza','ea212cam.ac.uk',\n \"hebrew.azuka\" ,\"sanjibdey4@gmail.\",\"jsdiazpo\",\"jafaroshriyeh\",\"tob\",\n 'kashi-sale.com','799fu.com','chanelforsalejp.org','cocochaneljapan.com',\n );\n $where = array(\"av_email IS NULL \",\n \"av_email REGEXP 'https?:'\");\n foreach ($es as $e) $where[] = \"av_email = '$e'\";\n \n // Delete those\n bForm_Avatar::delete(join(' OR ',$where));\n}", "function slettDeltagelse($bruker, $aktivitet)\n{\n if (eksistererAktivitet($aktivitet) && eksistererBruker($bruker)) {\n if (hentDeltagelse($bruker, $aktivitet) !== null) {\n $delta = Stemmer::where(\"Aktivitet\", \"=\", $aktivitet);\n $delta = $delta->where(\"Bruker\", \"LIKE\", $bruker)->first();\n $delta->delete();\n return true;\n }\n }\n return false;\n}", "public function destroy(Match $match)\n {\n $match->delete();\n return redirect()->route('match.index')->with('message','Item has been deleted successfully');\n }", "function does_rhyme($str1, $str2) {\n $cmu_dict = CMUDict::get();\n $words_found = true;\n\n $phonemes1 = $cmu_dict->getPhonemes($str1);\n if ($phonemes1 === null) {\n $words_found = false;\n }\n\n $phonemes2 = $cmu_dict->getPhonemes($str2);\n if ($phonemes2 === null) {\n $words_found = false;\n }\n\n if (!$words_found) {\n $metaphone1 = metaphone($str1);\n $metaphone2 = metaphone($str2);\n $rhyme = substr($metaphone1, -1) === substr($metaphone2, -1);\n if (!$rhyme && OTTAVA_RIMA_FITNESS_DEBUG) {\n echo \"$str1 and $str2 don't rhyme (method: Metaphone).\\n\";\n }\n return $rhyme;\n }\n\n $last_phoneme1 = last($phonemes1);\n if ($last_phoneme1 === 'ER') {\n $last_phoneme1 = 'R';\n }\n\n $last_phoneme2 = last($phonemes2);\n if ($last_phoneme2 === 'ER') {\n $last_phoneme2 = 'R';\n }\n\n $rhymes = $last_phoneme1 === $last_phoneme2;\n\n if (!$rhymes && OTTAVA_RIMA_FITNESS_DEBUG) {\n echo \"$str1 and $str2 don't rhyme (method: CMUDict).\\n\";\n }\n\n return $rhymes;\n}", "function mMINUS(){\n try {\n $_type = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$MINUS;\n $_channel = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$DEFAULT_TOKEN_CHANNEL;\n // Tokenizer11.g:653:3: ( '-' ) \n // Tokenizer11.g:654:3: '-' \n {\n $this->matchChar(45); \n\n }\n\n $this->state->type = $_type;\n $this->state->channel = $_channel;\n }\n catch(Exception $e){\n throw $e;\n }\n }", "private function clear_pointer() {\r\n $this->matchday_pointer = 0;\r\n $this->match_pointer = 0;\r\n return true;\r\n }", "function trieParTxt($txtVerif,$txtARespecter){\n\t\t\t\t$txtCorrespondant = false;\n\t\t\t\t\n\t\t\t\tif( preg_match('#'.$txtARespecter.'#',$txtVerif)) {\n\t\t\t\t\t$txtCorrespondant = true;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\treturn $txtCorrespondant;\n\t\t\t}", "function do_assertions($matchername, $regex, $str, $obtained, $ismatchpassed, $fullpassed, $indexfirstpassed, $indexlastpassed, $nextpassed, $leftpassed, $assertionstrue = false) {\n $this->assertTrue($assertionstrue || $ismatchpassed, \"$matchername failed 'is_match' check on regex '$regex' and string '$str'\");\n if (!$ismatchpassed) {\n echo 'obtained result ' . $obtained['is_match'] . ' for \\'is_match\\' is incorrect<br/>';\n }\n $this->assertTrue($assertionstrue || $fullpassed, \"$matchername failed 'full' check on regex '$regex' and string '$str'\");\n if (!$fullpassed) {\n echo 'obtained result ' . $obtained['full'] . ' for \\'full\\' is incorrect<br/>';\n }\n if (array_key_exists('index_first', $obtained)) {\n $this->assertTrue($assertionstrue || $indexfirstpassed, \"$matchername failed 'index_first' check on regex '$regex' and string '$str'\");\n if (!$indexfirstpassed) {\n echo 'obtained result '; print_r($obtained['index_first']); echo ' for \\'index_first\\' is incorrect<br/>';\n }\n }\n if (array_key_exists('index_last', $obtained)) {\n $this->assertTrue($assertionstrue || $indexlastpassed, \"$matchername failed 'index_last' check on regex '$regex' and string '$str'\");\n if (!$indexlastpassed) {\n echo 'obtained result '; print_r($obtained['index_last']); echo ' for \\'index_last\\' is incorrect<br/>';\n }\n }\n if (array_key_exists('next', $obtained)) {\n $this->assertTrue($assertionstrue || $nextpassed, \"$matchername failed 'next' check on regex '$regex' and string '$str'\");\n if (!$nextpassed) {\n echo 'obtained result \\'' . $obtained['next'] . '\\' for \\'next\\' is incorrect<br/>';\n }\n }\n if (array_key_exists('left', $obtained)) {\n $this->assertTrue($assertionstrue || $leftpassed, \"$matchername failed 'left' check on regex '$regex' and string '$str'\");\n if (!$leftpassed) {\n echo 'obtained result \\'' . $obtained['left'] . '\\' for \\'left\\' is incorrect<br/>';\n }\n }\n }", "public static function diff_match($a, $b, $level=\"line\")\n {\n // set_time_limit(0);\n $answer = \"\";\n if($level == \"line\" || $level == \"word\")\n {\n if($level == \"line\")\n {\n $as = explode(\"\\n\", $a);\n $bs = explode(\"\\n\", $b);\n }\n else\n {\n $as = explode(\" \", $a);\n $bs = explode(\" \", $b);\n }\n \n $last = array();\n $next = array();\n $start = -1;\n $len = 0;\n $answer = \"\";\n for($i = 0; $i < sizeof($as); $i++)\n {\n $start+= strlen($as[$i])+1;\n for($j = 0; $j < sizeof($bs); $j++)\n {\n if($as[$i] != $bs[$j])\n {\n if(isset($next[$j])) unset($next[$j]);\n }\n else\n {\n if(!isset($last[$j-1]))\n $next[$j] = strlen($bs[$j]) + 1;\n else\n $next[$j] = strlen($bs[$j]) + $last[$j-1] + 1;\n if($next[$j] > $len)\n {\n $len = $next[$j];\n $answer = substr($a, $start-$len+1, $len);\n }\n }\n }\n // If PHP ever copies pointers here instead of copying data,\n // this will fail. They better add array_copy() if that happens.\n $last = $next;\n }\n }\n else\n {\n $m = strlen($a);\n $n = strlen($b);\n $last = array();\n $next = array();\n $len = 0;\n $answer = \"\";\n for($i = 0; $i < $m; $i++)\n {\n for($j = 0; $j < $n; $j++)\n {\n if($a[$i] != $b[$j])\n {\n if(isset($next[$j])) unset($next[$j]);\n }\n else\n {\n if(!isset($last[$j-1]))\n $next[$j] = 1;\n else\n $next[$j] = 1 + $last[$j-1];\n if($next[$j] > $len)\n {\n $len = $next[$j];\n $answer = substr($a, $i-$len+1, $len);\n }\n }\n }\n // If PHP ever copies pointers here instead of copying data,\n // this will fail. They better add array_copy() if that happens.\n $last = $next;\n }\n }\n if($level == \"line\" && $answer == \"\") return self::diff_match($a, $b, \"word\");\n elseif($level == \"word\" && $answer == \"\") return self::diff_match($a, $b, \"letter\");\n else return $answer;\n }", "public function testParseWithTwoTokensWithLookaheadRemoval(): void\n {\n $this->expectException(ParserException::class);\n $this->expectExceptionMessage('Invalid Roman');\n $this->expectExceptionCode(ParserException::INVALID_ROMAN);\n\n $this->parser->parse([Grammar::T_I, Grammar::T_X, Grammar::T_I, Grammar::T_X]);\n }", "public function corruptionRefused($matchId)\n {\n $queryString=\"DELETE FROM corruption_match\n WHERE match_id=$matchId\";\n $query = $this->db->query($queryString);\n }", "function yy_r145(){$this->_retvalue = '!=='; }", "public function resolveMatchScore($fixedHomeScore, $fixedAwayScore, $match);", "function yy_r147(){ $this->_retvalue = new Stmt\\Expr('not', $this->yystack[$this->yyidx + 0]->minor); }", "function _assignMatchesDo() {\n\t\tdefined('_JEXEC') or die( 'Invalid Token' );\n\n\t\t// Turnierdaten!\n\t\t$tournament = new CLMTournament($this->id, true);\n\t\t// $tournament->data->typ\n\n\t\tif (($tournament->data->tl != clm_core::$access->getJid() AND $clmAccess->access('BE_tournament_edit_round') !== true) OR $clmAccess->access('BE_tournament_edit_round') === false) {\n\t\t\t$this->app->enqueueMessage( JText::_('TOURNAMENT_NO_ACCESS'),'warning' );\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif ($tournament->data->typ == 2) {\n\t\t\t// Vollturnier nur via Rundenerstellung!\n\t\t\t$this->app->enqueueMessage( CLMText::errortext(JText::_('MATCHES_ASSIGN'), 'IMPOSSIBLE' ),'warning' );\n\t\t\treturn false;\n\t\t\n\t\t} elseif ($tournament->data->typ == 3) { // KO\n\t\t\t// maximal bestätige Runde holen - ist hier MIN(nr)\n\t\t\t$query = 'SELECT MIN(nr) FROM #__clm_turniere_rnd_termine'\n\t\t\t\t. ' WHERE turnier = '.$this->id.' AND tl_ok = 1';\n\t\t\t$this->_db->setQuery( $query );\n\t\t\tif ($tlokMin = $this->_db->loadResult()) {\n\t \t\t\t$roundToDraw = $tlokMin-1;\n\t \t\t} else {\n\t \t\t\t$roundToDraw = $tournament->data->runden;\n\t\t\t}\n\t\t\t// nächste zu vervollständigende Runde ermittelt\n\t\t\tif ($roundToDraw == 0) { // dann gibt es nichts mehr zu tun\n\t\t\t\t$this->app->enqueueMessage( JText::_('NO_ROUND_LEFT'),'warning' );\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t\n\t\t\t// Frage: sind in dieser Runde schon Partien angesetzt?\n\t\t\t$query = 'SELECT COUNT(*)'\n\t\t\t\t\t. ' FROM #__clm_turniere_rnd_spl'\n\t\t\t\t\t. ' WHERE turnier = '.$this->id.' AND runde = '.$roundToDraw.' AND ((spieler >= 1 AND gegner >= 1) OR ergebnis = 8)';\n\t\t\t$this->_db->setQuery($query);\n\t\t\t$matchesAssigned = $this->_db->loadResult();\n\t\t\t\n\t\t\tif ($matchesAssigned > 0) { // bereits Matches angelegt\n\t\t\t\t$this->app->enqueueMessage( JText::_('MATCHES_ASSIGNED_ALREADY'),'warning' );\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t\n\t\t\t// OKay, jetzt kann angesetzt werden\n\t\t\t// alle Spieler, die 'in' sind holen\n\t\t\t$query = \"SELECT snr \"\n\t\t\t\t\t. \" FROM #__clm_turniere_tlnr\"\n\t\t\t\t\t. \" WHERE turnier = \".$this->id.\" AND koStatus = '1'\";\n\t\t\t$this->_db->setQuery($query);\n\t\t\t$playersIn = $this->_db->loadAssocList('snr');\n\t\t\t\n\t\t\t// wieviele Matches werden benötigt? \n\t\t\t// Spielerzahl - (maximale Matches der Runde / 2)\n\t\t\t// maximale Matches der Runde: 2^Runde\n\t\t\t$neededMatches = (count($playersIn) - pow(2, $roundToDraw)/2);\n\t\t\t\n\t\t\t// TODO: Sicherheitscheck, ob diese Boards wirklich vorhanden!\n\t\t\t\n\t\t\t// jetzt setzen wir an jedes Board eine Zufallspaarung\n\t\t\t\n\t\t\t// Matches zusammenstellen\n\t\t\t$sid = $tournament->data->sid;\n\t\t\tfor ($m=1; $m<=$neededMatches; $m++) {\n\t\t\t\t// Spieler 1\n\t\t\t\t$player1 = array_rand($playersIn);\n\t\t\t\tunset($playersIn[$player1]);\n\t\t\t\t// Spieler 2\n\t\t\t\t$player2 = array_rand($playersIn);\n\t\t\t\tunset($playersIn[$player2]);\n\t\t\t\t// SQL\n\t\t\t\t$query = \"UPDATE #__clm_turniere_rnd_spl\"\n\t\t\t\t\t\t. \" SET tln_nr = \".$player1.\", spieler = \".$player1.\", gegner = \".$player2\n\t\t\t\t\t\t. \" WHERE turnier = \".$this->id.\" AND runde = \".$roundToDraw.\" AND brett = \".$m.\" AND heim = '1'\";\n//\t\t\t\t$this->_db->setQuery($query);\n//\t\t\t\tif (!$this->_db->query()) { \n\t\t\t\tif (!clm_core::$db->query($query)) { \n\t\t\t\t\t$this->app->enqueueMessage( JText::_('MATCH: ').$m.\": \".$this->_db->getErrorMsg(),'error' );\n\t\t\t\t}\n\n\t\t\t\t$query = \"UPDATE #__clm_turniere_rnd_spl\"\n\t\t\t\t\t\t. \" SET tln_nr = \".$player2.\", spieler = \".$player2.\", gegner = \".$player1\n\t\t\t\t\t\t. \" WHERE turnier = \".$this->id.\" AND runde = \".$roundToDraw.\" AND brett = \".$m.\" AND heim = '0'\";\n//\t\t\t\t$this->_db->setQuery($query);\n//\t\t\t\tif (!$this->_db->query()) { \n\t\t\t\tif (!clm_core::$db->query($query)) { \n\t\t\t\t\t$this->app->enqueueMessage( JText::_('MATCH: ').$m.\": \".$this->_db->getErrorMsg(),'error' );\n\t\t\t\t}\n\n\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t$this->app->enqueueMessage( JText::_('ROUND_KO_'.$roundToDraw).\": \".JText::_('TOURNAMENT_MATCHES_ASSIGNED') );\n\t\n\t\t\t// Log\n\t\t\t$clmLog = new CLMLog();\n\t\t\t$clmLog->aktion = JText::_('ROUND_KO_'.$roundToDraw).\": \".JText::_('TOURNAMENT_MATCHES_ASSIGNED');\n\t\t\t$clmLog->params = array('sid' => $tournament->data->sid, 'tid' => $this->id, 'rnd' => $roundToDraw); // TurnierID wird als LigaID gespeichert\n\t\t\t$clmLog->write();\n\t\n\t\n\t\t} elseif ($tournament->data->typ == 1) { // CH\n\t\t\t$this->app->enqueueMessage( CLMText::errortext(JText::_('MATCHES_ASSIGN'), 'NOTIMPLEMENTED' ),'warning' );\n\t\t\treturn false;\n\t\t\n\t\t}\n\t\n\t}", "public function destroy($id)\n {\n //\n $countBet = DB::table('bets')->where('match_id',$id)->count();\n $table=Match::find($id);\n if($countBet!=0) return redirect('match2')->with('errors','The match '.$table->home_team.' - '.$table->guest_team.' is already betted');\n $table->delete();\n return redirect('match2');\n }", "public function unjoin()\n {\n $student = Auth::user();\n if ($student->team_accepted) {\n return redirect(route('dashboard.ce.myteam'))->withError('Vous ne pouvez pas quitter une équipe.');\n }\n\n $team = $student->team;\n $team->validated = false;\n $team->save();\n\n $student->team_id = null;\n $student->save();\n\n return redirect(route('dashboard.index'))->withSuccess('Vous avez refusé de rejoindre l\\'équipe !');\n }", "public function match() {\n if ( isset( $_POST['submit'] ) && !empty( $_POST['submit'] ) ) {\n Found::match( $_POST['lost'], $_POST['found'] );\n } else {\n // in case some how POST method get problem, malicious user attack\n header( \"Location: /voodoo/\" );\n exit;\n }\n header( \"Location: /voodoo/found/{$_POST['found']}\" );\n exit;\n }", "public function assertPsKillVersion($match)\n {\n $this->assertNotEmpty($match);\n }", "function testIfmatchWithModifiers(){\n\t\t#mdx:ifmatch2\n\t\tParam::get('phone')\n\t\t\t->filters()\n\t\t\t->ifmatch('/[a-z]/i', 'Phone cannot contain letters');\n\n\t\t$error = Param::get('phone')->process(['phone'=>'9829574K'])->error;\n\t\t#/mdx var_dump($error)\n\t\t$this->assertEquals(\"Phone cannot contain letters\", $error);\n\n\t}", "private function unsetNoMatchesKey(array $matches = NULL)\n\t{\n\t\tforeach ($matches as $key => $value) {\n\t\t if (is_int($key)) \n\t\t unset($matches[$key]);\n\t\t}\n\t\treturn $matches;\n\t}", "public function unverify()\n {\n $this->unsetVerifiedFlag()->save();\n\n // :TODO: Fire an event here\n }", "public function group($matches){\n\n foreach ((array) $matches as $match) {\n if($this->groups->contains($match)) return !0;\n }\n\n return !1;\n\n }", "public static function reject() {\n return new Reject('Not match Organic Subset');\n }", "function unverify_person() {\n $person=person();\n $fname=$this->params['field_name'].'_verified';\n $person->$fname=FALSE;\n return true;\n }", "function yy_r139(){$this->_retvalue = '!='; }" ]
[ "0.60703385", "0.58049226", "0.5779047", "0.5549239", "0.55415714", "0.5415933", "0.53828436", "0.534883", "0.533149", "0.5278182", "0.526752", "0.52652186", "0.52623636", "0.5149607", "0.5136257", "0.513613", "0.5134354", "0.5118896", "0.5093481", "0.50552243", "0.4998438", "0.49565578", "0.4918758", "0.4910671", "0.49078357", "0.48860225", "0.48828807", "0.4870311", "0.4808061", "0.47962928", "0.47932428", "0.47905344", "0.47735578", "0.4747998", "0.47428936", "0.47142747", "0.47097117", "0.46794048", "0.46544775", "0.4651235", "0.46511456", "0.46509933", "0.46488795", "0.46335936", "0.46269208", "0.46238142", "0.4620591", "0.4608199", "0.45814466", "0.4579362", "0.45780158", "0.45774198", "0.45706594", "0.4558463", "0.45524555", "0.45516253", "0.45395175", "0.4535504", "0.4523927", "0.45216075", "0.45115948", "0.44824865", "0.4472831", "0.44684842", "0.44679922", "0.44640476", "0.44617778", "0.4455969", "0.4449711", "0.44475433", "0.44147792", "0.44111073", "0.44110167", "0.4408135", "0.4407908", "0.43926808", "0.43910992", "0.4387829", "0.43615067", "0.43608153", "0.43586725", "0.43579653", "0.4353671", "0.4344036", "0.43331409", "0.4331338", "0.432976", "0.43271184", "0.43210518", "0.43204582", "0.43198335", "0.43193305", "0.43182668", "0.43180272", "0.43149662", "0.43130606", "0.42948803", "0.42803702", "0.42769513", "0.42741865", "0.42720622" ]
0.0
-1
select mentor and send email notification
public function select($mentor_id=0) { $mentor_id = $this->input->get('id'); // mentors cannot choose another mentor if($this->user['menteer_type']==37) redirect('/dashboard','refresh'); // if already have a selection can't go back if($this->user['is_matched'] > 0) { $this->session->set_flashdata('message', '<div class="alert alert-danger">You have made your selection already.</div>'); redirect('/dashboard','refresh'); } // make sure mentor is not selected, if so return back to chooser $mentor_id = decrypt_url($mentor_id); $mentor = $this->Application_model->get(array('table'=>'users','id'=>$mentor_id)); if($mentor['is_matched']==0){ // update mentee $update_user = array( 'id' => $this->session->userdata('user_id'), 'data' => array('is_matched' => $mentor_id,'match_status' => 'pending','match_status_stamp' => date('Y-m-d H:i:s')), 'table' => 'users' ); $this->Application_model->update($update_user); // update mentor $update_user = array( 'id' => $mentor_id, 'data' => array('is_matched' => $this->session->userdata('user_id'),'match_status' => 'pending','match_status_stamp' => date('Y-m-d H:i:s')), 'table' => 'users' ); $this->Application_model->update($update_user); // send email to mentor to approve or decline request $data = array(); $data['first_name'] = $this->user['first_name']; $data['last_name'] = $this->user['last_name']; $message = $this->load->view('/chooser/email/match_request', $data, true); $this->email->clear(); $this->email->from($this->config->item('admin_email', 'ion_auth'), $this->config->item('site_title', 'ion_auth')); $this->email->to($mentor['email']); $this->email->subject('Request to Mentor'); $this->email->message($message); $result = $this->email->send(); // @todo handle false send result $this->session->set_flashdata('message', '<div class="alert alert-info">The Mentor you selected has been notified. You will be sent an email once they accept.</div>'); redirect('/dashboard'); }else{ $this->session->set_flashdata('message', '<div class="alert alert-danger">Sorry, the Mentor you selected was just matched. Please select again.</div>'); redirect('/chooser'); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function accept()\n {\n\n if($this->user['menteer_type']==37 && $this->user['is_matched'] > 0 && $this->user['match_status']=='pending') {\n\n // mentor update\n $update_user = array(\n 'id' => $this->session->userdata('user_id'),\n 'data' => array('match_status' => 'active','match_status_stamp' => date('y-m-d H:i:s')),\n 'table' => 'users'\n );\n $this->Application_model->update($update_user);\n\n // mentee update\n $update_user = array(\n 'id' => $this->user['is_matched'],\n 'data' => array('match_status' => 'active','match_status_stamp' => date('y-m-d H:i:s')),\n 'table' => 'users'\n );\n $this->Application_model->update($update_user);\n\n $mentee = $this->Application_model->get(array('table'=>'users','id'=>$this->user['is_matched']));\n\n // notify mentee about the accept\n\n $data = array();\n $data['first_name'] = $this->user['first_name'];\n $data['last_name'] = $this->user['last_name'];\n\n $message = $this->load->view('/chooser/email/accept', $data, true);\n $this->email->clear();\n $this->email->from($this->config->item('admin_email', 'ion_auth'), $this->config->item('site_title', 'ion_auth'));\n $this->email->to($mentee['email']);\n $this->email->subject('Mentor has accepted');\n $this->email->message($message);\n\n $result = $this->email->send(); // @todo handle false send result\n\n $this->session->set_flashdata('message', '<div class=\"alert alert-success\">The Mentee has been notified about the acceptance.</div>');\n redirect('/dashboard');\n\n }else{\n\n redirect('/dashboard');\n\n }\n\n }", "public function notifyOwner()\n {\n global $config, $reefless, $account_info;\n\n $reefless->loadClass('Mail');\n\n $mail_tpl = $GLOBALS['rlMail']->getEmailTemplate(\n $config['listing_auto_approval']\n ? 'free_active_listing_created'\n : 'free_approval_listing_created'\n );\n\n if ($config['listing_auto_approval']) {\n $link = $reefless->getListingUrl(intval($this->listingID));\n } else {\n $myPageKey = $config['one_my_listings_page'] ? 'my_all_ads' : 'my_' . $this->listingType['Key'];\n $link = $reefless->getPageUrl($myPageKey);\n }\n\n $mail_tpl['body'] = str_replace(\n array('{username}', '{link}'),\n array(\n $account_info['Username'],\n '<a href=\"' . $link . '\">' . $link . '</a>',\n ),\n $mail_tpl['body']\n );\n $GLOBALS['rlMail']->send($mail_tpl, $account_info['Mail']);\n }", "protected function sendMail()\n {\n $user = User::find()\n ->where(['id' => $this->user->id])\n ->one();\n\n $notificationManager = new MailService($user);\n $notificationManager->register();\n }", "public function actionNotifyToJoin(){\n $message = new YiiMailMessage;\n $message->view = 'system';\n $message->subject = \"We are happy to see you soon on Cofinder\"; // 11.6. title change\n $message->from = Yii::app()->params['noreplyEmail'];\n \n // send newsletter to all in waiting list\n $invites = Invite::model()->findAll(\"NOT ISNULL(`key`)\");\n $c = 0;\n foreach ($invites as $user){\n \n $create_at = strtotime($user->time_invited);\n if ($create_at < strtotime('-8 week') || $create_at >= strtotime('-1 day')) continue; \n if (!\n (($create_at >= strtotime('-1 week')) || \n (($create_at >= strtotime('-4 week')) && ($create_at < strtotime('-3 week'))) || \n (($create_at >= strtotime('-8 week')) && ($create_at < strtotime('-7 week'))) )\n ) continue; \n \n //set mail tracking\n $mailTracking = mailTrackingCode($user->id);\n $ml = new MailLog();\n $ml->tracking_code = mailTrackingCodeDecode($mailTracking);\n $ml->type = 'invitation-reminder';\n $ml->user_to_id = $user->id;\n $ml->save();\n \n //$activation_url = '<a href=\"'.absoluteURL().\"/user/registration?id=\".$user->key.'\">Register here</a>';\n $activation_url = mailButton(\"Register here\", absoluteURL().\"/user/registration?id=\".$user->key,'success',$mailTracking,'register-button');\n $content = \"This is just a friendly reminder to activate your account on Cofinder.\n <br /><br />\n Cofinder is a web platform through which you can share your ideas with the like minded entrepreneurs, search for people to join your project or join an interesting project yourself.\n <br /><br />If we got your attention you can \".$activation_url.\"!\";\n \n $message->setBody(array(\"content\"=>$content,\"email\"=>$user->email,\"tc\"=>$mailTracking), 'text/html');\n $message->setTo($user->email);\n Yii::app()->mail->send($message);\n $c++;\n }\n Slack::message(\"CRON >> Invite to join reminders: \".$c);\n return 0;\n }", "function accept_mail_send($member_id,$sender_id)\n {\n // sender details \n $sender_name = $this->Crud_model->get_type_name_by_id('member', $sender_id, 'first_name');\n $from_mail = $this->Crud_model->get_type_name_by_id('member', $sender_id, 'email');\n // recepient details\n $receiver_name = $this->Crud_model->get_type_name_by_id('member', $member_id, 'first_name');\n $to_mail = $this->Crud_model->get_type_name_by_id('member', $member_id, 'email');\n\n $sub = $sender_name .' ('. $sender_id .') has accepted your profile.';\n $this->Email_model->accept_mail_send($member_id,$sender_id,$from_mail,$sender_name,$to_mail,$sub);\n // redirect(base_url().'home/member_profile/'. $sender_id .'', 'refresh');\n \n }", "public function actionSendMail()\n {\n\n // trova la videoconferenza e gli utenti collegati\n $videoconfId = Yii::$app->request->get('id');\n\n $videoconference = Videoconf::findOne($videoconfId);\n if ($videoconference) {\n $collegati = $videoconference->getVideoconfUsersMms()->all();\n if (\\is_array($collegati)) {\n foreach ($collegati as $u) {\n $sent = EmailUtil::sendEmailPartecipant($videoconference, $u->user_id);\n }\n }\n }\n }", "public function trainingVideoReminderMail() \n {\n $data = $this->BusinessOwner->find('all',array(\n 'conditions'=>array('BusinessOwner.group_role' => array('leader', 'co-leader'),'BusinessOwner.is_unlocked'=> 0),\n 'fields' => array('BusinessOwner.email','BusinessOwner.fname','BusinessOwner.lname','BusinessOwner.group_role')\n ));\n if(!empty($data)) {\n foreach($data as $row) { \n $emailLib = new Email();\n $subject = \"FoxHopr: Watch Training Video\";\n $template = \"training_video_reminder\";\n $format = \"both\";\n $to=$row['BusinessOwner']['email'];\n $emailLib->sendEmail($to,$subject,array('username'=>$row['BusinessOwner']['fname'].' '.$row['BusinessOwner']['lname']),$template,$format);\n }\n }\n }", "public static function sendEmailReminder()\n {\n /*'text'->Notification.notification_message\n subject-> notification_subject \n\n sender can be from .env or email of currently logged user ....\n to... list from vic, vol, emp\n */\n /*Mail::raw(Input::get('notification_message'), function($message) {\n $message->from('[email protected]', 'NECare System email');\n\n $message->to('[email protected]', 'Chanda')->subject(Input::get('notification_subject'));\n });\n */\n\n $activities= Input::get('activity_id');\n //if volunteer = 'Y'\n if (Input::get('to_all_volunteers')=='Y') {\n\n\n $activitydetails = Activitydetail::where('activity_id', $activities)->value('volunteer_id'); \n $volunteers = Volunteer::where('id', $activitydetails)->get(); \n foreach ($volunteers as $volunteer) {\n Mail::raw(Input::get('notification_message'), function($message) use ($volunteer) {\n $message->from('[email protected]', 'NECare System email');\n\n $message->to($volunteer->email, $volunteer->last_name.\", \".$volunteer->first_name)->subject(Input::get('notification_subject'));\n });\n } \n }\n\n //if victim = 'Y'\n if (Input::get('to_all_victims')=='Y') {\n\n $activitydetails = Activitydetail::where('activity_id', $activities)->value('victim_id'); \n $victims = Victim::where('id', $activitydetails)->get(); \n foreach ($victims as $victim) {\n Mail::raw(Input::get('notification_message'), function($message) use ($victim) {\n $message->from('[email protected]', 'NECare System email');\n\n $message->to($victim->email, $victim->last_name.\", \".$victim->first_name)->subject(Input::get('notification_subject'));\n });\n }\n }\n\n //if employee = 'Y'\n if (Input::get('to_all_employees')=='Y') {\n\n\n $activitydetails = Activitydetail::where('activity_id', $activities)->value('employee_id'); \n $employees = Employee::where('id', $activitydetails)->get(); \n foreach ($employees as $employee) {\n Mail::raw(Input::get('notification_message'), function($message) use ($employee) {\n $message->from('[email protected]', 'NECare System email');\n\n $message->to($employee->email, $employee->last_name.\", \".$employee->first_name)->subject(Input::get('notification_subject'));\n });\n } \n }\n }", "function sendVotesEmail($registrant, $jlist)\n{\n $contest = $_SESSION['contest'];\n $name = $_SESSION['ctst_name'];\n $subject = $name . \" vote for judges.\";\n $mailContent = $registrant['givenName'] . ' ' . $registrant['familyName'] .\n ' IAC member number ' . $registrant['iacID'] .\n ' voted as follows for judges at the ' . $name . \"\\n\\n\" . $jlist . \"\\n\\n\";\n $mailContent .= automatedMessage($name);\n $headers = \"From: \" . ADMIN_EMAIL . \"\\r\\n\";\n $headers .= \"CC: \" . $registrant['email'] . \"\\r\\n\";\n do_email($contest['voteEmail'], $subject, $mailContent, $headers);\n}", "public function sendVerificationMail()\n {\n\n $this->notify(new VerifyEmail($this));\n\n }", "protected function notifyByEmail() {\n\t\t$userlist = array();\n\n\t\t// find all the users with this server listed\n\t\t$users = $this->db->select(\n\t\t\tSM_DB_PREFIX . 'users',\n\t\t\t'FIND_IN_SET(\\''.$this->server['server_id'].'\\', `server_id`) AND `email` != \\'\\'',\n\t\t\tarray('user_id', 'name', 'email')\n\t\t);\n\n\t\tif (empty($users)) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// build mail object with some default values\n\t\t$mail = new phpmailer();\n\n\t\t$mail->From\t\t= sm_get_conf('email_from_email');\n\t\t$mail->FromName\t= sm_get_conf('email_from_name');\n\t\t$mail->Subject\t= sm_parse_msg($this->status_new, 'email_subject', $this->server);\n\t\t$mail->Priority\t= 1;\n\n\t\t$body = sm_parse_msg($this->status_new, 'email_body', $this->server);\n\t\t$mail->Body\t\t= $body;\n\t\t$mail->AltBody\t= str_replace('<br/>', \"\\n\", $body);\n\n\t\t// go through empl\n\t foreach ($users as $user) {\n\t \t// we sent a seperate email to every single user.\n\t \t$userlist[] = $user['user_id'];\n\t \t$mail->AddAddress($user['email'], $user['name']);\n\t \t$mail->Send();\n\t \t$mail->ClearAddresses();\n\t }\n\n\t if(sm_get_conf('log_email')) {\n\t \t// save to log\n\t \tsm_add_log($this->server['server_id'], 'email', $body, implode(',', $userlist));\n\t }\n\t}", "function sendNewMessageNotification($to_user_id,$to_name,$subject,$fromEmail,$replyEmail)\n{\n #check if the user enabled this option\n $query=\"select message_email,email from users where user_id ='$to_user_id' and access_level NOT IN ('ebulkuser','eremote') limit 1\";\n $email_option=getDBRecords($query); \n\n if($email_option[0]['message_email'] == \"Y\")\n { \n $email = $email_option[0]['email'];\n $html=\"<p><font size=\\\"2\\\" face=\\\"Verdana, Arial, Helvetica, sans-serif\\\">Dear \".$to_name.\",<br><br>\n You have been sent a message via the online \".DBS.\" system regarding <b>\".$subject.\"</b>, please login to your secure online account to read the message.\n\t\t\t <br><br>Thank You</font></p>\";\n\n\n\t\t$text=\"Dear \".$to_name.\",\n \n\t\t\t You have been sent a message via the online \".DBS.\" system regarding \".$subject.\", please login to your secure online account to read the message.\n\t\t\t \n\t\t\t Thank You\";\n\n\t\t \n\t\t$from = $fromEmail;\n\t\t$mail = new htmlMimeMail();\n\t\t$mail->setHtml($html, $text);\n\t\t$mail->setReturnPath($replyEmail);\n $mail->setFrom($from);\n $mail->setSubject(\"Important Message\");\n $mail->setHeader('X-Mailer', 'HTML Mime mail class');\n\n if(!empty($email))\n\t {\n $result = $mail->send(array($email), 'smtp');\t\n\t\t}\n } \t\n}", "public function sTellFriend()\n {\n $checkMail = $this->sUserData['additional']['user']['email'];\n\n $tmpSQL = '\n SELECT * FROM s_emarketing_tellafriend WHERE confirmed=0 AND recipient=?\n ';\n $checkIfUserFound = $this->db->fetchRow($tmpSQL, [$checkMail]);\n if ($checkIfUserFound) {\n $this->db->executeUpdate('\n UPDATE s_emarketing_tellafriend SET confirmed=1 WHERE recipient=?\n ', [$checkMail]);\n\n $advertiser = $this->db->fetchRow('\n SELECT email, firstname, lastname FROM s_user\n WHERE s_user.id=?\n ', [$checkIfUserFound['sender']]);\n\n if (!$advertiser) {\n return;\n }\n\n $context = [\n 'customer' => $advertiser['firstname'] . ' ' . $advertiser['lastname'],\n 'user' => $this->sUserData['billingaddress']['firstname'] . ' ' . $this->sUserData['billingaddress']['lastname'],\n 'voucherValue' => $this->config->get('sVOUCHERTELLFRIENDVALUE'),\n 'voucherCode' => $this->config->get('sVOUCHERTELLFRIENDCODE'),\n ];\n\n $mail = Shopware()->TemplateMail()->createMail('sVOUCHER', $context);\n $mail->addTo($advertiser['email']);\n $mail->send();\n } // - if user found\n }", "public function mail()\n {\n if(!(php_sapi_name() == 'cli-server'))\n return 403;\n\n import('SurveyMailer');\n\n $mailer = new SurveyMailer();\n $mailer->send();\n //$mailer->sendForParticipant(with(new SurveyMatcher())->getParticipantById(1));\n }", "private function sendEmails()\r\n {\r\n $user_body = \"Hi,<br>A new comment was added to the following article:\\n\";\r\n $user_body .= '<a href=\"http://'.$this->config->getModuleVar('common', 'site_url').'/id_article/'.$this->viewVar['article']['id_article'].'\">'.$this->viewVar['article']['title'].\"</a>\\n\";\r\n\r\n $_tmp_error = array();\r\n $user_text_body = strip_tags($user_body);\r\n\r\n $this->model->action( 'common', 'mailSendTo',\r\n array('charset' => $this->viewVar['charset'],\r\n 'bodyHtml' => & $user_body,\r\n 'bodyText' => & $user_text_body,\r\n 'to' => array(array('email' => '[email protected]',\r\n 'name' => 'Armand Turpel')),\r\n 'subject' => \"Open Publisher Blog Entry\",\r\n 'fromEmail' => '[email protected]',\r\n 'fromName' => '[email protected]',\r\n 'error' => & $_tmp_error\r\n ));\r\n\r\n }", "public function mentions(){\n\t\t$title = \"mentioning user: @\";\n\t\t$where = \"select m.post_id from mentions m, users u2 where m.user_id = u2.user_id and u2.user_name\";\n\n\t\t#call generic routine for showing a specific list of posts:\n\t\t$this->view_specific($where, $title);\n\t}", "public function sendEmail()\r\n {\r\n\t\t$mail = new UserMails;\r\n\t\t$mail->sendAdminEmail('admin-user', $this->_user);\r\n }", "public function mailto1joiner()\n{\n\t$f3=$this->f3;\t\n\t\t$email_logger = new Log('email.log');\n\t\t$uselog=$f3->get('uselog');\n\t\t$email_logger->write( \"In mailto1joiner\" , $uselog );\n\t\t$themember=$f3->get('PARAMS.membnum');\n\t\t$email_logger->write( \"In mailto1joiner membnum = \" .\t$themember, $uselog );\n\t\t$members =\tnew Member($this->db);\n\t\t$members->load(array('membnum =:membnum',array(':membnum'=> $themember) ) );\n\t\t\n\t\t\t$email_logger->write( \"In mailto1joiner name = \" .\t$members->forename . \" \". $members->surname, $uselog );\n$this->joiner_email ($members->membnum);\n\t\n}", "public function actionSuggestions(){\n return 0;\n $message = new YiiMailMessage;\n $message->view = 'system';\n $message->from = Yii::app()->params['noreplyEmail'];\n \n // send newsletter to all in waiting list\n $invites = Invite::model()->findAll(\"NOT ISNULL(`key`)\");\n foreach ($invites as $user){\n \n $create_at = strtotime($stat->time_invited);\n if ($create_at < strtotime('-8 week') || $create_at >= strtotime('-1 day')) continue; \n if (!\n (($create_at >= strtotime('-1 week')) || \n (($create_at >= strtotime('-4 week')) && ($create_at < strtotime('-3 week'))) || \n (($create_at >= strtotime('-8 week')) && ($create_at < strtotime('-7 week'))) )\n ) continue;\n \n //set mail tracking\n $mailTracking = mailTrackingCode($user->id);\n $ml = new MailLog();\n $ml->tracking_code = mailTrackingCodeDecode($mailTracking);\n $ml->type = 'suggestion-created';\n $ml->user_to_id = $user->id;\n $ml->save();\n\n $message->subject = \"We are happy to see you interested in Cofinder\"; // 11.6. title change\n \n $content = \"This is just a friendly reminder to activate your account on Cofinder.\n <br /><br />\n Cofinder is a web platform through which you can share your ideas with the like minded entrepreneurs, search for people to join your project or join an interesting project yourself.\n <br /><br />If we got your attention you can !\";\n \n $message->setBody(array(\"content\"=>$content,\"email\"=>$user->email,\"tc\"=>$mailTracking), 'text/html');\n $message->setTo($user->email);\n Yii::app()->mail->send($message);\n }\n return 0;\n\t}", "public function sendEmailVerificationNotification()\n {\n $this->notify(new EmailVerification('admin'));\n }", "protected function sendEmail()\n {\n // Don't send to themself\n if ($this->userFrom->id == $this->userTo->id)\n {\n return false;\n }\n \n // Ensure they hae enabled emails\n if (! $this->userTo->options->enableEmails)\n {\n return false;\n }\n \n // Ensure they are not online\n if ($this->userTo->isOnline())\n {\n return false;\n }\n \n // Send email\n switch ($this->type)\n {\n case LOG_LIKED:\n if ($this->userTo->options->sendLikes)\n {\n $emailer = new Email('Liked');\n $emailer->user = $this->userTo;\n $emailer->sendImage($this->image->id, $this->userFrom);\n }\n break;\n \n case LOG_ACCEPTED:\n if ($this->userTo->options->sendProcessing)\n {\n $emailer = new Email('Image Accepted');\n $emailer->user = $this->userTo;\n $emailer->sendImage($this->image->id);\n }\n break;\n \n case LOG_REJECTED:\n if ($this->userTo->options->sendProcessing)\n {\n $emailer = new Email('Image Rejected');\n $emailer->user = $this->userTo;\n $emailer->sendImage($this->image->id);\n }\n break;\n }\n }", "public function sendEmailVerificationNotification()\n {\n $this->notify(new VerifyEmail); // my notification\n }", "public function sendEmailVerificationNotification()\n {\n $this->notify(new AdminEmailVerificationNotification);\n }", "public function sendEmailVerificationNotification()\n { \n \n $this->notify(new ConfirmEmail); \n \n }", "public function sendPersonal() {\n return $this->_gtmHelper->sendPersonal();\n }", "protected function send_alert_email_teachers() {\n $teachers = $this->get_teachers();\n if (!empty($this->get_instance()->emailteachers) && $teachers) {\n $emailteachers = array();\n foreach ($teachers as $teacher) {\n $emailteachers[] = $teacher->user->email;\n }\n $this->send_alert_emails($emailteachers);\n\n }\n }", "function emailRegistrationAdmin() {\n require_once ('com/tcshl/mail/Mail.php');\n $ManageRegLink = DOMAIN_NAME . '/manageregistrations.php';\n $emailBody = $this->get_fName() . ' ' . $this->get_lName() . ' has just registered for TCSHL league membership. Click on the following link to approve registration: ';\n $emailBody.= $ManageRegLink;\n //$sender,$recipients,$subject,$body\n $Mail = new Mail(REG_EMAIL, REG_EMAIL, REG_EMAIL_SUBJECT, $emailBody);\n $Mail->sendMail();\n }", "public function sendEmailVerificationNotification();", "public static function remindAssignedUser() {\n $unrespondedToTickets = Self::getUnrespondedToTickets(15);\n\n if($unrespondedToTickets->count() > 0) {\n foreach($unrespondedToTickets as $ticket) {\n $vendor = $ticket->assignedTo;\n\n $message = \"<p>Hello {$vendor->name}.<br/> You are yet to respond to the ticket ID <a href='{{ route('tickets.vendor.show', ['ticket_id'=> $ticket->ticket_id]) }}''>#{{$ticket->ticket_id}}</p>. <p>If further delayed, your unit head would be notified of your delayed response to this ticket. <br/><br/>Thank you</p>\";\n $title = \"Ticket #{$ticket->ticket_id} is yet to receive a response\";\n send_email($vendor->name, $vendor->email, $message, route('tickets.vendor.show', ['ticket_id'=> $ticket->ticket_id]), $title);\n\n }\n }\n }", "public function sendEmailVerificationNotification(){\n $this->notify(new VerifyEmail);\n }", "function send_anon() {\n\n $input = $_POST['feedback'];\n $about = $_POST['about'];\n $relation = $_POST['relation'];\n\n\n\t\t$options = get_option('id_settings');\n $receiver = $options['id_anonymous_email_addresses_field'];\n\n\t\t$subject = 'Anonymous input form website';\n\n $body = \"<i>Sent using the contact form at \" . get_site_url() . \"</i>\" .\n \"<br><br>\" . esc_html($input) .\n \"<br><br>About: \" . esc_html($about) .\n \"<br><br>Relation: \" . esc_html($relation);\n\n\t\t$sender = \"Anonymous <[email protected]>\";\n\n\n\n return send_mail($receiver, $subject, $body, $sender);\n\n }", "public function decline()\n {\n\n if($this->user['menteer_type']==37 && $this->user['is_matched'] > 0 && $this->user['match_status']=='pending') {\n\n // mentor update\n $update_user = array(\n 'id' => $this->session->userdata('user_id'),\n 'data' => array('is_matched' => '0'),\n 'table' => 'users'\n );\n $this->Application_model->update($update_user);\n\n // mentee update\n $update_user = array(\n 'id' => $this->user['is_matched'],\n 'data' => array('is_matched' => '0'),\n 'table' => 'users'\n );\n $this->Application_model->update($update_user);\n\n $mentee = $this->Application_model->get(array('table'=>'users','id'=>$this->user['is_matched']));\n\n // notify mentee\n\n $data = array();\n $data['first_name'] = $this->user['first_name'];\n $data['last_name'] = $this->user['last_name'];\n\n $message = $this->load->view('/chooser/email/decline', $data, true);\n $this->email->clear();\n $this->email->from($this->config->item('admin_email', 'ion_auth'), $this->config->item('site_title', 'ion_auth'));\n $this->email->to($mentee['email']);\n $this->email->subject('Mentor has declined');\n $this->email->message($message);\n\n $result = $this->email->send(); // @todo handle false send result\n\n $this->session->set_flashdata('message', '<div class=\"alert alert-success\">The Mentee has been notified.</div>');\n redirect('/dashboard');\n\n }else{\n\n redirect('/dashboard');\n\n }\n\n }", "public function notifyReporter()\r\n {\r\n $message = new Message();\r\n if (!$message->create())\r\n {\r\n return false;\r\n } \r\n \r\n $message->from( \"TicketSystem\" ); \r\n $message->to( $this->getReporter() ); \r\n $message->subject( \"Antwort auf Ticket #\".$this->getId() );\r\n \r\n $subJ = $this->getSubject();\r\n $tID = $this->getId();\r\n \r\n $msgText = \"Deinem Ticket mit dem Betreff \\\"\".$subJ.\"\\\" wurde eine neue Nachricht hinzugefügt.<br/><br/>\";\r\n $msgText .= \"<a href=\\\"ticketsystem.php?ticketid=\".$tID.\"\\\">Klicke hier um zum Ticket zu gelangen</a>\"; \r\n \r\n $message->text( $msgText ); \r\n $message->html( true );\r\n \r\n $message->addUser( $this->getReporter(), 6 ); \r\n\r\n unset( $message ); \r\n }", "public function notify()\n {\n /*$data = DB::select(DB::raw(\"SELECT license_type_id from `license_type_vehicle` where CURDATE()+INTERVAL 31 DAY =`license_end_on`\"));\n if(!empty($result)) {\n $data = array('license_type_id' => ,$result->license_type_id, 'vehicle_id' => $result->vehicle_id, '' );\n }\n DB::table('users')->insert([\n ['email' => '[email protected]', 'votes' => 0],\n ['email' => '[email protected]', 'votes' => 0]\n ]);*/\n $results = DB::table('license_type_vehicle')\n ->join('vehicles', 'vehicles.id', '=', 'license_type_vehicle.vehicle_id') \n ->select('license_type_vehicle.license_type_id', 'license_type_vehicle.vehicle_id','vehicles.client_id')\n ->where( 'license_type_vehicle.license_end_on', '=','CURDATE()+INTERVAL 30 DAY')\n ->get();\n print_r($results);\n /* Mail::send('emails.welcome', ['key' => 'value'], function($message)\n {\n $message->to('[email protected]', 'John Smith')->subject('Welcome!');\n });*/\n \n }", "public function sendEmailVerificationNotification()\n {\n $this->notify(new EmailVerification('networking_agent'));\n }", "public function change_email_sent()\n {\n $this->_render();\n }", "public static function setMSGForHaveNTEmailUsers() {\n\n // not have email end moderation job seekers\n $queryMail = \"\n SELECT\n u.id_user,\n u.email,\n u.crdate,\n u.mdate,\n u.status,\n r.ismoder\n FROM\n user u\n INNER JOIN \n resume r ON r.id_user=u.id_user \n WHERE\n DATE(u.crdate) >= NOW() - INTERVAL 1 DAY \n or \n DATE(u.mdate) >= NOW() - INTERVAL 1 DAY \n GROUP BY u.id_user\n \";\n $queryMail = Yii::app()->db->createCommand($queryMail)->queryAll();\n\n if(count($queryMail)){\n\n foreach ($queryMail as $user){\n $email = $user['email'];\n if ((!preg_match(\"/^(?:[a-z0-9]+(?:[-_.]?[a-z0-9]+)?@[a-z0-9_.-]+(?:\\.?[a-z0-9]+)?\\.[a-z]{2,5})$/i\", $email))\n || ( $email = '' )){\n /**\n * Send messages to users who did not enter the email\n */\n $resultm['users'][] = $user['id_user'];\n $resultm['title'] = 'Администрация';\n $resultm['text'] = 'Уважаемый пользователь, будьте добры заполнить \n поле e-mail в вашем профиле.\n Заранее спасибо!';\n }\n }\n $admMsgM = new AdminMessage();\n\n // send notifications\n if (isset($resultm)) {\n $admMsgM->sendDataByCron($resultm);\n }\n\n foreach ($queryMail as $user){\n $status = $user['status'];\n $ismoder = $user['ismoder'];\n if ( ($status == 2) && ($ismoder != 1)){\n /**\n * Send messages to users who did not enter moderation information\n */\n $resultjs['users'][] = $user['id_user'];\n $resultjs['title'] = 'Администрация';\n $resultjs['text'] = 'Уважаемый пользователь, заполните '.\n 'поля, необходимые для модерации:'.\n '<ul style=\"text-align:left\">'.\n '<li>имя и фамилия</li>'.\n '<li>год рождения</li>'.\n '<li>Фото(допускается и без него, на фото не природа, '.\n 'не больше одной личности, не анимация и т.д)</li>'.\n '<li>номер телефона и эмейл</li>'.\n '<li>целевая вакансия</li>'.\n '<li>раздел \"О себе\"</li>'.\n '<ul>';\n }\n }\n $admMsgJS = new AdminMessage();\n if (isset($resultjs)) {\n $admMsgJS->sendDataByCron($resultjs);\n }\n\n }\n\n $queryEmpl = \"\n SELECT\n u.id_user,\n u.email,\n u.crdate,\n u.mdate,\n u.status,\n e.ismoder\n FROM\n user u\n INNER JOIN \n employer e ON e.id_user=u.id_user \n WHERE\n (\n DATE(u.crdate) >= NOW() - INTERVAL 1 DAY \n or \n DATE(u.mdate) >= NOW() - INTERVAL 1 DAY\n ) and u.status = 3 \n \n GROUP BY u.id_user\n \";\n $queryEmpl = Yii::app()->db->createCommand($queryEmpl)->queryAll();\n\n if(count($queryEmpl)) {\n\n foreach ($queryEmpl as $user){\n $ismoder = $user['ismoder'];\n if ( $ismoder != 1 ){\n /**\n * Send messages to employer who did not enter moderation information\n */\n $resulte['users'][] = $user['id_user'];\n $resulte['title'] = 'Администрация';\n $resulte['text'] = 'Уважаемый пользователь, заполните '.\n 'поля в вашем профиле, необходимые для модерации:'.\n '<ul style=\"text-align:left\">'.\n '<li>название компании</li>'.\n '<li>логотип - желаельно</li>'.\n '<li>номер телефона и эмейл</li>'.\n '<li>имя контактного лица</li>'.\n '<li>контактный номер телефона</li>'.\n '<ul>';\n }\n }\n $admMsgE = new AdminMessage();\n if (isset($resulte)) {\n $admMsgE->sendDataByCron($resulte);\n }\n }\n\n }", "public function do_notify($send, $mailer = NULL);", "function express_intrest_mail_send($member_id,$sender_id)\n {\n // /uploads/profile_image/profile_13.jpg\n // sender details \n $sender_name = $this->Crud_model->get_type_name_by_id('member', $sender_id, 'first_name');\n $from_mail = $this->Crud_model->get_type_name_by_id('member', $sender_id, 'email');\n // recepient details\n $receiver_name = $this->Crud_model->get_type_name_by_id('member', $member_id, 'first_name');\n $to_mail = $this->Crud_model->get_type_name_by_id('member', $member_id, 'email');\n\n $sub = $sender_name .' ('. $sender_id .') has accepted your profile.';\n $this->Email_model->express_intrest_mail_send($member_id,$sender_id,$from_mail,$sender_name,$to_mail,$sub);\n }", "private function notify_on_add($meet, $location)\n { \n $subject = 'Shackmeet Announcement - ' . $meet->title;\n $body = $this->build_create_message($meet, $location);\n \n $notification_users = $this->load_users_to_notify();\n \n foreach ($notification_users as $user)\n {\n // Prevent shackmessages from being sent to yourself. Unless you're me. I get all the shackmessages.\n if ($user['username'] == $this->current_user->username && $user['username'] != 'omnova') \n continue;\n \n if ($user['notify_option'] == 2 || ($user['notify_option'] == 1 && $this->eligible_for_notification($user['latitude'], $user['longitude'], $location->latitude, $location->longitude, $user['notify_max_distance'])))\n { \n // Insert SM message into the queue\n if ($user['notify_shackmessage'] == 1)\n {\n $message = Model::factory('message_queue');\n $message->message_type_id = 1;\n $message->message_recipients = $user['username'];\n $message->message_subject = $subject;\n $message->message_body = $body;\n $message->meet_id = $meet->meet_id;\n $message->notification_reason_id = 1;\n $message->insert(); \n }\n \n // Insert email message into the queue\n if ($user['notify_email'] == 1)\n {\n $message = Model::factory('message_queue');\n $message->message_type_id = 2;\n $message->message_recipients = $user['email_address'];\n $message->message_subject = $subject;\n $message->message_body = $body;\n $message->meet_id = $meet->meet_id;\n $message->notification_reason_id = 1;\n $message->insert();\n }\n }\n }\n }", "public function sendEmailVerificationNotification()\n {\n $this->notify( new VerifyEmail() ); # 새로 만든 VerifyEmail Notification 발송\n }", "public function mrMarkupEmailListOnSend() {\n // Invoke javascript:markMrListItemSent(updatedString) so that the button in the listing window has the new commId.\n $markMrListItemSentText = 'markMrListItemSent(\"' . $this->mrEmailWidgetId() \n . '\", mrEmailSentWidgetMarkupJS(' . $this->commId() . ', ' . $this->recipientId() . ', \"' . $this->mrEmailWidgetId() . '\"))';\n $script = \"<script type='text/javascript'>eval('\" . $markMrListItemSentText . \"');</script>\\r\\n\";\n self::$debugger->becho('mrMarkupEmailListOnSend script', $script, 0);\n echo $script;\n }", "private function sendConfirmationMail() {\n\t\t\t\t$subject = 'Confirmation Mail';\n\t\t\t\t$from = '[email protected]';\n\t\t\t\t$replyTo = '[email protected]';\n\t\t\t\t\n\t\t\t\t//include some fancy stuff here, token is md5 of email\n\t\t\t\t$message = \"<a href='http://www.momeen.com/eCommerce/register/confirmUser.php?token=$this->token'> Confirm</a>\";\n\n\t\t\t\t$headers = \"From: \".\"$from\".\"\\r\\n\";\n\t\t\t\t$headers .= \"Reply-To: \".\"$replyTo\".\"\\r\\n\";\n\t\t\t\t$headers .= \"MIME-Version:1.0\\r\\n\";\n\t\t\t\t$headers .= \"Content-Type:text/html; charset=ISO-8859-1\\r\\n\";\n\t\t\t\tif(!mail($this->email, $subject, $message, $headers)) {\n\t\t\t\t\t$this->response['status'] = 0;\n\t\t\t\t\t$this->response['message'] = 'Confirmation mail did not sent. Contact admin';\n\t\t\t\t}\n\t\t\t}", "private function sendNotifyEmail(){\n $uS = Session::getInstance();\n $to = filter_var(trim($uS->referralFormEmail), FILTER_SANITIZE_EMAIL);\n\n try{\n if ($to !== FALSE && $to != '') {\n// $userData = $this->getUserData();\n $content = \"Hello,<br>\" . PHP_EOL . \"A new \" . $this->formTemplate->getTitle() . \" was submitted to \" . $uS->siteName . \". <br><br><a href='\" . $uS->resourceURL . \"house/register.php' target='_blank'>Click here to log into HHK and take action.</a><br>\" . PHP_EOL;\n\n $mail = prepareEmail();\n\n $mail->From = ($uS->NoReplyAddr ? $uS->NoReplyAddr : \"[email protected]\");\n $mail->FromName = htmlspecialchars_decode($uS->siteName, ENT_QUOTES);\n $mail->addAddress($to);\n\n $mail->isHTML(true);\n\n $mail->Subject = \"New \" . Labels::getString(\"Register\", \"onlineReferralTitle\", \"Referral\") . \" submitted\";\n $mail->msgHTML($content);\n\n if ($mail->send() === FALSE) {\n return false;\n }else{\n return true;\n }\n }\n }catch(\\Exception $e){\n return false;\n }\n return false;\n }", "public function sendActivationEmail()\n\t{\n\t\t$mailData = [\n\t\t\t'to' => $this->email,\n\t\t\t'from' => '[email protected]',\n\t\t\t'nameFrom' => 'Peter Štovka'\n\t\t];\n\n\n\t\tMail::send('email.activation', ['token' => $this->token], function ($message) use ($mailData) {\n\t\t\t$message->to($mailData['to'], 'Aktivačný email')\n\t\t\t\t->subject('Aktivácia účtu')\n\t\t\t\t->from($mailData['from'], $mailData['nameFrom']);\n\t\t});\n\t}", "public function sendMailable(){\n /*$email = \"[email protected]\";\n Mail::to($email)->send(new SendEmailTest('Jorge Gonzales'));*/\n\n // Enviar toda la data de un usuario\n $email = \"[email protected]\";\n $user = User::where('email', $email)->first();\n Mail::to($email)->send(new SendEmailTest($user));\n\n }", "public function email_approver()\n {\n \n $this->db->select('EMAIL');\n $this->db->from('APPROVERS');\n $this->db->where('UNIT',$_SESSION['div']);\n $query = $this->db->get();\n $out = $query->result_array();\n\n if ($out) {\n\n \n foreach ($out as $recipient){\n \n //mail to approver\n $this->load->library('email');\n $htmlContent = '<h1>Title change requested in FREE System.</h1>';\n $htmlContent .= '<p>Please review the <a href=\"' . base_url() . '/admin\">Approval Control Panel</a> to review the request.</p>';\n \n $this->email->clear();\n\n $config['mailtype'] = 'html';\n $this->email->initialize($config);\n $this->email->to($recipient);\n $this->email->from('[email protected]', 'FREE System');\n $this->email->subject('Title Change Requested');\n $this->email->message($htmlContent);\n $this->email->send();\n }\n }\n }", "public function sendEmailVerificationNotification()\n {\n $this->notify( new VerifyEmailNotification );\n }", "private function mailToevoegenAction()\n {\n $this->model->maakMail();\n $this->model->foutGoedMelding('success', '<strong>Gelukt!</strong> E-mail adres is toegevoed. <span class=\"glyphicon glyphicon-saved\"></span>');\n $this->model->setLog('Mail toevoegen', 'Gelukt');\n $this->forward('klant', 'admin');\n }", "public function sendConfEmail() {\r\n\t\t$to = array($this->email => $this->fname . \" \" . $this->lname);\r\n\t\t$emailObj = new mandrillApi($to, \"Welcome to Tackster.com\");\r\n\t\t$htmlString = <<<EOF\r\n<h3>Welcome to Tackster.com</h3>\r\n<p>You have now registered with <a href=\"http://www.tackster.com\">Tackster.com</a>.\r\nWe figure we should keep the greeting short and get you started right away!</p>\r\nLet's go to the site by <a href=\"http://www.tackster.com\"><b>Visting Tackster.com</b></a>!\r\nEOF;\r\n\t\t$emailObj->createEmail($htmlString);\r\n\t\t$emailObj->sendEmail();\r\n\t}", "function setUserInformation()\r\n{\r\n global $sender ;\r\n global $message ;\r\n global $chemin ;\r\n global $query ;\r\n if(filter_var(strtolower($message), FILTER_VALIDATE_EMAIL) || preg_match(\"#^(none)#i\", $message))\r\n {\r\n sendTextMessage(\"Thank you for your answer to my question.Your setting is correctly set\");\r\n displayAllService();\r\n $query->addUser($sender,strtolower($message));\r\n file_put_contents($chemin,\"\");\r\n }\r\n else\r\n {\r\n sendTextMessage(\"Please provide a valid email or type none if you don't get one 😕 .\");\r\n }\r\n}", "public function send_subscriptions(){\r\n //send email to all those who have subscribed to posts from this author\r\n\r\n }", "public function sendWelcomeEmail()\n {\n SendEmailJob::dispatch($this, 'confirm-email', 'Confirm Your Email', [])->onQueue('account-notifications');\n }", "public function sendNotificationEmail(){\n $unsentNotifications = $this->unsentNotifications;\n $notificationCount = count($unsentNotifications);\n \n if($notificationCount > 0){\n //Send this employer all his \"unsent\" notifications \n if($this->employer_language_pref == \"en-US\"){\n //Set language based on preference stored in DB\n Yii::$app->view->params['isArabic'] = false;\n\n //Send English Email\n Yii::$app->mailer->compose([\n 'html' => \"employer/notification-html\",\n ], [\n 'employer' => $this,\n 'notifications' => $unsentNotifications,\n ])\n ->setFrom([\\Yii::$app->params['supportEmail'] => \\Yii::$app->name ])\n ->setTo([$this->employer_email])\n ->setSubject(\"[StudentHub] You've got $notificationCount new applicants!\")\n ->send();\n }else{\n //Set language based on preference stored in DB\n Yii::$app->view->params['isArabic'] = true;\n\n //Send Arabic Email\n Yii::$app->mailer->compose([\n 'html' => \"employer/notification-ar-html\",\n ], [\n 'employer' => $this,\n 'notifications' => $unsentNotifications,\n ])\n ->setFrom([\\Yii::$app->params['supportEmail'] => \\Yii::$app->name ])\n ->setTo([$this->employer_email])\n ->setSubject(\"[StudentHub] لقد حصلت على $notificationCount متقدمين جدد\")\n ->send();\n }\n \n \n return true;\n }\n \n return false;\n }", "function mailFollowupEx($tm, $type, $more_addresses = false, $changes='') {\n\n\t\t$monitor_ids = array();\n\n\t\tif (!$changes) {\n\t\t\t$changes=array();\n\t\t}\n\n\t\t$sess = session_get_user();\n\t\t$name = util_unconvert_htmlspecialchars($this->ArtifactType->getName());\n\t\t$body = $this->ArtifactType->Group->getUnixName() . '-' . $name .' '. $this->getStringID();\n\n\t\tif ($type == 1) {\n\t\t\t$body .= ' was opened at '.date('Y-m-d H:i', $this->getOpenDate());\n\t\t} elseif ($type == 3) {\n\t\t\t$body .= ' was deleted at '.date('Y-m-d H:i', time());\n\t\t} else {\n\t\t\t$body .= ' was changed at '.date('Y-m-d H:i', $tm);\n\t\t}\n\t\tif ($sess) {\n\t\t\t$body .= ' by ' . $sess->getRealName();\n\t\t}\n\n\t\tif ($type == 1 || $type == 2) {\n\t\t\t$body .= \"\\nYou can respond by visiting: \".\n\t\t\t\t\"\\n\".util_make_url ('/tracker/?func=detail&atid='. $this->ArtifactType->getID() .\n\t\t\t\t\t \"&aid=\". $this->getID() .\n\t\t\t\t\t \"&group_id=\". $this->ArtifactType->Group->getID());\n\t\t\tif (false) { // currently not working\n\t\t\t\t$body .=\n\t\t\t\t\"\\nOr by replying to this e-mail entering your response between the following markers: \".\n\t\t\t\t\"\\n\".ARTIFACT_MAIL_MARKER.\n\t\t\t\t\"\\n(enter your response here, only in plain text format)\".\n\t\t\t\t\"\\n\".ARTIFACT_MAIL_MARKER;\n\t\t\t}\n\t\t\t$body .= \"\\n\";\n\t\t}\n\n\t\t$body .= \"\\n\".$this->marker('status',$changes).\n\t\t\t \"Status: \". $this->getStatusName() .\"\\n\".\n\t\t\t$this->marker('priority',$changes).\n\t\t\t \"Priority: \". $this->getPriority() .\"\\n\".\n\t\t\t\"Submitted By: \". $this->getSubmittedRealName() .\n\t\t\t\" (\". $this->getSubmittedUnixName(). \")\".\"\\n\".\n\t\t\t$this->marker('assigned_to',$changes).\n\t\t\t \"Assigned to: \". $this->getAssignedRealName() .\n\t\t\t \" (\". $this->getAssignedUnixName(). \")\".\"\\n\".\n\t\t\t$this->marker('summary',$changes).\n\t\t\t \"Summary: \". util_unconvert_htmlspecialchars( $this->getSummary() ).\" \\n\";\n\n\t\t// Now display the extra fields\n\t\t$efd = $this->getExtraFieldDataText();\n\t\tforeach ($efd as $efid => $ef) {\n\t\t\t$body .= $this->marker('extra_fields', $changes, $efid);\n\t\t\t$body .= $ef[\"name\"].\": \".htmlspecialchars_decode($ef[\"value\"]).\"\\n\";\n\t\t}\n\n\t\t$subject='['. $this->ArtifactType->Group->getUnixName() . '-' . $name . ']' . $this->getStringID() .' '. util_unconvert_htmlspecialchars( $this->getSummary() );\n\n\t\tif ($type > 1) {\n\t\t\t// get all the email addresses that are monitoring this request or the ArtifactType\n\t\t\t$monitor_ids = array_merge($this->getMonitorIds(), $this->ArtifactType->getMonitorIds());\n\t\t} else {\n\t\t\t// initial creation, we just get the users monitoring the ArtifactType\n\t\t\t$monitor_ids = $this->ArtifactType->getMonitorIds();\n\t\t}\n\n\t\t$emails = array();\n\t\tif ($more_addresses) {\n\t\t\t$emails[] = $more_addresses;\n\t\t}\n\t\t//we don't email the current user\n\t\tif ($this->getAssignedTo() != user_getid()) {\n\t\t\t$monitor_ids[] = $this->getAssignedTo();\n\t\t}\n\t\tif ($this->getSubmittedBy() != user_getid()) {\n\t\t\t$monitor_ids[] = $this->getSubmittedBy();\n\t\t}\n\t\t//initial submission\n\t\tif ($type==1) {\n\t\t\t//if an email is set for this ArtifactType\n\t\t\t//add that address to the BCC: list\n\t\t\tif ($this->ArtifactType->getEmailAddress()) {\n\t\t\t\t$emails[] = $this->ArtifactType->getEmailAddress();\n\t\t\t}\n\t\t} else {\n\t\t\t//update\n\t\t\tif ($this->ArtifactType->emailAll()) {\n\t\t\t\t$emails[] = $this->ArtifactType->getEmailAddress();\n\t\t\t}\n\t\t}\n\n\t\t$body .= \"\\n\\nInitial Comment:\".\n\t\t\t\"\\n\".util_unconvert_htmlspecialchars( $this->getDetails() ) .\n\t\t\t\"\\n\\n----------------------------------------------------------------------\";\n\n\t\tif ($type > 1) {\n\t\t\t/*\n\t\t\t\tNow include the followups\n\t\t\t*/\n\t\t\t$result2=$this->getMessages();\n\n\t\t\t$rows=db_numrows($result2);\n\n\t\t\tif ($result2 && $rows > 0) {\n\t\t\t\tfor ($i=0; $i<$rows; $i++) {\n\t\t\t\t\t//\n\t\t\t\t\t//\tfor messages posted by non-logged-in users,\n\t\t\t\t\t//\twe grab the email they gave us\n\t\t\t\t\t//\n\t\t\t\t\t//\totherwise we use the confirmed one from the users table\n\t\t\t\t\t//\n\t\t\t\t\tif (db_result($result2,$i,'user_id') == 100) {\n\t\t\t\t\t\t$emails[] = db_result($result2,$i,'from_email');\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$monitor_ids[] = db_result($result2,$i,'user_id');\n\t\t\t\t\t}\n\n\t\t\t\t\t$body .= \"\\n\\n\";\n\t\t\t\t\tif ($i == 0) {\n\t\t\t\t\t\t$body .= $this->marker('details',$changes);\n\t\t\t\t\t}\n\t\t\t\t\t$body .= \"Comment By: \". db_result($result2,$i,'realname') . \" (\".db_result($result2,$i,'user_name').\")\".\n\t\t\t\t\t\"\\nDate: \". date( _('Y-m-d H:i'),db_result($result2,$i,'adddate') ).\n\t\t\t\t\t\"\\n\\nMessage:\".\n\t\t\t\t\t\"\\n\".util_unconvert_htmlspecialchars( db_result($result2,$i,'body') ).\n\t\t\t\t\t\"\\n\\n----------------------------------------------------------------------\";\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t\t$body .= \"\\n\\nYou can respond by visiting: \".\n\t\t\t\"\\n\".util_make_url ('/tracker/?func=detail&atid='. $this->ArtifactType->getID() .\n\t\t\t\t\t \"&aid=\". $this->getID() .\n\t\t\t\t\t \"&group_id=\". $this->ArtifactType->Group->getID());\n\n\t\t//only send if some recipients were found\n\t\tif (count($emails) < 1 && count($monitor_ids) < 1) {\n\t\t\treturn true;\n\t\t}\n\n\t\tif (count($monitor_ids) < 1) {\n\t\t\t$monitor_ids=array();\n\t\t} else {\n\t\t\t$monitor_ids=array_unique($monitor_ids);\n\t\t}\n\n\t\t$from = $this->ArtifactType->getReturnEmailAddress();\n\t\t$extra_headers = 'Reply-to: '.$from;\n\n\t\t// load the e-mail addresses of the users\n\t\t$users = user_get_objects($monitor_ids);\n\t\tif (count($users) > 0) {\n\t\t\tforeach ($users as $user) {\n\t\t\t\tif ($user->getStatus() == \"A\") { //we are only sending emails to active users\n\t\t\t\t\t$emails[] = $user->getEmail();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//now remove all duplicates from the email list\n\t\tif (count($emails) > 0) {\n\t\t\t$bcc = implode(',',array_unique($emails));\n\t\t\tutil_send_message('', $subject, $body, $from, $bcc, '', $extra_headers);\n\t\t}\n\n\t\t$this->sendSubjectMsg = $subject;\n\t\t$this->sendBodyMsg = $body;\n\n\t\t//util_handle_message($monitor_ids,$subject,$body,$BCC);\n\n\t\treturn true;\n\t}", "public function AddMentoratUser($id){\n if($user = User::where(['id' => $id,'mentorat' => User::not_mentorat,'type' => User::user])->first()){\n $this->mail->ID840231($user->id,Session::get('userData'));\n toastr()->success('This user has been emailed to approve mentor');\n\n $user->mentorat = User::in_standby_mentorat;\n $user->save();\n }else{\n toastr()->error('Something is wrong!');\n }\n return Redirect::back();\n }", "function sendEmails() {\n\t\t$this->substituteValueMarkers(array('templateCode' => $this->data['tx_gokontakt_emailBody'] ));\n\t\t$this->substituteLanguageMarkers(array('templateCode' => $this->data['tx_gokontakt_emailBody'] ));\n\t\t$this->substituteValueMarkers(array('templateCode' => $this->data['tx_gokontakt_emailAdminBody'] ));\n\t\t$this->substituteLanguageMarkers(array('templateCode' => $this->data['tx_gokontakt_emailAdminBody'] ));\n\n\t\t$emailUser = $this->cObj->substituteMarkerArrayCached($this->data['tx_gokontakt_emailBody'], $this->markerArray, $this->subpartMarkerArray, $this->wrappedSubpartMarkerArray);\n\t\t$emailUser = str_replace(\"<br />\", \"\\n\", $emailUser);\n\t\t$emailAdmin = $this->cObj->substituteMarkerArrayCached($this->data['tx_gokontakt_emailAdminBody'], $this->markerArray, $this->subpartMarkerArray, $this->wrappedSubpartMarkerArray);\n\t\t$emailAdmin = str_replace(\"<br />\", \"\\n\", $emailAdmin);\n\t\t$emailFrom = $this->data['tx_gokontakt_emailFrom'];\n\t\t$emailFromName = $this->data['tx_gokontakt_emailFromName'];\n\t\t$emailToAdmin = $this->data['tx_gokontakt_emailToAdmin'];\n\n\t\t$this->sendEmail($this->pi_getLL('subject_email_user'), $emailUser, '', $emailFrom, $emailFromName, $this->piVars['email']);\n\t\t$this->sendEmail($this->pi_getLL('subject_email_admin'), $emailAdmin, '', $emailFrom, $emailFromName, $emailToAdmin);\n\t}", "function send_verification_mail($name, $destination_address, $token){\n\t$subject=\"Verifkasi Member\";\n\t$verification_link=\"http://localhost/campus/user_email_verification_process.php?token=$token\";\n\t$content=\"Hi, $name\\nKlik link di bawah ini untuk mengkonfirmasi registrasi anda:\\n$verification_link\";\n\tsend_mail($destination_address, $subject, $content);\n}", "public function mail()\n\t{\n $this->load->model('mailsjabloon_model');\n $this->load->model('gebruiker_model');\n $data['titel'] = 'Send mails';\n $data['auteur'] = \"<u>Lorenzo M.</u>| Arne V.D.P. | Kim M. | Eloy B. | Sander J.\";\n $data['gebruiker'] = $this->authex->getGebruikerInfo();\n $data['link'] = 'admin/index';\n \n $data['sjablonen'] = $this->mailsjabloon_model->getSjablonen();\n \n $partials = array('hoofding' => 'main_header','menu' => 'main_menu', 'inhoud' => 'mails_versturen');\n $this->template->load('main_master', $partials, $data);\n\t}", "public function SendActiveMail($data,$id=null){\n if($id!=null){\n $add=public_users::find($id);\n $add->num_of_sends+=1;\n $add->save();\n }\n $mailables=new PublicMailVerification($data['token'],$data['name'],$data['email'],$data['phone'],$data['otp']);\n Mail::to($data['email'])->send($mailables);\n }", "public function notify_user($id,$month){\n\t\t$user_data = $this->HrAttWaive->HrEmployee->find('first', array('fields' => array('email_address', 'first_name','last_name'), \n\t\t'conditions' => array('HrEmployee.id' => $id)));\t\t\t\n\t\t$sub = 'BigOffice - Waive Off Request is processed by '.ucfirst($this->Session->read('USER.Login.first_name')).' '.ucfirst($this->Session->read('USER.Login.last_name'));\n\t\t$template = 'notify_waive_req';\n\t\t$from = ucfirst($this->Session->read('USER.Login.first_name')).' '.ucfirst($this->Session->read('USER.Login.last_name'));\n\t\t$name = $user_data['HrEmployee']['first_name'].' '.$user_data['HrEmployee']['last_name'];\t\t\t\t\t\n\t\t$vars = array('from_name' => $from, 'name' => $name, 'month' => $month, \n\t\t'employee' => $user_data['HrEmployee']['first_name'].' '.$user_data['HrEmployee']['last_name']);\n\t\t// notify superiors\t\t\t\t\t\t\n\t\tif(!$this->send_email($sub, $template, '[email protected]', $user_data['HrEmployee']['email_address'],$vars)){\t\n\t\t\t// show the msg.\t\t\t\t\t\t\t\t\n\t\t\t$this->Session->setFlash('<button type=\"button\" class=\"close\" data-dismiss=\"alert\">&times;</button>Problem in sending the mail to user...', \n\t\t\t'default', array('class' => 'alert alert-error'));\t\t\t\t\n\t\t}\t\t\n\t}", "private function mailer($id)\n {\n //server\n $server = Servers::where('server_id', $id)->firstOrFail();\n $server_name = $server->server_name;\n //apps\n $server_apps = ServerApp::where('server_id', $id)->get();\n //find the apps\n foreach ($server_apps as $serverapp)\n {\n $app_id = $serverapp->app_id;\n $appfunctionaladmincount = $this->countAppFunctionalAdmin($app_id);\n //check if persons exist\n if ($appfunctionaladmincount >=1){\n //find the persons\n $appfunctionaladmin = App_FunctionalAdmin::with('persons')->where('app_id', $app_id)->get();\n foreach ($appfunctionaladmin as $functionaladmin)\n {\n $person_mail = $functionaladmin->persons->person_email;\n //run the mails\n if (filter_var($person_mail, FILTER_VALIDATE_EMAIL)) {\n if (!is_null($person_mail)){\n Mail::to($person_mail)->send(new OSnotifyMail($app_name,$server_name,$person_mail));\n }\n }\n }\n } \n $apptechadmincount = $this->countAppTechAdmin($app_id);\n if($apptechadmincount >=1){\n $apptechadmin = App_TechAdmin::with('persons')->where('app_id', $app_id)->get();\n foreach ($apptechadmin as $techadmin)\n {\n $person_techmail = $techadmin->persons->person_email;\n //run the mails\n if (filter_var($person_techmail, FILTER_VALIDATE_EMAIL)) {\n if (!is_null($person_techmail)){\n Mail::to($person_techmail)->send(new OSnotifyMail($app_name,$server_name,$person_techmail));\n }\n } \n }\n }\n\n }\n }", "public function send_mail_to_accepted_user($username) {\n }", "public function sendEmailVerificationNotification()\n {\n $this->notify(new VerifyEmailNotification);\n }", "public function sendEmailVerificationNotification()\n {\n $this->notify(new VerifyEmailNotification);\n }", "public function sendEmailVerificationNotification()\n {\n $this->notify(new VerifyEmail);\n }", "public function sendEmailVerificationNotification()\n {\n $this->notify(new VerifyEmail);\n }", "public function sendEmailVerificationNotification()\n {\n $this->notify(new VerifyEmail);\n }", "public function sendEmailVerificationNotification()\n {\n $this->notify(new VerifyEmail);\n }", "public function sendEmailVerificationNotification()\n {\n $this->notify(new VerifyEmail);\n }", "public function sendEmailVerificationNotification()\n {\n $this->notify(new VerifyEmail);\n }", "public function sendEmailVerificationNotification()\n {\n $this->notify(new VerifyEmail);\n }", "public function notifyOwner($member) {\n $to = CSM_EMAIL;\n $subject = 'New membership: ' . show_a_name($member);\n $body = 'Hello ' . CSM_NAME . ', <br><br>'\n . show_a_name($member) . ' has added a new membership plan.<br>'\n . 'Login to your Wordpress account and go to the Coworking Space Manager to see the membership plan.';\n $headers = array('Content-Type: text/html; charset=UTF-8',\n 'From: ' . html_entity_decode(CSM_NAME) . ' <' . CSM_EMAIL . '>'\n );\n\n $mail = wp_mail($to, $subject, $body, $headers);\n }", "public function sendEmailWithApplyLink(){\n\t}", "function notify_request_client($email) {\n\t$link = SITE_URL.'requests.php';\n\n\t$text = \"Hello,\\n\";\n\t$text .= \"\\nYou requested an appointment. You can manage your appointment below:\\n\";\n\t$text .= \"\\n<a href='$link'>Manage</a>\\n\";\n\t$text .= \"\\nThanks,\\n\";\n\t$text .= \"The Ma-Maria team\";\n\n\tif(MAIL_ENABLED) {\n\t\tmail($email, 'Ma-Maria - Request', $text);\n\t}\n}", "public function Notify_owner_ready($requeridor, $vale)\n {\n if($this->email_check($requeridor['email'])){\n if($vale['id_estado']->id_estado_entrega == $this->CI->config->item('EnProcesoDeArmado')){\n\n $header = '[Sistema de Vales #'.$vale['id_vale'].'] Su vale se encuentra en proceso de armado';\n\n }elseif($vale['id_estado']->id_estado_entrega == $this->CI->config->item('ListoParaRetirar')){\n\n $header = '[Sistema de Vales #'.$vale['id_vale'].'] Su vale ya esta listo para ser retirado';\n\n }elseif($vale['id_estado']->id_estado_entrega == $this->CI->config->item('Retirado')){\n\n $header = '[Sistema de Vales #'.$vale['id_vale'].'] Su vale ha sido retirado';\n\n }elseif($vale['id_estado']->id_estado_entrega == $this->CI->config->item('RechazoPorFaltaDeStock')){\n\n $header = '[Sistema de Vales #'.$vale['id_vale'].'] Su vale ha sido Rechazado por falta de stock';\n }\n $body = $this->CI->load->view('email/update_status', $vale, TRUE);\n $dbdata = array(\n '_recipients' => $requeridor['email'],\n '_body' => $body,\n '_headers' => $header,\n );\n $this->CI->mailer->new_mail_queue($dbdata);\n }\n }", "public function sendGlobalUserActivated()\n {\n if ($this->_sendMails) {\n $row = $this->getModel()->getKwfUserRowById($this->id);\n $mail = new Kwf_User_Mail_GlobalUserActivated($row);\n $mail->send();\n $this->writeLog('user_mail_GlobalUserActivation');\n }\n }", "public function emails($boletoID, $post);", "public function sendRatingEmails($session){\n $this->sendRatingToMentor($session);\n $this->sendRatingToMentee($session);\n }", "public function sendEmailVerificationNotification()\n {\n $this->notify(new VerifyEmail());\n }", "public function sendEmailVerificationNotification()\n {\n $this->notify(new VerifyEmail());\n }", "public function sendEmailVerificationNotification()\n {\n $this->notify(new VerifyEmail());\n }", "function notification()\n{\n\n $correo = isset($_POST['correo'])?$_POST['correo']:'';\n $name = isset($_POST['fullname'])?$_POST['fullname']:'';\n $usuario = isset($_POST['usuario'])?$_POST['usuario']:'';\n $clave = isset($_POST['clave'])?$_POST['clave']:'';\n $sendmail= isset($_POST['sendmail'])?$_POST['sendmail']:'';\n if(false == empty($clave) && ($sendmail == 'Y')){\n \n $mail = new Zend_Mail('UTF-8');\n $mail->setBodyText(\"Sr(a) {$name}, esta es su información de ingreso para el sistema Enlazamundos\\r\\n\\r\\nUsuario:{$usuario}\\r\\nClave:{$clave}\");\n $mail->setFrom('[email protected] ', 'Programa Enlazamundos');\n $mail->addTo($correo);\n $mail->setSubject('Confirmación de registro Enlazamundos');\n $mail->send();\n return;\n }\n}", "public static function sendWelcomeEmail($member_id, $emailaddress, $user_name, $password, $email_message = ''): void\n\t{\n\t\tif(empty($member_id) || empty($emailaddress) || empty($user_name) || empty($password)) return;\n\t\t$login_link = DashboardController::getLoginLink();\n\t\t$message = sprintf(__('Welkom bij %s', 'dda'), get_bloginfo('name')). \"\\r\\n\\r\\n\";\n\t\t$message .= sprintf(__('Je bent aan %s toegevoegd.', 'dda'), get_the_title($member_id)). \"\\r\\n\\r\\n\";\n\t\t$message .= sprintf(__('Gebruikersnaam: %s of %s', 'dda'), $user_name, $emailaddress).\"\\r\\n\";\n\t\t$message .= sprintf(__('Wachtwoord: %s', 'dda'), $password).\"\\r\\n\\r\\n\";\n\t\t$message .= sprintf(__('Bezoek het volgende adres om in te loggen: %s', 'dda'), $login_link). \"\\r\\n\\r\\n\";\n\n\t\tif($email_message) {\n\t\t\t$message .= $email_message;\n\t\t} else {\n\t\t\t$message .= __('We hebben je nog niet toegevoegd aan onze lijst met leden, zodra je de bedrijfsgegevens invult via mijn DDA, wordt je bedrijf toegevoegd aan de lijst met leden.', 'dda');\n\t\t}\n\n\t\twp_mail($emailaddress, 'Welkom bij '.get_bloginfo('name').'!', $message);\n\t}", "public function sendEmail()\n\t{\n\t\tif (empty($this->get('crmid'))) {\n\t\t\treturn;\n\t\t}\n\t\t$moduleName = 'Contacts';\n\t\t$recordModel = Vtiger_Record_Model::getInstanceById($this->get('crmid'), $moduleName);\n\t\tif ($recordModel->get('emailoptout')) {\n\t\t\t$emailsFields = $recordModel->getModule()->getFieldsByType('email');\n\t\t\t$addressEmail = '';\n\t\t\tforeach ($emailsFields as $fieldModel) {\n\t\t\t\tif (!$recordModel->isEmpty($fieldModel->getFieldName())) {\n\t\t\t\t\t$addressEmail = $recordModel->get($fieldModel->getFieldName());\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!empty($addressEmail)) {\n\t\t\t\t\\App\\Mailer::sendFromTemplate([\n\t\t\t\t\t'template' => 'YetiPortalRegister',\n\t\t\t\t\t'moduleName' => $moduleName,\n\t\t\t\t\t'recordId' => $this->get('crmid'),\n\t\t\t\t\t'to' => $addressEmail,\n\t\t\t\t\t'password' => $this->get('password_t'),\n\t\t\t\t\t'login' => $this->get('user_name'),\n\t\t\t\t\t'acceptable_url' => Settings_WebserviceApps_Record_Model::getInstanceById($this->get('server_id'))->get('acceptable_url')\n\t\t\t\t]);\n\t\t\t}\n\t\t}\n\t}", "public function handleSelectedWarehouseEmail()\n\t{\n\t\tif($this->emailSendTo->Text)\n\t\t{\n\t\t\t$this->emailSendTo->Text = $this->emailSendTo->Text . \";\" . $this->emailWarehouse->getSelectedValue();\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->emailSendTo->Text = $this->emailWarehouse->getSelectedValue();\n\t\t}\n\t\t$this->emailWarehouse->setSelectedValue(0);\n\t\t$this->emailWarehouse->Text = \"\";\n\t}", "public function sendnotificationemails($type,$to,$subject,$username,$linkhref){\r\n\r\n $bodyhead=\"<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>\r\n <html xmlns='http://www.w3.org/1999/xhtml'>\r\n <head>\r\n <meta http-equiv='Content-Type' content='text/html; charset=utf-8' />\r\n <title>\".$this->getsettings('sitetitle','text').\"</title>\r\n </head><body>\";\r\n if( $this->getsettings('email','logoshow') == '1' ) {\r\n $body = \"<img src='\".$this->getsettings('logo','url').\"' alt='\".$this->getsettings('sitetitle','text').\"' title='\".$this->getsettings('sitetitle','text').\"'/>\";\r\n }\r\n else {\r\n $body = '';\r\n }\r\n\r\n $link = \"<a href='\".$linkhref.\"'>\".$this->getsettings($type,'linktext').\"</a>\";\r\n $emContent = $this->getsettings($type,'text');\r\n $emContent = str_replace(\"[username]\",$username,$emContent);\r\n $emContent = str_replace(\"[break]\",\"<br/>\",$emContent);\r\n $emContent = str_replace(\"[linktext]\",$link,$emContent);\r\n\r\n $body .=\"<p>\".$emContent.\"</p>\";\r\n\r\n $from = $this->getsettings('email','fromname');\r\n $from_add = $this->getsettings('email','fromemail');\r\n $headers = \"MIME-Version: 1.0\" . \"\\r\\n\";\r\n $headers .= \"Content-type:text/html;charset=iso-8859-1\" . \"\\r\\n\";\r\n $headers .= \"From: =?UTF-8?B?\". base64_encode($from) .\"?= <$from_add>\\r\\n\" .\r\n 'Reply-To: '.$from_add . \"\\r\\n\" .\r\n 'X-Mailer: PHP/' . phpversion();\r\n mail($to,$subject,$bodyhead.$body.'</body></html>',$headers, '-f'.$from_add);\r\n\r\n if( $type == 'forgotpwdemail' ) {\r\n return '7#email';\r\n }\r\n else {\r\n return '7#register';\r\n }\r\n\r\n die();\r\n\t}", "public function sendRegistrationEmail()\n {\n $loginToken=$this->extractTokenFromCache('login');\n\n $url = url('register/token',$loginToken);\n Mail::to($this)->queue(new RegistrationConfirmationEmail($url));\n }", "public function sendEmailVerificationNotification()\n {\n $this->notify(new CustomVerifyEmail);\n }", "function send_notification_mail($notification_array){\n\t\n\t$type = $notification_array['type'];\n\t\n\t//To send follow notification email\t\n\tif($type === 'follow'){\n\t\t\n\t\t$following_username = $notification_array['following_username'];\n\t\t$followed_username = $notification_array['followed_username'];\n\t\t$to_email = $followed_email = $notification_array['followed_email'];\n\t\n\t}\n\t//To send comment notification email\t\n\telseif($type === 'comment'){\n\t\t\n\t\t$commentAuthorUsername = $notification_array['commentAuthorUsername'];\n\t\t$postAuthorUsername = $notification_array['postAuthorUsername'];\n\t\t$to_email = $postAuthorEmail = $notification_array['postAuthorEmail'];\n\t}\n\t//To send like notification email\t\n\telseif($type === 'like'){\n\t\t\n\t\t$likerUsername = $notification_array['likerUsername'];\n\t\t$postAuthorUsername = $notification_array['postAuthorUsername'];\n\t\t$to_email = $postAuthorEmail = $notification_array['postAuthorEmail'];\n\t}\n\t\n\tob_start();\n\tinclude('email_templates/notification.php');\n\t$notification_template = ob_get_contents();\t\t\t\n\tob_end_clean();\n\t\n\t\n\t\n\t$to = '[email protected]'; \n\t/*$to = $to_email; //please uncomment this when in live*/\n\t$strSubject = \"Notification mail\";\n\t$message = $notification_template; \n\t$headers = 'MIME-Version: 1.0'.\"\\r\\n\";\n\t$headers .= 'Content-type: text/html; charset=iso-8859-1'.\"\\r\\n\";\n\t$headers .= \"From: [email protected]\"; \n\t\n\tif(mail($to, $strSubject, $message, $headers)){\n\t\treturn 'Mail send successfully';\n\t}else{\n\t\treturn 'Could not send email';\n\t} \n\t\n}", "private function emailAtLogin() {}", "function sendUpdateEmail($email, $registrant)\n{\n $name = $_SESSION['ctst_name'];\n $subject = $name . \" registration information updated.\";\n $mailContent = $registrant['givenName'] . ' ' . $registrant['familyName'];\n $mailContent .= \":\\n\\n\";\n $mailContent .= \"Your information for the \" . $name . \" has been updated.\\n\";\n $mailContent .= \"\\nIf you did not edit your registration information, \" .\n \"please write to the administrator:\\n\";\n $mailContent .= \"mailto:\" . ADMIN_EMAIL . \"?subject=account%20compromised\\n\";\n $mailContent .= \"\\nright away, or simply reply to this note.\\n\";\n $mailContent .= automatedMessage($name);\n $headers = \"From: \" . ADMIN_EMAIL . \"\\r\\n\";\n do_email($email, $subject, $mailContent, $headers);\n}", "function sendAdminNotifications($type, $memberID, $member_name = null)\n{\n\tglobal $modSettings, $language;\n\n\t$db = database();\n\n\t// If the setting isn't enabled then just exit.\n\tif (empty($modSettings['notify_new_registration']))\n\t{\n\t\treturn;\n\t}\n\n\t// Needed to notify admins, or anyone\n\trequire_once(SUBSDIR . '/Mail.subs.php');\n\n\tif ($member_name === null)\n\t{\n\t\trequire_once(SUBSDIR . '/Members.subs.php');\n\n\t\t// Get the new user's name....\n\t\t$member_info = getBasicMemberData($memberID);\n\t\t$member_name = $member_info['real_name'];\n\t}\n\n\t// All membergroups who can approve members.\n\t$groups = [];\n\t$db->fetchQuery('\n\t\tSELECT \n\t\t\tid_group\n\t\tFROM {db_prefix}permissions\n\t\tWHERE permission = {string:moderate_forum}\n\t\t\tAND add_deny = {int:add_deny}\n\t\t\tAND id_group != {int:id_group}',\n\t\t[\n\t\t\t'add_deny' => 1,\n\t\t\t'id_group' => 0,\n\t\t\t'moderate_forum' => 'moderate_forum',\n\t\t]\n\t)->fetch_callback(\n\t\tfunction ($row) use (&$groups) {\n\t\t\t$groups[] = $row['id_group'];\n\t\t}\n\t);\n\n\t// Add administrators too...\n\t$groups[] = 1;\n\t$groups = array_unique($groups);\n\n\t// Get a list of all members who have ability to approve accounts - these are the people who we inform.\n\t$current_language = User::$info->language;\n\t$db->query('', '\n\t\tSELECT \n\t\t\tid_member, lngfile, email_address\n\t\tFROM {db_prefix}members\n\t\tWHERE (id_group IN ({array_int:group_list}) OR FIND_IN_SET({raw:group_array_implode}, additional_groups) != 0)\n\t\t\tAND notify_types != {int:notify_types}\n\t\tORDER BY lngfile',\n\t\t[\n\t\t\t'group_list' => $groups,\n\t\t\t'notify_types' => 4,\n\t\t\t'group_array_implode' => implode(', additional_groups) != 0 OR FIND_IN_SET(', $groups),\n\t\t]\n\t)->fetch_callback(\n\t\tfunction ($row) use ($type, $member_name, $memberID, $language) {\n\t\t\tglobal $scripturl, $modSettings;\n\n\t\t\t$replacements = [\n\t\t\t\t'USERNAME' => $member_name,\n\t\t\t\t'PROFILELINK' => $scripturl . '?action=profile;u=' . $memberID\n\t\t\t];\n\t\t\t$emailtype = 'admin_notify';\n\n\t\t\t// If they need to be approved add more info...\n\t\t\tif ($type === 'approval')\n\t\t\t{\n\t\t\t\t$replacements['APPROVALLINK'] = $scripturl . '?action=admin;area=viewmembers;sa=browse;type=approve';\n\t\t\t\t$emailtype .= '_approval';\n\t\t\t}\n\n\t\t\t$emaildata = loadEmailTemplate($emailtype, $replacements, empty($row['lngfile']) || empty($modSettings['userLanguage']) ? $language : $row['lngfile']);\n\n\t\t\t// And do the actual sending...\n\t\t\tsendmail($row['email_address'], $emaildata['subject'], $emaildata['body'], null, null, false, 0);\n\t\t}\n\t);\n\n\tif (isset($current_language) && $current_language !== User::$info->language)\n\t{\n\t\t$lang_loader = new Loader(null, $txt, database());\n\t\t$lang_loader->load('Login', false);\n\t}\n}", "protected function sendNotification(){\n\t\t$events = Event::getEvents(0);\n\t\t\n\t\t\n\t\tforeach($events as $event)\n\t\t{\n\t\t\t\n\t\t\t\n\t\t\t$eventType = $event['eventType'];\n\t\t\t$message = '';\n\t\t\n\t\t\t//notify followers\n\t\t\tif($eventType == Event::POST_CREATED)\n\t\t\t\t$message = $event['raiserName'] . ' added a new post.';\n\t\t\telse if($eventType == Event::POST_LIKED)\n\t\t\t\t$message = $event['raiserName'] . ' liked a post of ' . $event['relatedUserName'];\n\t\t\telse if($eventType == Event::POST_FLAGGED)\n\t\t\t\t$message = $event['raiserName'] . ' flagged a post of ' . $event['relatedUserName'];\n\t\t\telse if($eventType == Event::COMMENT_CREATED)\n\t\t\t\t$message = $event['raiserName'] . ' commented on a post of ' . $event['relatedUserName'];\n\t\t\telse if($eventType == Event::RESTAURANT_MARKED_FAVOURITE)\n\t\t\t\t$message = $event['raiserName'] . ' marked a restaurant as favourite.';\n\t\t\telse if($eventType == Event::USER_FOLLOWED)\n\t\t\t\t$message = $event['raiserName'] . ' is now following ' . $event['relatedUserName'];\n\t\t\n\t\t\tif(!empty($message))\n\t\t\t{\n\t\t\t\t//fetch all followers of the event raiser or related user\n\t\t\t\t$sql = Follower::getQueryForFollower($event['raiserId']);\n\t\t\n\t\t\t\tif($event['relatedUserId'])\n\t\t\t\t\t$sql .= ' OR f.followedUserId =' . $event['relatedUserId'];\n\t\t\n// \t\t\t\t$followers = Yii::app()->db->createCommand($sql)->queryAll(true);\n// \t\t\t\tforeach($followers as $follower)\n// \t\t\t\t{\n// \t\t\t\t\tif($follower['id'] != $event['raiserId'] && $follower['id'] != $event['relatedUserId'])\n// \t\t\t\t\t{\n// // \t\t\t\t\t\t$did = Notification::saveNotification($follower['id'], Notification::NOTIFICATION_GROUP_WORLD, $message, $event['id']);\n// // \t\t\t\t\t\terror_log('DID : => '.$did);\n// \t\t\t\t\t\t//send push notification\n// \t\t\t\t\t\t/**----- commented as no followers will be notified, as suggested by the client\n// \t\t\t\t\t\t$session = Session::model()->findByAttributes(array('deviceToken'=>$follower['deviceToken']));\n// \t\t\t\t\t\tif($session)\n// \t\t\t\t\t\t{\n// \t\t\t\t\t\t$session->deviceBadge += 1;\n// \t\t\t\t\t\t$session->save();\n// \t\t\t\t\t\tsendApnsNotification($follower['deviceToken'], $message, $follower['deviceBadge']);\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}\n\t\t\n\t\t\t//notify the related user\n\t\t\tif($event['relatedUserId'] && $event['relatedUserId'] != $event['raiserId'])\n\t\t\t{\n\t\t\t\tif($eventType == Event::POST_LIKED)\n\t\t\t\t\t$message = $event['raiserName'] . ' liked your post.';\n\t\t\t\telse if($eventType == Event::POST_FLAGGED)\n\t\t\t\t\t$message = $event['raiserName'] . ' flagged your post.';\n\t\t\t\telse if($eventType == Event::COMMENT_CREATED)\n\t\t\t\t\t$message = $event['raiserName'] . ' commented on your post.';\n\t\t\t\telse if($eventType == Event::USER_FOLLOWED)\n\t\t\t\t\t$message = $event['raiserName'] . ' is now following you.';\n\t\t\t\telse if($eventType == Event::USER_MENTIONED_COMMENT){\n\t\t\t\t\t$message = $event['raiserName'] . ' mentioned you in a comment.';\n// \t\t\t\t\t$eventType = Event::COMMENT_CREATED;\n\t\t\t\t}\n\t\t\t\telse if($eventType == Event::USER_MENTIONED_POST){\n\t\t\t\t\t$message = $event['raiserName'] . ' mentioned you in a post.';\n// \t\t\t\t\t$eventType = Event::COMMENT_CREATED;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif(!empty($message))\n\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t\t$notfyId = Notification::saveNotification($event['relatedUserId'], Notification::NOTIFICATION_GROUP_YOU, $message, $event['id']);\n\t\t\t\t\t$session = Session::model()->findByAttributes(array('userId'=>$event['relatedUserId']));\n// \t\t\t\t\terror_log('SESSION_LOG : '. print_r( $session, true ) );\n\t\t\t\t\t\t\t\t\n\t\t\t\t\tif(!is_null($session) && !empty($session) && $session->deviceToken)\n\t\t\t\t\t{\n\t\t\t\t\t\t\n\t\t\t\t\t\t$notifyData = array(\n// \t\t\t\t\t\t\t\t\"id\" => $notfyId,\n// \t\t\t\t\t\t\t\t\"receiverId\" => $event['relatedUserId'],\n// \t\t\t\t\t\t\t\t\"notificationGroup\" => Notification::NOTIFICATION_GROUP_YOU,\n\t\t\t\t\t\t\t\t\"alert\" => $message,\n// \t\t\t\t\t\t\t\t\"eventId\" => $event['id'],\n// \t\t\t\t\t\t\t\t\"isSeen\" => \"0\",\n\t\t\t\t\t\t\t\t\"eventType\" => $eventType,\n// \t\t\t\t\t\t\t\t\"raiserId\" => $event['raiserId'],\n// \t\t\t\t\t\t\t\t\"raiserName\" => $event['raiserName'],\n// \t\t\t\t\t\t\t\t\"relatedUserId\" => $event['relatedUserId'],\n// \t\t\t\t\t\t\t\t\"relatedUserName\" => $event['relatedUserName'],\n\t\t\t\t\t\t\t\t\"elementId\" => $event['elementId'],\n\t\t\t\t\t\t\t\t\"eventDate\" => $event['eventDate'],\n// \t\t\t\t\t\t\t\t\"isNotified\" => $event['isNotified'],\n\t\t\t\t\t\t\t\t'badge' => $session->deviceBadge,\n\t\t\t\t\t\t\t\t'sound' => 'default'\n\t\t\t\t\t\t);\n\t\t\t\t\t\t\n// \t\t\t\t\t\t\techo 'Notify Data : ';\n// \t\t\t\t\t\tprint_r($notifyData);\n\t\t\t\t\t\t\n\t\t\t\t\t\t$session->deviceBadge += 1;\n\t\t\t\t\t\t$session->save();\n\t\t\t\t\t\tsendApnsNotification($session->deviceToken, $message, $session->deviceBadge, $notifyData);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}elseif( isset($event['message']) && $event['message'] !=null){\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t$devices = array();\n\t\t\t\t$sql = 'SELECT id, deviceToken, deviceBadge from session where role=\"manager\"';\n\t\t\t\t\n\t\t\t $rows = Yii::app()->db->createCommand($sql)->queryAll(true);\n\t\t \t$chunk=1;\t\t \n\t\t \n\t\t\t\tforeach ($rows as $row){\n\t\t\t\t\t$devices[] = array(\n\t\t\t\t\t\t\t'deviceToken'=>$row['deviceToken'],\n\t\t\t\t\t\t\t'notifyData' => array('aps'=> array(\n\t\t\t\t\t\t\t\t\t\"alert\" => $event['message'],\n\t\t\t\t\t\t\t\t\t\"eventType\" => $event['eventType'],\n\t\t\t\t\t\t\t\t\t\"elementId\" => $event['id'],\n\t\t\t\t\t\t\t\t\t\"eventDate\" => $event['eventDate'],\n\t\t\t\t\t\t\t\t\t'badge' => $row['deviceBadge'],\n\t\t\t\t\t\t\t\t\t'sound' => 'default'\n\t\t\t\t\t\t\t\t)\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\tif($chunk > 4){\n\t\t\t\t\t\tsendApnsNotification($devices, '');\n\t\t\t\t\t\t$chunk=1;\n\t\t\t\t\t\t$devices = array();\n\t\t\t\t\t}else{\n\t\t\t\t\t\t$chunk++;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\tif(!empty($devices)){\n\t\t\t\t\techo 'Sending...'.date(DATE_RFC850).\"\\n\";\n\t\t\t\t\tsendApnsNotification($devices, '');\n\t\t\t\t\techo 'done '.date(DATE_RFC850).\"\\n\";\n\t\t\t\t}\n// \t\t\t\t$notfyId = Notification::saveNotification($event['relatedUserId'], Notification::NOTIFICATION_GROUP_YOU, $message, $event['id']);\n\n// \t\t\t\t$insertSql = 'INSERT into notification (receiverId, notificationGroup, message, eventId) (select id, \"1\", \"'.$event['message'].'\", '.$event['id'].' from user where isDisabled = 0 and role=\"manager\")';\n// \t\t\t\tYii::app()->db->createCommand($insertSql)->query();\n\t\t\t\t\n\t\t\t}\n\t\t\tEvent::model()->updateByPk($event['id'], array('isNotified'=>1));\n\t\t}\n\t\t\n\t\t\n\t\t\n\t}", "public function sendEmailUser($data)\n {\n $subject = 'Welcome to Our Atari Portal';\n $to_email = $data['email'];\n $url = $data['url'];\n Mail::send('emails.verify-email', ['username'=>$data['name'],'url'=>$url], function ($message) use ($subject, $to_email){ \n $message->subject($subject);\n $message->to($to_email);\n });\n }", "private function onJoin()\n {\n $payload = $this->clientEvent->getPayload();\n\n if ($this->authUserByToken($payload['token'] ?? null)) {\n $this->send($this->replyEvent());\n\n $this->send(\n (new StateContentEvent(\n $this->getService('quest.quest_manager')->getStateData($this->getUserId())\n ))\n );\n }\n }", "private function onboardUsers()\n {\n foreach ($this->users as $user) {\n $token = $user->generateMagicToken();\n $user->sendNotification(new OnboardEmail($user, $token));\n }\n }", "public function recommendation() {\n if ($this->dx_auth->is_logged_in()) {\n $username = $this->dx_auth->get_username();\n $user_id = $this->dx_auth->get_user_id();\n if ($this->input->post()) {\n $share_url = $this->input->post('share_url');\n $email = $this->input->post('emal_to_friend');\n $mail_list = explode(',', $email);\n\n $admin_email = $this->dx_auth->get_site_sadmin();\n\n $email_name = 'user_vouch';\n\n $mailer_mode = $this->db->get_where('email_settings', array('code' => 'MAILER_MODE'))->row()->value;\n\n if ($mailer_mode == 'html')\n $anchor = anchor('func/vouch?id=' . $user_id, 'Click here');\n else\n $anchor = site_url('func/vouch?id=' . $user_id);\n\n $splVars = array(\"{site_name}\" => $this->dx_auth->get_site_title(), \"{username}\" => ucfirst($username), \"{click_here}\" => $anchor);\n\n\n if (!empty($mail_list)) {\n foreach ($mail_list as $email_to) {\n if ($this->email->valid_email($email_to)) {\n //Send Mail\n $this->Email_model->sendMail($email_to, $admin_email, $this->dx_auth->get_site_title(), $email_name, $splVars);\n } else {\n $data['email_status'][] = $email_to;\n }\n }\n }\n }\n $data['title'] = \"Your Transaction details\";\n $data['message_element'] = \"view_recommendations\";\n $this->load->view('template', $data);\n } else {\n redirect('home/signin');\n }\n }", "public function sendWelcomeMail()\n {\n $user = Auth::user();\n \n $this->mailer->send('user.welcome', compact('user'), function (Message $message) use($user) {\n $message\n ->to($user->email)\n ->subject('Welcome! hope you enjoy your stay. :)');\n });\n }", "function email_print_users_to_send($users, $nosenders=false, $options=NULL) {\n\n\tglobal $CFG;\n\n\t$url = '';\n\tif ( $options ) {\n\t\t$url = email_build_url($options);\n\t}\n\n\n\techo '<tr valign=\"middle\">\n <td class=\"legendmail\">\n <b>'.get_string('for', 'block_email_list'). '\n :\n </b>\n </td>\n <td class=\"inputmail\">';\n\n if ( ! empty ( $users ) ) {\n\n \techo '<div id=\"to\">';\n\n \tforeach ( $users as $userid ) {\n \t\techo '<input type=\"hidden\" value=\"'.$userid.'\" name=\"to[]\" />';\n \t}\n\n \techo '</div>';\n\n \techo '<textarea id=\"textareato\" class=\"textareacontacts\" name=\"to\" cols=\"65\" rows=\"3\" disabled=\"true\" multiple=\"multiple\">';\n\n \tforeach ( $users as $userid ) {\n \t\techo fullname( get_record('user', 'id', $userid) ).', ';\n \t}\n\n \techo '</textarea>';\n }\n\n \techo '</td><td class=\"extrabutton\">';\n\n\tlink_to_popup_window( '/blocks/email_list/email/participants.php?'.$url, 'participants', get_string('participants', 'block_email_list').' ...',\n 470, 520, get_string('participants', 'block_email_list') );\n\n echo '</td></tr>';\n echo '<tr valign=\"middle\">\n \t\t\t<td class=\"legendmail\">\n \t\t\t\t<div id=\"tdcc\"></div>\n \t\t\t</td>\n \t\t\t<td><div id=\"fortextareacc\"></div><div id=\"cc\"></div><div id=\"url\">'.$urltoaddcc.'<span id=\"urltxt\">&#160;|&#160;</span>'.$urltoaddbcc.'</div></td><td><div id=\"buttoncc\"></div></td></tr>';\n echo '<tr valign=\"middle\"><td class=\"legendmail\"><div id=\"tdbcc\"></div></td><td><div id=\"fortextareabcc\"></div><div id=\"bcc\"></div></td><td><div id=\"buttonbcc\"></div></td>';\n\n\n}" ]
[ "0.6525229", "0.6318558", "0.615327", "0.61442953", "0.61298907", "0.6129569", "0.60923856", "0.6052561", "0.59964365", "0.59848976", "0.59797215", "0.59721243", "0.59204525", "0.5909001", "0.59074974", "0.5882181", "0.587132", "0.5868392", "0.5851699", "0.58496636", "0.5842648", "0.5808132", "0.58080596", "0.5805905", "0.5793565", "0.5767789", "0.576073", "0.57593757", "0.5749147", "0.5748345", "0.5739491", "0.5734842", "0.57289535", "0.57147866", "0.5701961", "0.5682527", "0.56758493", "0.5672499", "0.5671414", "0.5670896", "0.56550485", "0.5647938", "0.5642397", "0.563904", "0.5636463", "0.56361395", "0.5630295", "0.5629825", "0.5618209", "0.56163466", "0.56151307", "0.56074923", "0.56057745", "0.5604367", "0.56015944", "0.55946344", "0.55902964", "0.5590024", "0.55894715", "0.55885494", "0.55808574", "0.55608064", "0.55569595", "0.5553929", "0.5553929", "0.5539017", "0.5539017", "0.5539017", "0.5539017", "0.5539017", "0.5539017", "0.5539017", "0.5537698", "0.5535402", "0.5533143", "0.5530624", "0.5521418", "0.551799", "0.55170465", "0.5515447", "0.5515447", "0.5515447", "0.55149657", "0.5500558", "0.5500381", "0.5492924", "0.5489365", "0.54879004", "0.5485786", "0.5485273", "0.5484058", "0.54791945", "0.54753727", "0.5474718", "0.54735357", "0.5468781", "0.546716", "0.5466251", "0.54636157", "0.5462245" ]
0.6864152
0
/brief Converte uma string UTF8 para WindowsCP1252
public static function convert_to_windowscp1252($string) { $chars = array( 'Ç', 'Ä', '£', 'Ä', 'Å', 'Ç', 'É', 'Ñ', 'Ö', 'Ü', 'á', 'à', 'â', 'ä', 'ã', 'å', 'ç', 'é', 'è', 'ê', 'ë', 'í', 'ì', 'î', 'ï', 'ñ', 'ó', 'ò', 'ô', 'ö', 'õ', 'ú', 'ù', 'û', 'ü', '†', '°', '¢', '£', '§', '•', '¶', 'ß', '®', '©', '™', '´', '¨', '≠', 'Æ', 'Ø', '∞', '±', '≤', '≥', '¥', 'µ', '∂', '∑', '∏', 'π', '∫', 'ª', 'º', 'Ω', 'æ', 'ø', ); $cp1252 = array( chr(128), chr(146), chr(163), chr(192), chr(193), chr(194), chr(195), chr(196), chr(197), chr(198), chr(199), chr(200), chr(201), chr(202), chr(203), chr(204), chr(205), chr(206), chr(207), chr(208), chr(209), chr(210), chr(211), chr(212), chr(213), chr(214), chr(215), chr(216), chr(217), chr(218), chr(219), chr(220), chr(221), chr(222), chr(223), chr(224), chr(225), chr(226), chr(227), chr(228), chr(229), chr(230), chr(231), chr(232), chr(233), chr(234), chr(235), chr(236), chr(237), chr(238), chr(239), chr(240), chr(241), chr(242), chr(243), chr(244), chr(245), chr(246), chr(247), chr(248), chr(249), chr(250), chr(251), chr(252), chr(253), chr(254), chr(255), ); return str_replace($chars, $cp1252, $string); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function win1252_to_utf8($data){\r\n\treturn iconv(\"Windows-1252\", \"UTF-8\", $data);\r\n}", "function utf8_to_win1252($data){\r\n\treturn iconv(\"UTF-8\", \"Windows-1252\", $data);\r\n}", "public static function windows_1252_to_utf8($string)\n {\n }", "function encoding_8859_to_win1250($string) {\n $string = strtr($string, \n \"\\xA1\\xA6\\xAC\\xB1\\xB6\\xBC\",\n \"\\xA5\\x8C\\x8F\\xB9\\x9C\\x9F\"\n );\n return $string;\n }", "function encoding_win1250_to_8859($string) {\n $string = strtr($string,\n \"\\xA5\\x8C\\x8F\\xB9\\x9C\\x9F\",\n \"\\xA1\\xA6\\xAC\\xB1\\xB6\\xBC\"\n );\n return $string;\n }", "function FixString($string)\n{\n return mb_convert_encoding($string, \"UTF-8\", \"Windows-1252\");\n}", "function convert_cp1252_to_utf8($input, $default = '', $replace = array()) {\n\tif ($input === null || $input == '') {\n\t\treturn $default;\n\t}\n\n\t// https://en.wikipedia.org/wiki/UTF-8\n\t// https://en.wikipedia.org/wiki/ISO/IEC_8859-1\n\t// https://en.wikipedia.org/wiki/Windows-1252\n\t// http://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WINDOWS/CP1252.TXT\n\t$encoding = mb_detect_encoding($input, array('Windows-1252', 'ISO-8859-1'), true);\n\tif ($encoding == 'ISO-8859-1' || $encoding == 'Windows-1252') {\n\t\t/*\n\t\t * Use the search/replace arrays if a character needs to be replaced with\n\t\t * something other than its Unicode equivalent.\n\t\t */ \n\n\t\t/*$replace = array(\n\t\t\t128 => \"&#x20AC;\", // http://www.fileformat.info/info/unicode/char/20AC/index.htm EURO SIGN\n\t\t\t129 => \"\", // UNDEFINED\n\t\t\t130 => \"&#x201A;\", // http://www.fileformat.info/info/unicode/char/201A/index.htm SINGLE LOW-9 QUOTATION MARK\n\t\t\t131 => \"&#x0192;\", // http://www.fileformat.info/info/unicode/char/0192/index.htm LATIN SMALL LETTER F WITH HOOK\n\t\t\t132 => \"&#x201E;\", // http://www.fileformat.info/info/unicode/char/201e/index.htm DOUBLE LOW-9 QUOTATION MARK\n\t\t\t133 => \"&#x2026;\", // http://www.fileformat.info/info/unicode/char/2026/index.htm HORIZONTAL ELLIPSIS\n\t\t\t134 => \"&#x2020;\", // http://www.fileformat.info/info/unicode/char/2020/index.htm DAGGER\n\t\t\t135 => \"&#x2021;\", // http://www.fileformat.info/info/unicode/char/2021/index.htm DOUBLE DAGGER\n\t\t\t136 => \"&#x02C6;\", // http://www.fileformat.info/info/unicode/char/02c6/index.htm MODIFIER LETTER CIRCUMFLEX ACCENT\n\t\t\t137 => \"&#x2030;\", // http://www.fileformat.info/info/unicode/char/2030/index.htm PER MILLE SIGN\n\t\t\t138 => \"&#x0160;\", // http://www.fileformat.info/info/unicode/char/0160/index.htm LATIN CAPITAL LETTER S WITH CARON\n\t\t\t139 => \"&#x2039;\", // http://www.fileformat.info/info/unicode/char/2039/index.htm SINGLE LEFT-POINTING ANGLE QUOTATION MARK\n\t\t\t140 => \"&#x0152;\", // http://www.fileformat.info/info/unicode/char/0152/index.htm LATIN CAPITAL LIGATURE OE\n\t\t\t141 => \"\", // UNDEFINED\n\t\t\t142 => \"&#x017D;\", // http://www.fileformat.info/info/unicode/char/017d/index.htm LATIN CAPITAL LETTER Z WITH CARON \n\t\t\t143 => \"\", // UNDEFINED\n\t\t\t144 => \"\", // UNDEFINED\n\t\t\t145 => \"&#x2018;\", // http://www.fileformat.info/info/unicode/char/2018/index.htm LEFT SINGLE QUOTATION MARK \n\t\t\t146 => \"&#x2019;\", // http://www.fileformat.info/info/unicode/char/2019/index.htm RIGHT SINGLE QUOTATION MARK\n\t\t\t147 => \"&#x201C;\", // http://www.fileformat.info/info/unicode/char/201c/index.htm LEFT DOUBLE QUOTATION MARK\n\t\t\t148 => \"&#x201D;\", // http://www.fileformat.info/info/unicode/char/201d/index.htm RIGHT DOUBLE QUOTATION MARK\n\t\t\t149 => \"&#x2022;\", // http://www.fileformat.info/info/unicode/char/2022/index.htm BULLET\n\t\t\t150 => \"&#x2013;\", // http://www.fileformat.info/info/unicode/char/2013/index.htm EN DASH\n\t\t\t151 => \"&#x2014;\", // http://www.fileformat.info/info/unicode/char/2014/index.htm EM DASH\n\t\t\t152 => \"&#x02DC;\", // http://www.fileformat.info/info/unicode/char/02DC/index.htm SMALL TILDE\n\t\t\t153 => \"&#x2122;\", // http://www.fileformat.info/info/unicode/char/2122/index.htm TRADE MARK SIGN\n\t\t\t154 => \"&#x0161;\", // http://www.fileformat.info/info/unicode/char/0161/index.htm LATIN SMALL LETTER S WITH CARON\n\t\t\t155 => \"&#x203A;\", // http://www.fileformat.info/info/unicode/char/203A/index.htm SINGLE RIGHT-POINTING ANGLE QUOTATION MARK\n\t\t\t156 => \"&#x0153;\", // http://www.fileformat.info/info/unicode/char/0153/index.htm LATIN SMALL LIGATURE OE\n\t\t\t157 => \"\", // UNDEFINED\n\t\t\t158 => \"&#x017e;\", // http://www.fileformat.info/info/unicode/char/017E/index.htm LATIN SMALL LETTER Z WITH CARON\n\t\t\t159 => \"&#x0178;\", // http://www.fileformat.info/info/unicode/char/0178/index.htm LATIN CAPITAL LETTER Y WITH DIAERESIS\n\t\t);*/\n\n\t\tif (count($replace) != 0) {\n\t\t\t$find = array();\n\t\t\tforeach (array_keys($replace) as $key) {\n\t\t\t\t$find[] = chr($key);\n\t\t\t}\n\t\t\t$input = str_replace($find, array_values($replace), $input);\n\t\t}\n\t\t/*\n\t\t * Because ISO-8859-1 and CP1252 are identical except for 0x80 through 0x9F\n\t\t * and control characters, always convert from Windows-1252 to UTF-8.\n\t\t */\n\t\t$input = iconv('Windows-1252', 'UTF-8//IGNORE', $input);\n\t\tif (count($replace) != 0) {\n\t\t\t$input = html_entity_decode($input);\n\t\t}\n\t}\n\treturn $input;\n}", "function GetAnsiEncoding() { return 'windows-1252'; }", "function UTF8FixWin1252Chars($text){\r\n // (ignoring Windows-1252 chars from 80 to 9F) use this function to fix it.\r\n // See: http://en.wikipedia.org/wiki/Windows-1252\r\n return str_replace(array_keys(self::$brokenUtf8ToUtf8), array_values(self::$brokenUtf8ToUtf8), $text);\r\n }", "function lang_encode_from_utf($strValue)\r\n{\r\n\tif(function_exists(\"iconv\"))\r\n\t\treturn iconv('UTF-8','Windows-1252',$strValue);\r\n\treturn $strValue;\r\n}", "function & _wp_iso8859_2_to_utf8(&$string) {\n $decode=array(\n \"\\xA1\" => \"\\xC4\\x84\",\n \"\\xB1\" => \"\\xC4\\x85\",\n \"\\xC6\" => \"\\xC4\\x86\",\n \"\\xE6\" => \"\\xC4\\x87\",\n \"\\xCA\" => \"\\xC4\\x98\",\n \"\\xEA\" => \"\\xC4\\x99\",\n \"\\xA3\" => \"\\xC5\\x81\",\n \"\\xB3\" => \"\\xC5\\x82\",\n \"\\xD1\" => \"\\xC5\\x83\",\n \"\\xF1\" => \"\\xC5\\x84\",\n \"\\xD3\" => \"\\xC3\\x93\",\n \"\\xF3\" => \"\\xC3\\xB3\",\n \"\\xA6\" => \"\\xC5\\x9A\",\n \"\\xB6\" => \"\\xC5\\x9B\",\n \"\\xAC\" => \"\\xC5\\xB9\",\n \"\\xBC\" => \"\\xC5\\xBA\",\n \"\\xAF\" => \"\\xC5\\xBB\",\n \"\\xBF\" => \"\\xC5\\xBC\",\n );\n $string = strtr(\"$string\",$decode);\n return $string;\n }", "function seguridad_utf8($entrada){\n\t\tglobal $mysqli;\n\t\treturn addslashes($mysqli -> real_escape_string(nl2br(trim($entrada))));\n\t}", "function win2utf($val,$always=false) { #trace();\r\n global $ezer_mysql_cp;\r\n if ( $always || !$ezer_mysql_cp || $ezer_mysql_cp=='cp1250' ) {\r\n $val= strtr($val, \"\\x9E\\x9A\\x9D\\x8E\\x8A\\x8D\", \"\\xBE\\xB9\\xBB\\xAE\\xA9\\xAB\");\r\n $val= mb_convert_encoding($val,'UTF-8','ISO-8859-2');\r\n }\r\n return $val;\r\n}", "public function utf8_force($string){\r\n if (preg_match('%^(?:\r\n [\\x09\\x0A\\x0D\\x20-\\x7E] # ASCII\r\n | [\\xC2-\\xDF][\\x80-\\xBF] # non-overlong 2-byte\r\n | \\xE0[\\xA0-\\xBF][\\x80-\\xBF] # excluding overlongs\r\n | [\\xE1-\\xEC\\xEE\\xEF][\\x80-\\xBF]{2} # straight 3-byte\r\n | \\xED[\\x80-\\x9F][\\x80-\\xBF] # excluding surrogates\r\n | \\xF0[\\x90-\\xBF][\\x80-\\xBF]{2} # planes 1-3\r\n | [\\xF1-\\xF3][\\x80-\\xBF]{3} # planes 4-15\r\n | \\xF4[\\x80-\\x8F][\\x80-\\xBF]{2} # plane 16\r\n )*$%xs', $string))\r\n return $string;\r\n else\r\n return iconv('CP1252', 'UTF-8', $string);\r\n }", "function win_utf8($s) {\n $utf = \"\";\n for ($i = 0; $i < strlen($s); $i++) {\n $donotrecode = false;\n $c = ord(substr($s, $i, 1));\n if ($c == 0xA8) {\n $res = 0xD081;\n } elseif ($c == 0xB8) {\n $res = 0xD191;\n } elseif ($c < 0xC0) {\n $donotrecode = true;\n } elseif ($c < 0xF0) {\n $res = $c + 0xCFD0;\n } else {\n $res = $c + 0xD090;\n }\n $c = ($donotrecode) ? chr($c) : (chr($res >> 8) . chr($res & 0xff));\n $utf .= $c;\n }\n return $utf;\n }", "function & _wp_utf8_to_8859_2(&$string) {\n $decode=array(\n \"\\xC4\\x84\"=>\"\\xA1\",\n \"\\xC4\\x85\"=>\"\\xB1\",\n \"\\xC4\\x86\"=>\"\\xC6\",\n \"\\xC4\\x87\"=>\"\\xE6\",\n \"\\xC4\\x98\"=>\"\\xCA\",\n \"\\xC4\\x99\"=>\"\\xEA\",\n \"\\xC5\\x81\"=>\"\\xA3\",\n \"\\xC5\\x82\"=>\"\\xB3\",\n \"\\xC5\\x83\"=>\"\\xD1\",\n \"\\xC5\\x84\"=>\"\\xF1\",\n \"\\xC3\\x93\"=>\"\\xD3\",\n \"\\xC3\\xB3\"=>\"\\xF3\",\n \"\\xC5\\x9A\"=>\"\\xA6\",\n \"\\xC5\\x9B\"=>\"\\xB6\",\n \"\\xC5\\xB9\"=>\"\\xAC\",\n \"\\xC5\\xBA\"=>\"\\xBC\",\n \"\\xC5\\xBB\"=>\"\\xAF\",\n \"\\xC5\\xBC\"=>\"\\xBF\"\n );\n\n $string = strtr(\"$string\",$decode);\n return $string;\n }", "function utf8_to_iso_8859_1() {\r\n\t\t$result = preg_match('/<meta http\\-equiv=\"[Cc]ontent\\-[Tt]ype\" content=\"text\\/html;\\s*charset\\s*=\\s*utf\\-8\"/is', $this->code, $encoding_matches);\r\n\t\tif($result) {\r\n\t\t\t$this->code = iconv(\"UTF-8\", \"CP1252\" . \"//TRANSLIT\", $this->code);\r\n\t\t\t$this->code = htmlspecialchars($this->code);\r\n\t\t\t$this->code = htmlentities($this->code);\r\n\t\t\t$this->code = htmlspecialchars_decode($this->code);\r\n\t\t\t$this->code = htmlspecialchars_decode($this->code);\r\n\t\t\t$this->code = preg_replace('/<meta http\\-equiv=\"[Cc]ontent\\-[Tt]ype\" content=\"text\\/html;\\s*charset\\s*=\\s*utf\\-8\"/is', '<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\"', $this->code);\r\n\t\t}\r\n\t}", "function fixEncoding($in_str) \r\n{ \r\n $cur_encoding = mb_detect_encoding($in_str) ; \r\n if($cur_encoding == \"UTF-8\" && mb_check_encoding($in_str,\"UTF-8\")) \r\n return $in_str; \r\n else \r\n return utf8_encode($in_str); \r\n}", "static public function stringToUtf8($string) {\n if ($GLOBALS['LANG']->charSet == '' || $GLOBALS['LANG']->charSet == 'iso-8859-1') {\n return utf8_encode($string);\n } else {\n return $string;\n }\n\t}", "function seems_utf8($str)\n {\n }", "function fixEncoding($in_str)\r\n\r\n{\r\n\r\n $cur_encoding = mb_detect_encoding($in_str) ;\r\n\r\n if($cur_encoding == \"UTF-8\" && mb_check_encoding($in_str,\"UTF-8\"))\r\n\r\n return $in_str;\r\n\r\n else\r\n\r\n return utf8_encode($in_str);\r\n\r\n}", "function convert_to_utf8(string $str): string\n {\n return preg_replace_callback(\n '/\\\\\\\\u([0-9a-fA-F]{4})/',\n static function (array $match): string {\n return mb_convert_encoding(pack('H*', $match[1]), 'UTF-8', 'UCS-2BE');\n },\n $str\n );\n }", "public function convertDatabaseToUTF8();", "function utf8_win($s) {\n $out = \"\";\n $c1 = \"\";\n $byte2 = false;\n for ($c = 0; $c < strlen($s); $c++) {\n $i = ord($s[$c]);\n if ($i <= 127) {\n $out .= $s[$c];\n }\n if ($byte2) {\n $new_c2 = ($c1 & 3) * 64 + ($i & 63);\n $new_c1 = ($c1 >> 2) & 5;\n $new_i = $new_c1 * 256 + $new_c2;\n if ($new_i == 1025) {\n $out_i = 168;\n } else {\n if ($new_i == 1105) {\n $out_i = 184;\n } else {\n $out_i = $new_i - 848;\n }\n }\n $out .= chr($out_i);\n $byte2 = false;\n }\n if (($i >> 5) == 6) {\n $c1 = $i;\n $byte2 = true;\n }\n }\n return $out;\n }", "function convert_to_utf8($str)\n{\n\t$old_charset = $_SESSION['old_charset'];\n\t\n\tif ($str === null || $str == '' || $old_charset == 'UTF-8')\n\t\treturn $str;\n\n\t$save = $str;\n\n\t// Replace literal entities (for non-UTF-8 compliant html_entity_encode)\n\tif (version_compare(PHP_VERSION, '5.0.0', '<') && $old_charset == 'ISO-8859-1' || $old_charset == 'ISO-8859-15')\n\t\t$str = html_entity_decode($str, ENT_QUOTES, $old_charset);\n\n\tif ($old_charset != 'UTF-8' && !seems_utf8($str))\n\t{\n\t\tif (function_exists('iconv'))\n\t\t\t$str = iconv($old_charset == 'ISO-8859-1' ? 'WINDOWS-1252' : $old_charset, 'UTF-8', $str);\n\t\telse if (function_exists('mb_convert_encoding'))\n\t\t\t$str = mb_convert_encoding($str, 'UTF-8', $old_charset == 'ISO-8859-1' ? 'WINDOWS-1252' : 'ISO-8859-1');\n\t\telse if ($old_charset == 'ISO-8859-1')\n\t\t\t$str = utf8_encode($str);\n\t}\n\n\t// Replace literal entities (for UTF-8 compliant html_entity_encode)\n\tif (version_compare(PHP_VERSION, '5.0.0', '>='))\n\t\t$str = html_entity_decode($str, ENT_QUOTES, 'UTF-8');\n\n\t// Replace numeric entities\n\t$str = preg_replace_callback('/&#([0-9]+);/', 'utf8_callback_1', $str);\n\t$str = preg_replace_callback('/&#x([a-f0-9]+);/i', 'utf8_callback_2', $str);\n\n\t// Remove \"bad\" characters\n\t$str = remove_bad_characters($str);\n\n\treturn $str;//($save != $str);\n}", "function corriger_caracteres_windows($texte, $charset='AUTO') {\n\tstatic $trans;\n\n\tif ($charset=='AUTO') $charset = $GLOBALS['meta']['charset'];\n\tif ($charset == 'utf-8') {\n\t\t$p = chr(194);\n\t} else if ($charset == 'iso-8859-1') {\n\t\t$p = '';\n\t} else\n\t\treturn $texte;\n\n\tif (!isset($trans[$charset])) {\n\t\t$trans[$charset] = array(\n\t\t\t$p.chr(128) => \"&#8364;\",\n\t\t\t$p.chr(129) => ' ', # pas affecte\n\t\t\t$p.chr(130) => \"&#8218;\",\n\t\t\t$p.chr(131) => \"&#402;\",\n\t\t\t$p.chr(132) => \"&#8222;\",\n\t\t\t$p.chr(133) => \"&#8230;\",\n\t\t\t$p.chr(134) => \"&#8224;\",\n\t\t\t$p.chr(135) => \"&#8225;\",\n\t\t\t$p.chr(136) => \"&#710;\",\n\t\t\t$p.chr(137) => \"&#8240;\",\n\t\t\t$p.chr(138) => \"&#352;\",\n\t\t\t$p.chr(139) => \"&#8249;\",\n\t\t\t$p.chr(140) => \"&#338;\",\n\t\t\t$p.chr(141) => ' ', # pas affecte\n\t\t\t$p.chr(142) => \"&#381;\",\n\t\t\t$p.chr(143) => ' ', # pas affecte\n\t\t\t$p.chr(144) => ' ', # pas affecte\n\t\t\t$p.chr(145) => \"&#8216;\",\n\t\t\t$p.chr(146) => \"&#8217;\",\n\t\t\t$p.chr(147) => \"&#8220;\",\n\t\t\t$p.chr(148) => \"&#8221;\",\n\t\t\t$p.chr(149) => \"&#8226;\",\n\t\t\t$p.chr(150) => \"&#8211;\",\n\t\t\t$p.chr(151) => \"&#8212;\",\n\t\t\t$p.chr(152) => \"&#732;\",\n\t\t\t$p.chr(153) => \"&#8482;\", \n\t\t\t$p.chr(154) => \"&#353;\",\n\t\t\t$p.chr(155) => \"&#8250;\",\n\t\t\t$p.chr(156) => \"&#339;\",\n\t\t\t$p.chr(157) => ' ', # pas affecte\n\t\t\t$p.chr(158) => \"&#382;\",\n\t\t\t$p.chr(159) => \"&#376;\",\n\t\t);\n\t}\n\treturn strtr($texte, $trans[$charset]);\n}", "public static function toUTF8($str) {\n\t\t\t$lst = 'UTF-8, ISO-8859-1';\n\t\t\t$cur = mb_detect_encoding($str, $lst);\n\t\t\treturn mb_convert_encoding($str, 'UTF-8', $cur);\n\t\t}", "function unicode_conv($originalString) {\n $replacedString = preg_replace(\"#\\\\\\\\u(\\w{4})#\", \"&#x$1;\", $originalString);\n $unicodeString = mb_convert_encoding($replacedString, 'ISO-8859-1', 'HTML-ENTITIES');\n return $unicodeString;\n}", "function utf2win($val,$always=false) {\r\n global $ezer_mysql_cp;\r\n if ( $always || !$ezer_mysql_cp || $ezer_mysql_cp=='cp1250' ) {\r\n $val= iconv(\"utf-8\", \"windows-1250\", urldecode(mysql_real_escape_string($val)));\r\n }\r\n return $val;\r\n}", "function utf8($str)\n{\n if(mb_detect_encoding($str) == \"UTF-8\" && mb_check_encoding($str,\"UTF-8\")) return $str;\n else return utf8_encode($str);\n}", "function mk_utf8($string) {\n\t\treturn (is_utf8($string) ? $string : utf8_encode($string));\n\t}", "public static function strToUtf($value)\r\n {\r\n if(empty($value) || is_null($value)){\r\n return null;\r\n }\r\n return iconv('WINDOWS-1251', 'UTF-8', $value);\r\n }", "function utf8_encode($data)\n{\n}", "function tarkista($s) {\n\t\n\t$etsi = array('#', '´', '%', '|', '--', '\\t');\n\t$korv = array('&#35;', '&#39;', '&#37;', '&#124;', '&#150;', '&nbsp;');\n\n\t$s = htmlspecialchars($s);\n\t$s = trim(str_replace($etsi, $korv, $s));\n\t$s = stripslashes($s);\n\t$enc = mb_detect_encoding($s, 'UTF-8', true);\n\n\tif ($enc == 'UTF-8'){\n\t\treturn $s;\n\t} else {\n\t\treturn utf8_encode($s);\n\t}\n\t\n}", "function convFromOutputCharset($str,$pagecodeto='UTF-8')\n\t{\n\t\tglobal $conf;\n\t\tif ($pagecodeto == 'ISO-8859-1' && $conf->file->character_set_client == 'UTF-8') $str=utf8_decode($str);\n\t\tif ($pagecodeto == 'UTF-8' && $conf->file->character_set_client == 'ISO-8859-1') $str=utf8_encode($str);\n\t\treturn $str;\n\t}", "function str_to_utf8( $string ) {\n\n // Check if mbstring is installed, if not, run old way\n if ( !function_exists( 'mb_convert_encoding' ) )\n return ( ( preg_match( '!!u', $string ) ) ? $string : utf8_encode( $string ) );\n\n // Convert encoding from XXX to UTF-8\n $string = mb_convert_encoding( $string, \"UTF-8\" );\n\n // Escape special characters\n htmlspecialchars( $string, ENT_QUOTES, 'UTF-8' );\n $string = html_entity_decode( $string );\n\n // Return modified - UTF-8 string\n return $string;\n\n }", "private function corrigeInputEncoding($string)\n {\n if (!is_string($string)) {\n return $string;\n }\n $encodageSupporte = [];\n $encodageSupporte[] = \"UTF-8\";\n $encodageSupporte[] = \"CP1252\";\n $encodageSupporte[] = \"ISO-8859-15\";\n $encodageSupporte[] = \"ISO-8859-1\";\n $encodageSupporte[] = \"ASCII\";\n $encodageDetecte = mb_detect_encoding($string, $encodageSupporte, true);\n if ($encodageDetecte != $this->pdoCharset) {\n return mb_convert_encoding(\n $string,\n $this->pdoCharset,\n $encodageDetecte\n );\n }\n return $string;\n }", "public static function strToWindows($value)\r\n {\r\n if(empty($value) || is_null($value)){\r\n return null;\r\n }\r\n return iconv('UTF-8','WINDOWS-1251', $value);\r\n }", "function utf2win_sylk($val,$always=false) {\r\n global $ezer_mysql_cp;\r\n if ( $always || !$ezer_mysql_cp || $ezer_mysql_cp=='cp1250' ) {\r\n $val= iconv(\"utf-8\", \"windows-1250\", $val);\r\n }\r\n return $val;\r\n}", "public static function fixEncoding($in_str) { \r\r\n\t\t$cur_encoding = mb_detect_encoding($in_str) ; \r\r\n\t\tif($cur_encoding == \"UTF-8\" && mb_check_encoding($in_str,\"UTF-8\")) \r\r\n\t\t\treturn $in_str; \r\r\n\t\telse \r\r\n\t\t\treturn utf8_encode($in_str); \r\r\n\t}", "function TxtEncoding4Soap($txt){\r\n $to = $GLOBALS[\"POSTA_SECURITY\"]->Security->configuration['charset'];\r\n return iconv('UTF-8',$to, $txt);\r\n}", "function utf8($x){\n\t#return is_string($x)?utf8_encode($x):$x;\n\treturn $x;\n}", "function utf8encode($string){\n\tif(function_exists('mb_convert_encoding')){\n\t\t return mb_convert_encoding($string, \"UTF-8\", mb_detect_encoding($string));\n\t}else{\n\t\treturn utf8_encode($string);\n\t}\n}", "protected function chars_convert($string)\r\n {\r\n if (function_exists('mb_convert_encoding'))\r\n {\r\n $out = mb_convert_encoding($string, mb_detect_encoding($string), \"UTF-8\"); \r\n }\r\n else\r\n {\r\n $out = $string;\r\n }\r\n \r\n return $out; \r\n }", "function makeUTF8($str,$encoding = \"\") {\n if ($str !== \"\") {\n if (empty($encoding) && isUTF8($str))\n $encoding = \"UTF-8\";\n if (empty($encoding))\n $encoding = mb_detect_encoding($str,'UTF-8, ISO-8859-1');\n if (empty($encoding))\n $encoding = \"ISO-8859-1\"; // if charset can't be detected, default to ISO-8859-1\n return $encoding == \"UTF-8\" ? $str : @mb_convert_encoding($str,\"UTF-8\",$encoding);\n }\n }", "function convert_to_utf8($obj)\n{\n global $config;\n $ret = $obj;\n // wenn die Verbindung zur Datenbank nicht auf utf8 steht, dann muessen die Rückgaben in utf8 gewandelt werden,\n // da die Webseite utf8-kodiert ist\n if (!isset($config['mysql_can_change_encoding'])) {\n get_sql_encodings();\n }\n\n if ($config['mysql_can_change_encoding'] == false && $config['mysql_standard_character_set'] != 'utf8') {\n if (is_array($obj)) {\n foreach ($obj as $key => $val) {\n //echo \"<br> Wandle \" . $val . \" nach \";\n $obj[$key] = utf8_encode($val);\n //echo $obj[$key];\n }\n }\n if (is_string($obj)) {\n $obj = utf8_encode($obj);\n }\n $ret = $obj;\n }\n\n return $ret;\n}", "function makeUTF8($str,$encoding = \"\") {\n if (!empty($str)) {\n if (empty($encoding) && isUTF8($str))\n $encoding = \"UTF-8\";\n if (empty($encoding))\n $encoding = mb_detect_encoding($str,'UTF-8, ISO-8859-1');\n if (empty($encoding))\n $encoding = \"ISO-8859-1\"; // if charset can't be detected, default to ISO-8859-1\n return $encoding == \"UTF-8\" ? $str : @mb_convert_encoding($str,\"UTF-8\",$encoding);\n }\n }", "private function convToOutputCharset($str,$pagecodefrom='UTF-8')\n\t{\n\t\tglobal $conf;\n\t\tif ($pagecodefrom == 'ISO-8859-1' && $conf->file->character_set_client == 'UTF-8') $str=utf8_encode($str);\n\t\tif ($pagecodefrom == 'UTF-8' && $conf->file->character_set_client == 'ISO-8859-1') $str=utf8_decode($str);\n\t\treturn $str;\n\t}", "protected function _getToUnicode() {}", "function FixString($string)\n{\n //$string = mb_convert_encoding($string, \"UTF-8\", \"Windows-1252\");\n\n\n /*\n echo \"Start FixString: $string<br>\\n\";\n $string = xmlEntities($string);\n echo \"$string<br>\\n\";\n $string = htmlentities($string);\n echo \"$string<br>\\n\";\n $string = str_replace(\"&rsquo;\", \"'\", $string);\n echo \"$string<br>\\n\";\n $string = str_replace(\"&lsquo;\", \"'\", $string);\n echo \"$string<br>\\n\";\n $string = str_replace(\"&rdquo;\", '\"', $string);\n echo \"$string<br>\\n\";\n $string = str_replace(\"&ldquo;\", '\"', $string);\n echo \"$string<br>\\n\";\n $string = str_replace(\"&quot;\", \"'\", $string);\n echo \"$string<br>\\n\";\n $string = str_replace(\"&hellip;\", '...', $string);\n echo \"$string<br>\\n\";\n $string = str_replace(\"&aacute;\", \"a\", $string);\n echo \"Done FixString: $string<br>\\n\";\n */\n return $string;\n}", "public static function encoding($value) {\n return iconv( \"UTF-8\", \"windows-1251//TRANSLIT\", $value);\n }", "public function encode_convert($string) {\r\n\t\treturn mb_convert_encoding(trim($string), \"UTF-8\", \"EUC-JP, UTF-8, ASCII, JIS, eucjp-win, sjis-win\");\r\n\t}", "function convert_to_utf8($data, $encoding) {\n if (function_exists('iconv')) {\n $out = @iconv($encoding, 'utf-8', $data);\n }\n else if (function_exists('mb_convert_encoding')) {\n $out = @mb_convert_encoding($data, 'utf-8', $encoding);\n }\n else if (function_exists('recode_string')) {\n $out = @recode_string($encoding .'..utf-8', $data);\n }\n else {\n /* watchdog('php', t(\"Unsupported encoding '%s'. Please install iconv, GNU\nrecode or mbstring for PHP.\", array('%s' => $encoding)), WATCHDOG_ERROR); */\n return FALSE;\n }\n return $out;\n}", "function uw($x) {\r\n return utf2win($x,true);\r\n}", "function p_enc($string) {\r\n $char_encoded = mb_convert_encoding($string, 'UTF-8', 'SJIS');\r\n return urlencode($char_encoded);\r\n}", "public function testConvertToUTF8nonUTF8(): void\n {\n $string = StringUtil::convertToUTF8(chr(0xBF));\n\n self::assertEquals(mb_convert_encoding(chr(0xBF), 'UTF-8', 'ISO-8859-1'), $string);\n }", "function deutf8($str)\n{\n if(mb_detect_encoding($str) == \"UTF-8\" && mb_check_encoding($str,\"UTF-8\")) return utf8_decode($str);\n else return $str;\n}", "function utf_32_to_unicode($source) {\n\n\t// mb_string : methode rapide\n\tif (init_mb_string()) {\n\t\t$convmap = array(0x7F, 0xFFFFFF, 0x0, 0xFFFFFF);\n\t\t$source = mb_encode_numericentity($source, $convmap, 'UTF-32LE');\n\t\treturn str_replace(chr(0), '', $source);\n\t}\n\n\t// Sinon methode lente\n\t$texte = '';\n\twhile ($source) {\n\t\t$words = unpack(\"V*\", substr($source, 0, 1024));\n\t\t$source = substr($source, 1024);\n\t\tforeach ($words as $word) {\n\t\t\tif ($word < 128)\n\t\t\t\t$texte .= chr($word);\n\t\t\t// ignorer le BOM - http://www.unicode.org/faq/utf_bom.html\n\t\t\telse if ($word != 65279)\n\t\t\t\t$texte .= '&#'.$word.';';\n\t\t}\n\t}\n\treturn $texte;\n\n}", "function encode($str)\n{\n\treturn mb_convert_encoding($str,'UTF-8');\n}", "protected function _encode($str = '') {\n\t\treturn iconv(\"UTF-8\",\"WINDOWS-1257\", html_entity_decode($str, ENT_COMPAT, 'utf-8'));\n//\t\treturn $str;\n\t}", "public function utf8toISO8859_1(Model $Model, $string)\n\t{\n\t\t$accented = array(\n\t\t\t'À', 'Á', 'Â', 'Ã', 'Ä', 'Å', 'Æ', 'Ă', 'Ą',\n\t\t\t'Ç', 'Ć', 'Č', 'Œ',\n\t\t\t'Ď', 'Đ',\n\t\t\t'à', 'á', 'â', 'ã', 'ä', 'å', 'æ', 'ă', 'ą',\n\t\t\t'ç', 'ć', 'č', 'œ',\n\t\t\t'ď', 'đ',\n\t\t\t'È', 'É', 'Ê', 'Ë', 'Ę', 'Ě',\n\t\t\t'Ğ',\n\t\t\t'Ì', 'Í', 'Î', 'Ï', 'İ',\n\t\t\t'Ĺ', 'Ľ', 'Ł',\n\t\t\t'è', 'é', 'ê', 'ë', 'ę', 'ě',\n\t\t\t'ğ',\n\t\t\t'ì', 'í', 'î', 'ï', 'ı',\n\t\t\t'ĺ', 'ľ', 'ł',\n\t\t\t'Ñ', 'Ń', 'Ň',\n\t\t\t'Ò', 'Ó', 'Ô', 'Õ', 'Ö', 'Ø', 'Ő',\n\t\t\t'Ŕ', 'Ř',\n\t\t\t'Ś', 'Ş', 'Š',\n\t\t\t'ñ', 'ń', 'ň',\n\t\t\t'ò', 'ó', 'ô', 'ö', 'ø', 'ő',\n\t\t\t'ŕ', 'ř',\n\t\t\t'ś', 'ş', 'š',\n\t\t\t'Ţ', 'Ť',\n\t\t\t'Ù', 'Ú', 'Û', 'Ų', 'Ü', 'Ů', 'Ű',\n\t\t\t'Ý', 'ß',\n\t\t\t'Ź', 'Ż', 'Ž',\n\t\t\t'ţ', 'ť',\n\t\t\t'ù', 'ú', 'û', 'ų', 'ü', 'ů', 'ű',\n\t\t\t'ý', 'ÿ',\n\t\t\t'ź', 'ż', 'ž',\n\t\t\t'А', 'Б', 'В', 'Г', 'Д', 'Е', 'Ё', 'Ж', 'З', 'И', 'Й', 'К', 'Л', 'М', 'Н', 'О', 'П', 'Р',\n\t\t\t'а', 'б', 'в', 'г', 'д', 'е', 'ё', 'ж', 'з', 'и', 'й', 'к', 'л', 'м', 'н', 'о', 'р',\n\t\t\t'С', 'Т', 'У', 'Ф', 'Х', 'Ц', 'Ч', 'Ш', 'Щ', 'Ъ', 'Ы', 'Ь', 'Э', 'Ю', 'Я',\n\t\t\t'с', 'т', 'у', 'ф', 'х', 'ц', 'ч', 'ш', 'щ', 'ъ', 'ы', 'ь', 'э', 'ю', 'я'\n\t\t\t);\n\n\t\t$replace = array(\n\t\t\t'A', 'A', 'A', 'A', 'A', 'A', 'AE', 'A', 'A',\n\t\t\t'C', 'C', 'C', 'CE',\n\t\t\t'D', 'D',\n\t\t\t'a', 'a', 'a', 'a', 'a', 'a', 'ae', 'a', 'a',\n\t\t\t'c', 'c', 'c', 'ce',\n\t\t\t'd', 'd',\n\t\t\t'E', 'E', 'E', 'E', 'E', 'E',\n\t\t\t'G',\n\t\t\t'I', 'I', 'I', 'I', 'I',\n\t\t\t'L', 'L', 'L',\n\t\t\t'e', 'e', 'e', 'e', 'e', 'e',\n\t\t\t'g',\n\t\t\t'i', 'i', 'i', 'i', 'i',\n\t\t\t'l', 'l', 'l',\n\t\t\t'N', 'N', 'N',\n\t\t\t'O', 'O', 'O', 'O', 'O', 'O', 'O',\n\t\t\t'R', 'R',\n\t\t\t'S', 'S', 'S',\n\t\t\t'n', 'n', 'n',\n\t\t\t'o', 'o', 'o', 'o', 'o', 'o',\n\t\t\t'r', 'r',\n\t\t\t's', 's', 's',\n\t\t\t'T', 'T',\n\t\t\t'U', 'U', 'U', 'U', 'U', 'U', 'U',\n\t\t\t'Y', 'Y',\n\t\t\t'Z', 'Z', 'Z',\n\t\t\t't', 't',\n\t\t\t'u', 'u', 'u', 'u', 'u', 'u', 'u',\n\t\t\t'y', 'y',\n\t\t\t'z', 'z', 'z',\n\t\t\t'A', 'B', 'B', 'r', 'A', 'E', 'E', 'X', '3', 'N', 'N', 'K', 'N', 'M', 'H', 'O', 'N', 'P',\n\t\t\t'a', 'b', 'b', 'r', 'a', 'e', 'e', 'x', '3', 'n', 'n', 'k', 'n', 'm', 'h', 'o', 'p',\n\t\t\t'C', 'T', 'Y', 'O', 'X', 'U', 'u', 'W', 'W', 'b', 'b', 'b', 'E', 'O', 'R',\n\t\t\t'c', 't', 'y', 'o', 'x', 'u', 'u', 'w', 'w', 'b', 'b', 'b', 'e', 'o', 'r'\n\t\t\t);\n\t\t$string = str_replace($accented, $replace, $string);\n\t\t$string = utf8_decode($string);\n\t\t\n\t\treturn $string;\n\t}", "function utf8init()\n{\n mb_internal_encoding('UTF-8');\n\n // Tell PHP that we'll be outputting UTF-8 to the browser\n mb_http_output('UTF-8');\n\n //$str = json_encode($arr, JSON_UNESCAPED_UNICODE); //这样我们存进去的是就是中文了,那么取出的也就是中文了\n\n}", "public static function to_utf8_string(string $str, bool $decode_html_entity_to_utf8 = false): string\n {\n if ($str === '') {\n return $str;\n }\n\n $max = \\strlen($str);\n $buf = '';\n\n for ($i = 0; $i < $max; ++$i) {\n $c1 = $str[$i];\n\n if ($c1 >= \"\\xC0\") { // should be converted to UTF8, if it's not UTF8 already\n\n if ($c1 <= \"\\xDF\") { // looks like 2 bytes UTF8\n\n $c2 = $i + 1 >= $max ? \"\\x00\" : $str[$i + 1];\n\n if ($c2 >= \"\\x80\" && $c2 <= \"\\xBF\") { // yeah, almost sure it's UTF8 already\n $buf .= $c1 . $c2;\n ++$i;\n } else { // not valid UTF8 - convert it\n $buf .= self::to_utf8_convert_helper($c1);\n }\n } elseif ($c1 >= \"\\xE0\" && $c1 <= \"\\xEF\") { // looks like 3 bytes UTF8\n\n $c2 = $i + 1 >= $max ? \"\\x00\" : $str[$i + 1];\n $c3 = $i + 2 >= $max ? \"\\x00\" : $str[$i + 2];\n\n if ($c2 >= \"\\x80\" && $c2 <= \"\\xBF\" && $c3 >= \"\\x80\" && $c3 <= \"\\xBF\") { // yeah, almost sure it's UTF8 already\n $buf .= $c1 . $c2 . $c3;\n $i += 2;\n } else { // not valid UTF8 - convert it\n $buf .= self::to_utf8_convert_helper($c1);\n }\n } elseif ($c1 >= \"\\xF0\" && $c1 <= \"\\xF7\") { // looks like 4 bytes UTF8\n\n $c2 = $i + 1 >= $max ? \"\\x00\" : $str[$i + 1];\n $c3 = $i + 2 >= $max ? \"\\x00\" : $str[$i + 2];\n $c4 = $i + 3 >= $max ? \"\\x00\" : $str[$i + 3];\n\n if ($c2 >= \"\\x80\" && $c2 <= \"\\xBF\" && $c3 >= \"\\x80\" && $c3 <= \"\\xBF\" && $c4 >= \"\\x80\" && $c4 <= \"\\xBF\") { // yeah, almost sure it's UTF8 already\n $buf .= $c1 . $c2 . $c3 . $c4;\n $i += 3;\n } else { // not valid UTF8 - convert it\n $buf .= self::to_utf8_convert_helper($c1);\n }\n } else { // doesn't look like UTF8, but should be converted\n\n $buf .= self::to_utf8_convert_helper($c1);\n }\n } elseif (($c1 & \"\\xC0\") === \"\\x80\") { // needs conversion\n\n $buf .= self::to_utf8_convert_helper($c1);\n } else { // it doesn't need conversion\n\n $buf .= $c1;\n }\n }\n\n // decode unicode escape sequences + unicode surrogate pairs\n $buf = \\preg_replace_callback(\n '/\\\\\\\\u([dD][89abAB][0-9a-fA-F]{2})\\\\\\\\u([dD][cdefCDEF][\\da-fA-F]{2})|\\\\\\\\u([0-9a-fA-F]{4})/',\n /**\n * @param array $matches\n *\n * @psalm-pure\n *\n * @return string\n */\n static function (array $matches): string {\n if (isset($matches[3])) {\n $cp = (int) \\hexdec($matches[3]);\n } else {\n // http://unicode.org/faq/utf_bom.html#utf16-4\n $cp = ((int) \\hexdec($matches[1]) << 10)\n + (int) \\hexdec($matches[2])\n + 0x10000\n - (0xD800 << 10)\n - 0xDC00;\n }\n\n // https://github.com/php/php-src/blob/php-7.3.2/ext/standard/html.c#L471\n //\n // php_utf32_utf8(unsigned char *buf, unsigned k)\n\n if ($cp < 0x80) {\n return (string) self::chr($cp);\n }\n\n if ($cp < 0xA0) {\n /** @noinspection UnnecessaryCastingInspection */\n return (string) self::chr(0xC0 | $cp >> 6) . (string) self::chr(0x80 | $cp & 0x3F);\n }\n\n return self::decimal_to_chr($cp);\n },\n $buf\n );\n\n if ($buf === null) {\n return '';\n }\n\n // decode UTF-8 codepoints\n if ($decode_html_entity_to_utf8) {\n $buf = self::html_entity_decode($buf);\n }\n\n return $buf;\n }", "function my_utf8_decode($string)\n{\nreturn strtr($string,\n \"???????¥µÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýÿ\",\n \"SOZsozYYuAAAAAAACEEEEIIIIDNOOOOOOUUUUYsaaaaaaaceeeeiiiionoooooouuuuyy\");\n}", "protected function getCharsetConversion() {}", "function encoding_conv($var, $enc_out, $enc_in='utf-8')\r\n{\r\n$var = htmlentities($var, ENT_QUOTES, $enc_in);\r\nreturn html_entity_decode($var, ENT_QUOTES, $enc_out);\r\n}", "function echo8($txt) {\n\techo $txt;\n\t//echo utf8_decode($txt);\n}", "function file_get_contents_utf8($fn) {\r\n $content = file_get_contents($fn);\r\n return mb_convert_encoding($content, 'HTML-ENTITIES', \"UTF-8\");\r\n // return iconv(mb_detect_encoding($content, 'UTF-8, ISO-8859-2, ISO-8859-1, ASCII'), true), \"UTF-8\", $content);\r\n}", "function convert_data_encodings($known_utf8 = false)\n{\n global $VALID_ENCODING, $CONVERTED_ENCODING;\n $VALID_ENCODING = true;\n\n if ($CONVERTED_ENCODING) {\n return; // Already done it\n }\n\n if (preg_match('#^[\\x00-\\x7F]*$#', serialize($_POST) . serialize($_GET) . serialize($_FILES)) != 0) { // Simple case, all is ASCII\n $CONVERTED_ENCODING = true;\n return;\n }\n\n require_code('character_sets');\n _convert_data_encodings($known_utf8);\n}", "function uni2utf8($uniescape)\n\t{\n\t\t$c = \"\";\n\t\t\n\t\t$n = intval(substr($uniescape, -4), 16);\n\t\tif ($n < 0x7F) {// 0000-007F\n\t\t\t$c .= chr($n);\n\t\t} elseif ($n < 0x800) {// 0080-0800\n\t\t\t$c .= chr(0xC0 | ($n / 64));\n\t\t\t$c .= chr(0x80 | ($n % 64));\n\t\t} else {\t\t\t\t// 0800-FFFF\n\t\t\t$c .= chr(0xE0 | (($n / 64) / 64));\n\t\t\t$c .= chr(0x80 | (($n / 64) % 64));\n\t\t\t$c .= chr(0x80 | ($n % 64));\n\t\t}\n\t\treturn $c;\n\t}", "function convert_to_latin1($obj)\n{\n global $config;\n $ret = $obj;\n // wenn die Verbindung zur Datenbank nicht auf utf8 steht, dann muessen die Rückgaben in utf8 gewandelt werden,\n // da die Webseite utf8-kodiert ist\n if ($config['mysql_can_change_encoding'] == false && $config['mysql_standard_character_set'] != 'utf8') {\n if (is_array($obj)) {\n foreach ($obj as $key => $val) {\n $obj[$key] = utf8_decode($val);\n }\n }\n if (is_string($obj)) {\n $obj = utf8_decode($obj);\n }\n $ret = $obj;\n }\n\n return $ret;\n}", "public function escapeNonLatin1($str)\n {\n $normalize = array(\n 'Ā'=>'A','Ă'=>'A','Ą'=>'A','Ḁ'=>'A', 'Ắ'=>'A',\n 'Ḃ'=>'B','Ḅ' => 'B', 'Ḇ' => 'B',\n 'Ć'=>'C','Ĉ'=>'C','Ċ'=>'C','Č'=>'C','Ḉ' => 'C',\n 'Đ'=>'D','Ḋ' => 'D','Ḍ' => 'D','Ḏ' => 'D','Ḑ' => 'D','Ḓ' => 'D',\n 'Ē'=>'E','Ĕ'=>'E','Ė'=>'E','Ę'=>'E','Ě'=>'E','Ḕ' => 'E','Ḗ' => 'E','Ḙ' => 'E','Ḛ' => 'E','Ḝ' => 'E','Ẽ‬'=>'E',\n 'ā'=>'a','ă'=>'a','ą'=>'a','ḁ' => 'a', \n 'ḃ' => 'b','ḅ' => 'b','ḇ' => 'b',\n 'ć'=>'c','ĉ'=>'c','ċ'=>'c','č'=>'c','ḉ' => 'c',\n 'đ'=>'d','ḋ' => 'd','ḍ' => 'd','ḏ' => 'd','ḑ' => 'd','ḓ' => 'd',\n 'ē'=>'e','ĕ'=>'e','ė'=>'e','ę'=>'e','ě'=>'e','ḕ'=>'e','ḗ' => 'e','ḙ' => 'e','ḛ' => 'e','ḝ' => 'e',\n 'ñ'=>'n',\n 'ņ'=>'n', 'ṅ' => 'n','ṇ' => 'n','ṉ'=> 'n','ṋ' => 'n',\n 'Š'=>'S', 'š'=>'s', 'ś' => 's',\n 'Ž'=>'Z', 'ž'=>'z',\n 'ƒ'=>'f','ḟ' => 'f',\n 'Ḟ' => 'F',\n 'Ĝ'=>'G', 'ğ'=>'g', 'Ġ'=>'G', 'ġ'=>'g', 'Ģ'=>'G', 'ģ'=>'g','Ḡ' => 'G', 'ḡ' =>'g',\n 'Ĥ'=>'H', 'ĥ'=>'h', 'Ħ'=>'H', 'ħ'=>'h','Ḣ' => 'H','ḣ' => 'h','Ḥ' => 'h','ḥ' => 'h','Ḧ' => 'H','ḧ' => 'h','Ḩ' => 'H','ḩ' => 'h','Ḫ' => 'H','ḫ' => 'h',\n 'Ĩ'=>'I', 'ĩ'=>'i', 'Ī'=>'I', 'ī'=>'i', 'Ĭ'=>'I', 'ĭ'=>'i', 'Į'=>'I', 'į'=>'i', 'İ'=>'I', 'ı'=>'i','Ḭ' => 'I','ḭ' => 'i','Ḯ' => 'I','ḯ' => 'i',\n 'IJ'=>'IJ', 'ij'=>'ij',\n 'Ĵ'=>'j', 'ĵ'=>'j',\n 'Ķ'=>'K', 'ķ'=>'k', 'ĸ'=>'k','Ḱ' => 'K','ḱ' => 'k','Ḳ' => 'K','ḳ' => 'k','Ḵ' => 'K','ḵ' => 'k',\n 'Ĺ'=>'L', 'ĺ'=>'l', 'Ļ'=>'L', 'ļ'=>'l', 'Ľ'=>'L', 'ľ'=>'l', 'Ŀ'=>'L', 'ŀ'=>'l', 'Ł'=>'L', 'ł'=>'l','Ḷ' => 'L','ḷ' => 'l','Ḹ'=>'L','ḹ' => 'l','Ḻ' => 'L','ḻ' => 'l','Ḽ' => 'L','ḽ' => 'l',\n 'Ḿ' => 'M','ḿ' => 'm','Ṁ' => 'M','ṁ' => 'm','Ṃ' => 'M','ṃ' => 'm',\n 'Ń'=>'N', 'ń'=>'n', 'Ņ'=>'N', 'ņ'=>'n', 'Ň'=>'N', 'ň'=>'n', 'ʼn'=>'n', 'Ŋ'=>'N', 'ŋ'=>'n','Ṅ'=> 'N','Ṇ' => 'N','Ṉ' => 'N','Ṋ' => 'N',\n 'Ō'=>'O', 'ō'=>'o', 'Ŏ'=>'O', 'ŏ'=>'o', 'Ő'=>'O', 'ő'=>'o', 'Œ'=>'OE', 'œ'=>'oe','Ṍ'=> 'O','ṍ'=>'o','Ṏ' => 'O','ṏ' => 'ṏ','Ṑ' => 'O','ṑ'=>'O','Ṓ' => 'O','ṓ' => 'o',\n 'Ṕ' => 'P','ṕ' => 'p','Ṗ' => 'P','ṗ' => 'p',\n 'Ŕ'=>'R', 'ŕ'=>'r', 'Ŗ'=>'R', 'ŗ'=>'r', 'Ř'=>'R', 'ř'=>'r','Ṙ' => 'R','ṙ' => 'r','Ṛ' => 'R','ṛ' => 'r','Ṝ' => 'R','ṝ' => 'r','Ṟ'=> 'R','ṟ' => 'r',\n 'Ś'=>'S', 'ś'=>'s', 'Ŝ'=>'S', 'ŝ'=>'s', 'Ş'=>'S', 'ş'=>'s', 'Š'=>'S', 'š'=>'s','Ṡ' => 'S','ṡ'=>'s','Ṣ' => 'S',\n'ṣ'=>'s', 'Ṥ' => 'S','ṥ'=>'s','Ṧ'=>'S','ṧ'=>'s','Ṩ' => 'S','ṩ' => 's',\n 'Ţ'=>'T', 'ţ'=>'t', 'Ť'=>'T', 'ť'=>'t', 'Ŧ'=>'T', 'ŧ'=>'t','Ṫ' => 'T','ṫ'=>'t','Ṭ' => 'T','ṭ'=>'t','Ṯ'=>'T','ṯ' => 't','Ṱ'=>'T','ṱ' =>'t',\n 'Ũ'=>'U', 'ũ'=>'u', 'Ū'=>'U', 'ū'=>'u', 'Ŭ'=>'U', 'ŭ'=>'u', 'Ů'=>'U', 'ů'=>'u', 'Ű'=>'U', 'ű'=>'u','Ṳ' => 'U','ṳ'=> 'u','Ṵ'=>'U','ṵ'=>'u','Ṷ' => 'U','ṷ' => 'u','Ṹ' => 'U','ṹ'=>'u','Ṻ' => 'U','ṻ' => 'u',\n 'Ų'=>'U', 'ų'=>'u',\n 'Ṽ' => 'v','ṽ'=>'v','Ṿ' => 'v','ṿ' => 'v',\n 'Ŵ'=>'W', 'ŵ'=>'w',\n 'Ŷ'=>'Y', 'ŷ'=>'y',\n 'Ź'=>'Z', 'ź'=>'z', 'Ż'=>'Z', 'ż'=>'z', 'Ž'=>'Z', 'ž'=>'z', 'ſ'=>'f',\n '\"' => \"'\",\n //control chars in windows1252 that perl Forks up\n '€' => 'E', \n '‚'=>',',\n 'ƒ'=>'f', \n '„'=>',,', \n '…' => '...', \n '†'=>'t',\n '‡' => '+', \n 'ˆ' => '^', \n '‰'=>'%', \n '‹' => '(', \n 'Œ' => 'CE',\n '‘' => \"'\", \n '’' => \"'\", \n '“' => \"\\\"\", \n '”'=>\"\\\"\", \n '•'=> '.', \n '–'=> '-',\n '—'=>'-', \n '˜'=>'~', \n '™'=>'TM', \n '›'=>')', \n 'œ'=>'OE',\n 'Ÿ'=>'Y'\n );\n return strtr($str, $normalize);\n }", "function NCRx_UTF8($str){\n\t\t$len = strlen($str);\n\t\t$result = '';\n\t\t$ln=0;\n\t\tfor($i=0;$i<$len;$i++){\n\t\t\t$n = '';\n\t\t\tif ($str[$i] == '-'){\n\t\t\t\t$k = $i+1;\n\t\t\t\tif ($k < $len && $str[$k] == '-'){\n\t\t\t\t\t$k++;\n\t\t\t\t\twhile ($k < $len && is_numeric($str[$k]))\n\t\t\t\t\t\t$n .= $str[$k++];\n\t\t\t\t\tif ($k < $len && $str[$k]==';')\n\t\t\t\t\t\t$i = $k;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($n!=''){\n\t\t\t\t$n = intval($n);\n\t\t\t\tif ($n==13 || $n==10){\n\t\t\t\t\t$result .= $ln?'':'<br>';\n\t\t\t\t\t$ln = 1;\n\t\t\t\t}elseif ($n<128){\n\t\t\t\t\t$result .= chr($n);\n\t\t\t\t\t$ln = 0;\n\t\t\t\t}else{\n\t\t\t\t\t$s = '';\n\t\t\t\t\t$first = 0;\n\t\t\t\t\t$mask = 0x80;\n\t\t\t\t\twhile ($n>0){\n\t\t\t\t\t\t$byte = $n & 0x3F; //00111111\n\t\t\t\t\t\t$n = $n >> 6;\n\t\t\t\t\t\tif ($n) $s = chr($byte | 0x80).$s;\n\t\t\t\t\t\t$first = $first | $mask;\n\t\t\t\t\t\t$mask = $mask >> 1;\n\t\t\t\t\t}\n\t\t\t\t\t$s = chr($first | $byte).$s;\n\t\t\t\t\t$result .= $s;\n\t\t\t\t\t$ln = 0;\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\t$result .= $str[$i];\n\t\t\t\t$ln = 0;\n\t\t\t}\n\t\t}\n\t\treturn $result;\n\t}", "function sanitize_utf8($str){\n return htmlentities($str);\n }", "function charset_decode_utf_8 ($string) {\r\n\t /* avoid using 0xA0 (\\240) in ereg ranges. RH73 does not like that */\r\n\t if (! ereg(\"[\\200-\\237]\", $string) and ! ereg(\"[\\241-\\377]\", $string))\r\n\t return $string;\r\n\r\n\t // decode three byte unicode characters\r\n\t $string = preg_replace(\"/([\\340-\\357])([\\200-\\277])([\\200-\\277])/e\",\r\n\t \"'&#'.((ord('\\\\1')-224)*4096 + (ord('\\\\2')-128)*64 + (ord('\\\\3')-128)).';'\",\r\n\t $string);\r\n\r\n\t // decode two byte unicode characters\r\n\t $string = preg_replace(\"/([\\300-\\337])([\\200-\\277])/e\",\r\n\t \"'&#'.((ord('\\\\1')-192)*64+(ord('\\\\2')-128)).';'\",\r\n\t $string);\r\n\r\n\t return $string;\r\n\t}", "private function _utf8convert( $string )\r\n\t{\r\n\t\t// Test the string to see if it isn't utf-8\r\n\t\tif ( $this->_utf8check( $string ) ) {\r\n\t\t\treturn $string;\r\n\t\t}\r\n\t\t\r\n\t\tif (! function_exists( 'mb_detect_encoding' ) ) {\r\n\t\t\t// @TODO: Log an error somehow\r\n\t\t\t$this->unicode = null;\r\n\t\t\treturn string;\r\n\t\t}\r\n\t\t\r\n\t\t$encoding\t=\tmb_detect_encoding( $string, 'auto', true );\r\n\t\tif (! $encoding ) {\r\n\t\t\t// @TODO: Log an error somehow\r\n\t\t\t$this->unicode = null;\r\n\t\t\treturn $string;\r\n\t\t}\r\n\t\t\r\n\t\tif (! function_exists( 'iconv' ) ) {\r\n\t\t\t// @TODO: Log an error somehow\r\n\t\t\t$this->unicode = null;\r\n\t\t\treturn $string;\r\n\t\t}\r\n\t\t\r\n\t\t$result\t=\ticonv( strtoupper( $encoding ), 'UTF-8//TRANSLIT', $string );\r\n\t\tif (! $result ) {\r\n\t\t\t// @TODO: Log an error somehow\r\n\t\t\t$this->unicode = null;\r\n\t\t\treturn $string;\r\n\t\t}\r\n\t\t\r\n\t\treturn $result;\r\n\t}", "function utf8ize($d) {\n if (is_array($d)) {\n foreach ($d as $k => $v) {\n $d[$k] = utf8ize($v);\n }\n } else if (is_string ($d)) {\n return utf8_encode($d);\n }\n return $d;\n}", "function utf8_sanitize($str, &$errors = null) {\n if ($errors !== null) {\n $errors = array();\n }\n $utf8 = '';\n $bytesNeeded = 0;\n $bytesSeen = 0;\n $lowerBoundary = 0x80;\n $upperBoundary = 0xBF;\n $char = '';\n for ($pos = 0, $length = strlen($str); $pos < $length; $pos++) {\n $byte = ord($str[$pos]);\n if ($bytesNeeded == 0) {\n if ($byte >= 0x00 and $byte <= 0x7F) {\n $utf8 .= $str[$pos];\n } elseif ($byte >= 0xC2 and $byte <= 0xDF) {\n $bytesNeeded = 1;\n } elseif ($byte >= 0xE0 and $byte <= 0xEF) {\n if ($byte == 0xE0) {\n $lowerBoundary = 0xA0;\n }\n if ($byte == 0xED) {\n $upperBoundary = 0x9F;\n }\n $bytesNeeded = 2;\n } elseif ($byte >= 0xF0 and $byte <= 0xF4) {\n if ($byte == 0xF0) {\n $lowerBoundary = 0x90;\n }\n if ($byte == 0xF4) {\n $upperBoundary = 0x8F;\n }\n $bytesNeeded = 3;\n } else {\n $utf8 .= UTF8_REPLACEMENT_CHARACTER;\n if ($errors !== null) $errors[] = $pos;\n }\n $char = $str[$pos];\n } elseif ($byte < $lowerBoundary or $byte > $upperBoundary) {\n $char = '';\n $bytesNeeded = 0;\n $bytesSeen = 0;\n $lowerBoundary = 0x80;\n $upperBoundary = 0xBF;\n $utf8 .= UTF8_REPLACEMENT_CHARACTER;\n if ($errors !== null) $errors[] = $pos;\n $pos--;\n } else {\n $lowerBoundary = 0x80;\n $upperBoundary = 0xBF;\n $bytesSeen++;\n $char .= $str[$pos];\n if ($bytesSeen == $bytesNeeded) {\n $utf8 .= $char;\n $char = '';\n $bytesNeeded = 0;\n $bytesSeen = 0;\n }\n }\n }\n if ($bytesNeeded > 0) {\n $utf8 .= UTF8_REPLACEMENT_CHARACTER;\n if ($errors !== null) $errors[] = $length;\n }\n return $utf8;\n}", "function iptc_return_utf8($text)\n\t{\n\t# Used for iptc headers to auto-detect the character encoding.\n\tglobal $iptc_expectedchars,$mysql_charset;\n\t\n\t# No inconv library? Return text as-is\n\tif (!function_exists(\"iconv\")) {return $text;}\n\t\n\t# No expected chars set? Return as is\n\tif ($iptc_expectedchars==\"\" || $mysql_charset==\"utf8\") {return $text;}\n\t\n\t$try=array(\"UTF-8\",\"ISO-8859-1\",\"Macintosh\",\"Windows-1252\");\n\tfor ($n=0;$n<count($try);$n++)\n\t\t{\n\t\tif ($try[$n]==\"UTF-8\") {$trans=$text;} else {$trans=@iconv($try[$n], \"UTF-8\", $text);}\n\t\tfor ($m=0;$m<strlen($iptc_expectedchars);$m++)\n\t\t\t{\n\t\t\tif (strpos($trans,substr($iptc_expectedchars,$m,1))!==false) {return $trans;}\n\t\t\t}\n\t\t}\n\treturn $text;\n\t}", "final public function setUTF() {\n mysqli_query($this->resourceId,\"SET NAMES 'utf8'\");\n }", "public function __construct()\n\t{\n\t\t// default from encoding\n\t\t$this->from = 'CP1252';\n\n\t\t// default to encoding\n\t\t$this->to = 'UTF-8';\n\t}", "function mb_to_unicode($string, $encoding = null)\n{\n if ($encoding) {\n $expanded = mb_convert_encoding($string, 'UTF-32BE', $encoding);\n } else {\n $expanded = mb_convert_encoding($string, 'UTF-32BE');\n }\n return unpack('N*', $expanded);\n}", "function dcr2utf8($src)\n{\n\t$dest = '';\n\tif ($src < 0)\n\t\treturn false;\n\telse if ($src <= 0x007f)\n\t\t$dest .= chr($src);\n\telse if ($src <= 0x07ff)\n\t{\n\t\t$dest .= chr(0xc0 | ($src >> 6));\n\t\t$dest .= chr(0x80 | ($src & 0x003f));\n\t}\n\telse if ($src == 0xFEFF)\n\t{\n\t\t// nop -- zap the BOM\n\t}\n\telse if ($src >= 0xD800 && $src <= 0xDFFF)\n\t{\n\t\t// found a surrogate\n\t\treturn false;\n\t}\n\telse if ($src <= 0xffff)\n\t{\n\t\t$dest .= chr(0xe0 | ($src >> 12));\n\t\t$dest .= chr(0x80 | (($src >> 6) & 0x003f));\n\t\t$dest .= chr(0x80 | ($src & 0x003f));\n\t}\n\telse if ($src <= 0x10ffff)\n\t{\n\t\t$dest .= chr(0xf0 | ($src >> 18));\n\t\t$dest .= chr(0x80 | (($src >> 12) & 0x3f));\n\t\t$dest .= chr(0x80 | (($src >> 6) & 0x3f));\n\t\t$dest .= chr(0x80 | ($src & 0x3f));\n\t}\n\telse\n\t{\n\t\t// out of range\n\t\treturn false;\n\t}\n\n\treturn $dest;\n}", "function utf8decode($string){\n\tif(function_exists('mb_convert_encoding')){\n\t\t return mb_convert_encoding($string, \"iso-8859-1\", \"UTF-8\");\n\t}else{\n\t\treturn utf8_decode($string);\n\t}\n}", "public function utf82iso88592($text) {\n$text = str_replace(\"\\xC4\\x85\", 'ą', $text);\n$text = str_replace(\"\\xC4\\x84\", 'Ą', $text);\n$text = str_replace(\"\\xC4\\x87\", 'ć', $text);\n$text = str_replace(\"\\xC4\\x86\", 'Ć', $text);\n$text = str_replace(\"\\xC4\\x99\", 'ę', $text);\n$text = str_replace(\"\\xC4\\x98\", 'Ę', $text);\n$text = str_replace(\"\\xC5\\x82\", 'ł', $text);\n$text = str_replace(\"\\xC5\\x81\", 'Ł', $text);\n$text = str_replace(\"\\xC3\\xB3\", 'ó', $text);\n$text = str_replace(\"\\xC3\\x93\", 'Ó', $text);\n$text = str_replace(\"\\xC5\\x9B\", 'ś', $text);\n$text = str_replace(\"\\xC5\\x9A\", 'Ś', $text);\n$text = str_replace(\"ż\", 'ż', $text);\n$text = str_replace(\"\\xC5\\xBB\", 'Ż', $text);\n$text = str_replace(\"\\xC5\\xBA\", 'ź', $text);\n$text = str_replace(\"\\xC5\\xB9\", 'Ż', $text);\n$text = str_replace(\"\\xc5\\x84\", 'ń', $text);\n$text = str_replace(\"\\xc5\\x83\", 'Ń', $text);\n\nreturn $text;\n}", "function rc_utf8_clean($input)\n{\n // handle input of type array\n if (is_array($input)) {\n foreach ($input as $idx => $val)\n $input[$idx] = rc_utf8_clean($val);\n return $input;\n }\n \n if (!is_string($input) || $input == '')\n return $input;\n\n // iconv/mbstring are much faster (especially with long strings)\n if (function_exists('mb_convert_encoding') && ($res = mb_convert_encoding($input, 'UTF-8', 'UTF-8')) !== false)\n return $res;\n\n if (function_exists('iconv') && ($res = @iconv('UTF-8', 'UTF-8//IGNORE', $input)) !== false)\n return $res;\n\n $regexp = '/^('.\n// '[\\x00-\\x7F]'. // UTF8-1\n '|[\\xC2-\\xDF][\\x80-\\xBF]'. // UTF8-2\n '|\\xE0[\\xA0-\\xBF][\\x80-\\xBF]'. // UTF8-3\n '|[\\xE1-\\xEC][\\x80-\\xBF][\\x80-\\xBF]'. // UTF8-3\n '|\\xED[\\x80-\\x9F][\\x80-\\xBF]'. // UTF8-3\n '|[\\xEE-\\xEF][\\x80-\\xBF][\\x80-\\xBF]'. // UTF8-3\n '|\\xF0[\\x90-\\xBF][\\x80-\\xBF][\\x80-\\xBF]'. // UTF8-4\n '|[\\xF1-\\xF3][\\x80-\\xBF][\\x80-\\xBF][\\x80-\\xBF]'.// UTF8-4\n '|\\xF4[\\x80-\\x8F][\\x80-\\xBF][\\x80-\\xBF]'. // UTF8-4\n ')$/';\n \n $seq = '';\n $out = '';\n\n for ($i = 0, $len = strlen($input); $i < $len; $i++) {\n $chr = $input[$i];\n $ord = ord($chr);\n // 1-byte character\n if ($ord <= 0x7F) {\n if ($seq)\n $out .= preg_match($regexp, $seq) ? $seq : '';\n $seq = '';\n $out .= $chr;\n // first (or second) byte of multibyte sequence\n } else if ($ord >= 0xC0) {\n if (strlen($seq)>1) {\n\t$out .= preg_match($regexp, $seq) ? $seq : '';\n $seq = '';\n } else if ($seq && ord($seq) < 0xC0) {\n $seq = '';\n }\n $seq .= $chr;\n // next byte of multibyte sequence\n } else if ($seq) {\n $seq .= $chr;\n }\n }\n\n if ($seq)\n $out .= preg_match($regexp, $seq) ? $seq : '';\n\n return $out;\n}", "public function convPOSTCharset() {}", "private function handle_encoding($string)\n {\n switch ($this->get_option('encode')) {\n case 'utf8':\n return $string;\n case 'iso88591':\n return utf8_encode($string);\n default:\n return $string;\n }\n }", "function maybe_convert_table_to_utf8mb4($table)\n {\n }", "function mb_internal_encoding($charset='')\n {\n }", "function get_encoded_string ($str) {\n setlocale(LC_ALL, 'fr_FR.UTF-8');\n return iconv('UTF-8', 'ASCII//TRANSLIT', $str);\n}", "function wp_set_internal_encoding()\n {\n }", "protected function setUtf8Context()\n {\n $locale = 'en_US.UTF-8';\n setlocale(LC_ALL, $locale);\n putenv('LC_ALL=' . $locale);\n }", "public function convCharset($inCharset=\"UTF-8\", $outCharset=\"CP1252//IGNORE\") {\r\n $retval = iconv($inCharset, $outCharset, $this->contents);\r\n if ($retval !== FALSE) {\r\n $this->contents = $retval;\r\n return true;\r\n }\r\n return false;\r\n }", "protected function setUtf8Context()\n {\n setlocale(LC_ALL, $locale = 'en_US.UTF-8');\n putenv('LC_ALL=' . $locale);\n }", "public static function utf8Sanitize($string)\r\n {\r\n Preconditions::checkIsString($string, '$string must be string');\r\n $out = @iconv(\"UTF-8\", \"UTF-8//IGNORE\", $string);\r\n if ($string != $out) {\r\n $out = \"Warning: String not shown for security reasons: \" .\r\n \"String contains invalid utf-8 charactes.\";\r\n }\r\n return $out;\r\n }", "public static function sanitizeUTF8($string)\n\t{\n\t\t$output = preg_replace('/[^\\x{0009}\\x{000a}\\x{000d}\\x{0020}-\\x{D7FF}\\x{E000}-\\x{FFFD}]+/u', '', $string);\n\t\tif (is_null($output))\n\t\t{\n\t\t\t$output = \"\";\n\t\t\tif (empty($string))\n\t\t\t{\n\t\t\t\treturn $output;\n\t\t\t}\n\n\t\t\t$length = strlen($string);\n\t\t\tfor ($i = 0; $i < $length; $i++)\n\t\t\t{\n\t\t\t\t$current = ord($string{$i});\n\t\t\t\tif (($current == 0x9) ||\n\t\t\t\t\t($current == 0xA) ||\n\t\t\t\t\t($current == 0xD) ||\n\n\t\t\t\t\t(($current >= 0x28) && ($current <= 0xD7FF)) ||\n\t\t\t\t\t(($current >= 0xE000) && ($current <= 0xFFFD)) ||\n\t\t\t\t\t(($current >= 0x10000) && ($current <= 0x10FFFF))\n\t\t\t\t)\n\t\t\t\t{\n\t\t\t\t\t$output .= chr($current);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$output .= \" \";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn $output;\n\t}", "function convert_smart_quotes($string) {\r\n \t$search = array(chr(212),chr(213),chr(210),chr(211),chr(209),chr(208),chr(201),chr(145),chr(146),chr(147),chr(148),chr(151),chr(150),chr(133));\r\n\t$replace = array('&#8216;','&#8217;','&#8220;','&#8221;','&#8211;','&#8212;','&#8230;','&#8216;','&#8217;','&#8220;','&#8221;','&#8211;','&#8212;','&#8230;');\r\n return str_replace($search, $replace, $string); \r\n}", "public static function convertToUtf8(string $string): string\n {\n return mb_convert_encoding($string, 'UTF-8');\n }", "public static function setCharsetEncoding () {\r\n\t\tif ( self::$instance == null ) {\r\n\t\t\tself::getInstance ();\r\n\t\t}\r\n\t\tself::$instance->exec (\r\n\t\t\t\"SET NAMES 'utf8';\r\n\t\t\tSET character_set_connection=utf8;\r\n\t\t\tSET character_set_client=utf8;\r\n\t\t\tSET character_set_results=utf8\" );\r\n\t}" ]
[ "0.8501904", "0.84314567", "0.8156755", "0.7631775", "0.7471811", "0.74398994", "0.73572135", "0.73270977", "0.7305906", "0.7262093", "0.7118586", "0.7116611", "0.70313555", "0.69877005", "0.6956401", "0.69540775", "0.6744725", "0.6587761", "0.6574092", "0.65122455", "0.6496947", "0.6457978", "0.6429697", "0.6408577", "0.6397531", "0.6391125", "0.6378646", "0.63732517", "0.63550127", "0.63196707", "0.63173103", "0.63137674", "0.6304145", "0.629908", "0.6291112", "0.62905395", "0.6285524", "0.62794316", "0.6250366", "0.624053", "0.6230791", "0.62225217", "0.62176573", "0.6200098", "0.6181144", "0.61771", "0.6176656", "0.61597884", "0.6146392", "0.6142432", "0.61324567", "0.60842854", "0.60718614", "0.60702586", "0.60693336", "0.60599416", "0.5989988", "0.5981345", "0.59766716", "0.59738857", "0.5959759", "0.59577405", "0.5953344", "0.5944137", "0.5940163", "0.59190136", "0.5897036", "0.58970004", "0.5896039", "0.58874047", "0.5878966", "0.5854069", "0.58539605", "0.5847901", "0.584545", "0.5830731", "0.58163136", "0.5813898", "0.5802662", "0.57997257", "0.5796738", "0.5792805", "0.5770564", "0.57623804", "0.5760662", "0.5756021", "0.57422554", "0.57343996", "0.5707168", "0.57063174", "0.56982523", "0.56980926", "0.56888485", "0.5682502", "0.5663686", "0.5662009", "0.5658216", "0.56559116", "0.56346726", "0.56322604" ]
0.7489374
4
Display a listing of the resource.
public function index() { $data = array(); $data['records'] = BeTagModel::getTags(); $data['actives'] = array('xhbd-contents', 'list-tag'); $data['action_controller'] = 'list_tag'; return view('backend.tags.be_tags_view', compact('data')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function indexAction()\n {\n $limit = $this->Request()->getParam('limit', 1000);\n $offset = $this->Request()->getParam('start', 0);\n $sort = $this->Request()->getParam('sort', array());\n $filter = $this->Request()->getParam('filter', array());\n\n $result = $this->resource->getList($offset, $limit, $filter, $sort);\n\n $this->View()->assign($result);\n $this->View()->assign('success', true);\n }", "public function listing();", "function index() {\n\t\t$this->show_list();\n\t}", "public function actionList() {\n $this->_getList();\n }", "public function listAction()\n {\n $model = $this->_getPhotoModel();\n $entries = $model->fetchEntries($this->_getParam('page', 1));\n\n $this->view->url = 'http://' . $this->_request->getHttpHost() . $this->_request->getBaseUrl(); \n $this->view->paginator = $entries;\n }", "public function index()\n {\n $items = Item::all();\n return ItemForShowResource::collection($items);\n }", "public function index()\n {\n return Resource::collection(($this->getModel())::paginate(10));\n }", "function index()\n\t{\n\t\t$this->_list();\n\t\t$this->display();\n\t}", "public function listingAction(){\n if (!LoginHelper::isAdmin()){\n Router::redirect('home', '<p class=\"alert alert-danger\">Unauthorized</p>');\n }\n $this->view->render('patient/list', Patient::all());\n }", "public function index()\n {\n //\n $list = $this->obj->all();\n\n return $this->render('index', compact('list'));\n }", "public function action_index()\n\t{\n\t\t$this->template->title = 'Resources';\n\t\t$this->view = View::factory('admin/resource/index');\n\t\t$this->template->scripts[] = 'media/js/jquery.tablesorter.min.js';\n\t\t$this->template->scripts[] = 'media/js/admin/resource.js';\n\t\t\n\t\t$resources = Sprig::factory('resource')->load(NULL, FALSE);\n\t\tif (!empty($resources))\n\t\t{\n\t\t\t$this->view->resources = $resources->as_array();\n\t\t}\n\t}", "function listing()\n\t\t{\n\t\t// en $this->_view->_listado para poder acceder a el desde la vista.\n\t\t\t$this->_view->_listado = $listado = $this->_instrumentoModel->getInstrumento();\n\t\t\t$this->_view->render('listing', '', '',$this->_sidebar_menu);\n\t\t}", "public function listAction()\n {\n $em = $this->getDoctrine()->getManager();\n \n $todos = $em->getRepository(Todo::class)->findAll();\n \n return $this->render('todo/index.html.twig', array(\n 'todos' => $todos,\n ));\n }", "public function index()\n\t{\n $this->authorize('list', Instance::class);\n\n\t\treturn $this->ok($this->repo->paginate($this->request->all()));\n\t}", "public function actionRestList() {\n\t $this->doRestList();\n\t}", "public function listing()\n\t{\n\t\t$hospitalID = $this->request->getSession()->read(\"hospital_id\") ? $this->request->getSession()->read(\"hospital_id\") : \"\";\n\t\t\n\t\t$patientMonitored = 1;\n\t\t$patientActive = 1;\n\t\t\n\t\t//GET ALL PATIENTS\n\t\t$patientsData = $this->Patients->allPatients($hospitalID,$patientMonitored,$patientActive);\n\t\t//GET ALL PATIENTS\n\t\t\n\t\t//echo \"<pre>\"; print_r($patientsData);die;\n\t\t$this->set(compact(\"patientsData\"));\n\t}", "public function listAction()\n {\n $htmlpage = '<!DOCTYPE html>\n<html>\n <head>\n <meta charset=\"UTF-8\">\n <title>todos list!</title>\n </head>\n <body>\n <h1>todos list</h1>\n <p>Here are all your todos:</p>\n <ul>';\n \n $em = $this->getDoctrine()->getManager();\n $todos = $em->getRepository(Todo::class)->findAll();\n foreach($todos as $todo) {\n $htmlpage .= '<li>\n <a href=\"/todo/'.$todo->getid().'\">'.$todo->getTitle().'</a></li>';\n }\n $htmlpage .= '</ul>';\n\n $htmlpage .= '</body></html>';\n \n return new Response(\n $htmlpage,\n Response::HTTP_OK,\n array('content-type' => 'text/html')\n );\n }", "public function index()\n {\n // Get Persons\n $person = Person::paginate(10);\n\n //Return collection of person as a resource\n return PersonResource::collection($person);\n }", "public function listAction() {\n\t\t$this->view->title = $this->translator->translate(\"Invoice list\");\n\t\t$this->view->description = $this->translator->translate(\"Here you can see all the invoices.\");\n\t\t$this->view->buttons = array(array(\"url\" => \"/admin/invoices/new/\", \"label\" => $this->translator->translate('New'), \"params\" => array('css' => null)));\r\n\t\t$this->datagrid->setConfig ( Invoices::grid() )->datagrid ();\n\t}", "public function listAll()\n\t{\n\t\t$this->render(self::PATH_VIEWS . '/list', [\n\t\t\t'pages' => $this->pagesDb->findAll('id', 'DESC'),\n\t\t]);\n\t}", "public function list()\n {\n // récupérer les données : toutes les catégories enregistrées\n $productList = Product::findAll();\n\n $this->show('product/list', [\n 'productList' => $productList\n ]);\n }", "public function index()\n {\n // CRUD -> Retrieve --> List\n // BREAD -> Browse Read Edit Add Delete\n // return Item::all();\n return view('list_items',compact('items'));\n }", "public function index()\n {\n // Get manufacturers\n $manufacturers = Manufacturer::orderBy('created_at', 'desc')->paginate(15);\n\n // Return collection of manufacturers as a resource\n return ManufacturerResource::collection($manufacturers);\n }", "public function index()\n {\n return ArtistResource::collection(Artist::orderBy('created_at', 'desc')->get());\n }", "public function indexAction() {\n\t\t$page = intval($this->getInput('page'));\n\t\t$perpage = $this->perpage;\n\t\t\n\t\tlist(,$files) = Lock_Service_FileType::getAllFileType();\n\t\t$data = array();\n\t\tforeach ($files as $key=>$value) {\n\t\t\t$data[$key]['id'] = $value['id'];\n\t\t\t$data[$key]['title'] = $value['name'];\n\t\t}\n\t\tlist($total, $filetype) = Lock_Service_FileType::getList($page, $perpage);\n\t\t$this->assign('filetype', $filetype);\n\t\t$this->assign('pager', Common::getPages($total, $page, $perpage, $this->actions['listUrl'].'/?'));\n\t\t$this->assign('data', json_encode($data));\n\t}", "public function listAction()\n {\n $qb = $this->getRepository()->queryAll();\n\n $view = new ImportListView;\n $view->imports = $qb->getQuery()->execute();\n\n return $this->templating->renderResponse('InfiniteImportBundle:Import:list.html.twig', array(\n 'data' => $view\n ));\n }", "public function index()\n\t{\n\t\t//Return model all()\n\t\t$instances = $this->decorator->getListingModels();\n\n\t\treturn View::make($this->listingView, array(\n\t\t\t'instances' => $instances,\n\t\t\t'controller' => get_class($this), \n\t\t\t'modelName' => class_basename(get_class($this->decorator->getModel())),\n\t\t\t'columns' => $this->getColumnsForInstances($instances),\n\t\t\t'editable' => $this->editable\n\t\t));\n\t}", "public function index()\n {\n return InfografiResources::collection(\n Infografi::orderBy('date', 'desc')->get()\n );\n }", "public function listAction()\n\t {\n\t\t\t$this->_forward('index');\n \n\t\t}", "public function index()\n {\n $this->list_view();\n }", "public function index()\n {\n $this->list_view();\n }", "public function index()\n {\n $this->list_view();\n }", "public function listAction()\n {\n $defaults = array(\n 'page' => null,\n 'order' => null,\n 'limit' => null,\n 'offset' => null,\n 'filter' => array(),\n );\n $body = $this->getRequest()->getBody();\n $options = $body + $defaults;\n\n // Process the options\n if (is_string($options['order'])) {\n $options['order'] = array_map('trim', explode(',', $options['order']));\n }\n if (is_string($options['page'])) {\n $options['page'] = (int)$options['page'];\n }\n if (is_string($options['limit'])) {\n $options['limit'] = (int)$options['limit'];\n }\n if (is_string($options['offset'])) {\n $options['offset'] = (int)$options['offset'];\n }\n $filter = $options['filter'];\n unset($options['filter']);\n\n $options = array_filter($options);\n\n return $this->getBinding()->find($filter, $options);\n }", "public function index()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Get the resources from the model */\n $resources = $this->resourcesList($this->model);\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.index\")) {\n $view = \"admin.{$this->name}.index\";\n } else {\n $view = 'admin.includes.actions.index';\n }\n\n /* Display a listing of the resources */\n return view($view)\n ->with('resources', $resources)\n ->with('module', $this->module);\n }", "public function index()\n\t{\n\t\t$data['lists'] = $this->mdl_student->get_all();\n\t\t$this->template->set('title', 'Student Hostel List');\n\t\t$this->template->load('template', 'contents', 'student_hostel/student_hostel_list', $data);\n\t}", "public function index()\n {\n $modules = Module::all();\n return Resource::collection($modules);\n }", "public function index()\n {\n // List all resources from user entity\n $users = User::all();\n\n return $this->showAll($users);\n }", "public function index()\n {\n // Get todos\n $todos = Todo::orderBy('created_at', 'desc')->paginate(3);\n\n // Return collection of articles as a resource\n return TodoResource::collection($todos);\n }", "public function index()\n {\n return Resources::collection(Checking::paginate());\n }", "public function index()\n {\n return CourseListResource::collection(\n Course::query()->withoutGlobalScope('publish')\n ->latest()->paginate()\n );\n }", "public function index()\n {\n $cars = Car::paginate(15);\n return CarResource::collection($cars);\n }", "public function index()\n {\n // Get articles\n $articles = Article::orderBy('created_at', 'desc')->paginate(5);\n\n // Return collection of articles as a resource\n return ArticleResource::collection($articles);\n }", "public function index()\n {\n $authors = Author::paginate(10);\n\n return AuthorResource::collection($authors);\n }", "public function index()\n {\n //Get Books\n $books = Book::paginate(10);\n \n if ($books) {\n return (BookResource::collection($books))->additional([\n 'status_code' => 200,\n 'status' => 'success',\n ]);\n } else {\n return (BookResource::collection([]))->additional([\n 'status_code' => 200,\n 'status' => 'success',\n ]);\n }\n return view('index')->with('data', $books);\n }", "public function view(){\n\t\t$this->buildListing();\n\t}", "public function index()\n {\n $books = Book::latest()\n ->paginate(20);\n\n return BookResource::collection($books);\n }", "public function index()\n {\n $listing = Listing::orderBy('id', 'desc')->paginate(10);\n return view('listings.index')->withListings($listing);\n }", "public function listAction()\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 }", "public function index()\n {\n $services = $this->serviceRepository->paginate();\n\n return ServiceResource::collection($services);\n }", "public function index()\n {\n $resources = ResourceManagement::paginate(5);\n $users = User::get();\n\n return view('resources-mgmt/index', ['resources' => $resources, 'users' => $users]);\n }", "public function index()\n {\n $catalogs = Catalog::where('status', '=', Catalog::PUBLICADO)\n ->orderBy('id', 'DESC')->get();\n \n $data = CatalogResource::collection($catalogs);\n\n return [\n 'items' => $data,\n 'mensaje' => ''\n ];\n }", "public function listAction(){\n // In a controller this can be:\n // $this->request->getQuery('page', 'int'); // GET\n $currentPage = $this->request->getPost('pageindex', 'int'); // POST\n $pageNum = ($currentPage == null) ? 1 : $currentPage;\n\n // The data set to paginate\n $message = new Notice();\n $results = $message->getMsg4Admin();\n\n // Create a Model paginator, show 10 rows by page starting from $currentPage\n $paginator = new PaginatorArray(\n array(\n \"data\" => $results,\n \"limit\" => 10,\n \"page\" => $pageNum\n )\n );\n\n // Get the paginated results\n $page = $paginator->getPaginate();\n\n return $this->response->setJsonContent($page);\n\n }", "public function list()\n {\n try {\n return $this->success($this->service->list());\n } catch (\\Exception $exception) {\n return $this->error($exception->getMessage());\n }\n }", "public function index()\n {\n return $this->sendResponse(CrisisResource::collection(Crisis::paginate(10)), 'Data fetched successfully');\n }", "public function index()\n\t{\n\t\t$%Alias = new %Model();\n\t\t$params = array();\n\t\t\n\t\t$Paginator = new Paginator( $%Alias->findSize( $params ), $this->getLimit(), $this->getPage() );\n\t\t$this->getView()->set( '%Aliass', $%Alias->findList( $params, 'Id desc', $this->getOffset(), $this->getLimit() ) );\n\t\t$this->getView()->set( 'Paginator', $Paginator );\n\t\treturn $this->getView()->render();\n\t}", "public function listAction() {}", "public function index()\n {\n\n return RecipeResource::collection(Recipe::all());\n }", "public function index()\n {\n $this->indexPage('list-product', 'List Product');\n }", "public function listAction()\n {\t\n\t\t$this->removeSession();\n\t\t$this->verifySessionRights();\n\t\t$this->setActivity(\"List view\");\n $em = $this->getDoctrine()->getManager();\n $oRepClient = $em->getRepository('BoAdminBundle:Client');\n\t\t$nb_tc = $oRepClient->getTotal();\n\t\t//get page\n\t\t$page = $this->get('session')->get('page');\n\t\tif($page==null){\n\t\t\t$page=1;\n\t\t\t$this->get('session')->set('page',1);\n\t\t}\n\t\t//get number line per page\n\t\t$nb_cpp = $em->getRepository('BoAdminBundle:Param')->getParam(\"display_list_page_number\",1);\n\t\t$nb_pages = ceil($nb_tc/$nb_cpp);\n\t\t$offset = $page>0?($page-1) * $nb_cpp:0;\n\t\t$clients = $em->getRepository('BoAdminBundle:Client')->findBy(array(),array('id' => 'desc'),$nb_cpp,$offset);\n $form = $this->createForm('Bo\\AdminBundle\\Form\\ClientType', new Client());\n return $this->render('client/index.html.twig', array(\n 'clients' => $clients,\n\t\t\t'page' => $page, // forward current page to view,\n\t\t\t'nb_pages' => $nb_pages, //total number page,\n 'form' => $form->createView(),\n\t\t\t'total'=>$nb_tc, // record number.\n\t\t\t'nb_cpp' => $nb_cpp,// line's number to display\n\t\t\t'pm'=>\"contracts\",\n\t\t\t'sm'=>\"client\",\n ));\n }", "public function index()\n {\n return AcResource::collection(Ac::latest()->paginate()); //\n }", "public function executeList()\n {\n $this->setTemplate('list');\n }", "public function indexAction()\n {\n $books = Book::getAll();\n\n View::renderTemplate('Books/index.html', [\n 'books' => $books\n ]);\n }", "function listing() {\r\n\r\n }", "public function listar() {\n $rs = $this->model->listar();\n\n echo $this->toJson($rs);\n }", "public function index()\n {\n return BookResource::collection(Book::orderby('id')->get());\n }", "public function doRestList()\n {\n $this->outputHelper( \n 'Records Retrieved Successfully', \n $this->getModel()->with($this->nestedRelations)->filter($this->restFilter)->orderBy($this->restSort)->limit($this->restLimit)->offset($this->restOffset)->findAll(),\n $this->getModel()->with($this->nestedRelations)->filter($this->restFilter)->count()\n );\n\t}", "public function index()\n {\n $client = Client::paginate();\n return ClientResource::collection($client);\n }", "public function index()\n {\n return TagResource::collection(\n Tag::orderBy('name', 'ASC')->paginate(request('per_page', 10))\n );\n }", "public function _index(){\n\t $this->_list();\n\t}", "public function index()\n\t{\n\t\t$data['lists'] = $this->gallery_mdl->get_all();\n\t\t$this->template->set('title', 'Gallery');\n\t\t$this->template->render('template', 'list', $data);\n\t}", "function drush_restapi_list() {\n\n $resources = restapi_get_resources();\n $last_module = NULL;\n $rows = [\n [dt('Module'), dt('Path'), dt('Class')],\n ];\n\n foreach($resources as $resource) {\n if ($last_module != $resource->getModule()) {\n $module = $last_module = $resource->getModule();\n }\n else {\n $module = '';\n }\n $rows[] = [$module, $resource->getPath(), $resource->getClass()];\n }\n\n drush_print_table($rows, TRUE);\n drush_log(dt('Displaying !count total resources', [\n '!count' => count($resources),\n ]), 'ok');\n\n}", "public function index()\n {\n $this->booklist();\n }", "public function index()\n {\n //\n $accounts = accounts::paginate(15);\n\n //return the collection of employees as a resource\n return accountResource::collection($accounts);\n\n\n }", "public function index()\n {\n $items = Item::all();\n return view('items::list_items',compact('items'));\n }", "public function index()\n {\n // Get houses\n $houses = House::orderBy('created_at', 'desc')->paginate(self::PAGINATE);\n \n // Return collection of houses\n \n return HouseResource::collection($houses);\n }", "public function index()\n {\n $products = Product::paginate(6);\n return ProductResource::collection($products);\n }", "public function index() {\n $this->template->allFoundItems = Found::showAll();\n $this->template->display( 'index.html.php' );\n }", "public function indexAction() {\n $this->_forward('list');\n }", "public function index()\n {\n $data = Productcategory::paginate(10);\n\t\treturn ProductcategoryResource::Collection($data);\n }", "public function index()\n {\n return SongResource::collection(\\App\\Song::orderBy('created_at', 'desc')->get());\n }", "public function ListView()\n\t{\n\t\t\n\t\t// Requer permissão de acesso\n\t\t$this->RequirePermission(Usuario::$P_ADMIN,\n\t\t\t\t'SecureExample.LoginForm',\n\t\t\t\t'Autentique-se para acessar esta página',\n\t\t\t\t'Você não possui permissão para acessar essa página ou sua sessão expirou');\n\t\t\n\t\t//$usuario = Controller::GetCurrentUser();\n\t\t//$this->Assign('usuario',$usuario);\n\t\t$this->Render();\n\t}", "public function index () {\n permiss ( 'role.list' );\n\n $data = $this->entity\n ->orderBy('created_at', 'desc')->get();\n\n return new ModelResource($data);\n }", "public function showResources()\n {\n $resources = Resource::get();\n return view('resources', compact('resources'));\n }", "public function index()\n {\n //get articless\n $articles = Article::paginate(15);\n\n //Return collection of article has a resource\n return ArticleResource::collection($articles);\n\n }", "public function actionList() {\n header(\"Content-type: application/json\");\n $verb = $_SERVER[\"REQUEST_METHOD\"];\n\n if ($verb === 'GET') {\n echo \"{\\\"data\\\":\" . CJSON::encode(Donneur::model()->findAll()) . \"}\";\n } else if ($verb == 'POST') {\n if (Donneur::model()->exists('id' === $_POST['id'])) {\n $this->actionListUpdate($_POST);\n } else {\n $this->actionListPost();\n }\n } else if ($verb == 'DELETE') {\n $this->actionListDelete();\n }\n }", "public function list()\n {\n return $this->http->request(HttpMethods::GET, $this->endpoint);\n }", "public function indexAction(){\n $data = array(\n 'collection' => $this->model->getCollection(),\n \n ); \t\n return $this->getView($data);\n }", "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $entities = $em->getRepository('DiverPriceLisrBundle:Items')->findAll();\n\n return $this->render('DiverPriceLisrBundle:Items:index.html.twig', array(\n 'entities' => $entities,\n ));\n }", "public function actionIndex()\n {\n $dataProvider = new ActiveDataProvider([\n 'query' => Slaves::find(),\n ]);\n\n return $this->render('index', [\n 'dataProvider' => $dataProvider,\n ]);\n }", "public function listAction() {\n\t\t// Recogemos el repositorio\n\t\t$repository = $this->getDoctrine() ->getRepository('AppBundle:Product');\n\t\n\t\t// Recuperamos todos los productos.\n\t\t$products = $repository->findAll();\n\t\t// Pasamos a la plantilla el aray products\n\t\treturn $this->render('product/listActionProduct.html.twig', array( 'products' => $products));\n\t\n\t}", "public function listAction()\n\t {\n\t\t$model = $this->_getModel();\n\t\t$result = $model->getLayouts();\t\n\t\t$page = (int)($this->_request->getParam('page')); \n\t\tif(count($result) > 0)\n\t\t{ \n\t\t\tGlobals::doPaging($result, $page, $this->view);\n\t\t}\n\t\t\t\t\n\t\t$this->view->page = $page;\n\t }", "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 $model->u_cms_album_id = $_GET['album'];\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 // datas\n $datas = $dataProvider->getData();\n\n // related datas\n $relatedDatas = $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 $filtersDatas = array();\n if (isset($_GET[$this->_model])) {\n $filtersDatas[$this->_model] = $_GET[$this->_model];\n }\n if (isset($_GET[$sort->sortVar])) {\n $filtersDatas[$sort->sortVar] = $_GET[$sort->sortVar];\n }\n\n $jsonParams = array(\n 'filters' => http_build_query($filtersDatas)\n );\n }\n\n $this->dynamicRender(\n $template,\n array(\n 'dataView' => new $this->crudComponents['listDataView'](\n $datas, $relatedDatas, $model, $sort, $pagination, $this\n )\n ),\n $jsonParams\n );\n }", "public function index()\n {\n return view('listings.index')->with('listings', Listing::all());\n }", "public function get_index()\n\t{\n\t\t$pages = Page::recent_available()->paginate(30);\n\t\t$table = Cello\\Presenter\\Page::table($pages);\n\t\t$data = array(\n\t\t\t'eloquent' => $pages,\n\t\t\t'table' => $table,\n\t\t);\n\n\t\tSite::set('title', __('cello::title.pages.list'));\n\n\t\treturn View::make('cello::api.resources.index', $data);\n\t}", "public function index()\n {\n return ProductResource::collection(Product::latest()->paginate(10));\n }", "public function index()\n {\n $category = GalleryCategory::paginate(15);\n\n // return collection of category as a resource.\n return Resource::collection($category);\n }", "public function index()\n {\n //\n $news = News::latest()->paginate(18);\n\n return NewsResource::collection($news);\n }", "public function indexAction() {\n\t\t$list_info = Zend_Registry::get('list_info');\n if (!Engine_Api::_()->core()->hasSubject('list_listing')) {\n return $this->setNoRender();\n }\n \n $this->view->expiry_setting = Engine_Api::_()->list()->expirySettings();\n\n //GET SUBJECT\n $this->view->list = $list = Engine_Api::_()->core()->getSubject('list_listing');\n\n\t\t//GET CATEGORY TABLE\n\t\t$this->view->tableCategory = Engine_Api::_()->getDbTable('categories', 'list');\n\n //GET CATEGORIES NAME\n\t\t$this->view->category_name = $this->view->subcategory_name = $this->view->subsubcategory_name = '';\n\n\t\tif(!empty($list->category_id)) {\n\t\t\tif($this->view->tableCategory->getCategory($list->category_id))\n\t\t\t$this->view->category_name = $this->view->tableCategory->getCategory($list->category_id)->category_name;\n\n\t\t\tif(!empty($list->subcategory_id)) {\n\t\t\t\tif($this->view->tableCategory->getCategory($list->subcategory_id))\n\t\t\t\t$this->view->subcategory_name = $this->view->tableCategory->getCategory($list->subcategory_id)->category_name;\n\n\t\t\t\tif(!empty($list->subsubcategory_id)) {\n\t\t\t\t\tif($this->view->tableCategory->getCategory($list->subsubcategory_id))\n\t\t\t\t\t$this->view->subsubcategory_name = $this->view->tableCategory->getCategory($list->subsubcategory_id)->category_name;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n //GET LISTING TAGS\n $this->view->listTags = $list->tags()->getTagMaps();\n\n\t\t//GET OTHER DETAILS\n\t\t$this->view->list_description = Zend_Registry::get('list_descriptions');\n $this->view->addHelperPath(APPLICATION_PATH . '/application/modules/Fields/View/Helper', 'Fields_View_Helper');\n $this->view->fieldStructure = Engine_Api::_()->fields()->getFieldsStructurePartial($list);\n\t\tif(empty($list_info)){ return $this->setNoRender(); }\n }", "public function index()\n {\n return $this->service->fetchResources(Author::class, 'authors');\n }", "public function index()\n {\n return view('admin.resources.index');\n }", "public function doRestList() {\n\t\t$this->outputHelper ( 'Collections Retrieved Successfully', $this->getModel ()->with ( $this->nestedRelations )->filter ( $this->restFilter )->orderBy ( $this->restSort )->limit ( $this->restLimit )->offset ( $this->restOffset )->findAll (), $this->getModel ()->with ( $this->nestedRelations )->filter ( $this->restFilter )->count () );\n\t}" ]
[ "0.7446777", "0.736227", "0.73005503", "0.72478926", "0.71631265", "0.71489686", "0.7131636", "0.7105969", "0.71029514", "0.7101372", "0.70508176", "0.6995128", "0.69890636", "0.6934895", "0.6900203", "0.6899281", "0.6891734", "0.6887235", "0.68670005", "0.6849741", "0.6830523", "0.6802689", "0.6797", "0.67957735", "0.67871135", "0.6760129", "0.67427456", "0.6730486", "0.67272323", "0.67255723", "0.67255723", "0.67255723", "0.67177945", "0.6707866", "0.6706713", "0.6704375", "0.6664782", "0.6662871", "0.6660302", "0.6659404", "0.6656656", "0.6653517", "0.6647965", "0.6620322", "0.66185474", "0.6618499", "0.6606105", "0.6600617", "0.65996987", "0.6594775", "0.6587389", "0.6585109", "0.6581641", "0.6581017", "0.6577157", "0.65747666", "0.6572513", "0.65721947", "0.6570553", "0.65646994", "0.6563556", "0.6554194", "0.65529937", "0.65460825", "0.65368485", "0.653429", "0.65328294", "0.6526759", "0.6526695", "0.6526284", "0.65191334", "0.65183175", "0.65174305", "0.651703", "0.65141153", "0.6507088", "0.65061647", "0.6504046", "0.64942145", "0.6491893", "0.64883405", "0.6486392", "0.6485077", "0.64846045", "0.6478858", "0.64756656", "0.64726377", "0.6471126", "0.64701074", "0.6467418", "0.6462195", "0.64618355", "0.6459199", "0.6457831", "0.6454631", "0.64533997", "0.6451915", "0.6450861", "0.6449301", "0.64492667", "0.64469045" ]
0.0
-1
Display a listing of the resource.
public function createTag() { $data = array(); $data['actives'] = array('xhbd-contents'); $data['action_controller'] = 'create_tag'; return view('backend.tags.be_create_tag_view', compact('data')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function indexAction()\n {\n $limit = $this->Request()->getParam('limit', 1000);\n $offset = $this->Request()->getParam('start', 0);\n $sort = $this->Request()->getParam('sort', array());\n $filter = $this->Request()->getParam('filter', array());\n\n $result = $this->resource->getList($offset, $limit, $filter, $sort);\n\n $this->View()->assign($result);\n $this->View()->assign('success', true);\n }", "public function listing();", "function index() {\n\t\t$this->show_list();\n\t}", "public function actionList() {\n $this->_getList();\n }", "public function listAction()\n {\n $model = $this->_getPhotoModel();\n $entries = $model->fetchEntries($this->_getParam('page', 1));\n\n $this->view->url = 'http://' . $this->_request->getHttpHost() . $this->_request->getBaseUrl(); \n $this->view->paginator = $entries;\n }", "public function index()\n {\n $items = Item::all();\n return ItemForShowResource::collection($items);\n }", "public function index()\n {\n return Resource::collection(($this->getModel())::paginate(10));\n }", "function index()\n\t{\n\t\t$this->_list();\n\t\t$this->display();\n\t}", "public function listingAction(){\n if (!LoginHelper::isAdmin()){\n Router::redirect('home', '<p class=\"alert alert-danger\">Unauthorized</p>');\n }\n $this->view->render('patient/list', Patient::all());\n }", "public function index()\n {\n //\n $list = $this->obj->all();\n\n return $this->render('index', compact('list'));\n }", "public function action_index()\n\t{\n\t\t$this->template->title = 'Resources';\n\t\t$this->view = View::factory('admin/resource/index');\n\t\t$this->template->scripts[] = 'media/js/jquery.tablesorter.min.js';\n\t\t$this->template->scripts[] = 'media/js/admin/resource.js';\n\t\t\n\t\t$resources = Sprig::factory('resource')->load(NULL, FALSE);\n\t\tif (!empty($resources))\n\t\t{\n\t\t\t$this->view->resources = $resources->as_array();\n\t\t}\n\t}", "function listing()\n\t\t{\n\t\t// en $this->_view->_listado para poder acceder a el desde la vista.\n\t\t\t$this->_view->_listado = $listado = $this->_instrumentoModel->getInstrumento();\n\t\t\t$this->_view->render('listing', '', '',$this->_sidebar_menu);\n\t\t}", "public function listAction()\n {\n $em = $this->getDoctrine()->getManager();\n \n $todos = $em->getRepository(Todo::class)->findAll();\n \n return $this->render('todo/index.html.twig', array(\n 'todos' => $todos,\n ));\n }", "public function index()\n\t{\n $this->authorize('list', Instance::class);\n\n\t\treturn $this->ok($this->repo->paginate($this->request->all()));\n\t}", "public function actionRestList() {\n\t $this->doRestList();\n\t}", "public function listing()\n\t{\n\t\t$hospitalID = $this->request->getSession()->read(\"hospital_id\") ? $this->request->getSession()->read(\"hospital_id\") : \"\";\n\t\t\n\t\t$patientMonitored = 1;\n\t\t$patientActive = 1;\n\t\t\n\t\t//GET ALL PATIENTS\n\t\t$patientsData = $this->Patients->allPatients($hospitalID,$patientMonitored,$patientActive);\n\t\t//GET ALL PATIENTS\n\t\t\n\t\t//echo \"<pre>\"; print_r($patientsData);die;\n\t\t$this->set(compact(\"patientsData\"));\n\t}", "public function listAction()\n {\n $htmlpage = '<!DOCTYPE html>\n<html>\n <head>\n <meta charset=\"UTF-8\">\n <title>todos list!</title>\n </head>\n <body>\n <h1>todos list</h1>\n <p>Here are all your todos:</p>\n <ul>';\n \n $em = $this->getDoctrine()->getManager();\n $todos = $em->getRepository(Todo::class)->findAll();\n foreach($todos as $todo) {\n $htmlpage .= '<li>\n <a href=\"/todo/'.$todo->getid().'\">'.$todo->getTitle().'</a></li>';\n }\n $htmlpage .= '</ul>';\n\n $htmlpage .= '</body></html>';\n \n return new Response(\n $htmlpage,\n Response::HTTP_OK,\n array('content-type' => 'text/html')\n );\n }", "public function index()\n {\n // Get Persons\n $person = Person::paginate(10);\n\n //Return collection of person as a resource\n return PersonResource::collection($person);\n }", "public function listAction() {\n\t\t$this->view->title = $this->translator->translate(\"Invoice list\");\n\t\t$this->view->description = $this->translator->translate(\"Here you can see all the invoices.\");\n\t\t$this->view->buttons = array(array(\"url\" => \"/admin/invoices/new/\", \"label\" => $this->translator->translate('New'), \"params\" => array('css' => null)));\r\n\t\t$this->datagrid->setConfig ( Invoices::grid() )->datagrid ();\n\t}", "public function listAll()\n\t{\n\t\t$this->render(self::PATH_VIEWS . '/list', [\n\t\t\t'pages' => $this->pagesDb->findAll('id', 'DESC'),\n\t\t]);\n\t}", "public function list()\n {\n // récupérer les données : toutes les catégories enregistrées\n $productList = Product::findAll();\n\n $this->show('product/list', [\n 'productList' => $productList\n ]);\n }", "public function index()\n {\n // CRUD -> Retrieve --> List\n // BREAD -> Browse Read Edit Add Delete\n // return Item::all();\n return view('list_items',compact('items'));\n }", "public function index()\n {\n // Get manufacturers\n $manufacturers = Manufacturer::orderBy('created_at', 'desc')->paginate(15);\n\n // Return collection of manufacturers as a resource\n return ManufacturerResource::collection($manufacturers);\n }", "public function index()\n {\n return ArtistResource::collection(Artist::orderBy('created_at', 'desc')->get());\n }", "public function indexAction() {\n\t\t$page = intval($this->getInput('page'));\n\t\t$perpage = $this->perpage;\n\t\t\n\t\tlist(,$files) = Lock_Service_FileType::getAllFileType();\n\t\t$data = array();\n\t\tforeach ($files as $key=>$value) {\n\t\t\t$data[$key]['id'] = $value['id'];\n\t\t\t$data[$key]['title'] = $value['name'];\n\t\t}\n\t\tlist($total, $filetype) = Lock_Service_FileType::getList($page, $perpage);\n\t\t$this->assign('filetype', $filetype);\n\t\t$this->assign('pager', Common::getPages($total, $page, $perpage, $this->actions['listUrl'].'/?'));\n\t\t$this->assign('data', json_encode($data));\n\t}", "public function listAction()\n {\n $qb = $this->getRepository()->queryAll();\n\n $view = new ImportListView;\n $view->imports = $qb->getQuery()->execute();\n\n return $this->templating->renderResponse('InfiniteImportBundle:Import:list.html.twig', array(\n 'data' => $view\n ));\n }", "public function index()\n\t{\n\t\t//Return model all()\n\t\t$instances = $this->decorator->getListingModels();\n\n\t\treturn View::make($this->listingView, array(\n\t\t\t'instances' => $instances,\n\t\t\t'controller' => get_class($this), \n\t\t\t'modelName' => class_basename(get_class($this->decorator->getModel())),\n\t\t\t'columns' => $this->getColumnsForInstances($instances),\n\t\t\t'editable' => $this->editable\n\t\t));\n\t}", "public function index()\n {\n return InfografiResources::collection(\n Infografi::orderBy('date', 'desc')->get()\n );\n }", "public function listAction()\n\t {\n\t\t\t$this->_forward('index');\n \n\t\t}", "public function index()\n {\n $this->list_view();\n }", "public function index()\n {\n $this->list_view();\n }", "public function index()\n {\n $this->list_view();\n }", "public function listAction()\n {\n $defaults = array(\n 'page' => null,\n 'order' => null,\n 'limit' => null,\n 'offset' => null,\n 'filter' => array(),\n );\n $body = $this->getRequest()->getBody();\n $options = $body + $defaults;\n\n // Process the options\n if (is_string($options['order'])) {\n $options['order'] = array_map('trim', explode(',', $options['order']));\n }\n if (is_string($options['page'])) {\n $options['page'] = (int)$options['page'];\n }\n if (is_string($options['limit'])) {\n $options['limit'] = (int)$options['limit'];\n }\n if (is_string($options['offset'])) {\n $options['offset'] = (int)$options['offset'];\n }\n $filter = $options['filter'];\n unset($options['filter']);\n\n $options = array_filter($options);\n\n return $this->getBinding()->find($filter, $options);\n }", "public function index()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Get the resources from the model */\n $resources = $this->resourcesList($this->model);\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.index\")) {\n $view = \"admin.{$this->name}.index\";\n } else {\n $view = 'admin.includes.actions.index';\n }\n\n /* Display a listing of the resources */\n return view($view)\n ->with('resources', $resources)\n ->with('module', $this->module);\n }", "public function index()\n\t{\n\t\t$data['lists'] = $this->mdl_student->get_all();\n\t\t$this->template->set('title', 'Student Hostel List');\n\t\t$this->template->load('template', 'contents', 'student_hostel/student_hostel_list', $data);\n\t}", "public function index()\n {\n $modules = Module::all();\n return Resource::collection($modules);\n }", "public function index()\n {\n // List all resources from user entity\n $users = User::all();\n\n return $this->showAll($users);\n }", "public function index()\n {\n // Get todos\n $todos = Todo::orderBy('created_at', 'desc')->paginate(3);\n\n // Return collection of articles as a resource\n return TodoResource::collection($todos);\n }", "public function index()\n {\n return Resources::collection(Checking::paginate());\n }", "public function index()\n {\n return CourseListResource::collection(\n Course::query()->withoutGlobalScope('publish')\n ->latest()->paginate()\n );\n }", "public function index()\n {\n $cars = Car::paginate(15);\n return CarResource::collection($cars);\n }", "public function index()\n {\n // Get articles\n $articles = Article::orderBy('created_at', 'desc')->paginate(5);\n\n // Return collection of articles as a resource\n return ArticleResource::collection($articles);\n }", "public function index()\n {\n $authors = Author::paginate(10);\n\n return AuthorResource::collection($authors);\n }", "public function index()\n {\n //Get Books\n $books = Book::paginate(10);\n \n if ($books) {\n return (BookResource::collection($books))->additional([\n 'status_code' => 200,\n 'status' => 'success',\n ]);\n } else {\n return (BookResource::collection([]))->additional([\n 'status_code' => 200,\n 'status' => 'success',\n ]);\n }\n return view('index')->with('data', $books);\n }", "public function view(){\n\t\t$this->buildListing();\n\t}", "public function index()\n {\n $books = Book::latest()\n ->paginate(20);\n\n return BookResource::collection($books);\n }", "public function index()\n {\n $listing = Listing::orderBy('id', 'desc')->paginate(10);\n return view('listings.index')->withListings($listing);\n }", "public function listAction()\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 }", "public function index()\n {\n $services = $this->serviceRepository->paginate();\n\n return ServiceResource::collection($services);\n }", "public function index()\n {\n $resources = ResourceManagement::paginate(5);\n $users = User::get();\n\n return view('resources-mgmt/index', ['resources' => $resources, 'users' => $users]);\n }", "public function index()\n {\n $catalogs = Catalog::where('status', '=', Catalog::PUBLICADO)\n ->orderBy('id', 'DESC')->get();\n \n $data = CatalogResource::collection($catalogs);\n\n return [\n 'items' => $data,\n 'mensaje' => ''\n ];\n }", "public function listAction(){\n // In a controller this can be:\n // $this->request->getQuery('page', 'int'); // GET\n $currentPage = $this->request->getPost('pageindex', 'int'); // POST\n $pageNum = ($currentPage == null) ? 1 : $currentPage;\n\n // The data set to paginate\n $message = new Notice();\n $results = $message->getMsg4Admin();\n\n // Create a Model paginator, show 10 rows by page starting from $currentPage\n $paginator = new PaginatorArray(\n array(\n \"data\" => $results,\n \"limit\" => 10,\n \"page\" => $pageNum\n )\n );\n\n // Get the paginated results\n $page = $paginator->getPaginate();\n\n return $this->response->setJsonContent($page);\n\n }", "public function list()\n {\n try {\n return $this->success($this->service->list());\n } catch (\\Exception $exception) {\n return $this->error($exception->getMessage());\n }\n }", "public function index()\n {\n return $this->sendResponse(CrisisResource::collection(Crisis::paginate(10)), 'Data fetched successfully');\n }", "public function index()\n\t{\n\t\t$%Alias = new %Model();\n\t\t$params = array();\n\t\t\n\t\t$Paginator = new Paginator( $%Alias->findSize( $params ), $this->getLimit(), $this->getPage() );\n\t\t$this->getView()->set( '%Aliass', $%Alias->findList( $params, 'Id desc', $this->getOffset(), $this->getLimit() ) );\n\t\t$this->getView()->set( 'Paginator', $Paginator );\n\t\treturn $this->getView()->render();\n\t}", "public function listAction() {}", "public function index()\n {\n\n return RecipeResource::collection(Recipe::all());\n }", "public function index()\n {\n $this->indexPage('list-product', 'List Product');\n }", "public function listAction()\n {\t\n\t\t$this->removeSession();\n\t\t$this->verifySessionRights();\n\t\t$this->setActivity(\"List view\");\n $em = $this->getDoctrine()->getManager();\n $oRepClient = $em->getRepository('BoAdminBundle:Client');\n\t\t$nb_tc = $oRepClient->getTotal();\n\t\t//get page\n\t\t$page = $this->get('session')->get('page');\n\t\tif($page==null){\n\t\t\t$page=1;\n\t\t\t$this->get('session')->set('page',1);\n\t\t}\n\t\t//get number line per page\n\t\t$nb_cpp = $em->getRepository('BoAdminBundle:Param')->getParam(\"display_list_page_number\",1);\n\t\t$nb_pages = ceil($nb_tc/$nb_cpp);\n\t\t$offset = $page>0?($page-1) * $nb_cpp:0;\n\t\t$clients = $em->getRepository('BoAdminBundle:Client')->findBy(array(),array('id' => 'desc'),$nb_cpp,$offset);\n $form = $this->createForm('Bo\\AdminBundle\\Form\\ClientType', new Client());\n return $this->render('client/index.html.twig', array(\n 'clients' => $clients,\n\t\t\t'page' => $page, // forward current page to view,\n\t\t\t'nb_pages' => $nb_pages, //total number page,\n 'form' => $form->createView(),\n\t\t\t'total'=>$nb_tc, // record number.\n\t\t\t'nb_cpp' => $nb_cpp,// line's number to display\n\t\t\t'pm'=>\"contracts\",\n\t\t\t'sm'=>\"client\",\n ));\n }", "public function index()\n {\n return AcResource::collection(Ac::latest()->paginate()); //\n }", "public function executeList()\n {\n $this->setTemplate('list');\n }", "public function indexAction()\n {\n $books = Book::getAll();\n\n View::renderTemplate('Books/index.html', [\n 'books' => $books\n ]);\n }", "function listing() {\r\n\r\n }", "public function listar() {\n $rs = $this->model->listar();\n\n echo $this->toJson($rs);\n }", "public function index()\n {\n return BookResource::collection(Book::orderby('id')->get());\n }", "public function doRestList()\n {\n $this->outputHelper( \n 'Records Retrieved Successfully', \n $this->getModel()->with($this->nestedRelations)->filter($this->restFilter)->orderBy($this->restSort)->limit($this->restLimit)->offset($this->restOffset)->findAll(),\n $this->getModel()->with($this->nestedRelations)->filter($this->restFilter)->count()\n );\n\t}", "public function index()\n {\n $client = Client::paginate();\n return ClientResource::collection($client);\n }", "public function index()\n {\n return TagResource::collection(\n Tag::orderBy('name', 'ASC')->paginate(request('per_page', 10))\n );\n }", "public function _index(){\n\t $this->_list();\n\t}", "public function index()\n\t{\n\t\t$data['lists'] = $this->gallery_mdl->get_all();\n\t\t$this->template->set('title', 'Gallery');\n\t\t$this->template->render('template', 'list', $data);\n\t}", "function drush_restapi_list() {\n\n $resources = restapi_get_resources();\n $last_module = NULL;\n $rows = [\n [dt('Module'), dt('Path'), dt('Class')],\n ];\n\n foreach($resources as $resource) {\n if ($last_module != $resource->getModule()) {\n $module = $last_module = $resource->getModule();\n }\n else {\n $module = '';\n }\n $rows[] = [$module, $resource->getPath(), $resource->getClass()];\n }\n\n drush_print_table($rows, TRUE);\n drush_log(dt('Displaying !count total resources', [\n '!count' => count($resources),\n ]), 'ok');\n\n}", "public function index()\n {\n $this->booklist();\n }", "public function index()\n {\n //\n $accounts = accounts::paginate(15);\n\n //return the collection of employees as a resource\n return accountResource::collection($accounts);\n\n\n }", "public function index()\n {\n $items = Item::all();\n return view('items::list_items',compact('items'));\n }", "public function index()\n {\n // Get houses\n $houses = House::orderBy('created_at', 'desc')->paginate(self::PAGINATE);\n \n // Return collection of houses\n \n return HouseResource::collection($houses);\n }", "public function index()\n {\n $products = Product::paginate(6);\n return ProductResource::collection($products);\n }", "public function index() {\n $this->template->allFoundItems = Found::showAll();\n $this->template->display( 'index.html.php' );\n }", "public function indexAction() {\n $this->_forward('list');\n }", "public function index()\n {\n $data = Productcategory::paginate(10);\n\t\treturn ProductcategoryResource::Collection($data);\n }", "public function index()\n {\n return SongResource::collection(\\App\\Song::orderBy('created_at', 'desc')->get());\n }", "public function ListView()\n\t{\n\t\t\n\t\t// Requer permissão de acesso\n\t\t$this->RequirePermission(Usuario::$P_ADMIN,\n\t\t\t\t'SecureExample.LoginForm',\n\t\t\t\t'Autentique-se para acessar esta página',\n\t\t\t\t'Você não possui permissão para acessar essa página ou sua sessão expirou');\n\t\t\n\t\t//$usuario = Controller::GetCurrentUser();\n\t\t//$this->Assign('usuario',$usuario);\n\t\t$this->Render();\n\t}", "public function index () {\n permiss ( 'role.list' );\n\n $data = $this->entity\n ->orderBy('created_at', 'desc')->get();\n\n return new ModelResource($data);\n }", "public function showResources()\n {\n $resources = Resource::get();\n return view('resources', compact('resources'));\n }", "public function index()\n {\n //get articless\n $articles = Article::paginate(15);\n\n //Return collection of article has a resource\n return ArticleResource::collection($articles);\n\n }", "public function actionList() {\n header(\"Content-type: application/json\");\n $verb = $_SERVER[\"REQUEST_METHOD\"];\n\n if ($verb === 'GET') {\n echo \"{\\\"data\\\":\" . CJSON::encode(Donneur::model()->findAll()) . \"}\";\n } else if ($verb == 'POST') {\n if (Donneur::model()->exists('id' === $_POST['id'])) {\n $this->actionListUpdate($_POST);\n } else {\n $this->actionListPost();\n }\n } else if ($verb == 'DELETE') {\n $this->actionListDelete();\n }\n }", "public function list()\n {\n return $this->http->request(HttpMethods::GET, $this->endpoint);\n }", "public function indexAction(){\n $data = array(\n 'collection' => $this->model->getCollection(),\n \n ); \t\n return $this->getView($data);\n }", "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $entities = $em->getRepository('DiverPriceLisrBundle:Items')->findAll();\n\n return $this->render('DiverPriceLisrBundle:Items:index.html.twig', array(\n 'entities' => $entities,\n ));\n }", "public function actionIndex()\n {\n $dataProvider = new ActiveDataProvider([\n 'query' => Slaves::find(),\n ]);\n\n return $this->render('index', [\n 'dataProvider' => $dataProvider,\n ]);\n }", "public function listAction() {\n\t\t// Recogemos el repositorio\n\t\t$repository = $this->getDoctrine() ->getRepository('AppBundle:Product');\n\t\n\t\t// Recuperamos todos los productos.\n\t\t$products = $repository->findAll();\n\t\t// Pasamos a la plantilla el aray products\n\t\treturn $this->render('product/listActionProduct.html.twig', array( 'products' => $products));\n\t\n\t}", "public function listAction()\n\t {\n\t\t$model = $this->_getModel();\n\t\t$result = $model->getLayouts();\t\n\t\t$page = (int)($this->_request->getParam('page')); \n\t\tif(count($result) > 0)\n\t\t{ \n\t\t\tGlobals::doPaging($result, $page, $this->view);\n\t\t}\n\t\t\t\t\n\t\t$this->view->page = $page;\n\t }", "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 $model->u_cms_album_id = $_GET['album'];\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 // datas\n $datas = $dataProvider->getData();\n\n // related datas\n $relatedDatas = $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 $filtersDatas = array();\n if (isset($_GET[$this->_model])) {\n $filtersDatas[$this->_model] = $_GET[$this->_model];\n }\n if (isset($_GET[$sort->sortVar])) {\n $filtersDatas[$sort->sortVar] = $_GET[$sort->sortVar];\n }\n\n $jsonParams = array(\n 'filters' => http_build_query($filtersDatas)\n );\n }\n\n $this->dynamicRender(\n $template,\n array(\n 'dataView' => new $this->crudComponents['listDataView'](\n $datas, $relatedDatas, $model, $sort, $pagination, $this\n )\n ),\n $jsonParams\n );\n }", "public function index()\n {\n return view('listings.index')->with('listings', Listing::all());\n }", "public function get_index()\n\t{\n\t\t$pages = Page::recent_available()->paginate(30);\n\t\t$table = Cello\\Presenter\\Page::table($pages);\n\t\t$data = array(\n\t\t\t'eloquent' => $pages,\n\t\t\t'table' => $table,\n\t\t);\n\n\t\tSite::set('title', __('cello::title.pages.list'));\n\n\t\treturn View::make('cello::api.resources.index', $data);\n\t}", "public function index()\n {\n return ProductResource::collection(Product::latest()->paginate(10));\n }", "public function index()\n {\n $category = GalleryCategory::paginate(15);\n\n // return collection of category as a resource.\n return Resource::collection($category);\n }", "public function index()\n {\n //\n $news = News::latest()->paginate(18);\n\n return NewsResource::collection($news);\n }", "public function indexAction() {\n\t\t$list_info = Zend_Registry::get('list_info');\n if (!Engine_Api::_()->core()->hasSubject('list_listing')) {\n return $this->setNoRender();\n }\n \n $this->view->expiry_setting = Engine_Api::_()->list()->expirySettings();\n\n //GET SUBJECT\n $this->view->list = $list = Engine_Api::_()->core()->getSubject('list_listing');\n\n\t\t//GET CATEGORY TABLE\n\t\t$this->view->tableCategory = Engine_Api::_()->getDbTable('categories', 'list');\n\n //GET CATEGORIES NAME\n\t\t$this->view->category_name = $this->view->subcategory_name = $this->view->subsubcategory_name = '';\n\n\t\tif(!empty($list->category_id)) {\n\t\t\tif($this->view->tableCategory->getCategory($list->category_id))\n\t\t\t$this->view->category_name = $this->view->tableCategory->getCategory($list->category_id)->category_name;\n\n\t\t\tif(!empty($list->subcategory_id)) {\n\t\t\t\tif($this->view->tableCategory->getCategory($list->subcategory_id))\n\t\t\t\t$this->view->subcategory_name = $this->view->tableCategory->getCategory($list->subcategory_id)->category_name;\n\n\t\t\t\tif(!empty($list->subsubcategory_id)) {\n\t\t\t\t\tif($this->view->tableCategory->getCategory($list->subsubcategory_id))\n\t\t\t\t\t$this->view->subsubcategory_name = $this->view->tableCategory->getCategory($list->subsubcategory_id)->category_name;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n //GET LISTING TAGS\n $this->view->listTags = $list->tags()->getTagMaps();\n\n\t\t//GET OTHER DETAILS\n\t\t$this->view->list_description = Zend_Registry::get('list_descriptions');\n $this->view->addHelperPath(APPLICATION_PATH . '/application/modules/Fields/View/Helper', 'Fields_View_Helper');\n $this->view->fieldStructure = Engine_Api::_()->fields()->getFieldsStructurePartial($list);\n\t\tif(empty($list_info)){ return $this->setNoRender(); }\n }", "public function index()\n {\n return $this->service->fetchResources(Author::class, 'authors');\n }", "public function index()\n {\n return view('admin.resources.index');\n }", "public function doRestList() {\n\t\t$this->outputHelper ( 'Collections Retrieved Successfully', $this->getModel ()->with ( $this->nestedRelations )->filter ( $this->restFilter )->orderBy ( $this->restSort )->limit ( $this->restLimit )->offset ( $this->restOffset )->findAll (), $this->getModel ()->with ( $this->nestedRelations )->filter ( $this->restFilter )->count () );\n\t}" ]
[ "0.7446777", "0.736227", "0.73005503", "0.72478926", "0.71631265", "0.71489686", "0.7131636", "0.7105969", "0.71029514", "0.7101372", "0.70508176", "0.6995128", "0.69890636", "0.6934895", "0.6900203", "0.6899281", "0.6891734", "0.6887235", "0.68670005", "0.6849741", "0.6830523", "0.6802689", "0.6797", "0.67957735", "0.67871135", "0.6760129", "0.67427456", "0.6730486", "0.67272323", "0.67255723", "0.67255723", "0.67255723", "0.67177945", "0.6707866", "0.6706713", "0.6704375", "0.6664782", "0.6662871", "0.6660302", "0.6659404", "0.6656656", "0.6653517", "0.6647965", "0.6620322", "0.66185474", "0.6618499", "0.6606105", "0.6600617", "0.65996987", "0.6594775", "0.6587389", "0.6585109", "0.6581641", "0.6581017", "0.6577157", "0.65747666", "0.6572513", "0.65721947", "0.6570553", "0.65646994", "0.6563556", "0.6554194", "0.65529937", "0.65460825", "0.65368485", "0.653429", "0.65328294", "0.6526759", "0.6526695", "0.6526284", "0.65191334", "0.65183175", "0.65174305", "0.651703", "0.65141153", "0.6507088", "0.65061647", "0.6504046", "0.64942145", "0.6491893", "0.64883405", "0.6486392", "0.6485077", "0.64846045", "0.6478858", "0.64756656", "0.64726377", "0.6471126", "0.64701074", "0.6467418", "0.6462195", "0.64618355", "0.6459199", "0.6457831", "0.6454631", "0.64533997", "0.6451915", "0.6450861", "0.6449301", "0.64492667", "0.64469045" ]
0.0
-1
Display a listing of the resource.
public function saveTag(BeTagValidationRequest $request) { $data = array(); $inserts = array( 'name' => $request->get('name'), 'name_alias' => SimpleClass::trans_word($request->get('name')), 'status' => 1, 'created_by' => 'Hungsama', 'updated_by' => '', 'created_at' => time(), 'updated_at' => 0 ); BeTagModel::insertGetId($inserts); $data['actives'] = array('xhbd-contents'); $data['action_controller'] = 'save_tag'; Session::flash('success', SimpleClass::success_notice('Create new a tag is successfully')); return redirect()->route('be-tag.show'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function indexAction()\n {\n $limit = $this->Request()->getParam('limit', 1000);\n $offset = $this->Request()->getParam('start', 0);\n $sort = $this->Request()->getParam('sort', array());\n $filter = $this->Request()->getParam('filter', array());\n\n $result = $this->resource->getList($offset, $limit, $filter, $sort);\n\n $this->View()->assign($result);\n $this->View()->assign('success', true);\n }", "public function listing();", "function index() {\n\t\t$this->show_list();\n\t}", "public function actionList() {\n $this->_getList();\n }", "public function listAction()\n {\n $model = $this->_getPhotoModel();\n $entries = $model->fetchEntries($this->_getParam('page', 1));\n\n $this->view->url = 'http://' . $this->_request->getHttpHost() . $this->_request->getBaseUrl(); \n $this->view->paginator = $entries;\n }", "public function index()\n {\n $items = Item::all();\n return ItemForShowResource::collection($items);\n }", "public function index()\n {\n return Resource::collection(($this->getModel())::paginate(10));\n }", "function index()\n\t{\n\t\t$this->_list();\n\t\t$this->display();\n\t}", "public function listingAction(){\n if (!LoginHelper::isAdmin()){\n Router::redirect('home', '<p class=\"alert alert-danger\">Unauthorized</p>');\n }\n $this->view->render('patient/list', Patient::all());\n }", "public function index()\n {\n //\n $list = $this->obj->all();\n\n return $this->render('index', compact('list'));\n }", "public function action_index()\n\t{\n\t\t$this->template->title = 'Resources';\n\t\t$this->view = View::factory('admin/resource/index');\n\t\t$this->template->scripts[] = 'media/js/jquery.tablesorter.min.js';\n\t\t$this->template->scripts[] = 'media/js/admin/resource.js';\n\t\t\n\t\t$resources = Sprig::factory('resource')->load(NULL, FALSE);\n\t\tif (!empty($resources))\n\t\t{\n\t\t\t$this->view->resources = $resources->as_array();\n\t\t}\n\t}", "function listing()\n\t\t{\n\t\t// en $this->_view->_listado para poder acceder a el desde la vista.\n\t\t\t$this->_view->_listado = $listado = $this->_instrumentoModel->getInstrumento();\n\t\t\t$this->_view->render('listing', '', '',$this->_sidebar_menu);\n\t\t}", "public function listAction()\n {\n $em = $this->getDoctrine()->getManager();\n \n $todos = $em->getRepository(Todo::class)->findAll();\n \n return $this->render('todo/index.html.twig', array(\n 'todos' => $todos,\n ));\n }", "public function index()\n\t{\n $this->authorize('list', Instance::class);\n\n\t\treturn $this->ok($this->repo->paginate($this->request->all()));\n\t}", "public function actionRestList() {\n\t $this->doRestList();\n\t}", "public function listing()\n\t{\n\t\t$hospitalID = $this->request->getSession()->read(\"hospital_id\") ? $this->request->getSession()->read(\"hospital_id\") : \"\";\n\t\t\n\t\t$patientMonitored = 1;\n\t\t$patientActive = 1;\n\t\t\n\t\t//GET ALL PATIENTS\n\t\t$patientsData = $this->Patients->allPatients($hospitalID,$patientMonitored,$patientActive);\n\t\t//GET ALL PATIENTS\n\t\t\n\t\t//echo \"<pre>\"; print_r($patientsData);die;\n\t\t$this->set(compact(\"patientsData\"));\n\t}", "public function listAction()\n {\n $htmlpage = '<!DOCTYPE html>\n<html>\n <head>\n <meta charset=\"UTF-8\">\n <title>todos list!</title>\n </head>\n <body>\n <h1>todos list</h1>\n <p>Here are all your todos:</p>\n <ul>';\n \n $em = $this->getDoctrine()->getManager();\n $todos = $em->getRepository(Todo::class)->findAll();\n foreach($todos as $todo) {\n $htmlpage .= '<li>\n <a href=\"/todo/'.$todo->getid().'\">'.$todo->getTitle().'</a></li>';\n }\n $htmlpage .= '</ul>';\n\n $htmlpage .= '</body></html>';\n \n return new Response(\n $htmlpage,\n Response::HTTP_OK,\n array('content-type' => 'text/html')\n );\n }", "public function index()\n {\n // Get Persons\n $person = Person::paginate(10);\n\n //Return collection of person as a resource\n return PersonResource::collection($person);\n }", "public function listAction() {\n\t\t$this->view->title = $this->translator->translate(\"Invoice list\");\n\t\t$this->view->description = $this->translator->translate(\"Here you can see all the invoices.\");\n\t\t$this->view->buttons = array(array(\"url\" => \"/admin/invoices/new/\", \"label\" => $this->translator->translate('New'), \"params\" => array('css' => null)));\r\n\t\t$this->datagrid->setConfig ( Invoices::grid() )->datagrid ();\n\t}", "public function listAll()\n\t{\n\t\t$this->render(self::PATH_VIEWS . '/list', [\n\t\t\t'pages' => $this->pagesDb->findAll('id', 'DESC'),\n\t\t]);\n\t}", "public function list()\n {\n // récupérer les données : toutes les catégories enregistrées\n $productList = Product::findAll();\n\n $this->show('product/list', [\n 'productList' => $productList\n ]);\n }", "public function index()\n {\n // CRUD -> Retrieve --> List\n // BREAD -> Browse Read Edit Add Delete\n // return Item::all();\n return view('list_items',compact('items'));\n }", "public function index()\n {\n // Get manufacturers\n $manufacturers = Manufacturer::orderBy('created_at', 'desc')->paginate(15);\n\n // Return collection of manufacturers as a resource\n return ManufacturerResource::collection($manufacturers);\n }", "public function index()\n {\n return ArtistResource::collection(Artist::orderBy('created_at', 'desc')->get());\n }", "public function indexAction() {\n\t\t$page = intval($this->getInput('page'));\n\t\t$perpage = $this->perpage;\n\t\t\n\t\tlist(,$files) = Lock_Service_FileType::getAllFileType();\n\t\t$data = array();\n\t\tforeach ($files as $key=>$value) {\n\t\t\t$data[$key]['id'] = $value['id'];\n\t\t\t$data[$key]['title'] = $value['name'];\n\t\t}\n\t\tlist($total, $filetype) = Lock_Service_FileType::getList($page, $perpage);\n\t\t$this->assign('filetype', $filetype);\n\t\t$this->assign('pager', Common::getPages($total, $page, $perpage, $this->actions['listUrl'].'/?'));\n\t\t$this->assign('data', json_encode($data));\n\t}", "public function listAction()\n {\n $qb = $this->getRepository()->queryAll();\n\n $view = new ImportListView;\n $view->imports = $qb->getQuery()->execute();\n\n return $this->templating->renderResponse('InfiniteImportBundle:Import:list.html.twig', array(\n 'data' => $view\n ));\n }", "public function index()\n\t{\n\t\t//Return model all()\n\t\t$instances = $this->decorator->getListingModels();\n\n\t\treturn View::make($this->listingView, array(\n\t\t\t'instances' => $instances,\n\t\t\t'controller' => get_class($this), \n\t\t\t'modelName' => class_basename(get_class($this->decorator->getModel())),\n\t\t\t'columns' => $this->getColumnsForInstances($instances),\n\t\t\t'editable' => $this->editable\n\t\t));\n\t}", "public function index()\n {\n return InfografiResources::collection(\n Infografi::orderBy('date', 'desc')->get()\n );\n }", "public function listAction()\n\t {\n\t\t\t$this->_forward('index');\n \n\t\t}", "public function index()\n {\n $this->list_view();\n }", "public function index()\n {\n $this->list_view();\n }", "public function index()\n {\n $this->list_view();\n }", "public function listAction()\n {\n $defaults = array(\n 'page' => null,\n 'order' => null,\n 'limit' => null,\n 'offset' => null,\n 'filter' => array(),\n );\n $body = $this->getRequest()->getBody();\n $options = $body + $defaults;\n\n // Process the options\n if (is_string($options['order'])) {\n $options['order'] = array_map('trim', explode(',', $options['order']));\n }\n if (is_string($options['page'])) {\n $options['page'] = (int)$options['page'];\n }\n if (is_string($options['limit'])) {\n $options['limit'] = (int)$options['limit'];\n }\n if (is_string($options['offset'])) {\n $options['offset'] = (int)$options['offset'];\n }\n $filter = $options['filter'];\n unset($options['filter']);\n\n $options = array_filter($options);\n\n return $this->getBinding()->find($filter, $options);\n }", "public function index()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Get the resources from the model */\n $resources = $this->resourcesList($this->model);\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.index\")) {\n $view = \"admin.{$this->name}.index\";\n } else {\n $view = 'admin.includes.actions.index';\n }\n\n /* Display a listing of the resources */\n return view($view)\n ->with('resources', $resources)\n ->with('module', $this->module);\n }", "public function index()\n\t{\n\t\t$data['lists'] = $this->mdl_student->get_all();\n\t\t$this->template->set('title', 'Student Hostel List');\n\t\t$this->template->load('template', 'contents', 'student_hostel/student_hostel_list', $data);\n\t}", "public function index()\n {\n $modules = Module::all();\n return Resource::collection($modules);\n }", "public function index()\n {\n // List all resources from user entity\n $users = User::all();\n\n return $this->showAll($users);\n }", "public function index()\n {\n // Get todos\n $todos = Todo::orderBy('created_at', 'desc')->paginate(3);\n\n // Return collection of articles as a resource\n return TodoResource::collection($todos);\n }", "public function index()\n {\n return Resources::collection(Checking::paginate());\n }", "public function index()\n {\n return CourseListResource::collection(\n Course::query()->withoutGlobalScope('publish')\n ->latest()->paginate()\n );\n }", "public function index()\n {\n $cars = Car::paginate(15);\n return CarResource::collection($cars);\n }", "public function index()\n {\n // Get articles\n $articles = Article::orderBy('created_at', 'desc')->paginate(5);\n\n // Return collection of articles as a resource\n return ArticleResource::collection($articles);\n }", "public function index()\n {\n $authors = Author::paginate(10);\n\n return AuthorResource::collection($authors);\n }", "public function index()\n {\n //Get Books\n $books = Book::paginate(10);\n \n if ($books) {\n return (BookResource::collection($books))->additional([\n 'status_code' => 200,\n 'status' => 'success',\n ]);\n } else {\n return (BookResource::collection([]))->additional([\n 'status_code' => 200,\n 'status' => 'success',\n ]);\n }\n return view('index')->with('data', $books);\n }", "public function view(){\n\t\t$this->buildListing();\n\t}", "public function index()\n {\n $books = Book::latest()\n ->paginate(20);\n\n return BookResource::collection($books);\n }", "public function index()\n {\n $listing = Listing::orderBy('id', 'desc')->paginate(10);\n return view('listings.index')->withListings($listing);\n }", "public function listAction()\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 }", "public function index()\n {\n $services = $this->serviceRepository->paginate();\n\n return ServiceResource::collection($services);\n }", "public function index()\n {\n $resources = ResourceManagement::paginate(5);\n $users = User::get();\n\n return view('resources-mgmt/index', ['resources' => $resources, 'users' => $users]);\n }", "public function index()\n {\n $catalogs = Catalog::where('status', '=', Catalog::PUBLICADO)\n ->orderBy('id', 'DESC')->get();\n \n $data = CatalogResource::collection($catalogs);\n\n return [\n 'items' => $data,\n 'mensaje' => ''\n ];\n }", "public function listAction(){\n // In a controller this can be:\n // $this->request->getQuery('page', 'int'); // GET\n $currentPage = $this->request->getPost('pageindex', 'int'); // POST\n $pageNum = ($currentPage == null) ? 1 : $currentPage;\n\n // The data set to paginate\n $message = new Notice();\n $results = $message->getMsg4Admin();\n\n // Create a Model paginator, show 10 rows by page starting from $currentPage\n $paginator = new PaginatorArray(\n array(\n \"data\" => $results,\n \"limit\" => 10,\n \"page\" => $pageNum\n )\n );\n\n // Get the paginated results\n $page = $paginator->getPaginate();\n\n return $this->response->setJsonContent($page);\n\n }", "public function list()\n {\n try {\n return $this->success($this->service->list());\n } catch (\\Exception $exception) {\n return $this->error($exception->getMessage());\n }\n }", "public function index()\n {\n return $this->sendResponse(CrisisResource::collection(Crisis::paginate(10)), 'Data fetched successfully');\n }", "public function index()\n\t{\n\t\t$%Alias = new %Model();\n\t\t$params = array();\n\t\t\n\t\t$Paginator = new Paginator( $%Alias->findSize( $params ), $this->getLimit(), $this->getPage() );\n\t\t$this->getView()->set( '%Aliass', $%Alias->findList( $params, 'Id desc', $this->getOffset(), $this->getLimit() ) );\n\t\t$this->getView()->set( 'Paginator', $Paginator );\n\t\treturn $this->getView()->render();\n\t}", "public function listAction() {}", "public function index()\n {\n\n return RecipeResource::collection(Recipe::all());\n }", "public function index()\n {\n $this->indexPage('list-product', 'List Product');\n }", "public function listAction()\n {\t\n\t\t$this->removeSession();\n\t\t$this->verifySessionRights();\n\t\t$this->setActivity(\"List view\");\n $em = $this->getDoctrine()->getManager();\n $oRepClient = $em->getRepository('BoAdminBundle:Client');\n\t\t$nb_tc = $oRepClient->getTotal();\n\t\t//get page\n\t\t$page = $this->get('session')->get('page');\n\t\tif($page==null){\n\t\t\t$page=1;\n\t\t\t$this->get('session')->set('page',1);\n\t\t}\n\t\t//get number line per page\n\t\t$nb_cpp = $em->getRepository('BoAdminBundle:Param')->getParam(\"display_list_page_number\",1);\n\t\t$nb_pages = ceil($nb_tc/$nb_cpp);\n\t\t$offset = $page>0?($page-1) * $nb_cpp:0;\n\t\t$clients = $em->getRepository('BoAdminBundle:Client')->findBy(array(),array('id' => 'desc'),$nb_cpp,$offset);\n $form = $this->createForm('Bo\\AdminBundle\\Form\\ClientType', new Client());\n return $this->render('client/index.html.twig', array(\n 'clients' => $clients,\n\t\t\t'page' => $page, // forward current page to view,\n\t\t\t'nb_pages' => $nb_pages, //total number page,\n 'form' => $form->createView(),\n\t\t\t'total'=>$nb_tc, // record number.\n\t\t\t'nb_cpp' => $nb_cpp,// line's number to display\n\t\t\t'pm'=>\"contracts\",\n\t\t\t'sm'=>\"client\",\n ));\n }", "public function index()\n {\n return AcResource::collection(Ac::latest()->paginate()); //\n }", "public function executeList()\n {\n $this->setTemplate('list');\n }", "public function indexAction()\n {\n $books = Book::getAll();\n\n View::renderTemplate('Books/index.html', [\n 'books' => $books\n ]);\n }", "function listing() {\r\n\r\n }", "public function listar() {\n $rs = $this->model->listar();\n\n echo $this->toJson($rs);\n }", "public function index()\n {\n return BookResource::collection(Book::orderby('id')->get());\n }", "public function doRestList()\n {\n $this->outputHelper( \n 'Records Retrieved Successfully', \n $this->getModel()->with($this->nestedRelations)->filter($this->restFilter)->orderBy($this->restSort)->limit($this->restLimit)->offset($this->restOffset)->findAll(),\n $this->getModel()->with($this->nestedRelations)->filter($this->restFilter)->count()\n );\n\t}", "public function index()\n {\n $client = Client::paginate();\n return ClientResource::collection($client);\n }", "public function index()\n {\n return TagResource::collection(\n Tag::orderBy('name', 'ASC')->paginate(request('per_page', 10))\n );\n }", "public function _index(){\n\t $this->_list();\n\t}", "public function index()\n\t{\n\t\t$data['lists'] = $this->gallery_mdl->get_all();\n\t\t$this->template->set('title', 'Gallery');\n\t\t$this->template->render('template', 'list', $data);\n\t}", "function drush_restapi_list() {\n\n $resources = restapi_get_resources();\n $last_module = NULL;\n $rows = [\n [dt('Module'), dt('Path'), dt('Class')],\n ];\n\n foreach($resources as $resource) {\n if ($last_module != $resource->getModule()) {\n $module = $last_module = $resource->getModule();\n }\n else {\n $module = '';\n }\n $rows[] = [$module, $resource->getPath(), $resource->getClass()];\n }\n\n drush_print_table($rows, TRUE);\n drush_log(dt('Displaying !count total resources', [\n '!count' => count($resources),\n ]), 'ok');\n\n}", "public function index()\n {\n $this->booklist();\n }", "public function index()\n {\n //\n $accounts = accounts::paginate(15);\n\n //return the collection of employees as a resource\n return accountResource::collection($accounts);\n\n\n }", "public function index()\n {\n $items = Item::all();\n return view('items::list_items',compact('items'));\n }", "public function index()\n {\n // Get houses\n $houses = House::orderBy('created_at', 'desc')->paginate(self::PAGINATE);\n \n // Return collection of houses\n \n return HouseResource::collection($houses);\n }", "public function index()\n {\n $products = Product::paginate(6);\n return ProductResource::collection($products);\n }", "public function index() {\n $this->template->allFoundItems = Found::showAll();\n $this->template->display( 'index.html.php' );\n }", "public function indexAction() {\n $this->_forward('list');\n }", "public function index()\n {\n $data = Productcategory::paginate(10);\n\t\treturn ProductcategoryResource::Collection($data);\n }", "public function index()\n {\n return SongResource::collection(\\App\\Song::orderBy('created_at', 'desc')->get());\n }", "public function ListView()\n\t{\n\t\t\n\t\t// Requer permissão de acesso\n\t\t$this->RequirePermission(Usuario::$P_ADMIN,\n\t\t\t\t'SecureExample.LoginForm',\n\t\t\t\t'Autentique-se para acessar esta página',\n\t\t\t\t'Você não possui permissão para acessar essa página ou sua sessão expirou');\n\t\t\n\t\t//$usuario = Controller::GetCurrentUser();\n\t\t//$this->Assign('usuario',$usuario);\n\t\t$this->Render();\n\t}", "public function index () {\n permiss ( 'role.list' );\n\n $data = $this->entity\n ->orderBy('created_at', 'desc')->get();\n\n return new ModelResource($data);\n }", "public function showResources()\n {\n $resources = Resource::get();\n return view('resources', compact('resources'));\n }", "public function index()\n {\n //get articless\n $articles = Article::paginate(15);\n\n //Return collection of article has a resource\n return ArticleResource::collection($articles);\n\n }", "public function actionList() {\n header(\"Content-type: application/json\");\n $verb = $_SERVER[\"REQUEST_METHOD\"];\n\n if ($verb === 'GET') {\n echo \"{\\\"data\\\":\" . CJSON::encode(Donneur::model()->findAll()) . \"}\";\n } else if ($verb == 'POST') {\n if (Donneur::model()->exists('id' === $_POST['id'])) {\n $this->actionListUpdate($_POST);\n } else {\n $this->actionListPost();\n }\n } else if ($verb == 'DELETE') {\n $this->actionListDelete();\n }\n }", "public function list()\n {\n return $this->http->request(HttpMethods::GET, $this->endpoint);\n }", "public function indexAction(){\n $data = array(\n 'collection' => $this->model->getCollection(),\n \n ); \t\n return $this->getView($data);\n }", "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $entities = $em->getRepository('DiverPriceLisrBundle:Items')->findAll();\n\n return $this->render('DiverPriceLisrBundle:Items:index.html.twig', array(\n 'entities' => $entities,\n ));\n }", "public function actionIndex()\n {\n $dataProvider = new ActiveDataProvider([\n 'query' => Slaves::find(),\n ]);\n\n return $this->render('index', [\n 'dataProvider' => $dataProvider,\n ]);\n }", "public function listAction() {\n\t\t// Recogemos el repositorio\n\t\t$repository = $this->getDoctrine() ->getRepository('AppBundle:Product');\n\t\n\t\t// Recuperamos todos los productos.\n\t\t$products = $repository->findAll();\n\t\t// Pasamos a la plantilla el aray products\n\t\treturn $this->render('product/listActionProduct.html.twig', array( 'products' => $products));\n\t\n\t}", "public function listAction()\n\t {\n\t\t$model = $this->_getModel();\n\t\t$result = $model->getLayouts();\t\n\t\t$page = (int)($this->_request->getParam('page')); \n\t\tif(count($result) > 0)\n\t\t{ \n\t\t\tGlobals::doPaging($result, $page, $this->view);\n\t\t}\n\t\t\t\t\n\t\t$this->view->page = $page;\n\t }", "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 $model->u_cms_album_id = $_GET['album'];\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 // datas\n $datas = $dataProvider->getData();\n\n // related datas\n $relatedDatas = $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 $filtersDatas = array();\n if (isset($_GET[$this->_model])) {\n $filtersDatas[$this->_model] = $_GET[$this->_model];\n }\n if (isset($_GET[$sort->sortVar])) {\n $filtersDatas[$sort->sortVar] = $_GET[$sort->sortVar];\n }\n\n $jsonParams = array(\n 'filters' => http_build_query($filtersDatas)\n );\n }\n\n $this->dynamicRender(\n $template,\n array(\n 'dataView' => new $this->crudComponents['listDataView'](\n $datas, $relatedDatas, $model, $sort, $pagination, $this\n )\n ),\n $jsonParams\n );\n }", "public function index()\n {\n return view('listings.index')->with('listings', Listing::all());\n }", "public function get_index()\n\t{\n\t\t$pages = Page::recent_available()->paginate(30);\n\t\t$table = Cello\\Presenter\\Page::table($pages);\n\t\t$data = array(\n\t\t\t'eloquent' => $pages,\n\t\t\t'table' => $table,\n\t\t);\n\n\t\tSite::set('title', __('cello::title.pages.list'));\n\n\t\treturn View::make('cello::api.resources.index', $data);\n\t}", "public function index()\n {\n return ProductResource::collection(Product::latest()->paginate(10));\n }", "public function index()\n {\n $category = GalleryCategory::paginate(15);\n\n // return collection of category as a resource.\n return Resource::collection($category);\n }", "public function index()\n {\n //\n $news = News::latest()->paginate(18);\n\n return NewsResource::collection($news);\n }", "public function indexAction() {\n\t\t$list_info = Zend_Registry::get('list_info');\n if (!Engine_Api::_()->core()->hasSubject('list_listing')) {\n return $this->setNoRender();\n }\n \n $this->view->expiry_setting = Engine_Api::_()->list()->expirySettings();\n\n //GET SUBJECT\n $this->view->list = $list = Engine_Api::_()->core()->getSubject('list_listing');\n\n\t\t//GET CATEGORY TABLE\n\t\t$this->view->tableCategory = Engine_Api::_()->getDbTable('categories', 'list');\n\n //GET CATEGORIES NAME\n\t\t$this->view->category_name = $this->view->subcategory_name = $this->view->subsubcategory_name = '';\n\n\t\tif(!empty($list->category_id)) {\n\t\t\tif($this->view->tableCategory->getCategory($list->category_id))\n\t\t\t$this->view->category_name = $this->view->tableCategory->getCategory($list->category_id)->category_name;\n\n\t\t\tif(!empty($list->subcategory_id)) {\n\t\t\t\tif($this->view->tableCategory->getCategory($list->subcategory_id))\n\t\t\t\t$this->view->subcategory_name = $this->view->tableCategory->getCategory($list->subcategory_id)->category_name;\n\n\t\t\t\tif(!empty($list->subsubcategory_id)) {\n\t\t\t\t\tif($this->view->tableCategory->getCategory($list->subsubcategory_id))\n\t\t\t\t\t$this->view->subsubcategory_name = $this->view->tableCategory->getCategory($list->subsubcategory_id)->category_name;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n //GET LISTING TAGS\n $this->view->listTags = $list->tags()->getTagMaps();\n\n\t\t//GET OTHER DETAILS\n\t\t$this->view->list_description = Zend_Registry::get('list_descriptions');\n $this->view->addHelperPath(APPLICATION_PATH . '/application/modules/Fields/View/Helper', 'Fields_View_Helper');\n $this->view->fieldStructure = Engine_Api::_()->fields()->getFieldsStructurePartial($list);\n\t\tif(empty($list_info)){ return $this->setNoRender(); }\n }", "public function index()\n {\n return $this->service->fetchResources(Author::class, 'authors');\n }", "public function index()\n {\n return view('admin.resources.index');\n }", "public function doRestList() {\n\t\t$this->outputHelper ( 'Collections Retrieved Successfully', $this->getModel ()->with ( $this->nestedRelations )->filter ( $this->restFilter )->orderBy ( $this->restSort )->limit ( $this->restLimit )->offset ( $this->restOffset )->findAll (), $this->getModel ()->with ( $this->nestedRelations )->filter ( $this->restFilter )->count () );\n\t}" ]
[ "0.7446777", "0.736227", "0.73005503", "0.72478926", "0.71631265", "0.71489686", "0.7131636", "0.7105969", "0.71029514", "0.7101372", "0.70508176", "0.6995128", "0.69890636", "0.6934895", "0.6900203", "0.6899281", "0.6891734", "0.6887235", "0.68670005", "0.6849741", "0.6830523", "0.6802689", "0.6797", "0.67957735", "0.67871135", "0.6760129", "0.67427456", "0.6730486", "0.67272323", "0.67255723", "0.67255723", "0.67255723", "0.67177945", "0.6707866", "0.6706713", "0.6704375", "0.6664782", "0.6662871", "0.6660302", "0.6659404", "0.6656656", "0.6653517", "0.6647965", "0.6620322", "0.66185474", "0.6618499", "0.6606105", "0.6600617", "0.65996987", "0.6594775", "0.6587389", "0.6585109", "0.6581641", "0.6581017", "0.6577157", "0.65747666", "0.6572513", "0.65721947", "0.6570553", "0.65646994", "0.6563556", "0.6554194", "0.65529937", "0.65460825", "0.65368485", "0.653429", "0.65328294", "0.6526759", "0.6526695", "0.6526284", "0.65191334", "0.65183175", "0.65174305", "0.651703", "0.65141153", "0.6507088", "0.65061647", "0.6504046", "0.64942145", "0.6491893", "0.64883405", "0.6486392", "0.6485077", "0.64846045", "0.6478858", "0.64756656", "0.64726377", "0.6471126", "0.64701074", "0.6467418", "0.6462195", "0.64618355", "0.6459199", "0.6457831", "0.6454631", "0.64533997", "0.6451915", "0.6450861", "0.6449301", "0.64492667", "0.64469045" ]
0.0
-1
Display a listing of the resource.
public function detailTag($id) { $data = array(); $data['actives'] = array('xhbd-contents'); $data['record'] = BeTagModel::find($id); $data['action_controller'] = 'update_tag'; return view('backend.tags.be_detail_tag_view', compact('data')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function indexAction()\n {\n $limit = $this->Request()->getParam('limit', 1000);\n $offset = $this->Request()->getParam('start', 0);\n $sort = $this->Request()->getParam('sort', array());\n $filter = $this->Request()->getParam('filter', array());\n\n $result = $this->resource->getList($offset, $limit, $filter, $sort);\n\n $this->View()->assign($result);\n $this->View()->assign('success', true);\n }", "public function listing();", "function index() {\n\t\t$this->show_list();\n\t}", "public function actionList() {\n $this->_getList();\n }", "public function listAction()\n {\n $model = $this->_getPhotoModel();\n $entries = $model->fetchEntries($this->_getParam('page', 1));\n\n $this->view->url = 'http://' . $this->_request->getHttpHost() . $this->_request->getBaseUrl(); \n $this->view->paginator = $entries;\n }", "public function index()\n {\n $items = Item::all();\n return ItemForShowResource::collection($items);\n }", "public function index()\n {\n return Resource::collection(($this->getModel())::paginate(10));\n }", "function index()\n\t{\n\t\t$this->_list();\n\t\t$this->display();\n\t}", "public function listingAction(){\n if (!LoginHelper::isAdmin()){\n Router::redirect('home', '<p class=\"alert alert-danger\">Unauthorized</p>');\n }\n $this->view->render('patient/list', Patient::all());\n }", "public function index()\n {\n //\n $list = $this->obj->all();\n\n return $this->render('index', compact('list'));\n }", "public function action_index()\n\t{\n\t\t$this->template->title = 'Resources';\n\t\t$this->view = View::factory('admin/resource/index');\n\t\t$this->template->scripts[] = 'media/js/jquery.tablesorter.min.js';\n\t\t$this->template->scripts[] = 'media/js/admin/resource.js';\n\t\t\n\t\t$resources = Sprig::factory('resource')->load(NULL, FALSE);\n\t\tif (!empty($resources))\n\t\t{\n\t\t\t$this->view->resources = $resources->as_array();\n\t\t}\n\t}", "function listing()\n\t\t{\n\t\t// en $this->_view->_listado para poder acceder a el desde la vista.\n\t\t\t$this->_view->_listado = $listado = $this->_instrumentoModel->getInstrumento();\n\t\t\t$this->_view->render('listing', '', '',$this->_sidebar_menu);\n\t\t}", "public function listAction()\n {\n $em = $this->getDoctrine()->getManager();\n \n $todos = $em->getRepository(Todo::class)->findAll();\n \n return $this->render('todo/index.html.twig', array(\n 'todos' => $todos,\n ));\n }", "public function index()\n\t{\n $this->authorize('list', Instance::class);\n\n\t\treturn $this->ok($this->repo->paginate($this->request->all()));\n\t}", "public function actionRestList() {\n\t $this->doRestList();\n\t}", "public function listing()\n\t{\n\t\t$hospitalID = $this->request->getSession()->read(\"hospital_id\") ? $this->request->getSession()->read(\"hospital_id\") : \"\";\n\t\t\n\t\t$patientMonitored = 1;\n\t\t$patientActive = 1;\n\t\t\n\t\t//GET ALL PATIENTS\n\t\t$patientsData = $this->Patients->allPatients($hospitalID,$patientMonitored,$patientActive);\n\t\t//GET ALL PATIENTS\n\t\t\n\t\t//echo \"<pre>\"; print_r($patientsData);die;\n\t\t$this->set(compact(\"patientsData\"));\n\t}", "public function listAction()\n {\n $htmlpage = '<!DOCTYPE html>\n<html>\n <head>\n <meta charset=\"UTF-8\">\n <title>todos list!</title>\n </head>\n <body>\n <h1>todos list</h1>\n <p>Here are all your todos:</p>\n <ul>';\n \n $em = $this->getDoctrine()->getManager();\n $todos = $em->getRepository(Todo::class)->findAll();\n foreach($todos as $todo) {\n $htmlpage .= '<li>\n <a href=\"/todo/'.$todo->getid().'\">'.$todo->getTitle().'</a></li>';\n }\n $htmlpage .= '</ul>';\n\n $htmlpage .= '</body></html>';\n \n return new Response(\n $htmlpage,\n Response::HTTP_OK,\n array('content-type' => 'text/html')\n );\n }", "public function index()\n {\n // Get Persons\n $person = Person::paginate(10);\n\n //Return collection of person as a resource\n return PersonResource::collection($person);\n }", "public function listAction() {\n\t\t$this->view->title = $this->translator->translate(\"Invoice list\");\n\t\t$this->view->description = $this->translator->translate(\"Here you can see all the invoices.\");\n\t\t$this->view->buttons = array(array(\"url\" => \"/admin/invoices/new/\", \"label\" => $this->translator->translate('New'), \"params\" => array('css' => null)));\r\n\t\t$this->datagrid->setConfig ( Invoices::grid() )->datagrid ();\n\t}", "public function listAll()\n\t{\n\t\t$this->render(self::PATH_VIEWS . '/list', [\n\t\t\t'pages' => $this->pagesDb->findAll('id', 'DESC'),\n\t\t]);\n\t}", "public function list()\n {\n // récupérer les données : toutes les catégories enregistrées\n $productList = Product::findAll();\n\n $this->show('product/list', [\n 'productList' => $productList\n ]);\n }", "public function index()\n {\n // CRUD -> Retrieve --> List\n // BREAD -> Browse Read Edit Add Delete\n // return Item::all();\n return view('list_items',compact('items'));\n }", "public function index()\n {\n // Get manufacturers\n $manufacturers = Manufacturer::orderBy('created_at', 'desc')->paginate(15);\n\n // Return collection of manufacturers as a resource\n return ManufacturerResource::collection($manufacturers);\n }", "public function index()\n {\n return ArtistResource::collection(Artist::orderBy('created_at', 'desc')->get());\n }", "public function indexAction() {\n\t\t$page = intval($this->getInput('page'));\n\t\t$perpage = $this->perpage;\n\t\t\n\t\tlist(,$files) = Lock_Service_FileType::getAllFileType();\n\t\t$data = array();\n\t\tforeach ($files as $key=>$value) {\n\t\t\t$data[$key]['id'] = $value['id'];\n\t\t\t$data[$key]['title'] = $value['name'];\n\t\t}\n\t\tlist($total, $filetype) = Lock_Service_FileType::getList($page, $perpage);\n\t\t$this->assign('filetype', $filetype);\n\t\t$this->assign('pager', Common::getPages($total, $page, $perpage, $this->actions['listUrl'].'/?'));\n\t\t$this->assign('data', json_encode($data));\n\t}", "public function listAction()\n {\n $qb = $this->getRepository()->queryAll();\n\n $view = new ImportListView;\n $view->imports = $qb->getQuery()->execute();\n\n return $this->templating->renderResponse('InfiniteImportBundle:Import:list.html.twig', array(\n 'data' => $view\n ));\n }", "public function index()\n\t{\n\t\t//Return model all()\n\t\t$instances = $this->decorator->getListingModels();\n\n\t\treturn View::make($this->listingView, array(\n\t\t\t'instances' => $instances,\n\t\t\t'controller' => get_class($this), \n\t\t\t'modelName' => class_basename(get_class($this->decorator->getModel())),\n\t\t\t'columns' => $this->getColumnsForInstances($instances),\n\t\t\t'editable' => $this->editable\n\t\t));\n\t}", "public function index()\n {\n return InfografiResources::collection(\n Infografi::orderBy('date', 'desc')->get()\n );\n }", "public function listAction()\n\t {\n\t\t\t$this->_forward('index');\n \n\t\t}", "public function index()\n {\n $this->list_view();\n }", "public function index()\n {\n $this->list_view();\n }", "public function index()\n {\n $this->list_view();\n }", "public function listAction()\n {\n $defaults = array(\n 'page' => null,\n 'order' => null,\n 'limit' => null,\n 'offset' => null,\n 'filter' => array(),\n );\n $body = $this->getRequest()->getBody();\n $options = $body + $defaults;\n\n // Process the options\n if (is_string($options['order'])) {\n $options['order'] = array_map('trim', explode(',', $options['order']));\n }\n if (is_string($options['page'])) {\n $options['page'] = (int)$options['page'];\n }\n if (is_string($options['limit'])) {\n $options['limit'] = (int)$options['limit'];\n }\n if (is_string($options['offset'])) {\n $options['offset'] = (int)$options['offset'];\n }\n $filter = $options['filter'];\n unset($options['filter']);\n\n $options = array_filter($options);\n\n return $this->getBinding()->find($filter, $options);\n }", "public function index()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Get the resources from the model */\n $resources = $this->resourcesList($this->model);\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.index\")) {\n $view = \"admin.{$this->name}.index\";\n } else {\n $view = 'admin.includes.actions.index';\n }\n\n /* Display a listing of the resources */\n return view($view)\n ->with('resources', $resources)\n ->with('module', $this->module);\n }", "public function index()\n\t{\n\t\t$data['lists'] = $this->mdl_student->get_all();\n\t\t$this->template->set('title', 'Student Hostel List');\n\t\t$this->template->load('template', 'contents', 'student_hostel/student_hostel_list', $data);\n\t}", "public function index()\n {\n $modules = Module::all();\n return Resource::collection($modules);\n }", "public function index()\n {\n // List all resources from user entity\n $users = User::all();\n\n return $this->showAll($users);\n }", "public function index()\n {\n // Get todos\n $todos = Todo::orderBy('created_at', 'desc')->paginate(3);\n\n // Return collection of articles as a resource\n return TodoResource::collection($todos);\n }", "public function index()\n {\n return Resources::collection(Checking::paginate());\n }", "public function index()\n {\n return CourseListResource::collection(\n Course::query()->withoutGlobalScope('publish')\n ->latest()->paginate()\n );\n }", "public function index()\n {\n $cars = Car::paginate(15);\n return CarResource::collection($cars);\n }", "public function index()\n {\n // Get articles\n $articles = Article::orderBy('created_at', 'desc')->paginate(5);\n\n // Return collection of articles as a resource\n return ArticleResource::collection($articles);\n }", "public function index()\n {\n $authors = Author::paginate(10);\n\n return AuthorResource::collection($authors);\n }", "public function index()\n {\n //Get Books\n $books = Book::paginate(10);\n \n if ($books) {\n return (BookResource::collection($books))->additional([\n 'status_code' => 200,\n 'status' => 'success',\n ]);\n } else {\n return (BookResource::collection([]))->additional([\n 'status_code' => 200,\n 'status' => 'success',\n ]);\n }\n return view('index')->with('data', $books);\n }", "public function view(){\n\t\t$this->buildListing();\n\t}", "public function index()\n {\n $books = Book::latest()\n ->paginate(20);\n\n return BookResource::collection($books);\n }", "public function index()\n {\n $listing = Listing::orderBy('id', 'desc')->paginate(10);\n return view('listings.index')->withListings($listing);\n }", "public function listAction()\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 }", "public function index()\n {\n $services = $this->serviceRepository->paginate();\n\n return ServiceResource::collection($services);\n }", "public function index()\n {\n $resources = ResourceManagement::paginate(5);\n $users = User::get();\n\n return view('resources-mgmt/index', ['resources' => $resources, 'users' => $users]);\n }", "public function index()\n {\n $catalogs = Catalog::where('status', '=', Catalog::PUBLICADO)\n ->orderBy('id', 'DESC')->get();\n \n $data = CatalogResource::collection($catalogs);\n\n return [\n 'items' => $data,\n 'mensaje' => ''\n ];\n }", "public function listAction(){\n // In a controller this can be:\n // $this->request->getQuery('page', 'int'); // GET\n $currentPage = $this->request->getPost('pageindex', 'int'); // POST\n $pageNum = ($currentPage == null) ? 1 : $currentPage;\n\n // The data set to paginate\n $message = new Notice();\n $results = $message->getMsg4Admin();\n\n // Create a Model paginator, show 10 rows by page starting from $currentPage\n $paginator = new PaginatorArray(\n array(\n \"data\" => $results,\n \"limit\" => 10,\n \"page\" => $pageNum\n )\n );\n\n // Get the paginated results\n $page = $paginator->getPaginate();\n\n return $this->response->setJsonContent($page);\n\n }", "public function list()\n {\n try {\n return $this->success($this->service->list());\n } catch (\\Exception $exception) {\n return $this->error($exception->getMessage());\n }\n }", "public function index()\n {\n return $this->sendResponse(CrisisResource::collection(Crisis::paginate(10)), 'Data fetched successfully');\n }", "public function index()\n\t{\n\t\t$%Alias = new %Model();\n\t\t$params = array();\n\t\t\n\t\t$Paginator = new Paginator( $%Alias->findSize( $params ), $this->getLimit(), $this->getPage() );\n\t\t$this->getView()->set( '%Aliass', $%Alias->findList( $params, 'Id desc', $this->getOffset(), $this->getLimit() ) );\n\t\t$this->getView()->set( 'Paginator', $Paginator );\n\t\treturn $this->getView()->render();\n\t}", "public function listAction() {}", "public function index()\n {\n\n return RecipeResource::collection(Recipe::all());\n }", "public function index()\n {\n $this->indexPage('list-product', 'List Product');\n }", "public function listAction()\n {\t\n\t\t$this->removeSession();\n\t\t$this->verifySessionRights();\n\t\t$this->setActivity(\"List view\");\n $em = $this->getDoctrine()->getManager();\n $oRepClient = $em->getRepository('BoAdminBundle:Client');\n\t\t$nb_tc = $oRepClient->getTotal();\n\t\t//get page\n\t\t$page = $this->get('session')->get('page');\n\t\tif($page==null){\n\t\t\t$page=1;\n\t\t\t$this->get('session')->set('page',1);\n\t\t}\n\t\t//get number line per page\n\t\t$nb_cpp = $em->getRepository('BoAdminBundle:Param')->getParam(\"display_list_page_number\",1);\n\t\t$nb_pages = ceil($nb_tc/$nb_cpp);\n\t\t$offset = $page>0?($page-1) * $nb_cpp:0;\n\t\t$clients = $em->getRepository('BoAdminBundle:Client')->findBy(array(),array('id' => 'desc'),$nb_cpp,$offset);\n $form = $this->createForm('Bo\\AdminBundle\\Form\\ClientType', new Client());\n return $this->render('client/index.html.twig', array(\n 'clients' => $clients,\n\t\t\t'page' => $page, // forward current page to view,\n\t\t\t'nb_pages' => $nb_pages, //total number page,\n 'form' => $form->createView(),\n\t\t\t'total'=>$nb_tc, // record number.\n\t\t\t'nb_cpp' => $nb_cpp,// line's number to display\n\t\t\t'pm'=>\"contracts\",\n\t\t\t'sm'=>\"client\",\n ));\n }", "public function index()\n {\n return AcResource::collection(Ac::latest()->paginate()); //\n }", "public function executeList()\n {\n $this->setTemplate('list');\n }", "public function indexAction()\n {\n $books = Book::getAll();\n\n View::renderTemplate('Books/index.html', [\n 'books' => $books\n ]);\n }", "function listing() {\r\n\r\n }", "public function listar() {\n $rs = $this->model->listar();\n\n echo $this->toJson($rs);\n }", "public function index()\n {\n return BookResource::collection(Book::orderby('id')->get());\n }", "public function doRestList()\n {\n $this->outputHelper( \n 'Records Retrieved Successfully', \n $this->getModel()->with($this->nestedRelations)->filter($this->restFilter)->orderBy($this->restSort)->limit($this->restLimit)->offset($this->restOffset)->findAll(),\n $this->getModel()->with($this->nestedRelations)->filter($this->restFilter)->count()\n );\n\t}", "public function index()\n {\n $client = Client::paginate();\n return ClientResource::collection($client);\n }", "public function index()\n {\n return TagResource::collection(\n Tag::orderBy('name', 'ASC')->paginate(request('per_page', 10))\n );\n }", "public function _index(){\n\t $this->_list();\n\t}", "public function index()\n\t{\n\t\t$data['lists'] = $this->gallery_mdl->get_all();\n\t\t$this->template->set('title', 'Gallery');\n\t\t$this->template->render('template', 'list', $data);\n\t}", "function drush_restapi_list() {\n\n $resources = restapi_get_resources();\n $last_module = NULL;\n $rows = [\n [dt('Module'), dt('Path'), dt('Class')],\n ];\n\n foreach($resources as $resource) {\n if ($last_module != $resource->getModule()) {\n $module = $last_module = $resource->getModule();\n }\n else {\n $module = '';\n }\n $rows[] = [$module, $resource->getPath(), $resource->getClass()];\n }\n\n drush_print_table($rows, TRUE);\n drush_log(dt('Displaying !count total resources', [\n '!count' => count($resources),\n ]), 'ok');\n\n}", "public function index()\n {\n $this->booklist();\n }", "public function index()\n {\n //\n $accounts = accounts::paginate(15);\n\n //return the collection of employees as a resource\n return accountResource::collection($accounts);\n\n\n }", "public function index()\n {\n $items = Item::all();\n return view('items::list_items',compact('items'));\n }", "public function index()\n {\n // Get houses\n $houses = House::orderBy('created_at', 'desc')->paginate(self::PAGINATE);\n \n // Return collection of houses\n \n return HouseResource::collection($houses);\n }", "public function index()\n {\n $products = Product::paginate(6);\n return ProductResource::collection($products);\n }", "public function index() {\n $this->template->allFoundItems = Found::showAll();\n $this->template->display( 'index.html.php' );\n }", "public function indexAction() {\n $this->_forward('list');\n }", "public function index()\n {\n $data = Productcategory::paginate(10);\n\t\treturn ProductcategoryResource::Collection($data);\n }", "public function index()\n {\n return SongResource::collection(\\App\\Song::orderBy('created_at', 'desc')->get());\n }", "public function ListView()\n\t{\n\t\t\n\t\t// Requer permissão de acesso\n\t\t$this->RequirePermission(Usuario::$P_ADMIN,\n\t\t\t\t'SecureExample.LoginForm',\n\t\t\t\t'Autentique-se para acessar esta página',\n\t\t\t\t'Você não possui permissão para acessar essa página ou sua sessão expirou');\n\t\t\n\t\t//$usuario = Controller::GetCurrentUser();\n\t\t//$this->Assign('usuario',$usuario);\n\t\t$this->Render();\n\t}", "public function index () {\n permiss ( 'role.list' );\n\n $data = $this->entity\n ->orderBy('created_at', 'desc')->get();\n\n return new ModelResource($data);\n }", "public function showResources()\n {\n $resources = Resource::get();\n return view('resources', compact('resources'));\n }", "public function index()\n {\n //get articless\n $articles = Article::paginate(15);\n\n //Return collection of article has a resource\n return ArticleResource::collection($articles);\n\n }", "public function actionList() {\n header(\"Content-type: application/json\");\n $verb = $_SERVER[\"REQUEST_METHOD\"];\n\n if ($verb === 'GET') {\n echo \"{\\\"data\\\":\" . CJSON::encode(Donneur::model()->findAll()) . \"}\";\n } else if ($verb == 'POST') {\n if (Donneur::model()->exists('id' === $_POST['id'])) {\n $this->actionListUpdate($_POST);\n } else {\n $this->actionListPost();\n }\n } else if ($verb == 'DELETE') {\n $this->actionListDelete();\n }\n }", "public function list()\n {\n return $this->http->request(HttpMethods::GET, $this->endpoint);\n }", "public function indexAction(){\n $data = array(\n 'collection' => $this->model->getCollection(),\n \n ); \t\n return $this->getView($data);\n }", "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $entities = $em->getRepository('DiverPriceLisrBundle:Items')->findAll();\n\n return $this->render('DiverPriceLisrBundle:Items:index.html.twig', array(\n 'entities' => $entities,\n ));\n }", "public function actionIndex()\n {\n $dataProvider = new ActiveDataProvider([\n 'query' => Slaves::find(),\n ]);\n\n return $this->render('index', [\n 'dataProvider' => $dataProvider,\n ]);\n }", "public function listAction() {\n\t\t// Recogemos el repositorio\n\t\t$repository = $this->getDoctrine() ->getRepository('AppBundle:Product');\n\t\n\t\t// Recuperamos todos los productos.\n\t\t$products = $repository->findAll();\n\t\t// Pasamos a la plantilla el aray products\n\t\treturn $this->render('product/listActionProduct.html.twig', array( 'products' => $products));\n\t\n\t}", "public function listAction()\n\t {\n\t\t$model = $this->_getModel();\n\t\t$result = $model->getLayouts();\t\n\t\t$page = (int)($this->_request->getParam('page')); \n\t\tif(count($result) > 0)\n\t\t{ \n\t\t\tGlobals::doPaging($result, $page, $this->view);\n\t\t}\n\t\t\t\t\n\t\t$this->view->page = $page;\n\t }", "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 $model->u_cms_album_id = $_GET['album'];\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 // datas\n $datas = $dataProvider->getData();\n\n // related datas\n $relatedDatas = $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 $filtersDatas = array();\n if (isset($_GET[$this->_model])) {\n $filtersDatas[$this->_model] = $_GET[$this->_model];\n }\n if (isset($_GET[$sort->sortVar])) {\n $filtersDatas[$sort->sortVar] = $_GET[$sort->sortVar];\n }\n\n $jsonParams = array(\n 'filters' => http_build_query($filtersDatas)\n );\n }\n\n $this->dynamicRender(\n $template,\n array(\n 'dataView' => new $this->crudComponents['listDataView'](\n $datas, $relatedDatas, $model, $sort, $pagination, $this\n )\n ),\n $jsonParams\n );\n }", "public function index()\n {\n return view('listings.index')->with('listings', Listing::all());\n }", "public function get_index()\n\t{\n\t\t$pages = Page::recent_available()->paginate(30);\n\t\t$table = Cello\\Presenter\\Page::table($pages);\n\t\t$data = array(\n\t\t\t'eloquent' => $pages,\n\t\t\t'table' => $table,\n\t\t);\n\n\t\tSite::set('title', __('cello::title.pages.list'));\n\n\t\treturn View::make('cello::api.resources.index', $data);\n\t}", "public function index()\n {\n return ProductResource::collection(Product::latest()->paginate(10));\n }", "public function index()\n {\n $category = GalleryCategory::paginate(15);\n\n // return collection of category as a resource.\n return Resource::collection($category);\n }", "public function index()\n {\n //\n $news = News::latest()->paginate(18);\n\n return NewsResource::collection($news);\n }", "public function indexAction() {\n\t\t$list_info = Zend_Registry::get('list_info');\n if (!Engine_Api::_()->core()->hasSubject('list_listing')) {\n return $this->setNoRender();\n }\n \n $this->view->expiry_setting = Engine_Api::_()->list()->expirySettings();\n\n //GET SUBJECT\n $this->view->list = $list = Engine_Api::_()->core()->getSubject('list_listing');\n\n\t\t//GET CATEGORY TABLE\n\t\t$this->view->tableCategory = Engine_Api::_()->getDbTable('categories', 'list');\n\n //GET CATEGORIES NAME\n\t\t$this->view->category_name = $this->view->subcategory_name = $this->view->subsubcategory_name = '';\n\n\t\tif(!empty($list->category_id)) {\n\t\t\tif($this->view->tableCategory->getCategory($list->category_id))\n\t\t\t$this->view->category_name = $this->view->tableCategory->getCategory($list->category_id)->category_name;\n\n\t\t\tif(!empty($list->subcategory_id)) {\n\t\t\t\tif($this->view->tableCategory->getCategory($list->subcategory_id))\n\t\t\t\t$this->view->subcategory_name = $this->view->tableCategory->getCategory($list->subcategory_id)->category_name;\n\n\t\t\t\tif(!empty($list->subsubcategory_id)) {\n\t\t\t\t\tif($this->view->tableCategory->getCategory($list->subsubcategory_id))\n\t\t\t\t\t$this->view->subsubcategory_name = $this->view->tableCategory->getCategory($list->subsubcategory_id)->category_name;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n //GET LISTING TAGS\n $this->view->listTags = $list->tags()->getTagMaps();\n\n\t\t//GET OTHER DETAILS\n\t\t$this->view->list_description = Zend_Registry::get('list_descriptions');\n $this->view->addHelperPath(APPLICATION_PATH . '/application/modules/Fields/View/Helper', 'Fields_View_Helper');\n $this->view->fieldStructure = Engine_Api::_()->fields()->getFieldsStructurePartial($list);\n\t\tif(empty($list_info)){ return $this->setNoRender(); }\n }", "public function index()\n {\n return $this->service->fetchResources(Author::class, 'authors');\n }", "public function index()\n {\n return view('admin.resources.index');\n }", "public function doRestList() {\n\t\t$this->outputHelper ( 'Collections Retrieved Successfully', $this->getModel ()->with ( $this->nestedRelations )->filter ( $this->restFilter )->orderBy ( $this->restSort )->limit ( $this->restLimit )->offset ( $this->restOffset )->findAll (), $this->getModel ()->with ( $this->nestedRelations )->filter ( $this->restFilter )->count () );\n\t}" ]
[ "0.7446777", "0.736227", "0.73005503", "0.72478926", "0.71631265", "0.71489686", "0.7131636", "0.7105969", "0.71029514", "0.7101372", "0.70508176", "0.6995128", "0.69890636", "0.6934895", "0.6900203", "0.6899281", "0.6891734", "0.6887235", "0.68670005", "0.6849741", "0.6830523", "0.6802689", "0.6797", "0.67957735", "0.67871135", "0.6760129", "0.67427456", "0.6730486", "0.67272323", "0.67255723", "0.67255723", "0.67255723", "0.67177945", "0.6707866", "0.6706713", "0.6704375", "0.6664782", "0.6662871", "0.6660302", "0.6659404", "0.6656656", "0.6653517", "0.6647965", "0.6620322", "0.66185474", "0.6618499", "0.6606105", "0.6600617", "0.65996987", "0.6594775", "0.6587389", "0.6585109", "0.6581641", "0.6581017", "0.6577157", "0.65747666", "0.6572513", "0.65721947", "0.6570553", "0.65646994", "0.6563556", "0.6554194", "0.65529937", "0.65460825", "0.65368485", "0.653429", "0.65328294", "0.6526759", "0.6526695", "0.6526284", "0.65191334", "0.65183175", "0.65174305", "0.651703", "0.65141153", "0.6507088", "0.65061647", "0.6504046", "0.64942145", "0.6491893", "0.64883405", "0.6486392", "0.6485077", "0.64846045", "0.6478858", "0.64756656", "0.64726377", "0.6471126", "0.64701074", "0.6467418", "0.6462195", "0.64618355", "0.6459199", "0.6457831", "0.6454631", "0.64533997", "0.6451915", "0.6450861", "0.6449301", "0.64492667", "0.64469045" ]
0.0
-1
Display a listing of the resource.
public function updateTag($id, BeTagValidationRequest $request) { $updates = array( 'name' => $request->get('name'), 'name_alias' => SimpleClass::trans_word($request->get('name')), 'status' => $request->get('name'), 'created_by' => 'Hungsama', 'updated_by' => '', 'created_at' => time(), 'updated_at' => 0 ); $data['action_controller'] = 'update_tag'; BeTagModel::find($id)->update($updates); Session::flash('success', SimpleClass::success_notice('Update a tag is successfully')); return redirect()->route('be-detail-tag.show', $id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function indexAction()\n {\n $limit = $this->Request()->getParam('limit', 1000);\n $offset = $this->Request()->getParam('start', 0);\n $sort = $this->Request()->getParam('sort', array());\n $filter = $this->Request()->getParam('filter', array());\n\n $result = $this->resource->getList($offset, $limit, $filter, $sort);\n\n $this->View()->assign($result);\n $this->View()->assign('success', true);\n }", "public function listing();", "function index() {\n\t\t$this->show_list();\n\t}", "public function actionList() {\n $this->_getList();\n }", "public function listAction()\n {\n $model = $this->_getPhotoModel();\n $entries = $model->fetchEntries($this->_getParam('page', 1));\n\n $this->view->url = 'http://' . $this->_request->getHttpHost() . $this->_request->getBaseUrl(); \n $this->view->paginator = $entries;\n }", "public function index()\n {\n $items = Item::all();\n return ItemForShowResource::collection($items);\n }", "public function index()\n {\n return Resource::collection(($this->getModel())::paginate(10));\n }", "function index()\n\t{\n\t\t$this->_list();\n\t\t$this->display();\n\t}", "public function listingAction(){\n if (!LoginHelper::isAdmin()){\n Router::redirect('home', '<p class=\"alert alert-danger\">Unauthorized</p>');\n }\n $this->view->render('patient/list', Patient::all());\n }", "public function index()\n {\n //\n $list = $this->obj->all();\n\n return $this->render('index', compact('list'));\n }", "public function action_index()\n\t{\n\t\t$this->template->title = 'Resources';\n\t\t$this->view = View::factory('admin/resource/index');\n\t\t$this->template->scripts[] = 'media/js/jquery.tablesorter.min.js';\n\t\t$this->template->scripts[] = 'media/js/admin/resource.js';\n\t\t\n\t\t$resources = Sprig::factory('resource')->load(NULL, FALSE);\n\t\tif (!empty($resources))\n\t\t{\n\t\t\t$this->view->resources = $resources->as_array();\n\t\t}\n\t}", "function listing()\n\t\t{\n\t\t// en $this->_view->_listado para poder acceder a el desde la vista.\n\t\t\t$this->_view->_listado = $listado = $this->_instrumentoModel->getInstrumento();\n\t\t\t$this->_view->render('listing', '', '',$this->_sidebar_menu);\n\t\t}", "public function listAction()\n {\n $em = $this->getDoctrine()->getManager();\n \n $todos = $em->getRepository(Todo::class)->findAll();\n \n return $this->render('todo/index.html.twig', array(\n 'todos' => $todos,\n ));\n }", "public function index()\n\t{\n $this->authorize('list', Instance::class);\n\n\t\treturn $this->ok($this->repo->paginate($this->request->all()));\n\t}", "public function actionRestList() {\n\t $this->doRestList();\n\t}", "public function listing()\n\t{\n\t\t$hospitalID = $this->request->getSession()->read(\"hospital_id\") ? $this->request->getSession()->read(\"hospital_id\") : \"\";\n\t\t\n\t\t$patientMonitored = 1;\n\t\t$patientActive = 1;\n\t\t\n\t\t//GET ALL PATIENTS\n\t\t$patientsData = $this->Patients->allPatients($hospitalID,$patientMonitored,$patientActive);\n\t\t//GET ALL PATIENTS\n\t\t\n\t\t//echo \"<pre>\"; print_r($patientsData);die;\n\t\t$this->set(compact(\"patientsData\"));\n\t}", "public function listAction()\n {\n $htmlpage = '<!DOCTYPE html>\n<html>\n <head>\n <meta charset=\"UTF-8\">\n <title>todos list!</title>\n </head>\n <body>\n <h1>todos list</h1>\n <p>Here are all your todos:</p>\n <ul>';\n \n $em = $this->getDoctrine()->getManager();\n $todos = $em->getRepository(Todo::class)->findAll();\n foreach($todos as $todo) {\n $htmlpage .= '<li>\n <a href=\"/todo/'.$todo->getid().'\">'.$todo->getTitle().'</a></li>';\n }\n $htmlpage .= '</ul>';\n\n $htmlpage .= '</body></html>';\n \n return new Response(\n $htmlpage,\n Response::HTTP_OK,\n array('content-type' => 'text/html')\n );\n }", "public function index()\n {\n // Get Persons\n $person = Person::paginate(10);\n\n //Return collection of person as a resource\n return PersonResource::collection($person);\n }", "public function listAction() {\n\t\t$this->view->title = $this->translator->translate(\"Invoice list\");\n\t\t$this->view->description = $this->translator->translate(\"Here you can see all the invoices.\");\n\t\t$this->view->buttons = array(array(\"url\" => \"/admin/invoices/new/\", \"label\" => $this->translator->translate('New'), \"params\" => array('css' => null)));\r\n\t\t$this->datagrid->setConfig ( Invoices::grid() )->datagrid ();\n\t}", "public function listAll()\n\t{\n\t\t$this->render(self::PATH_VIEWS . '/list', [\n\t\t\t'pages' => $this->pagesDb->findAll('id', 'DESC'),\n\t\t]);\n\t}", "public function list()\n {\n // récupérer les données : toutes les catégories enregistrées\n $productList = Product::findAll();\n\n $this->show('product/list', [\n 'productList' => $productList\n ]);\n }", "public function index()\n {\n // CRUD -> Retrieve --> List\n // BREAD -> Browse Read Edit Add Delete\n // return Item::all();\n return view('list_items',compact('items'));\n }", "public function index()\n {\n // Get manufacturers\n $manufacturers = Manufacturer::orderBy('created_at', 'desc')->paginate(15);\n\n // Return collection of manufacturers as a resource\n return ManufacturerResource::collection($manufacturers);\n }", "public function index()\n {\n return ArtistResource::collection(Artist::orderBy('created_at', 'desc')->get());\n }", "public function indexAction() {\n\t\t$page = intval($this->getInput('page'));\n\t\t$perpage = $this->perpage;\n\t\t\n\t\tlist(,$files) = Lock_Service_FileType::getAllFileType();\n\t\t$data = array();\n\t\tforeach ($files as $key=>$value) {\n\t\t\t$data[$key]['id'] = $value['id'];\n\t\t\t$data[$key]['title'] = $value['name'];\n\t\t}\n\t\tlist($total, $filetype) = Lock_Service_FileType::getList($page, $perpage);\n\t\t$this->assign('filetype', $filetype);\n\t\t$this->assign('pager', Common::getPages($total, $page, $perpage, $this->actions['listUrl'].'/?'));\n\t\t$this->assign('data', json_encode($data));\n\t}", "public function listAction()\n {\n $qb = $this->getRepository()->queryAll();\n\n $view = new ImportListView;\n $view->imports = $qb->getQuery()->execute();\n\n return $this->templating->renderResponse('InfiniteImportBundle:Import:list.html.twig', array(\n 'data' => $view\n ));\n }", "public function index()\n\t{\n\t\t//Return model all()\n\t\t$instances = $this->decorator->getListingModels();\n\n\t\treturn View::make($this->listingView, array(\n\t\t\t'instances' => $instances,\n\t\t\t'controller' => get_class($this), \n\t\t\t'modelName' => class_basename(get_class($this->decorator->getModel())),\n\t\t\t'columns' => $this->getColumnsForInstances($instances),\n\t\t\t'editable' => $this->editable\n\t\t));\n\t}", "public function index()\n {\n return InfografiResources::collection(\n Infografi::orderBy('date', 'desc')->get()\n );\n }", "public function listAction()\n\t {\n\t\t\t$this->_forward('index');\n \n\t\t}", "public function index()\n {\n $this->list_view();\n }", "public function index()\n {\n $this->list_view();\n }", "public function index()\n {\n $this->list_view();\n }", "public function listAction()\n {\n $defaults = array(\n 'page' => null,\n 'order' => null,\n 'limit' => null,\n 'offset' => null,\n 'filter' => array(),\n );\n $body = $this->getRequest()->getBody();\n $options = $body + $defaults;\n\n // Process the options\n if (is_string($options['order'])) {\n $options['order'] = array_map('trim', explode(',', $options['order']));\n }\n if (is_string($options['page'])) {\n $options['page'] = (int)$options['page'];\n }\n if (is_string($options['limit'])) {\n $options['limit'] = (int)$options['limit'];\n }\n if (is_string($options['offset'])) {\n $options['offset'] = (int)$options['offset'];\n }\n $filter = $options['filter'];\n unset($options['filter']);\n\n $options = array_filter($options);\n\n return $this->getBinding()->find($filter, $options);\n }", "public function index()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Get the resources from the model */\n $resources = $this->resourcesList($this->model);\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.index\")) {\n $view = \"admin.{$this->name}.index\";\n } else {\n $view = 'admin.includes.actions.index';\n }\n\n /* Display a listing of the resources */\n return view($view)\n ->with('resources', $resources)\n ->with('module', $this->module);\n }", "public function index()\n\t{\n\t\t$data['lists'] = $this->mdl_student->get_all();\n\t\t$this->template->set('title', 'Student Hostel List');\n\t\t$this->template->load('template', 'contents', 'student_hostel/student_hostel_list', $data);\n\t}", "public function index()\n {\n $modules = Module::all();\n return Resource::collection($modules);\n }", "public function index()\n {\n // List all resources from user entity\n $users = User::all();\n\n return $this->showAll($users);\n }", "public function index()\n {\n // Get todos\n $todos = Todo::orderBy('created_at', 'desc')->paginate(3);\n\n // Return collection of articles as a resource\n return TodoResource::collection($todos);\n }", "public function index()\n {\n return Resources::collection(Checking::paginate());\n }", "public function index()\n {\n return CourseListResource::collection(\n Course::query()->withoutGlobalScope('publish')\n ->latest()->paginate()\n );\n }", "public function index()\n {\n $cars = Car::paginate(15);\n return CarResource::collection($cars);\n }", "public function index()\n {\n // Get articles\n $articles = Article::orderBy('created_at', 'desc')->paginate(5);\n\n // Return collection of articles as a resource\n return ArticleResource::collection($articles);\n }", "public function index()\n {\n $authors = Author::paginate(10);\n\n return AuthorResource::collection($authors);\n }", "public function index()\n {\n //Get Books\n $books = Book::paginate(10);\n \n if ($books) {\n return (BookResource::collection($books))->additional([\n 'status_code' => 200,\n 'status' => 'success',\n ]);\n } else {\n return (BookResource::collection([]))->additional([\n 'status_code' => 200,\n 'status' => 'success',\n ]);\n }\n return view('index')->with('data', $books);\n }", "public function view(){\n\t\t$this->buildListing();\n\t}", "public function index()\n {\n $books = Book::latest()\n ->paginate(20);\n\n return BookResource::collection($books);\n }", "public function index()\n {\n $listing = Listing::orderBy('id', 'desc')->paginate(10);\n return view('listings.index')->withListings($listing);\n }", "public function listAction()\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 }", "public function index()\n {\n $services = $this->serviceRepository->paginate();\n\n return ServiceResource::collection($services);\n }", "public function index()\n {\n $resources = ResourceManagement::paginate(5);\n $users = User::get();\n\n return view('resources-mgmt/index', ['resources' => $resources, 'users' => $users]);\n }", "public function index()\n {\n $catalogs = Catalog::where('status', '=', Catalog::PUBLICADO)\n ->orderBy('id', 'DESC')->get();\n \n $data = CatalogResource::collection($catalogs);\n\n return [\n 'items' => $data,\n 'mensaje' => ''\n ];\n }", "public function listAction(){\n // In a controller this can be:\n // $this->request->getQuery('page', 'int'); // GET\n $currentPage = $this->request->getPost('pageindex', 'int'); // POST\n $pageNum = ($currentPage == null) ? 1 : $currentPage;\n\n // The data set to paginate\n $message = new Notice();\n $results = $message->getMsg4Admin();\n\n // Create a Model paginator, show 10 rows by page starting from $currentPage\n $paginator = new PaginatorArray(\n array(\n \"data\" => $results,\n \"limit\" => 10,\n \"page\" => $pageNum\n )\n );\n\n // Get the paginated results\n $page = $paginator->getPaginate();\n\n return $this->response->setJsonContent($page);\n\n }", "public function list()\n {\n try {\n return $this->success($this->service->list());\n } catch (\\Exception $exception) {\n return $this->error($exception->getMessage());\n }\n }", "public function index()\n {\n return $this->sendResponse(CrisisResource::collection(Crisis::paginate(10)), 'Data fetched successfully');\n }", "public function index()\n\t{\n\t\t$%Alias = new %Model();\n\t\t$params = array();\n\t\t\n\t\t$Paginator = new Paginator( $%Alias->findSize( $params ), $this->getLimit(), $this->getPage() );\n\t\t$this->getView()->set( '%Aliass', $%Alias->findList( $params, 'Id desc', $this->getOffset(), $this->getLimit() ) );\n\t\t$this->getView()->set( 'Paginator', $Paginator );\n\t\treturn $this->getView()->render();\n\t}", "public function listAction() {}", "public function index()\n {\n\n return RecipeResource::collection(Recipe::all());\n }", "public function index()\n {\n $this->indexPage('list-product', 'List Product');\n }", "public function listAction()\n {\t\n\t\t$this->removeSession();\n\t\t$this->verifySessionRights();\n\t\t$this->setActivity(\"List view\");\n $em = $this->getDoctrine()->getManager();\n $oRepClient = $em->getRepository('BoAdminBundle:Client');\n\t\t$nb_tc = $oRepClient->getTotal();\n\t\t//get page\n\t\t$page = $this->get('session')->get('page');\n\t\tif($page==null){\n\t\t\t$page=1;\n\t\t\t$this->get('session')->set('page',1);\n\t\t}\n\t\t//get number line per page\n\t\t$nb_cpp = $em->getRepository('BoAdminBundle:Param')->getParam(\"display_list_page_number\",1);\n\t\t$nb_pages = ceil($nb_tc/$nb_cpp);\n\t\t$offset = $page>0?($page-1) * $nb_cpp:0;\n\t\t$clients = $em->getRepository('BoAdminBundle:Client')->findBy(array(),array('id' => 'desc'),$nb_cpp,$offset);\n $form = $this->createForm('Bo\\AdminBundle\\Form\\ClientType', new Client());\n return $this->render('client/index.html.twig', array(\n 'clients' => $clients,\n\t\t\t'page' => $page, // forward current page to view,\n\t\t\t'nb_pages' => $nb_pages, //total number page,\n 'form' => $form->createView(),\n\t\t\t'total'=>$nb_tc, // record number.\n\t\t\t'nb_cpp' => $nb_cpp,// line's number to display\n\t\t\t'pm'=>\"contracts\",\n\t\t\t'sm'=>\"client\",\n ));\n }", "public function index()\n {\n return AcResource::collection(Ac::latest()->paginate()); //\n }", "public function executeList()\n {\n $this->setTemplate('list');\n }", "public function indexAction()\n {\n $books = Book::getAll();\n\n View::renderTemplate('Books/index.html', [\n 'books' => $books\n ]);\n }", "function listing() {\r\n\r\n }", "public function listar() {\n $rs = $this->model->listar();\n\n echo $this->toJson($rs);\n }", "public function index()\n {\n return BookResource::collection(Book::orderby('id')->get());\n }", "public function doRestList()\n {\n $this->outputHelper( \n 'Records Retrieved Successfully', \n $this->getModel()->with($this->nestedRelations)->filter($this->restFilter)->orderBy($this->restSort)->limit($this->restLimit)->offset($this->restOffset)->findAll(),\n $this->getModel()->with($this->nestedRelations)->filter($this->restFilter)->count()\n );\n\t}", "public function index()\n {\n $client = Client::paginate();\n return ClientResource::collection($client);\n }", "public function index()\n {\n return TagResource::collection(\n Tag::orderBy('name', 'ASC')->paginate(request('per_page', 10))\n );\n }", "public function _index(){\n\t $this->_list();\n\t}", "public function index()\n\t{\n\t\t$data['lists'] = $this->gallery_mdl->get_all();\n\t\t$this->template->set('title', 'Gallery');\n\t\t$this->template->render('template', 'list', $data);\n\t}", "function drush_restapi_list() {\n\n $resources = restapi_get_resources();\n $last_module = NULL;\n $rows = [\n [dt('Module'), dt('Path'), dt('Class')],\n ];\n\n foreach($resources as $resource) {\n if ($last_module != $resource->getModule()) {\n $module = $last_module = $resource->getModule();\n }\n else {\n $module = '';\n }\n $rows[] = [$module, $resource->getPath(), $resource->getClass()];\n }\n\n drush_print_table($rows, TRUE);\n drush_log(dt('Displaying !count total resources', [\n '!count' => count($resources),\n ]), 'ok');\n\n}", "public function index()\n {\n $this->booklist();\n }", "public function index()\n {\n //\n $accounts = accounts::paginate(15);\n\n //return the collection of employees as a resource\n return accountResource::collection($accounts);\n\n\n }", "public function index()\n {\n $items = Item::all();\n return view('items::list_items',compact('items'));\n }", "public function index()\n {\n // Get houses\n $houses = House::orderBy('created_at', 'desc')->paginate(self::PAGINATE);\n \n // Return collection of houses\n \n return HouseResource::collection($houses);\n }", "public function index()\n {\n $products = Product::paginate(6);\n return ProductResource::collection($products);\n }", "public function index() {\n $this->template->allFoundItems = Found::showAll();\n $this->template->display( 'index.html.php' );\n }", "public function indexAction() {\n $this->_forward('list');\n }", "public function index()\n {\n $data = Productcategory::paginate(10);\n\t\treturn ProductcategoryResource::Collection($data);\n }", "public function index()\n {\n return SongResource::collection(\\App\\Song::orderBy('created_at', 'desc')->get());\n }", "public function ListView()\n\t{\n\t\t\n\t\t// Requer permissão de acesso\n\t\t$this->RequirePermission(Usuario::$P_ADMIN,\n\t\t\t\t'SecureExample.LoginForm',\n\t\t\t\t'Autentique-se para acessar esta página',\n\t\t\t\t'Você não possui permissão para acessar essa página ou sua sessão expirou');\n\t\t\n\t\t//$usuario = Controller::GetCurrentUser();\n\t\t//$this->Assign('usuario',$usuario);\n\t\t$this->Render();\n\t}", "public function index () {\n permiss ( 'role.list' );\n\n $data = $this->entity\n ->orderBy('created_at', 'desc')->get();\n\n return new ModelResource($data);\n }", "public function showResources()\n {\n $resources = Resource::get();\n return view('resources', compact('resources'));\n }", "public function index()\n {\n //get articless\n $articles = Article::paginate(15);\n\n //Return collection of article has a resource\n return ArticleResource::collection($articles);\n\n }", "public function actionList() {\n header(\"Content-type: application/json\");\n $verb = $_SERVER[\"REQUEST_METHOD\"];\n\n if ($verb === 'GET') {\n echo \"{\\\"data\\\":\" . CJSON::encode(Donneur::model()->findAll()) . \"}\";\n } else if ($verb == 'POST') {\n if (Donneur::model()->exists('id' === $_POST['id'])) {\n $this->actionListUpdate($_POST);\n } else {\n $this->actionListPost();\n }\n } else if ($verb == 'DELETE') {\n $this->actionListDelete();\n }\n }", "public function list()\n {\n return $this->http->request(HttpMethods::GET, $this->endpoint);\n }", "public function indexAction(){\n $data = array(\n 'collection' => $this->model->getCollection(),\n \n ); \t\n return $this->getView($data);\n }", "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $entities = $em->getRepository('DiverPriceLisrBundle:Items')->findAll();\n\n return $this->render('DiverPriceLisrBundle:Items:index.html.twig', array(\n 'entities' => $entities,\n ));\n }", "public function actionIndex()\n {\n $dataProvider = new ActiveDataProvider([\n 'query' => Slaves::find(),\n ]);\n\n return $this->render('index', [\n 'dataProvider' => $dataProvider,\n ]);\n }", "public function listAction() {\n\t\t// Recogemos el repositorio\n\t\t$repository = $this->getDoctrine() ->getRepository('AppBundle:Product');\n\t\n\t\t// Recuperamos todos los productos.\n\t\t$products = $repository->findAll();\n\t\t// Pasamos a la plantilla el aray products\n\t\treturn $this->render('product/listActionProduct.html.twig', array( 'products' => $products));\n\t\n\t}", "public function listAction()\n\t {\n\t\t$model = $this->_getModel();\n\t\t$result = $model->getLayouts();\t\n\t\t$page = (int)($this->_request->getParam('page')); \n\t\tif(count($result) > 0)\n\t\t{ \n\t\t\tGlobals::doPaging($result, $page, $this->view);\n\t\t}\n\t\t\t\t\n\t\t$this->view->page = $page;\n\t }", "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 $model->u_cms_album_id = $_GET['album'];\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 // datas\n $datas = $dataProvider->getData();\n\n // related datas\n $relatedDatas = $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 $filtersDatas = array();\n if (isset($_GET[$this->_model])) {\n $filtersDatas[$this->_model] = $_GET[$this->_model];\n }\n if (isset($_GET[$sort->sortVar])) {\n $filtersDatas[$sort->sortVar] = $_GET[$sort->sortVar];\n }\n\n $jsonParams = array(\n 'filters' => http_build_query($filtersDatas)\n );\n }\n\n $this->dynamicRender(\n $template,\n array(\n 'dataView' => new $this->crudComponents['listDataView'](\n $datas, $relatedDatas, $model, $sort, $pagination, $this\n )\n ),\n $jsonParams\n );\n }", "public function index()\n {\n return view('listings.index')->with('listings', Listing::all());\n }", "public function get_index()\n\t{\n\t\t$pages = Page::recent_available()->paginate(30);\n\t\t$table = Cello\\Presenter\\Page::table($pages);\n\t\t$data = array(\n\t\t\t'eloquent' => $pages,\n\t\t\t'table' => $table,\n\t\t);\n\n\t\tSite::set('title', __('cello::title.pages.list'));\n\n\t\treturn View::make('cello::api.resources.index', $data);\n\t}", "public function index()\n {\n return ProductResource::collection(Product::latest()->paginate(10));\n }", "public function index()\n {\n $category = GalleryCategory::paginate(15);\n\n // return collection of category as a resource.\n return Resource::collection($category);\n }", "public function index()\n {\n //\n $news = News::latest()->paginate(18);\n\n return NewsResource::collection($news);\n }", "public function indexAction() {\n\t\t$list_info = Zend_Registry::get('list_info');\n if (!Engine_Api::_()->core()->hasSubject('list_listing')) {\n return $this->setNoRender();\n }\n \n $this->view->expiry_setting = Engine_Api::_()->list()->expirySettings();\n\n //GET SUBJECT\n $this->view->list = $list = Engine_Api::_()->core()->getSubject('list_listing');\n\n\t\t//GET CATEGORY TABLE\n\t\t$this->view->tableCategory = Engine_Api::_()->getDbTable('categories', 'list');\n\n //GET CATEGORIES NAME\n\t\t$this->view->category_name = $this->view->subcategory_name = $this->view->subsubcategory_name = '';\n\n\t\tif(!empty($list->category_id)) {\n\t\t\tif($this->view->tableCategory->getCategory($list->category_id))\n\t\t\t$this->view->category_name = $this->view->tableCategory->getCategory($list->category_id)->category_name;\n\n\t\t\tif(!empty($list->subcategory_id)) {\n\t\t\t\tif($this->view->tableCategory->getCategory($list->subcategory_id))\n\t\t\t\t$this->view->subcategory_name = $this->view->tableCategory->getCategory($list->subcategory_id)->category_name;\n\n\t\t\t\tif(!empty($list->subsubcategory_id)) {\n\t\t\t\t\tif($this->view->tableCategory->getCategory($list->subsubcategory_id))\n\t\t\t\t\t$this->view->subsubcategory_name = $this->view->tableCategory->getCategory($list->subsubcategory_id)->category_name;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n //GET LISTING TAGS\n $this->view->listTags = $list->tags()->getTagMaps();\n\n\t\t//GET OTHER DETAILS\n\t\t$this->view->list_description = Zend_Registry::get('list_descriptions');\n $this->view->addHelperPath(APPLICATION_PATH . '/application/modules/Fields/View/Helper', 'Fields_View_Helper');\n $this->view->fieldStructure = Engine_Api::_()->fields()->getFieldsStructurePartial($list);\n\t\tif(empty($list_info)){ return $this->setNoRender(); }\n }", "public function index()\n {\n return $this->service->fetchResources(Author::class, 'authors');\n }", "public function index()\n {\n return view('admin.resources.index');\n }", "public function doRestList() {\n\t\t$this->outputHelper ( 'Collections Retrieved Successfully', $this->getModel ()->with ( $this->nestedRelations )->filter ( $this->restFilter )->orderBy ( $this->restSort )->limit ( $this->restLimit )->offset ( $this->restOffset )->findAll (), $this->getModel ()->with ( $this->nestedRelations )->filter ( $this->restFilter )->count () );\n\t}" ]
[ "0.7446777", "0.736227", "0.73005503", "0.72478926", "0.71631265", "0.71489686", "0.7131636", "0.7105969", "0.71029514", "0.7101372", "0.70508176", "0.6995128", "0.69890636", "0.6934895", "0.6900203", "0.6899281", "0.6891734", "0.6887235", "0.68670005", "0.6849741", "0.6830523", "0.6802689", "0.6797", "0.67957735", "0.67871135", "0.6760129", "0.67427456", "0.6730486", "0.67272323", "0.67255723", "0.67255723", "0.67255723", "0.67177945", "0.6707866", "0.6706713", "0.6704375", "0.6664782", "0.6662871", "0.6660302", "0.6659404", "0.6656656", "0.6653517", "0.6647965", "0.6620322", "0.66185474", "0.6618499", "0.6606105", "0.6600617", "0.65996987", "0.6594775", "0.6587389", "0.6585109", "0.6581641", "0.6581017", "0.6577157", "0.65747666", "0.6572513", "0.65721947", "0.6570553", "0.65646994", "0.6563556", "0.6554194", "0.65529937", "0.65460825", "0.65368485", "0.653429", "0.65328294", "0.6526759", "0.6526695", "0.6526284", "0.65191334", "0.65183175", "0.65174305", "0.651703", "0.65141153", "0.6507088", "0.65061647", "0.6504046", "0.64942145", "0.6491893", "0.64883405", "0.6486392", "0.6485077", "0.64846045", "0.6478858", "0.64756656", "0.64726377", "0.6471126", "0.64701074", "0.6467418", "0.6462195", "0.64618355", "0.6459199", "0.6457831", "0.6454631", "0.64533997", "0.6451915", "0.6450861", "0.6449301", "0.64492667", "0.64469045" ]
0.0
-1
Display a listing of the resource.
public function deleteTag($id) { BeTagModel::find($id)->delete(); DB::table('tag_and_article')->where('tag_id', $id)->delete(); Session::flash('success', SimpleClass::success_notice('Delete a tag is successfully')); return redirect()->route('be-tag.show'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function indexAction()\n {\n $limit = $this->Request()->getParam('limit', 1000);\n $offset = $this->Request()->getParam('start', 0);\n $sort = $this->Request()->getParam('sort', array());\n $filter = $this->Request()->getParam('filter', array());\n\n $result = $this->resource->getList($offset, $limit, $filter, $sort);\n\n $this->View()->assign($result);\n $this->View()->assign('success', true);\n }", "public function listing();", "function index() {\n\t\t$this->show_list();\n\t}", "public function actionList() {\n $this->_getList();\n }", "public function listAction()\n {\n $model = $this->_getPhotoModel();\n $entries = $model->fetchEntries($this->_getParam('page', 1));\n\n $this->view->url = 'http://' . $this->_request->getHttpHost() . $this->_request->getBaseUrl(); \n $this->view->paginator = $entries;\n }", "public function index()\n {\n $items = Item::all();\n return ItemForShowResource::collection($items);\n }", "public function index()\n {\n return Resource::collection(($this->getModel())::paginate(10));\n }", "function index()\n\t{\n\t\t$this->_list();\n\t\t$this->display();\n\t}", "public function listingAction(){\n if (!LoginHelper::isAdmin()){\n Router::redirect('home', '<p class=\"alert alert-danger\">Unauthorized</p>');\n }\n $this->view->render('patient/list', Patient::all());\n }", "public function index()\n {\n //\n $list = $this->obj->all();\n\n return $this->render('index', compact('list'));\n }", "public function action_index()\n\t{\n\t\t$this->template->title = 'Resources';\n\t\t$this->view = View::factory('admin/resource/index');\n\t\t$this->template->scripts[] = 'media/js/jquery.tablesorter.min.js';\n\t\t$this->template->scripts[] = 'media/js/admin/resource.js';\n\t\t\n\t\t$resources = Sprig::factory('resource')->load(NULL, FALSE);\n\t\tif (!empty($resources))\n\t\t{\n\t\t\t$this->view->resources = $resources->as_array();\n\t\t}\n\t}", "function listing()\n\t\t{\n\t\t// en $this->_view->_listado para poder acceder a el desde la vista.\n\t\t\t$this->_view->_listado = $listado = $this->_instrumentoModel->getInstrumento();\n\t\t\t$this->_view->render('listing', '', '',$this->_sidebar_menu);\n\t\t}", "public function listAction()\n {\n $em = $this->getDoctrine()->getManager();\n \n $todos = $em->getRepository(Todo::class)->findAll();\n \n return $this->render('todo/index.html.twig', array(\n 'todos' => $todos,\n ));\n }", "public function index()\n\t{\n $this->authorize('list', Instance::class);\n\n\t\treturn $this->ok($this->repo->paginate($this->request->all()));\n\t}", "public function actionRestList() {\n\t $this->doRestList();\n\t}", "public function listing()\n\t{\n\t\t$hospitalID = $this->request->getSession()->read(\"hospital_id\") ? $this->request->getSession()->read(\"hospital_id\") : \"\";\n\t\t\n\t\t$patientMonitored = 1;\n\t\t$patientActive = 1;\n\t\t\n\t\t//GET ALL PATIENTS\n\t\t$patientsData = $this->Patients->allPatients($hospitalID,$patientMonitored,$patientActive);\n\t\t//GET ALL PATIENTS\n\t\t\n\t\t//echo \"<pre>\"; print_r($patientsData);die;\n\t\t$this->set(compact(\"patientsData\"));\n\t}", "public function listAction()\n {\n $htmlpage = '<!DOCTYPE html>\n<html>\n <head>\n <meta charset=\"UTF-8\">\n <title>todos list!</title>\n </head>\n <body>\n <h1>todos list</h1>\n <p>Here are all your todos:</p>\n <ul>';\n \n $em = $this->getDoctrine()->getManager();\n $todos = $em->getRepository(Todo::class)->findAll();\n foreach($todos as $todo) {\n $htmlpage .= '<li>\n <a href=\"/todo/'.$todo->getid().'\">'.$todo->getTitle().'</a></li>';\n }\n $htmlpage .= '</ul>';\n\n $htmlpage .= '</body></html>';\n \n return new Response(\n $htmlpage,\n Response::HTTP_OK,\n array('content-type' => 'text/html')\n );\n }", "public function index()\n {\n // Get Persons\n $person = Person::paginate(10);\n\n //Return collection of person as a resource\n return PersonResource::collection($person);\n }", "public function listAction() {\n\t\t$this->view->title = $this->translator->translate(\"Invoice list\");\n\t\t$this->view->description = $this->translator->translate(\"Here you can see all the invoices.\");\n\t\t$this->view->buttons = array(array(\"url\" => \"/admin/invoices/new/\", \"label\" => $this->translator->translate('New'), \"params\" => array('css' => null)));\r\n\t\t$this->datagrid->setConfig ( Invoices::grid() )->datagrid ();\n\t}", "public function listAll()\n\t{\n\t\t$this->render(self::PATH_VIEWS . '/list', [\n\t\t\t'pages' => $this->pagesDb->findAll('id', 'DESC'),\n\t\t]);\n\t}", "public function list()\n {\n // récupérer les données : toutes les catégories enregistrées\n $productList = Product::findAll();\n\n $this->show('product/list', [\n 'productList' => $productList\n ]);\n }", "public function index()\n {\n // CRUD -> Retrieve --> List\n // BREAD -> Browse Read Edit Add Delete\n // return Item::all();\n return view('list_items',compact('items'));\n }", "public function index()\n {\n // Get manufacturers\n $manufacturers = Manufacturer::orderBy('created_at', 'desc')->paginate(15);\n\n // Return collection of manufacturers as a resource\n return ManufacturerResource::collection($manufacturers);\n }", "public function index()\n {\n return ArtistResource::collection(Artist::orderBy('created_at', 'desc')->get());\n }", "public function indexAction() {\n\t\t$page = intval($this->getInput('page'));\n\t\t$perpage = $this->perpage;\n\t\t\n\t\tlist(,$files) = Lock_Service_FileType::getAllFileType();\n\t\t$data = array();\n\t\tforeach ($files as $key=>$value) {\n\t\t\t$data[$key]['id'] = $value['id'];\n\t\t\t$data[$key]['title'] = $value['name'];\n\t\t}\n\t\tlist($total, $filetype) = Lock_Service_FileType::getList($page, $perpage);\n\t\t$this->assign('filetype', $filetype);\n\t\t$this->assign('pager', Common::getPages($total, $page, $perpage, $this->actions['listUrl'].'/?'));\n\t\t$this->assign('data', json_encode($data));\n\t}", "public function listAction()\n {\n $qb = $this->getRepository()->queryAll();\n\n $view = new ImportListView;\n $view->imports = $qb->getQuery()->execute();\n\n return $this->templating->renderResponse('InfiniteImportBundle:Import:list.html.twig', array(\n 'data' => $view\n ));\n }", "public function index()\n\t{\n\t\t//Return model all()\n\t\t$instances = $this->decorator->getListingModels();\n\n\t\treturn View::make($this->listingView, array(\n\t\t\t'instances' => $instances,\n\t\t\t'controller' => get_class($this), \n\t\t\t'modelName' => class_basename(get_class($this->decorator->getModel())),\n\t\t\t'columns' => $this->getColumnsForInstances($instances),\n\t\t\t'editable' => $this->editable\n\t\t));\n\t}", "public function index()\n {\n return InfografiResources::collection(\n Infografi::orderBy('date', 'desc')->get()\n );\n }", "public function listAction()\n\t {\n\t\t\t$this->_forward('index');\n \n\t\t}", "public function index()\n {\n $this->list_view();\n }", "public function index()\n {\n $this->list_view();\n }", "public function index()\n {\n $this->list_view();\n }", "public function listAction()\n {\n $defaults = array(\n 'page' => null,\n 'order' => null,\n 'limit' => null,\n 'offset' => null,\n 'filter' => array(),\n );\n $body = $this->getRequest()->getBody();\n $options = $body + $defaults;\n\n // Process the options\n if (is_string($options['order'])) {\n $options['order'] = array_map('trim', explode(',', $options['order']));\n }\n if (is_string($options['page'])) {\n $options['page'] = (int)$options['page'];\n }\n if (is_string($options['limit'])) {\n $options['limit'] = (int)$options['limit'];\n }\n if (is_string($options['offset'])) {\n $options['offset'] = (int)$options['offset'];\n }\n $filter = $options['filter'];\n unset($options['filter']);\n\n $options = array_filter($options);\n\n return $this->getBinding()->find($filter, $options);\n }", "public function index()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Get the resources from the model */\n $resources = $this->resourcesList($this->model);\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.index\")) {\n $view = \"admin.{$this->name}.index\";\n } else {\n $view = 'admin.includes.actions.index';\n }\n\n /* Display a listing of the resources */\n return view($view)\n ->with('resources', $resources)\n ->with('module', $this->module);\n }", "public function index()\n\t{\n\t\t$data['lists'] = $this->mdl_student->get_all();\n\t\t$this->template->set('title', 'Student Hostel List');\n\t\t$this->template->load('template', 'contents', 'student_hostel/student_hostel_list', $data);\n\t}", "public function index()\n {\n $modules = Module::all();\n return Resource::collection($modules);\n }", "public function index()\n {\n // List all resources from user entity\n $users = User::all();\n\n return $this->showAll($users);\n }", "public function index()\n {\n // Get todos\n $todos = Todo::orderBy('created_at', 'desc')->paginate(3);\n\n // Return collection of articles as a resource\n return TodoResource::collection($todos);\n }", "public function index()\n {\n return Resources::collection(Checking::paginate());\n }", "public function index()\n {\n return CourseListResource::collection(\n Course::query()->withoutGlobalScope('publish')\n ->latest()->paginate()\n );\n }", "public function index()\n {\n $cars = Car::paginate(15);\n return CarResource::collection($cars);\n }", "public function index()\n {\n // Get articles\n $articles = Article::orderBy('created_at', 'desc')->paginate(5);\n\n // Return collection of articles as a resource\n return ArticleResource::collection($articles);\n }", "public function index()\n {\n $authors = Author::paginate(10);\n\n return AuthorResource::collection($authors);\n }", "public function index()\n {\n //Get Books\n $books = Book::paginate(10);\n \n if ($books) {\n return (BookResource::collection($books))->additional([\n 'status_code' => 200,\n 'status' => 'success',\n ]);\n } else {\n return (BookResource::collection([]))->additional([\n 'status_code' => 200,\n 'status' => 'success',\n ]);\n }\n return view('index')->with('data', $books);\n }", "public function view(){\n\t\t$this->buildListing();\n\t}", "public function index()\n {\n $books = Book::latest()\n ->paginate(20);\n\n return BookResource::collection($books);\n }", "public function index()\n {\n $listing = Listing::orderBy('id', 'desc')->paginate(10);\n return view('listings.index')->withListings($listing);\n }", "public function listAction()\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 }", "public function index()\n {\n $services = $this->serviceRepository->paginate();\n\n return ServiceResource::collection($services);\n }", "public function index()\n {\n $resources = ResourceManagement::paginate(5);\n $users = User::get();\n\n return view('resources-mgmt/index', ['resources' => $resources, 'users' => $users]);\n }", "public function index()\n {\n $catalogs = Catalog::where('status', '=', Catalog::PUBLICADO)\n ->orderBy('id', 'DESC')->get();\n \n $data = CatalogResource::collection($catalogs);\n\n return [\n 'items' => $data,\n 'mensaje' => ''\n ];\n }", "public function listAction(){\n // In a controller this can be:\n // $this->request->getQuery('page', 'int'); // GET\n $currentPage = $this->request->getPost('pageindex', 'int'); // POST\n $pageNum = ($currentPage == null) ? 1 : $currentPage;\n\n // The data set to paginate\n $message = new Notice();\n $results = $message->getMsg4Admin();\n\n // Create a Model paginator, show 10 rows by page starting from $currentPage\n $paginator = new PaginatorArray(\n array(\n \"data\" => $results,\n \"limit\" => 10,\n \"page\" => $pageNum\n )\n );\n\n // Get the paginated results\n $page = $paginator->getPaginate();\n\n return $this->response->setJsonContent($page);\n\n }", "public function list()\n {\n try {\n return $this->success($this->service->list());\n } catch (\\Exception $exception) {\n return $this->error($exception->getMessage());\n }\n }", "public function index()\n {\n return $this->sendResponse(CrisisResource::collection(Crisis::paginate(10)), 'Data fetched successfully');\n }", "public function index()\n\t{\n\t\t$%Alias = new %Model();\n\t\t$params = array();\n\t\t\n\t\t$Paginator = new Paginator( $%Alias->findSize( $params ), $this->getLimit(), $this->getPage() );\n\t\t$this->getView()->set( '%Aliass', $%Alias->findList( $params, 'Id desc', $this->getOffset(), $this->getLimit() ) );\n\t\t$this->getView()->set( 'Paginator', $Paginator );\n\t\treturn $this->getView()->render();\n\t}", "public function listAction() {}", "public function index()\n {\n\n return RecipeResource::collection(Recipe::all());\n }", "public function index()\n {\n $this->indexPage('list-product', 'List Product');\n }", "public function listAction()\n {\t\n\t\t$this->removeSession();\n\t\t$this->verifySessionRights();\n\t\t$this->setActivity(\"List view\");\n $em = $this->getDoctrine()->getManager();\n $oRepClient = $em->getRepository('BoAdminBundle:Client');\n\t\t$nb_tc = $oRepClient->getTotal();\n\t\t//get page\n\t\t$page = $this->get('session')->get('page');\n\t\tif($page==null){\n\t\t\t$page=1;\n\t\t\t$this->get('session')->set('page',1);\n\t\t}\n\t\t//get number line per page\n\t\t$nb_cpp = $em->getRepository('BoAdminBundle:Param')->getParam(\"display_list_page_number\",1);\n\t\t$nb_pages = ceil($nb_tc/$nb_cpp);\n\t\t$offset = $page>0?($page-1) * $nb_cpp:0;\n\t\t$clients = $em->getRepository('BoAdminBundle:Client')->findBy(array(),array('id' => 'desc'),$nb_cpp,$offset);\n $form = $this->createForm('Bo\\AdminBundle\\Form\\ClientType', new Client());\n return $this->render('client/index.html.twig', array(\n 'clients' => $clients,\n\t\t\t'page' => $page, // forward current page to view,\n\t\t\t'nb_pages' => $nb_pages, //total number page,\n 'form' => $form->createView(),\n\t\t\t'total'=>$nb_tc, // record number.\n\t\t\t'nb_cpp' => $nb_cpp,// line's number to display\n\t\t\t'pm'=>\"contracts\",\n\t\t\t'sm'=>\"client\",\n ));\n }", "public function index()\n {\n return AcResource::collection(Ac::latest()->paginate()); //\n }", "public function executeList()\n {\n $this->setTemplate('list');\n }", "public function indexAction()\n {\n $books = Book::getAll();\n\n View::renderTemplate('Books/index.html', [\n 'books' => $books\n ]);\n }", "function listing() {\r\n\r\n }", "public function listar() {\n $rs = $this->model->listar();\n\n echo $this->toJson($rs);\n }", "public function index()\n {\n return BookResource::collection(Book::orderby('id')->get());\n }", "public function doRestList()\n {\n $this->outputHelper( \n 'Records Retrieved Successfully', \n $this->getModel()->with($this->nestedRelations)->filter($this->restFilter)->orderBy($this->restSort)->limit($this->restLimit)->offset($this->restOffset)->findAll(),\n $this->getModel()->with($this->nestedRelations)->filter($this->restFilter)->count()\n );\n\t}", "public function index()\n {\n $client = Client::paginate();\n return ClientResource::collection($client);\n }", "public function index()\n {\n return TagResource::collection(\n Tag::orderBy('name', 'ASC')->paginate(request('per_page', 10))\n );\n }", "public function _index(){\n\t $this->_list();\n\t}", "public function index()\n\t{\n\t\t$data['lists'] = $this->gallery_mdl->get_all();\n\t\t$this->template->set('title', 'Gallery');\n\t\t$this->template->render('template', 'list', $data);\n\t}", "function drush_restapi_list() {\n\n $resources = restapi_get_resources();\n $last_module = NULL;\n $rows = [\n [dt('Module'), dt('Path'), dt('Class')],\n ];\n\n foreach($resources as $resource) {\n if ($last_module != $resource->getModule()) {\n $module = $last_module = $resource->getModule();\n }\n else {\n $module = '';\n }\n $rows[] = [$module, $resource->getPath(), $resource->getClass()];\n }\n\n drush_print_table($rows, TRUE);\n drush_log(dt('Displaying !count total resources', [\n '!count' => count($resources),\n ]), 'ok');\n\n}", "public function index()\n {\n $this->booklist();\n }", "public function index()\n {\n //\n $accounts = accounts::paginate(15);\n\n //return the collection of employees as a resource\n return accountResource::collection($accounts);\n\n\n }", "public function index()\n {\n $items = Item::all();\n return view('items::list_items',compact('items'));\n }", "public function index()\n {\n // Get houses\n $houses = House::orderBy('created_at', 'desc')->paginate(self::PAGINATE);\n \n // Return collection of houses\n \n return HouseResource::collection($houses);\n }", "public function index()\n {\n $products = Product::paginate(6);\n return ProductResource::collection($products);\n }", "public function index() {\n $this->template->allFoundItems = Found::showAll();\n $this->template->display( 'index.html.php' );\n }", "public function indexAction() {\n $this->_forward('list');\n }", "public function index()\n {\n $data = Productcategory::paginate(10);\n\t\treturn ProductcategoryResource::Collection($data);\n }", "public function index()\n {\n return SongResource::collection(\\App\\Song::orderBy('created_at', 'desc')->get());\n }", "public function ListView()\n\t{\n\t\t\n\t\t// Requer permissão de acesso\n\t\t$this->RequirePermission(Usuario::$P_ADMIN,\n\t\t\t\t'SecureExample.LoginForm',\n\t\t\t\t'Autentique-se para acessar esta página',\n\t\t\t\t'Você não possui permissão para acessar essa página ou sua sessão expirou');\n\t\t\n\t\t//$usuario = Controller::GetCurrentUser();\n\t\t//$this->Assign('usuario',$usuario);\n\t\t$this->Render();\n\t}", "public function index () {\n permiss ( 'role.list' );\n\n $data = $this->entity\n ->orderBy('created_at', 'desc')->get();\n\n return new ModelResource($data);\n }", "public function showResources()\n {\n $resources = Resource::get();\n return view('resources', compact('resources'));\n }", "public function index()\n {\n //get articless\n $articles = Article::paginate(15);\n\n //Return collection of article has a resource\n return ArticleResource::collection($articles);\n\n }", "public function actionList() {\n header(\"Content-type: application/json\");\n $verb = $_SERVER[\"REQUEST_METHOD\"];\n\n if ($verb === 'GET') {\n echo \"{\\\"data\\\":\" . CJSON::encode(Donneur::model()->findAll()) . \"}\";\n } else if ($verb == 'POST') {\n if (Donneur::model()->exists('id' === $_POST['id'])) {\n $this->actionListUpdate($_POST);\n } else {\n $this->actionListPost();\n }\n } else if ($verb == 'DELETE') {\n $this->actionListDelete();\n }\n }", "public function list()\n {\n return $this->http->request(HttpMethods::GET, $this->endpoint);\n }", "public function indexAction(){\n $data = array(\n 'collection' => $this->model->getCollection(),\n \n ); \t\n return $this->getView($data);\n }", "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $entities = $em->getRepository('DiverPriceLisrBundle:Items')->findAll();\n\n return $this->render('DiverPriceLisrBundle:Items:index.html.twig', array(\n 'entities' => $entities,\n ));\n }", "public function actionIndex()\n {\n $dataProvider = new ActiveDataProvider([\n 'query' => Slaves::find(),\n ]);\n\n return $this->render('index', [\n 'dataProvider' => $dataProvider,\n ]);\n }", "public function listAction() {\n\t\t// Recogemos el repositorio\n\t\t$repository = $this->getDoctrine() ->getRepository('AppBundle:Product');\n\t\n\t\t// Recuperamos todos los productos.\n\t\t$products = $repository->findAll();\n\t\t// Pasamos a la plantilla el aray products\n\t\treturn $this->render('product/listActionProduct.html.twig', array( 'products' => $products));\n\t\n\t}", "public function listAction()\n\t {\n\t\t$model = $this->_getModel();\n\t\t$result = $model->getLayouts();\t\n\t\t$page = (int)($this->_request->getParam('page')); \n\t\tif(count($result) > 0)\n\t\t{ \n\t\t\tGlobals::doPaging($result, $page, $this->view);\n\t\t}\n\t\t\t\t\n\t\t$this->view->page = $page;\n\t }", "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 $model->u_cms_album_id = $_GET['album'];\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 // datas\n $datas = $dataProvider->getData();\n\n // related datas\n $relatedDatas = $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 $filtersDatas = array();\n if (isset($_GET[$this->_model])) {\n $filtersDatas[$this->_model] = $_GET[$this->_model];\n }\n if (isset($_GET[$sort->sortVar])) {\n $filtersDatas[$sort->sortVar] = $_GET[$sort->sortVar];\n }\n\n $jsonParams = array(\n 'filters' => http_build_query($filtersDatas)\n );\n }\n\n $this->dynamicRender(\n $template,\n array(\n 'dataView' => new $this->crudComponents['listDataView'](\n $datas, $relatedDatas, $model, $sort, $pagination, $this\n )\n ),\n $jsonParams\n );\n }", "public function index()\n {\n return view('listings.index')->with('listings', Listing::all());\n }", "public function get_index()\n\t{\n\t\t$pages = Page::recent_available()->paginate(30);\n\t\t$table = Cello\\Presenter\\Page::table($pages);\n\t\t$data = array(\n\t\t\t'eloquent' => $pages,\n\t\t\t'table' => $table,\n\t\t);\n\n\t\tSite::set('title', __('cello::title.pages.list'));\n\n\t\treturn View::make('cello::api.resources.index', $data);\n\t}", "public function index()\n {\n return ProductResource::collection(Product::latest()->paginate(10));\n }", "public function index()\n {\n $category = GalleryCategory::paginate(15);\n\n // return collection of category as a resource.\n return Resource::collection($category);\n }", "public function index()\n {\n //\n $news = News::latest()->paginate(18);\n\n return NewsResource::collection($news);\n }", "public function indexAction() {\n\t\t$list_info = Zend_Registry::get('list_info');\n if (!Engine_Api::_()->core()->hasSubject('list_listing')) {\n return $this->setNoRender();\n }\n \n $this->view->expiry_setting = Engine_Api::_()->list()->expirySettings();\n\n //GET SUBJECT\n $this->view->list = $list = Engine_Api::_()->core()->getSubject('list_listing');\n\n\t\t//GET CATEGORY TABLE\n\t\t$this->view->tableCategory = Engine_Api::_()->getDbTable('categories', 'list');\n\n //GET CATEGORIES NAME\n\t\t$this->view->category_name = $this->view->subcategory_name = $this->view->subsubcategory_name = '';\n\n\t\tif(!empty($list->category_id)) {\n\t\t\tif($this->view->tableCategory->getCategory($list->category_id))\n\t\t\t$this->view->category_name = $this->view->tableCategory->getCategory($list->category_id)->category_name;\n\n\t\t\tif(!empty($list->subcategory_id)) {\n\t\t\t\tif($this->view->tableCategory->getCategory($list->subcategory_id))\n\t\t\t\t$this->view->subcategory_name = $this->view->tableCategory->getCategory($list->subcategory_id)->category_name;\n\n\t\t\t\tif(!empty($list->subsubcategory_id)) {\n\t\t\t\t\tif($this->view->tableCategory->getCategory($list->subsubcategory_id))\n\t\t\t\t\t$this->view->subsubcategory_name = $this->view->tableCategory->getCategory($list->subsubcategory_id)->category_name;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n //GET LISTING TAGS\n $this->view->listTags = $list->tags()->getTagMaps();\n\n\t\t//GET OTHER DETAILS\n\t\t$this->view->list_description = Zend_Registry::get('list_descriptions');\n $this->view->addHelperPath(APPLICATION_PATH . '/application/modules/Fields/View/Helper', 'Fields_View_Helper');\n $this->view->fieldStructure = Engine_Api::_()->fields()->getFieldsStructurePartial($list);\n\t\tif(empty($list_info)){ return $this->setNoRender(); }\n }", "public function index()\n {\n return $this->service->fetchResources(Author::class, 'authors');\n }", "public function index()\n {\n return view('admin.resources.index');\n }", "public function doRestList() {\n\t\t$this->outputHelper ( 'Collections Retrieved Successfully', $this->getModel ()->with ( $this->nestedRelations )->filter ( $this->restFilter )->orderBy ( $this->restSort )->limit ( $this->restLimit )->offset ( $this->restOffset )->findAll (), $this->getModel ()->with ( $this->nestedRelations )->filter ( $this->restFilter )->count () );\n\t}" ]
[ "0.7446777", "0.736227", "0.73005503", "0.72478926", "0.71631265", "0.71489686", "0.7131636", "0.7105969", "0.71029514", "0.7101372", "0.70508176", "0.6995128", "0.69890636", "0.6934895", "0.6900203", "0.6899281", "0.6891734", "0.6887235", "0.68670005", "0.6849741", "0.6830523", "0.6802689", "0.6797", "0.67957735", "0.67871135", "0.6760129", "0.67427456", "0.6730486", "0.67272323", "0.67255723", "0.67255723", "0.67255723", "0.67177945", "0.6707866", "0.6706713", "0.6704375", "0.6664782", "0.6662871", "0.6660302", "0.6659404", "0.6656656", "0.6653517", "0.6647965", "0.6620322", "0.66185474", "0.6618499", "0.6606105", "0.6600617", "0.65996987", "0.6594775", "0.6587389", "0.6585109", "0.6581641", "0.6581017", "0.6577157", "0.65747666", "0.6572513", "0.65721947", "0.6570553", "0.65646994", "0.6563556", "0.6554194", "0.65529937", "0.65460825", "0.65368485", "0.653429", "0.65328294", "0.6526759", "0.6526695", "0.6526284", "0.65191334", "0.65183175", "0.65174305", "0.651703", "0.65141153", "0.6507088", "0.65061647", "0.6504046", "0.64942145", "0.6491893", "0.64883405", "0.6486392", "0.6485077", "0.64846045", "0.6478858", "0.64756656", "0.64726377", "0.6471126", "0.64701074", "0.6467418", "0.6462195", "0.64618355", "0.6459199", "0.6457831", "0.6454631", "0.64533997", "0.6451915", "0.6450861", "0.6449301", "0.64492667", "0.64469045" ]
0.0
-1
API Function to generate a url path for use by other modules/themes. Example Usage: $path = getdirections_location_user_path('to', $uid); $url = l(t('Get directions'), $path);
function getdirections_location_user_path($direction, $uid) { if (module_exists('location') && is_numeric($uid) && ($direction == 'to' || $direction == 'from')) { return "getdirections/location_user/$direction/$uid"; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getdirections_locations_user_path($fromuid, $touid) {\n if (module_exists('location') && is_numeric($fromuid) && is_numeric($touid)) {\n return \"getdirections/locations_user/$fromuid/$touid\";\n }\n}", "function getdirections_locations_user_via_path($uids) {\n if (module_exists('location')) {\n return \"getdirections/locations_user_via/$uids\";\n }\n}", "function getdirections_location_u2n_path($fromuid, $tonid) {\n if (module_exists('location') && is_numeric($fromuid) && is_numeric($tonid)) {\n return \"getdirections/location_u2n/$fromuid/$tonid\";\n }\n}", "function getdirections_location_n2u_path($fromnid, $touid) {\n if (module_exists('location') && is_numeric($fromnid) && is_numeric($touid)) {\n return \"getdirections/location_u2n/$fromnid/$touid\";\n }\n}", "function getdirections_location_id_path($direction, $lid) {\n if (module_exists('location') && is_numeric($lid) && ($direction == 'to' || $direction == 'from')) {\n return \"getdirections/location_id/$direction/$lid\";\n }\n}", "function getdirections_locations_via_path($nids) {\n if (module_exists('location')) {\n return \"getdirections/locations_via/$nids\";\n }\n}", "public static function personal_folder_path($user_id) {\n\n\n $user = Backend_User::find($user_id);\n\n $slash = Config::get('portal.back_slash');\n\n\n if($user) {\n\n $route = '';\n\n if ($user->user_type == 0 || $user->user_type == 1) {\n\n //get first and last name \n $details = Backend_User_Details::where('user_id','=',$user->id)->get(array('first_name','last_name'));\n\n\n\n $details = $details[0];\n\n //form route\n $route .= 'users'. $slash .$details->last_name.'-'.$details->first_name.'-'.$user->id;\n\n }//if user or admin \n else {\n\n //get client's details\n $client_details = Backend_Client::infos($user->id);\n\n $client_details = $client_details[0];\n\n\n if($client_details->client_type_id == 1 ) {\n\n $route .= 'clients'. $slash.'individual'.$slash.str_replace(' ', '-', $client_details->last_name).'-'.str_replace(' ', '-',$client_details->first_name).'-'.$user->id;\n \n }//if individual\n else{\n\n $folder = Backend_Client_Type::get_name_by_client_type_id($client_details->client_type_id);\n\n $route .= 'clients'. $slash.strtolower($folder). $slash .str_replace(' ', '-',$client_details->name).'-'.$user->id;\n\n }//if corporate\n\n\n }//if client\n\n return $route;\n\n }//if the user exsists\n\n return false;\n\n }", "function getdirections_location_latlon_path($direction, $latlon, $locs='') {\n if (($direction == 'to' || $direction == 'from') && preg_match(\"/[0-9.\\-],[0-9.\\-]/\", $latlon)) {\n $out = \"getdirections/latlon/$direction/$latlon\";\n if ($locs) {\n $out .= \"/$locs\";\n }\n return $out;\n }\n}", "function getdirections_locations_path($fromnid, $tonid) {\n if (module_exists('location') && is_numeric($fromnid) && is_numeric($tonid)) {\n return \"getdirections/locations/$fromnid/$tonid\";\n }\n}", "public function getPathLocation(): string;", "function get_directions( $location ) {\n\treturn directions_base_url . urlencode( str_replace( \"\\n\", ', ', $location->address ) ) // change newlines into comma+space so google maps can process it properly\n\t . '/@' . $location->latitude . ',' . $location->longitude . ',17z/';\n\t// https://www.google.com/maps/dir//6850+Lake+Nona+Blvd,+Orlando,+FL+32827/@28.3676791,-81.2850738,17z/\n}", "public function routePath(string $value) {\n if (null !== ($generatedPath = $this->routingHelper->getPath($value))) {\n return $generatedPath;\n }\n\n return \"\";\n }", "function GetDirectionURL($type,$origin,$destination){\r\n $url = null;\r\n\r\n if($type == 'findway'){\r\n $url = 'https://www.google.com/maps/dir/?api=1&origin='.trim($origin).'&destination='.trim($destination).'&travelmode=driving';\r\n }else if($type == 'where') {\r\n\r\n $url = 'https://www.google.com/maps/search/?api=1&query=' . $destination;\r\n }\r\n return $url;\r\n}", "function buildPath($path, $options = array()) {\n return url($path, $options);\n }", "public function getUserRoutePathLng()\n {\n return $this->userRoutePathLng;\n }", "function cot_pfs_relpath($userid)\n{\n\tglobal $cfg;\n\n\tif ($cfg['pfs']['pfsuserfolder'])\n\t{\n\t\treturn($userid.'/');\n\t}\n\telse\n\t{\n\t\treturn('');\n\t}\n}", "public function path()\n {\n return $this->user->path() . $this->slug;\n }", "public static function getPath() {\n\t\tif ($args = func_get_args()) {\n\t\t\t$path = self::_getPath($args);\n\t\t} else {\n\t\t\t$path = '';\n\t\t}\n\t\treturn self::fixSlash($path);\n\t}", "function map_directions_link($location,$latitude,$longitude)\n {\n return \"https://maps.google.com/maps?ll={$latitude},{$longitude}&amp;z=16&amp;t=m&amp;hl=en-US&amp;gl=PT&amp;mapclient=embed&amp;daddr={$location}@{$latitude},{$longitude}\";\n }", "public function path(): string\n {\n // path to your own account\n if ($this->model->isLoggedIn() === true) {\n return 'account';\n }\n\n return 'users/' . $this->model->id();\n }", "private function getPath() {\n return '%2F' . urlencode($this->source) . '%2F' . urlencode($this->campaign) .'%2F' . urlencode($this->content);\n }", "public function path(): string\n {\n return str_replace('?', '', \"/{$this->route->uri()}\");\n }", "public function getRoutePath($onlyStaticPart = false);", "public function redirectPath()\n {\n $user = Auth::user();\n $userb = User::with('roles')->where('id', $user->id)->first();\n\n $role= $userb->roles->first()->Nombre;\n\n switch ($role) {\n case 'Supervisor':\n return \"/Admin\";\n break;\n case 'Encargado':\n return \"/Encargado\";\n break;\n case 'Comprador':\n return \"/Cliente\";\n break;\n case 'Vendedor':\n return \"/Cliente\";\n break;\n default:\n return \"/\";\n break;\n }\n }", "function wechat_url(WechatUser $wechatUser, $path, $path_params=array()){\n $path_params = array('token'=>$wechatUser->token, 'path'=>query_url($path, $path_params));\n return query_url('wechat/redirect', $path_params);\n}", "function urlTo($path, $echo = false, $locale = '') {\n\t\t\tglobal $site;\n\t\t\tif ( empty($locale) ) {\n\t\t\t\t$locale = $this->getLocale();\n\t\t\t}\n\t\t\t$ret = $site->baseUrl( sprintf('/%s%s', $locale, $path) );\n\t\t\tif ($echo) {\n\t\t\t\techo $ret;\n\t\t\t}\n\t\t\treturn $ret;\n\t\t}", "private function getURLCustom($path){\n return App::$apiURL . $path . $this->getAPIParam();\n }", "public function getUserRoutePathId()\n {\n return $this->userRoutePathId;\n }", "function url($location) {\n\techo getAbsolutePath() . $location;\n}", "public function generateUrl($path, $user)\n {\n $this->em = $this->container->get('doctrine.orm.entity_manager');\n $this->router= $this->container->get('router');\n\n if (null === $user->getConfirmationToken()) {\n /** @var $tokenGenerator \\FOS\\UserBundle\\Util\\TokenGeneratorInterface */\n $tokenGenerator = $this->container->get('fos_user.util.token_generator');\n $token = $tokenGenerator->generateToken();\n $user->setConfirmationToken($token);\n\n $this->em->persist($user);\n $this->em->flush();\n }\n else{\n $token = $user->getConfirmationToken();\n }\n\n $domain = $this->container->getParameter('sopinet_autologin.domain');\n\n $url = $domain . $this->router->generate('auto_login', array('path' => $path, 'token' => $token));\n\n return $url;\n }", "public function path();", "public function path(): RoutePathInterface;", "public function toString() {\n return url::buildPath($this->toArray());\n }", "function fn_get_url_path($path)\n{\n $dir = dirname($path);\n\n if ($dir == '.' || $dir == '/') {\n return '';\n }\n\n return (defined('WINDOWS')) ? str_replace('\\\\', '/', $dir) : $dir;\n}", "public function redirectPath()\n {\n if (method_exists($this, 'redirectTo')) {\n return $this->redirectTo();\n \n if(Auth::user()->position == 'Administrative Staff')\n {\n return property_exists($this, 'redirectTo') ? $this->redirectTo : '/home';\n }\n if(Auth::user()->position == 'Lawyer')\n {\n return property_exists($this, 'redirectTo') ? $this->redirectTo : '/lawyerside/show';\n }\n } \n }", "public function getPath() {\n if (empty($this->uriParts['path'])) {\n return '';\n }\n return implode('/', array_map(\"rawurlencode\", explode('/', $this->uriParts['path'])));\n }", "function getPath() {\n $ruta = realpath(dirname(__FILE__));\n if ( strtoupper(substr(PHP_OS, 0, 3)) === 'WIN' )\n $separator = '\\\\';\n else\n $separator = '/';\n $aRuta = explode($separator,$ruta);\n $ruta = '';\n foreach($aRuta as $index => $value)\n if ( $index < count($aRuta) - 1 ) $ruta .= $value.$separator;\n return $ruta;\n}", "public function googleDirectionsLink()\n {\n return 'https://maps.google.com/?daddr=' . urlencode($this->full_address);\n }", "function get_dashboard_url($user_id = 0, $path = '', $scheme = 'admin')\n {\n }", "public function get_url( $path = '' ) {\n\t\treturn $this->url . ltrim( $path, '/' );\n\t}", "public static function generateURL()\n {\n return $_SERVER['REQUEST_SCHEME'].'://'.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];\n }", "public function getPathTranslated() {\n\t\t\n\t}", "public function generateUrl(string $path = '')\n {\n return 'https://'.static::domain().($path ? '/'.ltrim($path, '/') : '');\n }", "private function _makepath() {\n $params = func_get_args();\n $path = '';\n\n foreach ($params as $value) {\n $path .= $value;\n\n if (!empty($value)) $path .= PS;\n }\n\n return $path;\n }", "function build_href( $p_path ) {\n\tglobal $t_depth;\n\n\t$t_split = explode( DIRECTORY_SEPARATOR, $p_path );\n\t$t_slice = array_slice( $t_split, $t_depth );\n\n\treturn '/' . implode( '/', array_map( 'urlencode', $t_slice ) );\n}", "public function path($append = '') {\n // Default path to user's profile\n $path = route('show', $this->username);\n // If an append argument is received, return the path with the append added, otherwise, return the default path.\n return $append ? \"{$path}/${append}\" : $path;\n }", "public function getUserRoutePathLat()\n {\n return $this->userRoutePathLat;\n }", "function _url($path){\n echo getFullUrl($path);\n}", "public function generate_url()\n {\n }", "function buildPath() {\n\t$args = func_get_args();\n\t$path = '';\n\tforeach ($args as $arg) {\n\t\tif (strlen($path)) {\n\t\t\t$path .= \"/$arg\";\n\t\t} else {\n\t\t\t$path = $arg;\n\t\t}\n\t}\n\n\t/* DO NOT USE realpath() -- it hoses everything! */\n\t$path = str_replace('//', '/', $path);\n\t\n\t/* 'escape' the squirrely-ness of Bb's pseudo-windows paths-in-filenames */\n\t$path = preg_replace(\"|(^\\\\\\\\]\\\\\\\\)([^\\\\\\\\])|\", '\\\\1\\\\\\2', $path);\n\t\n\treturn $path;\n}", "public function getPath(string ...$arguments) : string\n {\n if ($arguments) {\n return $this->router->fillPlaceholders($this->path, ...$arguments);\n }\n return $this->path;\n }", "public function getURL ($path) {\n return $this->webBaseURL .\"/\". $path;\n }", "function getPath(): string;", "function getFullUrl($path){\n $base = get_application_path();\n $parts = parse_url($base.$path);\n return build_url($parts);\n}", "protected function getPathSite() {}", "protected function getPathSite() {}", "public static function getPath()\n {\n }", "public function getUserPath($user_id, $type = 'curl') {\n\t\t$user_name = Yii::app()->db->createCommand()\n\t\t\t->select('username')\n\t\t\t->from('user')\n\t\t\t->where(':id = id', array(':id' => $user_id))\n\t\t\t->queryColumn();\n\t\t\n\t\t$type = ($type == 'curl') ? 'curl' : 'ftp';\n\t\t\n\t\treturn Yii::getPathOfAlias('application.' . $type . '_downloads') . DIRECTORY_SEPARATOR . $user_name[0];\n\t}", "protected static function makePath(...$path_components): string { // phpcs:ignore\n return self::gluePartsTogether($path_components, '/');\n }", "protected abstract function getPath();", "abstract protected function getPath();", "protected function _build_url($url, $path)\n\t{\n\t\treturn \"$url{$this->_format}/$path\";\n\t}", "private function generateUrl() : string\n {\n return $this->apiUrl.$this->ownerRepo.$this->branchPath.$this->branch;\n }", "private static function getPath() : string {\n return getBasePath() . '/miaus';\n }", "public function getPath();", "public function getPath();", "public function getPath();", "public function getPath();", "public function getPath();", "public function getPath();", "public function getPath();", "public function getPath();", "public function getPath();", "public function getPath();", "public function getPath();", "public function getPath();", "public function getPath();", "public function getPath();", "public function create_url($path){\n // create url\n return $this->scheme.'://'.$this->config['host'].'/'.$path;\n\n }", "function buildPath($entity, $options = array()) {\n return file_create_url($entity->uri);\n }", "public static function buildPath()\n {\n $path = [];\n\n foreach( func_get_args() as $item )\n {\n if( !empty( $item ) )\n {\n $path[] = trim( $item, \"/ \" );\n }\n }\n return \"/\".implode( \"/\", $path );\n }", "function admin_getPathway( $back = 0 )\n{\n\t$pathway = '';\n\n\tglobal $g_admin_pathway;\n\n\t/*\n\t * Default behaviour\n\t * -----------------\n\t * This function is called by a script wich is required from the \"backend\"\n\t * The variable $g_admin_pathway have been initialized in the main admin script : '/admin/index.php'\n\t */\n\tif (isset($g_admin_pathway))\n\t{\n\t\tif ($back < 0) {\n\t\t\t$back *= -1; # $back is strictly >= 0\n\t\t}\n\n\t\t$steps = count($g_admin_pathway);\n\t\tif ($back < $steps)\n\t\t{\n\t\t\t$pathway = '?'.$g_admin_pathway[0]['url'];\n\n\t\t\tfor ($i=1; $i<$steps-$back; $i++) {\n\t\t\t\t$pathway .= '&amp;'.$g_admin_pathway[$i]['url'];\n\t\t\t}\n\t\t}\n\t}\n\t/*\n\t * Special behaviour (to allow the loading of backend scripts in frontend)\n\t * -----------------\n\t * This function is called by a script wich is required from the \"frontend\"\n\t * In frontend the variable $g_admin_pathway should never be initialized !\n\t */\n\telse\n\t{\n\t\tif ($_SERVER['QUERY_STRING']) {\n\t\t\t$pathway = '?'.$_SERVER['QUERY_STRING'];\n\t\t}\n\t}\n\n\treturn $pathway;\n}", "private static function getPath($path) {\n if ($path == 'image') $addr = self::IMAGE_PATH;\n elseif ($path == 'album') $addr = self::ALBUM_PATH;\n elseif ($path == 'rates') $addr = self::RATES_PATH;\n else {\n Print 'Path was not recognized.';\n Die;\n }\n\n Return self::API_PATH . $addr;\n }", "public static function formUrlPath(array $variables) : string {\n\n\t\tif (self::_hasAdapter(get_class(), __FUNCTION__))\n\t\t\treturn self::_callAdapter(get_class(), __FUNCTION__, $variables);\n\n\t\t$variables = self::_applyFilter(get_class(), __FUNCTION__, $variables, array('event' => 'args'));\n\n\t\t$appendix = '';\n\n\t\t$first = 1;\n\t\tforeach ($variables as $key => $value) {\n\t\t\tif ($first === 1) {\n\t\t\t\t$appendix .= urlencode($value);\n\t\t\t} else {\n\t\t\t\t$appendix .= '/' . urlencode($value);\n\t\t\t}\n\t\t\t$first = 0;\n\t\t}//end foreach\n\n\t\tself::_notify(get_class() . '::' . __FUNCTION__, $appendix, $variables);\n\t\t$appendix = self::_applyFilter(get_class(), __FUNCTION__, $appendix, array('event' => 'return'));\n\n\t\treturn $appendix;\n\n\t}", "function url($path = \"\", $params = array()) {\n return $GLOBALS['k_current_context']->url($path, $params);\n}", "public function getPath(bool $useSlashOnEmptyPath = FALSE): string {\n\t\t$path = '/' . implode('/', $this->getPaths());\n\n\t\treturn strlen($path) > 1 ? $path : ($useSlashOnEmptyPath ? '/' : '');\n\t}", "function cot_pfs_path($userid)\n{\n\tglobal $cfg;\n\n\tif ($cfg['pfs']['pfsuserfolder'])\n\t{\n\t\treturn($cfg['pfs_dir'].'/'.$userid.'/');\n\t}\n\telse\n\t{\n\t\treturn($cfg['pfs_dir'].'/');\n\t}\n}", "public function redirectPath()\n {\n $redirect = app('user.logic')->getUserInfo('admin') ? $this->redirectTo : $this->redirectToHome;\n return $redirect;\n }", "public function getAdminUrl($path='', $param=array()){\n\t\t$p = ltrim($path, '/');\n\t\t$p = '/' . $this->_router->getAdminRoute() . '/' . $p;\n\t\treturn $this->getUrl($p, $param);\n\t}", "public function fetch_path()\n\t{\n\t\treturn $this->route_stack[self::SEG_PATH];\n\t}", "function build_path()\n {\n // We build the path only if arguments are passed\n if ( ! empty($args = func_get_args()))\n {\n // Make sure arguments are an array but not a mutidimensional one\n isset($args[0]) && is_array($args[0]) && $args = $args[0];\n\n return implode(DIRECTORY_SEPARATOR, array_map('rtrim', $args, array(DIRECTORY_SEPARATOR))).DIRECTORY_SEPARATOR;\n }\n\n return NULL;\n }", "function convert_url_to_path($url)\n{\n require_code('urls2');\n return _convert_url_to_path($url);\n}", "public function path() {}", "public function path() {}", "function getPath($route_name, $params = [])\n{\n switch ($route_name) {\n case 'main':\n $location = '/accounts/main.php';\n break;\n\n case 'login':\n $location = '/accounts/login.php';\n break;\n case 'registration':\n $location = '/registration.php';\n break;\n \n default:\n $location = null;\n break;\n }\n\n return $location;\n}", "static function get_rmu_link($path) {\n return RMU::WEBSITE_URL . $path;\n }", "function completePath(){\n \treturn $this->path . $this->name;\n }", "function getAbsolutePath() ;", "public function toString(): string\n\t{\n\t\t$url = $this->base();\n\t\t$slash = true;\n\n\t\tif (empty($url) === true) {\n\t\t\t$url = '/';\n\t\t\t$slash = false;\n\t\t}\n\n\t\t$path = $this->path->toString($slash) . $this->params->toString(true);\n\n\t\tif ($this->slash && $slash === true) {\n\t\t\t$path .= '/';\n\t\t}\n\n\t\t$url .= $path;\n\t\t$url .= $this->query->toString(true);\n\n\t\tif (empty($this->fragment) === false) {\n\t\t\t$url .= '#' . $this->fragment;\n\t\t}\n\n\t\treturn $url;\n\t}", "function url($path){\n global $app;\n return $app->request->getRootUri() . '/' . trim($path,'/');\n}" ]
[ "0.73062706", "0.7116283", "0.70682544", "0.6755426", "0.65667075", "0.6556506", "0.6378996", "0.63314223", "0.628879", "0.6072747", "0.606733", "0.60082936", "0.59843796", "0.59759027", "0.5945031", "0.589713", "0.58799547", "0.5866492", "0.5853738", "0.57988876", "0.57671726", "0.57262003", "0.5705853", "0.57014585", "0.56844026", "0.56425256", "0.5641848", "0.5629355", "0.56138825", "0.56099993", "0.5609768", "0.5588568", "0.55636144", "0.5562369", "0.55608565", "0.55377936", "0.55375636", "0.55336", "0.55000216", "0.54844546", "0.5483926", "0.5466138", "0.54649603", "0.5452416", "0.5430154", "0.5429653", "0.54271466", "0.5417035", "0.54120505", "0.54106075", "0.5405776", "0.53854597", "0.53819937", "0.5379901", "0.5375441", "0.5375441", "0.53747535", "0.53742373", "0.53740174", "0.5366123", "0.5359593", "0.5359203", "0.5357425", "0.53541", "0.5335537", "0.5335537", "0.5335537", "0.5335537", "0.5335537", "0.5335537", "0.5335537", "0.5335537", "0.5335537", "0.5335537", "0.5335537", "0.5335537", "0.5335537", "0.5335537", "0.5328605", "0.532714", "0.5327087", "0.53262514", "0.53244275", "0.53184795", "0.53028685", "0.52991354", "0.5296593", "0.5290742", "0.52907115", "0.52893513", "0.52889717", "0.5286802", "0.52813506", "0.5280652", "0.52797425", "0.52745724", "0.526935", "0.5268873", "0.5266682", "0.52665645" ]
0.7380207
0
API Function to generate a url path for use by other modules/themes. Example Usage: $path = getdirections_locations_path($fromnid, $tonid); $url = l(t('Get directions'), $path);
function getdirections_locations_path($fromnid, $tonid) { if (module_exists('location') && is_numeric($fromnid) && is_numeric($tonid)) { return "getdirections/locations/$fromnid/$tonid"; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getdirections_locations_via_path($nids) {\n if (module_exists('location')) {\n return \"getdirections/locations_via/$nids\";\n }\n}", "function getdirections_location_u2n_path($fromuid, $tonid) {\n if (module_exists('location') && is_numeric($fromuid) && is_numeric($tonid)) {\n return \"getdirections/location_u2n/$fromuid/$tonid\";\n }\n}", "function getdirections_location_id_path($direction, $lid) {\n if (module_exists('location') && is_numeric($lid) && ($direction == 'to' || $direction == 'from')) {\n return \"getdirections/location_id/$direction/$lid\";\n }\n}", "function getdirections_location_latlon_path($direction, $latlon, $locs='') {\n if (($direction == 'to' || $direction == 'from') && preg_match(\"/[0-9.\\-],[0-9.\\-]/\", $latlon)) {\n $out = \"getdirections/latlon/$direction/$latlon\";\n if ($locs) {\n $out .= \"/$locs\";\n }\n return $out;\n }\n}", "function getdirections_location_n2u_path($fromnid, $touid) {\n if (module_exists('location') && is_numeric($fromnid) && is_numeric($touid)) {\n return \"getdirections/location_u2n/$fromnid/$touid\";\n }\n}", "function get_directions( $location ) {\n\treturn directions_base_url . urlencode( str_replace( \"\\n\", ', ', $location->address ) ) // change newlines into comma+space so google maps can process it properly\n\t . '/@' . $location->latitude . ',' . $location->longitude . ',17z/';\n\t// https://www.google.com/maps/dir//6850+Lake+Nona+Blvd,+Orlando,+FL+32827/@28.3676791,-81.2850738,17z/\n}", "function getdirections_locations_user_via_path($uids) {\n if (module_exists('location')) {\n return \"getdirections/locations_user_via/$uids\";\n }\n}", "function map_directions_link($location,$latitude,$longitude)\n {\n return \"https://maps.google.com/maps?ll={$latitude},{$longitude}&amp;z=16&amp;t=m&amp;hl=en-US&amp;gl=PT&amp;mapclient=embed&amp;daddr={$location}@{$latitude},{$longitude}\";\n }", "function getdirections_locations_user_path($fromuid, $touid) {\n if (module_exists('location') && is_numeric($fromuid) && is_numeric($touid)) {\n return \"getdirections/locations_user/$fromuid/$touid\";\n }\n}", "function getdirections_location_user_path($direction, $uid) {\n if (module_exists('location') && is_numeric($uid) && ($direction == 'to' || $direction == 'from')) {\n return \"getdirections/location_user/$direction/$uid\";\n }\n}", "public function getPathLocation(): string;", "function GetDirectionURL($type,$origin,$destination){\r\n $url = null;\r\n\r\n if($type == 'findway'){\r\n $url = 'https://www.google.com/maps/dir/?api=1&origin='.trim($origin).'&destination='.trim($destination).'&travelmode=driving';\r\n }else if($type == 'where') {\r\n\r\n $url = 'https://www.google.com/maps/search/?api=1&query=' . $destination;\r\n }\r\n return $url;\r\n}", "public function getRoutePath($onlyStaticPart = false);", "function addPointToPath($newLatLong, $trip) {\n $jsonRouteFilePath = \"cricketTraveledPath.json\";\n $error_msg = \"\";\n $result = false;\n \n //read the old $lat and $long from the $jsonTravelFilePath\n $tripPaths = json_decode(file_get_contents($jsonRouteFilePath)); \n $lastLeg = end($tripPaths->{$trip});\n $lastLatLong = $lastLeg->{\"endLatLong\"};\n $lastid = $lastLeg->{\"id\"};\n \n //get a new encoded path from MapQuestAPI\n $mqString = getMQroute($lastLatLong, $newLatLong);\n if($mqString){\n $mqResult = json_decode($mqString);\n \n //create a new Leg php object\n /* looks like this in json format\n { \n \"id\": 40,\n \"startLatLong\": [ lat ,long]\n \"endLatLong\": [31.9494000, -104.6993000],\n \"distance\": 600.433,\n \"MQencodedPath\": \"}yvwEh_prQFwB??NoK??\\\\iELiDBy@???G?y@@sEAa@??G?kA?E???A`@CrG??BbABlGEnCIjCKnBGnBYjF?xBFvB`@~DRpBNpAFt@H`BDrA@d@C`GAdBGbCAtDAfA?jA?dG?jB?~@?T?xC?`CAbE?~D?pK?`H?~C?vA?`@?L?b@?fA?`D?lC?lC?vA?dB?`H@~K?rHA~B@hH?^?zE?|E?`FBzEH~E@jF?`B?lABnW?|A?fI?|A?nD?|A?zB@jT?xA?h@?xEAjC?rB@bFCxCGdBUvCUhBs@~FWpBa@|CS~AkAhI{@lGS~AGx@[fCeBlM{@nGOpAWxBg@zDoA|JSbCS|BUpFGtCC|D@vD?pBBtLBdI?pBDxL@pKBjHBdBLjI@vEDdQCff@?~A]xb@G|P?tPBd]Gx\\\\E~LA~L?xAArTFfFRhF\\\\`Fb@|EpAtHfB|HhAvDzCzJtIbYjFtPdFhPVz@x@fDj@rDf@fFJ|E?hD?nOBfTAzN@|L?V?tI?rCExBMlCGpEDhBArQ?bA?pHAbI@bICzFAfA@lDClC@vH?jI@`@CvC?rCElBG~G?fTAdRBtL?zJ@t\\\\AlQ?pQ?v_@?|B@|C?jB?`HBrRAvc@@xQ@zPAfd@??^?~a@@??DrALn@tApEVhAPjAFpCJtBBre@lC``CB|B?R|@ds@LtOArS_@lSqAhf@mB`v@YlOSdVD~JP|N|Bfx@Rv`@i@dc@_Ap\\\\IjKGpS@pnA@pc@AtCBte@@|d@?zBKfNq@xJMdAmAdJ}ExR{HpX}HhYsHfXqBtHqEdPwCdLqCnNmA|IkAdKsAhQsBbVoClVqD~VkElVqExTuD`PuO`l@qFfTeGxTgGpU{\\\\ppAeBtIcAhHm@lHYrHGhSF~PApV@|_AHb{BJdZd@j\\\\n@pZZpWBzTObR}@p^[hUIx[D`UA|i@QlQy@db@wAhd@cAv`@UpULtU`@hQd@zODjAzA`h@~@p_@\\\\jT?j\\\\F~N@z`ABrJ?vBFd^Dzi@E~L[|Oq@`LsAbMsJpv@mMjbAoI~m@eAxIeEd\\\\yC~Ts@vJUlJPdIp@tIpA~HnBtItCxHx]rs@lXdj@~GfNrC`G|AvDz@~B|@tCnBdIrArHdAxJ^vGNtHEfFOxGk@zIUpBy@`GsBdMiXndBu@jFgAjKc@rG]bHO`HG|NCt|@AtV?hAAv_@C`NEzwA@nGIdgA?fAAzXQtNOdISlIWvHI~GE`I@pFLdL`@|NPhLD~CHhLGv}CQpY]pVCtM?dIXhWPd[Adu@AdSMvrHOvN[zM_@tIo@zKg@|Fu@hIo@zFuAlKgB~KO`A_Hba@{BfN}CxQqAzIe@tDiAtKaA|M]vGc@pMMpJErHBhVBpe@@lA@~p@?~A@xUCbKB~^ApO@zn@G~lCBfgBA~M@lEAnYBtGCdDBb]BfE?|d@CvDBdFC`HDvT@b`@B~DTdERfBh@rDh@`Cz@pCtB`FzAnCxHrMjM|SvDlFtBdCjAlA\\\\TtE|D|CrCzF~E~@r@rBrBpBhCdAbBfBfD~@fCp@vB\\\\nAZbBj@dEPxBJhCHpHBtSA|V@~A?`PDzHN|JDlBl@zKR~C|@jK~@`L^nGH`EB~FK|GGtAUjEqC`[mA|Nw@hNOjEOzIK|z@?dr@EpMMjdC?xAc@t{D?hSGn]DlIJ`HXbINvCf@tGVlC`A`JtAfJnDxSt@rEvGp_@hEbWv@jE|@bHt@fHb@`Gb@vJTbIHzK@fSAfk@Exo@C~CBzNMdsDRpLXjHj@rIV`Cx@hHb@~CnArHRl@l@dCn@rC|@zCt@dCnBdGnCvHpAdD~@rCfAtC`E~KrGdQnArDbF`NhArCxU|o@lDnJzDdLfAbEp@rCj@vC`@dCd@rD\\\\xDRpCVvFDfD@|EItEeAx\\\\QdFMdFGnECrEBdHLxH^rJZxE`@tFvAvMbAbJl@fF^fDdD`ZrBpQjD`[TxB\\\\fD~AbNbBdLhCjLt@|CtBdHxAlEhDvIjDrHHPfD`GrBdDvGfJvFrH|EfHzEbIpC~FhC|F|@~BvD~KzBrIpAvFx@rEHVz@dFhA|In@zHNbCLpARdETtHF|FE~_B?pU?bB?rUCb]?npAE`KAfj@Cv~A@|IClM@rXA~ZBjENjFN`DRjCp@lG~@bGXpAZzA|@tDfD|KbA|ChEhMhXvy@fAtCzEjLhB|DlEfIvCvExEbHxApBnG|HtI~J`HlIpAxAp@n@fDfEhFfGvBfCfAjAhAxA~DtEp@|@vCfD|InKdAhArAbBdF~FdFfGtAxAnHdJlCrDjEpG~@zApDtGf@hAj@`AzCvGrB~Er@hBzCdJxAzEjCvJ|@~DdAlFbBlKjEp]^pEf@rEdBfMb@vDrBhLhAlFbC~JlAtEdEvLxBvFfDvHzBtElU~c@xCbGzPn\\\\vGzMdBfEv@jBfCnHh@jBx@rChBhHrAhG`AdGdAbId@~D`@nE`@dGZhHNnG@tI@vnB@nTAlo@KbHQfDc@lF_@rDc@zCcApFy@jDwBnI{B`Ie@lBuBrI}@dEm@hDeAfHe@`Ey@~IWtFGnBMdJ@nIFdEBx@FdCNhCl@jIZ`DZlCbAnHx@|DR~@jAnFx@|C|EnOfAxDrBdJ|@dGVnBd@|FPhDLjEDh_@NzqBDvgACtILvlBDbEPbFLdB\\\\`ED`@~@~G\\\\fBl@jCh@rBbCnIrArDxAjDpDnG|A~BjA`B|DtEj@p@pMpMj@h@rD~DtHtHpCvCrJxJb@d@~TtUlMtMz@~@jd@ne@jKnKrDxD`DlDzD|DzAbBrBhCdCnDdAbBzBfEdA~B~@|Bz@`C`AvClAxE^dB`AzEXdBl@rFb@xFNpCFfBDnC?|PAlHBdz@CvK@hKAfb@KfJChJIdFEdHu@dWGtDOjDO|EUvKCzAG~ECrECxE@tIFdHL|G\\\\tKh@hSLrDR~LVjTBrG@xIBxGArODv\\\\?rkB?nSAjAB~GC|GDpFn@xI^`CnAxE`AzC`D|HbBxDpFnLtBlErQpa@bBfEbBxDxLdXz@vBrHjPrQva@pFvLbDjGfCjEzSp\\\\tWha@lDvFzEnHnIdMhBdDnEvIpGhNrBzEfCnFtGdOdChFtCzGrClGnHtPdDfHtg@jiAfAdC|CtF|CnFfHvKhB`CpD`Fn@t@dC~BxNzL`OrLdDfCpYpU|PbNfG`EvChBvC`BtIfEbGlCbA^xAl@zCfAjElAxBp@`Dx@`Dr@jI`BpEv@zGtAtH`Bf]fHvFlArPbD~KbClAVdF~@|RhErBd@tQnDdIjBlGjA~PlDlHdBfFbBxD|A`EhBvDlBjAr@vCjB~EvDhGfF`CdClBtBvClDxCdElDtFxCtFlBbE~ArDlCnHXz@x@jCbBfGfBhIf@pCn@vEp@pEv@lINvBVdEJpDJlF@fHGloBEfJO~rDDzI^bRb@xMj@hLjApPj@xGn@rG~@hI~@rHjAdIfAjHzAdIbBhIlCfLxEnR`ChIzCjJrBvFrB|FlCjHbDtHjL|Vz@rBvJvSpCrG~BzExIzRj@pApHnOxApDrHxOvHnPr@hBhAzBnIxQpDdIpB~EtAhDzBhG~BjH~BbI`BtGdBrH|@vEzA~I~@|FjApJr@rH|@~Kb@bI\\\\jIH|FFbHBpEElJF~bAFvPPtQPxKNfGv@tVd@xMJpAdAzTnArTdAzTPrDtB``@~Ah\\\\x@bXh@nWLjJNxX?bZEzZEh[?hC?vSAnBQveD@zKE|UApV?dACbQK|CS|JSzG_@fJgAbR]hDq@dIgArKyPpxA]xDkA|Og@|J]dIOxEQpNErRN`MRhGx@lRbSfrCr@~Jv@bMJjBnAbVBzBl@rQNjGJnMJvpAA`IBrlABf]Aj\\\\FpcC?fxACjJ?|BCjzGEf}@Bjm@EfrBEft@Bxg@CjqBPr}CIpGMdGItBSzCWzC[xC_@vC[xAo@jF}Mr_AoDbWO`BYzEQbFExCAtCBlDRtGhA`QbBtYz@tMPfDr@tKXhFp@jKjBzXz@`Lb@vGV~DzCda@^zFz@fL^hHJ`EDjJ@dYCve@IxOCv[?buAGzTAhfABdMCfFBj^@`JDvb@Ilc@O~EUnBg@rDgBfLUfDiEzjAgAf[E~B?tBD|BPvD\\\\dFXrBh@rC`AdEfCzJvA|GTxATjCN`DB`A@xGC~cAOfh@GpH?tDCvHBvHAxh@F`UHxHJxQ?jQAzX?l^?pZDnf@Ad}@Uxm@EnYJ~j@LbRBtU?jqACva@BdXC`WAd_@Sh^?z]F|LNnHR~Nb@lVDnNE`IAnn@A`r@N|tBFtYDhy@@bE?tGMlM]fSOhHClCEl_@@xICby@GhF[|G[`EoBvYSzCiD|d@s@zKI|E?~F\\\\fJp@dG^zBh@xCf}@bgEnAlH\\\\xCXzCRzCN|CxKdoCnBvf@|A`_@lAj\\\\|Ab^HdD?dDMvFUdDI|@cBtM_DvSa@bEGbAKxCGrD@hw@@nBNtCR~CPbBp@|EbCvOvCpRt@hFd@~Ej@lHJfKA`DIvFItBOvB[tD{@fHoF|ZgA|GY|CSzDC|ADfEFbCj@xF|@rE`@bBnApDr@dBx@`BxB`Dt@bAvDtD|ErEfFnErFhGlA`BlBtC~DnHxAdDjBfFt@pCxF`Qh@`BbFdPb@rAhCbGfA`CjBhDtAzB~DrFxBpCfL~NtNrR`AlAbNxPdB~BxD`GrBjEz@jBhOd^zNv]hLhXvCfJd@lB~AjIf@rDr@zHXdEPnGClJIrCcAbNaBzOeAbK_Fdd@k@`GqBfYqDbf@a@|FYlGKtEA~ADlGP`Fp@zJd@xDNbAp@xDl@xCz@tDx@pCxBtI~Hf[XpAjAlJl@xFZbN@rNGl[[`G_A|Jg@rDwBtLeBnHw@jDoFpW[tBSdBe@nEMzAMlBSlGIpYD`LGfVEtwDH||@Sv{@?dSRxIf@vJRfChChYdCnWPdCL|BF~BB~B?`CA~BI~B{Czr@u@~OGl@EvAWnEo@hOyCvq@O|BSzBaHdp@sJn_AgS`nBqFli@_UrwBe@|Dw@dFSbAkAjFgA~D{AxEwBlFwDtGu@dAkFrHsOnRkAvAeLdOqAnBoBvCeEdHaDhGuHzO}@nBcL`V{AxDiB`Gc@jBc@rBe@rCc@zD]fDE`AQlEChE?xDJvD\\\\hFjA~KXhChFhf@~@~HxGpm@tGnl@XxBv@xHn@fI^|F`@bLF|DJjJCt}ACdr@Alt@Cx{@@lUEdy@Aje@EzPGpB]fHM|EEdEBjGH~Df@vLDvC?ru@A~{A@lVArS?tkBCva@CrmB@p]GhmBErsFOfH_@lGk@xFIf@}@xFw@|DwAjFuJ`\\\\qPdk@cBnFoEnOkDhLqOxh@qEjOuAfFy@pD]dBy@rFc@rDOfBOlBObDG~AGjD@jx@RhcD@ff@C|g@L~eBJvzBAfh@@bh@FpSHlFHp\\\\FfLJv`@~@||CFnb@?nLFjp@\\\\zvCOvm@Q|jA^lHr@|Er@|Cx@jChAnCbDxFry@zmA~DrGxBpF~AjGn@nFVnF@nEGfyCAd\\\\AlB?fNDfDF~BFfAXbDLtBJrB~Dji@xBfZNrB|B|Zp@tJf@fDd@pBh@nBbApCx@pBnAvBxA|B|AjBp^rd@~IvKxA`Cn@lAnAbDnAzEt@|EVrCL`DFnCB~P?fD@f`@AfB@fPOjNI|FAlD@jTApWLjsA@bHBzPA~K@tCCdL?`JD|i@H`g@?jBCj_@Bvr@@`QFfJBbCDnK@dN@bR?dCCfRArDGrBOnCi@lGmA|REhA?vB?zJ?bC?r\\\\?xBP|RBjAn@xS~@jXFbCR~FJrDD~T?dC?`O@pCBvMAdR??i@rD_@~@[h@??iDfEuBvCc@fAETM`AA^@n@H|@Jd@L\\\\\\\\l@jB`C\\\\XZNXH^FX@ZCTE\\\\Kh@YNQT]z@}A^e@TORKn@Q`@CjABpI~@~Fr@tAJrGBdEAnEAfCRNBjAP|Ad@z@ZhB`ArAz@rO~Jz@t@h@f@`@f@x@lAn@pA^`AV~@XlATzAHbAFtC?zO@bE?vNHhCJrAZtBd@vBlArDx@bClBfF|DtK`EhLbFfNr@dB|BpEfCpErBjC~ApB|AbBlBfBzAnAzFzEbNbLtC~B|JhIvBdBvDfDjH|Ff[fW|InHfIrG`CjBhA~@rPhNxAnAtPdNp\\\\vXlO`M`JrHd]~X|BhBbGrEdGdD|EjCdEtBdStKrHbEdBx@jDxAfEzAhBh@hEdAdFbAlGr@fFp@ho@fIhh@tGziBpUpZvD|SlCx@Fr@BlGAbb@BvU@zQ?dVBzp@D|g@?jO?dg@BzLFhC?|H[lOs@pBW~Bc@rBm@jBw@nDqBhB{AhHwGbA}@pLiLf[aZ|[mZzTgTbD{CfT}RbF_FpDgDxG}Fl@e@xEqDvBgBxB_B|MgKjLwIbLyItQmNnC{BzL_JfEeDrB{AlWgSpFcE`W{RdDoCfBgBna@i`@xeAycAlQqPnBgBtByApCiBxEcC~CoApDkAhEgAdCe@vBYpDYhCMlAEr\\\\IzMCvr@?jMB~fA?baCJhc@B|DFfh@FfBB`v@TvhAVbKCfTo@t`@?zJ?~gABl`A?vb@Cj}ABf~A?~_@?bC@dMAz]B`LG`J[hE]dTkBhGa@~LKzNB|GAjSAr[Fz^BzC?t`@Clp@?hQDxC@`IChEMzBQrCYbBYxXaFjjIm{AdlAmTfGqA|C}@r[cLhc@qOjVsIra@uNhnBoq@dHeCdNyEt_Ak\\\\di@aRjAe@nGuCbDsBnDgCxPmNlDmC`BaAfAk@lCkAdBk@~Bo@jDo@tBS`BIrBEzC@x@BrALbD\\\\tM`BxCX|I`AdBLjDJlRDxp@?p}@FvIBrZ?pLDlJDzCPxK~@hDPz`@DpGArh@@lC@nCC`ACjBOxC_@r@M`EgAxAc@hDwAnEoBzVaLvt@e\\\\jr@e[`j@iV`CcAfBk@|C}@rBc@hDi@dC]nCUjBI~CEvJ@jVCvfAFzOElHF|m@BbSEzP@tJAlQDzS?xl@@`NC~K@pR?t]HtG?`\\\\Hjd@Ifq@C~_A?xBBvDGnCKtAIzDa@rASzAYzA]~DeAfBm@~@_@~DeBlDmBv@e@re@_^fe@w]|JwH|m@wd@pi@ka@fKsH|MgKfSgOfAu@|A}@bB}@fBy@bCeAdDkA`HyBlGmBtHiC|L{DjNsE|g@kPzQeGbJqCtNwE`MgEnxB_s@t|@gYbMaEpr@{TdwAwd@lEkAvDg@vc@[zg@g@|ZWrJGtJDtG\\\\lARrE`AlExAdLtGlCxBnDzEfFdG`GbHz^hd@nKzM`F|FpHrJdTvWbClClEpF`L|LpB|BjHjIxFxFlGlHzHtI~RvU`IxJzAdB`BxAnAz@hAn@`An@zAp@fBn@zBn@lCZ`BJjBDbF@bUSbJAlB@pMMpDBpIb@pRr@nDVnI`@dG@hDItDUpKu@nGk@nKu@nKw@l]uAdO]jk@mA``@Sph@Q`LKvAAlO?vH`@|HdBbIlDfAr@jB~A~DdDjOtTvAnBlS|XxE~GbOhTtE|GnAtBhDpGjD`HlKnOrMjRrIrLfUp\\\\jHtKzChFtd@feA~_@l}@fSle@ls@haBhHzP|FrMbJvOzEbH~D|FzJhNxDlEtBxAdAf@`GfBtEn@p@@lIJpa@?vERpCf@bChAvDlBfCnCdAfAtCdDpGnH`EjFrGlHhExC|AfAdHvCvDlAjBZ`F`@pZNbdA?pWD|e@E`nCLbt@@pGBrZAt_@Qj^@hfAFtsBQbZKxU?fLBbKFne@@xU?|]Frk@Fp_ACvtAAx^AtKCxBCxAAdEEnTDbHFnO?xkAGpLKvFe@vHkBzEwBvFuDvDoDhJaL|HmJlOyRfByBl@u@tBgCdBsApDsAhCUxKB~RDdYGfDCpM?xCAnEB|JEnEOfCWtBY|Cq@pA_@bBm@dIiDnBu@tDkAvBe@`B]`Fq@~DYbAE|ACp{AQvz@?t]?v^Ely@Gh`BCtP?vA@fBDbADfAN~Bd@dB`@jCr@bFlB~B`AbNtFlCbAfA^vDbAlCl@fBVzCXvCTbBHfBDjP@~H?zR?xAGhBMvAQlAQfAWjA[zAg@jAe@dEuBrAq@v@a@nBu@jCs@~Bc@nFa@bMAxLAbCHvCPbKlA~BRnFTlA@~BBzDFvF@|JJfDEzCGvAQnBYfASdAW~Ai@zJwBnEeApD}@tLqC|Bi@hDy@t@QzCe@zD_@rAItEKlB?|C@fOG~a@GzB?hSGpYCpSIbB?xBD|BNxBXjCb@dDZlCLvC@j]GbD?z^IpBIjBSf@IvAMvEw@`AKnBIp\\\\MpDA`ME`GIxJCjBBrGCxGIpX]bEC|B@bE^fBR|B^tCz@v@T`Bn@hAh@vC~A~@n@`CjBjFpEv\\\\xXnCvB`DzCnBtAbB~@rAh@zA\\\\vC^t@Dj@@xBAnBQ`MuAnEe@d[iD~AOlCYxCi@rCm@vBk@t@WlG_C??dAU~Am@`A]xBeAzIyEl@YvB}@t@U`AO|AI??l@RNRLXAvADzA??FrB@|@Cv@UzCIrB??u@pHc@rFIlECvB@fE@p`@?zD@\\\\BzJBnbAAl^DvCFdBLdBr@tEd@lBl@jBt@fB|@`B|ElI|JlQvPd[tIjPrWvg@zDdJjD~HtCjHjDxGbE~G~BpDfB~ChA~AbOdVlCbFvHrNhKbRdDzGfBhE`FbMlBxEdDxHrAnCz@~Ab@x@nB~CbBrCdF`IzEtHbJnMrGfKxEdJhEbIbElIzAnDzE~NnBnF~DdIpEhIbFhI??|\\\\dm@fEfIxBtDbHzMvQv]nAfC`DzFpBxDpDdHzJnRtCtFjBzD|BlE~J`Rt\\\\no@jA~B^~@Xj@fPrVjDhF~BrDbDtDxBzB`CpB~CtBfE`CvFvB~RtGrMlEtDjBlDdCrCdCfCtCdCrDxBzD`CxGrAjEt@xBzC~IjAbFz@vG^vE\\\\pQZxZFz@DhAt@tGvBlLjArG^hBj@|Bf@fBpBjFl@lAnYfj@~IzPrEhJbBxChHhNdc@zy@|Ttb@`GlLtKvS~BrExOzYhGpLbGtLbCdEp@rAtAlCdu@fwAdN`X~h@hdAxPv[~Sr`@|g@vaArF~Jh\\\\xn@vIlPjUlc@`BlCbArAt@|@~@`AhAbAjOjLzWfSfOfLvBpAZNXCtCvAlAr@|AfApDrCtDtC`FpDfCjBnCzBlCpCJ`@j@n@nArAnBbBda@xZxc@x\\\\zi@`b@r[`VvDzBdD|A`NtFnHpCfHtC`KbE|X~KzFxBbm@bVvj@xTxd@zQd^tNjH~CnBv@lBb@`EdBfQ`HdFrBbJnDjChA~ZbMvTvIrb@tPzu@nZryAjl@nyAbl@dzAll@vIlDh^tNdp@rWlTvIfS|HbFrBfO`G`LrEdK`ElVtJnW`KvJbEfK~Df|@t]~n@zVrTtItb@|PdA\\\\bBj@|@XnB`@t@LpCT~DHjIJvCFpEBvAA`DGl@Eb@KdGClE@tEB|BCpA@rBOxANhB?bB?tD@V?f@?L?b@?D?X?t@?`C?rBAjA?b@AZ?T@R@ZFFB^J\\\\`@VD~AfAf@P^Fb@BnC?|ECvEAhE?nE?v@Fj@Jz@Xj@ZXTVV`BvBb@D??\\\\p@`BlBbAdAzUbXdBfBrFdGnArB~CnF|CrF`DlFlAlBrAxAnDtGDd@~EfIhC`E|AxBtAxAvAlAfC~AjCxAnAv@`@\\\\|B|BfArAzRfWtCzDpE|Fn@|@fAlBf@bAl@xA`ExK\\\\x@n@rAvAhCxFxHxJfMvEjGvn@by@fVd[jMtPhQbUnLrOrDpEzElGdRnVjG`IxBrChs@x~@dc@|j@v{@~hAvI`LbLjNjA|Aja@rh@~q@~|@hRlV`q@b|@jF`Hp[pa@jb@hj@hQxTtG|HxE~E~AdBXH~ApBV\\\\hDbEV\\\\X\\\\vCtDdKxMxBtCNb@tBvCxG`KlAlBlHjKn{@lhArUrZjaBhvBzOrSdg@ro@jCpDdm@`w@|NhR~AjBjVj[|G`JnHfJj]~c@dP|StHrJt~@dlAbC|CXXnAhAbBhAxBfArAh@T@zAr@zAx@`Ax@Z^l@x@V^j@nAZbA^|APfBFfB?nHBrBFtAHt@RnAVdA\\\\dAj@hAT\\\\fArAZXhAv@rAp@xFdCvBbAjAx@x@t@j@n@~@lAva@bi@fBhC~C|Et@jAbCvDzF`J~EtGxEfGvCrDtCpDjA|AfAvApCrDvEfGz@fAfCbD`LxNnEzFjGbInPdTrIzKnJzLHXhBdCbEtGvBxC`ItJpDjEdRlUfS`Vzy@rbAbNnPfPlRrp@|w@|Yx]rMjOzVvZ`j@dp@fDpC|CpBfEbBrFrApBd@vCPjCJrmAI~OH`[@bm@IhMBrp@CpKGrAApJBxg@GvRGn]Lrc@Kju@A`VEhUDrl@CZAvTL`V@xd@KvF?bSDfBBvbAGn@?jE?`E?fj@Cx`@AfB?xCLpAPpA\\\\`Bh@`GhBfCp@`Ch@t@Pf@CvJpClEtApEvA`EnAPFnDhA`@LnEtAfAZzAXl@FfAHfA@zIChGAdGAhGGpEA??ArF@xHAzD?~CCxACbAKxBCn@e@xFq@vFcAlFiAxFy@~DuEpTcBtHoGt[If@_FtVe@jBg@|D}@bE_A`IKfDEbFFv`AHxb@A~^FjaAStw@?tJHlf@DhjBChkBE~iB?djB@~X?hjCAhN?f`@Hnw@Czr@GjpAFvL?fg@B~HCvPYhLYjOU|IA~EBbyBBrnBBnLIjJ[jK_Ax]oAve@_F||AgBlp@VtXz@fv@v@ru@r@vd@n@xn@JhO?~_ACrp@Fvu@Fp\\\\Bv~AAdc@AlU@fEDd[BvMJ~G`@~SR|I`@dSj@~YRzTNhQJfLRlUHdJRnUH`IJnJDdBJpBH|@ZjCPbAf@`Cx@rCdAlCbAtBfAjBv@dAnAzA`A`A`T~Q~FbFjHrGrJnItFxE|EjEfDrCdA~@f@b@nAfAtN~LjEvDjPrNfB|AVPR?\\\\XpAhAfHjGlC|BzFbF|DhD|BnB`Ax@f@d@Z`@n@~@r@~A`@lANt@ATJ~@H`B?vB@xF?z@D\\\\@xCAvF?rF?xF?vFAxF?vF?vF?vF?tFA`F?RAdA@~K@vFAjF?nF@j^?pCAjBAjEBd\\\\AvH?hN?rU?rT?rF?|Q?f@?zGKl@?pG?pA?dBCjR?LPlAE~nA@bECfc@?nC?fLA|r@?^?V?|D??K\\\\E^A~^E~{@M~xC?rFEti@?jICxb@???p@Cbe@?lb@Era@AnM@hSIna@Xn}EA`KB`vARv}BAdZFxEPdFVzCZdDd@dDz@dFx@xDhA|DzAnEdBbFpEjMhFtO`Kn[nDlKlNda@la@fkAfSpk@`dAtwCzm@jfBdn@dgBlKnZpg@rxA|Wtu@dCjHfDvJtNda@dA~CpJjXb]xaA`_@bfA|]rbAz_@vgAlDnJjD`Kn@vBrIzZbc@t}Ad@dBbb@d{A`C`Jdo@b}Bxj@tqBjn@|zBfMfd@r\\\\nlAfB`HxBrJbiA|xFdc@|xBvN|s@hAbFpBtHdB`Gb@dBjQho@jJz[rHbXnAzElAfEhg@lhBt@dE~@dGf@jETvDRhF^~PdAtb@f@zT`DbtAb@fQfDpwAnAlf@hClfAd@lTvDv~Ar@jZVtFp@pM|HbyAbPt|CvDxr@nAhVlB|]^jHHnCFtDCdDOpGYlFwTzbC_BjRsMjxAcHpv@{OpfBuJffAg@pGQxFC|FFtETjG^vEd@lEt@rEj@tChAtEhArDbAnC|qAx~CxKpWzQdc@t@fBnB`EpBpDhT`\\\\x{BbiDlRjYhF~H|s@~fAdQxWb\\\\rf@pOtUfSnZjF~H`Ynb@lMnRtJbOlEtG~I~M~AdCh[be@fDrFhAjBbC`FjCfHd@xAxBlGtDvKnGfRdBdF`K~YbGbQrDrKlFtOvI`WpCdIlRlj@tGlRtM|_@zIfWlBxFxAdEdA|Cr@xBZfARx@RnARhBDx@FvABrA?`BAlC?j@?\\\\CnG?D?J@fC@`C?bCA|BAdC?rBFR??P?vC@b@@h@?lA@~@?\\\\?~@?jFB`JQ`GMpBK|AQbAOjB]`B_@zAc@fAc@dAc@h@[bAk@P[\\\\Uf@[lAeA~BcChHqIn@k@pA{@vAo@x@WvPuDdYgGjGuAnCk@pAY~Bg@JCVDxEu@dD]tAGjAB`AFx@LNBxAd@xAt@ZRh@XPJP?zCfB~HxEpGvDxJ~FnC~AfAp@lDtBjAp@h@ZxHnE`DlB~D`Cr@b@JFj@\\\\d@VdBdAh@ZdJpF~BvAbB`AhHjEz@f@B@lAt@hAp@xIhFhWlO~@h@HDLJh@ZJFjYzPlBjA`DlBtGxDfL~G`CtAjp@n`@`@TlVzNfAn@HPrBnAdJfGj^jTt@d@fCpAzEtB~s@nYrEhBf_Ad_@~\\\\`Ntn@zVhEbBxB|@dJpDnKpDpBv@bNjFxEnBpVtJlTzIzw@f[nIhDnIfDrd@vQzIpDzYhLfUdJpLzErLrEnOfG|KrEnBz@pNpF`ZpLfE~Aht@vYtKlEhVlJdI~CjElBzBz@zOxG~Bt@`DpA|CvAzDxBbDzBjA|@pAfAlAjAnArAlArAjAzAvPhUbClDlJ`MdA~A`FtG|P|UjOnSbB`ChDjEn^`g@nFjHlL~OhB`ClAhBvGvIxC`EtB`Dp[tb@pC~Dz@pA~BbErAxCp@hB~@pCj@nBbArE^pB^hCNjAr@lIbAhMHbAv@tIRhCLhA`@xB\\\\xAt@fCDJn@dBTf@hAzBt@jAv@bArA~An@l@rBfBnFjDZTjBhAbFbDvAx@hKxGjAr@rLlH`C~A~PvKdOhJfLlHtBnA|BzAfCxArCfBrQfLjJ`GxBxApIdF`HlEdFdDlDtBzB|AhAn@`_@nUvEzC~MpItBnAlCdBtD`CfNxIvSlMlJbGzCnBpC`B`BjAtBnAnFlDvCbBnHtExE`DxAv@~EbDtEnC|GhExCnB~MpIvKzGxCpBhBdAtAbAP?zK`HrK`HlM`IhCdBfCxApBrAtSlMdM`IvNzIdC`Bj\\\\tS|@l@lN~ItN|I^VjCbBfNrIlAz@lBnAjNtIrEzCrHvEx@l@nS~L`JzFD@hMdIlC~AhG|D`W|OpRxL~GdEfIlF|IlFvClBdIbFhIdF`ElCdKpGpLhH`HnEhDrBlInF`DnBpm@p_@nInFvFrDbV`O`NpIvRvLdAv@~AtAhAhA~@jAjA`BfAnBjAfCl@`Bj@pBt@lDfIzc@zAdJ~F|[|^vqBnHva@L^DXrAnH`ArF~Fp[bs@f|D~DrOxa@hpAl_@fiAlGnUlDtO`[vhCrE|b@pFxd@hp@x}FHl@h@tDh@tC^fB^vAv@nCl@dBl@xAlBrE|P|[tTnb@`J~PzB~DxA|B~ArBf@p@\" \n }\n */\n $distance = $mqResult->{\"route\"}->{\"distance\"};\n if($distance > 0){\n $newLeg = new TripLeg();\n $newLeg->id =$lastid+10;\n $newLeg->distance = $distance;\n $newLeg->startLatLong = $lastLatLong;\n $newLeg->endLatLong = $newLatLong;\n $newLeg->MQencodedPath = $mqResult->{\"route\"}->{\"shape\"}->{\"shapePoints\"};\n\n //echo json_encode($newLeg);\n\n //Push the leg to the end of the $tripPaths->{$trip}\n array_push($tripPaths->{$trip},$newLeg);\n //var_dump($tripPaths);\n\n if($newTripsRoute = fopen($jsonRouteFilePath,\"w\")){\n fwrite($newTripsRoute, json_encode($tripPaths));\n fclose($newTripsRoute);\n $result = TRUE;\n }else{\n //error using fopen.\n $error_msg = \"Could not open file.\";\n $result = FALSE;\n }\n }else{\n //No distance between provided point and last point. Likely the same point was provided.\n $error_msg = \"No distance travelled\";\n $result = FALSE;\n }\n }else{\n $error_msg = \"No MapQuest result given. Could not add Leg to trip.\";\n $result = FALSE;\n }\n if(!empty($error_msg)){echo $error_msg;}\n return $result;\n}", "function get_route($my_location){\n $route_start = $my_location[0];\n $route_end = $my_location[1];\n\n $loc_api_key = AIzaSyBFuL6yafR8BuhdbzupDAcorVH4sAO2YpE;\n //$route_url = \"https://maps.googleapis.com/maps/api/directions/json?origin=\".$route_start.\"&destination=\".$route_end.\"&key=\".$loc_api_key.\"&alternatives=true\"; this is for detours\n $route_url = \"https://maps.googleapis.com/maps/api/directions/json?origin=\".$route_start.\"&destination=\".$route_end.\"&key=\".$loc_api_key;\n\n if (!function_exists('curl_init')){\n die('Can\\'t find cURL module'); \n }\n\n $chRD = curl_init(); //RD = Route Directions\n\n if (!$chRD){\n die('Couldn\\'t initialize a cURL module'); \n }\n\n curl_setopt($chRD, CURLOPT_URL, $route_url);\n curl_setopt($chRD, CURLOPT_RETURNTRANSFER, TRUE);\n \n $dataRD = curl_exec($chRD);\n curl_close($chRD);\n\n $routes = json_decode($dataRD);\n\n return $routes;\n}", "public function getPathTranslated() {\n\t\t\n\t}", "public function googleDirectionsLink()\n {\n return 'https://maps.google.com/?daddr=' . urlencode($this->full_address);\n }", "function getPath($id = \"0\", $urlPrefix = '') {\n if($id == \"\") { $id = \"0\"; }\n $treeRecord = $this->getTreeRecord($id);\n\n if($treeRecord != null) {\n if($treeRecord->belongs_to == \"0\") {\n return \"<li class=\\\"breadcrumb-item\\\"><a href=\\\"\" . $urlPrefix . \"index.php?id=\".$treeRecord->id.\"\\\">\".$treeRecord->title.\"</a></li>\";\n } else {\n $path = $this->getPath($treeRecord->belongs_to, $urlPrefix);\n return $path . \"<li class=\\\"breadcrumb-item\\\"><a href=\\\"\" . $urlPrefix . \"index.php?id=\".$treeRecord->id.\"\\\">\" . $treeRecord->title.\"</a></li>\";\n }\n } else {\n return \"/ \";\n }\n }", "public function get_directions();", "public function path();", "public static function getPath($id);", "function timetracking_uri(timetracking $timetracking){\n return array(\n 'path' => 'timetracking/' . $timetracking->timetracking_id,\n );\n}", "public function createPathInfoUrl($route, $params, $ampersand='&') {\n\t\t$url = parent::createUrl($route, $params, $ampersand);\n\t\t\n\t\t//strip base url\n\t\t$baseUrl = $this->baseUrl;\n\t\tif ( $baseUrl && !$this->hasHostInfo($url) && strpos($url, $baseUrl)===0 ) {\n\t\t\t$url = substr($url, strlen($baseUrl));\n\t\t}\n\t\treturn $url;\n\t}", "protected function getPathSite() {}", "protected function getPathSite() {}", "function url($location) {\n\techo getAbsolutePath() . $location;\n}", "private function getPath() {\n return '%2F' . urlencode($this->source) . '%2F' . urlencode($this->campaign) .'%2F' . urlencode($this->content);\n }", "function piece_http_request($origin_location, $destination_location){\r\n $bing_secret = file_get_contents(BING_SECRET_FILE);\r\n $request_url = \"http://dev.virtualearth.net/REST/V1/Routes/Driving?\". //Base url\r\n \"wp.0=\".urlencode($origin_location). //Filter address to match url-formatting\r\n \"&wp.1=\".urlencode($destination_location).\r\n \"&routeAttributes=routeSummariesOnly&output=xml\". //Setup XML and only route summaries\r\n \"&key=\".$bing_secret;\r\n return $request_url;\r\n}", "public function getPath($id);", "public static function getPath() {\n\t\tif ($args = func_get_args()) {\n\t\t\t$path = self::_getPath($args);\n\t\t} else {\n\t\t\t$path = '';\n\t\t}\n\t\treturn self::fixSlash($path);\n\t}", "private function getRoute(){\n\t}", "public function getNodeRoute();", "private function createPath($numeroModel){\n\n\t\t$publicacion = $numeroModel->getPublicacion ();\n\t\t$numeroRevista = $this->generateNumeroRevista($numeroModel);\n\t\t$pathname = $GLOBALS['app_config'][\"url_imagen\"] . $numeroModel->id_publicacion . \"_\" . $publicacion->nombre . \"/numero\" . $numeroRevista;\n\t\treturn $pathname;\n\t}", "public function toString() {\n return url::buildPath($this->toArray());\n }", "public function routePath(string $value) {\n if (null !== ($generatedPath = $this->routingHelper->getPath($value))) {\n return $generatedPath;\n }\n\n return \"\";\n }", "public function path(): RoutePathInterface;", "public function path(): string\n {\n return str_replace('?', '', \"/{$this->route->uri()}\");\n }", "public function routePath()\n {\n return config('maxolex.config.routes');\n }", "private static function getPath() : string {\n return getBasePath() . '/miaus';\n }", "abstract protected function getPath();", "public static function getPath($id) {\n\t\treturn self::$defaultInstance->getPath($id);\n\t}", "protected abstract function getPath();", "public function path()\n {\n \treturn \"/projects/{$this->project->id}/tasks/{$this->id}\";\n }", "public function getPath();", "public function getPath();", "public function getPath();", "public function getPath();", "public function getPath();", "public function getPath();", "public function getPath();", "public function getPath();", "public function getPath();", "public function getPath();", "public function getPath();", "public function getPath();", "public function getPath();", "public function getPath();", "public function getRoute();", "public static function getPath()\n {\n }", "public function getRouteRootDir(): string;", "function generateFullPath() {\n include_once('../common/common_functions.php');\n $jsonRouteFilePath = \"cricketTraveledPath.json\";\n $error_msg = \"\";\n $result = true;\n $travelObj = new Travel();\n $tdh_db = \"CLEARDB_URL_TDH_SCRIPTS\";\n \n //Get the points from the database sorted by tripname, then date\n try{\n if($db = connect_db($tdh_db)){\n $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n $db->setAttribute(PDO::ATTR_EMULATE_PREPARES, false);\n \n $query_sel = $db->query(\"SELECT * from gps_readings order by `tripname`, `time` ASC\");\n $previousLatLong = [];\n $previousTripName = \"\";\n $tripLeg_id = 0;\n if($query_sel->rowCount() > 0){\n foreach ($query_sel as $row){\n $currentLatLong = [ $row['lat'], $row['long'] ];\n $time = $row['time'];\n if(!empty($previousLatLong)){\n //get the mapquest info\n// echo \"getting directions with \"\n// .implode(\",\",$currentLatLong)\n// .\" and \"\n// .implode(\",\",$previousLatLong)\n// .\" <br />\";\n $mqString = getMQroute($previousLatLong, $currentLatLong);\n if($mqString){\n //echo \"Got mq result <br />\";\n $mqResult = json_decode($mqString);\n if( $row['tripname'] !== $previousTripName){\n $newTrip = new Trip();\n $newTrip->name = ($row['tripname']);\n $travelObj->add_trip($newTrip);\n $previousTripName = $row['tripname'];\n }\n //Get the latest trip object from the travelObj\n $currentTrip = end($travelObj->trips);\n\n //If the points not the same make a new leg\n $distance = $mqResult->{\"route\"}->{\"distance\"};\n if($distance > 0){\n $tripLeg_id += 10;\n $newLeg = new TripLeg();\n $newLeg->id = $tripLeg_id;\n $newLeg->distance = $distance;\n $newLeg->startLatLong = $previousLatLong;\n $newLeg->endLatLong = $currentLatLong;\n $newLeg->startTime = $time;\n $newLeg->MQencodedPath = $mqResult->{\"route\"}->{\"shape\"}->{\"shapePoints\"};\n\n //add the leg to the current trip\n $currentTrip->add_leg($newLeg);\n }\n }else{ \n //Map Quest result not returned\n $error_msg = \"Map Quest result not returned\";\n $result = false;\n }\n }\n $previousLatLong = $currentLatLong;\n }\n //If none of the leg creations failed,\n //Turn the object into a json string and update the file.\n if($result){\n if($newTripsRoute = fopen($jsonRouteFilePath,\"w\")){\n fwrite($newTripsRoute, json_encode($travelObj));\n fclose($newTripsRoute);\n $result = true;\n }else{\n //error using fopen.\n $error_msg = \"Could not open file.\";\n $result = false;\n }\n }else{\n $error_msg.=\"Failed to create all legs of trip from MQ api. <br />\";\n }\n }\n }else{ //handle error\n $error_msg = \"Could not connect to database\";\n $result = false;\n }\n }catch(PDOException $ex) {\n $error_msg = \"CODE 120: Could not connect to mySQL DB<br />\"; //user friendly message\n $error_msg .= $ex->getMessage();\n $result = false; \n }\n echo $result ? \"Success! New file created.\" : $error_msg;\n return $result;\n}", "function getWhatsNewArticlesPath($locale);", "public function fetch_path()\n\t{\n\t\treturn $this->route_stack[self::SEG_PATH];\n\t}", "protected function _GetPath($category_id, $language)\n\t{\n if($category_id === null)\n return '/';\n \n\t\treturn $this->categories->PathFor($category_id, $language);\n\t}", "public function getPath($modifierId = false) {\n return URL . $this->getFolder() . $this->getFilename();\n }", "function getPath(): string;", "private static function getPath(string $method): string\n {\n return \\str_replace(':method', $method, self::PATH);\n }", "public function getLocalPath();", "public function getURL($lng_id)\r\n\t{\r\n\t\tglobal $myPT;\r\n\t\treturn $myPT->url_for_page($this->id,null,$lng_id);\r\n\t}", "function buildPath($entity, $options = array()) {\n return file_create_url($entity->uri);\n }", "public function getPath():string\n {\n $retUrl = self::API_PATH_SPACES;\n if ($this->spaceId != \"\") {\n $retUrl = str_replace(\"{spaceId}\", $this->spaceId, $this->uri);\n }\n $queryParams = $this->queryString();\n if ($queryParams !== \"\") {\n $retUrl = $retUrl . $queryParams;\n }\n return $retUrl;\n }", "function convert_url_to_path($url)\n{\n require_code('urls2');\n return _convert_url_to_path($url);\n}", "public function genMapsLink()\n {\n $city = str_replace(' ', '+', $this->getCity()->getCityName());\n $street = str_replace(' ', '+', $this->getStreet());\n $hno = str_replace(' ', '+', $this->getHouseNo());\n\n $url = \"https://maps.google.com?q=\" . $city . '+' . $street . '+' . $hno;\n\n return $url;\n }", "function getPath() {\n $ruta = realpath(dirname(__FILE__));\n if ( strtoupper(substr(PHP_OS, 0, 3)) === 'WIN' )\n $separator = '\\\\';\n else\n $separator = '/';\n $aRuta = explode($separator,$ruta);\n $ruta = '';\n foreach($aRuta as $index => $value)\n if ( $index < count($aRuta) - 1 ) $ruta .= $value.$separator;\n return $ruta;\n}", "public function generate_url()\n {\n }", "public static function route();", "public function getFoundPath() {}", "function getEmailPath($id = \"0\", $urlPrefix = '') {\n if($id == \"\") { $id = \"0\"; }\n $treeRecord = $this->getTreeRecord($id);\n if($treeRecord != null) {\n if($treeRecord->belongs_to == \"0\") {\n return \"/ <a href=\\\"\" . $urlPrefix . \"index.php?id=\".$treeRecord->id.\"\\\">\".$treeRecord->title.\"</a>\";\n } else {\n $path = $this->getEmailPath($treeRecord->belongs_to, $urlPrefix);\n return $path . \" / <a href=\\\"\" . $urlPrefix . \"index.php?id=\".$treeRecord->id.\"\\\">\" . $treeRecord->title.\"</a>\";\n }\n } else {\n return \"/ \";\n }\n }", "public function path()\n {\n return $this->connection->protocol()->route($this);\n }", "public function webPath();", "public static function formUrlPath(array $variables) : string {\n\n\t\tif (self::_hasAdapter(get_class(), __FUNCTION__))\n\t\t\treturn self::_callAdapter(get_class(), __FUNCTION__, $variables);\n\n\t\t$variables = self::_applyFilter(get_class(), __FUNCTION__, $variables, array('event' => 'args'));\n\n\t\t$appendix = '';\n\n\t\t$first = 1;\n\t\tforeach ($variables as $key => $value) {\n\t\t\tif ($first === 1) {\n\t\t\t\t$appendix .= urlencode($value);\n\t\t\t} else {\n\t\t\t\t$appendix .= '/' . urlencode($value);\n\t\t\t}\n\t\t\t$first = 0;\n\t\t}//end foreach\n\n\t\tself::_notify(get_class() . '::' . __FUNCTION__, $appendix, $variables);\n\t\t$appendix = self::_applyFilter(get_class(), __FUNCTION__, $appendix, array('event' => 'return'));\n\n\t\treturn $appendix;\n\n\t}", "abstract public function getRoute();", "public function getPath() {\n if (empty($this->uriParts['path'])) {\n return '';\n }\n return implode('/', array_map(\"rawurlencode\", explode('/', $this->uriParts['path'])));\n }", "public function getPath(string $url): string;", "public function get_route()\n {\n }", "public static function generateURL()\n {\n return $_SERVER['REQUEST_SCHEME'].'://'.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];\n }", "public function getUserRoutePathLng()\n {\n return $this->userRoutePathLng;\n }", "function show_path($pid = null) {\n\t\t\t\tif ($pid === null) $pid = $this->pid;\n\t\t\t\t$this->set_var('page_path', $this->_get_path($pid));\n\t\t\t\t\n\t\t\t\t$path_array = $this->_get_path($pid);\n\t\t\t\t$path = e::o('pa_path_edit_page');\n\n\t\t\t\tif (is_array($path_array)) {\n\t\t\t\t\tforeach($path_array as $node) {\n\t\t\t\t\t\t$path .= '/' . $node['name'];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn $path;\n\t\t\t\t\n\t\t\t\t#$this->OPC->generate_view($this->tpl_dir . 'pa_path.tpl');\n\t\t\t}", "public function getPath(string ...$arguments) : string\n {\n if ($arguments) {\n return $this->router->fillPlaceholders($this->path, ...$arguments);\n }\n return $this->path;\n }", "public function getPath() {}", "public function getPath() {}", "public function getPath() {}", "public function getPath() {}", "public function getPath() {}", "public function getPath() {}", "public function path(){\n if(!empty($this->segments)){\n return implode(\"/\", $this->segments);\n }\n return '';\n }", "public static function getPath($id)\n\t{\n\t\t$sql = \"SELECT c.*, p.level, p.order \"\n\t\t\t. \"FROM \" . self::$PathTable . \" p \"\n\t\t\t. \"JOIN \" . self::$ClientTable . \" c ON c.`id`=p.`parent` \"\n\t\t\t. \"WHERE p.`id`={$id} ORDER BY p.`order`\";\n\t\treturn self::query($sql);\n\t}", "public function path() {}", "function trebi_getUrlLoc($idloc)\n{\n$trebi_url_locs = array (1 => \"/meteo/Abano+terme\",2 => \"/meteo/Abbadia+cerreto\",3 => \"/meteo/Abbadia+lariana\",4 => \"/meteo/Abbadia+San+Salvatore\",5 => \"/meteo/Abbasanta\",6 => \"/meteo/Abbateggio\",7 => \"/meteo/Abbiategrasso\",8 => \"/meteo/Abetone\",8399 => \"/meteo/Abriola\",10 => \"/meteo/Acate\",11 => \"/meteo/Accadia\",12 => \"/meteo/Acceglio\",8369 => \"/meteo/Accettura\",14 => \"/meteo/Acciano\",15 => \"/meteo/Accumoli\",16 => \"/meteo/Acerenza\",17 => \"/meteo/Acerno\",18 => \"/meteo/Acerra\",19 => \"/meteo/Aci+bonaccorsi\",20 => \"/meteo/Aci+castello\",21 => \"/meteo/Aci+Catena\",22 => \"/meteo/Aci+Sant'Antonio\",23 => \"/meteo/Acireale\",24 => \"/meteo/Acquacanina\",25 => \"/meteo/Acquafondata\",26 => \"/meteo/Acquaformosa\",27 => \"/meteo/Acquafredda\",8750 => \"/meteo/Acquafredda\",28 => \"/meteo/Acqualagna\",29 => \"/meteo/Acquanegra+cremonese\",30 => \"/meteo/Acquanegra+sul+chiese\",31 => \"/meteo/Acquapendente\",32 => \"/meteo/Acquappesa\",33 => \"/meteo/Acquarica+del+capo\",34 => \"/meteo/Acquaro\",35 => \"/meteo/Acquasanta+terme\",36 => \"/meteo/Acquasparta\",37 => \"/meteo/Acquaviva+collecroce\",38 => \"/meteo/Acquaviva+d'Isernia\",39 => \"/meteo/Acquaviva+delle+fonti\",40 => \"/meteo/Acquaviva+picena\",41 => \"/meteo/Acquaviva+platani\",42 => \"/meteo/Acquedolci\",43 => \"/meteo/Acqui+terme\",44 => \"/meteo/Acri\",45 => \"/meteo/Acuto\",46 => \"/meteo/Adelfia\",47 => \"/meteo/Adrano\",48 => \"/meteo/Adrara+San+Martino\",49 => \"/meteo/Adrara+San+Rocco\",50 => \"/meteo/Adria\",51 => \"/meteo/Adro\",52 => \"/meteo/Affi\",53 => \"/meteo/Affile\",54 => \"/meteo/Afragola\",55 => \"/meteo/Africo\",56 => \"/meteo/Agazzano\",57 => \"/meteo/Agerola\",58 => \"/meteo/Aggius\",59 => \"/meteo/Agira\",60 => \"/meteo/Agliana\",61 => \"/meteo/Agliano\",62 => \"/meteo/Aglie'\",63 => \"/meteo/Aglientu\",64 => \"/meteo/Agna\",65 => \"/meteo/Agnadello\",66 => \"/meteo/Agnana+calabra\",8598 => \"/meteo/Agnano\",67 => \"/meteo/Agnone\",68 => \"/meteo/Agnosine\",69 => \"/meteo/Agordo\",70 => \"/meteo/Agosta\",71 => \"/meteo/Agra\",72 => \"/meteo/Agrate+brianza\",73 => \"/meteo/Agrate+conturbia\",74 => \"/meteo/Agrigento\",75 => \"/meteo/Agropoli\",76 => \"/meteo/Agugliano\",77 => \"/meteo/Agugliaro\",78 => \"/meteo/Aicurzio\",79 => \"/meteo/Aidomaggiore\",80 => \"/meteo/Aidone\",81 => \"/meteo/Aielli\",82 => \"/meteo/Aiello+calabro\",83 => \"/meteo/Aiello+del+Friuli\",84 => \"/meteo/Aiello+del+Sabato\",85 => \"/meteo/Aieta\",86 => \"/meteo/Ailano\",87 => \"/meteo/Ailoche\",88 => \"/meteo/Airasca\",89 => \"/meteo/Airola\",90 => \"/meteo/Airole\",91 => \"/meteo/Airuno\",92 => \"/meteo/Aisone\",93 => \"/meteo/Ala\",94 => \"/meteo/Ala+di+Stura\",95 => \"/meteo/Ala'+dei+Sardi\",96 => \"/meteo/Alagna\",97 => \"/meteo/Alagna+Valsesia\",98 => \"/meteo/Alanno\",99 => \"/meteo/Alano+di+Piave\",100 => \"/meteo/Alassio\",101 => \"/meteo/Alatri\",102 => \"/meteo/Alba\",103 => \"/meteo/Alba+adriatica\",104 => \"/meteo/Albagiara\",105 => \"/meteo/Albairate\",106 => \"/meteo/Albanella\",8386 => \"/meteo/Albano+di+lucania\",108 => \"/meteo/Albano+laziale\",109 => \"/meteo/Albano+Sant'Alessandro\",110 => \"/meteo/Albano+vercellese\",111 => \"/meteo/Albaredo+arnaboldi\",112 => \"/meteo/Albaredo+d'Adige\",113 => \"/meteo/Albaredo+per+San+Marco\",114 => \"/meteo/Albareto\",115 => \"/meteo/Albaretto+della+torre\",116 => \"/meteo/Albavilla\",117 => \"/meteo/Albenga\",118 => \"/meteo/Albera+ligure\",119 => \"/meteo/Alberobello\",120 => \"/meteo/Alberona\",121 => \"/meteo/Albese+con+Cassano\",122 => \"/meteo/Albettone\",123 => \"/meteo/Albi\",124 => \"/meteo/Albiano\",125 => \"/meteo/Albiano+d'ivrea\",126 => \"/meteo/Albiate\",127 => \"/meteo/Albidona\",128 => \"/meteo/Albignasego\",129 => \"/meteo/Albinea\",130 => \"/meteo/Albino\",131 => \"/meteo/Albiolo\",132 => \"/meteo/Albisola+marina\",133 => \"/meteo/Albisola+superiore\",134 => \"/meteo/Albizzate\",135 => \"/meteo/Albonese\",136 => \"/meteo/Albosaggia\",137 => \"/meteo/Albugnano\",138 => \"/meteo/Albuzzano\",139 => \"/meteo/Alcamo\",140 => \"/meteo/Alcara+li+Fusi\",141 => \"/meteo/Aldeno\",142 => \"/meteo/Aldino\",143 => \"/meteo/Ales\",144 => \"/meteo/Alessandria\",145 => \"/meteo/Alessandria+del+Carretto\",146 => \"/meteo/Alessandria+della+Rocca\",147 => \"/meteo/Alessano\",148 => \"/meteo/Alezio\",149 => \"/meteo/Alfano\",150 => \"/meteo/Alfedena\",151 => \"/meteo/Alfianello\",152 => \"/meteo/Alfiano+natta\",153 => \"/meteo/Alfonsine\",154 => \"/meteo/Alghero\",8532 => \"/meteo/Alghero+Fertilia\",155 => \"/meteo/Algua\",156 => \"/meteo/Ali'\",157 => \"/meteo/Ali'+terme\",158 => \"/meteo/Alia\",159 => \"/meteo/Aliano\",160 => \"/meteo/Alice+bel+colle\",161 => \"/meteo/Alice+castello\",162 => \"/meteo/Alice+superiore\",163 => \"/meteo/Alife\",164 => \"/meteo/Alimena\",165 => \"/meteo/Aliminusa\",166 => \"/meteo/Allai\",167 => \"/meteo/Alleghe\",168 => \"/meteo/Allein\",169 => \"/meteo/Allerona\",170 => \"/meteo/Alliste\",171 => \"/meteo/Allumiere\",172 => \"/meteo/Alluvioni+cambio'\",173 => \"/meteo/Alme'\",174 => \"/meteo/Almenno+San+Bartolomeo\",175 => \"/meteo/Almenno+San+Salvatore\",176 => \"/meteo/Almese\",177 => \"/meteo/Alonte\",8259 => \"/meteo/Alpe+Cermis\",8557 => \"/meteo/Alpe+Devero\",8162 => \"/meteo/Alpe+di+Mera\",8565 => \"/meteo/Alpe+di+Siusi\",8755 => \"/meteo/Alpe+Giumello\",8264 => \"/meteo/Alpe+Lusia\",8559 => \"/meteo/Alpe+Nevegal\",8239 => \"/meteo/Alpe+Tre+Potenze\",8558 => \"/meteo/Alpe+Veglia\",8482 => \"/meteo/Alpet\",178 => \"/meteo/Alpette\",179 => \"/meteo/Alpignano\",180 => \"/meteo/Alseno\",181 => \"/meteo/Alserio\",182 => \"/meteo/Altamura\",8474 => \"/meteo/Altare\",184 => \"/meteo/Altavilla+irpina\",185 => \"/meteo/Altavilla+milicia\",186 => \"/meteo/Altavilla+monferrato\",187 => \"/meteo/Altavilla+silentina\",188 => \"/meteo/Altavilla+vicentina\",189 => \"/meteo/Altidona\",190 => \"/meteo/Altilia\",191 => \"/meteo/Altino\",192 => \"/meteo/Altissimo\",193 => \"/meteo/Altivole\",194 => \"/meteo/Alto\",195 => \"/meteo/Altofonte\",196 => \"/meteo/Altomonte\",197 => \"/meteo/Altopascio\",8536 => \"/meteo/Altopiano+dei+Fiorentini\",8662 => \"/meteo/Altopiano+della+Sila\",8640 => \"/meteo/Altopiano+di+Renon\",198 => \"/meteo/Alviano\",199 => \"/meteo/Alvignano\",200 => \"/meteo/Alvito\",201 => \"/meteo/Alzano+lombardo\",202 => \"/meteo/Alzano+scrivia\",203 => \"/meteo/Alzate+brianza\",204 => \"/meteo/Amalfi\",205 => \"/meteo/Amandola\",206 => \"/meteo/Amantea\",207 => \"/meteo/Amaro\",208 => \"/meteo/Amaroni\",209 => \"/meteo/Amaseno\",210 => \"/meteo/Amato\",211 => \"/meteo/Amatrice\",212 => \"/meteo/Ambivere\",213 => \"/meteo/Amblar\",214 => \"/meteo/Ameglia\",215 => \"/meteo/Amelia\",216 => \"/meteo/Amendolara\",217 => \"/meteo/Ameno\",218 => \"/meteo/Amorosi\",219 => \"/meteo/Ampezzo\",220 => \"/meteo/Anacapri\",221 => \"/meteo/Anagni\",8463 => \"/meteo/Anagni+casello\",222 => \"/meteo/Ancarano\",223 => \"/meteo/Ancona\",8267 => \"/meteo/Ancona+Falconara\",224 => \"/meteo/Andali\",225 => \"/meteo/Andalo\",226 => \"/meteo/Andalo+valtellino\",227 => \"/meteo/Andezeno\",228 => \"/meteo/Andora\",229 => \"/meteo/Andorno+micca\",230 => \"/meteo/Andrano\",231 => \"/meteo/Andrate\",232 => \"/meteo/Andreis\",233 => \"/meteo/Andretta\",234 => \"/meteo/Andria\",235 => \"/meteo/Andriano\",236 => \"/meteo/Anela\",237 => \"/meteo/Anfo\",238 => \"/meteo/Angera\",239 => \"/meteo/Anghiari\",240 => \"/meteo/Angiari\",241 => \"/meteo/Angolo+terme\",242 => \"/meteo/Angri\",243 => \"/meteo/Angrogna\",244 => \"/meteo/Anguillara+sabazia\",245 => \"/meteo/Anguillara+veneta\",246 => \"/meteo/Annicco\",247 => \"/meteo/Annone+di+brianza\",248 => \"/meteo/Annone+veneto\",249 => \"/meteo/Anoia\",8302 => \"/meteo/Antagnod\",250 => \"/meteo/Antegnate\",251 => \"/meteo/Anterivo\",8211 => \"/meteo/Anterselva+di+Sopra\",252 => \"/meteo/Antey+saint+andre'\",253 => \"/meteo/Anticoli+Corrado\",254 => \"/meteo/Antignano\",255 => \"/meteo/Antillo\",256 => \"/meteo/Antonimina\",257 => \"/meteo/Antrodoco\",258 => \"/meteo/Antrona+Schieranco\",259 => \"/meteo/Anversa+degli+Abruzzi\",260 => \"/meteo/Anzano+del+Parco\",261 => \"/meteo/Anzano+di+Puglia\",8400 => \"/meteo/Anzi\",263 => \"/meteo/Anzio\",264 => \"/meteo/Anzola+d'Ossola\",265 => \"/meteo/Anzola+dell'Emilia\",266 => \"/meteo/Aosta\",8548 => \"/meteo/Aosta+Saint+Christophe\",267 => \"/meteo/Apecchio\",268 => \"/meteo/Apice\",269 => \"/meteo/Apiro\",270 => \"/meteo/Apollosa\",271 => \"/meteo/Appiano+Gentile\",272 => \"/meteo/Appiano+sulla+strada+del+vino\",273 => \"/meteo/Appignano\",274 => \"/meteo/Appignano+del+Tronto\",275 => \"/meteo/Aprica\",276 => \"/meteo/Apricale\",277 => \"/meteo/Apricena\",278 => \"/meteo/Aprigliano\",279 => \"/meteo/Aprilia\",280 => \"/meteo/Aquara\",281 => \"/meteo/Aquila+di+Arroscia\",282 => \"/meteo/Aquileia\",283 => \"/meteo/Aquilonia\",284 => \"/meteo/Aquino\",8228 => \"/meteo/Arabba\",285 => \"/meteo/Aradeo\",286 => \"/meteo/Aragona\",287 => \"/meteo/Aramengo\",288 => \"/meteo/Arba\",8487 => \"/meteo/Arbatax\",289 => \"/meteo/Arborea\",290 => \"/meteo/Arborio\",291 => \"/meteo/Arbus\",292 => \"/meteo/Arcade\",293 => \"/meteo/Arce\",294 => \"/meteo/Arcene\",295 => \"/meteo/Arcevia\",296 => \"/meteo/Archi\",297 => \"/meteo/Arcidosso\",298 => \"/meteo/Arcinazzo+romano\",299 => \"/meteo/Arcisate\",300 => \"/meteo/Arco\",301 => \"/meteo/Arcola\",302 => \"/meteo/Arcole\",303 => \"/meteo/Arconate\",304 => \"/meteo/Arcore\",305 => \"/meteo/Arcugnano\",306 => \"/meteo/Ardara\",307 => \"/meteo/Ardauli\",308 => \"/meteo/Ardea\",309 => \"/meteo/Ardenno\",310 => \"/meteo/Ardesio\",311 => \"/meteo/Ardore\",8675 => \"/meteo/Ardore+Marina\",8321 => \"/meteo/Aremogna\",312 => \"/meteo/Arena\",313 => \"/meteo/Arena+po\",314 => \"/meteo/Arenzano\",315 => \"/meteo/Arese\",316 => \"/meteo/Arezzo\",317 => \"/meteo/Argegno\",318 => \"/meteo/Argelato\",319 => \"/meteo/Argenta\",320 => \"/meteo/Argentera\",321 => \"/meteo/Arguello\",322 => \"/meteo/Argusto\",323 => \"/meteo/Ari\",324 => \"/meteo/Ariano+irpino\",325 => \"/meteo/Ariano+nel+polesine\",326 => \"/meteo/Ariccia\",327 => \"/meteo/Arielli\",328 => \"/meteo/Arienzo\",329 => \"/meteo/Arignano\",330 => \"/meteo/Aritzo\",331 => \"/meteo/Arizzano\",332 => \"/meteo/Arlena+di+castro\",333 => \"/meteo/Arluno\",8677 => \"/meteo/Arma+di+Taggia\",334 => \"/meteo/Armeno\",8405 => \"/meteo/Armento\",336 => \"/meteo/Armo\",337 => \"/meteo/Armungia\",338 => \"/meteo/Arnad\",339 => \"/meteo/Arnara\",340 => \"/meteo/Arnasco\",341 => \"/meteo/Arnesano\",342 => \"/meteo/Arola\",343 => \"/meteo/Arona\",344 => \"/meteo/Arosio\",345 => \"/meteo/Arpaia\",346 => \"/meteo/Arpaise\",347 => \"/meteo/Arpino\",348 => \"/meteo/Arqua'+Petrarca\",349 => \"/meteo/Arqua'+polesine\",350 => \"/meteo/Arquata+del+tronto\",351 => \"/meteo/Arquata+scrivia\",352 => \"/meteo/Arre\",353 => \"/meteo/Arrone\",354 => \"/meteo/Arsago+Seprio\",355 => \"/meteo/Arsie'\",356 => \"/meteo/Arsiero\",357 => \"/meteo/Arsita\",358 => \"/meteo/Arsoli\",359 => \"/meteo/Arta+terme\",360 => \"/meteo/Artegna\",361 => \"/meteo/Artena\",8338 => \"/meteo/Artesina\",362 => \"/meteo/Artogne\",363 => \"/meteo/Arvier\",364 => \"/meteo/Arzachena\",365 => \"/meteo/Arzago+d'Adda\",366 => \"/meteo/Arzana\",367 => \"/meteo/Arzano\",368 => \"/meteo/Arzene\",369 => \"/meteo/Arzergrande\",370 => \"/meteo/Arzignano\",371 => \"/meteo/Ascea\",8513 => \"/meteo/Asciano\",8198 => \"/meteo/Asciano+Pisano\",373 => \"/meteo/Ascoli+piceno\",374 => \"/meteo/Ascoli+satriano\",375 => \"/meteo/Ascrea\",376 => \"/meteo/Asiago\",377 => \"/meteo/Asigliano+Veneto\",378 => \"/meteo/Asigliano+vercellese\",379 => \"/meteo/Asola\",380 => \"/meteo/Asolo\",8438 => \"/meteo/Aspio+terme\",381 => \"/meteo/Assago\",382 => \"/meteo/Assemini\",8488 => \"/meteo/Assergi\",8448 => \"/meteo/Assergi+casello\",383 => \"/meteo/Assisi\",384 => \"/meteo/Asso\",385 => \"/meteo/Assolo\",386 => \"/meteo/Assoro\",387 => \"/meteo/Asti\",388 => \"/meteo/Asuni\",389 => \"/meteo/Ateleta\",8383 => \"/meteo/Atella\",391 => \"/meteo/Atena+lucana\",392 => \"/meteo/Atessa\",393 => \"/meteo/Atina\",394 => \"/meteo/Atrani\",395 => \"/meteo/Atri\",396 => \"/meteo/Atripalda\",397 => \"/meteo/Attigliano\",398 => \"/meteo/Attimis\",399 => \"/meteo/Atzara\",400 => \"/meteo/Auditore\",401 => \"/meteo/Augusta\",402 => \"/meteo/Auletta\",403 => \"/meteo/Aulla\",404 => \"/meteo/Aurano\",405 => \"/meteo/Aurigo\",406 => \"/meteo/Auronzo+di+cadore\",407 => \"/meteo/Ausonia\",408 => \"/meteo/Austis\",409 => \"/meteo/Avegno\",410 => \"/meteo/Avelengo\",411 => \"/meteo/Avella\",412 => \"/meteo/Avellino\",413 => \"/meteo/Averara\",414 => \"/meteo/Aversa\",415 => \"/meteo/Avetrana\",416 => \"/meteo/Avezzano\",417 => \"/meteo/Aviano\",418 => \"/meteo/Aviatico\",419 => \"/meteo/Avigliana\",420 => \"/meteo/Avigliano\",421 => \"/meteo/Avigliano+umbro\",422 => \"/meteo/Avio\",423 => \"/meteo/Avise\",424 => \"/meteo/Avola\",425 => \"/meteo/Avolasca\",426 => \"/meteo/Ayas\",427 => \"/meteo/Aymavilles\",428 => \"/meteo/Azeglio\",429 => \"/meteo/Azzanello\",430 => \"/meteo/Azzano+d'Asti\",431 => \"/meteo/Azzano+decimo\",432 => \"/meteo/Azzano+mella\",433 => \"/meteo/Azzano+San+Paolo\",434 => \"/meteo/Azzate\",435 => \"/meteo/Azzio\",436 => \"/meteo/Azzone\",437 => \"/meteo/Baceno\",438 => \"/meteo/Bacoli\",439 => \"/meteo/Badalucco\",440 => \"/meteo/Badesi\",441 => \"/meteo/Badia\",442 => \"/meteo/Badia+calavena\",443 => \"/meteo/Badia+pavese\",444 => \"/meteo/Badia+polesine\",445 => \"/meteo/Badia+tedalda\",446 => \"/meteo/Badolato\",447 => \"/meteo/Bagaladi\",448 => \"/meteo/Bagheria\",449 => \"/meteo/Bagnacavallo\",450 => \"/meteo/Bagnara+calabra\",451 => \"/meteo/Bagnara+di+romagna\",452 => \"/meteo/Bagnaria\",453 => \"/meteo/Bagnaria+arsa\",454 => \"/meteo/Bagnasco\",455 => \"/meteo/Bagnatica\",456 => \"/meteo/Bagni+di+Lucca\",8699 => \"/meteo/Bagni+di+Vinadio\",457 => \"/meteo/Bagno+a+Ripoli\",458 => \"/meteo/Bagno+di+Romagna\",459 => \"/meteo/Bagnoli+del+Trigno\",460 => \"/meteo/Bagnoli+di+sopra\",461 => \"/meteo/Bagnoli+irpino\",462 => \"/meteo/Bagnolo+cremasco\",463 => \"/meteo/Bagnolo+del+salento\",464 => \"/meteo/Bagnolo+di+po\",465 => \"/meteo/Bagnolo+in+piano\",466 => \"/meteo/Bagnolo+Mella\",467 => \"/meteo/Bagnolo+Piemonte\",468 => \"/meteo/Bagnolo+San+Vito\",469 => \"/meteo/Bagnone\",470 => \"/meteo/Bagnoregio\",471 => \"/meteo/Bagolino\",8123 => \"/meteo/Baia+Domizia\",472 => \"/meteo/Baia+e+Latina\",473 => \"/meteo/Baiano\",474 => \"/meteo/Baiardo\",475 => \"/meteo/Bairo\",476 => \"/meteo/Baiso\",477 => \"/meteo/Balangero\",478 => \"/meteo/Baldichieri+d'Asti\",479 => \"/meteo/Baldissero+canavese\",480 => \"/meteo/Baldissero+d'Alba\",481 => \"/meteo/Baldissero+torinese\",482 => \"/meteo/Balestrate\",483 => \"/meteo/Balestrino\",484 => \"/meteo/Ballabio\",485 => \"/meteo/Ballao\",486 => \"/meteo/Balme\",487 => \"/meteo/Balmuccia\",488 => \"/meteo/Balocco\",489 => \"/meteo/Balsorano\",490 => \"/meteo/Balvano\",491 => \"/meteo/Balzola\",492 => \"/meteo/Banari\",493 => \"/meteo/Banchette\",494 => \"/meteo/Bannio+anzino\",8368 => \"/meteo/Banzi\",496 => \"/meteo/Baone\",497 => \"/meteo/Baradili\",8415 => \"/meteo/Baragiano\",499 => \"/meteo/Baranello\",500 => \"/meteo/Barano+d'Ischia\",501 => \"/meteo/Barasso\",502 => \"/meteo/Baratili+San+Pietro\",503 => \"/meteo/Barbania\",504 => \"/meteo/Barbara\",505 => \"/meteo/Barbarano+romano\",506 => \"/meteo/Barbarano+vicentino\",507 => \"/meteo/Barbaresco\",508 => \"/meteo/Barbariga\",509 => \"/meteo/Barbata\",510 => \"/meteo/Barberino+di+mugello\",511 => \"/meteo/Barberino+val+d'elsa\",512 => \"/meteo/Barbianello\",513 => \"/meteo/Barbiano\",514 => \"/meteo/Barbona\",515 => \"/meteo/Barcellona+pozzo+di+Gotto\",516 => \"/meteo/Barchi\",517 => \"/meteo/Barcis\",518 => \"/meteo/Bard\",519 => \"/meteo/Bardello\",520 => \"/meteo/Bardi\",521 => \"/meteo/Bardineto\",522 => \"/meteo/Bardolino\",523 => \"/meteo/Bardonecchia\",524 => \"/meteo/Bareggio\",525 => \"/meteo/Barengo\",526 => \"/meteo/Baressa\",527 => \"/meteo/Barete\",528 => \"/meteo/Barga\",529 => \"/meteo/Bargagli\",530 => \"/meteo/Barge\",531 => \"/meteo/Barghe\",532 => \"/meteo/Bari\",8274 => \"/meteo/Bari+Palese\",533 => \"/meteo/Bari+sardo\",534 => \"/meteo/Bariano\",535 => \"/meteo/Baricella\",8402 => \"/meteo/Barile\",537 => \"/meteo/Barisciano\",538 => \"/meteo/Barlassina\",539 => \"/meteo/Barletta\",540 => \"/meteo/Barni\",541 => \"/meteo/Barolo\",542 => \"/meteo/Barone+canavese\",543 => \"/meteo/Baronissi\",544 => \"/meteo/Barrafranca\",545 => \"/meteo/Barrali\",546 => \"/meteo/Barrea\",8745 => \"/meteo/Barricata\",547 => \"/meteo/Barumini\",548 => \"/meteo/Barzago\",549 => \"/meteo/Barzana\",550 => \"/meteo/Barzano'\",551 => \"/meteo/Barzio\",552 => \"/meteo/Basaluzzo\",553 => \"/meteo/Bascape'\",554 => \"/meteo/Baschi\",555 => \"/meteo/Basciano\",556 => \"/meteo/Baselga+di+Pine'\",557 => \"/meteo/Baselice\",558 => \"/meteo/Basiano\",559 => \"/meteo/Basico'\",560 => \"/meteo/Basiglio\",561 => \"/meteo/Basiliano\",562 => \"/meteo/Bassano+bresciano\",563 => \"/meteo/Bassano+del+grappa\",564 => \"/meteo/Bassano+in+teverina\",565 => \"/meteo/Bassano+romano\",566 => \"/meteo/Bassiano\",567 => \"/meteo/Bassignana\",568 => \"/meteo/Bastia\",569 => \"/meteo/Bastia+mondovi'\",570 => \"/meteo/Bastida+de'+Dossi\",571 => \"/meteo/Bastida+pancarana\",572 => \"/meteo/Bastiglia\",573 => \"/meteo/Battaglia+terme\",574 => \"/meteo/Battifollo\",575 => \"/meteo/Battipaglia\",576 => \"/meteo/Battuda\",577 => \"/meteo/Baucina\",578 => \"/meteo/Bauladu\",579 => \"/meteo/Baunei\",580 => \"/meteo/Baveno\",581 => \"/meteo/Bazzano\",582 => \"/meteo/Bedero+valcuvia\",583 => \"/meteo/Bedizzole\",584 => \"/meteo/Bedollo\",585 => \"/meteo/Bedonia\",586 => \"/meteo/Bedulita\",587 => \"/meteo/Bee\",588 => \"/meteo/Beinasco\",589 => \"/meteo/Beinette\",590 => \"/meteo/Belcastro\",591 => \"/meteo/Belfiore\",592 => \"/meteo/Belforte+all'Isauro\",593 => \"/meteo/Belforte+del+chienti\",594 => \"/meteo/Belforte+monferrato\",595 => \"/meteo/Belgioioso\",596 => \"/meteo/Belgirate\",597 => \"/meteo/Bella\",598 => \"/meteo/Bellagio\",8263 => \"/meteo/Bellamonte\",599 => \"/meteo/Bellano\",600 => \"/meteo/Bellante\",601 => \"/meteo/Bellaria+Igea+marina\",602 => \"/meteo/Bellegra\",603 => \"/meteo/Bellino\",604 => \"/meteo/Bellinzago+lombardo\",605 => \"/meteo/Bellinzago+novarese\",606 => \"/meteo/Bellizzi\",607 => \"/meteo/Bellona\",608 => \"/meteo/Bellosguardo\",609 => \"/meteo/Belluno\",610 => \"/meteo/Bellusco\",611 => \"/meteo/Belmonte+calabro\",612 => \"/meteo/Belmonte+castello\",613 => \"/meteo/Belmonte+del+sannio\",614 => \"/meteo/Belmonte+in+sabina\",615 => \"/meteo/Belmonte+mezzagno\",616 => \"/meteo/Belmonte+piceno\",617 => \"/meteo/Belpasso\",8573 => \"/meteo/Belpiano+Schoeneben\",618 => \"/meteo/Belsito\",8265 => \"/meteo/Belvedere\",619 => \"/meteo/Belvedere+di+Spinello\",620 => \"/meteo/Belvedere+langhe\",621 => \"/meteo/Belvedere+marittimo\",622 => \"/meteo/Belvedere+ostrense\",623 => \"/meteo/Belveglio\",624 => \"/meteo/Belvi\",625 => \"/meteo/Bema\",626 => \"/meteo/Bene+lario\",627 => \"/meteo/Bene+vagienna\",628 => \"/meteo/Benestare\",629 => \"/meteo/Benetutti\",630 => \"/meteo/Benevello\",631 => \"/meteo/Benevento\",632 => \"/meteo/Benna\",633 => \"/meteo/Bentivoglio\",634 => \"/meteo/Berbenno\",635 => \"/meteo/Berbenno+di+valtellina\",636 => \"/meteo/Berceto\",637 => \"/meteo/Berchidda\",638 => \"/meteo/Beregazzo+con+Figliaro\",639 => \"/meteo/Bereguardo\",640 => \"/meteo/Bergamasco\",641 => \"/meteo/Bergamo\",8519 => \"/meteo/Bergamo+città+alta\",8497 => \"/meteo/Bergamo+Orio+al+Serio\",642 => \"/meteo/Bergantino\",643 => \"/meteo/Bergeggi\",644 => \"/meteo/Bergolo\",645 => \"/meteo/Berlingo\",646 => \"/meteo/Bernalda\",647 => \"/meteo/Bernareggio\",648 => \"/meteo/Bernate+ticino\",649 => \"/meteo/Bernezzo\",650 => \"/meteo/Berra\",651 => \"/meteo/Bersone\",652 => \"/meteo/Bertinoro\",653 => \"/meteo/Bertiolo\",654 => \"/meteo/Bertonico\",655 => \"/meteo/Berzano+di+San+Pietro\",656 => \"/meteo/Berzano+di+Tortona\",657 => \"/meteo/Berzo+Demo\",658 => \"/meteo/Berzo+inferiore\",659 => \"/meteo/Berzo+San+Fermo\",660 => \"/meteo/Besana+in+brianza\",661 => \"/meteo/Besano\",662 => \"/meteo/Besate\",663 => \"/meteo/Besenello\",664 => \"/meteo/Besenzone\",665 => \"/meteo/Besnate\",666 => \"/meteo/Besozzo\",667 => \"/meteo/Bessude\",668 => \"/meteo/Bettola\",669 => \"/meteo/Bettona\",670 => \"/meteo/Beura+Cardezza\",671 => \"/meteo/Bevagna\",672 => \"/meteo/Beverino\",673 => \"/meteo/Bevilacqua\",674 => \"/meteo/Bezzecca\",675 => \"/meteo/Biancavilla\",676 => \"/meteo/Bianchi\",677 => \"/meteo/Bianco\",678 => \"/meteo/Biandrate\",679 => \"/meteo/Biandronno\",680 => \"/meteo/Bianzano\",681 => \"/meteo/Bianze'\",682 => \"/meteo/Bianzone\",683 => \"/meteo/Biassono\",684 => \"/meteo/Bibbiano\",685 => \"/meteo/Bibbiena\",686 => \"/meteo/Bibbona\",687 => \"/meteo/Bibiana\",8230 => \"/meteo/Bibione\",688 => \"/meteo/Biccari\",689 => \"/meteo/Bicinicco\",690 => \"/meteo/Bidoni'\",691 => \"/meteo/Biella\",8163 => \"/meteo/Bielmonte\",692 => \"/meteo/Bienno\",693 => \"/meteo/Bieno\",694 => \"/meteo/Bientina\",695 => \"/meteo/Bigarello\",696 => \"/meteo/Binago\",697 => \"/meteo/Binasco\",698 => \"/meteo/Binetto\",699 => \"/meteo/Bioglio\",700 => \"/meteo/Bionaz\",701 => \"/meteo/Bione\",702 => \"/meteo/Birori\",703 => \"/meteo/Bisaccia\",704 => \"/meteo/Bisacquino\",705 => \"/meteo/Bisceglie\",706 => \"/meteo/Bisegna\",707 => \"/meteo/Bisenti\",708 => \"/meteo/Bisignano\",709 => \"/meteo/Bistagno\",710 => \"/meteo/Bisuschio\",711 => \"/meteo/Bitetto\",712 => \"/meteo/Bitonto\",713 => \"/meteo/Bitritto\",714 => \"/meteo/Bitti\",715 => \"/meteo/Bivona\",716 => \"/meteo/Bivongi\",717 => \"/meteo/Bizzarone\",718 => \"/meteo/Bleggio+inferiore\",719 => \"/meteo/Bleggio+superiore\",720 => \"/meteo/Blello\",721 => \"/meteo/Blera\",722 => \"/meteo/Blessagno\",723 => \"/meteo/Blevio\",724 => \"/meteo/Blufi\",725 => \"/meteo/Boara+Pisani\",726 => \"/meteo/Bobbio\",727 => \"/meteo/Bobbio+Pellice\",728 => \"/meteo/Boca\",8501 => \"/meteo/Bocca+di+Magra\",729 => \"/meteo/Bocchigliero\",730 => \"/meteo/Boccioleto\",731 => \"/meteo/Bocenago\",732 => \"/meteo/Bodio+Lomnago\",733 => \"/meteo/Boffalora+d'Adda\",734 => \"/meteo/Boffalora+sopra+Ticino\",735 => \"/meteo/Bogliasco\",736 => \"/meteo/Bognanco\",8287 => \"/meteo/Bognanco+fonti\",737 => \"/meteo/Bogogno\",738 => \"/meteo/Boissano\",739 => \"/meteo/Bojano\",740 => \"/meteo/Bolano\",741 => \"/meteo/Bolbeno\",742 => \"/meteo/Bolgare\",743 => \"/meteo/Bollate\",744 => \"/meteo/Bollengo\",745 => \"/meteo/Bologna\",8476 => \"/meteo/Bologna+Borgo+Panigale\",746 => \"/meteo/Bolognano\",747 => \"/meteo/Bolognetta\",748 => \"/meteo/Bolognola\",749 => \"/meteo/Bolotana\",750 => \"/meteo/Bolsena\",751 => \"/meteo/Boltiere\",8505 => \"/meteo/Bolzaneto\",752 => \"/meteo/Bolzano\",753 => \"/meteo/Bolzano+novarese\",754 => \"/meteo/Bolzano+vicentino\",755 => \"/meteo/Bomarzo\",756 => \"/meteo/Bomba\",757 => \"/meteo/Bompensiere\",758 => \"/meteo/Bompietro\",759 => \"/meteo/Bomporto\",760 => \"/meteo/Bonarcado\",761 => \"/meteo/Bonassola\",762 => \"/meteo/Bonate+sopra\",763 => \"/meteo/Bonate+sotto\",764 => \"/meteo/Bonavigo\",765 => \"/meteo/Bondeno\",766 => \"/meteo/Bondo\",767 => \"/meteo/Bondone\",768 => \"/meteo/Bonea\",769 => \"/meteo/Bonefro\",770 => \"/meteo/Bonemerse\",771 => \"/meteo/Bonifati\",772 => \"/meteo/Bonito\",773 => \"/meteo/Bonnanaro\",774 => \"/meteo/Bono\",775 => \"/meteo/Bonorva\",776 => \"/meteo/Bonvicino\",777 => \"/meteo/Borbona\",778 => \"/meteo/Borca+di+cadore\",779 => \"/meteo/Bordano\",780 => \"/meteo/Bordighera\",781 => \"/meteo/Bordolano\",782 => \"/meteo/Bore\",783 => \"/meteo/Boretto\",784 => \"/meteo/Borgarello\",785 => \"/meteo/Borgaro+torinese\",786 => \"/meteo/Borgetto\",787 => \"/meteo/Borghetto+d'arroscia\",788 => \"/meteo/Borghetto+di+borbera\",789 => \"/meteo/Borghetto+di+vara\",790 => \"/meteo/Borghetto+lodigiano\",791 => \"/meteo/Borghetto+Santo+Spirito\",792 => \"/meteo/Borghi\",793 => \"/meteo/Borgia\",794 => \"/meteo/Borgiallo\",795 => \"/meteo/Borgio+Verezzi\",796 => \"/meteo/Borgo+a+Mozzano\",797 => \"/meteo/Borgo+d'Ale\",798 => \"/meteo/Borgo+di+Terzo\",8159 => \"/meteo/Borgo+d`Ale\",799 => \"/meteo/Borgo+Pace\",800 => \"/meteo/Borgo+Priolo\",801 => \"/meteo/Borgo+San+Dalmazzo\",802 => \"/meteo/Borgo+San+Giacomo\",803 => \"/meteo/Borgo+San+Giovanni\",804 => \"/meteo/Borgo+San+Lorenzo\",805 => \"/meteo/Borgo+San+Martino\",806 => \"/meteo/Borgo+San+Siro\",807 => \"/meteo/Borgo+Ticino\",808 => \"/meteo/Borgo+Tossignano\",809 => \"/meteo/Borgo+Val+di+Taro\",810 => \"/meteo/Borgo+Valsugana\",811 => \"/meteo/Borgo+Velino\",812 => \"/meteo/Borgo+Vercelli\",813 => \"/meteo/Borgoforte\",814 => \"/meteo/Borgofranco+d'Ivrea\",815 => \"/meteo/Borgofranco+sul+Po\",816 => \"/meteo/Borgolavezzaro\",817 => \"/meteo/Borgomale\",818 => \"/meteo/Borgomanero\",819 => \"/meteo/Borgomaro\",820 => \"/meteo/Borgomasino\",821 => \"/meteo/Borgone+susa\",822 => \"/meteo/Borgonovo+val+tidone\",823 => \"/meteo/Borgoratto+alessandrino\",824 => \"/meteo/Borgoratto+mormorolo\",825 => \"/meteo/Borgoricco\",826 => \"/meteo/Borgorose\",827 => \"/meteo/Borgosatollo\",828 => \"/meteo/Borgosesia\",829 => \"/meteo/Bormida\",830 => \"/meteo/Bormio\",8334 => \"/meteo/Bormio+2000\",8335 => \"/meteo/Bormio+3000\",831 => \"/meteo/Bornasco\",832 => \"/meteo/Borno\",833 => \"/meteo/Boroneddu\",834 => \"/meteo/Borore\",835 => \"/meteo/Borrello\",836 => \"/meteo/Borriana\",837 => \"/meteo/Borso+del+Grappa\",838 => \"/meteo/Bortigali\",839 => \"/meteo/Bortigiadas\",840 => \"/meteo/Borutta\",841 => \"/meteo/Borzonasca\",842 => \"/meteo/Bosa\",843 => \"/meteo/Bosaro\",844 => \"/meteo/Boschi+Sant'Anna\",845 => \"/meteo/Bosco+Chiesanuova\",846 => \"/meteo/Bosco+Marengo\",847 => \"/meteo/Bosconero\",848 => \"/meteo/Boscoreale\",849 => \"/meteo/Boscotrecase\",850 => \"/meteo/Bosentino\",851 => \"/meteo/Bosia\",852 => \"/meteo/Bosio\",853 => \"/meteo/Bosisio+Parini\",854 => \"/meteo/Bosnasco\",855 => \"/meteo/Bossico\",856 => \"/meteo/Bossolasco\",857 => \"/meteo/Botricello\",858 => \"/meteo/Botrugno\",859 => \"/meteo/Bottanuco\",860 => \"/meteo/Botticino\",861 => \"/meteo/Bottidda\",8655 => \"/meteo/Bourg+San+Bernard\",862 => \"/meteo/Bova\",863 => \"/meteo/Bova+marina\",864 => \"/meteo/Bovalino\",865 => \"/meteo/Bovegno\",866 => \"/meteo/Boves\",867 => \"/meteo/Bovezzo\",868 => \"/meteo/Boville+Ernica\",869 => \"/meteo/Bovino\",870 => \"/meteo/Bovisio+Masciago\",871 => \"/meteo/Bovolenta\",872 => \"/meteo/Bovolone\",873 => \"/meteo/Bozzole\",874 => \"/meteo/Bozzolo\",875 => \"/meteo/Bra\",876 => \"/meteo/Bracca\",877 => \"/meteo/Bracciano\",878 => \"/meteo/Bracigliano\",879 => \"/meteo/Braies\",880 => \"/meteo/Brallo+di+Pregola\",881 => \"/meteo/Brancaleone\",882 => \"/meteo/Brandico\",883 => \"/meteo/Brandizzo\",884 => \"/meteo/Branzi\",885 => \"/meteo/Braone\",8740 => \"/meteo/Bratto\",886 => \"/meteo/Brebbia\",887 => \"/meteo/Breda+di+Piave\",888 => \"/meteo/Bregano\",889 => \"/meteo/Breganze\",890 => \"/meteo/Bregnano\",891 => \"/meteo/Breguzzo\",892 => \"/meteo/Breia\",8724 => \"/meteo/Breithorn\",893 => \"/meteo/Brembate\",894 => \"/meteo/Brembate+di+sopra\",895 => \"/meteo/Brembilla\",896 => \"/meteo/Brembio\",897 => \"/meteo/Breme\",898 => \"/meteo/Brendola\",899 => \"/meteo/Brenna\",900 => \"/meteo/Brennero\",901 => \"/meteo/Breno\",902 => \"/meteo/Brenta\",903 => \"/meteo/Brentino+Belluno\",904 => \"/meteo/Brentonico\",905 => \"/meteo/Brenzone\",906 => \"/meteo/Brescello\",907 => \"/meteo/Brescia\",8547 => \"/meteo/Brescia+Montichiari\",908 => \"/meteo/Bresimo\",909 => \"/meteo/Bressana+Bottarone\",910 => \"/meteo/Bressanone\",911 => \"/meteo/Bressanvido\",912 => \"/meteo/Bresso\",8226 => \"/meteo/Breuil-Cervinia\",913 => \"/meteo/Brez\",914 => \"/meteo/Brezzo+di+Bedero\",915 => \"/meteo/Briaglia\",916 => \"/meteo/Briatico\",917 => \"/meteo/Bricherasio\",918 => \"/meteo/Brienno\",919 => \"/meteo/Brienza\",920 => \"/meteo/Briga+alta\",921 => \"/meteo/Briga+novarese\",923 => \"/meteo/Brignano+Frascata\",922 => \"/meteo/Brignano+Gera+d'Adda\",924 => \"/meteo/Brindisi\",8358 => \"/meteo/Brindisi+montagna\",8549 => \"/meteo/Brindisi+Papola+Casale\",926 => \"/meteo/Brinzio\",927 => \"/meteo/Briona\",928 => \"/meteo/Brione\",929 => \"/meteo/Brione\",930 => \"/meteo/Briosco\",931 => \"/meteo/Brisighella\",932 => \"/meteo/Brissago+valtravaglia\",933 => \"/meteo/Brissogne\",934 => \"/meteo/Brittoli\",935 => \"/meteo/Brivio\",936 => \"/meteo/Broccostella\",937 => \"/meteo/Brogliano\",938 => \"/meteo/Brognaturo\",939 => \"/meteo/Brolo\",940 => \"/meteo/Brondello\",941 => \"/meteo/Broni\",942 => \"/meteo/Bronte\",943 => \"/meteo/Bronzolo\",944 => \"/meteo/Brossasco\",945 => \"/meteo/Brosso\",946 => \"/meteo/Brovello+Carpugnino\",947 => \"/meteo/Brozolo\",948 => \"/meteo/Brugherio\",949 => \"/meteo/Brugine\",950 => \"/meteo/Brugnato\",951 => \"/meteo/Brugnera\",952 => \"/meteo/Bruino\",953 => \"/meteo/Brumano\",954 => \"/meteo/Brunate\",955 => \"/meteo/Brunello\",956 => \"/meteo/Brunico\",957 => \"/meteo/Bruno\",958 => \"/meteo/Brusaporto\",959 => \"/meteo/Brusasco\",960 => \"/meteo/Brusciano\",961 => \"/meteo/Brusimpiano\",962 => \"/meteo/Brusnengo\",963 => \"/meteo/Brusson\",8645 => \"/meteo/Brusson+2000+Estoul\",964 => \"/meteo/Bruzolo\",965 => \"/meteo/Bruzzano+Zeffirio\",966 => \"/meteo/Bubbiano\",967 => \"/meteo/Bubbio\",968 => \"/meteo/Buccheri\",969 => \"/meteo/Bucchianico\",970 => \"/meteo/Bucciano\",971 => \"/meteo/Buccinasco\",972 => \"/meteo/Buccino\",973 => \"/meteo/Bucine\",974 => \"/meteo/Budduso'\",975 => \"/meteo/Budoia\",976 => \"/meteo/Budoni\",977 => \"/meteo/Budrio\",978 => \"/meteo/Buggerru\",979 => \"/meteo/Buggiano\",980 => \"/meteo/Buglio+in+Monte\",981 => \"/meteo/Bugnara\",982 => \"/meteo/Buguggiate\",983 => \"/meteo/Buia\",984 => \"/meteo/Bulciago\",985 => \"/meteo/Bulgarograsso\",986 => \"/meteo/Bultei\",987 => \"/meteo/Bulzi\",988 => \"/meteo/Buonabitacolo\",989 => \"/meteo/Buonalbergo\",990 => \"/meteo/Buonconvento\",991 => \"/meteo/Buonvicino\",992 => \"/meteo/Burago+di+Molgora\",993 => \"/meteo/Burcei\",994 => \"/meteo/Burgio\",995 => \"/meteo/Burgos\",996 => \"/meteo/Buriasco\",997 => \"/meteo/Burolo\",998 => \"/meteo/Buronzo\",8483 => \"/meteo/Burrino\",999 => \"/meteo/Busachi\",1000 => \"/meteo/Busalla\",1001 => \"/meteo/Busana\",1002 => \"/meteo/Busano\",1003 => \"/meteo/Busca\",1004 => \"/meteo/Buscate\",1005 => \"/meteo/Buscemi\",1006 => \"/meteo/Buseto+Palizzolo\",1007 => \"/meteo/Busnago\",1008 => \"/meteo/Bussero\",1009 => \"/meteo/Busseto\",1010 => \"/meteo/Bussi+sul+Tirino\",1011 => \"/meteo/Busso\",1012 => \"/meteo/Bussolengo\",1013 => \"/meteo/Bussoleno\",1014 => \"/meteo/Busto+Arsizio\",1015 => \"/meteo/Busto+Garolfo\",1016 => \"/meteo/Butera\",1017 => \"/meteo/Buti\",1018 => \"/meteo/Buttapietra\",1019 => \"/meteo/Buttigliera+alta\",1020 => \"/meteo/Buttigliera+d'Asti\",1021 => \"/meteo/Buttrio\",1022 => \"/meteo/Ca'+d'Andrea\",1023 => \"/meteo/Cabella+ligure\",1024 => \"/meteo/Cabiate\",1025 => \"/meteo/Cabras\",1026 => \"/meteo/Caccamo\",1027 => \"/meteo/Caccuri\",1028 => \"/meteo/Cadegliano+Viconago\",1029 => \"/meteo/Cadelbosco+di+sopra\",1030 => \"/meteo/Cadeo\",1031 => \"/meteo/Caderzone\",8566 => \"/meteo/Cadipietra\",1032 => \"/meteo/Cadoneghe\",1033 => \"/meteo/Cadorago\",1034 => \"/meteo/Cadrezzate\",1035 => \"/meteo/Caerano+di+San+Marco\",1036 => \"/meteo/Cafasse\",1037 => \"/meteo/Caggiano\",1038 => \"/meteo/Cagli\",1039 => \"/meteo/Cagliari\",8500 => \"/meteo/Cagliari+Elmas\",1040 => \"/meteo/Caglio\",1041 => \"/meteo/Cagnano+Amiterno\",1042 => \"/meteo/Cagnano+Varano\",1043 => \"/meteo/Cagno\",1044 => \"/meteo/Cagno'\",1045 => \"/meteo/Caianello\",1046 => \"/meteo/Caiazzo\",1047 => \"/meteo/Caines\",1048 => \"/meteo/Caino\",1049 => \"/meteo/Caiolo\",1050 => \"/meteo/Cairano\",1051 => \"/meteo/Cairate\",1052 => \"/meteo/Cairo+Montenotte\",1053 => \"/meteo/Caivano\",8168 => \"/meteo/Cala+Gonone\",1054 => \"/meteo/Calabritto\",1055 => \"/meteo/Calalzo+di+cadore\",1056 => \"/meteo/Calamandrana\",1057 => \"/meteo/Calamonaci\",1058 => \"/meteo/Calangianus\",1059 => \"/meteo/Calanna\",1060 => \"/meteo/Calasca+Castiglione\",1061 => \"/meteo/Calascibetta\",1062 => \"/meteo/Calascio\",1063 => \"/meteo/Calasetta\",1064 => \"/meteo/Calatabiano\",1065 => \"/meteo/Calatafimi\",1066 => \"/meteo/Calavino\",1067 => \"/meteo/Calcata\",1068 => \"/meteo/Calceranica+al+lago\",1069 => \"/meteo/Calci\",8424 => \"/meteo/Calciano\",1071 => \"/meteo/Calcinaia\",1072 => \"/meteo/Calcinate\",1073 => \"/meteo/Calcinato\",1074 => \"/meteo/Calcio\",1075 => \"/meteo/Calco\",1076 => \"/meteo/Caldaro+sulla+strada+del+vino\",1077 => \"/meteo/Caldarola\",1078 => \"/meteo/Calderara+di+Reno\",1079 => \"/meteo/Caldes\",1080 => \"/meteo/Caldiero\",1081 => \"/meteo/Caldogno\",1082 => \"/meteo/Caldonazzo\",1083 => \"/meteo/Calendasco\",8614 => \"/meteo/Calenella\",1084 => \"/meteo/Calenzano\",1085 => \"/meteo/Calestano\",1086 => \"/meteo/Calice+al+Cornoviglio\",1087 => \"/meteo/Calice+ligure\",8692 => \"/meteo/California+di+Lesmo\",1088 => \"/meteo/Calimera\",1089 => \"/meteo/Calitri\",1090 => \"/meteo/Calizzano\",1091 => \"/meteo/Callabiana\",1092 => \"/meteo/Calliano\",1093 => \"/meteo/Calliano\",1094 => \"/meteo/Calolziocorte\",1095 => \"/meteo/Calopezzati\",1096 => \"/meteo/Calosso\",1097 => \"/meteo/Caloveto\",1098 => \"/meteo/Caltabellotta\",1099 => \"/meteo/Caltagirone\",1100 => \"/meteo/Caltanissetta\",1101 => \"/meteo/Caltavuturo\",1102 => \"/meteo/Caltignaga\",1103 => \"/meteo/Calto\",1104 => \"/meteo/Caltrano\",1105 => \"/meteo/Calusco+d'Adda\",1106 => \"/meteo/Caluso\",1107 => \"/meteo/Calvagese+della+Riviera\",1108 => \"/meteo/Calvanico\",1109 => \"/meteo/Calvatone\",8406 => \"/meteo/Calvello\",1111 => \"/meteo/Calvene\",1112 => \"/meteo/Calvenzano\",8373 => \"/meteo/Calvera\",1114 => \"/meteo/Calvi\",1115 => \"/meteo/Calvi+dell'Umbria\",1116 => \"/meteo/Calvi+risorta\",1117 => \"/meteo/Calvignano\",1118 => \"/meteo/Calvignasco\",1119 => \"/meteo/Calvisano\",1120 => \"/meteo/Calvizzano\",1121 => \"/meteo/Camagna+monferrato\",1122 => \"/meteo/Camaiore\",1123 => \"/meteo/Camairago\",1124 => \"/meteo/Camandona\",1125 => \"/meteo/Camastra\",1126 => \"/meteo/Cambiago\",1127 => \"/meteo/Cambiano\",1128 => \"/meteo/Cambiasca\",1129 => \"/meteo/Camburzano\",1130 => \"/meteo/Camerana\",1131 => \"/meteo/Camerano\",1132 => \"/meteo/Camerano+Casasco\",1133 => \"/meteo/Camerata+Cornello\",1134 => \"/meteo/Camerata+Nuova\",1135 => \"/meteo/Camerata+picena\",1136 => \"/meteo/Cameri\",1137 => \"/meteo/Camerino\",1138 => \"/meteo/Camerota\",1139 => \"/meteo/Camigliano\",8119 => \"/meteo/Camigliatello+silano\",1140 => \"/meteo/Caminata\",1141 => \"/meteo/Camini\",1142 => \"/meteo/Camino\",1143 => \"/meteo/Camino+al+Tagliamento\",1144 => \"/meteo/Camisano\",1145 => \"/meteo/Camisano+vicentino\",1146 => \"/meteo/Cammarata\",1147 => \"/meteo/Camo\",1148 => \"/meteo/Camogli\",1149 => \"/meteo/Campagna\",1150 => \"/meteo/Campagna+Lupia\",1151 => \"/meteo/Campagnano+di+Roma\",1152 => \"/meteo/Campagnatico\",1153 => \"/meteo/Campagnola+cremasca\",1154 => \"/meteo/Campagnola+emilia\",1155 => \"/meteo/Campana\",1156 => \"/meteo/Camparada\",1157 => \"/meteo/Campegine\",1158 => \"/meteo/Campello+sul+Clitunno\",1159 => \"/meteo/Campertogno\",1160 => \"/meteo/Campi+Bisenzio\",1161 => \"/meteo/Campi+salentina\",1162 => \"/meteo/Campiglia+cervo\",1163 => \"/meteo/Campiglia+dei+Berici\",1164 => \"/meteo/Campiglia+marittima\",1165 => \"/meteo/Campiglione+Fenile\",8127 => \"/meteo/Campigna\",1166 => \"/meteo/Campione+d'Italia\",1167 => \"/meteo/Campitello+di+Fassa\",8155 => \"/meteo/Campitello+matese\",1168 => \"/meteo/Campli\",1169 => \"/meteo/Campo+calabro\",8754 => \"/meteo/Campo+Carlo+Magno\",8134 => \"/meteo/Campo+Catino\",8610 => \"/meteo/Campo+Cecina\",1170 => \"/meteo/Campo+di+Giove\",1171 => \"/meteo/Campo+di+Trens\",8345 => \"/meteo/Campo+Felice\",8101 => \"/meteo/Campo+imperatore\",1172 => \"/meteo/Campo+ligure\",1173 => \"/meteo/Campo+nell'Elba\",1174 => \"/meteo/Campo+San+Martino\",8135 => \"/meteo/Campo+Staffi\",8644 => \"/meteo/Campo+Tenese\",1175 => \"/meteo/Campo+Tures\",1176 => \"/meteo/Campobasso\",1177 => \"/meteo/Campobello+di+Licata\",1178 => \"/meteo/Campobello+di+Mazara\",1179 => \"/meteo/Campochiaro\",1180 => \"/meteo/Campodarsego\",1181 => \"/meteo/Campodenno\",8357 => \"/meteo/Campodimele\",1183 => \"/meteo/Campodipietra\",1184 => \"/meteo/Campodolcino\",1185 => \"/meteo/Campodoro\",1186 => \"/meteo/Campofelice+di+Fitalia\",1187 => \"/meteo/Campofelice+di+Roccella\",1188 => \"/meteo/Campofilone\",1189 => \"/meteo/Campofiorito\",1190 => \"/meteo/Campoformido\",1191 => \"/meteo/Campofranco\",1192 => \"/meteo/Campogalliano\",1193 => \"/meteo/Campolattaro\",1194 => \"/meteo/Campoli+Appennino\",1195 => \"/meteo/Campoli+del+Monte+Taburno\",1196 => \"/meteo/Campolieto\",1197 => \"/meteo/Campolongo+al+Torre\",1198 => \"/meteo/Campolongo+Maggiore\",1199 => \"/meteo/Campolongo+sul+Brenta\",8391 => \"/meteo/Campomaggiore\",1201 => \"/meteo/Campomarino\",1202 => \"/meteo/Campomorone\",1203 => \"/meteo/Camponogara\",1204 => \"/meteo/Campora\",1205 => \"/meteo/Camporeale\",1206 => \"/meteo/Camporgiano\",1207 => \"/meteo/Camporosso\",1208 => \"/meteo/Camporotondo+di+Fiastrone\",1209 => \"/meteo/Camporotondo+etneo\",1210 => \"/meteo/Camposampiero\",1211 => \"/meteo/Camposano\",1212 => \"/meteo/Camposanto\",1213 => \"/meteo/Campospinoso\",1214 => \"/meteo/Campotosto\",1215 => \"/meteo/Camugnano\",1216 => \"/meteo/Canal+San+Bovo\",1217 => \"/meteo/Canale\",1218 => \"/meteo/Canale+d'Agordo\",1219 => \"/meteo/Canale+Monterano\",1220 => \"/meteo/Canaro\",1221 => \"/meteo/Canazei\",8407 => \"/meteo/Cancellara\",1223 => \"/meteo/Cancello+ed+Arnone\",1224 => \"/meteo/Canda\",1225 => \"/meteo/Candela\",8468 => \"/meteo/Candela+casello\",1226 => \"/meteo/Candelo\",1227 => \"/meteo/Candia+canavese\",1228 => \"/meteo/Candia+lomellina\",1229 => \"/meteo/Candiana\",1230 => \"/meteo/Candida\",1231 => \"/meteo/Candidoni\",1232 => \"/meteo/Candiolo\",1233 => \"/meteo/Canegrate\",1234 => \"/meteo/Canelli\",1235 => \"/meteo/Canepina\",1236 => \"/meteo/Caneva\",8562 => \"/meteo/Canevare+di+Fanano\",1237 => \"/meteo/Canevino\",1238 => \"/meteo/Canicatti'\",1239 => \"/meteo/Canicattini+Bagni\",1240 => \"/meteo/Canino\",1241 => \"/meteo/Canischio\",1242 => \"/meteo/Canistro\",1243 => \"/meteo/Canna\",1244 => \"/meteo/Cannalonga\",1245 => \"/meteo/Cannara\",1246 => \"/meteo/Cannero+riviera\",1247 => \"/meteo/Canneto+pavese\",1248 => \"/meteo/Canneto+sull'Oglio\",8588 => \"/meteo/Cannigione\",1249 => \"/meteo/Cannobio\",1250 => \"/meteo/Cannole\",1251 => \"/meteo/Canolo\",1252 => \"/meteo/Canonica+d'Adda\",1253 => \"/meteo/Canosa+di+Puglia\",1254 => \"/meteo/Canosa+sannita\",1255 => \"/meteo/Canosio\",1256 => \"/meteo/Canossa\",1257 => \"/meteo/Cansano\",1258 => \"/meteo/Cantagallo\",1259 => \"/meteo/Cantalice\",1260 => \"/meteo/Cantalupa\",1261 => \"/meteo/Cantalupo+in+Sabina\",1262 => \"/meteo/Cantalupo+ligure\",1263 => \"/meteo/Cantalupo+nel+Sannio\",1264 => \"/meteo/Cantarana\",1265 => \"/meteo/Cantello\",1266 => \"/meteo/Canterano\",1267 => \"/meteo/Cantiano\",1268 => \"/meteo/Cantoira\",1269 => \"/meteo/Cantu'\",1270 => \"/meteo/Canzano\",1271 => \"/meteo/Canzo\",1272 => \"/meteo/Caorle\",1273 => \"/meteo/Caorso\",1274 => \"/meteo/Capaccio\",1275 => \"/meteo/Capaci\",1276 => \"/meteo/Capalbio\",8242 => \"/meteo/Capanna+Margherita\",8297 => \"/meteo/Capanne+di+Sillano\",1277 => \"/meteo/Capannoli\",1278 => \"/meteo/Capannori\",1279 => \"/meteo/Capena\",1280 => \"/meteo/Capergnanica\",1281 => \"/meteo/Capestrano\",1282 => \"/meteo/Capiago+Intimiano\",1283 => \"/meteo/Capistrano\",1284 => \"/meteo/Capistrello\",1285 => \"/meteo/Capitignano\",1286 => \"/meteo/Capizzi\",1287 => \"/meteo/Capizzone\",8609 => \"/meteo/Capo+Bellavista\",8113 => \"/meteo/Capo+Colonna\",1288 => \"/meteo/Capo+d'Orlando\",1289 => \"/meteo/Capo+di+Ponte\",8676 => \"/meteo/Capo+Mele\",8607 => \"/meteo/Capo+Palinuro\",8112 => \"/meteo/Capo+Rizzuto\",1290 => \"/meteo/Capodimonte\",1291 => \"/meteo/Capodrise\",1292 => \"/meteo/Capoliveri\",1293 => \"/meteo/Capolona\",1294 => \"/meteo/Caponago\",1295 => \"/meteo/Caporciano\",1296 => \"/meteo/Caposele\",1297 => \"/meteo/Capoterra\",1298 => \"/meteo/Capovalle\",1299 => \"/meteo/Cappadocia\",1300 => \"/meteo/Cappella+Cantone\",1301 => \"/meteo/Cappella+de'+Picenardi\",1302 => \"/meteo/Cappella+Maggiore\",1303 => \"/meteo/Cappelle+sul+Tavo\",1304 => \"/meteo/Capracotta\",1305 => \"/meteo/Capraia+e+Limite\",1306 => \"/meteo/Capraia+isola\",1307 => \"/meteo/Capralba\",1308 => \"/meteo/Capranica\",1309 => \"/meteo/Capranica+Prenestina\",1310 => \"/meteo/Caprarica+di+Lecce\",1311 => \"/meteo/Caprarola\",1312 => \"/meteo/Caprauna\",1313 => \"/meteo/Caprese+Michelangelo\",1314 => \"/meteo/Caprezzo\",1315 => \"/meteo/Capri\",1316 => \"/meteo/Capri+Leone\",1317 => \"/meteo/Capriana\",1318 => \"/meteo/Capriano+del+Colle\",1319 => \"/meteo/Capriata+d'Orba\",1320 => \"/meteo/Capriate+San+Gervasio\",1321 => \"/meteo/Capriati+a+Volturno\",1322 => \"/meteo/Caprie\",1323 => \"/meteo/Capriglia+irpina\",1324 => \"/meteo/Capriglio\",1325 => \"/meteo/Caprile\",1326 => \"/meteo/Caprino+bergamasco\",1327 => \"/meteo/Caprino+veronese\",1328 => \"/meteo/Capriolo\",1329 => \"/meteo/Capriva+del+Friuli\",1330 => \"/meteo/Capua\",1331 => \"/meteo/Capurso\",1332 => \"/meteo/Caraffa+del+Bianco\",1333 => \"/meteo/Caraffa+di+Catanzaro\",1334 => \"/meteo/Caraglio\",1335 => \"/meteo/Caramagna+Piemonte\",1336 => \"/meteo/Caramanico+terme\",1337 => \"/meteo/Carano\",1338 => \"/meteo/Carapelle\",1339 => \"/meteo/Carapelle+Calvisio\",1340 => \"/meteo/Carasco\",1341 => \"/meteo/Carassai\",1342 => \"/meteo/Carate+brianza\",1343 => \"/meteo/Carate+Urio\",1344 => \"/meteo/Caravaggio\",1345 => \"/meteo/Caravate\",1346 => \"/meteo/Caravino\",1347 => \"/meteo/Caravonica\",1348 => \"/meteo/Carbognano\",1349 => \"/meteo/Carbonara+al+Ticino\",1350 => \"/meteo/Carbonara+di+Nola\",1351 => \"/meteo/Carbonara+di+Po\",1352 => \"/meteo/Carbonara+Scrivia\",1353 => \"/meteo/Carbonate\",8374 => \"/meteo/Carbone\",1355 => \"/meteo/Carbonera\",1356 => \"/meteo/Carbonia\",1357 => \"/meteo/Carcare\",1358 => \"/meteo/Carceri\",1359 => \"/meteo/Carcoforo\",1360 => \"/meteo/Cardano+al+Campo\",1361 => \"/meteo/Carde'\",1362 => \"/meteo/Cardedu\",1363 => \"/meteo/Cardeto\",1364 => \"/meteo/Cardinale\",1365 => \"/meteo/Cardito\",1366 => \"/meteo/Careggine\",1367 => \"/meteo/Carema\",1368 => \"/meteo/Carenno\",1369 => \"/meteo/Carentino\",1370 => \"/meteo/Careri\",1371 => \"/meteo/Caresana\",1372 => \"/meteo/Caresanablot\",8625 => \"/meteo/Carezza+al+lago\",1373 => \"/meteo/Carezzano\",1374 => \"/meteo/Carfizzi\",1375 => \"/meteo/Cargeghe\",1376 => \"/meteo/Cariati\",1377 => \"/meteo/Carife\",1378 => \"/meteo/Carignano\",1379 => \"/meteo/Carimate\",1380 => \"/meteo/Carinaro\",1381 => \"/meteo/Carini\",1382 => \"/meteo/Carinola\",1383 => \"/meteo/Carisio\",1384 => \"/meteo/Carisolo\",1385 => \"/meteo/Carlantino\",1386 => \"/meteo/Carlazzo\",1387 => \"/meteo/Carlentini\",1388 => \"/meteo/Carlino\",1389 => \"/meteo/Carloforte\",1390 => \"/meteo/Carlopoli\",1391 => \"/meteo/Carmagnola\",1392 => \"/meteo/Carmiano\",1393 => \"/meteo/Carmignano\",1394 => \"/meteo/Carmignano+di+Brenta\",1395 => \"/meteo/Carnago\",1396 => \"/meteo/Carnate\",1397 => \"/meteo/Carobbio+degli+Angeli\",1398 => \"/meteo/Carolei\",1399 => \"/meteo/Carona\",8541 => \"/meteo/Carona+Carisole\",1400 => \"/meteo/Caronia\",1401 => \"/meteo/Caronno+Pertusella\",1402 => \"/meteo/Caronno+varesino\",8253 => \"/meteo/Carosello+3000\",1403 => \"/meteo/Carosino\",1404 => \"/meteo/Carovigno\",1405 => \"/meteo/Carovilli\",1406 => \"/meteo/Carpaneto+piacentino\",1407 => \"/meteo/Carpanzano\",1408 => \"/meteo/Carpasio\",1409 => \"/meteo/Carpegna\",1410 => \"/meteo/Carpenedolo\",1411 => \"/meteo/Carpeneto\",1412 => \"/meteo/Carpi\",1413 => \"/meteo/Carpiano\",1414 => \"/meteo/Carpignano+salentino\",1415 => \"/meteo/Carpignano+Sesia\",1416 => \"/meteo/Carpineti\",1417 => \"/meteo/Carpineto+della+Nora\",1418 => \"/meteo/Carpineto+romano\",1419 => \"/meteo/Carpineto+Sinello\",1420 => \"/meteo/Carpino\",1421 => \"/meteo/Carpinone\",1422 => \"/meteo/Carrara\",1423 => \"/meteo/Carre'\",1424 => \"/meteo/Carrega+ligure\",1425 => \"/meteo/Carro\",1426 => \"/meteo/Carrodano\",1427 => \"/meteo/Carrosio\",1428 => \"/meteo/Carru'\",1429 => \"/meteo/Carsoli\",1430 => \"/meteo/Cartigliano\",1431 => \"/meteo/Cartignano\",1432 => \"/meteo/Cartoceto\",1433 => \"/meteo/Cartosio\",1434 => \"/meteo/Cartura\",1435 => \"/meteo/Carugate\",1436 => \"/meteo/Carugo\",1437 => \"/meteo/Carunchio\",1438 => \"/meteo/Carvico\",1439 => \"/meteo/Carzano\",1440 => \"/meteo/Casabona\",1441 => \"/meteo/Casacalenda\",1442 => \"/meteo/Casacanditella\",1443 => \"/meteo/Casagiove\",1444 => \"/meteo/Casal+Cermelli\",1445 => \"/meteo/Casal+di+Principe\",1446 => \"/meteo/Casal+Velino\",1447 => \"/meteo/Casalanguida\",1448 => \"/meteo/Casalattico\",8648 => \"/meteo/Casalavera\",1449 => \"/meteo/Casalbeltrame\",1450 => \"/meteo/Casalbordino\",1451 => \"/meteo/Casalbore\",1452 => \"/meteo/Casalborgone\",1453 => \"/meteo/Casalbuono\",1454 => \"/meteo/Casalbuttano+ed+Uniti\",1455 => \"/meteo/Casalciprano\",1456 => \"/meteo/Casalduni\",1457 => \"/meteo/Casale+Corte+Cerro\",1458 => \"/meteo/Casale+cremasco+Vidolasco\",1459 => \"/meteo/Casale+di+Scodosia\",1460 => \"/meteo/Casale+Litta\",1461 => \"/meteo/Casale+marittimo\",1462 => \"/meteo/Casale+monferrato\",1463 => \"/meteo/Casale+sul+Sile\",1464 => \"/meteo/Casalecchio+di+Reno\",1465 => \"/meteo/Casaleggio+Boiro\",1466 => \"/meteo/Casaleggio+Novara\",1467 => \"/meteo/Casaleone\",1468 => \"/meteo/Casaletto+Ceredano\",1469 => \"/meteo/Casaletto+di+sopra\",1470 => \"/meteo/Casaletto+lodigiano\",1471 => \"/meteo/Casaletto+Spartano\",1472 => \"/meteo/Casaletto+Vaprio\",1473 => \"/meteo/Casalfiumanese\",1474 => \"/meteo/Casalgrande\",1475 => \"/meteo/Casalgrasso\",1476 => \"/meteo/Casalincontrada\",1477 => \"/meteo/Casalino\",1478 => \"/meteo/Casalmaggiore\",1479 => \"/meteo/Casalmaiocco\",1480 => \"/meteo/Casalmorano\",1481 => \"/meteo/Casalmoro\",1482 => \"/meteo/Casalnoceto\",1483 => \"/meteo/Casalnuovo+di+Napoli\",1484 => \"/meteo/Casalnuovo+Monterotaro\",1485 => \"/meteo/Casaloldo\",1486 => \"/meteo/Casalpusterlengo\",1487 => \"/meteo/Casalromano\",1488 => \"/meteo/Casalserugo\",1489 => \"/meteo/Casaluce\",1490 => \"/meteo/Casalvecchio+di+Puglia\",1491 => \"/meteo/Casalvecchio+siculo\",1492 => \"/meteo/Casalvieri\",1493 => \"/meteo/Casalvolone\",1494 => \"/meteo/Casalzuigno\",1495 => \"/meteo/Casamarciano\",1496 => \"/meteo/Casamassima\",1497 => \"/meteo/Casamicciola+terme\",1498 => \"/meteo/Casandrino\",1499 => \"/meteo/Casanova+Elvo\",1500 => \"/meteo/Casanova+Lerrone\",1501 => \"/meteo/Casanova+Lonati\",1502 => \"/meteo/Casape\",1503 => \"/meteo/Casapesenna\",1504 => \"/meteo/Casapinta\",1505 => \"/meteo/Casaprota\",1506 => \"/meteo/Casapulla\",1507 => \"/meteo/Casarano\",1508 => \"/meteo/Casargo\",1509 => \"/meteo/Casarile\",1510 => \"/meteo/Casarsa+della+Delizia\",1511 => \"/meteo/Casarza+ligure\",1512 => \"/meteo/Casasco\",1513 => \"/meteo/Casasco+d'Intelvi\",1514 => \"/meteo/Casatenovo\",1515 => \"/meteo/Casatisma\",1516 => \"/meteo/Casavatore\",1517 => \"/meteo/Casazza\",8160 => \"/meteo/Cascate+del+Toce\",1518 => \"/meteo/Cascia\",1519 => \"/meteo/Casciago\",1520 => \"/meteo/Casciana+terme\",1521 => \"/meteo/Cascina\",1522 => \"/meteo/Cascinette+d'Ivrea\",1523 => \"/meteo/Casei+Gerola\",1524 => \"/meteo/Caselette\",1525 => \"/meteo/Casella\",1526 => \"/meteo/Caselle+in+Pittari\",1527 => \"/meteo/Caselle+Landi\",1528 => \"/meteo/Caselle+Lurani\",1529 => \"/meteo/Caselle+torinese\",1530 => \"/meteo/Caserta\",1531 => \"/meteo/Casier\",1532 => \"/meteo/Casignana\",1533 => \"/meteo/Casina\",1534 => \"/meteo/Casirate+d'Adda\",1535 => \"/meteo/Caslino+d'Erba\",1536 => \"/meteo/Casnate+con+Bernate\",1537 => \"/meteo/Casnigo\",1538 => \"/meteo/Casola+di+Napoli\",1539 => \"/meteo/Casola+in+lunigiana\",1540 => \"/meteo/Casola+valsenio\",1541 => \"/meteo/Casole+Bruzio\",1542 => \"/meteo/Casole+d'Elsa\",1543 => \"/meteo/Casoli\",1544 => \"/meteo/Casorate+Primo\",1545 => \"/meteo/Casorate+Sempione\",1546 => \"/meteo/Casorezzo\",1547 => \"/meteo/Casoria\",1548 => \"/meteo/Casorzo\",1549 => \"/meteo/Casperia\",1550 => \"/meteo/Caspoggio\",1551 => \"/meteo/Cassacco\",1552 => \"/meteo/Cassago+brianza\",1553 => \"/meteo/Cassano+allo+Ionio\",1554 => \"/meteo/Cassano+d'Adda\",1555 => \"/meteo/Cassano+delle+murge\",1556 => \"/meteo/Cassano+irpino\",1557 => \"/meteo/Cassano+Magnago\",1558 => \"/meteo/Cassano+Spinola\",1559 => \"/meteo/Cassano+valcuvia\",1560 => \"/meteo/Cassaro\",1561 => \"/meteo/Cassiglio\",1562 => \"/meteo/Cassina+de'+Pecchi\",1563 => \"/meteo/Cassina+Rizzardi\",1564 => \"/meteo/Cassina+valsassina\",1565 => \"/meteo/Cassinasco\",1566 => \"/meteo/Cassine\",1567 => \"/meteo/Cassinelle\",1568 => \"/meteo/Cassinetta+di+Lugagnano\",1569 => \"/meteo/Cassino\",1570 => \"/meteo/Cassola\",1571 => \"/meteo/Cassolnovo\",1572 => \"/meteo/Castagnaro\",1573 => \"/meteo/Castagneto+Carducci\",1574 => \"/meteo/Castagneto+po\",1575 => \"/meteo/Castagnito\",1576 => \"/meteo/Castagnole+delle+Lanze\",1577 => \"/meteo/Castagnole+monferrato\",1578 => \"/meteo/Castagnole+Piemonte\",1579 => \"/meteo/Castana\",1580 => \"/meteo/Castano+Primo\",1581 => \"/meteo/Casteggio\",1582 => \"/meteo/Castegnato\",1583 => \"/meteo/Castegnero\",1584 => \"/meteo/Castel+Baronia\",1585 => \"/meteo/Castel+Boglione\",1586 => \"/meteo/Castel+bolognese\",1587 => \"/meteo/Castel+Campagnano\",1588 => \"/meteo/Castel+Castagna\",1589 => \"/meteo/Castel+Colonna\",1590 => \"/meteo/Castel+Condino\",1591 => \"/meteo/Castel+d'Aiano\",1592 => \"/meteo/Castel+d'Ario\",1593 => \"/meteo/Castel+d'Azzano\",1594 => \"/meteo/Castel+del+Giudice\",1595 => \"/meteo/Castel+del+monte\",1596 => \"/meteo/Castel+del+piano\",1597 => \"/meteo/Castel+del+rio\",1598 => \"/meteo/Castel+di+Casio\",1599 => \"/meteo/Castel+di+Ieri\",1600 => \"/meteo/Castel+di+Iudica\",1601 => \"/meteo/Castel+di+Lama\",1602 => \"/meteo/Castel+di+Lucio\",1603 => \"/meteo/Castel+di+Sangro\",1604 => \"/meteo/Castel+di+Sasso\",1605 => \"/meteo/Castel+di+Tora\",1606 => \"/meteo/Castel+Focognano\",1607 => \"/meteo/Castel+frentano\",1608 => \"/meteo/Castel+Gabbiano\",1609 => \"/meteo/Castel+Gandolfo\",1610 => \"/meteo/Castel+Giorgio\",1611 => \"/meteo/Castel+Goffredo\",1612 => \"/meteo/Castel+Guelfo+di+Bologna\",1613 => \"/meteo/Castel+Madama\",1614 => \"/meteo/Castel+Maggiore\",1615 => \"/meteo/Castel+Mella\",1616 => \"/meteo/Castel+Morrone\",1617 => \"/meteo/Castel+Ritaldi\",1618 => \"/meteo/Castel+Rocchero\",1619 => \"/meteo/Castel+Rozzone\",1620 => \"/meteo/Castel+San+Giorgio\",1621 => \"/meteo/Castel+San+Giovanni\",1622 => \"/meteo/Castel+San+Lorenzo\",1623 => \"/meteo/Castel+San+Niccolo'\",1624 => \"/meteo/Castel+San+Pietro+romano\",1625 => \"/meteo/Castel+San+Pietro+terme\",1626 => \"/meteo/Castel+San+Vincenzo\",1627 => \"/meteo/Castel+Sant'Angelo\",1628 => \"/meteo/Castel+Sant'Elia\",1629 => \"/meteo/Castel+Viscardo\",1630 => \"/meteo/Castel+Vittorio\",1631 => \"/meteo/Castel+volturno\",1632 => \"/meteo/Castelbaldo\",1633 => \"/meteo/Castelbelforte\",1634 => \"/meteo/Castelbellino\",1635 => \"/meteo/Castelbello+Ciardes\",1636 => \"/meteo/Castelbianco\",1637 => \"/meteo/Castelbottaccio\",1638 => \"/meteo/Castelbuono\",1639 => \"/meteo/Castelcivita\",1640 => \"/meteo/Castelcovati\",1641 => \"/meteo/Castelcucco\",1642 => \"/meteo/Casteldaccia\",1643 => \"/meteo/Casteldelci\",1644 => \"/meteo/Casteldelfino\",1645 => \"/meteo/Casteldidone\",1646 => \"/meteo/Castelfidardo\",1647 => \"/meteo/Castelfiorentino\",1648 => \"/meteo/Castelfondo\",1649 => \"/meteo/Castelforte\",1650 => \"/meteo/Castelfranci\",1651 => \"/meteo/Castelfranco+di+sopra\",1652 => \"/meteo/Castelfranco+di+sotto\",1653 => \"/meteo/Castelfranco+Emilia\",1654 => \"/meteo/Castelfranco+in+Miscano\",1655 => \"/meteo/Castelfranco+Veneto\",1656 => \"/meteo/Castelgomberto\",8385 => \"/meteo/Castelgrande\",1658 => \"/meteo/Castelguglielmo\",1659 => \"/meteo/Castelguidone\",1660 => \"/meteo/Castell'alfero\",1661 => \"/meteo/Castell'arquato\",1662 => \"/meteo/Castell'azzara\",1663 => \"/meteo/Castell'umberto\",1664 => \"/meteo/Castellabate\",1665 => \"/meteo/Castellafiume\",1666 => \"/meteo/Castellalto\",1667 => \"/meteo/Castellammare+del+Golfo\",1668 => \"/meteo/Castellammare+di+Stabia\",1669 => \"/meteo/Castellamonte\",1670 => \"/meteo/Castellana+Grotte\",1671 => \"/meteo/Castellana+sicula\",1672 => \"/meteo/Castellaneta\",1673 => \"/meteo/Castellania\",1674 => \"/meteo/Castellanza\",1675 => \"/meteo/Castellar\",1676 => \"/meteo/Castellar+Guidobono\",1677 => \"/meteo/Castellarano\",1678 => \"/meteo/Castellaro\",1679 => \"/meteo/Castellazzo+Bormida\",1680 => \"/meteo/Castellazzo+novarese\",1681 => \"/meteo/Castelleone\",1682 => \"/meteo/Castelleone+di+Suasa\",1683 => \"/meteo/Castellero\",1684 => \"/meteo/Castelletto+Cervo\",1685 => \"/meteo/Castelletto+d'Erro\",1686 => \"/meteo/Castelletto+d'Orba\",1687 => \"/meteo/Castelletto+di+Branduzzo\",1688 => \"/meteo/Castelletto+Merli\",1689 => \"/meteo/Castelletto+Molina\",1690 => \"/meteo/Castelletto+monferrato\",1691 => \"/meteo/Castelletto+sopra+Ticino\",1692 => \"/meteo/Castelletto+Stura\",1693 => \"/meteo/Castelletto+Uzzone\",1694 => \"/meteo/Castelli\",1695 => \"/meteo/Castelli+Calepio\",1696 => \"/meteo/Castellina+in+chianti\",1697 => \"/meteo/Castellina+marittima\",1698 => \"/meteo/Castellinaldo\",1699 => \"/meteo/Castellino+del+Biferno\",1700 => \"/meteo/Castellino+Tanaro\",1701 => \"/meteo/Castelliri\",1702 => \"/meteo/Castello+Cabiaglio\",1703 => \"/meteo/Castello+d'Agogna\",1704 => \"/meteo/Castello+d'Argile\",1705 => \"/meteo/Castello+del+matese\",1706 => \"/meteo/Castello+dell'Acqua\",1707 => \"/meteo/Castello+di+Annone\",1708 => \"/meteo/Castello+di+brianza\",1709 => \"/meteo/Castello+di+Cisterna\",1710 => \"/meteo/Castello+di+Godego\",1711 => \"/meteo/Castello+di+Serravalle\",1712 => \"/meteo/Castello+Lavazzo\",1714 => \"/meteo/Castello+Molina+di+Fiemme\",1713 => \"/meteo/Castello+tesino\",1715 => \"/meteo/Castellucchio\",8219 => \"/meteo/Castelluccio\",1716 => \"/meteo/Castelluccio+dei+Sauri\",8395 => \"/meteo/Castelluccio+inferiore\",8359 => \"/meteo/Castelluccio+superiore\",1719 => \"/meteo/Castelluccio+valmaggiore\",8452 => \"/meteo/Castelmadama+casello\",1720 => \"/meteo/Castelmagno\",1721 => \"/meteo/Castelmarte\",1722 => \"/meteo/Castelmassa\",1723 => \"/meteo/Castelmauro\",8363 => \"/meteo/Castelmezzano\",1725 => \"/meteo/Castelmola\",1726 => \"/meteo/Castelnovetto\",1727 => \"/meteo/Castelnovo+Bariano\",1728 => \"/meteo/Castelnovo+del+Friuli\",1729 => \"/meteo/Castelnovo+di+sotto\",8124 => \"/meteo/Castelnovo+ne'+Monti\",1731 => \"/meteo/Castelnuovo\",1732 => \"/meteo/Castelnuovo+Belbo\",1733 => \"/meteo/Castelnuovo+Berardenga\",1734 => \"/meteo/Castelnuovo+bocca+d'Adda\",1735 => \"/meteo/Castelnuovo+Bormida\",1736 => \"/meteo/Castelnuovo+Bozzente\",1737 => \"/meteo/Castelnuovo+Calcea\",1738 => \"/meteo/Castelnuovo+cilento\",1739 => \"/meteo/Castelnuovo+del+Garda\",1740 => \"/meteo/Castelnuovo+della+daunia\",1741 => \"/meteo/Castelnuovo+di+Ceva\",1742 => \"/meteo/Castelnuovo+di+Conza\",1743 => \"/meteo/Castelnuovo+di+Farfa\",1744 => \"/meteo/Castelnuovo+di+Garfagnana\",1745 => \"/meteo/Castelnuovo+di+Porto\",1746 => \"/meteo/Castelnuovo+di+val+di+Cecina\",1747 => \"/meteo/Castelnuovo+Don+Bosco\",1748 => \"/meteo/Castelnuovo+Magra\",1749 => \"/meteo/Castelnuovo+Nigra\",1750 => \"/meteo/Castelnuovo+Parano\",1751 => \"/meteo/Castelnuovo+Rangone\",1752 => \"/meteo/Castelnuovo+Scrivia\",1753 => \"/meteo/Castelpagano\",1754 => \"/meteo/Castelpetroso\",1755 => \"/meteo/Castelpizzuto\",1756 => \"/meteo/Castelplanio\",1757 => \"/meteo/Castelpoto\",1758 => \"/meteo/Castelraimondo\",1759 => \"/meteo/Castelrotto\",1760 => \"/meteo/Castelsantangelo+sul+Nera\",8378 => \"/meteo/Castelsaraceno\",1762 => \"/meteo/Castelsardo\",1763 => \"/meteo/Castelseprio\",1764 => \"/meteo/Castelsilano\",1765 => \"/meteo/Castelspina\",1766 => \"/meteo/Casteltermini\",1767 => \"/meteo/Castelveccana\",1768 => \"/meteo/Castelvecchio+Calvisio\",1769 => \"/meteo/Castelvecchio+di+Rocca+Barbena\",1770 => \"/meteo/Castelvecchio+Subequo\",1771 => \"/meteo/Castelvenere\",1772 => \"/meteo/Castelverde\",1773 => \"/meteo/Castelverrino\",1774 => \"/meteo/Castelvetere+in+val+fortore\",1775 => \"/meteo/Castelvetere+sul+Calore\",1776 => \"/meteo/Castelvetrano\",1777 => \"/meteo/Castelvetro+di+Modena\",1778 => \"/meteo/Castelvetro+piacentino\",1779 => \"/meteo/Castelvisconti\",1780 => \"/meteo/Castenaso\",1781 => \"/meteo/Castenedolo\",1782 => \"/meteo/Castiadas\",1783 => \"/meteo/Castiglion+Fibocchi\",1784 => \"/meteo/Castiglion+fiorentino\",8193 => \"/meteo/Castiglioncello\",1785 => \"/meteo/Castiglione+a+Casauria\",1786 => \"/meteo/Castiglione+chiavarese\",1787 => \"/meteo/Castiglione+cosentino\",1788 => \"/meteo/Castiglione+d'Adda\",1789 => \"/meteo/Castiglione+d'Intelvi\",1790 => \"/meteo/Castiglione+d'Orcia\",1791 => \"/meteo/Castiglione+dei+Pepoli\",1792 => \"/meteo/Castiglione+del+Genovesi\",1793 => \"/meteo/Castiglione+del+Lago\",1794 => \"/meteo/Castiglione+della+Pescaia\",1795 => \"/meteo/Castiglione+delle+Stiviere\",1796 => \"/meteo/Castiglione+di+garfagnana\",1797 => \"/meteo/Castiglione+di+Sicilia\",1798 => \"/meteo/Castiglione+Falletto\",1799 => \"/meteo/Castiglione+in+teverina\",1800 => \"/meteo/Castiglione+Messer+Marino\",1801 => \"/meteo/Castiglione+Messer+Raimondo\",1802 => \"/meteo/Castiglione+Olona\",1803 => \"/meteo/Castiglione+Tinella\",1804 => \"/meteo/Castiglione+torinese\",1805 => \"/meteo/Castignano\",1806 => \"/meteo/Castilenti\",1807 => \"/meteo/Castino\",1808 => \"/meteo/Castione+Andevenno\",1809 => \"/meteo/Castione+della+Presolana\",1810 => \"/meteo/Castions+di+Strada\",1811 => \"/meteo/Castiraga+Vidardo\",1812 => \"/meteo/Casto\",1813 => \"/meteo/Castorano\",8723 => \"/meteo/Castore\",1814 => \"/meteo/Castrezzato\",1815 => \"/meteo/Castri+di+Lecce\",1816 => \"/meteo/Castrignano+de'+Greci\",1817 => \"/meteo/Castrignano+del+Capo\",1818 => \"/meteo/Castro\",1819 => \"/meteo/Castro\",1820 => \"/meteo/Castro+dei+Volsci\",8167 => \"/meteo/Castro+Marina\",1821 => \"/meteo/Castrocaro+terme+e+terra+del+Sole\",1822 => \"/meteo/Castrocielo\",1823 => \"/meteo/Castrofilippo\",1824 => \"/meteo/Castrolibero\",1825 => \"/meteo/Castronno\",1826 => \"/meteo/Castronuovo+di+Sant'Andrea\",1827 => \"/meteo/Castronuovo+di+Sicilia\",1828 => \"/meteo/Castropignano\",1829 => \"/meteo/Castroreale\",1830 => \"/meteo/Castroregio\",1831 => \"/meteo/Castrovillari\",1832 => \"/meteo/Catania\",8273 => \"/meteo/Catania+Fontanarossa\",1833 => \"/meteo/Catanzaro\",1834 => \"/meteo/Catenanuova\",1835 => \"/meteo/Catignano\",8281 => \"/meteo/Catinaccio\",1836 => \"/meteo/Cattolica\",1837 => \"/meteo/Cattolica+Eraclea\",1838 => \"/meteo/Caulonia\",8673 => \"/meteo/Caulonia+Marina\",1839 => \"/meteo/Cautano\",1840 => \"/meteo/Cava+de'+Tirreni\",1841 => \"/meteo/Cava+manara\",1842 => \"/meteo/Cavacurta\",1843 => \"/meteo/Cavaglia'\",1844 => \"/meteo/Cavaglietto\",1845 => \"/meteo/Cavaglio+d'Agogna\",1846 => \"/meteo/Cavaglio+Spoccia\",1847 => \"/meteo/Cavagnolo\",1848 => \"/meteo/Cavaion+veronese\",1849 => \"/meteo/Cavalese\",1850 => \"/meteo/Cavallasca\",1851 => \"/meteo/Cavallerleone\",1852 => \"/meteo/Cavallermaggiore\",1853 => \"/meteo/Cavallino\",8657 => \"/meteo/Cavallino\",1854 => \"/meteo/Cavallino+treporti\",1855 => \"/meteo/Cavallirio\",1856 => \"/meteo/Cavareno\",1857 => \"/meteo/Cavargna\",1858 => \"/meteo/Cavaria+con+Premezzo\",1859 => \"/meteo/Cavarzere\",1860 => \"/meteo/Cavaso+del+Tomba\",1861 => \"/meteo/Cavasso+nuovo\",1862 => \"/meteo/Cavatore\",1863 => \"/meteo/Cavazzo+carnico\",1864 => \"/meteo/Cave\",1865 => \"/meteo/Cavedago\",1866 => \"/meteo/Cavedine\",1867 => \"/meteo/Cavenago+d'Adda\",1868 => \"/meteo/Cavenago+di+brianza\",1869 => \"/meteo/Cavernago\",1870 => \"/meteo/Cavezzo\",1871 => \"/meteo/Cavizzana\",1872 => \"/meteo/Cavour\",1873 => \"/meteo/Cavriago\",1874 => \"/meteo/Cavriana\",1875 => \"/meteo/Cavriglia\",1876 => \"/meteo/Cazzago+Brabbia\",1877 => \"/meteo/Cazzago+San+Martino\",1878 => \"/meteo/Cazzano+di+Tramigna\",1879 => \"/meteo/Cazzano+Sant'Andrea\",1880 => \"/meteo/Ceccano\",1881 => \"/meteo/Cecima\",1882 => \"/meteo/Cecina\",1883 => \"/meteo/Cedegolo\",1884 => \"/meteo/Cedrasco\",1885 => \"/meteo/Cefala'+Diana\",1886 => \"/meteo/Cefalu'\",1887 => \"/meteo/Ceggia\",1888 => \"/meteo/Ceglie+Messapica\",1889 => \"/meteo/Celano\",1890 => \"/meteo/Celenza+sul+Trigno\",1891 => \"/meteo/Celenza+valfortore\",1892 => \"/meteo/Celico\",1893 => \"/meteo/Cella+dati\",1894 => \"/meteo/Cella+monte\",1895 => \"/meteo/Cellamare\",1896 => \"/meteo/Cellara\",1897 => \"/meteo/Cellarengo\",1898 => \"/meteo/Cellatica\",1899 => \"/meteo/Celle+di+Bulgheria\",1900 => \"/meteo/Celle+di+Macra\",1901 => \"/meteo/Celle+di+San+Vito\",1902 => \"/meteo/Celle+Enomondo\",1903 => \"/meteo/Celle+ligure\",1904 => \"/meteo/Celleno\",1905 => \"/meteo/Cellere\",1906 => \"/meteo/Cellino+Attanasio\",1907 => \"/meteo/Cellino+San+Marco\",1908 => \"/meteo/Cellio\",1909 => \"/meteo/Cellole\",1910 => \"/meteo/Cembra\",1911 => \"/meteo/Cenadi\",1912 => \"/meteo/Cenate+sopra\",1913 => \"/meteo/Cenate+sotto\",1914 => \"/meteo/Cencenighe+Agordino\",1915 => \"/meteo/Cene\",1916 => \"/meteo/Ceneselli\",1917 => \"/meteo/Cengio\",1918 => \"/meteo/Centa+San+Nicolo'\",1919 => \"/meteo/Centallo\",1920 => \"/meteo/Cento\",1921 => \"/meteo/Centola\",1922 => \"/meteo/Centrache\",1923 => \"/meteo/Centuripe\",1924 => \"/meteo/Cepagatti\",1925 => \"/meteo/Ceppaloni\",1926 => \"/meteo/Ceppo+Morelli\",1927 => \"/meteo/Ceprano\",1928 => \"/meteo/Cerami\",1929 => \"/meteo/Ceranesi\",1930 => \"/meteo/Cerano\",1931 => \"/meteo/Cerano+d'intelvi\",1932 => \"/meteo/Ceranova\",1933 => \"/meteo/Ceraso\",1934 => \"/meteo/Cercemaggiore\",1935 => \"/meteo/Cercenasco\",1936 => \"/meteo/Cercepiccola\",1937 => \"/meteo/Cerchiara+di+Calabria\",1938 => \"/meteo/Cerchio\",1939 => \"/meteo/Cercino\",1940 => \"/meteo/Cercivento\",1941 => \"/meteo/Cercola\",1942 => \"/meteo/Cerda\",1943 => \"/meteo/Cerea\",1944 => \"/meteo/Ceregnano\",1945 => \"/meteo/Cerenzia\",1946 => \"/meteo/Ceres\",1947 => \"/meteo/Ceresara\",1948 => \"/meteo/Cereseto\",1949 => \"/meteo/Ceresole+Alba\",1950 => \"/meteo/Ceresole+reale\",1951 => \"/meteo/Cerete\",1952 => \"/meteo/Ceretto+lomellina\",1953 => \"/meteo/Cergnago\",1954 => \"/meteo/Ceriale\",1955 => \"/meteo/Ceriana\",1956 => \"/meteo/Ceriano+Laghetto\",1957 => \"/meteo/Cerignale\",1958 => \"/meteo/Cerignola\",1959 => \"/meteo/Cerisano\",1960 => \"/meteo/Cermenate\",1961 => \"/meteo/Cermes\",1962 => \"/meteo/Cermignano\",1963 => \"/meteo/Cernobbio\",1964 => \"/meteo/Cernusco+lombardone\",1965 => \"/meteo/Cernusco+sul+Naviglio\",1966 => \"/meteo/Cerreto+Castello\",1967 => \"/meteo/Cerreto+d'Asti\",1968 => \"/meteo/Cerreto+d'Esi\",1969 => \"/meteo/Cerreto+di+Spoleto\",1970 => \"/meteo/Cerreto+Grue\",1971 => \"/meteo/Cerreto+Guidi\",1972 => \"/meteo/Cerreto+langhe\",1973 => \"/meteo/Cerreto+laziale\",1974 => \"/meteo/Cerreto+sannita\",1975 => \"/meteo/Cerrina+monferrato\",1976 => \"/meteo/Cerrione\",1977 => \"/meteo/Cerro+al+Lambro\",1978 => \"/meteo/Cerro+al+Volturno\",1979 => \"/meteo/Cerro+maggiore\",1980 => \"/meteo/Cerro+Tanaro\",1981 => \"/meteo/Cerro+veronese\",8396 => \"/meteo/Cersosimo\",1983 => \"/meteo/Certaldo\",1984 => \"/meteo/Certosa+di+Pavia\",1985 => \"/meteo/Cerva\",1986 => \"/meteo/Cervara+di+Roma\",1987 => \"/meteo/Cervarese+Santa+Croce\",1988 => \"/meteo/Cervaro\",1989 => \"/meteo/Cervasca\",1990 => \"/meteo/Cervatto\",1991 => \"/meteo/Cerveno\",1992 => \"/meteo/Cervere\",1993 => \"/meteo/Cervesina\",1994 => \"/meteo/Cerveteri\",1995 => \"/meteo/Cervia\",1996 => \"/meteo/Cervicati\",1997 => \"/meteo/Cervignano+d'Adda\",1998 => \"/meteo/Cervignano+del+Friuli\",1999 => \"/meteo/Cervinara\",2000 => \"/meteo/Cervino\",2001 => \"/meteo/Cervo\",2002 => \"/meteo/Cerzeto\",2003 => \"/meteo/Cesa\",2004 => \"/meteo/Cesana+brianza\",2005 => \"/meteo/Cesana+torinese\",2006 => \"/meteo/Cesano+Boscone\",2007 => \"/meteo/Cesano+Maderno\",2008 => \"/meteo/Cesara\",2009 => \"/meteo/Cesaro'\",2010 => \"/meteo/Cesate\",2011 => \"/meteo/Cesena\",2012 => \"/meteo/Cesenatico\",2013 => \"/meteo/Cesinali\",2014 => \"/meteo/Cesio\",2015 => \"/meteo/Cesiomaggiore\",2016 => \"/meteo/Cessalto\",2017 => \"/meteo/Cessaniti\",2018 => \"/meteo/Cessapalombo\",2019 => \"/meteo/Cessole\",2020 => \"/meteo/Cetara\",2021 => \"/meteo/Ceto\",2022 => \"/meteo/Cetona\",2023 => \"/meteo/Cetraro\",2024 => \"/meteo/Ceva\",8721 => \"/meteo/Cevedale\",2025 => \"/meteo/Cevo\",2026 => \"/meteo/Challand+Saint+Anselme\",2027 => \"/meteo/Challand+Saint+Victor\",2028 => \"/meteo/Chambave\",2029 => \"/meteo/Chamois\",8255 => \"/meteo/Chamole`\",2030 => \"/meteo/Champdepraz\",8225 => \"/meteo/Champoluc\",2031 => \"/meteo/Champorcher\",8331 => \"/meteo/Champorcher+Cimetta+Rossa\",8330 => \"/meteo/Champorcher+Laris\",2032 => \"/meteo/Charvensod\",2033 => \"/meteo/Chatillon\",2034 => \"/meteo/Cherasco\",2035 => \"/meteo/Cheremule\",8668 => \"/meteo/Chesal\",2036 => \"/meteo/Chialamberto\",2037 => \"/meteo/Chiampo\",2038 => \"/meteo/Chianche\",2039 => \"/meteo/Chianciano+terme\",2040 => \"/meteo/Chianni\",2041 => \"/meteo/Chianocco\",2042 => \"/meteo/Chiaramonte+Gulfi\",2043 => \"/meteo/Chiaramonti\",2044 => \"/meteo/Chiarano\",2045 => \"/meteo/Chiaravalle\",2046 => \"/meteo/Chiaravalle+centrale\",8151 => \"/meteo/Chiareggio\",2047 => \"/meteo/Chiari\",2048 => \"/meteo/Chiaromonte\",8432 => \"/meteo/Chiasso\",2049 => \"/meteo/Chiauci\",2050 => \"/meteo/Chiavari\",2051 => \"/meteo/Chiavenna\",2052 => \"/meteo/Chiaverano\",2053 => \"/meteo/Chienes\",2054 => \"/meteo/Chieri\",2055 => \"/meteo/Chies+d'Alpago\",2056 => \"/meteo/Chiesa+in+valmalenco\",2057 => \"/meteo/Chiesanuova\",2058 => \"/meteo/Chiesina+uzzanese\",2059 => \"/meteo/Chieti\",8319 => \"/meteo/Chieti+Scalo\",2060 => \"/meteo/Chieuti\",2061 => \"/meteo/Chieve\",2062 => \"/meteo/Chignolo+d'Isola\",2063 => \"/meteo/Chignolo+Po\",2064 => \"/meteo/Chioggia\",2065 => \"/meteo/Chiomonte\",2066 => \"/meteo/Chions\",2067 => \"/meteo/Chiopris+Viscone\",2068 => \"/meteo/Chitignano\",2069 => \"/meteo/Chiuduno\",2070 => \"/meteo/Chiuppano\",2071 => \"/meteo/Chiuro\",2072 => \"/meteo/Chiusa\",2073 => \"/meteo/Chiusa+di+Pesio\",2074 => \"/meteo/Chiusa+di+San+Michele\",2075 => \"/meteo/Chiusa+Sclafani\",2076 => \"/meteo/Chiusaforte\",2077 => \"/meteo/Chiusanico\",2078 => \"/meteo/Chiusano+d'Asti\",2079 => \"/meteo/Chiusano+di+San+Domenico\",2080 => \"/meteo/Chiusavecchia\",2081 => \"/meteo/Chiusdino\",2082 => \"/meteo/Chiusi\",2083 => \"/meteo/Chiusi+della+Verna\",2084 => \"/meteo/Chivasso\",8515 => \"/meteo/Ciampac+Alba\",2085 => \"/meteo/Ciampino\",2086 => \"/meteo/Cianciana\",2087 => \"/meteo/Cibiana+di+cadore\",2088 => \"/meteo/Cicagna\",2089 => \"/meteo/Cicala\",2090 => \"/meteo/Cicciano\",2091 => \"/meteo/Cicerale\",2092 => \"/meteo/Ciciliano\",2093 => \"/meteo/Cicognolo\",2094 => \"/meteo/Ciconio\",2095 => \"/meteo/Cigliano\",2096 => \"/meteo/Ciglie'\",2097 => \"/meteo/Cigognola\",2098 => \"/meteo/Cigole\",2099 => \"/meteo/Cilavegna\",8340 => \"/meteo/Cima+Durand\",8590 => \"/meteo/Cima+Pisciadu'\",8764 => \"/meteo/Cima+Plose\",8703 => \"/meteo/Cima+Portavescovo\",8282 => \"/meteo/Cima+Sole\",2100 => \"/meteo/Cimadolmo\",2101 => \"/meteo/Cimbergo\",8332 => \"/meteo/Cime+Bianche\",2102 => \"/meteo/Cimego\",2103 => \"/meteo/Cimina'\",2104 => \"/meteo/Ciminna\",2105 => \"/meteo/Cimitile\",2106 => \"/meteo/Cimolais\",8433 => \"/meteo/Cimoncino\",2107 => \"/meteo/Cimone\",2108 => \"/meteo/Cinaglio\",2109 => \"/meteo/Cineto+romano\",2110 => \"/meteo/Cingia+de'+Botti\",2111 => \"/meteo/Cingoli\",2112 => \"/meteo/Cinigiano\",2113 => \"/meteo/Cinisello+Balsamo\",2114 => \"/meteo/Cinisi\",2115 => \"/meteo/Cino\",2116 => \"/meteo/Cinquefrondi\",2117 => \"/meteo/Cintano\",2118 => \"/meteo/Cinte+tesino\",2119 => \"/meteo/Cinto+Caomaggiore\",2120 => \"/meteo/Cinto+Euganeo\",2121 => \"/meteo/Cinzano\",2122 => \"/meteo/Ciorlano\",2123 => \"/meteo/Cipressa\",2124 => \"/meteo/Circello\",2125 => \"/meteo/Cirie'\",2126 => \"/meteo/Cirigliano\",2127 => \"/meteo/Cirimido\",2128 => \"/meteo/Ciro'\",2129 => \"/meteo/Ciro'+marina\",2130 => \"/meteo/Cis\",2131 => \"/meteo/Cisano+bergamasco\",2132 => \"/meteo/Cisano+sul+Neva\",2133 => \"/meteo/Ciserano\",2134 => \"/meteo/Cislago\",2135 => \"/meteo/Cisliano\",2136 => \"/meteo/Cismon+del+Grappa\",2137 => \"/meteo/Cison+di+valmarino\",2138 => \"/meteo/Cissone\",2139 => \"/meteo/Cisterna+d'Asti\",2140 => \"/meteo/Cisterna+di+Latina\",2141 => \"/meteo/Cisternino\",2142 => \"/meteo/Citerna\",8142 => \"/meteo/Città+del+Vaticano\",2143 => \"/meteo/Citta'+della+Pieve\",2144 => \"/meteo/Citta'+di+Castello\",2145 => \"/meteo/Citta'+Sant'Angelo\",2146 => \"/meteo/Cittadella\",2147 => \"/meteo/Cittaducale\",2148 => \"/meteo/Cittanova\",2149 => \"/meteo/Cittareale\",2150 => \"/meteo/Cittiglio\",2151 => \"/meteo/Civate\",2152 => \"/meteo/Civenna\",2153 => \"/meteo/Civezza\",2154 => \"/meteo/Civezzano\",2155 => \"/meteo/Civiasco\",2156 => \"/meteo/Cividale+del+Friuli\",2157 => \"/meteo/Cividate+al+piano\",2158 => \"/meteo/Cividate+camuno\",2159 => \"/meteo/Civita\",2160 => \"/meteo/Civita+Castellana\",2161 => \"/meteo/Civita+d'Antino\",2162 => \"/meteo/Civitacampomarano\",2163 => \"/meteo/Civitaluparella\",2164 => \"/meteo/Civitanova+del+sannio\",2165 => \"/meteo/Civitanova+Marche\",8356 => \"/meteo/Civitaquana\",2167 => \"/meteo/Civitavecchia\",2168 => \"/meteo/Civitella+Alfedena\",2169 => \"/meteo/Civitella+Casanova\",2170 => \"/meteo/Civitella+d'Agliano\",2171 => \"/meteo/Civitella+del+Tronto\",2172 => \"/meteo/Civitella+di+Romagna\",2173 => \"/meteo/Civitella+in+val+di+Chiana\",2174 => \"/meteo/Civitella+Messer+Raimondo\",2175 => \"/meteo/Civitella+Paganico\",2176 => \"/meteo/Civitella+Roveto\",2177 => \"/meteo/Civitella+San+Paolo\",2178 => \"/meteo/Civo\",2179 => \"/meteo/Claino+con+osteno\",2180 => \"/meteo/Claut\",2181 => \"/meteo/Clauzetto\",2182 => \"/meteo/Clavesana\",2183 => \"/meteo/Claviere\",2184 => \"/meteo/Cles\",2185 => \"/meteo/Cleto\",2186 => \"/meteo/Clivio\",2187 => \"/meteo/Cloz\",2188 => \"/meteo/Clusone\",2189 => \"/meteo/Coassolo+torinese\",2190 => \"/meteo/Coazze\",2191 => \"/meteo/Coazzolo\",2192 => \"/meteo/Coccaglio\",2193 => \"/meteo/Cocconato\",2194 => \"/meteo/Cocquio+Trevisago\",2195 => \"/meteo/Cocullo\",2196 => \"/meteo/Codevigo\",2197 => \"/meteo/Codevilla\",2198 => \"/meteo/Codigoro\",2199 => \"/meteo/Codogne'\",2200 => \"/meteo/Codogno\",2201 => \"/meteo/Codroipo\",2202 => \"/meteo/Codrongianos\",2203 => \"/meteo/Coggiola\",2204 => \"/meteo/Cogliate\",2205 => \"/meteo/Cogne\",8654 => \"/meteo/Cogne+Lillaz\",2206 => \"/meteo/Cogoleto\",2207 => \"/meteo/Cogollo+del+Cengio\",5049 => \"/meteo/Cogolo\",2208 => \"/meteo/Cogorno\",8354 => \"/meteo/Col+de+Joux\",8604 => \"/meteo/Col+Indes\",2209 => \"/meteo/Colazza\",2210 => \"/meteo/Colbordolo\",2211 => \"/meteo/Colere\",2212 => \"/meteo/Colfelice\",8217 => \"/meteo/Colfiorito\",8761 => \"/meteo/Colfosco\",2213 => \"/meteo/Coli\",2214 => \"/meteo/Colico\",2215 => \"/meteo/Collagna\",2216 => \"/meteo/Collalto+sabino\",2217 => \"/meteo/Collarmele\",2218 => \"/meteo/Collazzone\",8249 => \"/meteo/Colle+Bettaforca\",2219 => \"/meteo/Colle+Brianza\",2220 => \"/meteo/Colle+d'Anchise\",8687 => \"/meteo/Colle+del+Gran+San+Bernardo\",8688 => \"/meteo/Colle+del+Moncenisio\",8686 => \"/meteo/Colle+del+Piccolo+San+Bernardo\",8481 => \"/meteo/Colle+del+Prel\",2221 => \"/meteo/Colle+di+Tora\",2222 => \"/meteo/Colle+di+val+d'Elsa\",2223 => \"/meteo/Colle+San+Magno\",2224 => \"/meteo/Colle+sannita\",2225 => \"/meteo/Colle+Santa+Lucia\",8246 => \"/meteo/Colle+Sarezza\",2226 => \"/meteo/Colle+Umberto\",2227 => \"/meteo/Collebeato\",2228 => \"/meteo/Collecchio\",2229 => \"/meteo/Collecorvino\",2230 => \"/meteo/Colledara\",8453 => \"/meteo/Colledara+casello\",2231 => \"/meteo/Colledimacine\",2232 => \"/meteo/Colledimezzo\",2233 => \"/meteo/Colleferro\",2234 => \"/meteo/Collegiove\",2235 => \"/meteo/Collegno\",2236 => \"/meteo/Collelongo\",2237 => \"/meteo/Collepardo\",2238 => \"/meteo/Collepasso\",2239 => \"/meteo/Collepietro\",2240 => \"/meteo/Colleretto+castelnuovo\",2241 => \"/meteo/Colleretto+Giacosa\",2242 => \"/meteo/Collesalvetti\",2243 => \"/meteo/Collesano\",2244 => \"/meteo/Colletorto\",2245 => \"/meteo/Collevecchio\",2246 => \"/meteo/Colli+a+volturno\",2247 => \"/meteo/Colli+del+Tronto\",2248 => \"/meteo/Colli+sul+Velino\",2249 => \"/meteo/Colliano\",2250 => \"/meteo/Collinas\",2251 => \"/meteo/Collio\",2252 => \"/meteo/Collobiano\",2253 => \"/meteo/Colloredo+di+monte+Albano\",2254 => \"/meteo/Colmurano\",2255 => \"/meteo/Colobraro\",2256 => \"/meteo/Cologna+veneta\",2257 => \"/meteo/Cologne\",2258 => \"/meteo/Cologno+al+Serio\",2259 => \"/meteo/Cologno+monzese\",2260 => \"/meteo/Colognola+ai+Colli\",2261 => \"/meteo/Colonna\",2262 => \"/meteo/Colonnella\",2263 => \"/meteo/Colonno\",2264 => \"/meteo/Colorina\",2265 => \"/meteo/Colorno\",2266 => \"/meteo/Colosimi\",2267 => \"/meteo/Colturano\",2268 => \"/meteo/Colzate\",2269 => \"/meteo/Comabbio\",2270 => \"/meteo/Comacchio\",2271 => \"/meteo/Comano\",2272 => \"/meteo/Comazzo\",2273 => \"/meteo/Comeglians\",2274 => \"/meteo/Comelico+superiore\",2275 => \"/meteo/Comerio\",2276 => \"/meteo/Comezzano+Cizzago\",2277 => \"/meteo/Comignago\",2278 => \"/meteo/Comiso\",2279 => \"/meteo/Comitini\",2280 => \"/meteo/Comiziano\",2281 => \"/meteo/Commessaggio\",2282 => \"/meteo/Commezzadura\",2283 => \"/meteo/Como\",2284 => \"/meteo/Compiano\",8711 => \"/meteo/Comprensorio+Cimone\",2285 => \"/meteo/Comun+nuovo\",2286 => \"/meteo/Comunanza\",2287 => \"/meteo/Cona\",2288 => \"/meteo/Conca+Casale\",2289 => \"/meteo/Conca+dei+Marini\",2290 => \"/meteo/Conca+della+Campania\",2291 => \"/meteo/Concamarise\",2292 => \"/meteo/Concei\",2293 => \"/meteo/Concerviano\",2294 => \"/meteo/Concesio\",2295 => \"/meteo/Conco\",2296 => \"/meteo/Concordia+Sagittaria\",2297 => \"/meteo/Concordia+sulla+Secchia\",2298 => \"/meteo/Concorezzo\",2299 => \"/meteo/Condino\",2300 => \"/meteo/Condofuri\",8689 => \"/meteo/Condofuri+Marina\",2301 => \"/meteo/Condove\",2302 => \"/meteo/Condro'\",2303 => \"/meteo/Conegliano\",2304 => \"/meteo/Confienza\",2305 => \"/meteo/Configni\",2306 => \"/meteo/Conflenti\",2307 => \"/meteo/Coniolo\",2308 => \"/meteo/Conselice\",2309 => \"/meteo/Conselve\",2310 => \"/meteo/Consiglio+di+Rumo\",2311 => \"/meteo/Contessa+Entellina\",2312 => \"/meteo/Contigliano\",2313 => \"/meteo/Contrada\",2314 => \"/meteo/Controguerra\",2315 => \"/meteo/Controne\",2316 => \"/meteo/Contursi+terme\",2317 => \"/meteo/Conversano\",2318 => \"/meteo/Conza+della+Campania\",2319 => \"/meteo/Conzano\",2320 => \"/meteo/Copertino\",2321 => \"/meteo/Copiano\",2322 => \"/meteo/Copparo\",2323 => \"/meteo/Corana\",2324 => \"/meteo/Corato\",2325 => \"/meteo/Corbara\",2326 => \"/meteo/Corbetta\",2327 => \"/meteo/Corbola\",2328 => \"/meteo/Corchiano\",2329 => \"/meteo/Corciano\",2330 => \"/meteo/Cordenons\",2331 => \"/meteo/Cordignano\",2332 => \"/meteo/Cordovado\",2333 => \"/meteo/Coredo\",2334 => \"/meteo/Coreglia+Antelminelli\",2335 => \"/meteo/Coreglia+ligure\",2336 => \"/meteo/Coreno+Ausonio\",2337 => \"/meteo/Corfinio\",2338 => \"/meteo/Cori\",2339 => \"/meteo/Coriano\",2340 => \"/meteo/Corigliano+calabro\",8110 => \"/meteo/Corigliano+Calabro+Marina\",2341 => \"/meteo/Corigliano+d'Otranto\",2342 => \"/meteo/Corinaldo\",2343 => \"/meteo/Corio\",2344 => \"/meteo/Corleone\",2345 => \"/meteo/Corleto+monforte\",2346 => \"/meteo/Corleto+Perticara\",2347 => \"/meteo/Cormano\",2348 => \"/meteo/Cormons\",2349 => \"/meteo/Corna+imagna\",2350 => \"/meteo/Cornalba\",2351 => \"/meteo/Cornale\",2352 => \"/meteo/Cornaredo\",2353 => \"/meteo/Cornate+d'Adda\",2354 => \"/meteo/Cornedo+all'Isarco\",2355 => \"/meteo/Cornedo+vicentino\",2356 => \"/meteo/Cornegliano+laudense\",2357 => \"/meteo/Corneliano+d'Alba\",2358 => \"/meteo/Corniglio\",8537 => \"/meteo/Corno+alle+Scale\",8353 => \"/meteo/Corno+del+Renon\",2359 => \"/meteo/Corno+di+Rosazzo\",2360 => \"/meteo/Corno+Giovine\",2361 => \"/meteo/Cornovecchio\",2362 => \"/meteo/Cornuda\",2363 => \"/meteo/Correggio\",2364 => \"/meteo/Correzzana\",2365 => \"/meteo/Correzzola\",2366 => \"/meteo/Corrido\",2367 => \"/meteo/Corridonia\",2368 => \"/meteo/Corropoli\",2369 => \"/meteo/Corsano\",2370 => \"/meteo/Corsico\",2371 => \"/meteo/Corsione\",2372 => \"/meteo/Cortaccia+sulla+strada+del+vino\",2373 => \"/meteo/Cortale\",2374 => \"/meteo/Cortandone\",2375 => \"/meteo/Cortanze\",2376 => \"/meteo/Cortazzone\",2377 => \"/meteo/Corte+brugnatella\",2378 => \"/meteo/Corte+de'+Cortesi+con+Cignone\",2379 => \"/meteo/Corte+de'+Frati\",2380 => \"/meteo/Corte+Franca\",2381 => \"/meteo/Corte+Palasio\",2382 => \"/meteo/Cortemaggiore\",2383 => \"/meteo/Cortemilia\",2384 => \"/meteo/Corteno+Golgi\",2385 => \"/meteo/Cortenova\",2386 => \"/meteo/Cortenuova\",2387 => \"/meteo/Corteolona\",2388 => \"/meteo/Cortiglione\",2389 => \"/meteo/Cortina+d'Ampezzo\",2390 => \"/meteo/Cortina+sulla+strada+del+vino\",2391 => \"/meteo/Cortino\",2392 => \"/meteo/Cortona\",2393 => \"/meteo/Corvara\",2394 => \"/meteo/Corvara+in+Badia\",2395 => \"/meteo/Corvino+san+Quirico\",2396 => \"/meteo/Corzano\",2397 => \"/meteo/Coseano\",2398 => \"/meteo/Cosenza\",2399 => \"/meteo/Cosio+di+Arroscia\",2400 => \"/meteo/Cosio+valtellino\",2401 => \"/meteo/Cosoleto\",2402 => \"/meteo/Cossano+belbo\",2403 => \"/meteo/Cossano+canavese\",2404 => \"/meteo/Cossato\",2405 => \"/meteo/Cosseria\",2406 => \"/meteo/Cossignano\",2407 => \"/meteo/Cossogno\",2408 => \"/meteo/Cossoine\",2409 => \"/meteo/Cossombrato\",2410 => \"/meteo/Costa+de'+Nobili\",2411 => \"/meteo/Costa+di+Mezzate\",2412 => \"/meteo/Costa+di+Rovigo\",2413 => \"/meteo/Costa+di+serina\",2414 => \"/meteo/Costa+masnaga\",8177 => \"/meteo/Costa+Rei\",2415 => \"/meteo/Costa+valle+imagna\",2416 => \"/meteo/Costa+Vescovato\",2417 => \"/meteo/Costa+Volpino\",2418 => \"/meteo/Costabissara\",2419 => \"/meteo/Costacciaro\",2420 => \"/meteo/Costanzana\",2421 => \"/meteo/Costarainera\",2422 => \"/meteo/Costermano\",2423 => \"/meteo/Costigliole+d'Asti\",2424 => \"/meteo/Costigliole+Saluzzo\",2425 => \"/meteo/Cotignola\",2426 => \"/meteo/Cotronei\",2427 => \"/meteo/Cottanello\",8256 => \"/meteo/Couis+2\",2428 => \"/meteo/Courmayeur\",2429 => \"/meteo/Covo\",2430 => \"/meteo/Cozzo\",8382 => \"/meteo/Craco\",2432 => \"/meteo/Crandola+valsassina\",2433 => \"/meteo/Cravagliana\",2434 => \"/meteo/Cravanzana\",2435 => \"/meteo/Craveggia\",2436 => \"/meteo/Creazzo\",2437 => \"/meteo/Crecchio\",2438 => \"/meteo/Credaro\",2439 => \"/meteo/Credera+Rubbiano\",2440 => \"/meteo/Crema\",2441 => \"/meteo/Cremella\",2442 => \"/meteo/Cremenaga\",2443 => \"/meteo/Cremeno\",2444 => \"/meteo/Cremia\",2445 => \"/meteo/Cremolino\",2446 => \"/meteo/Cremona\",2447 => \"/meteo/Cremosano\",2448 => \"/meteo/Crescentino\",2449 => \"/meteo/Crespadoro\",2450 => \"/meteo/Crespano+del+Grappa\",2451 => \"/meteo/Crespellano\",2452 => \"/meteo/Crespiatica\",2453 => \"/meteo/Crespina\",2454 => \"/meteo/Crespino\",2455 => \"/meteo/Cressa\",8247 => \"/meteo/Crest\",8741 => \"/meteo/Cresta+Youla\",8646 => \"/meteo/Crevacol\",2456 => \"/meteo/Crevacuore\",2457 => \"/meteo/Crevalcore\",2458 => \"/meteo/Crevoladossola\",2459 => \"/meteo/Crispano\",2460 => \"/meteo/Crispiano\",2461 => \"/meteo/Crissolo\",8355 => \"/meteo/Crissolo+Pian+delle+Regine\",2462 => \"/meteo/Crocefieschi\",2463 => \"/meteo/Crocetta+del+Montello\",2464 => \"/meteo/Crodo\",2465 => \"/meteo/Crognaleto\",2466 => \"/meteo/Cropalati\",2467 => \"/meteo/Cropani\",2468 => \"/meteo/Crosa\",2469 => \"/meteo/Crosia\",2470 => \"/meteo/Crosio+della+valle\",2471 => \"/meteo/Crotone\",8552 => \"/meteo/Crotone+Sant'Anna\",2472 => \"/meteo/Crotta+d'Adda\",2473 => \"/meteo/Crova\",2474 => \"/meteo/Croviana\",2475 => \"/meteo/Crucoli\",2476 => \"/meteo/Cuasso+al+monte\",2477 => \"/meteo/Cuccaro+monferrato\",2478 => \"/meteo/Cuccaro+Vetere\",2479 => \"/meteo/Cucciago\",2480 => \"/meteo/Cuceglio\",2481 => \"/meteo/Cuggiono\",2482 => \"/meteo/Cugliate-fabiasco\",2483 => \"/meteo/Cuglieri\",2484 => \"/meteo/Cugnoli\",8718 => \"/meteo/Cuma\",2485 => \"/meteo/Cumiana\",2486 => \"/meteo/Cumignano+sul+Naviglio\",2487 => \"/meteo/Cunardo\",2488 => \"/meteo/Cuneo\",8553 => \"/meteo/Cuneo+Levaldigi\",2489 => \"/meteo/Cunevo\",2490 => \"/meteo/Cunico\",2491 => \"/meteo/Cuorgne'\",2492 => \"/meteo/Cupello\",2493 => \"/meteo/Cupra+marittima\",2494 => \"/meteo/Cupramontana\",2495 => \"/meteo/Cura+carpignano\",2496 => \"/meteo/Curcuris\",2497 => \"/meteo/Cureggio\",2498 => \"/meteo/Curiglia+con+Monteviasco\",2499 => \"/meteo/Curinga\",2500 => \"/meteo/Curino\",2501 => \"/meteo/Curno\",2502 => \"/meteo/Curon+Venosta\",2503 => \"/meteo/Cursi\",2504 => \"/meteo/Cursolo+orasso\",2505 => \"/meteo/Curtarolo\",2506 => \"/meteo/Curtatone\",2507 => \"/meteo/Curti\",2508 => \"/meteo/Cusago\",2509 => \"/meteo/Cusano+milanino\",2510 => \"/meteo/Cusano+Mutri\",2511 => \"/meteo/Cusino\",2512 => \"/meteo/Cusio\",2513 => \"/meteo/Custonaci\",2514 => \"/meteo/Cutigliano\",2515 => \"/meteo/Cutro\",2516 => \"/meteo/Cutrofiano\",2517 => \"/meteo/Cuveglio\",2518 => \"/meteo/Cuvio\",2519 => \"/meteo/Daiano\",2520 => \"/meteo/Dairago\",2521 => \"/meteo/Dalmine\",2522 => \"/meteo/Dambel\",2523 => \"/meteo/Danta+di+cadore\",2524 => \"/meteo/Daone\",2525 => \"/meteo/Dare'\",2526 => \"/meteo/Darfo+Boario+terme\",2527 => \"/meteo/Dasa'\",2528 => \"/meteo/Davagna\",2529 => \"/meteo/Daverio\",2530 => \"/meteo/Davoli\",2531 => \"/meteo/Dazio\",2532 => \"/meteo/Decimomannu\",2533 => \"/meteo/Decimoputzu\",2534 => \"/meteo/Decollatura\",2535 => \"/meteo/Dego\",2536 => \"/meteo/Deiva+marina\",2537 => \"/meteo/Delebio\",2538 => \"/meteo/Delia\",2539 => \"/meteo/Delianuova\",2540 => \"/meteo/Deliceto\",2541 => \"/meteo/Dello\",2542 => \"/meteo/Demonte\",2543 => \"/meteo/Denice\",2544 => \"/meteo/Denno\",2545 => \"/meteo/Dernice\",2546 => \"/meteo/Derovere\",2547 => \"/meteo/Deruta\",2548 => \"/meteo/Dervio\",2549 => \"/meteo/Desana\",2550 => \"/meteo/Desenzano+del+Garda\",2551 => \"/meteo/Desio\",2552 => \"/meteo/Desulo\",2553 => \"/meteo/Diamante\",2554 => \"/meteo/Diano+arentino\",2555 => \"/meteo/Diano+castello\",2556 => \"/meteo/Diano+d'Alba\",2557 => \"/meteo/Diano+marina\",2558 => \"/meteo/Diano+San+Pietro\",2559 => \"/meteo/Dicomano\",2560 => \"/meteo/Dignano\",2561 => \"/meteo/Dimaro\",2562 => \"/meteo/Dinami\",2563 => \"/meteo/Dipignano\",2564 => \"/meteo/Diso\",2565 => \"/meteo/Divignano\",2566 => \"/meteo/Dizzasco\",2567 => \"/meteo/Dobbiaco\",2568 => \"/meteo/Doberdo'+del+lago\",8628 => \"/meteo/Doganaccia\",2569 => \"/meteo/Dogliani\",2570 => \"/meteo/Dogliola\",2571 => \"/meteo/Dogna\",2572 => \"/meteo/Dolce'\",2573 => \"/meteo/Dolceacqua\",2574 => \"/meteo/Dolcedo\",2575 => \"/meteo/Dolegna+del+collio\",2576 => \"/meteo/Dolianova\",2577 => \"/meteo/Dolo\",8616 => \"/meteo/Dolonne\",2578 => \"/meteo/Dolzago\",2579 => \"/meteo/Domanico\",2580 => \"/meteo/Domaso\",2581 => \"/meteo/Domegge+di+cadore\",2582 => \"/meteo/Domicella\",2583 => \"/meteo/Domodossola\",2584 => \"/meteo/Domus+de+Maria\",2585 => \"/meteo/Domusnovas\",2586 => \"/meteo/Don\",2587 => \"/meteo/Donato\",2588 => \"/meteo/Dongo\",2589 => \"/meteo/Donnas\",2590 => \"/meteo/Donori'\",2591 => \"/meteo/Dorgali\",2592 => \"/meteo/Dorio\",2593 => \"/meteo/Dormelletto\",2594 => \"/meteo/Dorno\",2595 => \"/meteo/Dorsino\",2596 => \"/meteo/Dorzano\",2597 => \"/meteo/Dosolo\",2598 => \"/meteo/Dossena\",2599 => \"/meteo/Dosso+del+liro\",8323 => \"/meteo/Dosso+Pasò\",2600 => \"/meteo/Doues\",2601 => \"/meteo/Dovadola\",2602 => \"/meteo/Dovera\",2603 => \"/meteo/Dozza\",2604 => \"/meteo/Dragoni\",2605 => \"/meteo/Drapia\",2606 => \"/meteo/Drena\",2607 => \"/meteo/Drenchia\",2608 => \"/meteo/Dresano\",2609 => \"/meteo/Drezzo\",2610 => \"/meteo/Drizzona\",2611 => \"/meteo/Dro\",2612 => \"/meteo/Dronero\",2613 => \"/meteo/Druento\",2614 => \"/meteo/Druogno\",2615 => \"/meteo/Dualchi\",2616 => \"/meteo/Dubino\",2617 => \"/meteo/Due+carrare\",2618 => \"/meteo/Dueville\",2619 => \"/meteo/Dugenta\",2620 => \"/meteo/Duino+aurisina\",2621 => \"/meteo/Dumenza\",2622 => \"/meteo/Duno\",2623 => \"/meteo/Durazzano\",2624 => \"/meteo/Duronia\",2625 => \"/meteo/Dusino+San+Michele\",2626 => \"/meteo/Eboli\",2627 => \"/meteo/Edolo\",2628 => \"/meteo/Egna\",2629 => \"/meteo/Elice\",2630 => \"/meteo/Elini\",2631 => \"/meteo/Ello\",2632 => \"/meteo/Elmas\",2633 => \"/meteo/Elva\",2634 => \"/meteo/Emarese\",2635 => \"/meteo/Empoli\",2636 => \"/meteo/Endine+gaiano\",2637 => \"/meteo/Enego\",2638 => \"/meteo/Enemonzo\",2639 => \"/meteo/Enna\",2640 => \"/meteo/Entracque\",2641 => \"/meteo/Entratico\",8222 => \"/meteo/Entreves\",2642 => \"/meteo/Envie\",8397 => \"/meteo/Episcopia\",2644 => \"/meteo/Eraclea\",2645 => \"/meteo/Erba\",2646 => \"/meteo/Erbe'\",2647 => \"/meteo/Erbezzo\",2648 => \"/meteo/Erbusco\",2649 => \"/meteo/Erchie\",2650 => \"/meteo/Ercolano\",8531 => \"/meteo/Eremo+di+Camaldoli\",8606 => \"/meteo/Eremo+di+Carpegna\",2651 => \"/meteo/Erice\",2652 => \"/meteo/Erli\",2653 => \"/meteo/Erto+e+casso\",2654 => \"/meteo/Erula\",2655 => \"/meteo/Erve\",2656 => \"/meteo/Esanatoglia\",2657 => \"/meteo/Escalaplano\",2658 => \"/meteo/Escolca\",2659 => \"/meteo/Esine\",2660 => \"/meteo/Esino+lario\",2661 => \"/meteo/Esperia\",2662 => \"/meteo/Esporlatu\",2663 => \"/meteo/Este\",2664 => \"/meteo/Esterzili\",2665 => \"/meteo/Etroubles\",2666 => \"/meteo/Eupilio\",2667 => \"/meteo/Exilles\",2668 => \"/meteo/Fabbrica+Curone\",2669 => \"/meteo/Fabbriche+di+vallico\",2670 => \"/meteo/Fabbrico\",2671 => \"/meteo/Fabriano\",2672 => \"/meteo/Fabrica+di+Roma\",2673 => \"/meteo/Fabrizia\",2674 => \"/meteo/Fabro\",8458 => \"/meteo/Fabro+casello\",2675 => \"/meteo/Faedis\",2676 => \"/meteo/Faedo\",2677 => \"/meteo/Faedo+valtellino\",2678 => \"/meteo/Faenza\",2679 => \"/meteo/Faeto\",2680 => \"/meteo/Fagagna\",2681 => \"/meteo/Faggeto+lario\",2682 => \"/meteo/Faggiano\",2683 => \"/meteo/Fagnano+alto\",2684 => \"/meteo/Fagnano+castello\",2685 => \"/meteo/Fagnano+olona\",2686 => \"/meteo/Fai+della+paganella\",2687 => \"/meteo/Faicchio\",2688 => \"/meteo/Falcade\",2689 => \"/meteo/Falciano+del+massico\",2690 => \"/meteo/Falconara+albanese\",2691 => \"/meteo/Falconara+marittima\",2692 => \"/meteo/Falcone\",2693 => \"/meteo/Faleria\",2694 => \"/meteo/Falerna\",8116 => \"/meteo/Falerna+Marina\",2695 => \"/meteo/Falerone\",2696 => \"/meteo/Fallo\",2697 => \"/meteo/Falmenta\",2698 => \"/meteo/Faloppio\",2699 => \"/meteo/Falvaterra\",2700 => \"/meteo/Falzes\",2701 => \"/meteo/Fanano\",2702 => \"/meteo/Fanna\",2703 => \"/meteo/Fano\",2704 => \"/meteo/Fano+adriano\",2705 => \"/meteo/Fara+Filiorum+Petri\",2706 => \"/meteo/Fara+gera+d'Adda\",2707 => \"/meteo/Fara+in+sabina\",2708 => \"/meteo/Fara+novarese\",2709 => \"/meteo/Fara+Olivana+con+Sola\",2710 => \"/meteo/Fara+San+Martino\",2711 => \"/meteo/Fara+vicentino\",8360 => \"/meteo/Fardella\",2713 => \"/meteo/Farigliano\",2714 => \"/meteo/Farindola\",2715 => \"/meteo/Farini\",2716 => \"/meteo/Farnese\",2717 => \"/meteo/Farra+d'alpago\",2718 => \"/meteo/Farra+d'Isonzo\",2719 => \"/meteo/Farra+di+soligo\",2720 => \"/meteo/Fasano\",2721 => \"/meteo/Fascia\",2722 => \"/meteo/Fauglia\",2723 => \"/meteo/Faule\",2724 => \"/meteo/Favale+di+malvaro\",2725 => \"/meteo/Favara\",2726 => \"/meteo/Faver\",2727 => \"/meteo/Favignana\",2728 => \"/meteo/Favria\",2729 => \"/meteo/Feisoglio\",2730 => \"/meteo/Feletto\",2731 => \"/meteo/Felino\",2732 => \"/meteo/Felitto\",2733 => \"/meteo/Felizzano\",2734 => \"/meteo/Felonica\",2735 => \"/meteo/Feltre\",2736 => \"/meteo/Fenegro'\",2737 => \"/meteo/Fenestrelle\",2738 => \"/meteo/Fenis\",2739 => \"/meteo/Ferentillo\",2740 => \"/meteo/Ferentino\",2741 => \"/meteo/Ferla\",2742 => \"/meteo/Fermignano\",2743 => \"/meteo/Fermo\",2744 => \"/meteo/Ferno\",2745 => \"/meteo/Feroleto+Antico\",2746 => \"/meteo/Feroleto+della+chiesa\",8370 => \"/meteo/Ferrandina\",2748 => \"/meteo/Ferrara\",2749 => \"/meteo/Ferrara+di+monte+Baldo\",2750 => \"/meteo/Ferrazzano\",2751 => \"/meteo/Ferrera+di+Varese\",2752 => \"/meteo/Ferrera+Erbognone\",2753 => \"/meteo/Ferrere\",2754 => \"/meteo/Ferriere\",2755 => \"/meteo/Ferruzzano\",2756 => \"/meteo/Fiamignano\",2757 => \"/meteo/Fiano\",2758 => \"/meteo/Fiano+romano\",2759 => \"/meteo/Fiastra\",2760 => \"/meteo/Fiave'\",2761 => \"/meteo/Ficarazzi\",2762 => \"/meteo/Ficarolo\",2763 => \"/meteo/Ficarra\",2764 => \"/meteo/Ficulle\",2765 => \"/meteo/Fidenza\",2766 => \"/meteo/Fie'+allo+Sciliar\",2767 => \"/meteo/Fiera+di+primiero\",2768 => \"/meteo/Fierozzo\",2769 => \"/meteo/Fiesco\",2770 => \"/meteo/Fiesole\",2771 => \"/meteo/Fiesse\",2772 => \"/meteo/Fiesso+d'Artico\",2773 => \"/meteo/Fiesso+Umbertiano\",2774 => \"/meteo/Figino+Serenza\",2775 => \"/meteo/Figline+valdarno\",2776 => \"/meteo/Figline+Vegliaturo\",2777 => \"/meteo/Filacciano\",2778 => \"/meteo/Filadelfia\",2779 => \"/meteo/Filago\",2780 => \"/meteo/Filandari\",2781 => \"/meteo/Filattiera\",2782 => \"/meteo/Filettino\",2783 => \"/meteo/Filetto\",8392 => \"/meteo/Filiano\",2785 => \"/meteo/Filighera\",2786 => \"/meteo/Filignano\",2787 => \"/meteo/Filogaso\",2788 => \"/meteo/Filottrano\",2789 => \"/meteo/Finale+emilia\",2790 => \"/meteo/Finale+ligure\",2791 => \"/meteo/Fino+del+monte\",2792 => \"/meteo/Fino+Mornasco\",2793 => \"/meteo/Fiorano+al+Serio\",2794 => \"/meteo/Fiorano+canavese\",2795 => \"/meteo/Fiorano+modenese\",2796 => \"/meteo/Fiordimonte\",2797 => \"/meteo/Fiorenzuola+d'arda\",2798 => \"/meteo/Firenze\",8270 => \"/meteo/Firenze+Peretola\",2799 => \"/meteo/Firenzuola\",2800 => \"/meteo/Firmo\",2801 => \"/meteo/Fisciano\",2802 => \"/meteo/Fiuggi\",2803 => \"/meteo/Fiumalbo\",2804 => \"/meteo/Fiumara\",8489 => \"/meteo/Fiumata\",2805 => \"/meteo/Fiume+veneto\",2806 => \"/meteo/Fiumedinisi\",2807 => \"/meteo/Fiumefreddo+Bruzio\",2808 => \"/meteo/Fiumefreddo+di+Sicilia\",2809 => \"/meteo/Fiumicello\",2810 => \"/meteo/Fiumicino\",2811 => \"/meteo/Fiuminata\",2812 => \"/meteo/Fivizzano\",2813 => \"/meteo/Flaibano\",2814 => \"/meteo/Flavon\",2815 => \"/meteo/Flero\",2816 => \"/meteo/Floresta\",2817 => \"/meteo/Floridia\",2818 => \"/meteo/Florinas\",2819 => \"/meteo/Flumeri\",2820 => \"/meteo/Fluminimaggiore\",2821 => \"/meteo/Flussio\",2822 => \"/meteo/Fobello\",2823 => \"/meteo/Foggia\",2824 => \"/meteo/Foglianise\",2825 => \"/meteo/Fogliano+redipuglia\",2826 => \"/meteo/Foglizzo\",2827 => \"/meteo/Foiano+della+chiana\",2828 => \"/meteo/Foiano+di+val+fortore\",2829 => \"/meteo/Folgaria\",8202 => \"/meteo/Folgarida\",2830 => \"/meteo/Folignano\",2831 => \"/meteo/Foligno\",2832 => \"/meteo/Follina\",2833 => \"/meteo/Follo\",2834 => \"/meteo/Follonica\",2835 => \"/meteo/Fombio\",2836 => \"/meteo/Fondachelli+Fantina\",2837 => \"/meteo/Fondi\",2838 => \"/meteo/Fondo\",2839 => \"/meteo/Fonni\",2840 => \"/meteo/Fontainemore\",2841 => \"/meteo/Fontana+liri\",2842 => \"/meteo/Fontanafredda\",2843 => \"/meteo/Fontanarosa\",8185 => \"/meteo/Fontane+Bianche\",2844 => \"/meteo/Fontanelice\",2845 => \"/meteo/Fontanella\",2846 => \"/meteo/Fontanellato\",2847 => \"/meteo/Fontanelle\",2848 => \"/meteo/Fontaneto+d'Agogna\",2849 => \"/meteo/Fontanetto+po\",2850 => \"/meteo/Fontanigorda\",2851 => \"/meteo/Fontanile\",2852 => \"/meteo/Fontaniva\",2853 => \"/meteo/Fonte\",8643 => \"/meteo/Fonte+Cerreto\",2854 => \"/meteo/Fonte+Nuova\",2855 => \"/meteo/Fontecchio\",2856 => \"/meteo/Fontechiari\",2857 => \"/meteo/Fontegreca\",2858 => \"/meteo/Fonteno\",2859 => \"/meteo/Fontevivo\",2860 => \"/meteo/Fonzaso\",2861 => \"/meteo/Foppolo\",8540 => \"/meteo/Foppolo+IV+Baita\",2862 => \"/meteo/Forano\",2863 => \"/meteo/Force\",2864 => \"/meteo/Forchia\",2865 => \"/meteo/Forcola\",2866 => \"/meteo/Fordongianus\",2867 => \"/meteo/Forenza\",2868 => \"/meteo/Foresto+sparso\",2869 => \"/meteo/Forgaria+nel+friuli\",2870 => \"/meteo/Forino\",2871 => \"/meteo/Forio\",8551 => \"/meteo/Forlì+Ridolfi\",2872 => \"/meteo/Forli'\",2873 => \"/meteo/Forli'+del+sannio\",2874 => \"/meteo/Forlimpopoli\",2875 => \"/meteo/Formazza\",2876 => \"/meteo/Formello\",2877 => \"/meteo/Formia\",2878 => \"/meteo/Formicola\",2879 => \"/meteo/Formigara\",2880 => \"/meteo/Formigine\",2881 => \"/meteo/Formigliana\",2882 => \"/meteo/Formignana\",2883 => \"/meteo/Fornace\",2884 => \"/meteo/Fornelli\",2885 => \"/meteo/Forni+Avoltri\",2886 => \"/meteo/Forni+di+sopra\",2887 => \"/meteo/Forni+di+sotto\",8161 => \"/meteo/Forno+Alpi+Graie\",2888 => \"/meteo/Forno+canavese\",2889 => \"/meteo/Forno+di+Zoldo\",2890 => \"/meteo/Fornovo+di+Taro\",2891 => \"/meteo/Fornovo+San+Giovanni\",2892 => \"/meteo/Forte+dei+marmi\",2893 => \"/meteo/Fortezza\",2894 => \"/meteo/Fortunago\",2895 => \"/meteo/Forza+d'Agro'\",2896 => \"/meteo/Fosciandora\",8435 => \"/meteo/Fosdinovo\",2898 => \"/meteo/Fossa\",2899 => \"/meteo/Fossacesia\",2900 => \"/meteo/Fossalta+di+Piave\",2901 => \"/meteo/Fossalta+di+Portogruaro\",2902 => \"/meteo/Fossalto\",2903 => \"/meteo/Fossano\",2904 => \"/meteo/Fossato+di+vico\",2905 => \"/meteo/Fossato+serralta\",2906 => \"/meteo/Fosso'\",2907 => \"/meteo/Fossombrone\",2908 => \"/meteo/Foza\",2909 => \"/meteo/Frabosa+soprana\",2910 => \"/meteo/Frabosa+sottana\",2911 => \"/meteo/Fraconalto\",2912 => \"/meteo/Fragagnano\",2913 => \"/meteo/Fragneto+l'abate\",2914 => \"/meteo/Fragneto+monforte\",2915 => \"/meteo/Fraine\",2916 => \"/meteo/Framura\",2917 => \"/meteo/Francavilla+al+mare\",2918 => \"/meteo/Francavilla+angitola\",2919 => \"/meteo/Francavilla+bisio\",2920 => \"/meteo/Francavilla+d'ete\",2921 => \"/meteo/Francavilla+di+Sicilia\",2922 => \"/meteo/Francavilla+fontana\",8380 => \"/meteo/Francavilla+in+sinni\",2924 => \"/meteo/Francavilla+marittima\",2925 => \"/meteo/Francica\",2926 => \"/meteo/Francofonte\",2927 => \"/meteo/Francolise\",2928 => \"/meteo/Frascaro\",2929 => \"/meteo/Frascarolo\",2930 => \"/meteo/Frascati\",2931 => \"/meteo/Frascineto\",2932 => \"/meteo/Frassilongo\",2933 => \"/meteo/Frassinelle+polesine\",2934 => \"/meteo/Frassinello+monferrato\",2935 => \"/meteo/Frassineto+po\",2936 => \"/meteo/Frassinetto\",2937 => \"/meteo/Frassino\",2938 => \"/meteo/Frassinoro\",2939 => \"/meteo/Frasso+sabino\",2940 => \"/meteo/Frasso+telesino\",2941 => \"/meteo/Fratta+polesine\",2942 => \"/meteo/Fratta+todina\",2943 => \"/meteo/Frattamaggiore\",2944 => \"/meteo/Frattaminore\",2945 => \"/meteo/Fratte+rosa\",2946 => \"/meteo/Frazzano'\",8137 => \"/meteo/Fregene\",2947 => \"/meteo/Fregona\",8667 => \"/meteo/Frejusia\",2948 => \"/meteo/Fresagrandinaria\",2949 => \"/meteo/Fresonara\",2950 => \"/meteo/Frigento\",2951 => \"/meteo/Frignano\",2952 => \"/meteo/Frinco\",2953 => \"/meteo/Frisa\",2954 => \"/meteo/Frisanco\",2955 => \"/meteo/Front\",8153 => \"/meteo/Frontignano\",2956 => \"/meteo/Frontino\",2957 => \"/meteo/Frontone\",8751 => \"/meteo/Frontone+-+Monte+Catria\",2958 => \"/meteo/Frosinone\",8464 => \"/meteo/Frosinone+casello\",2959 => \"/meteo/Frosolone\",2960 => \"/meteo/Frossasco\",2961 => \"/meteo/Frugarolo\",2962 => \"/meteo/Fubine\",2963 => \"/meteo/Fucecchio\",2964 => \"/meteo/Fuipiano+valle+imagna\",2965 => \"/meteo/Fumane\",2966 => \"/meteo/Fumone\",2967 => \"/meteo/Funes\",2968 => \"/meteo/Furci\",2969 => \"/meteo/Furci+siculo\",2970 => \"/meteo/Furnari\",2971 => \"/meteo/Furore\",2972 => \"/meteo/Furtei\",2973 => \"/meteo/Fuscaldo\",2974 => \"/meteo/Fusignano\",2975 => \"/meteo/Fusine\",8702 => \"/meteo/Fusine+di+Zoldo\",8131 => \"/meteo/Fusine+in+Valromana\",2976 => \"/meteo/Futani\",2977 => \"/meteo/Gabbioneta+binanuova\",2978 => \"/meteo/Gabiano\",2979 => \"/meteo/Gabicce+mare\",8252 => \"/meteo/Gabiet\",2980 => \"/meteo/Gaby\",2981 => \"/meteo/Gadesco+Pieve+Delmona\",2982 => \"/meteo/Gadoni\",2983 => \"/meteo/Gaeta\",2984 => \"/meteo/Gaggi\",2985 => \"/meteo/Gaggiano\",2986 => \"/meteo/Gaggio+montano\",2987 => \"/meteo/Gaglianico\",2988 => \"/meteo/Gagliano+aterno\",2989 => \"/meteo/Gagliano+castelferrato\",2990 => \"/meteo/Gagliano+del+capo\",2991 => \"/meteo/Gagliato\",2992 => \"/meteo/Gagliole\",2993 => \"/meteo/Gaiarine\",2994 => \"/meteo/Gaiba\",2995 => \"/meteo/Gaiola\",2996 => \"/meteo/Gaiole+in+chianti\",2997 => \"/meteo/Gairo\",2998 => \"/meteo/Gais\",2999 => \"/meteo/Galati+Mamertino\",3000 => \"/meteo/Galatina\",3001 => \"/meteo/Galatone\",3002 => \"/meteo/Galatro\",3003 => \"/meteo/Galbiate\",3004 => \"/meteo/Galeata\",3005 => \"/meteo/Galgagnano\",3006 => \"/meteo/Gallarate\",3007 => \"/meteo/Gallese\",3008 => \"/meteo/Galliate\",3009 => \"/meteo/Galliate+lombardo\",3010 => \"/meteo/Galliavola\",3011 => \"/meteo/Gallicano\",3012 => \"/meteo/Gallicano+nel+Lazio\",8364 => \"/meteo/Gallicchio\",3014 => \"/meteo/Galliera\",3015 => \"/meteo/Galliera+veneta\",3016 => \"/meteo/Gallinaro\",3017 => \"/meteo/Gallio\",3018 => \"/meteo/Gallipoli\",3019 => \"/meteo/Gallo+matese\",3020 => \"/meteo/Gallodoro\",3021 => \"/meteo/Galluccio\",8315 => \"/meteo/Galluzzo\",3022 => \"/meteo/Galtelli\",3023 => \"/meteo/Galzignano+terme\",3024 => \"/meteo/Gamalero\",3025 => \"/meteo/Gambara\",3026 => \"/meteo/Gambarana\",8105 => \"/meteo/Gambarie\",3027 => \"/meteo/Gambasca\",3028 => \"/meteo/Gambassi+terme\",3029 => \"/meteo/Gambatesa\",3030 => \"/meteo/Gambellara\",3031 => \"/meteo/Gamberale\",3032 => \"/meteo/Gambettola\",3033 => \"/meteo/Gambolo'\",3034 => \"/meteo/Gambugliano\",3035 => \"/meteo/Gandellino\",3036 => \"/meteo/Gandino\",3037 => \"/meteo/Gandosso\",3038 => \"/meteo/Gangi\",8425 => \"/meteo/Garaguso\",3040 => \"/meteo/Garbagna\",3041 => \"/meteo/Garbagna+novarese\",3042 => \"/meteo/Garbagnate+milanese\",3043 => \"/meteo/Garbagnate+monastero\",3044 => \"/meteo/Garda\",3045 => \"/meteo/Gardone+riviera\",3046 => \"/meteo/Gardone+val+trompia\",3047 => \"/meteo/Garessio\",8349 => \"/meteo/Garessio+2000\",3048 => \"/meteo/Gargallo\",3049 => \"/meteo/Gargazzone\",3050 => \"/meteo/Gargnano\",3051 => \"/meteo/Garlasco\",3052 => \"/meteo/Garlate\",3053 => \"/meteo/Garlenda\",3054 => \"/meteo/Garniga\",3055 => \"/meteo/Garzeno\",3056 => \"/meteo/Garzigliana\",3057 => \"/meteo/Gasperina\",3058 => \"/meteo/Gassino+torinese\",3059 => \"/meteo/Gattatico\",3060 => \"/meteo/Gatteo\",3061 => \"/meteo/Gattico\",3062 => \"/meteo/Gattinara\",3063 => \"/meteo/Gavardo\",3064 => \"/meteo/Gavazzana\",3065 => \"/meteo/Gavello\",3066 => \"/meteo/Gaverina+terme\",3067 => \"/meteo/Gavi\",3068 => \"/meteo/Gavignano\",3069 => \"/meteo/Gavirate\",3070 => \"/meteo/Gavoi\",3071 => \"/meteo/Gavorrano\",3072 => \"/meteo/Gazoldo+degli+ippoliti\",3073 => \"/meteo/Gazzada+schianno\",3074 => \"/meteo/Gazzaniga\",3075 => \"/meteo/Gazzo\",3076 => \"/meteo/Gazzo+veronese\",3077 => \"/meteo/Gazzola\",3078 => \"/meteo/Gazzuolo\",3079 => \"/meteo/Gela\",3080 => \"/meteo/Gemmano\",3081 => \"/meteo/Gemona+del+friuli\",3082 => \"/meteo/Gemonio\",3083 => \"/meteo/Genazzano\",3084 => \"/meteo/Genga\",3085 => \"/meteo/Genivolta\",3086 => \"/meteo/Genola\",3087 => \"/meteo/Genoni\",3088 => \"/meteo/Genova\",8506 => \"/meteo/Genova+Nervi\",8276 => \"/meteo/Genova+Sestri\",3089 => \"/meteo/Genuri\",3090 => \"/meteo/Genzano+di+lucania\",3091 => \"/meteo/Genzano+di+roma\",3092 => \"/meteo/Genzone\",3093 => \"/meteo/Gera+lario\",3094 => \"/meteo/Gerace\",3095 => \"/meteo/Geraci+siculo\",3096 => \"/meteo/Gerano\",8176 => \"/meteo/Geremeas\",3097 => \"/meteo/Gerenzago\",3098 => \"/meteo/Gerenzano\",3099 => \"/meteo/Gergei\",3100 => \"/meteo/Germagnano\",3101 => \"/meteo/Germagno\",3102 => \"/meteo/Germasino\",3103 => \"/meteo/Germignaga\",8303 => \"/meteo/Gerno+di+Lesmo\",3104 => \"/meteo/Gerocarne\",3105 => \"/meteo/Gerola+alta\",3106 => \"/meteo/Gerosa\",3107 => \"/meteo/Gerre+de'caprioli\",3108 => \"/meteo/Gesico\",3109 => \"/meteo/Gessate\",3110 => \"/meteo/Gessopalena\",3111 => \"/meteo/Gesturi\",3112 => \"/meteo/Gesualdo\",3113 => \"/meteo/Ghedi\",3114 => \"/meteo/Ghemme\",8236 => \"/meteo/Ghiacciaio+Presena\",3115 => \"/meteo/Ghiffa\",3116 => \"/meteo/Ghilarza\",3117 => \"/meteo/Ghisalba\",3118 => \"/meteo/Ghislarengo\",3119 => \"/meteo/Giacciano+con+baruchella\",3120 => \"/meteo/Giaglione\",3121 => \"/meteo/Gianico\",3122 => \"/meteo/Giano+dell'umbria\",3123 => \"/meteo/Giano+vetusto\",3124 => \"/meteo/Giardinello\",3125 => \"/meteo/Giardini+Naxos\",3126 => \"/meteo/Giarole\",3127 => \"/meteo/Giarratana\",3128 => \"/meteo/Giarre\",3129 => \"/meteo/Giave\",3130 => \"/meteo/Giaveno\",3131 => \"/meteo/Giavera+del+montello\",3132 => \"/meteo/Giba\",3133 => \"/meteo/Gibellina\",3134 => \"/meteo/Gifflenga\",3135 => \"/meteo/Giffone\",3136 => \"/meteo/Giffoni+sei+casali\",3137 => \"/meteo/Giffoni+valle+piana\",3380 => \"/meteo/Giglio+castello\",3138 => \"/meteo/Gignese\",3139 => \"/meteo/Gignod\",3140 => \"/meteo/Gildone\",3141 => \"/meteo/Gimigliano\",8403 => \"/meteo/Ginestra\",3143 => \"/meteo/Ginestra+degli+schiavoni\",8430 => \"/meteo/Ginosa\",3145 => \"/meteo/Gioi\",3146 => \"/meteo/Gioia+dei+marsi\",3147 => \"/meteo/Gioia+del+colle\",3148 => \"/meteo/Gioia+sannitica\",3149 => \"/meteo/Gioia+tauro\",3150 => \"/meteo/Gioiosa+ionica\",3151 => \"/meteo/Gioiosa+marea\",3152 => \"/meteo/Giove\",3153 => \"/meteo/Giovinazzo\",3154 => \"/meteo/Giovo\",3155 => \"/meteo/Girasole\",3156 => \"/meteo/Girifalco\",3157 => \"/meteo/Gironico\",3158 => \"/meteo/Gissi\",3159 => \"/meteo/Giuggianello\",3160 => \"/meteo/Giugliano+in+campania\",3161 => \"/meteo/Giuliana\",3162 => \"/meteo/Giuliano+di+roma\",3163 => \"/meteo/Giuliano+teatino\",3164 => \"/meteo/Giulianova\",3165 => \"/meteo/Giuncugnano\",3166 => \"/meteo/Giungano\",3167 => \"/meteo/Giurdignano\",3168 => \"/meteo/Giussago\",3169 => \"/meteo/Giussano\",3170 => \"/meteo/Giustenice\",3171 => \"/meteo/Giustino\",3172 => \"/meteo/Giusvalla\",3173 => \"/meteo/Givoletto\",3174 => \"/meteo/Gizzeria\",3175 => \"/meteo/Glorenza\",3176 => \"/meteo/Godega+di+sant'urbano\",3177 => \"/meteo/Godiasco\",3178 => \"/meteo/Godrano\",3179 => \"/meteo/Goito\",3180 => \"/meteo/Golasecca\",3181 => \"/meteo/Golferenzo\",3182 => \"/meteo/Golfo+aranci\",3183 => \"/meteo/Gombito\",3184 => \"/meteo/Gonars\",3185 => \"/meteo/Goni\",3186 => \"/meteo/Gonnesa\",3187 => \"/meteo/Gonnoscodina\",3188 => \"/meteo/Gonnosfanadiga\",3189 => \"/meteo/Gonnosno'\",3190 => \"/meteo/Gonnostramatza\",3191 => \"/meteo/Gonzaga\",3192 => \"/meteo/Gordona\",3193 => \"/meteo/Gorga\",3194 => \"/meteo/Gorgo+al+monticano\",3195 => \"/meteo/Gorgoglione\",3196 => \"/meteo/Gorgonzola\",3197 => \"/meteo/Goriano+sicoli\",3198 => \"/meteo/Gorizia\",3199 => \"/meteo/Gorla+maggiore\",3200 => \"/meteo/Gorla+minore\",3201 => \"/meteo/Gorlago\",3202 => \"/meteo/Gorle\",3203 => \"/meteo/Gornate+olona\",3204 => \"/meteo/Gorno\",3205 => \"/meteo/Goro\",3206 => \"/meteo/Gorreto\",3207 => \"/meteo/Gorzegno\",3208 => \"/meteo/Gosaldo\",3209 => \"/meteo/Gossolengo\",3210 => \"/meteo/Gottasecca\",3211 => \"/meteo/Gottolengo\",3212 => \"/meteo/Govone\",3213 => \"/meteo/Gozzano\",3214 => \"/meteo/Gradara\",3215 => \"/meteo/Gradisca+d'isonzo\",3216 => \"/meteo/Grado\",3217 => \"/meteo/Gradoli\",3218 => \"/meteo/Graffignana\",3219 => \"/meteo/Graffignano\",3220 => \"/meteo/Graglia\",3221 => \"/meteo/Gragnano\",3222 => \"/meteo/Gragnano+trebbiense\",3223 => \"/meteo/Grammichele\",8485 => \"/meteo/Gran+Paradiso\",3224 => \"/meteo/Grana\",3225 => \"/meteo/Granaglione\",3226 => \"/meteo/Granarolo+dell'emilia\",3227 => \"/meteo/Grancona\",8728 => \"/meteo/Grand+Combin\",8327 => \"/meteo/Grand+Crot\",3228 => \"/meteo/Grandate\",3229 => \"/meteo/Grandola+ed+uniti\",3230 => \"/meteo/Graniti\",3231 => \"/meteo/Granozzo+con+monticello\",3232 => \"/meteo/Grantola\",3233 => \"/meteo/Grantorto\",3234 => \"/meteo/Granze\",8371 => \"/meteo/Grassano\",8504 => \"/meteo/Grassina\",3236 => \"/meteo/Grassobbio\",3237 => \"/meteo/Gratteri\",3238 => \"/meteo/Grauno\",3239 => \"/meteo/Gravedona\",3240 => \"/meteo/Gravellona+lomellina\",3241 => \"/meteo/Gravellona+toce\",3242 => \"/meteo/Gravere\",3243 => \"/meteo/Gravina+di+Catania\",3244 => \"/meteo/Gravina+in+puglia\",3245 => \"/meteo/Grazzanise\",3246 => \"/meteo/Grazzano+badoglio\",3247 => \"/meteo/Greccio\",3248 => \"/meteo/Greci\",3249 => \"/meteo/Greggio\",3250 => \"/meteo/Gremiasco\",3251 => \"/meteo/Gressan\",3252 => \"/meteo/Gressoney+la+trinite'\",3253 => \"/meteo/Gressoney+saint+jean\",3254 => \"/meteo/Greve+in+chianti\",3255 => \"/meteo/Grezzago\",3256 => \"/meteo/Grezzana\",3257 => \"/meteo/Griante\",3258 => \"/meteo/Gricignano+di+aversa\",8733 => \"/meteo/Grigna\",3259 => \"/meteo/Grignasco\",3260 => \"/meteo/Grigno\",3261 => \"/meteo/Grimacco\",3262 => \"/meteo/Grimaldi\",3263 => \"/meteo/Grinzane+cavour\",3264 => \"/meteo/Grisignano+di+zocco\",3265 => \"/meteo/Grisolia\",8520 => \"/meteo/Grivola\",3266 => \"/meteo/Grizzana+morandi\",3267 => \"/meteo/Grognardo\",3268 => \"/meteo/Gromo\",3269 => \"/meteo/Grondona\",3270 => \"/meteo/Grone\",3271 => \"/meteo/Grontardo\",3272 => \"/meteo/Gropello+cairoli\",3273 => \"/meteo/Gropparello\",3274 => \"/meteo/Groscavallo\",3275 => \"/meteo/Grosio\",3276 => \"/meteo/Grosotto\",3277 => \"/meteo/Grosseto\",3278 => \"/meteo/Grosso\",3279 => \"/meteo/Grottaferrata\",3280 => \"/meteo/Grottaglie\",3281 => \"/meteo/Grottaminarda\",3282 => \"/meteo/Grottammare\",3283 => \"/meteo/Grottazzolina\",3284 => \"/meteo/Grotte\",3285 => \"/meteo/Grotte+di+castro\",3286 => \"/meteo/Grotteria\",3287 => \"/meteo/Grottole\",3288 => \"/meteo/Grottolella\",3289 => \"/meteo/Gruaro\",3290 => \"/meteo/Grugliasco\",3291 => \"/meteo/Grumello+cremonese+ed+uniti\",3292 => \"/meteo/Grumello+del+monte\",8414 => \"/meteo/Grumento+nova\",3294 => \"/meteo/Grumes\",3295 => \"/meteo/Grumo+appula\",3296 => \"/meteo/Grumo+nevano\",3297 => \"/meteo/Grumolo+delle+abbadesse\",3298 => \"/meteo/Guagnano\",3299 => \"/meteo/Gualdo\",3300 => \"/meteo/Gualdo+Cattaneo\",3301 => \"/meteo/Gualdo+tadino\",3302 => \"/meteo/Gualtieri\",3303 => \"/meteo/Gualtieri+sicamino'\",3304 => \"/meteo/Guamaggiore\",3305 => \"/meteo/Guanzate\",3306 => \"/meteo/Guarcino\",3307 => \"/meteo/Guarda+veneta\",3308 => \"/meteo/Guardabosone\",3309 => \"/meteo/Guardamiglio\",3310 => \"/meteo/Guardavalle\",3311 => \"/meteo/Guardea\",3312 => \"/meteo/Guardia+lombardi\",8365 => \"/meteo/Guardia+perticara\",3314 => \"/meteo/Guardia+piemontese\",3315 => \"/meteo/Guardia+sanframondi\",3316 => \"/meteo/Guardiagrele\",3317 => \"/meteo/Guardialfiera\",3318 => \"/meteo/Guardiaregia\",3319 => \"/meteo/Guardistallo\",3320 => \"/meteo/Guarene\",3321 => \"/meteo/Guasila\",3322 => \"/meteo/Guastalla\",3323 => \"/meteo/Guazzora\",3324 => \"/meteo/Gubbio\",3325 => \"/meteo/Gudo+visconti\",3326 => \"/meteo/Guglionesi\",3327 => \"/meteo/Guidizzolo\",8508 => \"/meteo/Guidonia\",3328 => \"/meteo/Guidonia+montecelio\",3329 => \"/meteo/Guiglia\",3330 => \"/meteo/Guilmi\",3331 => \"/meteo/Gurro\",3332 => \"/meteo/Guspini\",3333 => \"/meteo/Gussago\",3334 => \"/meteo/Gussola\",3335 => \"/meteo/Hone\",8587 => \"/meteo/I+Prati\",3336 => \"/meteo/Idro\",3337 => \"/meteo/Iglesias\",3338 => \"/meteo/Igliano\",3339 => \"/meteo/Ilbono\",3340 => \"/meteo/Illasi\",3341 => \"/meteo/Illorai\",3342 => \"/meteo/Imbersago\",3343 => \"/meteo/Imer\",3344 => \"/meteo/Imola\",3345 => \"/meteo/Imperia\",3346 => \"/meteo/Impruneta\",3347 => \"/meteo/Inarzo\",3348 => \"/meteo/Incisa+in+val+d'arno\",3349 => \"/meteo/Incisa+scapaccino\",3350 => \"/meteo/Incudine\",3351 => \"/meteo/Induno+olona\",3352 => \"/meteo/Ingria\",3353 => \"/meteo/Intragna\",3354 => \"/meteo/Introbio\",3355 => \"/meteo/Introd\",3356 => \"/meteo/Introdacqua\",3357 => \"/meteo/Introzzo\",3358 => \"/meteo/Inverigo\",3359 => \"/meteo/Inverno+e+monteleone\",3360 => \"/meteo/Inverso+pinasca\",3361 => \"/meteo/Inveruno\",3362 => \"/meteo/Invorio\",3363 => \"/meteo/Inzago\",3364 => \"/meteo/Ionadi\",3365 => \"/meteo/Irgoli\",3366 => \"/meteo/Irma\",3367 => \"/meteo/Irsina\",3368 => \"/meteo/Isasca\",3369 => \"/meteo/Isca+sullo+ionio\",3370 => \"/meteo/Ischia\",3371 => \"/meteo/Ischia+di+castro\",3372 => \"/meteo/Ischitella\",3373 => \"/meteo/Iseo\",3374 => \"/meteo/Isera\",3375 => \"/meteo/Isernia\",3376 => \"/meteo/Isili\",3377 => \"/meteo/Isnello\",8742 => \"/meteo/Isola+Albarella\",3378 => \"/meteo/Isola+d'asti\",3379 => \"/meteo/Isola+del+cantone\",8190 => \"/meteo/Isola+del+Giglio\",3381 => \"/meteo/Isola+del+gran+sasso+d'italia\",3382 => \"/meteo/Isola+del+liri\",3383 => \"/meteo/Isola+del+piano\",3384 => \"/meteo/Isola+della+scala\",3385 => \"/meteo/Isola+delle+femmine\",3386 => \"/meteo/Isola+di+capo+rizzuto\",3387 => \"/meteo/Isola+di+fondra\",8671 => \"/meteo/Isola+di+Giannutri\",3388 => \"/meteo/Isola+dovarese\",3389 => \"/meteo/Isola+rizza\",8173 => \"/meteo/Isola+Rossa\",8183 => \"/meteo/Isola+Salina\",3390 => \"/meteo/Isola+sant'antonio\",3391 => \"/meteo/Isola+vicentina\",3392 => \"/meteo/Isolabella\",3393 => \"/meteo/Isolabona\",3394 => \"/meteo/Isole+tremiti\",3395 => \"/meteo/Isorella\",3396 => \"/meteo/Ispani\",3397 => \"/meteo/Ispica\",3398 => \"/meteo/Ispra\",3399 => \"/meteo/Issiglio\",3400 => \"/meteo/Issime\",3401 => \"/meteo/Isso\",3402 => \"/meteo/Issogne\",3403 => \"/meteo/Istrana\",3404 => \"/meteo/Itala\",3405 => \"/meteo/Itri\",3406 => \"/meteo/Ittireddu\",3407 => \"/meteo/Ittiri\",3408 => \"/meteo/Ivano+fracena\",3409 => \"/meteo/Ivrea\",3410 => \"/meteo/Izano\",3411 => \"/meteo/Jacurso\",3412 => \"/meteo/Jelsi\",3413 => \"/meteo/Jenne\",3414 => \"/meteo/Jerago+con+Orago\",3415 => \"/meteo/Jerzu\",3416 => \"/meteo/Jesi\",3417 => \"/meteo/Jesolo\",3418 => \"/meteo/Jolanda+di+Savoia\",3419 => \"/meteo/Joppolo\",3420 => \"/meteo/Joppolo+Giancaxio\",3421 => \"/meteo/Jovencan\",8568 => \"/meteo/Klausberg\",3422 => \"/meteo/L'Aquila\",3423 => \"/meteo/La+Cassa\",8227 => \"/meteo/La+Lechere\",3424 => \"/meteo/La+Loggia\",3425 => \"/meteo/La+Maddalena\",3426 => \"/meteo/La+Magdeleine\",3427 => \"/meteo/La+Morra\",8617 => \"/meteo/La+Palud\",3428 => \"/meteo/La+Salle\",3429 => \"/meteo/La+Spezia\",3430 => \"/meteo/La+Thuile\",3431 => \"/meteo/La+Valle\",3432 => \"/meteo/La+Valle+Agordina\",8762 => \"/meteo/La+Villa\",3433 => \"/meteo/Labico\",3434 => \"/meteo/Labro\",3435 => \"/meteo/Lacchiarella\",3436 => \"/meteo/Lacco+ameno\",3437 => \"/meteo/Lacedonia\",8245 => \"/meteo/Laceno\",3438 => \"/meteo/Laces\",3439 => \"/meteo/Laconi\",3440 => \"/meteo/Ladispoli\",8571 => \"/meteo/Ladurno\",3441 => \"/meteo/Laerru\",3442 => \"/meteo/Laganadi\",3443 => \"/meteo/Laghi\",3444 => \"/meteo/Laglio\",3445 => \"/meteo/Lagnasco\",3446 => \"/meteo/Lago\",3447 => \"/meteo/Lagonegro\",3448 => \"/meteo/Lagosanto\",3449 => \"/meteo/Lagundo\",3450 => \"/meteo/Laigueglia\",3451 => \"/meteo/Lainate\",3452 => \"/meteo/Laino\",3453 => \"/meteo/Laino+borgo\",3454 => \"/meteo/Laino+castello\",3455 => \"/meteo/Laion\",3456 => \"/meteo/Laives\",3457 => \"/meteo/Lajatico\",3458 => \"/meteo/Lallio\",3459 => \"/meteo/Lama+dei+peligni\",3460 => \"/meteo/Lama+mocogno\",3461 => \"/meteo/Lambrugo\",8477 => \"/meteo/Lamezia+Santa+Eufemia\",3462 => \"/meteo/Lamezia+terme\",3463 => \"/meteo/Lamon\",8179 => \"/meteo/Lampedusa\",3464 => \"/meteo/Lampedusa+e+linosa\",3465 => \"/meteo/Lamporecchio\",3466 => \"/meteo/Lamporo\",3467 => \"/meteo/Lana\",3468 => \"/meteo/Lanciano\",8467 => \"/meteo/Lanciano+casello\",3469 => \"/meteo/Landiona\",3470 => \"/meteo/Landriano\",3471 => \"/meteo/Langhirano\",3472 => \"/meteo/Langosco\",3473 => \"/meteo/Lanusei\",3474 => \"/meteo/Lanuvio\",3475 => \"/meteo/Lanzada\",3476 => \"/meteo/Lanzo+d'intelvi\",3477 => \"/meteo/Lanzo+torinese\",3478 => \"/meteo/Lapedona\",3479 => \"/meteo/Lapio\",3480 => \"/meteo/Lappano\",3481 => \"/meteo/Larciano\",3482 => \"/meteo/Lardaro\",3483 => \"/meteo/Lardirago\",3484 => \"/meteo/Lari\",3485 => \"/meteo/Lariano\",3486 => \"/meteo/Larino\",3487 => \"/meteo/Las+plassas\",3488 => \"/meteo/Lasa\",3489 => \"/meteo/Lascari\",3490 => \"/meteo/Lasino\",3491 => \"/meteo/Lasnigo\",3492 => \"/meteo/Lastebasse\",3493 => \"/meteo/Lastra+a+signa\",3494 => \"/meteo/Latera\",3495 => \"/meteo/Laterina\",3496 => \"/meteo/Laterza\",3497 => \"/meteo/Latiano\",3498 => \"/meteo/Latina\",3499 => \"/meteo/Latisana\",3500 => \"/meteo/Latronico\",3501 => \"/meteo/Lattarico\",3502 => \"/meteo/Lauco\",3503 => \"/meteo/Laureana+cilento\",3504 => \"/meteo/Laureana+di+borrello\",3505 => \"/meteo/Lauregno\",3506 => \"/meteo/Laurenzana\",3507 => \"/meteo/Lauria\",3508 => \"/meteo/Lauriano\",3509 => \"/meteo/Laurino\",3510 => \"/meteo/Laurito\",3511 => \"/meteo/Lauro\",3512 => \"/meteo/Lavagna\",3513 => \"/meteo/Lavagno\",3514 => \"/meteo/Lavarone\",3515 => \"/meteo/Lavello\",3516 => \"/meteo/Lavena+ponte+tresa\",3517 => \"/meteo/Laveno+mombello\",3518 => \"/meteo/Lavenone\",3519 => \"/meteo/Laviano\",8695 => \"/meteo/Lavinio\",3520 => \"/meteo/Lavis\",3521 => \"/meteo/Lazise\",3522 => \"/meteo/Lazzate\",8434 => \"/meteo/Le+polle\",3523 => \"/meteo/Lecce\",3524 => \"/meteo/Lecce+nei+marsi\",3525 => \"/meteo/Lecco\",3526 => \"/meteo/Leffe\",3527 => \"/meteo/Leggiuno\",3528 => \"/meteo/Legnago\",3529 => \"/meteo/Legnano\",3530 => \"/meteo/Legnaro\",3531 => \"/meteo/Lei\",3532 => \"/meteo/Leini\",3533 => \"/meteo/Leivi\",3534 => \"/meteo/Lemie\",3535 => \"/meteo/Lendinara\",3536 => \"/meteo/Leni\",3537 => \"/meteo/Lenna\",3538 => \"/meteo/Lenno\",3539 => \"/meteo/Leno\",3540 => \"/meteo/Lenola\",3541 => \"/meteo/Lenta\",3542 => \"/meteo/Lentate+sul+seveso\",3543 => \"/meteo/Lentella\",3544 => \"/meteo/Lentiai\",3545 => \"/meteo/Lentini\",3546 => \"/meteo/Leonessa\",3547 => \"/meteo/Leonforte\",3548 => \"/meteo/Leporano\",3549 => \"/meteo/Lequile\",3550 => \"/meteo/Lequio+berria\",3551 => \"/meteo/Lequio+tanaro\",3552 => \"/meteo/Lercara+friddi\",3553 => \"/meteo/Lerici\",3554 => \"/meteo/Lerma\",8250 => \"/meteo/Les+Suches\",3555 => \"/meteo/Lesa\",3556 => \"/meteo/Lesegno\",3557 => \"/meteo/Lesignano+de+'bagni\",3558 => \"/meteo/Lesina\",3559 => \"/meteo/Lesmo\",3560 => \"/meteo/Lessolo\",3561 => \"/meteo/Lessona\",3562 => \"/meteo/Lestizza\",3563 => \"/meteo/Letino\",3564 => \"/meteo/Letojanni\",3565 => \"/meteo/Lettere\",3566 => \"/meteo/Lettomanoppello\",3567 => \"/meteo/Lettopalena\",3568 => \"/meteo/Levanto\",3569 => \"/meteo/Levate\",3570 => \"/meteo/Leverano\",3571 => \"/meteo/Levice\",3572 => \"/meteo/Levico+terme\",3573 => \"/meteo/Levone\",3574 => \"/meteo/Lezzeno\",3575 => \"/meteo/Liberi\",3576 => \"/meteo/Librizzi\",3577 => \"/meteo/Licata\",3578 => \"/meteo/Licciana+nardi\",3579 => \"/meteo/Licenza\",3580 => \"/meteo/Licodia+eubea\",8442 => \"/meteo/Lido+degli+Estensi\",8441 => \"/meteo/Lido+delle+Nazioni\",8200 => \"/meteo/Lido+di+Camaiore\",8136 => \"/meteo/Lido+di+Ostia\",8746 => \"/meteo/Lido+di+Volano\",8594 => \"/meteo/Lido+Marini\",3581 => \"/meteo/Lierna\",3582 => \"/meteo/Lignana\",3583 => \"/meteo/Lignano+sabbiadoro\",3584 => \"/meteo/Ligonchio\",3585 => \"/meteo/Ligosullo\",3586 => \"/meteo/Lillianes\",3587 => \"/meteo/Limana\",3588 => \"/meteo/Limatola\",3589 => \"/meteo/Limbadi\",3590 => \"/meteo/Limbiate\",3591 => \"/meteo/Limena\",3592 => \"/meteo/Limido+comasco\",3593 => \"/meteo/Limina\",3594 => \"/meteo/Limone+piemonte\",3595 => \"/meteo/Limone+sul+garda\",3596 => \"/meteo/Limosano\",3597 => \"/meteo/Linarolo\",3598 => \"/meteo/Linguaglossa\",8180 => \"/meteo/Linosa\",3599 => \"/meteo/Lioni\",3600 => \"/meteo/Lipari\",3601 => \"/meteo/Lipomo\",3602 => \"/meteo/Lirio\",3603 => \"/meteo/Liscate\",3604 => \"/meteo/Liscia\",3605 => \"/meteo/Lisciano+niccone\",3606 => \"/meteo/Lisignago\",3607 => \"/meteo/Lisio\",3608 => \"/meteo/Lissone\",3609 => \"/meteo/Liveri\",3610 => \"/meteo/Livigno\",3611 => \"/meteo/Livinallongo+del+col+di+lana\",3613 => \"/meteo/Livo\",3612 => \"/meteo/Livo\",3614 => \"/meteo/Livorno\",3615 => \"/meteo/Livorno+ferraris\",3616 => \"/meteo/Livraga\",3617 => \"/meteo/Lizzanello\",3618 => \"/meteo/Lizzano\",3619 => \"/meteo/Lizzano+in+belvedere\",8300 => \"/meteo/Lizzola\",3620 => \"/meteo/Loano\",3621 => \"/meteo/Loazzolo\",3622 => \"/meteo/Locana\",3623 => \"/meteo/Locate+di+triulzi\",3624 => \"/meteo/Locate+varesino\",3625 => \"/meteo/Locatello\",3626 => \"/meteo/Loceri\",3627 => \"/meteo/Locorotondo\",3628 => \"/meteo/Locri\",3629 => \"/meteo/Loculi\",3630 => \"/meteo/Lode'\",3631 => \"/meteo/Lodi\",3632 => \"/meteo/Lodi+vecchio\",3633 => \"/meteo/Lodine\",3634 => \"/meteo/Lodrino\",3635 => \"/meteo/Lograto\",3636 => \"/meteo/Loiano\",8748 => \"/meteo/Loiano+RFI\",3637 => \"/meteo/Loiri+porto+san+paolo\",3638 => \"/meteo/Lomagna\",3639 => \"/meteo/Lomaso\",3640 => \"/meteo/Lomazzo\",3641 => \"/meteo/Lombardore\",3642 => \"/meteo/Lombriasco\",3643 => \"/meteo/Lomello\",3644 => \"/meteo/Lona+lases\",3645 => \"/meteo/Lonate+ceppino\",3646 => \"/meteo/Lonate+pozzolo\",3647 => \"/meteo/Lonato\",3648 => \"/meteo/Londa\",3649 => \"/meteo/Longano\",3650 => \"/meteo/Longare\",3651 => \"/meteo/Longarone\",3652 => \"/meteo/Longhena\",3653 => \"/meteo/Longi\",3654 => \"/meteo/Longiano\",3655 => \"/meteo/Longobardi\",3656 => \"/meteo/Longobucco\",3657 => \"/meteo/Longone+al+segrino\",3658 => \"/meteo/Longone+sabino\",3659 => \"/meteo/Lonigo\",3660 => \"/meteo/Loranze'\",3661 => \"/meteo/Loreggia\",3662 => \"/meteo/Loreglia\",3663 => \"/meteo/Lorenzago+di+cadore\",3664 => \"/meteo/Lorenzana\",3665 => \"/meteo/Loreo\",3666 => \"/meteo/Loreto\",3667 => \"/meteo/Loreto+aprutino\",3668 => \"/meteo/Loria\",8523 => \"/meteo/Lorica\",3669 => \"/meteo/Loro+ciuffenna\",3670 => \"/meteo/Loro+piceno\",3671 => \"/meteo/Lorsica\",3672 => \"/meteo/Losine\",3673 => \"/meteo/Lotzorai\",3674 => \"/meteo/Lovere\",3675 => \"/meteo/Lovero\",3676 => \"/meteo/Lozio\",3677 => \"/meteo/Lozza\",3678 => \"/meteo/Lozzo+atestino\",3679 => \"/meteo/Lozzo+di+cadore\",3680 => \"/meteo/Lozzolo\",3681 => \"/meteo/Lu\",3682 => \"/meteo/Lubriano\",3683 => \"/meteo/Lucca\",3684 => \"/meteo/Lucca+sicula\",3685 => \"/meteo/Lucera\",3686 => \"/meteo/Lucignano\",3687 => \"/meteo/Lucinasco\",3688 => \"/meteo/Lucito\",3689 => \"/meteo/Luco+dei+marsi\",3690 => \"/meteo/Lucoli\",3691 => \"/meteo/Lugagnano+val+d'arda\",3692 => \"/meteo/Lugnacco\",3693 => \"/meteo/Lugnano+in+teverina\",3694 => \"/meteo/Lugo\",3695 => \"/meteo/Lugo+di+vicenza\",3696 => \"/meteo/Luino\",3697 => \"/meteo/Luisago\",3698 => \"/meteo/Lula\",3699 => \"/meteo/Lumarzo\",3700 => \"/meteo/Lumezzane\",3701 => \"/meteo/Lunamatrona\",3702 => \"/meteo/Lunano\",3703 => \"/meteo/Lungavilla\",3704 => \"/meteo/Lungro\",3705 => \"/meteo/Luogosano\",3706 => \"/meteo/Luogosanto\",3707 => \"/meteo/Lupara\",3708 => \"/meteo/Lurago+d'erba\",3709 => \"/meteo/Lurago+marinone\",3710 => \"/meteo/Lurano\",3711 => \"/meteo/Luras\",3712 => \"/meteo/Lurate+caccivio\",3713 => \"/meteo/Lusciano\",8636 => \"/meteo/Lusentino\",3714 => \"/meteo/Luserna\",3715 => \"/meteo/Luserna+san+giovanni\",3716 => \"/meteo/Lusernetta\",3717 => \"/meteo/Lusevera\",3718 => \"/meteo/Lusia\",3719 => \"/meteo/Lusiana\",3720 => \"/meteo/Lusiglie'\",3721 => \"/meteo/Luson\",3722 => \"/meteo/Lustra\",8572 => \"/meteo/Lutago\",3723 => \"/meteo/Luvinate\",3724 => \"/meteo/Luzzana\",3725 => \"/meteo/Luzzara\",3726 => \"/meteo/Luzzi\",8447 => \"/meteo/L`Aquila+est\",8446 => \"/meteo/L`Aquila+ovest\",3727 => \"/meteo/Maccagno\",3728 => \"/meteo/Maccastorna\",3729 => \"/meteo/Macchia+d'isernia\",3730 => \"/meteo/Macchia+valfortore\",3731 => \"/meteo/Macchiagodena\",3732 => \"/meteo/Macello\",3733 => \"/meteo/Macerata\",3734 => \"/meteo/Macerata+campania\",3735 => \"/meteo/Macerata+feltria\",3736 => \"/meteo/Macherio\",3737 => \"/meteo/Maclodio\",3738 => \"/meteo/Macomer\",3739 => \"/meteo/Macra\",3740 => \"/meteo/Macugnaga\",3741 => \"/meteo/Maddaloni\",3742 => \"/meteo/Madesimo\",3743 => \"/meteo/Madignano\",3744 => \"/meteo/Madone\",3745 => \"/meteo/Madonna+del+sasso\",8201 => \"/meteo/Madonna+di+Campiglio\",3746 => \"/meteo/Maenza\",3747 => \"/meteo/Mafalda\",3748 => \"/meteo/Magasa\",3749 => \"/meteo/Magenta\",3750 => \"/meteo/Maggiora\",3751 => \"/meteo/Magherno\",3752 => \"/meteo/Magione\",3753 => \"/meteo/Magisano\",3754 => \"/meteo/Magliano+alfieri\",3755 => \"/meteo/Magliano+alpi\",8461 => \"/meteo/Magliano+casello\",3756 => \"/meteo/Magliano+de'+marsi\",3757 => \"/meteo/Magliano+di+tenna\",3758 => \"/meteo/Magliano+in+toscana\",3759 => \"/meteo/Magliano+romano\",3760 => \"/meteo/Magliano+sabina\",3761 => \"/meteo/Magliano+vetere\",3762 => \"/meteo/Maglie\",3763 => \"/meteo/Magliolo\",3764 => \"/meteo/Maglione\",3765 => \"/meteo/Magnacavallo\",3766 => \"/meteo/Magnago\",3767 => \"/meteo/Magnano\",3768 => \"/meteo/Magnano+in+riviera\",8322 => \"/meteo/Magnolta\",3769 => \"/meteo/Magomadas\",3770 => \"/meteo/Magre'+sulla+strada+del+vino\",3771 => \"/meteo/Magreglio\",3772 => \"/meteo/Maida\",3773 => \"/meteo/Maiera'\",3774 => \"/meteo/Maierato\",3775 => \"/meteo/Maiolati+spontini\",3776 => \"/meteo/Maiolo\",3777 => \"/meteo/Maiori\",3778 => \"/meteo/Mairago\",3779 => \"/meteo/Mairano\",3780 => \"/meteo/Maissana\",3781 => \"/meteo/Majano\",3782 => \"/meteo/Malagnino\",3783 => \"/meteo/Malalbergo\",3784 => \"/meteo/Malborghetto+valbruna\",3785 => \"/meteo/Malcesine\",3786 => \"/meteo/Male'\",3787 => \"/meteo/Malegno\",3788 => \"/meteo/Maleo\",3789 => \"/meteo/Malesco\",3790 => \"/meteo/Maletto\",3791 => \"/meteo/Malfa\",8229 => \"/meteo/Malga+Ciapela\",8333 => \"/meteo/Malga+Polzone\",8661 => \"/meteo/Malga+San+Giorgio\",3792 => \"/meteo/Malgesso\",3793 => \"/meteo/Malgrate\",3794 => \"/meteo/Malito\",3795 => \"/meteo/Mallare\",3796 => \"/meteo/Malles+Venosta\",3797 => \"/meteo/Malnate\",3798 => \"/meteo/Malo\",3799 => \"/meteo/Malonno\",3800 => \"/meteo/Malosco\",3801 => \"/meteo/Maltignano\",3802 => \"/meteo/Malvagna\",3803 => \"/meteo/Malvicino\",3804 => \"/meteo/Malvito\",3805 => \"/meteo/Mammola\",3806 => \"/meteo/Mamoiada\",3807 => \"/meteo/Manciano\",3808 => \"/meteo/Mandanici\",3809 => \"/meteo/Mandas\",3810 => \"/meteo/Mandatoriccio\",3811 => \"/meteo/Mandela\",3812 => \"/meteo/Mandello+del+lario\",3813 => \"/meteo/Mandello+vitta\",3814 => \"/meteo/Manduria\",3815 => \"/meteo/Manerba+del+garda\",3816 => \"/meteo/Manerbio\",3817 => \"/meteo/Manfredonia\",3818 => \"/meteo/Mango\",3819 => \"/meteo/Mangone\",3820 => \"/meteo/Maniace\",3821 => \"/meteo/Maniago\",3822 => \"/meteo/Manocalzati\",3823 => \"/meteo/Manoppello\",3824 => \"/meteo/Mansue'\",3825 => \"/meteo/Manta\",3826 => \"/meteo/Mantello\",3827 => \"/meteo/Mantova\",8129 => \"/meteo/Manzano\",3829 => \"/meteo/Manziana\",3830 => \"/meteo/Mapello\",3831 => \"/meteo/Mara\",3832 => \"/meteo/Maracalagonis\",3833 => \"/meteo/Maranello\",3834 => \"/meteo/Marano+di+napoli\",3835 => \"/meteo/Marano+di+valpolicella\",3836 => \"/meteo/Marano+equo\",3837 => \"/meteo/Marano+lagunare\",3838 => \"/meteo/Marano+marchesato\",3839 => \"/meteo/Marano+principato\",3840 => \"/meteo/Marano+sul+panaro\",3841 => \"/meteo/Marano+ticino\",3842 => \"/meteo/Marano+vicentino\",3843 => \"/meteo/Maranzana\",3844 => \"/meteo/Maratea\",3845 => \"/meteo/Marcallo+con+Casone\",3846 => \"/meteo/Marcaria\",3847 => \"/meteo/Marcedusa\",3848 => \"/meteo/Marcellina\",3849 => \"/meteo/Marcellinara\",3850 => \"/meteo/Marcetelli\",3851 => \"/meteo/Marcheno\",3852 => \"/meteo/Marchirolo\",3853 => \"/meteo/Marciana\",3854 => \"/meteo/Marciana+marina\",3855 => \"/meteo/Marcianise\",3856 => \"/meteo/Marciano+della+chiana\",3857 => \"/meteo/Marcignago\",3858 => \"/meteo/Marcon\",3859 => \"/meteo/Marebbe\",8478 => \"/meteo/Marene\",3861 => \"/meteo/Mareno+di+piave\",3862 => \"/meteo/Marentino\",3863 => \"/meteo/Maretto\",3864 => \"/meteo/Margarita\",3865 => \"/meteo/Margherita+di+savoia\",3866 => \"/meteo/Margno\",3867 => \"/meteo/Mariana+mantovana\",3868 => \"/meteo/Mariano+comense\",3869 => \"/meteo/Mariano+del+friuli\",3870 => \"/meteo/Marianopoli\",3871 => \"/meteo/Mariglianella\",3872 => \"/meteo/Marigliano\",8291 => \"/meteo/Marilleva\",8490 => \"/meteo/Marina+di+Arbus\",8599 => \"/meteo/Marina+di+Camerota\",8582 => \"/meteo/Marina+di+Campo\",8111 => \"/meteo/Marina+di+Cariati\",8118 => \"/meteo/Marina+di+Cetraro\",8175 => \"/meteo/Marina+di+Gairo\",8164 => \"/meteo/Marina+di+Ginosa\",3873 => \"/meteo/Marina+di+gioiosa+ionica\",8166 => \"/meteo/Marina+di+Leuca\",8184 => \"/meteo/Marina+di+Modica\",8156 => \"/meteo/Marina+di+montenero\",8165 => \"/meteo/Marina+di+Ostuni\",8186 => \"/meteo/Marina+di+Palma\",8141 => \"/meteo/Marina+di+Pescia+Romana\",8591 => \"/meteo/Marina+di+Pescoluse\",8298 => \"/meteo/Marina+di+Pietrasanta\",8128 => \"/meteo/Marina+di+Ravenna\",8174 => \"/meteo/Marina+di+Sorso\",8188 => \"/meteo/Marinella\",3874 => \"/meteo/Marineo\",3875 => \"/meteo/Marino\",3876 => \"/meteo/Marlengo\",3877 => \"/meteo/Marliana\",3878 => \"/meteo/Marmentino\",3879 => \"/meteo/Marmirolo\",8205 => \"/meteo/Marmolada\",3880 => \"/meteo/Marmora\",3881 => \"/meteo/Marnate\",3882 => \"/meteo/Marone\",3883 => \"/meteo/Maropati\",3884 => \"/meteo/Marostica\",8154 => \"/meteo/Marotta\",3885 => \"/meteo/Marradi\",3886 => \"/meteo/Marrubiu\",3887 => \"/meteo/Marsaglia\",3888 => \"/meteo/Marsala\",3889 => \"/meteo/Marsciano\",3890 => \"/meteo/Marsico+nuovo\",3891 => \"/meteo/Marsicovetere\",3892 => \"/meteo/Marta\",3893 => \"/meteo/Martano\",3894 => \"/meteo/Martellago\",3895 => \"/meteo/Martello\",3896 => \"/meteo/Martignacco\",3897 => \"/meteo/Martignana+di+po\",3898 => \"/meteo/Martignano\",3899 => \"/meteo/Martina+franca\",3900 => \"/meteo/Martinengo\",3901 => \"/meteo/Martiniana+po\",3902 => \"/meteo/Martinsicuro\",3903 => \"/meteo/Martirano\",3904 => \"/meteo/Martirano+lombardo\",3905 => \"/meteo/Martis\",3906 => \"/meteo/Martone\",3907 => \"/meteo/Marudo\",3908 => \"/meteo/Maruggio\",3909 => \"/meteo/Marzabotto\",3910 => \"/meteo/Marzano\",3911 => \"/meteo/Marzano+appio\",3912 => \"/meteo/Marzano+di+nola\",3913 => \"/meteo/Marzi\",3914 => \"/meteo/Marzio\",3915 => \"/meteo/Masainas\",3916 => \"/meteo/Masate\",3917 => \"/meteo/Mascali\",3918 => \"/meteo/Mascalucia\",3919 => \"/meteo/Maschito\",3920 => \"/meteo/Masciago+primo\",3921 => \"/meteo/Maser\",3922 => \"/meteo/Masera\",3923 => \"/meteo/Masera'+di+Padova\",3924 => \"/meteo/Maserada+sul+piave\",3925 => \"/meteo/Masi\",3926 => \"/meteo/Masi+torello\",3927 => \"/meteo/Masio\",3928 => \"/meteo/Maslianico\",8216 => \"/meteo/Maso+Corto\",3929 => \"/meteo/Mason+vicentino\",3930 => \"/meteo/Masone\",3931 => \"/meteo/Massa\",3932 => \"/meteo/Massa+d'albe\",3933 => \"/meteo/Massa+di+somma\",3934 => \"/meteo/Massa+e+cozzile\",3935 => \"/meteo/Massa+fermana\",3936 => \"/meteo/Massa+fiscaglia\",3937 => \"/meteo/Massa+lombarda\",3938 => \"/meteo/Massa+lubrense\",3939 => \"/meteo/Massa+marittima\",3940 => \"/meteo/Massa+martana\",3941 => \"/meteo/Massafra\",3942 => \"/meteo/Massalengo\",3943 => \"/meteo/Massanzago\",3944 => \"/meteo/Massarosa\",3945 => \"/meteo/Massazza\",3946 => \"/meteo/Massello\",3947 => \"/meteo/Masserano\",3948 => \"/meteo/Massignano\",3949 => \"/meteo/Massimeno\",3950 => \"/meteo/Massimino\",3951 => \"/meteo/Massino+visconti\",3952 => \"/meteo/Massiola\",3953 => \"/meteo/Masullas\",3954 => \"/meteo/Matelica\",3955 => \"/meteo/Matera\",3956 => \"/meteo/Mathi\",3957 => \"/meteo/Matino\",3958 => \"/meteo/Matrice\",3959 => \"/meteo/Mattie\",3960 => \"/meteo/Mattinata\",3961 => \"/meteo/Mazara+del+vallo\",3962 => \"/meteo/Mazzano\",3963 => \"/meteo/Mazzano+romano\",3964 => \"/meteo/Mazzarino\",3965 => \"/meteo/Mazzarra'+sant'andrea\",3966 => \"/meteo/Mazzarrone\",3967 => \"/meteo/Mazze'\",3968 => \"/meteo/Mazzin\",3969 => \"/meteo/Mazzo+di+valtellina\",3970 => \"/meteo/Meana+di+susa\",3971 => \"/meteo/Meana+sardo\",3972 => \"/meteo/Meda\",3973 => \"/meteo/Mede\",3974 => \"/meteo/Medea\",3975 => \"/meteo/Medesano\",3976 => \"/meteo/Medicina\",3977 => \"/meteo/Mediglia\",3978 => \"/meteo/Medolago\",3979 => \"/meteo/Medole\",3980 => \"/meteo/Medolla\",3981 => \"/meteo/Meduna+di+livenza\",3982 => \"/meteo/Meduno\",3983 => \"/meteo/Megliadino+san+fidenzio\",3984 => \"/meteo/Megliadino+san+vitale\",3985 => \"/meteo/Meina\",3986 => \"/meteo/Mel\",3987 => \"/meteo/Melara\",3988 => \"/meteo/Melazzo\",8443 => \"/meteo/Meldola\",3990 => \"/meteo/Mele\",3991 => \"/meteo/Melegnano\",3992 => \"/meteo/Melendugno\",3993 => \"/meteo/Meleti\",8666 => \"/meteo/Melezet\",3994 => \"/meteo/Melfi\",3995 => \"/meteo/Melicucca'\",3996 => \"/meteo/Melicucco\",3997 => \"/meteo/Melilli\",3998 => \"/meteo/Melissa\",3999 => \"/meteo/Melissano\",4000 => \"/meteo/Melito+di+napoli\",4001 => \"/meteo/Melito+di+porto+salvo\",4002 => \"/meteo/Melito+irpino\",4003 => \"/meteo/Melizzano\",4004 => \"/meteo/Melle\",4005 => \"/meteo/Mello\",4006 => \"/meteo/Melpignano\",4007 => \"/meteo/Meltina\",4008 => \"/meteo/Melzo\",4009 => \"/meteo/Menaggio\",4010 => \"/meteo/Menarola\",4011 => \"/meteo/Menconico\",4012 => \"/meteo/Mendatica\",4013 => \"/meteo/Mendicino\",4014 => \"/meteo/Menfi\",4015 => \"/meteo/Mentana\",4016 => \"/meteo/Meolo\",4017 => \"/meteo/Merana\",4018 => \"/meteo/Merano\",8351 => \"/meteo/Merano+2000\",4019 => \"/meteo/Merate\",4020 => \"/meteo/Mercallo\",4021 => \"/meteo/Mercatello+sul+metauro\",4022 => \"/meteo/Mercatino+conca\",8437 => \"/meteo/Mercato\",4023 => \"/meteo/Mercato+san+severino\",4024 => \"/meteo/Mercato+saraceno\",4025 => \"/meteo/Mercenasco\",4026 => \"/meteo/Mercogliano\",4027 => \"/meteo/Mereto+di+tomba\",4028 => \"/meteo/Mergo\",4029 => \"/meteo/Mergozzo\",4030 => \"/meteo/Meri'\",4031 => \"/meteo/Merlara\",4032 => \"/meteo/Merlino\",4033 => \"/meteo/Merone\",4034 => \"/meteo/Mesagne\",4035 => \"/meteo/Mese\",4036 => \"/meteo/Mesenzana\",4037 => \"/meteo/Mesero\",4038 => \"/meteo/Mesola\",4039 => \"/meteo/Mesoraca\",4040 => \"/meteo/Messina\",4041 => \"/meteo/Mestrino\",4042 => \"/meteo/Meta\",8104 => \"/meteo/Metaponto\",4043 => \"/meteo/Meugliano\",4044 => \"/meteo/Mezzago\",4045 => \"/meteo/Mezzana\",4046 => \"/meteo/Mezzana+bigli\",4047 => \"/meteo/Mezzana+mortigliengo\",4048 => \"/meteo/Mezzana+rabattone\",4049 => \"/meteo/Mezzane+di+sotto\",4050 => \"/meteo/Mezzanego\",4051 => \"/meteo/Mezzani\",4052 => \"/meteo/Mezzanino\",4053 => \"/meteo/Mezzano\",4054 => \"/meteo/Mezzegra\",4055 => \"/meteo/Mezzenile\",4056 => \"/meteo/Mezzocorona\",4057 => \"/meteo/Mezzojuso\",4058 => \"/meteo/Mezzoldo\",4059 => \"/meteo/Mezzolombardo\",4060 => \"/meteo/Mezzomerico\",8524 => \"/meteo/MI+Olgettina\",8526 => \"/meteo/MI+Primaticcio\",8527 => \"/meteo/MI+Silla\",8525 => \"/meteo/MI+Zama\",4061 => \"/meteo/Miagliano\",4062 => \"/meteo/Miane\",4063 => \"/meteo/Miasino\",4064 => \"/meteo/Miazzina\",4065 => \"/meteo/Micigliano\",4066 => \"/meteo/Miggiano\",4067 => \"/meteo/Miglianico\",4068 => \"/meteo/Migliarino\",4069 => \"/meteo/Migliaro\",4070 => \"/meteo/Miglierina\",4071 => \"/meteo/Miglionico\",4072 => \"/meteo/Mignanego\",4073 => \"/meteo/Mignano+monte+lungo\",4074 => \"/meteo/Milano\",8495 => \"/meteo/Milano+Linate\",8496 => \"/meteo/Milano+Malpensa\",8240 => \"/meteo/Milano+marittima\",4075 => \"/meteo/Milazzo\",4076 => \"/meteo/Milena\",4077 => \"/meteo/Mileto\",4078 => \"/meteo/Milis\",4079 => \"/meteo/Militello+in+val+di+catania\",4080 => \"/meteo/Militello+rosmarino\",4081 => \"/meteo/Millesimo\",4082 => \"/meteo/Milo\",4083 => \"/meteo/Milzano\",4084 => \"/meteo/Mineo\",4085 => \"/meteo/Minerbe\",4086 => \"/meteo/Minerbio\",4087 => \"/meteo/Minervino+di+lecce\",4088 => \"/meteo/Minervino+murge\",4089 => \"/meteo/Minori\",4090 => \"/meteo/Minturno\",4091 => \"/meteo/Minucciano\",4092 => \"/meteo/Mioglia\",4093 => \"/meteo/Mira\",4094 => \"/meteo/Mirabella+eclano\",4095 => \"/meteo/Mirabella+imbaccari\",4096 => \"/meteo/Mirabello\",4097 => \"/meteo/Mirabello+monferrato\",4098 => \"/meteo/Mirabello+sannitico\",4099 => \"/meteo/Miradolo+terme\",4100 => \"/meteo/Miranda\",4101 => \"/meteo/Mirandola\",4102 => \"/meteo/Mirano\",4103 => \"/meteo/Mirto\",4104 => \"/meteo/Misano+adriatico\",4105 => \"/meteo/Misano+di+gera+d'adda\",4106 => \"/meteo/Misilmeri\",4107 => \"/meteo/Misinto\",4108 => \"/meteo/Missaglia\",8416 => \"/meteo/Missanello\",4110 => \"/meteo/Misterbianco\",4111 => \"/meteo/Mistretta\",8623 => \"/meteo/Misurina\",4112 => \"/meteo/Moasca\",4113 => \"/meteo/Moconesi\",4114 => \"/meteo/Modena\",4115 => \"/meteo/Modica\",4116 => \"/meteo/Modigliana\",4117 => \"/meteo/Modolo\",4118 => \"/meteo/Modugno\",4119 => \"/meteo/Moena\",4120 => \"/meteo/Moggio\",4121 => \"/meteo/Moggio+udinese\",4122 => \"/meteo/Moglia\",4123 => \"/meteo/Mogliano\",4124 => \"/meteo/Mogliano+veneto\",4125 => \"/meteo/Mogorella\",4126 => \"/meteo/Mogoro\",4127 => \"/meteo/Moiano\",8615 => \"/meteo/Moie\",4128 => \"/meteo/Moimacco\",4129 => \"/meteo/Moio+Alcantara\",4130 => \"/meteo/Moio+de'calvi\",4131 => \"/meteo/Moio+della+civitella\",4132 => \"/meteo/Moiola\",4133 => \"/meteo/Mola+di+bari\",4134 => \"/meteo/Molare\",4135 => \"/meteo/Molazzana\",4136 => \"/meteo/Molfetta\",4137 => \"/meteo/Molina+aterno\",4138 => \"/meteo/Molina+di+ledro\",4139 => \"/meteo/Molinara\",4140 => \"/meteo/Molinella\",4141 => \"/meteo/Molini+di+triora\",4142 => \"/meteo/Molino+dei+torti\",4143 => \"/meteo/Molise\",4144 => \"/meteo/Moliterno\",4145 => \"/meteo/Mollia\",4146 => \"/meteo/Molochio\",4147 => \"/meteo/Molteno\",4148 => \"/meteo/Moltrasio\",4149 => \"/meteo/Molvena\",4150 => \"/meteo/Molveno\",4151 => \"/meteo/Mombaldone\",4152 => \"/meteo/Mombarcaro\",4153 => \"/meteo/Mombaroccio\",4154 => \"/meteo/Mombaruzzo\",4155 => \"/meteo/Mombasiglio\",4156 => \"/meteo/Mombello+di+torino\",4157 => \"/meteo/Mombello+monferrato\",4158 => \"/meteo/Mombercelli\",4159 => \"/meteo/Momo\",4160 => \"/meteo/Mompantero\",4161 => \"/meteo/Mompeo\",4162 => \"/meteo/Momperone\",4163 => \"/meteo/Monacilioni\",4164 => \"/meteo/Monale\",4165 => \"/meteo/Monasterace\",4166 => \"/meteo/Monastero+bormida\",4167 => \"/meteo/Monastero+di+lanzo\",4168 => \"/meteo/Monastero+di+vasco\",4169 => \"/meteo/Monasterolo+casotto\",4170 => \"/meteo/Monasterolo+del+castello\",4171 => \"/meteo/Monasterolo+di+savigliano\",4172 => \"/meteo/Monastier+di+treviso\",4173 => \"/meteo/Monastir\",4174 => \"/meteo/Moncalieri\",4175 => \"/meteo/Moncalvo\",4176 => \"/meteo/Moncenisio\",4177 => \"/meteo/Moncestino\",4178 => \"/meteo/Monchiero\",4179 => \"/meteo/Monchio+delle+corti\",4180 => \"/meteo/Monclassico\",4181 => \"/meteo/Moncrivello\",8649 => \"/meteo/Moncucco\",4182 => \"/meteo/Moncucco+torinese\",4183 => \"/meteo/Mondaino\",4184 => \"/meteo/Mondavio\",4185 => \"/meteo/Mondolfo\",4186 => \"/meteo/Mondovi'\",4187 => \"/meteo/Mondragone\",4188 => \"/meteo/Moneglia\",8143 => \"/meteo/Monesi\",4189 => \"/meteo/Monesiglio\",4190 => \"/meteo/Monfalcone\",4191 => \"/meteo/Monforte+d'alba\",4192 => \"/meteo/Monforte+san+giorgio\",4193 => \"/meteo/Monfumo\",4194 => \"/meteo/Mongardino\",4195 => \"/meteo/Monghidoro\",4196 => \"/meteo/Mongiana\",4197 => \"/meteo/Mongiardino+ligure\",8637 => \"/meteo/Monginevro+Montgenevre\",4198 => \"/meteo/Mongiuffi+melia\",4199 => \"/meteo/Mongrando\",4200 => \"/meteo/Mongrassano\",4201 => \"/meteo/Monguelfo\",4202 => \"/meteo/Monguzzo\",4203 => \"/meteo/Moniga+del+garda\",4204 => \"/meteo/Monleale\",4205 => \"/meteo/Monno\",4206 => \"/meteo/Monopoli\",4207 => \"/meteo/Monreale\",4208 => \"/meteo/Monrupino\",4209 => \"/meteo/Monsampietro+morico\",4210 => \"/meteo/Monsampolo+del+tronto\",4211 => \"/meteo/Monsano\",4212 => \"/meteo/Monselice\",4213 => \"/meteo/Monserrato\",4214 => \"/meteo/Monsummano+terme\",4215 => \"/meteo/Monta'\",4216 => \"/meteo/Montabone\",4217 => \"/meteo/Montacuto\",4218 => \"/meteo/Montafia\",4219 => \"/meteo/Montagano\",4220 => \"/meteo/Montagna\",4221 => \"/meteo/Montagna+in+valtellina\",8301 => \"/meteo/Montagnana\",4223 => \"/meteo/Montagnareale\",4224 => \"/meteo/Montagne\",4225 => \"/meteo/Montaguto\",4226 => \"/meteo/Montaione\",4227 => \"/meteo/Montalbano+Elicona\",4228 => \"/meteo/Montalbano+jonico\",4229 => \"/meteo/Montalcino\",4230 => \"/meteo/Montaldeo\",4231 => \"/meteo/Montaldo+bormida\",4232 => \"/meteo/Montaldo+di+mondovi'\",4233 => \"/meteo/Montaldo+roero\",4234 => \"/meteo/Montaldo+scarampi\",4235 => \"/meteo/Montaldo+torinese\",4236 => \"/meteo/Montale\",4237 => \"/meteo/Montalenghe\",4238 => \"/meteo/Montallegro\",4239 => \"/meteo/Montalto+delle+marche\",4240 => \"/meteo/Montalto+di+castro\",4241 => \"/meteo/Montalto+dora\",4242 => \"/meteo/Montalto+ligure\",4243 => \"/meteo/Montalto+pavese\",4244 => \"/meteo/Montalto+uffugo\",4245 => \"/meteo/Montanaro\",4246 => \"/meteo/Montanaso+lombardo\",4247 => \"/meteo/Montanera\",4248 => \"/meteo/Montano+antilia\",4249 => \"/meteo/Montano+lucino\",4250 => \"/meteo/Montappone\",4251 => \"/meteo/Montaquila\",4252 => \"/meteo/Montasola\",4253 => \"/meteo/Montauro\",4254 => \"/meteo/Montazzoli\",8738 => \"/meteo/Monte+Alben\",8350 => \"/meteo/Monte+Amiata\",4255 => \"/meteo/Monte+Argentario\",8696 => \"/meteo/Monte+Avena\",8660 => \"/meteo/Monte+Baldo\",8251 => \"/meteo/Monte+Belvedere\",8720 => \"/meteo/Monte+Bianco\",8292 => \"/meteo/Monte+Bondone\",8757 => \"/meteo/Monte+Caio\",8149 => \"/meteo/Monte+Campione\",4256 => \"/meteo/Monte+Castello+di+Vibio\",4257 => \"/meteo/Monte+Cavallo\",4258 => \"/meteo/Monte+Cerignone\",8722 => \"/meteo/Monte+Cervino\",8533 => \"/meteo/Monte+Cimone\",4259 => \"/meteo/Monte+Colombo\",8658 => \"/meteo/Monte+Cornizzolo\",4260 => \"/meteo/Monte+Cremasco\",4261 => \"/meteo/Monte+di+Malo\",4262 => \"/meteo/Monte+di+Procida\",8581 => \"/meteo/Monte+Elmo\",8701 => \"/meteo/Monte+Faloria\",4263 => \"/meteo/Monte+Giberto\",8486 => \"/meteo/Monte+Gomito\",8232 => \"/meteo/Monte+Grappa\",4264 => \"/meteo/Monte+Isola\",8735 => \"/meteo/Monte+Legnone\",8631 => \"/meteo/Monte+Livata\",8574 => \"/meteo/Monte+Lussari\",8484 => \"/meteo/Monte+Malanotte\",4265 => \"/meteo/Monte+Marenzo\",8611 => \"/meteo/Monte+Matajur\",8732 => \"/meteo/Monte+Matto\",8266 => \"/meteo/Monte+Moro\",8697 => \"/meteo/Monte+Mucrone\",8619 => \"/meteo/Monte+Pigna\",8288 => \"/meteo/Monte+Pora+Base\",8310 => \"/meteo/Monte+Pora+Cima\",4266 => \"/meteo/Monte+Porzio\",4267 => \"/meteo/Monte+Porzio+Catone\",8608 => \"/meteo/Monte+Prata\",8320 => \"/meteo/Monte+Pratello\",4268 => \"/meteo/Monte+Rinaldo\",4269 => \"/meteo/Monte+Roberto\",4270 => \"/meteo/Monte+Romano\",4271 => \"/meteo/Monte+San+Biagio\",4272 => \"/meteo/Monte+San+Giacomo\",4273 => \"/meteo/Monte+San+Giovanni+Campano\",4274 => \"/meteo/Monte+San+Giovanni+in+Sabina\",4275 => \"/meteo/Monte+San+Giusto\",4276 => \"/meteo/Monte+San+Martino\",4277 => \"/meteo/Monte+San+Pietrangeli\",4278 => \"/meteo/Monte+San+Pietro\",8538 => \"/meteo/Monte+San+Primo\",4279 => \"/meteo/Monte+San+Savino\",8652 => \"/meteo/Monte+San+Vigilio\",4280 => \"/meteo/Monte+San+Vito\",4281 => \"/meteo/Monte+Sant'Angelo\",4282 => \"/meteo/Monte+Santa+Maria+Tiberina\",8570 => \"/meteo/Monte+Scuro\",8278 => \"/meteo/Monte+Spinale\",4283 => \"/meteo/Monte+Urano\",8758 => \"/meteo/Monte+Ventasso\",4284 => \"/meteo/Monte+Vidon+Combatte\",4285 => \"/meteo/Monte+Vidon+Corrado\",8729 => \"/meteo/Monte+Volturino\",8346 => \"/meteo/Monte+Zoncolan\",4286 => \"/meteo/Montebello+della+Battaglia\",4287 => \"/meteo/Montebello+di+Bertona\",4288 => \"/meteo/Montebello+Ionico\",4289 => \"/meteo/Montebello+sul+Sangro\",4290 => \"/meteo/Montebello+Vicentino\",4291 => \"/meteo/Montebelluna\",4292 => \"/meteo/Montebruno\",4293 => \"/meteo/Montebuono\",4294 => \"/meteo/Montecalvo+in+Foglia\",4295 => \"/meteo/Montecalvo+Irpino\",4296 => \"/meteo/Montecalvo+Versiggia\",4297 => \"/meteo/Montecarlo\",4298 => \"/meteo/Montecarotto\",4299 => \"/meteo/Montecassiano\",4300 => \"/meteo/Montecastello\",4301 => \"/meteo/Montecastrilli\",4303 => \"/meteo/Montecatini+terme\",4302 => \"/meteo/Montecatini+Val+di+Cecina\",4304 => \"/meteo/Montecchia+di+Crosara\",4305 => \"/meteo/Montecchio\",4306 => \"/meteo/Montecchio+Emilia\",4307 => \"/meteo/Montecchio+Maggiore\",4308 => \"/meteo/Montecchio+Precalcino\",4309 => \"/meteo/Montechiaro+d'Acqui\",4310 => \"/meteo/Montechiaro+d'Asti\",4311 => \"/meteo/Montechiarugolo\",4312 => \"/meteo/Monteciccardo\",4313 => \"/meteo/Montecilfone\",4314 => \"/meteo/Montecompatri\",4315 => \"/meteo/Montecopiolo\",4316 => \"/meteo/Montecorice\",4317 => \"/meteo/Montecorvino+Pugliano\",4318 => \"/meteo/Montecorvino+Rovella\",4319 => \"/meteo/Montecosaro\",4320 => \"/meteo/Montecrestese\",4321 => \"/meteo/Montecreto\",4322 => \"/meteo/Montedinove\",4323 => \"/meteo/Montedoro\",4324 => \"/meteo/Montefalcione\",4325 => \"/meteo/Montefalco\",4326 => \"/meteo/Montefalcone+Appennino\",4327 => \"/meteo/Montefalcone+di+Val+Fortore\",4328 => \"/meteo/Montefalcone+nel+Sannio\",4329 => \"/meteo/Montefano\",4330 => \"/meteo/Montefelcino\",4331 => \"/meteo/Monteferrante\",4332 => \"/meteo/Montefiascone\",4333 => \"/meteo/Montefino\",4334 => \"/meteo/Montefiore+conca\",4335 => \"/meteo/Montefiore+dell'Aso\",4336 => \"/meteo/Montefiorino\",4337 => \"/meteo/Monteflavio\",4338 => \"/meteo/Monteforte+Cilento\",4339 => \"/meteo/Monteforte+d'Alpone\",4340 => \"/meteo/Monteforte+Irpino\",4341 => \"/meteo/Montefortino\",4342 => \"/meteo/Montefranco\",4343 => \"/meteo/Montefredane\",4344 => \"/meteo/Montefusco\",4345 => \"/meteo/Montegabbione\",4346 => \"/meteo/Montegalda\",4347 => \"/meteo/Montegaldella\",4348 => \"/meteo/Montegallo\",4349 => \"/meteo/Montegioco\",4350 => \"/meteo/Montegiordano\",4351 => \"/meteo/Montegiorgio\",4352 => \"/meteo/Montegranaro\",4353 => \"/meteo/Montegridolfo\",4354 => \"/meteo/Montegrimano\",4355 => \"/meteo/Montegrino+valtravaglia\",4356 => \"/meteo/Montegrosso+d'Asti\",4357 => \"/meteo/Montegrosso+pian+latte\",4358 => \"/meteo/Montegrotto+terme\",4359 => \"/meteo/Monteiasi\",4360 => \"/meteo/Montelabbate\",4361 => \"/meteo/Montelanico\",4362 => \"/meteo/Montelapiano\",4363 => \"/meteo/Monteleone+d'orvieto\",4364 => \"/meteo/Monteleone+di+fermo\",4365 => \"/meteo/Monteleone+di+puglia\",4366 => \"/meteo/Monteleone+di+spoleto\",4367 => \"/meteo/Monteleone+rocca+doria\",4368 => \"/meteo/Monteleone+sabino\",4369 => \"/meteo/Montelepre\",4370 => \"/meteo/Montelibretti\",4371 => \"/meteo/Montella\",4372 => \"/meteo/Montello\",4373 => \"/meteo/Montelongo\",4374 => \"/meteo/Montelparo\",4375 => \"/meteo/Montelupo+albese\",4376 => \"/meteo/Montelupo+fiorentino\",4377 => \"/meteo/Montelupone\",4378 => \"/meteo/Montemaggiore+al+metauro\",4379 => \"/meteo/Montemaggiore+belsito\",4380 => \"/meteo/Montemagno\",4381 => \"/meteo/Montemale+di+cuneo\",4382 => \"/meteo/Montemarano\",4383 => \"/meteo/Montemarciano\",4384 => \"/meteo/Montemarzino\",4385 => \"/meteo/Montemesola\",4386 => \"/meteo/Montemezzo\",4387 => \"/meteo/Montemignaio\",4388 => \"/meteo/Montemiletto\",8401 => \"/meteo/Montemilone\",4390 => \"/meteo/Montemitro\",4391 => \"/meteo/Montemonaco\",4392 => \"/meteo/Montemurlo\",8408 => \"/meteo/Montemurro\",4394 => \"/meteo/Montenars\",4395 => \"/meteo/Montenero+di+bisaccia\",4396 => \"/meteo/Montenero+sabino\",4397 => \"/meteo/Montenero+val+cocchiara\",4398 => \"/meteo/Montenerodomo\",4399 => \"/meteo/Monteodorisio\",4400 => \"/meteo/Montepaone\",4401 => \"/meteo/Monteparano\",8296 => \"/meteo/Montepiano\",4402 => \"/meteo/Monteprandone\",4403 => \"/meteo/Montepulciano\",4404 => \"/meteo/Monterado\",4405 => \"/meteo/Monterchi\",4406 => \"/meteo/Montereale\",4407 => \"/meteo/Montereale+valcellina\",4408 => \"/meteo/Monterenzio\",4409 => \"/meteo/Monteriggioni\",4410 => \"/meteo/Monteroduni\",4411 => \"/meteo/Monteroni+d'arbia\",4412 => \"/meteo/Monteroni+di+lecce\",4413 => \"/meteo/Monterosi\",4414 => \"/meteo/Monterosso+al+mare\",4415 => \"/meteo/Monterosso+almo\",4416 => \"/meteo/Monterosso+calabro\",4417 => \"/meteo/Monterosso+grana\",4418 => \"/meteo/Monterotondo\",4419 => \"/meteo/Monterotondo+marittimo\",4420 => \"/meteo/Monterubbiano\",4421 => \"/meteo/Montesano+salentino\",4422 => \"/meteo/Montesano+sulla+marcellana\",4423 => \"/meteo/Montesarchio\",8389 => \"/meteo/Montescaglioso\",4425 => \"/meteo/Montescano\",4426 => \"/meteo/Montescheno\",4427 => \"/meteo/Montescudaio\",4428 => \"/meteo/Montescudo\",4429 => \"/meteo/Montese\",4430 => \"/meteo/Montesegale\",4431 => \"/meteo/Montesilvano\",8491 => \"/meteo/Montesilvano+Marina\",4432 => \"/meteo/Montespertoli\",1730 => \"/meteo/Montespluga\",4433 => \"/meteo/Monteu+da+Po\",4434 => \"/meteo/Monteu+roero\",4435 => \"/meteo/Montevago\",4436 => \"/meteo/Montevarchi\",4437 => \"/meteo/Montevecchia\",4438 => \"/meteo/Monteveglio\",4439 => \"/meteo/Monteverde\",4440 => \"/meteo/Monteverdi+marittimo\",8589 => \"/meteo/Montevergine\",4441 => \"/meteo/Monteviale\",4442 => \"/meteo/Montezemolo\",4443 => \"/meteo/Monti\",4444 => \"/meteo/Montiano\",4445 => \"/meteo/Monticelli+brusati\",4446 => \"/meteo/Monticelli+d'ongina\",4447 => \"/meteo/Monticelli+pavese\",4448 => \"/meteo/Monticello+brianza\",4449 => \"/meteo/Monticello+conte+otto\",4450 => \"/meteo/Monticello+d'alba\",4451 => \"/meteo/Montichiari\",4452 => \"/meteo/Monticiano\",4453 => \"/meteo/Montieri\",4454 => \"/meteo/Montiglio+monferrato\",4455 => \"/meteo/Montignoso\",4456 => \"/meteo/Montirone\",4457 => \"/meteo/Montjovet\",4458 => \"/meteo/Montodine\",4459 => \"/meteo/Montoggio\",4460 => \"/meteo/Montone\",4461 => \"/meteo/Montopoli+di+sabina\",4462 => \"/meteo/Montopoli+in+val+d'arno\",4463 => \"/meteo/Montorfano\",4464 => \"/meteo/Montorio+al+vomano\",4465 => \"/meteo/Montorio+nei+frentani\",4466 => \"/meteo/Montorio+romano\",4467 => \"/meteo/Montoro+inferiore\",4468 => \"/meteo/Montoro+superiore\",4469 => \"/meteo/Montorso+vicentino\",4470 => \"/meteo/Montottone\",4471 => \"/meteo/Montresta\",4472 => \"/meteo/Montu'+beccaria\",8326 => \"/meteo/Montzeuc\",4473 => \"/meteo/Monvalle\",8726 => \"/meteo/Monviso\",4474 => \"/meteo/Monza\",4475 => \"/meteo/Monzambano\",4476 => \"/meteo/Monzuno\",4477 => \"/meteo/Morano+calabro\",4478 => \"/meteo/Morano+sul+Po\",4479 => \"/meteo/Moransengo\",4480 => \"/meteo/Moraro\",4481 => \"/meteo/Morazzone\",4482 => \"/meteo/Morbegno\",4483 => \"/meteo/Morbello\",4484 => \"/meteo/Morciano+di+leuca\",4485 => \"/meteo/Morciano+di+romagna\",4486 => \"/meteo/Morcone\",4487 => \"/meteo/Mordano\",8262 => \"/meteo/Morel\",4488 => \"/meteo/Morengo\",4489 => \"/meteo/Mores\",4490 => \"/meteo/Moresco\",4491 => \"/meteo/Moretta\",4492 => \"/meteo/Morfasso\",4493 => \"/meteo/Morgano\",8717 => \"/meteo/Morgantina\",4494 => \"/meteo/Morgex\",4495 => \"/meteo/Morgongiori\",4496 => \"/meteo/Mori\",4497 => \"/meteo/Moriago+della+battaglia\",4498 => \"/meteo/Moricone\",4499 => \"/meteo/Morigerati\",4500 => \"/meteo/Morimondo\",4501 => \"/meteo/Morino\",4502 => \"/meteo/Moriondo+torinese\",4503 => \"/meteo/Morlupo\",4504 => \"/meteo/Mormanno\",4505 => \"/meteo/Mornago\",4506 => \"/meteo/Mornese\",4507 => \"/meteo/Mornico+al+serio\",4508 => \"/meteo/Mornico+losana\",4509 => \"/meteo/Morolo\",4510 => \"/meteo/Morozzo\",4511 => \"/meteo/Morra+de+sanctis\",4512 => \"/meteo/Morro+d'alba\",4513 => \"/meteo/Morro+d'oro\",4514 => \"/meteo/Morro+reatino\",4515 => \"/meteo/Morrone+del+sannio\",4516 => \"/meteo/Morrovalle\",4517 => \"/meteo/Morsano+al+tagliamento\",4518 => \"/meteo/Morsasco\",4519 => \"/meteo/Mortara\",4520 => \"/meteo/Mortegliano\",4521 => \"/meteo/Morterone\",4522 => \"/meteo/Moruzzo\",4523 => \"/meteo/Moscazzano\",4524 => \"/meteo/Moschiano\",4525 => \"/meteo/Mosciano+sant'angelo\",4526 => \"/meteo/Moscufo\",4527 => \"/meteo/Moso+in+Passiria\",4528 => \"/meteo/Mossa\",4529 => \"/meteo/Mossano\",4530 => \"/meteo/Mosso+Santa+Maria\",4531 => \"/meteo/Motta+baluffi\",4532 => \"/meteo/Motta+Camastra\",4533 => \"/meteo/Motta+d'affermo\",4534 => \"/meteo/Motta+de'+conti\",4535 => \"/meteo/Motta+di+livenza\",4536 => \"/meteo/Motta+montecorvino\",4537 => \"/meteo/Motta+san+giovanni\",4538 => \"/meteo/Motta+sant'anastasia\",4539 => \"/meteo/Motta+santa+lucia\",4540 => \"/meteo/Motta+visconti\",4541 => \"/meteo/Mottafollone\",4542 => \"/meteo/Mottalciata\",8621 => \"/meteo/Mottarone\",4543 => \"/meteo/Motteggiana\",4544 => \"/meteo/Mottola\",8254 => \"/meteo/Mottolino\",4545 => \"/meteo/Mozzagrogna\",4546 => \"/meteo/Mozzanica\",4547 => \"/meteo/Mozzate\",4548 => \"/meteo/Mozzecane\",4549 => \"/meteo/Mozzo\",4550 => \"/meteo/Muccia\",4551 => \"/meteo/Muggia\",4552 => \"/meteo/Muggio'\",4553 => \"/meteo/Mugnano+del+cardinale\",4554 => \"/meteo/Mugnano+di+napoli\",4555 => \"/meteo/Mulazzano\",4556 => \"/meteo/Mulazzo\",4557 => \"/meteo/Mura\",4558 => \"/meteo/Muravera\",4559 => \"/meteo/Murazzano\",4560 => \"/meteo/Murello\",4561 => \"/meteo/Murialdo\",4562 => \"/meteo/Murisengo\",4563 => \"/meteo/Murlo\",4564 => \"/meteo/Muro+leccese\",4565 => \"/meteo/Muro+lucano\",4566 => \"/meteo/Muros\",4567 => \"/meteo/Muscoline\",4568 => \"/meteo/Musei\",4569 => \"/meteo/Musile+di+piave\",4570 => \"/meteo/Musso\",4571 => \"/meteo/Mussolente\",4572 => \"/meteo/Mussomeli\",4573 => \"/meteo/Muzzana+del+turgnano\",4574 => \"/meteo/Muzzano\",4575 => \"/meteo/Nago+torbole\",4576 => \"/meteo/Nalles\",4577 => \"/meteo/Nanno\",4578 => \"/meteo/Nanto\",4579 => \"/meteo/Napoli\",8498 => \"/meteo/Napoli+Capodichino\",4580 => \"/meteo/Narbolia\",4581 => \"/meteo/Narcao\",4582 => \"/meteo/Nardo'\",4583 => \"/meteo/Nardodipace\",4584 => \"/meteo/Narni\",4585 => \"/meteo/Naro\",4586 => \"/meteo/Narzole\",4587 => \"/meteo/Nasino\",4588 => \"/meteo/Naso\",4589 => \"/meteo/Naturno\",4590 => \"/meteo/Nave\",4591 => \"/meteo/Nave+san+rocco\",4592 => \"/meteo/Navelli\",4593 => \"/meteo/Naz+Sciaves\",4594 => \"/meteo/Nazzano\",4595 => \"/meteo/Ne\",4596 => \"/meteo/Nebbiuno\",4597 => \"/meteo/Negrar\",4598 => \"/meteo/Neirone\",4599 => \"/meteo/Neive\",4600 => \"/meteo/Nembro\",4601 => \"/meteo/Nemi\",8381 => \"/meteo/Nemoli\",4603 => \"/meteo/Neoneli\",4604 => \"/meteo/Nepi\",4605 => \"/meteo/Nereto\",4606 => \"/meteo/Nerola\",4607 => \"/meteo/Nervesa+della+battaglia\",4608 => \"/meteo/Nerviano\",4609 => \"/meteo/Nespolo\",4610 => \"/meteo/Nesso\",4611 => \"/meteo/Netro\",4612 => \"/meteo/Nettuno\",4613 => \"/meteo/Neviano\",4614 => \"/meteo/Neviano+degli+arduini\",4615 => \"/meteo/Neviglie\",4616 => \"/meteo/Niardo\",4617 => \"/meteo/Nibbiano\",4618 => \"/meteo/Nibbiola\",4619 => \"/meteo/Nibionno\",4620 => \"/meteo/Nichelino\",4621 => \"/meteo/Nicolosi\",4622 => \"/meteo/Nicorvo\",4623 => \"/meteo/Nicosia\",4624 => \"/meteo/Nicotera\",8117 => \"/meteo/Nicotera+Marina\",4625 => \"/meteo/Niella+belbo\",8475 => \"/meteo/Niella+Tanaro\",4627 => \"/meteo/Nimis\",4628 => \"/meteo/Niscemi\",4629 => \"/meteo/Nissoria\",4630 => \"/meteo/Nizza+di+sicilia\",4631 => \"/meteo/Nizza+monferrato\",4632 => \"/meteo/Noale\",4633 => \"/meteo/Noasca\",4634 => \"/meteo/Nocara\",4635 => \"/meteo/Nocciano\",4636 => \"/meteo/Nocera+inferiore\",4637 => \"/meteo/Nocera+superiore\",4638 => \"/meteo/Nocera+terinese\",4639 => \"/meteo/Nocera+umbra\",4640 => \"/meteo/Noceto\",4641 => \"/meteo/Noci\",4642 => \"/meteo/Nociglia\",8375 => \"/meteo/Noepoli\",4644 => \"/meteo/Nogara\",4645 => \"/meteo/Nogaredo\",4646 => \"/meteo/Nogarole+rocca\",4647 => \"/meteo/Nogarole+vicentino\",4648 => \"/meteo/Noicattaro\",4649 => \"/meteo/Nola\",4650 => \"/meteo/Nole\",4651 => \"/meteo/Noli\",4652 => \"/meteo/Nomaglio\",4653 => \"/meteo/Nomi\",4654 => \"/meteo/Nonantola\",4655 => \"/meteo/None\",4656 => \"/meteo/Nonio\",4657 => \"/meteo/Noragugume\",4658 => \"/meteo/Norbello\",4659 => \"/meteo/Norcia\",4660 => \"/meteo/Norma\",4661 => \"/meteo/Nosate\",4662 => \"/meteo/Notaresco\",4663 => \"/meteo/Noto\",4664 => \"/meteo/Nova+Levante\",4665 => \"/meteo/Nova+milanese\",4666 => \"/meteo/Nova+Ponente\",8428 => \"/meteo/Nova+siri\",4668 => \"/meteo/Novafeltria\",4669 => \"/meteo/Novaledo\",4670 => \"/meteo/Novalesa\",4671 => \"/meteo/Novara\",4672 => \"/meteo/Novara+di+Sicilia\",4673 => \"/meteo/Novate+mezzola\",4674 => \"/meteo/Novate+milanese\",4675 => \"/meteo/Nove\",4676 => \"/meteo/Novedrate\",4677 => \"/meteo/Novellara\",4678 => \"/meteo/Novello\",4679 => \"/meteo/Noventa+di+piave\",4680 => \"/meteo/Noventa+padovana\",4681 => \"/meteo/Noventa+vicentina\",4682 => \"/meteo/Novi+di+modena\",4683 => \"/meteo/Novi+ligure\",4684 => \"/meteo/Novi+velia\",4685 => \"/meteo/Noviglio\",4686 => \"/meteo/Novoli\",4687 => \"/meteo/Nucetto\",4688 => \"/meteo/Nughedu+di+san+nicolo'\",4689 => \"/meteo/Nughedu+santa+vittoria\",4690 => \"/meteo/Nule\",4691 => \"/meteo/Nulvi\",4692 => \"/meteo/Numana\",4693 => \"/meteo/Nuoro\",4694 => \"/meteo/Nurachi\",4695 => \"/meteo/Nuragus\",4696 => \"/meteo/Nurallao\",4697 => \"/meteo/Nuraminis\",4698 => \"/meteo/Nureci\",4699 => \"/meteo/Nurri\",4700 => \"/meteo/Nus\",4701 => \"/meteo/Nusco\",4702 => \"/meteo/Nuvolento\",4703 => \"/meteo/Nuvolera\",4704 => \"/meteo/Nuxis\",8260 => \"/meteo/Obereggen\",4705 => \"/meteo/Occhieppo+inferiore\",4706 => \"/meteo/Occhieppo+superiore\",4707 => \"/meteo/Occhiobello\",4708 => \"/meteo/Occimiano\",4709 => \"/meteo/Ocre\",4710 => \"/meteo/Odalengo+grande\",4711 => \"/meteo/Odalengo+piccolo\",4712 => \"/meteo/Oderzo\",4713 => \"/meteo/Odolo\",4714 => \"/meteo/Ofena\",4715 => \"/meteo/Offagna\",4716 => \"/meteo/Offanengo\",4717 => \"/meteo/Offida\",4718 => \"/meteo/Offlaga\",4719 => \"/meteo/Oggebbio\",4720 => \"/meteo/Oggiona+con+santo+stefano\",4721 => \"/meteo/Oggiono\",4722 => \"/meteo/Oglianico\",4723 => \"/meteo/Ogliastro+cilento\",4724 => \"/meteo/Olbia\",8470 => \"/meteo/Olbia+Costa+Smeralda\",4725 => \"/meteo/Olcenengo\",4726 => \"/meteo/Oldenico\",4727 => \"/meteo/Oleggio\",4728 => \"/meteo/Oleggio+castello\",4729 => \"/meteo/Olevano+di+lomellina\",4730 => \"/meteo/Olevano+romano\",4731 => \"/meteo/Olevano+sul+tusciano\",4732 => \"/meteo/Olgiate+comasco\",4733 => \"/meteo/Olgiate+molgora\",4734 => \"/meteo/Olgiate+olona\",4735 => \"/meteo/Olginate\",4736 => \"/meteo/Oliena\",4737 => \"/meteo/Oliva+gessi\",4738 => \"/meteo/Olivadi\",4739 => \"/meteo/Oliveri\",4740 => \"/meteo/Oliveto+citra\",4741 => \"/meteo/Oliveto+lario\",8426 => \"/meteo/Oliveto+lucano\",4743 => \"/meteo/Olivetta+san+michele\",4744 => \"/meteo/Olivola\",4745 => \"/meteo/Ollastra+simaxis\",4746 => \"/meteo/Ollolai\",4747 => \"/meteo/Ollomont\",4748 => \"/meteo/Olmedo\",4749 => \"/meteo/Olmeneta\",4750 => \"/meteo/Olmo+al+brembo\",4751 => \"/meteo/Olmo+gentile\",4752 => \"/meteo/Oltre+il+colle\",4753 => \"/meteo/Oltressenda+alta\",4754 => \"/meteo/Oltrona+di+san+mamette\",4755 => \"/meteo/Olzai\",4756 => \"/meteo/Ome\",4757 => \"/meteo/Omegna\",4758 => \"/meteo/Omignano\",4759 => \"/meteo/Onani\",4760 => \"/meteo/Onano\",4761 => \"/meteo/Oncino\",8283 => \"/meteo/Oneglia\",4762 => \"/meteo/Oneta\",4763 => \"/meteo/Onifai\",4764 => \"/meteo/Oniferi\",8664 => \"/meteo/Onna\",4765 => \"/meteo/Ono+san+pietro\",4766 => \"/meteo/Onore\",4767 => \"/meteo/Onzo\",4768 => \"/meteo/Opera\",4769 => \"/meteo/Opi\",4770 => \"/meteo/Oppeano\",8409 => \"/meteo/Oppido+lucano\",4772 => \"/meteo/Oppido+mamertina\",4773 => \"/meteo/Ora\",4774 => \"/meteo/Orani\",4775 => \"/meteo/Oratino\",4776 => \"/meteo/Orbassano\",4777 => \"/meteo/Orbetello\",4778 => \"/meteo/Orciano+di+pesaro\",4779 => \"/meteo/Orciano+pisano\",4780 => \"/meteo/Orco+feglino\",4781 => \"/meteo/Ordona\",4782 => \"/meteo/Orero\",4783 => \"/meteo/Orgiano\",4784 => \"/meteo/Orgosolo\",4785 => \"/meteo/Oria\",4786 => \"/meteo/Oricola\",4787 => \"/meteo/Origgio\",4788 => \"/meteo/Orino\",4789 => \"/meteo/Orio+al+serio\",4790 => \"/meteo/Orio+canavese\",4791 => \"/meteo/Orio+litta\",4792 => \"/meteo/Oriolo\",4793 => \"/meteo/Oriolo+romano\",4794 => \"/meteo/Oristano\",4795 => \"/meteo/Ormea\",4796 => \"/meteo/Ormelle\",4797 => \"/meteo/Ornago\",4798 => \"/meteo/Ornavasso\",4799 => \"/meteo/Ornica\",8348 => \"/meteo/Oropa\",8169 => \"/meteo/Orosei\",4801 => \"/meteo/Orotelli\",4802 => \"/meteo/Orria\",4803 => \"/meteo/Orroli\",4804 => \"/meteo/Orsago\",4805 => \"/meteo/Orsara+bormida\",4806 => \"/meteo/Orsara+di+puglia\",4807 => \"/meteo/Orsenigo\",4808 => \"/meteo/Orsogna\",4809 => \"/meteo/Orsomarso\",4810 => \"/meteo/Orta+di+atella\",4811 => \"/meteo/Orta+nova\",4812 => \"/meteo/Orta+san+giulio\",4813 => \"/meteo/Ortacesus\",4814 => \"/meteo/Orte\",8460 => \"/meteo/Orte+casello\",4815 => \"/meteo/Ortelle\",4816 => \"/meteo/Ortezzano\",4817 => \"/meteo/Ortignano+raggiolo\",4818 => \"/meteo/Ortisei\",8725 => \"/meteo/Ortles\",4819 => \"/meteo/Ortona\",4820 => \"/meteo/Ortona+dei+marsi\",4821 => \"/meteo/Ortonovo\",4822 => \"/meteo/Ortovero\",4823 => \"/meteo/Ortucchio\",4824 => \"/meteo/Ortueri\",4825 => \"/meteo/Orune\",4826 => \"/meteo/Orvieto\",8459 => \"/meteo/Orvieto+casello\",4827 => \"/meteo/Orvinio\",4828 => \"/meteo/Orzinuovi\",4829 => \"/meteo/Orzivecchi\",4830 => \"/meteo/Osasco\",4831 => \"/meteo/Osasio\",4832 => \"/meteo/Oschiri\",4833 => \"/meteo/Osidda\",4834 => \"/meteo/Osiglia\",4835 => \"/meteo/Osilo\",4836 => \"/meteo/Osimo\",4837 => \"/meteo/Osini\",4838 => \"/meteo/Osio+sopra\",4839 => \"/meteo/Osio+sotto\",4840 => \"/meteo/Osmate\",4841 => \"/meteo/Osnago\",8465 => \"/meteo/Osoppo\",4843 => \"/meteo/Ospedaletti\",4844 => \"/meteo/Ospedaletto\",4845 => \"/meteo/Ospedaletto+d'alpinolo\",4846 => \"/meteo/Ospedaletto+euganeo\",4847 => \"/meteo/Ospedaletto+lodigiano\",4848 => \"/meteo/Ospitale+di+cadore\",4849 => \"/meteo/Ospitaletto\",4850 => \"/meteo/Ossago+lodigiano\",4851 => \"/meteo/Ossana\",4852 => \"/meteo/Ossi\",4853 => \"/meteo/Ossimo\",4854 => \"/meteo/Ossona\",4855 => \"/meteo/Ossuccio\",4856 => \"/meteo/Ostana\",4857 => \"/meteo/Ostellato\",4858 => \"/meteo/Ostiano\",4859 => \"/meteo/Ostiglia\",4860 => \"/meteo/Ostra\",4861 => \"/meteo/Ostra+vetere\",4862 => \"/meteo/Ostuni\",4863 => \"/meteo/Otranto\",4864 => \"/meteo/Otricoli\",4865 => \"/meteo/Ottana\",4866 => \"/meteo/Ottati\",4867 => \"/meteo/Ottaviano\",4868 => \"/meteo/Ottiglio\",4869 => \"/meteo/Ottobiano\",4870 => \"/meteo/Ottone\",4871 => \"/meteo/Oulx\",4872 => \"/meteo/Ovada\",4873 => \"/meteo/Ovaro\",4874 => \"/meteo/Oviglio\",4875 => \"/meteo/Ovindoli\",4876 => \"/meteo/Ovodda\",4877 => \"/meteo/Oyace\",4878 => \"/meteo/Ozegna\",4879 => \"/meteo/Ozieri\",4880 => \"/meteo/Ozzano+dell'emilia\",4881 => \"/meteo/Ozzano+monferrato\",4882 => \"/meteo/Ozzero\",4883 => \"/meteo/Pabillonis\",4884 => \"/meteo/Pace+del+mela\",4885 => \"/meteo/Paceco\",4886 => \"/meteo/Pacentro\",4887 => \"/meteo/Pachino\",4888 => \"/meteo/Paciano\",4889 => \"/meteo/Padenghe+sul+garda\",4890 => \"/meteo/Padergnone\",4891 => \"/meteo/Paderna\",4892 => \"/meteo/Paderno+d'adda\",4893 => \"/meteo/Paderno+del+grappa\",4894 => \"/meteo/Paderno+dugnano\",4895 => \"/meteo/Paderno+franciacorta\",4896 => \"/meteo/Paderno+ponchielli\",4897 => \"/meteo/Padova\",4898 => \"/meteo/Padria\",4899 => \"/meteo/Padru\",4900 => \"/meteo/Padula\",4901 => \"/meteo/Paduli\",4902 => \"/meteo/Paesana\",4903 => \"/meteo/Paese\",8713 => \"/meteo/Paestum\",8203 => \"/meteo/Paganella\",4904 => \"/meteo/Pagani\",8663 => \"/meteo/Paganica\",4905 => \"/meteo/Paganico\",4906 => \"/meteo/Pagazzano\",4907 => \"/meteo/Pagliara\",4908 => \"/meteo/Paglieta\",4909 => \"/meteo/Pagnacco\",4910 => \"/meteo/Pagno\",4911 => \"/meteo/Pagnona\",4912 => \"/meteo/Pago+del+vallo+di+lauro\",4913 => \"/meteo/Pago+veiano\",4914 => \"/meteo/Paisco+loveno\",4915 => \"/meteo/Paitone\",4916 => \"/meteo/Paladina\",8534 => \"/meteo/Palafavera\",4917 => \"/meteo/Palagano\",4918 => \"/meteo/Palagianello\",4919 => \"/meteo/Palagiano\",4920 => \"/meteo/Palagonia\",4921 => \"/meteo/Palaia\",4922 => \"/meteo/Palanzano\",4923 => \"/meteo/Palata\",4924 => \"/meteo/Palau\",4925 => \"/meteo/Palazzago\",4926 => \"/meteo/Palazzo+adriano\",4927 => \"/meteo/Palazzo+canavese\",4928 => \"/meteo/Palazzo+pignano\",4929 => \"/meteo/Palazzo+san+gervasio\",4930 => \"/meteo/Palazzolo+acreide\",4931 => \"/meteo/Palazzolo+dello+stella\",4932 => \"/meteo/Palazzolo+sull'Oglio\",4933 => \"/meteo/Palazzolo+vercellese\",4934 => \"/meteo/Palazzuolo+sul+senio\",4935 => \"/meteo/Palena\",4936 => \"/meteo/Palermiti\",4937 => \"/meteo/Palermo\",8575 => \"/meteo/Palermo+Boccadifalco\",8272 => \"/meteo/Palermo+Punta+Raisi\",4938 => \"/meteo/Palestrina\",4939 => \"/meteo/Palestro\",4940 => \"/meteo/Paliano\",8121 => \"/meteo/Palinuro\",4941 => \"/meteo/Palizzi\",8108 => \"/meteo/Palizzi+Marina\",4942 => \"/meteo/Pallagorio\",4943 => \"/meteo/Pallanzeno\",4944 => \"/meteo/Pallare\",4945 => \"/meteo/Palma+campania\",4946 => \"/meteo/Palma+di+montechiaro\",4947 => \"/meteo/Palmanova\",4948 => \"/meteo/Palmariggi\",4949 => \"/meteo/Palmas+arborea\",4950 => \"/meteo/Palmi\",4951 => \"/meteo/Palmiano\",4952 => \"/meteo/Palmoli\",4953 => \"/meteo/Palo+del+colle\",4954 => \"/meteo/Palombara+sabina\",4955 => \"/meteo/Palombaro\",4956 => \"/meteo/Palomonte\",4957 => \"/meteo/Palosco\",4958 => \"/meteo/Palu'\",4959 => \"/meteo/Palu'+del+fersina\",4960 => \"/meteo/Paludi\",4961 => \"/meteo/Paluzza\",4962 => \"/meteo/Pamparato\",8257 => \"/meteo/Pampeago\",8753 => \"/meteo/Panarotta\",4963 => \"/meteo/Pancalieri\",8261 => \"/meteo/Pancani\",4964 => \"/meteo/Pancarana\",4965 => \"/meteo/Panchia'\",4966 => \"/meteo/Pandino\",4967 => \"/meteo/Panettieri\",4968 => \"/meteo/Panicale\",4969 => \"/meteo/Pannarano\",4970 => \"/meteo/Panni\",4971 => \"/meteo/Pantelleria\",4972 => \"/meteo/Pantigliate\",4973 => \"/meteo/Paola\",4974 => \"/meteo/Paolisi\",4975 => \"/meteo/Papasidero\",4976 => \"/meteo/Papozze\",4977 => \"/meteo/Parabiago\",4978 => \"/meteo/Parabita\",4979 => \"/meteo/Paratico\",4980 => \"/meteo/Parcines\",4981 => \"/meteo/Pare'\",4982 => \"/meteo/Parella\",4983 => \"/meteo/Parenti\",4984 => \"/meteo/Parete\",4985 => \"/meteo/Pareto\",4986 => \"/meteo/Parghelia\",4987 => \"/meteo/Parlasco\",4988 => \"/meteo/Parma\",8554 => \"/meteo/Parma+Verdi\",4989 => \"/meteo/Parodi+ligure\",4990 => \"/meteo/Paroldo\",4991 => \"/meteo/Parolise\",4992 => \"/meteo/Parona\",4993 => \"/meteo/Parrano\",4994 => \"/meteo/Parre\",4995 => \"/meteo/Partanna\",4996 => \"/meteo/Partinico\",4997 => \"/meteo/Paruzzaro\",4998 => \"/meteo/Parzanica\",4999 => \"/meteo/Pasian+di+prato\",5000 => \"/meteo/Pasiano+di+pordenone\",5001 => \"/meteo/Paspardo\",5002 => \"/meteo/Passerano+Marmorito\",5003 => \"/meteo/Passignano+sul+trasimeno\",5004 => \"/meteo/Passirano\",8613 => \"/meteo/Passo+Bernina\",8760 => \"/meteo/Passo+Campolongo\",8329 => \"/meteo/Passo+Costalunga\",8618 => \"/meteo/Passo+dei+Salati\",8207 => \"/meteo/Passo+del+Brennero\",8577 => \"/meteo/Passo+del+Brocon\",8627 => \"/meteo/Passo+del+Cerreto\",8147 => \"/meteo/Passo+del+Foscagno\",8308 => \"/meteo/Passo+del+Lupo\",8206 => \"/meteo/Passo+del+Rombo\",8150 => \"/meteo/Passo+del+Tonale\",8196 => \"/meteo/Passo+della+Cisa\",8235 => \"/meteo/Passo+della+Consuma\",8290 => \"/meteo/Passo+della+Presolana\",8659 => \"/meteo/Passo+delle+Fittanze\",8145 => \"/meteo/Passo+dello+Stelvio\",8213 => \"/meteo/Passo+di+Resia\",8752 => \"/meteo/Passo+di+Vezzena\",8328 => \"/meteo/Passo+Fedaia\",8759 => \"/meteo/Passo+Gardena\",8277 => \"/meteo/Passo+Groste'\",8756 => \"/meteo/Passo+Lanciano\",8280 => \"/meteo/Passo+Pordoi\",8626 => \"/meteo/Passo+Pramollo\",8210 => \"/meteo/Passo+Rolle\",8279 => \"/meteo/Passo+San+Pellegrino\",8325 => \"/meteo/Passo+Sella\",5005 => \"/meteo/Pastena\",5006 => \"/meteo/Pastorano\",5007 => \"/meteo/Pastrengo\",5008 => \"/meteo/Pasturana\",5009 => \"/meteo/Pasturo\",8417 => \"/meteo/Paterno\",5011 => \"/meteo/Paterno+calabro\",5012 => \"/meteo/Paterno'\",5013 => \"/meteo/Paternopoli\",5014 => \"/meteo/Patrica\",5015 => \"/meteo/Pattada\",5016 => \"/meteo/Patti\",5017 => \"/meteo/Patu'\",5018 => \"/meteo/Pau\",5019 => \"/meteo/Paularo\",5020 => \"/meteo/Pauli+arbarei\",5021 => \"/meteo/Paulilatino\",5022 => \"/meteo/Paullo\",5023 => \"/meteo/Paupisi\",5024 => \"/meteo/Pavarolo\",5025 => \"/meteo/Pavia\",5026 => \"/meteo/Pavia+di+udine\",5027 => \"/meteo/Pavone+canavese\",5028 => \"/meteo/Pavone+del+mella\",5029 => \"/meteo/Pavullo+nel+frignano\",5030 => \"/meteo/Pazzano\",5031 => \"/meteo/Peccioli\",5032 => \"/meteo/Pecco\",5033 => \"/meteo/Pecetto+di+valenza\",5034 => \"/meteo/Pecetto+torinese\",5035 => \"/meteo/Pecorara\",5036 => \"/meteo/Pedace\",5037 => \"/meteo/Pedara\",5038 => \"/meteo/Pedaso\",5039 => \"/meteo/Pedavena\",5040 => \"/meteo/Pedemonte\",5041 => \"/meteo/Pederobba\",5042 => \"/meteo/Pedesina\",5043 => \"/meteo/Pedivigliano\",8473 => \"/meteo/Pedraces\",5044 => \"/meteo/Pedrengo\",5045 => \"/meteo/Peglio\",5046 => \"/meteo/Peglio\",5047 => \"/meteo/Pegognaga\",5048 => \"/meteo/Peia\",8665 => \"/meteo/Pejo\",5050 => \"/meteo/Pelago\",5051 => \"/meteo/Pella\",5052 => \"/meteo/Pellegrino+parmense\",5053 => \"/meteo/Pellezzano\",5054 => \"/meteo/Pellio+intelvi\",5055 => \"/meteo/Pellizzano\",5056 => \"/meteo/Pelugo\",5057 => \"/meteo/Penango\",5058 => \"/meteo/Penna+in+teverina\",5059 => \"/meteo/Penna+san+giovanni\",5060 => \"/meteo/Penna+sant'andrea\",5061 => \"/meteo/Pennabilli\",5062 => \"/meteo/Pennadomo\",5063 => \"/meteo/Pennapiedimonte\",5064 => \"/meteo/Penne\",8208 => \"/meteo/Pennes\",5065 => \"/meteo/Pentone\",5066 => \"/meteo/Perano\",5067 => \"/meteo/Perarolo+di+cadore\",5068 => \"/meteo/Perca\",5069 => \"/meteo/Percile\",5070 => \"/meteo/Perdasdefogu\",5071 => \"/meteo/Perdaxius\",5072 => \"/meteo/Perdifumo\",5073 => \"/meteo/Perego\",5074 => \"/meteo/Pereto\",5075 => \"/meteo/Perfugas\",5076 => \"/meteo/Pergine+valdarno\",5077 => \"/meteo/Pergine+valsugana\",5078 => \"/meteo/Pergola\",5079 => \"/meteo/Perinaldo\",5080 => \"/meteo/Perito\",5081 => \"/meteo/Perledo\",5082 => \"/meteo/Perletto\",5083 => \"/meteo/Perlo\",5084 => \"/meteo/Perloz\",5085 => \"/meteo/Pernumia\",5086 => \"/meteo/Pero\",5087 => \"/meteo/Perosa+argentina\",5088 => \"/meteo/Perosa+canavese\",5089 => \"/meteo/Perrero\",5090 => \"/meteo/Persico+dosimo\",5091 => \"/meteo/Pertengo\",5092 => \"/meteo/Pertica+alta\",5093 => \"/meteo/Pertica+bassa\",8586 => \"/meteo/Perticara+di+Novafeltria\",5094 => \"/meteo/Pertosa\",5095 => \"/meteo/Pertusio\",5096 => \"/meteo/Perugia\",8555 => \"/meteo/Perugia+Sant'Egidio\",5097 => \"/meteo/Pesaro\",5098 => \"/meteo/Pescaglia\",5099 => \"/meteo/Pescantina\",5100 => \"/meteo/Pescara\",8275 => \"/meteo/Pescara+Liberi\",5101 => \"/meteo/Pescarolo+ed+uniti\",5102 => \"/meteo/Pescasseroli\",5103 => \"/meteo/Pescate\",8312 => \"/meteo/Pescegallo\",5104 => \"/meteo/Pesche\",5105 => \"/meteo/Peschici\",5106 => \"/meteo/Peschiera+borromeo\",5107 => \"/meteo/Peschiera+del+garda\",5108 => \"/meteo/Pescia\",5109 => \"/meteo/Pescina\",8454 => \"/meteo/Pescina+casello\",5110 => \"/meteo/Pesco+sannita\",5111 => \"/meteo/Pescocostanzo\",5112 => \"/meteo/Pescolanciano\",5113 => \"/meteo/Pescopagano\",5114 => \"/meteo/Pescopennataro\",5115 => \"/meteo/Pescorocchiano\",5116 => \"/meteo/Pescosansonesco\",5117 => \"/meteo/Pescosolido\",5118 => \"/meteo/Pessano+con+Bornago\",5119 => \"/meteo/Pessina+cremonese\",5120 => \"/meteo/Pessinetto\",5121 => \"/meteo/Petacciato\",5122 => \"/meteo/Petilia+policastro\",5123 => \"/meteo/Petina\",5124 => \"/meteo/Petralia+soprana\",5125 => \"/meteo/Petralia+sottana\",5126 => \"/meteo/Petrella+salto\",5127 => \"/meteo/Petrella+tifernina\",5128 => \"/meteo/Petriano\",5129 => \"/meteo/Petriolo\",5130 => \"/meteo/Petritoli\",5131 => \"/meteo/Petrizzi\",5132 => \"/meteo/Petrona'\",5133 => \"/meteo/Petrosino\",5134 => \"/meteo/Petruro+irpino\",5135 => \"/meteo/Pettenasco\",5136 => \"/meteo/Pettinengo\",5137 => \"/meteo/Pettineo\",5138 => \"/meteo/Pettoranello+del+molise\",5139 => \"/meteo/Pettorano+sul+gizio\",5140 => \"/meteo/Pettorazza+grimani\",5141 => \"/meteo/Peveragno\",5142 => \"/meteo/Pezzana\",5143 => \"/meteo/Pezzaze\",5144 => \"/meteo/Pezzolo+valle+uzzone\",5145 => \"/meteo/Piacenza\",5146 => \"/meteo/Piacenza+d'adige\",5147 => \"/meteo/Piadena\",5148 => \"/meteo/Piagge\",5149 => \"/meteo/Piaggine\",8706 => \"/meteo/Piamprato\",5150 => \"/meteo/Pian+camuno\",8309 => \"/meteo/Pian+Cavallaro\",8233 => \"/meteo/Pian+del+Cansiglio\",8642 => \"/meteo/Pian+del+Frais\",8705 => \"/meteo/Pian+della+Mussa\",8634 => \"/meteo/Pian+delle+Betulle\",5151 => \"/meteo/Pian+di+sco'\",8712 => \"/meteo/Pian+di+Sole\",5152 => \"/meteo/Piana+crixia\",5153 => \"/meteo/Piana+degli+albanesi\",8653 => \"/meteo/Piana+di+Marcesina\",5154 => \"/meteo/Piana+di+monte+verna\",8305 => \"/meteo/Pianalunga\",5155 => \"/meteo/Piancastagnaio\",8516 => \"/meteo/Piancavallo\",5156 => \"/meteo/Piancogno\",5157 => \"/meteo/Piandimeleto\",5158 => \"/meteo/Piane+crati\",8561 => \"/meteo/Piane+di+Mocogno\",5159 => \"/meteo/Pianella\",5160 => \"/meteo/Pianello+del+lario\",5161 => \"/meteo/Pianello+val+tidone\",5162 => \"/meteo/Pianengo\",5163 => \"/meteo/Pianezza\",5164 => \"/meteo/Pianezze\",5165 => \"/meteo/Pianfei\",8605 => \"/meteo/Piani+d'Erna\",8517 => \"/meteo/Piani+di+Artavaggio\",8234 => \"/meteo/Piani+di+Bobbio\",5166 => \"/meteo/Pianico\",5167 => \"/meteo/Pianiga\",8314 => \"/meteo/Piano+del+Voglio\",5168 => \"/meteo/Piano+di+Sorrento\",8630 => \"/meteo/Piano+Provenzana\",5169 => \"/meteo/Pianopoli\",5170 => \"/meteo/Pianoro\",5171 => \"/meteo/Piansano\",5172 => \"/meteo/Piantedo\",5173 => \"/meteo/Piario\",5174 => \"/meteo/Piasco\",5175 => \"/meteo/Piateda\",5176 => \"/meteo/Piatto\",5177 => \"/meteo/Piazza+al+serchio\",5178 => \"/meteo/Piazza+armerina\",5179 => \"/meteo/Piazza+brembana\",5180 => \"/meteo/Piazzatorre\",5181 => \"/meteo/Piazzola+sul+brenta\",5182 => \"/meteo/Piazzolo\",5183 => \"/meteo/Picciano\",5184 => \"/meteo/Picerno\",5185 => \"/meteo/Picinisco\",5186 => \"/meteo/Pico\",5187 => \"/meteo/Piea\",5188 => \"/meteo/Piedicavallo\",8218 => \"/meteo/Piediluco\",5189 => \"/meteo/Piedimonte+etneo\",5190 => \"/meteo/Piedimonte+matese\",5191 => \"/meteo/Piedimonte+san+germano\",5192 => \"/meteo/Piedimulera\",5193 => \"/meteo/Piegaro\",5194 => \"/meteo/Pienza\",5195 => \"/meteo/Pieranica\",5196 => \"/meteo/Pietra+de'giorgi\",5197 => \"/meteo/Pietra+ligure\",5198 => \"/meteo/Pietra+marazzi\",5199 => \"/meteo/Pietrabbondante\",5200 => \"/meteo/Pietrabruna\",5201 => \"/meteo/Pietracamela\",5202 => \"/meteo/Pietracatella\",5203 => \"/meteo/Pietracupa\",5204 => \"/meteo/Pietradefusi\",5205 => \"/meteo/Pietraferrazzana\",5206 => \"/meteo/Pietrafitta\",5207 => \"/meteo/Pietragalla\",5208 => \"/meteo/Pietralunga\",5209 => \"/meteo/Pietramelara\",5210 => \"/meteo/Pietramontecorvino\",5211 => \"/meteo/Pietranico\",5212 => \"/meteo/Pietrapaola\",5213 => \"/meteo/Pietrapertosa\",5214 => \"/meteo/Pietraperzia\",5215 => \"/meteo/Pietraporzio\",5216 => \"/meteo/Pietraroja\",5217 => \"/meteo/Pietrarubbia\",5218 => \"/meteo/Pietrasanta\",5219 => \"/meteo/Pietrastornina\",5220 => \"/meteo/Pietravairano\",5221 => \"/meteo/Pietrelcina\",5222 => \"/meteo/Pieve+a+nievole\",5223 => \"/meteo/Pieve+albignola\",5224 => \"/meteo/Pieve+d'alpago\",5225 => \"/meteo/Pieve+d'olmi\",5226 => \"/meteo/Pieve+del+cairo\",5227 => \"/meteo/Pieve+di+bono\",5228 => \"/meteo/Pieve+di+cadore\",5229 => \"/meteo/Pieve+di+cento\",5230 => \"/meteo/Pieve+di+coriano\",5231 => \"/meteo/Pieve+di+ledro\",5232 => \"/meteo/Pieve+di+soligo\",5233 => \"/meteo/Pieve+di+teco\",5234 => \"/meteo/Pieve+emanuele\",5235 => \"/meteo/Pieve+fissiraga\",5236 => \"/meteo/Pieve+fosciana\",5237 => \"/meteo/Pieve+ligure\",5238 => \"/meteo/Pieve+porto+morone\",5239 => \"/meteo/Pieve+san+giacomo\",5240 => \"/meteo/Pieve+santo+stefano\",5241 => \"/meteo/Pieve+tesino\",5242 => \"/meteo/Pieve+torina\",5243 => \"/meteo/Pieve+vergonte\",5244 => \"/meteo/Pievebovigliana\",5245 => \"/meteo/Pievepelago\",5246 => \"/meteo/Piglio\",5247 => \"/meteo/Pigna\",5248 => \"/meteo/Pignataro+interamna\",5249 => \"/meteo/Pignataro+maggiore\",5250 => \"/meteo/Pignola\",5251 => \"/meteo/Pignone\",5252 => \"/meteo/Pigra\",5253 => \"/meteo/Pila\",8221 => \"/meteo/Pila\",5254 => \"/meteo/Pimentel\",5255 => \"/meteo/Pimonte\",5256 => \"/meteo/Pinarolo+po\",5257 => \"/meteo/Pinasca\",5258 => \"/meteo/Pincara\",5259 => \"/meteo/Pinerolo\",5260 => \"/meteo/Pineto\",5261 => \"/meteo/Pino+d'asti\",5262 => \"/meteo/Pino+sulla+sponda+del+lago+magg.\",5263 => \"/meteo/Pino+torinese\",5264 => \"/meteo/Pinzano+al+tagliamento\",5265 => \"/meteo/Pinzolo\",5266 => \"/meteo/Piobbico\",5267 => \"/meteo/Piobesi+d'alba\",5268 => \"/meteo/Piobesi+torinese\",5269 => \"/meteo/Piode\",5270 => \"/meteo/Pioltello\",5271 => \"/meteo/Piombino\",5272 => \"/meteo/Piombino+dese\",5273 => \"/meteo/Pioraco\",5274 => \"/meteo/Piossasco\",5275 => \"/meteo/Piova'+massaia\",5276 => \"/meteo/Piove+di+sacco\",5277 => \"/meteo/Piovene+rocchette\",5278 => \"/meteo/Piovera\",5279 => \"/meteo/Piozzano\",5280 => \"/meteo/Piozzo\",5281 => \"/meteo/Piraino\",5282 => \"/meteo/Pisa\",8518 => \"/meteo/Pisa+San+Giusto\",5283 => \"/meteo/Pisano\",5284 => \"/meteo/Piscina\",5285 => \"/meteo/Piscinas\",5286 => \"/meteo/Pisciotta\",5287 => \"/meteo/Pisogne\",5288 => \"/meteo/Pisoniano\",5289 => \"/meteo/Pisticci\",5290 => \"/meteo/Pistoia\",5291 => \"/meteo/Piteglio\",5292 => \"/meteo/Pitigliano\",5293 => \"/meteo/Piubega\",5294 => \"/meteo/Piuro\",5295 => \"/meteo/Piverone\",5296 => \"/meteo/Pizzale\",5297 => \"/meteo/Pizzighettone\",5298 => \"/meteo/Pizzo\",8737 => \"/meteo/Pizzo+Arera\",8727 => \"/meteo/Pizzo+Bernina\",8736 => \"/meteo/Pizzo+dei+Tre+Signori\",8739 => \"/meteo/Pizzo+della+Presolana\",5299 => \"/meteo/Pizzoferrato\",5300 => \"/meteo/Pizzoli\",5301 => \"/meteo/Pizzone\",5302 => \"/meteo/Pizzoni\",5303 => \"/meteo/Placanica\",8342 => \"/meteo/Plaghera\",8685 => \"/meteo/Plain+Maison\",8324 => \"/meteo/Plain+Mason\",8337 => \"/meteo/Plan\",8469 => \"/meteo/Plan+Boè\",8633 => \"/meteo/Plan+Checrouit\",8204 => \"/meteo/Plan+de+Corones\",8576 => \"/meteo/Plan+in+Passiria\",5304 => \"/meteo/Plataci\",5305 => \"/meteo/Platania\",8241 => \"/meteo/Plateau+Rosa\",5306 => \"/meteo/Plati'\",5307 => \"/meteo/Plaus\",5308 => \"/meteo/Plesio\",5309 => \"/meteo/Ploaghe\",5310 => \"/meteo/Plodio\",8569 => \"/meteo/Plose\",5311 => \"/meteo/Pocapaglia\",5312 => \"/meteo/Pocenia\",5313 => \"/meteo/Podenzana\",5314 => \"/meteo/Podenzano\",5315 => \"/meteo/Pofi\",5316 => \"/meteo/Poggiardo\",5317 => \"/meteo/Poggibonsi\",5318 => \"/meteo/Poggio+a+caiano\",5319 => \"/meteo/Poggio+berni\",5320 => \"/meteo/Poggio+bustone\",5321 => \"/meteo/Poggio+catino\",5322 => \"/meteo/Poggio+imperiale\",5323 => \"/meteo/Poggio+mirteto\",5324 => \"/meteo/Poggio+moiano\",5325 => \"/meteo/Poggio+nativo\",5326 => \"/meteo/Poggio+picenze\",5327 => \"/meteo/Poggio+renatico\",5328 => \"/meteo/Poggio+rusco\",5329 => \"/meteo/Poggio+san+lorenzo\",5330 => \"/meteo/Poggio+san+marcello\",5331 => \"/meteo/Poggio+san+vicino\",5332 => \"/meteo/Poggio+sannita\",5333 => \"/meteo/Poggiodomo\",5334 => \"/meteo/Poggiofiorito\",5335 => \"/meteo/Poggiomarino\",5336 => \"/meteo/Poggioreale\",5337 => \"/meteo/Poggiorsini\",5338 => \"/meteo/Poggiridenti\",5339 => \"/meteo/Pogliano+milanese\",8339 => \"/meteo/Pogliola\",5340 => \"/meteo/Pognana+lario\",5341 => \"/meteo/Pognano\",5342 => \"/meteo/Pogno\",5343 => \"/meteo/Poiana+maggiore\",5344 => \"/meteo/Poirino\",5345 => \"/meteo/Polaveno\",5346 => \"/meteo/Polcenigo\",5347 => \"/meteo/Polesella\",5348 => \"/meteo/Polesine+parmense\",5349 => \"/meteo/Poli\",5350 => \"/meteo/Polia\",5351 => \"/meteo/Policoro\",5352 => \"/meteo/Polignano+a+mare\",5353 => \"/meteo/Polinago\",5354 => \"/meteo/Polino\",5355 => \"/meteo/Polistena\",5356 => \"/meteo/Polizzi+generosa\",5357 => \"/meteo/Polla\",5358 => \"/meteo/Pollein\",5359 => \"/meteo/Pollena+trocchia\",5360 => \"/meteo/Pollenza\",5361 => \"/meteo/Pollica\",5362 => \"/meteo/Pollina\",5363 => \"/meteo/Pollone\",5364 => \"/meteo/Pollutri\",5365 => \"/meteo/Polonghera\",5366 => \"/meteo/Polpenazze+del+garda\",8650 => \"/meteo/Polsa+San+Valentino\",5367 => \"/meteo/Polverara\",5368 => \"/meteo/Polverigi\",5369 => \"/meteo/Pomarance\",5370 => \"/meteo/Pomaretto\",8384 => \"/meteo/Pomarico\",5372 => \"/meteo/Pomaro+monferrato\",5373 => \"/meteo/Pomarolo\",5374 => \"/meteo/Pombia\",5375 => \"/meteo/Pomezia\",5376 => \"/meteo/Pomigliano+d'arco\",5377 => \"/meteo/Pompei\",5378 => \"/meteo/Pompeiana\",5379 => \"/meteo/Pompiano\",5380 => \"/meteo/Pomponesco\",5381 => \"/meteo/Pompu\",5382 => \"/meteo/Poncarale\",5383 => \"/meteo/Ponderano\",5384 => \"/meteo/Ponna\",5385 => \"/meteo/Ponsacco\",5386 => \"/meteo/Ponso\",8220 => \"/meteo/Pont\",5389 => \"/meteo/Pont+canavese\",5427 => \"/meteo/Pont+Saint+Martin\",5387 => \"/meteo/Pontassieve\",5388 => \"/meteo/Pontboset\",5390 => \"/meteo/Ponte\",5391 => \"/meteo/Ponte+buggianese\",5392 => \"/meteo/Ponte+dell'olio\",5393 => \"/meteo/Ponte+di+legno\",5394 => \"/meteo/Ponte+di+piave\",5395 => \"/meteo/Ponte+Gardena\",5396 => \"/meteo/Ponte+in+valtellina\",5397 => \"/meteo/Ponte+lambro\",5398 => \"/meteo/Ponte+nelle+alpi\",5399 => \"/meteo/Ponte+nizza\",5400 => \"/meteo/Ponte+nossa\",5401 => \"/meteo/Ponte+San+Nicolo'\",5402 => \"/meteo/Ponte+San+Pietro\",5403 => \"/meteo/Pontebba\",5404 => \"/meteo/Pontecagnano+faiano\",5405 => \"/meteo/Pontecchio+polesine\",5406 => \"/meteo/Pontechianale\",5407 => \"/meteo/Pontecorvo\",5408 => \"/meteo/Pontecurone\",5409 => \"/meteo/Pontedassio\",5410 => \"/meteo/Pontedera\",5411 => \"/meteo/Pontelandolfo\",5412 => \"/meteo/Pontelatone\",5413 => \"/meteo/Pontelongo\",5414 => \"/meteo/Pontenure\",5415 => \"/meteo/Ponteranica\",5416 => \"/meteo/Pontestura\",5417 => \"/meteo/Pontevico\",5418 => \"/meteo/Pontey\",5419 => \"/meteo/Ponti\",5420 => \"/meteo/Ponti+sul+mincio\",5421 => \"/meteo/Pontida\",5422 => \"/meteo/Pontinia\",5423 => \"/meteo/Pontinvrea\",5424 => \"/meteo/Pontirolo+nuovo\",5425 => \"/meteo/Pontoglio\",5426 => \"/meteo/Pontremoli\",5428 => \"/meteo/Ponza\",5429 => \"/meteo/Ponzano+di+fermo\",8462 => \"/meteo/Ponzano+galleria\",5430 => \"/meteo/Ponzano+monferrato\",5431 => \"/meteo/Ponzano+romano\",5432 => \"/meteo/Ponzano+veneto\",5433 => \"/meteo/Ponzone\",5434 => \"/meteo/Popoli\",5435 => \"/meteo/Poppi\",8192 => \"/meteo/Populonia\",5436 => \"/meteo/Porano\",5437 => \"/meteo/Porcari\",5438 => \"/meteo/Porcia\",5439 => \"/meteo/Pordenone\",5440 => \"/meteo/Porlezza\",5441 => \"/meteo/Pornassio\",5442 => \"/meteo/Porpetto\",5443 => \"/meteo/Porretta+terme\",5444 => \"/meteo/Portacomaro\",5445 => \"/meteo/Portalbera\",5446 => \"/meteo/Porte\",5447 => \"/meteo/Portici\",5448 => \"/meteo/Portico+di+caserta\",5449 => \"/meteo/Portico+e+san+benedetto\",5450 => \"/meteo/Portigliola\",8294 => \"/meteo/Porto+Alabe\",5451 => \"/meteo/Porto+azzurro\",5452 => \"/meteo/Porto+ceresio\",8528 => \"/meteo/Porto+Cervo\",5453 => \"/meteo/Porto+cesareo\",8295 => \"/meteo/Porto+Conte\",8612 => \"/meteo/Porto+Corsini\",5454 => \"/meteo/Porto+empedocle\",8669 => \"/meteo/Porto+Ercole\",8743 => \"/meteo/Porto+Levante\",5455 => \"/meteo/Porto+mantovano\",8178 => \"/meteo/Porto+Pino\",5456 => \"/meteo/Porto+recanati\",8529 => \"/meteo/Porto+Rotondo\",5457 => \"/meteo/Porto+san+giorgio\",5458 => \"/meteo/Porto+sant'elpidio\",8670 => \"/meteo/Porto+Santo+Stefano\",5459 => \"/meteo/Porto+tolle\",5460 => \"/meteo/Porto+torres\",5461 => \"/meteo/Porto+valtravaglia\",5462 => \"/meteo/Porto+viro\",8172 => \"/meteo/Portobello+di+Gallura\",5463 => \"/meteo/Portobuffole'\",5464 => \"/meteo/Portocannone\",5465 => \"/meteo/Portoferraio\",5466 => \"/meteo/Portofino\",5467 => \"/meteo/Portogruaro\",5468 => \"/meteo/Portomaggiore\",5469 => \"/meteo/Portopalo+di+capo+passero\",8171 => \"/meteo/Portorotondo\",5470 => \"/meteo/Portoscuso\",5471 => \"/meteo/Portovenere\",5472 => \"/meteo/Portula\",5473 => \"/meteo/Posada\",5474 => \"/meteo/Posina\",5475 => \"/meteo/Positano\",5476 => \"/meteo/Possagno\",5477 => \"/meteo/Posta\",5478 => \"/meteo/Posta+fibreno\",5479 => \"/meteo/Postal\",5480 => \"/meteo/Postalesio\",5481 => \"/meteo/Postiglione\",5482 => \"/meteo/Postua\",5483 => \"/meteo/Potenza\",5484 => \"/meteo/Potenza+picena\",5485 => \"/meteo/Pove+del+grappa\",5486 => \"/meteo/Povegliano\",5487 => \"/meteo/Povegliano+veronese\",5488 => \"/meteo/Poviglio\",5489 => \"/meteo/Povoletto\",5490 => \"/meteo/Pozza+di+fassa\",5491 => \"/meteo/Pozzaglia+sabino\",5492 => \"/meteo/Pozzaglio+ed+uniti\",5493 => \"/meteo/Pozzallo\",5494 => \"/meteo/Pozzilli\",5495 => \"/meteo/Pozzo+d'adda\",5496 => \"/meteo/Pozzol+groppo\",5497 => \"/meteo/Pozzolengo\",5498 => \"/meteo/Pozzoleone\",5499 => \"/meteo/Pozzolo+formigaro\",5500 => \"/meteo/Pozzomaggiore\",5501 => \"/meteo/Pozzonovo\",5502 => \"/meteo/Pozzuoli\",5503 => \"/meteo/Pozzuolo+del+friuli\",5504 => \"/meteo/Pozzuolo+martesana\",8693 => \"/meteo/Pra+Catinat\",5505 => \"/meteo/Pradalunga\",5506 => \"/meteo/Pradamano\",5507 => \"/meteo/Pradleves\",5508 => \"/meteo/Pragelato\",5509 => \"/meteo/Praia+a+mare\",5510 => \"/meteo/Praiano\",5511 => \"/meteo/Pralboino\",5512 => \"/meteo/Prali\",5513 => \"/meteo/Pralormo\",5514 => \"/meteo/Pralungo\",5515 => \"/meteo/Pramaggiore\",5516 => \"/meteo/Pramollo\",5517 => \"/meteo/Prarolo\",5518 => \"/meteo/Prarostino\",5519 => \"/meteo/Prasco\",5520 => \"/meteo/Prascorsano\",5521 => \"/meteo/Praso\",5522 => \"/meteo/Prata+camportaccio\",5523 => \"/meteo/Prata+d'ansidonia\",5524 => \"/meteo/Prata+di+pordenone\",5525 => \"/meteo/Prata+di+principato+ultra\",5526 => \"/meteo/Prata+sannita\",5527 => \"/meteo/Pratella\",8102 => \"/meteo/Prati+di+Tivo\",8694 => \"/meteo/Pratica+di+Mare\",5528 => \"/meteo/Pratiglione\",5529 => \"/meteo/Prato\",5530 => \"/meteo/Prato+allo+Stelvio\",5531 => \"/meteo/Prato+carnico\",8157 => \"/meteo/Prato+Nevoso\",5532 => \"/meteo/Prato+sesia\",8560 => \"/meteo/Prato+Spilla\",5533 => \"/meteo/Pratola+peligna\",5534 => \"/meteo/Pratola+serra\",5535 => \"/meteo/Pratovecchio\",5536 => \"/meteo/Pravisdomini\",5537 => \"/meteo/Pray\",5538 => \"/meteo/Prazzo\",5539 => \"/meteo/Pre'+Saint+Didier\",5540 => \"/meteo/Precenicco\",5541 => \"/meteo/Preci\",5542 => \"/meteo/Predappio\",5543 => \"/meteo/Predazzo\",5544 => \"/meteo/Predoi\",5545 => \"/meteo/Predore\",5546 => \"/meteo/Predosa\",5547 => \"/meteo/Preganziol\",5548 => \"/meteo/Pregnana+milanese\",5549 => \"/meteo/Prela'\",5550 => \"/meteo/Premana\",5551 => \"/meteo/Premariacco\",5552 => \"/meteo/Premeno\",5553 => \"/meteo/Premia\",5554 => \"/meteo/Premilcuore\",5555 => \"/meteo/Premolo\",5556 => \"/meteo/Premosello+chiovenda\",5557 => \"/meteo/Preone\",5558 => \"/meteo/Preore\",5559 => \"/meteo/Prepotto\",8578 => \"/meteo/Presanella\",5560 => \"/meteo/Preseglie\",5561 => \"/meteo/Presenzano\",5562 => \"/meteo/Presezzo\",5563 => \"/meteo/Presicce\",5564 => \"/meteo/Pressana\",5565 => \"/meteo/Prestine\",5566 => \"/meteo/Pretoro\",5567 => \"/meteo/Prevalle\",5568 => \"/meteo/Prezza\",5569 => \"/meteo/Prezzo\",5570 => \"/meteo/Priero\",5571 => \"/meteo/Prignano+cilento\",5572 => \"/meteo/Prignano+sulla+secchia\",5573 => \"/meteo/Primaluna\",5574 => \"/meteo/Priocca\",5575 => \"/meteo/Priola\",5576 => \"/meteo/Priolo+gargallo\",5577 => \"/meteo/Priverno\",5578 => \"/meteo/Prizzi\",5579 => \"/meteo/Proceno\",5580 => \"/meteo/Procida\",5581 => \"/meteo/Propata\",5582 => \"/meteo/Proserpio\",5583 => \"/meteo/Prossedi\",5584 => \"/meteo/Provaglio+d'iseo\",5585 => \"/meteo/Provaglio+val+sabbia\",5586 => \"/meteo/Proves\",5587 => \"/meteo/Provvidenti\",8189 => \"/meteo/Prunetta\",5588 => \"/meteo/Prunetto\",5589 => \"/meteo/Puegnago+sul+garda\",5590 => \"/meteo/Puglianello\",5591 => \"/meteo/Pula\",5592 => \"/meteo/Pulfero\",5593 => \"/meteo/Pulsano\",5594 => \"/meteo/Pumenengo\",8584 => \"/meteo/Punta+Ala\",8708 => \"/meteo/Punta+Ban\",8564 => \"/meteo/Punta+Helbronner\",8306 => \"/meteo/Punta+Indren\",8107 => \"/meteo/Punta+Stilo\",5595 => \"/meteo/Puos+d'alpago\",5596 => \"/meteo/Pusiano\",5597 => \"/meteo/Putifigari\",5598 => \"/meteo/Putignano\",5599 => \"/meteo/Quadrelle\",5600 => \"/meteo/Quadri\",5601 => \"/meteo/Quagliuzzo\",5602 => \"/meteo/Qualiano\",5603 => \"/meteo/Quaranti\",5604 => \"/meteo/Quaregna\",5605 => \"/meteo/Quargnento\",5606 => \"/meteo/Quarna+sopra\",5607 => \"/meteo/Quarna+sotto\",5608 => \"/meteo/Quarona\",5609 => \"/meteo/Quarrata\",5610 => \"/meteo/Quart\",5611 => \"/meteo/Quarto\",5612 => \"/meteo/Quarto+d'altino\",5613 => \"/meteo/Quartu+sant'elena\",5614 => \"/meteo/Quartucciu\",5615 => \"/meteo/Quassolo\",5616 => \"/meteo/Quattordio\",5617 => \"/meteo/Quattro+castella\",5618 => \"/meteo/Quero\",5619 => \"/meteo/Quiliano\",5620 => \"/meteo/Quincinetto\",5621 => \"/meteo/Quindici\",5622 => \"/meteo/Quingentole\",5623 => \"/meteo/Quintano\",5624 => \"/meteo/Quinto+di+treviso\",5625 => \"/meteo/Quinto+vercellese\",5626 => \"/meteo/Quinto+vicentino\",5627 => \"/meteo/Quinzano+d'oglio\",5628 => \"/meteo/Quistello\",5629 => \"/meteo/Quittengo\",5630 => \"/meteo/Rabbi\",5631 => \"/meteo/Racale\",5632 => \"/meteo/Racalmuto\",5633 => \"/meteo/Racconigi\",5634 => \"/meteo/Raccuja\",5635 => \"/meteo/Racines\",8352 => \"/meteo/Racines+Giovo\",5636 => \"/meteo/Radda+in+chianti\",5637 => \"/meteo/Raddusa\",5638 => \"/meteo/Radicofani\",5639 => \"/meteo/Radicondoli\",5640 => \"/meteo/Raffadali\",5641 => \"/meteo/Ragalna\",5642 => \"/meteo/Ragogna\",5643 => \"/meteo/Ragoli\",5644 => \"/meteo/Ragusa\",5645 => \"/meteo/Raiano\",5646 => \"/meteo/Ramacca\",5647 => \"/meteo/Ramiseto\",5648 => \"/meteo/Ramponio+verna\",5649 => \"/meteo/Rancio+valcuvia\",5650 => \"/meteo/Ranco\",5651 => \"/meteo/Randazzo\",5652 => \"/meteo/Ranica\",5653 => \"/meteo/Ranzanico\",5654 => \"/meteo/Ranzo\",5655 => \"/meteo/Rapagnano\",5656 => \"/meteo/Rapallo\",5657 => \"/meteo/Rapino\",5658 => \"/meteo/Rapolano+terme\",8394 => \"/meteo/Rapolla\",5660 => \"/meteo/Rapone\",5661 => \"/meteo/Rassa\",5662 => \"/meteo/Rasun+Anterselva\",5663 => \"/meteo/Rasura\",5664 => \"/meteo/Ravanusa\",5665 => \"/meteo/Ravarino\",5666 => \"/meteo/Ravascletto\",5667 => \"/meteo/Ravello\",5668 => \"/meteo/Ravenna\",5669 => \"/meteo/Raveo\",5670 => \"/meteo/Raviscanina\",5671 => \"/meteo/Re\",5672 => \"/meteo/Rea\",5673 => \"/meteo/Realmonte\",5674 => \"/meteo/Reana+del+roiale\",5675 => \"/meteo/Reano\",5676 => \"/meteo/Recale\",5677 => \"/meteo/Recanati\",5678 => \"/meteo/Recco\",5679 => \"/meteo/Recetto\",8639 => \"/meteo/Recoaro+Mille\",5680 => \"/meteo/Recoaro+Terme\",5681 => \"/meteo/Redavalle\",5682 => \"/meteo/Redondesco\",5683 => \"/meteo/Refrancore\",5684 => \"/meteo/Refrontolo\",5685 => \"/meteo/Regalbuto\",5686 => \"/meteo/Reggello\",8542 => \"/meteo/Reggio+Aeroporto+dello+Stretto\",5687 => \"/meteo/Reggio+Calabria\",5688 => \"/meteo/Reggio+Emilia\",5689 => \"/meteo/Reggiolo\",5690 => \"/meteo/Reino\",5691 => \"/meteo/Reitano\",5692 => \"/meteo/Remanzacco\",5693 => \"/meteo/Remedello\",5694 => \"/meteo/Renate\",5695 => \"/meteo/Rende\",5696 => \"/meteo/Renon\",5697 => \"/meteo/Resana\",5698 => \"/meteo/Rescaldina\",8734 => \"/meteo/Resegone\",5699 => \"/meteo/Resia\",5700 => \"/meteo/Resiutta\",5701 => \"/meteo/Resuttano\",5702 => \"/meteo/Retorbido\",5703 => \"/meteo/Revello\",5704 => \"/meteo/Revere\",5705 => \"/meteo/Revigliasco+d'asti\",5706 => \"/meteo/Revine+lago\",5707 => \"/meteo/Revo'\",5708 => \"/meteo/Rezzago\",5709 => \"/meteo/Rezzato\",5710 => \"/meteo/Rezzo\",5711 => \"/meteo/Rezzoaglio\",5712 => \"/meteo/Rhemes+Notre+Dame\",5713 => \"/meteo/Rhemes+Saint+Georges\",5714 => \"/meteo/Rho\",5715 => \"/meteo/Riace\",8106 => \"/meteo/Riace+Marina\",5716 => \"/meteo/Rialto\",5717 => \"/meteo/Riano\",5718 => \"/meteo/Riardo\",5719 => \"/meteo/Ribera\",5720 => \"/meteo/Ribordone\",5721 => \"/meteo/Ricadi\",5722 => \"/meteo/Ricaldone\",5723 => \"/meteo/Riccia\",5724 => \"/meteo/Riccione\",5725 => \"/meteo/Ricco'+del+golfo+di+spezia\",5726 => \"/meteo/Ricengo\",5727 => \"/meteo/Ricigliano\",5728 => \"/meteo/Riese+pio+x\",5729 => \"/meteo/Riesi\",5730 => \"/meteo/Rieti\",5731 => \"/meteo/Rifiano\",5732 => \"/meteo/Rifreddo\",8691 => \"/meteo/Rifugio+Boffalora+Ticino\",8244 => \"/meteo/Rifugio+Calvi+Laghi+Gemelli\",8684 => \"/meteo/Rifugio+Chivasso+-+Colle+del+Nivolet\",8678 => \"/meteo/Rifugio+Curò\",8679 => \"/meteo/Rifugio+laghi+Gemelli\",8731 => \"/meteo/Rifugio+Livio+Bianco\",8681 => \"/meteo/Rifugio+Mezzalama\",8682 => \"/meteo/Rifugio+Quintino+Sella\",8629 => \"/meteo/Rifugio+Sapienza\",8683 => \"/meteo/Rifugio+Torino\",8680 => \"/meteo/Rifugio+Viviani\",5733 => \"/meteo/Rignano+flaminio\",5734 => \"/meteo/Rignano+garganico\",5735 => \"/meteo/Rignano+sull'arno\",5736 => \"/meteo/Rigolato\",5737 => \"/meteo/Rima+san+giuseppe\",5738 => \"/meteo/Rimasco\",5739 => \"/meteo/Rimella\",5740 => \"/meteo/Rimini\",8546 => \"/meteo/Rimini+Miramare\",5741 => \"/meteo/Rio+di+Pusteria\",5742 => \"/meteo/Rio+marina\",5743 => \"/meteo/Rio+nell'elba\",5744 => \"/meteo/Rio+saliceto\",5745 => \"/meteo/Riofreddo\",5746 => \"/meteo/Riola+sardo\",5747 => \"/meteo/Riolo+terme\",5748 => \"/meteo/Riolunato\",5749 => \"/meteo/Riomaggiore\",5750 => \"/meteo/Rionero+in+vulture\",5751 => \"/meteo/Rionero+sannitico\",8503 => \"/meteo/Rioveggio\",5752 => \"/meteo/Ripa+teatina\",5753 => \"/meteo/Ripabottoni\",8404 => \"/meteo/Ripacandida\",5755 => \"/meteo/Ripalimosani\",5756 => \"/meteo/Ripalta+arpina\",5757 => \"/meteo/Ripalta+cremasca\",5758 => \"/meteo/Ripalta+guerina\",5759 => \"/meteo/Riparbella\",5760 => \"/meteo/Ripatransone\",5761 => \"/meteo/Ripe\",5762 => \"/meteo/Ripe+san+ginesio\",5763 => \"/meteo/Ripi\",5764 => \"/meteo/Riposto\",5765 => \"/meteo/Rittana\",5766 => \"/meteo/Riva+del+garda\",5767 => \"/meteo/Riva+di+solto\",8579 => \"/meteo/Riva+di+Tures\",5768 => \"/meteo/Riva+ligure\",5769 => \"/meteo/Riva+presso+chieri\",5770 => \"/meteo/Riva+valdobbia\",5771 => \"/meteo/Rivalba\",5772 => \"/meteo/Rivalta+bormida\",5773 => \"/meteo/Rivalta+di+torino\",5774 => \"/meteo/Rivamonte+agordino\",5775 => \"/meteo/Rivanazzano\",5776 => \"/meteo/Rivara\",5777 => \"/meteo/Rivarolo+canavese\",5778 => \"/meteo/Rivarolo+del+re+ed+uniti\",5779 => \"/meteo/Rivarolo+mantovano\",5780 => \"/meteo/Rivarone\",5781 => \"/meteo/Rivarossa\",5782 => \"/meteo/Rive\",5783 => \"/meteo/Rive+d'arcano\",8398 => \"/meteo/Rivello\",5785 => \"/meteo/Rivergaro\",5786 => \"/meteo/Rivignano\",5787 => \"/meteo/Rivisondoli\",5788 => \"/meteo/Rivodutri\",5789 => \"/meteo/Rivoli\",8436 => \"/meteo/Rivoli+veronese\",5791 => \"/meteo/Rivolta+d'adda\",5792 => \"/meteo/Rizziconi\",5793 => \"/meteo/Ro\",5794 => \"/meteo/Roana\",5795 => \"/meteo/Roaschia\",5796 => \"/meteo/Roascio\",5797 => \"/meteo/Roasio\",5798 => \"/meteo/Roatto\",5799 => \"/meteo/Robassomero\",5800 => \"/meteo/Robbiate\",5801 => \"/meteo/Robbio\",5802 => \"/meteo/Robecchetto+con+Induno\",5803 => \"/meteo/Robecco+d'oglio\",5804 => \"/meteo/Robecco+pavese\",5805 => \"/meteo/Robecco+sul+naviglio\",5806 => \"/meteo/Robella\",5807 => \"/meteo/Robilante\",5808 => \"/meteo/Roburent\",5809 => \"/meteo/Rocca+canavese\",5810 => \"/meteo/Rocca+Canterano\",5811 => \"/meteo/Rocca+Ciglie'\",5812 => \"/meteo/Rocca+d'Arazzo\",5813 => \"/meteo/Rocca+d'Arce\",5814 => \"/meteo/Rocca+d'Evandro\",5815 => \"/meteo/Rocca+de'+Baldi\",5816 => \"/meteo/Rocca+de'+Giorgi\",5817 => \"/meteo/Rocca+di+Botte\",5818 => \"/meteo/Rocca+di+Cambio\",5819 => \"/meteo/Rocca+di+Cave\",5820 => \"/meteo/Rocca+di+Mezzo\",5821 => \"/meteo/Rocca+di+Neto\",5822 => \"/meteo/Rocca+di+Papa\",5823 => \"/meteo/Rocca+Grimalda\",5824 => \"/meteo/Rocca+Imperiale\",8115 => \"/meteo/Rocca+Imperiale+Marina\",5825 => \"/meteo/Rocca+Massima\",5826 => \"/meteo/Rocca+Pia\",5827 => \"/meteo/Rocca+Pietore\",5828 => \"/meteo/Rocca+Priora\",5829 => \"/meteo/Rocca+San+Casciano\",5830 => \"/meteo/Rocca+San+Felice\",5831 => \"/meteo/Rocca+San+Giovanni\",5832 => \"/meteo/Rocca+Santa+Maria\",5833 => \"/meteo/Rocca+Santo+Stefano\",5834 => \"/meteo/Rocca+Sinibalda\",5835 => \"/meteo/Rocca+Susella\",5836 => \"/meteo/Roccabascerana\",5837 => \"/meteo/Roccabernarda\",5838 => \"/meteo/Roccabianca\",5839 => \"/meteo/Roccabruna\",8535 => \"/meteo/Roccacaramanico\",5840 => \"/meteo/Roccacasale\",5841 => \"/meteo/Roccadaspide\",5842 => \"/meteo/Roccafiorita\",5843 => \"/meteo/Roccafluvione\",5844 => \"/meteo/Roccaforte+del+greco\",5845 => \"/meteo/Roccaforte+ligure\",5846 => \"/meteo/Roccaforte+mondovi'\",5847 => \"/meteo/Roccaforzata\",5848 => \"/meteo/Roccafranca\",5849 => \"/meteo/Roccagiovine\",5850 => \"/meteo/Roccagloriosa\",5851 => \"/meteo/Roccagorga\",5852 => \"/meteo/Roccalbegna\",5853 => \"/meteo/Roccalumera\",5854 => \"/meteo/Roccamandolfi\",5855 => \"/meteo/Roccamena\",5856 => \"/meteo/Roccamonfina\",5857 => \"/meteo/Roccamontepiano\",5858 => \"/meteo/Roccamorice\",8418 => \"/meteo/Roccanova\",5860 => \"/meteo/Roccantica\",5861 => \"/meteo/Roccapalumba\",5862 => \"/meteo/Roccapiemonte\",5863 => \"/meteo/Roccarainola\",5864 => \"/meteo/Roccaraso\",5865 => \"/meteo/Roccaromana\",5866 => \"/meteo/Roccascalegna\",5867 => \"/meteo/Roccasecca\",5868 => \"/meteo/Roccasecca+dei+volsci\",5869 => \"/meteo/Roccasicura\",5870 => \"/meteo/Roccasparvera\",5871 => \"/meteo/Roccaspinalveti\",5872 => \"/meteo/Roccastrada\",5873 => \"/meteo/Roccavaldina\",5874 => \"/meteo/Roccaverano\",5875 => \"/meteo/Roccavignale\",5876 => \"/meteo/Roccavione\",5877 => \"/meteo/Roccavivara\",5878 => \"/meteo/Roccella+ionica\",5879 => \"/meteo/Roccella+valdemone\",5880 => \"/meteo/Rocchetta+a+volturno\",5881 => \"/meteo/Rocchetta+belbo\",5882 => \"/meteo/Rocchetta+di+vara\",5883 => \"/meteo/Rocchetta+e+croce\",5884 => \"/meteo/Rocchetta+ligure\",5885 => \"/meteo/Rocchetta+nervina\",5886 => \"/meteo/Rocchetta+palafea\",5887 => \"/meteo/Rocchetta+sant'antonio\",5888 => \"/meteo/Rocchetta+tanaro\",5889 => \"/meteo/Rodano\",5890 => \"/meteo/Roddi\",5891 => \"/meteo/Roddino\",5892 => \"/meteo/Rodello\",5893 => \"/meteo/Rodengo\",5894 => \"/meteo/Rodengo-saiano\",5895 => \"/meteo/Rodero\",5896 => \"/meteo/Rodi+garganico\",5897 => \"/meteo/Rodi'+milici\",5898 => \"/meteo/Rodigo\",5899 => \"/meteo/Roe'+volciano\",5900 => \"/meteo/Rofrano\",5901 => \"/meteo/Rogeno\",5902 => \"/meteo/Roggiano+gravina\",5903 => \"/meteo/Roghudi\",5904 => \"/meteo/Rogliano\",5905 => \"/meteo/Rognano\",5906 => \"/meteo/Rogno\",5907 => \"/meteo/Rogolo\",5908 => \"/meteo/Roiate\",5909 => \"/meteo/Roio+del+sangro\",5910 => \"/meteo/Roisan\",5911 => \"/meteo/Roletto\",5912 => \"/meteo/Rolo\",5913 => \"/meteo/Roma\",8545 => \"/meteo/Roma+Ciampino\",8499 => \"/meteo/Roma+Fiumicino\",5914 => \"/meteo/Romagnano+al+monte\",5915 => \"/meteo/Romagnano+sesia\",5916 => \"/meteo/Romagnese\",5917 => \"/meteo/Romallo\",5918 => \"/meteo/Romana\",5919 => \"/meteo/Romanengo\",5920 => \"/meteo/Romano+canavese\",5921 => \"/meteo/Romano+d'ezzelino\",5922 => \"/meteo/Romano+di+lombardia\",5923 => \"/meteo/Romans+d'isonzo\",5924 => \"/meteo/Rombiolo\",5925 => \"/meteo/Romeno\",5926 => \"/meteo/Romentino\",5927 => \"/meteo/Rometta\",5928 => \"/meteo/Ronago\",5929 => \"/meteo/Ronca'\",5930 => \"/meteo/Roncade\",5931 => \"/meteo/Roncadelle\",5932 => \"/meteo/Roncaro\",5933 => \"/meteo/Roncegno\",5934 => \"/meteo/Roncello\",5935 => \"/meteo/Ronchi+dei+legionari\",5936 => \"/meteo/Ronchi+valsugana\",5937 => \"/meteo/Ronchis\",5938 => \"/meteo/Ronciglione\",5939 => \"/meteo/Ronco+all'adige\",8231 => \"/meteo/Ronco+all`Adige\",5940 => \"/meteo/Ronco+biellese\",5941 => \"/meteo/Ronco+briantino\",5942 => \"/meteo/Ronco+canavese\",5943 => \"/meteo/Ronco+scrivia\",5944 => \"/meteo/Roncobello\",5945 => \"/meteo/Roncoferraro\",5946 => \"/meteo/Roncofreddo\",5947 => \"/meteo/Roncola\",5948 => \"/meteo/Roncone\",5949 => \"/meteo/Rondanina\",5950 => \"/meteo/Rondissone\",5951 => \"/meteo/Ronsecco\",5952 => \"/meteo/Ronzo+chienis\",5953 => \"/meteo/Ronzone\",5954 => \"/meteo/Roppolo\",5955 => \"/meteo/Rora'\",5956 => \"/meteo/Rosa'\",5957 => \"/meteo/Rosarno\",5958 => \"/meteo/Rosasco\",5959 => \"/meteo/Rosate\",5960 => \"/meteo/Rosazza\",5961 => \"/meteo/Rosciano\",5962 => \"/meteo/Roscigno\",5963 => \"/meteo/Rose\",5964 => \"/meteo/Rosello\",5965 => \"/meteo/Roseto+capo+spulico\",8439 => \"/meteo/Roseto+casello\",5966 => \"/meteo/Roseto+degli+abruzzi\",5967 => \"/meteo/Roseto+valfortore\",5968 => \"/meteo/Rosignano+marittimo\",5969 => \"/meteo/Rosignano+monferrato\",8195 => \"/meteo/Rosignano+Solvay\",5970 => \"/meteo/Rosolina\",8744 => \"/meteo/Rosolina+mare\",5971 => \"/meteo/Rosolini\",8704 => \"/meteo/Rosone\",5972 => \"/meteo/Rosora\",5973 => \"/meteo/Rossa\",5974 => \"/meteo/Rossana\",5975 => \"/meteo/Rossano\",8109 => \"/meteo/Rossano+Calabro+Marina\",5976 => \"/meteo/Rossano+veneto\",8431 => \"/meteo/Rossera\",5977 => \"/meteo/Rossiglione\",5978 => \"/meteo/Rosta\",5979 => \"/meteo/Rota+d'imagna\",5980 => \"/meteo/Rota+greca\",5981 => \"/meteo/Rotella\",5982 => \"/meteo/Rotello\",8429 => \"/meteo/Rotonda\",5984 => \"/meteo/Rotondella\",5985 => \"/meteo/Rotondi\",5986 => \"/meteo/Rottofreno\",5987 => \"/meteo/Rotzo\",5988 => \"/meteo/Roure\",5989 => \"/meteo/Rovagnate\",5990 => \"/meteo/Rovasenda\",5991 => \"/meteo/Rovato\",5992 => \"/meteo/Rovegno\",5993 => \"/meteo/Rovellasca\",5994 => \"/meteo/Rovello+porro\",5995 => \"/meteo/Roverbella\",5996 => \"/meteo/Roverchiara\",5997 => \"/meteo/Rovere'+della+luna\",5998 => \"/meteo/Rovere'+veronese\",5999 => \"/meteo/Roveredo+di+gua'\",6000 => \"/meteo/Roveredo+in+piano\",6001 => \"/meteo/Rovereto\",6002 => \"/meteo/Rovescala\",6003 => \"/meteo/Rovetta\",6004 => \"/meteo/Roviano\",6005 => \"/meteo/Rovigo\",6006 => \"/meteo/Rovito\",6007 => \"/meteo/Rovolon\",6008 => \"/meteo/Rozzano\",6009 => \"/meteo/Rubano\",6010 => \"/meteo/Rubiana\",6011 => \"/meteo/Rubiera\",8632 => \"/meteo/Rucas\",6012 => \"/meteo/Ruda\",6013 => \"/meteo/Rudiano\",6014 => \"/meteo/Rueglio\",6015 => \"/meteo/Ruffano\",6016 => \"/meteo/Ruffia\",6017 => \"/meteo/Ruffre'\",6018 => \"/meteo/Rufina\",6019 => \"/meteo/Ruinas\",6020 => \"/meteo/Ruino\",6021 => \"/meteo/Rumo\",8366 => \"/meteo/Ruoti\",6023 => \"/meteo/Russi\",6024 => \"/meteo/Rutigliano\",6025 => \"/meteo/Rutino\",6026 => \"/meteo/Ruviano\",8393 => \"/meteo/Ruvo+del+monte\",6028 => \"/meteo/Ruvo+di+Puglia\",6029 => \"/meteo/Sabaudia\",6030 => \"/meteo/Sabbia\",6031 => \"/meteo/Sabbio+chiese\",6032 => \"/meteo/Sabbioneta\",6033 => \"/meteo/Sacco\",6034 => \"/meteo/Saccolongo\",6035 => \"/meteo/Sacile\",8700 => \"/meteo/Sacra+di+San+Michele\",6036 => \"/meteo/Sacrofano\",6037 => \"/meteo/Sadali\",6038 => \"/meteo/Sagama\",6039 => \"/meteo/Sagliano+micca\",6040 => \"/meteo/Sagrado\",6041 => \"/meteo/Sagron+mis\",8602 => \"/meteo/Saint+Barthelemy\",6042 => \"/meteo/Saint+Christophe\",6043 => \"/meteo/Saint+Denis\",8304 => \"/meteo/Saint+Jacques\",6044 => \"/meteo/Saint+Marcel\",6045 => \"/meteo/Saint+Nicolas\",6046 => \"/meteo/Saint+Oyen+Flassin\",6047 => \"/meteo/Saint+Pierre\",6048 => \"/meteo/Saint+Rhemy+en+Bosses\",6049 => \"/meteo/Saint+Vincent\",6050 => \"/meteo/Sala+Baganza\",6051 => \"/meteo/Sala+Biellese\",6052 => \"/meteo/Sala+Bolognese\",6053 => \"/meteo/Sala+Comacina\",6054 => \"/meteo/Sala+Consilina\",6055 => \"/meteo/Sala+Monferrato\",8372 => \"/meteo/Salandra\",6057 => \"/meteo/Salaparuta\",6058 => \"/meteo/Salara\",6059 => \"/meteo/Salasco\",6060 => \"/meteo/Salassa\",6061 => \"/meteo/Salbertrand\",6062 => \"/meteo/Salcedo\",6063 => \"/meteo/Salcito\",6064 => \"/meteo/Sale\",6065 => \"/meteo/Sale+delle+Langhe\",6066 => \"/meteo/Sale+Marasino\",6067 => \"/meteo/Sale+San+Giovanni\",6068 => \"/meteo/Salemi\",6069 => \"/meteo/Salento\",6070 => \"/meteo/Salerano+Canavese\",6071 => \"/meteo/Salerano+sul+Lambro\",6072 => \"/meteo/Salerno\",6073 => \"/meteo/Saletto\",6074 => \"/meteo/Salgareda\",6075 => \"/meteo/Sali+Vercellese\",6076 => \"/meteo/Salice+Salentino\",6077 => \"/meteo/Saliceto\",6078 => \"/meteo/Salisano\",6079 => \"/meteo/Salizzole\",6080 => \"/meteo/Salle\",6081 => \"/meteo/Salmour\",6082 => \"/meteo/Salo'\",6083 => \"/meteo/Salorno\",6084 => \"/meteo/Salsomaggiore+Terme\",6085 => \"/meteo/Saltara\",6086 => \"/meteo/Saltrio\",6087 => \"/meteo/Saludecio\",6088 => \"/meteo/Saluggia\",6089 => \"/meteo/Salussola\",6090 => \"/meteo/Saluzzo\",6091 => \"/meteo/Salve\",6092 => \"/meteo/Salvirola\",6093 => \"/meteo/Salvitelle\",6094 => \"/meteo/Salza+di+Pinerolo\",6095 => \"/meteo/Salza+Irpina\",6096 => \"/meteo/Salzano\",6097 => \"/meteo/Samarate\",6098 => \"/meteo/Samassi\",6099 => \"/meteo/Samatzai\",6100 => \"/meteo/Sambuca+di+Sicilia\",6101 => \"/meteo/Sambuca+Pistoiese\",6102 => \"/meteo/Sambuci\",6103 => \"/meteo/Sambuco\",6104 => \"/meteo/Sammichele+di+Bari\",6105 => \"/meteo/Samo\",6106 => \"/meteo/Samolaco\",6107 => \"/meteo/Samone\",6108 => \"/meteo/Samone\",6109 => \"/meteo/Sampeyre\",6110 => \"/meteo/Samugheo\",6111 => \"/meteo/San+Bartolomeo+al+Mare\",6112 => \"/meteo/San+Bartolomeo+in+Galdo\",6113 => \"/meteo/San+Bartolomeo+Val+Cavargna\",6114 => \"/meteo/San+Basile\",6115 => \"/meteo/San+Basilio\",6116 => \"/meteo/San+Bassano\",6117 => \"/meteo/San+Bellino\",6118 => \"/meteo/San+Benedetto+Belbo\",6119 => \"/meteo/San+Benedetto+dei+Marsi\",6120 => \"/meteo/San+Benedetto+del+Tronto\",8126 => \"/meteo/San+Benedetto+in+Alpe\",6121 => \"/meteo/San+Benedetto+in+Perillis\",6122 => \"/meteo/San+Benedetto+Po\",6123 => \"/meteo/San+Benedetto+Ullano\",6124 => \"/meteo/San+Benedetto+val+di+Sambro\",6125 => \"/meteo/San+Benigno+Canavese\",8641 => \"/meteo/San+Bernardino\",6126 => \"/meteo/San+Bernardino+Verbano\",6127 => \"/meteo/San+Biagio+della+Cima\",6128 => \"/meteo/San+Biagio+di+Callalta\",6129 => \"/meteo/San+Biagio+Platani\",6130 => \"/meteo/San+Biagio+Saracinisco\",6131 => \"/meteo/San+Biase\",6132 => \"/meteo/San+Bonifacio\",6133 => \"/meteo/San+Buono\",6134 => \"/meteo/San+Calogero\",6135 => \"/meteo/San+Candido\",6136 => \"/meteo/San+Canzian+d'Isonzo\",6137 => \"/meteo/San+Carlo+Canavese\",6138 => \"/meteo/San+Casciano+dei+Bagni\",6139 => \"/meteo/San+Casciano+in+Val+di+Pesa\",6140 => \"/meteo/San+Cassiano\",8624 => \"/meteo/San+Cassiano+in+Badia\",6141 => \"/meteo/San+Cataldo\",6142 => \"/meteo/San+Cesareo\",6143 => \"/meteo/San+Cesario+di+Lecce\",6144 => \"/meteo/San+Cesario+sul+Panaro\",8367 => \"/meteo/San+Chirico+Nuovo\",6146 => \"/meteo/San+Chirico+Raparo\",6147 => \"/meteo/San+Cipirello\",6148 => \"/meteo/San+Cipriano+d'Aversa\",6149 => \"/meteo/San+Cipriano+Picentino\",6150 => \"/meteo/San+Cipriano+Po\",6151 => \"/meteo/San+Clemente\",6152 => \"/meteo/San+Colombano+al+Lambro\",6153 => \"/meteo/San+Colombano+Belmonte\",6154 => \"/meteo/San+Colombano+Certenoli\",8622 => \"/meteo/San+Colombano+Valdidentro\",6155 => \"/meteo/San+Cono\",6156 => \"/meteo/San+Cosmo+Albanese\",8376 => \"/meteo/San+Costantino+Albanese\",6158 => \"/meteo/San+Costantino+Calabro\",6159 => \"/meteo/San+Costanzo\",6160 => \"/meteo/San+Cristoforo\",6161 => \"/meteo/San+Damiano+al+Colle\",6162 => \"/meteo/San+Damiano+d'Asti\",6163 => \"/meteo/San+Damiano+Macra\",6164 => \"/meteo/San+Daniele+del+Friuli\",6165 => \"/meteo/San+Daniele+Po\",6166 => \"/meteo/San+Demetrio+Corone\",6167 => \"/meteo/San+Demetrio+ne'+Vestini\",6168 => \"/meteo/San+Didero\",8556 => \"/meteo/San+Domenico+di+Varzo\",6169 => \"/meteo/San+Dona'+di+Piave\",6170 => \"/meteo/San+Donaci\",6171 => \"/meteo/San+Donato+di+Lecce\",6172 => \"/meteo/San+Donato+di+Ninea\",6173 => \"/meteo/San+Donato+Milanese\",6174 => \"/meteo/San+Donato+Val+di+Comino\",6175 => \"/meteo/San+Dorligo+della+Valle\",6176 => \"/meteo/San+Fedele+Intelvi\",6177 => \"/meteo/San+Fele\",6178 => \"/meteo/San+Felice+a+Cancello\",6179 => \"/meteo/San+Felice+Circeo\",6180 => \"/meteo/San+Felice+del+Benaco\",6181 => \"/meteo/San+Felice+del+Molise\",6182 => \"/meteo/San+Felice+sul+Panaro\",6183 => \"/meteo/San+Ferdinando\",6184 => \"/meteo/San+Ferdinando+di+Puglia\",6185 => \"/meteo/San+Fermo+della+Battaglia\",6186 => \"/meteo/San+Fili\",6187 => \"/meteo/San+Filippo+del+mela\",6188 => \"/meteo/San+Fior\",6189 => \"/meteo/San+Fiorano\",6190 => \"/meteo/San+Floriano+del+collio\",6191 => \"/meteo/San+Floro\",6192 => \"/meteo/San+Francesco+al+campo\",6193 => \"/meteo/San+Fratello\",8690 => \"/meteo/San+Galgano\",6194 => \"/meteo/San+Gavino+monreale\",6195 => \"/meteo/San+Gemini\",6196 => \"/meteo/San+Genesio+Atesino\",6197 => \"/meteo/San+Genesio+ed+uniti\",6198 => \"/meteo/San+Gennaro+vesuviano\",6199 => \"/meteo/San+Germano+chisone\",6200 => \"/meteo/San+Germano+dei+berici\",6201 => \"/meteo/San+Germano+vercellese\",6202 => \"/meteo/San+Gervasio+bresciano\",6203 => \"/meteo/San+Giacomo+degli+schiavoni\",6204 => \"/meteo/San+Giacomo+delle+segnate\",8620 => \"/meteo/San+Giacomo+di+Roburent\",6205 => \"/meteo/San+Giacomo+filippo\",6206 => \"/meteo/San+Giacomo+vercellese\",6207 => \"/meteo/San+Gillio\",6208 => \"/meteo/San+Gimignano\",6209 => \"/meteo/San+Ginesio\",6210 => \"/meteo/San+Giorgio+a+cremano\",6211 => \"/meteo/San+Giorgio+a+liri\",6212 => \"/meteo/San+Giorgio+albanese\",6213 => \"/meteo/San+Giorgio+canavese\",6214 => \"/meteo/San+Giorgio+del+sannio\",6215 => \"/meteo/San+Giorgio+della+richinvelda\",6216 => \"/meteo/San+Giorgio+delle+Pertiche\",6217 => \"/meteo/San+Giorgio+di+lomellina\",6218 => \"/meteo/San+Giorgio+di+mantova\",6219 => \"/meteo/San+Giorgio+di+nogaro\",6220 => \"/meteo/San+Giorgio+di+pesaro\",6221 => \"/meteo/San+Giorgio+di+piano\",6222 => \"/meteo/San+Giorgio+in+bosco\",6223 => \"/meteo/San+Giorgio+ionico\",6224 => \"/meteo/San+Giorgio+la+molara\",6225 => \"/meteo/San+Giorgio+lucano\",6226 => \"/meteo/San+Giorgio+monferrato\",6227 => \"/meteo/San+Giorgio+morgeto\",6228 => \"/meteo/San+Giorgio+piacentino\",6229 => \"/meteo/San+Giorgio+scarampi\",6230 => \"/meteo/San+Giorgio+su+Legnano\",6231 => \"/meteo/San+Giorio+di+susa\",6232 => \"/meteo/San+Giovanni+a+piro\",6233 => \"/meteo/San+Giovanni+al+natisone\",6234 => \"/meteo/San+Giovanni+bianco\",6235 => \"/meteo/San+Giovanni+d'asso\",6236 => \"/meteo/San+Giovanni+del+dosso\",6237 => \"/meteo/San+Giovanni+di+gerace\",6238 => \"/meteo/San+Giovanni+gemini\",6239 => \"/meteo/San+Giovanni+ilarione\",6240 => \"/meteo/San+Giovanni+in+croce\",6241 => \"/meteo/San+Giovanni+in+fiore\",6242 => \"/meteo/San+Giovanni+in+galdo\",6243 => \"/meteo/San+Giovanni+in+marignano\",6244 => \"/meteo/San+Giovanni+in+persiceto\",8567 => \"/meteo/San+Giovanni+in+val+Aurina\",6245 => \"/meteo/San+Giovanni+incarico\",6246 => \"/meteo/San+Giovanni+la+punta\",6247 => \"/meteo/San+Giovanni+lipioni\",6248 => \"/meteo/San+Giovanni+lupatoto\",6249 => \"/meteo/San+Giovanni+rotondo\",6250 => \"/meteo/San+Giovanni+suergiu\",6251 => \"/meteo/San+Giovanni+teatino\",6252 => \"/meteo/San+Giovanni+valdarno\",6253 => \"/meteo/San+Giuliano+del+sannio\",6254 => \"/meteo/San+Giuliano+di+Puglia\",6255 => \"/meteo/San+Giuliano+milanese\",6256 => \"/meteo/San+Giuliano+terme\",6257 => \"/meteo/San+Giuseppe+jato\",6258 => \"/meteo/San+Giuseppe+vesuviano\",6259 => \"/meteo/San+Giustino\",6260 => \"/meteo/San+Giusto+canavese\",6261 => \"/meteo/San+Godenzo\",6262 => \"/meteo/San+Gregorio+d'ippona\",6263 => \"/meteo/San+Gregorio+da+sassola\",6264 => \"/meteo/San+Gregorio+di+Catania\",6265 => \"/meteo/San+Gregorio+Magno\",6266 => \"/meteo/San+Gregorio+Matese\",6267 => \"/meteo/San+Gregorio+nelle+Alpi\",6268 => \"/meteo/San+Lazzaro+di+Savena\",6269 => \"/meteo/San+Leo\",6270 => \"/meteo/San+Leonardo\",6271 => \"/meteo/San+Leonardo+in+Passiria\",8580 => \"/meteo/San+Leone\",6272 => \"/meteo/San+Leucio+del+Sannio\",6273 => \"/meteo/San+Lorenzello\",6274 => \"/meteo/San+Lorenzo\",6275 => \"/meteo/San+Lorenzo+al+mare\",6276 => \"/meteo/San+Lorenzo+Bellizzi\",6277 => \"/meteo/San+Lorenzo+del+vallo\",6278 => \"/meteo/San+Lorenzo+di+Sebato\",6279 => \"/meteo/San+Lorenzo+in+Banale\",6280 => \"/meteo/San+Lorenzo+in+campo\",6281 => \"/meteo/San+Lorenzo+isontino\",6282 => \"/meteo/San+Lorenzo+Maggiore\",6283 => \"/meteo/San+Lorenzo+Nuovo\",6284 => \"/meteo/San+Luca\",6285 => \"/meteo/San+Lucido\",6286 => \"/meteo/San+Lupo\",6287 => \"/meteo/San+Mango+d'Aquino\",6288 => \"/meteo/San+Mango+Piemonte\",6289 => \"/meteo/San+Mango+sul+Calore\",6290 => \"/meteo/San+Marcellino\",6291 => \"/meteo/San+Marcello\",6292 => \"/meteo/San+Marcello+pistoiese\",6293 => \"/meteo/San+Marco+argentano\",6294 => \"/meteo/San+Marco+d'Alunzio\",6295 => \"/meteo/San+Marco+dei+Cavoti\",6296 => \"/meteo/San+Marco+Evangelista\",6297 => \"/meteo/San+Marco+in+Lamis\",6298 => \"/meteo/San+Marco+la+Catola\",8152 => \"/meteo/San+Marino\",6299 => \"/meteo/San+Martino+al+Tagliamento\",6300 => \"/meteo/San+Martino+Alfieri\",6301 => \"/meteo/San+Martino+Buon+Albergo\",6302 => \"/meteo/San+Martino+Canavese\",6303 => \"/meteo/San+Martino+d'Agri\",6304 => \"/meteo/San+Martino+dall'argine\",6305 => \"/meteo/San+Martino+del+lago\",8209 => \"/meteo/San+Martino+di+Castrozza\",6306 => \"/meteo/San+Martino+di+Finita\",6307 => \"/meteo/San+Martino+di+Lupari\",6308 => \"/meteo/San+Martino+di+venezze\",8410 => \"/meteo/San+Martino+d`agri\",6309 => \"/meteo/San+Martino+in+Badia\",6310 => \"/meteo/San+Martino+in+Passiria\",6311 => \"/meteo/San+Martino+in+pensilis\",6312 => \"/meteo/San+Martino+in+rio\",6313 => \"/meteo/San+Martino+in+strada\",6314 => \"/meteo/San+Martino+sannita\",6315 => \"/meteo/San+Martino+siccomario\",6316 => \"/meteo/San+Martino+sulla+marrucina\",6317 => \"/meteo/San+Martino+valle+caudina\",6318 => \"/meteo/San+Marzano+di+San+Giuseppe\",6319 => \"/meteo/San+Marzano+oliveto\",6320 => \"/meteo/San+Marzano+sul+Sarno\",6321 => \"/meteo/San+Massimo\",6322 => \"/meteo/San+Maurizio+canavese\",6323 => \"/meteo/San+Maurizio+d'opaglio\",6324 => \"/meteo/San+Mauro+castelverde\",6325 => \"/meteo/San+Mauro+cilento\",6326 => \"/meteo/San+Mauro+di+saline\",8427 => \"/meteo/San+Mauro+forte\",6328 => \"/meteo/San+Mauro+la+bruca\",6329 => \"/meteo/San+Mauro+marchesato\",6330 => \"/meteo/San+Mauro+Pascoli\",6331 => \"/meteo/San+Mauro+torinese\",6332 => \"/meteo/San+Michele+al+Tagliamento\",6333 => \"/meteo/San+Michele+all'Adige\",6334 => \"/meteo/San+Michele+di+ganzaria\",6335 => \"/meteo/San+Michele+di+serino\",6336 => \"/meteo/San+Michele+Mondovi'\",6337 => \"/meteo/San+Michele+salentino\",6338 => \"/meteo/San+Miniato\",6339 => \"/meteo/San+Nazario\",6340 => \"/meteo/San+Nazzaro\",6341 => \"/meteo/San+Nazzaro+Sesia\",6342 => \"/meteo/San+Nazzaro+val+cavargna\",6343 => \"/meteo/San+Nicola+arcella\",6344 => \"/meteo/San+Nicola+baronia\",6345 => \"/meteo/San+Nicola+da+crissa\",6346 => \"/meteo/San+Nicola+dell'alto\",6347 => \"/meteo/San+Nicola+la+strada\",6348 => \"/meteo/San+nicola+manfredi\",6349 => \"/meteo/San+nicolo'+d'arcidano\",6350 => \"/meteo/San+nicolo'+di+comelico\",6351 => \"/meteo/San+Nicolo'+Gerrei\",6352 => \"/meteo/San+Pancrazio\",6353 => \"/meteo/San+Pancrazio+salentino\",6354 => \"/meteo/San+Paolo\",8361 => \"/meteo/San+Paolo+albanese\",6356 => \"/meteo/San+Paolo+bel+sito\",6357 => \"/meteo/San+Paolo+cervo\",6358 => \"/meteo/San+Paolo+d'argon\",6359 => \"/meteo/San+Paolo+di+civitate\",6360 => \"/meteo/San+Paolo+di+Jesi\",6361 => \"/meteo/San+Paolo+solbrito\",6362 => \"/meteo/San+Pellegrino+terme\",6363 => \"/meteo/San+Pier+d'isonzo\",6364 => \"/meteo/San+Pier+niceto\",6365 => \"/meteo/San+Piero+a+sieve\",6366 => \"/meteo/San+Piero+Patti\",6367 => \"/meteo/San+Pietro+a+maida\",6368 => \"/meteo/San+Pietro+al+Natisone\",6369 => \"/meteo/San+Pietro+al+Tanagro\",6370 => \"/meteo/San+Pietro+apostolo\",6371 => \"/meteo/San+Pietro+avellana\",6372 => \"/meteo/San+Pietro+clarenza\",6373 => \"/meteo/San+Pietro+di+cadore\",6374 => \"/meteo/San+Pietro+di+carida'\",6375 => \"/meteo/San+Pietro+di+feletto\",6376 => \"/meteo/San+Pietro+di+morubio\",6377 => \"/meteo/San+Pietro+in+Amantea\",6378 => \"/meteo/San+Pietro+in+cariano\",6379 => \"/meteo/San+Pietro+in+casale\",6380 => \"/meteo/San+Pietro+in+cerro\",6381 => \"/meteo/San+Pietro+in+gu\",6382 => \"/meteo/San+Pietro+in+guarano\",6383 => \"/meteo/San+Pietro+in+lama\",6384 => \"/meteo/San+Pietro+infine\",6385 => \"/meteo/San+Pietro+mosezzo\",6386 => \"/meteo/San+Pietro+mussolino\",6387 => \"/meteo/San+Pietro+val+lemina\",6388 => \"/meteo/San+Pietro+vernotico\",6389 => \"/meteo/San+Pietro+Viminario\",6390 => \"/meteo/San+Pio+delle+camere\",6391 => \"/meteo/San+Polo+d'enza\",6392 => \"/meteo/San+Polo+dei+cavalieri\",6393 => \"/meteo/San+Polo+di+Piave\",6394 => \"/meteo/San+Polo+matese\",6395 => \"/meteo/San+Ponso\",6396 => \"/meteo/San+Possidonio\",6397 => \"/meteo/San+Potito+sannitico\",6398 => \"/meteo/San+Potito+ultra\",6399 => \"/meteo/San+Prisco\",6400 => \"/meteo/San+Procopio\",6401 => \"/meteo/San+Prospero\",6402 => \"/meteo/San+Quirico+d'orcia\",8199 => \"/meteo/San+Quirico+d`Orcia\",6403 => \"/meteo/San+Quirino\",6404 => \"/meteo/San+Raffaele+cimena\",6405 => \"/meteo/San+Roberto\",6406 => \"/meteo/San+Rocco+al+porto\",6407 => \"/meteo/San+Romano+in+garfagnana\",6408 => \"/meteo/San+Rufo\",6409 => \"/meteo/San+Salvatore+di+fitalia\",6410 => \"/meteo/San+Salvatore+Monferrato\",6411 => \"/meteo/San+Salvatore+Telesino\",6412 => \"/meteo/San+Salvo\",8103 => \"/meteo/San+Salvo+Marina\",6413 => \"/meteo/San+Sebastiano+al+Vesuvio\",6414 => \"/meteo/San+Sebastiano+Curone\",6415 => \"/meteo/San+Sebastiano+da+Po\",6416 => \"/meteo/San+Secondo+di+Pinerolo\",6417 => \"/meteo/San+Secondo+Parmense\",6418 => \"/meteo/San+Severino+Lucano\",6419 => \"/meteo/San+Severino+Marche\",6420 => \"/meteo/San+Severo\",8347 => \"/meteo/San+Sicario+di+Cesana\",8289 => \"/meteo/San+Simone\",8539 => \"/meteo/San+Simone+Baita+del+Camoscio\",6421 => \"/meteo/San+Siro\",6422 => \"/meteo/San+Sossio+Baronia\",6423 => \"/meteo/San+Sostene\",6424 => \"/meteo/San+Sosti\",6425 => \"/meteo/San+Sperate\",6426 => \"/meteo/San+Tammaro\",6427 => \"/meteo/San+Teodoro\",8170 => \"/meteo/San+Teodoro\",6429 => \"/meteo/San+Tomaso+agordino\",8212 => \"/meteo/San+Valentino+alla+Muta\",6430 => \"/meteo/San+Valentino+in+abruzzo+citeriore\",6431 => \"/meteo/San+Valentino+torio\",6432 => \"/meteo/San+Venanzo\",6433 => \"/meteo/San+Vendemiano\",6434 => \"/meteo/San+Vero+milis\",6435 => \"/meteo/San+Vincenzo\",6436 => \"/meteo/San+Vincenzo+la+costa\",6437 => \"/meteo/San+Vincenzo+valle+roveto\",6438 => \"/meteo/San+Vitaliano\",8293 => \"/meteo/San+Vito\",6440 => \"/meteo/San+Vito+al+tagliamento\",6441 => \"/meteo/San+Vito+al+torre\",6442 => \"/meteo/San+Vito+chietino\",6443 => \"/meteo/San+Vito+dei+normanni\",6444 => \"/meteo/San+Vito+di+cadore\",6445 => \"/meteo/San+Vito+di+fagagna\",6446 => \"/meteo/San+Vito+di+leguzzano\",6447 => \"/meteo/San+Vito+lo+capo\",6448 => \"/meteo/San+Vito+romano\",6449 => \"/meteo/San+Vito+sullo+ionio\",6450 => \"/meteo/San+Vittore+del+lazio\",6451 => \"/meteo/San+Vittore+Olona\",6452 => \"/meteo/San+Zeno+di+montagna\",6453 => \"/meteo/San+Zeno+naviglio\",6454 => \"/meteo/San+Zenone+al+lambro\",6455 => \"/meteo/San+Zenone+al+po\",6456 => \"/meteo/San+Zenone+degli+ezzelini\",6457 => \"/meteo/Sanarica\",6458 => \"/meteo/Sandigliano\",6459 => \"/meteo/Sandrigo\",6460 => \"/meteo/Sanfre'\",6461 => \"/meteo/Sanfront\",6462 => \"/meteo/Sangano\",6463 => \"/meteo/Sangiano\",6464 => \"/meteo/Sangineto\",6465 => \"/meteo/Sanguinetto\",6466 => \"/meteo/Sanluri\",6467 => \"/meteo/Sannazzaro+de'+Burgondi\",6468 => \"/meteo/Sannicandro+di+bari\",6469 => \"/meteo/Sannicandro+garganico\",6470 => \"/meteo/Sannicola\",6471 => \"/meteo/Sanremo\",6472 => \"/meteo/Sansepolcro\",6473 => \"/meteo/Sant'Agapito\",6474 => \"/meteo/Sant'Agata+bolognese\",6475 => \"/meteo/Sant'Agata+de'+goti\",6476 => \"/meteo/Sant'Agata+del+bianco\",6477 => \"/meteo/Sant'Agata+di+esaro\",6478 => \"/meteo/Sant'Agata+di+Militello\",6479 => \"/meteo/Sant'Agata+di+Puglia\",6480 => \"/meteo/Sant'Agata+feltria\",6481 => \"/meteo/Sant'Agata+fossili\",6482 => \"/meteo/Sant'Agata+li+battiati\",6483 => \"/meteo/Sant'Agata+sul+Santerno\",6484 => \"/meteo/Sant'Agnello\",6485 => \"/meteo/Sant'Agostino\",6486 => \"/meteo/Sant'Albano+stura\",6487 => \"/meteo/Sant'Alessio+con+vialone\",6488 => \"/meteo/Sant'Alessio+in+aspromonte\",6489 => \"/meteo/Sant'Alessio+siculo\",6490 => \"/meteo/Sant'Alfio\",6491 => \"/meteo/Sant'Ambrogio+di+Torino\",6492 => \"/meteo/Sant'Ambrogio+di+valpolicella\",6493 => \"/meteo/Sant'Ambrogio+sul+garigliano\",6494 => \"/meteo/Sant'Anastasia\",6495 => \"/meteo/Sant'Anatolia+di+narco\",6496 => \"/meteo/Sant'Andrea+apostolo+dello+ionio\",6497 => \"/meteo/Sant'Andrea+del+garigliano\",6498 => \"/meteo/Sant'Andrea+di+conza\",6499 => \"/meteo/Sant'Andrea+Frius\",8763 => \"/meteo/Sant'Andrea+in+Monte\",6500 => \"/meteo/Sant'Angelo+a+cupolo\",6501 => \"/meteo/Sant'Angelo+a+fasanella\",6502 => \"/meteo/Sant'Angelo+a+scala\",6503 => \"/meteo/Sant'Angelo+all'esca\",6504 => \"/meteo/Sant'Angelo+d'alife\",6505 => \"/meteo/Sant'Angelo+dei+lombardi\",6506 => \"/meteo/Sant'Angelo+del+pesco\",6507 => \"/meteo/Sant'Angelo+di+brolo\",6508 => \"/meteo/Sant'Angelo+di+Piove+di+Sacco\",6509 => \"/meteo/Sant'Angelo+in+lizzola\",6510 => \"/meteo/Sant'Angelo+in+pontano\",6511 => \"/meteo/Sant'Angelo+in+vado\",6512 => \"/meteo/Sant'Angelo+le+fratte\",6513 => \"/meteo/Sant'Angelo+limosano\",6514 => \"/meteo/Sant'Angelo+lodigiano\",6515 => \"/meteo/Sant'Angelo+lomellina\",6516 => \"/meteo/Sant'Angelo+muxaro\",6517 => \"/meteo/Sant'Angelo+romano\",6518 => \"/meteo/Sant'Anna+Arresi\",6519 => \"/meteo/Sant'Anna+d'Alfaedo\",8730 => \"/meteo/Sant'Anna+di+Valdieri\",8698 => \"/meteo/Sant'Anna+di+Vinadio\",8563 => \"/meteo/Sant'Anna+Pelago\",6520 => \"/meteo/Sant'Antimo\",6521 => \"/meteo/Sant'Antioco\",6522 => \"/meteo/Sant'Antonino+di+Susa\",6523 => \"/meteo/Sant'Antonio+Abate\",6524 => \"/meteo/Sant'Antonio+di+gallura\",6525 => \"/meteo/Sant'Apollinare\",6526 => \"/meteo/Sant'Arcangelo\",6527 => \"/meteo/Sant'Arcangelo+trimonte\",6528 => \"/meteo/Sant'Arpino\",6529 => \"/meteo/Sant'Arsenio\",6530 => \"/meteo/Sant'Egidio+alla+vibrata\",6531 => \"/meteo/Sant'Egidio+del+monte+Albino\",6532 => \"/meteo/Sant'Elena\",6533 => \"/meteo/Sant'Elena+sannita\",6534 => \"/meteo/Sant'Elia+a+pianisi\",6535 => \"/meteo/Sant'Elia+fiumerapido\",6536 => \"/meteo/Sant'Elpidio+a+mare\",6537 => \"/meteo/Sant'Eufemia+a+maiella\",6538 => \"/meteo/Sant'Eufemia+d'Aspromonte\",6539 => \"/meteo/Sant'Eusanio+del+Sangro\",6540 => \"/meteo/Sant'Eusanio+forconese\",6541 => \"/meteo/Sant'Ilario+d'Enza\",6542 => \"/meteo/Sant'Ilario+dello+Ionio\",6543 => \"/meteo/Sant'Ippolito\",6544 => \"/meteo/Sant'Olcese\",6545 => \"/meteo/Sant'Omero\",6546 => \"/meteo/Sant'Omobono+imagna\",6547 => \"/meteo/Sant'Onofrio\",6548 => \"/meteo/Sant'Oreste\",6549 => \"/meteo/Sant'Orsola+terme\",6550 => \"/meteo/Sant'Urbano\",6551 => \"/meteo/Santa+Brigida\",6552 => \"/meteo/Santa+Caterina+albanese\",6553 => \"/meteo/Santa+Caterina+dello+ionio\",8144 => \"/meteo/Santa+Caterina+Valfurva\",6554 => \"/meteo/Santa+Caterina+villarmosa\",6555 => \"/meteo/Santa+Cesarea+terme\",6556 => \"/meteo/Santa+Cristina+d'Aspromonte\",6557 => \"/meteo/Santa+Cristina+e+Bissone\",6558 => \"/meteo/Santa+Cristina+gela\",6559 => \"/meteo/Santa+Cristina+Valgardena\",6560 => \"/meteo/Santa+Croce+camerina\",6561 => \"/meteo/Santa+Croce+del+sannio\",6562 => \"/meteo/Santa+Croce+di+Magliano\",6563 => \"/meteo/Santa+Croce+sull'Arno\",6564 => \"/meteo/Santa+Domenica+talao\",6565 => \"/meteo/Santa+Domenica+Vittoria\",6566 => \"/meteo/Santa+Elisabetta\",6567 => \"/meteo/Santa+Fiora\",6568 => \"/meteo/Santa+Flavia\",6569 => \"/meteo/Santa+Giuletta\",6570 => \"/meteo/Santa+Giusta\",6571 => \"/meteo/Santa+Giustina\",6572 => \"/meteo/Santa+Giustina+in+Colle\",6573 => \"/meteo/Santa+Luce\",6574 => \"/meteo/Santa+Lucia+del+Mela\",6575 => \"/meteo/Santa+Lucia+di+Piave\",6576 => \"/meteo/Santa+Lucia+di+serino\",6577 => \"/meteo/Santa+Margherita+d'adige\",6578 => \"/meteo/Santa+Margherita+di+belice\",6579 => \"/meteo/Santa+Margherita+di+staffora\",8285 => \"/meteo/Santa+Margherita+Ligure\",6581 => \"/meteo/Santa+Maria+a+monte\",6582 => \"/meteo/Santa+Maria+a+vico\",6583 => \"/meteo/Santa+Maria+Capua+Vetere\",6584 => \"/meteo/Santa+Maria+coghinas\",6585 => \"/meteo/Santa+Maria+del+cedro\",6586 => \"/meteo/Santa+Maria+del+Molise\",6587 => \"/meteo/Santa+Maria+della+Versa\",8122 => \"/meteo/Santa+Maria+di+Castellabate\",6588 => \"/meteo/Santa+Maria+di+Licodia\",6589 => \"/meteo/Santa+Maria+di+sala\",6590 => \"/meteo/Santa+Maria+Hoe'\",6591 => \"/meteo/Santa+Maria+imbaro\",6592 => \"/meteo/Santa+Maria+la+carita'\",6593 => \"/meteo/Santa+Maria+la+fossa\",6594 => \"/meteo/Santa+Maria+la+longa\",6595 => \"/meteo/Santa+Maria+Maggiore\",6596 => \"/meteo/Santa+Maria+Nuova\",6597 => \"/meteo/Santa+Marina\",6598 => \"/meteo/Santa+Marina+salina\",6599 => \"/meteo/Santa+Marinella\",6600 => \"/meteo/Santa+Ninfa\",6601 => \"/meteo/Santa+Paolina\",6602 => \"/meteo/Santa+Severina\",6603 => \"/meteo/Santa+Sofia\",6604 => \"/meteo/Santa+Sofia+d'Epiro\",6605 => \"/meteo/Santa+Teresa+di+Riva\",6606 => \"/meteo/Santa+Teresa+gallura\",6607 => \"/meteo/Santa+Venerina\",6608 => \"/meteo/Santa+Vittoria+d'Alba\",6609 => \"/meteo/Santa+Vittoria+in+matenano\",6610 => \"/meteo/Santadi\",6611 => \"/meteo/Santarcangelo+di+Romagna\",6612 => \"/meteo/Sante+marie\",6613 => \"/meteo/Santena\",6614 => \"/meteo/Santeramo+in+colle\",6615 => \"/meteo/Santhia'\",6616 => \"/meteo/Santi+Cosma+e+Damiano\",6617 => \"/meteo/Santo+Stefano+al+mare\",6618 => \"/meteo/Santo+Stefano+Belbo\",6619 => \"/meteo/Santo+Stefano+d'Aveto\",6620 => \"/meteo/Santo+Stefano+del+sole\",6621 => \"/meteo/Santo+Stefano+di+Cadore\",6622 => \"/meteo/Santo+Stefano+di+Camastra\",6623 => \"/meteo/Santo+Stefano+di+Magra\",6624 => \"/meteo/Santo+Stefano+di+Rogliano\",6625 => \"/meteo/Santo+Stefano+di+Sessanio\",6626 => \"/meteo/Santo+Stefano+in+Aspromonte\",6627 => \"/meteo/Santo+Stefano+lodigiano\",6628 => \"/meteo/Santo+Stefano+quisquina\",6629 => \"/meteo/Santo+Stefano+roero\",6630 => \"/meteo/Santo+Stefano+Ticino\",6631 => \"/meteo/Santo+Stino+di+Livenza\",6632 => \"/meteo/Santomenna\",6633 => \"/meteo/Santopadre\",6634 => \"/meteo/Santorso\",6635 => \"/meteo/Santu+Lussurgiu\",8419 => \"/meteo/Sant`Angelo+le+fratte\",6636 => \"/meteo/Sanza\",6637 => \"/meteo/Sanzeno\",6638 => \"/meteo/Saonara\",6639 => \"/meteo/Saponara\",6640 => \"/meteo/Sappada\",6641 => \"/meteo/Sapri\",6642 => \"/meteo/Saracena\",6643 => \"/meteo/Saracinesco\",6644 => \"/meteo/Sarcedo\",8377 => \"/meteo/Sarconi\",6646 => \"/meteo/Sardara\",6647 => \"/meteo/Sardigliano\",6648 => \"/meteo/Sarego\",6649 => \"/meteo/Sarentino\",6650 => \"/meteo/Sarezzano\",6651 => \"/meteo/Sarezzo\",6652 => \"/meteo/Sarmato\",6653 => \"/meteo/Sarmede\",6654 => \"/meteo/Sarnano\",6655 => \"/meteo/Sarnico\",6656 => \"/meteo/Sarno\",6657 => \"/meteo/Sarnonico\",6658 => \"/meteo/Saronno\",6659 => \"/meteo/Sarre\",6660 => \"/meteo/Sarroch\",6661 => \"/meteo/Sarsina\",6662 => \"/meteo/Sarteano\",6663 => \"/meteo/Sartirana+lomellina\",6664 => \"/meteo/Sarule\",6665 => \"/meteo/Sarzana\",6666 => \"/meteo/Sassano\",6667 => \"/meteo/Sassari\",6668 => \"/meteo/Sassello\",6669 => \"/meteo/Sassetta\",6670 => \"/meteo/Sassinoro\",8387 => \"/meteo/Sasso+di+castalda\",6672 => \"/meteo/Sasso+marconi\",6673 => \"/meteo/Sassocorvaro\",6674 => \"/meteo/Sassofeltrio\",6675 => \"/meteo/Sassoferrato\",8656 => \"/meteo/Sassotetto\",6676 => \"/meteo/Sassuolo\",6677 => \"/meteo/Satriano\",8420 => \"/meteo/Satriano+di+Lucania\",6679 => \"/meteo/Sauris\",6680 => \"/meteo/Sauze+d'Oulx\",6681 => \"/meteo/Sauze+di+Cesana\",6682 => \"/meteo/Sava\",6683 => \"/meteo/Savelli\",6684 => \"/meteo/Saviano\",6685 => \"/meteo/Savigliano\",6686 => \"/meteo/Savignano+irpino\",6687 => \"/meteo/Savignano+sul+Panaro\",6688 => \"/meteo/Savignano+sul+Rubicone\",6689 => \"/meteo/Savigno\",6690 => \"/meteo/Savignone\",6691 => \"/meteo/Saviore+dell'Adamello\",6692 => \"/meteo/Savoca\",6693 => \"/meteo/Savogna\",6694 => \"/meteo/Savogna+d'Isonzo\",8411 => \"/meteo/Savoia+di+Lucania\",6696 => \"/meteo/Savona\",6697 => \"/meteo/Scafa\",6698 => \"/meteo/Scafati\",6699 => \"/meteo/Scagnello\",6700 => \"/meteo/Scala\",6701 => \"/meteo/Scala+coeli\",6702 => \"/meteo/Scaldasole\",6703 => \"/meteo/Scalea\",6704 => \"/meteo/Scalenghe\",6705 => \"/meteo/Scaletta+Zanclea\",6706 => \"/meteo/Scampitella\",6707 => \"/meteo/Scandale\",6708 => \"/meteo/Scandiano\",6709 => \"/meteo/Scandicci\",6710 => \"/meteo/Scandolara+ravara\",6711 => \"/meteo/Scandolara+ripa+d'Oglio\",6712 => \"/meteo/Scandriglia\",6713 => \"/meteo/Scanno\",6714 => \"/meteo/Scano+di+montiferro\",6715 => \"/meteo/Scansano\",6716 => \"/meteo/Scanzano+jonico\",6717 => \"/meteo/Scanzorosciate\",6718 => \"/meteo/Scapoli\",8120 => \"/meteo/Scario\",6719 => \"/meteo/Scarlino\",6720 => \"/meteo/Scarmagno\",6721 => \"/meteo/Scarnafigi\",6722 => \"/meteo/Scarperia\",8139 => \"/meteo/Scauri\",6723 => \"/meteo/Scena\",6724 => \"/meteo/Scerni\",6725 => \"/meteo/Scheggia+e+pascelupo\",6726 => \"/meteo/Scheggino\",6727 => \"/meteo/Schiavi+di+Abruzzo\",6728 => \"/meteo/Schiavon\",8456 => \"/meteo/Schiavonea+di+Corigliano\",6729 => \"/meteo/Schignano\",6730 => \"/meteo/Schilpario\",6731 => \"/meteo/Schio\",6732 => \"/meteo/Schivenoglia\",6733 => \"/meteo/Sciacca\",6734 => \"/meteo/Sciara\",6735 => \"/meteo/Scicli\",6736 => \"/meteo/Scido\",6737 => \"/meteo/Scigliano\",6738 => \"/meteo/Scilla\",6739 => \"/meteo/Scillato\",6740 => \"/meteo/Sciolze\",6741 => \"/meteo/Scisciano\",6742 => \"/meteo/Sclafani+bagni\",6743 => \"/meteo/Scontrone\",6744 => \"/meteo/Scopa\",6745 => \"/meteo/Scopello\",6746 => \"/meteo/Scoppito\",6747 => \"/meteo/Scordia\",6748 => \"/meteo/Scorrano\",6749 => \"/meteo/Scorze'\",6750 => \"/meteo/Scurcola+marsicana\",6751 => \"/meteo/Scurelle\",6752 => \"/meteo/Scurzolengo\",6753 => \"/meteo/Seborga\",6754 => \"/meteo/Secinaro\",6755 => \"/meteo/Secli'\",8336 => \"/meteo/Secondino\",6756 => \"/meteo/Secugnago\",6757 => \"/meteo/Sedegliano\",6758 => \"/meteo/Sedico\",6759 => \"/meteo/Sedilo\",6760 => \"/meteo/Sedini\",6761 => \"/meteo/Sedriano\",6762 => \"/meteo/Sedrina\",6763 => \"/meteo/Sefro\",6764 => \"/meteo/Segariu\",8714 => \"/meteo/Segesta\",6765 => \"/meteo/Seggiano\",6766 => \"/meteo/Segni\",6767 => \"/meteo/Segonzano\",6768 => \"/meteo/Segrate\",6769 => \"/meteo/Segusino\",6770 => \"/meteo/Selargius\",6771 => \"/meteo/Selci\",6772 => \"/meteo/Selegas\",8715 => \"/meteo/Selinunte\",8130 => \"/meteo/Sella+Nevea\",6773 => \"/meteo/Sellano\",8651 => \"/meteo/Sellata+Arioso\",6774 => \"/meteo/Sellero\",8238 => \"/meteo/Selletta\",6775 => \"/meteo/Sellia\",6776 => \"/meteo/Sellia+marina\",6777 => \"/meteo/Selva+dei+Molini\",6778 => \"/meteo/Selva+di+Cadore\",6779 => \"/meteo/Selva+di+Progno\",6780 => \"/meteo/Selva+di+Val+Gardena\",6781 => \"/meteo/Selvazzano+dentro\",6782 => \"/meteo/Selve+marcone\",6783 => \"/meteo/Selvino\",6784 => \"/meteo/Semestene\",6785 => \"/meteo/Semiana\",6786 => \"/meteo/Seminara\",6787 => \"/meteo/Semproniano\",6788 => \"/meteo/Senago\",6789 => \"/meteo/Senale+San+Felice\",6790 => \"/meteo/Senales\",6791 => \"/meteo/Seneghe\",6792 => \"/meteo/Senerchia\",6793 => \"/meteo/Seniga\",6794 => \"/meteo/Senigallia\",6795 => \"/meteo/Senis\",6796 => \"/meteo/Senise\",6797 => \"/meteo/Senna+comasco\",6798 => \"/meteo/Senna+lodigiana\",6799 => \"/meteo/Sennariolo\",6800 => \"/meteo/Sennori\",6801 => \"/meteo/Senorbi'\",6802 => \"/meteo/Sepino\",6803 => \"/meteo/Seppiana\",6804 => \"/meteo/Sequals\",6805 => \"/meteo/Seravezza\",6806 => \"/meteo/Serdiana\",6807 => \"/meteo/Seregno\",6808 => \"/meteo/Seren+del+grappa\",6809 => \"/meteo/Sergnano\",6810 => \"/meteo/Seriate\",6811 => \"/meteo/Serina\",6812 => \"/meteo/Serino\",6813 => \"/meteo/Serle\",6814 => \"/meteo/Sermide\",6815 => \"/meteo/Sermoneta\",6816 => \"/meteo/Sernaglia+della+Battaglia\",6817 => \"/meteo/Sernio\",6818 => \"/meteo/Serole\",6819 => \"/meteo/Serra+d'aiello\",6820 => \"/meteo/Serra+de'conti\",6821 => \"/meteo/Serra+pedace\",6822 => \"/meteo/Serra+ricco'\",6823 => \"/meteo/Serra+San+Bruno\",6824 => \"/meteo/Serra+San+Quirico\",6825 => \"/meteo/Serra+Sant'Abbondio\",6826 => \"/meteo/Serracapriola\",6827 => \"/meteo/Serradifalco\",6828 => \"/meteo/Serralunga+d'Alba\",6829 => \"/meteo/Serralunga+di+Crea\",6830 => \"/meteo/Serramanna\",6831 => \"/meteo/Serramazzoni\",6832 => \"/meteo/Serramezzana\",6833 => \"/meteo/Serramonacesca\",6834 => \"/meteo/Serrapetrona\",6835 => \"/meteo/Serrara+fontana\",6836 => \"/meteo/Serrastretta\",6837 => \"/meteo/Serrata\",6838 => \"/meteo/Serravalle+a+po\",6839 => \"/meteo/Serravalle+di+chienti\",6840 => \"/meteo/Serravalle+langhe\",6841 => \"/meteo/Serravalle+pistoiese\",6842 => \"/meteo/Serravalle+Scrivia\",6843 => \"/meteo/Serravalle+Sesia\",6844 => \"/meteo/Serre\",6845 => \"/meteo/Serrenti\",6846 => \"/meteo/Serri\",6847 => \"/meteo/Serrone\",6848 => \"/meteo/Serrungarina\",6849 => \"/meteo/Sersale\",6850 => \"/meteo/Servigliano\",6851 => \"/meteo/Sessa+aurunca\",6852 => \"/meteo/Sessa+cilento\",6853 => \"/meteo/Sessame\",6854 => \"/meteo/Sessano+del+Molise\",6855 => \"/meteo/Sesta+godano\",6856 => \"/meteo/Sestino\",6857 => \"/meteo/Sesto\",6858 => \"/meteo/Sesto+al+reghena\",6859 => \"/meteo/Sesto+calende\",8709 => \"/meteo/Sesto+Calende+Alta\",6860 => \"/meteo/Sesto+campano\",6861 => \"/meteo/Sesto+ed+Uniti\",6862 => \"/meteo/Sesto+fiorentino\",6863 => \"/meteo/Sesto+San+Giovanni\",6864 => \"/meteo/Sestola\",6865 => \"/meteo/Sestri+levante\",6866 => \"/meteo/Sestriere\",6867 => \"/meteo/Sestu\",6868 => \"/meteo/Settala\",8316 => \"/meteo/Settebagni\",6869 => \"/meteo/Settefrati\",6870 => \"/meteo/Settime\",6871 => \"/meteo/Settimo+milanese\",6872 => \"/meteo/Settimo+rottaro\",6873 => \"/meteo/Settimo+San+Pietro\",6874 => \"/meteo/Settimo+torinese\",6875 => \"/meteo/Settimo+vittone\",6876 => \"/meteo/Settingiano\",6877 => \"/meteo/Setzu\",6878 => \"/meteo/Seui\",6879 => \"/meteo/Seulo\",6880 => \"/meteo/Seveso\",6881 => \"/meteo/Sezzadio\",6882 => \"/meteo/Sezze\",6883 => \"/meteo/Sfruz\",6884 => \"/meteo/Sgonico\",6885 => \"/meteo/Sgurgola\",6886 => \"/meteo/Siamaggiore\",6887 => \"/meteo/Siamanna\",6888 => \"/meteo/Siano\",6889 => \"/meteo/Siapiccia\",8114 => \"/meteo/Sibari\",6890 => \"/meteo/Sicignano+degli+Alburni\",6891 => \"/meteo/Siculiana\",6892 => \"/meteo/Siddi\",6893 => \"/meteo/Siderno\",6894 => \"/meteo/Siena\",6895 => \"/meteo/Sigillo\",6896 => \"/meteo/Signa\",8603 => \"/meteo/Sigonella\",6897 => \"/meteo/Silandro\",6898 => \"/meteo/Silanus\",6899 => \"/meteo/Silea\",6900 => \"/meteo/Siligo\",6901 => \"/meteo/Siliqua\",6902 => \"/meteo/Silius\",6903 => \"/meteo/Sillano\",6904 => \"/meteo/Sillavengo\",6905 => \"/meteo/Silvano+d'orba\",6906 => \"/meteo/Silvano+pietra\",6907 => \"/meteo/Silvi\",6908 => \"/meteo/Simala\",6909 => \"/meteo/Simaxis\",6910 => \"/meteo/Simbario\",6911 => \"/meteo/Simeri+crichi\",6912 => \"/meteo/Sinagra\",6913 => \"/meteo/Sinalunga\",6914 => \"/meteo/Sindia\",6915 => \"/meteo/Sini\",6916 => \"/meteo/Sinio\",6917 => \"/meteo/Siniscola\",6918 => \"/meteo/Sinnai\",6919 => \"/meteo/Sinopoli\",6920 => \"/meteo/Siracusa\",6921 => \"/meteo/Sirignano\",6922 => \"/meteo/Siris\",6923 => \"/meteo/Sirmione\",8457 => \"/meteo/Sirolo\",6925 => \"/meteo/Sirone\",6926 => \"/meteo/Siror\",6927 => \"/meteo/Sirtori\",6928 => \"/meteo/Sissa\",8492 => \"/meteo/Sistiana\",6929 => \"/meteo/Siurgus+donigala\",6930 => \"/meteo/Siziano\",6931 => \"/meteo/Sizzano\",8258 => \"/meteo/Ski+center+Latemar\",6932 => \"/meteo/Sluderno\",6933 => \"/meteo/Smarano\",6934 => \"/meteo/Smerillo\",6935 => \"/meteo/Soave\",8341 => \"/meteo/Sobretta+Vallalpe\",6936 => \"/meteo/Socchieve\",6937 => \"/meteo/Soddi\",6938 => \"/meteo/Sogliano+al+rubicone\",6939 => \"/meteo/Sogliano+Cavour\",6940 => \"/meteo/Soglio\",6941 => \"/meteo/Soiano+del+lago\",6942 => \"/meteo/Solagna\",6943 => \"/meteo/Solarino\",6944 => \"/meteo/Solaro\",6945 => \"/meteo/Solarolo\",6946 => \"/meteo/Solarolo+Rainerio\",6947 => \"/meteo/Solarussa\",6948 => \"/meteo/Solbiate\",6949 => \"/meteo/Solbiate+Arno\",6950 => \"/meteo/Solbiate+Olona\",8307 => \"/meteo/Solda\",6951 => \"/meteo/Soldano\",6952 => \"/meteo/Soleminis\",6953 => \"/meteo/Solero\",6954 => \"/meteo/Solesino\",6955 => \"/meteo/Soleto\",6956 => \"/meteo/Solferino\",6957 => \"/meteo/Soliera\",6958 => \"/meteo/Solignano\",6959 => \"/meteo/Solofra\",6960 => \"/meteo/Solonghello\",6961 => \"/meteo/Solopaca\",6962 => \"/meteo/Solto+collina\",6963 => \"/meteo/Solza\",6964 => \"/meteo/Somaglia\",6965 => \"/meteo/Somano\",6966 => \"/meteo/Somma+lombardo\",6967 => \"/meteo/Somma+vesuviana\",6968 => \"/meteo/Sommacampagna\",6969 => \"/meteo/Sommariva+del+bosco\",6970 => \"/meteo/Sommariva+Perno\",6971 => \"/meteo/Sommatino\",6972 => \"/meteo/Sommo\",6973 => \"/meteo/Sona\",6974 => \"/meteo/Soncino\",6975 => \"/meteo/Sondalo\",6976 => \"/meteo/Sondrio\",6977 => \"/meteo/Songavazzo\",6978 => \"/meteo/Sonico\",6979 => \"/meteo/Sonnino\",6980 => \"/meteo/Soprana\",6981 => \"/meteo/Sora\",6982 => \"/meteo/Soraga\",6983 => \"/meteo/Soragna\",6984 => \"/meteo/Sorano\",6985 => \"/meteo/Sorbo+San+Basile\",6986 => \"/meteo/Sorbo+Serpico\",6987 => \"/meteo/Sorbolo\",6988 => \"/meteo/Sordevolo\",6989 => \"/meteo/Sordio\",6990 => \"/meteo/Soresina\",6991 => \"/meteo/Sorga'\",6992 => \"/meteo/Sorgono\",6993 => \"/meteo/Sori\",6994 => \"/meteo/Sorianello\",6995 => \"/meteo/Soriano+calabro\",6996 => \"/meteo/Soriano+nel+cimino\",6997 => \"/meteo/Sorico\",6998 => \"/meteo/Soriso\",6999 => \"/meteo/Sorisole\",7000 => \"/meteo/Sormano\",7001 => \"/meteo/Sorradile\",7002 => \"/meteo/Sorrento\",7003 => \"/meteo/Sorso\",7004 => \"/meteo/Sortino\",7005 => \"/meteo/Sospiro\",7006 => \"/meteo/Sospirolo\",7007 => \"/meteo/Sossano\",7008 => \"/meteo/Sostegno\",7009 => \"/meteo/Sotto+il+monte+Giovanni+XXIII\",8747 => \"/meteo/Sottomarina\",7010 => \"/meteo/Sover\",7011 => \"/meteo/Soverato\",7012 => \"/meteo/Sovere\",7013 => \"/meteo/Soveria+mannelli\",7014 => \"/meteo/Soveria+simeri\",7015 => \"/meteo/Soverzene\",7016 => \"/meteo/Sovicille\",7017 => \"/meteo/Sovico\",7018 => \"/meteo/Sovizzo\",7019 => \"/meteo/Sovramonte\",7020 => \"/meteo/Sozzago\",7021 => \"/meteo/Spadafora\",7022 => \"/meteo/Spadola\",7023 => \"/meteo/Sparanise\",7024 => \"/meteo/Sparone\",7025 => \"/meteo/Specchia\",7026 => \"/meteo/Spello\",8585 => \"/meteo/Spelonga\",7027 => \"/meteo/Spera\",7028 => \"/meteo/Sperlinga\",7029 => \"/meteo/Sperlonga\",7030 => \"/meteo/Sperone\",7031 => \"/meteo/Spessa\",7032 => \"/meteo/Spezzano+albanese\",7033 => \"/meteo/Spezzano+della+Sila\",7034 => \"/meteo/Spezzano+piccolo\",7035 => \"/meteo/Spiazzo\",7036 => \"/meteo/Spigno+monferrato\",7037 => \"/meteo/Spigno+saturnia\",7038 => \"/meteo/Spilamberto\",7039 => \"/meteo/Spilimbergo\",7040 => \"/meteo/Spilinga\",7041 => \"/meteo/Spinadesco\",7042 => \"/meteo/Spinazzola\",7043 => \"/meteo/Spinea\",7044 => \"/meteo/Spineda\",7045 => \"/meteo/Spinete\",7046 => \"/meteo/Spineto+Scrivia\",7047 => \"/meteo/Spinetoli\",7048 => \"/meteo/Spino+d'Adda\",7049 => \"/meteo/Spinone+al+lago\",8421 => \"/meteo/Spinoso\",7051 => \"/meteo/Spirano\",7052 => \"/meteo/Spoleto\",7053 => \"/meteo/Spoltore\",7054 => \"/meteo/Spongano\",7055 => \"/meteo/Spormaggiore\",7056 => \"/meteo/Sporminore\",7057 => \"/meteo/Spotorno\",7058 => \"/meteo/Spresiano\",7059 => \"/meteo/Spriana\",7060 => \"/meteo/Squillace\",7061 => \"/meteo/Squinzano\",8248 => \"/meteo/Staffal\",7062 => \"/meteo/Staffolo\",7063 => \"/meteo/Stagno+lombardo\",7064 => \"/meteo/Staiti\",7065 => \"/meteo/Staletti\",7066 => \"/meteo/Stanghella\",7067 => \"/meteo/Staranzano\",7068 => \"/meteo/Statte\",7069 => \"/meteo/Stazzano\",7070 => \"/meteo/Stazzema\",7071 => \"/meteo/Stazzona\",7072 => \"/meteo/Stefanaconi\",7073 => \"/meteo/Stella\",7074 => \"/meteo/Stella+cilento\",7075 => \"/meteo/Stellanello\",7076 => \"/meteo/Stelvio\",7077 => \"/meteo/Stenico\",7078 => \"/meteo/Sternatia\",7079 => \"/meteo/Stezzano\",7080 => \"/meteo/Stia\",7081 => \"/meteo/Stienta\",7082 => \"/meteo/Stigliano\",7083 => \"/meteo/Stignano\",7084 => \"/meteo/Stilo\",7085 => \"/meteo/Stimigliano\",7086 => \"/meteo/Stintino\",7087 => \"/meteo/Stio\",7088 => \"/meteo/Stornara\",7089 => \"/meteo/Stornarella\",7090 => \"/meteo/Storo\",7091 => \"/meteo/Stra\",7092 => \"/meteo/Stradella\",7093 => \"/meteo/Strambinello\",7094 => \"/meteo/Strambino\",7095 => \"/meteo/Strangolagalli\",7096 => \"/meteo/Stregna\",7097 => \"/meteo/Strembo\",7098 => \"/meteo/Stresa\",7099 => \"/meteo/Strevi\",7100 => \"/meteo/Striano\",7101 => \"/meteo/Strigno\",8182 => \"/meteo/Stromboli\",7102 => \"/meteo/Strona\",7103 => \"/meteo/Stroncone\",7104 => \"/meteo/Strongoli\",7105 => \"/meteo/Stroppiana\",7106 => \"/meteo/Stroppo\",7107 => \"/meteo/Strozza\",8493 => \"/meteo/Stupizza\",7108 => \"/meteo/Sturno\",7109 => \"/meteo/Suardi\",7110 => \"/meteo/Subbiano\",7111 => \"/meteo/Subiaco\",7112 => \"/meteo/Succivo\",7113 => \"/meteo/Sueglio\",7114 => \"/meteo/Suelli\",7115 => \"/meteo/Suello\",7116 => \"/meteo/Suisio\",7117 => \"/meteo/Sulbiate\",7118 => \"/meteo/Sulmona\",7119 => \"/meteo/Sulzano\",7120 => \"/meteo/Sumirago\",7121 => \"/meteo/Summonte\",7122 => \"/meteo/Suni\",7123 => \"/meteo/Suno\",7124 => \"/meteo/Supersano\",7125 => \"/meteo/Supino\",7126 => \"/meteo/Surano\",7127 => \"/meteo/Surbo\",7128 => \"/meteo/Susa\",7129 => \"/meteo/Susegana\",7130 => \"/meteo/Sustinente\",7131 => \"/meteo/Sutera\",7132 => \"/meteo/Sutri\",7133 => \"/meteo/Sutrio\",7134 => \"/meteo/Suvereto\",7135 => \"/meteo/Suzzara\",7136 => \"/meteo/Taceno\",7137 => \"/meteo/Tadasuni\",7138 => \"/meteo/Taggia\",7139 => \"/meteo/Tagliacozzo\",8450 => \"/meteo/Tagliacozzo+casello\",7140 => \"/meteo/Taglio+di+po\",7141 => \"/meteo/Tagliolo+monferrato\",7142 => \"/meteo/Taibon+agordino\",7143 => \"/meteo/Taino\",7144 => \"/meteo/Taio\",7145 => \"/meteo/Taipana\",7146 => \"/meteo/Talamello\",7147 => \"/meteo/Talamona\",8299 => \"/meteo/Talamone\",7148 => \"/meteo/Talana\",7149 => \"/meteo/Taleggio\",7150 => \"/meteo/Talla\",7151 => \"/meteo/Talmassons\",7152 => \"/meteo/Tambre\",7153 => \"/meteo/Taormina\",7154 => \"/meteo/Tapogliano\",7155 => \"/meteo/Tarano\",7156 => \"/meteo/Taranta+peligna\",7157 => \"/meteo/Tarantasca\",7158 => \"/meteo/Taranto\",8550 => \"/meteo/Taranto+M.+A.+Grottaglie\",7159 => \"/meteo/Tarcento\",7160 => \"/meteo/Tarquinia\",8140 => \"/meteo/Tarquinia+Lido\",7161 => \"/meteo/Tarsia\",7162 => \"/meteo/Tartano\",7163 => \"/meteo/Tarvisio\",8466 => \"/meteo/Tarvisio+casello\",7164 => \"/meteo/Tarzo\",7165 => \"/meteo/Tassarolo\",7166 => \"/meteo/Tassullo\",7167 => \"/meteo/Taurano\",7168 => \"/meteo/Taurasi\",7169 => \"/meteo/Taurianova\",7170 => \"/meteo/Taurisano\",7171 => \"/meteo/Tavagnacco\",7172 => \"/meteo/Tavagnasco\",7173 => \"/meteo/Tavarnelle+val+di+pesa\",7174 => \"/meteo/Tavazzano+con+villavesco\",7175 => \"/meteo/Tavenna\",7176 => \"/meteo/Taverna\",7177 => \"/meteo/Tavernerio\",7178 => \"/meteo/Tavernola+bergamasca\",7179 => \"/meteo/Tavernole+sul+Mella\",7180 => \"/meteo/Taviano\",7181 => \"/meteo/Tavigliano\",7182 => \"/meteo/Tavoleto\",7183 => \"/meteo/Tavullia\",8362 => \"/meteo/Teana\",7185 => \"/meteo/Teano\",7186 => \"/meteo/Teggiano\",7187 => \"/meteo/Teglio\",7188 => \"/meteo/Teglio+veneto\",7189 => \"/meteo/Telese+terme\",7190 => \"/meteo/Telgate\",7191 => \"/meteo/Telti\",7192 => \"/meteo/Telve\",7193 => \"/meteo/Telve+di+sopra\",7194 => \"/meteo/Tempio+Pausania\",7195 => \"/meteo/Temu'\",7196 => \"/meteo/Tenna\",7197 => \"/meteo/Tenno\",7198 => \"/meteo/Teolo\",7199 => \"/meteo/Teor\",7200 => \"/meteo/Teora\",7201 => \"/meteo/Teramo\",8449 => \"/meteo/Teramo+Val+Vomano\",7202 => \"/meteo/Terdobbiate\",7203 => \"/meteo/Terelle\",7204 => \"/meteo/Terento\",7205 => \"/meteo/Terenzo\",7206 => \"/meteo/Tergu\",7207 => \"/meteo/Terlago\",7208 => \"/meteo/Terlano\",7209 => \"/meteo/Terlizzi\",8158 => \"/meteo/Terme+di+Lurisia\",7210 => \"/meteo/Terme+vigliatore\",7211 => \"/meteo/Termeno+sulla+strada+del+vino\",7212 => \"/meteo/Termini+imerese\",8133 => \"/meteo/Terminillo\",7213 => \"/meteo/Termoli\",7214 => \"/meteo/Ternate\",7215 => \"/meteo/Ternengo\",7216 => \"/meteo/Terni\",7217 => \"/meteo/Terno+d'isola\",7218 => \"/meteo/Terracina\",7219 => \"/meteo/Terragnolo\",7220 => \"/meteo/Terralba\",7221 => \"/meteo/Terranova+da+Sibari\",7222 => \"/meteo/Terranova+dei+passerini\",8379 => \"/meteo/Terranova+di+Pollino\",7224 => \"/meteo/Terranova+Sappo+Minulio\",7225 => \"/meteo/Terranuova+bracciolini\",7226 => \"/meteo/Terrasini\",7227 => \"/meteo/Terrassa+padovana\",7228 => \"/meteo/Terravecchia\",7229 => \"/meteo/Terrazzo\",7230 => \"/meteo/Terres\",7231 => \"/meteo/Terricciola\",7232 => \"/meteo/Terruggia\",7233 => \"/meteo/Tertenia\",7234 => \"/meteo/Terzigno\",7235 => \"/meteo/Terzo\",7236 => \"/meteo/Terzo+d'Aquileia\",7237 => \"/meteo/Terzolas\",7238 => \"/meteo/Terzorio\",7239 => \"/meteo/Tesero\",7240 => \"/meteo/Tesimo\",7241 => \"/meteo/Tessennano\",7242 => \"/meteo/Testico\",7243 => \"/meteo/Teti\",7244 => \"/meteo/Teulada\",7245 => \"/meteo/Teverola\",7246 => \"/meteo/Tezze+sul+Brenta\",8716 => \"/meteo/Tharros\",7247 => \"/meteo/Thiene\",7248 => \"/meteo/Thiesi\",7249 => \"/meteo/Tiana\",7250 => \"/meteo/Tiarno+di+sopra\",7251 => \"/meteo/Tiarno+di+sotto\",7252 => \"/meteo/Ticengo\",7253 => \"/meteo/Ticineto\",7254 => \"/meteo/Tiggiano\",7255 => \"/meteo/Tiglieto\",7256 => \"/meteo/Tigliole\",7257 => \"/meteo/Tignale\",7258 => \"/meteo/Tinnura\",7259 => \"/meteo/Tione+degli+Abruzzi\",7260 => \"/meteo/Tione+di+Trento\",7261 => \"/meteo/Tirano\",7262 => \"/meteo/Tires\",7263 => \"/meteo/Tiriolo\",7264 => \"/meteo/Tirolo\",8194 => \"/meteo/Tirrenia\",8719 => \"/meteo/Tiscali\",7265 => \"/meteo/Tissi\",8422 => \"/meteo/Tito\",7267 => \"/meteo/Tivoli\",8451 => \"/meteo/Tivoli+casello\",7268 => \"/meteo/Tizzano+val+Parma\",7269 => \"/meteo/Toano\",7270 => \"/meteo/Tocco+caudio\",7271 => \"/meteo/Tocco+da+Casauria\",7272 => \"/meteo/Toceno\",7273 => \"/meteo/Todi\",7274 => \"/meteo/Toffia\",7275 => \"/meteo/Toirano\",7276 => \"/meteo/Tolentino\",7277 => \"/meteo/Tolfa\",7278 => \"/meteo/Tollegno\",7279 => \"/meteo/Tollo\",7280 => \"/meteo/Tolmezzo\",8423 => \"/meteo/Tolve\",7282 => \"/meteo/Tombolo\",7283 => \"/meteo/Ton\",7284 => \"/meteo/Tonadico\",7285 => \"/meteo/Tonara\",7286 => \"/meteo/Tonco\",7287 => \"/meteo/Tonengo\",7288 => \"/meteo/Tonezza+del+Cimone\",7289 => \"/meteo/Tora+e+piccilli\",8132 => \"/meteo/Torano\",7290 => \"/meteo/Torano+castello\",7291 => \"/meteo/Torano+nuovo\",7292 => \"/meteo/Torbole+casaglia\",7293 => \"/meteo/Torcegno\",7294 => \"/meteo/Torchiara\",7295 => \"/meteo/Torchiarolo\",7296 => \"/meteo/Torella+dei+lombardi\",7297 => \"/meteo/Torella+del+sannio\",7298 => \"/meteo/Torgiano\",7299 => \"/meteo/Torgnon\",7300 => \"/meteo/Torino\",8271 => \"/meteo/Torino+Caselle\",7301 => \"/meteo/Torino+di+Sangro\",8494 => \"/meteo/Torino+di+Sangro+Marina\",7302 => \"/meteo/Toritto\",7303 => \"/meteo/Torlino+Vimercati\",7304 => \"/meteo/Tornaco\",7305 => \"/meteo/Tornareccio\",7306 => \"/meteo/Tornata\",7307 => \"/meteo/Tornimparte\",8445 => \"/meteo/Tornimparte+casello\",7308 => \"/meteo/Torno\",7309 => \"/meteo/Tornolo\",7310 => \"/meteo/Toro\",7311 => \"/meteo/Torpe'\",7312 => \"/meteo/Torraca\",7313 => \"/meteo/Torralba\",7314 => \"/meteo/Torrazza+coste\",7315 => \"/meteo/Torrazza+Piemonte\",7316 => \"/meteo/Torrazzo\",7317 => \"/meteo/Torre+Annunziata\",7318 => \"/meteo/Torre+Beretti+e+Castellaro\",7319 => \"/meteo/Torre+boldone\",7320 => \"/meteo/Torre+bormida\",7321 => \"/meteo/Torre+cajetani\",7322 => \"/meteo/Torre+canavese\",7323 => \"/meteo/Torre+d'arese\",7324 => \"/meteo/Torre+d'isola\",7325 => \"/meteo/Torre+de'+passeri\",7326 => \"/meteo/Torre+de'busi\",7327 => \"/meteo/Torre+de'negri\",7328 => \"/meteo/Torre+de'picenardi\",7329 => \"/meteo/Torre+de'roveri\",7330 => \"/meteo/Torre+del+greco\",7331 => \"/meteo/Torre+di+mosto\",7332 => \"/meteo/Torre+di+ruggiero\",7333 => \"/meteo/Torre+di+Santa+Maria\",7334 => \"/meteo/Torre+le+nocelle\",7335 => \"/meteo/Torre+mondovi'\",7336 => \"/meteo/Torre+orsaia\",8592 => \"/meteo/Torre+Pali\",7337 => \"/meteo/Torre+pallavicina\",7338 => \"/meteo/Torre+pellice\",7339 => \"/meteo/Torre+San+Giorgio\",8596 => \"/meteo/Torre+San+Giovanni\",8595 => \"/meteo/Torre+San+Gregorio\",7340 => \"/meteo/Torre+San+Patrizio\",7341 => \"/meteo/Torre+Santa+Susanna\",8593 => \"/meteo/Torre+Vado\",7342 => \"/meteo/Torreano\",7343 => \"/meteo/Torrebelvicino\",7344 => \"/meteo/Torrebruna\",7345 => \"/meteo/Torrecuso\",7346 => \"/meteo/Torreglia\",7347 => \"/meteo/Torregrotta\",7348 => \"/meteo/Torremaggiore\",7349 => \"/meteo/Torrenova\",7350 => \"/meteo/Torresina\",7351 => \"/meteo/Torretta\",7352 => \"/meteo/Torrevecchia+pia\",7353 => \"/meteo/Torrevecchia+teatina\",7354 => \"/meteo/Torri+del+benaco\",7355 => \"/meteo/Torri+di+quartesolo\",7356 => \"/meteo/Torri+in+sabina\",7357 => \"/meteo/Torriana\",7358 => \"/meteo/Torrice\",7359 => \"/meteo/Torricella\",7360 => \"/meteo/Torricella+del+pizzo\",7361 => \"/meteo/Torricella+in+sabina\",7362 => \"/meteo/Torricella+peligna\",7363 => \"/meteo/Torricella+sicura\",7364 => \"/meteo/Torricella+verzate\",7365 => \"/meteo/Torriglia\",7366 => \"/meteo/Torrile\",7367 => \"/meteo/Torrioni\",7368 => \"/meteo/Torrita+di+Siena\",7369 => \"/meteo/Torrita+tiberina\",7370 => \"/meteo/Tortoli'\",7371 => \"/meteo/Tortona\",7372 => \"/meteo/Tortora\",7373 => \"/meteo/Tortorella\",7374 => \"/meteo/Tortoreto\",8601 => \"/meteo/Tortoreto+lido\",7375 => \"/meteo/Tortorici\",8138 => \"/meteo/Torvaianica\",7376 => \"/meteo/Torviscosa\",7377 => \"/meteo/Toscolano+maderno\",7378 => \"/meteo/Tossicia\",7379 => \"/meteo/Tovo+di+Sant'Agata\",7380 => \"/meteo/Tovo+San+Giacomo\",7381 => \"/meteo/Trabia\",7382 => \"/meteo/Tradate\",8214 => \"/meteo/Trafoi\",7383 => \"/meteo/Tramatza\",7384 => \"/meteo/Trambileno\",7385 => \"/meteo/Tramonti\",7386 => \"/meteo/Tramonti+di+sopra\",7387 => \"/meteo/Tramonti+di+sotto\",8412 => \"/meteo/Tramutola\",7389 => \"/meteo/Trana\",7390 => \"/meteo/Trani\",7391 => \"/meteo/Transacqua\",7392 => \"/meteo/Traona\",7393 => \"/meteo/Trapani\",8544 => \"/meteo/Trapani+Birgi\",7394 => \"/meteo/Trappeto\",7395 => \"/meteo/Trarego+Viggiona\",7396 => \"/meteo/Trasacco\",7397 => \"/meteo/Trasaghis\",7398 => \"/meteo/Trasquera\",7399 => \"/meteo/Tratalias\",7400 => \"/meteo/Trausella\",7401 => \"/meteo/Travaco'+siccomario\",7402 => \"/meteo/Travagliato\",7403 => \"/meteo/Travedona+monate\",7404 => \"/meteo/Traversella\",7405 => \"/meteo/Traversetolo\",7406 => \"/meteo/Traves\",7407 => \"/meteo/Travesio\",7408 => \"/meteo/Travo\",8187 => \"/meteo/Tre+fontane\",7409 => \"/meteo/Trebaseleghe\",7410 => \"/meteo/Trebisacce\",7411 => \"/meteo/Trecasali\",7412 => \"/meteo/Trecase\",7413 => \"/meteo/Trecastagni\",7414 => \"/meteo/Trecate\",7415 => \"/meteo/Trecchina\",7416 => \"/meteo/Trecenta\",7417 => \"/meteo/Tredozio\",7418 => \"/meteo/Treglio\",7419 => \"/meteo/Tregnago\",7420 => \"/meteo/Treia\",7421 => \"/meteo/Treiso\",7422 => \"/meteo/Tremenico\",7423 => \"/meteo/Tremestieri+etneo\",7424 => \"/meteo/Tremezzo\",7425 => \"/meteo/Tremosine\",7426 => \"/meteo/Trenta\",7427 => \"/meteo/Trentinara\",7428 => \"/meteo/Trento\",7429 => \"/meteo/Trentola-ducenta\",7430 => \"/meteo/Trenzano\",8146 => \"/meteo/Trepalle\",7431 => \"/meteo/Treppo+carnico\",7432 => \"/meteo/Treppo+grande\",7433 => \"/meteo/Trepuzzi\",7434 => \"/meteo/Trequanda\",7435 => \"/meteo/Tres\",7436 => \"/meteo/Tresana\",7437 => \"/meteo/Trescore+balneario\",7438 => \"/meteo/Trescore+cremasco\",7439 => \"/meteo/Tresigallo\",7440 => \"/meteo/Tresivio\",7441 => \"/meteo/Tresnuraghes\",7442 => \"/meteo/Trevenzuolo\",7443 => \"/meteo/Trevi\",7444 => \"/meteo/Trevi+nel+lazio\",7445 => \"/meteo/Trevico\",7446 => \"/meteo/Treviglio\",7447 => \"/meteo/Trevignano\",7448 => \"/meteo/Trevignano+romano\",7449 => \"/meteo/Treville\",7450 => \"/meteo/Treviolo\",7451 => \"/meteo/Treviso\",7452 => \"/meteo/Treviso+bresciano\",8543 => \"/meteo/Treviso+Sant'Angelo\",7453 => \"/meteo/Trezzano+rosa\",7454 => \"/meteo/Trezzano+sul+Naviglio\",7455 => \"/meteo/Trezzo+sull'Adda\",7456 => \"/meteo/Trezzo+Tinella\",7457 => \"/meteo/Trezzone\",7458 => \"/meteo/Tribano\",7459 => \"/meteo/Tribiano\",7460 => \"/meteo/Tribogna\",7461 => \"/meteo/Tricarico\",7462 => \"/meteo/Tricase\",8597 => \"/meteo/Tricase+porto\",7463 => \"/meteo/Tricerro\",7464 => \"/meteo/Tricesimo\",7465 => \"/meteo/Trichiana\",7466 => \"/meteo/Triei\",7467 => \"/meteo/Trieste\",8472 => \"/meteo/Trieste+Ronchi+dei+Legionari\",7468 => \"/meteo/Triggiano\",7469 => \"/meteo/Trigolo\",7470 => \"/meteo/Trinita+d'Agultu+e+Vignola\",7471 => \"/meteo/Trinita'\",7472 => \"/meteo/Trinitapoli\",7473 => \"/meteo/Trino\",7474 => \"/meteo/Triora\",7475 => \"/meteo/Tripi\",7476 => \"/meteo/Trisobbio\",7477 => \"/meteo/Trissino\",7478 => \"/meteo/Triuggio\",7479 => \"/meteo/Trivento\",7480 => \"/meteo/Trivero\",7481 => \"/meteo/Trivigliano\",7482 => \"/meteo/Trivignano+udinese\",8413 => \"/meteo/Trivigno\",7484 => \"/meteo/Trivolzio\",7485 => \"/meteo/Trodena\",7486 => \"/meteo/Trofarello\",7487 => \"/meteo/Troia\",7488 => \"/meteo/Troina\",7489 => \"/meteo/Tromello\",7490 => \"/meteo/Trontano\",7491 => \"/meteo/Tronzano+lago+maggiore\",7492 => \"/meteo/Tronzano+vercellese\",7493 => \"/meteo/Tropea\",7494 => \"/meteo/Trovo\",7495 => \"/meteo/Truccazzano\",7496 => \"/meteo/Tubre\",7497 => \"/meteo/Tuenno\",7498 => \"/meteo/Tufara\",7499 => \"/meteo/Tufillo\",7500 => \"/meteo/Tufino\",7501 => \"/meteo/Tufo\",7502 => \"/meteo/Tuglie\",7503 => \"/meteo/Tuili\",7504 => \"/meteo/Tula\",7505 => \"/meteo/Tuoro+sul+trasimeno\",7506 => \"/meteo/Turania\",7507 => \"/meteo/Turano+lodigiano\",7508 => \"/meteo/Turate\",7509 => \"/meteo/Turbigo\",7510 => \"/meteo/Turi\",7511 => \"/meteo/Turri\",7512 => \"/meteo/Turriaco\",7513 => \"/meteo/Turrivalignani\",8390 => \"/meteo/Tursi\",7515 => \"/meteo/Tusa\",7516 => \"/meteo/Tuscania\",7517 => \"/meteo/Ubiale+Clanezzo\",7518 => \"/meteo/Uboldo\",7519 => \"/meteo/Ucria\",7520 => \"/meteo/Udine\",7521 => \"/meteo/Ugento\",7522 => \"/meteo/Uggiano+la+chiesa\",7523 => \"/meteo/Uggiate+trevano\",7524 => \"/meteo/Ula'+Tirso\",7525 => \"/meteo/Ulassai\",7526 => \"/meteo/Ultimo\",7527 => \"/meteo/Umbertide\",7528 => \"/meteo/Umbriatico\",7529 => \"/meteo/Urago+d'Oglio\",7530 => \"/meteo/Uras\",7531 => \"/meteo/Urbana\",7532 => \"/meteo/Urbania\",7533 => \"/meteo/Urbe\",7534 => \"/meteo/Urbino\",7535 => \"/meteo/Urbisaglia\",7536 => \"/meteo/Urgnano\",7537 => \"/meteo/Uri\",7538 => \"/meteo/Ururi\",7539 => \"/meteo/Urzulei\",7540 => \"/meteo/Uscio\",7541 => \"/meteo/Usellus\",7542 => \"/meteo/Usini\",7543 => \"/meteo/Usmate+Velate\",7544 => \"/meteo/Ussana\",7545 => \"/meteo/Ussaramanna\",7546 => \"/meteo/Ussassai\",7547 => \"/meteo/Usseaux\",7548 => \"/meteo/Usseglio\",7549 => \"/meteo/Ussita\",7550 => \"/meteo/Ustica\",7551 => \"/meteo/Uta\",7552 => \"/meteo/Uzzano\",7553 => \"/meteo/Vaccarizzo+albanese\",7554 => \"/meteo/Vacone\",7555 => \"/meteo/Vacri\",7556 => \"/meteo/Vadena\",7557 => \"/meteo/Vado+ligure\",7558 => \"/meteo/Vagli+sotto\",7559 => \"/meteo/Vaglia\",8388 => \"/meteo/Vaglio+Basilicata\",7561 => \"/meteo/Vaglio+serra\",7562 => \"/meteo/Vaiano\",7563 => \"/meteo/Vaiano+cremasco\",7564 => \"/meteo/Vaie\",7565 => \"/meteo/Vailate\",7566 => \"/meteo/Vairano+Patenora\",7567 => \"/meteo/Vajont\",8511 => \"/meteo/Val+Canale\",7568 => \"/meteo/Val+della+torre\",8243 => \"/meteo/Val+di+Lei\",8237 => \"/meteo/Val+di+Luce\",7569 => \"/meteo/Val+di+nizza\",8440 => \"/meteo/Val+di+Sangro+casello\",7570 => \"/meteo/Val+di+vizze\",8223 => \"/meteo/Val+Ferret\",8521 => \"/meteo/Val+Grauson\",7571 => \"/meteo/Val+Masino\",7572 => \"/meteo/Val+Rezzo\",8215 => \"/meteo/Val+Senales\",8522 => \"/meteo/Val+Urtier\",8224 => \"/meteo/Val+Veny\",7573 => \"/meteo/Valbondione\",7574 => \"/meteo/Valbrembo\",7575 => \"/meteo/Valbrevenna\",7576 => \"/meteo/Valbrona\",8311 => \"/meteo/Valcava\",7577 => \"/meteo/Valda\",7578 => \"/meteo/Valdagno\",7579 => \"/meteo/Valdaora\",7580 => \"/meteo/Valdastico\",7581 => \"/meteo/Valdengo\",7582 => \"/meteo/Valderice\",7583 => \"/meteo/Valdidentro\",7584 => \"/meteo/Valdieri\",7585 => \"/meteo/Valdina\",7586 => \"/meteo/Valdisotto\",7587 => \"/meteo/Valdobbiadene\",7588 => \"/meteo/Valduggia\",7589 => \"/meteo/Valeggio\",7590 => \"/meteo/Valeggio+sul+Mincio\",7591 => \"/meteo/Valentano\",7592 => \"/meteo/Valenza\",7593 => \"/meteo/Valenzano\",7594 => \"/meteo/Valera+fratta\",7595 => \"/meteo/Valfabbrica\",7596 => \"/meteo/Valfenera\",7597 => \"/meteo/Valfloriana\",7598 => \"/meteo/Valfurva\",7599 => \"/meteo/Valganna\",7600 => \"/meteo/Valgioie\",7601 => \"/meteo/Valgoglio\",7602 => \"/meteo/Valgrana\",7603 => \"/meteo/Valgreghentino\",7604 => \"/meteo/Valgrisenche\",7605 => \"/meteo/Valguarnera+caropepe\",8344 => \"/meteo/Valico+Citerna\",8510 => \"/meteo/Valico+dei+Giovi\",8318 => \"/meteo/Valico+di+Monforte\",8509 => \"/meteo/Valico+di+Montemiletto\",8507 => \"/meteo/Valico+di+Scampitella\",7606 => \"/meteo/Vallada+agordina\",7607 => \"/meteo/Vallanzengo\",7608 => \"/meteo/Vallarsa\",7609 => \"/meteo/Vallata\",7610 => \"/meteo/Valle+agricola\",7611 => \"/meteo/Valle+Aurina\",7612 => \"/meteo/Valle+castellana\",8444 => \"/meteo/Valle+del+salto\",7613 => \"/meteo/Valle+dell'Angelo\",7614 => \"/meteo/Valle+di+Cadore\",7615 => \"/meteo/Valle+di+Casies\",7616 => \"/meteo/Valle+di+maddaloni\",7617 => \"/meteo/Valle+lomellina\",7618 => \"/meteo/Valle+mosso\",7619 => \"/meteo/Valle+salimbene\",7620 => \"/meteo/Valle+San+Nicolao\",7621 => \"/meteo/Vallebona\",7622 => \"/meteo/Vallecorsa\",7623 => \"/meteo/Vallecrosia\",7624 => \"/meteo/Valledolmo\",7625 => \"/meteo/Valledoria\",7626 => \"/meteo/Vallefiorita\",7627 => \"/meteo/Vallelonga\",7628 => \"/meteo/Vallelunga+pratameno\",7629 => \"/meteo/Vallemaio\",7630 => \"/meteo/Vallepietra\",7631 => \"/meteo/Vallerano\",7632 => \"/meteo/Vallermosa\",7633 => \"/meteo/Vallerotonda\",7634 => \"/meteo/Vallesaccarda\",8749 => \"/meteo/Valletta\",7635 => \"/meteo/Valleve\",7636 => \"/meteo/Valli+del+Pasubio\",7637 => \"/meteo/Vallinfreda\",7638 => \"/meteo/Vallio+terme\",7639 => \"/meteo/Vallo+della+Lucania\",7640 => \"/meteo/Vallo+di+Nera\",7641 => \"/meteo/Vallo+torinese\",8191 => \"/meteo/Vallombrosa\",8471 => \"/meteo/Vallon\",7642 => \"/meteo/Valloriate\",7643 => \"/meteo/Valmacca\",7644 => \"/meteo/Valmadrera\",7645 => \"/meteo/Valmala\",8313 => \"/meteo/Valmasino\",7646 => \"/meteo/Valmontone\",7647 => \"/meteo/Valmorea\",7648 => \"/meteo/Valmozzola\",7649 => \"/meteo/Valnegra\",7650 => \"/meteo/Valpelline\",7651 => \"/meteo/Valperga\",7652 => \"/meteo/Valprato+Soana\",7653 => \"/meteo/Valsavarenche\",7654 => \"/meteo/Valsecca\",7655 => \"/meteo/Valsinni\",7656 => \"/meteo/Valsolda\",7657 => \"/meteo/Valstagna\",7658 => \"/meteo/Valstrona\",7659 => \"/meteo/Valtopina\",7660 => \"/meteo/Valtorta\",8148 => \"/meteo/Valtorta+impianti\",7661 => \"/meteo/Valtournenche\",7662 => \"/meteo/Valva\",7663 => \"/meteo/Valvasone\",7664 => \"/meteo/Valverde\",7665 => \"/meteo/Valverde\",7666 => \"/meteo/Valvestino\",7667 => \"/meteo/Vandoies\",7668 => \"/meteo/Vanzaghello\",7669 => \"/meteo/Vanzago\",7670 => \"/meteo/Vanzone+con+San+Carlo\",7671 => \"/meteo/Vaprio+d'Adda\",7672 => \"/meteo/Vaprio+d'Agogna\",7673 => \"/meteo/Varallo\",7674 => \"/meteo/Varallo+Pombia\",7675 => \"/meteo/Varano+Borghi\",7676 => \"/meteo/Varano+de'+Melegari\",7677 => \"/meteo/Varapodio\",7678 => \"/meteo/Varazze\",8600 => \"/meteo/Varcaturo\",7679 => \"/meteo/Varco+sabino\",7680 => \"/meteo/Varedo\",7681 => \"/meteo/Varena\",7682 => \"/meteo/Varenna\",7683 => \"/meteo/Varese\",7684 => \"/meteo/Varese+ligure\",8284 => \"/meteo/Varigotti\",7685 => \"/meteo/Varisella\",7686 => \"/meteo/Varmo\",7687 => \"/meteo/Varna\",7688 => \"/meteo/Varsi\",7689 => \"/meteo/Varzi\",7690 => \"/meteo/Varzo\",7691 => \"/meteo/Vas\",7692 => \"/meteo/Vasanello\",7693 => \"/meteo/Vasia\",7694 => \"/meteo/Vasto\",7695 => \"/meteo/Vastogirardi\",7696 => \"/meteo/Vattaro\",7697 => \"/meteo/Vauda+canavese\",7698 => \"/meteo/Vazzano\",7699 => \"/meteo/Vazzola\",7700 => \"/meteo/Vecchiano\",7701 => \"/meteo/Vedano+al+Lambro\",7702 => \"/meteo/Vedano+Olona\",7703 => \"/meteo/Veddasca\",7704 => \"/meteo/Vedelago\",7705 => \"/meteo/Vedeseta\",7706 => \"/meteo/Veduggio+con+Colzano\",7707 => \"/meteo/Veggiano\",7708 => \"/meteo/Veglie\",7709 => \"/meteo/Veglio\",7710 => \"/meteo/Vejano\",7711 => \"/meteo/Veleso\",7712 => \"/meteo/Velezzo+lomellina\",8530 => \"/meteo/Vellano\",7713 => \"/meteo/Velletri\",7714 => \"/meteo/Vellezzo+Bellini\",7715 => \"/meteo/Velo+d'Astico\",7716 => \"/meteo/Velo+veronese\",7717 => \"/meteo/Velturno\",7718 => \"/meteo/Venafro\",7719 => \"/meteo/Venaria\",7720 => \"/meteo/Venarotta\",7721 => \"/meteo/Venasca\",7722 => \"/meteo/Venaus\",7723 => \"/meteo/Vendone\",7724 => \"/meteo/Vendrogno\",7725 => \"/meteo/Venegono+inferiore\",7726 => \"/meteo/Venegono+superiore\",7727 => \"/meteo/Venetico\",7728 => \"/meteo/Venezia\",8502 => \"/meteo/Venezia+Mestre\",8268 => \"/meteo/Venezia+Tessera\",7729 => \"/meteo/Veniano\",7730 => \"/meteo/Venosa\",7731 => \"/meteo/Venticano\",7732 => \"/meteo/Ventimiglia\",7733 => \"/meteo/Ventimiglia+di+Sicilia\",7734 => \"/meteo/Ventotene\",7735 => \"/meteo/Venzone\",7736 => \"/meteo/Verano\",7737 => \"/meteo/Verano+brianza\",7738 => \"/meteo/Verbania\",7739 => \"/meteo/Verbicaro\",7740 => \"/meteo/Vercana\",7741 => \"/meteo/Verceia\",7742 => \"/meteo/Vercelli\",7743 => \"/meteo/Vercurago\",7744 => \"/meteo/Verdellino\",7745 => \"/meteo/Verdello\",7746 => \"/meteo/Verderio+inferiore\",7747 => \"/meteo/Verderio+superiore\",7748 => \"/meteo/Verduno\",7749 => \"/meteo/Vergato\",7750 => \"/meteo/Vergemoli\",7751 => \"/meteo/Verghereto\",7752 => \"/meteo/Vergiate\",7753 => \"/meteo/Vermezzo\",7754 => \"/meteo/Vermiglio\",8583 => \"/meteo/Vernago\",7755 => \"/meteo/Vernante\",7756 => \"/meteo/Vernasca\",7757 => \"/meteo/Vernate\",7758 => \"/meteo/Vernazza\",7759 => \"/meteo/Vernio\",7760 => \"/meteo/Vernole\",7761 => \"/meteo/Verolanuova\",7762 => \"/meteo/Verolavecchia\",7763 => \"/meteo/Verolengo\",7764 => \"/meteo/Veroli\",7765 => \"/meteo/Verona\",8269 => \"/meteo/Verona+Villafranca\",7766 => \"/meteo/Veronella\",7767 => \"/meteo/Verrayes\",7768 => \"/meteo/Verres\",7769 => \"/meteo/Verretto\",7770 => \"/meteo/Verrone\",7771 => \"/meteo/Verrua+po\",7772 => \"/meteo/Verrua+Savoia\",7773 => \"/meteo/Vertemate+con+Minoprio\",7774 => \"/meteo/Vertova\",7775 => \"/meteo/Verucchio\",7776 => \"/meteo/Veruno\",7777 => \"/meteo/Vervio\",7778 => \"/meteo/Vervo'\",7779 => \"/meteo/Verzegnis\",7780 => \"/meteo/Verzino\",7781 => \"/meteo/Verzuolo\",7782 => \"/meteo/Vescovana\",7783 => \"/meteo/Vescovato\",7784 => \"/meteo/Vesime\",7785 => \"/meteo/Vespolate\",7786 => \"/meteo/Vessalico\",7787 => \"/meteo/Vestenanova\",7788 => \"/meteo/Vestigne'\",7789 => \"/meteo/Vestone\",7790 => \"/meteo/Vestreno\",7791 => \"/meteo/Vetralla\",7792 => \"/meteo/Vetto\",7793 => \"/meteo/Vezza+d'Alba\",7794 => \"/meteo/Vezza+d'Oglio\",7795 => \"/meteo/Vezzano\",7796 => \"/meteo/Vezzano+ligure\",7797 => \"/meteo/Vezzano+sul+crostolo\",7798 => \"/meteo/Vezzi+portio\",8317 => \"/meteo/Vezzo\",7799 => \"/meteo/Viadana\",7800 => \"/meteo/Viadanica\",7801 => \"/meteo/Viagrande\",7802 => \"/meteo/Viale\",7803 => \"/meteo/Vialfre'\",7804 => \"/meteo/Viano\",7805 => \"/meteo/Viareggio\",7806 => \"/meteo/Viarigi\",8674 => \"/meteo/Vibo+Marina\",7807 => \"/meteo/Vibo+Valentia\",7808 => \"/meteo/Vibonati\",7809 => \"/meteo/Vicalvi\",7810 => \"/meteo/Vicari\",7811 => \"/meteo/Vicchio\",7812 => \"/meteo/Vicenza\",7813 => \"/meteo/Vico+canavese\",7814 => \"/meteo/Vico+del+Gargano\",7815 => \"/meteo/Vico+Equense\",7816 => \"/meteo/Vico+nel+Lazio\",7817 => \"/meteo/Vicoforte\",7818 => \"/meteo/Vicoli\",7819 => \"/meteo/Vicolungo\",7820 => \"/meteo/Vicopisano\",7821 => \"/meteo/Vicovaro\",7822 => \"/meteo/Viddalba\",7823 => \"/meteo/Vidigulfo\",7824 => \"/meteo/Vidor\",7825 => \"/meteo/Vidracco\",7826 => \"/meteo/Vieste\",7827 => \"/meteo/Vietri+di+Potenza\",7828 => \"/meteo/Vietri+sul+mare\",7829 => \"/meteo/Viganella\",7830 => \"/meteo/Vigano+San+Martino\",7831 => \"/meteo/Vigano'\",7832 => \"/meteo/Vigarano+Mainarda\",7833 => \"/meteo/Vigasio\",7834 => \"/meteo/Vigevano\",7835 => \"/meteo/Viggianello\",7836 => \"/meteo/Viggiano\",7837 => \"/meteo/Viggiu'\",7838 => \"/meteo/Vighizzolo+d'Este\",7839 => \"/meteo/Vigliano+biellese\",7840 => \"/meteo/Vigliano+d'Asti\",7841 => \"/meteo/Vignale+monferrato\",7842 => \"/meteo/Vignanello\",7843 => \"/meteo/Vignate\",8125 => \"/meteo/Vignola\",7845 => \"/meteo/Vignola+Falesina\",7846 => \"/meteo/Vignole+Borbera\",7847 => \"/meteo/Vignolo\",7848 => \"/meteo/Vignone\",8514 => \"/meteo/Vigo+Ciampedie\",7849 => \"/meteo/Vigo+di+Cadore\",7850 => \"/meteo/Vigo+di+Fassa\",7851 => \"/meteo/Vigo+Rendena\",7852 => \"/meteo/Vigodarzere\",7853 => \"/meteo/Vigolo\",7854 => \"/meteo/Vigolo+Vattaro\",7855 => \"/meteo/Vigolzone\",7856 => \"/meteo/Vigone\",7857 => \"/meteo/Vigonovo\",7858 => \"/meteo/Vigonza\",7859 => \"/meteo/Viguzzolo\",7860 => \"/meteo/Villa+agnedo\",7861 => \"/meteo/Villa+bartolomea\",7862 => \"/meteo/Villa+basilica\",7863 => \"/meteo/Villa+biscossi\",7864 => \"/meteo/Villa+carcina\",7865 => \"/meteo/Villa+castelli\",7866 => \"/meteo/Villa+celiera\",7867 => \"/meteo/Villa+collemandina\",7868 => \"/meteo/Villa+cortese\",7869 => \"/meteo/Villa+d'Adda\",7870 => \"/meteo/Villa+d'Alme'\",7871 => \"/meteo/Villa+d'Ogna\",7872 => \"/meteo/Villa+del+bosco\",7873 => \"/meteo/Villa+del+conte\",7874 => \"/meteo/Villa+di+briano\",7875 => \"/meteo/Villa+di+Chiavenna\",7876 => \"/meteo/Villa+di+Serio\",7877 => \"/meteo/Villa+di+Tirano\",7878 => \"/meteo/Villa+Estense\",7879 => \"/meteo/Villa+Faraldi\",7880 => \"/meteo/Villa+Guardia\",7881 => \"/meteo/Villa+Lagarina\",7882 => \"/meteo/Villa+Latina\",7883 => \"/meteo/Villa+Literno\",7884 => \"/meteo/Villa+minozzo\",7885 => \"/meteo/Villa+poma\",7886 => \"/meteo/Villa+rendena\",7887 => \"/meteo/Villa+San+Giovanni\",7888 => \"/meteo/Villa+San+Giovanni+in+Tuscia\",7889 => \"/meteo/Villa+San+Pietro\",7890 => \"/meteo/Villa+San+Secondo\",7891 => \"/meteo/Villa+Sant'Angelo\",7892 => \"/meteo/Villa+Sant'Antonio\",7893 => \"/meteo/Villa+Santa+Lucia\",7894 => \"/meteo/Villa+Santa+Lucia+degli+Abruzzi\",7895 => \"/meteo/Villa+Santa+Maria\",7896 => \"/meteo/Villa+Santina\",7897 => \"/meteo/Villa+Santo+Stefano\",7898 => \"/meteo/Villa+verde\",7899 => \"/meteo/Villa+vicentina\",7900 => \"/meteo/Villabassa\",7901 => \"/meteo/Villabate\",7902 => \"/meteo/Villachiara\",7903 => \"/meteo/Villacidro\",7904 => \"/meteo/Villadeati\",7905 => \"/meteo/Villadose\",7906 => \"/meteo/Villadossola\",7907 => \"/meteo/Villafalletto\",7908 => \"/meteo/Villafranca+d'Asti\",7909 => \"/meteo/Villafranca+di+Verona\",7910 => \"/meteo/Villafranca+in+Lunigiana\",7911 => \"/meteo/Villafranca+padovana\",7912 => \"/meteo/Villafranca+Piemonte\",7913 => \"/meteo/Villafranca+sicula\",7914 => \"/meteo/Villafranca+tirrena\",7915 => \"/meteo/Villafrati\",7916 => \"/meteo/Villaga\",7917 => \"/meteo/Villagrande+Strisaili\",7918 => \"/meteo/Villalago\",7919 => \"/meteo/Villalba\",7920 => \"/meteo/Villalfonsina\",7921 => \"/meteo/Villalvernia\",7922 => \"/meteo/Villamagna\",7923 => \"/meteo/Villamaina\",7924 => \"/meteo/Villamar\",7925 => \"/meteo/Villamarzana\",7926 => \"/meteo/Villamassargia\",7927 => \"/meteo/Villamiroglio\",7928 => \"/meteo/Villandro\",7929 => \"/meteo/Villanova+biellese\",7930 => \"/meteo/Villanova+canavese\",7931 => \"/meteo/Villanova+d'Albenga\",7932 => \"/meteo/Villanova+d'Ardenghi\",7933 => \"/meteo/Villanova+d'Asti\",7934 => \"/meteo/Villanova+del+Battista\",7935 => \"/meteo/Villanova+del+Ghebbo\",7936 => \"/meteo/Villanova+del+Sillaro\",7937 => \"/meteo/Villanova+di+Camposampiero\",7938 => \"/meteo/Villanova+marchesana\",7939 => \"/meteo/Villanova+Mondovi'\",7940 => \"/meteo/Villanova+Monferrato\",7941 => \"/meteo/Villanova+Monteleone\",7942 => \"/meteo/Villanova+solaro\",7943 => \"/meteo/Villanova+sull'Arda\",7944 => \"/meteo/Villanova+Truschedu\",7945 => \"/meteo/Villanova+Tulo\",7946 => \"/meteo/Villanovaforru\",7947 => \"/meteo/Villanovafranca\",7948 => \"/meteo/Villanterio\",7949 => \"/meteo/Villanuova+sul+Clisi\",7950 => \"/meteo/Villaperuccio\",7951 => \"/meteo/Villapiana\",7952 => \"/meteo/Villaputzu\",7953 => \"/meteo/Villar+dora\",7954 => \"/meteo/Villar+focchiardo\",7955 => \"/meteo/Villar+pellice\",7956 => \"/meteo/Villar+Perosa\",7957 => \"/meteo/Villar+San+Costanzo\",7958 => \"/meteo/Villarbasse\",7959 => \"/meteo/Villarboit\",7960 => \"/meteo/Villareggia\",7961 => \"/meteo/Villaricca\",7962 => \"/meteo/Villaromagnano\",7963 => \"/meteo/Villarosa\",7964 => \"/meteo/Villasalto\",7965 => \"/meteo/Villasanta\",7966 => \"/meteo/Villasimius\",7967 => \"/meteo/Villasor\",7968 => \"/meteo/Villaspeciosa\",7969 => \"/meteo/Villastellone\",7970 => \"/meteo/Villata\",7971 => \"/meteo/Villaurbana\",7972 => \"/meteo/Villavallelonga\",7973 => \"/meteo/Villaverla\",7974 => \"/meteo/Villeneuve\",7975 => \"/meteo/Villesse\",7976 => \"/meteo/Villetta+Barrea\",7977 => \"/meteo/Villette\",7978 => \"/meteo/Villimpenta\",7979 => \"/meteo/Villongo\",7980 => \"/meteo/Villorba\",7981 => \"/meteo/Vilminore+di+scalve\",7982 => \"/meteo/Vimercate\",7983 => \"/meteo/Vimodrone\",7984 => \"/meteo/Vinadio\",7985 => \"/meteo/Vinchiaturo\",7986 => \"/meteo/Vinchio\",7987 => \"/meteo/Vinci\",7988 => \"/meteo/Vinovo\",7989 => \"/meteo/Vinzaglio\",7990 => \"/meteo/Viola\",7991 => \"/meteo/Vione\",7992 => \"/meteo/Vipiteno\",7993 => \"/meteo/Virgilio\",7994 => \"/meteo/Virle+Piemonte\",7995 => \"/meteo/Visano\",7996 => \"/meteo/Vische\",7997 => \"/meteo/Visciano\",7998 => \"/meteo/Visco\",7999 => \"/meteo/Visone\",8000 => \"/meteo/Visso\",8001 => \"/meteo/Vistarino\",8002 => \"/meteo/Vistrorio\",8003 => \"/meteo/Vita\",8004 => \"/meteo/Viterbo\",8005 => \"/meteo/Viticuso\",8006 => \"/meteo/Vito+d'Asio\",8007 => \"/meteo/Vitorchiano\",8008 => \"/meteo/Vittoria\",8009 => \"/meteo/Vittorio+Veneto\",8010 => \"/meteo/Vittorito\",8011 => \"/meteo/Vittuone\",8012 => \"/meteo/Vitulano\",8013 => \"/meteo/Vitulazio\",8014 => \"/meteo/Viu'\",8015 => \"/meteo/Vivaro\",8016 => \"/meteo/Vivaro+romano\",8017 => \"/meteo/Viverone\",8018 => \"/meteo/Vizzini\",8019 => \"/meteo/Vizzola+Ticino\",8020 => \"/meteo/Vizzolo+Predabissi\",8021 => \"/meteo/Vo'\",8022 => \"/meteo/Vobarno\",8023 => \"/meteo/Vobbia\",8024 => \"/meteo/Vocca\",8025 => \"/meteo/Vodo+cadore\",8026 => \"/meteo/Voghera\",8027 => \"/meteo/Voghiera\",8028 => \"/meteo/Vogogna\",8029 => \"/meteo/Volano\",8030 => \"/meteo/Volla\",8031 => \"/meteo/Volongo\",8032 => \"/meteo/Volpago+del+montello\",8033 => \"/meteo/Volpara\",8034 => \"/meteo/Volpedo\",8035 => \"/meteo/Volpeglino\",8036 => \"/meteo/Volpiano\",8037 => \"/meteo/Volta+mantovana\",8038 => \"/meteo/Voltaggio\",8039 => \"/meteo/Voltago+agordino\",8040 => \"/meteo/Volterra\",8041 => \"/meteo/Voltido\",8042 => \"/meteo/Volturara+Appula\",8043 => \"/meteo/Volturara+irpina\",8044 => \"/meteo/Volturino\",8045 => \"/meteo/Volvera\",8046 => \"/meteo/Vottignasco\",8181 => \"/meteo/Vulcano+Porto\",8047 => \"/meteo/Zaccanopoli\",8048 => \"/meteo/Zafferana+etnea\",8049 => \"/meteo/Zagarise\",8050 => \"/meteo/Zagarolo\",8051 => \"/meteo/Zambana\",8707 => \"/meteo/Zambla\",8052 => \"/meteo/Zambrone\",8053 => \"/meteo/Zandobbio\",8054 => \"/meteo/Zane'\",8055 => \"/meteo/Zanica\",8056 => \"/meteo/Zapponeta\",8057 => \"/meteo/Zavattarello\",8058 => \"/meteo/Zeccone\",8059 => \"/meteo/Zeddiani\",8060 => \"/meteo/Zelbio\",8061 => \"/meteo/Zelo+Buon+Persico\",8062 => \"/meteo/Zelo+Surrigone\",8063 => \"/meteo/Zeme\",8064 => \"/meteo/Zenevredo\",8065 => \"/meteo/Zenson+di+Piave\",8066 => \"/meteo/Zerba\",8067 => \"/meteo/Zerbo\",8068 => \"/meteo/Zerbolo'\",8069 => \"/meteo/Zerfaliu\",8070 => \"/meteo/Zeri\",8071 => \"/meteo/Zermeghedo\",8072 => \"/meteo/Zero+Branco\",8073 => \"/meteo/Zevio\",8455 => \"/meteo/Ziano+di+Fiemme\",8075 => \"/meteo/Ziano+piacentino\",8076 => \"/meteo/Zibello\",8077 => \"/meteo/Zibido+San+Giacomo\",8078 => \"/meteo/Zignago\",8079 => \"/meteo/Zimella\",8080 => \"/meteo/Zimone\",8081 => \"/meteo/Zinasco\",8082 => \"/meteo/Zoagli\",8083 => \"/meteo/Zocca\",8084 => \"/meteo/Zogno\",8085 => \"/meteo/Zola+Predosa\",8086 => \"/meteo/Zoldo+alto\",8087 => \"/meteo/Zollino\",8088 => \"/meteo/Zone\",8089 => \"/meteo/Zoppe'+di+cadore\",8090 => \"/meteo/Zoppola\",8091 => \"/meteo/Zovencedo\",8092 => \"/meteo/Zubiena\",8093 => \"/meteo/Zuccarello\",8094 => \"/meteo/Zuclo\",8095 => \"/meteo/Zugliano\",8096 => \"/meteo/Zuglio\",8097 => \"/meteo/Zumaglia\",8098 => \"/meteo/Zumpano\",8099 => \"/meteo/Zungoli\",8100 => \"/meteo/Zungri\");\n\n$trebi_locs = array(1 => \"Abano terme\",2 => \"Abbadia cerreto\",3 => \"Abbadia lariana\",4 => \"Abbadia San Salvatore\",5 => \"Abbasanta\",6 => \"Abbateggio\",7 => \"Abbiategrasso\",8 => \"Abetone\",8399 => \"Abriola\",10 => \"Acate\",11 => \"Accadia\",12 => \"Acceglio\",8369 => \"Accettura\",14 => \"Acciano\",15 => \"Accumoli\",16 => \"Acerenza\",17 => \"Acerno\",18 => \"Acerra\",19 => \"Aci bonaccorsi\",20 => \"Aci castello\",21 => \"Aci Catena\",22 => \"Aci Sant'Antonio\",23 => \"Acireale\",24 => \"Acquacanina\",25 => \"Acquafondata\",26 => \"Acquaformosa\",27 => \"Acquafredda\",8750 => \"Acquafredda\",28 => \"Acqualagna\",29 => \"Acquanegra cremonese\",30 => \"Acquanegra sul chiese\",31 => \"Acquapendente\",32 => \"Acquappesa\",33 => \"Acquarica del capo\",34 => \"Acquaro\",35 => \"Acquasanta terme\",36 => \"Acquasparta\",37 => \"Acquaviva collecroce\",38 => \"Acquaviva d'Isernia\",39 => \"Acquaviva delle fonti\",40 => \"Acquaviva picena\",41 => \"Acquaviva platani\",42 => \"Acquedolci\",43 => \"Acqui terme\",44 => \"Acri\",45 => \"Acuto\",46 => \"Adelfia\",47 => \"Adrano\",48 => \"Adrara San Martino\",49 => \"Adrara San Rocco\",50 => \"Adria\",51 => \"Adro\",52 => \"Affi\",53 => \"Affile\",54 => \"Afragola\",55 => \"Africo\",56 => \"Agazzano\",57 => \"Agerola\",58 => \"Aggius\",59 => \"Agira\",60 => \"Agliana\",61 => \"Agliano\",62 => \"Aglie'\",63 => \"Aglientu\",64 => \"Agna\",65 => \"Agnadello\",66 => \"Agnana calabra\",8598 => \"Agnano\",67 => \"Agnone\",68 => \"Agnosine\",69 => \"Agordo\",70 => \"Agosta\",71 => \"Agra\",72 => \"Agrate brianza\",73 => \"Agrate conturbia\",74 => \"Agrigento\",75 => \"Agropoli\",76 => \"Agugliano\",77 => \"Agugliaro\",78 => \"Aicurzio\",79 => \"Aidomaggiore\",80 => \"Aidone\",81 => \"Aielli\",82 => \"Aiello calabro\",83 => \"Aiello del Friuli\",84 => \"Aiello del Sabato\",85 => \"Aieta\",86 => \"Ailano\",87 => \"Ailoche\",88 => \"Airasca\",89 => \"Airola\",90 => \"Airole\",91 => \"Airuno\",92 => \"Aisone\",93 => \"Ala\",94 => \"Ala di Stura\",95 => \"Ala' dei Sardi\",96 => \"Alagna\",97 => \"Alagna Valsesia\",98 => \"Alanno\",99 => \"Alano di Piave\",100 => \"Alassio\",101 => \"Alatri\",102 => \"Alba\",103 => \"Alba adriatica\",104 => \"Albagiara\",105 => \"Albairate\",106 => \"Albanella\",8386 => \"Albano di lucania\",108 => \"Albano laziale\",109 => \"Albano Sant'Alessandro\",110 => \"Albano vercellese\",111 => \"Albaredo arnaboldi\",112 => \"Albaredo d'Adige\",113 => \"Albaredo per San Marco\",114 => \"Albareto\",115 => \"Albaretto della torre\",116 => \"Albavilla\",117 => \"Albenga\",118 => \"Albera ligure\",119 => \"Alberobello\",120 => \"Alberona\",121 => \"Albese con Cassano\",122 => \"Albettone\",123 => \"Albi\",124 => \"Albiano\",125 => \"Albiano d'ivrea\",126 => \"Albiate\",127 => \"Albidona\",128 => \"Albignasego\",129 => \"Albinea\",130 => \"Albino\",131 => \"Albiolo\",132 => \"Albisola marina\",133 => \"Albisola superiore\",134 => \"Albizzate\",135 => \"Albonese\",136 => \"Albosaggia\",137 => \"Albugnano\",138 => \"Albuzzano\",139 => \"Alcamo\",140 => \"Alcara li Fusi\",141 => \"Aldeno\",142 => \"Aldino\",143 => \"Ales\",144 => \"Alessandria\",145 => \"Alessandria del Carretto\",146 => \"Alessandria della Rocca\",147 => \"Alessano\",148 => \"Alezio\",149 => \"Alfano\",150 => \"Alfedena\",151 => \"Alfianello\",152 => \"Alfiano natta\",153 => \"Alfonsine\",154 => \"Alghero\",8532 => \"Alghero Fertilia\",155 => \"Algua\",156 => \"Ali'\",157 => \"Ali' terme\",158 => \"Alia\",159 => \"Aliano\",160 => \"Alice bel colle\",161 => \"Alice castello\",162 => \"Alice superiore\",163 => \"Alife\",164 => \"Alimena\",165 => \"Aliminusa\",166 => \"Allai\",167 => \"Alleghe\",168 => \"Allein\",169 => \"Allerona\",170 => \"Alliste\",171 => \"Allumiere\",172 => \"Alluvioni cambio'\",173 => \"Alme'\",174 => \"Almenno San Bartolomeo\",175 => \"Almenno San Salvatore\",176 => \"Almese\",177 => \"Alonte\",8259 => \"Alpe Cermis\",8557 => \"Alpe Devero\",8162 => \"Alpe di Mera\",8565 => \"Alpe di Siusi\",8755 => \"Alpe Giumello\",8264 => \"Alpe Lusia\",8559 => \"Alpe Nevegal\",8239 => \"Alpe Tre Potenze\",8558 => \"Alpe Veglia\",8482 => \"Alpet\",178 => \"Alpette\",179 => \"Alpignano\",180 => \"Alseno\",181 => \"Alserio\",182 => \"Altamura\",8474 => \"Altare\",184 => \"Altavilla irpina\",185 => \"Altavilla milicia\",186 => \"Altavilla monferrato\",187 => \"Altavilla silentina\",188 => \"Altavilla vicentina\",189 => \"Altidona\",190 => \"Altilia\",191 => \"Altino\",192 => \"Altissimo\",193 => \"Altivole\",194 => \"Alto\",195 => \"Altofonte\",196 => \"Altomonte\",197 => \"Altopascio\",8536 => \"Altopiano dei Fiorentini\",8662 => \"Altopiano della Sila\",8640 => \"Altopiano di Renon\",198 => \"Alviano\",199 => \"Alvignano\",200 => \"Alvito\",201 => \"Alzano lombardo\",202 => \"Alzano scrivia\",203 => \"Alzate brianza\",204 => \"Amalfi\",205 => \"Amandola\",206 => \"Amantea\",207 => \"Amaro\",208 => \"Amaroni\",209 => \"Amaseno\",210 => \"Amato\",211 => \"Amatrice\",212 => \"Ambivere\",213 => \"Amblar\",214 => \"Ameglia\",215 => \"Amelia\",216 => \"Amendolara\",217 => \"Ameno\",218 => \"Amorosi\",219 => \"Ampezzo\",220 => \"Anacapri\",221 => \"Anagni\",8463 => \"Anagni casello\",222 => \"Ancarano\",223 => \"Ancona\",8267 => \"Ancona Falconara\",224 => \"Andali\",225 => \"Andalo\",226 => \"Andalo valtellino\",227 => \"Andezeno\",228 => \"Andora\",229 => \"Andorno micca\",230 => \"Andrano\",231 => \"Andrate\",232 => \"Andreis\",233 => \"Andretta\",234 => \"Andria\",235 => \"Andriano\",236 => \"Anela\",237 => \"Anfo\",238 => \"Angera\",239 => \"Anghiari\",240 => \"Angiari\",241 => \"Angolo terme\",242 => \"Angri\",243 => \"Angrogna\",244 => \"Anguillara sabazia\",245 => \"Anguillara veneta\",246 => \"Annicco\",247 => \"Annone di brianza\",248 => \"Annone veneto\",249 => \"Anoia\",8302 => \"Antagnod\",250 => \"Antegnate\",251 => \"Anterivo\",8211 => \"Anterselva di Sopra\",252 => \"Antey saint andre'\",253 => \"Anticoli Corrado\",254 => \"Antignano\",255 => \"Antillo\",256 => \"Antonimina\",257 => \"Antrodoco\",258 => \"Antrona Schieranco\",259 => \"Anversa degli Abruzzi\",260 => \"Anzano del Parco\",261 => \"Anzano di Puglia\",8400 => \"Anzi\",263 => \"Anzio\",264 => \"Anzola d'Ossola\",265 => \"Anzola dell'Emilia\",266 => \"Aosta\",8548 => \"Aosta Saint Christophe\",267 => \"Apecchio\",268 => \"Apice\",269 => \"Apiro\",270 => \"Apollosa\",271 => \"Appiano Gentile\",272 => \"Appiano sulla strada del vino\",273 => \"Appignano\",274 => \"Appignano del Tronto\",275 => \"Aprica\",276 => \"Apricale\",277 => \"Apricena\",278 => \"Aprigliano\",279 => \"Aprilia\",280 => \"Aquara\",281 => \"Aquila di Arroscia\",282 => \"Aquileia\",283 => \"Aquilonia\",284 => \"Aquino\",8228 => \"Arabba\",285 => \"Aradeo\",286 => \"Aragona\",287 => \"Aramengo\",288 => \"Arba\",8487 => \"Arbatax\",289 => \"Arborea\",290 => \"Arborio\",291 => \"Arbus\",292 => \"Arcade\",293 => \"Arce\",294 => \"Arcene\",295 => \"Arcevia\",296 => \"Archi\",297 => \"Arcidosso\",298 => \"Arcinazzo romano\",299 => \"Arcisate\",300 => \"Arco\",301 => \"Arcola\",302 => \"Arcole\",303 => \"Arconate\",304 => \"Arcore\",305 => \"Arcugnano\",306 => \"Ardara\",307 => \"Ardauli\",308 => \"Ardea\",309 => \"Ardenno\",310 => \"Ardesio\",311 => \"Ardore\",8675 => \"Ardore Marina\",8321 => \"Aremogna\",312 => \"Arena\",313 => \"Arena po\",314 => \"Arenzano\",315 => \"Arese\",316 => \"Arezzo\",317 => \"Argegno\",318 => \"Argelato\",319 => \"Argenta\",320 => \"Argentera\",321 => \"Arguello\",322 => \"Argusto\",323 => \"Ari\",324 => \"Ariano irpino\",325 => \"Ariano nel polesine\",326 => \"Ariccia\",327 => \"Arielli\",328 => \"Arienzo\",329 => \"Arignano\",330 => \"Aritzo\",331 => \"Arizzano\",332 => \"Arlena di castro\",333 => \"Arluno\",8677 => \"Arma di Taggia\",334 => \"Armeno\",8405 => \"Armento\",336 => \"Armo\",337 => \"Armungia\",338 => \"Arnad\",339 => \"Arnara\",340 => \"Arnasco\",341 => \"Arnesano\",342 => \"Arola\",343 => \"Arona\",344 => \"Arosio\",345 => \"Arpaia\",346 => \"Arpaise\",347 => \"Arpino\",348 => \"Arqua' Petrarca\",349 => \"Arqua' polesine\",350 => \"Arquata del tronto\",351 => \"Arquata scrivia\",352 => \"Arre\",353 => \"Arrone\",354 => \"Arsago Seprio\",355 => \"Arsie'\",356 => \"Arsiero\",357 => \"Arsita\",358 => \"Arsoli\",359 => \"Arta terme\",360 => \"Artegna\",361 => \"Artena\",8338 => \"Artesina\",362 => \"Artogne\",363 => \"Arvier\",364 => \"Arzachena\",365 => \"Arzago d'Adda\",366 => \"Arzana\",367 => \"Arzano\",368 => \"Arzene\",369 => \"Arzergrande\",370 => \"Arzignano\",371 => \"Ascea\",8513 => \"Asciano\",8198 => \"Asciano Pisano\",373 => \"Ascoli piceno\",374 => \"Ascoli satriano\",375 => \"Ascrea\",376 => \"Asiago\",377 => \"Asigliano Veneto\",378 => \"Asigliano vercellese\",379 => \"Asola\",380 => \"Asolo\",8438 => \"Aspio terme\",381 => \"Assago\",382 => \"Assemini\",8488 => \"Assergi\",8448 => \"Assergi casello\",383 => \"Assisi\",384 => \"Asso\",385 => \"Assolo\",386 => \"Assoro\",387 => \"Asti\",388 => \"Asuni\",389 => \"Ateleta\",8383 => \"Atella\",391 => \"Atena lucana\",392 => \"Atessa\",393 => \"Atina\",394 => \"Atrani\",395 => \"Atri\",396 => \"Atripalda\",397 => \"Attigliano\",398 => \"Attimis\",399 => \"Atzara\",400 => \"Auditore\",401 => \"Augusta\",402 => \"Auletta\",403 => \"Aulla\",404 => \"Aurano\",405 => \"Aurigo\",406 => \"Auronzo di cadore\",407 => \"Ausonia\",408 => \"Austis\",409 => \"Avegno\",410 => \"Avelengo\",411 => \"Avella\",412 => \"Avellino\",413 => \"Averara\",414 => \"Aversa\",415 => \"Avetrana\",416 => \"Avezzano\",417 => \"Aviano\",418 => \"Aviatico\",419 => \"Avigliana\",420 => \"Avigliano\",421 => \"Avigliano umbro\",422 => \"Avio\",423 => \"Avise\",424 => \"Avola\",425 => \"Avolasca\",426 => \"Ayas\",427 => \"Aymavilles\",428 => \"Azeglio\",429 => \"Azzanello\",430 => \"Azzano d'Asti\",431 => \"Azzano decimo\",432 => \"Azzano mella\",433 => \"Azzano San Paolo\",434 => \"Azzate\",435 => \"Azzio\",436 => \"Azzone\",437 => \"Baceno\",438 => \"Bacoli\",439 => \"Badalucco\",440 => \"Badesi\",441 => \"Badia\",442 => \"Badia calavena\",443 => \"Badia pavese\",444 => \"Badia polesine\",445 => \"Badia tedalda\",446 => \"Badolato\",447 => \"Bagaladi\",448 => \"Bagheria\",449 => \"Bagnacavallo\",450 => \"Bagnara calabra\",451 => \"Bagnara di romagna\",452 => \"Bagnaria\",453 => \"Bagnaria arsa\",454 => \"Bagnasco\",455 => \"Bagnatica\",456 => \"Bagni di Lucca\",8699 => \"Bagni di Vinadio\",457 => \"Bagno a Ripoli\",458 => \"Bagno di Romagna\",459 => \"Bagnoli del Trigno\",460 => \"Bagnoli di sopra\",461 => \"Bagnoli irpino\",462 => \"Bagnolo cremasco\",463 => \"Bagnolo del salento\",464 => \"Bagnolo di po\",465 => \"Bagnolo in piano\",466 => \"Bagnolo Mella\",467 => \"Bagnolo Piemonte\",468 => \"Bagnolo San Vito\",469 => \"Bagnone\",470 => \"Bagnoregio\",471 => \"Bagolino\",8123 => \"Baia Domizia\",472 => \"Baia e Latina\",473 => \"Baiano\",474 => \"Baiardo\",475 => \"Bairo\",476 => \"Baiso\",477 => \"Balangero\",478 => \"Baldichieri d'Asti\",479 => \"Baldissero canavese\",480 => \"Baldissero d'Alba\",481 => \"Baldissero torinese\",482 => \"Balestrate\",483 => \"Balestrino\",484 => \"Ballabio\",485 => \"Ballao\",486 => \"Balme\",487 => \"Balmuccia\",488 => \"Balocco\",489 => \"Balsorano\",490 => \"Balvano\",491 => \"Balzola\",492 => \"Banari\",493 => \"Banchette\",494 => \"Bannio anzino\",8368 => \"Banzi\",496 => \"Baone\",497 => \"Baradili\",8415 => \"Baragiano\",499 => \"Baranello\",500 => \"Barano d'Ischia\",501 => \"Barasso\",502 => \"Baratili San Pietro\",503 => \"Barbania\",504 => \"Barbara\",505 => \"Barbarano romano\",506 => \"Barbarano vicentino\",507 => \"Barbaresco\",508 => \"Barbariga\",509 => \"Barbata\",510 => \"Barberino di mugello\",511 => \"Barberino val d'elsa\",512 => \"Barbianello\",513 => \"Barbiano\",514 => \"Barbona\",515 => \"Barcellona pozzo di Gotto\",516 => \"Barchi\",517 => \"Barcis\",518 => \"Bard\",519 => \"Bardello\",520 => \"Bardi\",521 => \"Bardineto\",522 => \"Bardolino\",523 => \"Bardonecchia\",524 => \"Bareggio\",525 => \"Barengo\",526 => \"Baressa\",527 => \"Barete\",528 => \"Barga\",529 => \"Bargagli\",530 => \"Barge\",531 => \"Barghe\",532 => \"Bari\",8274 => \"Bari Palese\",533 => \"Bari sardo\",534 => \"Bariano\",535 => \"Baricella\",8402 => \"Barile\",537 => \"Barisciano\",538 => \"Barlassina\",539 => \"Barletta\",540 => \"Barni\",541 => \"Barolo\",542 => \"Barone canavese\",543 => \"Baronissi\",544 => \"Barrafranca\",545 => \"Barrali\",546 => \"Barrea\",8745 => \"Barricata\",547 => \"Barumini\",548 => \"Barzago\",549 => \"Barzana\",550 => \"Barzano'\",551 => \"Barzio\",552 => \"Basaluzzo\",553 => \"Bascape'\",554 => \"Baschi\",555 => \"Basciano\",556 => \"Baselga di Pine'\",557 => \"Baselice\",558 => \"Basiano\",559 => \"Basico'\",560 => \"Basiglio\",561 => \"Basiliano\",562 => \"Bassano bresciano\",563 => \"Bassano del grappa\",564 => \"Bassano in teverina\",565 => \"Bassano romano\",566 => \"Bassiano\",567 => \"Bassignana\",568 => \"Bastia\",569 => \"Bastia mondovi'\",570 => \"Bastida de' Dossi\",571 => \"Bastida pancarana\",572 => \"Bastiglia\",573 => \"Battaglia terme\",574 => \"Battifollo\",575 => \"Battipaglia\",576 => \"Battuda\",577 => \"Baucina\",578 => \"Bauladu\",579 => \"Baunei\",580 => \"Baveno\",581 => \"Bazzano\",582 => \"Bedero valcuvia\",583 => \"Bedizzole\",584 => \"Bedollo\",585 => \"Bedonia\",586 => \"Bedulita\",587 => \"Bee\",588 => \"Beinasco\",589 => \"Beinette\",590 => \"Belcastro\",591 => \"Belfiore\",592 => \"Belforte all'Isauro\",593 => \"Belforte del chienti\",594 => \"Belforte monferrato\",595 => \"Belgioioso\",596 => \"Belgirate\",597 => \"Bella\",598 => \"Bellagio\",8263 => \"Bellamonte\",599 => \"Bellano\",600 => \"Bellante\",601 => \"Bellaria Igea marina\",602 => \"Bellegra\",603 => \"Bellino\",604 => \"Bellinzago lombardo\",605 => \"Bellinzago novarese\",606 => \"Bellizzi\",607 => \"Bellona\",608 => \"Bellosguardo\",609 => \"Belluno\",610 => \"Bellusco\",611 => \"Belmonte calabro\",612 => \"Belmonte castello\",613 => \"Belmonte del sannio\",614 => \"Belmonte in sabina\",615 => \"Belmonte mezzagno\",616 => \"Belmonte piceno\",617 => \"Belpasso\",8573 => \"Belpiano Schoeneben\",618 => \"Belsito\",8265 => \"Belvedere\",619 => \"Belvedere di Spinello\",620 => \"Belvedere langhe\",621 => \"Belvedere marittimo\",622 => \"Belvedere ostrense\",623 => \"Belveglio\",624 => \"Belvi\",625 => \"Bema\",626 => \"Bene lario\",627 => \"Bene vagienna\",628 => \"Benestare\",629 => \"Benetutti\",630 => \"Benevello\",631 => \"Benevento\",632 => \"Benna\",633 => \"Bentivoglio\",634 => \"Berbenno\",635 => \"Berbenno di valtellina\",636 => \"Berceto\",637 => \"Berchidda\",638 => \"Beregazzo con Figliaro\",639 => \"Bereguardo\",640 => \"Bergamasco\",641 => \"Bergamo\",8519 => \"Bergamo città alta\",8497 => \"Bergamo Orio al Serio\",642 => \"Bergantino\",643 => \"Bergeggi\",644 => \"Bergolo\",645 => \"Berlingo\",646 => \"Bernalda\",647 => \"Bernareggio\",648 => \"Bernate ticino\",649 => \"Bernezzo\",650 => \"Berra\",651 => \"Bersone\",652 => \"Bertinoro\",653 => \"Bertiolo\",654 => \"Bertonico\",655 => \"Berzano di San Pietro\",656 => \"Berzano di Tortona\",657 => \"Berzo Demo\",658 => \"Berzo inferiore\",659 => \"Berzo San Fermo\",660 => \"Besana in brianza\",661 => \"Besano\",662 => \"Besate\",663 => \"Besenello\",664 => \"Besenzone\",665 => \"Besnate\",666 => \"Besozzo\",667 => \"Bessude\",668 => \"Bettola\",669 => \"Bettona\",670 => \"Beura Cardezza\",671 => \"Bevagna\",672 => \"Beverino\",673 => \"Bevilacqua\",674 => \"Bezzecca\",675 => \"Biancavilla\",676 => \"Bianchi\",677 => \"Bianco\",678 => \"Biandrate\",679 => \"Biandronno\",680 => \"Bianzano\",681 => \"Bianze'\",682 => \"Bianzone\",683 => \"Biassono\",684 => \"Bibbiano\",685 => \"Bibbiena\",686 => \"Bibbona\",687 => \"Bibiana\",8230 => \"Bibione\",688 => \"Biccari\",689 => \"Bicinicco\",690 => \"Bidoni'\",691 => \"Biella\",8163 => \"Bielmonte\",692 => \"Bienno\",693 => \"Bieno\",694 => \"Bientina\",695 => \"Bigarello\",696 => \"Binago\",697 => \"Binasco\",698 => \"Binetto\",699 => \"Bioglio\",700 => \"Bionaz\",701 => \"Bione\",702 => \"Birori\",703 => \"Bisaccia\",704 => \"Bisacquino\",705 => \"Bisceglie\",706 => \"Bisegna\",707 => \"Bisenti\",708 => \"Bisignano\",709 => \"Bistagno\",710 => \"Bisuschio\",711 => \"Bitetto\",712 => \"Bitonto\",713 => \"Bitritto\",714 => \"Bitti\",715 => \"Bivona\",716 => \"Bivongi\",717 => \"Bizzarone\",718 => \"Bleggio inferiore\",719 => \"Bleggio superiore\",720 => \"Blello\",721 => \"Blera\",722 => \"Blessagno\",723 => \"Blevio\",724 => \"Blufi\",725 => \"Boara Pisani\",726 => \"Bobbio\",727 => \"Bobbio Pellice\",728 => \"Boca\",8501 => \"Bocca di Magra\",729 => \"Bocchigliero\",730 => \"Boccioleto\",731 => \"Bocenago\",732 => \"Bodio Lomnago\",733 => \"Boffalora d'Adda\",734 => \"Boffalora sopra Ticino\",735 => \"Bogliasco\",736 => \"Bognanco\",8287 => \"Bognanco fonti\",737 => \"Bogogno\",738 => \"Boissano\",739 => \"Bojano\",740 => \"Bolano\",741 => \"Bolbeno\",742 => \"Bolgare\",743 => \"Bollate\",744 => \"Bollengo\",745 => \"Bologna\",8476 => \"Bologna Borgo Panigale\",746 => \"Bolognano\",747 => \"Bolognetta\",748 => \"Bolognola\",749 => \"Bolotana\",750 => \"Bolsena\",751 => \"Boltiere\",8505 => \"Bolzaneto\",752 => \"Bolzano\",753 => \"Bolzano novarese\",754 => \"Bolzano vicentino\",755 => \"Bomarzo\",756 => \"Bomba\",757 => \"Bompensiere\",758 => \"Bompietro\",759 => \"Bomporto\",760 => \"Bonarcado\",761 => \"Bonassola\",762 => \"Bonate sopra\",763 => \"Bonate sotto\",764 => \"Bonavigo\",765 => \"Bondeno\",766 => \"Bondo\",767 => \"Bondone\",768 => \"Bonea\",769 => \"Bonefro\",770 => \"Bonemerse\",771 => \"Bonifati\",772 => \"Bonito\",773 => \"Bonnanaro\",774 => \"Bono\",775 => \"Bonorva\",776 => \"Bonvicino\",777 => \"Borbona\",778 => \"Borca di cadore\",779 => \"Bordano\",780 => \"Bordighera\",781 => \"Bordolano\",782 => \"Bore\",783 => \"Boretto\",784 => \"Borgarello\",785 => \"Borgaro torinese\",786 => \"Borgetto\",787 => \"Borghetto d'arroscia\",788 => \"Borghetto di borbera\",789 => \"Borghetto di vara\",790 => \"Borghetto lodigiano\",791 => \"Borghetto Santo Spirito\",792 => \"Borghi\",793 => \"Borgia\",794 => \"Borgiallo\",795 => \"Borgio Verezzi\",796 => \"Borgo a Mozzano\",797 => \"Borgo d'Ale\",798 => \"Borgo di Terzo\",8159 => \"Borgo d`Ale\",799 => \"Borgo Pace\",800 => \"Borgo Priolo\",801 => \"Borgo San Dalmazzo\",802 => \"Borgo San Giacomo\",803 => \"Borgo San Giovanni\",804 => \"Borgo San Lorenzo\",805 => \"Borgo San Martino\",806 => \"Borgo San Siro\",807 => \"Borgo Ticino\",808 => \"Borgo Tossignano\",809 => \"Borgo Val di Taro\",810 => \"Borgo Valsugana\",811 => \"Borgo Velino\",812 => \"Borgo Vercelli\",813 => \"Borgoforte\",814 => \"Borgofranco d'Ivrea\",815 => \"Borgofranco sul Po\",816 => \"Borgolavezzaro\",817 => \"Borgomale\",818 => \"Borgomanero\",819 => \"Borgomaro\",820 => \"Borgomasino\",821 => \"Borgone susa\",822 => \"Borgonovo val tidone\",823 => \"Borgoratto alessandrino\",824 => \"Borgoratto mormorolo\",825 => \"Borgoricco\",826 => \"Borgorose\",827 => \"Borgosatollo\",828 => \"Borgosesia\",829 => \"Bormida\",830 => \"Bormio\",8334 => \"Bormio 2000\",8335 => \"Bormio 3000\",831 => \"Bornasco\",832 => \"Borno\",833 => \"Boroneddu\",834 => \"Borore\",835 => \"Borrello\",836 => \"Borriana\",837 => \"Borso del Grappa\",838 => \"Bortigali\",839 => \"Bortigiadas\",840 => \"Borutta\",841 => \"Borzonasca\",842 => \"Bosa\",843 => \"Bosaro\",844 => \"Boschi Sant'Anna\",845 => \"Bosco Chiesanuova\",846 => \"Bosco Marengo\",847 => \"Bosconero\",848 => \"Boscoreale\",849 => \"Boscotrecase\",850 => \"Bosentino\",851 => \"Bosia\",852 => \"Bosio\",853 => \"Bosisio Parini\",854 => \"Bosnasco\",855 => \"Bossico\",856 => \"Bossolasco\",857 => \"Botricello\",858 => \"Botrugno\",859 => \"Bottanuco\",860 => \"Botticino\",861 => \"Bottidda\",8655 => \"Bourg San Bernard\",862 => \"Bova\",863 => \"Bova marina\",864 => \"Bovalino\",865 => \"Bovegno\",866 => \"Boves\",867 => \"Bovezzo\",868 => \"Boville Ernica\",869 => \"Bovino\",870 => \"Bovisio Masciago\",871 => \"Bovolenta\",872 => \"Bovolone\",873 => \"Bozzole\",874 => \"Bozzolo\",875 => \"Bra\",876 => \"Bracca\",877 => \"Bracciano\",878 => \"Bracigliano\",879 => \"Braies\",880 => \"Brallo di Pregola\",881 => \"Brancaleone\",882 => \"Brandico\",883 => \"Brandizzo\",884 => \"Branzi\",885 => \"Braone\",8740 => \"Bratto\",886 => \"Brebbia\",887 => \"Breda di Piave\",888 => \"Bregano\",889 => \"Breganze\",890 => \"Bregnano\",891 => \"Breguzzo\",892 => \"Breia\",8724 => \"Breithorn\",893 => \"Brembate\",894 => \"Brembate di sopra\",895 => \"Brembilla\",896 => \"Brembio\",897 => \"Breme\",898 => \"Brendola\",899 => \"Brenna\",900 => \"Brennero\",901 => \"Breno\",902 => \"Brenta\",903 => \"Brentino Belluno\",904 => \"Brentonico\",905 => \"Brenzone\",906 => \"Brescello\",907 => \"Brescia\",8547 => \"Brescia Montichiari\",908 => \"Bresimo\",909 => \"Bressana Bottarone\",910 => \"Bressanone\",911 => \"Bressanvido\",912 => \"Bresso\",8226 => \"Breuil-Cervinia\",913 => \"Brez\",914 => \"Brezzo di Bedero\",915 => \"Briaglia\",916 => \"Briatico\",917 => \"Bricherasio\",918 => \"Brienno\",919 => \"Brienza\",920 => \"Briga alta\",921 => \"Briga novarese\",923 => \"Brignano Frascata\",922 => \"Brignano Gera d'Adda\",924 => \"Brindisi\",8358 => \"Brindisi montagna\",8549 => \"Brindisi Papola Casale\",926 => \"Brinzio\",927 => \"Briona\",928 => \"Brione\",929 => \"Brione\",930 => \"Briosco\",931 => \"Brisighella\",932 => \"Brissago valtravaglia\",933 => \"Brissogne\",934 => \"Brittoli\",935 => \"Brivio\",936 => \"Broccostella\",937 => \"Brogliano\",938 => \"Brognaturo\",939 => \"Brolo\",940 => \"Brondello\",941 => \"Broni\",942 => \"Bronte\",943 => \"Bronzolo\",944 => \"Brossasco\",945 => \"Brosso\",946 => \"Brovello Carpugnino\",947 => \"Brozolo\",948 => \"Brugherio\",949 => \"Brugine\",950 => \"Brugnato\",951 => \"Brugnera\",952 => \"Bruino\",953 => \"Brumano\",954 => \"Brunate\",955 => \"Brunello\",956 => \"Brunico\",957 => \"Bruno\",958 => \"Brusaporto\",959 => \"Brusasco\",960 => \"Brusciano\",961 => \"Brusimpiano\",962 => \"Brusnengo\",963 => \"Brusson\",8645 => \"Brusson 2000 Estoul\",964 => \"Bruzolo\",965 => \"Bruzzano Zeffirio\",966 => \"Bubbiano\",967 => \"Bubbio\",968 => \"Buccheri\",969 => \"Bucchianico\",970 => \"Bucciano\",971 => \"Buccinasco\",972 => \"Buccino\",973 => \"Bucine\",974 => \"Budduso'\",975 => \"Budoia\",976 => \"Budoni\",977 => \"Budrio\",978 => \"Buggerru\",979 => \"Buggiano\",980 => \"Buglio in Monte\",981 => \"Bugnara\",982 => \"Buguggiate\",983 => \"Buia\",984 => \"Bulciago\",985 => \"Bulgarograsso\",986 => \"Bultei\",987 => \"Bulzi\",988 => \"Buonabitacolo\",989 => \"Buonalbergo\",990 => \"Buonconvento\",991 => \"Buonvicino\",992 => \"Burago di Molgora\",993 => \"Burcei\",994 => \"Burgio\",995 => \"Burgos\",996 => \"Buriasco\",997 => \"Burolo\",998 => \"Buronzo\",8483 => \"Burrino\",999 => \"Busachi\",1000 => \"Busalla\",1001 => \"Busana\",1002 => \"Busano\",1003 => \"Busca\",1004 => \"Buscate\",1005 => \"Buscemi\",1006 => \"Buseto Palizzolo\",1007 => \"Busnago\",1008 => \"Bussero\",1009 => \"Busseto\",1010 => \"Bussi sul Tirino\",1011 => \"Busso\",1012 => \"Bussolengo\",1013 => \"Bussoleno\",1014 => \"Busto Arsizio\",1015 => \"Busto Garolfo\",1016 => \"Butera\",1017 => \"Buti\",1018 => \"Buttapietra\",1019 => \"Buttigliera alta\",1020 => \"Buttigliera d'Asti\",1021 => \"Buttrio\",1022 => \"Ca' d'Andrea\",1023 => \"Cabella ligure\",1024 => \"Cabiate\",1025 => \"Cabras\",1026 => \"Caccamo\",1027 => \"Caccuri\",1028 => \"Cadegliano Viconago\",1029 => \"Cadelbosco di sopra\",1030 => \"Cadeo\",1031 => \"Caderzone\",8566 => \"Cadipietra\",1032 => \"Cadoneghe\",1033 => \"Cadorago\",1034 => \"Cadrezzate\",1035 => \"Caerano di San Marco\",1036 => \"Cafasse\",1037 => \"Caggiano\",1038 => \"Cagli\",1039 => \"Cagliari\",8500 => \"Cagliari Elmas\",1040 => \"Caglio\",1041 => \"Cagnano Amiterno\",1042 => \"Cagnano Varano\",1043 => \"Cagno\",1044 => \"Cagno'\",1045 => \"Caianello\",1046 => \"Caiazzo\",1047 => \"Caines\",1048 => \"Caino\",1049 => \"Caiolo\",1050 => \"Cairano\",1051 => \"Cairate\",1052 => \"Cairo Montenotte\",1053 => \"Caivano\",8168 => \"Cala Gonone\",1054 => \"Calabritto\",1055 => \"Calalzo di cadore\",1056 => \"Calamandrana\",1057 => \"Calamonaci\",1058 => \"Calangianus\",1059 => \"Calanna\",1060 => \"Calasca Castiglione\",1061 => \"Calascibetta\",1062 => \"Calascio\",1063 => \"Calasetta\",1064 => \"Calatabiano\",1065 => \"Calatafimi\",1066 => \"Calavino\",1067 => \"Calcata\",1068 => \"Calceranica al lago\",1069 => \"Calci\",8424 => \"Calciano\",1071 => \"Calcinaia\",1072 => \"Calcinate\",1073 => \"Calcinato\",1074 => \"Calcio\",1075 => \"Calco\",1076 => \"Caldaro sulla strada del vino\",1077 => \"Caldarola\",1078 => \"Calderara di Reno\",1079 => \"Caldes\",1080 => \"Caldiero\",1081 => \"Caldogno\",1082 => \"Caldonazzo\",1083 => \"Calendasco\",8614 => \"Calenella\",1084 => \"Calenzano\",1085 => \"Calestano\",1086 => \"Calice al Cornoviglio\",1087 => \"Calice ligure\",8692 => \"California di Lesmo\",1088 => \"Calimera\",1089 => \"Calitri\",1090 => \"Calizzano\",1091 => \"Callabiana\",1092 => \"Calliano\",1093 => \"Calliano\",1094 => \"Calolziocorte\",1095 => \"Calopezzati\",1096 => \"Calosso\",1097 => \"Caloveto\",1098 => \"Caltabellotta\",1099 => \"Caltagirone\",1100 => \"Caltanissetta\",1101 => \"Caltavuturo\",1102 => \"Caltignaga\",1103 => \"Calto\",1104 => \"Caltrano\",1105 => \"Calusco d'Adda\",1106 => \"Caluso\",1107 => \"Calvagese della Riviera\",1108 => \"Calvanico\",1109 => \"Calvatone\",8406 => \"Calvello\",1111 => \"Calvene\",1112 => \"Calvenzano\",8373 => \"Calvera\",1114 => \"Calvi\",1115 => \"Calvi dell'Umbria\",1116 => \"Calvi risorta\",1117 => \"Calvignano\",1118 => \"Calvignasco\",1119 => \"Calvisano\",1120 => \"Calvizzano\",1121 => \"Camagna monferrato\",1122 => \"Camaiore\",1123 => \"Camairago\",1124 => \"Camandona\",1125 => \"Camastra\",1126 => \"Cambiago\",1127 => \"Cambiano\",1128 => \"Cambiasca\",1129 => \"Camburzano\",1130 => \"Camerana\",1131 => \"Camerano\",1132 => \"Camerano Casasco\",1133 => \"Camerata Cornello\",1134 => \"Camerata Nuova\",1135 => \"Camerata picena\",1136 => \"Cameri\",1137 => \"Camerino\",1138 => \"Camerota\",1139 => \"Camigliano\",8119 => \"Camigliatello silano\",1140 => \"Caminata\",1141 => \"Camini\",1142 => \"Camino\",1143 => \"Camino al Tagliamento\",1144 => \"Camisano\",1145 => \"Camisano vicentino\",1146 => \"Cammarata\",1147 => \"Camo\",1148 => \"Camogli\",1149 => \"Campagna\",1150 => \"Campagna Lupia\",1151 => \"Campagnano di Roma\",1152 => \"Campagnatico\",1153 => \"Campagnola cremasca\",1154 => \"Campagnola emilia\",1155 => \"Campana\",1156 => \"Camparada\",1157 => \"Campegine\",1158 => \"Campello sul Clitunno\",1159 => \"Campertogno\",1160 => \"Campi Bisenzio\",1161 => \"Campi salentina\",1162 => \"Campiglia cervo\",1163 => \"Campiglia dei Berici\",1164 => \"Campiglia marittima\",1165 => \"Campiglione Fenile\",8127 => \"Campigna\",1166 => \"Campione d'Italia\",1167 => \"Campitello di Fassa\",8155 => \"Campitello matese\",1168 => \"Campli\",1169 => \"Campo calabro\",8754 => \"Campo Carlo Magno\",8134 => \"Campo Catino\",8610 => \"Campo Cecina\",1170 => \"Campo di Giove\",1171 => \"Campo di Trens\",8345 => \"Campo Felice\",8101 => \"Campo imperatore\",1172 => \"Campo ligure\",1173 => \"Campo nell'Elba\",1174 => \"Campo San Martino\",8135 => \"Campo Staffi\",8644 => \"Campo Tenese\",1175 => \"Campo Tures\",1176 => \"Campobasso\",1177 => \"Campobello di Licata\",1178 => \"Campobello di Mazara\",1179 => \"Campochiaro\",1180 => \"Campodarsego\",1181 => \"Campodenno\",8357 => \"Campodimele\",1183 => \"Campodipietra\",1184 => \"Campodolcino\",1185 => \"Campodoro\",1186 => \"Campofelice di Fitalia\",1187 => \"Campofelice di Roccella\",1188 => \"Campofilone\",1189 => \"Campofiorito\",1190 => \"Campoformido\",1191 => \"Campofranco\",1192 => \"Campogalliano\",1193 => \"Campolattaro\",1194 => \"Campoli Appennino\",1195 => \"Campoli del Monte Taburno\",1196 => \"Campolieto\",1197 => \"Campolongo al Torre\",1198 => \"Campolongo Maggiore\",1199 => \"Campolongo sul Brenta\",8391 => \"Campomaggiore\",1201 => \"Campomarino\",1202 => \"Campomorone\",1203 => \"Camponogara\",1204 => \"Campora\",1205 => \"Camporeale\",1206 => \"Camporgiano\",1207 => \"Camporosso\",1208 => \"Camporotondo di Fiastrone\",1209 => \"Camporotondo etneo\",1210 => \"Camposampiero\",1211 => \"Camposano\",1212 => \"Camposanto\",1213 => \"Campospinoso\",1214 => \"Campotosto\",1215 => \"Camugnano\",1216 => \"Canal San Bovo\",1217 => \"Canale\",1218 => \"Canale d'Agordo\",1219 => \"Canale Monterano\",1220 => \"Canaro\",1221 => \"Canazei\",8407 => \"Cancellara\",1223 => \"Cancello ed Arnone\",1224 => \"Canda\",1225 => \"Candela\",8468 => \"Candela casello\",1226 => \"Candelo\",1227 => \"Candia canavese\",1228 => \"Candia lomellina\",1229 => \"Candiana\",1230 => \"Candida\",1231 => \"Candidoni\",1232 => \"Candiolo\",1233 => \"Canegrate\",1234 => \"Canelli\",1235 => \"Canepina\",1236 => \"Caneva\",8562 => \"Canevare di Fanano\",1237 => \"Canevino\",1238 => \"Canicatti'\",1239 => \"Canicattini Bagni\",1240 => \"Canino\",1241 => \"Canischio\",1242 => \"Canistro\",1243 => \"Canna\",1244 => \"Cannalonga\",1245 => \"Cannara\",1246 => \"Cannero riviera\",1247 => \"Canneto pavese\",1248 => \"Canneto sull'Oglio\",8588 => \"Cannigione\",1249 => \"Cannobio\",1250 => \"Cannole\",1251 => \"Canolo\",1252 => \"Canonica d'Adda\",1253 => \"Canosa di Puglia\",1254 => \"Canosa sannita\",1255 => \"Canosio\",1256 => \"Canossa\",1257 => \"Cansano\",1258 => \"Cantagallo\",1259 => \"Cantalice\",1260 => \"Cantalupa\",1261 => \"Cantalupo in Sabina\",1262 => \"Cantalupo ligure\",1263 => \"Cantalupo nel Sannio\",1264 => \"Cantarana\",1265 => \"Cantello\",1266 => \"Canterano\",1267 => \"Cantiano\",1268 => \"Cantoira\",1269 => \"Cantu'\",1270 => \"Canzano\",1271 => \"Canzo\",1272 => \"Caorle\",1273 => \"Caorso\",1274 => \"Capaccio\",1275 => \"Capaci\",1276 => \"Capalbio\",8242 => \"Capanna Margherita\",8297 => \"Capanne di Sillano\",1277 => \"Capannoli\",1278 => \"Capannori\",1279 => \"Capena\",1280 => \"Capergnanica\",1281 => \"Capestrano\",1282 => \"Capiago Intimiano\",1283 => \"Capistrano\",1284 => \"Capistrello\",1285 => \"Capitignano\",1286 => \"Capizzi\",1287 => \"Capizzone\",8609 => \"Capo Bellavista\",8113 => \"Capo Colonna\",1288 => \"Capo d'Orlando\",1289 => \"Capo di Ponte\",8676 => \"Capo Mele\",8607 => \"Capo Palinuro\",8112 => \"Capo Rizzuto\",1290 => \"Capodimonte\",1291 => \"Capodrise\",1292 => \"Capoliveri\",1293 => \"Capolona\",1294 => \"Caponago\",1295 => \"Caporciano\",1296 => \"Caposele\",1297 => \"Capoterra\",1298 => \"Capovalle\",1299 => \"Cappadocia\",1300 => \"Cappella Cantone\",1301 => \"Cappella de' Picenardi\",1302 => \"Cappella Maggiore\",1303 => \"Cappelle sul Tavo\",1304 => \"Capracotta\",1305 => \"Capraia e Limite\",1306 => \"Capraia isola\",1307 => \"Capralba\",1308 => \"Capranica\",1309 => \"Capranica Prenestina\",1310 => \"Caprarica di Lecce\",1311 => \"Caprarola\",1312 => \"Caprauna\",1313 => \"Caprese Michelangelo\",1314 => \"Caprezzo\",1315 => \"Capri\",1316 => \"Capri Leone\",1317 => \"Capriana\",1318 => \"Capriano del Colle\",1319 => \"Capriata d'Orba\",1320 => \"Capriate San Gervasio\",1321 => \"Capriati a Volturno\",1322 => \"Caprie\",1323 => \"Capriglia irpina\",1324 => \"Capriglio\",1325 => \"Caprile\",1326 => \"Caprino bergamasco\",1327 => \"Caprino veronese\",1328 => \"Capriolo\",1329 => \"Capriva del Friuli\",1330 => \"Capua\",1331 => \"Capurso\",1332 => \"Caraffa del Bianco\",1333 => \"Caraffa di Catanzaro\",1334 => \"Caraglio\",1335 => \"Caramagna Piemonte\",1336 => \"Caramanico terme\",1337 => \"Carano\",1338 => \"Carapelle\",1339 => \"Carapelle Calvisio\",1340 => \"Carasco\",1341 => \"Carassai\",1342 => \"Carate brianza\",1343 => \"Carate Urio\",1344 => \"Caravaggio\",1345 => \"Caravate\",1346 => \"Caravino\",1347 => \"Caravonica\",1348 => \"Carbognano\",1349 => \"Carbonara al Ticino\",1350 => \"Carbonara di Nola\",1351 => \"Carbonara di Po\",1352 => \"Carbonara Scrivia\",1353 => \"Carbonate\",8374 => \"Carbone\",1355 => \"Carbonera\",1356 => \"Carbonia\",1357 => \"Carcare\",1358 => \"Carceri\",1359 => \"Carcoforo\",1360 => \"Cardano al Campo\",1361 => \"Carde'\",1362 => \"Cardedu\",1363 => \"Cardeto\",1364 => \"Cardinale\",1365 => \"Cardito\",1366 => \"Careggine\",1367 => \"Carema\",1368 => \"Carenno\",1369 => \"Carentino\",1370 => \"Careri\",1371 => \"Caresana\",1372 => \"Caresanablot\",8625 => \"Carezza al lago\",1373 => \"Carezzano\",1374 => \"Carfizzi\",1375 => \"Cargeghe\",1376 => \"Cariati\",1377 => \"Carife\",1378 => \"Carignano\",1379 => \"Carimate\",1380 => \"Carinaro\",1381 => \"Carini\",1382 => \"Carinola\",1383 => \"Carisio\",1384 => \"Carisolo\",1385 => \"Carlantino\",1386 => \"Carlazzo\",1387 => \"Carlentini\",1388 => \"Carlino\",1389 => \"Carloforte\",1390 => \"Carlopoli\",1391 => \"Carmagnola\",1392 => \"Carmiano\",1393 => \"Carmignano\",1394 => \"Carmignano di Brenta\",1395 => \"Carnago\",1396 => \"Carnate\",1397 => \"Carobbio degli Angeli\",1398 => \"Carolei\",1399 => \"Carona\",8541 => \"Carona Carisole\",1400 => \"Caronia\",1401 => \"Caronno Pertusella\",1402 => \"Caronno varesino\",8253 => \"Carosello 3000\",1403 => \"Carosino\",1404 => \"Carovigno\",1405 => \"Carovilli\",1406 => \"Carpaneto piacentino\",1407 => \"Carpanzano\",1408 => \"Carpasio\",1409 => \"Carpegna\",1410 => \"Carpenedolo\",1411 => \"Carpeneto\",1412 => \"Carpi\",1413 => \"Carpiano\",1414 => \"Carpignano salentino\",1415 => \"Carpignano Sesia\",1416 => \"Carpineti\",1417 => \"Carpineto della Nora\",1418 => \"Carpineto romano\",1419 => \"Carpineto Sinello\",1420 => \"Carpino\",1421 => \"Carpinone\",1422 => \"Carrara\",1423 => \"Carre'\",1424 => \"Carrega ligure\",1425 => \"Carro\",1426 => \"Carrodano\",1427 => \"Carrosio\",1428 => \"Carru'\",1429 => \"Carsoli\",1430 => \"Cartigliano\",1431 => \"Cartignano\",1432 => \"Cartoceto\",1433 => \"Cartosio\",1434 => \"Cartura\",1435 => \"Carugate\",1436 => \"Carugo\",1437 => \"Carunchio\",1438 => \"Carvico\",1439 => \"Carzano\",1440 => \"Casabona\",1441 => \"Casacalenda\",1442 => \"Casacanditella\",1443 => \"Casagiove\",1444 => \"Casal Cermelli\",1445 => \"Casal di Principe\",1446 => \"Casal Velino\",1447 => \"Casalanguida\",1448 => \"Casalattico\",8648 => \"Casalavera\",1449 => \"Casalbeltrame\",1450 => \"Casalbordino\",1451 => \"Casalbore\",1452 => \"Casalborgone\",1453 => \"Casalbuono\",1454 => \"Casalbuttano ed Uniti\",1455 => \"Casalciprano\",1456 => \"Casalduni\",1457 => \"Casale Corte Cerro\",1458 => \"Casale cremasco Vidolasco\",1459 => \"Casale di Scodosia\",1460 => \"Casale Litta\",1461 => \"Casale marittimo\",1462 => \"Casale monferrato\",1463 => \"Casale sul Sile\",1464 => \"Casalecchio di Reno\",1465 => \"Casaleggio Boiro\",1466 => \"Casaleggio Novara\",1467 => \"Casaleone\",1468 => \"Casaletto Ceredano\",1469 => \"Casaletto di sopra\",1470 => \"Casaletto lodigiano\",1471 => \"Casaletto Spartano\",1472 => \"Casaletto Vaprio\",1473 => \"Casalfiumanese\",1474 => \"Casalgrande\",1475 => \"Casalgrasso\",1476 => \"Casalincontrada\",1477 => \"Casalino\",1478 => \"Casalmaggiore\",1479 => \"Casalmaiocco\",1480 => \"Casalmorano\",1481 => \"Casalmoro\",1482 => \"Casalnoceto\",1483 => \"Casalnuovo di Napoli\",1484 => \"Casalnuovo Monterotaro\",1485 => \"Casaloldo\",1486 => \"Casalpusterlengo\",1487 => \"Casalromano\",1488 => \"Casalserugo\",1489 => \"Casaluce\",1490 => \"Casalvecchio di Puglia\",1491 => \"Casalvecchio siculo\",1492 => \"Casalvieri\",1493 => \"Casalvolone\",1494 => \"Casalzuigno\",1495 => \"Casamarciano\",1496 => \"Casamassima\",1497 => \"Casamicciola terme\",1498 => \"Casandrino\",1499 => \"Casanova Elvo\",1500 => \"Casanova Lerrone\",1501 => \"Casanova Lonati\",1502 => \"Casape\",1503 => \"Casapesenna\",1504 => \"Casapinta\",1505 => \"Casaprota\",1506 => \"Casapulla\",1507 => \"Casarano\",1508 => \"Casargo\",1509 => \"Casarile\",1510 => \"Casarsa della Delizia\",1511 => \"Casarza ligure\",1512 => \"Casasco\",1513 => \"Casasco d'Intelvi\",1514 => \"Casatenovo\",1515 => \"Casatisma\",1516 => \"Casavatore\",1517 => \"Casazza\",8160 => \"Cascate del Toce\",1518 => \"Cascia\",1519 => \"Casciago\",1520 => \"Casciana terme\",1521 => \"Cascina\",1522 => \"Cascinette d'Ivrea\",1523 => \"Casei Gerola\",1524 => \"Caselette\",1525 => \"Casella\",1526 => \"Caselle in Pittari\",1527 => \"Caselle Landi\",1528 => \"Caselle Lurani\",1529 => \"Caselle torinese\",1530 => \"Caserta\",1531 => \"Casier\",1532 => \"Casignana\",1533 => \"Casina\",1534 => \"Casirate d'Adda\",1535 => \"Caslino d'Erba\",1536 => \"Casnate con Bernate\",1537 => \"Casnigo\",1538 => \"Casola di Napoli\",1539 => \"Casola in lunigiana\",1540 => \"Casola valsenio\",1541 => \"Casole Bruzio\",1542 => \"Casole d'Elsa\",1543 => \"Casoli\",1544 => \"Casorate Primo\",1545 => \"Casorate Sempione\",1546 => \"Casorezzo\",1547 => \"Casoria\",1548 => \"Casorzo\",1549 => \"Casperia\",1550 => \"Caspoggio\",1551 => \"Cassacco\",1552 => \"Cassago brianza\",1553 => \"Cassano allo Ionio\",1554 => \"Cassano d'Adda\",1555 => \"Cassano delle murge\",1556 => \"Cassano irpino\",1557 => \"Cassano Magnago\",1558 => \"Cassano Spinola\",1559 => \"Cassano valcuvia\",1560 => \"Cassaro\",1561 => \"Cassiglio\",1562 => \"Cassina de' Pecchi\",1563 => \"Cassina Rizzardi\",1564 => \"Cassina valsassina\",1565 => \"Cassinasco\",1566 => \"Cassine\",1567 => \"Cassinelle\",1568 => \"Cassinetta di Lugagnano\",1569 => \"Cassino\",1570 => \"Cassola\",1571 => \"Cassolnovo\",1572 => \"Castagnaro\",1573 => \"Castagneto Carducci\",1574 => \"Castagneto po\",1575 => \"Castagnito\",1576 => \"Castagnole delle Lanze\",1577 => \"Castagnole monferrato\",1578 => \"Castagnole Piemonte\",1579 => \"Castana\",1580 => \"Castano Primo\",1581 => \"Casteggio\",1582 => \"Castegnato\",1583 => \"Castegnero\",1584 => \"Castel Baronia\",1585 => \"Castel Boglione\",1586 => \"Castel bolognese\",1587 => \"Castel Campagnano\",1588 => \"Castel Castagna\",1589 => \"Castel Colonna\",1590 => \"Castel Condino\",1591 => \"Castel d'Aiano\",1592 => \"Castel d'Ario\",1593 => \"Castel d'Azzano\",1594 => \"Castel del Giudice\",1595 => \"Castel del monte\",1596 => \"Castel del piano\",1597 => \"Castel del rio\",1598 => \"Castel di Casio\",1599 => \"Castel di Ieri\",1600 => \"Castel di Iudica\",1601 => \"Castel di Lama\",1602 => \"Castel di Lucio\",1603 => \"Castel di Sangro\",1604 => \"Castel di Sasso\",1605 => \"Castel di Tora\",1606 => \"Castel Focognano\",1607 => \"Castel frentano\",1608 => \"Castel Gabbiano\",1609 => \"Castel Gandolfo\",1610 => \"Castel Giorgio\",1611 => \"Castel Goffredo\",1612 => \"Castel Guelfo di Bologna\",1613 => \"Castel Madama\",1614 => \"Castel Maggiore\",1615 => \"Castel Mella\",1616 => \"Castel Morrone\",1617 => \"Castel Ritaldi\",1618 => \"Castel Rocchero\",1619 => \"Castel Rozzone\",1620 => \"Castel San Giorgio\",1621 => \"Castel San Giovanni\",1622 => \"Castel San Lorenzo\",1623 => \"Castel San Niccolo'\",1624 => \"Castel San Pietro romano\",1625 => \"Castel San Pietro terme\",1626 => \"Castel San Vincenzo\",1627 => \"Castel Sant'Angelo\",1628 => \"Castel Sant'Elia\",1629 => \"Castel Viscardo\",1630 => \"Castel Vittorio\",1631 => \"Castel volturno\",1632 => \"Castelbaldo\",1633 => \"Castelbelforte\",1634 => \"Castelbellino\",1635 => \"Castelbello Ciardes\",1636 => \"Castelbianco\",1637 => \"Castelbottaccio\",1638 => \"Castelbuono\",1639 => \"Castelcivita\",1640 => \"Castelcovati\",1641 => \"Castelcucco\",1642 => \"Casteldaccia\",1643 => \"Casteldelci\",1644 => \"Casteldelfino\",1645 => \"Casteldidone\",1646 => \"Castelfidardo\",1647 => \"Castelfiorentino\",1648 => \"Castelfondo\",1649 => \"Castelforte\",1650 => \"Castelfranci\",1651 => \"Castelfranco di sopra\",1652 => \"Castelfranco di sotto\",1653 => \"Castelfranco Emilia\",1654 => \"Castelfranco in Miscano\",1655 => \"Castelfranco Veneto\",1656 => \"Castelgomberto\",8385 => \"Castelgrande\",1658 => \"Castelguglielmo\",1659 => \"Castelguidone\",1660 => \"Castell'alfero\",1661 => \"Castell'arquato\",1662 => \"Castell'azzara\",1663 => \"Castell'umberto\",1664 => \"Castellabate\",1665 => \"Castellafiume\",1666 => \"Castellalto\",1667 => \"Castellammare del Golfo\",1668 => \"Castellammare di Stabia\",1669 => \"Castellamonte\",1670 => \"Castellana Grotte\",1671 => \"Castellana sicula\",1672 => \"Castellaneta\",1673 => \"Castellania\",1674 => \"Castellanza\",1675 => \"Castellar\",1676 => \"Castellar Guidobono\",1677 => \"Castellarano\",1678 => \"Castellaro\",1679 => \"Castellazzo Bormida\",1680 => \"Castellazzo novarese\",1681 => \"Castelleone\",1682 => \"Castelleone di Suasa\",1683 => \"Castellero\",1684 => \"Castelletto Cervo\",1685 => \"Castelletto d'Erro\",1686 => \"Castelletto d'Orba\",1687 => \"Castelletto di Branduzzo\",1688 => \"Castelletto Merli\",1689 => \"Castelletto Molina\",1690 => \"Castelletto monferrato\",1691 => \"Castelletto sopra Ticino\",1692 => \"Castelletto Stura\",1693 => \"Castelletto Uzzone\",1694 => \"Castelli\",1695 => \"Castelli Calepio\",1696 => \"Castellina in chianti\",1697 => \"Castellina marittima\",1698 => \"Castellinaldo\",1699 => \"Castellino del Biferno\",1700 => \"Castellino Tanaro\",1701 => \"Castelliri\",1702 => \"Castello Cabiaglio\",1703 => \"Castello d'Agogna\",1704 => \"Castello d'Argile\",1705 => \"Castello del matese\",1706 => \"Castello dell'Acqua\",1707 => \"Castello di Annone\",1708 => \"Castello di brianza\",1709 => \"Castello di Cisterna\",1710 => \"Castello di Godego\",1711 => \"Castello di Serravalle\",1712 => \"Castello Lavazzo\",1714 => \"Castello Molina di Fiemme\",1713 => \"Castello tesino\",1715 => \"Castellucchio\",8219 => \"Castelluccio\",1716 => \"Castelluccio dei Sauri\",8395 => \"Castelluccio inferiore\",8359 => \"Castelluccio superiore\",1719 => \"Castelluccio valmaggiore\",8452 => \"Castelmadama casello\",1720 => \"Castelmagno\",1721 => \"Castelmarte\",1722 => \"Castelmassa\",1723 => \"Castelmauro\",8363 => \"Castelmezzano\",1725 => \"Castelmola\",1726 => \"Castelnovetto\",1727 => \"Castelnovo Bariano\",1728 => \"Castelnovo del Friuli\",1729 => \"Castelnovo di sotto\",8124 => \"Castelnovo ne' Monti\",1731 => \"Castelnuovo\",1732 => \"Castelnuovo Belbo\",1733 => \"Castelnuovo Berardenga\",1734 => \"Castelnuovo bocca d'Adda\",1735 => \"Castelnuovo Bormida\",1736 => \"Castelnuovo Bozzente\",1737 => \"Castelnuovo Calcea\",1738 => \"Castelnuovo cilento\",1739 => \"Castelnuovo del Garda\",1740 => \"Castelnuovo della daunia\",1741 => \"Castelnuovo di Ceva\",1742 => \"Castelnuovo di Conza\",1743 => \"Castelnuovo di Farfa\",1744 => \"Castelnuovo di Garfagnana\",1745 => \"Castelnuovo di Porto\",1746 => \"Castelnuovo di val di Cecina\",1747 => \"Castelnuovo Don Bosco\",1748 => \"Castelnuovo Magra\",1749 => \"Castelnuovo Nigra\",1750 => \"Castelnuovo Parano\",1751 => \"Castelnuovo Rangone\",1752 => \"Castelnuovo Scrivia\",1753 => \"Castelpagano\",1754 => \"Castelpetroso\",1755 => \"Castelpizzuto\",1756 => \"Castelplanio\",1757 => \"Castelpoto\",1758 => \"Castelraimondo\",1759 => \"Castelrotto\",1760 => \"Castelsantangelo sul Nera\",8378 => \"Castelsaraceno\",1762 => \"Castelsardo\",1763 => \"Castelseprio\",1764 => \"Castelsilano\",1765 => \"Castelspina\",1766 => \"Casteltermini\",1767 => \"Castelveccana\",1768 => \"Castelvecchio Calvisio\",1769 => \"Castelvecchio di Rocca Barbena\",1770 => \"Castelvecchio Subequo\",1771 => \"Castelvenere\",1772 => \"Castelverde\",1773 => \"Castelverrino\",1774 => \"Castelvetere in val fortore\",1775 => \"Castelvetere sul Calore\",1776 => \"Castelvetrano\",1777 => \"Castelvetro di Modena\",1778 => \"Castelvetro piacentino\",1779 => \"Castelvisconti\",1780 => \"Castenaso\",1781 => \"Castenedolo\",1782 => \"Castiadas\",1783 => \"Castiglion Fibocchi\",1784 => \"Castiglion fiorentino\",8193 => \"Castiglioncello\",1785 => \"Castiglione a Casauria\",1786 => \"Castiglione chiavarese\",1787 => \"Castiglione cosentino\",1788 => \"Castiglione d'Adda\",1789 => \"Castiglione d'Intelvi\",1790 => \"Castiglione d'Orcia\",1791 => \"Castiglione dei Pepoli\",1792 => \"Castiglione del Genovesi\",1793 => \"Castiglione del Lago\",1794 => \"Castiglione della Pescaia\",1795 => \"Castiglione delle Stiviere\",1796 => \"Castiglione di garfagnana\",1797 => \"Castiglione di Sicilia\",1798 => \"Castiglione Falletto\",1799 => \"Castiglione in teverina\",1800 => \"Castiglione Messer Marino\",1801 => \"Castiglione Messer Raimondo\",1802 => \"Castiglione Olona\",1803 => \"Castiglione Tinella\",1804 => \"Castiglione torinese\",1805 => \"Castignano\",1806 => \"Castilenti\",1807 => \"Castino\",1808 => \"Castione Andevenno\",1809 => \"Castione della Presolana\",1810 => \"Castions di Strada\",1811 => \"Castiraga Vidardo\",1812 => \"Casto\",1813 => \"Castorano\",8723 => \"Castore\",1814 => \"Castrezzato\",1815 => \"Castri di Lecce\",1816 => \"Castrignano de' Greci\",1817 => \"Castrignano del Capo\",1818 => \"Castro\",1819 => \"Castro\",1820 => \"Castro dei Volsci\",8167 => \"Castro Marina\",1821 => \"Castrocaro terme e terra del Sole\",1822 => \"Castrocielo\",1823 => \"Castrofilippo\",1824 => \"Castrolibero\",1825 => \"Castronno\",1826 => \"Castronuovo di Sant'Andrea\",1827 => \"Castronuovo di Sicilia\",1828 => \"Castropignano\",1829 => \"Castroreale\",1830 => \"Castroregio\",1831 => \"Castrovillari\",1832 => \"Catania\",8273 => \"Catania Fontanarossa\",1833 => \"Catanzaro\",1834 => \"Catenanuova\",1835 => \"Catignano\",8281 => \"Catinaccio\",1836 => \"Cattolica\",1837 => \"Cattolica Eraclea\",1838 => \"Caulonia\",8673 => \"Caulonia Marina\",1839 => \"Cautano\",1840 => \"Cava de' Tirreni\",1841 => \"Cava manara\",1842 => \"Cavacurta\",1843 => \"Cavaglia'\",1844 => \"Cavaglietto\",1845 => \"Cavaglio d'Agogna\",1846 => \"Cavaglio Spoccia\",1847 => \"Cavagnolo\",1848 => \"Cavaion veronese\",1849 => \"Cavalese\",1850 => \"Cavallasca\",1851 => \"Cavallerleone\",1852 => \"Cavallermaggiore\",1853 => \"Cavallino\",8657 => \"Cavallino\",1854 => \"Cavallino treporti\",1855 => \"Cavallirio\",1856 => \"Cavareno\",1857 => \"Cavargna\",1858 => \"Cavaria con Premezzo\",1859 => \"Cavarzere\",1860 => \"Cavaso del Tomba\",1861 => \"Cavasso nuovo\",1862 => \"Cavatore\",1863 => \"Cavazzo carnico\",1864 => \"Cave\",1865 => \"Cavedago\",1866 => \"Cavedine\",1867 => \"Cavenago d'Adda\",1868 => \"Cavenago di brianza\",1869 => \"Cavernago\",1870 => \"Cavezzo\",1871 => \"Cavizzana\",1872 => \"Cavour\",1873 => \"Cavriago\",1874 => \"Cavriana\",1875 => \"Cavriglia\",1876 => \"Cazzago Brabbia\",1877 => \"Cazzago San Martino\",1878 => \"Cazzano di Tramigna\",1879 => \"Cazzano Sant'Andrea\",1880 => \"Ceccano\",1881 => \"Cecima\",1882 => \"Cecina\",1883 => \"Cedegolo\",1884 => \"Cedrasco\",1885 => \"Cefala' Diana\",1886 => \"Cefalu'\",1887 => \"Ceggia\",1888 => \"Ceglie Messapica\",1889 => \"Celano\",1890 => \"Celenza sul Trigno\",1891 => \"Celenza valfortore\",1892 => \"Celico\",1893 => \"Cella dati\",1894 => \"Cella monte\",1895 => \"Cellamare\",1896 => \"Cellara\",1897 => \"Cellarengo\",1898 => \"Cellatica\",1899 => \"Celle di Bulgheria\",1900 => \"Celle di Macra\",1901 => \"Celle di San Vito\",1902 => \"Celle Enomondo\",1903 => \"Celle ligure\",1904 => \"Celleno\",1905 => \"Cellere\",1906 => \"Cellino Attanasio\",1907 => \"Cellino San Marco\",1908 => \"Cellio\",1909 => \"Cellole\",1910 => \"Cembra\",1911 => \"Cenadi\",1912 => \"Cenate sopra\",1913 => \"Cenate sotto\",1914 => \"Cencenighe Agordino\",1915 => \"Cene\",1916 => \"Ceneselli\",1917 => \"Cengio\",1918 => \"Centa San Nicolo'\",1919 => \"Centallo\",1920 => \"Cento\",1921 => \"Centola\",1922 => \"Centrache\",1923 => \"Centuripe\",1924 => \"Cepagatti\",1925 => \"Ceppaloni\",1926 => \"Ceppo Morelli\",1927 => \"Ceprano\",1928 => \"Cerami\",1929 => \"Ceranesi\",1930 => \"Cerano\",1931 => \"Cerano d'intelvi\",1932 => \"Ceranova\",1933 => \"Ceraso\",1934 => \"Cercemaggiore\",1935 => \"Cercenasco\",1936 => \"Cercepiccola\",1937 => \"Cerchiara di Calabria\",1938 => \"Cerchio\",1939 => \"Cercino\",1940 => \"Cercivento\",1941 => \"Cercola\",1942 => \"Cerda\",1943 => \"Cerea\",1944 => \"Ceregnano\",1945 => \"Cerenzia\",1946 => \"Ceres\",1947 => \"Ceresara\",1948 => \"Cereseto\",1949 => \"Ceresole Alba\",1950 => \"Ceresole reale\",1951 => \"Cerete\",1952 => \"Ceretto lomellina\",1953 => \"Cergnago\",1954 => \"Ceriale\",1955 => \"Ceriana\",1956 => \"Ceriano Laghetto\",1957 => \"Cerignale\",1958 => \"Cerignola\",1959 => \"Cerisano\",1960 => \"Cermenate\",1961 => \"Cermes\",1962 => \"Cermignano\",1963 => \"Cernobbio\",1964 => \"Cernusco lombardone\",1965 => \"Cernusco sul Naviglio\",1966 => \"Cerreto Castello\",1967 => \"Cerreto d'Asti\",1968 => \"Cerreto d'Esi\",1969 => \"Cerreto di Spoleto\",1970 => \"Cerreto Grue\",1971 => \"Cerreto Guidi\",1972 => \"Cerreto langhe\",1973 => \"Cerreto laziale\",1974 => \"Cerreto sannita\",1975 => \"Cerrina monferrato\",1976 => \"Cerrione\",1977 => \"Cerro al Lambro\",1978 => \"Cerro al Volturno\",1979 => \"Cerro maggiore\",1980 => \"Cerro Tanaro\",1981 => \"Cerro veronese\",8396 => \"Cersosimo\",1983 => \"Certaldo\",1984 => \"Certosa di Pavia\",1985 => \"Cerva\",1986 => \"Cervara di Roma\",1987 => \"Cervarese Santa Croce\",1988 => \"Cervaro\",1989 => \"Cervasca\",1990 => \"Cervatto\",1991 => \"Cerveno\",1992 => \"Cervere\",1993 => \"Cervesina\",1994 => \"Cerveteri\",1995 => \"Cervia\",1996 => \"Cervicati\",1997 => \"Cervignano d'Adda\",1998 => \"Cervignano del Friuli\",1999 => \"Cervinara\",2000 => \"Cervino\",2001 => \"Cervo\",2002 => \"Cerzeto\",2003 => \"Cesa\",2004 => \"Cesana brianza\",2005 => \"Cesana torinese\",2006 => \"Cesano Boscone\",2007 => \"Cesano Maderno\",2008 => \"Cesara\",2009 => \"Cesaro'\",2010 => \"Cesate\",2011 => \"Cesena\",2012 => \"Cesenatico\",2013 => \"Cesinali\",2014 => \"Cesio\",2015 => \"Cesiomaggiore\",2016 => \"Cessalto\",2017 => \"Cessaniti\",2018 => \"Cessapalombo\",2019 => \"Cessole\",2020 => \"Cetara\",2021 => \"Ceto\",2022 => \"Cetona\",2023 => \"Cetraro\",2024 => \"Ceva\",8721 => \"Cevedale\",2025 => \"Cevo\",2026 => \"Challand Saint Anselme\",2027 => \"Challand Saint Victor\",2028 => \"Chambave\",2029 => \"Chamois\",8255 => \"Chamole`\",2030 => \"Champdepraz\",8225 => \"Champoluc\",2031 => \"Champorcher\",8331 => \"Champorcher Cimetta Rossa\",8330 => \"Champorcher Laris\",2032 => \"Charvensod\",2033 => \"Chatillon\",2034 => \"Cherasco\",2035 => \"Cheremule\",8668 => \"Chesal\",2036 => \"Chialamberto\",2037 => \"Chiampo\",2038 => \"Chianche\",2039 => \"Chianciano terme\",2040 => \"Chianni\",2041 => \"Chianocco\",2042 => \"Chiaramonte Gulfi\",2043 => \"Chiaramonti\",2044 => \"Chiarano\",2045 => \"Chiaravalle\",2046 => \"Chiaravalle centrale\",8151 => \"Chiareggio\",2047 => \"Chiari\",2048 => \"Chiaromonte\",8432 => \"Chiasso\",2049 => \"Chiauci\",2050 => \"Chiavari\",2051 => \"Chiavenna\",2052 => \"Chiaverano\",2053 => \"Chienes\",2054 => \"Chieri\",2055 => \"Chies d'Alpago\",2056 => \"Chiesa in valmalenco\",2057 => \"Chiesanuova\",2058 => \"Chiesina uzzanese\",2059 => \"Chieti\",8319 => \"Chieti Scalo\",2060 => \"Chieuti\",2061 => \"Chieve\",2062 => \"Chignolo d'Isola\",2063 => \"Chignolo Po\",2064 => \"Chioggia\",2065 => \"Chiomonte\",2066 => \"Chions\",2067 => \"Chiopris Viscone\",2068 => \"Chitignano\",2069 => \"Chiuduno\",2070 => \"Chiuppano\",2071 => \"Chiuro\",2072 => \"Chiusa\",2073 => \"Chiusa di Pesio\",2074 => \"Chiusa di San Michele\",2075 => \"Chiusa Sclafani\",2076 => \"Chiusaforte\",2077 => \"Chiusanico\",2078 => \"Chiusano d'Asti\",2079 => \"Chiusano di San Domenico\",2080 => \"Chiusavecchia\",2081 => \"Chiusdino\",2082 => \"Chiusi\",2083 => \"Chiusi della Verna\",2084 => \"Chivasso\",8515 => \"Ciampac Alba\",2085 => \"Ciampino\",2086 => \"Cianciana\",2087 => \"Cibiana di cadore\",2088 => \"Cicagna\",2089 => \"Cicala\",2090 => \"Cicciano\",2091 => \"Cicerale\",2092 => \"Ciciliano\",2093 => \"Cicognolo\",2094 => \"Ciconio\",2095 => \"Cigliano\",2096 => \"Ciglie'\",2097 => \"Cigognola\",2098 => \"Cigole\",2099 => \"Cilavegna\",8340 => \"Cima Durand\",8590 => \"Cima Pisciadu'\",8764 => \"Cima Plose\",8703 => \"Cima Portavescovo\",8282 => \"Cima Sole\",2100 => \"Cimadolmo\",2101 => \"Cimbergo\",8332 => \"Cime Bianche\",2102 => \"Cimego\",2103 => \"Cimina'\",2104 => \"Ciminna\",2105 => \"Cimitile\",2106 => \"Cimolais\",8433 => \"Cimoncino\",2107 => \"Cimone\",2108 => \"Cinaglio\",2109 => \"Cineto romano\",2110 => \"Cingia de' Botti\",2111 => \"Cingoli\",2112 => \"Cinigiano\",2113 => \"Cinisello Balsamo\",2114 => \"Cinisi\",2115 => \"Cino\",2116 => \"Cinquefrondi\",2117 => \"Cintano\",2118 => \"Cinte tesino\",2119 => \"Cinto Caomaggiore\",2120 => \"Cinto Euganeo\",2121 => \"Cinzano\",2122 => \"Ciorlano\",2123 => \"Cipressa\",2124 => \"Circello\",2125 => \"Cirie'\",2126 => \"Cirigliano\",2127 => \"Cirimido\",2128 => \"Ciro'\",2129 => \"Ciro' marina\",2130 => \"Cis\",2131 => \"Cisano bergamasco\",2132 => \"Cisano sul Neva\",2133 => \"Ciserano\",2134 => \"Cislago\",2135 => \"Cisliano\",2136 => \"Cismon del Grappa\",2137 => \"Cison di valmarino\",2138 => \"Cissone\",2139 => \"Cisterna d'Asti\",2140 => \"Cisterna di Latina\",2141 => \"Cisternino\",2142 => \"Citerna\",8142 => \"Città del Vaticano\",2143 => \"Citta' della Pieve\",2144 => \"Citta' di Castello\",2145 => \"Citta' Sant'Angelo\",2146 => \"Cittadella\",2147 => \"Cittaducale\",2148 => \"Cittanova\",2149 => \"Cittareale\",2150 => \"Cittiglio\",2151 => \"Civate\",2152 => \"Civenna\",2153 => \"Civezza\",2154 => \"Civezzano\",2155 => \"Civiasco\",2156 => \"Cividale del Friuli\",2157 => \"Cividate al piano\",2158 => \"Cividate camuno\",2159 => \"Civita\",2160 => \"Civita Castellana\",2161 => \"Civita d'Antino\",2162 => \"Civitacampomarano\",2163 => \"Civitaluparella\",2164 => \"Civitanova del sannio\",2165 => \"Civitanova Marche\",8356 => \"Civitaquana\",2167 => \"Civitavecchia\",2168 => \"Civitella Alfedena\",2169 => \"Civitella Casanova\",2170 => \"Civitella d'Agliano\",2171 => \"Civitella del Tronto\",2172 => \"Civitella di Romagna\",2173 => \"Civitella in val di Chiana\",2174 => \"Civitella Messer Raimondo\",2175 => \"Civitella Paganico\",2176 => \"Civitella Roveto\",2177 => \"Civitella San Paolo\",2178 => \"Civo\",2179 => \"Claino con osteno\",2180 => \"Claut\",2181 => \"Clauzetto\",2182 => \"Clavesana\",2183 => \"Claviere\",2184 => \"Cles\",2185 => \"Cleto\",2186 => \"Clivio\",2187 => \"Cloz\",2188 => \"Clusone\",2189 => \"Coassolo torinese\",2190 => \"Coazze\",2191 => \"Coazzolo\",2192 => \"Coccaglio\",2193 => \"Cocconato\",2194 => \"Cocquio Trevisago\",2195 => \"Cocullo\",2196 => \"Codevigo\",2197 => \"Codevilla\",2198 => \"Codigoro\",2199 => \"Codogne'\",2200 => \"Codogno\",2201 => \"Codroipo\",2202 => \"Codrongianos\",2203 => \"Coggiola\",2204 => \"Cogliate\",2205 => \"Cogne\",8654 => \"Cogne Lillaz\",2206 => \"Cogoleto\",2207 => \"Cogollo del Cengio\",5049 => \"Cogolo\",2208 => \"Cogorno\",8354 => \"Col de Joux\",8604 => \"Col Indes\",2209 => \"Colazza\",2210 => \"Colbordolo\",2211 => \"Colere\",2212 => \"Colfelice\",8217 => \"Colfiorito\",8761 => \"Colfosco\",2213 => \"Coli\",2214 => \"Colico\",2215 => \"Collagna\",2216 => \"Collalto sabino\",2217 => \"Collarmele\",2218 => \"Collazzone\",8249 => \"Colle Bettaforca\",2219 => \"Colle Brianza\",2220 => \"Colle d'Anchise\",8687 => \"Colle del Gran San Bernardo\",8688 => \"Colle del Moncenisio\",8686 => \"Colle del Piccolo San Bernardo\",8481 => \"Colle del Prel\",2221 => \"Colle di Tora\",2222 => \"Colle di val d'Elsa\",2223 => \"Colle San Magno\",2224 => \"Colle sannita\",2225 => \"Colle Santa Lucia\",8246 => \"Colle Sarezza\",2226 => \"Colle Umberto\",2227 => \"Collebeato\",2228 => \"Collecchio\",2229 => \"Collecorvino\",2230 => \"Colledara\",8453 => \"Colledara casello\",2231 => \"Colledimacine\",2232 => \"Colledimezzo\",2233 => \"Colleferro\",2234 => \"Collegiove\",2235 => \"Collegno\",2236 => \"Collelongo\",2237 => \"Collepardo\",2238 => \"Collepasso\",2239 => \"Collepietro\",2240 => \"Colleretto castelnuovo\",2241 => \"Colleretto Giacosa\",2242 => \"Collesalvetti\",2243 => \"Collesano\",2244 => \"Colletorto\",2245 => \"Collevecchio\",2246 => \"Colli a volturno\",2247 => \"Colli del Tronto\",2248 => \"Colli sul Velino\",2249 => \"Colliano\",2250 => \"Collinas\",2251 => \"Collio\",2252 => \"Collobiano\",2253 => \"Colloredo di monte Albano\",2254 => \"Colmurano\",2255 => \"Colobraro\",2256 => \"Cologna veneta\",2257 => \"Cologne\",2258 => \"Cologno al Serio\",2259 => \"Cologno monzese\",2260 => \"Colognola ai Colli\",2261 => \"Colonna\",2262 => \"Colonnella\",2263 => \"Colonno\",2264 => \"Colorina\",2265 => \"Colorno\",2266 => \"Colosimi\",2267 => \"Colturano\",2268 => \"Colzate\",2269 => \"Comabbio\",2270 => \"Comacchio\",2271 => \"Comano\",2272 => \"Comazzo\",2273 => \"Comeglians\",2274 => \"Comelico superiore\",2275 => \"Comerio\",2276 => \"Comezzano Cizzago\",2277 => \"Comignago\",2278 => \"Comiso\",2279 => \"Comitini\",2280 => \"Comiziano\",2281 => \"Commessaggio\",2282 => \"Commezzadura\",2283 => \"Como\",2284 => \"Compiano\",8711 => \"Comprensorio Cimone\",2285 => \"Comun nuovo\",2286 => \"Comunanza\",2287 => \"Cona\",2288 => \"Conca Casale\",2289 => \"Conca dei Marini\",2290 => \"Conca della Campania\",2291 => \"Concamarise\",2292 => \"Concei\",2293 => \"Concerviano\",2294 => \"Concesio\",2295 => \"Conco\",2296 => \"Concordia Sagittaria\",2297 => \"Concordia sulla Secchia\",2298 => \"Concorezzo\",2299 => \"Condino\",2300 => \"Condofuri\",8689 => \"Condofuri Marina\",2301 => \"Condove\",2302 => \"Condro'\",2303 => \"Conegliano\",2304 => \"Confienza\",2305 => \"Configni\",2306 => \"Conflenti\",2307 => \"Coniolo\",2308 => \"Conselice\",2309 => \"Conselve\",2310 => \"Consiglio di Rumo\",2311 => \"Contessa Entellina\",2312 => \"Contigliano\",2313 => \"Contrada\",2314 => \"Controguerra\",2315 => \"Controne\",2316 => \"Contursi terme\",2317 => \"Conversano\",2318 => \"Conza della Campania\",2319 => \"Conzano\",2320 => \"Copertino\",2321 => \"Copiano\",2322 => \"Copparo\",2323 => \"Corana\",2324 => \"Corato\",2325 => \"Corbara\",2326 => \"Corbetta\",2327 => \"Corbola\",2328 => \"Corchiano\",2329 => \"Corciano\",2330 => \"Cordenons\",2331 => \"Cordignano\",2332 => \"Cordovado\",2333 => \"Coredo\",2334 => \"Coreglia Antelminelli\",2335 => \"Coreglia ligure\",2336 => \"Coreno Ausonio\",2337 => \"Corfinio\",2338 => \"Cori\",2339 => \"Coriano\",2340 => \"Corigliano calabro\",8110 => \"Corigliano Calabro Marina\",2341 => \"Corigliano d'Otranto\",2342 => \"Corinaldo\",2343 => \"Corio\",2344 => \"Corleone\",2345 => \"Corleto monforte\",2346 => \"Corleto Perticara\",2347 => \"Cormano\",2348 => \"Cormons\",2349 => \"Corna imagna\",2350 => \"Cornalba\",2351 => \"Cornale\",2352 => \"Cornaredo\",2353 => \"Cornate d'Adda\",2354 => \"Cornedo all'Isarco\",2355 => \"Cornedo vicentino\",2356 => \"Cornegliano laudense\",2357 => \"Corneliano d'Alba\",2358 => \"Corniglio\",8537 => \"Corno alle Scale\",8353 => \"Corno del Renon\",2359 => \"Corno di Rosazzo\",2360 => \"Corno Giovine\",2361 => \"Cornovecchio\",2362 => \"Cornuda\",2363 => \"Correggio\",2364 => \"Correzzana\",2365 => \"Correzzola\",2366 => \"Corrido\",2367 => \"Corridonia\",2368 => \"Corropoli\",2369 => \"Corsano\",2370 => \"Corsico\",2371 => \"Corsione\",2372 => \"Cortaccia sulla strada del vino\",2373 => \"Cortale\",2374 => \"Cortandone\",2375 => \"Cortanze\",2376 => \"Cortazzone\",2377 => \"Corte brugnatella\",2378 => \"Corte de' Cortesi con Cignone\",2379 => \"Corte de' Frati\",2380 => \"Corte Franca\",2381 => \"Corte Palasio\",2382 => \"Cortemaggiore\",2383 => \"Cortemilia\",2384 => \"Corteno Golgi\",2385 => \"Cortenova\",2386 => \"Cortenuova\",2387 => \"Corteolona\",2388 => \"Cortiglione\",2389 => \"Cortina d'Ampezzo\",2390 => \"Cortina sulla strada del vino\",2391 => \"Cortino\",2392 => \"Cortona\",2393 => \"Corvara\",2394 => \"Corvara in Badia\",2395 => \"Corvino san Quirico\",2396 => \"Corzano\",2397 => \"Coseano\",2398 => \"Cosenza\",2399 => \"Cosio di Arroscia\",2400 => \"Cosio valtellino\",2401 => \"Cosoleto\",2402 => \"Cossano belbo\",2403 => \"Cossano canavese\",2404 => \"Cossato\",2405 => \"Cosseria\",2406 => \"Cossignano\",2407 => \"Cossogno\",2408 => \"Cossoine\",2409 => \"Cossombrato\",2410 => \"Costa de' Nobili\",2411 => \"Costa di Mezzate\",2412 => \"Costa di Rovigo\",2413 => \"Costa di serina\",2414 => \"Costa masnaga\",8177 => \"Costa Rei\",2415 => \"Costa valle imagna\",2416 => \"Costa Vescovato\",2417 => \"Costa Volpino\",2418 => \"Costabissara\",2419 => \"Costacciaro\",2420 => \"Costanzana\",2421 => \"Costarainera\",2422 => \"Costermano\",2423 => \"Costigliole d'Asti\",2424 => \"Costigliole Saluzzo\",2425 => \"Cotignola\",2426 => \"Cotronei\",2427 => \"Cottanello\",8256 => \"Couis 2\",2428 => \"Courmayeur\",2429 => \"Covo\",2430 => \"Cozzo\",8382 => \"Craco\",2432 => \"Crandola valsassina\",2433 => \"Cravagliana\",2434 => \"Cravanzana\",2435 => \"Craveggia\",2436 => \"Creazzo\",2437 => \"Crecchio\",2438 => \"Credaro\",2439 => \"Credera Rubbiano\",2440 => \"Crema\",2441 => \"Cremella\",2442 => \"Cremenaga\",2443 => \"Cremeno\",2444 => \"Cremia\",2445 => \"Cremolino\",2446 => \"Cremona\",2447 => \"Cremosano\",2448 => \"Crescentino\",2449 => \"Crespadoro\",2450 => \"Crespano del Grappa\",2451 => \"Crespellano\",2452 => \"Crespiatica\",2453 => \"Crespina\",2454 => \"Crespino\",2455 => \"Cressa\",8247 => \"Crest\",8741 => \"Cresta Youla\",8646 => \"Crevacol\",2456 => \"Crevacuore\",2457 => \"Crevalcore\",2458 => \"Crevoladossola\",2459 => \"Crispano\",2460 => \"Crispiano\",2461 => \"Crissolo\",8355 => \"Crissolo Pian delle Regine\",2462 => \"Crocefieschi\",2463 => \"Crocetta del Montello\",2464 => \"Crodo\",2465 => \"Crognaleto\",2466 => \"Cropalati\",2467 => \"Cropani\",2468 => \"Crosa\",2469 => \"Crosia\",2470 => \"Crosio della valle\",2471 => \"Crotone\",8552 => \"Crotone Sant'Anna\",2472 => \"Crotta d'Adda\",2473 => \"Crova\",2474 => \"Croviana\",2475 => \"Crucoli\",2476 => \"Cuasso al monte\",2477 => \"Cuccaro monferrato\",2478 => \"Cuccaro Vetere\",2479 => \"Cucciago\",2480 => \"Cuceglio\",2481 => \"Cuggiono\",2482 => \"Cugliate-fabiasco\",2483 => \"Cuglieri\",2484 => \"Cugnoli\",8718 => \"Cuma\",2485 => \"Cumiana\",2486 => \"Cumignano sul Naviglio\",2487 => \"Cunardo\",2488 => \"Cuneo\",8553 => \"Cuneo Levaldigi\",2489 => \"Cunevo\",2490 => \"Cunico\",2491 => \"Cuorgne'\",2492 => \"Cupello\",2493 => \"Cupra marittima\",2494 => \"Cupramontana\",2495 => \"Cura carpignano\",2496 => \"Curcuris\",2497 => \"Cureggio\",2498 => \"Curiglia con Monteviasco\",2499 => \"Curinga\",2500 => \"Curino\",2501 => \"Curno\",2502 => \"Curon Venosta\",2503 => \"Cursi\",2504 => \"Cursolo orasso\",2505 => \"Curtarolo\",2506 => \"Curtatone\",2507 => \"Curti\",2508 => \"Cusago\",2509 => \"Cusano milanino\",2510 => \"Cusano Mutri\",2511 => \"Cusino\",2512 => \"Cusio\",2513 => \"Custonaci\",2514 => \"Cutigliano\",2515 => \"Cutro\",2516 => \"Cutrofiano\",2517 => \"Cuveglio\",2518 => \"Cuvio\",2519 => \"Daiano\",2520 => \"Dairago\",2521 => \"Dalmine\",2522 => \"Dambel\",2523 => \"Danta di cadore\",2524 => \"Daone\",2525 => \"Dare'\",2526 => \"Darfo Boario terme\",2527 => \"Dasa'\",2528 => \"Davagna\",2529 => \"Daverio\",2530 => \"Davoli\",2531 => \"Dazio\",2532 => \"Decimomannu\",2533 => \"Decimoputzu\",2534 => \"Decollatura\",2535 => \"Dego\",2536 => \"Deiva marina\",2537 => \"Delebio\",2538 => \"Delia\",2539 => \"Delianuova\",2540 => \"Deliceto\",2541 => \"Dello\",2542 => \"Demonte\",2543 => \"Denice\",2544 => \"Denno\",2545 => \"Dernice\",2546 => \"Derovere\",2547 => \"Deruta\",2548 => \"Dervio\",2549 => \"Desana\",2550 => \"Desenzano del Garda\",2551 => \"Desio\",2552 => \"Desulo\",2553 => \"Diamante\",2554 => \"Diano arentino\",2555 => \"Diano castello\",2556 => \"Diano d'Alba\",2557 => \"Diano marina\",2558 => \"Diano San Pietro\",2559 => \"Dicomano\",2560 => \"Dignano\",2561 => \"Dimaro\",2562 => \"Dinami\",2563 => \"Dipignano\",2564 => \"Diso\",2565 => \"Divignano\",2566 => \"Dizzasco\",2567 => \"Dobbiaco\",2568 => \"Doberdo' del lago\",8628 => \"Doganaccia\",2569 => \"Dogliani\",2570 => \"Dogliola\",2571 => \"Dogna\",2572 => \"Dolce'\",2573 => \"Dolceacqua\",2574 => \"Dolcedo\",2575 => \"Dolegna del collio\",2576 => \"Dolianova\",2577 => \"Dolo\",8616 => \"Dolonne\",2578 => \"Dolzago\",2579 => \"Domanico\",2580 => \"Domaso\",2581 => \"Domegge di cadore\",2582 => \"Domicella\",2583 => \"Domodossola\",2584 => \"Domus de Maria\",2585 => \"Domusnovas\",2586 => \"Don\",2587 => \"Donato\",2588 => \"Dongo\",2589 => \"Donnas\",2590 => \"Donori'\",2591 => \"Dorgali\",2592 => \"Dorio\",2593 => \"Dormelletto\",2594 => \"Dorno\",2595 => \"Dorsino\",2596 => \"Dorzano\",2597 => \"Dosolo\",2598 => \"Dossena\",2599 => \"Dosso del liro\",8323 => \"Dosso Pasò\",2600 => \"Doues\",2601 => \"Dovadola\",2602 => \"Dovera\",2603 => \"Dozza\",2604 => \"Dragoni\",2605 => \"Drapia\",2606 => \"Drena\",2607 => \"Drenchia\",2608 => \"Dresano\",2609 => \"Drezzo\",2610 => \"Drizzona\",2611 => \"Dro\",2612 => \"Dronero\",2613 => \"Druento\",2614 => \"Druogno\",2615 => \"Dualchi\",2616 => \"Dubino\",2617 => \"Due carrare\",2618 => \"Dueville\",2619 => \"Dugenta\",2620 => \"Duino aurisina\",2621 => \"Dumenza\",2622 => \"Duno\",2623 => \"Durazzano\",2624 => \"Duronia\",2625 => \"Dusino San Michele\",2626 => \"Eboli\",2627 => \"Edolo\",2628 => \"Egna\",2629 => \"Elice\",2630 => \"Elini\",2631 => \"Ello\",2632 => \"Elmas\",2633 => \"Elva\",2634 => \"Emarese\",2635 => \"Empoli\",2636 => \"Endine gaiano\",2637 => \"Enego\",2638 => \"Enemonzo\",2639 => \"Enna\",2640 => \"Entracque\",2641 => \"Entratico\",8222 => \"Entreves\",2642 => \"Envie\",8397 => \"Episcopia\",2644 => \"Eraclea\",2645 => \"Erba\",2646 => \"Erbe'\",2647 => \"Erbezzo\",2648 => \"Erbusco\",2649 => \"Erchie\",2650 => \"Ercolano\",8531 => \"Eremo di Camaldoli\",8606 => \"Eremo di Carpegna\",2651 => \"Erice\",2652 => \"Erli\",2653 => \"Erto e casso\",2654 => \"Erula\",2655 => \"Erve\",2656 => \"Esanatoglia\",2657 => \"Escalaplano\",2658 => \"Escolca\",2659 => \"Esine\",2660 => \"Esino lario\",2661 => \"Esperia\",2662 => \"Esporlatu\",2663 => \"Este\",2664 => \"Esterzili\",2665 => \"Etroubles\",2666 => \"Eupilio\",2667 => \"Exilles\",2668 => \"Fabbrica Curone\",2669 => \"Fabbriche di vallico\",2670 => \"Fabbrico\",2671 => \"Fabriano\",2672 => \"Fabrica di Roma\",2673 => \"Fabrizia\",2674 => \"Fabro\",8458 => \"Fabro casello\",2675 => \"Faedis\",2676 => \"Faedo\",2677 => \"Faedo valtellino\",2678 => \"Faenza\",2679 => \"Faeto\",2680 => \"Fagagna\",2681 => \"Faggeto lario\",2682 => \"Faggiano\",2683 => \"Fagnano alto\",2684 => \"Fagnano castello\",2685 => \"Fagnano olona\",2686 => \"Fai della paganella\",2687 => \"Faicchio\",2688 => \"Falcade\",2689 => \"Falciano del massico\",2690 => \"Falconara albanese\",2691 => \"Falconara marittima\",2692 => \"Falcone\",2693 => \"Faleria\",2694 => \"Falerna\",8116 => \"Falerna Marina\",2695 => \"Falerone\",2696 => \"Fallo\",2697 => \"Falmenta\",2698 => \"Faloppio\",2699 => \"Falvaterra\",2700 => \"Falzes\",2701 => \"Fanano\",2702 => \"Fanna\",2703 => \"Fano\",2704 => \"Fano adriano\",2705 => \"Fara Filiorum Petri\",2706 => \"Fara gera d'Adda\",2707 => \"Fara in sabina\",2708 => \"Fara novarese\",2709 => \"Fara Olivana con Sola\",2710 => \"Fara San Martino\",2711 => \"Fara vicentino\",8360 => \"Fardella\",2713 => \"Farigliano\",2714 => \"Farindola\",2715 => \"Farini\",2716 => \"Farnese\",2717 => \"Farra d'alpago\",2718 => \"Farra d'Isonzo\",2719 => \"Farra di soligo\",2720 => \"Fasano\",2721 => \"Fascia\",2722 => \"Fauglia\",2723 => \"Faule\",2724 => \"Favale di malvaro\",2725 => \"Favara\",2726 => \"Faver\",2727 => \"Favignana\",2728 => \"Favria\",2729 => \"Feisoglio\",2730 => \"Feletto\",2731 => \"Felino\",2732 => \"Felitto\",2733 => \"Felizzano\",2734 => \"Felonica\",2735 => \"Feltre\",2736 => \"Fenegro'\",2737 => \"Fenestrelle\",2738 => \"Fenis\",2739 => \"Ferentillo\",2740 => \"Ferentino\",2741 => \"Ferla\",2742 => \"Fermignano\",2743 => \"Fermo\",2744 => \"Ferno\",2745 => \"Feroleto Antico\",2746 => \"Feroleto della chiesa\",8370 => \"Ferrandina\",2748 => \"Ferrara\",2749 => \"Ferrara di monte Baldo\",2750 => \"Ferrazzano\",2751 => \"Ferrera di Varese\",2752 => \"Ferrera Erbognone\",2753 => \"Ferrere\",2754 => \"Ferriere\",2755 => \"Ferruzzano\",2756 => \"Fiamignano\",2757 => \"Fiano\",2758 => \"Fiano romano\",2759 => \"Fiastra\",2760 => \"Fiave'\",2761 => \"Ficarazzi\",2762 => \"Ficarolo\",2763 => \"Ficarra\",2764 => \"Ficulle\",2765 => \"Fidenza\",2766 => \"Fie' allo Sciliar\",2767 => \"Fiera di primiero\",2768 => \"Fierozzo\",2769 => \"Fiesco\",2770 => \"Fiesole\",2771 => \"Fiesse\",2772 => \"Fiesso d'Artico\",2773 => \"Fiesso Umbertiano\",2774 => \"Figino Serenza\",2775 => \"Figline valdarno\",2776 => \"Figline Vegliaturo\",2777 => \"Filacciano\",2778 => \"Filadelfia\",2779 => \"Filago\",2780 => \"Filandari\",2781 => \"Filattiera\",2782 => \"Filettino\",2783 => \"Filetto\",8392 => \"Filiano\",2785 => \"Filighera\",2786 => \"Filignano\",2787 => \"Filogaso\",2788 => \"Filottrano\",2789 => \"Finale emilia\",2790 => \"Finale ligure\",2791 => \"Fino del monte\",2792 => \"Fino Mornasco\",2793 => \"Fiorano al Serio\",2794 => \"Fiorano canavese\",2795 => \"Fiorano modenese\",2796 => \"Fiordimonte\",2797 => \"Fiorenzuola d'arda\",2798 => \"Firenze\",8270 => \"Firenze Peretola\",2799 => \"Firenzuola\",2800 => \"Firmo\",2801 => \"Fisciano\",2802 => \"Fiuggi\",2803 => \"Fiumalbo\",2804 => \"Fiumara\",8489 => \"Fiumata\",2805 => \"Fiume veneto\",2806 => \"Fiumedinisi\",2807 => \"Fiumefreddo Bruzio\",2808 => \"Fiumefreddo di Sicilia\",2809 => \"Fiumicello\",2810 => \"Fiumicino\",2811 => \"Fiuminata\",2812 => \"Fivizzano\",2813 => \"Flaibano\",2814 => \"Flavon\",2815 => \"Flero\",2816 => \"Floresta\",2817 => \"Floridia\",2818 => \"Florinas\",2819 => \"Flumeri\",2820 => \"Fluminimaggiore\",2821 => \"Flussio\",2822 => \"Fobello\",2823 => \"Foggia\",2824 => \"Foglianise\",2825 => \"Fogliano redipuglia\",2826 => \"Foglizzo\",2827 => \"Foiano della chiana\",2828 => \"Foiano di val fortore\",2829 => \"Folgaria\",8202 => \"Folgarida\",2830 => \"Folignano\",2831 => \"Foligno\",2832 => \"Follina\",2833 => \"Follo\",2834 => \"Follonica\",2835 => \"Fombio\",2836 => \"Fondachelli Fantina\",2837 => \"Fondi\",2838 => \"Fondo\",2839 => \"Fonni\",2840 => \"Fontainemore\",2841 => \"Fontana liri\",2842 => \"Fontanafredda\",2843 => \"Fontanarosa\",8185 => \"Fontane Bianche\",2844 => \"Fontanelice\",2845 => \"Fontanella\",2846 => \"Fontanellato\",2847 => \"Fontanelle\",2848 => \"Fontaneto d'Agogna\",2849 => \"Fontanetto po\",2850 => \"Fontanigorda\",2851 => \"Fontanile\",2852 => \"Fontaniva\",2853 => \"Fonte\",8643 => \"Fonte Cerreto\",2854 => \"Fonte Nuova\",2855 => \"Fontecchio\",2856 => \"Fontechiari\",2857 => \"Fontegreca\",2858 => \"Fonteno\",2859 => \"Fontevivo\",2860 => \"Fonzaso\",2861 => \"Foppolo\",8540 => \"Foppolo IV Baita\",2862 => \"Forano\",2863 => \"Force\",2864 => \"Forchia\",2865 => \"Forcola\",2866 => \"Fordongianus\",2867 => \"Forenza\",2868 => \"Foresto sparso\",2869 => \"Forgaria nel friuli\",2870 => \"Forino\",2871 => \"Forio\",8551 => \"Forlì Ridolfi\",2872 => \"Forli'\",2873 => \"Forli' del sannio\",2874 => \"Forlimpopoli\",2875 => \"Formazza\",2876 => \"Formello\",2877 => \"Formia\",2878 => \"Formicola\",2879 => \"Formigara\",2880 => \"Formigine\",2881 => \"Formigliana\",2882 => \"Formignana\",2883 => \"Fornace\",2884 => \"Fornelli\",2885 => \"Forni Avoltri\",2886 => \"Forni di sopra\",2887 => \"Forni di sotto\",8161 => \"Forno Alpi Graie\",2888 => \"Forno canavese\",2889 => \"Forno di Zoldo\",2890 => \"Fornovo di Taro\",2891 => \"Fornovo San Giovanni\",2892 => \"Forte dei marmi\",2893 => \"Fortezza\",2894 => \"Fortunago\",2895 => \"Forza d'Agro'\",2896 => \"Fosciandora\",8435 => \"Fosdinovo\",2898 => \"Fossa\",2899 => \"Fossacesia\",2900 => \"Fossalta di Piave\",2901 => \"Fossalta di Portogruaro\",2902 => \"Fossalto\",2903 => \"Fossano\",2904 => \"Fossato di vico\",2905 => \"Fossato serralta\",2906 => \"Fosso'\",2907 => \"Fossombrone\",2908 => \"Foza\",2909 => \"Frabosa soprana\",2910 => \"Frabosa sottana\",2911 => \"Fraconalto\",2912 => \"Fragagnano\",2913 => \"Fragneto l'abate\",2914 => \"Fragneto monforte\",2915 => \"Fraine\",2916 => \"Framura\",2917 => \"Francavilla al mare\",2918 => \"Francavilla angitola\",2919 => \"Francavilla bisio\",2920 => \"Francavilla d'ete\",2921 => \"Francavilla di Sicilia\",2922 => \"Francavilla fontana\",8380 => \"Francavilla in sinni\",2924 => \"Francavilla marittima\",2925 => \"Francica\",2926 => \"Francofonte\",2927 => \"Francolise\",2928 => \"Frascaro\",2929 => \"Frascarolo\",2930 => \"Frascati\",2931 => \"Frascineto\",2932 => \"Frassilongo\",2933 => \"Frassinelle polesine\",2934 => \"Frassinello monferrato\",2935 => \"Frassineto po\",2936 => \"Frassinetto\",2937 => \"Frassino\",2938 => \"Frassinoro\",2939 => \"Frasso sabino\",2940 => \"Frasso telesino\",2941 => \"Fratta polesine\",2942 => \"Fratta todina\",2943 => \"Frattamaggiore\",2944 => \"Frattaminore\",2945 => \"Fratte rosa\",2946 => \"Frazzano'\",8137 => \"Fregene\",2947 => \"Fregona\",8667 => \"Frejusia\",2948 => \"Fresagrandinaria\",2949 => \"Fresonara\",2950 => \"Frigento\",2951 => \"Frignano\",2952 => \"Frinco\",2953 => \"Frisa\",2954 => \"Frisanco\",2955 => \"Front\",8153 => \"Frontignano\",2956 => \"Frontino\",2957 => \"Frontone\",8751 => \"Frontone - Monte Catria\",2958 => \"Frosinone\",8464 => \"Frosinone casello\",2959 => \"Frosolone\",2960 => \"Frossasco\",2961 => \"Frugarolo\",2962 => \"Fubine\",2963 => \"Fucecchio\",2964 => \"Fuipiano valle imagna\",2965 => \"Fumane\",2966 => \"Fumone\",2967 => \"Funes\",2968 => \"Furci\",2969 => \"Furci siculo\",2970 => \"Furnari\",2971 => \"Furore\",2972 => \"Furtei\",2973 => \"Fuscaldo\",2974 => \"Fusignano\",2975 => \"Fusine\",8702 => \"Fusine di Zoldo\",8131 => \"Fusine in Valromana\",2976 => \"Futani\",2977 => \"Gabbioneta binanuova\",2978 => \"Gabiano\",2979 => \"Gabicce mare\",8252 => \"Gabiet\",2980 => \"Gaby\",2981 => \"Gadesco Pieve Delmona\",2982 => \"Gadoni\",2983 => \"Gaeta\",2984 => \"Gaggi\",2985 => \"Gaggiano\",2986 => \"Gaggio montano\",2987 => \"Gaglianico\",2988 => \"Gagliano aterno\",2989 => \"Gagliano castelferrato\",2990 => \"Gagliano del capo\",2991 => \"Gagliato\",2992 => \"Gagliole\",2993 => \"Gaiarine\",2994 => \"Gaiba\",2995 => \"Gaiola\",2996 => \"Gaiole in chianti\",2997 => \"Gairo\",2998 => \"Gais\",2999 => \"Galati Mamertino\",3000 => \"Galatina\",3001 => \"Galatone\",3002 => \"Galatro\",3003 => \"Galbiate\",3004 => \"Galeata\",3005 => \"Galgagnano\",3006 => \"Gallarate\",3007 => \"Gallese\",3008 => \"Galliate\",3009 => \"Galliate lombardo\",3010 => \"Galliavola\",3011 => \"Gallicano\",3012 => \"Gallicano nel Lazio\",8364 => \"Gallicchio\",3014 => \"Galliera\",3015 => \"Galliera veneta\",3016 => \"Gallinaro\",3017 => \"Gallio\",3018 => \"Gallipoli\",3019 => \"Gallo matese\",3020 => \"Gallodoro\",3021 => \"Galluccio\",8315 => \"Galluzzo\",3022 => \"Galtelli\",3023 => \"Galzignano terme\",3024 => \"Gamalero\",3025 => \"Gambara\",3026 => \"Gambarana\",8105 => \"Gambarie\",3027 => \"Gambasca\",3028 => \"Gambassi terme\",3029 => \"Gambatesa\",3030 => \"Gambellara\",3031 => \"Gamberale\",3032 => \"Gambettola\",3033 => \"Gambolo'\",3034 => \"Gambugliano\",3035 => \"Gandellino\",3036 => \"Gandino\",3037 => \"Gandosso\",3038 => \"Gangi\",8425 => \"Garaguso\",3040 => \"Garbagna\",3041 => \"Garbagna novarese\",3042 => \"Garbagnate milanese\",3043 => \"Garbagnate monastero\",3044 => \"Garda\",3045 => \"Gardone riviera\",3046 => \"Gardone val trompia\",3047 => \"Garessio\",8349 => \"Garessio 2000\",3048 => \"Gargallo\",3049 => \"Gargazzone\",3050 => \"Gargnano\",3051 => \"Garlasco\",3052 => \"Garlate\",3053 => \"Garlenda\",3054 => \"Garniga\",3055 => \"Garzeno\",3056 => \"Garzigliana\",3057 => \"Gasperina\",3058 => \"Gassino torinese\",3059 => \"Gattatico\",3060 => \"Gatteo\",3061 => \"Gattico\",3062 => \"Gattinara\",3063 => \"Gavardo\",3064 => \"Gavazzana\",3065 => \"Gavello\",3066 => \"Gaverina terme\",3067 => \"Gavi\",3068 => \"Gavignano\",3069 => \"Gavirate\",3070 => \"Gavoi\",3071 => \"Gavorrano\",3072 => \"Gazoldo degli ippoliti\",3073 => \"Gazzada schianno\",3074 => \"Gazzaniga\",3075 => \"Gazzo\",3076 => \"Gazzo veronese\",3077 => \"Gazzola\",3078 => \"Gazzuolo\",3079 => \"Gela\",3080 => \"Gemmano\",3081 => \"Gemona del friuli\",3082 => \"Gemonio\",3083 => \"Genazzano\",3084 => \"Genga\",3085 => \"Genivolta\",3086 => \"Genola\",3087 => \"Genoni\",3088 => \"Genova\",8506 => \"Genova Nervi\",8276 => \"Genova Sestri\",3089 => \"Genuri\",3090 => \"Genzano di lucania\",3091 => \"Genzano di roma\",3092 => \"Genzone\",3093 => \"Gera lario\",3094 => \"Gerace\",3095 => \"Geraci siculo\",3096 => \"Gerano\",8176 => \"Geremeas\",3097 => \"Gerenzago\",3098 => \"Gerenzano\",3099 => \"Gergei\",3100 => \"Germagnano\",3101 => \"Germagno\",3102 => \"Germasino\",3103 => \"Germignaga\",8303 => \"Gerno di Lesmo\",3104 => \"Gerocarne\",3105 => \"Gerola alta\",3106 => \"Gerosa\",3107 => \"Gerre de'caprioli\",3108 => \"Gesico\",3109 => \"Gessate\",3110 => \"Gessopalena\",3111 => \"Gesturi\",3112 => \"Gesualdo\",3113 => \"Ghedi\",3114 => \"Ghemme\",8236 => \"Ghiacciaio Presena\",3115 => \"Ghiffa\",3116 => \"Ghilarza\",3117 => \"Ghisalba\",3118 => \"Ghislarengo\",3119 => \"Giacciano con baruchella\",3120 => \"Giaglione\",3121 => \"Gianico\",3122 => \"Giano dell'umbria\",3123 => \"Giano vetusto\",3124 => \"Giardinello\",3125 => \"Giardini Naxos\",3126 => \"Giarole\",3127 => \"Giarratana\",3128 => \"Giarre\",3129 => \"Giave\",3130 => \"Giaveno\",3131 => \"Giavera del montello\",3132 => \"Giba\",3133 => \"Gibellina\",3134 => \"Gifflenga\",3135 => \"Giffone\",3136 => \"Giffoni sei casali\",3137 => \"Giffoni valle piana\",3380 => \"Giglio castello\",3138 => \"Gignese\",3139 => \"Gignod\",3140 => \"Gildone\",3141 => \"Gimigliano\",8403 => \"Ginestra\",3143 => \"Ginestra degli schiavoni\",8430 => \"Ginosa\",3145 => \"Gioi\",3146 => \"Gioia dei marsi\",3147 => \"Gioia del colle\",3148 => \"Gioia sannitica\",3149 => \"Gioia tauro\",3150 => \"Gioiosa ionica\",3151 => \"Gioiosa marea\",3152 => \"Giove\",3153 => \"Giovinazzo\",3154 => \"Giovo\",3155 => \"Girasole\",3156 => \"Girifalco\",3157 => \"Gironico\",3158 => \"Gissi\",3159 => \"Giuggianello\",3160 => \"Giugliano in campania\",3161 => \"Giuliana\",3162 => \"Giuliano di roma\",3163 => \"Giuliano teatino\",3164 => \"Giulianova\",3165 => \"Giuncugnano\",3166 => \"Giungano\",3167 => \"Giurdignano\",3168 => \"Giussago\",3169 => \"Giussano\",3170 => \"Giustenice\",3171 => \"Giustino\",3172 => \"Giusvalla\",3173 => \"Givoletto\",3174 => \"Gizzeria\",3175 => \"Glorenza\",3176 => \"Godega di sant'urbano\",3177 => \"Godiasco\",3178 => \"Godrano\",3179 => \"Goito\",3180 => \"Golasecca\",3181 => \"Golferenzo\",3182 => \"Golfo aranci\",3183 => \"Gombito\",3184 => \"Gonars\",3185 => \"Goni\",3186 => \"Gonnesa\",3187 => \"Gonnoscodina\",3188 => \"Gonnosfanadiga\",3189 => \"Gonnosno'\",3190 => \"Gonnostramatza\",3191 => \"Gonzaga\",3192 => \"Gordona\",3193 => \"Gorga\",3194 => \"Gorgo al monticano\",3195 => \"Gorgoglione\",3196 => \"Gorgonzola\",3197 => \"Goriano sicoli\",3198 => \"Gorizia\",3199 => \"Gorla maggiore\",3200 => \"Gorla minore\",3201 => \"Gorlago\",3202 => \"Gorle\",3203 => \"Gornate olona\",3204 => \"Gorno\",3205 => \"Goro\",3206 => \"Gorreto\",3207 => \"Gorzegno\",3208 => \"Gosaldo\",3209 => \"Gossolengo\",3210 => \"Gottasecca\",3211 => \"Gottolengo\",3212 => \"Govone\",3213 => \"Gozzano\",3214 => \"Gradara\",3215 => \"Gradisca d'isonzo\",3216 => \"Grado\",3217 => \"Gradoli\",3218 => \"Graffignana\",3219 => \"Graffignano\",3220 => \"Graglia\",3221 => \"Gragnano\",3222 => \"Gragnano trebbiense\",3223 => \"Grammichele\",8485 => \"Gran Paradiso\",3224 => \"Grana\",3225 => \"Granaglione\",3226 => \"Granarolo dell'emilia\",3227 => \"Grancona\",8728 => \"Grand Combin\",8327 => \"Grand Crot\",3228 => \"Grandate\",3229 => \"Grandola ed uniti\",3230 => \"Graniti\",3231 => \"Granozzo con monticello\",3232 => \"Grantola\",3233 => \"Grantorto\",3234 => \"Granze\",8371 => \"Grassano\",8504 => \"Grassina\",3236 => \"Grassobbio\",3237 => \"Gratteri\",3238 => \"Grauno\",3239 => \"Gravedona\",3240 => \"Gravellona lomellina\",3241 => \"Gravellona toce\",3242 => \"Gravere\",3243 => \"Gravina di Catania\",3244 => \"Gravina in puglia\",3245 => \"Grazzanise\",3246 => \"Grazzano badoglio\",3247 => \"Greccio\",3248 => \"Greci\",3249 => \"Greggio\",3250 => \"Gremiasco\",3251 => \"Gressan\",3252 => \"Gressoney la trinite'\",3253 => \"Gressoney saint jean\",3254 => \"Greve in chianti\",3255 => \"Grezzago\",3256 => \"Grezzana\",3257 => \"Griante\",3258 => \"Gricignano di aversa\",8733 => \"Grigna\",3259 => \"Grignasco\",3260 => \"Grigno\",3261 => \"Grimacco\",3262 => \"Grimaldi\",3263 => \"Grinzane cavour\",3264 => \"Grisignano di zocco\",3265 => \"Grisolia\",8520 => \"Grivola\",3266 => \"Grizzana morandi\",3267 => \"Grognardo\",3268 => \"Gromo\",3269 => \"Grondona\",3270 => \"Grone\",3271 => \"Grontardo\",3272 => \"Gropello cairoli\",3273 => \"Gropparello\",3274 => \"Groscavallo\",3275 => \"Grosio\",3276 => \"Grosotto\",3277 => \"Grosseto\",3278 => \"Grosso\",3279 => \"Grottaferrata\",3280 => \"Grottaglie\",3281 => \"Grottaminarda\",3282 => \"Grottammare\",3283 => \"Grottazzolina\",3284 => \"Grotte\",3285 => \"Grotte di castro\",3286 => \"Grotteria\",3287 => \"Grottole\",3288 => \"Grottolella\",3289 => \"Gruaro\",3290 => \"Grugliasco\",3291 => \"Grumello cremonese ed uniti\",3292 => \"Grumello del monte\",8414 => \"Grumento nova\",3294 => \"Grumes\",3295 => \"Grumo appula\",3296 => \"Grumo nevano\",3297 => \"Grumolo delle abbadesse\",3298 => \"Guagnano\",3299 => \"Gualdo\",3300 => \"Gualdo Cattaneo\",3301 => \"Gualdo tadino\",3302 => \"Gualtieri\",3303 => \"Gualtieri sicamino'\",3304 => \"Guamaggiore\",3305 => \"Guanzate\",3306 => \"Guarcino\",3307 => \"Guarda veneta\",3308 => \"Guardabosone\",3309 => \"Guardamiglio\",3310 => \"Guardavalle\",3311 => \"Guardea\",3312 => \"Guardia lombardi\",8365 => \"Guardia perticara\",3314 => \"Guardia piemontese\",3315 => \"Guardia sanframondi\",3316 => \"Guardiagrele\",3317 => \"Guardialfiera\",3318 => \"Guardiaregia\",3319 => \"Guardistallo\",3320 => \"Guarene\",3321 => \"Guasila\",3322 => \"Guastalla\",3323 => \"Guazzora\",3324 => \"Gubbio\",3325 => \"Gudo visconti\",3326 => \"Guglionesi\",3327 => \"Guidizzolo\",8508 => \"Guidonia\",3328 => \"Guidonia montecelio\",3329 => \"Guiglia\",3330 => \"Guilmi\",3331 => \"Gurro\",3332 => \"Guspini\",3333 => \"Gussago\",3334 => \"Gussola\",3335 => \"Hone\",8587 => \"I Prati\",3336 => \"Idro\",3337 => \"Iglesias\",3338 => \"Igliano\",3339 => \"Ilbono\",3340 => \"Illasi\",3341 => \"Illorai\",3342 => \"Imbersago\",3343 => \"Imer\",3344 => \"Imola\",3345 => \"Imperia\",3346 => \"Impruneta\",3347 => \"Inarzo\",3348 => \"Incisa in val d'arno\",3349 => \"Incisa scapaccino\",3350 => \"Incudine\",3351 => \"Induno olona\",3352 => \"Ingria\",3353 => \"Intragna\",3354 => \"Introbio\",3355 => \"Introd\",3356 => \"Introdacqua\",3357 => \"Introzzo\",3358 => \"Inverigo\",3359 => \"Inverno e monteleone\",3360 => \"Inverso pinasca\",3361 => \"Inveruno\",3362 => \"Invorio\",3363 => \"Inzago\",3364 => \"Ionadi\",3365 => \"Irgoli\",3366 => \"Irma\",3367 => \"Irsina\",3368 => \"Isasca\",3369 => \"Isca sullo ionio\",3370 => \"Ischia\",3371 => \"Ischia di castro\",3372 => \"Ischitella\",3373 => \"Iseo\",3374 => \"Isera\",3375 => \"Isernia\",3376 => \"Isili\",3377 => \"Isnello\",8742 => \"Isola Albarella\",3378 => \"Isola d'asti\",3379 => \"Isola del cantone\",8190 => \"Isola del Giglio\",3381 => \"Isola del gran sasso d'italia\",3382 => \"Isola del liri\",3383 => \"Isola del piano\",3384 => \"Isola della scala\",3385 => \"Isola delle femmine\",3386 => \"Isola di capo rizzuto\",3387 => \"Isola di fondra\",8671 => \"Isola di Giannutri\",3388 => \"Isola dovarese\",3389 => \"Isola rizza\",8173 => \"Isola Rossa\",8183 => \"Isola Salina\",3390 => \"Isola sant'antonio\",3391 => \"Isola vicentina\",3392 => \"Isolabella\",3393 => \"Isolabona\",3394 => \"Isole tremiti\",3395 => \"Isorella\",3396 => \"Ispani\",3397 => \"Ispica\",3398 => \"Ispra\",3399 => \"Issiglio\",3400 => \"Issime\",3401 => \"Isso\",3402 => \"Issogne\",3403 => \"Istrana\",3404 => \"Itala\",3405 => \"Itri\",3406 => \"Ittireddu\",3407 => \"Ittiri\",3408 => \"Ivano fracena\",3409 => \"Ivrea\",3410 => \"Izano\",3411 => \"Jacurso\",3412 => \"Jelsi\",3413 => \"Jenne\",3414 => \"Jerago con Orago\",3415 => \"Jerzu\",3416 => \"Jesi\",3417 => \"Jesolo\",3418 => \"Jolanda di Savoia\",3419 => \"Joppolo\",3420 => \"Joppolo Giancaxio\",3421 => \"Jovencan\",8568 => \"Klausberg\",3422 => \"L'Aquila\",3423 => \"La Cassa\",8227 => \"La Lechere\",3424 => \"La Loggia\",3425 => \"La Maddalena\",3426 => \"La Magdeleine\",3427 => \"La Morra\",8617 => \"La Palud\",3428 => \"La Salle\",3429 => \"La Spezia\",3430 => \"La Thuile\",3431 => \"La Valle\",3432 => \"La Valle Agordina\",8762 => \"La Villa\",3433 => \"Labico\",3434 => \"Labro\",3435 => \"Lacchiarella\",3436 => \"Lacco ameno\",3437 => \"Lacedonia\",8245 => \"Laceno\",3438 => \"Laces\",3439 => \"Laconi\",3440 => \"Ladispoli\",8571 => \"Ladurno\",3441 => \"Laerru\",3442 => \"Laganadi\",3443 => \"Laghi\",3444 => \"Laglio\",3445 => \"Lagnasco\",3446 => \"Lago\",3447 => \"Lagonegro\",3448 => \"Lagosanto\",3449 => \"Lagundo\",3450 => \"Laigueglia\",3451 => \"Lainate\",3452 => \"Laino\",3453 => \"Laino borgo\",3454 => \"Laino castello\",3455 => \"Laion\",3456 => \"Laives\",3457 => \"Lajatico\",3458 => \"Lallio\",3459 => \"Lama dei peligni\",3460 => \"Lama mocogno\",3461 => \"Lambrugo\",8477 => \"Lamezia Santa Eufemia\",3462 => \"Lamezia terme\",3463 => \"Lamon\",8179 => \"Lampedusa\",3464 => \"Lampedusa e linosa\",3465 => \"Lamporecchio\",3466 => \"Lamporo\",3467 => \"Lana\",3468 => \"Lanciano\",8467 => \"Lanciano casello\",3469 => \"Landiona\",3470 => \"Landriano\",3471 => \"Langhirano\",3472 => \"Langosco\",3473 => \"Lanusei\",3474 => \"Lanuvio\",3475 => \"Lanzada\",3476 => \"Lanzo d'intelvi\",3477 => \"Lanzo torinese\",3478 => \"Lapedona\",3479 => \"Lapio\",3480 => \"Lappano\",3481 => \"Larciano\",3482 => \"Lardaro\",3483 => \"Lardirago\",3484 => \"Lari\",3485 => \"Lariano\",3486 => \"Larino\",3487 => \"Las plassas\",3488 => \"Lasa\",3489 => \"Lascari\",3490 => \"Lasino\",3491 => \"Lasnigo\",3492 => \"Lastebasse\",3493 => \"Lastra a signa\",3494 => \"Latera\",3495 => \"Laterina\",3496 => \"Laterza\",3497 => \"Latiano\",3498 => \"Latina\",3499 => \"Latisana\",3500 => \"Latronico\",3501 => \"Lattarico\",3502 => \"Lauco\",3503 => \"Laureana cilento\",3504 => \"Laureana di borrello\",3505 => \"Lauregno\",3506 => \"Laurenzana\",3507 => \"Lauria\",3508 => \"Lauriano\",3509 => \"Laurino\",3510 => \"Laurito\",3511 => \"Lauro\",3512 => \"Lavagna\",3513 => \"Lavagno\",3514 => \"Lavarone\",3515 => \"Lavello\",3516 => \"Lavena ponte tresa\",3517 => \"Laveno mombello\",3518 => \"Lavenone\",3519 => \"Laviano\",8695 => \"Lavinio\",3520 => \"Lavis\",3521 => \"Lazise\",3522 => \"Lazzate\",8434 => \"Le polle\",3523 => \"Lecce\",3524 => \"Lecce nei marsi\",3525 => \"Lecco\",3526 => \"Leffe\",3527 => \"Leggiuno\",3528 => \"Legnago\",3529 => \"Legnano\",3530 => \"Legnaro\",3531 => \"Lei\",3532 => \"Leini\",3533 => \"Leivi\",3534 => \"Lemie\",3535 => \"Lendinara\",3536 => \"Leni\",3537 => \"Lenna\",3538 => \"Lenno\",3539 => \"Leno\",3540 => \"Lenola\",3541 => \"Lenta\",3542 => \"Lentate sul seveso\",3543 => \"Lentella\",3544 => \"Lentiai\",3545 => \"Lentini\",3546 => \"Leonessa\",3547 => \"Leonforte\",3548 => \"Leporano\",3549 => \"Lequile\",3550 => \"Lequio berria\",3551 => \"Lequio tanaro\",3552 => \"Lercara friddi\",3553 => \"Lerici\",3554 => \"Lerma\",8250 => \"Les Suches\",3555 => \"Lesa\",3556 => \"Lesegno\",3557 => \"Lesignano de 'bagni\",3558 => \"Lesina\",3559 => \"Lesmo\",3560 => \"Lessolo\",3561 => \"Lessona\",3562 => \"Lestizza\",3563 => \"Letino\",3564 => \"Letojanni\",3565 => \"Lettere\",3566 => \"Lettomanoppello\",3567 => \"Lettopalena\",3568 => \"Levanto\",3569 => \"Levate\",3570 => \"Leverano\",3571 => \"Levice\",3572 => \"Levico terme\",3573 => \"Levone\",3574 => \"Lezzeno\",3575 => \"Liberi\",3576 => \"Librizzi\",3577 => \"Licata\",3578 => \"Licciana nardi\",3579 => \"Licenza\",3580 => \"Licodia eubea\",8442 => \"Lido degli Estensi\",8441 => \"Lido delle Nazioni\",8200 => \"Lido di Camaiore\",8136 => \"Lido di Ostia\",8746 => \"Lido di Volano\",8594 => \"Lido Marini\",3581 => \"Lierna\",3582 => \"Lignana\",3583 => \"Lignano sabbiadoro\",3584 => \"Ligonchio\",3585 => \"Ligosullo\",3586 => \"Lillianes\",3587 => \"Limana\",3588 => \"Limatola\",3589 => \"Limbadi\",3590 => \"Limbiate\",3591 => \"Limena\",3592 => \"Limido comasco\",3593 => \"Limina\",3594 => \"Limone piemonte\",3595 => \"Limone sul garda\",3596 => \"Limosano\",3597 => \"Linarolo\",3598 => \"Linguaglossa\",8180 => \"Linosa\",3599 => \"Lioni\",3600 => \"Lipari\",3601 => \"Lipomo\",3602 => \"Lirio\",3603 => \"Liscate\",3604 => \"Liscia\",3605 => \"Lisciano niccone\",3606 => \"Lisignago\",3607 => \"Lisio\",3608 => \"Lissone\",3609 => \"Liveri\",3610 => \"Livigno\",3611 => \"Livinallongo del col di lana\",3613 => \"Livo\",3612 => \"Livo\",3614 => \"Livorno\",3615 => \"Livorno ferraris\",3616 => \"Livraga\",3617 => \"Lizzanello\",3618 => \"Lizzano\",3619 => \"Lizzano in belvedere\",8300 => \"Lizzola\",3620 => \"Loano\",3621 => \"Loazzolo\",3622 => \"Locana\",3623 => \"Locate di triulzi\",3624 => \"Locate varesino\",3625 => \"Locatello\",3626 => \"Loceri\",3627 => \"Locorotondo\",3628 => \"Locri\",3629 => \"Loculi\",3630 => \"Lode'\",3631 => \"Lodi\",3632 => \"Lodi vecchio\",3633 => \"Lodine\",3634 => \"Lodrino\",3635 => \"Lograto\",3636 => \"Loiano\",8748 => \"Loiano RFI\",3637 => \"Loiri porto san paolo\",3638 => \"Lomagna\",3639 => \"Lomaso\",3640 => \"Lomazzo\",3641 => \"Lombardore\",3642 => \"Lombriasco\",3643 => \"Lomello\",3644 => \"Lona lases\",3645 => \"Lonate ceppino\",3646 => \"Lonate pozzolo\",3647 => \"Lonato\",3648 => \"Londa\",3649 => \"Longano\",3650 => \"Longare\",3651 => \"Longarone\",3652 => \"Longhena\",3653 => \"Longi\",3654 => \"Longiano\",3655 => \"Longobardi\",3656 => \"Longobucco\",3657 => \"Longone al segrino\",3658 => \"Longone sabino\",3659 => \"Lonigo\",3660 => \"Loranze'\",3661 => \"Loreggia\",3662 => \"Loreglia\",3663 => \"Lorenzago di cadore\",3664 => \"Lorenzana\",3665 => \"Loreo\",3666 => \"Loreto\",3667 => \"Loreto aprutino\",3668 => \"Loria\",8523 => \"Lorica\",3669 => \"Loro ciuffenna\",3670 => \"Loro piceno\",3671 => \"Lorsica\",3672 => \"Losine\",3673 => \"Lotzorai\",3674 => \"Lovere\",3675 => \"Lovero\",3676 => \"Lozio\",3677 => \"Lozza\",3678 => \"Lozzo atestino\",3679 => \"Lozzo di cadore\",3680 => \"Lozzolo\",3681 => \"Lu\",3682 => \"Lubriano\",3683 => \"Lucca\",3684 => \"Lucca sicula\",3685 => \"Lucera\",3686 => \"Lucignano\",3687 => \"Lucinasco\",3688 => \"Lucito\",3689 => \"Luco dei marsi\",3690 => \"Lucoli\",3691 => \"Lugagnano val d'arda\",3692 => \"Lugnacco\",3693 => \"Lugnano in teverina\",3694 => \"Lugo\",3695 => \"Lugo di vicenza\",3696 => \"Luino\",3697 => \"Luisago\",3698 => \"Lula\",3699 => \"Lumarzo\",3700 => \"Lumezzane\",3701 => \"Lunamatrona\",3702 => \"Lunano\",3703 => \"Lungavilla\",3704 => \"Lungro\",3705 => \"Luogosano\",3706 => \"Luogosanto\",3707 => \"Lupara\",3708 => \"Lurago d'erba\",3709 => \"Lurago marinone\",3710 => \"Lurano\",3711 => \"Luras\",3712 => \"Lurate caccivio\",3713 => \"Lusciano\",8636 => \"Lusentino\",3714 => \"Luserna\",3715 => \"Luserna san giovanni\",3716 => \"Lusernetta\",3717 => \"Lusevera\",3718 => \"Lusia\",3719 => \"Lusiana\",3720 => \"Lusiglie'\",3721 => \"Luson\",3722 => \"Lustra\",8572 => \"Lutago\",3723 => \"Luvinate\",3724 => \"Luzzana\",3725 => \"Luzzara\",3726 => \"Luzzi\",8447 => \"L`Aquila est\",8446 => \"L`Aquila ovest\",3727 => \"Maccagno\",3728 => \"Maccastorna\",3729 => \"Macchia d'isernia\",3730 => \"Macchia valfortore\",3731 => \"Macchiagodena\",3732 => \"Macello\",3733 => \"Macerata\",3734 => \"Macerata campania\",3735 => \"Macerata feltria\",3736 => \"Macherio\",3737 => \"Maclodio\",3738 => \"Macomer\",3739 => \"Macra\",3740 => \"Macugnaga\",3741 => \"Maddaloni\",3742 => \"Madesimo\",3743 => \"Madignano\",3744 => \"Madone\",3745 => \"Madonna del sasso\",8201 => \"Madonna di Campiglio\",3746 => \"Maenza\",3747 => \"Mafalda\",3748 => \"Magasa\",3749 => \"Magenta\",3750 => \"Maggiora\",3751 => \"Magherno\",3752 => \"Magione\",3753 => \"Magisano\",3754 => \"Magliano alfieri\",3755 => \"Magliano alpi\",8461 => \"Magliano casello\",3756 => \"Magliano de' marsi\",3757 => \"Magliano di tenna\",3758 => \"Magliano in toscana\",3759 => \"Magliano romano\",3760 => \"Magliano sabina\",3761 => \"Magliano vetere\",3762 => \"Maglie\",3763 => \"Magliolo\",3764 => \"Maglione\",3765 => \"Magnacavallo\",3766 => \"Magnago\",3767 => \"Magnano\",3768 => \"Magnano in riviera\",8322 => \"Magnolta\",3769 => \"Magomadas\",3770 => \"Magre' sulla strada del vino\",3771 => \"Magreglio\",3772 => \"Maida\",3773 => \"Maiera'\",3774 => \"Maierato\",3775 => \"Maiolati spontini\",3776 => \"Maiolo\",3777 => \"Maiori\",3778 => \"Mairago\",3779 => \"Mairano\",3780 => \"Maissana\",3781 => \"Majano\",3782 => \"Malagnino\",3783 => \"Malalbergo\",3784 => \"Malborghetto valbruna\",3785 => \"Malcesine\",3786 => \"Male'\",3787 => \"Malegno\",3788 => \"Maleo\",3789 => \"Malesco\",3790 => \"Maletto\",3791 => \"Malfa\",8229 => \"Malga Ciapela\",8333 => \"Malga Polzone\",8661 => \"Malga San Giorgio\",3792 => \"Malgesso\",3793 => \"Malgrate\",3794 => \"Malito\",3795 => \"Mallare\",3796 => \"Malles Venosta\",3797 => \"Malnate\",3798 => \"Malo\",3799 => \"Malonno\",3800 => \"Malosco\",3801 => \"Maltignano\",3802 => \"Malvagna\",3803 => \"Malvicino\",3804 => \"Malvito\",3805 => \"Mammola\",3806 => \"Mamoiada\",3807 => \"Manciano\",3808 => \"Mandanici\",3809 => \"Mandas\",3810 => \"Mandatoriccio\",3811 => \"Mandela\",3812 => \"Mandello del lario\",3813 => \"Mandello vitta\",3814 => \"Manduria\",3815 => \"Manerba del garda\",3816 => \"Manerbio\",3817 => \"Manfredonia\",3818 => \"Mango\",3819 => \"Mangone\",3820 => \"Maniace\",3821 => \"Maniago\",3822 => \"Manocalzati\",3823 => \"Manoppello\",3824 => \"Mansue'\",3825 => \"Manta\",3826 => \"Mantello\",3827 => \"Mantova\",8129 => \"Manzano\",3829 => \"Manziana\",3830 => \"Mapello\",3831 => \"Mara\",3832 => \"Maracalagonis\",3833 => \"Maranello\",3834 => \"Marano di napoli\",3835 => \"Marano di valpolicella\",3836 => \"Marano equo\",3837 => \"Marano lagunare\",3838 => \"Marano marchesato\",3839 => \"Marano principato\",3840 => \"Marano sul panaro\",3841 => \"Marano ticino\",3842 => \"Marano vicentino\",3843 => \"Maranzana\",3844 => \"Maratea\",3845 => \"Marcallo con Casone\",3846 => \"Marcaria\",3847 => \"Marcedusa\",3848 => \"Marcellina\",3849 => \"Marcellinara\",3850 => \"Marcetelli\",3851 => \"Marcheno\",3852 => \"Marchirolo\",3853 => \"Marciana\",3854 => \"Marciana marina\",3855 => \"Marcianise\",3856 => \"Marciano della chiana\",3857 => \"Marcignago\",3858 => \"Marcon\",3859 => \"Marebbe\",8478 => \"Marene\",3861 => \"Mareno di piave\",3862 => \"Marentino\",3863 => \"Maretto\",3864 => \"Margarita\",3865 => \"Margherita di savoia\",3866 => \"Margno\",3867 => \"Mariana mantovana\",3868 => \"Mariano comense\",3869 => \"Mariano del friuli\",3870 => \"Marianopoli\",3871 => \"Mariglianella\",3872 => \"Marigliano\",8291 => \"Marilleva\",8490 => \"Marina di Arbus\",8599 => \"Marina di Camerota\",8582 => \"Marina di Campo\",8111 => \"Marina di Cariati\",8118 => \"Marina di Cetraro\",8175 => \"Marina di Gairo\",8164 => \"Marina di Ginosa\",3873 => \"Marina di gioiosa ionica\",8166 => \"Marina di Leuca\",8184 => \"Marina di Modica\",8156 => \"Marina di montenero\",8165 => \"Marina di Ostuni\",8186 => \"Marina di Palma\",8141 => \"Marina di Pescia Romana\",8591 => \"Marina di Pescoluse\",8298 => \"Marina di Pietrasanta\",8128 => \"Marina di Ravenna\",8174 => \"Marina di Sorso\",8188 => \"Marinella\",3874 => \"Marineo\",3875 => \"Marino\",3876 => \"Marlengo\",3877 => \"Marliana\",3878 => \"Marmentino\",3879 => \"Marmirolo\",8205 => \"Marmolada\",3880 => \"Marmora\",3881 => \"Marnate\",3882 => \"Marone\",3883 => \"Maropati\",3884 => \"Marostica\",8154 => \"Marotta\",3885 => \"Marradi\",3886 => \"Marrubiu\",3887 => \"Marsaglia\",3888 => \"Marsala\",3889 => \"Marsciano\",3890 => \"Marsico nuovo\",3891 => \"Marsicovetere\",3892 => \"Marta\",3893 => \"Martano\",3894 => \"Martellago\",3895 => \"Martello\",3896 => \"Martignacco\",3897 => \"Martignana di po\",3898 => \"Martignano\",3899 => \"Martina franca\",3900 => \"Martinengo\",3901 => \"Martiniana po\",3902 => \"Martinsicuro\",3903 => \"Martirano\",3904 => \"Martirano lombardo\",3905 => \"Martis\",3906 => \"Martone\",3907 => \"Marudo\",3908 => \"Maruggio\",3909 => \"Marzabotto\",3910 => \"Marzano\",3911 => \"Marzano appio\",3912 => \"Marzano di nola\",3913 => \"Marzi\",3914 => \"Marzio\",3915 => \"Masainas\",3916 => \"Masate\",3917 => \"Mascali\",3918 => \"Mascalucia\",3919 => \"Maschito\",3920 => \"Masciago primo\",3921 => \"Maser\",3922 => \"Masera\",3923 => \"Masera' di Padova\",3924 => \"Maserada sul piave\",3925 => \"Masi\",3926 => \"Masi torello\",3927 => \"Masio\",3928 => \"Maslianico\",8216 => \"Maso Corto\",3929 => \"Mason vicentino\",3930 => \"Masone\",3931 => \"Massa\",3932 => \"Massa d'albe\",3933 => \"Massa di somma\",3934 => \"Massa e cozzile\",3935 => \"Massa fermana\",3936 => \"Massa fiscaglia\",3937 => \"Massa lombarda\",3938 => \"Massa lubrense\",3939 => \"Massa marittima\",3940 => \"Massa martana\",3941 => \"Massafra\",3942 => \"Massalengo\",3943 => \"Massanzago\",3944 => \"Massarosa\",3945 => \"Massazza\",3946 => \"Massello\",3947 => \"Masserano\",3948 => \"Massignano\",3949 => \"Massimeno\",3950 => \"Massimino\",3951 => \"Massino visconti\",3952 => \"Massiola\",3953 => \"Masullas\",3954 => \"Matelica\",3955 => \"Matera\",3956 => \"Mathi\",3957 => \"Matino\",3958 => \"Matrice\",3959 => \"Mattie\",3960 => \"Mattinata\",3961 => \"Mazara del vallo\",3962 => \"Mazzano\",3963 => \"Mazzano romano\",3964 => \"Mazzarino\",3965 => \"Mazzarra' sant'andrea\",3966 => \"Mazzarrone\",3967 => \"Mazze'\",3968 => \"Mazzin\",3969 => \"Mazzo di valtellina\",3970 => \"Meana di susa\",3971 => \"Meana sardo\",3972 => \"Meda\",3973 => \"Mede\",3974 => \"Medea\",3975 => \"Medesano\",3976 => \"Medicina\",3977 => \"Mediglia\",3978 => \"Medolago\",3979 => \"Medole\",3980 => \"Medolla\",3981 => \"Meduna di livenza\",3982 => \"Meduno\",3983 => \"Megliadino san fidenzio\",3984 => \"Megliadino san vitale\",3985 => \"Meina\",3986 => \"Mel\",3987 => \"Melara\",3988 => \"Melazzo\",8443 => \"Meldola\",3990 => \"Mele\",3991 => \"Melegnano\",3992 => \"Melendugno\",3993 => \"Meleti\",8666 => \"Melezet\",3994 => \"Melfi\",3995 => \"Melicucca'\",3996 => \"Melicucco\",3997 => \"Melilli\",3998 => \"Melissa\",3999 => \"Melissano\",4000 => \"Melito di napoli\",4001 => \"Melito di porto salvo\",4002 => \"Melito irpino\",4003 => \"Melizzano\",4004 => \"Melle\",4005 => \"Mello\",4006 => \"Melpignano\",4007 => \"Meltina\",4008 => \"Melzo\",4009 => \"Menaggio\",4010 => \"Menarola\",4011 => \"Menconico\",4012 => \"Mendatica\",4013 => \"Mendicino\",4014 => \"Menfi\",4015 => \"Mentana\",4016 => \"Meolo\",4017 => \"Merana\",4018 => \"Merano\",8351 => \"Merano 2000\",4019 => \"Merate\",4020 => \"Mercallo\",4021 => \"Mercatello sul metauro\",4022 => \"Mercatino conca\",8437 => \"Mercato\",4023 => \"Mercato san severino\",4024 => \"Mercato saraceno\",4025 => \"Mercenasco\",4026 => \"Mercogliano\",4027 => \"Mereto di tomba\",4028 => \"Mergo\",4029 => \"Mergozzo\",4030 => \"Meri'\",4031 => \"Merlara\",4032 => \"Merlino\",4033 => \"Merone\",4034 => \"Mesagne\",4035 => \"Mese\",4036 => \"Mesenzana\",4037 => \"Mesero\",4038 => \"Mesola\",4039 => \"Mesoraca\",4040 => \"Messina\",4041 => \"Mestrino\",4042 => \"Meta\",8104 => \"Metaponto\",4043 => \"Meugliano\",4044 => \"Mezzago\",4045 => \"Mezzana\",4046 => \"Mezzana bigli\",4047 => \"Mezzana mortigliengo\",4048 => \"Mezzana rabattone\",4049 => \"Mezzane di sotto\",4050 => \"Mezzanego\",4051 => \"Mezzani\",4052 => \"Mezzanino\",4053 => \"Mezzano\",4054 => \"Mezzegra\",4055 => \"Mezzenile\",4056 => \"Mezzocorona\",4057 => \"Mezzojuso\",4058 => \"Mezzoldo\",4059 => \"Mezzolombardo\",4060 => \"Mezzomerico\",8524 => \"MI Olgettina\",8526 => \"MI Primaticcio\",8527 => \"MI Silla\",8525 => \"MI Zama\",4061 => \"Miagliano\",4062 => \"Miane\",4063 => \"Miasino\",4064 => \"Miazzina\",4065 => \"Micigliano\",4066 => \"Miggiano\",4067 => \"Miglianico\",4068 => \"Migliarino\",4069 => \"Migliaro\",4070 => \"Miglierina\",4071 => \"Miglionico\",4072 => \"Mignanego\",4073 => \"Mignano monte lungo\",4074 => \"Milano\",8495 => \"Milano Linate\",8496 => \"Milano Malpensa\",8240 => \"Milano marittima\",4075 => \"Milazzo\",4076 => \"Milena\",4077 => \"Mileto\",4078 => \"Milis\",4079 => \"Militello in val di catania\",4080 => \"Militello rosmarino\",4081 => \"Millesimo\",4082 => \"Milo\",4083 => \"Milzano\",4084 => \"Mineo\",4085 => \"Minerbe\",4086 => \"Minerbio\",4087 => \"Minervino di lecce\",4088 => \"Minervino murge\",4089 => \"Minori\",4090 => \"Minturno\",4091 => \"Minucciano\",4092 => \"Mioglia\",4093 => \"Mira\",4094 => \"Mirabella eclano\",4095 => \"Mirabella imbaccari\",4096 => \"Mirabello\",4097 => \"Mirabello monferrato\",4098 => \"Mirabello sannitico\",4099 => \"Miradolo terme\",4100 => \"Miranda\",4101 => \"Mirandola\",4102 => \"Mirano\",4103 => \"Mirto\",4104 => \"Misano adriatico\",4105 => \"Misano di gera d'adda\",4106 => \"Misilmeri\",4107 => \"Misinto\",4108 => \"Missaglia\",8416 => \"Missanello\",4110 => \"Misterbianco\",4111 => \"Mistretta\",8623 => \"Misurina\",4112 => \"Moasca\",4113 => \"Moconesi\",4114 => \"Modena\",4115 => \"Modica\",4116 => \"Modigliana\",4117 => \"Modolo\",4118 => \"Modugno\",4119 => \"Moena\",4120 => \"Moggio\",4121 => \"Moggio udinese\",4122 => \"Moglia\",4123 => \"Mogliano\",4124 => \"Mogliano veneto\",4125 => \"Mogorella\",4126 => \"Mogoro\",4127 => \"Moiano\",8615 => \"Moie\",4128 => \"Moimacco\",4129 => \"Moio Alcantara\",4130 => \"Moio de'calvi\",4131 => \"Moio della civitella\",4132 => \"Moiola\",4133 => \"Mola di bari\",4134 => \"Molare\",4135 => \"Molazzana\",4136 => \"Molfetta\",4137 => \"Molina aterno\",4138 => \"Molina di ledro\",4139 => \"Molinara\",4140 => \"Molinella\",4141 => \"Molini di triora\",4142 => \"Molino dei torti\",4143 => \"Molise\",4144 => \"Moliterno\",4145 => \"Mollia\",4146 => \"Molochio\",4147 => \"Molteno\",4148 => \"Moltrasio\",4149 => \"Molvena\",4150 => \"Molveno\",4151 => \"Mombaldone\",4152 => \"Mombarcaro\",4153 => \"Mombaroccio\",4154 => \"Mombaruzzo\",4155 => \"Mombasiglio\",4156 => \"Mombello di torino\",4157 => \"Mombello monferrato\",4158 => \"Mombercelli\",4159 => \"Momo\",4160 => \"Mompantero\",4161 => \"Mompeo\",4162 => \"Momperone\",4163 => \"Monacilioni\",4164 => \"Monale\",4165 => \"Monasterace\",4166 => \"Monastero bormida\",4167 => \"Monastero di lanzo\",4168 => \"Monastero di vasco\",4169 => \"Monasterolo casotto\",4170 => \"Monasterolo del castello\",4171 => \"Monasterolo di savigliano\",4172 => \"Monastier di treviso\",4173 => \"Monastir\",4174 => \"Moncalieri\",4175 => \"Moncalvo\",4176 => \"Moncenisio\",4177 => \"Moncestino\",4178 => \"Monchiero\",4179 => \"Monchio delle corti\",4180 => \"Monclassico\",4181 => \"Moncrivello\",8649 => \"Moncucco\",4182 => \"Moncucco torinese\",4183 => \"Mondaino\",4184 => \"Mondavio\",4185 => \"Mondolfo\",4186 => \"Mondovi'\",4187 => \"Mondragone\",4188 => \"Moneglia\",8143 => \"Monesi\",4189 => \"Monesiglio\",4190 => \"Monfalcone\",4191 => \"Monforte d'alba\",4192 => \"Monforte san giorgio\",4193 => \"Monfumo\",4194 => \"Mongardino\",4195 => \"Monghidoro\",4196 => \"Mongiana\",4197 => \"Mongiardino ligure\",8637 => \"Monginevro Montgenevre\",4198 => \"Mongiuffi melia\",4199 => \"Mongrando\",4200 => \"Mongrassano\",4201 => \"Monguelfo\",4202 => \"Monguzzo\",4203 => \"Moniga del garda\",4204 => \"Monleale\",4205 => \"Monno\",4206 => \"Monopoli\",4207 => \"Monreale\",4208 => \"Monrupino\",4209 => \"Monsampietro morico\",4210 => \"Monsampolo del tronto\",4211 => \"Monsano\",4212 => \"Monselice\",4213 => \"Monserrato\",4214 => \"Monsummano terme\",4215 => \"Monta'\",4216 => \"Montabone\",4217 => \"Montacuto\",4218 => \"Montafia\",4219 => \"Montagano\",4220 => \"Montagna\",4221 => \"Montagna in valtellina\",8301 => \"Montagnana\",4223 => \"Montagnareale\",4224 => \"Montagne\",4225 => \"Montaguto\",4226 => \"Montaione\",4227 => \"Montalbano Elicona\",4228 => \"Montalbano jonico\",4229 => \"Montalcino\",4230 => \"Montaldeo\",4231 => \"Montaldo bormida\",4232 => \"Montaldo di mondovi'\",4233 => \"Montaldo roero\",4234 => \"Montaldo scarampi\",4235 => \"Montaldo torinese\",4236 => \"Montale\",4237 => \"Montalenghe\",4238 => \"Montallegro\",4239 => \"Montalto delle marche\",4240 => \"Montalto di castro\",4241 => \"Montalto dora\",4242 => \"Montalto ligure\",4243 => \"Montalto pavese\",4244 => \"Montalto uffugo\",4245 => \"Montanaro\",4246 => \"Montanaso lombardo\",4247 => \"Montanera\",4248 => \"Montano antilia\",4249 => \"Montano lucino\",4250 => \"Montappone\",4251 => \"Montaquila\",4252 => \"Montasola\",4253 => \"Montauro\",4254 => \"Montazzoli\",8738 => \"Monte Alben\",8350 => \"Monte Amiata\",4255 => \"Monte Argentario\",8696 => \"Monte Avena\",8660 => \"Monte Baldo\",8251 => \"Monte Belvedere\",8720 => \"Monte Bianco\",8292 => \"Monte Bondone\",8757 => \"Monte Caio\",8149 => \"Monte Campione\",4256 => \"Monte Castello di Vibio\",4257 => \"Monte Cavallo\",4258 => \"Monte Cerignone\",8722 => \"Monte Cervino\",8533 => \"Monte Cimone\",4259 => \"Monte Colombo\",8658 => \"Monte Cornizzolo\",4260 => \"Monte Cremasco\",4261 => \"Monte di Malo\",4262 => \"Monte di Procida\",8581 => \"Monte Elmo\",8701 => \"Monte Faloria\",4263 => \"Monte Giberto\",8486 => \"Monte Gomito\",8232 => \"Monte Grappa\",4264 => \"Monte Isola\",8735 => \"Monte Legnone\",8631 => \"Monte Livata\",8574 => \"Monte Lussari\",8484 => \"Monte Malanotte\",4265 => \"Monte Marenzo\",8611 => \"Monte Matajur\",8732 => \"Monte Matto\",8266 => \"Monte Moro\",8697 => \"Monte Mucrone\",8619 => \"Monte Pigna\",8288 => \"Monte Pora Base\",8310 => \"Monte Pora Cima\",4266 => \"Monte Porzio\",4267 => \"Monte Porzio Catone\",8608 => \"Monte Prata\",8320 => \"Monte Pratello\",4268 => \"Monte Rinaldo\",4269 => \"Monte Roberto\",4270 => \"Monte Romano\",4271 => \"Monte San Biagio\",4272 => \"Monte San Giacomo\",4273 => \"Monte San Giovanni Campano\",4274 => \"Monte San Giovanni in Sabina\",4275 => \"Monte San Giusto\",4276 => \"Monte San Martino\",4277 => \"Monte San Pietrangeli\",4278 => \"Monte San Pietro\",8538 => \"Monte San Primo\",4279 => \"Monte San Savino\",8652 => \"Monte San Vigilio\",4280 => \"Monte San Vito\",4281 => \"Monte Sant'Angelo\",4282 => \"Monte Santa Maria Tiberina\",8570 => \"Monte Scuro\",8278 => \"Monte Spinale\",4283 => \"Monte Urano\",8758 => \"Monte Ventasso\",4284 => \"Monte Vidon Combatte\",4285 => \"Monte Vidon Corrado\",8729 => \"Monte Volturino\",8346 => \"Monte Zoncolan\",4286 => \"Montebello della Battaglia\",4287 => \"Montebello di Bertona\",4288 => \"Montebello Ionico\",4289 => \"Montebello sul Sangro\",4290 => \"Montebello Vicentino\",4291 => \"Montebelluna\",4292 => \"Montebruno\",4293 => \"Montebuono\",4294 => \"Montecalvo in Foglia\",4295 => \"Montecalvo Irpino\",4296 => \"Montecalvo Versiggia\",4297 => \"Montecarlo\",4298 => \"Montecarotto\",4299 => \"Montecassiano\",4300 => \"Montecastello\",4301 => \"Montecastrilli\",4303 => \"Montecatini terme\",4302 => \"Montecatini Val di Cecina\",4304 => \"Montecchia di Crosara\",4305 => \"Montecchio\",4306 => \"Montecchio Emilia\",4307 => \"Montecchio Maggiore\",4308 => \"Montecchio Precalcino\",4309 => \"Montechiaro d'Acqui\",4310 => \"Montechiaro d'Asti\",4311 => \"Montechiarugolo\",4312 => \"Monteciccardo\",4313 => \"Montecilfone\",4314 => \"Montecompatri\",4315 => \"Montecopiolo\",4316 => \"Montecorice\",4317 => \"Montecorvino Pugliano\",4318 => \"Montecorvino Rovella\",4319 => \"Montecosaro\",4320 => \"Montecrestese\",4321 => \"Montecreto\",4322 => \"Montedinove\",4323 => \"Montedoro\",4324 => \"Montefalcione\",4325 => \"Montefalco\",4326 => \"Montefalcone Appennino\",4327 => \"Montefalcone di Val Fortore\",4328 => \"Montefalcone nel Sannio\",4329 => \"Montefano\",4330 => \"Montefelcino\",4331 => \"Monteferrante\",4332 => \"Montefiascone\",4333 => \"Montefino\",4334 => \"Montefiore conca\",4335 => \"Montefiore dell'Aso\",4336 => \"Montefiorino\",4337 => \"Monteflavio\",4338 => \"Monteforte Cilento\",4339 => \"Monteforte d'Alpone\",4340 => \"Monteforte Irpino\",4341 => \"Montefortino\",4342 => \"Montefranco\",4343 => \"Montefredane\",4344 => \"Montefusco\",4345 => \"Montegabbione\",4346 => \"Montegalda\",4347 => \"Montegaldella\",4348 => \"Montegallo\",4349 => \"Montegioco\",4350 => \"Montegiordano\",4351 => \"Montegiorgio\",4352 => \"Montegranaro\",4353 => \"Montegridolfo\",4354 => \"Montegrimano\",4355 => \"Montegrino valtravaglia\",4356 => \"Montegrosso d'Asti\",4357 => \"Montegrosso pian latte\",4358 => \"Montegrotto terme\",4359 => \"Monteiasi\",4360 => \"Montelabbate\",4361 => \"Montelanico\",4362 => \"Montelapiano\",4363 => \"Monteleone d'orvieto\",4364 => \"Monteleone di fermo\",4365 => \"Monteleone di puglia\",4366 => \"Monteleone di spoleto\",4367 => \"Monteleone rocca doria\",4368 => \"Monteleone sabino\",4369 => \"Montelepre\",4370 => \"Montelibretti\",4371 => \"Montella\",4372 => \"Montello\",4373 => \"Montelongo\",4374 => \"Montelparo\",4375 => \"Montelupo albese\",4376 => \"Montelupo fiorentino\",4377 => \"Montelupone\",4378 => \"Montemaggiore al metauro\",4379 => \"Montemaggiore belsito\",4380 => \"Montemagno\",4381 => \"Montemale di cuneo\",4382 => \"Montemarano\",4383 => \"Montemarciano\",4384 => \"Montemarzino\",4385 => \"Montemesola\",4386 => \"Montemezzo\",4387 => \"Montemignaio\",4388 => \"Montemiletto\",8401 => \"Montemilone\",4390 => \"Montemitro\",4391 => \"Montemonaco\",4392 => \"Montemurlo\",8408 => \"Montemurro\",4394 => \"Montenars\",4395 => \"Montenero di bisaccia\",4396 => \"Montenero sabino\",4397 => \"Montenero val cocchiara\",4398 => \"Montenerodomo\",4399 => \"Monteodorisio\",4400 => \"Montepaone\",4401 => \"Monteparano\",8296 => \"Montepiano\",4402 => \"Monteprandone\",4403 => \"Montepulciano\",4404 => \"Monterado\",4405 => \"Monterchi\",4406 => \"Montereale\",4407 => \"Montereale valcellina\",4408 => \"Monterenzio\",4409 => \"Monteriggioni\",4410 => \"Monteroduni\",4411 => \"Monteroni d'arbia\",4412 => \"Monteroni di lecce\",4413 => \"Monterosi\",4414 => \"Monterosso al mare\",4415 => \"Monterosso almo\",4416 => \"Monterosso calabro\",4417 => \"Monterosso grana\",4418 => \"Monterotondo\",4419 => \"Monterotondo marittimo\",4420 => \"Monterubbiano\",4421 => \"Montesano salentino\",4422 => \"Montesano sulla marcellana\",4423 => \"Montesarchio\",8389 => \"Montescaglioso\",4425 => \"Montescano\",4426 => \"Montescheno\",4427 => \"Montescudaio\",4428 => \"Montescudo\",4429 => \"Montese\",4430 => \"Montesegale\",4431 => \"Montesilvano\",8491 => \"Montesilvano Marina\",4432 => \"Montespertoli\",1730 => \"Montespluga\",4433 => \"Monteu da Po\",4434 => \"Monteu roero\",4435 => \"Montevago\",4436 => \"Montevarchi\",4437 => \"Montevecchia\",4438 => \"Monteveglio\",4439 => \"Monteverde\",4440 => \"Monteverdi marittimo\",8589 => \"Montevergine\",4441 => \"Monteviale\",4442 => \"Montezemolo\",4443 => \"Monti\",4444 => \"Montiano\",4445 => \"Monticelli brusati\",4446 => \"Monticelli d'ongina\",4447 => \"Monticelli pavese\",4448 => \"Monticello brianza\",4449 => \"Monticello conte otto\",4450 => \"Monticello d'alba\",4451 => \"Montichiari\",4452 => \"Monticiano\",4453 => \"Montieri\",4454 => \"Montiglio monferrato\",4455 => \"Montignoso\",4456 => \"Montirone\",4457 => \"Montjovet\",4458 => \"Montodine\",4459 => \"Montoggio\",4460 => \"Montone\",4461 => \"Montopoli di sabina\",4462 => \"Montopoli in val d'arno\",4463 => \"Montorfano\",4464 => \"Montorio al vomano\",4465 => \"Montorio nei frentani\",4466 => \"Montorio romano\",4467 => \"Montoro inferiore\",4468 => \"Montoro superiore\",4469 => \"Montorso vicentino\",4470 => \"Montottone\",4471 => \"Montresta\",4472 => \"Montu' beccaria\",8326 => \"Montzeuc\",4473 => \"Monvalle\",8726 => \"Monviso\",4474 => \"Monza\",4475 => \"Monzambano\",4476 => \"Monzuno\",4477 => \"Morano calabro\",4478 => \"Morano sul Po\",4479 => \"Moransengo\",4480 => \"Moraro\",4481 => \"Morazzone\",4482 => \"Morbegno\",4483 => \"Morbello\",4484 => \"Morciano di leuca\",4485 => \"Morciano di romagna\",4486 => \"Morcone\",4487 => \"Mordano\",8262 => \"Morel\",4488 => \"Morengo\",4489 => \"Mores\",4490 => \"Moresco\",4491 => \"Moretta\",4492 => \"Morfasso\",4493 => \"Morgano\",8717 => \"Morgantina\",4494 => \"Morgex\",4495 => \"Morgongiori\",4496 => \"Mori\",4497 => \"Moriago della battaglia\",4498 => \"Moricone\",4499 => \"Morigerati\",4500 => \"Morimondo\",4501 => \"Morino\",4502 => \"Moriondo torinese\",4503 => \"Morlupo\",4504 => \"Mormanno\",4505 => \"Mornago\",4506 => \"Mornese\",4507 => \"Mornico al serio\",4508 => \"Mornico losana\",4509 => \"Morolo\",4510 => \"Morozzo\",4511 => \"Morra de sanctis\",4512 => \"Morro d'alba\",4513 => \"Morro d'oro\",4514 => \"Morro reatino\",4515 => \"Morrone del sannio\",4516 => \"Morrovalle\",4517 => \"Morsano al tagliamento\",4518 => \"Morsasco\",4519 => \"Mortara\",4520 => \"Mortegliano\",4521 => \"Morterone\",4522 => \"Moruzzo\",4523 => \"Moscazzano\",4524 => \"Moschiano\",4525 => \"Mosciano sant'angelo\",4526 => \"Moscufo\",4527 => \"Moso in Passiria\",4528 => \"Mossa\",4529 => \"Mossano\",4530 => \"Mosso Santa Maria\",4531 => \"Motta baluffi\",4532 => \"Motta Camastra\",4533 => \"Motta d'affermo\",4534 => \"Motta de' conti\",4535 => \"Motta di livenza\",4536 => \"Motta montecorvino\",4537 => \"Motta san giovanni\",4538 => \"Motta sant'anastasia\",4539 => \"Motta santa lucia\",4540 => \"Motta visconti\",4541 => \"Mottafollone\",4542 => \"Mottalciata\",8621 => \"Mottarone\",4543 => \"Motteggiana\",4544 => \"Mottola\",8254 => \"Mottolino\",4545 => \"Mozzagrogna\",4546 => \"Mozzanica\",4547 => \"Mozzate\",4548 => \"Mozzecane\",4549 => \"Mozzo\",4550 => \"Muccia\",4551 => \"Muggia\",4552 => \"Muggio'\",4553 => \"Mugnano del cardinale\",4554 => \"Mugnano di napoli\",4555 => \"Mulazzano\",4556 => \"Mulazzo\",4557 => \"Mura\",4558 => \"Muravera\",4559 => \"Murazzano\",4560 => \"Murello\",4561 => \"Murialdo\",4562 => \"Murisengo\",4563 => \"Murlo\",4564 => \"Muro leccese\",4565 => \"Muro lucano\",4566 => \"Muros\",4567 => \"Muscoline\",4568 => \"Musei\",4569 => \"Musile di piave\",4570 => \"Musso\",4571 => \"Mussolente\",4572 => \"Mussomeli\",4573 => \"Muzzana del turgnano\",4574 => \"Muzzano\",4575 => \"Nago torbole\",4576 => \"Nalles\",4577 => \"Nanno\",4578 => \"Nanto\",4579 => \"Napoli\",8498 => \"Napoli Capodichino\",4580 => \"Narbolia\",4581 => \"Narcao\",4582 => \"Nardo'\",4583 => \"Nardodipace\",4584 => \"Narni\",4585 => \"Naro\",4586 => \"Narzole\",4587 => \"Nasino\",4588 => \"Naso\",4589 => \"Naturno\",4590 => \"Nave\",4591 => \"Nave san rocco\",4592 => \"Navelli\",4593 => \"Naz Sciaves\",4594 => \"Nazzano\",4595 => \"Ne\",4596 => \"Nebbiuno\",4597 => \"Negrar\",4598 => \"Neirone\",4599 => \"Neive\",4600 => \"Nembro\",4601 => \"Nemi\",8381 => \"Nemoli\",4603 => \"Neoneli\",4604 => \"Nepi\",4605 => \"Nereto\",4606 => \"Nerola\",4607 => \"Nervesa della battaglia\",4608 => \"Nerviano\",4609 => \"Nespolo\",4610 => \"Nesso\",4611 => \"Netro\",4612 => \"Nettuno\",4613 => \"Neviano\",4614 => \"Neviano degli arduini\",4615 => \"Neviglie\",4616 => \"Niardo\",4617 => \"Nibbiano\",4618 => \"Nibbiola\",4619 => \"Nibionno\",4620 => \"Nichelino\",4621 => \"Nicolosi\",4622 => \"Nicorvo\",4623 => \"Nicosia\",4624 => \"Nicotera\",8117 => \"Nicotera Marina\",4625 => \"Niella belbo\",8475 => \"Niella Tanaro\",4627 => \"Nimis\",4628 => \"Niscemi\",4629 => \"Nissoria\",4630 => \"Nizza di sicilia\",4631 => \"Nizza monferrato\",4632 => \"Noale\",4633 => \"Noasca\",4634 => \"Nocara\",4635 => \"Nocciano\",4636 => \"Nocera inferiore\",4637 => \"Nocera superiore\",4638 => \"Nocera terinese\",4639 => \"Nocera umbra\",4640 => \"Noceto\",4641 => \"Noci\",4642 => \"Nociglia\",8375 => \"Noepoli\",4644 => \"Nogara\",4645 => \"Nogaredo\",4646 => \"Nogarole rocca\",4647 => \"Nogarole vicentino\",4648 => \"Noicattaro\",4649 => \"Nola\",4650 => \"Nole\",4651 => \"Noli\",4652 => \"Nomaglio\",4653 => \"Nomi\",4654 => \"Nonantola\",4655 => \"None\",4656 => \"Nonio\",4657 => \"Noragugume\",4658 => \"Norbello\",4659 => \"Norcia\",4660 => \"Norma\",4661 => \"Nosate\",4662 => \"Notaresco\",4663 => \"Noto\",4664 => \"Nova Levante\",4665 => \"Nova milanese\",4666 => \"Nova Ponente\",8428 => \"Nova siri\",4668 => \"Novafeltria\",4669 => \"Novaledo\",4670 => \"Novalesa\",4671 => \"Novara\",4672 => \"Novara di Sicilia\",4673 => \"Novate mezzola\",4674 => \"Novate milanese\",4675 => \"Nove\",4676 => \"Novedrate\",4677 => \"Novellara\",4678 => \"Novello\",4679 => \"Noventa di piave\",4680 => \"Noventa padovana\",4681 => \"Noventa vicentina\",4682 => \"Novi di modena\",4683 => \"Novi ligure\",4684 => \"Novi velia\",4685 => \"Noviglio\",4686 => \"Novoli\",4687 => \"Nucetto\",4688 => \"Nughedu di san nicolo'\",4689 => \"Nughedu santa vittoria\",4690 => \"Nule\",4691 => \"Nulvi\",4692 => \"Numana\",4693 => \"Nuoro\",4694 => \"Nurachi\",4695 => \"Nuragus\",4696 => \"Nurallao\",4697 => \"Nuraminis\",4698 => \"Nureci\",4699 => \"Nurri\",4700 => \"Nus\",4701 => \"Nusco\",4702 => \"Nuvolento\",4703 => \"Nuvolera\",4704 => \"Nuxis\",8260 => \"Obereggen\",4705 => \"Occhieppo inferiore\",4706 => \"Occhieppo superiore\",4707 => \"Occhiobello\",4708 => \"Occimiano\",4709 => \"Ocre\",4710 => \"Odalengo grande\",4711 => \"Odalengo piccolo\",4712 => \"Oderzo\",4713 => \"Odolo\",4714 => \"Ofena\",4715 => \"Offagna\",4716 => \"Offanengo\",4717 => \"Offida\",4718 => \"Offlaga\",4719 => \"Oggebbio\",4720 => \"Oggiona con santo stefano\",4721 => \"Oggiono\",4722 => \"Oglianico\",4723 => \"Ogliastro cilento\",4724 => \"Olbia\",8470 => \"Olbia Costa Smeralda\",4725 => \"Olcenengo\",4726 => \"Oldenico\",4727 => \"Oleggio\",4728 => \"Oleggio castello\",4729 => \"Olevano di lomellina\",4730 => \"Olevano romano\",4731 => \"Olevano sul tusciano\",4732 => \"Olgiate comasco\",4733 => \"Olgiate molgora\",4734 => \"Olgiate olona\",4735 => \"Olginate\",4736 => \"Oliena\",4737 => \"Oliva gessi\",4738 => \"Olivadi\",4739 => \"Oliveri\",4740 => \"Oliveto citra\",4741 => \"Oliveto lario\",8426 => \"Oliveto lucano\",4743 => \"Olivetta san michele\",4744 => \"Olivola\",4745 => \"Ollastra simaxis\",4746 => \"Ollolai\",4747 => \"Ollomont\",4748 => \"Olmedo\",4749 => \"Olmeneta\",4750 => \"Olmo al brembo\",4751 => \"Olmo gentile\",4752 => \"Oltre il colle\",4753 => \"Oltressenda alta\",4754 => \"Oltrona di san mamette\",4755 => \"Olzai\",4756 => \"Ome\",4757 => \"Omegna\",4758 => \"Omignano\",4759 => \"Onani\",4760 => \"Onano\",4761 => \"Oncino\",8283 => \"Oneglia\",4762 => \"Oneta\",4763 => \"Onifai\",4764 => \"Oniferi\",8664 => \"Onna\",4765 => \"Ono san pietro\",4766 => \"Onore\",4767 => \"Onzo\",4768 => \"Opera\",4769 => \"Opi\",4770 => \"Oppeano\",8409 => \"Oppido lucano\",4772 => \"Oppido mamertina\",4773 => \"Ora\",4774 => \"Orani\",4775 => \"Oratino\",4776 => \"Orbassano\",4777 => \"Orbetello\",4778 => \"Orciano di pesaro\",4779 => \"Orciano pisano\",4780 => \"Orco feglino\",4781 => \"Ordona\",4782 => \"Orero\",4783 => \"Orgiano\",4784 => \"Orgosolo\",4785 => \"Oria\",4786 => \"Oricola\",4787 => \"Origgio\",4788 => \"Orino\",4789 => \"Orio al serio\",4790 => \"Orio canavese\",4791 => \"Orio litta\",4792 => \"Oriolo\",4793 => \"Oriolo romano\",4794 => \"Oristano\",4795 => \"Ormea\",4796 => \"Ormelle\",4797 => \"Ornago\",4798 => \"Ornavasso\",4799 => \"Ornica\",8348 => \"Oropa\",8169 => \"Orosei\",4801 => \"Orotelli\",4802 => \"Orria\",4803 => \"Orroli\",4804 => \"Orsago\",4805 => \"Orsara bormida\",4806 => \"Orsara di puglia\",4807 => \"Orsenigo\",4808 => \"Orsogna\",4809 => \"Orsomarso\",4810 => \"Orta di atella\",4811 => \"Orta nova\",4812 => \"Orta san giulio\",4813 => \"Ortacesus\",4814 => \"Orte\",8460 => \"Orte casello\",4815 => \"Ortelle\",4816 => \"Ortezzano\",4817 => \"Ortignano raggiolo\",4818 => \"Ortisei\",8725 => \"Ortles\",4819 => \"Ortona\",4820 => \"Ortona dei marsi\",4821 => \"Ortonovo\",4822 => \"Ortovero\",4823 => \"Ortucchio\",4824 => \"Ortueri\",4825 => \"Orune\",4826 => \"Orvieto\",8459 => \"Orvieto casello\",4827 => \"Orvinio\",4828 => \"Orzinuovi\",4829 => \"Orzivecchi\",4830 => \"Osasco\",4831 => \"Osasio\",4832 => \"Oschiri\",4833 => \"Osidda\",4834 => \"Osiglia\",4835 => \"Osilo\",4836 => \"Osimo\",4837 => \"Osini\",4838 => \"Osio sopra\",4839 => \"Osio sotto\",4840 => \"Osmate\",4841 => \"Osnago\",8465 => \"Osoppo\",4843 => \"Ospedaletti\",4844 => \"Ospedaletto\",4845 => \"Ospedaletto d'alpinolo\",4846 => \"Ospedaletto euganeo\",4847 => \"Ospedaletto lodigiano\",4848 => \"Ospitale di cadore\",4849 => \"Ospitaletto\",4850 => \"Ossago lodigiano\",4851 => \"Ossana\",4852 => \"Ossi\",4853 => \"Ossimo\",4854 => \"Ossona\",4855 => \"Ossuccio\",4856 => \"Ostana\",4857 => \"Ostellato\",4858 => \"Ostiano\",4859 => \"Ostiglia\",4860 => \"Ostra\",4861 => \"Ostra vetere\",4862 => \"Ostuni\",4863 => \"Otranto\",4864 => \"Otricoli\",4865 => \"Ottana\",4866 => \"Ottati\",4867 => \"Ottaviano\",4868 => \"Ottiglio\",4869 => \"Ottobiano\",4870 => \"Ottone\",4871 => \"Oulx\",4872 => \"Ovada\",4873 => \"Ovaro\",4874 => \"Oviglio\",4875 => \"Ovindoli\",4876 => \"Ovodda\",4877 => \"Oyace\",4878 => \"Ozegna\",4879 => \"Ozieri\",4880 => \"Ozzano dell'emilia\",4881 => \"Ozzano monferrato\",4882 => \"Ozzero\",4883 => \"Pabillonis\",4884 => \"Pace del mela\",4885 => \"Paceco\",4886 => \"Pacentro\",4887 => \"Pachino\",4888 => \"Paciano\",4889 => \"Padenghe sul garda\",4890 => \"Padergnone\",4891 => \"Paderna\",4892 => \"Paderno d'adda\",4893 => \"Paderno del grappa\",4894 => \"Paderno dugnano\",4895 => \"Paderno franciacorta\",4896 => \"Paderno ponchielli\",4897 => \"Padova\",4898 => \"Padria\",4899 => \"Padru\",4900 => \"Padula\",4901 => \"Paduli\",4902 => \"Paesana\",4903 => \"Paese\",8713 => \"Paestum\",8203 => \"Paganella\",4904 => \"Pagani\",8663 => \"Paganica\",4905 => \"Paganico\",4906 => \"Pagazzano\",4907 => \"Pagliara\",4908 => \"Paglieta\",4909 => \"Pagnacco\",4910 => \"Pagno\",4911 => \"Pagnona\",4912 => \"Pago del vallo di lauro\",4913 => \"Pago veiano\",4914 => \"Paisco loveno\",4915 => \"Paitone\",4916 => \"Paladina\",8534 => \"Palafavera\",4917 => \"Palagano\",4918 => \"Palagianello\",4919 => \"Palagiano\",4920 => \"Palagonia\",4921 => \"Palaia\",4922 => \"Palanzano\",4923 => \"Palata\",4924 => \"Palau\",4925 => \"Palazzago\",4926 => \"Palazzo adriano\",4927 => \"Palazzo canavese\",4928 => \"Palazzo pignano\",4929 => \"Palazzo san gervasio\",4930 => \"Palazzolo acreide\",4931 => \"Palazzolo dello stella\",4932 => \"Palazzolo sull'Oglio\",4933 => \"Palazzolo vercellese\",4934 => \"Palazzuolo sul senio\",4935 => \"Palena\",4936 => \"Palermiti\",4937 => \"Palermo\",8575 => \"Palermo Boccadifalco\",8272 => \"Palermo Punta Raisi\",4938 => \"Palestrina\",4939 => \"Palestro\",4940 => \"Paliano\",8121 => \"Palinuro\",4941 => \"Palizzi\",8108 => \"Palizzi Marina\",4942 => \"Pallagorio\",4943 => \"Pallanzeno\",4944 => \"Pallare\",4945 => \"Palma campania\",4946 => \"Palma di montechiaro\",4947 => \"Palmanova\",4948 => \"Palmariggi\",4949 => \"Palmas arborea\",4950 => \"Palmi\",4951 => \"Palmiano\",4952 => \"Palmoli\",4953 => \"Palo del colle\",4954 => \"Palombara sabina\",4955 => \"Palombaro\",4956 => \"Palomonte\",4957 => \"Palosco\",4958 => \"Palu'\",4959 => \"Palu' del fersina\",4960 => \"Paludi\",4961 => \"Paluzza\",4962 => \"Pamparato\",8257 => \"Pampeago\",8753 => \"Panarotta\",4963 => \"Pancalieri\",8261 => \"Pancani\",4964 => \"Pancarana\",4965 => \"Panchia'\",4966 => \"Pandino\",4967 => \"Panettieri\",4968 => \"Panicale\",4969 => \"Pannarano\",4970 => \"Panni\",4971 => \"Pantelleria\",4972 => \"Pantigliate\",4973 => \"Paola\",4974 => \"Paolisi\",4975 => \"Papasidero\",4976 => \"Papozze\",4977 => \"Parabiago\",4978 => \"Parabita\",4979 => \"Paratico\",4980 => \"Parcines\",4981 => \"Pare'\",4982 => \"Parella\",4983 => \"Parenti\",4984 => \"Parete\",4985 => \"Pareto\",4986 => \"Parghelia\",4987 => \"Parlasco\",4988 => \"Parma\",8554 => \"Parma Verdi\",4989 => \"Parodi ligure\",4990 => \"Paroldo\",4991 => \"Parolise\",4992 => \"Parona\",4993 => \"Parrano\",4994 => \"Parre\",4995 => \"Partanna\",4996 => \"Partinico\",4997 => \"Paruzzaro\",4998 => \"Parzanica\",4999 => \"Pasian di prato\",5000 => \"Pasiano di pordenone\",5001 => \"Paspardo\",5002 => \"Passerano Marmorito\",5003 => \"Passignano sul trasimeno\",5004 => \"Passirano\",8613 => \"Passo Bernina\",8760 => \"Passo Campolongo\",8329 => \"Passo Costalunga\",8618 => \"Passo dei Salati\",8207 => \"Passo del Brennero\",8577 => \"Passo del Brocon\",8627 => \"Passo del Cerreto\",8147 => \"Passo del Foscagno\",8308 => \"Passo del Lupo\",8206 => \"Passo del Rombo\",8150 => \"Passo del Tonale\",8196 => \"Passo della Cisa\",8235 => \"Passo della Consuma\",8290 => \"Passo della Presolana\",8659 => \"Passo delle Fittanze\",8145 => \"Passo dello Stelvio\",8213 => \"Passo di Resia\",8752 => \"Passo di Vezzena\",8328 => \"Passo Fedaia\",8759 => \"Passo Gardena\",8277 => \"Passo Groste'\",8756 => \"Passo Lanciano\",8280 => \"Passo Pordoi\",8626 => \"Passo Pramollo\",8210 => \"Passo Rolle\",8279 => \"Passo San Pellegrino\",8325 => \"Passo Sella\",5005 => \"Pastena\",5006 => \"Pastorano\",5007 => \"Pastrengo\",5008 => \"Pasturana\",5009 => \"Pasturo\",8417 => \"Paterno\",5011 => \"Paterno calabro\",5012 => \"Paterno'\",5013 => \"Paternopoli\",5014 => \"Patrica\",5015 => \"Pattada\",5016 => \"Patti\",5017 => \"Patu'\",5018 => \"Pau\",5019 => \"Paularo\",5020 => \"Pauli arbarei\",5021 => \"Paulilatino\",5022 => \"Paullo\",5023 => \"Paupisi\",5024 => \"Pavarolo\",5025 => \"Pavia\",5026 => \"Pavia di udine\",5027 => \"Pavone canavese\",5028 => \"Pavone del mella\",5029 => \"Pavullo nel frignano\",5030 => \"Pazzano\",5031 => \"Peccioli\",5032 => \"Pecco\",5033 => \"Pecetto di valenza\",5034 => \"Pecetto torinese\",5035 => \"Pecorara\",5036 => \"Pedace\",5037 => \"Pedara\",5038 => \"Pedaso\",5039 => \"Pedavena\",5040 => \"Pedemonte\",5041 => \"Pederobba\",5042 => \"Pedesina\",5043 => \"Pedivigliano\",8473 => \"Pedraces\",5044 => \"Pedrengo\",5045 => \"Peglio\",5046 => \"Peglio\",5047 => \"Pegognaga\",5048 => \"Peia\",8665 => \"Pejo\",5050 => \"Pelago\",5051 => \"Pella\",5052 => \"Pellegrino parmense\",5053 => \"Pellezzano\",5054 => \"Pellio intelvi\",5055 => \"Pellizzano\",5056 => \"Pelugo\",5057 => \"Penango\",5058 => \"Penna in teverina\",5059 => \"Penna san giovanni\",5060 => \"Penna sant'andrea\",5061 => \"Pennabilli\",5062 => \"Pennadomo\",5063 => \"Pennapiedimonte\",5064 => \"Penne\",8208 => \"Pennes\",5065 => \"Pentone\",5066 => \"Perano\",5067 => \"Perarolo di cadore\",5068 => \"Perca\",5069 => \"Percile\",5070 => \"Perdasdefogu\",5071 => \"Perdaxius\",5072 => \"Perdifumo\",5073 => \"Perego\",5074 => \"Pereto\",5075 => \"Perfugas\",5076 => \"Pergine valdarno\",5077 => \"Pergine valsugana\",5078 => \"Pergola\",5079 => \"Perinaldo\",5080 => \"Perito\",5081 => \"Perledo\",5082 => \"Perletto\",5083 => \"Perlo\",5084 => \"Perloz\",5085 => \"Pernumia\",5086 => \"Pero\",5087 => \"Perosa argentina\",5088 => \"Perosa canavese\",5089 => \"Perrero\",5090 => \"Persico dosimo\",5091 => \"Pertengo\",5092 => \"Pertica alta\",5093 => \"Pertica bassa\",8586 => \"Perticara di Novafeltria\",5094 => \"Pertosa\",5095 => \"Pertusio\",5096 => \"Perugia\",8555 => \"Perugia Sant'Egidio\",5097 => \"Pesaro\",5098 => \"Pescaglia\",5099 => \"Pescantina\",5100 => \"Pescara\",8275 => \"Pescara Liberi\",5101 => \"Pescarolo ed uniti\",5102 => \"Pescasseroli\",5103 => \"Pescate\",8312 => \"Pescegallo\",5104 => \"Pesche\",5105 => \"Peschici\",5106 => \"Peschiera borromeo\",5107 => \"Peschiera del garda\",5108 => \"Pescia\",5109 => \"Pescina\",8454 => \"Pescina casello\",5110 => \"Pesco sannita\",5111 => \"Pescocostanzo\",5112 => \"Pescolanciano\",5113 => \"Pescopagano\",5114 => \"Pescopennataro\",5115 => \"Pescorocchiano\",5116 => \"Pescosansonesco\",5117 => \"Pescosolido\",5118 => \"Pessano con Bornago\",5119 => \"Pessina cremonese\",5120 => \"Pessinetto\",5121 => \"Petacciato\",5122 => \"Petilia policastro\",5123 => \"Petina\",5124 => \"Petralia soprana\",5125 => \"Petralia sottana\",5126 => \"Petrella salto\",5127 => \"Petrella tifernina\",5128 => \"Petriano\",5129 => \"Petriolo\",5130 => \"Petritoli\",5131 => \"Petrizzi\",5132 => \"Petrona'\",5133 => \"Petrosino\",5134 => \"Petruro irpino\",5135 => \"Pettenasco\",5136 => \"Pettinengo\",5137 => \"Pettineo\",5138 => \"Pettoranello del molise\",5139 => \"Pettorano sul gizio\",5140 => \"Pettorazza grimani\",5141 => \"Peveragno\",5142 => \"Pezzana\",5143 => \"Pezzaze\",5144 => \"Pezzolo valle uzzone\",5145 => \"Piacenza\",5146 => \"Piacenza d'adige\",5147 => \"Piadena\",5148 => \"Piagge\",5149 => \"Piaggine\",8706 => \"Piamprato\",5150 => \"Pian camuno\",8309 => \"Pian Cavallaro\",8233 => \"Pian del Cansiglio\",8642 => \"Pian del Frais\",8705 => \"Pian della Mussa\",8634 => \"Pian delle Betulle\",5151 => \"Pian di sco'\",8712 => \"Pian di Sole\",5152 => \"Piana crixia\",5153 => \"Piana degli albanesi\",8653 => \"Piana di Marcesina\",5154 => \"Piana di monte verna\",8305 => \"Pianalunga\",5155 => \"Piancastagnaio\",8516 => \"Piancavallo\",5156 => \"Piancogno\",5157 => \"Piandimeleto\",5158 => \"Piane crati\",8561 => \"Piane di Mocogno\",5159 => \"Pianella\",5160 => \"Pianello del lario\",5161 => \"Pianello val tidone\",5162 => \"Pianengo\",5163 => \"Pianezza\",5164 => \"Pianezze\",5165 => \"Pianfei\",8605 => \"Piani d'Erna\",8517 => \"Piani di Artavaggio\",8234 => \"Piani di Bobbio\",5166 => \"Pianico\",5167 => \"Pianiga\",8314 => \"Piano del Voglio\",5168 => \"Piano di Sorrento\",8630 => \"Piano Provenzana\",5169 => \"Pianopoli\",5170 => \"Pianoro\",5171 => \"Piansano\",5172 => \"Piantedo\",5173 => \"Piario\",5174 => \"Piasco\",5175 => \"Piateda\",5176 => \"Piatto\",5177 => \"Piazza al serchio\",5178 => \"Piazza armerina\",5179 => \"Piazza brembana\",5180 => \"Piazzatorre\",5181 => \"Piazzola sul brenta\",5182 => \"Piazzolo\",5183 => \"Picciano\",5184 => \"Picerno\",5185 => \"Picinisco\",5186 => \"Pico\",5187 => \"Piea\",5188 => \"Piedicavallo\",8218 => \"Piediluco\",5189 => \"Piedimonte etneo\",5190 => \"Piedimonte matese\",5191 => \"Piedimonte san germano\",5192 => \"Piedimulera\",5193 => \"Piegaro\",5194 => \"Pienza\",5195 => \"Pieranica\",5196 => \"Pietra de'giorgi\",5197 => \"Pietra ligure\",5198 => \"Pietra marazzi\",5199 => \"Pietrabbondante\",5200 => \"Pietrabruna\",5201 => \"Pietracamela\",5202 => \"Pietracatella\",5203 => \"Pietracupa\",5204 => \"Pietradefusi\",5205 => \"Pietraferrazzana\",5206 => \"Pietrafitta\",5207 => \"Pietragalla\",5208 => \"Pietralunga\",5209 => \"Pietramelara\",5210 => \"Pietramontecorvino\",5211 => \"Pietranico\",5212 => \"Pietrapaola\",5213 => \"Pietrapertosa\",5214 => \"Pietraperzia\",5215 => \"Pietraporzio\",5216 => \"Pietraroja\",5217 => \"Pietrarubbia\",5218 => \"Pietrasanta\",5219 => \"Pietrastornina\",5220 => \"Pietravairano\",5221 => \"Pietrelcina\",5222 => \"Pieve a nievole\",5223 => \"Pieve albignola\",5224 => \"Pieve d'alpago\",5225 => \"Pieve d'olmi\",5226 => \"Pieve del cairo\",5227 => \"Pieve di bono\",5228 => \"Pieve di cadore\",5229 => \"Pieve di cento\",5230 => \"Pieve di coriano\",5231 => \"Pieve di ledro\",5232 => \"Pieve di soligo\",5233 => \"Pieve di teco\",5234 => \"Pieve emanuele\",5235 => \"Pieve fissiraga\",5236 => \"Pieve fosciana\",5237 => \"Pieve ligure\",5238 => \"Pieve porto morone\",5239 => \"Pieve san giacomo\",5240 => \"Pieve santo stefano\",5241 => \"Pieve tesino\",5242 => \"Pieve torina\",5243 => \"Pieve vergonte\",5244 => \"Pievebovigliana\",5245 => \"Pievepelago\",5246 => \"Piglio\",5247 => \"Pigna\",5248 => \"Pignataro interamna\",5249 => \"Pignataro maggiore\",5250 => \"Pignola\",5251 => \"Pignone\",5252 => \"Pigra\",5253 => \"Pila\",8221 => \"Pila\",5254 => \"Pimentel\",5255 => \"Pimonte\",5256 => \"Pinarolo po\",5257 => \"Pinasca\",5258 => \"Pincara\",5259 => \"Pinerolo\",5260 => \"Pineto\",5261 => \"Pino d'asti\",5262 => \"Pino sulla sponda del lago magg.\",5263 => \"Pino torinese\",5264 => \"Pinzano al tagliamento\",5265 => \"Pinzolo\",5266 => \"Piobbico\",5267 => \"Piobesi d'alba\",5268 => \"Piobesi torinese\",5269 => \"Piode\",5270 => \"Pioltello\",5271 => \"Piombino\",5272 => \"Piombino dese\",5273 => \"Pioraco\",5274 => \"Piossasco\",5275 => \"Piova' massaia\",5276 => \"Piove di sacco\",5277 => \"Piovene rocchette\",5278 => \"Piovera\",5279 => \"Piozzano\",5280 => \"Piozzo\",5281 => \"Piraino\",5282 => \"Pisa\",8518 => \"Pisa San Giusto\",5283 => \"Pisano\",5284 => \"Piscina\",5285 => \"Piscinas\",5286 => \"Pisciotta\",5287 => \"Pisogne\",5288 => \"Pisoniano\",5289 => \"Pisticci\",5290 => \"Pistoia\",5291 => \"Piteglio\",5292 => \"Pitigliano\",5293 => \"Piubega\",5294 => \"Piuro\",5295 => \"Piverone\",5296 => \"Pizzale\",5297 => \"Pizzighettone\",5298 => \"Pizzo\",8737 => \"Pizzo Arera\",8727 => \"Pizzo Bernina\",8736 => \"Pizzo dei Tre Signori\",8739 => \"Pizzo della Presolana\",5299 => \"Pizzoferrato\",5300 => \"Pizzoli\",5301 => \"Pizzone\",5302 => \"Pizzoni\",5303 => \"Placanica\",8342 => \"Plaghera\",8685 => \"Plain Maison\",8324 => \"Plain Mason\",8337 => \"Plan\",8469 => \"Plan Boè\",8633 => \"Plan Checrouit\",8204 => \"Plan de Corones\",8576 => \"Plan in Passiria\",5304 => \"Plataci\",5305 => \"Platania\",8241 => \"Plateau Rosa\",5306 => \"Plati'\",5307 => \"Plaus\",5308 => \"Plesio\",5309 => \"Ploaghe\",5310 => \"Plodio\",8569 => \"Plose\",5311 => \"Pocapaglia\",5312 => \"Pocenia\",5313 => \"Podenzana\",5314 => \"Podenzano\",5315 => \"Pofi\",5316 => \"Poggiardo\",5317 => \"Poggibonsi\",5318 => \"Poggio a caiano\",5319 => \"Poggio berni\",5320 => \"Poggio bustone\",5321 => \"Poggio catino\",5322 => \"Poggio imperiale\",5323 => \"Poggio mirteto\",5324 => \"Poggio moiano\",5325 => \"Poggio nativo\",5326 => \"Poggio picenze\",5327 => \"Poggio renatico\",5328 => \"Poggio rusco\",5329 => \"Poggio san lorenzo\",5330 => \"Poggio san marcello\",5331 => \"Poggio san vicino\",5332 => \"Poggio sannita\",5333 => \"Poggiodomo\",5334 => \"Poggiofiorito\",5335 => \"Poggiomarino\",5336 => \"Poggioreale\",5337 => \"Poggiorsini\",5338 => \"Poggiridenti\",5339 => \"Pogliano milanese\",8339 => \"Pogliola\",5340 => \"Pognana lario\",5341 => \"Pognano\",5342 => \"Pogno\",5343 => \"Poiana maggiore\",5344 => \"Poirino\",5345 => \"Polaveno\",5346 => \"Polcenigo\",5347 => \"Polesella\",5348 => \"Polesine parmense\",5349 => \"Poli\",5350 => \"Polia\",5351 => \"Policoro\",5352 => \"Polignano a mare\",5353 => \"Polinago\",5354 => \"Polino\",5355 => \"Polistena\",5356 => \"Polizzi generosa\",5357 => \"Polla\",5358 => \"Pollein\",5359 => \"Pollena trocchia\",5360 => \"Pollenza\",5361 => \"Pollica\",5362 => \"Pollina\",5363 => \"Pollone\",5364 => \"Pollutri\",5365 => \"Polonghera\",5366 => \"Polpenazze del garda\",8650 => \"Polsa San Valentino\",5367 => \"Polverara\",5368 => \"Polverigi\",5369 => \"Pomarance\",5370 => \"Pomaretto\",8384 => \"Pomarico\",5372 => \"Pomaro monferrato\",5373 => \"Pomarolo\",5374 => \"Pombia\",5375 => \"Pomezia\",5376 => \"Pomigliano d'arco\",5377 => \"Pompei\",5378 => \"Pompeiana\",5379 => \"Pompiano\",5380 => \"Pomponesco\",5381 => \"Pompu\",5382 => \"Poncarale\",5383 => \"Ponderano\",5384 => \"Ponna\",5385 => \"Ponsacco\",5386 => \"Ponso\",8220 => \"Pont\",5389 => \"Pont canavese\",5427 => \"Pont Saint Martin\",5387 => \"Pontassieve\",5388 => \"Pontboset\",5390 => \"Ponte\",5391 => \"Ponte buggianese\",5392 => \"Ponte dell'olio\",5393 => \"Ponte di legno\",5394 => \"Ponte di piave\",5395 => \"Ponte Gardena\",5396 => \"Ponte in valtellina\",5397 => \"Ponte lambro\",5398 => \"Ponte nelle alpi\",5399 => \"Ponte nizza\",5400 => \"Ponte nossa\",5401 => \"Ponte San Nicolo'\",5402 => \"Ponte San Pietro\",5403 => \"Pontebba\",5404 => \"Pontecagnano faiano\",5405 => \"Pontecchio polesine\",5406 => \"Pontechianale\",5407 => \"Pontecorvo\",5408 => \"Pontecurone\",5409 => \"Pontedassio\",5410 => \"Pontedera\",5411 => \"Pontelandolfo\",5412 => \"Pontelatone\",5413 => \"Pontelongo\",5414 => \"Pontenure\",5415 => \"Ponteranica\",5416 => \"Pontestura\",5417 => \"Pontevico\",5418 => \"Pontey\",5419 => \"Ponti\",5420 => \"Ponti sul mincio\",5421 => \"Pontida\",5422 => \"Pontinia\",5423 => \"Pontinvrea\",5424 => \"Pontirolo nuovo\",5425 => \"Pontoglio\",5426 => \"Pontremoli\",5428 => \"Ponza\",5429 => \"Ponzano di fermo\",8462 => \"Ponzano galleria\",5430 => \"Ponzano monferrato\",5431 => \"Ponzano romano\",5432 => \"Ponzano veneto\",5433 => \"Ponzone\",5434 => \"Popoli\",5435 => \"Poppi\",8192 => \"Populonia\",5436 => \"Porano\",5437 => \"Porcari\",5438 => \"Porcia\",5439 => \"Pordenone\",5440 => \"Porlezza\",5441 => \"Pornassio\",5442 => \"Porpetto\",5443 => \"Porretta terme\",5444 => \"Portacomaro\",5445 => \"Portalbera\",5446 => \"Porte\",5447 => \"Portici\",5448 => \"Portico di caserta\",5449 => \"Portico e san benedetto\",5450 => \"Portigliola\",8294 => \"Porto Alabe\",5451 => \"Porto azzurro\",5452 => \"Porto ceresio\",8528 => \"Porto Cervo\",5453 => \"Porto cesareo\",8295 => \"Porto Conte\",8612 => \"Porto Corsini\",5454 => \"Porto empedocle\",8669 => \"Porto Ercole\",8743 => \"Porto Levante\",5455 => \"Porto mantovano\",8178 => \"Porto Pino\",5456 => \"Porto recanati\",8529 => \"Porto Rotondo\",5457 => \"Porto san giorgio\",5458 => \"Porto sant'elpidio\",8670 => \"Porto Santo Stefano\",5459 => \"Porto tolle\",5460 => \"Porto torres\",5461 => \"Porto valtravaglia\",5462 => \"Porto viro\",8172 => \"Portobello di Gallura\",5463 => \"Portobuffole'\",5464 => \"Portocannone\",5465 => \"Portoferraio\",5466 => \"Portofino\",5467 => \"Portogruaro\",5468 => \"Portomaggiore\",5469 => \"Portopalo di capo passero\",8171 => \"Portorotondo\",5470 => \"Portoscuso\",5471 => \"Portovenere\",5472 => \"Portula\",5473 => \"Posada\",5474 => \"Posina\",5475 => \"Positano\",5476 => \"Possagno\",5477 => \"Posta\",5478 => \"Posta fibreno\",5479 => \"Postal\",5480 => \"Postalesio\",5481 => \"Postiglione\",5482 => \"Postua\",5483 => \"Potenza\",5484 => \"Potenza picena\",5485 => \"Pove del grappa\",5486 => \"Povegliano\",5487 => \"Povegliano veronese\",5488 => \"Poviglio\",5489 => \"Povoletto\",5490 => \"Pozza di fassa\",5491 => \"Pozzaglia sabino\",5492 => \"Pozzaglio ed uniti\",5493 => \"Pozzallo\",5494 => \"Pozzilli\",5495 => \"Pozzo d'adda\",5496 => \"Pozzol groppo\",5497 => \"Pozzolengo\",5498 => \"Pozzoleone\",5499 => \"Pozzolo formigaro\",5500 => \"Pozzomaggiore\",5501 => \"Pozzonovo\",5502 => \"Pozzuoli\",5503 => \"Pozzuolo del friuli\",5504 => \"Pozzuolo martesana\",8693 => \"Pra Catinat\",5505 => \"Pradalunga\",5506 => \"Pradamano\",5507 => \"Pradleves\",5508 => \"Pragelato\",5509 => \"Praia a mare\",5510 => \"Praiano\",5511 => \"Pralboino\",5512 => \"Prali\",5513 => \"Pralormo\",5514 => \"Pralungo\",5515 => \"Pramaggiore\",5516 => \"Pramollo\",5517 => \"Prarolo\",5518 => \"Prarostino\",5519 => \"Prasco\",5520 => \"Prascorsano\",5521 => \"Praso\",5522 => \"Prata camportaccio\",5523 => \"Prata d'ansidonia\",5524 => \"Prata di pordenone\",5525 => \"Prata di principato ultra\",5526 => \"Prata sannita\",5527 => \"Pratella\",8102 => \"Prati di Tivo\",8694 => \"Pratica di Mare\",5528 => \"Pratiglione\",5529 => \"Prato\",5530 => \"Prato allo Stelvio\",5531 => \"Prato carnico\",8157 => \"Prato Nevoso\",5532 => \"Prato sesia\",8560 => \"Prato Spilla\",5533 => \"Pratola peligna\",5534 => \"Pratola serra\",5535 => \"Pratovecchio\",5536 => \"Pravisdomini\",5537 => \"Pray\",5538 => \"Prazzo\",5539 => \"Pre' Saint Didier\",5540 => \"Precenicco\",5541 => \"Preci\",5542 => \"Predappio\",5543 => \"Predazzo\",5544 => \"Predoi\",5545 => \"Predore\",5546 => \"Predosa\",5547 => \"Preganziol\",5548 => \"Pregnana milanese\",5549 => \"Prela'\",5550 => \"Premana\",5551 => \"Premariacco\",5552 => \"Premeno\",5553 => \"Premia\",5554 => \"Premilcuore\",5555 => \"Premolo\",5556 => \"Premosello chiovenda\",5557 => \"Preone\",5558 => \"Preore\",5559 => \"Prepotto\",8578 => \"Presanella\",5560 => \"Preseglie\",5561 => \"Presenzano\",5562 => \"Presezzo\",5563 => \"Presicce\",5564 => \"Pressana\",5565 => \"Prestine\",5566 => \"Pretoro\",5567 => \"Prevalle\",5568 => \"Prezza\",5569 => \"Prezzo\",5570 => \"Priero\",5571 => \"Prignano cilento\",5572 => \"Prignano sulla secchia\",5573 => \"Primaluna\",5574 => \"Priocca\",5575 => \"Priola\",5576 => \"Priolo gargallo\",5577 => \"Priverno\",5578 => \"Prizzi\",5579 => \"Proceno\",5580 => \"Procida\",5581 => \"Propata\",5582 => \"Proserpio\",5583 => \"Prossedi\",5584 => \"Provaglio d'iseo\",5585 => \"Provaglio val sabbia\",5586 => \"Proves\",5587 => \"Provvidenti\",8189 => \"Prunetta\",5588 => \"Prunetto\",5589 => \"Puegnago sul garda\",5590 => \"Puglianello\",5591 => \"Pula\",5592 => \"Pulfero\",5593 => \"Pulsano\",5594 => \"Pumenengo\",8584 => \"Punta Ala\",8708 => \"Punta Ban\",8564 => \"Punta Helbronner\",8306 => \"Punta Indren\",8107 => \"Punta Stilo\",5595 => \"Puos d'alpago\",5596 => \"Pusiano\",5597 => \"Putifigari\",5598 => \"Putignano\",5599 => \"Quadrelle\",5600 => \"Quadri\",5601 => \"Quagliuzzo\",5602 => \"Qualiano\",5603 => \"Quaranti\",5604 => \"Quaregna\",5605 => \"Quargnento\",5606 => \"Quarna sopra\",5607 => \"Quarna sotto\",5608 => \"Quarona\",5609 => \"Quarrata\",5610 => \"Quart\",5611 => \"Quarto\",5612 => \"Quarto d'altino\",5613 => \"Quartu sant'elena\",5614 => \"Quartucciu\",5615 => \"Quassolo\",5616 => \"Quattordio\",5617 => \"Quattro castella\",5618 => \"Quero\",5619 => \"Quiliano\",5620 => \"Quincinetto\",5621 => \"Quindici\",5622 => \"Quingentole\",5623 => \"Quintano\",5624 => \"Quinto di treviso\",5625 => \"Quinto vercellese\",5626 => \"Quinto vicentino\",5627 => \"Quinzano d'oglio\",5628 => \"Quistello\",5629 => \"Quittengo\",5630 => \"Rabbi\",5631 => \"Racale\",5632 => \"Racalmuto\",5633 => \"Racconigi\",5634 => \"Raccuja\",5635 => \"Racines\",8352 => \"Racines Giovo\",5636 => \"Radda in chianti\",5637 => \"Raddusa\",5638 => \"Radicofani\",5639 => \"Radicondoli\",5640 => \"Raffadali\",5641 => \"Ragalna\",5642 => \"Ragogna\",5643 => \"Ragoli\",5644 => \"Ragusa\",5645 => \"Raiano\",5646 => \"Ramacca\",5647 => \"Ramiseto\",5648 => \"Ramponio verna\",5649 => \"Rancio valcuvia\",5650 => \"Ranco\",5651 => \"Randazzo\",5652 => \"Ranica\",5653 => \"Ranzanico\",5654 => \"Ranzo\",5655 => \"Rapagnano\",5656 => \"Rapallo\",5657 => \"Rapino\",5658 => \"Rapolano terme\",8394 => \"Rapolla\",5660 => \"Rapone\",5661 => \"Rassa\",5662 => \"Rasun Anterselva\",5663 => \"Rasura\",5664 => \"Ravanusa\",5665 => \"Ravarino\",5666 => \"Ravascletto\",5667 => \"Ravello\",5668 => \"Ravenna\",5669 => \"Raveo\",5670 => \"Raviscanina\",5671 => \"Re\",5672 => \"Rea\",5673 => \"Realmonte\",5674 => \"Reana del roiale\",5675 => \"Reano\",5676 => \"Recale\",5677 => \"Recanati\",5678 => \"Recco\",5679 => \"Recetto\",8639 => \"Recoaro Mille\",5680 => \"Recoaro Terme\",5681 => \"Redavalle\",5682 => \"Redondesco\",5683 => \"Refrancore\",5684 => \"Refrontolo\",5685 => \"Regalbuto\",5686 => \"Reggello\",8542 => \"Reggio Aeroporto dello Stretto\",5687 => \"Reggio Calabria\",5688 => \"Reggio Emilia\",5689 => \"Reggiolo\",5690 => \"Reino\",5691 => \"Reitano\",5692 => \"Remanzacco\",5693 => \"Remedello\",5694 => \"Renate\",5695 => \"Rende\",5696 => \"Renon\",5697 => \"Resana\",5698 => \"Rescaldina\",8734 => \"Resegone\",5699 => \"Resia\",5700 => \"Resiutta\",5701 => \"Resuttano\",5702 => \"Retorbido\",5703 => \"Revello\",5704 => \"Revere\",5705 => \"Revigliasco d'asti\",5706 => \"Revine lago\",5707 => \"Revo'\",5708 => \"Rezzago\",5709 => \"Rezzato\",5710 => \"Rezzo\",5711 => \"Rezzoaglio\",5712 => \"Rhemes Notre Dame\",5713 => \"Rhemes Saint Georges\",5714 => \"Rho\",5715 => \"Riace\",8106 => \"Riace Marina\",5716 => \"Rialto\",5717 => \"Riano\",5718 => \"Riardo\",5719 => \"Ribera\",5720 => \"Ribordone\",5721 => \"Ricadi\",5722 => \"Ricaldone\",5723 => \"Riccia\",5724 => \"Riccione\",5725 => \"Ricco' del golfo di spezia\",5726 => \"Ricengo\",5727 => \"Ricigliano\",5728 => \"Riese pio x\",5729 => \"Riesi\",5730 => \"Rieti\",5731 => \"Rifiano\",5732 => \"Rifreddo\",8691 => \"Rifugio Boffalora Ticino\",8244 => \"Rifugio Calvi Laghi Gemelli\",8684 => \"Rifugio Chivasso - Colle del Nivolet\",8678 => \"Rifugio Curò\",8679 => \"Rifugio laghi Gemelli\",8731 => \"Rifugio Livio Bianco\",8681 => \"Rifugio Mezzalama\",8682 => \"Rifugio Quintino Sella\",8629 => \"Rifugio Sapienza\",8683 => \"Rifugio Torino\",8680 => \"Rifugio Viviani\",5733 => \"Rignano flaminio\",5734 => \"Rignano garganico\",5735 => \"Rignano sull'arno\",5736 => \"Rigolato\",5737 => \"Rima san giuseppe\",5738 => \"Rimasco\",5739 => \"Rimella\",5740 => \"Rimini\",8546 => \"Rimini Miramare\",5741 => \"Rio di Pusteria\",5742 => \"Rio marina\",5743 => \"Rio nell'elba\",5744 => \"Rio saliceto\",5745 => \"Riofreddo\",5746 => \"Riola sardo\",5747 => \"Riolo terme\",5748 => \"Riolunato\",5749 => \"Riomaggiore\",5750 => \"Rionero in vulture\",5751 => \"Rionero sannitico\",8503 => \"Rioveggio\",5752 => \"Ripa teatina\",5753 => \"Ripabottoni\",8404 => \"Ripacandida\",5755 => \"Ripalimosani\",5756 => \"Ripalta arpina\",5757 => \"Ripalta cremasca\",5758 => \"Ripalta guerina\",5759 => \"Riparbella\",5760 => \"Ripatransone\",5761 => \"Ripe\",5762 => \"Ripe san ginesio\",5763 => \"Ripi\",5764 => \"Riposto\",5765 => \"Rittana\",5766 => \"Riva del garda\",5767 => \"Riva di solto\",8579 => \"Riva di Tures\",5768 => \"Riva ligure\",5769 => \"Riva presso chieri\",5770 => \"Riva valdobbia\",5771 => \"Rivalba\",5772 => \"Rivalta bormida\",5773 => \"Rivalta di torino\",5774 => \"Rivamonte agordino\",5775 => \"Rivanazzano\",5776 => \"Rivara\",5777 => \"Rivarolo canavese\",5778 => \"Rivarolo del re ed uniti\",5779 => \"Rivarolo mantovano\",5780 => \"Rivarone\",5781 => \"Rivarossa\",5782 => \"Rive\",5783 => \"Rive d'arcano\",8398 => \"Rivello\",5785 => \"Rivergaro\",5786 => \"Rivignano\",5787 => \"Rivisondoli\",5788 => \"Rivodutri\",5789 => \"Rivoli\",8436 => \"Rivoli veronese\",5791 => \"Rivolta d'adda\",5792 => \"Rizziconi\",5793 => \"Ro\",5794 => \"Roana\",5795 => \"Roaschia\",5796 => \"Roascio\",5797 => \"Roasio\",5798 => \"Roatto\",5799 => \"Robassomero\",5800 => \"Robbiate\",5801 => \"Robbio\",5802 => \"Robecchetto con Induno\",5803 => \"Robecco d'oglio\",5804 => \"Robecco pavese\",5805 => \"Robecco sul naviglio\",5806 => \"Robella\",5807 => \"Robilante\",5808 => \"Roburent\",5809 => \"Rocca canavese\",5810 => \"Rocca Canterano\",5811 => \"Rocca Ciglie'\",5812 => \"Rocca d'Arazzo\",5813 => \"Rocca d'Arce\",5814 => \"Rocca d'Evandro\",5815 => \"Rocca de' Baldi\",5816 => \"Rocca de' Giorgi\",5817 => \"Rocca di Botte\",5818 => \"Rocca di Cambio\",5819 => \"Rocca di Cave\",5820 => \"Rocca di Mezzo\",5821 => \"Rocca di Neto\",5822 => \"Rocca di Papa\",5823 => \"Rocca Grimalda\",5824 => \"Rocca Imperiale\",8115 => \"Rocca Imperiale Marina\",5825 => \"Rocca Massima\",5826 => \"Rocca Pia\",5827 => \"Rocca Pietore\",5828 => \"Rocca Priora\",5829 => \"Rocca San Casciano\",5830 => \"Rocca San Felice\",5831 => \"Rocca San Giovanni\",5832 => \"Rocca Santa Maria\",5833 => \"Rocca Santo Stefano\",5834 => \"Rocca Sinibalda\",5835 => \"Rocca Susella\",5836 => \"Roccabascerana\",5837 => \"Roccabernarda\",5838 => \"Roccabianca\",5839 => \"Roccabruna\",8535 => \"Roccacaramanico\",5840 => \"Roccacasale\",5841 => \"Roccadaspide\",5842 => \"Roccafiorita\",5843 => \"Roccafluvione\",5844 => \"Roccaforte del greco\",5845 => \"Roccaforte ligure\",5846 => \"Roccaforte mondovi'\",5847 => \"Roccaforzata\",5848 => \"Roccafranca\",5849 => \"Roccagiovine\",5850 => \"Roccagloriosa\",5851 => \"Roccagorga\",5852 => \"Roccalbegna\",5853 => \"Roccalumera\",5854 => \"Roccamandolfi\",5855 => \"Roccamena\",5856 => \"Roccamonfina\",5857 => \"Roccamontepiano\",5858 => \"Roccamorice\",8418 => \"Roccanova\",5860 => \"Roccantica\",5861 => \"Roccapalumba\",5862 => \"Roccapiemonte\",5863 => \"Roccarainola\",5864 => \"Roccaraso\",5865 => \"Roccaromana\",5866 => \"Roccascalegna\",5867 => \"Roccasecca\",5868 => \"Roccasecca dei volsci\",5869 => \"Roccasicura\",5870 => \"Roccasparvera\",5871 => \"Roccaspinalveti\",5872 => \"Roccastrada\",5873 => \"Roccavaldina\",5874 => \"Roccaverano\",5875 => \"Roccavignale\",5876 => \"Roccavione\",5877 => \"Roccavivara\",5878 => \"Roccella ionica\",5879 => \"Roccella valdemone\",5880 => \"Rocchetta a volturno\",5881 => \"Rocchetta belbo\",5882 => \"Rocchetta di vara\",5883 => \"Rocchetta e croce\",5884 => \"Rocchetta ligure\",5885 => \"Rocchetta nervina\",5886 => \"Rocchetta palafea\",5887 => \"Rocchetta sant'antonio\",5888 => \"Rocchetta tanaro\",5889 => \"Rodano\",5890 => \"Roddi\",5891 => \"Roddino\",5892 => \"Rodello\",5893 => \"Rodengo\",5894 => \"Rodengo-saiano\",5895 => \"Rodero\",5896 => \"Rodi garganico\",5897 => \"Rodi' milici\",5898 => \"Rodigo\",5899 => \"Roe' volciano\",5900 => \"Rofrano\",5901 => \"Rogeno\",5902 => \"Roggiano gravina\",5903 => \"Roghudi\",5904 => \"Rogliano\",5905 => \"Rognano\",5906 => \"Rogno\",5907 => \"Rogolo\",5908 => \"Roiate\",5909 => \"Roio del sangro\",5910 => \"Roisan\",5911 => \"Roletto\",5912 => \"Rolo\",5913 => \"Roma\",8545 => \"Roma Ciampino\",8499 => \"Roma Fiumicino\",5914 => \"Romagnano al monte\",5915 => \"Romagnano sesia\",5916 => \"Romagnese\",5917 => \"Romallo\",5918 => \"Romana\",5919 => \"Romanengo\",5920 => \"Romano canavese\",5921 => \"Romano d'ezzelino\",5922 => \"Romano di lombardia\",5923 => \"Romans d'isonzo\",5924 => \"Rombiolo\",5925 => \"Romeno\",5926 => \"Romentino\",5927 => \"Rometta\",5928 => \"Ronago\",5929 => \"Ronca'\",5930 => \"Roncade\",5931 => \"Roncadelle\",5932 => \"Roncaro\",5933 => \"Roncegno\",5934 => \"Roncello\",5935 => \"Ronchi dei legionari\",5936 => \"Ronchi valsugana\",5937 => \"Ronchis\",5938 => \"Ronciglione\",5939 => \"Ronco all'adige\",8231 => \"Ronco all`Adige\",5940 => \"Ronco biellese\",5941 => \"Ronco briantino\",5942 => \"Ronco canavese\",5943 => \"Ronco scrivia\",5944 => \"Roncobello\",5945 => \"Roncoferraro\",5946 => \"Roncofreddo\",5947 => \"Roncola\",5948 => \"Roncone\",5949 => \"Rondanina\",5950 => \"Rondissone\",5951 => \"Ronsecco\",5952 => \"Ronzo chienis\",5953 => \"Ronzone\",5954 => \"Roppolo\",5955 => \"Rora'\",5956 => \"Rosa'\",5957 => \"Rosarno\",5958 => \"Rosasco\",5959 => \"Rosate\",5960 => \"Rosazza\",5961 => \"Rosciano\",5962 => \"Roscigno\",5963 => \"Rose\",5964 => \"Rosello\",5965 => \"Roseto capo spulico\",8439 => \"Roseto casello\",5966 => \"Roseto degli abruzzi\",5967 => \"Roseto valfortore\",5968 => \"Rosignano marittimo\",5969 => \"Rosignano monferrato\",8195 => \"Rosignano Solvay\",5970 => \"Rosolina\",8744 => \"Rosolina mare\",5971 => \"Rosolini\",8704 => \"Rosone\",5972 => \"Rosora\",5973 => \"Rossa\",5974 => \"Rossana\",5975 => \"Rossano\",8109 => \"Rossano Calabro Marina\",5976 => \"Rossano veneto\",8431 => \"Rossera\",5977 => \"Rossiglione\",5978 => \"Rosta\",5979 => \"Rota d'imagna\",5980 => \"Rota greca\",5981 => \"Rotella\",5982 => \"Rotello\",8429 => \"Rotonda\",5984 => \"Rotondella\",5985 => \"Rotondi\",5986 => \"Rottofreno\",5987 => \"Rotzo\",5988 => \"Roure\",5989 => \"Rovagnate\",5990 => \"Rovasenda\",5991 => \"Rovato\",5992 => \"Rovegno\",5993 => \"Rovellasca\",5994 => \"Rovello porro\",5995 => \"Roverbella\",5996 => \"Roverchiara\",5997 => \"Rovere' della luna\",5998 => \"Rovere' veronese\",5999 => \"Roveredo di gua'\",6000 => \"Roveredo in piano\",6001 => \"Rovereto\",6002 => \"Rovescala\",6003 => \"Rovetta\",6004 => \"Roviano\",6005 => \"Rovigo\",6006 => \"Rovito\",6007 => \"Rovolon\",6008 => \"Rozzano\",6009 => \"Rubano\",6010 => \"Rubiana\",6011 => \"Rubiera\",8632 => \"Rucas\",6012 => \"Ruda\",6013 => \"Rudiano\",6014 => \"Rueglio\",6015 => \"Ruffano\",6016 => \"Ruffia\",6017 => \"Ruffre'\",6018 => \"Rufina\",6019 => \"Ruinas\",6020 => \"Ruino\",6021 => \"Rumo\",8366 => \"Ruoti\",6023 => \"Russi\",6024 => \"Rutigliano\",6025 => \"Rutino\",6026 => \"Ruviano\",8393 => \"Ruvo del monte\",6028 => \"Ruvo di Puglia\",6029 => \"Sabaudia\",6030 => \"Sabbia\",6031 => \"Sabbio chiese\",6032 => \"Sabbioneta\",6033 => \"Sacco\",6034 => \"Saccolongo\",6035 => \"Sacile\",8700 => \"Sacra di San Michele\",6036 => \"Sacrofano\",6037 => \"Sadali\",6038 => \"Sagama\",6039 => \"Sagliano micca\",6040 => \"Sagrado\",6041 => \"Sagron mis\",8602 => \"Saint Barthelemy\",6042 => \"Saint Christophe\",6043 => \"Saint Denis\",8304 => \"Saint Jacques\",6044 => \"Saint Marcel\",6045 => \"Saint Nicolas\",6046 => \"Saint Oyen Flassin\",6047 => \"Saint Pierre\",6048 => \"Saint Rhemy en Bosses\",6049 => \"Saint Vincent\",6050 => \"Sala Baganza\",6051 => \"Sala Biellese\",6052 => \"Sala Bolognese\",6053 => \"Sala Comacina\",6054 => \"Sala Consilina\",6055 => \"Sala Monferrato\",8372 => \"Salandra\",6057 => \"Salaparuta\",6058 => \"Salara\",6059 => \"Salasco\",6060 => \"Salassa\",6061 => \"Salbertrand\",6062 => \"Salcedo\",6063 => \"Salcito\",6064 => \"Sale\",6065 => \"Sale delle Langhe\",6066 => \"Sale Marasino\",6067 => \"Sale San Giovanni\",6068 => \"Salemi\",6069 => \"Salento\",6070 => \"Salerano Canavese\",6071 => \"Salerano sul Lambro\",6072 => \"Salerno\",6073 => \"Saletto\",6074 => \"Salgareda\",6075 => \"Sali Vercellese\",6076 => \"Salice Salentino\",6077 => \"Saliceto\",6078 => \"Salisano\",6079 => \"Salizzole\",6080 => \"Salle\",6081 => \"Salmour\",6082 => \"Salo'\",6083 => \"Salorno\",6084 => \"Salsomaggiore Terme\",6085 => \"Saltara\",6086 => \"Saltrio\",6087 => \"Saludecio\",6088 => \"Saluggia\",6089 => \"Salussola\",6090 => \"Saluzzo\",6091 => \"Salve\",6092 => \"Salvirola\",6093 => \"Salvitelle\",6094 => \"Salza di Pinerolo\",6095 => \"Salza Irpina\",6096 => \"Salzano\",6097 => \"Samarate\",6098 => \"Samassi\",6099 => \"Samatzai\",6100 => \"Sambuca di Sicilia\",6101 => \"Sambuca Pistoiese\",6102 => \"Sambuci\",6103 => \"Sambuco\",6104 => \"Sammichele di Bari\",6105 => \"Samo\",6106 => \"Samolaco\",6107 => \"Samone\",6108 => \"Samone\",6109 => \"Sampeyre\",6110 => \"Samugheo\",6111 => \"San Bartolomeo al Mare\",6112 => \"San Bartolomeo in Galdo\",6113 => \"San Bartolomeo Val Cavargna\",6114 => \"San Basile\",6115 => \"San Basilio\",6116 => \"San Bassano\",6117 => \"San Bellino\",6118 => \"San Benedetto Belbo\",6119 => \"San Benedetto dei Marsi\",6120 => \"San Benedetto del Tronto\",8126 => \"San Benedetto in Alpe\",6121 => \"San Benedetto in Perillis\",6122 => \"San Benedetto Po\",6123 => \"San Benedetto Ullano\",6124 => \"San Benedetto val di Sambro\",6125 => \"San Benigno Canavese\",8641 => \"San Bernardino\",6126 => \"San Bernardino Verbano\",6127 => \"San Biagio della Cima\",6128 => \"San Biagio di Callalta\",6129 => \"San Biagio Platani\",6130 => \"San Biagio Saracinisco\",6131 => \"San Biase\",6132 => \"San Bonifacio\",6133 => \"San Buono\",6134 => \"San Calogero\",6135 => \"San Candido\",6136 => \"San Canzian d'Isonzo\",6137 => \"San Carlo Canavese\",6138 => \"San Casciano dei Bagni\",6139 => \"San Casciano in Val di Pesa\",6140 => \"San Cassiano\",8624 => \"San Cassiano in Badia\",6141 => \"San Cataldo\",6142 => \"San Cesareo\",6143 => \"San Cesario di Lecce\",6144 => \"San Cesario sul Panaro\",8367 => \"San Chirico Nuovo\",6146 => \"San Chirico Raparo\",6147 => \"San Cipirello\",6148 => \"San Cipriano d'Aversa\",6149 => \"San Cipriano Picentino\",6150 => \"San Cipriano Po\",6151 => \"San Clemente\",6152 => \"San Colombano al Lambro\",6153 => \"San Colombano Belmonte\",6154 => \"San Colombano Certenoli\",8622 => \"San Colombano Valdidentro\",6155 => \"San Cono\",6156 => \"San Cosmo Albanese\",8376 => \"San Costantino Albanese\",6158 => \"San Costantino Calabro\",6159 => \"San Costanzo\",6160 => \"San Cristoforo\",6161 => \"San Damiano al Colle\",6162 => \"San Damiano d'Asti\",6163 => \"San Damiano Macra\",6164 => \"San Daniele del Friuli\",6165 => \"San Daniele Po\",6166 => \"San Demetrio Corone\",6167 => \"San Demetrio ne' Vestini\",6168 => \"San Didero\",8556 => \"San Domenico di Varzo\",6169 => \"San Dona' di Piave\",6170 => \"San Donaci\",6171 => \"San Donato di Lecce\",6172 => \"San Donato di Ninea\",6173 => \"San Donato Milanese\",6174 => \"San Donato Val di Comino\",6175 => \"San Dorligo della Valle\",6176 => \"San Fedele Intelvi\",6177 => \"San Fele\",6178 => \"San Felice a Cancello\",6179 => \"San Felice Circeo\",6180 => \"San Felice del Benaco\",6181 => \"San Felice del Molise\",6182 => \"San Felice sul Panaro\",6183 => \"San Ferdinando\",6184 => \"San Ferdinando di Puglia\",6185 => \"San Fermo della Battaglia\",6186 => \"San Fili\",6187 => \"San Filippo del mela\",6188 => \"San Fior\",6189 => \"San Fiorano\",6190 => \"San Floriano del collio\",6191 => \"San Floro\",6192 => \"San Francesco al campo\",6193 => \"San Fratello\",8690 => \"San Galgano\",6194 => \"San Gavino monreale\",6195 => \"San Gemini\",6196 => \"San Genesio Atesino\",6197 => \"San Genesio ed uniti\",6198 => \"San Gennaro vesuviano\",6199 => \"San Germano chisone\",6200 => \"San Germano dei berici\",6201 => \"San Germano vercellese\",6202 => \"San Gervasio bresciano\",6203 => \"San Giacomo degli schiavoni\",6204 => \"San Giacomo delle segnate\",8620 => \"San Giacomo di Roburent\",6205 => \"San Giacomo filippo\",6206 => \"San Giacomo vercellese\",6207 => \"San Gillio\",6208 => \"San Gimignano\",6209 => \"San Ginesio\",6210 => \"San Giorgio a cremano\",6211 => \"San Giorgio a liri\",6212 => \"San Giorgio albanese\",6213 => \"San Giorgio canavese\",6214 => \"San Giorgio del sannio\",6215 => \"San Giorgio della richinvelda\",6216 => \"San Giorgio delle Pertiche\",6217 => \"San Giorgio di lomellina\",6218 => \"San Giorgio di mantova\",6219 => \"San Giorgio di nogaro\",6220 => \"San Giorgio di pesaro\",6221 => \"San Giorgio di piano\",6222 => \"San Giorgio in bosco\",6223 => \"San Giorgio ionico\",6224 => \"San Giorgio la molara\",6225 => \"San Giorgio lucano\",6226 => \"San Giorgio monferrato\",6227 => \"San Giorgio morgeto\",6228 => \"San Giorgio piacentino\",6229 => \"San Giorgio scarampi\",6230 => \"San Giorgio su Legnano\",6231 => \"San Giorio di susa\",6232 => \"San Giovanni a piro\",6233 => \"San Giovanni al natisone\",6234 => \"San Giovanni bianco\",6235 => \"San Giovanni d'asso\",6236 => \"San Giovanni del dosso\",6237 => \"San Giovanni di gerace\",6238 => \"San Giovanni gemini\",6239 => \"San Giovanni ilarione\",6240 => \"San Giovanni in croce\",6241 => \"San Giovanni in fiore\",6242 => \"San Giovanni in galdo\",6243 => \"San Giovanni in marignano\",6244 => \"San Giovanni in persiceto\",8567 => \"San Giovanni in val Aurina\",6245 => \"San Giovanni incarico\",6246 => \"San Giovanni la punta\",6247 => \"San Giovanni lipioni\",6248 => \"San Giovanni lupatoto\",6249 => \"San Giovanni rotondo\",6250 => \"San Giovanni suergiu\",6251 => \"San Giovanni teatino\",6252 => \"San Giovanni valdarno\",6253 => \"San Giuliano del sannio\",6254 => \"San Giuliano di Puglia\",6255 => \"San Giuliano milanese\",6256 => \"San Giuliano terme\",6257 => \"San Giuseppe jato\",6258 => \"San Giuseppe vesuviano\",6259 => \"San Giustino\",6260 => \"San Giusto canavese\",6261 => \"San Godenzo\",6262 => \"San Gregorio d'ippona\",6263 => \"San Gregorio da sassola\",6264 => \"San Gregorio di Catania\",6265 => \"San Gregorio Magno\",6266 => \"San Gregorio Matese\",6267 => \"San Gregorio nelle Alpi\",6268 => \"San Lazzaro di Savena\",6269 => \"San Leo\",6270 => \"San Leonardo\",6271 => \"San Leonardo in Passiria\",8580 => \"San Leone\",6272 => \"San Leucio del Sannio\",6273 => \"San Lorenzello\",6274 => \"San Lorenzo\",6275 => \"San Lorenzo al mare\",6276 => \"San Lorenzo Bellizzi\",6277 => \"San Lorenzo del vallo\",6278 => \"San Lorenzo di Sebato\",6279 => \"San Lorenzo in Banale\",6280 => \"San Lorenzo in campo\",6281 => \"San Lorenzo isontino\",6282 => \"San Lorenzo Maggiore\",6283 => \"San Lorenzo Nuovo\",6284 => \"San Luca\",6285 => \"San Lucido\",6286 => \"San Lupo\",6287 => \"San Mango d'Aquino\",6288 => \"San Mango Piemonte\",6289 => \"San Mango sul Calore\",6290 => \"San Marcellino\",6291 => \"San Marcello\",6292 => \"San Marcello pistoiese\",6293 => \"San Marco argentano\",6294 => \"San Marco d'Alunzio\",6295 => \"San Marco dei Cavoti\",6296 => \"San Marco Evangelista\",6297 => \"San Marco in Lamis\",6298 => \"San Marco la Catola\",8152 => \"San Marino\",6299 => \"San Martino al Tagliamento\",6300 => \"San Martino Alfieri\",6301 => \"San Martino Buon Albergo\",6302 => \"San Martino Canavese\",6303 => \"San Martino d'Agri\",6304 => \"San Martino dall'argine\",6305 => \"San Martino del lago\",8209 => \"San Martino di Castrozza\",6306 => \"San Martino di Finita\",6307 => \"San Martino di Lupari\",6308 => \"San Martino di venezze\",8410 => \"San Martino d`agri\",6309 => \"San Martino in Badia\",6310 => \"San Martino in Passiria\",6311 => \"San Martino in pensilis\",6312 => \"San Martino in rio\",6313 => \"San Martino in strada\",6314 => \"San Martino sannita\",6315 => \"San Martino siccomario\",6316 => \"San Martino sulla marrucina\",6317 => \"San Martino valle caudina\",6318 => \"San Marzano di San Giuseppe\",6319 => \"San Marzano oliveto\",6320 => \"San Marzano sul Sarno\",6321 => \"San Massimo\",6322 => \"San Maurizio canavese\",6323 => \"San Maurizio d'opaglio\",6324 => \"San Mauro castelverde\",6325 => \"San Mauro cilento\",6326 => \"San Mauro di saline\",8427 => \"San Mauro forte\",6328 => \"San Mauro la bruca\",6329 => \"San Mauro marchesato\",6330 => \"San Mauro Pascoli\",6331 => \"San Mauro torinese\",6332 => \"San Michele al Tagliamento\",6333 => \"San Michele all'Adige\",6334 => \"San Michele di ganzaria\",6335 => \"San Michele di serino\",6336 => \"San Michele Mondovi'\",6337 => \"San Michele salentino\",6338 => \"San Miniato\",6339 => \"San Nazario\",6340 => \"San Nazzaro\",6341 => \"San Nazzaro Sesia\",6342 => \"San Nazzaro val cavargna\",6343 => \"San Nicola arcella\",6344 => \"San Nicola baronia\",6345 => \"San Nicola da crissa\",6346 => \"San Nicola dell'alto\",6347 => \"San Nicola la strada\",6348 => \"San nicola manfredi\",6349 => \"San nicolo' d'arcidano\",6350 => \"San nicolo' di comelico\",6351 => \"San Nicolo' Gerrei\",6352 => \"San Pancrazio\",6353 => \"San Pancrazio salentino\",6354 => \"San Paolo\",8361 => \"San Paolo albanese\",6356 => \"San Paolo bel sito\",6357 => \"San Paolo cervo\",6358 => \"San Paolo d'argon\",6359 => \"San Paolo di civitate\",6360 => \"San Paolo di Jesi\",6361 => \"San Paolo solbrito\",6362 => \"San Pellegrino terme\",6363 => \"San Pier d'isonzo\",6364 => \"San Pier niceto\",6365 => \"San Piero a sieve\",6366 => \"San Piero Patti\",6367 => \"San Pietro a maida\",6368 => \"San Pietro al Natisone\",6369 => \"San Pietro al Tanagro\",6370 => \"San Pietro apostolo\",6371 => \"San Pietro avellana\",6372 => \"San Pietro clarenza\",6373 => \"San Pietro di cadore\",6374 => \"San Pietro di carida'\",6375 => \"San Pietro di feletto\",6376 => \"San Pietro di morubio\",6377 => \"San Pietro in Amantea\",6378 => \"San Pietro in cariano\",6379 => \"San Pietro in casale\",6380 => \"San Pietro in cerro\",6381 => \"San Pietro in gu\",6382 => \"San Pietro in guarano\",6383 => \"San Pietro in lama\",6384 => \"San Pietro infine\",6385 => \"San Pietro mosezzo\",6386 => \"San Pietro mussolino\",6387 => \"San Pietro val lemina\",6388 => \"San Pietro vernotico\",6389 => \"San Pietro Viminario\",6390 => \"San Pio delle camere\",6391 => \"San Polo d'enza\",6392 => \"San Polo dei cavalieri\",6393 => \"San Polo di Piave\",6394 => \"San Polo matese\",6395 => \"San Ponso\",6396 => \"San Possidonio\",6397 => \"San Potito sannitico\",6398 => \"San Potito ultra\",6399 => \"San Prisco\",6400 => \"San Procopio\",6401 => \"San Prospero\",6402 => \"San Quirico d'orcia\",8199 => \"San Quirico d`Orcia\",6403 => \"San Quirino\",6404 => \"San Raffaele cimena\",6405 => \"San Roberto\",6406 => \"San Rocco al porto\",6407 => \"San Romano in garfagnana\",6408 => \"San Rufo\",6409 => \"San Salvatore di fitalia\",6410 => \"San Salvatore Monferrato\",6411 => \"San Salvatore Telesino\",6412 => \"San Salvo\",8103 => \"San Salvo Marina\",6413 => \"San Sebastiano al Vesuvio\",6414 => \"San Sebastiano Curone\",6415 => \"San Sebastiano da Po\",6416 => \"San Secondo di Pinerolo\",6417 => \"San Secondo Parmense\",6418 => \"San Severino Lucano\",6419 => \"San Severino Marche\",6420 => \"San Severo\",8347 => \"San Sicario di Cesana\",8289 => \"San Simone\",8539 => \"San Simone Baita del Camoscio\",6421 => \"San Siro\",6422 => \"San Sossio Baronia\",6423 => \"San Sostene\",6424 => \"San Sosti\",6425 => \"San Sperate\",6426 => \"San Tammaro\",6427 => \"San Teodoro\",8170 => \"San Teodoro\",6429 => \"San Tomaso agordino\",8212 => \"San Valentino alla Muta\",6430 => \"San Valentino in abruzzo citeriore\",6431 => \"San Valentino torio\",6432 => \"San Venanzo\",6433 => \"San Vendemiano\",6434 => \"San Vero milis\",6435 => \"San Vincenzo\",6436 => \"San Vincenzo la costa\",6437 => \"San Vincenzo valle roveto\",6438 => \"San Vitaliano\",8293 => \"San Vito\",6440 => \"San Vito al tagliamento\",6441 => \"San Vito al torre\",6442 => \"San Vito chietino\",6443 => \"San Vito dei normanni\",6444 => \"San Vito di cadore\",6445 => \"San Vito di fagagna\",6446 => \"San Vito di leguzzano\",6447 => \"San Vito lo capo\",6448 => \"San Vito romano\",6449 => \"San Vito sullo ionio\",6450 => \"San Vittore del lazio\",6451 => \"San Vittore Olona\",6452 => \"San Zeno di montagna\",6453 => \"San Zeno naviglio\",6454 => \"San Zenone al lambro\",6455 => \"San Zenone al po\",6456 => \"San Zenone degli ezzelini\",6457 => \"Sanarica\",6458 => \"Sandigliano\",6459 => \"Sandrigo\",6460 => \"Sanfre'\",6461 => \"Sanfront\",6462 => \"Sangano\",6463 => \"Sangiano\",6464 => \"Sangineto\",6465 => \"Sanguinetto\",6466 => \"Sanluri\",6467 => \"Sannazzaro de' Burgondi\",6468 => \"Sannicandro di bari\",6469 => \"Sannicandro garganico\",6470 => \"Sannicola\",6471 => \"Sanremo\",6472 => \"Sansepolcro\",6473 => \"Sant'Agapito\",6474 => \"Sant'Agata bolognese\",6475 => \"Sant'Agata de' goti\",6476 => \"Sant'Agata del bianco\",6477 => \"Sant'Agata di esaro\",6478 => \"Sant'Agata di Militello\",6479 => \"Sant'Agata di Puglia\",6480 => \"Sant'Agata feltria\",6481 => \"Sant'Agata fossili\",6482 => \"Sant'Agata li battiati\",6483 => \"Sant'Agata sul Santerno\",6484 => \"Sant'Agnello\",6485 => \"Sant'Agostino\",6486 => \"Sant'Albano stura\",6487 => \"Sant'Alessio con vialone\",6488 => \"Sant'Alessio in aspromonte\",6489 => \"Sant'Alessio siculo\",6490 => \"Sant'Alfio\",6491 => \"Sant'Ambrogio di Torino\",6492 => \"Sant'Ambrogio di valpolicella\",6493 => \"Sant'Ambrogio sul garigliano\",6494 => \"Sant'Anastasia\",6495 => \"Sant'Anatolia di narco\",6496 => \"Sant'Andrea apostolo dello ionio\",6497 => \"Sant'Andrea del garigliano\",6498 => \"Sant'Andrea di conza\",6499 => \"Sant'Andrea Frius\",8763 => \"Sant'Andrea in Monte\",6500 => \"Sant'Angelo a cupolo\",6501 => \"Sant'Angelo a fasanella\",6502 => \"Sant'Angelo a scala\",6503 => \"Sant'Angelo all'esca\",6504 => \"Sant'Angelo d'alife\",6505 => \"Sant'Angelo dei lombardi\",6506 => \"Sant'Angelo del pesco\",6507 => \"Sant'Angelo di brolo\",6508 => \"Sant'Angelo di Piove di Sacco\",6509 => \"Sant'Angelo in lizzola\",6510 => \"Sant'Angelo in pontano\",6511 => \"Sant'Angelo in vado\",6512 => \"Sant'Angelo le fratte\",6513 => \"Sant'Angelo limosano\",6514 => \"Sant'Angelo lodigiano\",6515 => \"Sant'Angelo lomellina\",6516 => \"Sant'Angelo muxaro\",6517 => \"Sant'Angelo romano\",6518 => \"Sant'Anna Arresi\",6519 => \"Sant'Anna d'Alfaedo\",8730 => \"Sant'Anna di Valdieri\",8698 => \"Sant'Anna di Vinadio\",8563 => \"Sant'Anna Pelago\",6520 => \"Sant'Antimo\",6521 => \"Sant'Antioco\",6522 => \"Sant'Antonino di Susa\",6523 => \"Sant'Antonio Abate\",6524 => \"Sant'Antonio di gallura\",6525 => \"Sant'Apollinare\",6526 => \"Sant'Arcangelo\",6527 => \"Sant'Arcangelo trimonte\",6528 => \"Sant'Arpino\",6529 => \"Sant'Arsenio\",6530 => \"Sant'Egidio alla vibrata\",6531 => \"Sant'Egidio del monte Albino\",6532 => \"Sant'Elena\",6533 => \"Sant'Elena sannita\",6534 => \"Sant'Elia a pianisi\",6535 => \"Sant'Elia fiumerapido\",6536 => \"Sant'Elpidio a mare\",6537 => \"Sant'Eufemia a maiella\",6538 => \"Sant'Eufemia d'Aspromonte\",6539 => \"Sant'Eusanio del Sangro\",6540 => \"Sant'Eusanio forconese\",6541 => \"Sant'Ilario d'Enza\",6542 => \"Sant'Ilario dello Ionio\",6543 => \"Sant'Ippolito\",6544 => \"Sant'Olcese\",6545 => \"Sant'Omero\",6546 => \"Sant'Omobono imagna\",6547 => \"Sant'Onofrio\",6548 => \"Sant'Oreste\",6549 => \"Sant'Orsola terme\",6550 => \"Sant'Urbano\",6551 => \"Santa Brigida\",6552 => \"Santa Caterina albanese\",6553 => \"Santa Caterina dello ionio\",8144 => \"Santa Caterina Valfurva\",6554 => \"Santa Caterina villarmosa\",6555 => \"Santa Cesarea terme\",6556 => \"Santa Cristina d'Aspromonte\",6557 => \"Santa Cristina e Bissone\",6558 => \"Santa Cristina gela\",6559 => \"Santa Cristina Valgardena\",6560 => \"Santa Croce camerina\",6561 => \"Santa Croce del sannio\",6562 => \"Santa Croce di Magliano\",6563 => \"Santa Croce sull'Arno\",6564 => \"Santa Domenica talao\",6565 => \"Santa Domenica Vittoria\",6566 => \"Santa Elisabetta\",6567 => \"Santa Fiora\",6568 => \"Santa Flavia\",6569 => \"Santa Giuletta\",6570 => \"Santa Giusta\",6571 => \"Santa Giustina\",6572 => \"Santa Giustina in Colle\",6573 => \"Santa Luce\",6574 => \"Santa Lucia del Mela\",6575 => \"Santa Lucia di Piave\",6576 => \"Santa Lucia di serino\",6577 => \"Santa Margherita d'adige\",6578 => \"Santa Margherita di belice\",6579 => \"Santa Margherita di staffora\",8285 => \"Santa Margherita Ligure\",6581 => \"Santa Maria a monte\",6582 => \"Santa Maria a vico\",6583 => \"Santa Maria Capua Vetere\",6584 => \"Santa Maria coghinas\",6585 => \"Santa Maria del cedro\",6586 => \"Santa Maria del Molise\",6587 => \"Santa Maria della Versa\",8122 => \"Santa Maria di Castellabate\",6588 => \"Santa Maria di Licodia\",6589 => \"Santa Maria di sala\",6590 => \"Santa Maria Hoe'\",6591 => \"Santa Maria imbaro\",6592 => \"Santa Maria la carita'\",6593 => \"Santa Maria la fossa\",6594 => \"Santa Maria la longa\",6595 => \"Santa Maria Maggiore\",6596 => \"Santa Maria Nuova\",6597 => \"Santa Marina\",6598 => \"Santa Marina salina\",6599 => \"Santa Marinella\",6600 => \"Santa Ninfa\",6601 => \"Santa Paolina\",6602 => \"Santa Severina\",6603 => \"Santa Sofia\",6604 => \"Santa Sofia d'Epiro\",6605 => \"Santa Teresa di Riva\",6606 => \"Santa Teresa gallura\",6607 => \"Santa Venerina\",6608 => \"Santa Vittoria d'Alba\",6609 => \"Santa Vittoria in matenano\",6610 => \"Santadi\",6611 => \"Santarcangelo di Romagna\",6612 => \"Sante marie\",6613 => \"Santena\",6614 => \"Santeramo in colle\",6615 => \"Santhia'\",6616 => \"Santi Cosma e Damiano\",6617 => \"Santo Stefano al mare\",6618 => \"Santo Stefano Belbo\",6619 => \"Santo Stefano d'Aveto\",6620 => \"Santo Stefano del sole\",6621 => \"Santo Stefano di Cadore\",6622 => \"Santo Stefano di Camastra\",6623 => \"Santo Stefano di Magra\",6624 => \"Santo Stefano di Rogliano\",6625 => \"Santo Stefano di Sessanio\",6626 => \"Santo Stefano in Aspromonte\",6627 => \"Santo Stefano lodigiano\",6628 => \"Santo Stefano quisquina\",6629 => \"Santo Stefano roero\",6630 => \"Santo Stefano Ticino\",6631 => \"Santo Stino di Livenza\",6632 => \"Santomenna\",6633 => \"Santopadre\",6634 => \"Santorso\",6635 => \"Santu Lussurgiu\",8419 => \"Sant`Angelo le fratte\",6636 => \"Sanza\",6637 => \"Sanzeno\",6638 => \"Saonara\",6639 => \"Saponara\",6640 => \"Sappada\",6641 => \"Sapri\",6642 => \"Saracena\",6643 => \"Saracinesco\",6644 => \"Sarcedo\",8377 => \"Sarconi\",6646 => \"Sardara\",6647 => \"Sardigliano\",6648 => \"Sarego\",6649 => \"Sarentino\",6650 => \"Sarezzano\",6651 => \"Sarezzo\",6652 => \"Sarmato\",6653 => \"Sarmede\",6654 => \"Sarnano\",6655 => \"Sarnico\",6656 => \"Sarno\",6657 => \"Sarnonico\",6658 => \"Saronno\",6659 => \"Sarre\",6660 => \"Sarroch\",6661 => \"Sarsina\",6662 => \"Sarteano\",6663 => \"Sartirana lomellina\",6664 => \"Sarule\",6665 => \"Sarzana\",6666 => \"Sassano\",6667 => \"Sassari\",6668 => \"Sassello\",6669 => \"Sassetta\",6670 => \"Sassinoro\",8387 => \"Sasso di castalda\",6672 => \"Sasso marconi\",6673 => \"Sassocorvaro\",6674 => \"Sassofeltrio\",6675 => \"Sassoferrato\",8656 => \"Sassotetto\",6676 => \"Sassuolo\",6677 => \"Satriano\",8420 => \"Satriano di Lucania\",6679 => \"Sauris\",6680 => \"Sauze d'Oulx\",6681 => \"Sauze di Cesana\",6682 => \"Sava\",6683 => \"Savelli\",6684 => \"Saviano\",6685 => \"Savigliano\",6686 => \"Savignano irpino\",6687 => \"Savignano sul Panaro\",6688 => \"Savignano sul Rubicone\",6689 => \"Savigno\",6690 => \"Savignone\",6691 => \"Saviore dell'Adamello\",6692 => \"Savoca\",6693 => \"Savogna\",6694 => \"Savogna d'Isonzo\",8411 => \"Savoia di Lucania\",6696 => \"Savona\",6697 => \"Scafa\",6698 => \"Scafati\",6699 => \"Scagnello\",6700 => \"Scala\",6701 => \"Scala coeli\",6702 => \"Scaldasole\",6703 => \"Scalea\",6704 => \"Scalenghe\",6705 => \"Scaletta Zanclea\",6706 => \"Scampitella\",6707 => \"Scandale\",6708 => \"Scandiano\",6709 => \"Scandicci\",6710 => \"Scandolara ravara\",6711 => \"Scandolara ripa d'Oglio\",6712 => \"Scandriglia\",6713 => \"Scanno\",6714 => \"Scano di montiferro\",6715 => \"Scansano\",6716 => \"Scanzano jonico\",6717 => \"Scanzorosciate\",6718 => \"Scapoli\",8120 => \"Scario\",6719 => \"Scarlino\",6720 => \"Scarmagno\",6721 => \"Scarnafigi\",6722 => \"Scarperia\",8139 => \"Scauri\",6723 => \"Scena\",6724 => \"Scerni\",6725 => \"Scheggia e pascelupo\",6726 => \"Scheggino\",6727 => \"Schiavi di Abruzzo\",6728 => \"Schiavon\",8456 => \"Schiavonea di Corigliano\",6729 => \"Schignano\",6730 => \"Schilpario\",6731 => \"Schio\",6732 => \"Schivenoglia\",6733 => \"Sciacca\",6734 => \"Sciara\",6735 => \"Scicli\",6736 => \"Scido\",6737 => \"Scigliano\",6738 => \"Scilla\",6739 => \"Scillato\",6740 => \"Sciolze\",6741 => \"Scisciano\",6742 => \"Sclafani bagni\",6743 => \"Scontrone\",6744 => \"Scopa\",6745 => \"Scopello\",6746 => \"Scoppito\",6747 => \"Scordia\",6748 => \"Scorrano\",6749 => \"Scorze'\",6750 => \"Scurcola marsicana\",6751 => \"Scurelle\",6752 => \"Scurzolengo\",6753 => \"Seborga\",6754 => \"Secinaro\",6755 => \"Secli'\",8336 => \"Secondino\",6756 => \"Secugnago\",6757 => \"Sedegliano\",6758 => \"Sedico\",6759 => \"Sedilo\",6760 => \"Sedini\",6761 => \"Sedriano\",6762 => \"Sedrina\",6763 => \"Sefro\",6764 => \"Segariu\",8714 => \"Segesta\",6765 => \"Seggiano\",6766 => \"Segni\",6767 => \"Segonzano\",6768 => \"Segrate\",6769 => \"Segusino\",6770 => \"Selargius\",6771 => \"Selci\",6772 => \"Selegas\",8715 => \"Selinunte\",8130 => \"Sella Nevea\",6773 => \"Sellano\",8651 => \"Sellata Arioso\",6774 => \"Sellero\",8238 => \"Selletta\",6775 => \"Sellia\",6776 => \"Sellia marina\",6777 => \"Selva dei Molini\",6778 => \"Selva di Cadore\",6779 => \"Selva di Progno\",6780 => \"Selva di Val Gardena\",6781 => \"Selvazzano dentro\",6782 => \"Selve marcone\",6783 => \"Selvino\",6784 => \"Semestene\",6785 => \"Semiana\",6786 => \"Seminara\",6787 => \"Semproniano\",6788 => \"Senago\",6789 => \"Senale San Felice\",6790 => \"Senales\",6791 => \"Seneghe\",6792 => \"Senerchia\",6793 => \"Seniga\",6794 => \"Senigallia\",6795 => \"Senis\",6796 => \"Senise\",6797 => \"Senna comasco\",6798 => \"Senna lodigiana\",6799 => \"Sennariolo\",6800 => \"Sennori\",6801 => \"Senorbi'\",6802 => \"Sepino\",6803 => \"Seppiana\",6804 => \"Sequals\",6805 => \"Seravezza\",6806 => \"Serdiana\",6807 => \"Seregno\",6808 => \"Seren del grappa\",6809 => \"Sergnano\",6810 => \"Seriate\",6811 => \"Serina\",6812 => \"Serino\",6813 => \"Serle\",6814 => \"Sermide\",6815 => \"Sermoneta\",6816 => \"Sernaglia della Battaglia\",6817 => \"Sernio\",6818 => \"Serole\",6819 => \"Serra d'aiello\",6820 => \"Serra de'conti\",6821 => \"Serra pedace\",6822 => \"Serra ricco'\",6823 => \"Serra San Bruno\",6824 => \"Serra San Quirico\",6825 => \"Serra Sant'Abbondio\",6826 => \"Serracapriola\",6827 => \"Serradifalco\",6828 => \"Serralunga d'Alba\",6829 => \"Serralunga di Crea\",6830 => \"Serramanna\",6831 => \"Serramazzoni\",6832 => \"Serramezzana\",6833 => \"Serramonacesca\",6834 => \"Serrapetrona\",6835 => \"Serrara fontana\",6836 => \"Serrastretta\",6837 => \"Serrata\",6838 => \"Serravalle a po\",6839 => \"Serravalle di chienti\",6840 => \"Serravalle langhe\",6841 => \"Serravalle pistoiese\",6842 => \"Serravalle Scrivia\",6843 => \"Serravalle Sesia\",6844 => \"Serre\",6845 => \"Serrenti\",6846 => \"Serri\",6847 => \"Serrone\",6848 => \"Serrungarina\",6849 => \"Sersale\",6850 => \"Servigliano\",6851 => \"Sessa aurunca\",6852 => \"Sessa cilento\",6853 => \"Sessame\",6854 => \"Sessano del Molise\",6855 => \"Sesta godano\",6856 => \"Sestino\",6857 => \"Sesto\",6858 => \"Sesto al reghena\",6859 => \"Sesto calende\",8709 => \"Sesto Calende Alta\",6860 => \"Sesto campano\",6861 => \"Sesto ed Uniti\",6862 => \"Sesto fiorentino\",6863 => \"Sesto San Giovanni\",6864 => \"Sestola\",6865 => \"Sestri levante\",6866 => \"Sestriere\",6867 => \"Sestu\",6868 => \"Settala\",8316 => \"Settebagni\",6869 => \"Settefrati\",6870 => \"Settime\",6871 => \"Settimo milanese\",6872 => \"Settimo rottaro\",6873 => \"Settimo San Pietro\",6874 => \"Settimo torinese\",6875 => \"Settimo vittone\",6876 => \"Settingiano\",6877 => \"Setzu\",6878 => \"Seui\",6879 => \"Seulo\",6880 => \"Seveso\",6881 => \"Sezzadio\",6882 => \"Sezze\",6883 => \"Sfruz\",6884 => \"Sgonico\",6885 => \"Sgurgola\",6886 => \"Siamaggiore\",6887 => \"Siamanna\",6888 => \"Siano\",6889 => \"Siapiccia\",8114 => \"Sibari\",6890 => \"Sicignano degli Alburni\",6891 => \"Siculiana\",6892 => \"Siddi\",6893 => \"Siderno\",6894 => \"Siena\",6895 => \"Sigillo\",6896 => \"Signa\",8603 => \"Sigonella\",6897 => \"Silandro\",6898 => \"Silanus\",6899 => \"Silea\",6900 => \"Siligo\",6901 => \"Siliqua\",6902 => \"Silius\",6903 => \"Sillano\",6904 => \"Sillavengo\",6905 => \"Silvano d'orba\",6906 => \"Silvano pietra\",6907 => \"Silvi\",6908 => \"Simala\",6909 => \"Simaxis\",6910 => \"Simbario\",6911 => \"Simeri crichi\",6912 => \"Sinagra\",6913 => \"Sinalunga\",6914 => \"Sindia\",6915 => \"Sini\",6916 => \"Sinio\",6917 => \"Siniscola\",6918 => \"Sinnai\",6919 => \"Sinopoli\",6920 => \"Siracusa\",6921 => \"Sirignano\",6922 => \"Siris\",6923 => \"Sirmione\",8457 => \"Sirolo\",6925 => \"Sirone\",6926 => \"Siror\",6927 => \"Sirtori\",6928 => \"Sissa\",8492 => \"Sistiana\",6929 => \"Siurgus donigala\",6930 => \"Siziano\",6931 => \"Sizzano\",8258 => \"Ski center Latemar\",6932 => \"Sluderno\",6933 => \"Smarano\",6934 => \"Smerillo\",6935 => \"Soave\",8341 => \"Sobretta Vallalpe\",6936 => \"Socchieve\",6937 => \"Soddi\",6938 => \"Sogliano al rubicone\",6939 => \"Sogliano Cavour\",6940 => \"Soglio\",6941 => \"Soiano del lago\",6942 => \"Solagna\",6943 => \"Solarino\",6944 => \"Solaro\",6945 => \"Solarolo\",6946 => \"Solarolo Rainerio\",6947 => \"Solarussa\",6948 => \"Solbiate\",6949 => \"Solbiate Arno\",6950 => \"Solbiate Olona\",8307 => \"Solda\",6951 => \"Soldano\",6952 => \"Soleminis\",6953 => \"Solero\",6954 => \"Solesino\",6955 => \"Soleto\",6956 => \"Solferino\",6957 => \"Soliera\",6958 => \"Solignano\",6959 => \"Solofra\",6960 => \"Solonghello\",6961 => \"Solopaca\",6962 => \"Solto collina\",6963 => \"Solza\",6964 => \"Somaglia\",6965 => \"Somano\",6966 => \"Somma lombardo\",6967 => \"Somma vesuviana\",6968 => \"Sommacampagna\",6969 => \"Sommariva del bosco\",6970 => \"Sommariva Perno\",6971 => \"Sommatino\",6972 => \"Sommo\",6973 => \"Sona\",6974 => \"Soncino\",6975 => \"Sondalo\",6976 => \"Sondrio\",6977 => \"Songavazzo\",6978 => \"Sonico\",6979 => \"Sonnino\",6980 => \"Soprana\",6981 => \"Sora\",6982 => \"Soraga\",6983 => \"Soragna\",6984 => \"Sorano\",6985 => \"Sorbo San Basile\",6986 => \"Sorbo Serpico\",6987 => \"Sorbolo\",6988 => \"Sordevolo\",6989 => \"Sordio\",6990 => \"Soresina\",6991 => \"Sorga'\",6992 => \"Sorgono\",6993 => \"Sori\",6994 => \"Sorianello\",6995 => \"Soriano calabro\",6996 => \"Soriano nel cimino\",6997 => \"Sorico\",6998 => \"Soriso\",6999 => \"Sorisole\",7000 => \"Sormano\",7001 => \"Sorradile\",7002 => \"Sorrento\",7003 => \"Sorso\",7004 => \"Sortino\",7005 => \"Sospiro\",7006 => \"Sospirolo\",7007 => \"Sossano\",7008 => \"Sostegno\",7009 => \"Sotto il monte Giovanni XXIII\",8747 => \"Sottomarina\",7010 => \"Sover\",7011 => \"Soverato\",7012 => \"Sovere\",7013 => \"Soveria mannelli\",7014 => \"Soveria simeri\",7015 => \"Soverzene\",7016 => \"Sovicille\",7017 => \"Sovico\",7018 => \"Sovizzo\",7019 => \"Sovramonte\",7020 => \"Sozzago\",7021 => \"Spadafora\",7022 => \"Spadola\",7023 => \"Sparanise\",7024 => \"Sparone\",7025 => \"Specchia\",7026 => \"Spello\",8585 => \"Spelonga\",7027 => \"Spera\",7028 => \"Sperlinga\",7029 => \"Sperlonga\",7030 => \"Sperone\",7031 => \"Spessa\",7032 => \"Spezzano albanese\",7033 => \"Spezzano della Sila\",7034 => \"Spezzano piccolo\",7035 => \"Spiazzo\",7036 => \"Spigno monferrato\",7037 => \"Spigno saturnia\",7038 => \"Spilamberto\",7039 => \"Spilimbergo\",7040 => \"Spilinga\",7041 => \"Spinadesco\",7042 => \"Spinazzola\",7043 => \"Spinea\",7044 => \"Spineda\",7045 => \"Spinete\",7046 => \"Spineto Scrivia\",7047 => \"Spinetoli\",7048 => \"Spino d'Adda\",7049 => \"Spinone al lago\",8421 => \"Spinoso\",7051 => \"Spirano\",7052 => \"Spoleto\",7053 => \"Spoltore\",7054 => \"Spongano\",7055 => \"Spormaggiore\",7056 => \"Sporminore\",7057 => \"Spotorno\",7058 => \"Spresiano\",7059 => \"Spriana\",7060 => \"Squillace\",7061 => \"Squinzano\",8248 => \"Staffal\",7062 => \"Staffolo\",7063 => \"Stagno lombardo\",7064 => \"Staiti\",7065 => \"Staletti\",7066 => \"Stanghella\",7067 => \"Staranzano\",7068 => \"Statte\",7069 => \"Stazzano\",7070 => \"Stazzema\",7071 => \"Stazzona\",7072 => \"Stefanaconi\",7073 => \"Stella\",7074 => \"Stella cilento\",7075 => \"Stellanello\",7076 => \"Stelvio\",7077 => \"Stenico\",7078 => \"Sternatia\",7079 => \"Stezzano\",7080 => \"Stia\",7081 => \"Stienta\",7082 => \"Stigliano\",7083 => \"Stignano\",7084 => \"Stilo\",7085 => \"Stimigliano\",7086 => \"Stintino\",7087 => \"Stio\",7088 => \"Stornara\",7089 => \"Stornarella\",7090 => \"Storo\",7091 => \"Stra\",7092 => \"Stradella\",7093 => \"Strambinello\",7094 => \"Strambino\",7095 => \"Strangolagalli\",7096 => \"Stregna\",7097 => \"Strembo\",7098 => \"Stresa\",7099 => \"Strevi\",7100 => \"Striano\",7101 => \"Strigno\",8182 => \"Stromboli\",7102 => \"Strona\",7103 => \"Stroncone\",7104 => \"Strongoli\",7105 => \"Stroppiana\",7106 => \"Stroppo\",7107 => \"Strozza\",8493 => \"Stupizza\",7108 => \"Sturno\",7109 => \"Suardi\",7110 => \"Subbiano\",7111 => \"Subiaco\",7112 => \"Succivo\",7113 => \"Sueglio\",7114 => \"Suelli\",7115 => \"Suello\",7116 => \"Suisio\",7117 => \"Sulbiate\",7118 => \"Sulmona\",7119 => \"Sulzano\",7120 => \"Sumirago\",7121 => \"Summonte\",7122 => \"Suni\",7123 => \"Suno\",7124 => \"Supersano\",7125 => \"Supino\",7126 => \"Surano\",7127 => \"Surbo\",7128 => \"Susa\",7129 => \"Susegana\",7130 => \"Sustinente\",7131 => \"Sutera\",7132 => \"Sutri\",7133 => \"Sutrio\",7134 => \"Suvereto\",7135 => \"Suzzara\",7136 => \"Taceno\",7137 => \"Tadasuni\",7138 => \"Taggia\",7139 => \"Tagliacozzo\",8450 => \"Tagliacozzo casello\",7140 => \"Taglio di po\",7141 => \"Tagliolo monferrato\",7142 => \"Taibon agordino\",7143 => \"Taino\",7144 => \"Taio\",7145 => \"Taipana\",7146 => \"Talamello\",7147 => \"Talamona\",8299 => \"Talamone\",7148 => \"Talana\",7149 => \"Taleggio\",7150 => \"Talla\",7151 => \"Talmassons\",7152 => \"Tambre\",7153 => \"Taormina\",7154 => \"Tapogliano\",7155 => \"Tarano\",7156 => \"Taranta peligna\",7157 => \"Tarantasca\",7158 => \"Taranto\",8550 => \"Taranto M. A. Grottaglie\",7159 => \"Tarcento\",7160 => \"Tarquinia\",8140 => \"Tarquinia Lido\",7161 => \"Tarsia\",7162 => \"Tartano\",7163 => \"Tarvisio\",8466 => \"Tarvisio casello\",7164 => \"Tarzo\",7165 => \"Tassarolo\",7166 => \"Tassullo\",7167 => \"Taurano\",7168 => \"Taurasi\",7169 => \"Taurianova\",7170 => \"Taurisano\",7171 => \"Tavagnacco\",7172 => \"Tavagnasco\",7173 => \"Tavarnelle val di pesa\",7174 => \"Tavazzano con villavesco\",7175 => \"Tavenna\",7176 => \"Taverna\",7177 => \"Tavernerio\",7178 => \"Tavernola bergamasca\",7179 => \"Tavernole sul Mella\",7180 => \"Taviano\",7181 => \"Tavigliano\",7182 => \"Tavoleto\",7183 => \"Tavullia\",8362 => \"Teana\",7185 => \"Teano\",7186 => \"Teggiano\",7187 => \"Teglio\",7188 => \"Teglio veneto\",7189 => \"Telese terme\",7190 => \"Telgate\",7191 => \"Telti\",7192 => \"Telve\",7193 => \"Telve di sopra\",7194 => \"Tempio Pausania\",7195 => \"Temu'\",7196 => \"Tenna\",7197 => \"Tenno\",7198 => \"Teolo\",7199 => \"Teor\",7200 => \"Teora\",7201 => \"Teramo\",8449 => \"Teramo Val Vomano\",7202 => \"Terdobbiate\",7203 => \"Terelle\",7204 => \"Terento\",7205 => \"Terenzo\",7206 => \"Tergu\",7207 => \"Terlago\",7208 => \"Terlano\",7209 => \"Terlizzi\",8158 => \"Terme di Lurisia\",7210 => \"Terme vigliatore\",7211 => \"Termeno sulla strada del vino\",7212 => \"Termini imerese\",8133 => \"Terminillo\",7213 => \"Termoli\",7214 => \"Ternate\",7215 => \"Ternengo\",7216 => \"Terni\",7217 => \"Terno d'isola\",7218 => \"Terracina\",7219 => \"Terragnolo\",7220 => \"Terralba\",7221 => \"Terranova da Sibari\",7222 => \"Terranova dei passerini\",8379 => \"Terranova di Pollino\",7224 => \"Terranova Sappo Minulio\",7225 => \"Terranuova bracciolini\",7226 => \"Terrasini\",7227 => \"Terrassa padovana\",7228 => \"Terravecchia\",7229 => \"Terrazzo\",7230 => \"Terres\",7231 => \"Terricciola\",7232 => \"Terruggia\",7233 => \"Tertenia\",7234 => \"Terzigno\",7235 => \"Terzo\",7236 => \"Terzo d'Aquileia\",7237 => \"Terzolas\",7238 => \"Terzorio\",7239 => \"Tesero\",7240 => \"Tesimo\",7241 => \"Tessennano\",7242 => \"Testico\",7243 => \"Teti\",7244 => \"Teulada\",7245 => \"Teverola\",7246 => \"Tezze sul Brenta\",8716 => \"Tharros\",7247 => \"Thiene\",7248 => \"Thiesi\",7249 => \"Tiana\",7250 => \"Tiarno di sopra\",7251 => \"Tiarno di sotto\",7252 => \"Ticengo\",7253 => \"Ticineto\",7254 => \"Tiggiano\",7255 => \"Tiglieto\",7256 => \"Tigliole\",7257 => \"Tignale\",7258 => \"Tinnura\",7259 => \"Tione degli Abruzzi\",7260 => \"Tione di Trento\",7261 => \"Tirano\",7262 => \"Tires\",7263 => \"Tiriolo\",7264 => \"Tirolo\",8194 => \"Tirrenia\",8719 => \"Tiscali\",7265 => \"Tissi\",8422 => \"Tito\",7267 => \"Tivoli\",8451 => \"Tivoli casello\",7268 => \"Tizzano val Parma\",7269 => \"Toano\",7270 => \"Tocco caudio\",7271 => \"Tocco da Casauria\",7272 => \"Toceno\",7273 => \"Todi\",7274 => \"Toffia\",7275 => \"Toirano\",7276 => \"Tolentino\",7277 => \"Tolfa\",7278 => \"Tollegno\",7279 => \"Tollo\",7280 => \"Tolmezzo\",8423 => \"Tolve\",7282 => \"Tombolo\",7283 => \"Ton\",7284 => \"Tonadico\",7285 => \"Tonara\",7286 => \"Tonco\",7287 => \"Tonengo\",7288 => \"Tonezza del Cimone\",7289 => \"Tora e piccilli\",8132 => \"Torano\",7290 => \"Torano castello\",7291 => \"Torano nuovo\",7292 => \"Torbole casaglia\",7293 => \"Torcegno\",7294 => \"Torchiara\",7295 => \"Torchiarolo\",7296 => \"Torella dei lombardi\",7297 => \"Torella del sannio\",7298 => \"Torgiano\",7299 => \"Torgnon\",7300 => \"Torino\",8271 => \"Torino Caselle\",7301 => \"Torino di Sangro\",8494 => \"Torino di Sangro Marina\",7302 => \"Toritto\",7303 => \"Torlino Vimercati\",7304 => \"Tornaco\",7305 => \"Tornareccio\",7306 => \"Tornata\",7307 => \"Tornimparte\",8445 => \"Tornimparte casello\",7308 => \"Torno\",7309 => \"Tornolo\",7310 => \"Toro\",7311 => \"Torpe'\",7312 => \"Torraca\",7313 => \"Torralba\",7314 => \"Torrazza coste\",7315 => \"Torrazza Piemonte\",7316 => \"Torrazzo\",7317 => \"Torre Annunziata\",7318 => \"Torre Beretti e Castellaro\",7319 => \"Torre boldone\",7320 => \"Torre bormida\",7321 => \"Torre cajetani\",7322 => \"Torre canavese\",7323 => \"Torre d'arese\",7324 => \"Torre d'isola\",7325 => \"Torre de' passeri\",7326 => \"Torre de'busi\",7327 => \"Torre de'negri\",7328 => \"Torre de'picenardi\",7329 => \"Torre de'roveri\",7330 => \"Torre del greco\",7331 => \"Torre di mosto\",7332 => \"Torre di ruggiero\",7333 => \"Torre di Santa Maria\",7334 => \"Torre le nocelle\",7335 => \"Torre mondovi'\",7336 => \"Torre orsaia\",8592 => \"Torre Pali\",7337 => \"Torre pallavicina\",7338 => \"Torre pellice\",7339 => \"Torre San Giorgio\",8596 => \"Torre San Giovanni\",8595 => \"Torre San Gregorio\",7340 => \"Torre San Patrizio\",7341 => \"Torre Santa Susanna\",8593 => \"Torre Vado\",7342 => \"Torreano\",7343 => \"Torrebelvicino\",7344 => \"Torrebruna\",7345 => \"Torrecuso\",7346 => \"Torreglia\",7347 => \"Torregrotta\",7348 => \"Torremaggiore\",7349 => \"Torrenova\",7350 => \"Torresina\",7351 => \"Torretta\",7352 => \"Torrevecchia pia\",7353 => \"Torrevecchia teatina\",7354 => \"Torri del benaco\",7355 => \"Torri di quartesolo\",7356 => \"Torri in sabina\",7357 => \"Torriana\",7358 => \"Torrice\",7359 => \"Torricella\",7360 => \"Torricella del pizzo\",7361 => \"Torricella in sabina\",7362 => \"Torricella peligna\",7363 => \"Torricella sicura\",7364 => \"Torricella verzate\",7365 => \"Torriglia\",7366 => \"Torrile\",7367 => \"Torrioni\",7368 => \"Torrita di Siena\",7369 => \"Torrita tiberina\",7370 => \"Tortoli'\",7371 => \"Tortona\",7372 => \"Tortora\",7373 => \"Tortorella\",7374 => \"Tortoreto\",8601 => \"Tortoreto lido\",7375 => \"Tortorici\",8138 => \"Torvaianica\",7376 => \"Torviscosa\",7377 => \"Toscolano maderno\",7378 => \"Tossicia\",7379 => \"Tovo di Sant'Agata\",7380 => \"Tovo San Giacomo\",7381 => \"Trabia\",7382 => \"Tradate\",8214 => \"Trafoi\",7383 => \"Tramatza\",7384 => \"Trambileno\",7385 => \"Tramonti\",7386 => \"Tramonti di sopra\",7387 => \"Tramonti di sotto\",8412 => \"Tramutola\",7389 => \"Trana\",7390 => \"Trani\",7391 => \"Transacqua\",7392 => \"Traona\",7393 => \"Trapani\",8544 => \"Trapani Birgi\",7394 => \"Trappeto\",7395 => \"Trarego Viggiona\",7396 => \"Trasacco\",7397 => \"Trasaghis\",7398 => \"Trasquera\",7399 => \"Tratalias\",7400 => \"Trausella\",7401 => \"Travaco' siccomario\",7402 => \"Travagliato\",7403 => \"Travedona monate\",7404 => \"Traversella\",7405 => \"Traversetolo\",7406 => \"Traves\",7407 => \"Travesio\",7408 => \"Travo\",8187 => \"Tre fontane\",7409 => \"Trebaseleghe\",7410 => \"Trebisacce\",7411 => \"Trecasali\",7412 => \"Trecase\",7413 => \"Trecastagni\",7414 => \"Trecate\",7415 => \"Trecchina\",7416 => \"Trecenta\",7417 => \"Tredozio\",7418 => \"Treglio\",7419 => \"Tregnago\",7420 => \"Treia\",7421 => \"Treiso\",7422 => \"Tremenico\",7423 => \"Tremestieri etneo\",7424 => \"Tremezzo\",7425 => \"Tremosine\",7426 => \"Trenta\",7427 => \"Trentinara\",7428 => \"Trento\",7429 => \"Trentola-ducenta\",7430 => \"Trenzano\",8146 => \"Trepalle\",7431 => \"Treppo carnico\",7432 => \"Treppo grande\",7433 => \"Trepuzzi\",7434 => \"Trequanda\",7435 => \"Tres\",7436 => \"Tresana\",7437 => \"Trescore balneario\",7438 => \"Trescore cremasco\",7439 => \"Tresigallo\",7440 => \"Tresivio\",7441 => \"Tresnuraghes\",7442 => \"Trevenzuolo\",7443 => \"Trevi\",7444 => \"Trevi nel lazio\",7445 => \"Trevico\",7446 => \"Treviglio\",7447 => \"Trevignano\",7448 => \"Trevignano romano\",7449 => \"Treville\",7450 => \"Treviolo\",7451 => \"Treviso\",7452 => \"Treviso bresciano\",8543 => \"Treviso Sant'Angelo\",7453 => \"Trezzano rosa\",7454 => \"Trezzano sul Naviglio\",7455 => \"Trezzo sull'Adda\",7456 => \"Trezzo Tinella\",7457 => \"Trezzone\",7458 => \"Tribano\",7459 => \"Tribiano\",7460 => \"Tribogna\",7461 => \"Tricarico\",7462 => \"Tricase\",8597 => \"Tricase porto\",7463 => \"Tricerro\",7464 => \"Tricesimo\",7465 => \"Trichiana\",7466 => \"Triei\",7467 => \"Trieste\",8472 => \"Trieste Ronchi dei Legionari\",7468 => \"Triggiano\",7469 => \"Trigolo\",7470 => \"Trinita d'Agultu e Vignola\",7471 => \"Trinita'\",7472 => \"Trinitapoli\",7473 => \"Trino\",7474 => \"Triora\",7475 => \"Tripi\",7476 => \"Trisobbio\",7477 => \"Trissino\",7478 => \"Triuggio\",7479 => \"Trivento\",7480 => \"Trivero\",7481 => \"Trivigliano\",7482 => \"Trivignano udinese\",8413 => \"Trivigno\",7484 => \"Trivolzio\",7485 => \"Trodena\",7486 => \"Trofarello\",7487 => \"Troia\",7488 => \"Troina\",7489 => \"Tromello\",7490 => \"Trontano\",7491 => \"Tronzano lago maggiore\",7492 => \"Tronzano vercellese\",7493 => \"Tropea\",7494 => \"Trovo\",7495 => \"Truccazzano\",7496 => \"Tubre\",7497 => \"Tuenno\",7498 => \"Tufara\",7499 => \"Tufillo\",7500 => \"Tufino\",7501 => \"Tufo\",7502 => \"Tuglie\",7503 => \"Tuili\",7504 => \"Tula\",7505 => \"Tuoro sul trasimeno\",7506 => \"Turania\",7507 => \"Turano lodigiano\",7508 => \"Turate\",7509 => \"Turbigo\",7510 => \"Turi\",7511 => \"Turri\",7512 => \"Turriaco\",7513 => \"Turrivalignani\",8390 => \"Tursi\",7515 => \"Tusa\",7516 => \"Tuscania\",7517 => \"Ubiale Clanezzo\",7518 => \"Uboldo\",7519 => \"Ucria\",7520 => \"Udine\",7521 => \"Ugento\",7522 => \"Uggiano la chiesa\",7523 => \"Uggiate trevano\",7524 => \"Ula' Tirso\",7525 => \"Ulassai\",7526 => \"Ultimo\",7527 => \"Umbertide\",7528 => \"Umbriatico\",7529 => \"Urago d'Oglio\",7530 => \"Uras\",7531 => \"Urbana\",7532 => \"Urbania\",7533 => \"Urbe\",7534 => \"Urbino\",7535 => \"Urbisaglia\",7536 => \"Urgnano\",7537 => \"Uri\",7538 => \"Ururi\",7539 => \"Urzulei\",7540 => \"Uscio\",7541 => \"Usellus\",7542 => \"Usini\",7543 => \"Usmate Velate\",7544 => \"Ussana\",7545 => \"Ussaramanna\",7546 => \"Ussassai\",7547 => \"Usseaux\",7548 => \"Usseglio\",7549 => \"Ussita\",7550 => \"Ustica\",7551 => \"Uta\",7552 => \"Uzzano\",7553 => \"Vaccarizzo albanese\",7554 => \"Vacone\",7555 => \"Vacri\",7556 => \"Vadena\",7557 => \"Vado ligure\",7558 => \"Vagli sotto\",7559 => \"Vaglia\",8388 => \"Vaglio Basilicata\",7561 => \"Vaglio serra\",7562 => \"Vaiano\",7563 => \"Vaiano cremasco\",7564 => \"Vaie\",7565 => \"Vailate\",7566 => \"Vairano Patenora\",7567 => \"Vajont\",8511 => \"Val Canale\",7568 => \"Val della torre\",8243 => \"Val di Lei\",8237 => \"Val di Luce\",7569 => \"Val di nizza\",8440 => \"Val di Sangro casello\",7570 => \"Val di vizze\",8223 => \"Val Ferret\",8521 => \"Val Grauson\",7571 => \"Val Masino\",7572 => \"Val Rezzo\",8215 => \"Val Senales\",8522 => \"Val Urtier\",8224 => \"Val Veny\",7573 => \"Valbondione\",7574 => \"Valbrembo\",7575 => \"Valbrevenna\",7576 => \"Valbrona\",8311 => \"Valcava\",7577 => \"Valda\",7578 => \"Valdagno\",7579 => \"Valdaora\",7580 => \"Valdastico\",7581 => \"Valdengo\",7582 => \"Valderice\",7583 => \"Valdidentro\",7584 => \"Valdieri\",7585 => \"Valdina\",7586 => \"Valdisotto\",7587 => \"Valdobbiadene\",7588 => \"Valduggia\",7589 => \"Valeggio\",7590 => \"Valeggio sul Mincio\",7591 => \"Valentano\",7592 => \"Valenza\",7593 => \"Valenzano\",7594 => \"Valera fratta\",7595 => \"Valfabbrica\",7596 => \"Valfenera\",7597 => \"Valfloriana\",7598 => \"Valfurva\",7599 => \"Valganna\",7600 => \"Valgioie\",7601 => \"Valgoglio\",7602 => \"Valgrana\",7603 => \"Valgreghentino\",7604 => \"Valgrisenche\",7605 => \"Valguarnera caropepe\",8344 => \"Valico Citerna\",8510 => \"Valico dei Giovi\",8318 => \"Valico di Monforte\",8509 => \"Valico di Montemiletto\",8507 => \"Valico di Scampitella\",7606 => \"Vallada agordina\",7607 => \"Vallanzengo\",7608 => \"Vallarsa\",7609 => \"Vallata\",7610 => \"Valle agricola\",7611 => \"Valle Aurina\",7612 => \"Valle castellana\",8444 => \"Valle del salto\",7613 => \"Valle dell'Angelo\",7614 => \"Valle di Cadore\",7615 => \"Valle di Casies\",7616 => \"Valle di maddaloni\",7617 => \"Valle lomellina\",7618 => \"Valle mosso\",7619 => \"Valle salimbene\",7620 => \"Valle San Nicolao\",7621 => \"Vallebona\",7622 => \"Vallecorsa\",7623 => \"Vallecrosia\",7624 => \"Valledolmo\",7625 => \"Valledoria\",7626 => \"Vallefiorita\",7627 => \"Vallelonga\",7628 => \"Vallelunga pratameno\",7629 => \"Vallemaio\",7630 => \"Vallepietra\",7631 => \"Vallerano\",7632 => \"Vallermosa\",7633 => \"Vallerotonda\",7634 => \"Vallesaccarda\",8749 => \"Valletta\",7635 => \"Valleve\",7636 => \"Valli del Pasubio\",7637 => \"Vallinfreda\",7638 => \"Vallio terme\",7639 => \"Vallo della Lucania\",7640 => \"Vallo di Nera\",7641 => \"Vallo torinese\",8191 => \"Vallombrosa\",8471 => \"Vallon\",7642 => \"Valloriate\",7643 => \"Valmacca\",7644 => \"Valmadrera\",7645 => \"Valmala\",8313 => \"Valmasino\",7646 => \"Valmontone\",7647 => \"Valmorea\",7648 => \"Valmozzola\",7649 => \"Valnegra\",7650 => \"Valpelline\",7651 => \"Valperga\",7652 => \"Valprato Soana\",7653 => \"Valsavarenche\",7654 => \"Valsecca\",7655 => \"Valsinni\",7656 => \"Valsolda\",7657 => \"Valstagna\",7658 => \"Valstrona\",7659 => \"Valtopina\",7660 => \"Valtorta\",8148 => \"Valtorta impianti\",7661 => \"Valtournenche\",7662 => \"Valva\",7663 => \"Valvasone\",7664 => \"Valverde\",7665 => \"Valverde\",7666 => \"Valvestino\",7667 => \"Vandoies\",7668 => \"Vanzaghello\",7669 => \"Vanzago\",7670 => \"Vanzone con San Carlo\",7671 => \"Vaprio d'Adda\",7672 => \"Vaprio d'Agogna\",7673 => \"Varallo\",7674 => \"Varallo Pombia\",7675 => \"Varano Borghi\",7676 => \"Varano de' Melegari\",7677 => \"Varapodio\",7678 => \"Varazze\",8600 => \"Varcaturo\",7679 => \"Varco sabino\",7680 => \"Varedo\",7681 => \"Varena\",7682 => \"Varenna\",7683 => \"Varese\",7684 => \"Varese ligure\",8284 => \"Varigotti\",7685 => \"Varisella\",7686 => \"Varmo\",7687 => \"Varna\",7688 => \"Varsi\",7689 => \"Varzi\",7690 => \"Varzo\",7691 => \"Vas\",7692 => \"Vasanello\",7693 => \"Vasia\",7694 => \"Vasto\",7695 => \"Vastogirardi\",7696 => \"Vattaro\",7697 => \"Vauda canavese\",7698 => \"Vazzano\",7699 => \"Vazzola\",7700 => \"Vecchiano\",7701 => \"Vedano al Lambro\",7702 => \"Vedano Olona\",7703 => \"Veddasca\",7704 => \"Vedelago\",7705 => \"Vedeseta\",7706 => \"Veduggio con Colzano\",7707 => \"Veggiano\",7708 => \"Veglie\",7709 => \"Veglio\",7710 => \"Vejano\",7711 => \"Veleso\",7712 => \"Velezzo lomellina\",8530 => \"Vellano\",7713 => \"Velletri\",7714 => \"Vellezzo Bellini\",7715 => \"Velo d'Astico\",7716 => \"Velo veronese\",7717 => \"Velturno\",7718 => \"Venafro\",7719 => \"Venaria\",7720 => \"Venarotta\",7721 => \"Venasca\",7722 => \"Venaus\",7723 => \"Vendone\",7724 => \"Vendrogno\",7725 => \"Venegono inferiore\",7726 => \"Venegono superiore\",7727 => \"Venetico\",7728 => \"Venezia\",8502 => \"Venezia Mestre\",8268 => \"Venezia Tessera\",7729 => \"Veniano\",7730 => \"Venosa\",7731 => \"Venticano\",7732 => \"Ventimiglia\",7733 => \"Ventimiglia di Sicilia\",7734 => \"Ventotene\",7735 => \"Venzone\",7736 => \"Verano\",7737 => \"Verano brianza\",7738 => \"Verbania\",7739 => \"Verbicaro\",7740 => \"Vercana\",7741 => \"Verceia\",7742 => \"Vercelli\",7743 => \"Vercurago\",7744 => \"Verdellino\",7745 => \"Verdello\",7746 => \"Verderio inferiore\",7747 => \"Verderio superiore\",7748 => \"Verduno\",7749 => \"Vergato\",7750 => \"Vergemoli\",7751 => \"Verghereto\",7752 => \"Vergiate\",7753 => \"Vermezzo\",7754 => \"Vermiglio\",8583 => \"Vernago\",7755 => \"Vernante\",7756 => \"Vernasca\",7757 => \"Vernate\",7758 => \"Vernazza\",7759 => \"Vernio\",7760 => \"Vernole\",7761 => \"Verolanuova\",7762 => \"Verolavecchia\",7763 => \"Verolengo\",7764 => \"Veroli\",7765 => \"Verona\",8269 => \"Verona Villafranca\",7766 => \"Veronella\",7767 => \"Verrayes\",7768 => \"Verres\",7769 => \"Verretto\",7770 => \"Verrone\",7771 => \"Verrua po\",7772 => \"Verrua Savoia\",7773 => \"Vertemate con Minoprio\",7774 => \"Vertova\",7775 => \"Verucchio\",7776 => \"Veruno\",7777 => \"Vervio\",7778 => \"Vervo'\",7779 => \"Verzegnis\",7780 => \"Verzino\",7781 => \"Verzuolo\",7782 => \"Vescovana\",7783 => \"Vescovato\",7784 => \"Vesime\",7785 => \"Vespolate\",7786 => \"Vessalico\",7787 => \"Vestenanova\",7788 => \"Vestigne'\",7789 => \"Vestone\",7790 => \"Vestreno\",7791 => \"Vetralla\",7792 => \"Vetto\",7793 => \"Vezza d'Alba\",7794 => \"Vezza d'Oglio\",7795 => \"Vezzano\",7796 => \"Vezzano ligure\",7797 => \"Vezzano sul crostolo\",7798 => \"Vezzi portio\",8317 => \"Vezzo\",7799 => \"Viadana\",7800 => \"Viadanica\",7801 => \"Viagrande\",7802 => \"Viale\",7803 => \"Vialfre'\",7804 => \"Viano\",7805 => \"Viareggio\",7806 => \"Viarigi\",8674 => \"Vibo Marina\",7807 => \"Vibo Valentia\",7808 => \"Vibonati\",7809 => \"Vicalvi\",7810 => \"Vicari\",7811 => \"Vicchio\",7812 => \"Vicenza\",7813 => \"Vico canavese\",7814 => \"Vico del Gargano\",7815 => \"Vico Equense\",7816 => \"Vico nel Lazio\",7817 => \"Vicoforte\",7818 => \"Vicoli\",7819 => \"Vicolungo\",7820 => \"Vicopisano\",7821 => \"Vicovaro\",7822 => \"Viddalba\",7823 => \"Vidigulfo\",7824 => \"Vidor\",7825 => \"Vidracco\",7826 => \"Vieste\",7827 => \"Vietri di Potenza\",7828 => \"Vietri sul mare\",7829 => \"Viganella\",7830 => \"Vigano San Martino\",7831 => \"Vigano'\",7832 => \"Vigarano Mainarda\",7833 => \"Vigasio\",7834 => \"Vigevano\",7835 => \"Viggianello\",7836 => \"Viggiano\",7837 => \"Viggiu'\",7838 => \"Vighizzolo d'Este\",7839 => \"Vigliano biellese\",7840 => \"Vigliano d'Asti\",7841 => \"Vignale monferrato\",7842 => \"Vignanello\",7843 => \"Vignate\",8125 => \"Vignola\",7845 => \"Vignola Falesina\",7846 => \"Vignole Borbera\",7847 => \"Vignolo\",7848 => \"Vignone\",8514 => \"Vigo Ciampedie\",7849 => \"Vigo di Cadore\",7850 => \"Vigo di Fassa\",7851 => \"Vigo Rendena\",7852 => \"Vigodarzere\",7853 => \"Vigolo\",7854 => \"Vigolo Vattaro\",7855 => \"Vigolzone\",7856 => \"Vigone\",7857 => \"Vigonovo\",7858 => \"Vigonza\",7859 => \"Viguzzolo\",7860 => \"Villa agnedo\",7861 => \"Villa bartolomea\",7862 => \"Villa basilica\",7863 => \"Villa biscossi\",7864 => \"Villa carcina\",7865 => \"Villa castelli\",7866 => \"Villa celiera\",7867 => \"Villa collemandina\",7868 => \"Villa cortese\",7869 => \"Villa d'Adda\",7870 => \"Villa d'Alme'\",7871 => \"Villa d'Ogna\",7872 => \"Villa del bosco\",7873 => \"Villa del conte\",7874 => \"Villa di briano\",7875 => \"Villa di Chiavenna\",7876 => \"Villa di Serio\",7877 => \"Villa di Tirano\",7878 => \"Villa Estense\",7879 => \"Villa Faraldi\",7880 => \"Villa Guardia\",7881 => \"Villa Lagarina\",7882 => \"Villa Latina\",7883 => \"Villa Literno\",7884 => \"Villa minozzo\",7885 => \"Villa poma\",7886 => \"Villa rendena\",7887 => \"Villa San Giovanni\",7888 => \"Villa San Giovanni in Tuscia\",7889 => \"Villa San Pietro\",7890 => \"Villa San Secondo\",7891 => \"Villa Sant'Angelo\",7892 => \"Villa Sant'Antonio\",7893 => \"Villa Santa Lucia\",7894 => \"Villa Santa Lucia degli Abruzzi\",7895 => \"Villa Santa Maria\",7896 => \"Villa Santina\",7897 => \"Villa Santo Stefano\",7898 => \"Villa verde\",7899 => \"Villa vicentina\",7900 => \"Villabassa\",7901 => \"Villabate\",7902 => \"Villachiara\",7903 => \"Villacidro\",7904 => \"Villadeati\",7905 => \"Villadose\",7906 => \"Villadossola\",7907 => \"Villafalletto\",7908 => \"Villafranca d'Asti\",7909 => \"Villafranca di Verona\",7910 => \"Villafranca in Lunigiana\",7911 => \"Villafranca padovana\",7912 => \"Villafranca Piemonte\",7913 => \"Villafranca sicula\",7914 => \"Villafranca tirrena\",7915 => \"Villafrati\",7916 => \"Villaga\",7917 => \"Villagrande Strisaili\",7918 => \"Villalago\",7919 => \"Villalba\",7920 => \"Villalfonsina\",7921 => \"Villalvernia\",7922 => \"Villamagna\",7923 => \"Villamaina\",7924 => \"Villamar\",7925 => \"Villamarzana\",7926 => \"Villamassargia\",7927 => \"Villamiroglio\",7928 => \"Villandro\",7929 => \"Villanova biellese\",7930 => \"Villanova canavese\",7931 => \"Villanova d'Albenga\",7932 => \"Villanova d'Ardenghi\",7933 => \"Villanova d'Asti\",7934 => \"Villanova del Battista\",7935 => \"Villanova del Ghebbo\",7936 => \"Villanova del Sillaro\",7937 => \"Villanova di Camposampiero\",7938 => \"Villanova marchesana\",7939 => \"Villanova Mondovi'\",7940 => \"Villanova Monferrato\",7941 => \"Villanova Monteleone\",7942 => \"Villanova solaro\",7943 => \"Villanova sull'Arda\",7944 => \"Villanova Truschedu\",7945 => \"Villanova Tulo\",7946 => \"Villanovaforru\",7947 => \"Villanovafranca\",7948 => \"Villanterio\",7949 => \"Villanuova sul Clisi\",7950 => \"Villaperuccio\",7951 => \"Villapiana\",7952 => \"Villaputzu\",7953 => \"Villar dora\",7954 => \"Villar focchiardo\",7955 => \"Villar pellice\",7956 => \"Villar Perosa\",7957 => \"Villar San Costanzo\",7958 => \"Villarbasse\",7959 => \"Villarboit\",7960 => \"Villareggia\",7961 => \"Villaricca\",7962 => \"Villaromagnano\",7963 => \"Villarosa\",7964 => \"Villasalto\",7965 => \"Villasanta\",7966 => \"Villasimius\",7967 => \"Villasor\",7968 => \"Villaspeciosa\",7969 => \"Villastellone\",7970 => \"Villata\",7971 => \"Villaurbana\",7972 => \"Villavallelonga\",7973 => \"Villaverla\",7974 => \"Villeneuve\",7975 => \"Villesse\",7976 => \"Villetta Barrea\",7977 => \"Villette\",7978 => \"Villimpenta\",7979 => \"Villongo\",7980 => \"Villorba\",7981 => \"Vilminore di scalve\",7982 => \"Vimercate\",7983 => \"Vimodrone\",7984 => \"Vinadio\",7985 => \"Vinchiaturo\",7986 => \"Vinchio\",7987 => \"Vinci\",7988 => \"Vinovo\",7989 => \"Vinzaglio\",7990 => \"Viola\",7991 => \"Vione\",7992 => \"Vipiteno\",7993 => \"Virgilio\",7994 => \"Virle Piemonte\",7995 => \"Visano\",7996 => \"Vische\",7997 => \"Visciano\",7998 => \"Visco\",7999 => \"Visone\",8000 => \"Visso\",8001 => \"Vistarino\",8002 => \"Vistrorio\",8003 => \"Vita\",8004 => \"Viterbo\",8005 => \"Viticuso\",8006 => \"Vito d'Asio\",8007 => \"Vitorchiano\",8008 => \"Vittoria\",8009 => \"Vittorio Veneto\",8010 => \"Vittorito\",8011 => \"Vittuone\",8012 => \"Vitulano\",8013 => \"Vitulazio\",8014 => \"Viu'\",8015 => \"Vivaro\",8016 => \"Vivaro romano\",8017 => \"Viverone\",8018 => \"Vizzini\",8019 => \"Vizzola Ticino\",8020 => \"Vizzolo Predabissi\",8021 => \"Vo'\",8022 => \"Vobarno\",8023 => \"Vobbia\",8024 => \"Vocca\",8025 => \"Vodo cadore\",8026 => \"Voghera\",8027 => \"Voghiera\",8028 => \"Vogogna\",8029 => \"Volano\",8030 => \"Volla\",8031 => \"Volongo\",8032 => \"Volpago del montello\",8033 => \"Volpara\",8034 => \"Volpedo\",8035 => \"Volpeglino\",8036 => \"Volpiano\",8037 => \"Volta mantovana\",8038 => \"Voltaggio\",8039 => \"Voltago agordino\",8040 => \"Volterra\",8041 => \"Voltido\",8042 => \"Volturara Appula\",8043 => \"Volturara irpina\",8044 => \"Volturino\",8045 => \"Volvera\",8046 => \"Vottignasco\",8181 => \"Vulcano Porto\",8047 => \"Zaccanopoli\",8048 => \"Zafferana etnea\",8049 => \"Zagarise\",8050 => \"Zagarolo\",8051 => \"Zambana\",8707 => \"Zambla\",8052 => \"Zambrone\",8053 => \"Zandobbio\",8054 => \"Zane'\",8055 => \"Zanica\",8056 => \"Zapponeta\",8057 => \"Zavattarello\",8058 => \"Zeccone\",8059 => \"Zeddiani\",8060 => \"Zelbio\",8061 => \"Zelo Buon Persico\",8062 => \"Zelo Surrigone\",8063 => \"Zeme\",8064 => \"Zenevredo\",8065 => \"Zenson di Piave\",8066 => \"Zerba\",8067 => \"Zerbo\",8068 => \"Zerbolo'\",8069 => \"Zerfaliu\",8070 => \"Zeri\",8071 => \"Zermeghedo\",8072 => \"Zero Branco\",8073 => \"Zevio\",8455 => \"Ziano di Fiemme\",8075 => \"Ziano piacentino\",8076 => \"Zibello\",8077 => \"Zibido San Giacomo\",8078 => \"Zignago\",8079 => \"Zimella\",8080 => \"Zimone\",8081 => \"Zinasco\",8082 => \"Zoagli\",8083 => \"Zocca\",8084 => \"Zogno\",8085 => \"Zola Predosa\",8086 => \"Zoldo alto\",8087 => \"Zollino\",8088 => \"Zone\",8089 => \"Zoppe' di cadore\",8090 => \"Zoppola\",8091 => \"Zovencedo\",8092 => \"Zubiena\",8093 => \"Zuccarello\",8094 => \"Zuclo\",8095 => \"Zugliano\",8096 => \"Zuglio\",8097 => \"Zumaglia\",8098 => \"Zumpano\",8099 => \"Zungoli\",8100 => \"Zungri\");\n\t$return = '<br/><a href=\"https://www.3bmeteo.com'.strtolower($trebi_url_locs[$idloc]).'\" style=\"font-size:10px;\">Meteo '.$trebi_locs[$idloc].'</a>';\n\treturn $return;\n}", "function getTextPath($id = \"0\", $urlPrefix = '') {\n if($id == \"\") { $id = \"0\"; }\n $treeRecord = $this->getTreeRecord($id);\n\n if($treeRecord != null) {\n if($treeRecord->belongs_to == \"0\") {\n return \"/ \".$treeRecord->title;\n } else {\n $path = $this->getTextPath($treeRecord->belongs_to, $urlPrefix);\n return $path . \" / \" . $treeRecord->title;\n }\n } else {\n return \"/ \";\n }\n }" ]
[ "0.7986049", "0.75850767", "0.74275815", "0.72004217", "0.7007548", "0.6723315", "0.67168885", "0.6415161", "0.640555", "0.6370351", "0.62349224", "0.59919417", "0.59185445", "0.5873872", "0.58326685", "0.5742827", "0.5681742", "0.5680316", "0.5660155", "0.56338495", "0.5579724", "0.5556598", "0.55558026", "0.5538161", "0.5538161", "0.5528483", "0.5527156", "0.5523113", "0.5513417", "0.54908013", "0.54778314", "0.5461606", "0.54567796", "0.54531133", "0.5452985", "0.54378784", "0.54273564", "0.5425022", "0.54166764", "0.5408778", "0.5407748", "0.5407063", "0.54024476", "0.53876865", "0.53876865", "0.53876865", "0.53876865", "0.53876865", "0.53876865", "0.53876865", "0.53876865", "0.53876865", "0.53876865", "0.53876865", "0.53876865", "0.53876865", "0.53876865", "0.5384451", "0.53820986", "0.53797734", "0.5376234", "0.5373493", "0.53699785", "0.5343267", "0.5342582", "0.5329035", "0.53283423", "0.5321044", "0.52987176", "0.52918726", "0.5273557", "0.5267548", "0.5266643", "0.52554274", "0.5249881", "0.5224798", "0.5219733", "0.52188927", "0.52187926", "0.5208718", "0.52035135", "0.5201388", "0.5198185", "0.51902616", "0.51875", "0.51868886", "0.5182512", "0.5180471", "0.5178356", "0.5177263", "0.51754415", "0.51754415", "0.51754415", "0.51754415", "0.5174918", "0.5170959", "0.51682925", "0.5163748", "0.51633686", "0.5163113" ]
0.83869505
0
API Function to generate a url path for use by other modules/themes. Example Usage: $path = getdirections_locations_user_path($fromuid, $touid); $url = l(t('Get directions'), $path);
function getdirections_locations_user_path($fromuid, $touid) { if (module_exists('location') && is_numeric($fromuid) && is_numeric($touid)) { return "getdirections/locations_user/$fromuid/$touid"; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getdirections_location_user_path($direction, $uid) {\n if (module_exists('location') && is_numeric($uid) && ($direction == 'to' || $direction == 'from')) {\n return \"getdirections/location_user/$direction/$uid\";\n }\n}", "function getdirections_locations_user_via_path($uids) {\n if (module_exists('location')) {\n return \"getdirections/locations_user_via/$uids\";\n }\n}", "function getdirections_location_u2n_path($fromuid, $tonid) {\n if (module_exists('location') && is_numeric($fromuid) && is_numeric($tonid)) {\n return \"getdirections/location_u2n/$fromuid/$tonid\";\n }\n}", "function getdirections_location_n2u_path($fromnid, $touid) {\n if (module_exists('location') && is_numeric($fromnid) && is_numeric($touid)) {\n return \"getdirections/location_u2n/$fromnid/$touid\";\n }\n}", "function getdirections_locations_via_path($nids) {\n if (module_exists('location')) {\n return \"getdirections/locations_via/$nids\";\n }\n}", "function getdirections_locations_path($fromnid, $tonid) {\n if (module_exists('location') && is_numeric($fromnid) && is_numeric($tonid)) {\n return \"getdirections/locations/$fromnid/$tonid\";\n }\n}", "function getdirections_location_id_path($direction, $lid) {\n if (module_exists('location') && is_numeric($lid) && ($direction == 'to' || $direction == 'from')) {\n return \"getdirections/location_id/$direction/$lid\";\n }\n}", "function getdirections_location_latlon_path($direction, $latlon, $locs='') {\n if (($direction == 'to' || $direction == 'from') && preg_match(\"/[0-9.\\-],[0-9.\\-]/\", $latlon)) {\n $out = \"getdirections/latlon/$direction/$latlon\";\n if ($locs) {\n $out .= \"/$locs\";\n }\n return $out;\n }\n}", "public static function personal_folder_path($user_id) {\n\n\n $user = Backend_User::find($user_id);\n\n $slash = Config::get('portal.back_slash');\n\n\n if($user) {\n\n $route = '';\n\n if ($user->user_type == 0 || $user->user_type == 1) {\n\n //get first and last name \n $details = Backend_User_Details::where('user_id','=',$user->id)->get(array('first_name','last_name'));\n\n\n\n $details = $details[0];\n\n //form route\n $route .= 'users'. $slash .$details->last_name.'-'.$details->first_name.'-'.$user->id;\n\n }//if user or admin \n else {\n\n //get client's details\n $client_details = Backend_Client::infos($user->id);\n\n $client_details = $client_details[0];\n\n\n if($client_details->client_type_id == 1 ) {\n\n $route .= 'clients'. $slash.'individual'.$slash.str_replace(' ', '-', $client_details->last_name).'-'.str_replace(' ', '-',$client_details->first_name).'-'.$user->id;\n \n }//if individual\n else{\n\n $folder = Backend_Client_Type::get_name_by_client_type_id($client_details->client_type_id);\n\n $route .= 'clients'. $slash.strtolower($folder). $slash .str_replace(' ', '-',$client_details->name).'-'.$user->id;\n\n }//if corporate\n\n\n }//if client\n\n return $route;\n\n }//if the user exsists\n\n return false;\n\n }", "function cot_pfs_relpath($userid)\n{\n\tglobal $cfg;\n\n\tif ($cfg['pfs']['pfsuserfolder'])\n\t{\n\t\treturn($userid.'/');\n\t}\n\telse\n\t{\n\t\treturn('');\n\t}\n}", "function get_directions( $location ) {\n\treturn directions_base_url . urlencode( str_replace( \"\\n\", ', ', $location->address ) ) // change newlines into comma+space so google maps can process it properly\n\t . '/@' . $location->latitude . ',' . $location->longitude . ',17z/';\n\t// https://www.google.com/maps/dir//6850+Lake+Nona+Blvd,+Orlando,+FL+32827/@28.3676791,-81.2850738,17z/\n}", "function GetDirectionURL($type,$origin,$destination){\r\n $url = null;\r\n\r\n if($type == 'findway'){\r\n $url = 'https://www.google.com/maps/dir/?api=1&origin='.trim($origin).'&destination='.trim($destination).'&travelmode=driving';\r\n }else if($type == 'where') {\r\n\r\n $url = 'https://www.google.com/maps/search/?api=1&query=' . $destination;\r\n }\r\n return $url;\r\n}", "public function getUserRoutePathLng()\n {\n return $this->userRoutePathLng;\n }", "function map_directions_link($location,$latitude,$longitude)\n {\n return \"https://maps.google.com/maps?ll={$latitude},{$longitude}&amp;z=16&amp;t=m&amp;hl=en-US&amp;gl=PT&amp;mapclient=embed&amp;daddr={$location}@{$latitude},{$longitude}\";\n }", "function user_connection_path ($userid, $to_user_id)\r\n{\r\n\tglobal $database;\r\n\tglobal $user;\r\n\tglobal $userconnection_distance;\r\n global $userconnection_previous;\r\n\tglobal $userconnection_setting;\r\n\t$userconnection_output = array();\r\n\t\r\n\t // CACHING\r\n $cache_object = SECache::getInstance('serial');\r\n if (is_object($cache_object) ) {\r\n\t $userconnection_combind_path_contacts_array = $cache_object->get('userconnection_combind_path_contacts_array_cache');\r\n }\r\n\tif (!is_array($userconnection_combind_path_contacts_array)) {\r\n\t\t// longest is the steps ... By changint it you can change steps level \r\n\t\t$longest = $userconnection_setting['level'];\r\n\t\t// IF $longest IS LESS THEN 4 THEN FOR FINDING OUT CONTACTS DEGREE WE ASSIGN '4' TO $longest BECAUSE WE WANT TO SHOW THREE DEGREE CONTACTS \r\n\t\tif ($longest<4) {\r\n\t\t\t$longest = 4;\r\n\t\t}\r\n\t\t// Initialize the distance to all the user entities with the maximum value of distance.\r\n \t// Initialize the previous connecting user entity for every user entity as -1. This means a no known path.\r\n\t\t$id =\t $user->user_info['user_id'];\r\n\t\t$result = $database->database_query (\"SELECT su.user_id FROM se_users su INNER JOIN se_usersettings sus ON sus.usersetting_user_id = su.user_id WHERE (su.user_verified='1' AND su.user_enabled='1' AND su.user_search='1' AND sus.usersetting_userconnection = '0') OR su.user_id = '$id'\");\r\n\t\twhile ($row = $database->database_fetch_assoc($result)) {\r\n\t\t\t\r\n\t\t\t$userconnection_entity = $row['user_id'];\r\n\t\t\t$userconnection_entities_array[] = $userconnection_entity;\r\n \t $userconnection_distance[$userconnection_entity] = $longest;\r\n \t $userconnection_previous[$userconnection_entity] = -1;\r\n\t\t}\r\n \t// The connection distance from the userid to itself is 0\r\n \t$userconnection_distance[$userid] = 0;\r\n \t// $userconnection_temp1_array keeps track of the entities we still need to work on \r\n \t$userconnection_temp1_array = $userconnection_entities_array;\r\n \t\r\n \twhile (count ($userconnection_temp1_array) > 0) { // more elements in $userconnection_temp1_array\r\n \t $userconnection_userentity_id = find_minimum ($userconnection_temp1_array);\r\n \t\tif ($userconnection_userentity_id == $to_user_id) {\r\n \t\t\t$userconnection_previous_array = $userconnection_previous;\r\n \t // Can stop computing the distance if we have reached the to_user_id\r\n \t }\r\n\t\t\t\r\n \t$userconnection_temp2_array = array_search ($userconnection_userentity_id, $userconnection_temp1_array);\r\n \t$userconnection_temp1_array[$userconnection_temp2_array] = false;\r\n \t$userconnection_temp1_array = array_filter ($userconnection_temp1_array); // filters away the false elements\r\n \t// Find all friends linked to $userconnection_temp2_array\r\n \t$invitees = $database->database_query(\"SELECT friend_user_id1 FROM se_friends WHERE friend_user_id2='$userconnection_userentity_id' AND friend_status = '1'\");\r\n \twhile ($row = $database->database_fetch_assoc($invitees)) {\r\n \t\t$link_id = $row['friend_user_id1'];\r\n\t\t\t\tuserconnection_calculate_distance ($userconnection_userentity_id, $link_id);\r\n \t}\r\n \t$inviters = $database->database_query(\"SELECT friend_user_id2 FROM se_friends WHERE friend_user_id1='$userconnection_userentity_id' AND friend_status = '1'\");\r\n \twhile ($row = $database->database_fetch_assoc($inviters)) {\r\n \t\r\n \t\t$link_id = $row['friend_user_id2'];\r\n\t\t\t\tuserconnection_calculate_distance ($userconnection_userentity_id, $link_id);\r\n \t}\r\n \t}\r\n\t\t// The path is found in the $userconnection_previous values from $fromid to $to_user_id\r\n \t$userconnection_temp = 0;\r\n \t// If user visiting his/her profile then $to_user_id is 0 so for terminating this we assign -1 to $to_user_id\r\n \tif (empty($to_user_id)) {\r\n \t\t$to_user_id = -1;\r\n \t}\r\n \t$userconnection_currententity = $to_user_id;\r\n\t\t\r\n \twhile ($userconnection_currententity != $userid && $userconnection_currententity != -1) {\r\n \t$userconnection_links_array[$userconnection_temp++] = $userconnection_currententity;\r\n \t$userconnection_currententity = $userconnection_previous_array[$userconnection_currententity];\r\n \t}\r\n \r\n \tif ($userconnection_currententity != $userid) { \r\n \t\t $empty =array();\r\n \t\t // HERE WE ARE ASSIGING TWO ARRAY ($empty ,$userconnection_distance) TO A NEW ARRAY \r\n \t\t$userconnection_combind_path_contacts_array = array($empty, $userconnection_distance);\r\n \t\treturn $userconnection_combind_path_contacts_array;\r\n \t} \r\n \telse {\r\n \t// Display the connection paths in the reverse order\r\n \t$userconnection_preventity = $userid;\r\n \t$userconnection_output[] = $user->user_info['user_id'];\r\n\t\t\t// Entering the values in ouput array\r\n \tfor ($i = $userconnection_temp - 1; $i >= 0; $i--) {\r\n \t $userconnection_temp1 = $userconnection_links_array[$i];\r\n \t $userconnection_output[] = $userconnection_temp1;\r\n \t $userconnection_preventity = $userconnection_temp1;\r\n \t} \r\n \t}\r\n\t\t// HERE WE ARE COMPARING No. OF ELEMENT IN $USERCONNECTION_OUTPUT AND LEVEL BECAUSE WE ASSINGED $larget TO 4 IN CASE OF LEVEL LESS THEN 4 SO IF ADMIN ASSIGN LEVEL LESS THEN 4 THEN IT WILL ALWAYS RETURN A PATH OF 4 LEVEL AND WE DON'T WANT THIS \r\n \tif (count($userconnection_output) > $userconnection_setting['level']){\r\n \t\t$empty\t= array();\r\n \t\t// HERE WE ARE ASSIGING TWO ARRAY ($empty ,$userconnection_distance) TO A NEW ARRAY \r\n \t\t$userconnection_combind_path_contacts_array = array($empty, $userconnection_distance);\r\n \t}\r\n \telse {\r\n \t// HERE WE ARE ASSIGING TWO ARRAY ($userconnection_output ,$userconnection_distance) TO A NEW ARRAY \t\r\n\t\t $userconnection_combind_path_contacts_array = array($userconnection_output, $userconnection_distance);\r\n \t}\r\n \t// CACHE\r\n if (is_object($cache_object)) {\r\n\t $cache_object->store($userconnection_output, 'userconnection_combind_path_contacts_array_cache');\r\n }\r\n\t}\r\n return $userconnection_combind_path_contacts_array;\r\n}", "public function getPathLocation(): string;", "public function path()\n {\n return $this->user->path() . $this->slug;\n }", "public function path(): string\n {\n // path to your own account\n if ($this->model->isLoggedIn() === true) {\n return 'account';\n }\n\n return 'users/' . $this->model->id();\n }", "public function routePath(string $value) {\n if (null !== ($generatedPath = $this->routingHelper->getPath($value))) {\n return $generatedPath;\n }\n\n return \"\";\n }", "public function getUserRoutePathId()\n {\n return $this->userRoutePathId;\n }", "public function redirectPath()\n {\n $user = Auth::user();\n $userb = User::with('roles')->where('id', $user->id)->first();\n\n $role= $userb->roles->first()->Nombre;\n\n switch ($role) {\n case 'Supervisor':\n return \"/Admin\";\n break;\n case 'Encargado':\n return \"/Encargado\";\n break;\n case 'Comprador':\n return \"/Cliente\";\n break;\n case 'Vendedor':\n return \"/Cliente\";\n break;\n default:\n return \"/\";\n break;\n }\n }", "private function usersUrl($user_id = '') {\n\t\t$url = \"users\";\n\t\tif (!empty($user_id)) {\n\t\t\t$url .= '/';\n\t\t\tif (is_string($user_id) && $user_id !== 'current') {\n\t\t\t\t$url .= '=';\n\t\t\t\t$user_id = urlencode(urlencode($user_id));\n\t\t\t}\n\t\t\t$url .= $user_id;\n\t\t}\n\t\treturn $url;\n\t}", "public function getRoutePath($onlyStaticPart = false);", "function wechat_url(WechatUser $wechatUser, $path, $path_params=array()){\n $path_params = array('token'=>$wechatUser->token, 'path'=>query_url($path, $path_params));\n return query_url('wechat/redirect', $path_params);\n}", "public function redirectPath()\n {\n if (method_exists($this, 'redirectTo')) {\n return $this->redirectTo();\n \n if(Auth::user()->position == 'Administrative Staff')\n {\n return property_exists($this, 'redirectTo') ? $this->redirectTo : '/home';\n }\n if(Auth::user()->position == 'Lawyer')\n {\n return property_exists($this, 'redirectTo') ? $this->redirectTo : '/lawyerside/show';\n }\n } \n }", "public function generateUrl($path, $user)\n {\n $this->em = $this->container->get('doctrine.orm.entity_manager');\n $this->router= $this->container->get('router');\n\n if (null === $user->getConfirmationToken()) {\n /** @var $tokenGenerator \\FOS\\UserBundle\\Util\\TokenGeneratorInterface */\n $tokenGenerator = $this->container->get('fos_user.util.token_generator');\n $token = $tokenGenerator->generateToken();\n $user->setConfirmationToken($token);\n\n $this->em->persist($user);\n $this->em->flush();\n }\n else{\n $token = $user->getConfirmationToken();\n }\n\n $domain = $this->container->getParameter('sopinet_autologin.domain');\n\n $url = $domain . $this->router->generate('auto_login', array('path' => $path, 'token' => $token));\n\n return $url;\n }", "public static function getPath() {\n\t\tif ($args = func_get_args()) {\n\t\t\t$path = self::_getPath($args);\n\t\t} else {\n\t\t\t$path = '';\n\t\t}\n\t\treturn self::fixSlash($path);\n\t}", "private function getPath() {\n return '%2F' . urlencode($this->source) . '%2F' . urlencode($this->campaign) .'%2F' . urlencode($this->content);\n }", "private function getRelativePath($from, $to)\n\t{\n\t\t\t$from = explode('/', $from);\n\t\t\t$to = explode('/', $to);\n\t\t\t$relPath = $to;\n\n\t\t\tforeach($from as $depth => $dir) {\n\t\t\t\t\t// find first non-matching dir\n\t\t\t\t\tif($dir === $to[$depth]) {\n\t\t\t\t\t\t\t// ignore this directory\n\t\t\t\t\t\t\tarray_shift($relPath);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// get number of remaining dirs to $from\n\t\t\t\t\t\t\t$remaining = count($from) - $depth;\n\t\t\t\t\t\t\tif($remaining > 1) {\n\t\t\t\t\t\t\t\t\t// add traversals up to first matching dir\n\t\t\t\t\t\t\t\t\t$padLength = (count($relPath) + $remaining - 1) * -1;\n\t\t\t\t\t\t\t\t\t$relPath = array_pad($relPath, $padLength, '..');\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t$relPath[0] = './' . $relPath[0];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t}\n\t\t\tunset($relPath[count($relPath)-1]);\n\t\t\treturn implode('/', $relPath);\n\t}", "function cot_pfs_path($userid)\n{\n\tglobal $cfg;\n\n\tif ($cfg['pfs']['pfsuserfolder'])\n\t{\n\t\treturn($cfg['pfs_dir'].'/'.$userid.'/');\n\t}\n\telse\n\t{\n\t\treturn($cfg['pfs_dir'].'/');\n\t}\n}", "public function googleDirectionsLink()\n {\n return 'https://maps.google.com/?daddr=' . urlencode($this->full_address);\n }", "function url_for($to)\n {\n $args = func_get_args();\n\n # find params\n $params = array();\n if (is_array(end($args))) {\n $params = array_pop($args);\n }\n\n # urlencode all but the first argument\n $args = array_map('urlencode', $args);\n $args[0] = $to;\n\n return PluginEngine::getURL($this->dispatcher->plugin, $params, join('/', $args));\n }", "public function path();", "function url_for($to) {\n $args = func_get_args();\n\n # find params\n $params = array();\n if (is_array(end($args))) {\n $params = array_pop($args);\n }\n\n # urlencode all but the first argument\n $args = array_map('urlencode', $args);\n $args[0] = $to;\n\n return PluginEngine::getURL($this->dispatcher->plugin, $params, join('/', $args));\n }", "function url_for($to)\n {\n $args = func_get_args();\n\n // find params\n $params = array();\n if (is_array(end($args))) {\n $params = array_pop($args);\n }\n\n // urlencode all but the first argument\n $args = array_map('urlencode', $args);\n $args[0] = $to;\n\n return PluginEngine::getURL($this->dispatcher->plugin, $params, join('/', $args));\n }", "public function user_upgrade_path( $user_id = 0 ) {\n\t\tif ( empty( $user_id ) ) {\n\t\t\t$user_id = get_current_user_id();\n\t\t}\n\t\t$path = array();\n\t\t$plan_id = 0;\n\t\t$status = rcp_get_status( $user_id );\n\n\t\tif ( ! rcp_is_expired( $user_id ) && in_array( $status, array( 'active', 'cancelled' ) ) ) {\n\t\t\t$plan_id = rcp_get_subscription_id( $user_id );\n\t\t}\n\n\t\tif ( $plan_id ) {\n\t\t\t$path = $this->upgrade_paths( $plan_id );\n\t\t} else {\n\t\t\t// User isn't currently enrolled.\n\t\t\t$path = array( 1, 2, 3, 4 );\n\t\t}\n\n\t\treturn $path;\n\t}", "public function getUserRoutePathLat()\n {\n return $this->userRoutePathLat;\n }", "function get_dashboard_url($user_id = 0, $path = '', $scheme = 'admin')\n {\n }", "public function toString() {\n return url::buildPath($this->toArray());\n }", "function buildPath($path, $options = array()) {\n return url($path, $options);\n }", "public function getUserLocation();", "public function getPath ($pathType, $from, $to)\n\t{\n\t\t/* needs prev. routes saving (by $from)*/\n\t\tif ($pathType === self::SHORT){\n\t\t\t$routes = $this->dijkstraEdges($from);\n\t\t}\n\t\telse if ($pathType === self::CHEAP){\n\t\t\t$routes = $this->dijkstraVertices($from);\n\t\t}\n\t\telse{\n\t\t\tthrow new Exception('No such path type: '.$pathType);\n\t\t}\n\n\t\t$path = array();\n\t\t$tmp = $routes[$to];\n\t\twhile($tmp !== null){\n\t\t\tarray_unshift($path, $tmp);\n\t\t\t$tmp = $routes[$tmp];\n\t\t}\n\t\tarray_shift($path);\n\n\t\treturn $path;\n\t}", "function get_route($my_location){\n $route_start = $my_location[0];\n $route_end = $my_location[1];\n\n $loc_api_key = AIzaSyBFuL6yafR8BuhdbzupDAcorVH4sAO2YpE;\n //$route_url = \"https://maps.googleapis.com/maps/api/directions/json?origin=\".$route_start.\"&destination=\".$route_end.\"&key=\".$loc_api_key.\"&alternatives=true\"; this is for detours\n $route_url = \"https://maps.googleapis.com/maps/api/directions/json?origin=\".$route_start.\"&destination=\".$route_end.\"&key=\".$loc_api_key;\n\n if (!function_exists('curl_init')){\n die('Can\\'t find cURL module'); \n }\n\n $chRD = curl_init(); //RD = Route Directions\n\n if (!$chRD){\n die('Couldn\\'t initialize a cURL module'); \n }\n\n curl_setopt($chRD, CURLOPT_URL, $route_url);\n curl_setopt($chRD, CURLOPT_RETURNTRANSFER, TRUE);\n \n $dataRD = curl_exec($chRD);\n curl_close($chRD);\n\n $routes = json_decode($dataRD);\n\n return $routes;\n}", "public function getUserPath($user_id, $type = 'curl') {\n\t\t$user_name = Yii::app()->db->createCommand()\n\t\t\t->select('username')\n\t\t\t->from('user')\n\t\t\t->where(':id = id', array(':id' => $user_id))\n\t\t\t->queryColumn();\n\t\t\n\t\t$type = ($type == 'curl') ? 'curl' : 'ftp';\n\t\t\n\t\treturn Yii::getPathOfAlias('application.' . $type . '_downloads') . DIRECTORY_SEPARATOR . $user_name[0];\n\t}", "public function path(): string\n {\n return str_replace('?', '', \"/{$this->route->uri()}\");\n }", "public function generate_url()\n {\n }", "public function getRelativePath($from, $to)\n {\n $from = $this->getPathParts($from);\n $to = $this->getPathParts($to);\n\n $relPath = $to;\n foreach ($from as $depth => $dir) {\n if ($dir === $to[$depth]) {\n array_shift($relPath);\n } else {\n $remaining = count($from) - $depth;\n if ($remaining > 1) {\n $padLength = (count($relPath) + $remaining - 1) * -1;\n $relPath = array_pad($relPath, $padLength, '..');\n break;\n } else {\n $relPath[0] = './' . $relPath[0];\n }\n }\n }\n return implode('/', $relPath);\n }", "public function path(): RoutePathInterface;", "function urlTo($path, $echo = false, $locale = '') {\n\t\t\tglobal $site;\n\t\t\tif ( empty($locale) ) {\n\t\t\t\t$locale = $this->getLocale();\n\t\t\t}\n\t\t\t$ret = $site->baseUrl( sprintf('/%s%s', $locale, $path) );\n\t\t\tif ($echo) {\n\t\t\t\techo $ret;\n\t\t\t}\n\t\t\treturn $ret;\n\t\t}", "private function getRelativePath($from, $to)\n {\n $from = is_dir($from) ? rtrim($from, '\\/') . '/' : $from;\n $to = is_dir($to) ? rtrim($to, '\\/') . '/' : $to;\n $from = str_replace('\\\\', '/', $from);\n $to = str_replace('\\\\', '/', $to);\n\n $from = explode('/', $from);\n $to = explode('/', $to);\n $relPath = $to;\n\n foreach ($from as $depth => $dir)\n {\n // find first non-matching dir\n if ($dir === $to[$depth])\n {\n // ignore this directory\n array_shift($relPath);\n }\n else\n {\n // get number of remaining dirs to $from\n $remaining = count($from) - $depth;\n if ($remaining > 1)\n {\n // add traversals up to first matching dir\n $padLength = (count($relPath) + $remaining - 1) * -1;\n $relPath = array_pad($relPath, $padLength, '..');\n break;\n }\n else\n {\n $relPath[0] = './' . $relPath[0];\n }\n }\n }\n return implode('/', $relPath);\n }", "public function getPath(string ...$arguments) : string\n {\n if ($arguments) {\n return $this->router->fillPlaceholders($this->path, ...$arguments);\n }\n return $this->path;\n }", "public function get_directions();", "function url($location) {\n\techo getAbsolutePath() . $location;\n}", "function getRelativePath($from, $to)\r\n\t{\r\n\t\t// some compatibility fixes for Windows paths\r\n\t\t$from = is_dir($from) ? rtrim($from, '\\/') . '/' : $from;\r\n\t\t$to = is_dir($to) ? rtrim($to, '\\/') . '/' : $to;\r\n\t\t$from = str_replace('\\\\', '/', $from);\r\n\t\t$to = str_replace('\\\\', '/', $to);\r\n\r\n\t\t$from = explode('/', $from);\r\n\t\t$to = explode('/', $to);\r\n\t\t$relPath = $to;\r\n\r\n\t\tforeach($from as $depth => $dir) {\r\n\t\t\t// find first non-matching dir\r\n\t\t\tif($dir === $to[$depth]) {\r\n\t\t\t\t// ignore this directory\r\n\t\t\t\tarray_shift($relPath);\r\n\t\t\t} else {\r\n\t\t\t\t// get number of remaining dirs to $from\r\n\t\t\t\t$remaining = count($from) - $depth;\r\n\t\t\t\tif($remaining > 1) {\r\n\t\t\t\t\t// add traversals up to first matching dir\r\n\t\t\t\t\t$padLength = (count($relPath) + $remaining - 1) * -1;\r\n\t\t\t\t\t$relPath = array_pad($relPath, $padLength, '..');\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$relPath[0] = './' . $relPath[0];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn implode('/', $relPath);\r\n\t}", "public static function generateRelativePath($path = __DIR__, $from = 'modules')\n {\n $path = realpath($path);\n $parts = explode(DIRECTORY_SEPARATOR, $path);\n foreach ($parts as $part) {\n if ($part === $from) {\n return $path;\n }\n $path = mb_substr($path, mb_strlen($part . DIRECTORY_SEPARATOR));\n }\n\n return $path;\n }", "public static function generateURL()\n {\n return $_SERVER['REQUEST_SCHEME'].'://'.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];\n }", "public function user_calibration_url($userid);", "private static function get_relative_path($from, $to)\n {\n // some compatibility fixes for Windows paths\n $from = is_dir($from) ? rtrim($from, '\\/') . '/' : $from;\n $to = is_dir($to) ? rtrim($to, '\\/') . '/' : $to;\n $from = str_replace('\\\\', '/', $from);\n $to = str_replace('\\\\', '/', $to);\n\n $from = explode('/', $from);\n $to = explode('/', $to);\n $rel_path = $to;\n\n foreach ($from as $depth => $dir) {\n // find first non-matching dir\n if ($dir === $to[$depth]) {\n // ignore this directory\n array_shift($rel_path);\n } else {\n // get number of remaining dirs to $from\n $remaining = count($from) - $depth;\n if ($remaining > 1) {\n // add traversals up to first matching dir\n $pad_length = (count($rel_path) + $remaining - 1) * -1;\n $rel_path = array_pad($rel_path, $pad_length, '..');\n break;\n } else {\n $rel_path[0] = './' . $rel_path[0];\n }\n }\n }\n return implode('/', $rel_path);\n }", "protected function getPathSite() {}", "protected function getPathSite() {}", "public function url_for($to)\n {\n $args = func_get_args();\n\n # find params\n $params = array();\n if (is_array(end($args))) {\n $params = array_pop($args);\n }\n\n # urlencode all but the first argument\n $args = array_map('urlencode', $args);\n $args[0] = $to;\n\n return PluginEngine::getURL($this->dispatcher->plugin, $params, join('/', $args));\n }", "protected function getRedirectionUrl(UserInterface $user): string\n {\n return $this->router->generate('fos_oauth_server_profile_show');\n }", "public static function get_rel_dir($from_dir, $to_dir) {\n $from_dir_parts = explode('/', str_replace( '\\\\', '/', $from_dir ));\n $to_dir_parts = explode('/', str_replace( '\\\\', '/', $to_dir ));\n $i = 0;\n while (($i < count($from_dir_parts)) && ($i < count($to_dir_parts)) && ($from_dir_parts[$i] == $to_dir_parts[$i])) {\n $i++;\n }\n $rel = \"\";\n for ($j = $i; $j < count($from_dir_parts); $j++) {\n $rel .= \"../\";\n } \n\n for ($j = $i; $j < count($to_dir_parts); $j++) {\n $rel .= $to_dir_parts[$j];\n if ($j < count($to_dir_parts)-1) {\n $rel .= '/';\n }\n }\n return $rel;\n }", "private function _makepath() {\n $params = func_get_args();\n $path = '';\n\n foreach ($params as $value) {\n $path .= $value;\n\n if (!empty($value)) $path .= PS;\n }\n\n return $path;\n }", "public function getPathTranslated() {\n\t\t\n\t}", "public function getRelativePath($from, $to)\n {\n $from = explode('/', $from);\n $to = explode('/', $to);\n $relPath = $to;\n\n foreach ($from as $depth => $dir) {\n // find first non-matching dir\n if ($dir === $to[$depth]) {\n // ignore this directory\n array_shift($relPath);\n } else {\n // get number of remaining dirs to $from\n $remaining = count($from) - $depth;\n if ($remaining > 1) {\n // add traversals up to first matching dir\n $padLength = (count($relPath) + $remaining - 1) * -1;\n $relPath = array_pad($relPath, $padLength, '..');\n break;\n } else {\n $relPath[0] = './' . $relPath[0];\n }\n }\n }\n return implode('/', $relPath);\n }", "public function redirectPath()\n {\n $redirect = app('user.logic')->getUserInfo('admin') ? $this->redirectTo : $this->redirectToHome;\n return $redirect;\n }", "function timetracking_uri(timetracking $timetracking){\n return array(\n 'path' => 'timetracking/' . $timetracking->timetracking_id,\n );\n}", "public static function buildPath()\n {\n $path = [];\n\n foreach( func_get_args() as $item )\n {\n if( !empty( $item ) )\n {\n $path[] = trim( $item, \"/ \" );\n }\n }\n return \"/\".implode( \"/\", $path );\n }", "public function createPathInfoUrl($route, $params, $ampersand='&') {\n\t\t$url = parent::createUrl($route, $params, $ampersand);\n\t\t\n\t\t//strip base url\n\t\t$baseUrl = $this->baseUrl;\n\t\tif ( $baseUrl && !$this->hasHostInfo($url) && strpos($url, $baseUrl)===0 ) {\n\t\t\t$url = substr($url, strlen($baseUrl));\n\t\t}\n\t\treturn $url;\n\t}", "public function getPath() {\n if (empty($this->uriParts['path'])) {\n return '';\n }\n return implode('/', array_map(\"rawurlencode\", explode('/', $this->uriParts['path'])));\n }", "protected abstract function getPath();", "public static function getPath()\n {\n }", "function getDepartamentalRoute($originCity, $destinyCity)\n {\n }", "public function getPath();", "public function getPath();", "public function getPath();", "public function getPath();", "public function getPath();", "public function getPath();", "public function getPath();", "public function getPath();", "public function getPath();", "public function getPath();", "public function getPath();", "public function getPath();", "public function getPath();", "public function getPath();", "function getPath($route_name, $params = [])\n{\n switch ($route_name) {\n case 'main':\n $location = '/accounts/main.php';\n break;\n\n case 'login':\n $location = '/accounts/login.php';\n break;\n case 'registration':\n $location = '/registration.php';\n break;\n \n default:\n $location = null;\n break;\n }\n\n return $location;\n}", "public function path($append = '') {\n // Default path to user's profile\n $path = route('show', $this->username);\n // If an append argument is received, return the path with the append added, otherwise, return the default path.\n return $append ? \"{$path}/${append}\" : $path;\n }", "abstract protected function getPath();", "public function getProfileURL($userID, $relative = false){\n $sth = $this->dbh->prepare(\"SELECT `lobby_username` FROM `users` WHERE `id` = ?\");\n $sth->execute(array($userID));\n\n $lobbyUsername = $sth->fetchColumn();\n\n if(!empty($lobbyUsername))\n return $relative ? \"/u/$lobbyUsername\" : $this->u(\"/u/$lobbyUsername\");\n else\n return $relative ? \"/u/$userID\" : $this->u(\"/u/$userID\");\n }", "public function path() {}", "public function path() {}", "function getPath() {\n $ruta = realpath(dirname(__FILE__));\n if ( strtoupper(substr(PHP_OS, 0, 3)) === 'WIN' )\n $separator = '\\\\';\n else\n $separator = '/';\n $aRuta = explode($separator,$ruta);\n $ruta = '';\n foreach($aRuta as $index => $value)\n if ( $index < count($aRuta) - 1 ) $ruta .= $value.$separator;\n return $ruta;\n}", "function buildPath() {\n\t$args = func_get_args();\n\t$path = '';\n\tforeach ($args as $arg) {\n\t\tif (strlen($path)) {\n\t\t\t$path .= \"/$arg\";\n\t\t} else {\n\t\t\t$path = $arg;\n\t\t}\n\t}\n\n\t/* DO NOT USE realpath() -- it hoses everything! */\n\t$path = str_replace('//', '/', $path);\n\t\n\t/* 'escape' the squirrely-ness of Bb's pseudo-windows paths-in-filenames */\n\t$path = preg_replace(\"|(^\\\\\\\\]\\\\\\\\)([^\\\\\\\\])|\", '\\\\1\\\\\\2', $path);\n\t\n\treturn $path;\n}", "public static function formUrlPath(array $variables) : string {\n\n\t\tif (self::_hasAdapter(get_class(), __FUNCTION__))\n\t\t\treturn self::_callAdapter(get_class(), __FUNCTION__, $variables);\n\n\t\t$variables = self::_applyFilter(get_class(), __FUNCTION__, $variables, array('event' => 'args'));\n\n\t\t$appendix = '';\n\n\t\t$first = 1;\n\t\tforeach ($variables as $key => $value) {\n\t\t\tif ($first === 1) {\n\t\t\t\t$appendix .= urlencode($value);\n\t\t\t} else {\n\t\t\t\t$appendix .= '/' . urlencode($value);\n\t\t\t}\n\t\t\t$first = 0;\n\t\t}//end foreach\n\n\t\tself::_notify(get_class() . '::' . __FUNCTION__, $appendix, $variables);\n\t\t$appendix = self::_applyFilter(get_class(), __FUNCTION__, $appendix, array('event' => 'return'));\n\n\t\treturn $appendix;\n\n\t}", "private function generateUrl() : string\n {\n return $this->apiUrl.$this->ownerRepo.$this->branchPath.$this->branch;\n }", "function convert_url_to_path($url)\n{\n require_code('urls2');\n return _convert_url_to_path($url);\n}", "protected function getRedirectionUrl(UserInterface $user)\n {\n return $this->container->get('router')->generate('fos_user_profile_show');\n }" ]
[ "0.7770814", "0.7583894", "0.74374145", "0.74259233", "0.6624678", "0.6588264", "0.65198416", "0.64954454", "0.6440162", "0.59836113", "0.59371746", "0.5868871", "0.5832908", "0.5772907", "0.5767991", "0.57045245", "0.57042265", "0.5669415", "0.5646346", "0.56393105", "0.55802035", "0.5555355", "0.5486266", "0.5475652", "0.5460529", "0.5409148", "0.5396422", "0.53803366", "0.5354752", "0.5351215", "0.53386134", "0.53239864", "0.5322426", "0.53194165", "0.53183746", "0.5309868", "0.5306742", "0.53007495", "0.52831286", "0.5266148", "0.5249537", "0.5246891", "0.5231877", "0.522377", "0.52019155", "0.51979166", "0.5193368", "0.5191953", "0.5189609", "0.5177175", "0.51716727", "0.51609725", "0.5152105", "0.5150805", "0.5150574", "0.5146182", "0.51461136", "0.5142689", "0.51259714", "0.51259714", "0.5117728", "0.5097945", "0.50934434", "0.50717086", "0.5068214", "0.5059312", "0.5056504", "0.5050365", "0.50489324", "0.50228477", "0.5022262", "0.5018864", "0.5018707", "0.501391", "0.501385", "0.501385", "0.501385", "0.501385", "0.501385", "0.501385", "0.501385", "0.501385", "0.501385", "0.501385", "0.501385", "0.501385", "0.501385", "0.501385", "0.5003461", "0.4999991", "0.49944532", "0.49927554", "0.4980044", "0.49796483", "0.49794054", "0.49753296", "0.49706638", "0.49663326", "0.49650604", "0.49618486" ]
0.81974965
0
API Function to generate a url path for use by other modules/themes. Example Usage: $uids = "1,2,3,4"; where '1' is the uid of the starting point '4' is the uid of the end point and the numbers in between are the uids of the waypoints $path = getdirections_locations_user_via_path($uids); $url = l(t('Get directions'), $path);
function getdirections_locations_user_via_path($uids) { if (module_exists('location')) { return "getdirections/locations_user_via/$uids"; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getdirections_locations_user_path($fromuid, $touid) {\n if (module_exists('location') && is_numeric($fromuid) && is_numeric($touid)) {\n return \"getdirections/locations_user/$fromuid/$touid\";\n }\n}", "function getdirections_location_user_path($direction, $uid) {\n if (module_exists('location') && is_numeric($uid) && ($direction == 'to' || $direction == 'from')) {\n return \"getdirections/location_user/$direction/$uid\";\n }\n}", "function getdirections_location_u2n_path($fromuid, $tonid) {\n if (module_exists('location') && is_numeric($fromuid) && is_numeric($tonid)) {\n return \"getdirections/location_u2n/$fromuid/$tonid\";\n }\n}", "function getdirections_location_n2u_path($fromnid, $touid) {\n if (module_exists('location') && is_numeric($fromnid) && is_numeric($touid)) {\n return \"getdirections/location_u2n/$fromnid/$touid\";\n }\n}", "function getdirections_locations_via_path($nids) {\n if (module_exists('location')) {\n return \"getdirections/locations_via/$nids\";\n }\n}", "private function usersUrl($user_id = '') {\n\t\t$url = \"users\";\n\t\tif (!empty($user_id)) {\n\t\t\t$url .= '/';\n\t\t\tif (is_string($user_id) && $user_id !== 'current') {\n\t\t\t\t$url .= '=';\n\t\t\t\t$user_id = urlencode(urlencode($user_id));\n\t\t\t}\n\t\t\t$url .= $user_id;\n\t\t}\n\t\treturn $url;\n\t}", "public static function path(string ...$_ids): string\n {\n return \\implode(self::PATH_DELIMITER, $_ids);\n }", "function getdirections_locations_path($fromnid, $tonid) {\n if (module_exists('location') && is_numeric($fromnid) && is_numeric($tonid)) {\n return \"getdirections/locations/$fromnid/$tonid\";\n }\n}", "function getdirections_location_id_path($direction, $lid) {\n if (module_exists('location') && is_numeric($lid) && ($direction == 'to' || $direction == 'from')) {\n return \"getdirections/location_id/$direction/$lid\";\n }\n}", "function getdirections_location_latlon_path($direction, $latlon, $locs='') {\n if (($direction == 'to' || $direction == 'from') && preg_match(\"/[0-9.\\-],[0-9.\\-]/\", $latlon)) {\n $out = \"getdirections/latlon/$direction/$latlon\";\n if ($locs) {\n $out .= \"/$locs\";\n }\n return $out;\n }\n}", "public static function personal_folder_path($user_id) {\n\n\n $user = Backend_User::find($user_id);\n\n $slash = Config::get('portal.back_slash');\n\n\n if($user) {\n\n $route = '';\n\n if ($user->user_type == 0 || $user->user_type == 1) {\n\n //get first and last name \n $details = Backend_User_Details::where('user_id','=',$user->id)->get(array('first_name','last_name'));\n\n\n\n $details = $details[0];\n\n //form route\n $route .= 'users'. $slash .$details->last_name.'-'.$details->first_name.'-'.$user->id;\n\n }//if user or admin \n else {\n\n //get client's details\n $client_details = Backend_Client::infos($user->id);\n\n $client_details = $client_details[0];\n\n\n if($client_details->client_type_id == 1 ) {\n\n $route .= 'clients'. $slash.'individual'.$slash.str_replace(' ', '-', $client_details->last_name).'-'.str_replace(' ', '-',$client_details->first_name).'-'.$user->id;\n \n }//if individual\n else{\n\n $folder = Backend_Client_Type::get_name_by_client_type_id($client_details->client_type_id);\n\n $route .= 'clients'. $slash.strtolower($folder). $slash .str_replace(' ', '-',$client_details->name).'-'.$user->id;\n\n }//if corporate\n\n\n }//if client\n\n return $route;\n\n }//if the user exsists\n\n return false;\n\n }", "function cot_pfs_relpath($userid)\n{\n\tglobal $cfg;\n\n\tif ($cfg['pfs']['pfsuserfolder'])\n\t{\n\t\treturn($userid.'/');\n\t}\n\telse\n\t{\n\t\treturn('');\n\t}\n}", "function user_connection_path ($userid, $to_user_id)\r\n{\r\n\tglobal $database;\r\n\tglobal $user;\r\n\tglobal $userconnection_distance;\r\n global $userconnection_previous;\r\n\tglobal $userconnection_setting;\r\n\t$userconnection_output = array();\r\n\t\r\n\t // CACHING\r\n $cache_object = SECache::getInstance('serial');\r\n if (is_object($cache_object) ) {\r\n\t $userconnection_combind_path_contacts_array = $cache_object->get('userconnection_combind_path_contacts_array_cache');\r\n }\r\n\tif (!is_array($userconnection_combind_path_contacts_array)) {\r\n\t\t// longest is the steps ... By changint it you can change steps level \r\n\t\t$longest = $userconnection_setting['level'];\r\n\t\t// IF $longest IS LESS THEN 4 THEN FOR FINDING OUT CONTACTS DEGREE WE ASSIGN '4' TO $longest BECAUSE WE WANT TO SHOW THREE DEGREE CONTACTS \r\n\t\tif ($longest<4) {\r\n\t\t\t$longest = 4;\r\n\t\t}\r\n\t\t// Initialize the distance to all the user entities with the maximum value of distance.\r\n \t// Initialize the previous connecting user entity for every user entity as -1. This means a no known path.\r\n\t\t$id =\t $user->user_info['user_id'];\r\n\t\t$result = $database->database_query (\"SELECT su.user_id FROM se_users su INNER JOIN se_usersettings sus ON sus.usersetting_user_id = su.user_id WHERE (su.user_verified='1' AND su.user_enabled='1' AND su.user_search='1' AND sus.usersetting_userconnection = '0') OR su.user_id = '$id'\");\r\n\t\twhile ($row = $database->database_fetch_assoc($result)) {\r\n\t\t\t\r\n\t\t\t$userconnection_entity = $row['user_id'];\r\n\t\t\t$userconnection_entities_array[] = $userconnection_entity;\r\n \t $userconnection_distance[$userconnection_entity] = $longest;\r\n \t $userconnection_previous[$userconnection_entity] = -1;\r\n\t\t}\r\n \t// The connection distance from the userid to itself is 0\r\n \t$userconnection_distance[$userid] = 0;\r\n \t// $userconnection_temp1_array keeps track of the entities we still need to work on \r\n \t$userconnection_temp1_array = $userconnection_entities_array;\r\n \t\r\n \twhile (count ($userconnection_temp1_array) > 0) { // more elements in $userconnection_temp1_array\r\n \t $userconnection_userentity_id = find_minimum ($userconnection_temp1_array);\r\n \t\tif ($userconnection_userentity_id == $to_user_id) {\r\n \t\t\t$userconnection_previous_array = $userconnection_previous;\r\n \t // Can stop computing the distance if we have reached the to_user_id\r\n \t }\r\n\t\t\t\r\n \t$userconnection_temp2_array = array_search ($userconnection_userentity_id, $userconnection_temp1_array);\r\n \t$userconnection_temp1_array[$userconnection_temp2_array] = false;\r\n \t$userconnection_temp1_array = array_filter ($userconnection_temp1_array); // filters away the false elements\r\n \t// Find all friends linked to $userconnection_temp2_array\r\n \t$invitees = $database->database_query(\"SELECT friend_user_id1 FROM se_friends WHERE friend_user_id2='$userconnection_userentity_id' AND friend_status = '1'\");\r\n \twhile ($row = $database->database_fetch_assoc($invitees)) {\r\n \t\t$link_id = $row['friend_user_id1'];\r\n\t\t\t\tuserconnection_calculate_distance ($userconnection_userentity_id, $link_id);\r\n \t}\r\n \t$inviters = $database->database_query(\"SELECT friend_user_id2 FROM se_friends WHERE friend_user_id1='$userconnection_userentity_id' AND friend_status = '1'\");\r\n \twhile ($row = $database->database_fetch_assoc($inviters)) {\r\n \t\r\n \t\t$link_id = $row['friend_user_id2'];\r\n\t\t\t\tuserconnection_calculate_distance ($userconnection_userentity_id, $link_id);\r\n \t}\r\n \t}\r\n\t\t// The path is found in the $userconnection_previous values from $fromid to $to_user_id\r\n \t$userconnection_temp = 0;\r\n \t// If user visiting his/her profile then $to_user_id is 0 so for terminating this we assign -1 to $to_user_id\r\n \tif (empty($to_user_id)) {\r\n \t\t$to_user_id = -1;\r\n \t}\r\n \t$userconnection_currententity = $to_user_id;\r\n\t\t\r\n \twhile ($userconnection_currententity != $userid && $userconnection_currententity != -1) {\r\n \t$userconnection_links_array[$userconnection_temp++] = $userconnection_currententity;\r\n \t$userconnection_currententity = $userconnection_previous_array[$userconnection_currententity];\r\n \t}\r\n \r\n \tif ($userconnection_currententity != $userid) { \r\n \t\t $empty =array();\r\n \t\t // HERE WE ARE ASSIGING TWO ARRAY ($empty ,$userconnection_distance) TO A NEW ARRAY \r\n \t\t$userconnection_combind_path_contacts_array = array($empty, $userconnection_distance);\r\n \t\treturn $userconnection_combind_path_contacts_array;\r\n \t} \r\n \telse {\r\n \t// Display the connection paths in the reverse order\r\n \t$userconnection_preventity = $userid;\r\n \t$userconnection_output[] = $user->user_info['user_id'];\r\n\t\t\t// Entering the values in ouput array\r\n \tfor ($i = $userconnection_temp - 1; $i >= 0; $i--) {\r\n \t $userconnection_temp1 = $userconnection_links_array[$i];\r\n \t $userconnection_output[] = $userconnection_temp1;\r\n \t $userconnection_preventity = $userconnection_temp1;\r\n \t} \r\n \t}\r\n\t\t// HERE WE ARE COMPARING No. OF ELEMENT IN $USERCONNECTION_OUTPUT AND LEVEL BECAUSE WE ASSINGED $larget TO 4 IN CASE OF LEVEL LESS THEN 4 SO IF ADMIN ASSIGN LEVEL LESS THEN 4 THEN IT WILL ALWAYS RETURN A PATH OF 4 LEVEL AND WE DON'T WANT THIS \r\n \tif (count($userconnection_output) > $userconnection_setting['level']){\r\n \t\t$empty\t= array();\r\n \t\t// HERE WE ARE ASSIGING TWO ARRAY ($empty ,$userconnection_distance) TO A NEW ARRAY \r\n \t\t$userconnection_combind_path_contacts_array = array($empty, $userconnection_distance);\r\n \t}\r\n \telse {\r\n \t// HERE WE ARE ASSIGING TWO ARRAY ($userconnection_output ,$userconnection_distance) TO A NEW ARRAY \t\r\n\t\t $userconnection_combind_path_contacts_array = array($userconnection_output, $userconnection_distance);\r\n \t}\r\n \t// CACHE\r\n if (is_object($cache_object)) {\r\n\t $cache_object->store($userconnection_output, 'userconnection_combind_path_contacts_array_cache');\r\n }\r\n\t}\r\n return $userconnection_combind_path_contacts_array;\r\n}", "public function user_upgrade_path( $user_id = 0 ) {\n\t\tif ( empty( $user_id ) ) {\n\t\t\t$user_id = get_current_user_id();\n\t\t}\n\t\t$path = array();\n\t\t$plan_id = 0;\n\t\t$status = rcp_get_status( $user_id );\n\n\t\tif ( ! rcp_is_expired( $user_id ) && in_array( $status, array( 'active', 'cancelled' ) ) ) {\n\t\t\t$plan_id = rcp_get_subscription_id( $user_id );\n\t\t}\n\n\t\tif ( $plan_id ) {\n\t\t\t$path = $this->upgrade_paths( $plan_id );\n\t\t} else {\n\t\t\t// User isn't currently enrolled.\n\t\t\t$path = array( 1, 2, 3, 4 );\n\t\t}\n\n\t\treturn $path;\n\t}", "public function addStudentsToPath($path_id, array $user_ids) {\n return $this->get('add_students_to_path', ['path_id' => $path_id, 'user_ids' => $user_ids]);\n }", "public function getAllRoutes($user_id,$phone){\n\t\t\n\t\t//$allIds=$user_id.\",\".$data2['ids'];\n\t\t\n\t$sql = \"(select e.user_id, e.event_id, e.event_name, e.event_type,u.user_name as leader_name,\n\t\t\t\t\t\te.description, e.create_type, e.latitude, e.longitude\n\t\t\t\t\t\tfrom `events` as e \n\t\t\t\t\t\tinner join event_friends as e_f on e_f.event_id=e.event_id \n\t\t\t\t\t\tleft JOIN leadlatlongs as lll on lll.event_id = e.event_id\n\t\t\t\t\t\tINNER JOIN users AS u ON u.user_id = e.user_id\n\t\t\t\t\t\twhere (e.user_id in($user_id) or e_f.friend_id=($user_id))\n\t\t\t\t\t\tand e_f.status !='reject' and e.create_type='routes' AND e.status = '1'\n\t\t\t\t\t\tgroup by e.event_id)\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\tunion\n\t\t\t\t\t\t\n\t\t\t\t\t\t(select e.user_id, e.event_id, e.event_name, e.event_type,u.user_name as leader_name,\n\t\t\t\t\t\te.description, e.create_type, e.latitude, e.longitude\n\t\t\t\t\t\tfrom `events` as e\n\t\t\t\t\t\tleft JOIN leadlatlongs as lll on lll.event_id = e.event_id\n\t\t\t\t\t\tINNER JOIN users AS u ON u.user_id = e.user_id\n\t\t\t\t\t\twhere e.event_type='public' and e.create_type='routes' AND e.status = '1'\n\t\t\t\t\t\tgroup by e.event_id)\n\t\t\t\t\t\torder by event_id desc\"; \n\t/*\t$sql=\"SELECT e.event_id,e.user_id,ef.friend_id,ef.user_id,ef.status,e.event_type from events as e,event_friends as ef \nwhere ((e.event_id=ef.event_id and ef.friend_id=$user_id and ef.status!='reject' and e.event_type='private') or (e.event_type='public' or e.user_id in ($user_id)) ) \nand e.create_type='routes' group by e.event_id\";*/\n\t\t\n\t/*\t$sql = \"select e.user_id,\n\t\t\t\te.event_id,\n\t\t\t\te.event_name,\n\t\t\t\te.event_type,\n\t\t\t\te.description,\n\t\t\t\te.create_type,\n\t\t\t\te.latitude,\n\t\t\t\te.longitude,\n\t\t\t\te.leadLat,\n\t\t\t\te.leadLong\n\t\t\t\tfrom events as e left join event_friends as e_f on e_f.event_id=e.event_id \n\t\t\t\twhere (e.user_id in($allIds) or e_f.friend_id=$user_id \n\t\t\t\tand e.event_type='private') or e.event_type='public' \n\t\t\t\tand\te.create_type='routes' \n\t\t\t\tand (e_f.status !='reject') \n\t\t\t\tgroup by e.event_id \"; \n\t\t\n\t\t*/\n\t\t/* extra added line in the above query \n\t\t\n\t\tand e.event_type='private') or e.event_type='public' \n\t\t\n\t\t*/\n\t\t\n\t\t\n\t\t$query = $this->db->query($sql);\n\t\t$data = $query->result_array();\n\t\treturn $data;\n }", "public function user_calibration_url($userid);", "public function getPathsWithIds($path_ids) {\n return $this->get('get_paths_with_ids', ['path_ids' => $this->toArray($path_ids)]);\n }", "protected function buildPath($ref_ids)\n\t{\n\t\tinclude_once 'Services/Link/classes/class.ilLink.php';\n\n\t\tif (!count($ref_ids)) {\n\t\t\treturn false;\n\t\t}\n\n\t\t$result = array();\n\t\tforeach ($ref_ids as $ref_id) {\n\t\t\t$path = \"\";\n\t\t\t$path_full = self::dic()->tree()->getPathFull($ref_id);\n\t\t\tforeach ($path_full as $idx => $data) {\n\t\t\t\tif ($idx) {\n\t\t\t\t\t$path .= \" &raquo; \";\n\t\t\t\t}\n\t\t\t\tif ($ref_id != $data['ref_id']) {\n\t\t\t\t\t$path .= $data['title'];\n\t\t\t\t} else {\n\t\t\t\t\t$path .= ('<a target=\"_top\" href=\"' . ilLink::_getLink($data['ref_id'], $data['type']) . '\">' . $data['title'] . '</a>');\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$result[] = $path;\n\t\t}\n\n\t\treturn $result;\n\t}", "public function getUserPath($user_id, $type = 'curl') {\n\t\t$user_name = Yii::app()->db->createCommand()\n\t\t\t->select('username')\n\t\t\t->from('user')\n\t\t\t->where(':id = id', array(':id' => $user_id))\n\t\t\t->queryColumn();\n\t\t\n\t\t$type = ($type == 'curl') ? 'curl' : 'ftp';\n\t\t\n\t\treturn Yii::getPathOfAlias('application.' . $type . '_downloads') . DIRECTORY_SEPARATOR . $user_name[0];\n\t}", "public static function urlRequest($vars = array())\n {\n $parts = array();\n\n // Authorisated followers\n $authorizedInUrl = array(\n 'option' => null,\n 'view' => null,\n 'layout' => null,\n 'format' => null,\n 'Itemid' => null,\n 'tmpl' => null,\n 'object' => null,\n 'lang' => null,\n 'field' => null,\n );\n\n $jinput = JFactory::getApplication()->input;\n\n $request = $jinput->getArray($authorizedInUrl);\n\n foreach ($request as $key => $value) {\n if ( ! empty($value)) {\n $parts[] = $key . '=' . $value;\n }\n }\n\n $cid = $jinput->get('cid', array(), 'ARRAY');\n if ( ! empty($cid)) {\n $cidVals = implode(\",\", $cid);\n if ($cidVals != '0') {\n $parts[] = 'cid[]=' . $cidVals;\n }\n }\n\n if (count($vars)) {\n foreach ($vars as $key => $value) {\n $parts[] = $key . '=' . $value;\n }\n }\n\n return JRoute::_(\"index.php?\" . implode(\"&\", $parts), false);\n }", "function get_route($my_location){\n $route_start = $my_location[0];\n $route_end = $my_location[1];\n\n $loc_api_key = AIzaSyBFuL6yafR8BuhdbzupDAcorVH4sAO2YpE;\n //$route_url = \"https://maps.googleapis.com/maps/api/directions/json?origin=\".$route_start.\"&destination=\".$route_end.\"&key=\".$loc_api_key.\"&alternatives=true\"; this is for detours\n $route_url = \"https://maps.googleapis.com/maps/api/directions/json?origin=\".$route_start.\"&destination=\".$route_end.\"&key=\".$loc_api_key;\n\n if (!function_exists('curl_init')){\n die('Can\\'t find cURL module'); \n }\n\n $chRD = curl_init(); //RD = Route Directions\n\n if (!$chRD){\n die('Couldn\\'t initialize a cURL module'); \n }\n\n curl_setopt($chRD, CURLOPT_URL, $route_url);\n curl_setopt($chRD, CURLOPT_RETURNTRANSFER, TRUE);\n \n $dataRD = curl_exec($chRD);\n curl_close($chRD);\n\n $routes = json_decode($dataRD);\n\n return $routes;\n}", "function wechat_url(WechatUser $wechatUser, $path, $path_params=array()){\n $path_params = array('token'=>$wechatUser->token, 'path'=>query_url($path, $path_params));\n return query_url('wechat/redirect', $path_params);\n}", "public function getDireccionCierreOTP($ids_in) {\r\n $tabla = '';\r\n $dir = '';\r\n $columWhere = 'id_ot_padre';\r\n $detCierreOtp = $this->Dao_cierre_ots_model->getDetailsCierreOTP($ids_in);\r\n\r\n if (isset($detCierreOtp->servicio)) {\r\n $dirService = $this->Dao_cierre_ots_model->getDirServiceByOtp($detCierreOtp->k_id_ot_padre, $detCierreOtp->servicio);\r\n $dir = $dirService->dir;\r\n }\r\n\r\n return $dir;\r\n }", "function get_directions( $location ) {\n\treturn directions_base_url . urlencode( str_replace( \"\\n\", ', ', $location->address ) ) // change newlines into comma+space so google maps can process it properly\n\t . '/@' . $location->latitude . ',' . $location->longitude . ',17z/';\n\t// https://www.google.com/maps/dir//6850+Lake+Nona+Blvd,+Orlando,+FL+32827/@28.3676791,-81.2850738,17z/\n}", "public function getUserRoutePathId()\n {\n return $this->userRoutePathId;\n }", "public function generateUrl($path, $user)\n {\n $this->em = $this->container->get('doctrine.orm.entity_manager');\n $this->router= $this->container->get('router');\n\n if (null === $user->getConfirmationToken()) {\n /** @var $tokenGenerator \\FOS\\UserBundle\\Util\\TokenGeneratorInterface */\n $tokenGenerator = $this->container->get('fos_user.util.token_generator');\n $token = $tokenGenerator->generateToken();\n $user->setConfirmationToken($token);\n\n $this->em->persist($user);\n $this->em->flush();\n }\n else{\n $token = $user->getConfirmationToken();\n }\n\n $domain = $this->container->getParameter('sopinet_autologin.domain');\n\n $url = $domain . $this->router->generate('auto_login', array('path' => $path, 'token' => $token));\n\n return $url;\n }", "public static function url(string $id, array $args = [], int $type = self::ABSOLUTE_PATH): string\n {\n if ($type === self::RELATIVE_PATH) {\n Log::debug('Requested relative path which is not an absolute path... just saying...');\n }\n return self::$router->generate($id, $args, $type);\n }", "public function getUserFollowers($userId);", "public function loadVotePath($categoryId, $startUserId=null)\n\t{\n\t\t$path = array();\n\t\t$voterId = $startUserId !== null ? $startUserId : Yii::app()->user->id;\n\t\t$run = true;\n\t\t$voters = array(Yii::app()->user->id); // cycle prevention in software (prevents hangups if the DB contains cycles)\n\n\t\t// add ourselves to vote path\n\t\t$vote = Vote::model()->with('candidate')->find('voter_id=:voter_id AND category_id=:category_id', array(':voter_id' => $voterId, ':category_id' => $categoryId));\n\t\t$myself = new VotePath;\n\t\t$myself->candidate_id = $voterId;\n\t\t$myself->reason = ($vote !== null) ? $vote->reason : '';\n\t\t$myself->realname = Yii::app()->user->realname;\n\t\t$myself->slogan = User::model()->findByPk($voterId)->slogan;\n\t\t$path[] = $myself;\n\n\t\twhile($run)\n\t\t{\n\t\t\t// we could use a prepared statement here to improve performance\n\t\t\t$vote = Vote::model()->with('candidate')->find('voter_id=:voter_id AND category_id=:category_id', array(':voter_id' => $voterId, ':category_id' => $categoryId));\n\t\t\tif($vote !== null && $voterId != $vote->candidate_id && $vote->candidate_id !== null && !in_array($vote->candidate_id, $voters))\n\t\t\t{\n\t\t\t\t$voterId = $vote->candidate_id;\n\t\t\t\t$entry = new VotePath;\n\t\t\t\t$entry->candidate_id = $vote->candidate_id;\n\t\t\t\t$otherVote = $vote->candidate->loadVoteByCategoryId($categoryId);\n\t\t\t\t$entry->reason = ($otherVote !== null) ? $otherVote->reason : '';\n\t\t\t\t$entry->realname = $vote->candidate->realname;\n\t\t\t\t$entry->slogan = $vote->candidate->slogan;\n\t\t\t\t$path[] = $entry;\n\t\t\t\t$voters[] = $voterId;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$run = false;\n\t\t\t}\n\t\t}\n\n\t\treturn $path;\n\t}", "public static function formUrlPath(array $variables) : string {\n\n\t\tif (self::_hasAdapter(get_class(), __FUNCTION__))\n\t\t\treturn self::_callAdapter(get_class(), __FUNCTION__, $variables);\n\n\t\t$variables = self::_applyFilter(get_class(), __FUNCTION__, $variables, array('event' => 'args'));\n\n\t\t$appendix = '';\n\n\t\t$first = 1;\n\t\tforeach ($variables as $key => $value) {\n\t\t\tif ($first === 1) {\n\t\t\t\t$appendix .= urlencode($value);\n\t\t\t} else {\n\t\t\t\t$appendix .= '/' . urlencode($value);\n\t\t\t}\n\t\t\t$first = 0;\n\t\t}//end foreach\n\n\t\tself::_notify(get_class() . '::' . __FUNCTION__, $appendix, $variables);\n\t\t$appendix = self::_applyFilter(get_class(), __FUNCTION__, $appendix, array('event' => 'return'));\n\n\t\treturn $appendix;\n\n\t}", "function hook_uuid_menu_uri_to_path(&$path, $uri) {\n\n}", "public function getProfileURL($userID, $relative = false){\n $sth = $this->dbh->prepare(\"SELECT `lobby_username` FROM `users` WHERE `id` = ?\");\n $sth->execute(array($userID));\n\n $lobbyUsername = $sth->fetchColumn();\n\n if(!empty($lobbyUsername))\n return $relative ? \"/u/$lobbyUsername\" : $this->u(\"/u/$lobbyUsername\");\n else\n return $relative ? \"/u/$userID\" : $this->u(\"/u/$userID\");\n }", "public static function getPath($id);", "public function link($uid)\r\n {\r\n global $_SMALLURL;\r\n $username = $this->core($uid)->get(\"username\");\r\n return \"//{$_SMALLURL['domain']}/user/{$username}\";\r\n }", "function getDestinationsByUser($userID) {\n\t$db = connectDB();\n $sql = <<<SQL\n \tSELECT DISTINCT destination\n\t\tFROM bills WHERE userID = ?\nSQL;\n\n\n\n\t$stmt = $db->prepare($sql);\n\t$stmt->bind_param(\"s\", $userID);\n\t$stmt->execute();\n\n\t$res = $stmt->get_result()->fetch_all(MYSQLI_ASSOC);\n\n\t$stmt->close();\n\t$db->close();\n\treturn $res;\n}", "public function getPath($id);", "public function getUserFollowing($userId);", "function cot_pfs_path($userid)\n{\n\tglobal $cfg;\n\n\tif ($cfg['pfs']['pfsuserfolder'])\n\t{\n\t\treturn($cfg['pfs_dir'].'/'.$userid.'/');\n\t}\n\telse\n\t{\n\t\treturn($cfg['pfs_dir'].'/');\n\t}\n}", "public static function getLocationUid($id= ''){\n if($id){\n $array =array('userid' => $id);\n $value=DB::table('locations')->where($array)->orderBy('id', 'asc')->get();\n }\n return $value;\n }", "public function generateUrls()\n {\n $url_array[self::FORWARD_KEY] = $this->getForwardRoom();\n $url_array[self::LEFT_KEY] = $this->getLeftRoom();\n $url_array[self::RIGHT_KEY] = $this->getRightRoom();\n $url_array[self::BACK_KEY] = $this->getBackRoom();\n $url_array[self::CURRENT_KEY] = $this->getCurrentRoom();\n\n return $url_array;\n }", "function get_dashboard_url($user_id = 0, $path = '', $scheme = 'admin')\n {\n }", "function GetDirectionURL($type,$origin,$destination){\r\n $url = null;\r\n\r\n if($type == 'findway'){\r\n $url = 'https://www.google.com/maps/dir/?api=1&origin='.trim($origin).'&destination='.trim($destination).'&travelmode=driving';\r\n }else if($type == 'where') {\r\n\r\n $url = 'https://www.google.com/maps/search/?api=1&query=' . $destination;\r\n }\r\n return $url;\r\n}", "function getStreamUrls($ids)\n\t{\n\t\tif(!isset($ids) || $ids == \"\"){ exit(\"Error: missing objec ID\"); }\n\t\tif(!is_array($ids))\n\t\t{\n\t\t\t$ids = explode(\",\",$ids);\n\t\t}\n\t\t\n\t\t$post = array('Operation'=>'getStreamUrls');\n\t\tfor($i=1; $i<=count($ids); $i++)\n\t\t{\n\t\t\t$post['trackIdList.member.'.$i] = $ids[$i-1];\n\t\t}\n\t\t\n\t\treturn $this->request($this->cirrus,$post);\n\t\t\t\n\t}", "public function get_directions();", "private function renderMapRoutePathsJsonFeaturesMarker( $pathUid )\n {\n // Return array\n $marker = array();\n\n // variables\n static $arrResult = array();\n static $rowsRelation = null;\n static $tableCat = null;\n static $tableMarker = null;\n static $tablePath = null;\n $catTitle = null;\n $catUid = null;\n $markerUid = null;\n $arrCat = null;\n $arrMarker = null;\n $confMapRouteFields = $this->confMap[ 'configuration.' ][ 'route.' ][ 'tables.' ];\n $tablePathTitle = $confMapRouteFields[ 'path.' ][ 'title' ];\n $tableMarkerTitle = $confMapRouteFields[ 'marker.' ][ 'title' ];\n // variables\n // Get the labels of the tables path and marker\n list( $tablePath ) = explode( '.', $tablePathTitle );\n list( $tableMarker ) = explode( '.', $tableMarkerTitle );\n // Get the labels of the tables path and marker\n // Get relations path -> marker -> marker_cat\n if ( empty( $arrResult ) )\n {\n $arrResult = $this->renderMapRoutePathMarkerCatRelations();\n $rowsRelation = $arrResult[ 'rowsRelation' ];\n $tableCat = $arrResult[ 'tableCat' ];\n $tableMarker = $arrResult[ 'tableMarker' ];\n $tablePath = $arrResult[ 'tablePath' ];\n }\n //$this->pObj->dev_var_dump( $pathUid, $rowsRelation, $tablePath, $tableMarker, $tableCat );\n // Get relations path -> marker -> marker_cat\n // Get the array with categories and marker\n $arrResult = $this->renderMapRouteArrCatAndMarker( $pathUid );\n $arrCat = $arrResult[ 'cat' ];\n // #i0009, 130610, dwildt, 1+\n $arrPathCat = $arrResult[ 'pathCat' ];\n $arrMarker = $arrResult[ 'marker' ];\n//$this->pObj->dev_var_dump( $arrResult );\n unset( $arrResult );\n //$this->pObj->dev_var_dump( $arrCat, $arrMarker );\n // Get the array with categories and marker\n // LOOP relations of current path\n foreach ( $rowsRelation[ $pathUid ] as $markerUid => $catUids )\n {\n // LOOP categories\n foreach ( $catUids as $catUid )\n {\n $catTitle = $arrCat[ $catUid ] . '_' . $markerUid;\n $marker[] = $catTitle;\n }\n // LOOP categories\n }\n // LOOP relations of current path\n // LOOP path marker\n // #i0009, 130610, dwildt, 5+\n foreach ( $arrPathCat as $pathCatUid => $pathCatTitleTable )\n {\n $catTitle = $pathCatTitleTable . '_' . $pathCatUid;\n $marker[] = $catTitle;\n }\n // LOOP path marker\n//$this->pObj->dev_var_dump( $marker );\n return $marker;\n }", "public function removeStudentsFromPath($path_id, array $user_ids) {\n return $this->get('remove_students_from_path', ['path_id' => $path_id, 'user_ids' => $user_ids]);\n }", "function map_directions_link($location,$latitude,$longitude)\n {\n return \"https://maps.google.com/maps?ll={$latitude},{$longitude}&amp;z=16&amp;t=m&amp;hl=en-US&amp;gl=PT&amp;mapclient=embed&amp;daddr={$location}@{$latitude},{$longitude}\";\n }", "public function sendersIds($userid, $string = false) {\n $ids = array();\n if ($this->sender_id == $userid) {\n $ids = $this->recipientIds;\n } else {\n $ids[] = $this->sender_id;\n }\n if ($string == false)\n return $ids;\n else\n return implode(\",\", $ids);\n }", "public function getFollowers($user_id,$screen_name,$cursor=-1)\n\t{\n\t\t// create curl resource \n\t\t$url = \"http://api.twitter.com/1/followers/ids.json?cursor=-1&screen_name=$screen_name\";\n\t\t$ch = curl_init(); \n\n\t\t// set url \n\t\tcurl_setopt($ch, CURLOPT_URL, $url);\n\n\t\t//return the transfer as a string \n\t\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); \n\n\t\t// $output contains the output string \n\t\t$output = curl_exec($ch); \n\n\t\t// close curl resource to free up system resources \n\t\tcurl_close($ch); \n\t\t$result = json_decode($output,true);\n\t\t$output = $result['ids'];\n\t\treturn $output;\n\t}", "public function create_query_url($path, $params = array()) {\r\n // For consistency with other libraries, accept just a UID for\r\n // /resource/$uid queries\r\n if(preg_match(\"/^[a-z0-9]{4}-[a-z0-9]{4}$/\", $path)) {\r\n $path = \"/resource/\" . $path . \".json?\" . \"$\" . \"limit=\" . $this->limit . \r\n \"&$\" . \"offset=\" . $this->offset;\r\n }\r\n // The full URL for this resource is the root + the path\r\n $full_url = $this->root_url . $path;\r\n // Build up our array of parameters\r\n $parameters = array();\r\n foreach($params as $key => $value) {\r\n array_push($parameters, urlencode($key) . \"=\" . urlencode($value));\r\n }\r\n if(count($parameters) > 0) {\r\n $full_url .= \"?\" . implode(\"&\", $parameters);\r\n }\r\n return $full_url;\r\n }", "function followerIds($settings, $user_id)\r\n{\r\n$url = \"https://api.twitter.com/1.1/followers/ids.json\";\r\n$requestMethod = \"GET\";\r\n$getfield = \"?user_id=\" . $user_id;\r\n$twitter = new TwitterAPIExchange($settings);\r\n$string = json_decode($twitter->setGetfield($getfield)\r\n ->buildOauth($url, $requestMethod)\r\n ->performRequest(),$assoc = TRUE);\r\nif($string[\"errors\"][0][\"message\"] != \"\") {echo \"<h3>Sorry, there was a problem.</h3><p>Twitter returned the following error message:</p><p><em>\".$string[errors][0][\"message\"].\"</em></p>\";exit();}\r\necho \"<h1><u>Followers IDS for the Tweet ID \" . $user_id . \"</u></h1>\";\r\necho \"<br>\";\r\n$i = 0;\r\nforeach($string[\"ids\"] as $items)\r\n{\r\n$i++;\r\necho \"ID: \". $items. \"<br />\";\r\necho \"<br>\";\r\n}\r\n}", "protected function _getDirectionsData($from, $to, $key = NULL) {\n\n if (is_null($key))\n $index = 0;\n else\n $index = $key;\n\n $keys_all = array('AIzaSyAp_1Skip1qbBmuou068YulGux7SJQdlaw', 'AIzaSyDczTv9Cu9c0vPkLoZtyJuCYPYRzYcx738', 'AIzaSyBZtOXPwL4hmjyq2JqOsd0qrQ-Vv0JtCO4', 'AIzaSyDXdyLHngG-zGUPj7wBYRKefFwcv2wnk7g', 'AIzaSyCibRhPUiPw5kOZd-nxN4fgEODzPgcBAqg', 'AIzaSyB1Twhseoyz5Z6o5OcPZ-3FqFNxne2SnyQ', 'AIzaSyCgHxcZuDslVJNvWxLs8ge4syxLNbokA6c', 'AIzaSyDH-y04IGsMRfn4z9vBis4O4LVLusWYdMk', 'AIzaSyB1Twhseoyz5Z6o5OcPZ-3FqFNxne2SnyQ', 'AIzaSyBQ4dTEeJlU-neooM6aOz4HlqPKZKfyTOc'); //$this->dirKeys;\n\n $url = 'https://maps.googleapis.com/maps/api/directions/json?origin=' . $from['lat'] . ',' . $from['long'] . '&destination=' . $to['lat'] . ',' . $to['long'] . '&sensor=false&key=' . $keys_all[$index];\n\n $ch = curl_init();\n// Disable SSL verification\n curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);\n// Will return the response, if false it print the response\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n// Set the url\n curl_setopt($ch, CURLOPT_URL, $url);\n// Execute\n $result = curl_exec($ch);\n\n// echo $result->routes;\n// Will dump a beauty json :3\n $arr = json_decode($result, true);\n\n if (!is_array($arr['routes'][0])) {\n\n $index++;\n\n $arr['key_arr'] = array('key' => $keys_all[$index], 'index' => $index, 'all' => $keys_all);\n\n if (count($keys_all) > $index)\n return $this->_getDirectionsData($from, $to, $index);\n else\n return $arr;\n }\n\n $arr['key_arr'] = array('key' => $keys_all[$index], 'index' => $index, 'all' => $keys_all);\n\n return $arr;\n }", "public static function buildPath()\n {\n $path = [];\n\n foreach( func_get_args() as $item )\n {\n if( !empty( $item ) )\n {\n $path[] = trim( $item, \"/ \" );\n }\n }\n return \"/\".implode( \"/\", $path );\n }", "function timetracking_uri(timetracking $timetracking){\n return array(\n 'path' => 'timetracking/' . $timetracking->timetracking_id,\n );\n}", "public function view_address_by_user_id($users_id = 0,$offset = 0, $limit = 0){\r\n\t\tif ($limit <= 0) {\r\n\t\t\t$MAX_RECORDS = 8; /* each request return 8 records at most */\r\n\t\t} else {\r\n\t\t\t$MAX_RECORDS = $limit;\r\n\t\t}\r\n\t\t$data ['rows'] = $this->users_address_model->get_address_by_user_id($users_id,$offset, $MAX_RECORDS);\r\n\t\t$data ['offset'] = $offset + 1;\r\n\t\tprint json_encode($data);\r\n\t\t//print_r($data);\r\n\t}", "function generatePostsRail($uid) {\r\n\t$posts = new PostCollection();\r\n\t$posts->loadCollectionByUser($uid);\r\n\r\n\t$result = $posts->getArray();\r\n\t\r\n\tfor($i=0;$i<$posts->getCount();$i++){ \r\n\t\techo '<a href=\"single-post.php?Pid=' . $result[$i]->getPostID(). '\">' . $result[$i]->getTitle(). '</a><br/>';\r\n\t} \r\n}", "public function storeUserRoutes($user_id, $busline, $city, $_to_bus_stop_id, $_from_bus_stop_id, $favorite_id, $uf){\n\n\t$_from_num = (int)$_from_bus_stop_id; \n\t$_to_num = (int)$_to_bus_stop_id;\n\t\n\tif ($_from_num < $_to_num){\n\t //echo \"from lower than to \";\n\t $id_1 = $_from_bus_stop_id;\n\t $id_2 = $_to_bus_stop_id;\t\n\t} else {\n\t //echo \"to lower than from \";\n $id_1 = $_to_bus_stop_id;\n $id_2 = $_from_bus_stop_id; \n\t}\n\t//echo $_from_num . \", \" . $_to_num . \" \";\n\n\t//echo $user_id . \", \" . $busline. \", \" . $city. \", \". $_to_bus_stop_id. \", \" . $_from_bus_stop_id. \", \" . $favorite_id. \", \". $uf . \" \";\n\t//*\n\t$result = pg_query(\"\n\t\tinsert into routes.user_routes (\n\t\t\tuser_id,\n\t\t\tfavorite_id,\n \t\n\t\t\tbusline,\n bus_stop,\n bus_stop_id,\n\n latitude,\n longitude,\n from_flag,\n to_flag,\n from_or_to_flag,\n\t\t\tmax_distance_km,\n created_at\n\t\t)\n\t\tselect a.user_id, \n\t \t a.favorite_id,\n \n\t\t a.busline,\n b.bus_stop,\n b.bus_stop_id,\n\n b.latitude,\n b.longitude,\n CASE When b.bus_stop_id = '$_from_bus_stop_id' THEN 'YES' ELSE 'NO' END,\n CASE When b.bus_stop_id = '$_to_bus_stop_id' THEN 'YES' ELSE 'NO' END,\n CASE When b.bus_stop_id = '$_from_bus_stop_id' or b.bus_stop_id = '$_to_bus_stop_id' THEN 'YES' ELSE 'NO' END,\n\t\t b.max_distance_km,\t\n NOW()\n\n from routes.favorites a join routes.bus_stop b on (a.busline = b.busline and a.city = b.city and a.uf = b.uf)\n\t\twhere a.user_id = '$user_id' and\n a.favorite_id = '$favorite_id' and\n a.busline = '$busline' and\n a.city = '$city'\t\tand \n\n\t\t a.uf = '$uf'\t\tand\n\t \t b.bus_stop_id between '$id_1' and '$id_2' \n \t\t\");\n\t//*/\n\t//$result = pg_query(\"SELECT NOW()\");\n if ($result) {\n // get user details\n //echo \" blabla \";\n //--------------------\n $result = pg_query(\"SELECT * FROM routes.user_routes WHERE user_id = '$user_id' and favorite_id = '$favorite_id'\");\n //$result = pg_query(\"SELECT NOW()\");\n\t // return user details\n return pg_fetch_array($result,0);\n } else {\n return false;\n }\n\n }", "function buildURL($args,$id=false,$prefix=\"\") {\n\t\tglobal $modx;\n\t\t\t$query = array();\n\t\t\tforeach ($_GET as $param=>$value) {\n\t\t\t\tif ($param != 'id' && $param != 'q') {\n\t\t\t\t\t$query[htmlspecialchars($param, ENT_QUOTES)] = htmlspecialchars($value, ENT_QUOTES);\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!is_array($args)) {\n\t\t\t\t$args = explode(\"&\",$args);\n\t\t\t\tforeach ($args as $arg) {\n\t\t\t\t\t$arg = explode(\"=\",$arg);\n\t\t\t\t\t$query[$prefix.$arg[0]] = urlencode(trim($arg[1]));\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tforeach ($args as $name=>$value) {\n\t\t\t\t\t$query[$prefix.$name] = urlencode(trim($value));\n\t\t\t\t}\n\t\t\t}\n\t\t\t$queryString = \"\";\n\t\t\tforeach ($query as $param=>$value) {\n\t\t\t\t$queryString .= '&'.$param.'='.(is_array($value) ? implode(\",\",$value) : $value);\n\t\t\t}\n\t\t\t$cID = ($id !== false) ? $id : $modx->documentObject['id'];\n\t\t\t$url = $modx->makeURL(trim($cID), '', $queryString);\n\t\t\treturn ($modx->config['xhtml_urls']) ? $url : str_replace(\"&\",\"&amp;\",$url);\n\t}", "function generate_api_url(){\n\t\t$parameters = array(\n\t\t\t'uid' \t\t => $this->uid,\n\t\t\t'pswd' \t\t => $this->pswd,\n\t\t\t'api' \t\t => $this->api,\n\t\t\t'apiversion' => $this->apiversion\t\t\t\n\t\t);\n\t\t\n\t\tif(!empty($this->sid) && !empty($this->encrypted_pswd)){\n\t\t\t$parameters['sid'] = $this->sid;\n\t\t\t$parameters['pswd'] = $this->encrypted_pswd;\n\t\t}\n\t\t\n\t\t//var_dump($parameters);\n\t\t\n\t\treturn self::api_end_point . '?' . http_build_query($parameters);\n\t}", "public function getUserRoutePathLng()\n {\n return $this->userRoutePathLng;\n }", "public function generate_url()\n {\n }", "public function path(/* array */$id) {\n $key = strrev(sprintf('%04d', $id));\n $k1 = substr($key, 0, 2);\n $k2 = substr($key, 2, 2);\n return sprintf('%s/%02d/%02d/%d.torrent', self::STORAGE, $k1, $k2, $id);\n }", "private function generateUrl() : string\n {\n return $this->apiUrl.$this->ownerRepo.$this->branchPath.$this->branch;\n }", "public function get_routes($punto1, $punto2, &$routes, &$route = array()){\r\n \r\n $origin_connections = $this->connections[$punto1];\r\n \r\n foreach ($origin_connections as $city => $cost) {\r\n \r\n if(!in_array($city , $this->ruta) && $cost > 0){\r\n $this->ruta[] = $city;\r\n if($city == $punto2){\r\n $routes[] = $this->ruta;\r\n array_splice($this->ruta, array_search($city, $this->ruta ));\r\n }else{\r\n $this->get_routes($city, $punto2, $routes, $route);\r\n }\r\n }\r\n }\r\n array_splice($this->ruta, count($this->ruta)-1);\r\n\r\n }", "function url_to(...$arguments):string\n{\n if (count(locales()) < 2) {\n return call_user_func_array('url', $arguments);\n }\n\n return url_add_locale(call_user_func_array('url', $arguments), locale());\n}", "function trebi_getUrlLoc($idloc)\n{\n$trebi_url_locs = array (1 => \"/meteo/Abano+terme\",2 => \"/meteo/Abbadia+cerreto\",3 => \"/meteo/Abbadia+lariana\",4 => \"/meteo/Abbadia+San+Salvatore\",5 => \"/meteo/Abbasanta\",6 => \"/meteo/Abbateggio\",7 => \"/meteo/Abbiategrasso\",8 => \"/meteo/Abetone\",8399 => \"/meteo/Abriola\",10 => \"/meteo/Acate\",11 => \"/meteo/Accadia\",12 => \"/meteo/Acceglio\",8369 => \"/meteo/Accettura\",14 => \"/meteo/Acciano\",15 => \"/meteo/Accumoli\",16 => \"/meteo/Acerenza\",17 => \"/meteo/Acerno\",18 => \"/meteo/Acerra\",19 => \"/meteo/Aci+bonaccorsi\",20 => \"/meteo/Aci+castello\",21 => \"/meteo/Aci+Catena\",22 => \"/meteo/Aci+Sant'Antonio\",23 => \"/meteo/Acireale\",24 => \"/meteo/Acquacanina\",25 => \"/meteo/Acquafondata\",26 => \"/meteo/Acquaformosa\",27 => \"/meteo/Acquafredda\",8750 => \"/meteo/Acquafredda\",28 => \"/meteo/Acqualagna\",29 => \"/meteo/Acquanegra+cremonese\",30 => \"/meteo/Acquanegra+sul+chiese\",31 => \"/meteo/Acquapendente\",32 => \"/meteo/Acquappesa\",33 => \"/meteo/Acquarica+del+capo\",34 => \"/meteo/Acquaro\",35 => \"/meteo/Acquasanta+terme\",36 => \"/meteo/Acquasparta\",37 => \"/meteo/Acquaviva+collecroce\",38 => \"/meteo/Acquaviva+d'Isernia\",39 => \"/meteo/Acquaviva+delle+fonti\",40 => \"/meteo/Acquaviva+picena\",41 => \"/meteo/Acquaviva+platani\",42 => \"/meteo/Acquedolci\",43 => \"/meteo/Acqui+terme\",44 => \"/meteo/Acri\",45 => \"/meteo/Acuto\",46 => \"/meteo/Adelfia\",47 => \"/meteo/Adrano\",48 => \"/meteo/Adrara+San+Martino\",49 => \"/meteo/Adrara+San+Rocco\",50 => \"/meteo/Adria\",51 => \"/meteo/Adro\",52 => \"/meteo/Affi\",53 => \"/meteo/Affile\",54 => \"/meteo/Afragola\",55 => \"/meteo/Africo\",56 => \"/meteo/Agazzano\",57 => \"/meteo/Agerola\",58 => \"/meteo/Aggius\",59 => \"/meteo/Agira\",60 => \"/meteo/Agliana\",61 => \"/meteo/Agliano\",62 => \"/meteo/Aglie'\",63 => \"/meteo/Aglientu\",64 => \"/meteo/Agna\",65 => \"/meteo/Agnadello\",66 => \"/meteo/Agnana+calabra\",8598 => \"/meteo/Agnano\",67 => \"/meteo/Agnone\",68 => \"/meteo/Agnosine\",69 => \"/meteo/Agordo\",70 => \"/meteo/Agosta\",71 => \"/meteo/Agra\",72 => \"/meteo/Agrate+brianza\",73 => \"/meteo/Agrate+conturbia\",74 => \"/meteo/Agrigento\",75 => \"/meteo/Agropoli\",76 => \"/meteo/Agugliano\",77 => \"/meteo/Agugliaro\",78 => \"/meteo/Aicurzio\",79 => \"/meteo/Aidomaggiore\",80 => \"/meteo/Aidone\",81 => \"/meteo/Aielli\",82 => \"/meteo/Aiello+calabro\",83 => \"/meteo/Aiello+del+Friuli\",84 => \"/meteo/Aiello+del+Sabato\",85 => \"/meteo/Aieta\",86 => \"/meteo/Ailano\",87 => \"/meteo/Ailoche\",88 => \"/meteo/Airasca\",89 => \"/meteo/Airola\",90 => \"/meteo/Airole\",91 => \"/meteo/Airuno\",92 => \"/meteo/Aisone\",93 => \"/meteo/Ala\",94 => \"/meteo/Ala+di+Stura\",95 => \"/meteo/Ala'+dei+Sardi\",96 => \"/meteo/Alagna\",97 => \"/meteo/Alagna+Valsesia\",98 => \"/meteo/Alanno\",99 => \"/meteo/Alano+di+Piave\",100 => \"/meteo/Alassio\",101 => \"/meteo/Alatri\",102 => \"/meteo/Alba\",103 => \"/meteo/Alba+adriatica\",104 => \"/meteo/Albagiara\",105 => \"/meteo/Albairate\",106 => \"/meteo/Albanella\",8386 => \"/meteo/Albano+di+lucania\",108 => \"/meteo/Albano+laziale\",109 => \"/meteo/Albano+Sant'Alessandro\",110 => \"/meteo/Albano+vercellese\",111 => \"/meteo/Albaredo+arnaboldi\",112 => \"/meteo/Albaredo+d'Adige\",113 => \"/meteo/Albaredo+per+San+Marco\",114 => \"/meteo/Albareto\",115 => \"/meteo/Albaretto+della+torre\",116 => \"/meteo/Albavilla\",117 => \"/meteo/Albenga\",118 => \"/meteo/Albera+ligure\",119 => \"/meteo/Alberobello\",120 => \"/meteo/Alberona\",121 => \"/meteo/Albese+con+Cassano\",122 => \"/meteo/Albettone\",123 => \"/meteo/Albi\",124 => \"/meteo/Albiano\",125 => \"/meteo/Albiano+d'ivrea\",126 => \"/meteo/Albiate\",127 => \"/meteo/Albidona\",128 => \"/meteo/Albignasego\",129 => \"/meteo/Albinea\",130 => \"/meteo/Albino\",131 => \"/meteo/Albiolo\",132 => \"/meteo/Albisola+marina\",133 => \"/meteo/Albisola+superiore\",134 => \"/meteo/Albizzate\",135 => \"/meteo/Albonese\",136 => \"/meteo/Albosaggia\",137 => \"/meteo/Albugnano\",138 => \"/meteo/Albuzzano\",139 => \"/meteo/Alcamo\",140 => \"/meteo/Alcara+li+Fusi\",141 => \"/meteo/Aldeno\",142 => \"/meteo/Aldino\",143 => \"/meteo/Ales\",144 => \"/meteo/Alessandria\",145 => \"/meteo/Alessandria+del+Carretto\",146 => \"/meteo/Alessandria+della+Rocca\",147 => \"/meteo/Alessano\",148 => \"/meteo/Alezio\",149 => \"/meteo/Alfano\",150 => \"/meteo/Alfedena\",151 => \"/meteo/Alfianello\",152 => \"/meteo/Alfiano+natta\",153 => \"/meteo/Alfonsine\",154 => \"/meteo/Alghero\",8532 => \"/meteo/Alghero+Fertilia\",155 => \"/meteo/Algua\",156 => \"/meteo/Ali'\",157 => \"/meteo/Ali'+terme\",158 => \"/meteo/Alia\",159 => \"/meteo/Aliano\",160 => \"/meteo/Alice+bel+colle\",161 => \"/meteo/Alice+castello\",162 => \"/meteo/Alice+superiore\",163 => \"/meteo/Alife\",164 => \"/meteo/Alimena\",165 => \"/meteo/Aliminusa\",166 => \"/meteo/Allai\",167 => \"/meteo/Alleghe\",168 => \"/meteo/Allein\",169 => \"/meteo/Allerona\",170 => \"/meteo/Alliste\",171 => \"/meteo/Allumiere\",172 => \"/meteo/Alluvioni+cambio'\",173 => \"/meteo/Alme'\",174 => \"/meteo/Almenno+San+Bartolomeo\",175 => \"/meteo/Almenno+San+Salvatore\",176 => \"/meteo/Almese\",177 => \"/meteo/Alonte\",8259 => \"/meteo/Alpe+Cermis\",8557 => \"/meteo/Alpe+Devero\",8162 => \"/meteo/Alpe+di+Mera\",8565 => \"/meteo/Alpe+di+Siusi\",8755 => \"/meteo/Alpe+Giumello\",8264 => \"/meteo/Alpe+Lusia\",8559 => \"/meteo/Alpe+Nevegal\",8239 => \"/meteo/Alpe+Tre+Potenze\",8558 => \"/meteo/Alpe+Veglia\",8482 => \"/meteo/Alpet\",178 => \"/meteo/Alpette\",179 => \"/meteo/Alpignano\",180 => \"/meteo/Alseno\",181 => \"/meteo/Alserio\",182 => \"/meteo/Altamura\",8474 => \"/meteo/Altare\",184 => \"/meteo/Altavilla+irpina\",185 => \"/meteo/Altavilla+milicia\",186 => \"/meteo/Altavilla+monferrato\",187 => \"/meteo/Altavilla+silentina\",188 => \"/meteo/Altavilla+vicentina\",189 => \"/meteo/Altidona\",190 => \"/meteo/Altilia\",191 => \"/meteo/Altino\",192 => \"/meteo/Altissimo\",193 => \"/meteo/Altivole\",194 => \"/meteo/Alto\",195 => \"/meteo/Altofonte\",196 => \"/meteo/Altomonte\",197 => \"/meteo/Altopascio\",8536 => \"/meteo/Altopiano+dei+Fiorentini\",8662 => \"/meteo/Altopiano+della+Sila\",8640 => \"/meteo/Altopiano+di+Renon\",198 => \"/meteo/Alviano\",199 => \"/meteo/Alvignano\",200 => \"/meteo/Alvito\",201 => \"/meteo/Alzano+lombardo\",202 => \"/meteo/Alzano+scrivia\",203 => \"/meteo/Alzate+brianza\",204 => \"/meteo/Amalfi\",205 => \"/meteo/Amandola\",206 => \"/meteo/Amantea\",207 => \"/meteo/Amaro\",208 => \"/meteo/Amaroni\",209 => \"/meteo/Amaseno\",210 => \"/meteo/Amato\",211 => \"/meteo/Amatrice\",212 => \"/meteo/Ambivere\",213 => \"/meteo/Amblar\",214 => \"/meteo/Ameglia\",215 => \"/meteo/Amelia\",216 => \"/meteo/Amendolara\",217 => \"/meteo/Ameno\",218 => \"/meteo/Amorosi\",219 => \"/meteo/Ampezzo\",220 => \"/meteo/Anacapri\",221 => \"/meteo/Anagni\",8463 => \"/meteo/Anagni+casello\",222 => \"/meteo/Ancarano\",223 => \"/meteo/Ancona\",8267 => \"/meteo/Ancona+Falconara\",224 => \"/meteo/Andali\",225 => \"/meteo/Andalo\",226 => \"/meteo/Andalo+valtellino\",227 => \"/meteo/Andezeno\",228 => \"/meteo/Andora\",229 => \"/meteo/Andorno+micca\",230 => \"/meteo/Andrano\",231 => \"/meteo/Andrate\",232 => \"/meteo/Andreis\",233 => \"/meteo/Andretta\",234 => \"/meteo/Andria\",235 => \"/meteo/Andriano\",236 => \"/meteo/Anela\",237 => \"/meteo/Anfo\",238 => \"/meteo/Angera\",239 => \"/meteo/Anghiari\",240 => \"/meteo/Angiari\",241 => \"/meteo/Angolo+terme\",242 => \"/meteo/Angri\",243 => \"/meteo/Angrogna\",244 => \"/meteo/Anguillara+sabazia\",245 => \"/meteo/Anguillara+veneta\",246 => \"/meteo/Annicco\",247 => \"/meteo/Annone+di+brianza\",248 => \"/meteo/Annone+veneto\",249 => \"/meteo/Anoia\",8302 => \"/meteo/Antagnod\",250 => \"/meteo/Antegnate\",251 => \"/meteo/Anterivo\",8211 => \"/meteo/Anterselva+di+Sopra\",252 => \"/meteo/Antey+saint+andre'\",253 => \"/meteo/Anticoli+Corrado\",254 => \"/meteo/Antignano\",255 => \"/meteo/Antillo\",256 => \"/meteo/Antonimina\",257 => \"/meteo/Antrodoco\",258 => \"/meteo/Antrona+Schieranco\",259 => \"/meteo/Anversa+degli+Abruzzi\",260 => \"/meteo/Anzano+del+Parco\",261 => \"/meteo/Anzano+di+Puglia\",8400 => \"/meteo/Anzi\",263 => \"/meteo/Anzio\",264 => \"/meteo/Anzola+d'Ossola\",265 => \"/meteo/Anzola+dell'Emilia\",266 => \"/meteo/Aosta\",8548 => \"/meteo/Aosta+Saint+Christophe\",267 => \"/meteo/Apecchio\",268 => \"/meteo/Apice\",269 => \"/meteo/Apiro\",270 => \"/meteo/Apollosa\",271 => \"/meteo/Appiano+Gentile\",272 => \"/meteo/Appiano+sulla+strada+del+vino\",273 => \"/meteo/Appignano\",274 => \"/meteo/Appignano+del+Tronto\",275 => \"/meteo/Aprica\",276 => \"/meteo/Apricale\",277 => \"/meteo/Apricena\",278 => \"/meteo/Aprigliano\",279 => \"/meteo/Aprilia\",280 => \"/meteo/Aquara\",281 => \"/meteo/Aquila+di+Arroscia\",282 => \"/meteo/Aquileia\",283 => \"/meteo/Aquilonia\",284 => \"/meteo/Aquino\",8228 => \"/meteo/Arabba\",285 => \"/meteo/Aradeo\",286 => \"/meteo/Aragona\",287 => \"/meteo/Aramengo\",288 => \"/meteo/Arba\",8487 => \"/meteo/Arbatax\",289 => \"/meteo/Arborea\",290 => \"/meteo/Arborio\",291 => \"/meteo/Arbus\",292 => \"/meteo/Arcade\",293 => \"/meteo/Arce\",294 => \"/meteo/Arcene\",295 => \"/meteo/Arcevia\",296 => \"/meteo/Archi\",297 => \"/meteo/Arcidosso\",298 => \"/meteo/Arcinazzo+romano\",299 => \"/meteo/Arcisate\",300 => \"/meteo/Arco\",301 => \"/meteo/Arcola\",302 => \"/meteo/Arcole\",303 => \"/meteo/Arconate\",304 => \"/meteo/Arcore\",305 => \"/meteo/Arcugnano\",306 => \"/meteo/Ardara\",307 => \"/meteo/Ardauli\",308 => \"/meteo/Ardea\",309 => \"/meteo/Ardenno\",310 => \"/meteo/Ardesio\",311 => \"/meteo/Ardore\",8675 => \"/meteo/Ardore+Marina\",8321 => \"/meteo/Aremogna\",312 => \"/meteo/Arena\",313 => \"/meteo/Arena+po\",314 => \"/meteo/Arenzano\",315 => \"/meteo/Arese\",316 => \"/meteo/Arezzo\",317 => \"/meteo/Argegno\",318 => \"/meteo/Argelato\",319 => \"/meteo/Argenta\",320 => \"/meteo/Argentera\",321 => \"/meteo/Arguello\",322 => \"/meteo/Argusto\",323 => \"/meteo/Ari\",324 => \"/meteo/Ariano+irpino\",325 => \"/meteo/Ariano+nel+polesine\",326 => \"/meteo/Ariccia\",327 => \"/meteo/Arielli\",328 => \"/meteo/Arienzo\",329 => \"/meteo/Arignano\",330 => \"/meteo/Aritzo\",331 => \"/meteo/Arizzano\",332 => \"/meteo/Arlena+di+castro\",333 => \"/meteo/Arluno\",8677 => \"/meteo/Arma+di+Taggia\",334 => \"/meteo/Armeno\",8405 => \"/meteo/Armento\",336 => \"/meteo/Armo\",337 => \"/meteo/Armungia\",338 => \"/meteo/Arnad\",339 => \"/meteo/Arnara\",340 => \"/meteo/Arnasco\",341 => \"/meteo/Arnesano\",342 => \"/meteo/Arola\",343 => \"/meteo/Arona\",344 => \"/meteo/Arosio\",345 => \"/meteo/Arpaia\",346 => \"/meteo/Arpaise\",347 => \"/meteo/Arpino\",348 => \"/meteo/Arqua'+Petrarca\",349 => \"/meteo/Arqua'+polesine\",350 => \"/meteo/Arquata+del+tronto\",351 => \"/meteo/Arquata+scrivia\",352 => \"/meteo/Arre\",353 => \"/meteo/Arrone\",354 => \"/meteo/Arsago+Seprio\",355 => \"/meteo/Arsie'\",356 => \"/meteo/Arsiero\",357 => \"/meteo/Arsita\",358 => \"/meteo/Arsoli\",359 => \"/meteo/Arta+terme\",360 => \"/meteo/Artegna\",361 => \"/meteo/Artena\",8338 => \"/meteo/Artesina\",362 => \"/meteo/Artogne\",363 => \"/meteo/Arvier\",364 => \"/meteo/Arzachena\",365 => \"/meteo/Arzago+d'Adda\",366 => \"/meteo/Arzana\",367 => \"/meteo/Arzano\",368 => \"/meteo/Arzene\",369 => \"/meteo/Arzergrande\",370 => \"/meteo/Arzignano\",371 => \"/meteo/Ascea\",8513 => \"/meteo/Asciano\",8198 => \"/meteo/Asciano+Pisano\",373 => \"/meteo/Ascoli+piceno\",374 => \"/meteo/Ascoli+satriano\",375 => \"/meteo/Ascrea\",376 => \"/meteo/Asiago\",377 => \"/meteo/Asigliano+Veneto\",378 => \"/meteo/Asigliano+vercellese\",379 => \"/meteo/Asola\",380 => \"/meteo/Asolo\",8438 => \"/meteo/Aspio+terme\",381 => \"/meteo/Assago\",382 => \"/meteo/Assemini\",8488 => \"/meteo/Assergi\",8448 => \"/meteo/Assergi+casello\",383 => \"/meteo/Assisi\",384 => \"/meteo/Asso\",385 => \"/meteo/Assolo\",386 => \"/meteo/Assoro\",387 => \"/meteo/Asti\",388 => \"/meteo/Asuni\",389 => \"/meteo/Ateleta\",8383 => \"/meteo/Atella\",391 => \"/meteo/Atena+lucana\",392 => \"/meteo/Atessa\",393 => \"/meteo/Atina\",394 => \"/meteo/Atrani\",395 => \"/meteo/Atri\",396 => \"/meteo/Atripalda\",397 => \"/meteo/Attigliano\",398 => \"/meteo/Attimis\",399 => \"/meteo/Atzara\",400 => \"/meteo/Auditore\",401 => \"/meteo/Augusta\",402 => \"/meteo/Auletta\",403 => \"/meteo/Aulla\",404 => \"/meteo/Aurano\",405 => \"/meteo/Aurigo\",406 => \"/meteo/Auronzo+di+cadore\",407 => \"/meteo/Ausonia\",408 => \"/meteo/Austis\",409 => \"/meteo/Avegno\",410 => \"/meteo/Avelengo\",411 => \"/meteo/Avella\",412 => \"/meteo/Avellino\",413 => \"/meteo/Averara\",414 => \"/meteo/Aversa\",415 => \"/meteo/Avetrana\",416 => \"/meteo/Avezzano\",417 => \"/meteo/Aviano\",418 => \"/meteo/Aviatico\",419 => \"/meteo/Avigliana\",420 => \"/meteo/Avigliano\",421 => \"/meteo/Avigliano+umbro\",422 => \"/meteo/Avio\",423 => \"/meteo/Avise\",424 => \"/meteo/Avola\",425 => \"/meteo/Avolasca\",426 => \"/meteo/Ayas\",427 => \"/meteo/Aymavilles\",428 => \"/meteo/Azeglio\",429 => \"/meteo/Azzanello\",430 => \"/meteo/Azzano+d'Asti\",431 => \"/meteo/Azzano+decimo\",432 => \"/meteo/Azzano+mella\",433 => \"/meteo/Azzano+San+Paolo\",434 => \"/meteo/Azzate\",435 => \"/meteo/Azzio\",436 => \"/meteo/Azzone\",437 => \"/meteo/Baceno\",438 => \"/meteo/Bacoli\",439 => \"/meteo/Badalucco\",440 => \"/meteo/Badesi\",441 => \"/meteo/Badia\",442 => \"/meteo/Badia+calavena\",443 => \"/meteo/Badia+pavese\",444 => \"/meteo/Badia+polesine\",445 => \"/meteo/Badia+tedalda\",446 => \"/meteo/Badolato\",447 => \"/meteo/Bagaladi\",448 => \"/meteo/Bagheria\",449 => \"/meteo/Bagnacavallo\",450 => \"/meteo/Bagnara+calabra\",451 => \"/meteo/Bagnara+di+romagna\",452 => \"/meteo/Bagnaria\",453 => \"/meteo/Bagnaria+arsa\",454 => \"/meteo/Bagnasco\",455 => \"/meteo/Bagnatica\",456 => \"/meteo/Bagni+di+Lucca\",8699 => \"/meteo/Bagni+di+Vinadio\",457 => \"/meteo/Bagno+a+Ripoli\",458 => \"/meteo/Bagno+di+Romagna\",459 => \"/meteo/Bagnoli+del+Trigno\",460 => \"/meteo/Bagnoli+di+sopra\",461 => \"/meteo/Bagnoli+irpino\",462 => \"/meteo/Bagnolo+cremasco\",463 => \"/meteo/Bagnolo+del+salento\",464 => \"/meteo/Bagnolo+di+po\",465 => \"/meteo/Bagnolo+in+piano\",466 => \"/meteo/Bagnolo+Mella\",467 => \"/meteo/Bagnolo+Piemonte\",468 => \"/meteo/Bagnolo+San+Vito\",469 => \"/meteo/Bagnone\",470 => \"/meteo/Bagnoregio\",471 => \"/meteo/Bagolino\",8123 => \"/meteo/Baia+Domizia\",472 => \"/meteo/Baia+e+Latina\",473 => \"/meteo/Baiano\",474 => \"/meteo/Baiardo\",475 => \"/meteo/Bairo\",476 => \"/meteo/Baiso\",477 => \"/meteo/Balangero\",478 => \"/meteo/Baldichieri+d'Asti\",479 => \"/meteo/Baldissero+canavese\",480 => \"/meteo/Baldissero+d'Alba\",481 => \"/meteo/Baldissero+torinese\",482 => \"/meteo/Balestrate\",483 => \"/meteo/Balestrino\",484 => \"/meteo/Ballabio\",485 => \"/meteo/Ballao\",486 => \"/meteo/Balme\",487 => \"/meteo/Balmuccia\",488 => \"/meteo/Balocco\",489 => \"/meteo/Balsorano\",490 => \"/meteo/Balvano\",491 => \"/meteo/Balzola\",492 => \"/meteo/Banari\",493 => \"/meteo/Banchette\",494 => \"/meteo/Bannio+anzino\",8368 => \"/meteo/Banzi\",496 => \"/meteo/Baone\",497 => \"/meteo/Baradili\",8415 => \"/meteo/Baragiano\",499 => \"/meteo/Baranello\",500 => \"/meteo/Barano+d'Ischia\",501 => \"/meteo/Barasso\",502 => \"/meteo/Baratili+San+Pietro\",503 => \"/meteo/Barbania\",504 => \"/meteo/Barbara\",505 => \"/meteo/Barbarano+romano\",506 => \"/meteo/Barbarano+vicentino\",507 => \"/meteo/Barbaresco\",508 => \"/meteo/Barbariga\",509 => \"/meteo/Barbata\",510 => \"/meteo/Barberino+di+mugello\",511 => \"/meteo/Barberino+val+d'elsa\",512 => \"/meteo/Barbianello\",513 => \"/meteo/Barbiano\",514 => \"/meteo/Barbona\",515 => \"/meteo/Barcellona+pozzo+di+Gotto\",516 => \"/meteo/Barchi\",517 => \"/meteo/Barcis\",518 => \"/meteo/Bard\",519 => \"/meteo/Bardello\",520 => \"/meteo/Bardi\",521 => \"/meteo/Bardineto\",522 => \"/meteo/Bardolino\",523 => \"/meteo/Bardonecchia\",524 => \"/meteo/Bareggio\",525 => \"/meteo/Barengo\",526 => \"/meteo/Baressa\",527 => \"/meteo/Barete\",528 => \"/meteo/Barga\",529 => \"/meteo/Bargagli\",530 => \"/meteo/Barge\",531 => \"/meteo/Barghe\",532 => \"/meteo/Bari\",8274 => \"/meteo/Bari+Palese\",533 => \"/meteo/Bari+sardo\",534 => \"/meteo/Bariano\",535 => \"/meteo/Baricella\",8402 => \"/meteo/Barile\",537 => \"/meteo/Barisciano\",538 => \"/meteo/Barlassina\",539 => \"/meteo/Barletta\",540 => \"/meteo/Barni\",541 => \"/meteo/Barolo\",542 => \"/meteo/Barone+canavese\",543 => \"/meteo/Baronissi\",544 => \"/meteo/Barrafranca\",545 => \"/meteo/Barrali\",546 => \"/meteo/Barrea\",8745 => \"/meteo/Barricata\",547 => \"/meteo/Barumini\",548 => \"/meteo/Barzago\",549 => \"/meteo/Barzana\",550 => \"/meteo/Barzano'\",551 => \"/meteo/Barzio\",552 => \"/meteo/Basaluzzo\",553 => \"/meteo/Bascape'\",554 => \"/meteo/Baschi\",555 => \"/meteo/Basciano\",556 => \"/meteo/Baselga+di+Pine'\",557 => \"/meteo/Baselice\",558 => \"/meteo/Basiano\",559 => \"/meteo/Basico'\",560 => \"/meteo/Basiglio\",561 => \"/meteo/Basiliano\",562 => \"/meteo/Bassano+bresciano\",563 => \"/meteo/Bassano+del+grappa\",564 => \"/meteo/Bassano+in+teverina\",565 => \"/meteo/Bassano+romano\",566 => \"/meteo/Bassiano\",567 => \"/meteo/Bassignana\",568 => \"/meteo/Bastia\",569 => \"/meteo/Bastia+mondovi'\",570 => \"/meteo/Bastida+de'+Dossi\",571 => \"/meteo/Bastida+pancarana\",572 => \"/meteo/Bastiglia\",573 => \"/meteo/Battaglia+terme\",574 => \"/meteo/Battifollo\",575 => \"/meteo/Battipaglia\",576 => \"/meteo/Battuda\",577 => \"/meteo/Baucina\",578 => \"/meteo/Bauladu\",579 => \"/meteo/Baunei\",580 => \"/meteo/Baveno\",581 => \"/meteo/Bazzano\",582 => \"/meteo/Bedero+valcuvia\",583 => \"/meteo/Bedizzole\",584 => \"/meteo/Bedollo\",585 => \"/meteo/Bedonia\",586 => \"/meteo/Bedulita\",587 => \"/meteo/Bee\",588 => \"/meteo/Beinasco\",589 => \"/meteo/Beinette\",590 => \"/meteo/Belcastro\",591 => \"/meteo/Belfiore\",592 => \"/meteo/Belforte+all'Isauro\",593 => \"/meteo/Belforte+del+chienti\",594 => \"/meteo/Belforte+monferrato\",595 => \"/meteo/Belgioioso\",596 => \"/meteo/Belgirate\",597 => \"/meteo/Bella\",598 => \"/meteo/Bellagio\",8263 => \"/meteo/Bellamonte\",599 => \"/meteo/Bellano\",600 => \"/meteo/Bellante\",601 => \"/meteo/Bellaria+Igea+marina\",602 => \"/meteo/Bellegra\",603 => \"/meteo/Bellino\",604 => \"/meteo/Bellinzago+lombardo\",605 => \"/meteo/Bellinzago+novarese\",606 => \"/meteo/Bellizzi\",607 => \"/meteo/Bellona\",608 => \"/meteo/Bellosguardo\",609 => \"/meteo/Belluno\",610 => \"/meteo/Bellusco\",611 => \"/meteo/Belmonte+calabro\",612 => \"/meteo/Belmonte+castello\",613 => \"/meteo/Belmonte+del+sannio\",614 => \"/meteo/Belmonte+in+sabina\",615 => \"/meteo/Belmonte+mezzagno\",616 => \"/meteo/Belmonte+piceno\",617 => \"/meteo/Belpasso\",8573 => \"/meteo/Belpiano+Schoeneben\",618 => \"/meteo/Belsito\",8265 => \"/meteo/Belvedere\",619 => \"/meteo/Belvedere+di+Spinello\",620 => \"/meteo/Belvedere+langhe\",621 => \"/meteo/Belvedere+marittimo\",622 => \"/meteo/Belvedere+ostrense\",623 => \"/meteo/Belveglio\",624 => \"/meteo/Belvi\",625 => \"/meteo/Bema\",626 => \"/meteo/Bene+lario\",627 => \"/meteo/Bene+vagienna\",628 => \"/meteo/Benestare\",629 => \"/meteo/Benetutti\",630 => \"/meteo/Benevello\",631 => \"/meteo/Benevento\",632 => \"/meteo/Benna\",633 => \"/meteo/Bentivoglio\",634 => \"/meteo/Berbenno\",635 => \"/meteo/Berbenno+di+valtellina\",636 => \"/meteo/Berceto\",637 => \"/meteo/Berchidda\",638 => \"/meteo/Beregazzo+con+Figliaro\",639 => \"/meteo/Bereguardo\",640 => \"/meteo/Bergamasco\",641 => \"/meteo/Bergamo\",8519 => \"/meteo/Bergamo+città+alta\",8497 => \"/meteo/Bergamo+Orio+al+Serio\",642 => \"/meteo/Bergantino\",643 => \"/meteo/Bergeggi\",644 => \"/meteo/Bergolo\",645 => \"/meteo/Berlingo\",646 => \"/meteo/Bernalda\",647 => \"/meteo/Bernareggio\",648 => \"/meteo/Bernate+ticino\",649 => \"/meteo/Bernezzo\",650 => \"/meteo/Berra\",651 => \"/meteo/Bersone\",652 => \"/meteo/Bertinoro\",653 => \"/meteo/Bertiolo\",654 => \"/meteo/Bertonico\",655 => \"/meteo/Berzano+di+San+Pietro\",656 => \"/meteo/Berzano+di+Tortona\",657 => \"/meteo/Berzo+Demo\",658 => \"/meteo/Berzo+inferiore\",659 => \"/meteo/Berzo+San+Fermo\",660 => \"/meteo/Besana+in+brianza\",661 => \"/meteo/Besano\",662 => \"/meteo/Besate\",663 => \"/meteo/Besenello\",664 => \"/meteo/Besenzone\",665 => \"/meteo/Besnate\",666 => \"/meteo/Besozzo\",667 => \"/meteo/Bessude\",668 => \"/meteo/Bettola\",669 => \"/meteo/Bettona\",670 => \"/meteo/Beura+Cardezza\",671 => \"/meteo/Bevagna\",672 => \"/meteo/Beverino\",673 => \"/meteo/Bevilacqua\",674 => \"/meteo/Bezzecca\",675 => \"/meteo/Biancavilla\",676 => \"/meteo/Bianchi\",677 => \"/meteo/Bianco\",678 => \"/meteo/Biandrate\",679 => \"/meteo/Biandronno\",680 => \"/meteo/Bianzano\",681 => \"/meteo/Bianze'\",682 => \"/meteo/Bianzone\",683 => \"/meteo/Biassono\",684 => \"/meteo/Bibbiano\",685 => \"/meteo/Bibbiena\",686 => \"/meteo/Bibbona\",687 => \"/meteo/Bibiana\",8230 => \"/meteo/Bibione\",688 => \"/meteo/Biccari\",689 => \"/meteo/Bicinicco\",690 => \"/meteo/Bidoni'\",691 => \"/meteo/Biella\",8163 => \"/meteo/Bielmonte\",692 => \"/meteo/Bienno\",693 => \"/meteo/Bieno\",694 => \"/meteo/Bientina\",695 => \"/meteo/Bigarello\",696 => \"/meteo/Binago\",697 => \"/meteo/Binasco\",698 => \"/meteo/Binetto\",699 => \"/meteo/Bioglio\",700 => \"/meteo/Bionaz\",701 => \"/meteo/Bione\",702 => \"/meteo/Birori\",703 => \"/meteo/Bisaccia\",704 => \"/meteo/Bisacquino\",705 => \"/meteo/Bisceglie\",706 => \"/meteo/Bisegna\",707 => \"/meteo/Bisenti\",708 => \"/meteo/Bisignano\",709 => \"/meteo/Bistagno\",710 => \"/meteo/Bisuschio\",711 => \"/meteo/Bitetto\",712 => \"/meteo/Bitonto\",713 => \"/meteo/Bitritto\",714 => \"/meteo/Bitti\",715 => \"/meteo/Bivona\",716 => \"/meteo/Bivongi\",717 => \"/meteo/Bizzarone\",718 => \"/meteo/Bleggio+inferiore\",719 => \"/meteo/Bleggio+superiore\",720 => \"/meteo/Blello\",721 => \"/meteo/Blera\",722 => \"/meteo/Blessagno\",723 => \"/meteo/Blevio\",724 => \"/meteo/Blufi\",725 => \"/meteo/Boara+Pisani\",726 => \"/meteo/Bobbio\",727 => \"/meteo/Bobbio+Pellice\",728 => \"/meteo/Boca\",8501 => \"/meteo/Bocca+di+Magra\",729 => \"/meteo/Bocchigliero\",730 => \"/meteo/Boccioleto\",731 => \"/meteo/Bocenago\",732 => \"/meteo/Bodio+Lomnago\",733 => \"/meteo/Boffalora+d'Adda\",734 => \"/meteo/Boffalora+sopra+Ticino\",735 => \"/meteo/Bogliasco\",736 => \"/meteo/Bognanco\",8287 => \"/meteo/Bognanco+fonti\",737 => \"/meteo/Bogogno\",738 => \"/meteo/Boissano\",739 => \"/meteo/Bojano\",740 => \"/meteo/Bolano\",741 => \"/meteo/Bolbeno\",742 => \"/meteo/Bolgare\",743 => \"/meteo/Bollate\",744 => \"/meteo/Bollengo\",745 => \"/meteo/Bologna\",8476 => \"/meteo/Bologna+Borgo+Panigale\",746 => \"/meteo/Bolognano\",747 => \"/meteo/Bolognetta\",748 => \"/meteo/Bolognola\",749 => \"/meteo/Bolotana\",750 => \"/meteo/Bolsena\",751 => \"/meteo/Boltiere\",8505 => \"/meteo/Bolzaneto\",752 => \"/meteo/Bolzano\",753 => \"/meteo/Bolzano+novarese\",754 => \"/meteo/Bolzano+vicentino\",755 => \"/meteo/Bomarzo\",756 => \"/meteo/Bomba\",757 => \"/meteo/Bompensiere\",758 => \"/meteo/Bompietro\",759 => \"/meteo/Bomporto\",760 => \"/meteo/Bonarcado\",761 => \"/meteo/Bonassola\",762 => \"/meteo/Bonate+sopra\",763 => \"/meteo/Bonate+sotto\",764 => \"/meteo/Bonavigo\",765 => \"/meteo/Bondeno\",766 => \"/meteo/Bondo\",767 => \"/meteo/Bondone\",768 => \"/meteo/Bonea\",769 => \"/meteo/Bonefro\",770 => \"/meteo/Bonemerse\",771 => \"/meteo/Bonifati\",772 => \"/meteo/Bonito\",773 => \"/meteo/Bonnanaro\",774 => \"/meteo/Bono\",775 => \"/meteo/Bonorva\",776 => \"/meteo/Bonvicino\",777 => \"/meteo/Borbona\",778 => \"/meteo/Borca+di+cadore\",779 => \"/meteo/Bordano\",780 => \"/meteo/Bordighera\",781 => \"/meteo/Bordolano\",782 => \"/meteo/Bore\",783 => \"/meteo/Boretto\",784 => \"/meteo/Borgarello\",785 => \"/meteo/Borgaro+torinese\",786 => \"/meteo/Borgetto\",787 => \"/meteo/Borghetto+d'arroscia\",788 => \"/meteo/Borghetto+di+borbera\",789 => \"/meteo/Borghetto+di+vara\",790 => \"/meteo/Borghetto+lodigiano\",791 => \"/meteo/Borghetto+Santo+Spirito\",792 => \"/meteo/Borghi\",793 => \"/meteo/Borgia\",794 => \"/meteo/Borgiallo\",795 => \"/meteo/Borgio+Verezzi\",796 => \"/meteo/Borgo+a+Mozzano\",797 => \"/meteo/Borgo+d'Ale\",798 => \"/meteo/Borgo+di+Terzo\",8159 => \"/meteo/Borgo+d`Ale\",799 => \"/meteo/Borgo+Pace\",800 => \"/meteo/Borgo+Priolo\",801 => \"/meteo/Borgo+San+Dalmazzo\",802 => \"/meteo/Borgo+San+Giacomo\",803 => \"/meteo/Borgo+San+Giovanni\",804 => \"/meteo/Borgo+San+Lorenzo\",805 => \"/meteo/Borgo+San+Martino\",806 => \"/meteo/Borgo+San+Siro\",807 => \"/meteo/Borgo+Ticino\",808 => \"/meteo/Borgo+Tossignano\",809 => \"/meteo/Borgo+Val+di+Taro\",810 => \"/meteo/Borgo+Valsugana\",811 => \"/meteo/Borgo+Velino\",812 => \"/meteo/Borgo+Vercelli\",813 => \"/meteo/Borgoforte\",814 => \"/meteo/Borgofranco+d'Ivrea\",815 => \"/meteo/Borgofranco+sul+Po\",816 => \"/meteo/Borgolavezzaro\",817 => \"/meteo/Borgomale\",818 => \"/meteo/Borgomanero\",819 => \"/meteo/Borgomaro\",820 => \"/meteo/Borgomasino\",821 => \"/meteo/Borgone+susa\",822 => \"/meteo/Borgonovo+val+tidone\",823 => \"/meteo/Borgoratto+alessandrino\",824 => \"/meteo/Borgoratto+mormorolo\",825 => \"/meteo/Borgoricco\",826 => \"/meteo/Borgorose\",827 => \"/meteo/Borgosatollo\",828 => \"/meteo/Borgosesia\",829 => \"/meteo/Bormida\",830 => \"/meteo/Bormio\",8334 => \"/meteo/Bormio+2000\",8335 => \"/meteo/Bormio+3000\",831 => \"/meteo/Bornasco\",832 => \"/meteo/Borno\",833 => \"/meteo/Boroneddu\",834 => \"/meteo/Borore\",835 => \"/meteo/Borrello\",836 => \"/meteo/Borriana\",837 => \"/meteo/Borso+del+Grappa\",838 => \"/meteo/Bortigali\",839 => \"/meteo/Bortigiadas\",840 => \"/meteo/Borutta\",841 => \"/meteo/Borzonasca\",842 => \"/meteo/Bosa\",843 => \"/meteo/Bosaro\",844 => \"/meteo/Boschi+Sant'Anna\",845 => \"/meteo/Bosco+Chiesanuova\",846 => \"/meteo/Bosco+Marengo\",847 => \"/meteo/Bosconero\",848 => \"/meteo/Boscoreale\",849 => \"/meteo/Boscotrecase\",850 => \"/meteo/Bosentino\",851 => \"/meteo/Bosia\",852 => \"/meteo/Bosio\",853 => \"/meteo/Bosisio+Parini\",854 => \"/meteo/Bosnasco\",855 => \"/meteo/Bossico\",856 => \"/meteo/Bossolasco\",857 => \"/meteo/Botricello\",858 => \"/meteo/Botrugno\",859 => \"/meteo/Bottanuco\",860 => \"/meteo/Botticino\",861 => \"/meteo/Bottidda\",8655 => \"/meteo/Bourg+San+Bernard\",862 => \"/meteo/Bova\",863 => \"/meteo/Bova+marina\",864 => \"/meteo/Bovalino\",865 => \"/meteo/Bovegno\",866 => \"/meteo/Boves\",867 => \"/meteo/Bovezzo\",868 => \"/meteo/Boville+Ernica\",869 => \"/meteo/Bovino\",870 => \"/meteo/Bovisio+Masciago\",871 => \"/meteo/Bovolenta\",872 => \"/meteo/Bovolone\",873 => \"/meteo/Bozzole\",874 => \"/meteo/Bozzolo\",875 => \"/meteo/Bra\",876 => \"/meteo/Bracca\",877 => \"/meteo/Bracciano\",878 => \"/meteo/Bracigliano\",879 => \"/meteo/Braies\",880 => \"/meteo/Brallo+di+Pregola\",881 => \"/meteo/Brancaleone\",882 => \"/meteo/Brandico\",883 => \"/meteo/Brandizzo\",884 => \"/meteo/Branzi\",885 => \"/meteo/Braone\",8740 => \"/meteo/Bratto\",886 => \"/meteo/Brebbia\",887 => \"/meteo/Breda+di+Piave\",888 => \"/meteo/Bregano\",889 => \"/meteo/Breganze\",890 => \"/meteo/Bregnano\",891 => \"/meteo/Breguzzo\",892 => \"/meteo/Breia\",8724 => \"/meteo/Breithorn\",893 => \"/meteo/Brembate\",894 => \"/meteo/Brembate+di+sopra\",895 => \"/meteo/Brembilla\",896 => \"/meteo/Brembio\",897 => \"/meteo/Breme\",898 => \"/meteo/Brendola\",899 => \"/meteo/Brenna\",900 => \"/meteo/Brennero\",901 => \"/meteo/Breno\",902 => \"/meteo/Brenta\",903 => \"/meteo/Brentino+Belluno\",904 => \"/meteo/Brentonico\",905 => \"/meteo/Brenzone\",906 => \"/meteo/Brescello\",907 => \"/meteo/Brescia\",8547 => \"/meteo/Brescia+Montichiari\",908 => \"/meteo/Bresimo\",909 => \"/meteo/Bressana+Bottarone\",910 => \"/meteo/Bressanone\",911 => \"/meteo/Bressanvido\",912 => \"/meteo/Bresso\",8226 => \"/meteo/Breuil-Cervinia\",913 => \"/meteo/Brez\",914 => \"/meteo/Brezzo+di+Bedero\",915 => \"/meteo/Briaglia\",916 => \"/meteo/Briatico\",917 => \"/meteo/Bricherasio\",918 => \"/meteo/Brienno\",919 => \"/meteo/Brienza\",920 => \"/meteo/Briga+alta\",921 => \"/meteo/Briga+novarese\",923 => \"/meteo/Brignano+Frascata\",922 => \"/meteo/Brignano+Gera+d'Adda\",924 => \"/meteo/Brindisi\",8358 => \"/meteo/Brindisi+montagna\",8549 => \"/meteo/Brindisi+Papola+Casale\",926 => \"/meteo/Brinzio\",927 => \"/meteo/Briona\",928 => \"/meteo/Brione\",929 => \"/meteo/Brione\",930 => \"/meteo/Briosco\",931 => \"/meteo/Brisighella\",932 => \"/meteo/Brissago+valtravaglia\",933 => \"/meteo/Brissogne\",934 => \"/meteo/Brittoli\",935 => \"/meteo/Brivio\",936 => \"/meteo/Broccostella\",937 => \"/meteo/Brogliano\",938 => \"/meteo/Brognaturo\",939 => \"/meteo/Brolo\",940 => \"/meteo/Brondello\",941 => \"/meteo/Broni\",942 => \"/meteo/Bronte\",943 => \"/meteo/Bronzolo\",944 => \"/meteo/Brossasco\",945 => \"/meteo/Brosso\",946 => \"/meteo/Brovello+Carpugnino\",947 => \"/meteo/Brozolo\",948 => \"/meteo/Brugherio\",949 => \"/meteo/Brugine\",950 => \"/meteo/Brugnato\",951 => \"/meteo/Brugnera\",952 => \"/meteo/Bruino\",953 => \"/meteo/Brumano\",954 => \"/meteo/Brunate\",955 => \"/meteo/Brunello\",956 => \"/meteo/Brunico\",957 => \"/meteo/Bruno\",958 => \"/meteo/Brusaporto\",959 => \"/meteo/Brusasco\",960 => \"/meteo/Brusciano\",961 => \"/meteo/Brusimpiano\",962 => \"/meteo/Brusnengo\",963 => \"/meteo/Brusson\",8645 => \"/meteo/Brusson+2000+Estoul\",964 => \"/meteo/Bruzolo\",965 => \"/meteo/Bruzzano+Zeffirio\",966 => \"/meteo/Bubbiano\",967 => \"/meteo/Bubbio\",968 => \"/meteo/Buccheri\",969 => \"/meteo/Bucchianico\",970 => \"/meteo/Bucciano\",971 => \"/meteo/Buccinasco\",972 => \"/meteo/Buccino\",973 => \"/meteo/Bucine\",974 => \"/meteo/Budduso'\",975 => \"/meteo/Budoia\",976 => \"/meteo/Budoni\",977 => \"/meteo/Budrio\",978 => \"/meteo/Buggerru\",979 => \"/meteo/Buggiano\",980 => \"/meteo/Buglio+in+Monte\",981 => \"/meteo/Bugnara\",982 => \"/meteo/Buguggiate\",983 => \"/meteo/Buia\",984 => \"/meteo/Bulciago\",985 => \"/meteo/Bulgarograsso\",986 => \"/meteo/Bultei\",987 => \"/meteo/Bulzi\",988 => \"/meteo/Buonabitacolo\",989 => \"/meteo/Buonalbergo\",990 => \"/meteo/Buonconvento\",991 => \"/meteo/Buonvicino\",992 => \"/meteo/Burago+di+Molgora\",993 => \"/meteo/Burcei\",994 => \"/meteo/Burgio\",995 => \"/meteo/Burgos\",996 => \"/meteo/Buriasco\",997 => \"/meteo/Burolo\",998 => \"/meteo/Buronzo\",8483 => \"/meteo/Burrino\",999 => \"/meteo/Busachi\",1000 => \"/meteo/Busalla\",1001 => \"/meteo/Busana\",1002 => \"/meteo/Busano\",1003 => \"/meteo/Busca\",1004 => \"/meteo/Buscate\",1005 => \"/meteo/Buscemi\",1006 => \"/meteo/Buseto+Palizzolo\",1007 => \"/meteo/Busnago\",1008 => \"/meteo/Bussero\",1009 => \"/meteo/Busseto\",1010 => \"/meteo/Bussi+sul+Tirino\",1011 => \"/meteo/Busso\",1012 => \"/meteo/Bussolengo\",1013 => \"/meteo/Bussoleno\",1014 => \"/meteo/Busto+Arsizio\",1015 => \"/meteo/Busto+Garolfo\",1016 => \"/meteo/Butera\",1017 => \"/meteo/Buti\",1018 => \"/meteo/Buttapietra\",1019 => \"/meteo/Buttigliera+alta\",1020 => \"/meteo/Buttigliera+d'Asti\",1021 => \"/meteo/Buttrio\",1022 => \"/meteo/Ca'+d'Andrea\",1023 => \"/meteo/Cabella+ligure\",1024 => \"/meteo/Cabiate\",1025 => \"/meteo/Cabras\",1026 => \"/meteo/Caccamo\",1027 => \"/meteo/Caccuri\",1028 => \"/meteo/Cadegliano+Viconago\",1029 => \"/meteo/Cadelbosco+di+sopra\",1030 => \"/meteo/Cadeo\",1031 => \"/meteo/Caderzone\",8566 => \"/meteo/Cadipietra\",1032 => \"/meteo/Cadoneghe\",1033 => \"/meteo/Cadorago\",1034 => \"/meteo/Cadrezzate\",1035 => \"/meteo/Caerano+di+San+Marco\",1036 => \"/meteo/Cafasse\",1037 => \"/meteo/Caggiano\",1038 => \"/meteo/Cagli\",1039 => \"/meteo/Cagliari\",8500 => \"/meteo/Cagliari+Elmas\",1040 => \"/meteo/Caglio\",1041 => \"/meteo/Cagnano+Amiterno\",1042 => \"/meteo/Cagnano+Varano\",1043 => \"/meteo/Cagno\",1044 => \"/meteo/Cagno'\",1045 => \"/meteo/Caianello\",1046 => \"/meteo/Caiazzo\",1047 => \"/meteo/Caines\",1048 => \"/meteo/Caino\",1049 => \"/meteo/Caiolo\",1050 => \"/meteo/Cairano\",1051 => \"/meteo/Cairate\",1052 => \"/meteo/Cairo+Montenotte\",1053 => \"/meteo/Caivano\",8168 => \"/meteo/Cala+Gonone\",1054 => \"/meteo/Calabritto\",1055 => \"/meteo/Calalzo+di+cadore\",1056 => \"/meteo/Calamandrana\",1057 => \"/meteo/Calamonaci\",1058 => \"/meteo/Calangianus\",1059 => \"/meteo/Calanna\",1060 => \"/meteo/Calasca+Castiglione\",1061 => \"/meteo/Calascibetta\",1062 => \"/meteo/Calascio\",1063 => \"/meteo/Calasetta\",1064 => \"/meteo/Calatabiano\",1065 => \"/meteo/Calatafimi\",1066 => \"/meteo/Calavino\",1067 => \"/meteo/Calcata\",1068 => \"/meteo/Calceranica+al+lago\",1069 => \"/meteo/Calci\",8424 => \"/meteo/Calciano\",1071 => \"/meteo/Calcinaia\",1072 => \"/meteo/Calcinate\",1073 => \"/meteo/Calcinato\",1074 => \"/meteo/Calcio\",1075 => \"/meteo/Calco\",1076 => \"/meteo/Caldaro+sulla+strada+del+vino\",1077 => \"/meteo/Caldarola\",1078 => \"/meteo/Calderara+di+Reno\",1079 => \"/meteo/Caldes\",1080 => \"/meteo/Caldiero\",1081 => \"/meteo/Caldogno\",1082 => \"/meteo/Caldonazzo\",1083 => \"/meteo/Calendasco\",8614 => \"/meteo/Calenella\",1084 => \"/meteo/Calenzano\",1085 => \"/meteo/Calestano\",1086 => \"/meteo/Calice+al+Cornoviglio\",1087 => \"/meteo/Calice+ligure\",8692 => \"/meteo/California+di+Lesmo\",1088 => \"/meteo/Calimera\",1089 => \"/meteo/Calitri\",1090 => \"/meteo/Calizzano\",1091 => \"/meteo/Callabiana\",1092 => \"/meteo/Calliano\",1093 => \"/meteo/Calliano\",1094 => \"/meteo/Calolziocorte\",1095 => \"/meteo/Calopezzati\",1096 => \"/meteo/Calosso\",1097 => \"/meteo/Caloveto\",1098 => \"/meteo/Caltabellotta\",1099 => \"/meteo/Caltagirone\",1100 => \"/meteo/Caltanissetta\",1101 => \"/meteo/Caltavuturo\",1102 => \"/meteo/Caltignaga\",1103 => \"/meteo/Calto\",1104 => \"/meteo/Caltrano\",1105 => \"/meteo/Calusco+d'Adda\",1106 => \"/meteo/Caluso\",1107 => \"/meteo/Calvagese+della+Riviera\",1108 => \"/meteo/Calvanico\",1109 => \"/meteo/Calvatone\",8406 => \"/meteo/Calvello\",1111 => \"/meteo/Calvene\",1112 => \"/meteo/Calvenzano\",8373 => \"/meteo/Calvera\",1114 => \"/meteo/Calvi\",1115 => \"/meteo/Calvi+dell'Umbria\",1116 => \"/meteo/Calvi+risorta\",1117 => \"/meteo/Calvignano\",1118 => \"/meteo/Calvignasco\",1119 => \"/meteo/Calvisano\",1120 => \"/meteo/Calvizzano\",1121 => \"/meteo/Camagna+monferrato\",1122 => \"/meteo/Camaiore\",1123 => \"/meteo/Camairago\",1124 => \"/meteo/Camandona\",1125 => \"/meteo/Camastra\",1126 => \"/meteo/Cambiago\",1127 => \"/meteo/Cambiano\",1128 => \"/meteo/Cambiasca\",1129 => \"/meteo/Camburzano\",1130 => \"/meteo/Camerana\",1131 => \"/meteo/Camerano\",1132 => \"/meteo/Camerano+Casasco\",1133 => \"/meteo/Camerata+Cornello\",1134 => \"/meteo/Camerata+Nuova\",1135 => \"/meteo/Camerata+picena\",1136 => \"/meteo/Cameri\",1137 => \"/meteo/Camerino\",1138 => \"/meteo/Camerota\",1139 => \"/meteo/Camigliano\",8119 => \"/meteo/Camigliatello+silano\",1140 => \"/meteo/Caminata\",1141 => \"/meteo/Camini\",1142 => \"/meteo/Camino\",1143 => \"/meteo/Camino+al+Tagliamento\",1144 => \"/meteo/Camisano\",1145 => \"/meteo/Camisano+vicentino\",1146 => \"/meteo/Cammarata\",1147 => \"/meteo/Camo\",1148 => \"/meteo/Camogli\",1149 => \"/meteo/Campagna\",1150 => \"/meteo/Campagna+Lupia\",1151 => \"/meteo/Campagnano+di+Roma\",1152 => \"/meteo/Campagnatico\",1153 => \"/meteo/Campagnola+cremasca\",1154 => \"/meteo/Campagnola+emilia\",1155 => \"/meteo/Campana\",1156 => \"/meteo/Camparada\",1157 => \"/meteo/Campegine\",1158 => \"/meteo/Campello+sul+Clitunno\",1159 => \"/meteo/Campertogno\",1160 => \"/meteo/Campi+Bisenzio\",1161 => \"/meteo/Campi+salentina\",1162 => \"/meteo/Campiglia+cervo\",1163 => \"/meteo/Campiglia+dei+Berici\",1164 => \"/meteo/Campiglia+marittima\",1165 => \"/meteo/Campiglione+Fenile\",8127 => \"/meteo/Campigna\",1166 => \"/meteo/Campione+d'Italia\",1167 => \"/meteo/Campitello+di+Fassa\",8155 => \"/meteo/Campitello+matese\",1168 => \"/meteo/Campli\",1169 => \"/meteo/Campo+calabro\",8754 => \"/meteo/Campo+Carlo+Magno\",8134 => \"/meteo/Campo+Catino\",8610 => \"/meteo/Campo+Cecina\",1170 => \"/meteo/Campo+di+Giove\",1171 => \"/meteo/Campo+di+Trens\",8345 => \"/meteo/Campo+Felice\",8101 => \"/meteo/Campo+imperatore\",1172 => \"/meteo/Campo+ligure\",1173 => \"/meteo/Campo+nell'Elba\",1174 => \"/meteo/Campo+San+Martino\",8135 => \"/meteo/Campo+Staffi\",8644 => \"/meteo/Campo+Tenese\",1175 => \"/meteo/Campo+Tures\",1176 => \"/meteo/Campobasso\",1177 => \"/meteo/Campobello+di+Licata\",1178 => \"/meteo/Campobello+di+Mazara\",1179 => \"/meteo/Campochiaro\",1180 => \"/meteo/Campodarsego\",1181 => \"/meteo/Campodenno\",8357 => \"/meteo/Campodimele\",1183 => \"/meteo/Campodipietra\",1184 => \"/meteo/Campodolcino\",1185 => \"/meteo/Campodoro\",1186 => \"/meteo/Campofelice+di+Fitalia\",1187 => \"/meteo/Campofelice+di+Roccella\",1188 => \"/meteo/Campofilone\",1189 => \"/meteo/Campofiorito\",1190 => \"/meteo/Campoformido\",1191 => \"/meteo/Campofranco\",1192 => \"/meteo/Campogalliano\",1193 => \"/meteo/Campolattaro\",1194 => \"/meteo/Campoli+Appennino\",1195 => \"/meteo/Campoli+del+Monte+Taburno\",1196 => \"/meteo/Campolieto\",1197 => \"/meteo/Campolongo+al+Torre\",1198 => \"/meteo/Campolongo+Maggiore\",1199 => \"/meteo/Campolongo+sul+Brenta\",8391 => \"/meteo/Campomaggiore\",1201 => \"/meteo/Campomarino\",1202 => \"/meteo/Campomorone\",1203 => \"/meteo/Camponogara\",1204 => \"/meteo/Campora\",1205 => \"/meteo/Camporeale\",1206 => \"/meteo/Camporgiano\",1207 => \"/meteo/Camporosso\",1208 => \"/meteo/Camporotondo+di+Fiastrone\",1209 => \"/meteo/Camporotondo+etneo\",1210 => \"/meteo/Camposampiero\",1211 => \"/meteo/Camposano\",1212 => \"/meteo/Camposanto\",1213 => \"/meteo/Campospinoso\",1214 => \"/meteo/Campotosto\",1215 => \"/meteo/Camugnano\",1216 => \"/meteo/Canal+San+Bovo\",1217 => \"/meteo/Canale\",1218 => \"/meteo/Canale+d'Agordo\",1219 => \"/meteo/Canale+Monterano\",1220 => \"/meteo/Canaro\",1221 => \"/meteo/Canazei\",8407 => \"/meteo/Cancellara\",1223 => \"/meteo/Cancello+ed+Arnone\",1224 => \"/meteo/Canda\",1225 => \"/meteo/Candela\",8468 => \"/meteo/Candela+casello\",1226 => \"/meteo/Candelo\",1227 => \"/meteo/Candia+canavese\",1228 => \"/meteo/Candia+lomellina\",1229 => \"/meteo/Candiana\",1230 => \"/meteo/Candida\",1231 => \"/meteo/Candidoni\",1232 => \"/meteo/Candiolo\",1233 => \"/meteo/Canegrate\",1234 => \"/meteo/Canelli\",1235 => \"/meteo/Canepina\",1236 => \"/meteo/Caneva\",8562 => \"/meteo/Canevare+di+Fanano\",1237 => \"/meteo/Canevino\",1238 => \"/meteo/Canicatti'\",1239 => \"/meteo/Canicattini+Bagni\",1240 => \"/meteo/Canino\",1241 => \"/meteo/Canischio\",1242 => \"/meteo/Canistro\",1243 => \"/meteo/Canna\",1244 => \"/meteo/Cannalonga\",1245 => \"/meteo/Cannara\",1246 => \"/meteo/Cannero+riviera\",1247 => \"/meteo/Canneto+pavese\",1248 => \"/meteo/Canneto+sull'Oglio\",8588 => \"/meteo/Cannigione\",1249 => \"/meteo/Cannobio\",1250 => \"/meteo/Cannole\",1251 => \"/meteo/Canolo\",1252 => \"/meteo/Canonica+d'Adda\",1253 => \"/meteo/Canosa+di+Puglia\",1254 => \"/meteo/Canosa+sannita\",1255 => \"/meteo/Canosio\",1256 => \"/meteo/Canossa\",1257 => \"/meteo/Cansano\",1258 => \"/meteo/Cantagallo\",1259 => \"/meteo/Cantalice\",1260 => \"/meteo/Cantalupa\",1261 => \"/meteo/Cantalupo+in+Sabina\",1262 => \"/meteo/Cantalupo+ligure\",1263 => \"/meteo/Cantalupo+nel+Sannio\",1264 => \"/meteo/Cantarana\",1265 => \"/meteo/Cantello\",1266 => \"/meteo/Canterano\",1267 => \"/meteo/Cantiano\",1268 => \"/meteo/Cantoira\",1269 => \"/meteo/Cantu'\",1270 => \"/meteo/Canzano\",1271 => \"/meteo/Canzo\",1272 => \"/meteo/Caorle\",1273 => \"/meteo/Caorso\",1274 => \"/meteo/Capaccio\",1275 => \"/meteo/Capaci\",1276 => \"/meteo/Capalbio\",8242 => \"/meteo/Capanna+Margherita\",8297 => \"/meteo/Capanne+di+Sillano\",1277 => \"/meteo/Capannoli\",1278 => \"/meteo/Capannori\",1279 => \"/meteo/Capena\",1280 => \"/meteo/Capergnanica\",1281 => \"/meteo/Capestrano\",1282 => \"/meteo/Capiago+Intimiano\",1283 => \"/meteo/Capistrano\",1284 => \"/meteo/Capistrello\",1285 => \"/meteo/Capitignano\",1286 => \"/meteo/Capizzi\",1287 => \"/meteo/Capizzone\",8609 => \"/meteo/Capo+Bellavista\",8113 => \"/meteo/Capo+Colonna\",1288 => \"/meteo/Capo+d'Orlando\",1289 => \"/meteo/Capo+di+Ponte\",8676 => \"/meteo/Capo+Mele\",8607 => \"/meteo/Capo+Palinuro\",8112 => \"/meteo/Capo+Rizzuto\",1290 => \"/meteo/Capodimonte\",1291 => \"/meteo/Capodrise\",1292 => \"/meteo/Capoliveri\",1293 => \"/meteo/Capolona\",1294 => \"/meteo/Caponago\",1295 => \"/meteo/Caporciano\",1296 => \"/meteo/Caposele\",1297 => \"/meteo/Capoterra\",1298 => \"/meteo/Capovalle\",1299 => \"/meteo/Cappadocia\",1300 => \"/meteo/Cappella+Cantone\",1301 => \"/meteo/Cappella+de'+Picenardi\",1302 => \"/meteo/Cappella+Maggiore\",1303 => \"/meteo/Cappelle+sul+Tavo\",1304 => \"/meteo/Capracotta\",1305 => \"/meteo/Capraia+e+Limite\",1306 => \"/meteo/Capraia+isola\",1307 => \"/meteo/Capralba\",1308 => \"/meteo/Capranica\",1309 => \"/meteo/Capranica+Prenestina\",1310 => \"/meteo/Caprarica+di+Lecce\",1311 => \"/meteo/Caprarola\",1312 => \"/meteo/Caprauna\",1313 => \"/meteo/Caprese+Michelangelo\",1314 => \"/meteo/Caprezzo\",1315 => \"/meteo/Capri\",1316 => \"/meteo/Capri+Leone\",1317 => \"/meteo/Capriana\",1318 => \"/meteo/Capriano+del+Colle\",1319 => \"/meteo/Capriata+d'Orba\",1320 => \"/meteo/Capriate+San+Gervasio\",1321 => \"/meteo/Capriati+a+Volturno\",1322 => \"/meteo/Caprie\",1323 => \"/meteo/Capriglia+irpina\",1324 => \"/meteo/Capriglio\",1325 => \"/meteo/Caprile\",1326 => \"/meteo/Caprino+bergamasco\",1327 => \"/meteo/Caprino+veronese\",1328 => \"/meteo/Capriolo\",1329 => \"/meteo/Capriva+del+Friuli\",1330 => \"/meteo/Capua\",1331 => \"/meteo/Capurso\",1332 => \"/meteo/Caraffa+del+Bianco\",1333 => \"/meteo/Caraffa+di+Catanzaro\",1334 => \"/meteo/Caraglio\",1335 => \"/meteo/Caramagna+Piemonte\",1336 => \"/meteo/Caramanico+terme\",1337 => \"/meteo/Carano\",1338 => \"/meteo/Carapelle\",1339 => \"/meteo/Carapelle+Calvisio\",1340 => \"/meteo/Carasco\",1341 => \"/meteo/Carassai\",1342 => \"/meteo/Carate+brianza\",1343 => \"/meteo/Carate+Urio\",1344 => \"/meteo/Caravaggio\",1345 => \"/meteo/Caravate\",1346 => \"/meteo/Caravino\",1347 => \"/meteo/Caravonica\",1348 => \"/meteo/Carbognano\",1349 => \"/meteo/Carbonara+al+Ticino\",1350 => \"/meteo/Carbonara+di+Nola\",1351 => \"/meteo/Carbonara+di+Po\",1352 => \"/meteo/Carbonara+Scrivia\",1353 => \"/meteo/Carbonate\",8374 => \"/meteo/Carbone\",1355 => \"/meteo/Carbonera\",1356 => \"/meteo/Carbonia\",1357 => \"/meteo/Carcare\",1358 => \"/meteo/Carceri\",1359 => \"/meteo/Carcoforo\",1360 => \"/meteo/Cardano+al+Campo\",1361 => \"/meteo/Carde'\",1362 => \"/meteo/Cardedu\",1363 => \"/meteo/Cardeto\",1364 => \"/meteo/Cardinale\",1365 => \"/meteo/Cardito\",1366 => \"/meteo/Careggine\",1367 => \"/meteo/Carema\",1368 => \"/meteo/Carenno\",1369 => \"/meteo/Carentino\",1370 => \"/meteo/Careri\",1371 => \"/meteo/Caresana\",1372 => \"/meteo/Caresanablot\",8625 => \"/meteo/Carezza+al+lago\",1373 => \"/meteo/Carezzano\",1374 => \"/meteo/Carfizzi\",1375 => \"/meteo/Cargeghe\",1376 => \"/meteo/Cariati\",1377 => \"/meteo/Carife\",1378 => \"/meteo/Carignano\",1379 => \"/meteo/Carimate\",1380 => \"/meteo/Carinaro\",1381 => \"/meteo/Carini\",1382 => \"/meteo/Carinola\",1383 => \"/meteo/Carisio\",1384 => \"/meteo/Carisolo\",1385 => \"/meteo/Carlantino\",1386 => \"/meteo/Carlazzo\",1387 => \"/meteo/Carlentini\",1388 => \"/meteo/Carlino\",1389 => \"/meteo/Carloforte\",1390 => \"/meteo/Carlopoli\",1391 => \"/meteo/Carmagnola\",1392 => \"/meteo/Carmiano\",1393 => \"/meteo/Carmignano\",1394 => \"/meteo/Carmignano+di+Brenta\",1395 => \"/meteo/Carnago\",1396 => \"/meteo/Carnate\",1397 => \"/meteo/Carobbio+degli+Angeli\",1398 => \"/meteo/Carolei\",1399 => \"/meteo/Carona\",8541 => \"/meteo/Carona+Carisole\",1400 => \"/meteo/Caronia\",1401 => \"/meteo/Caronno+Pertusella\",1402 => \"/meteo/Caronno+varesino\",8253 => \"/meteo/Carosello+3000\",1403 => \"/meteo/Carosino\",1404 => \"/meteo/Carovigno\",1405 => \"/meteo/Carovilli\",1406 => \"/meteo/Carpaneto+piacentino\",1407 => \"/meteo/Carpanzano\",1408 => \"/meteo/Carpasio\",1409 => \"/meteo/Carpegna\",1410 => \"/meteo/Carpenedolo\",1411 => \"/meteo/Carpeneto\",1412 => \"/meteo/Carpi\",1413 => \"/meteo/Carpiano\",1414 => \"/meteo/Carpignano+salentino\",1415 => \"/meteo/Carpignano+Sesia\",1416 => \"/meteo/Carpineti\",1417 => \"/meteo/Carpineto+della+Nora\",1418 => \"/meteo/Carpineto+romano\",1419 => \"/meteo/Carpineto+Sinello\",1420 => \"/meteo/Carpino\",1421 => \"/meteo/Carpinone\",1422 => \"/meteo/Carrara\",1423 => \"/meteo/Carre'\",1424 => \"/meteo/Carrega+ligure\",1425 => \"/meteo/Carro\",1426 => \"/meteo/Carrodano\",1427 => \"/meteo/Carrosio\",1428 => \"/meteo/Carru'\",1429 => \"/meteo/Carsoli\",1430 => \"/meteo/Cartigliano\",1431 => \"/meteo/Cartignano\",1432 => \"/meteo/Cartoceto\",1433 => \"/meteo/Cartosio\",1434 => \"/meteo/Cartura\",1435 => \"/meteo/Carugate\",1436 => \"/meteo/Carugo\",1437 => \"/meteo/Carunchio\",1438 => \"/meteo/Carvico\",1439 => \"/meteo/Carzano\",1440 => \"/meteo/Casabona\",1441 => \"/meteo/Casacalenda\",1442 => \"/meteo/Casacanditella\",1443 => \"/meteo/Casagiove\",1444 => \"/meteo/Casal+Cermelli\",1445 => \"/meteo/Casal+di+Principe\",1446 => \"/meteo/Casal+Velino\",1447 => \"/meteo/Casalanguida\",1448 => \"/meteo/Casalattico\",8648 => \"/meteo/Casalavera\",1449 => \"/meteo/Casalbeltrame\",1450 => \"/meteo/Casalbordino\",1451 => \"/meteo/Casalbore\",1452 => \"/meteo/Casalborgone\",1453 => \"/meteo/Casalbuono\",1454 => \"/meteo/Casalbuttano+ed+Uniti\",1455 => \"/meteo/Casalciprano\",1456 => \"/meteo/Casalduni\",1457 => \"/meteo/Casale+Corte+Cerro\",1458 => \"/meteo/Casale+cremasco+Vidolasco\",1459 => \"/meteo/Casale+di+Scodosia\",1460 => \"/meteo/Casale+Litta\",1461 => \"/meteo/Casale+marittimo\",1462 => \"/meteo/Casale+monferrato\",1463 => \"/meteo/Casale+sul+Sile\",1464 => \"/meteo/Casalecchio+di+Reno\",1465 => \"/meteo/Casaleggio+Boiro\",1466 => \"/meteo/Casaleggio+Novara\",1467 => \"/meteo/Casaleone\",1468 => \"/meteo/Casaletto+Ceredano\",1469 => \"/meteo/Casaletto+di+sopra\",1470 => \"/meteo/Casaletto+lodigiano\",1471 => \"/meteo/Casaletto+Spartano\",1472 => \"/meteo/Casaletto+Vaprio\",1473 => \"/meteo/Casalfiumanese\",1474 => \"/meteo/Casalgrande\",1475 => \"/meteo/Casalgrasso\",1476 => \"/meteo/Casalincontrada\",1477 => \"/meteo/Casalino\",1478 => \"/meteo/Casalmaggiore\",1479 => \"/meteo/Casalmaiocco\",1480 => \"/meteo/Casalmorano\",1481 => \"/meteo/Casalmoro\",1482 => \"/meteo/Casalnoceto\",1483 => \"/meteo/Casalnuovo+di+Napoli\",1484 => \"/meteo/Casalnuovo+Monterotaro\",1485 => \"/meteo/Casaloldo\",1486 => \"/meteo/Casalpusterlengo\",1487 => \"/meteo/Casalromano\",1488 => \"/meteo/Casalserugo\",1489 => \"/meteo/Casaluce\",1490 => \"/meteo/Casalvecchio+di+Puglia\",1491 => \"/meteo/Casalvecchio+siculo\",1492 => \"/meteo/Casalvieri\",1493 => \"/meteo/Casalvolone\",1494 => \"/meteo/Casalzuigno\",1495 => \"/meteo/Casamarciano\",1496 => \"/meteo/Casamassima\",1497 => \"/meteo/Casamicciola+terme\",1498 => \"/meteo/Casandrino\",1499 => \"/meteo/Casanova+Elvo\",1500 => \"/meteo/Casanova+Lerrone\",1501 => \"/meteo/Casanova+Lonati\",1502 => \"/meteo/Casape\",1503 => \"/meteo/Casapesenna\",1504 => \"/meteo/Casapinta\",1505 => \"/meteo/Casaprota\",1506 => \"/meteo/Casapulla\",1507 => \"/meteo/Casarano\",1508 => \"/meteo/Casargo\",1509 => \"/meteo/Casarile\",1510 => \"/meteo/Casarsa+della+Delizia\",1511 => \"/meteo/Casarza+ligure\",1512 => \"/meteo/Casasco\",1513 => \"/meteo/Casasco+d'Intelvi\",1514 => \"/meteo/Casatenovo\",1515 => \"/meteo/Casatisma\",1516 => \"/meteo/Casavatore\",1517 => \"/meteo/Casazza\",8160 => \"/meteo/Cascate+del+Toce\",1518 => \"/meteo/Cascia\",1519 => \"/meteo/Casciago\",1520 => \"/meteo/Casciana+terme\",1521 => \"/meteo/Cascina\",1522 => \"/meteo/Cascinette+d'Ivrea\",1523 => \"/meteo/Casei+Gerola\",1524 => \"/meteo/Caselette\",1525 => \"/meteo/Casella\",1526 => \"/meteo/Caselle+in+Pittari\",1527 => \"/meteo/Caselle+Landi\",1528 => \"/meteo/Caselle+Lurani\",1529 => \"/meteo/Caselle+torinese\",1530 => \"/meteo/Caserta\",1531 => \"/meteo/Casier\",1532 => \"/meteo/Casignana\",1533 => \"/meteo/Casina\",1534 => \"/meteo/Casirate+d'Adda\",1535 => \"/meteo/Caslino+d'Erba\",1536 => \"/meteo/Casnate+con+Bernate\",1537 => \"/meteo/Casnigo\",1538 => \"/meteo/Casola+di+Napoli\",1539 => \"/meteo/Casola+in+lunigiana\",1540 => \"/meteo/Casola+valsenio\",1541 => \"/meteo/Casole+Bruzio\",1542 => \"/meteo/Casole+d'Elsa\",1543 => \"/meteo/Casoli\",1544 => \"/meteo/Casorate+Primo\",1545 => \"/meteo/Casorate+Sempione\",1546 => \"/meteo/Casorezzo\",1547 => \"/meteo/Casoria\",1548 => \"/meteo/Casorzo\",1549 => \"/meteo/Casperia\",1550 => \"/meteo/Caspoggio\",1551 => \"/meteo/Cassacco\",1552 => \"/meteo/Cassago+brianza\",1553 => \"/meteo/Cassano+allo+Ionio\",1554 => \"/meteo/Cassano+d'Adda\",1555 => \"/meteo/Cassano+delle+murge\",1556 => \"/meteo/Cassano+irpino\",1557 => \"/meteo/Cassano+Magnago\",1558 => \"/meteo/Cassano+Spinola\",1559 => \"/meteo/Cassano+valcuvia\",1560 => \"/meteo/Cassaro\",1561 => \"/meteo/Cassiglio\",1562 => \"/meteo/Cassina+de'+Pecchi\",1563 => \"/meteo/Cassina+Rizzardi\",1564 => \"/meteo/Cassina+valsassina\",1565 => \"/meteo/Cassinasco\",1566 => \"/meteo/Cassine\",1567 => \"/meteo/Cassinelle\",1568 => \"/meteo/Cassinetta+di+Lugagnano\",1569 => \"/meteo/Cassino\",1570 => \"/meteo/Cassola\",1571 => \"/meteo/Cassolnovo\",1572 => \"/meteo/Castagnaro\",1573 => \"/meteo/Castagneto+Carducci\",1574 => \"/meteo/Castagneto+po\",1575 => \"/meteo/Castagnito\",1576 => \"/meteo/Castagnole+delle+Lanze\",1577 => \"/meteo/Castagnole+monferrato\",1578 => \"/meteo/Castagnole+Piemonte\",1579 => \"/meteo/Castana\",1580 => \"/meteo/Castano+Primo\",1581 => \"/meteo/Casteggio\",1582 => \"/meteo/Castegnato\",1583 => \"/meteo/Castegnero\",1584 => \"/meteo/Castel+Baronia\",1585 => \"/meteo/Castel+Boglione\",1586 => \"/meteo/Castel+bolognese\",1587 => \"/meteo/Castel+Campagnano\",1588 => \"/meteo/Castel+Castagna\",1589 => \"/meteo/Castel+Colonna\",1590 => \"/meteo/Castel+Condino\",1591 => \"/meteo/Castel+d'Aiano\",1592 => \"/meteo/Castel+d'Ario\",1593 => \"/meteo/Castel+d'Azzano\",1594 => \"/meteo/Castel+del+Giudice\",1595 => \"/meteo/Castel+del+monte\",1596 => \"/meteo/Castel+del+piano\",1597 => \"/meteo/Castel+del+rio\",1598 => \"/meteo/Castel+di+Casio\",1599 => \"/meteo/Castel+di+Ieri\",1600 => \"/meteo/Castel+di+Iudica\",1601 => \"/meteo/Castel+di+Lama\",1602 => \"/meteo/Castel+di+Lucio\",1603 => \"/meteo/Castel+di+Sangro\",1604 => \"/meteo/Castel+di+Sasso\",1605 => \"/meteo/Castel+di+Tora\",1606 => \"/meteo/Castel+Focognano\",1607 => \"/meteo/Castel+frentano\",1608 => \"/meteo/Castel+Gabbiano\",1609 => \"/meteo/Castel+Gandolfo\",1610 => \"/meteo/Castel+Giorgio\",1611 => \"/meteo/Castel+Goffredo\",1612 => \"/meteo/Castel+Guelfo+di+Bologna\",1613 => \"/meteo/Castel+Madama\",1614 => \"/meteo/Castel+Maggiore\",1615 => \"/meteo/Castel+Mella\",1616 => \"/meteo/Castel+Morrone\",1617 => \"/meteo/Castel+Ritaldi\",1618 => \"/meteo/Castel+Rocchero\",1619 => \"/meteo/Castel+Rozzone\",1620 => \"/meteo/Castel+San+Giorgio\",1621 => \"/meteo/Castel+San+Giovanni\",1622 => \"/meteo/Castel+San+Lorenzo\",1623 => \"/meteo/Castel+San+Niccolo'\",1624 => \"/meteo/Castel+San+Pietro+romano\",1625 => \"/meteo/Castel+San+Pietro+terme\",1626 => \"/meteo/Castel+San+Vincenzo\",1627 => \"/meteo/Castel+Sant'Angelo\",1628 => \"/meteo/Castel+Sant'Elia\",1629 => \"/meteo/Castel+Viscardo\",1630 => \"/meteo/Castel+Vittorio\",1631 => \"/meteo/Castel+volturno\",1632 => \"/meteo/Castelbaldo\",1633 => \"/meteo/Castelbelforte\",1634 => \"/meteo/Castelbellino\",1635 => \"/meteo/Castelbello+Ciardes\",1636 => \"/meteo/Castelbianco\",1637 => \"/meteo/Castelbottaccio\",1638 => \"/meteo/Castelbuono\",1639 => \"/meteo/Castelcivita\",1640 => \"/meteo/Castelcovati\",1641 => \"/meteo/Castelcucco\",1642 => \"/meteo/Casteldaccia\",1643 => \"/meteo/Casteldelci\",1644 => \"/meteo/Casteldelfino\",1645 => \"/meteo/Casteldidone\",1646 => \"/meteo/Castelfidardo\",1647 => \"/meteo/Castelfiorentino\",1648 => \"/meteo/Castelfondo\",1649 => \"/meteo/Castelforte\",1650 => \"/meteo/Castelfranci\",1651 => \"/meteo/Castelfranco+di+sopra\",1652 => \"/meteo/Castelfranco+di+sotto\",1653 => \"/meteo/Castelfranco+Emilia\",1654 => \"/meteo/Castelfranco+in+Miscano\",1655 => \"/meteo/Castelfranco+Veneto\",1656 => \"/meteo/Castelgomberto\",8385 => \"/meteo/Castelgrande\",1658 => \"/meteo/Castelguglielmo\",1659 => \"/meteo/Castelguidone\",1660 => \"/meteo/Castell'alfero\",1661 => \"/meteo/Castell'arquato\",1662 => \"/meteo/Castell'azzara\",1663 => \"/meteo/Castell'umberto\",1664 => \"/meteo/Castellabate\",1665 => \"/meteo/Castellafiume\",1666 => \"/meteo/Castellalto\",1667 => \"/meteo/Castellammare+del+Golfo\",1668 => \"/meteo/Castellammare+di+Stabia\",1669 => \"/meteo/Castellamonte\",1670 => \"/meteo/Castellana+Grotte\",1671 => \"/meteo/Castellana+sicula\",1672 => \"/meteo/Castellaneta\",1673 => \"/meteo/Castellania\",1674 => \"/meteo/Castellanza\",1675 => \"/meteo/Castellar\",1676 => \"/meteo/Castellar+Guidobono\",1677 => \"/meteo/Castellarano\",1678 => \"/meteo/Castellaro\",1679 => \"/meteo/Castellazzo+Bormida\",1680 => \"/meteo/Castellazzo+novarese\",1681 => \"/meteo/Castelleone\",1682 => \"/meteo/Castelleone+di+Suasa\",1683 => \"/meteo/Castellero\",1684 => \"/meteo/Castelletto+Cervo\",1685 => \"/meteo/Castelletto+d'Erro\",1686 => \"/meteo/Castelletto+d'Orba\",1687 => \"/meteo/Castelletto+di+Branduzzo\",1688 => \"/meteo/Castelletto+Merli\",1689 => \"/meteo/Castelletto+Molina\",1690 => \"/meteo/Castelletto+monferrato\",1691 => \"/meteo/Castelletto+sopra+Ticino\",1692 => \"/meteo/Castelletto+Stura\",1693 => \"/meteo/Castelletto+Uzzone\",1694 => \"/meteo/Castelli\",1695 => \"/meteo/Castelli+Calepio\",1696 => \"/meteo/Castellina+in+chianti\",1697 => \"/meteo/Castellina+marittima\",1698 => \"/meteo/Castellinaldo\",1699 => \"/meteo/Castellino+del+Biferno\",1700 => \"/meteo/Castellino+Tanaro\",1701 => \"/meteo/Castelliri\",1702 => \"/meteo/Castello+Cabiaglio\",1703 => \"/meteo/Castello+d'Agogna\",1704 => \"/meteo/Castello+d'Argile\",1705 => \"/meteo/Castello+del+matese\",1706 => \"/meteo/Castello+dell'Acqua\",1707 => \"/meteo/Castello+di+Annone\",1708 => \"/meteo/Castello+di+brianza\",1709 => \"/meteo/Castello+di+Cisterna\",1710 => \"/meteo/Castello+di+Godego\",1711 => \"/meteo/Castello+di+Serravalle\",1712 => \"/meteo/Castello+Lavazzo\",1714 => \"/meteo/Castello+Molina+di+Fiemme\",1713 => \"/meteo/Castello+tesino\",1715 => \"/meteo/Castellucchio\",8219 => \"/meteo/Castelluccio\",1716 => \"/meteo/Castelluccio+dei+Sauri\",8395 => \"/meteo/Castelluccio+inferiore\",8359 => \"/meteo/Castelluccio+superiore\",1719 => \"/meteo/Castelluccio+valmaggiore\",8452 => \"/meteo/Castelmadama+casello\",1720 => \"/meteo/Castelmagno\",1721 => \"/meteo/Castelmarte\",1722 => \"/meteo/Castelmassa\",1723 => \"/meteo/Castelmauro\",8363 => \"/meteo/Castelmezzano\",1725 => \"/meteo/Castelmola\",1726 => \"/meteo/Castelnovetto\",1727 => \"/meteo/Castelnovo+Bariano\",1728 => \"/meteo/Castelnovo+del+Friuli\",1729 => \"/meteo/Castelnovo+di+sotto\",8124 => \"/meteo/Castelnovo+ne'+Monti\",1731 => \"/meteo/Castelnuovo\",1732 => \"/meteo/Castelnuovo+Belbo\",1733 => \"/meteo/Castelnuovo+Berardenga\",1734 => \"/meteo/Castelnuovo+bocca+d'Adda\",1735 => \"/meteo/Castelnuovo+Bormida\",1736 => \"/meteo/Castelnuovo+Bozzente\",1737 => \"/meteo/Castelnuovo+Calcea\",1738 => \"/meteo/Castelnuovo+cilento\",1739 => \"/meteo/Castelnuovo+del+Garda\",1740 => \"/meteo/Castelnuovo+della+daunia\",1741 => \"/meteo/Castelnuovo+di+Ceva\",1742 => \"/meteo/Castelnuovo+di+Conza\",1743 => \"/meteo/Castelnuovo+di+Farfa\",1744 => \"/meteo/Castelnuovo+di+Garfagnana\",1745 => \"/meteo/Castelnuovo+di+Porto\",1746 => \"/meteo/Castelnuovo+di+val+di+Cecina\",1747 => \"/meteo/Castelnuovo+Don+Bosco\",1748 => \"/meteo/Castelnuovo+Magra\",1749 => \"/meteo/Castelnuovo+Nigra\",1750 => \"/meteo/Castelnuovo+Parano\",1751 => \"/meteo/Castelnuovo+Rangone\",1752 => \"/meteo/Castelnuovo+Scrivia\",1753 => \"/meteo/Castelpagano\",1754 => \"/meteo/Castelpetroso\",1755 => \"/meteo/Castelpizzuto\",1756 => \"/meteo/Castelplanio\",1757 => \"/meteo/Castelpoto\",1758 => \"/meteo/Castelraimondo\",1759 => \"/meteo/Castelrotto\",1760 => \"/meteo/Castelsantangelo+sul+Nera\",8378 => \"/meteo/Castelsaraceno\",1762 => \"/meteo/Castelsardo\",1763 => \"/meteo/Castelseprio\",1764 => \"/meteo/Castelsilano\",1765 => \"/meteo/Castelspina\",1766 => \"/meteo/Casteltermini\",1767 => \"/meteo/Castelveccana\",1768 => \"/meteo/Castelvecchio+Calvisio\",1769 => \"/meteo/Castelvecchio+di+Rocca+Barbena\",1770 => \"/meteo/Castelvecchio+Subequo\",1771 => \"/meteo/Castelvenere\",1772 => \"/meteo/Castelverde\",1773 => \"/meteo/Castelverrino\",1774 => \"/meteo/Castelvetere+in+val+fortore\",1775 => \"/meteo/Castelvetere+sul+Calore\",1776 => \"/meteo/Castelvetrano\",1777 => \"/meteo/Castelvetro+di+Modena\",1778 => \"/meteo/Castelvetro+piacentino\",1779 => \"/meteo/Castelvisconti\",1780 => \"/meteo/Castenaso\",1781 => \"/meteo/Castenedolo\",1782 => \"/meteo/Castiadas\",1783 => \"/meteo/Castiglion+Fibocchi\",1784 => \"/meteo/Castiglion+fiorentino\",8193 => \"/meteo/Castiglioncello\",1785 => \"/meteo/Castiglione+a+Casauria\",1786 => \"/meteo/Castiglione+chiavarese\",1787 => \"/meteo/Castiglione+cosentino\",1788 => \"/meteo/Castiglione+d'Adda\",1789 => \"/meteo/Castiglione+d'Intelvi\",1790 => \"/meteo/Castiglione+d'Orcia\",1791 => \"/meteo/Castiglione+dei+Pepoli\",1792 => \"/meteo/Castiglione+del+Genovesi\",1793 => \"/meteo/Castiglione+del+Lago\",1794 => \"/meteo/Castiglione+della+Pescaia\",1795 => \"/meteo/Castiglione+delle+Stiviere\",1796 => \"/meteo/Castiglione+di+garfagnana\",1797 => \"/meteo/Castiglione+di+Sicilia\",1798 => \"/meteo/Castiglione+Falletto\",1799 => \"/meteo/Castiglione+in+teverina\",1800 => \"/meteo/Castiglione+Messer+Marino\",1801 => \"/meteo/Castiglione+Messer+Raimondo\",1802 => \"/meteo/Castiglione+Olona\",1803 => \"/meteo/Castiglione+Tinella\",1804 => \"/meteo/Castiglione+torinese\",1805 => \"/meteo/Castignano\",1806 => \"/meteo/Castilenti\",1807 => \"/meteo/Castino\",1808 => \"/meteo/Castione+Andevenno\",1809 => \"/meteo/Castione+della+Presolana\",1810 => \"/meteo/Castions+di+Strada\",1811 => \"/meteo/Castiraga+Vidardo\",1812 => \"/meteo/Casto\",1813 => \"/meteo/Castorano\",8723 => \"/meteo/Castore\",1814 => \"/meteo/Castrezzato\",1815 => \"/meteo/Castri+di+Lecce\",1816 => \"/meteo/Castrignano+de'+Greci\",1817 => \"/meteo/Castrignano+del+Capo\",1818 => \"/meteo/Castro\",1819 => \"/meteo/Castro\",1820 => \"/meteo/Castro+dei+Volsci\",8167 => \"/meteo/Castro+Marina\",1821 => \"/meteo/Castrocaro+terme+e+terra+del+Sole\",1822 => \"/meteo/Castrocielo\",1823 => \"/meteo/Castrofilippo\",1824 => \"/meteo/Castrolibero\",1825 => \"/meteo/Castronno\",1826 => \"/meteo/Castronuovo+di+Sant'Andrea\",1827 => \"/meteo/Castronuovo+di+Sicilia\",1828 => \"/meteo/Castropignano\",1829 => \"/meteo/Castroreale\",1830 => \"/meteo/Castroregio\",1831 => \"/meteo/Castrovillari\",1832 => \"/meteo/Catania\",8273 => \"/meteo/Catania+Fontanarossa\",1833 => \"/meteo/Catanzaro\",1834 => \"/meteo/Catenanuova\",1835 => \"/meteo/Catignano\",8281 => \"/meteo/Catinaccio\",1836 => \"/meteo/Cattolica\",1837 => \"/meteo/Cattolica+Eraclea\",1838 => \"/meteo/Caulonia\",8673 => \"/meteo/Caulonia+Marina\",1839 => \"/meteo/Cautano\",1840 => \"/meteo/Cava+de'+Tirreni\",1841 => \"/meteo/Cava+manara\",1842 => \"/meteo/Cavacurta\",1843 => \"/meteo/Cavaglia'\",1844 => \"/meteo/Cavaglietto\",1845 => \"/meteo/Cavaglio+d'Agogna\",1846 => \"/meteo/Cavaglio+Spoccia\",1847 => \"/meteo/Cavagnolo\",1848 => \"/meteo/Cavaion+veronese\",1849 => \"/meteo/Cavalese\",1850 => \"/meteo/Cavallasca\",1851 => \"/meteo/Cavallerleone\",1852 => \"/meteo/Cavallermaggiore\",1853 => \"/meteo/Cavallino\",8657 => \"/meteo/Cavallino\",1854 => \"/meteo/Cavallino+treporti\",1855 => \"/meteo/Cavallirio\",1856 => \"/meteo/Cavareno\",1857 => \"/meteo/Cavargna\",1858 => \"/meteo/Cavaria+con+Premezzo\",1859 => \"/meteo/Cavarzere\",1860 => \"/meteo/Cavaso+del+Tomba\",1861 => \"/meteo/Cavasso+nuovo\",1862 => \"/meteo/Cavatore\",1863 => \"/meteo/Cavazzo+carnico\",1864 => \"/meteo/Cave\",1865 => \"/meteo/Cavedago\",1866 => \"/meteo/Cavedine\",1867 => \"/meteo/Cavenago+d'Adda\",1868 => \"/meteo/Cavenago+di+brianza\",1869 => \"/meteo/Cavernago\",1870 => \"/meteo/Cavezzo\",1871 => \"/meteo/Cavizzana\",1872 => \"/meteo/Cavour\",1873 => \"/meteo/Cavriago\",1874 => \"/meteo/Cavriana\",1875 => \"/meteo/Cavriglia\",1876 => \"/meteo/Cazzago+Brabbia\",1877 => \"/meteo/Cazzago+San+Martino\",1878 => \"/meteo/Cazzano+di+Tramigna\",1879 => \"/meteo/Cazzano+Sant'Andrea\",1880 => \"/meteo/Ceccano\",1881 => \"/meteo/Cecima\",1882 => \"/meteo/Cecina\",1883 => \"/meteo/Cedegolo\",1884 => \"/meteo/Cedrasco\",1885 => \"/meteo/Cefala'+Diana\",1886 => \"/meteo/Cefalu'\",1887 => \"/meteo/Ceggia\",1888 => \"/meteo/Ceglie+Messapica\",1889 => \"/meteo/Celano\",1890 => \"/meteo/Celenza+sul+Trigno\",1891 => \"/meteo/Celenza+valfortore\",1892 => \"/meteo/Celico\",1893 => \"/meteo/Cella+dati\",1894 => \"/meteo/Cella+monte\",1895 => \"/meteo/Cellamare\",1896 => \"/meteo/Cellara\",1897 => \"/meteo/Cellarengo\",1898 => \"/meteo/Cellatica\",1899 => \"/meteo/Celle+di+Bulgheria\",1900 => \"/meteo/Celle+di+Macra\",1901 => \"/meteo/Celle+di+San+Vito\",1902 => \"/meteo/Celle+Enomondo\",1903 => \"/meteo/Celle+ligure\",1904 => \"/meteo/Celleno\",1905 => \"/meteo/Cellere\",1906 => \"/meteo/Cellino+Attanasio\",1907 => \"/meteo/Cellino+San+Marco\",1908 => \"/meteo/Cellio\",1909 => \"/meteo/Cellole\",1910 => \"/meteo/Cembra\",1911 => \"/meteo/Cenadi\",1912 => \"/meteo/Cenate+sopra\",1913 => \"/meteo/Cenate+sotto\",1914 => \"/meteo/Cencenighe+Agordino\",1915 => \"/meteo/Cene\",1916 => \"/meteo/Ceneselli\",1917 => \"/meteo/Cengio\",1918 => \"/meteo/Centa+San+Nicolo'\",1919 => \"/meteo/Centallo\",1920 => \"/meteo/Cento\",1921 => \"/meteo/Centola\",1922 => \"/meteo/Centrache\",1923 => \"/meteo/Centuripe\",1924 => \"/meteo/Cepagatti\",1925 => \"/meteo/Ceppaloni\",1926 => \"/meteo/Ceppo+Morelli\",1927 => \"/meteo/Ceprano\",1928 => \"/meteo/Cerami\",1929 => \"/meteo/Ceranesi\",1930 => \"/meteo/Cerano\",1931 => \"/meteo/Cerano+d'intelvi\",1932 => \"/meteo/Ceranova\",1933 => \"/meteo/Ceraso\",1934 => \"/meteo/Cercemaggiore\",1935 => \"/meteo/Cercenasco\",1936 => \"/meteo/Cercepiccola\",1937 => \"/meteo/Cerchiara+di+Calabria\",1938 => \"/meteo/Cerchio\",1939 => \"/meteo/Cercino\",1940 => \"/meteo/Cercivento\",1941 => \"/meteo/Cercola\",1942 => \"/meteo/Cerda\",1943 => \"/meteo/Cerea\",1944 => \"/meteo/Ceregnano\",1945 => \"/meteo/Cerenzia\",1946 => \"/meteo/Ceres\",1947 => \"/meteo/Ceresara\",1948 => \"/meteo/Cereseto\",1949 => \"/meteo/Ceresole+Alba\",1950 => \"/meteo/Ceresole+reale\",1951 => \"/meteo/Cerete\",1952 => \"/meteo/Ceretto+lomellina\",1953 => \"/meteo/Cergnago\",1954 => \"/meteo/Ceriale\",1955 => \"/meteo/Ceriana\",1956 => \"/meteo/Ceriano+Laghetto\",1957 => \"/meteo/Cerignale\",1958 => \"/meteo/Cerignola\",1959 => \"/meteo/Cerisano\",1960 => \"/meteo/Cermenate\",1961 => \"/meteo/Cermes\",1962 => \"/meteo/Cermignano\",1963 => \"/meteo/Cernobbio\",1964 => \"/meteo/Cernusco+lombardone\",1965 => \"/meteo/Cernusco+sul+Naviglio\",1966 => \"/meteo/Cerreto+Castello\",1967 => \"/meteo/Cerreto+d'Asti\",1968 => \"/meteo/Cerreto+d'Esi\",1969 => \"/meteo/Cerreto+di+Spoleto\",1970 => \"/meteo/Cerreto+Grue\",1971 => \"/meteo/Cerreto+Guidi\",1972 => \"/meteo/Cerreto+langhe\",1973 => \"/meteo/Cerreto+laziale\",1974 => \"/meteo/Cerreto+sannita\",1975 => \"/meteo/Cerrina+monferrato\",1976 => \"/meteo/Cerrione\",1977 => \"/meteo/Cerro+al+Lambro\",1978 => \"/meteo/Cerro+al+Volturno\",1979 => \"/meteo/Cerro+maggiore\",1980 => \"/meteo/Cerro+Tanaro\",1981 => \"/meteo/Cerro+veronese\",8396 => \"/meteo/Cersosimo\",1983 => \"/meteo/Certaldo\",1984 => \"/meteo/Certosa+di+Pavia\",1985 => \"/meteo/Cerva\",1986 => \"/meteo/Cervara+di+Roma\",1987 => \"/meteo/Cervarese+Santa+Croce\",1988 => \"/meteo/Cervaro\",1989 => \"/meteo/Cervasca\",1990 => \"/meteo/Cervatto\",1991 => \"/meteo/Cerveno\",1992 => \"/meteo/Cervere\",1993 => \"/meteo/Cervesina\",1994 => \"/meteo/Cerveteri\",1995 => \"/meteo/Cervia\",1996 => \"/meteo/Cervicati\",1997 => \"/meteo/Cervignano+d'Adda\",1998 => \"/meteo/Cervignano+del+Friuli\",1999 => \"/meteo/Cervinara\",2000 => \"/meteo/Cervino\",2001 => \"/meteo/Cervo\",2002 => \"/meteo/Cerzeto\",2003 => \"/meteo/Cesa\",2004 => \"/meteo/Cesana+brianza\",2005 => \"/meteo/Cesana+torinese\",2006 => \"/meteo/Cesano+Boscone\",2007 => \"/meteo/Cesano+Maderno\",2008 => \"/meteo/Cesara\",2009 => \"/meteo/Cesaro'\",2010 => \"/meteo/Cesate\",2011 => \"/meteo/Cesena\",2012 => \"/meteo/Cesenatico\",2013 => \"/meteo/Cesinali\",2014 => \"/meteo/Cesio\",2015 => \"/meteo/Cesiomaggiore\",2016 => \"/meteo/Cessalto\",2017 => \"/meteo/Cessaniti\",2018 => \"/meteo/Cessapalombo\",2019 => \"/meteo/Cessole\",2020 => \"/meteo/Cetara\",2021 => \"/meteo/Ceto\",2022 => \"/meteo/Cetona\",2023 => \"/meteo/Cetraro\",2024 => \"/meteo/Ceva\",8721 => \"/meteo/Cevedale\",2025 => \"/meteo/Cevo\",2026 => \"/meteo/Challand+Saint+Anselme\",2027 => \"/meteo/Challand+Saint+Victor\",2028 => \"/meteo/Chambave\",2029 => \"/meteo/Chamois\",8255 => \"/meteo/Chamole`\",2030 => \"/meteo/Champdepraz\",8225 => \"/meteo/Champoluc\",2031 => \"/meteo/Champorcher\",8331 => \"/meteo/Champorcher+Cimetta+Rossa\",8330 => \"/meteo/Champorcher+Laris\",2032 => \"/meteo/Charvensod\",2033 => \"/meteo/Chatillon\",2034 => \"/meteo/Cherasco\",2035 => \"/meteo/Cheremule\",8668 => \"/meteo/Chesal\",2036 => \"/meteo/Chialamberto\",2037 => \"/meteo/Chiampo\",2038 => \"/meteo/Chianche\",2039 => \"/meteo/Chianciano+terme\",2040 => \"/meteo/Chianni\",2041 => \"/meteo/Chianocco\",2042 => \"/meteo/Chiaramonte+Gulfi\",2043 => \"/meteo/Chiaramonti\",2044 => \"/meteo/Chiarano\",2045 => \"/meteo/Chiaravalle\",2046 => \"/meteo/Chiaravalle+centrale\",8151 => \"/meteo/Chiareggio\",2047 => \"/meteo/Chiari\",2048 => \"/meteo/Chiaromonte\",8432 => \"/meteo/Chiasso\",2049 => \"/meteo/Chiauci\",2050 => \"/meteo/Chiavari\",2051 => \"/meteo/Chiavenna\",2052 => \"/meteo/Chiaverano\",2053 => \"/meteo/Chienes\",2054 => \"/meteo/Chieri\",2055 => \"/meteo/Chies+d'Alpago\",2056 => \"/meteo/Chiesa+in+valmalenco\",2057 => \"/meteo/Chiesanuova\",2058 => \"/meteo/Chiesina+uzzanese\",2059 => \"/meteo/Chieti\",8319 => \"/meteo/Chieti+Scalo\",2060 => \"/meteo/Chieuti\",2061 => \"/meteo/Chieve\",2062 => \"/meteo/Chignolo+d'Isola\",2063 => \"/meteo/Chignolo+Po\",2064 => \"/meteo/Chioggia\",2065 => \"/meteo/Chiomonte\",2066 => \"/meteo/Chions\",2067 => \"/meteo/Chiopris+Viscone\",2068 => \"/meteo/Chitignano\",2069 => \"/meteo/Chiuduno\",2070 => \"/meteo/Chiuppano\",2071 => \"/meteo/Chiuro\",2072 => \"/meteo/Chiusa\",2073 => \"/meteo/Chiusa+di+Pesio\",2074 => \"/meteo/Chiusa+di+San+Michele\",2075 => \"/meteo/Chiusa+Sclafani\",2076 => \"/meteo/Chiusaforte\",2077 => \"/meteo/Chiusanico\",2078 => \"/meteo/Chiusano+d'Asti\",2079 => \"/meteo/Chiusano+di+San+Domenico\",2080 => \"/meteo/Chiusavecchia\",2081 => \"/meteo/Chiusdino\",2082 => \"/meteo/Chiusi\",2083 => \"/meteo/Chiusi+della+Verna\",2084 => \"/meteo/Chivasso\",8515 => \"/meteo/Ciampac+Alba\",2085 => \"/meteo/Ciampino\",2086 => \"/meteo/Cianciana\",2087 => \"/meteo/Cibiana+di+cadore\",2088 => \"/meteo/Cicagna\",2089 => \"/meteo/Cicala\",2090 => \"/meteo/Cicciano\",2091 => \"/meteo/Cicerale\",2092 => \"/meteo/Ciciliano\",2093 => \"/meteo/Cicognolo\",2094 => \"/meteo/Ciconio\",2095 => \"/meteo/Cigliano\",2096 => \"/meteo/Ciglie'\",2097 => \"/meteo/Cigognola\",2098 => \"/meteo/Cigole\",2099 => \"/meteo/Cilavegna\",8340 => \"/meteo/Cima+Durand\",8590 => \"/meteo/Cima+Pisciadu'\",8764 => \"/meteo/Cima+Plose\",8703 => \"/meteo/Cima+Portavescovo\",8282 => \"/meteo/Cima+Sole\",2100 => \"/meteo/Cimadolmo\",2101 => \"/meteo/Cimbergo\",8332 => \"/meteo/Cime+Bianche\",2102 => \"/meteo/Cimego\",2103 => \"/meteo/Cimina'\",2104 => \"/meteo/Ciminna\",2105 => \"/meteo/Cimitile\",2106 => \"/meteo/Cimolais\",8433 => \"/meteo/Cimoncino\",2107 => \"/meteo/Cimone\",2108 => \"/meteo/Cinaglio\",2109 => \"/meteo/Cineto+romano\",2110 => \"/meteo/Cingia+de'+Botti\",2111 => \"/meteo/Cingoli\",2112 => \"/meteo/Cinigiano\",2113 => \"/meteo/Cinisello+Balsamo\",2114 => \"/meteo/Cinisi\",2115 => \"/meteo/Cino\",2116 => \"/meteo/Cinquefrondi\",2117 => \"/meteo/Cintano\",2118 => \"/meteo/Cinte+tesino\",2119 => \"/meteo/Cinto+Caomaggiore\",2120 => \"/meteo/Cinto+Euganeo\",2121 => \"/meteo/Cinzano\",2122 => \"/meteo/Ciorlano\",2123 => \"/meteo/Cipressa\",2124 => \"/meteo/Circello\",2125 => \"/meteo/Cirie'\",2126 => \"/meteo/Cirigliano\",2127 => \"/meteo/Cirimido\",2128 => \"/meteo/Ciro'\",2129 => \"/meteo/Ciro'+marina\",2130 => \"/meteo/Cis\",2131 => \"/meteo/Cisano+bergamasco\",2132 => \"/meteo/Cisano+sul+Neva\",2133 => \"/meteo/Ciserano\",2134 => \"/meteo/Cislago\",2135 => \"/meteo/Cisliano\",2136 => \"/meteo/Cismon+del+Grappa\",2137 => \"/meteo/Cison+di+valmarino\",2138 => \"/meteo/Cissone\",2139 => \"/meteo/Cisterna+d'Asti\",2140 => \"/meteo/Cisterna+di+Latina\",2141 => \"/meteo/Cisternino\",2142 => \"/meteo/Citerna\",8142 => \"/meteo/Città+del+Vaticano\",2143 => \"/meteo/Citta'+della+Pieve\",2144 => \"/meteo/Citta'+di+Castello\",2145 => \"/meteo/Citta'+Sant'Angelo\",2146 => \"/meteo/Cittadella\",2147 => \"/meteo/Cittaducale\",2148 => \"/meteo/Cittanova\",2149 => \"/meteo/Cittareale\",2150 => \"/meteo/Cittiglio\",2151 => \"/meteo/Civate\",2152 => \"/meteo/Civenna\",2153 => \"/meteo/Civezza\",2154 => \"/meteo/Civezzano\",2155 => \"/meteo/Civiasco\",2156 => \"/meteo/Cividale+del+Friuli\",2157 => \"/meteo/Cividate+al+piano\",2158 => \"/meteo/Cividate+camuno\",2159 => \"/meteo/Civita\",2160 => \"/meteo/Civita+Castellana\",2161 => \"/meteo/Civita+d'Antino\",2162 => \"/meteo/Civitacampomarano\",2163 => \"/meteo/Civitaluparella\",2164 => \"/meteo/Civitanova+del+sannio\",2165 => \"/meteo/Civitanova+Marche\",8356 => \"/meteo/Civitaquana\",2167 => \"/meteo/Civitavecchia\",2168 => \"/meteo/Civitella+Alfedena\",2169 => \"/meteo/Civitella+Casanova\",2170 => \"/meteo/Civitella+d'Agliano\",2171 => \"/meteo/Civitella+del+Tronto\",2172 => \"/meteo/Civitella+di+Romagna\",2173 => \"/meteo/Civitella+in+val+di+Chiana\",2174 => \"/meteo/Civitella+Messer+Raimondo\",2175 => \"/meteo/Civitella+Paganico\",2176 => \"/meteo/Civitella+Roveto\",2177 => \"/meteo/Civitella+San+Paolo\",2178 => \"/meteo/Civo\",2179 => \"/meteo/Claino+con+osteno\",2180 => \"/meteo/Claut\",2181 => \"/meteo/Clauzetto\",2182 => \"/meteo/Clavesana\",2183 => \"/meteo/Claviere\",2184 => \"/meteo/Cles\",2185 => \"/meteo/Cleto\",2186 => \"/meteo/Clivio\",2187 => \"/meteo/Cloz\",2188 => \"/meteo/Clusone\",2189 => \"/meteo/Coassolo+torinese\",2190 => \"/meteo/Coazze\",2191 => \"/meteo/Coazzolo\",2192 => \"/meteo/Coccaglio\",2193 => \"/meteo/Cocconato\",2194 => \"/meteo/Cocquio+Trevisago\",2195 => \"/meteo/Cocullo\",2196 => \"/meteo/Codevigo\",2197 => \"/meteo/Codevilla\",2198 => \"/meteo/Codigoro\",2199 => \"/meteo/Codogne'\",2200 => \"/meteo/Codogno\",2201 => \"/meteo/Codroipo\",2202 => \"/meteo/Codrongianos\",2203 => \"/meteo/Coggiola\",2204 => \"/meteo/Cogliate\",2205 => \"/meteo/Cogne\",8654 => \"/meteo/Cogne+Lillaz\",2206 => \"/meteo/Cogoleto\",2207 => \"/meteo/Cogollo+del+Cengio\",5049 => \"/meteo/Cogolo\",2208 => \"/meteo/Cogorno\",8354 => \"/meteo/Col+de+Joux\",8604 => \"/meteo/Col+Indes\",2209 => \"/meteo/Colazza\",2210 => \"/meteo/Colbordolo\",2211 => \"/meteo/Colere\",2212 => \"/meteo/Colfelice\",8217 => \"/meteo/Colfiorito\",8761 => \"/meteo/Colfosco\",2213 => \"/meteo/Coli\",2214 => \"/meteo/Colico\",2215 => \"/meteo/Collagna\",2216 => \"/meteo/Collalto+sabino\",2217 => \"/meteo/Collarmele\",2218 => \"/meteo/Collazzone\",8249 => \"/meteo/Colle+Bettaforca\",2219 => \"/meteo/Colle+Brianza\",2220 => \"/meteo/Colle+d'Anchise\",8687 => \"/meteo/Colle+del+Gran+San+Bernardo\",8688 => \"/meteo/Colle+del+Moncenisio\",8686 => \"/meteo/Colle+del+Piccolo+San+Bernardo\",8481 => \"/meteo/Colle+del+Prel\",2221 => \"/meteo/Colle+di+Tora\",2222 => \"/meteo/Colle+di+val+d'Elsa\",2223 => \"/meteo/Colle+San+Magno\",2224 => \"/meteo/Colle+sannita\",2225 => \"/meteo/Colle+Santa+Lucia\",8246 => \"/meteo/Colle+Sarezza\",2226 => \"/meteo/Colle+Umberto\",2227 => \"/meteo/Collebeato\",2228 => \"/meteo/Collecchio\",2229 => \"/meteo/Collecorvino\",2230 => \"/meteo/Colledara\",8453 => \"/meteo/Colledara+casello\",2231 => \"/meteo/Colledimacine\",2232 => \"/meteo/Colledimezzo\",2233 => \"/meteo/Colleferro\",2234 => \"/meteo/Collegiove\",2235 => \"/meteo/Collegno\",2236 => \"/meteo/Collelongo\",2237 => \"/meteo/Collepardo\",2238 => \"/meteo/Collepasso\",2239 => \"/meteo/Collepietro\",2240 => \"/meteo/Colleretto+castelnuovo\",2241 => \"/meteo/Colleretto+Giacosa\",2242 => \"/meteo/Collesalvetti\",2243 => \"/meteo/Collesano\",2244 => \"/meteo/Colletorto\",2245 => \"/meteo/Collevecchio\",2246 => \"/meteo/Colli+a+volturno\",2247 => \"/meteo/Colli+del+Tronto\",2248 => \"/meteo/Colli+sul+Velino\",2249 => \"/meteo/Colliano\",2250 => \"/meteo/Collinas\",2251 => \"/meteo/Collio\",2252 => \"/meteo/Collobiano\",2253 => \"/meteo/Colloredo+di+monte+Albano\",2254 => \"/meteo/Colmurano\",2255 => \"/meteo/Colobraro\",2256 => \"/meteo/Cologna+veneta\",2257 => \"/meteo/Cologne\",2258 => \"/meteo/Cologno+al+Serio\",2259 => \"/meteo/Cologno+monzese\",2260 => \"/meteo/Colognola+ai+Colli\",2261 => \"/meteo/Colonna\",2262 => \"/meteo/Colonnella\",2263 => \"/meteo/Colonno\",2264 => \"/meteo/Colorina\",2265 => \"/meteo/Colorno\",2266 => \"/meteo/Colosimi\",2267 => \"/meteo/Colturano\",2268 => \"/meteo/Colzate\",2269 => \"/meteo/Comabbio\",2270 => \"/meteo/Comacchio\",2271 => \"/meteo/Comano\",2272 => \"/meteo/Comazzo\",2273 => \"/meteo/Comeglians\",2274 => \"/meteo/Comelico+superiore\",2275 => \"/meteo/Comerio\",2276 => \"/meteo/Comezzano+Cizzago\",2277 => \"/meteo/Comignago\",2278 => \"/meteo/Comiso\",2279 => \"/meteo/Comitini\",2280 => \"/meteo/Comiziano\",2281 => \"/meteo/Commessaggio\",2282 => \"/meteo/Commezzadura\",2283 => \"/meteo/Como\",2284 => \"/meteo/Compiano\",8711 => \"/meteo/Comprensorio+Cimone\",2285 => \"/meteo/Comun+nuovo\",2286 => \"/meteo/Comunanza\",2287 => \"/meteo/Cona\",2288 => \"/meteo/Conca+Casale\",2289 => \"/meteo/Conca+dei+Marini\",2290 => \"/meteo/Conca+della+Campania\",2291 => \"/meteo/Concamarise\",2292 => \"/meteo/Concei\",2293 => \"/meteo/Concerviano\",2294 => \"/meteo/Concesio\",2295 => \"/meteo/Conco\",2296 => \"/meteo/Concordia+Sagittaria\",2297 => \"/meteo/Concordia+sulla+Secchia\",2298 => \"/meteo/Concorezzo\",2299 => \"/meteo/Condino\",2300 => \"/meteo/Condofuri\",8689 => \"/meteo/Condofuri+Marina\",2301 => \"/meteo/Condove\",2302 => \"/meteo/Condro'\",2303 => \"/meteo/Conegliano\",2304 => \"/meteo/Confienza\",2305 => \"/meteo/Configni\",2306 => \"/meteo/Conflenti\",2307 => \"/meteo/Coniolo\",2308 => \"/meteo/Conselice\",2309 => \"/meteo/Conselve\",2310 => \"/meteo/Consiglio+di+Rumo\",2311 => \"/meteo/Contessa+Entellina\",2312 => \"/meteo/Contigliano\",2313 => \"/meteo/Contrada\",2314 => \"/meteo/Controguerra\",2315 => \"/meteo/Controne\",2316 => \"/meteo/Contursi+terme\",2317 => \"/meteo/Conversano\",2318 => \"/meteo/Conza+della+Campania\",2319 => \"/meteo/Conzano\",2320 => \"/meteo/Copertino\",2321 => \"/meteo/Copiano\",2322 => \"/meteo/Copparo\",2323 => \"/meteo/Corana\",2324 => \"/meteo/Corato\",2325 => \"/meteo/Corbara\",2326 => \"/meteo/Corbetta\",2327 => \"/meteo/Corbola\",2328 => \"/meteo/Corchiano\",2329 => \"/meteo/Corciano\",2330 => \"/meteo/Cordenons\",2331 => \"/meteo/Cordignano\",2332 => \"/meteo/Cordovado\",2333 => \"/meteo/Coredo\",2334 => \"/meteo/Coreglia+Antelminelli\",2335 => \"/meteo/Coreglia+ligure\",2336 => \"/meteo/Coreno+Ausonio\",2337 => \"/meteo/Corfinio\",2338 => \"/meteo/Cori\",2339 => \"/meteo/Coriano\",2340 => \"/meteo/Corigliano+calabro\",8110 => \"/meteo/Corigliano+Calabro+Marina\",2341 => \"/meteo/Corigliano+d'Otranto\",2342 => \"/meteo/Corinaldo\",2343 => \"/meteo/Corio\",2344 => \"/meteo/Corleone\",2345 => \"/meteo/Corleto+monforte\",2346 => \"/meteo/Corleto+Perticara\",2347 => \"/meteo/Cormano\",2348 => \"/meteo/Cormons\",2349 => \"/meteo/Corna+imagna\",2350 => \"/meteo/Cornalba\",2351 => \"/meteo/Cornale\",2352 => \"/meteo/Cornaredo\",2353 => \"/meteo/Cornate+d'Adda\",2354 => \"/meteo/Cornedo+all'Isarco\",2355 => \"/meteo/Cornedo+vicentino\",2356 => \"/meteo/Cornegliano+laudense\",2357 => \"/meteo/Corneliano+d'Alba\",2358 => \"/meteo/Corniglio\",8537 => \"/meteo/Corno+alle+Scale\",8353 => \"/meteo/Corno+del+Renon\",2359 => \"/meteo/Corno+di+Rosazzo\",2360 => \"/meteo/Corno+Giovine\",2361 => \"/meteo/Cornovecchio\",2362 => \"/meteo/Cornuda\",2363 => \"/meteo/Correggio\",2364 => \"/meteo/Correzzana\",2365 => \"/meteo/Correzzola\",2366 => \"/meteo/Corrido\",2367 => \"/meteo/Corridonia\",2368 => \"/meteo/Corropoli\",2369 => \"/meteo/Corsano\",2370 => \"/meteo/Corsico\",2371 => \"/meteo/Corsione\",2372 => \"/meteo/Cortaccia+sulla+strada+del+vino\",2373 => \"/meteo/Cortale\",2374 => \"/meteo/Cortandone\",2375 => \"/meteo/Cortanze\",2376 => \"/meteo/Cortazzone\",2377 => \"/meteo/Corte+brugnatella\",2378 => \"/meteo/Corte+de'+Cortesi+con+Cignone\",2379 => \"/meteo/Corte+de'+Frati\",2380 => \"/meteo/Corte+Franca\",2381 => \"/meteo/Corte+Palasio\",2382 => \"/meteo/Cortemaggiore\",2383 => \"/meteo/Cortemilia\",2384 => \"/meteo/Corteno+Golgi\",2385 => \"/meteo/Cortenova\",2386 => \"/meteo/Cortenuova\",2387 => \"/meteo/Corteolona\",2388 => \"/meteo/Cortiglione\",2389 => \"/meteo/Cortina+d'Ampezzo\",2390 => \"/meteo/Cortina+sulla+strada+del+vino\",2391 => \"/meteo/Cortino\",2392 => \"/meteo/Cortona\",2393 => \"/meteo/Corvara\",2394 => \"/meteo/Corvara+in+Badia\",2395 => \"/meteo/Corvino+san+Quirico\",2396 => \"/meteo/Corzano\",2397 => \"/meteo/Coseano\",2398 => \"/meteo/Cosenza\",2399 => \"/meteo/Cosio+di+Arroscia\",2400 => \"/meteo/Cosio+valtellino\",2401 => \"/meteo/Cosoleto\",2402 => \"/meteo/Cossano+belbo\",2403 => \"/meteo/Cossano+canavese\",2404 => \"/meteo/Cossato\",2405 => \"/meteo/Cosseria\",2406 => \"/meteo/Cossignano\",2407 => \"/meteo/Cossogno\",2408 => \"/meteo/Cossoine\",2409 => \"/meteo/Cossombrato\",2410 => \"/meteo/Costa+de'+Nobili\",2411 => \"/meteo/Costa+di+Mezzate\",2412 => \"/meteo/Costa+di+Rovigo\",2413 => \"/meteo/Costa+di+serina\",2414 => \"/meteo/Costa+masnaga\",8177 => \"/meteo/Costa+Rei\",2415 => \"/meteo/Costa+valle+imagna\",2416 => \"/meteo/Costa+Vescovato\",2417 => \"/meteo/Costa+Volpino\",2418 => \"/meteo/Costabissara\",2419 => \"/meteo/Costacciaro\",2420 => \"/meteo/Costanzana\",2421 => \"/meteo/Costarainera\",2422 => \"/meteo/Costermano\",2423 => \"/meteo/Costigliole+d'Asti\",2424 => \"/meteo/Costigliole+Saluzzo\",2425 => \"/meteo/Cotignola\",2426 => \"/meteo/Cotronei\",2427 => \"/meteo/Cottanello\",8256 => \"/meteo/Couis+2\",2428 => \"/meteo/Courmayeur\",2429 => \"/meteo/Covo\",2430 => \"/meteo/Cozzo\",8382 => \"/meteo/Craco\",2432 => \"/meteo/Crandola+valsassina\",2433 => \"/meteo/Cravagliana\",2434 => \"/meteo/Cravanzana\",2435 => \"/meteo/Craveggia\",2436 => \"/meteo/Creazzo\",2437 => \"/meteo/Crecchio\",2438 => \"/meteo/Credaro\",2439 => \"/meteo/Credera+Rubbiano\",2440 => \"/meteo/Crema\",2441 => \"/meteo/Cremella\",2442 => \"/meteo/Cremenaga\",2443 => \"/meteo/Cremeno\",2444 => \"/meteo/Cremia\",2445 => \"/meteo/Cremolino\",2446 => \"/meteo/Cremona\",2447 => \"/meteo/Cremosano\",2448 => \"/meteo/Crescentino\",2449 => \"/meteo/Crespadoro\",2450 => \"/meteo/Crespano+del+Grappa\",2451 => \"/meteo/Crespellano\",2452 => \"/meteo/Crespiatica\",2453 => \"/meteo/Crespina\",2454 => \"/meteo/Crespino\",2455 => \"/meteo/Cressa\",8247 => \"/meteo/Crest\",8741 => \"/meteo/Cresta+Youla\",8646 => \"/meteo/Crevacol\",2456 => \"/meteo/Crevacuore\",2457 => \"/meteo/Crevalcore\",2458 => \"/meteo/Crevoladossola\",2459 => \"/meteo/Crispano\",2460 => \"/meteo/Crispiano\",2461 => \"/meteo/Crissolo\",8355 => \"/meteo/Crissolo+Pian+delle+Regine\",2462 => \"/meteo/Crocefieschi\",2463 => \"/meteo/Crocetta+del+Montello\",2464 => \"/meteo/Crodo\",2465 => \"/meteo/Crognaleto\",2466 => \"/meteo/Cropalati\",2467 => \"/meteo/Cropani\",2468 => \"/meteo/Crosa\",2469 => \"/meteo/Crosia\",2470 => \"/meteo/Crosio+della+valle\",2471 => \"/meteo/Crotone\",8552 => \"/meteo/Crotone+Sant'Anna\",2472 => \"/meteo/Crotta+d'Adda\",2473 => \"/meteo/Crova\",2474 => \"/meteo/Croviana\",2475 => \"/meteo/Crucoli\",2476 => \"/meteo/Cuasso+al+monte\",2477 => \"/meteo/Cuccaro+monferrato\",2478 => \"/meteo/Cuccaro+Vetere\",2479 => \"/meteo/Cucciago\",2480 => \"/meteo/Cuceglio\",2481 => \"/meteo/Cuggiono\",2482 => \"/meteo/Cugliate-fabiasco\",2483 => \"/meteo/Cuglieri\",2484 => \"/meteo/Cugnoli\",8718 => \"/meteo/Cuma\",2485 => \"/meteo/Cumiana\",2486 => \"/meteo/Cumignano+sul+Naviglio\",2487 => \"/meteo/Cunardo\",2488 => \"/meteo/Cuneo\",8553 => \"/meteo/Cuneo+Levaldigi\",2489 => \"/meteo/Cunevo\",2490 => \"/meteo/Cunico\",2491 => \"/meteo/Cuorgne'\",2492 => \"/meteo/Cupello\",2493 => \"/meteo/Cupra+marittima\",2494 => \"/meteo/Cupramontana\",2495 => \"/meteo/Cura+carpignano\",2496 => \"/meteo/Curcuris\",2497 => \"/meteo/Cureggio\",2498 => \"/meteo/Curiglia+con+Monteviasco\",2499 => \"/meteo/Curinga\",2500 => \"/meteo/Curino\",2501 => \"/meteo/Curno\",2502 => \"/meteo/Curon+Venosta\",2503 => \"/meteo/Cursi\",2504 => \"/meteo/Cursolo+orasso\",2505 => \"/meteo/Curtarolo\",2506 => \"/meteo/Curtatone\",2507 => \"/meteo/Curti\",2508 => \"/meteo/Cusago\",2509 => \"/meteo/Cusano+milanino\",2510 => \"/meteo/Cusano+Mutri\",2511 => \"/meteo/Cusino\",2512 => \"/meteo/Cusio\",2513 => \"/meteo/Custonaci\",2514 => \"/meteo/Cutigliano\",2515 => \"/meteo/Cutro\",2516 => \"/meteo/Cutrofiano\",2517 => \"/meteo/Cuveglio\",2518 => \"/meteo/Cuvio\",2519 => \"/meteo/Daiano\",2520 => \"/meteo/Dairago\",2521 => \"/meteo/Dalmine\",2522 => \"/meteo/Dambel\",2523 => \"/meteo/Danta+di+cadore\",2524 => \"/meteo/Daone\",2525 => \"/meteo/Dare'\",2526 => \"/meteo/Darfo+Boario+terme\",2527 => \"/meteo/Dasa'\",2528 => \"/meteo/Davagna\",2529 => \"/meteo/Daverio\",2530 => \"/meteo/Davoli\",2531 => \"/meteo/Dazio\",2532 => \"/meteo/Decimomannu\",2533 => \"/meteo/Decimoputzu\",2534 => \"/meteo/Decollatura\",2535 => \"/meteo/Dego\",2536 => \"/meteo/Deiva+marina\",2537 => \"/meteo/Delebio\",2538 => \"/meteo/Delia\",2539 => \"/meteo/Delianuova\",2540 => \"/meteo/Deliceto\",2541 => \"/meteo/Dello\",2542 => \"/meteo/Demonte\",2543 => \"/meteo/Denice\",2544 => \"/meteo/Denno\",2545 => \"/meteo/Dernice\",2546 => \"/meteo/Derovere\",2547 => \"/meteo/Deruta\",2548 => \"/meteo/Dervio\",2549 => \"/meteo/Desana\",2550 => \"/meteo/Desenzano+del+Garda\",2551 => \"/meteo/Desio\",2552 => \"/meteo/Desulo\",2553 => \"/meteo/Diamante\",2554 => \"/meteo/Diano+arentino\",2555 => \"/meteo/Diano+castello\",2556 => \"/meteo/Diano+d'Alba\",2557 => \"/meteo/Diano+marina\",2558 => \"/meteo/Diano+San+Pietro\",2559 => \"/meteo/Dicomano\",2560 => \"/meteo/Dignano\",2561 => \"/meteo/Dimaro\",2562 => \"/meteo/Dinami\",2563 => \"/meteo/Dipignano\",2564 => \"/meteo/Diso\",2565 => \"/meteo/Divignano\",2566 => \"/meteo/Dizzasco\",2567 => \"/meteo/Dobbiaco\",2568 => \"/meteo/Doberdo'+del+lago\",8628 => \"/meteo/Doganaccia\",2569 => \"/meteo/Dogliani\",2570 => \"/meteo/Dogliola\",2571 => \"/meteo/Dogna\",2572 => \"/meteo/Dolce'\",2573 => \"/meteo/Dolceacqua\",2574 => \"/meteo/Dolcedo\",2575 => \"/meteo/Dolegna+del+collio\",2576 => \"/meteo/Dolianova\",2577 => \"/meteo/Dolo\",8616 => \"/meteo/Dolonne\",2578 => \"/meteo/Dolzago\",2579 => \"/meteo/Domanico\",2580 => \"/meteo/Domaso\",2581 => \"/meteo/Domegge+di+cadore\",2582 => \"/meteo/Domicella\",2583 => \"/meteo/Domodossola\",2584 => \"/meteo/Domus+de+Maria\",2585 => \"/meteo/Domusnovas\",2586 => \"/meteo/Don\",2587 => \"/meteo/Donato\",2588 => \"/meteo/Dongo\",2589 => \"/meteo/Donnas\",2590 => \"/meteo/Donori'\",2591 => \"/meteo/Dorgali\",2592 => \"/meteo/Dorio\",2593 => \"/meteo/Dormelletto\",2594 => \"/meteo/Dorno\",2595 => \"/meteo/Dorsino\",2596 => \"/meteo/Dorzano\",2597 => \"/meteo/Dosolo\",2598 => \"/meteo/Dossena\",2599 => \"/meteo/Dosso+del+liro\",8323 => \"/meteo/Dosso+Pasò\",2600 => \"/meteo/Doues\",2601 => \"/meteo/Dovadola\",2602 => \"/meteo/Dovera\",2603 => \"/meteo/Dozza\",2604 => \"/meteo/Dragoni\",2605 => \"/meteo/Drapia\",2606 => \"/meteo/Drena\",2607 => \"/meteo/Drenchia\",2608 => \"/meteo/Dresano\",2609 => \"/meteo/Drezzo\",2610 => \"/meteo/Drizzona\",2611 => \"/meteo/Dro\",2612 => \"/meteo/Dronero\",2613 => \"/meteo/Druento\",2614 => \"/meteo/Druogno\",2615 => \"/meteo/Dualchi\",2616 => \"/meteo/Dubino\",2617 => \"/meteo/Due+carrare\",2618 => \"/meteo/Dueville\",2619 => \"/meteo/Dugenta\",2620 => \"/meteo/Duino+aurisina\",2621 => \"/meteo/Dumenza\",2622 => \"/meteo/Duno\",2623 => \"/meteo/Durazzano\",2624 => \"/meteo/Duronia\",2625 => \"/meteo/Dusino+San+Michele\",2626 => \"/meteo/Eboli\",2627 => \"/meteo/Edolo\",2628 => \"/meteo/Egna\",2629 => \"/meteo/Elice\",2630 => \"/meteo/Elini\",2631 => \"/meteo/Ello\",2632 => \"/meteo/Elmas\",2633 => \"/meteo/Elva\",2634 => \"/meteo/Emarese\",2635 => \"/meteo/Empoli\",2636 => \"/meteo/Endine+gaiano\",2637 => \"/meteo/Enego\",2638 => \"/meteo/Enemonzo\",2639 => \"/meteo/Enna\",2640 => \"/meteo/Entracque\",2641 => \"/meteo/Entratico\",8222 => \"/meteo/Entreves\",2642 => \"/meteo/Envie\",8397 => \"/meteo/Episcopia\",2644 => \"/meteo/Eraclea\",2645 => \"/meteo/Erba\",2646 => \"/meteo/Erbe'\",2647 => \"/meteo/Erbezzo\",2648 => \"/meteo/Erbusco\",2649 => \"/meteo/Erchie\",2650 => \"/meteo/Ercolano\",8531 => \"/meteo/Eremo+di+Camaldoli\",8606 => \"/meteo/Eremo+di+Carpegna\",2651 => \"/meteo/Erice\",2652 => \"/meteo/Erli\",2653 => \"/meteo/Erto+e+casso\",2654 => \"/meteo/Erula\",2655 => \"/meteo/Erve\",2656 => \"/meteo/Esanatoglia\",2657 => \"/meteo/Escalaplano\",2658 => \"/meteo/Escolca\",2659 => \"/meteo/Esine\",2660 => \"/meteo/Esino+lario\",2661 => \"/meteo/Esperia\",2662 => \"/meteo/Esporlatu\",2663 => \"/meteo/Este\",2664 => \"/meteo/Esterzili\",2665 => \"/meteo/Etroubles\",2666 => \"/meteo/Eupilio\",2667 => \"/meteo/Exilles\",2668 => \"/meteo/Fabbrica+Curone\",2669 => \"/meteo/Fabbriche+di+vallico\",2670 => \"/meteo/Fabbrico\",2671 => \"/meteo/Fabriano\",2672 => \"/meteo/Fabrica+di+Roma\",2673 => \"/meteo/Fabrizia\",2674 => \"/meteo/Fabro\",8458 => \"/meteo/Fabro+casello\",2675 => \"/meteo/Faedis\",2676 => \"/meteo/Faedo\",2677 => \"/meteo/Faedo+valtellino\",2678 => \"/meteo/Faenza\",2679 => \"/meteo/Faeto\",2680 => \"/meteo/Fagagna\",2681 => \"/meteo/Faggeto+lario\",2682 => \"/meteo/Faggiano\",2683 => \"/meteo/Fagnano+alto\",2684 => \"/meteo/Fagnano+castello\",2685 => \"/meteo/Fagnano+olona\",2686 => \"/meteo/Fai+della+paganella\",2687 => \"/meteo/Faicchio\",2688 => \"/meteo/Falcade\",2689 => \"/meteo/Falciano+del+massico\",2690 => \"/meteo/Falconara+albanese\",2691 => \"/meteo/Falconara+marittima\",2692 => \"/meteo/Falcone\",2693 => \"/meteo/Faleria\",2694 => \"/meteo/Falerna\",8116 => \"/meteo/Falerna+Marina\",2695 => \"/meteo/Falerone\",2696 => \"/meteo/Fallo\",2697 => \"/meteo/Falmenta\",2698 => \"/meteo/Faloppio\",2699 => \"/meteo/Falvaterra\",2700 => \"/meteo/Falzes\",2701 => \"/meteo/Fanano\",2702 => \"/meteo/Fanna\",2703 => \"/meteo/Fano\",2704 => \"/meteo/Fano+adriano\",2705 => \"/meteo/Fara+Filiorum+Petri\",2706 => \"/meteo/Fara+gera+d'Adda\",2707 => \"/meteo/Fara+in+sabina\",2708 => \"/meteo/Fara+novarese\",2709 => \"/meteo/Fara+Olivana+con+Sola\",2710 => \"/meteo/Fara+San+Martino\",2711 => \"/meteo/Fara+vicentino\",8360 => \"/meteo/Fardella\",2713 => \"/meteo/Farigliano\",2714 => \"/meteo/Farindola\",2715 => \"/meteo/Farini\",2716 => \"/meteo/Farnese\",2717 => \"/meteo/Farra+d'alpago\",2718 => \"/meteo/Farra+d'Isonzo\",2719 => \"/meteo/Farra+di+soligo\",2720 => \"/meteo/Fasano\",2721 => \"/meteo/Fascia\",2722 => \"/meteo/Fauglia\",2723 => \"/meteo/Faule\",2724 => \"/meteo/Favale+di+malvaro\",2725 => \"/meteo/Favara\",2726 => \"/meteo/Faver\",2727 => \"/meteo/Favignana\",2728 => \"/meteo/Favria\",2729 => \"/meteo/Feisoglio\",2730 => \"/meteo/Feletto\",2731 => \"/meteo/Felino\",2732 => \"/meteo/Felitto\",2733 => \"/meteo/Felizzano\",2734 => \"/meteo/Felonica\",2735 => \"/meteo/Feltre\",2736 => \"/meteo/Fenegro'\",2737 => \"/meteo/Fenestrelle\",2738 => \"/meteo/Fenis\",2739 => \"/meteo/Ferentillo\",2740 => \"/meteo/Ferentino\",2741 => \"/meteo/Ferla\",2742 => \"/meteo/Fermignano\",2743 => \"/meteo/Fermo\",2744 => \"/meteo/Ferno\",2745 => \"/meteo/Feroleto+Antico\",2746 => \"/meteo/Feroleto+della+chiesa\",8370 => \"/meteo/Ferrandina\",2748 => \"/meteo/Ferrara\",2749 => \"/meteo/Ferrara+di+monte+Baldo\",2750 => \"/meteo/Ferrazzano\",2751 => \"/meteo/Ferrera+di+Varese\",2752 => \"/meteo/Ferrera+Erbognone\",2753 => \"/meteo/Ferrere\",2754 => \"/meteo/Ferriere\",2755 => \"/meteo/Ferruzzano\",2756 => \"/meteo/Fiamignano\",2757 => \"/meteo/Fiano\",2758 => \"/meteo/Fiano+romano\",2759 => \"/meteo/Fiastra\",2760 => \"/meteo/Fiave'\",2761 => \"/meteo/Ficarazzi\",2762 => \"/meteo/Ficarolo\",2763 => \"/meteo/Ficarra\",2764 => \"/meteo/Ficulle\",2765 => \"/meteo/Fidenza\",2766 => \"/meteo/Fie'+allo+Sciliar\",2767 => \"/meteo/Fiera+di+primiero\",2768 => \"/meteo/Fierozzo\",2769 => \"/meteo/Fiesco\",2770 => \"/meteo/Fiesole\",2771 => \"/meteo/Fiesse\",2772 => \"/meteo/Fiesso+d'Artico\",2773 => \"/meteo/Fiesso+Umbertiano\",2774 => \"/meteo/Figino+Serenza\",2775 => \"/meteo/Figline+valdarno\",2776 => \"/meteo/Figline+Vegliaturo\",2777 => \"/meteo/Filacciano\",2778 => \"/meteo/Filadelfia\",2779 => \"/meteo/Filago\",2780 => \"/meteo/Filandari\",2781 => \"/meteo/Filattiera\",2782 => \"/meteo/Filettino\",2783 => \"/meteo/Filetto\",8392 => \"/meteo/Filiano\",2785 => \"/meteo/Filighera\",2786 => \"/meteo/Filignano\",2787 => \"/meteo/Filogaso\",2788 => \"/meteo/Filottrano\",2789 => \"/meteo/Finale+emilia\",2790 => \"/meteo/Finale+ligure\",2791 => \"/meteo/Fino+del+monte\",2792 => \"/meteo/Fino+Mornasco\",2793 => \"/meteo/Fiorano+al+Serio\",2794 => \"/meteo/Fiorano+canavese\",2795 => \"/meteo/Fiorano+modenese\",2796 => \"/meteo/Fiordimonte\",2797 => \"/meteo/Fiorenzuola+d'arda\",2798 => \"/meteo/Firenze\",8270 => \"/meteo/Firenze+Peretola\",2799 => \"/meteo/Firenzuola\",2800 => \"/meteo/Firmo\",2801 => \"/meteo/Fisciano\",2802 => \"/meteo/Fiuggi\",2803 => \"/meteo/Fiumalbo\",2804 => \"/meteo/Fiumara\",8489 => \"/meteo/Fiumata\",2805 => \"/meteo/Fiume+veneto\",2806 => \"/meteo/Fiumedinisi\",2807 => \"/meteo/Fiumefreddo+Bruzio\",2808 => \"/meteo/Fiumefreddo+di+Sicilia\",2809 => \"/meteo/Fiumicello\",2810 => \"/meteo/Fiumicino\",2811 => \"/meteo/Fiuminata\",2812 => \"/meteo/Fivizzano\",2813 => \"/meteo/Flaibano\",2814 => \"/meteo/Flavon\",2815 => \"/meteo/Flero\",2816 => \"/meteo/Floresta\",2817 => \"/meteo/Floridia\",2818 => \"/meteo/Florinas\",2819 => \"/meteo/Flumeri\",2820 => \"/meteo/Fluminimaggiore\",2821 => \"/meteo/Flussio\",2822 => \"/meteo/Fobello\",2823 => \"/meteo/Foggia\",2824 => \"/meteo/Foglianise\",2825 => \"/meteo/Fogliano+redipuglia\",2826 => \"/meteo/Foglizzo\",2827 => \"/meteo/Foiano+della+chiana\",2828 => \"/meteo/Foiano+di+val+fortore\",2829 => \"/meteo/Folgaria\",8202 => \"/meteo/Folgarida\",2830 => \"/meteo/Folignano\",2831 => \"/meteo/Foligno\",2832 => \"/meteo/Follina\",2833 => \"/meteo/Follo\",2834 => \"/meteo/Follonica\",2835 => \"/meteo/Fombio\",2836 => \"/meteo/Fondachelli+Fantina\",2837 => \"/meteo/Fondi\",2838 => \"/meteo/Fondo\",2839 => \"/meteo/Fonni\",2840 => \"/meteo/Fontainemore\",2841 => \"/meteo/Fontana+liri\",2842 => \"/meteo/Fontanafredda\",2843 => \"/meteo/Fontanarosa\",8185 => \"/meteo/Fontane+Bianche\",2844 => \"/meteo/Fontanelice\",2845 => \"/meteo/Fontanella\",2846 => \"/meteo/Fontanellato\",2847 => \"/meteo/Fontanelle\",2848 => \"/meteo/Fontaneto+d'Agogna\",2849 => \"/meteo/Fontanetto+po\",2850 => \"/meteo/Fontanigorda\",2851 => \"/meteo/Fontanile\",2852 => \"/meteo/Fontaniva\",2853 => \"/meteo/Fonte\",8643 => \"/meteo/Fonte+Cerreto\",2854 => \"/meteo/Fonte+Nuova\",2855 => \"/meteo/Fontecchio\",2856 => \"/meteo/Fontechiari\",2857 => \"/meteo/Fontegreca\",2858 => \"/meteo/Fonteno\",2859 => \"/meteo/Fontevivo\",2860 => \"/meteo/Fonzaso\",2861 => \"/meteo/Foppolo\",8540 => \"/meteo/Foppolo+IV+Baita\",2862 => \"/meteo/Forano\",2863 => \"/meteo/Force\",2864 => \"/meteo/Forchia\",2865 => \"/meteo/Forcola\",2866 => \"/meteo/Fordongianus\",2867 => \"/meteo/Forenza\",2868 => \"/meteo/Foresto+sparso\",2869 => \"/meteo/Forgaria+nel+friuli\",2870 => \"/meteo/Forino\",2871 => \"/meteo/Forio\",8551 => \"/meteo/Forlì+Ridolfi\",2872 => \"/meteo/Forli'\",2873 => \"/meteo/Forli'+del+sannio\",2874 => \"/meteo/Forlimpopoli\",2875 => \"/meteo/Formazza\",2876 => \"/meteo/Formello\",2877 => \"/meteo/Formia\",2878 => \"/meteo/Formicola\",2879 => \"/meteo/Formigara\",2880 => \"/meteo/Formigine\",2881 => \"/meteo/Formigliana\",2882 => \"/meteo/Formignana\",2883 => \"/meteo/Fornace\",2884 => \"/meteo/Fornelli\",2885 => \"/meteo/Forni+Avoltri\",2886 => \"/meteo/Forni+di+sopra\",2887 => \"/meteo/Forni+di+sotto\",8161 => \"/meteo/Forno+Alpi+Graie\",2888 => \"/meteo/Forno+canavese\",2889 => \"/meteo/Forno+di+Zoldo\",2890 => \"/meteo/Fornovo+di+Taro\",2891 => \"/meteo/Fornovo+San+Giovanni\",2892 => \"/meteo/Forte+dei+marmi\",2893 => \"/meteo/Fortezza\",2894 => \"/meteo/Fortunago\",2895 => \"/meteo/Forza+d'Agro'\",2896 => \"/meteo/Fosciandora\",8435 => \"/meteo/Fosdinovo\",2898 => \"/meteo/Fossa\",2899 => \"/meteo/Fossacesia\",2900 => \"/meteo/Fossalta+di+Piave\",2901 => \"/meteo/Fossalta+di+Portogruaro\",2902 => \"/meteo/Fossalto\",2903 => \"/meteo/Fossano\",2904 => \"/meteo/Fossato+di+vico\",2905 => \"/meteo/Fossato+serralta\",2906 => \"/meteo/Fosso'\",2907 => \"/meteo/Fossombrone\",2908 => \"/meteo/Foza\",2909 => \"/meteo/Frabosa+soprana\",2910 => \"/meteo/Frabosa+sottana\",2911 => \"/meteo/Fraconalto\",2912 => \"/meteo/Fragagnano\",2913 => \"/meteo/Fragneto+l'abate\",2914 => \"/meteo/Fragneto+monforte\",2915 => \"/meteo/Fraine\",2916 => \"/meteo/Framura\",2917 => \"/meteo/Francavilla+al+mare\",2918 => \"/meteo/Francavilla+angitola\",2919 => \"/meteo/Francavilla+bisio\",2920 => \"/meteo/Francavilla+d'ete\",2921 => \"/meteo/Francavilla+di+Sicilia\",2922 => \"/meteo/Francavilla+fontana\",8380 => \"/meteo/Francavilla+in+sinni\",2924 => \"/meteo/Francavilla+marittima\",2925 => \"/meteo/Francica\",2926 => \"/meteo/Francofonte\",2927 => \"/meteo/Francolise\",2928 => \"/meteo/Frascaro\",2929 => \"/meteo/Frascarolo\",2930 => \"/meteo/Frascati\",2931 => \"/meteo/Frascineto\",2932 => \"/meteo/Frassilongo\",2933 => \"/meteo/Frassinelle+polesine\",2934 => \"/meteo/Frassinello+monferrato\",2935 => \"/meteo/Frassineto+po\",2936 => \"/meteo/Frassinetto\",2937 => \"/meteo/Frassino\",2938 => \"/meteo/Frassinoro\",2939 => \"/meteo/Frasso+sabino\",2940 => \"/meteo/Frasso+telesino\",2941 => \"/meteo/Fratta+polesine\",2942 => \"/meteo/Fratta+todina\",2943 => \"/meteo/Frattamaggiore\",2944 => \"/meteo/Frattaminore\",2945 => \"/meteo/Fratte+rosa\",2946 => \"/meteo/Frazzano'\",8137 => \"/meteo/Fregene\",2947 => \"/meteo/Fregona\",8667 => \"/meteo/Frejusia\",2948 => \"/meteo/Fresagrandinaria\",2949 => \"/meteo/Fresonara\",2950 => \"/meteo/Frigento\",2951 => \"/meteo/Frignano\",2952 => \"/meteo/Frinco\",2953 => \"/meteo/Frisa\",2954 => \"/meteo/Frisanco\",2955 => \"/meteo/Front\",8153 => \"/meteo/Frontignano\",2956 => \"/meteo/Frontino\",2957 => \"/meteo/Frontone\",8751 => \"/meteo/Frontone+-+Monte+Catria\",2958 => \"/meteo/Frosinone\",8464 => \"/meteo/Frosinone+casello\",2959 => \"/meteo/Frosolone\",2960 => \"/meteo/Frossasco\",2961 => \"/meteo/Frugarolo\",2962 => \"/meteo/Fubine\",2963 => \"/meteo/Fucecchio\",2964 => \"/meteo/Fuipiano+valle+imagna\",2965 => \"/meteo/Fumane\",2966 => \"/meteo/Fumone\",2967 => \"/meteo/Funes\",2968 => \"/meteo/Furci\",2969 => \"/meteo/Furci+siculo\",2970 => \"/meteo/Furnari\",2971 => \"/meteo/Furore\",2972 => \"/meteo/Furtei\",2973 => \"/meteo/Fuscaldo\",2974 => \"/meteo/Fusignano\",2975 => \"/meteo/Fusine\",8702 => \"/meteo/Fusine+di+Zoldo\",8131 => \"/meteo/Fusine+in+Valromana\",2976 => \"/meteo/Futani\",2977 => \"/meteo/Gabbioneta+binanuova\",2978 => \"/meteo/Gabiano\",2979 => \"/meteo/Gabicce+mare\",8252 => \"/meteo/Gabiet\",2980 => \"/meteo/Gaby\",2981 => \"/meteo/Gadesco+Pieve+Delmona\",2982 => \"/meteo/Gadoni\",2983 => \"/meteo/Gaeta\",2984 => \"/meteo/Gaggi\",2985 => \"/meteo/Gaggiano\",2986 => \"/meteo/Gaggio+montano\",2987 => \"/meteo/Gaglianico\",2988 => \"/meteo/Gagliano+aterno\",2989 => \"/meteo/Gagliano+castelferrato\",2990 => \"/meteo/Gagliano+del+capo\",2991 => \"/meteo/Gagliato\",2992 => \"/meteo/Gagliole\",2993 => \"/meteo/Gaiarine\",2994 => \"/meteo/Gaiba\",2995 => \"/meteo/Gaiola\",2996 => \"/meteo/Gaiole+in+chianti\",2997 => \"/meteo/Gairo\",2998 => \"/meteo/Gais\",2999 => \"/meteo/Galati+Mamertino\",3000 => \"/meteo/Galatina\",3001 => \"/meteo/Galatone\",3002 => \"/meteo/Galatro\",3003 => \"/meteo/Galbiate\",3004 => \"/meteo/Galeata\",3005 => \"/meteo/Galgagnano\",3006 => \"/meteo/Gallarate\",3007 => \"/meteo/Gallese\",3008 => \"/meteo/Galliate\",3009 => \"/meteo/Galliate+lombardo\",3010 => \"/meteo/Galliavola\",3011 => \"/meteo/Gallicano\",3012 => \"/meteo/Gallicano+nel+Lazio\",8364 => \"/meteo/Gallicchio\",3014 => \"/meteo/Galliera\",3015 => \"/meteo/Galliera+veneta\",3016 => \"/meteo/Gallinaro\",3017 => \"/meteo/Gallio\",3018 => \"/meteo/Gallipoli\",3019 => \"/meteo/Gallo+matese\",3020 => \"/meteo/Gallodoro\",3021 => \"/meteo/Galluccio\",8315 => \"/meteo/Galluzzo\",3022 => \"/meteo/Galtelli\",3023 => \"/meteo/Galzignano+terme\",3024 => \"/meteo/Gamalero\",3025 => \"/meteo/Gambara\",3026 => \"/meteo/Gambarana\",8105 => \"/meteo/Gambarie\",3027 => \"/meteo/Gambasca\",3028 => \"/meteo/Gambassi+terme\",3029 => \"/meteo/Gambatesa\",3030 => \"/meteo/Gambellara\",3031 => \"/meteo/Gamberale\",3032 => \"/meteo/Gambettola\",3033 => \"/meteo/Gambolo'\",3034 => \"/meteo/Gambugliano\",3035 => \"/meteo/Gandellino\",3036 => \"/meteo/Gandino\",3037 => \"/meteo/Gandosso\",3038 => \"/meteo/Gangi\",8425 => \"/meteo/Garaguso\",3040 => \"/meteo/Garbagna\",3041 => \"/meteo/Garbagna+novarese\",3042 => \"/meteo/Garbagnate+milanese\",3043 => \"/meteo/Garbagnate+monastero\",3044 => \"/meteo/Garda\",3045 => \"/meteo/Gardone+riviera\",3046 => \"/meteo/Gardone+val+trompia\",3047 => \"/meteo/Garessio\",8349 => \"/meteo/Garessio+2000\",3048 => \"/meteo/Gargallo\",3049 => \"/meteo/Gargazzone\",3050 => \"/meteo/Gargnano\",3051 => \"/meteo/Garlasco\",3052 => \"/meteo/Garlate\",3053 => \"/meteo/Garlenda\",3054 => \"/meteo/Garniga\",3055 => \"/meteo/Garzeno\",3056 => \"/meteo/Garzigliana\",3057 => \"/meteo/Gasperina\",3058 => \"/meteo/Gassino+torinese\",3059 => \"/meteo/Gattatico\",3060 => \"/meteo/Gatteo\",3061 => \"/meteo/Gattico\",3062 => \"/meteo/Gattinara\",3063 => \"/meteo/Gavardo\",3064 => \"/meteo/Gavazzana\",3065 => \"/meteo/Gavello\",3066 => \"/meteo/Gaverina+terme\",3067 => \"/meteo/Gavi\",3068 => \"/meteo/Gavignano\",3069 => \"/meteo/Gavirate\",3070 => \"/meteo/Gavoi\",3071 => \"/meteo/Gavorrano\",3072 => \"/meteo/Gazoldo+degli+ippoliti\",3073 => \"/meteo/Gazzada+schianno\",3074 => \"/meteo/Gazzaniga\",3075 => \"/meteo/Gazzo\",3076 => \"/meteo/Gazzo+veronese\",3077 => \"/meteo/Gazzola\",3078 => \"/meteo/Gazzuolo\",3079 => \"/meteo/Gela\",3080 => \"/meteo/Gemmano\",3081 => \"/meteo/Gemona+del+friuli\",3082 => \"/meteo/Gemonio\",3083 => \"/meteo/Genazzano\",3084 => \"/meteo/Genga\",3085 => \"/meteo/Genivolta\",3086 => \"/meteo/Genola\",3087 => \"/meteo/Genoni\",3088 => \"/meteo/Genova\",8506 => \"/meteo/Genova+Nervi\",8276 => \"/meteo/Genova+Sestri\",3089 => \"/meteo/Genuri\",3090 => \"/meteo/Genzano+di+lucania\",3091 => \"/meteo/Genzano+di+roma\",3092 => \"/meteo/Genzone\",3093 => \"/meteo/Gera+lario\",3094 => \"/meteo/Gerace\",3095 => \"/meteo/Geraci+siculo\",3096 => \"/meteo/Gerano\",8176 => \"/meteo/Geremeas\",3097 => \"/meteo/Gerenzago\",3098 => \"/meteo/Gerenzano\",3099 => \"/meteo/Gergei\",3100 => \"/meteo/Germagnano\",3101 => \"/meteo/Germagno\",3102 => \"/meteo/Germasino\",3103 => \"/meteo/Germignaga\",8303 => \"/meteo/Gerno+di+Lesmo\",3104 => \"/meteo/Gerocarne\",3105 => \"/meteo/Gerola+alta\",3106 => \"/meteo/Gerosa\",3107 => \"/meteo/Gerre+de'caprioli\",3108 => \"/meteo/Gesico\",3109 => \"/meteo/Gessate\",3110 => \"/meteo/Gessopalena\",3111 => \"/meteo/Gesturi\",3112 => \"/meteo/Gesualdo\",3113 => \"/meteo/Ghedi\",3114 => \"/meteo/Ghemme\",8236 => \"/meteo/Ghiacciaio+Presena\",3115 => \"/meteo/Ghiffa\",3116 => \"/meteo/Ghilarza\",3117 => \"/meteo/Ghisalba\",3118 => \"/meteo/Ghislarengo\",3119 => \"/meteo/Giacciano+con+baruchella\",3120 => \"/meteo/Giaglione\",3121 => \"/meteo/Gianico\",3122 => \"/meteo/Giano+dell'umbria\",3123 => \"/meteo/Giano+vetusto\",3124 => \"/meteo/Giardinello\",3125 => \"/meteo/Giardini+Naxos\",3126 => \"/meteo/Giarole\",3127 => \"/meteo/Giarratana\",3128 => \"/meteo/Giarre\",3129 => \"/meteo/Giave\",3130 => \"/meteo/Giaveno\",3131 => \"/meteo/Giavera+del+montello\",3132 => \"/meteo/Giba\",3133 => \"/meteo/Gibellina\",3134 => \"/meteo/Gifflenga\",3135 => \"/meteo/Giffone\",3136 => \"/meteo/Giffoni+sei+casali\",3137 => \"/meteo/Giffoni+valle+piana\",3380 => \"/meteo/Giglio+castello\",3138 => \"/meteo/Gignese\",3139 => \"/meteo/Gignod\",3140 => \"/meteo/Gildone\",3141 => \"/meteo/Gimigliano\",8403 => \"/meteo/Ginestra\",3143 => \"/meteo/Ginestra+degli+schiavoni\",8430 => \"/meteo/Ginosa\",3145 => \"/meteo/Gioi\",3146 => \"/meteo/Gioia+dei+marsi\",3147 => \"/meteo/Gioia+del+colle\",3148 => \"/meteo/Gioia+sannitica\",3149 => \"/meteo/Gioia+tauro\",3150 => \"/meteo/Gioiosa+ionica\",3151 => \"/meteo/Gioiosa+marea\",3152 => \"/meteo/Giove\",3153 => \"/meteo/Giovinazzo\",3154 => \"/meteo/Giovo\",3155 => \"/meteo/Girasole\",3156 => \"/meteo/Girifalco\",3157 => \"/meteo/Gironico\",3158 => \"/meteo/Gissi\",3159 => \"/meteo/Giuggianello\",3160 => \"/meteo/Giugliano+in+campania\",3161 => \"/meteo/Giuliana\",3162 => \"/meteo/Giuliano+di+roma\",3163 => \"/meteo/Giuliano+teatino\",3164 => \"/meteo/Giulianova\",3165 => \"/meteo/Giuncugnano\",3166 => \"/meteo/Giungano\",3167 => \"/meteo/Giurdignano\",3168 => \"/meteo/Giussago\",3169 => \"/meteo/Giussano\",3170 => \"/meteo/Giustenice\",3171 => \"/meteo/Giustino\",3172 => \"/meteo/Giusvalla\",3173 => \"/meteo/Givoletto\",3174 => \"/meteo/Gizzeria\",3175 => \"/meteo/Glorenza\",3176 => \"/meteo/Godega+di+sant'urbano\",3177 => \"/meteo/Godiasco\",3178 => \"/meteo/Godrano\",3179 => \"/meteo/Goito\",3180 => \"/meteo/Golasecca\",3181 => \"/meteo/Golferenzo\",3182 => \"/meteo/Golfo+aranci\",3183 => \"/meteo/Gombito\",3184 => \"/meteo/Gonars\",3185 => \"/meteo/Goni\",3186 => \"/meteo/Gonnesa\",3187 => \"/meteo/Gonnoscodina\",3188 => \"/meteo/Gonnosfanadiga\",3189 => \"/meteo/Gonnosno'\",3190 => \"/meteo/Gonnostramatza\",3191 => \"/meteo/Gonzaga\",3192 => \"/meteo/Gordona\",3193 => \"/meteo/Gorga\",3194 => \"/meteo/Gorgo+al+monticano\",3195 => \"/meteo/Gorgoglione\",3196 => \"/meteo/Gorgonzola\",3197 => \"/meteo/Goriano+sicoli\",3198 => \"/meteo/Gorizia\",3199 => \"/meteo/Gorla+maggiore\",3200 => \"/meteo/Gorla+minore\",3201 => \"/meteo/Gorlago\",3202 => \"/meteo/Gorle\",3203 => \"/meteo/Gornate+olona\",3204 => \"/meteo/Gorno\",3205 => \"/meteo/Goro\",3206 => \"/meteo/Gorreto\",3207 => \"/meteo/Gorzegno\",3208 => \"/meteo/Gosaldo\",3209 => \"/meteo/Gossolengo\",3210 => \"/meteo/Gottasecca\",3211 => \"/meteo/Gottolengo\",3212 => \"/meteo/Govone\",3213 => \"/meteo/Gozzano\",3214 => \"/meteo/Gradara\",3215 => \"/meteo/Gradisca+d'isonzo\",3216 => \"/meteo/Grado\",3217 => \"/meteo/Gradoli\",3218 => \"/meteo/Graffignana\",3219 => \"/meteo/Graffignano\",3220 => \"/meteo/Graglia\",3221 => \"/meteo/Gragnano\",3222 => \"/meteo/Gragnano+trebbiense\",3223 => \"/meteo/Grammichele\",8485 => \"/meteo/Gran+Paradiso\",3224 => \"/meteo/Grana\",3225 => \"/meteo/Granaglione\",3226 => \"/meteo/Granarolo+dell'emilia\",3227 => \"/meteo/Grancona\",8728 => \"/meteo/Grand+Combin\",8327 => \"/meteo/Grand+Crot\",3228 => \"/meteo/Grandate\",3229 => \"/meteo/Grandola+ed+uniti\",3230 => \"/meteo/Graniti\",3231 => \"/meteo/Granozzo+con+monticello\",3232 => \"/meteo/Grantola\",3233 => \"/meteo/Grantorto\",3234 => \"/meteo/Granze\",8371 => \"/meteo/Grassano\",8504 => \"/meteo/Grassina\",3236 => \"/meteo/Grassobbio\",3237 => \"/meteo/Gratteri\",3238 => \"/meteo/Grauno\",3239 => \"/meteo/Gravedona\",3240 => \"/meteo/Gravellona+lomellina\",3241 => \"/meteo/Gravellona+toce\",3242 => \"/meteo/Gravere\",3243 => \"/meteo/Gravina+di+Catania\",3244 => \"/meteo/Gravina+in+puglia\",3245 => \"/meteo/Grazzanise\",3246 => \"/meteo/Grazzano+badoglio\",3247 => \"/meteo/Greccio\",3248 => \"/meteo/Greci\",3249 => \"/meteo/Greggio\",3250 => \"/meteo/Gremiasco\",3251 => \"/meteo/Gressan\",3252 => \"/meteo/Gressoney+la+trinite'\",3253 => \"/meteo/Gressoney+saint+jean\",3254 => \"/meteo/Greve+in+chianti\",3255 => \"/meteo/Grezzago\",3256 => \"/meteo/Grezzana\",3257 => \"/meteo/Griante\",3258 => \"/meteo/Gricignano+di+aversa\",8733 => \"/meteo/Grigna\",3259 => \"/meteo/Grignasco\",3260 => \"/meteo/Grigno\",3261 => \"/meteo/Grimacco\",3262 => \"/meteo/Grimaldi\",3263 => \"/meteo/Grinzane+cavour\",3264 => \"/meteo/Grisignano+di+zocco\",3265 => \"/meteo/Grisolia\",8520 => \"/meteo/Grivola\",3266 => \"/meteo/Grizzana+morandi\",3267 => \"/meteo/Grognardo\",3268 => \"/meteo/Gromo\",3269 => \"/meteo/Grondona\",3270 => \"/meteo/Grone\",3271 => \"/meteo/Grontardo\",3272 => \"/meteo/Gropello+cairoli\",3273 => \"/meteo/Gropparello\",3274 => \"/meteo/Groscavallo\",3275 => \"/meteo/Grosio\",3276 => \"/meteo/Grosotto\",3277 => \"/meteo/Grosseto\",3278 => \"/meteo/Grosso\",3279 => \"/meteo/Grottaferrata\",3280 => \"/meteo/Grottaglie\",3281 => \"/meteo/Grottaminarda\",3282 => \"/meteo/Grottammare\",3283 => \"/meteo/Grottazzolina\",3284 => \"/meteo/Grotte\",3285 => \"/meteo/Grotte+di+castro\",3286 => \"/meteo/Grotteria\",3287 => \"/meteo/Grottole\",3288 => \"/meteo/Grottolella\",3289 => \"/meteo/Gruaro\",3290 => \"/meteo/Grugliasco\",3291 => \"/meteo/Grumello+cremonese+ed+uniti\",3292 => \"/meteo/Grumello+del+monte\",8414 => \"/meteo/Grumento+nova\",3294 => \"/meteo/Grumes\",3295 => \"/meteo/Grumo+appula\",3296 => \"/meteo/Grumo+nevano\",3297 => \"/meteo/Grumolo+delle+abbadesse\",3298 => \"/meteo/Guagnano\",3299 => \"/meteo/Gualdo\",3300 => \"/meteo/Gualdo+Cattaneo\",3301 => \"/meteo/Gualdo+tadino\",3302 => \"/meteo/Gualtieri\",3303 => \"/meteo/Gualtieri+sicamino'\",3304 => \"/meteo/Guamaggiore\",3305 => \"/meteo/Guanzate\",3306 => \"/meteo/Guarcino\",3307 => \"/meteo/Guarda+veneta\",3308 => \"/meteo/Guardabosone\",3309 => \"/meteo/Guardamiglio\",3310 => \"/meteo/Guardavalle\",3311 => \"/meteo/Guardea\",3312 => \"/meteo/Guardia+lombardi\",8365 => \"/meteo/Guardia+perticara\",3314 => \"/meteo/Guardia+piemontese\",3315 => \"/meteo/Guardia+sanframondi\",3316 => \"/meteo/Guardiagrele\",3317 => \"/meteo/Guardialfiera\",3318 => \"/meteo/Guardiaregia\",3319 => \"/meteo/Guardistallo\",3320 => \"/meteo/Guarene\",3321 => \"/meteo/Guasila\",3322 => \"/meteo/Guastalla\",3323 => \"/meteo/Guazzora\",3324 => \"/meteo/Gubbio\",3325 => \"/meteo/Gudo+visconti\",3326 => \"/meteo/Guglionesi\",3327 => \"/meteo/Guidizzolo\",8508 => \"/meteo/Guidonia\",3328 => \"/meteo/Guidonia+montecelio\",3329 => \"/meteo/Guiglia\",3330 => \"/meteo/Guilmi\",3331 => \"/meteo/Gurro\",3332 => \"/meteo/Guspini\",3333 => \"/meteo/Gussago\",3334 => \"/meteo/Gussola\",3335 => \"/meteo/Hone\",8587 => \"/meteo/I+Prati\",3336 => \"/meteo/Idro\",3337 => \"/meteo/Iglesias\",3338 => \"/meteo/Igliano\",3339 => \"/meteo/Ilbono\",3340 => \"/meteo/Illasi\",3341 => \"/meteo/Illorai\",3342 => \"/meteo/Imbersago\",3343 => \"/meteo/Imer\",3344 => \"/meteo/Imola\",3345 => \"/meteo/Imperia\",3346 => \"/meteo/Impruneta\",3347 => \"/meteo/Inarzo\",3348 => \"/meteo/Incisa+in+val+d'arno\",3349 => \"/meteo/Incisa+scapaccino\",3350 => \"/meteo/Incudine\",3351 => \"/meteo/Induno+olona\",3352 => \"/meteo/Ingria\",3353 => \"/meteo/Intragna\",3354 => \"/meteo/Introbio\",3355 => \"/meteo/Introd\",3356 => \"/meteo/Introdacqua\",3357 => \"/meteo/Introzzo\",3358 => \"/meteo/Inverigo\",3359 => \"/meteo/Inverno+e+monteleone\",3360 => \"/meteo/Inverso+pinasca\",3361 => \"/meteo/Inveruno\",3362 => \"/meteo/Invorio\",3363 => \"/meteo/Inzago\",3364 => \"/meteo/Ionadi\",3365 => \"/meteo/Irgoli\",3366 => \"/meteo/Irma\",3367 => \"/meteo/Irsina\",3368 => \"/meteo/Isasca\",3369 => \"/meteo/Isca+sullo+ionio\",3370 => \"/meteo/Ischia\",3371 => \"/meteo/Ischia+di+castro\",3372 => \"/meteo/Ischitella\",3373 => \"/meteo/Iseo\",3374 => \"/meteo/Isera\",3375 => \"/meteo/Isernia\",3376 => \"/meteo/Isili\",3377 => \"/meteo/Isnello\",8742 => \"/meteo/Isola+Albarella\",3378 => \"/meteo/Isola+d'asti\",3379 => \"/meteo/Isola+del+cantone\",8190 => \"/meteo/Isola+del+Giglio\",3381 => \"/meteo/Isola+del+gran+sasso+d'italia\",3382 => \"/meteo/Isola+del+liri\",3383 => \"/meteo/Isola+del+piano\",3384 => \"/meteo/Isola+della+scala\",3385 => \"/meteo/Isola+delle+femmine\",3386 => \"/meteo/Isola+di+capo+rizzuto\",3387 => \"/meteo/Isola+di+fondra\",8671 => \"/meteo/Isola+di+Giannutri\",3388 => \"/meteo/Isola+dovarese\",3389 => \"/meteo/Isola+rizza\",8173 => \"/meteo/Isola+Rossa\",8183 => \"/meteo/Isola+Salina\",3390 => \"/meteo/Isola+sant'antonio\",3391 => \"/meteo/Isola+vicentina\",3392 => \"/meteo/Isolabella\",3393 => \"/meteo/Isolabona\",3394 => \"/meteo/Isole+tremiti\",3395 => \"/meteo/Isorella\",3396 => \"/meteo/Ispani\",3397 => \"/meteo/Ispica\",3398 => \"/meteo/Ispra\",3399 => \"/meteo/Issiglio\",3400 => \"/meteo/Issime\",3401 => \"/meteo/Isso\",3402 => \"/meteo/Issogne\",3403 => \"/meteo/Istrana\",3404 => \"/meteo/Itala\",3405 => \"/meteo/Itri\",3406 => \"/meteo/Ittireddu\",3407 => \"/meteo/Ittiri\",3408 => \"/meteo/Ivano+fracena\",3409 => \"/meteo/Ivrea\",3410 => \"/meteo/Izano\",3411 => \"/meteo/Jacurso\",3412 => \"/meteo/Jelsi\",3413 => \"/meteo/Jenne\",3414 => \"/meteo/Jerago+con+Orago\",3415 => \"/meteo/Jerzu\",3416 => \"/meteo/Jesi\",3417 => \"/meteo/Jesolo\",3418 => \"/meteo/Jolanda+di+Savoia\",3419 => \"/meteo/Joppolo\",3420 => \"/meteo/Joppolo+Giancaxio\",3421 => \"/meteo/Jovencan\",8568 => \"/meteo/Klausberg\",3422 => \"/meteo/L'Aquila\",3423 => \"/meteo/La+Cassa\",8227 => \"/meteo/La+Lechere\",3424 => \"/meteo/La+Loggia\",3425 => \"/meteo/La+Maddalena\",3426 => \"/meteo/La+Magdeleine\",3427 => \"/meteo/La+Morra\",8617 => \"/meteo/La+Palud\",3428 => \"/meteo/La+Salle\",3429 => \"/meteo/La+Spezia\",3430 => \"/meteo/La+Thuile\",3431 => \"/meteo/La+Valle\",3432 => \"/meteo/La+Valle+Agordina\",8762 => \"/meteo/La+Villa\",3433 => \"/meteo/Labico\",3434 => \"/meteo/Labro\",3435 => \"/meteo/Lacchiarella\",3436 => \"/meteo/Lacco+ameno\",3437 => \"/meteo/Lacedonia\",8245 => \"/meteo/Laceno\",3438 => \"/meteo/Laces\",3439 => \"/meteo/Laconi\",3440 => \"/meteo/Ladispoli\",8571 => \"/meteo/Ladurno\",3441 => \"/meteo/Laerru\",3442 => \"/meteo/Laganadi\",3443 => \"/meteo/Laghi\",3444 => \"/meteo/Laglio\",3445 => \"/meteo/Lagnasco\",3446 => \"/meteo/Lago\",3447 => \"/meteo/Lagonegro\",3448 => \"/meteo/Lagosanto\",3449 => \"/meteo/Lagundo\",3450 => \"/meteo/Laigueglia\",3451 => \"/meteo/Lainate\",3452 => \"/meteo/Laino\",3453 => \"/meteo/Laino+borgo\",3454 => \"/meteo/Laino+castello\",3455 => \"/meteo/Laion\",3456 => \"/meteo/Laives\",3457 => \"/meteo/Lajatico\",3458 => \"/meteo/Lallio\",3459 => \"/meteo/Lama+dei+peligni\",3460 => \"/meteo/Lama+mocogno\",3461 => \"/meteo/Lambrugo\",8477 => \"/meteo/Lamezia+Santa+Eufemia\",3462 => \"/meteo/Lamezia+terme\",3463 => \"/meteo/Lamon\",8179 => \"/meteo/Lampedusa\",3464 => \"/meteo/Lampedusa+e+linosa\",3465 => \"/meteo/Lamporecchio\",3466 => \"/meteo/Lamporo\",3467 => \"/meteo/Lana\",3468 => \"/meteo/Lanciano\",8467 => \"/meteo/Lanciano+casello\",3469 => \"/meteo/Landiona\",3470 => \"/meteo/Landriano\",3471 => \"/meteo/Langhirano\",3472 => \"/meteo/Langosco\",3473 => \"/meteo/Lanusei\",3474 => \"/meteo/Lanuvio\",3475 => \"/meteo/Lanzada\",3476 => \"/meteo/Lanzo+d'intelvi\",3477 => \"/meteo/Lanzo+torinese\",3478 => \"/meteo/Lapedona\",3479 => \"/meteo/Lapio\",3480 => \"/meteo/Lappano\",3481 => \"/meteo/Larciano\",3482 => \"/meteo/Lardaro\",3483 => \"/meteo/Lardirago\",3484 => \"/meteo/Lari\",3485 => \"/meteo/Lariano\",3486 => \"/meteo/Larino\",3487 => \"/meteo/Las+plassas\",3488 => \"/meteo/Lasa\",3489 => \"/meteo/Lascari\",3490 => \"/meteo/Lasino\",3491 => \"/meteo/Lasnigo\",3492 => \"/meteo/Lastebasse\",3493 => \"/meteo/Lastra+a+signa\",3494 => \"/meteo/Latera\",3495 => \"/meteo/Laterina\",3496 => \"/meteo/Laterza\",3497 => \"/meteo/Latiano\",3498 => \"/meteo/Latina\",3499 => \"/meteo/Latisana\",3500 => \"/meteo/Latronico\",3501 => \"/meteo/Lattarico\",3502 => \"/meteo/Lauco\",3503 => \"/meteo/Laureana+cilento\",3504 => \"/meteo/Laureana+di+borrello\",3505 => \"/meteo/Lauregno\",3506 => \"/meteo/Laurenzana\",3507 => \"/meteo/Lauria\",3508 => \"/meteo/Lauriano\",3509 => \"/meteo/Laurino\",3510 => \"/meteo/Laurito\",3511 => \"/meteo/Lauro\",3512 => \"/meteo/Lavagna\",3513 => \"/meteo/Lavagno\",3514 => \"/meteo/Lavarone\",3515 => \"/meteo/Lavello\",3516 => \"/meteo/Lavena+ponte+tresa\",3517 => \"/meteo/Laveno+mombello\",3518 => \"/meteo/Lavenone\",3519 => \"/meteo/Laviano\",8695 => \"/meteo/Lavinio\",3520 => \"/meteo/Lavis\",3521 => \"/meteo/Lazise\",3522 => \"/meteo/Lazzate\",8434 => \"/meteo/Le+polle\",3523 => \"/meteo/Lecce\",3524 => \"/meteo/Lecce+nei+marsi\",3525 => \"/meteo/Lecco\",3526 => \"/meteo/Leffe\",3527 => \"/meteo/Leggiuno\",3528 => \"/meteo/Legnago\",3529 => \"/meteo/Legnano\",3530 => \"/meteo/Legnaro\",3531 => \"/meteo/Lei\",3532 => \"/meteo/Leini\",3533 => \"/meteo/Leivi\",3534 => \"/meteo/Lemie\",3535 => \"/meteo/Lendinara\",3536 => \"/meteo/Leni\",3537 => \"/meteo/Lenna\",3538 => \"/meteo/Lenno\",3539 => \"/meteo/Leno\",3540 => \"/meteo/Lenola\",3541 => \"/meteo/Lenta\",3542 => \"/meteo/Lentate+sul+seveso\",3543 => \"/meteo/Lentella\",3544 => \"/meteo/Lentiai\",3545 => \"/meteo/Lentini\",3546 => \"/meteo/Leonessa\",3547 => \"/meteo/Leonforte\",3548 => \"/meteo/Leporano\",3549 => \"/meteo/Lequile\",3550 => \"/meteo/Lequio+berria\",3551 => \"/meteo/Lequio+tanaro\",3552 => \"/meteo/Lercara+friddi\",3553 => \"/meteo/Lerici\",3554 => \"/meteo/Lerma\",8250 => \"/meteo/Les+Suches\",3555 => \"/meteo/Lesa\",3556 => \"/meteo/Lesegno\",3557 => \"/meteo/Lesignano+de+'bagni\",3558 => \"/meteo/Lesina\",3559 => \"/meteo/Lesmo\",3560 => \"/meteo/Lessolo\",3561 => \"/meteo/Lessona\",3562 => \"/meteo/Lestizza\",3563 => \"/meteo/Letino\",3564 => \"/meteo/Letojanni\",3565 => \"/meteo/Lettere\",3566 => \"/meteo/Lettomanoppello\",3567 => \"/meteo/Lettopalena\",3568 => \"/meteo/Levanto\",3569 => \"/meteo/Levate\",3570 => \"/meteo/Leverano\",3571 => \"/meteo/Levice\",3572 => \"/meteo/Levico+terme\",3573 => \"/meteo/Levone\",3574 => \"/meteo/Lezzeno\",3575 => \"/meteo/Liberi\",3576 => \"/meteo/Librizzi\",3577 => \"/meteo/Licata\",3578 => \"/meteo/Licciana+nardi\",3579 => \"/meteo/Licenza\",3580 => \"/meteo/Licodia+eubea\",8442 => \"/meteo/Lido+degli+Estensi\",8441 => \"/meteo/Lido+delle+Nazioni\",8200 => \"/meteo/Lido+di+Camaiore\",8136 => \"/meteo/Lido+di+Ostia\",8746 => \"/meteo/Lido+di+Volano\",8594 => \"/meteo/Lido+Marini\",3581 => \"/meteo/Lierna\",3582 => \"/meteo/Lignana\",3583 => \"/meteo/Lignano+sabbiadoro\",3584 => \"/meteo/Ligonchio\",3585 => \"/meteo/Ligosullo\",3586 => \"/meteo/Lillianes\",3587 => \"/meteo/Limana\",3588 => \"/meteo/Limatola\",3589 => \"/meteo/Limbadi\",3590 => \"/meteo/Limbiate\",3591 => \"/meteo/Limena\",3592 => \"/meteo/Limido+comasco\",3593 => \"/meteo/Limina\",3594 => \"/meteo/Limone+piemonte\",3595 => \"/meteo/Limone+sul+garda\",3596 => \"/meteo/Limosano\",3597 => \"/meteo/Linarolo\",3598 => \"/meteo/Linguaglossa\",8180 => \"/meteo/Linosa\",3599 => \"/meteo/Lioni\",3600 => \"/meteo/Lipari\",3601 => \"/meteo/Lipomo\",3602 => \"/meteo/Lirio\",3603 => \"/meteo/Liscate\",3604 => \"/meteo/Liscia\",3605 => \"/meteo/Lisciano+niccone\",3606 => \"/meteo/Lisignago\",3607 => \"/meteo/Lisio\",3608 => \"/meteo/Lissone\",3609 => \"/meteo/Liveri\",3610 => \"/meteo/Livigno\",3611 => \"/meteo/Livinallongo+del+col+di+lana\",3613 => \"/meteo/Livo\",3612 => \"/meteo/Livo\",3614 => \"/meteo/Livorno\",3615 => \"/meteo/Livorno+ferraris\",3616 => \"/meteo/Livraga\",3617 => \"/meteo/Lizzanello\",3618 => \"/meteo/Lizzano\",3619 => \"/meteo/Lizzano+in+belvedere\",8300 => \"/meteo/Lizzola\",3620 => \"/meteo/Loano\",3621 => \"/meteo/Loazzolo\",3622 => \"/meteo/Locana\",3623 => \"/meteo/Locate+di+triulzi\",3624 => \"/meteo/Locate+varesino\",3625 => \"/meteo/Locatello\",3626 => \"/meteo/Loceri\",3627 => \"/meteo/Locorotondo\",3628 => \"/meteo/Locri\",3629 => \"/meteo/Loculi\",3630 => \"/meteo/Lode'\",3631 => \"/meteo/Lodi\",3632 => \"/meteo/Lodi+vecchio\",3633 => \"/meteo/Lodine\",3634 => \"/meteo/Lodrino\",3635 => \"/meteo/Lograto\",3636 => \"/meteo/Loiano\",8748 => \"/meteo/Loiano+RFI\",3637 => \"/meteo/Loiri+porto+san+paolo\",3638 => \"/meteo/Lomagna\",3639 => \"/meteo/Lomaso\",3640 => \"/meteo/Lomazzo\",3641 => \"/meteo/Lombardore\",3642 => \"/meteo/Lombriasco\",3643 => \"/meteo/Lomello\",3644 => \"/meteo/Lona+lases\",3645 => \"/meteo/Lonate+ceppino\",3646 => \"/meteo/Lonate+pozzolo\",3647 => \"/meteo/Lonato\",3648 => \"/meteo/Londa\",3649 => \"/meteo/Longano\",3650 => \"/meteo/Longare\",3651 => \"/meteo/Longarone\",3652 => \"/meteo/Longhena\",3653 => \"/meteo/Longi\",3654 => \"/meteo/Longiano\",3655 => \"/meteo/Longobardi\",3656 => \"/meteo/Longobucco\",3657 => \"/meteo/Longone+al+segrino\",3658 => \"/meteo/Longone+sabino\",3659 => \"/meteo/Lonigo\",3660 => \"/meteo/Loranze'\",3661 => \"/meteo/Loreggia\",3662 => \"/meteo/Loreglia\",3663 => \"/meteo/Lorenzago+di+cadore\",3664 => \"/meteo/Lorenzana\",3665 => \"/meteo/Loreo\",3666 => \"/meteo/Loreto\",3667 => \"/meteo/Loreto+aprutino\",3668 => \"/meteo/Loria\",8523 => \"/meteo/Lorica\",3669 => \"/meteo/Loro+ciuffenna\",3670 => \"/meteo/Loro+piceno\",3671 => \"/meteo/Lorsica\",3672 => \"/meteo/Losine\",3673 => \"/meteo/Lotzorai\",3674 => \"/meteo/Lovere\",3675 => \"/meteo/Lovero\",3676 => \"/meteo/Lozio\",3677 => \"/meteo/Lozza\",3678 => \"/meteo/Lozzo+atestino\",3679 => \"/meteo/Lozzo+di+cadore\",3680 => \"/meteo/Lozzolo\",3681 => \"/meteo/Lu\",3682 => \"/meteo/Lubriano\",3683 => \"/meteo/Lucca\",3684 => \"/meteo/Lucca+sicula\",3685 => \"/meteo/Lucera\",3686 => \"/meteo/Lucignano\",3687 => \"/meteo/Lucinasco\",3688 => \"/meteo/Lucito\",3689 => \"/meteo/Luco+dei+marsi\",3690 => \"/meteo/Lucoli\",3691 => \"/meteo/Lugagnano+val+d'arda\",3692 => \"/meteo/Lugnacco\",3693 => \"/meteo/Lugnano+in+teverina\",3694 => \"/meteo/Lugo\",3695 => \"/meteo/Lugo+di+vicenza\",3696 => \"/meteo/Luino\",3697 => \"/meteo/Luisago\",3698 => \"/meteo/Lula\",3699 => \"/meteo/Lumarzo\",3700 => \"/meteo/Lumezzane\",3701 => \"/meteo/Lunamatrona\",3702 => \"/meteo/Lunano\",3703 => \"/meteo/Lungavilla\",3704 => \"/meteo/Lungro\",3705 => \"/meteo/Luogosano\",3706 => \"/meteo/Luogosanto\",3707 => \"/meteo/Lupara\",3708 => \"/meteo/Lurago+d'erba\",3709 => \"/meteo/Lurago+marinone\",3710 => \"/meteo/Lurano\",3711 => \"/meteo/Luras\",3712 => \"/meteo/Lurate+caccivio\",3713 => \"/meteo/Lusciano\",8636 => \"/meteo/Lusentino\",3714 => \"/meteo/Luserna\",3715 => \"/meteo/Luserna+san+giovanni\",3716 => \"/meteo/Lusernetta\",3717 => \"/meteo/Lusevera\",3718 => \"/meteo/Lusia\",3719 => \"/meteo/Lusiana\",3720 => \"/meteo/Lusiglie'\",3721 => \"/meteo/Luson\",3722 => \"/meteo/Lustra\",8572 => \"/meteo/Lutago\",3723 => \"/meteo/Luvinate\",3724 => \"/meteo/Luzzana\",3725 => \"/meteo/Luzzara\",3726 => \"/meteo/Luzzi\",8447 => \"/meteo/L`Aquila+est\",8446 => \"/meteo/L`Aquila+ovest\",3727 => \"/meteo/Maccagno\",3728 => \"/meteo/Maccastorna\",3729 => \"/meteo/Macchia+d'isernia\",3730 => \"/meteo/Macchia+valfortore\",3731 => \"/meteo/Macchiagodena\",3732 => \"/meteo/Macello\",3733 => \"/meteo/Macerata\",3734 => \"/meteo/Macerata+campania\",3735 => \"/meteo/Macerata+feltria\",3736 => \"/meteo/Macherio\",3737 => \"/meteo/Maclodio\",3738 => \"/meteo/Macomer\",3739 => \"/meteo/Macra\",3740 => \"/meteo/Macugnaga\",3741 => \"/meteo/Maddaloni\",3742 => \"/meteo/Madesimo\",3743 => \"/meteo/Madignano\",3744 => \"/meteo/Madone\",3745 => \"/meteo/Madonna+del+sasso\",8201 => \"/meteo/Madonna+di+Campiglio\",3746 => \"/meteo/Maenza\",3747 => \"/meteo/Mafalda\",3748 => \"/meteo/Magasa\",3749 => \"/meteo/Magenta\",3750 => \"/meteo/Maggiora\",3751 => \"/meteo/Magherno\",3752 => \"/meteo/Magione\",3753 => \"/meteo/Magisano\",3754 => \"/meteo/Magliano+alfieri\",3755 => \"/meteo/Magliano+alpi\",8461 => \"/meteo/Magliano+casello\",3756 => \"/meteo/Magliano+de'+marsi\",3757 => \"/meteo/Magliano+di+tenna\",3758 => \"/meteo/Magliano+in+toscana\",3759 => \"/meteo/Magliano+romano\",3760 => \"/meteo/Magliano+sabina\",3761 => \"/meteo/Magliano+vetere\",3762 => \"/meteo/Maglie\",3763 => \"/meteo/Magliolo\",3764 => \"/meteo/Maglione\",3765 => \"/meteo/Magnacavallo\",3766 => \"/meteo/Magnago\",3767 => \"/meteo/Magnano\",3768 => \"/meteo/Magnano+in+riviera\",8322 => \"/meteo/Magnolta\",3769 => \"/meteo/Magomadas\",3770 => \"/meteo/Magre'+sulla+strada+del+vino\",3771 => \"/meteo/Magreglio\",3772 => \"/meteo/Maida\",3773 => \"/meteo/Maiera'\",3774 => \"/meteo/Maierato\",3775 => \"/meteo/Maiolati+spontini\",3776 => \"/meteo/Maiolo\",3777 => \"/meteo/Maiori\",3778 => \"/meteo/Mairago\",3779 => \"/meteo/Mairano\",3780 => \"/meteo/Maissana\",3781 => \"/meteo/Majano\",3782 => \"/meteo/Malagnino\",3783 => \"/meteo/Malalbergo\",3784 => \"/meteo/Malborghetto+valbruna\",3785 => \"/meteo/Malcesine\",3786 => \"/meteo/Male'\",3787 => \"/meteo/Malegno\",3788 => \"/meteo/Maleo\",3789 => \"/meteo/Malesco\",3790 => \"/meteo/Maletto\",3791 => \"/meteo/Malfa\",8229 => \"/meteo/Malga+Ciapela\",8333 => \"/meteo/Malga+Polzone\",8661 => \"/meteo/Malga+San+Giorgio\",3792 => \"/meteo/Malgesso\",3793 => \"/meteo/Malgrate\",3794 => \"/meteo/Malito\",3795 => \"/meteo/Mallare\",3796 => \"/meteo/Malles+Venosta\",3797 => \"/meteo/Malnate\",3798 => \"/meteo/Malo\",3799 => \"/meteo/Malonno\",3800 => \"/meteo/Malosco\",3801 => \"/meteo/Maltignano\",3802 => \"/meteo/Malvagna\",3803 => \"/meteo/Malvicino\",3804 => \"/meteo/Malvito\",3805 => \"/meteo/Mammola\",3806 => \"/meteo/Mamoiada\",3807 => \"/meteo/Manciano\",3808 => \"/meteo/Mandanici\",3809 => \"/meteo/Mandas\",3810 => \"/meteo/Mandatoriccio\",3811 => \"/meteo/Mandela\",3812 => \"/meteo/Mandello+del+lario\",3813 => \"/meteo/Mandello+vitta\",3814 => \"/meteo/Manduria\",3815 => \"/meteo/Manerba+del+garda\",3816 => \"/meteo/Manerbio\",3817 => \"/meteo/Manfredonia\",3818 => \"/meteo/Mango\",3819 => \"/meteo/Mangone\",3820 => \"/meteo/Maniace\",3821 => \"/meteo/Maniago\",3822 => \"/meteo/Manocalzati\",3823 => \"/meteo/Manoppello\",3824 => \"/meteo/Mansue'\",3825 => \"/meteo/Manta\",3826 => \"/meteo/Mantello\",3827 => \"/meteo/Mantova\",8129 => \"/meteo/Manzano\",3829 => \"/meteo/Manziana\",3830 => \"/meteo/Mapello\",3831 => \"/meteo/Mara\",3832 => \"/meteo/Maracalagonis\",3833 => \"/meteo/Maranello\",3834 => \"/meteo/Marano+di+napoli\",3835 => \"/meteo/Marano+di+valpolicella\",3836 => \"/meteo/Marano+equo\",3837 => \"/meteo/Marano+lagunare\",3838 => \"/meteo/Marano+marchesato\",3839 => \"/meteo/Marano+principato\",3840 => \"/meteo/Marano+sul+panaro\",3841 => \"/meteo/Marano+ticino\",3842 => \"/meteo/Marano+vicentino\",3843 => \"/meteo/Maranzana\",3844 => \"/meteo/Maratea\",3845 => \"/meteo/Marcallo+con+Casone\",3846 => \"/meteo/Marcaria\",3847 => \"/meteo/Marcedusa\",3848 => \"/meteo/Marcellina\",3849 => \"/meteo/Marcellinara\",3850 => \"/meteo/Marcetelli\",3851 => \"/meteo/Marcheno\",3852 => \"/meteo/Marchirolo\",3853 => \"/meteo/Marciana\",3854 => \"/meteo/Marciana+marina\",3855 => \"/meteo/Marcianise\",3856 => \"/meteo/Marciano+della+chiana\",3857 => \"/meteo/Marcignago\",3858 => \"/meteo/Marcon\",3859 => \"/meteo/Marebbe\",8478 => \"/meteo/Marene\",3861 => \"/meteo/Mareno+di+piave\",3862 => \"/meteo/Marentino\",3863 => \"/meteo/Maretto\",3864 => \"/meteo/Margarita\",3865 => \"/meteo/Margherita+di+savoia\",3866 => \"/meteo/Margno\",3867 => \"/meteo/Mariana+mantovana\",3868 => \"/meteo/Mariano+comense\",3869 => \"/meteo/Mariano+del+friuli\",3870 => \"/meteo/Marianopoli\",3871 => \"/meteo/Mariglianella\",3872 => \"/meteo/Marigliano\",8291 => \"/meteo/Marilleva\",8490 => \"/meteo/Marina+di+Arbus\",8599 => \"/meteo/Marina+di+Camerota\",8582 => \"/meteo/Marina+di+Campo\",8111 => \"/meteo/Marina+di+Cariati\",8118 => \"/meteo/Marina+di+Cetraro\",8175 => \"/meteo/Marina+di+Gairo\",8164 => \"/meteo/Marina+di+Ginosa\",3873 => \"/meteo/Marina+di+gioiosa+ionica\",8166 => \"/meteo/Marina+di+Leuca\",8184 => \"/meteo/Marina+di+Modica\",8156 => \"/meteo/Marina+di+montenero\",8165 => \"/meteo/Marina+di+Ostuni\",8186 => \"/meteo/Marina+di+Palma\",8141 => \"/meteo/Marina+di+Pescia+Romana\",8591 => \"/meteo/Marina+di+Pescoluse\",8298 => \"/meteo/Marina+di+Pietrasanta\",8128 => \"/meteo/Marina+di+Ravenna\",8174 => \"/meteo/Marina+di+Sorso\",8188 => \"/meteo/Marinella\",3874 => \"/meteo/Marineo\",3875 => \"/meteo/Marino\",3876 => \"/meteo/Marlengo\",3877 => \"/meteo/Marliana\",3878 => \"/meteo/Marmentino\",3879 => \"/meteo/Marmirolo\",8205 => \"/meteo/Marmolada\",3880 => \"/meteo/Marmora\",3881 => \"/meteo/Marnate\",3882 => \"/meteo/Marone\",3883 => \"/meteo/Maropati\",3884 => \"/meteo/Marostica\",8154 => \"/meteo/Marotta\",3885 => \"/meteo/Marradi\",3886 => \"/meteo/Marrubiu\",3887 => \"/meteo/Marsaglia\",3888 => \"/meteo/Marsala\",3889 => \"/meteo/Marsciano\",3890 => \"/meteo/Marsico+nuovo\",3891 => \"/meteo/Marsicovetere\",3892 => \"/meteo/Marta\",3893 => \"/meteo/Martano\",3894 => \"/meteo/Martellago\",3895 => \"/meteo/Martello\",3896 => \"/meteo/Martignacco\",3897 => \"/meteo/Martignana+di+po\",3898 => \"/meteo/Martignano\",3899 => \"/meteo/Martina+franca\",3900 => \"/meteo/Martinengo\",3901 => \"/meteo/Martiniana+po\",3902 => \"/meteo/Martinsicuro\",3903 => \"/meteo/Martirano\",3904 => \"/meteo/Martirano+lombardo\",3905 => \"/meteo/Martis\",3906 => \"/meteo/Martone\",3907 => \"/meteo/Marudo\",3908 => \"/meteo/Maruggio\",3909 => \"/meteo/Marzabotto\",3910 => \"/meteo/Marzano\",3911 => \"/meteo/Marzano+appio\",3912 => \"/meteo/Marzano+di+nola\",3913 => \"/meteo/Marzi\",3914 => \"/meteo/Marzio\",3915 => \"/meteo/Masainas\",3916 => \"/meteo/Masate\",3917 => \"/meteo/Mascali\",3918 => \"/meteo/Mascalucia\",3919 => \"/meteo/Maschito\",3920 => \"/meteo/Masciago+primo\",3921 => \"/meteo/Maser\",3922 => \"/meteo/Masera\",3923 => \"/meteo/Masera'+di+Padova\",3924 => \"/meteo/Maserada+sul+piave\",3925 => \"/meteo/Masi\",3926 => \"/meteo/Masi+torello\",3927 => \"/meteo/Masio\",3928 => \"/meteo/Maslianico\",8216 => \"/meteo/Maso+Corto\",3929 => \"/meteo/Mason+vicentino\",3930 => \"/meteo/Masone\",3931 => \"/meteo/Massa\",3932 => \"/meteo/Massa+d'albe\",3933 => \"/meteo/Massa+di+somma\",3934 => \"/meteo/Massa+e+cozzile\",3935 => \"/meteo/Massa+fermana\",3936 => \"/meteo/Massa+fiscaglia\",3937 => \"/meteo/Massa+lombarda\",3938 => \"/meteo/Massa+lubrense\",3939 => \"/meteo/Massa+marittima\",3940 => \"/meteo/Massa+martana\",3941 => \"/meteo/Massafra\",3942 => \"/meteo/Massalengo\",3943 => \"/meteo/Massanzago\",3944 => \"/meteo/Massarosa\",3945 => \"/meteo/Massazza\",3946 => \"/meteo/Massello\",3947 => \"/meteo/Masserano\",3948 => \"/meteo/Massignano\",3949 => \"/meteo/Massimeno\",3950 => \"/meteo/Massimino\",3951 => \"/meteo/Massino+visconti\",3952 => \"/meteo/Massiola\",3953 => \"/meteo/Masullas\",3954 => \"/meteo/Matelica\",3955 => \"/meteo/Matera\",3956 => \"/meteo/Mathi\",3957 => \"/meteo/Matino\",3958 => \"/meteo/Matrice\",3959 => \"/meteo/Mattie\",3960 => \"/meteo/Mattinata\",3961 => \"/meteo/Mazara+del+vallo\",3962 => \"/meteo/Mazzano\",3963 => \"/meteo/Mazzano+romano\",3964 => \"/meteo/Mazzarino\",3965 => \"/meteo/Mazzarra'+sant'andrea\",3966 => \"/meteo/Mazzarrone\",3967 => \"/meteo/Mazze'\",3968 => \"/meteo/Mazzin\",3969 => \"/meteo/Mazzo+di+valtellina\",3970 => \"/meteo/Meana+di+susa\",3971 => \"/meteo/Meana+sardo\",3972 => \"/meteo/Meda\",3973 => \"/meteo/Mede\",3974 => \"/meteo/Medea\",3975 => \"/meteo/Medesano\",3976 => \"/meteo/Medicina\",3977 => \"/meteo/Mediglia\",3978 => \"/meteo/Medolago\",3979 => \"/meteo/Medole\",3980 => \"/meteo/Medolla\",3981 => \"/meteo/Meduna+di+livenza\",3982 => \"/meteo/Meduno\",3983 => \"/meteo/Megliadino+san+fidenzio\",3984 => \"/meteo/Megliadino+san+vitale\",3985 => \"/meteo/Meina\",3986 => \"/meteo/Mel\",3987 => \"/meteo/Melara\",3988 => \"/meteo/Melazzo\",8443 => \"/meteo/Meldola\",3990 => \"/meteo/Mele\",3991 => \"/meteo/Melegnano\",3992 => \"/meteo/Melendugno\",3993 => \"/meteo/Meleti\",8666 => \"/meteo/Melezet\",3994 => \"/meteo/Melfi\",3995 => \"/meteo/Melicucca'\",3996 => \"/meteo/Melicucco\",3997 => \"/meteo/Melilli\",3998 => \"/meteo/Melissa\",3999 => \"/meteo/Melissano\",4000 => \"/meteo/Melito+di+napoli\",4001 => \"/meteo/Melito+di+porto+salvo\",4002 => \"/meteo/Melito+irpino\",4003 => \"/meteo/Melizzano\",4004 => \"/meteo/Melle\",4005 => \"/meteo/Mello\",4006 => \"/meteo/Melpignano\",4007 => \"/meteo/Meltina\",4008 => \"/meteo/Melzo\",4009 => \"/meteo/Menaggio\",4010 => \"/meteo/Menarola\",4011 => \"/meteo/Menconico\",4012 => \"/meteo/Mendatica\",4013 => \"/meteo/Mendicino\",4014 => \"/meteo/Menfi\",4015 => \"/meteo/Mentana\",4016 => \"/meteo/Meolo\",4017 => \"/meteo/Merana\",4018 => \"/meteo/Merano\",8351 => \"/meteo/Merano+2000\",4019 => \"/meteo/Merate\",4020 => \"/meteo/Mercallo\",4021 => \"/meteo/Mercatello+sul+metauro\",4022 => \"/meteo/Mercatino+conca\",8437 => \"/meteo/Mercato\",4023 => \"/meteo/Mercato+san+severino\",4024 => \"/meteo/Mercato+saraceno\",4025 => \"/meteo/Mercenasco\",4026 => \"/meteo/Mercogliano\",4027 => \"/meteo/Mereto+di+tomba\",4028 => \"/meteo/Mergo\",4029 => \"/meteo/Mergozzo\",4030 => \"/meteo/Meri'\",4031 => \"/meteo/Merlara\",4032 => \"/meteo/Merlino\",4033 => \"/meteo/Merone\",4034 => \"/meteo/Mesagne\",4035 => \"/meteo/Mese\",4036 => \"/meteo/Mesenzana\",4037 => \"/meteo/Mesero\",4038 => \"/meteo/Mesola\",4039 => \"/meteo/Mesoraca\",4040 => \"/meteo/Messina\",4041 => \"/meteo/Mestrino\",4042 => \"/meteo/Meta\",8104 => \"/meteo/Metaponto\",4043 => \"/meteo/Meugliano\",4044 => \"/meteo/Mezzago\",4045 => \"/meteo/Mezzana\",4046 => \"/meteo/Mezzana+bigli\",4047 => \"/meteo/Mezzana+mortigliengo\",4048 => \"/meteo/Mezzana+rabattone\",4049 => \"/meteo/Mezzane+di+sotto\",4050 => \"/meteo/Mezzanego\",4051 => \"/meteo/Mezzani\",4052 => \"/meteo/Mezzanino\",4053 => \"/meteo/Mezzano\",4054 => \"/meteo/Mezzegra\",4055 => \"/meteo/Mezzenile\",4056 => \"/meteo/Mezzocorona\",4057 => \"/meteo/Mezzojuso\",4058 => \"/meteo/Mezzoldo\",4059 => \"/meteo/Mezzolombardo\",4060 => \"/meteo/Mezzomerico\",8524 => \"/meteo/MI+Olgettina\",8526 => \"/meteo/MI+Primaticcio\",8527 => \"/meteo/MI+Silla\",8525 => \"/meteo/MI+Zama\",4061 => \"/meteo/Miagliano\",4062 => \"/meteo/Miane\",4063 => \"/meteo/Miasino\",4064 => \"/meteo/Miazzina\",4065 => \"/meteo/Micigliano\",4066 => \"/meteo/Miggiano\",4067 => \"/meteo/Miglianico\",4068 => \"/meteo/Migliarino\",4069 => \"/meteo/Migliaro\",4070 => \"/meteo/Miglierina\",4071 => \"/meteo/Miglionico\",4072 => \"/meteo/Mignanego\",4073 => \"/meteo/Mignano+monte+lungo\",4074 => \"/meteo/Milano\",8495 => \"/meteo/Milano+Linate\",8496 => \"/meteo/Milano+Malpensa\",8240 => \"/meteo/Milano+marittima\",4075 => \"/meteo/Milazzo\",4076 => \"/meteo/Milena\",4077 => \"/meteo/Mileto\",4078 => \"/meteo/Milis\",4079 => \"/meteo/Militello+in+val+di+catania\",4080 => \"/meteo/Militello+rosmarino\",4081 => \"/meteo/Millesimo\",4082 => \"/meteo/Milo\",4083 => \"/meteo/Milzano\",4084 => \"/meteo/Mineo\",4085 => \"/meteo/Minerbe\",4086 => \"/meteo/Minerbio\",4087 => \"/meteo/Minervino+di+lecce\",4088 => \"/meteo/Minervino+murge\",4089 => \"/meteo/Minori\",4090 => \"/meteo/Minturno\",4091 => \"/meteo/Minucciano\",4092 => \"/meteo/Mioglia\",4093 => \"/meteo/Mira\",4094 => \"/meteo/Mirabella+eclano\",4095 => \"/meteo/Mirabella+imbaccari\",4096 => \"/meteo/Mirabello\",4097 => \"/meteo/Mirabello+monferrato\",4098 => \"/meteo/Mirabello+sannitico\",4099 => \"/meteo/Miradolo+terme\",4100 => \"/meteo/Miranda\",4101 => \"/meteo/Mirandola\",4102 => \"/meteo/Mirano\",4103 => \"/meteo/Mirto\",4104 => \"/meteo/Misano+adriatico\",4105 => \"/meteo/Misano+di+gera+d'adda\",4106 => \"/meteo/Misilmeri\",4107 => \"/meteo/Misinto\",4108 => \"/meteo/Missaglia\",8416 => \"/meteo/Missanello\",4110 => \"/meteo/Misterbianco\",4111 => \"/meteo/Mistretta\",8623 => \"/meteo/Misurina\",4112 => \"/meteo/Moasca\",4113 => \"/meteo/Moconesi\",4114 => \"/meteo/Modena\",4115 => \"/meteo/Modica\",4116 => \"/meteo/Modigliana\",4117 => \"/meteo/Modolo\",4118 => \"/meteo/Modugno\",4119 => \"/meteo/Moena\",4120 => \"/meteo/Moggio\",4121 => \"/meteo/Moggio+udinese\",4122 => \"/meteo/Moglia\",4123 => \"/meteo/Mogliano\",4124 => \"/meteo/Mogliano+veneto\",4125 => \"/meteo/Mogorella\",4126 => \"/meteo/Mogoro\",4127 => \"/meteo/Moiano\",8615 => \"/meteo/Moie\",4128 => \"/meteo/Moimacco\",4129 => \"/meteo/Moio+Alcantara\",4130 => \"/meteo/Moio+de'calvi\",4131 => \"/meteo/Moio+della+civitella\",4132 => \"/meteo/Moiola\",4133 => \"/meteo/Mola+di+bari\",4134 => \"/meteo/Molare\",4135 => \"/meteo/Molazzana\",4136 => \"/meteo/Molfetta\",4137 => \"/meteo/Molina+aterno\",4138 => \"/meteo/Molina+di+ledro\",4139 => \"/meteo/Molinara\",4140 => \"/meteo/Molinella\",4141 => \"/meteo/Molini+di+triora\",4142 => \"/meteo/Molino+dei+torti\",4143 => \"/meteo/Molise\",4144 => \"/meteo/Moliterno\",4145 => \"/meteo/Mollia\",4146 => \"/meteo/Molochio\",4147 => \"/meteo/Molteno\",4148 => \"/meteo/Moltrasio\",4149 => \"/meteo/Molvena\",4150 => \"/meteo/Molveno\",4151 => \"/meteo/Mombaldone\",4152 => \"/meteo/Mombarcaro\",4153 => \"/meteo/Mombaroccio\",4154 => \"/meteo/Mombaruzzo\",4155 => \"/meteo/Mombasiglio\",4156 => \"/meteo/Mombello+di+torino\",4157 => \"/meteo/Mombello+monferrato\",4158 => \"/meteo/Mombercelli\",4159 => \"/meteo/Momo\",4160 => \"/meteo/Mompantero\",4161 => \"/meteo/Mompeo\",4162 => \"/meteo/Momperone\",4163 => \"/meteo/Monacilioni\",4164 => \"/meteo/Monale\",4165 => \"/meteo/Monasterace\",4166 => \"/meteo/Monastero+bormida\",4167 => \"/meteo/Monastero+di+lanzo\",4168 => \"/meteo/Monastero+di+vasco\",4169 => \"/meteo/Monasterolo+casotto\",4170 => \"/meteo/Monasterolo+del+castello\",4171 => \"/meteo/Monasterolo+di+savigliano\",4172 => \"/meteo/Monastier+di+treviso\",4173 => \"/meteo/Monastir\",4174 => \"/meteo/Moncalieri\",4175 => \"/meteo/Moncalvo\",4176 => \"/meteo/Moncenisio\",4177 => \"/meteo/Moncestino\",4178 => \"/meteo/Monchiero\",4179 => \"/meteo/Monchio+delle+corti\",4180 => \"/meteo/Monclassico\",4181 => \"/meteo/Moncrivello\",8649 => \"/meteo/Moncucco\",4182 => \"/meteo/Moncucco+torinese\",4183 => \"/meteo/Mondaino\",4184 => \"/meteo/Mondavio\",4185 => \"/meteo/Mondolfo\",4186 => \"/meteo/Mondovi'\",4187 => \"/meteo/Mondragone\",4188 => \"/meteo/Moneglia\",8143 => \"/meteo/Monesi\",4189 => \"/meteo/Monesiglio\",4190 => \"/meteo/Monfalcone\",4191 => \"/meteo/Monforte+d'alba\",4192 => \"/meteo/Monforte+san+giorgio\",4193 => \"/meteo/Monfumo\",4194 => \"/meteo/Mongardino\",4195 => \"/meteo/Monghidoro\",4196 => \"/meteo/Mongiana\",4197 => \"/meteo/Mongiardino+ligure\",8637 => \"/meteo/Monginevro+Montgenevre\",4198 => \"/meteo/Mongiuffi+melia\",4199 => \"/meteo/Mongrando\",4200 => \"/meteo/Mongrassano\",4201 => \"/meteo/Monguelfo\",4202 => \"/meteo/Monguzzo\",4203 => \"/meteo/Moniga+del+garda\",4204 => \"/meteo/Monleale\",4205 => \"/meteo/Monno\",4206 => \"/meteo/Monopoli\",4207 => \"/meteo/Monreale\",4208 => \"/meteo/Monrupino\",4209 => \"/meteo/Monsampietro+morico\",4210 => \"/meteo/Monsampolo+del+tronto\",4211 => \"/meteo/Monsano\",4212 => \"/meteo/Monselice\",4213 => \"/meteo/Monserrato\",4214 => \"/meteo/Monsummano+terme\",4215 => \"/meteo/Monta'\",4216 => \"/meteo/Montabone\",4217 => \"/meteo/Montacuto\",4218 => \"/meteo/Montafia\",4219 => \"/meteo/Montagano\",4220 => \"/meteo/Montagna\",4221 => \"/meteo/Montagna+in+valtellina\",8301 => \"/meteo/Montagnana\",4223 => \"/meteo/Montagnareale\",4224 => \"/meteo/Montagne\",4225 => \"/meteo/Montaguto\",4226 => \"/meteo/Montaione\",4227 => \"/meteo/Montalbano+Elicona\",4228 => \"/meteo/Montalbano+jonico\",4229 => \"/meteo/Montalcino\",4230 => \"/meteo/Montaldeo\",4231 => \"/meteo/Montaldo+bormida\",4232 => \"/meteo/Montaldo+di+mondovi'\",4233 => \"/meteo/Montaldo+roero\",4234 => \"/meteo/Montaldo+scarampi\",4235 => \"/meteo/Montaldo+torinese\",4236 => \"/meteo/Montale\",4237 => \"/meteo/Montalenghe\",4238 => \"/meteo/Montallegro\",4239 => \"/meteo/Montalto+delle+marche\",4240 => \"/meteo/Montalto+di+castro\",4241 => \"/meteo/Montalto+dora\",4242 => \"/meteo/Montalto+ligure\",4243 => \"/meteo/Montalto+pavese\",4244 => \"/meteo/Montalto+uffugo\",4245 => \"/meteo/Montanaro\",4246 => \"/meteo/Montanaso+lombardo\",4247 => \"/meteo/Montanera\",4248 => \"/meteo/Montano+antilia\",4249 => \"/meteo/Montano+lucino\",4250 => \"/meteo/Montappone\",4251 => \"/meteo/Montaquila\",4252 => \"/meteo/Montasola\",4253 => \"/meteo/Montauro\",4254 => \"/meteo/Montazzoli\",8738 => \"/meteo/Monte+Alben\",8350 => \"/meteo/Monte+Amiata\",4255 => \"/meteo/Monte+Argentario\",8696 => \"/meteo/Monte+Avena\",8660 => \"/meteo/Monte+Baldo\",8251 => \"/meteo/Monte+Belvedere\",8720 => \"/meteo/Monte+Bianco\",8292 => \"/meteo/Monte+Bondone\",8757 => \"/meteo/Monte+Caio\",8149 => \"/meteo/Monte+Campione\",4256 => \"/meteo/Monte+Castello+di+Vibio\",4257 => \"/meteo/Monte+Cavallo\",4258 => \"/meteo/Monte+Cerignone\",8722 => \"/meteo/Monte+Cervino\",8533 => \"/meteo/Monte+Cimone\",4259 => \"/meteo/Monte+Colombo\",8658 => \"/meteo/Monte+Cornizzolo\",4260 => \"/meteo/Monte+Cremasco\",4261 => \"/meteo/Monte+di+Malo\",4262 => \"/meteo/Monte+di+Procida\",8581 => \"/meteo/Monte+Elmo\",8701 => \"/meteo/Monte+Faloria\",4263 => \"/meteo/Monte+Giberto\",8486 => \"/meteo/Monte+Gomito\",8232 => \"/meteo/Monte+Grappa\",4264 => \"/meteo/Monte+Isola\",8735 => \"/meteo/Monte+Legnone\",8631 => \"/meteo/Monte+Livata\",8574 => \"/meteo/Monte+Lussari\",8484 => \"/meteo/Monte+Malanotte\",4265 => \"/meteo/Monte+Marenzo\",8611 => \"/meteo/Monte+Matajur\",8732 => \"/meteo/Monte+Matto\",8266 => \"/meteo/Monte+Moro\",8697 => \"/meteo/Monte+Mucrone\",8619 => \"/meteo/Monte+Pigna\",8288 => \"/meteo/Monte+Pora+Base\",8310 => \"/meteo/Monte+Pora+Cima\",4266 => \"/meteo/Monte+Porzio\",4267 => \"/meteo/Monte+Porzio+Catone\",8608 => \"/meteo/Monte+Prata\",8320 => \"/meteo/Monte+Pratello\",4268 => \"/meteo/Monte+Rinaldo\",4269 => \"/meteo/Monte+Roberto\",4270 => \"/meteo/Monte+Romano\",4271 => \"/meteo/Monte+San+Biagio\",4272 => \"/meteo/Monte+San+Giacomo\",4273 => \"/meteo/Monte+San+Giovanni+Campano\",4274 => \"/meteo/Monte+San+Giovanni+in+Sabina\",4275 => \"/meteo/Monte+San+Giusto\",4276 => \"/meteo/Monte+San+Martino\",4277 => \"/meteo/Monte+San+Pietrangeli\",4278 => \"/meteo/Monte+San+Pietro\",8538 => \"/meteo/Monte+San+Primo\",4279 => \"/meteo/Monte+San+Savino\",8652 => \"/meteo/Monte+San+Vigilio\",4280 => \"/meteo/Monte+San+Vito\",4281 => \"/meteo/Monte+Sant'Angelo\",4282 => \"/meteo/Monte+Santa+Maria+Tiberina\",8570 => \"/meteo/Monte+Scuro\",8278 => \"/meteo/Monte+Spinale\",4283 => \"/meteo/Monte+Urano\",8758 => \"/meteo/Monte+Ventasso\",4284 => \"/meteo/Monte+Vidon+Combatte\",4285 => \"/meteo/Monte+Vidon+Corrado\",8729 => \"/meteo/Monte+Volturino\",8346 => \"/meteo/Monte+Zoncolan\",4286 => \"/meteo/Montebello+della+Battaglia\",4287 => \"/meteo/Montebello+di+Bertona\",4288 => \"/meteo/Montebello+Ionico\",4289 => \"/meteo/Montebello+sul+Sangro\",4290 => \"/meteo/Montebello+Vicentino\",4291 => \"/meteo/Montebelluna\",4292 => \"/meteo/Montebruno\",4293 => \"/meteo/Montebuono\",4294 => \"/meteo/Montecalvo+in+Foglia\",4295 => \"/meteo/Montecalvo+Irpino\",4296 => \"/meteo/Montecalvo+Versiggia\",4297 => \"/meteo/Montecarlo\",4298 => \"/meteo/Montecarotto\",4299 => \"/meteo/Montecassiano\",4300 => \"/meteo/Montecastello\",4301 => \"/meteo/Montecastrilli\",4303 => \"/meteo/Montecatini+terme\",4302 => \"/meteo/Montecatini+Val+di+Cecina\",4304 => \"/meteo/Montecchia+di+Crosara\",4305 => \"/meteo/Montecchio\",4306 => \"/meteo/Montecchio+Emilia\",4307 => \"/meteo/Montecchio+Maggiore\",4308 => \"/meteo/Montecchio+Precalcino\",4309 => \"/meteo/Montechiaro+d'Acqui\",4310 => \"/meteo/Montechiaro+d'Asti\",4311 => \"/meteo/Montechiarugolo\",4312 => \"/meteo/Monteciccardo\",4313 => \"/meteo/Montecilfone\",4314 => \"/meteo/Montecompatri\",4315 => \"/meteo/Montecopiolo\",4316 => \"/meteo/Montecorice\",4317 => \"/meteo/Montecorvino+Pugliano\",4318 => \"/meteo/Montecorvino+Rovella\",4319 => \"/meteo/Montecosaro\",4320 => \"/meteo/Montecrestese\",4321 => \"/meteo/Montecreto\",4322 => \"/meteo/Montedinove\",4323 => \"/meteo/Montedoro\",4324 => \"/meteo/Montefalcione\",4325 => \"/meteo/Montefalco\",4326 => \"/meteo/Montefalcone+Appennino\",4327 => \"/meteo/Montefalcone+di+Val+Fortore\",4328 => \"/meteo/Montefalcone+nel+Sannio\",4329 => \"/meteo/Montefano\",4330 => \"/meteo/Montefelcino\",4331 => \"/meteo/Monteferrante\",4332 => \"/meteo/Montefiascone\",4333 => \"/meteo/Montefino\",4334 => \"/meteo/Montefiore+conca\",4335 => \"/meteo/Montefiore+dell'Aso\",4336 => \"/meteo/Montefiorino\",4337 => \"/meteo/Monteflavio\",4338 => \"/meteo/Monteforte+Cilento\",4339 => \"/meteo/Monteforte+d'Alpone\",4340 => \"/meteo/Monteforte+Irpino\",4341 => \"/meteo/Montefortino\",4342 => \"/meteo/Montefranco\",4343 => \"/meteo/Montefredane\",4344 => \"/meteo/Montefusco\",4345 => \"/meteo/Montegabbione\",4346 => \"/meteo/Montegalda\",4347 => \"/meteo/Montegaldella\",4348 => \"/meteo/Montegallo\",4349 => \"/meteo/Montegioco\",4350 => \"/meteo/Montegiordano\",4351 => \"/meteo/Montegiorgio\",4352 => \"/meteo/Montegranaro\",4353 => \"/meteo/Montegridolfo\",4354 => \"/meteo/Montegrimano\",4355 => \"/meteo/Montegrino+valtravaglia\",4356 => \"/meteo/Montegrosso+d'Asti\",4357 => \"/meteo/Montegrosso+pian+latte\",4358 => \"/meteo/Montegrotto+terme\",4359 => \"/meteo/Monteiasi\",4360 => \"/meteo/Montelabbate\",4361 => \"/meteo/Montelanico\",4362 => \"/meteo/Montelapiano\",4363 => \"/meteo/Monteleone+d'orvieto\",4364 => \"/meteo/Monteleone+di+fermo\",4365 => \"/meteo/Monteleone+di+puglia\",4366 => \"/meteo/Monteleone+di+spoleto\",4367 => \"/meteo/Monteleone+rocca+doria\",4368 => \"/meteo/Monteleone+sabino\",4369 => \"/meteo/Montelepre\",4370 => \"/meteo/Montelibretti\",4371 => \"/meteo/Montella\",4372 => \"/meteo/Montello\",4373 => \"/meteo/Montelongo\",4374 => \"/meteo/Montelparo\",4375 => \"/meteo/Montelupo+albese\",4376 => \"/meteo/Montelupo+fiorentino\",4377 => \"/meteo/Montelupone\",4378 => \"/meteo/Montemaggiore+al+metauro\",4379 => \"/meteo/Montemaggiore+belsito\",4380 => \"/meteo/Montemagno\",4381 => \"/meteo/Montemale+di+cuneo\",4382 => \"/meteo/Montemarano\",4383 => \"/meteo/Montemarciano\",4384 => \"/meteo/Montemarzino\",4385 => \"/meteo/Montemesola\",4386 => \"/meteo/Montemezzo\",4387 => \"/meteo/Montemignaio\",4388 => \"/meteo/Montemiletto\",8401 => \"/meteo/Montemilone\",4390 => \"/meteo/Montemitro\",4391 => \"/meteo/Montemonaco\",4392 => \"/meteo/Montemurlo\",8408 => \"/meteo/Montemurro\",4394 => \"/meteo/Montenars\",4395 => \"/meteo/Montenero+di+bisaccia\",4396 => \"/meteo/Montenero+sabino\",4397 => \"/meteo/Montenero+val+cocchiara\",4398 => \"/meteo/Montenerodomo\",4399 => \"/meteo/Monteodorisio\",4400 => \"/meteo/Montepaone\",4401 => \"/meteo/Monteparano\",8296 => \"/meteo/Montepiano\",4402 => \"/meteo/Monteprandone\",4403 => \"/meteo/Montepulciano\",4404 => \"/meteo/Monterado\",4405 => \"/meteo/Monterchi\",4406 => \"/meteo/Montereale\",4407 => \"/meteo/Montereale+valcellina\",4408 => \"/meteo/Monterenzio\",4409 => \"/meteo/Monteriggioni\",4410 => \"/meteo/Monteroduni\",4411 => \"/meteo/Monteroni+d'arbia\",4412 => \"/meteo/Monteroni+di+lecce\",4413 => \"/meteo/Monterosi\",4414 => \"/meteo/Monterosso+al+mare\",4415 => \"/meteo/Monterosso+almo\",4416 => \"/meteo/Monterosso+calabro\",4417 => \"/meteo/Monterosso+grana\",4418 => \"/meteo/Monterotondo\",4419 => \"/meteo/Monterotondo+marittimo\",4420 => \"/meteo/Monterubbiano\",4421 => \"/meteo/Montesano+salentino\",4422 => \"/meteo/Montesano+sulla+marcellana\",4423 => \"/meteo/Montesarchio\",8389 => \"/meteo/Montescaglioso\",4425 => \"/meteo/Montescano\",4426 => \"/meteo/Montescheno\",4427 => \"/meteo/Montescudaio\",4428 => \"/meteo/Montescudo\",4429 => \"/meteo/Montese\",4430 => \"/meteo/Montesegale\",4431 => \"/meteo/Montesilvano\",8491 => \"/meteo/Montesilvano+Marina\",4432 => \"/meteo/Montespertoli\",1730 => \"/meteo/Montespluga\",4433 => \"/meteo/Monteu+da+Po\",4434 => \"/meteo/Monteu+roero\",4435 => \"/meteo/Montevago\",4436 => \"/meteo/Montevarchi\",4437 => \"/meteo/Montevecchia\",4438 => \"/meteo/Monteveglio\",4439 => \"/meteo/Monteverde\",4440 => \"/meteo/Monteverdi+marittimo\",8589 => \"/meteo/Montevergine\",4441 => \"/meteo/Monteviale\",4442 => \"/meteo/Montezemolo\",4443 => \"/meteo/Monti\",4444 => \"/meteo/Montiano\",4445 => \"/meteo/Monticelli+brusati\",4446 => \"/meteo/Monticelli+d'ongina\",4447 => \"/meteo/Monticelli+pavese\",4448 => \"/meteo/Monticello+brianza\",4449 => \"/meteo/Monticello+conte+otto\",4450 => \"/meteo/Monticello+d'alba\",4451 => \"/meteo/Montichiari\",4452 => \"/meteo/Monticiano\",4453 => \"/meteo/Montieri\",4454 => \"/meteo/Montiglio+monferrato\",4455 => \"/meteo/Montignoso\",4456 => \"/meteo/Montirone\",4457 => \"/meteo/Montjovet\",4458 => \"/meteo/Montodine\",4459 => \"/meteo/Montoggio\",4460 => \"/meteo/Montone\",4461 => \"/meteo/Montopoli+di+sabina\",4462 => \"/meteo/Montopoli+in+val+d'arno\",4463 => \"/meteo/Montorfano\",4464 => \"/meteo/Montorio+al+vomano\",4465 => \"/meteo/Montorio+nei+frentani\",4466 => \"/meteo/Montorio+romano\",4467 => \"/meteo/Montoro+inferiore\",4468 => \"/meteo/Montoro+superiore\",4469 => \"/meteo/Montorso+vicentino\",4470 => \"/meteo/Montottone\",4471 => \"/meteo/Montresta\",4472 => \"/meteo/Montu'+beccaria\",8326 => \"/meteo/Montzeuc\",4473 => \"/meteo/Monvalle\",8726 => \"/meteo/Monviso\",4474 => \"/meteo/Monza\",4475 => \"/meteo/Monzambano\",4476 => \"/meteo/Monzuno\",4477 => \"/meteo/Morano+calabro\",4478 => \"/meteo/Morano+sul+Po\",4479 => \"/meteo/Moransengo\",4480 => \"/meteo/Moraro\",4481 => \"/meteo/Morazzone\",4482 => \"/meteo/Morbegno\",4483 => \"/meteo/Morbello\",4484 => \"/meteo/Morciano+di+leuca\",4485 => \"/meteo/Morciano+di+romagna\",4486 => \"/meteo/Morcone\",4487 => \"/meteo/Mordano\",8262 => \"/meteo/Morel\",4488 => \"/meteo/Morengo\",4489 => \"/meteo/Mores\",4490 => \"/meteo/Moresco\",4491 => \"/meteo/Moretta\",4492 => \"/meteo/Morfasso\",4493 => \"/meteo/Morgano\",8717 => \"/meteo/Morgantina\",4494 => \"/meteo/Morgex\",4495 => \"/meteo/Morgongiori\",4496 => \"/meteo/Mori\",4497 => \"/meteo/Moriago+della+battaglia\",4498 => \"/meteo/Moricone\",4499 => \"/meteo/Morigerati\",4500 => \"/meteo/Morimondo\",4501 => \"/meteo/Morino\",4502 => \"/meteo/Moriondo+torinese\",4503 => \"/meteo/Morlupo\",4504 => \"/meteo/Mormanno\",4505 => \"/meteo/Mornago\",4506 => \"/meteo/Mornese\",4507 => \"/meteo/Mornico+al+serio\",4508 => \"/meteo/Mornico+losana\",4509 => \"/meteo/Morolo\",4510 => \"/meteo/Morozzo\",4511 => \"/meteo/Morra+de+sanctis\",4512 => \"/meteo/Morro+d'alba\",4513 => \"/meteo/Morro+d'oro\",4514 => \"/meteo/Morro+reatino\",4515 => \"/meteo/Morrone+del+sannio\",4516 => \"/meteo/Morrovalle\",4517 => \"/meteo/Morsano+al+tagliamento\",4518 => \"/meteo/Morsasco\",4519 => \"/meteo/Mortara\",4520 => \"/meteo/Mortegliano\",4521 => \"/meteo/Morterone\",4522 => \"/meteo/Moruzzo\",4523 => \"/meteo/Moscazzano\",4524 => \"/meteo/Moschiano\",4525 => \"/meteo/Mosciano+sant'angelo\",4526 => \"/meteo/Moscufo\",4527 => \"/meteo/Moso+in+Passiria\",4528 => \"/meteo/Mossa\",4529 => \"/meteo/Mossano\",4530 => \"/meteo/Mosso+Santa+Maria\",4531 => \"/meteo/Motta+baluffi\",4532 => \"/meteo/Motta+Camastra\",4533 => \"/meteo/Motta+d'affermo\",4534 => \"/meteo/Motta+de'+conti\",4535 => \"/meteo/Motta+di+livenza\",4536 => \"/meteo/Motta+montecorvino\",4537 => \"/meteo/Motta+san+giovanni\",4538 => \"/meteo/Motta+sant'anastasia\",4539 => \"/meteo/Motta+santa+lucia\",4540 => \"/meteo/Motta+visconti\",4541 => \"/meteo/Mottafollone\",4542 => \"/meteo/Mottalciata\",8621 => \"/meteo/Mottarone\",4543 => \"/meteo/Motteggiana\",4544 => \"/meteo/Mottola\",8254 => \"/meteo/Mottolino\",4545 => \"/meteo/Mozzagrogna\",4546 => \"/meteo/Mozzanica\",4547 => \"/meteo/Mozzate\",4548 => \"/meteo/Mozzecane\",4549 => \"/meteo/Mozzo\",4550 => \"/meteo/Muccia\",4551 => \"/meteo/Muggia\",4552 => \"/meteo/Muggio'\",4553 => \"/meteo/Mugnano+del+cardinale\",4554 => \"/meteo/Mugnano+di+napoli\",4555 => \"/meteo/Mulazzano\",4556 => \"/meteo/Mulazzo\",4557 => \"/meteo/Mura\",4558 => \"/meteo/Muravera\",4559 => \"/meteo/Murazzano\",4560 => \"/meteo/Murello\",4561 => \"/meteo/Murialdo\",4562 => \"/meteo/Murisengo\",4563 => \"/meteo/Murlo\",4564 => \"/meteo/Muro+leccese\",4565 => \"/meteo/Muro+lucano\",4566 => \"/meteo/Muros\",4567 => \"/meteo/Muscoline\",4568 => \"/meteo/Musei\",4569 => \"/meteo/Musile+di+piave\",4570 => \"/meteo/Musso\",4571 => \"/meteo/Mussolente\",4572 => \"/meteo/Mussomeli\",4573 => \"/meteo/Muzzana+del+turgnano\",4574 => \"/meteo/Muzzano\",4575 => \"/meteo/Nago+torbole\",4576 => \"/meteo/Nalles\",4577 => \"/meteo/Nanno\",4578 => \"/meteo/Nanto\",4579 => \"/meteo/Napoli\",8498 => \"/meteo/Napoli+Capodichino\",4580 => \"/meteo/Narbolia\",4581 => \"/meteo/Narcao\",4582 => \"/meteo/Nardo'\",4583 => \"/meteo/Nardodipace\",4584 => \"/meteo/Narni\",4585 => \"/meteo/Naro\",4586 => \"/meteo/Narzole\",4587 => \"/meteo/Nasino\",4588 => \"/meteo/Naso\",4589 => \"/meteo/Naturno\",4590 => \"/meteo/Nave\",4591 => \"/meteo/Nave+san+rocco\",4592 => \"/meteo/Navelli\",4593 => \"/meteo/Naz+Sciaves\",4594 => \"/meteo/Nazzano\",4595 => \"/meteo/Ne\",4596 => \"/meteo/Nebbiuno\",4597 => \"/meteo/Negrar\",4598 => \"/meteo/Neirone\",4599 => \"/meteo/Neive\",4600 => \"/meteo/Nembro\",4601 => \"/meteo/Nemi\",8381 => \"/meteo/Nemoli\",4603 => \"/meteo/Neoneli\",4604 => \"/meteo/Nepi\",4605 => \"/meteo/Nereto\",4606 => \"/meteo/Nerola\",4607 => \"/meteo/Nervesa+della+battaglia\",4608 => \"/meteo/Nerviano\",4609 => \"/meteo/Nespolo\",4610 => \"/meteo/Nesso\",4611 => \"/meteo/Netro\",4612 => \"/meteo/Nettuno\",4613 => \"/meteo/Neviano\",4614 => \"/meteo/Neviano+degli+arduini\",4615 => \"/meteo/Neviglie\",4616 => \"/meteo/Niardo\",4617 => \"/meteo/Nibbiano\",4618 => \"/meteo/Nibbiola\",4619 => \"/meteo/Nibionno\",4620 => \"/meteo/Nichelino\",4621 => \"/meteo/Nicolosi\",4622 => \"/meteo/Nicorvo\",4623 => \"/meteo/Nicosia\",4624 => \"/meteo/Nicotera\",8117 => \"/meteo/Nicotera+Marina\",4625 => \"/meteo/Niella+belbo\",8475 => \"/meteo/Niella+Tanaro\",4627 => \"/meteo/Nimis\",4628 => \"/meteo/Niscemi\",4629 => \"/meteo/Nissoria\",4630 => \"/meteo/Nizza+di+sicilia\",4631 => \"/meteo/Nizza+monferrato\",4632 => \"/meteo/Noale\",4633 => \"/meteo/Noasca\",4634 => \"/meteo/Nocara\",4635 => \"/meteo/Nocciano\",4636 => \"/meteo/Nocera+inferiore\",4637 => \"/meteo/Nocera+superiore\",4638 => \"/meteo/Nocera+terinese\",4639 => \"/meteo/Nocera+umbra\",4640 => \"/meteo/Noceto\",4641 => \"/meteo/Noci\",4642 => \"/meteo/Nociglia\",8375 => \"/meteo/Noepoli\",4644 => \"/meteo/Nogara\",4645 => \"/meteo/Nogaredo\",4646 => \"/meteo/Nogarole+rocca\",4647 => \"/meteo/Nogarole+vicentino\",4648 => \"/meteo/Noicattaro\",4649 => \"/meteo/Nola\",4650 => \"/meteo/Nole\",4651 => \"/meteo/Noli\",4652 => \"/meteo/Nomaglio\",4653 => \"/meteo/Nomi\",4654 => \"/meteo/Nonantola\",4655 => \"/meteo/None\",4656 => \"/meteo/Nonio\",4657 => \"/meteo/Noragugume\",4658 => \"/meteo/Norbello\",4659 => \"/meteo/Norcia\",4660 => \"/meteo/Norma\",4661 => \"/meteo/Nosate\",4662 => \"/meteo/Notaresco\",4663 => \"/meteo/Noto\",4664 => \"/meteo/Nova+Levante\",4665 => \"/meteo/Nova+milanese\",4666 => \"/meteo/Nova+Ponente\",8428 => \"/meteo/Nova+siri\",4668 => \"/meteo/Novafeltria\",4669 => \"/meteo/Novaledo\",4670 => \"/meteo/Novalesa\",4671 => \"/meteo/Novara\",4672 => \"/meteo/Novara+di+Sicilia\",4673 => \"/meteo/Novate+mezzola\",4674 => \"/meteo/Novate+milanese\",4675 => \"/meteo/Nove\",4676 => \"/meteo/Novedrate\",4677 => \"/meteo/Novellara\",4678 => \"/meteo/Novello\",4679 => \"/meteo/Noventa+di+piave\",4680 => \"/meteo/Noventa+padovana\",4681 => \"/meteo/Noventa+vicentina\",4682 => \"/meteo/Novi+di+modena\",4683 => \"/meteo/Novi+ligure\",4684 => \"/meteo/Novi+velia\",4685 => \"/meteo/Noviglio\",4686 => \"/meteo/Novoli\",4687 => \"/meteo/Nucetto\",4688 => \"/meteo/Nughedu+di+san+nicolo'\",4689 => \"/meteo/Nughedu+santa+vittoria\",4690 => \"/meteo/Nule\",4691 => \"/meteo/Nulvi\",4692 => \"/meteo/Numana\",4693 => \"/meteo/Nuoro\",4694 => \"/meteo/Nurachi\",4695 => \"/meteo/Nuragus\",4696 => \"/meteo/Nurallao\",4697 => \"/meteo/Nuraminis\",4698 => \"/meteo/Nureci\",4699 => \"/meteo/Nurri\",4700 => \"/meteo/Nus\",4701 => \"/meteo/Nusco\",4702 => \"/meteo/Nuvolento\",4703 => \"/meteo/Nuvolera\",4704 => \"/meteo/Nuxis\",8260 => \"/meteo/Obereggen\",4705 => \"/meteo/Occhieppo+inferiore\",4706 => \"/meteo/Occhieppo+superiore\",4707 => \"/meteo/Occhiobello\",4708 => \"/meteo/Occimiano\",4709 => \"/meteo/Ocre\",4710 => \"/meteo/Odalengo+grande\",4711 => \"/meteo/Odalengo+piccolo\",4712 => \"/meteo/Oderzo\",4713 => \"/meteo/Odolo\",4714 => \"/meteo/Ofena\",4715 => \"/meteo/Offagna\",4716 => \"/meteo/Offanengo\",4717 => \"/meteo/Offida\",4718 => \"/meteo/Offlaga\",4719 => \"/meteo/Oggebbio\",4720 => \"/meteo/Oggiona+con+santo+stefano\",4721 => \"/meteo/Oggiono\",4722 => \"/meteo/Oglianico\",4723 => \"/meteo/Ogliastro+cilento\",4724 => \"/meteo/Olbia\",8470 => \"/meteo/Olbia+Costa+Smeralda\",4725 => \"/meteo/Olcenengo\",4726 => \"/meteo/Oldenico\",4727 => \"/meteo/Oleggio\",4728 => \"/meteo/Oleggio+castello\",4729 => \"/meteo/Olevano+di+lomellina\",4730 => \"/meteo/Olevano+romano\",4731 => \"/meteo/Olevano+sul+tusciano\",4732 => \"/meteo/Olgiate+comasco\",4733 => \"/meteo/Olgiate+molgora\",4734 => \"/meteo/Olgiate+olona\",4735 => \"/meteo/Olginate\",4736 => \"/meteo/Oliena\",4737 => \"/meteo/Oliva+gessi\",4738 => \"/meteo/Olivadi\",4739 => \"/meteo/Oliveri\",4740 => \"/meteo/Oliveto+citra\",4741 => \"/meteo/Oliveto+lario\",8426 => \"/meteo/Oliveto+lucano\",4743 => \"/meteo/Olivetta+san+michele\",4744 => \"/meteo/Olivola\",4745 => \"/meteo/Ollastra+simaxis\",4746 => \"/meteo/Ollolai\",4747 => \"/meteo/Ollomont\",4748 => \"/meteo/Olmedo\",4749 => \"/meteo/Olmeneta\",4750 => \"/meteo/Olmo+al+brembo\",4751 => \"/meteo/Olmo+gentile\",4752 => \"/meteo/Oltre+il+colle\",4753 => \"/meteo/Oltressenda+alta\",4754 => \"/meteo/Oltrona+di+san+mamette\",4755 => \"/meteo/Olzai\",4756 => \"/meteo/Ome\",4757 => \"/meteo/Omegna\",4758 => \"/meteo/Omignano\",4759 => \"/meteo/Onani\",4760 => \"/meteo/Onano\",4761 => \"/meteo/Oncino\",8283 => \"/meteo/Oneglia\",4762 => \"/meteo/Oneta\",4763 => \"/meteo/Onifai\",4764 => \"/meteo/Oniferi\",8664 => \"/meteo/Onna\",4765 => \"/meteo/Ono+san+pietro\",4766 => \"/meteo/Onore\",4767 => \"/meteo/Onzo\",4768 => \"/meteo/Opera\",4769 => \"/meteo/Opi\",4770 => \"/meteo/Oppeano\",8409 => \"/meteo/Oppido+lucano\",4772 => \"/meteo/Oppido+mamertina\",4773 => \"/meteo/Ora\",4774 => \"/meteo/Orani\",4775 => \"/meteo/Oratino\",4776 => \"/meteo/Orbassano\",4777 => \"/meteo/Orbetello\",4778 => \"/meteo/Orciano+di+pesaro\",4779 => \"/meteo/Orciano+pisano\",4780 => \"/meteo/Orco+feglino\",4781 => \"/meteo/Ordona\",4782 => \"/meteo/Orero\",4783 => \"/meteo/Orgiano\",4784 => \"/meteo/Orgosolo\",4785 => \"/meteo/Oria\",4786 => \"/meteo/Oricola\",4787 => \"/meteo/Origgio\",4788 => \"/meteo/Orino\",4789 => \"/meteo/Orio+al+serio\",4790 => \"/meteo/Orio+canavese\",4791 => \"/meteo/Orio+litta\",4792 => \"/meteo/Oriolo\",4793 => \"/meteo/Oriolo+romano\",4794 => \"/meteo/Oristano\",4795 => \"/meteo/Ormea\",4796 => \"/meteo/Ormelle\",4797 => \"/meteo/Ornago\",4798 => \"/meteo/Ornavasso\",4799 => \"/meteo/Ornica\",8348 => \"/meteo/Oropa\",8169 => \"/meteo/Orosei\",4801 => \"/meteo/Orotelli\",4802 => \"/meteo/Orria\",4803 => \"/meteo/Orroli\",4804 => \"/meteo/Orsago\",4805 => \"/meteo/Orsara+bormida\",4806 => \"/meteo/Orsara+di+puglia\",4807 => \"/meteo/Orsenigo\",4808 => \"/meteo/Orsogna\",4809 => \"/meteo/Orsomarso\",4810 => \"/meteo/Orta+di+atella\",4811 => \"/meteo/Orta+nova\",4812 => \"/meteo/Orta+san+giulio\",4813 => \"/meteo/Ortacesus\",4814 => \"/meteo/Orte\",8460 => \"/meteo/Orte+casello\",4815 => \"/meteo/Ortelle\",4816 => \"/meteo/Ortezzano\",4817 => \"/meteo/Ortignano+raggiolo\",4818 => \"/meteo/Ortisei\",8725 => \"/meteo/Ortles\",4819 => \"/meteo/Ortona\",4820 => \"/meteo/Ortona+dei+marsi\",4821 => \"/meteo/Ortonovo\",4822 => \"/meteo/Ortovero\",4823 => \"/meteo/Ortucchio\",4824 => \"/meteo/Ortueri\",4825 => \"/meteo/Orune\",4826 => \"/meteo/Orvieto\",8459 => \"/meteo/Orvieto+casello\",4827 => \"/meteo/Orvinio\",4828 => \"/meteo/Orzinuovi\",4829 => \"/meteo/Orzivecchi\",4830 => \"/meteo/Osasco\",4831 => \"/meteo/Osasio\",4832 => \"/meteo/Oschiri\",4833 => \"/meteo/Osidda\",4834 => \"/meteo/Osiglia\",4835 => \"/meteo/Osilo\",4836 => \"/meteo/Osimo\",4837 => \"/meteo/Osini\",4838 => \"/meteo/Osio+sopra\",4839 => \"/meteo/Osio+sotto\",4840 => \"/meteo/Osmate\",4841 => \"/meteo/Osnago\",8465 => \"/meteo/Osoppo\",4843 => \"/meteo/Ospedaletti\",4844 => \"/meteo/Ospedaletto\",4845 => \"/meteo/Ospedaletto+d'alpinolo\",4846 => \"/meteo/Ospedaletto+euganeo\",4847 => \"/meteo/Ospedaletto+lodigiano\",4848 => \"/meteo/Ospitale+di+cadore\",4849 => \"/meteo/Ospitaletto\",4850 => \"/meteo/Ossago+lodigiano\",4851 => \"/meteo/Ossana\",4852 => \"/meteo/Ossi\",4853 => \"/meteo/Ossimo\",4854 => \"/meteo/Ossona\",4855 => \"/meteo/Ossuccio\",4856 => \"/meteo/Ostana\",4857 => \"/meteo/Ostellato\",4858 => \"/meteo/Ostiano\",4859 => \"/meteo/Ostiglia\",4860 => \"/meteo/Ostra\",4861 => \"/meteo/Ostra+vetere\",4862 => \"/meteo/Ostuni\",4863 => \"/meteo/Otranto\",4864 => \"/meteo/Otricoli\",4865 => \"/meteo/Ottana\",4866 => \"/meteo/Ottati\",4867 => \"/meteo/Ottaviano\",4868 => \"/meteo/Ottiglio\",4869 => \"/meteo/Ottobiano\",4870 => \"/meteo/Ottone\",4871 => \"/meteo/Oulx\",4872 => \"/meteo/Ovada\",4873 => \"/meteo/Ovaro\",4874 => \"/meteo/Oviglio\",4875 => \"/meteo/Ovindoli\",4876 => \"/meteo/Ovodda\",4877 => \"/meteo/Oyace\",4878 => \"/meteo/Ozegna\",4879 => \"/meteo/Ozieri\",4880 => \"/meteo/Ozzano+dell'emilia\",4881 => \"/meteo/Ozzano+monferrato\",4882 => \"/meteo/Ozzero\",4883 => \"/meteo/Pabillonis\",4884 => \"/meteo/Pace+del+mela\",4885 => \"/meteo/Paceco\",4886 => \"/meteo/Pacentro\",4887 => \"/meteo/Pachino\",4888 => \"/meteo/Paciano\",4889 => \"/meteo/Padenghe+sul+garda\",4890 => \"/meteo/Padergnone\",4891 => \"/meteo/Paderna\",4892 => \"/meteo/Paderno+d'adda\",4893 => \"/meteo/Paderno+del+grappa\",4894 => \"/meteo/Paderno+dugnano\",4895 => \"/meteo/Paderno+franciacorta\",4896 => \"/meteo/Paderno+ponchielli\",4897 => \"/meteo/Padova\",4898 => \"/meteo/Padria\",4899 => \"/meteo/Padru\",4900 => \"/meteo/Padula\",4901 => \"/meteo/Paduli\",4902 => \"/meteo/Paesana\",4903 => \"/meteo/Paese\",8713 => \"/meteo/Paestum\",8203 => \"/meteo/Paganella\",4904 => \"/meteo/Pagani\",8663 => \"/meteo/Paganica\",4905 => \"/meteo/Paganico\",4906 => \"/meteo/Pagazzano\",4907 => \"/meteo/Pagliara\",4908 => \"/meteo/Paglieta\",4909 => \"/meteo/Pagnacco\",4910 => \"/meteo/Pagno\",4911 => \"/meteo/Pagnona\",4912 => \"/meteo/Pago+del+vallo+di+lauro\",4913 => \"/meteo/Pago+veiano\",4914 => \"/meteo/Paisco+loveno\",4915 => \"/meteo/Paitone\",4916 => \"/meteo/Paladina\",8534 => \"/meteo/Palafavera\",4917 => \"/meteo/Palagano\",4918 => \"/meteo/Palagianello\",4919 => \"/meteo/Palagiano\",4920 => \"/meteo/Palagonia\",4921 => \"/meteo/Palaia\",4922 => \"/meteo/Palanzano\",4923 => \"/meteo/Palata\",4924 => \"/meteo/Palau\",4925 => \"/meteo/Palazzago\",4926 => \"/meteo/Palazzo+adriano\",4927 => \"/meteo/Palazzo+canavese\",4928 => \"/meteo/Palazzo+pignano\",4929 => \"/meteo/Palazzo+san+gervasio\",4930 => \"/meteo/Palazzolo+acreide\",4931 => \"/meteo/Palazzolo+dello+stella\",4932 => \"/meteo/Palazzolo+sull'Oglio\",4933 => \"/meteo/Palazzolo+vercellese\",4934 => \"/meteo/Palazzuolo+sul+senio\",4935 => \"/meteo/Palena\",4936 => \"/meteo/Palermiti\",4937 => \"/meteo/Palermo\",8575 => \"/meteo/Palermo+Boccadifalco\",8272 => \"/meteo/Palermo+Punta+Raisi\",4938 => \"/meteo/Palestrina\",4939 => \"/meteo/Palestro\",4940 => \"/meteo/Paliano\",8121 => \"/meteo/Palinuro\",4941 => \"/meteo/Palizzi\",8108 => \"/meteo/Palizzi+Marina\",4942 => \"/meteo/Pallagorio\",4943 => \"/meteo/Pallanzeno\",4944 => \"/meteo/Pallare\",4945 => \"/meteo/Palma+campania\",4946 => \"/meteo/Palma+di+montechiaro\",4947 => \"/meteo/Palmanova\",4948 => \"/meteo/Palmariggi\",4949 => \"/meteo/Palmas+arborea\",4950 => \"/meteo/Palmi\",4951 => \"/meteo/Palmiano\",4952 => \"/meteo/Palmoli\",4953 => \"/meteo/Palo+del+colle\",4954 => \"/meteo/Palombara+sabina\",4955 => \"/meteo/Palombaro\",4956 => \"/meteo/Palomonte\",4957 => \"/meteo/Palosco\",4958 => \"/meteo/Palu'\",4959 => \"/meteo/Palu'+del+fersina\",4960 => \"/meteo/Paludi\",4961 => \"/meteo/Paluzza\",4962 => \"/meteo/Pamparato\",8257 => \"/meteo/Pampeago\",8753 => \"/meteo/Panarotta\",4963 => \"/meteo/Pancalieri\",8261 => \"/meteo/Pancani\",4964 => \"/meteo/Pancarana\",4965 => \"/meteo/Panchia'\",4966 => \"/meteo/Pandino\",4967 => \"/meteo/Panettieri\",4968 => \"/meteo/Panicale\",4969 => \"/meteo/Pannarano\",4970 => \"/meteo/Panni\",4971 => \"/meteo/Pantelleria\",4972 => \"/meteo/Pantigliate\",4973 => \"/meteo/Paola\",4974 => \"/meteo/Paolisi\",4975 => \"/meteo/Papasidero\",4976 => \"/meteo/Papozze\",4977 => \"/meteo/Parabiago\",4978 => \"/meteo/Parabita\",4979 => \"/meteo/Paratico\",4980 => \"/meteo/Parcines\",4981 => \"/meteo/Pare'\",4982 => \"/meteo/Parella\",4983 => \"/meteo/Parenti\",4984 => \"/meteo/Parete\",4985 => \"/meteo/Pareto\",4986 => \"/meteo/Parghelia\",4987 => \"/meteo/Parlasco\",4988 => \"/meteo/Parma\",8554 => \"/meteo/Parma+Verdi\",4989 => \"/meteo/Parodi+ligure\",4990 => \"/meteo/Paroldo\",4991 => \"/meteo/Parolise\",4992 => \"/meteo/Parona\",4993 => \"/meteo/Parrano\",4994 => \"/meteo/Parre\",4995 => \"/meteo/Partanna\",4996 => \"/meteo/Partinico\",4997 => \"/meteo/Paruzzaro\",4998 => \"/meteo/Parzanica\",4999 => \"/meteo/Pasian+di+prato\",5000 => \"/meteo/Pasiano+di+pordenone\",5001 => \"/meteo/Paspardo\",5002 => \"/meteo/Passerano+Marmorito\",5003 => \"/meteo/Passignano+sul+trasimeno\",5004 => \"/meteo/Passirano\",8613 => \"/meteo/Passo+Bernina\",8760 => \"/meteo/Passo+Campolongo\",8329 => \"/meteo/Passo+Costalunga\",8618 => \"/meteo/Passo+dei+Salati\",8207 => \"/meteo/Passo+del+Brennero\",8577 => \"/meteo/Passo+del+Brocon\",8627 => \"/meteo/Passo+del+Cerreto\",8147 => \"/meteo/Passo+del+Foscagno\",8308 => \"/meteo/Passo+del+Lupo\",8206 => \"/meteo/Passo+del+Rombo\",8150 => \"/meteo/Passo+del+Tonale\",8196 => \"/meteo/Passo+della+Cisa\",8235 => \"/meteo/Passo+della+Consuma\",8290 => \"/meteo/Passo+della+Presolana\",8659 => \"/meteo/Passo+delle+Fittanze\",8145 => \"/meteo/Passo+dello+Stelvio\",8213 => \"/meteo/Passo+di+Resia\",8752 => \"/meteo/Passo+di+Vezzena\",8328 => \"/meteo/Passo+Fedaia\",8759 => \"/meteo/Passo+Gardena\",8277 => \"/meteo/Passo+Groste'\",8756 => \"/meteo/Passo+Lanciano\",8280 => \"/meteo/Passo+Pordoi\",8626 => \"/meteo/Passo+Pramollo\",8210 => \"/meteo/Passo+Rolle\",8279 => \"/meteo/Passo+San+Pellegrino\",8325 => \"/meteo/Passo+Sella\",5005 => \"/meteo/Pastena\",5006 => \"/meteo/Pastorano\",5007 => \"/meteo/Pastrengo\",5008 => \"/meteo/Pasturana\",5009 => \"/meteo/Pasturo\",8417 => \"/meteo/Paterno\",5011 => \"/meteo/Paterno+calabro\",5012 => \"/meteo/Paterno'\",5013 => \"/meteo/Paternopoli\",5014 => \"/meteo/Patrica\",5015 => \"/meteo/Pattada\",5016 => \"/meteo/Patti\",5017 => \"/meteo/Patu'\",5018 => \"/meteo/Pau\",5019 => \"/meteo/Paularo\",5020 => \"/meteo/Pauli+arbarei\",5021 => \"/meteo/Paulilatino\",5022 => \"/meteo/Paullo\",5023 => \"/meteo/Paupisi\",5024 => \"/meteo/Pavarolo\",5025 => \"/meteo/Pavia\",5026 => \"/meteo/Pavia+di+udine\",5027 => \"/meteo/Pavone+canavese\",5028 => \"/meteo/Pavone+del+mella\",5029 => \"/meteo/Pavullo+nel+frignano\",5030 => \"/meteo/Pazzano\",5031 => \"/meteo/Peccioli\",5032 => \"/meteo/Pecco\",5033 => \"/meteo/Pecetto+di+valenza\",5034 => \"/meteo/Pecetto+torinese\",5035 => \"/meteo/Pecorara\",5036 => \"/meteo/Pedace\",5037 => \"/meteo/Pedara\",5038 => \"/meteo/Pedaso\",5039 => \"/meteo/Pedavena\",5040 => \"/meteo/Pedemonte\",5041 => \"/meteo/Pederobba\",5042 => \"/meteo/Pedesina\",5043 => \"/meteo/Pedivigliano\",8473 => \"/meteo/Pedraces\",5044 => \"/meteo/Pedrengo\",5045 => \"/meteo/Peglio\",5046 => \"/meteo/Peglio\",5047 => \"/meteo/Pegognaga\",5048 => \"/meteo/Peia\",8665 => \"/meteo/Pejo\",5050 => \"/meteo/Pelago\",5051 => \"/meteo/Pella\",5052 => \"/meteo/Pellegrino+parmense\",5053 => \"/meteo/Pellezzano\",5054 => \"/meteo/Pellio+intelvi\",5055 => \"/meteo/Pellizzano\",5056 => \"/meteo/Pelugo\",5057 => \"/meteo/Penango\",5058 => \"/meteo/Penna+in+teverina\",5059 => \"/meteo/Penna+san+giovanni\",5060 => \"/meteo/Penna+sant'andrea\",5061 => \"/meteo/Pennabilli\",5062 => \"/meteo/Pennadomo\",5063 => \"/meteo/Pennapiedimonte\",5064 => \"/meteo/Penne\",8208 => \"/meteo/Pennes\",5065 => \"/meteo/Pentone\",5066 => \"/meteo/Perano\",5067 => \"/meteo/Perarolo+di+cadore\",5068 => \"/meteo/Perca\",5069 => \"/meteo/Percile\",5070 => \"/meteo/Perdasdefogu\",5071 => \"/meteo/Perdaxius\",5072 => \"/meteo/Perdifumo\",5073 => \"/meteo/Perego\",5074 => \"/meteo/Pereto\",5075 => \"/meteo/Perfugas\",5076 => \"/meteo/Pergine+valdarno\",5077 => \"/meteo/Pergine+valsugana\",5078 => \"/meteo/Pergola\",5079 => \"/meteo/Perinaldo\",5080 => \"/meteo/Perito\",5081 => \"/meteo/Perledo\",5082 => \"/meteo/Perletto\",5083 => \"/meteo/Perlo\",5084 => \"/meteo/Perloz\",5085 => \"/meteo/Pernumia\",5086 => \"/meteo/Pero\",5087 => \"/meteo/Perosa+argentina\",5088 => \"/meteo/Perosa+canavese\",5089 => \"/meteo/Perrero\",5090 => \"/meteo/Persico+dosimo\",5091 => \"/meteo/Pertengo\",5092 => \"/meteo/Pertica+alta\",5093 => \"/meteo/Pertica+bassa\",8586 => \"/meteo/Perticara+di+Novafeltria\",5094 => \"/meteo/Pertosa\",5095 => \"/meteo/Pertusio\",5096 => \"/meteo/Perugia\",8555 => \"/meteo/Perugia+Sant'Egidio\",5097 => \"/meteo/Pesaro\",5098 => \"/meteo/Pescaglia\",5099 => \"/meteo/Pescantina\",5100 => \"/meteo/Pescara\",8275 => \"/meteo/Pescara+Liberi\",5101 => \"/meteo/Pescarolo+ed+uniti\",5102 => \"/meteo/Pescasseroli\",5103 => \"/meteo/Pescate\",8312 => \"/meteo/Pescegallo\",5104 => \"/meteo/Pesche\",5105 => \"/meteo/Peschici\",5106 => \"/meteo/Peschiera+borromeo\",5107 => \"/meteo/Peschiera+del+garda\",5108 => \"/meteo/Pescia\",5109 => \"/meteo/Pescina\",8454 => \"/meteo/Pescina+casello\",5110 => \"/meteo/Pesco+sannita\",5111 => \"/meteo/Pescocostanzo\",5112 => \"/meteo/Pescolanciano\",5113 => \"/meteo/Pescopagano\",5114 => \"/meteo/Pescopennataro\",5115 => \"/meteo/Pescorocchiano\",5116 => \"/meteo/Pescosansonesco\",5117 => \"/meteo/Pescosolido\",5118 => \"/meteo/Pessano+con+Bornago\",5119 => \"/meteo/Pessina+cremonese\",5120 => \"/meteo/Pessinetto\",5121 => \"/meteo/Petacciato\",5122 => \"/meteo/Petilia+policastro\",5123 => \"/meteo/Petina\",5124 => \"/meteo/Petralia+soprana\",5125 => \"/meteo/Petralia+sottana\",5126 => \"/meteo/Petrella+salto\",5127 => \"/meteo/Petrella+tifernina\",5128 => \"/meteo/Petriano\",5129 => \"/meteo/Petriolo\",5130 => \"/meteo/Petritoli\",5131 => \"/meteo/Petrizzi\",5132 => \"/meteo/Petrona'\",5133 => \"/meteo/Petrosino\",5134 => \"/meteo/Petruro+irpino\",5135 => \"/meteo/Pettenasco\",5136 => \"/meteo/Pettinengo\",5137 => \"/meteo/Pettineo\",5138 => \"/meteo/Pettoranello+del+molise\",5139 => \"/meteo/Pettorano+sul+gizio\",5140 => \"/meteo/Pettorazza+grimani\",5141 => \"/meteo/Peveragno\",5142 => \"/meteo/Pezzana\",5143 => \"/meteo/Pezzaze\",5144 => \"/meteo/Pezzolo+valle+uzzone\",5145 => \"/meteo/Piacenza\",5146 => \"/meteo/Piacenza+d'adige\",5147 => \"/meteo/Piadena\",5148 => \"/meteo/Piagge\",5149 => \"/meteo/Piaggine\",8706 => \"/meteo/Piamprato\",5150 => \"/meteo/Pian+camuno\",8309 => \"/meteo/Pian+Cavallaro\",8233 => \"/meteo/Pian+del+Cansiglio\",8642 => \"/meteo/Pian+del+Frais\",8705 => \"/meteo/Pian+della+Mussa\",8634 => \"/meteo/Pian+delle+Betulle\",5151 => \"/meteo/Pian+di+sco'\",8712 => \"/meteo/Pian+di+Sole\",5152 => \"/meteo/Piana+crixia\",5153 => \"/meteo/Piana+degli+albanesi\",8653 => \"/meteo/Piana+di+Marcesina\",5154 => \"/meteo/Piana+di+monte+verna\",8305 => \"/meteo/Pianalunga\",5155 => \"/meteo/Piancastagnaio\",8516 => \"/meteo/Piancavallo\",5156 => \"/meteo/Piancogno\",5157 => \"/meteo/Piandimeleto\",5158 => \"/meteo/Piane+crati\",8561 => \"/meteo/Piane+di+Mocogno\",5159 => \"/meteo/Pianella\",5160 => \"/meteo/Pianello+del+lario\",5161 => \"/meteo/Pianello+val+tidone\",5162 => \"/meteo/Pianengo\",5163 => \"/meteo/Pianezza\",5164 => \"/meteo/Pianezze\",5165 => \"/meteo/Pianfei\",8605 => \"/meteo/Piani+d'Erna\",8517 => \"/meteo/Piani+di+Artavaggio\",8234 => \"/meteo/Piani+di+Bobbio\",5166 => \"/meteo/Pianico\",5167 => \"/meteo/Pianiga\",8314 => \"/meteo/Piano+del+Voglio\",5168 => \"/meteo/Piano+di+Sorrento\",8630 => \"/meteo/Piano+Provenzana\",5169 => \"/meteo/Pianopoli\",5170 => \"/meteo/Pianoro\",5171 => \"/meteo/Piansano\",5172 => \"/meteo/Piantedo\",5173 => \"/meteo/Piario\",5174 => \"/meteo/Piasco\",5175 => \"/meteo/Piateda\",5176 => \"/meteo/Piatto\",5177 => \"/meteo/Piazza+al+serchio\",5178 => \"/meteo/Piazza+armerina\",5179 => \"/meteo/Piazza+brembana\",5180 => \"/meteo/Piazzatorre\",5181 => \"/meteo/Piazzola+sul+brenta\",5182 => \"/meteo/Piazzolo\",5183 => \"/meteo/Picciano\",5184 => \"/meteo/Picerno\",5185 => \"/meteo/Picinisco\",5186 => \"/meteo/Pico\",5187 => \"/meteo/Piea\",5188 => \"/meteo/Piedicavallo\",8218 => \"/meteo/Piediluco\",5189 => \"/meteo/Piedimonte+etneo\",5190 => \"/meteo/Piedimonte+matese\",5191 => \"/meteo/Piedimonte+san+germano\",5192 => \"/meteo/Piedimulera\",5193 => \"/meteo/Piegaro\",5194 => \"/meteo/Pienza\",5195 => \"/meteo/Pieranica\",5196 => \"/meteo/Pietra+de'giorgi\",5197 => \"/meteo/Pietra+ligure\",5198 => \"/meteo/Pietra+marazzi\",5199 => \"/meteo/Pietrabbondante\",5200 => \"/meteo/Pietrabruna\",5201 => \"/meteo/Pietracamela\",5202 => \"/meteo/Pietracatella\",5203 => \"/meteo/Pietracupa\",5204 => \"/meteo/Pietradefusi\",5205 => \"/meteo/Pietraferrazzana\",5206 => \"/meteo/Pietrafitta\",5207 => \"/meteo/Pietragalla\",5208 => \"/meteo/Pietralunga\",5209 => \"/meteo/Pietramelara\",5210 => \"/meteo/Pietramontecorvino\",5211 => \"/meteo/Pietranico\",5212 => \"/meteo/Pietrapaola\",5213 => \"/meteo/Pietrapertosa\",5214 => \"/meteo/Pietraperzia\",5215 => \"/meteo/Pietraporzio\",5216 => \"/meteo/Pietraroja\",5217 => \"/meteo/Pietrarubbia\",5218 => \"/meteo/Pietrasanta\",5219 => \"/meteo/Pietrastornina\",5220 => \"/meteo/Pietravairano\",5221 => \"/meteo/Pietrelcina\",5222 => \"/meteo/Pieve+a+nievole\",5223 => \"/meteo/Pieve+albignola\",5224 => \"/meteo/Pieve+d'alpago\",5225 => \"/meteo/Pieve+d'olmi\",5226 => \"/meteo/Pieve+del+cairo\",5227 => \"/meteo/Pieve+di+bono\",5228 => \"/meteo/Pieve+di+cadore\",5229 => \"/meteo/Pieve+di+cento\",5230 => \"/meteo/Pieve+di+coriano\",5231 => \"/meteo/Pieve+di+ledro\",5232 => \"/meteo/Pieve+di+soligo\",5233 => \"/meteo/Pieve+di+teco\",5234 => \"/meteo/Pieve+emanuele\",5235 => \"/meteo/Pieve+fissiraga\",5236 => \"/meteo/Pieve+fosciana\",5237 => \"/meteo/Pieve+ligure\",5238 => \"/meteo/Pieve+porto+morone\",5239 => \"/meteo/Pieve+san+giacomo\",5240 => \"/meteo/Pieve+santo+stefano\",5241 => \"/meteo/Pieve+tesino\",5242 => \"/meteo/Pieve+torina\",5243 => \"/meteo/Pieve+vergonte\",5244 => \"/meteo/Pievebovigliana\",5245 => \"/meteo/Pievepelago\",5246 => \"/meteo/Piglio\",5247 => \"/meteo/Pigna\",5248 => \"/meteo/Pignataro+interamna\",5249 => \"/meteo/Pignataro+maggiore\",5250 => \"/meteo/Pignola\",5251 => \"/meteo/Pignone\",5252 => \"/meteo/Pigra\",5253 => \"/meteo/Pila\",8221 => \"/meteo/Pila\",5254 => \"/meteo/Pimentel\",5255 => \"/meteo/Pimonte\",5256 => \"/meteo/Pinarolo+po\",5257 => \"/meteo/Pinasca\",5258 => \"/meteo/Pincara\",5259 => \"/meteo/Pinerolo\",5260 => \"/meteo/Pineto\",5261 => \"/meteo/Pino+d'asti\",5262 => \"/meteo/Pino+sulla+sponda+del+lago+magg.\",5263 => \"/meteo/Pino+torinese\",5264 => \"/meteo/Pinzano+al+tagliamento\",5265 => \"/meteo/Pinzolo\",5266 => \"/meteo/Piobbico\",5267 => \"/meteo/Piobesi+d'alba\",5268 => \"/meteo/Piobesi+torinese\",5269 => \"/meteo/Piode\",5270 => \"/meteo/Pioltello\",5271 => \"/meteo/Piombino\",5272 => \"/meteo/Piombino+dese\",5273 => \"/meteo/Pioraco\",5274 => \"/meteo/Piossasco\",5275 => \"/meteo/Piova'+massaia\",5276 => \"/meteo/Piove+di+sacco\",5277 => \"/meteo/Piovene+rocchette\",5278 => \"/meteo/Piovera\",5279 => \"/meteo/Piozzano\",5280 => \"/meteo/Piozzo\",5281 => \"/meteo/Piraino\",5282 => \"/meteo/Pisa\",8518 => \"/meteo/Pisa+San+Giusto\",5283 => \"/meteo/Pisano\",5284 => \"/meteo/Piscina\",5285 => \"/meteo/Piscinas\",5286 => \"/meteo/Pisciotta\",5287 => \"/meteo/Pisogne\",5288 => \"/meteo/Pisoniano\",5289 => \"/meteo/Pisticci\",5290 => \"/meteo/Pistoia\",5291 => \"/meteo/Piteglio\",5292 => \"/meteo/Pitigliano\",5293 => \"/meteo/Piubega\",5294 => \"/meteo/Piuro\",5295 => \"/meteo/Piverone\",5296 => \"/meteo/Pizzale\",5297 => \"/meteo/Pizzighettone\",5298 => \"/meteo/Pizzo\",8737 => \"/meteo/Pizzo+Arera\",8727 => \"/meteo/Pizzo+Bernina\",8736 => \"/meteo/Pizzo+dei+Tre+Signori\",8739 => \"/meteo/Pizzo+della+Presolana\",5299 => \"/meteo/Pizzoferrato\",5300 => \"/meteo/Pizzoli\",5301 => \"/meteo/Pizzone\",5302 => \"/meteo/Pizzoni\",5303 => \"/meteo/Placanica\",8342 => \"/meteo/Plaghera\",8685 => \"/meteo/Plain+Maison\",8324 => \"/meteo/Plain+Mason\",8337 => \"/meteo/Plan\",8469 => \"/meteo/Plan+Boè\",8633 => \"/meteo/Plan+Checrouit\",8204 => \"/meteo/Plan+de+Corones\",8576 => \"/meteo/Plan+in+Passiria\",5304 => \"/meteo/Plataci\",5305 => \"/meteo/Platania\",8241 => \"/meteo/Plateau+Rosa\",5306 => \"/meteo/Plati'\",5307 => \"/meteo/Plaus\",5308 => \"/meteo/Plesio\",5309 => \"/meteo/Ploaghe\",5310 => \"/meteo/Plodio\",8569 => \"/meteo/Plose\",5311 => \"/meteo/Pocapaglia\",5312 => \"/meteo/Pocenia\",5313 => \"/meteo/Podenzana\",5314 => \"/meteo/Podenzano\",5315 => \"/meteo/Pofi\",5316 => \"/meteo/Poggiardo\",5317 => \"/meteo/Poggibonsi\",5318 => \"/meteo/Poggio+a+caiano\",5319 => \"/meteo/Poggio+berni\",5320 => \"/meteo/Poggio+bustone\",5321 => \"/meteo/Poggio+catino\",5322 => \"/meteo/Poggio+imperiale\",5323 => \"/meteo/Poggio+mirteto\",5324 => \"/meteo/Poggio+moiano\",5325 => \"/meteo/Poggio+nativo\",5326 => \"/meteo/Poggio+picenze\",5327 => \"/meteo/Poggio+renatico\",5328 => \"/meteo/Poggio+rusco\",5329 => \"/meteo/Poggio+san+lorenzo\",5330 => \"/meteo/Poggio+san+marcello\",5331 => \"/meteo/Poggio+san+vicino\",5332 => \"/meteo/Poggio+sannita\",5333 => \"/meteo/Poggiodomo\",5334 => \"/meteo/Poggiofiorito\",5335 => \"/meteo/Poggiomarino\",5336 => \"/meteo/Poggioreale\",5337 => \"/meteo/Poggiorsini\",5338 => \"/meteo/Poggiridenti\",5339 => \"/meteo/Pogliano+milanese\",8339 => \"/meteo/Pogliola\",5340 => \"/meteo/Pognana+lario\",5341 => \"/meteo/Pognano\",5342 => \"/meteo/Pogno\",5343 => \"/meteo/Poiana+maggiore\",5344 => \"/meteo/Poirino\",5345 => \"/meteo/Polaveno\",5346 => \"/meteo/Polcenigo\",5347 => \"/meteo/Polesella\",5348 => \"/meteo/Polesine+parmense\",5349 => \"/meteo/Poli\",5350 => \"/meteo/Polia\",5351 => \"/meteo/Policoro\",5352 => \"/meteo/Polignano+a+mare\",5353 => \"/meteo/Polinago\",5354 => \"/meteo/Polino\",5355 => \"/meteo/Polistena\",5356 => \"/meteo/Polizzi+generosa\",5357 => \"/meteo/Polla\",5358 => \"/meteo/Pollein\",5359 => \"/meteo/Pollena+trocchia\",5360 => \"/meteo/Pollenza\",5361 => \"/meteo/Pollica\",5362 => \"/meteo/Pollina\",5363 => \"/meteo/Pollone\",5364 => \"/meteo/Pollutri\",5365 => \"/meteo/Polonghera\",5366 => \"/meteo/Polpenazze+del+garda\",8650 => \"/meteo/Polsa+San+Valentino\",5367 => \"/meteo/Polverara\",5368 => \"/meteo/Polverigi\",5369 => \"/meteo/Pomarance\",5370 => \"/meteo/Pomaretto\",8384 => \"/meteo/Pomarico\",5372 => \"/meteo/Pomaro+monferrato\",5373 => \"/meteo/Pomarolo\",5374 => \"/meteo/Pombia\",5375 => \"/meteo/Pomezia\",5376 => \"/meteo/Pomigliano+d'arco\",5377 => \"/meteo/Pompei\",5378 => \"/meteo/Pompeiana\",5379 => \"/meteo/Pompiano\",5380 => \"/meteo/Pomponesco\",5381 => \"/meteo/Pompu\",5382 => \"/meteo/Poncarale\",5383 => \"/meteo/Ponderano\",5384 => \"/meteo/Ponna\",5385 => \"/meteo/Ponsacco\",5386 => \"/meteo/Ponso\",8220 => \"/meteo/Pont\",5389 => \"/meteo/Pont+canavese\",5427 => \"/meteo/Pont+Saint+Martin\",5387 => \"/meteo/Pontassieve\",5388 => \"/meteo/Pontboset\",5390 => \"/meteo/Ponte\",5391 => \"/meteo/Ponte+buggianese\",5392 => \"/meteo/Ponte+dell'olio\",5393 => \"/meteo/Ponte+di+legno\",5394 => \"/meteo/Ponte+di+piave\",5395 => \"/meteo/Ponte+Gardena\",5396 => \"/meteo/Ponte+in+valtellina\",5397 => \"/meteo/Ponte+lambro\",5398 => \"/meteo/Ponte+nelle+alpi\",5399 => \"/meteo/Ponte+nizza\",5400 => \"/meteo/Ponte+nossa\",5401 => \"/meteo/Ponte+San+Nicolo'\",5402 => \"/meteo/Ponte+San+Pietro\",5403 => \"/meteo/Pontebba\",5404 => \"/meteo/Pontecagnano+faiano\",5405 => \"/meteo/Pontecchio+polesine\",5406 => \"/meteo/Pontechianale\",5407 => \"/meteo/Pontecorvo\",5408 => \"/meteo/Pontecurone\",5409 => \"/meteo/Pontedassio\",5410 => \"/meteo/Pontedera\",5411 => \"/meteo/Pontelandolfo\",5412 => \"/meteo/Pontelatone\",5413 => \"/meteo/Pontelongo\",5414 => \"/meteo/Pontenure\",5415 => \"/meteo/Ponteranica\",5416 => \"/meteo/Pontestura\",5417 => \"/meteo/Pontevico\",5418 => \"/meteo/Pontey\",5419 => \"/meteo/Ponti\",5420 => \"/meteo/Ponti+sul+mincio\",5421 => \"/meteo/Pontida\",5422 => \"/meteo/Pontinia\",5423 => \"/meteo/Pontinvrea\",5424 => \"/meteo/Pontirolo+nuovo\",5425 => \"/meteo/Pontoglio\",5426 => \"/meteo/Pontremoli\",5428 => \"/meteo/Ponza\",5429 => \"/meteo/Ponzano+di+fermo\",8462 => \"/meteo/Ponzano+galleria\",5430 => \"/meteo/Ponzano+monferrato\",5431 => \"/meteo/Ponzano+romano\",5432 => \"/meteo/Ponzano+veneto\",5433 => \"/meteo/Ponzone\",5434 => \"/meteo/Popoli\",5435 => \"/meteo/Poppi\",8192 => \"/meteo/Populonia\",5436 => \"/meteo/Porano\",5437 => \"/meteo/Porcari\",5438 => \"/meteo/Porcia\",5439 => \"/meteo/Pordenone\",5440 => \"/meteo/Porlezza\",5441 => \"/meteo/Pornassio\",5442 => \"/meteo/Porpetto\",5443 => \"/meteo/Porretta+terme\",5444 => \"/meteo/Portacomaro\",5445 => \"/meteo/Portalbera\",5446 => \"/meteo/Porte\",5447 => \"/meteo/Portici\",5448 => \"/meteo/Portico+di+caserta\",5449 => \"/meteo/Portico+e+san+benedetto\",5450 => \"/meteo/Portigliola\",8294 => \"/meteo/Porto+Alabe\",5451 => \"/meteo/Porto+azzurro\",5452 => \"/meteo/Porto+ceresio\",8528 => \"/meteo/Porto+Cervo\",5453 => \"/meteo/Porto+cesareo\",8295 => \"/meteo/Porto+Conte\",8612 => \"/meteo/Porto+Corsini\",5454 => \"/meteo/Porto+empedocle\",8669 => \"/meteo/Porto+Ercole\",8743 => \"/meteo/Porto+Levante\",5455 => \"/meteo/Porto+mantovano\",8178 => \"/meteo/Porto+Pino\",5456 => \"/meteo/Porto+recanati\",8529 => \"/meteo/Porto+Rotondo\",5457 => \"/meteo/Porto+san+giorgio\",5458 => \"/meteo/Porto+sant'elpidio\",8670 => \"/meteo/Porto+Santo+Stefano\",5459 => \"/meteo/Porto+tolle\",5460 => \"/meteo/Porto+torres\",5461 => \"/meteo/Porto+valtravaglia\",5462 => \"/meteo/Porto+viro\",8172 => \"/meteo/Portobello+di+Gallura\",5463 => \"/meteo/Portobuffole'\",5464 => \"/meteo/Portocannone\",5465 => \"/meteo/Portoferraio\",5466 => \"/meteo/Portofino\",5467 => \"/meteo/Portogruaro\",5468 => \"/meteo/Portomaggiore\",5469 => \"/meteo/Portopalo+di+capo+passero\",8171 => \"/meteo/Portorotondo\",5470 => \"/meteo/Portoscuso\",5471 => \"/meteo/Portovenere\",5472 => \"/meteo/Portula\",5473 => \"/meteo/Posada\",5474 => \"/meteo/Posina\",5475 => \"/meteo/Positano\",5476 => \"/meteo/Possagno\",5477 => \"/meteo/Posta\",5478 => \"/meteo/Posta+fibreno\",5479 => \"/meteo/Postal\",5480 => \"/meteo/Postalesio\",5481 => \"/meteo/Postiglione\",5482 => \"/meteo/Postua\",5483 => \"/meteo/Potenza\",5484 => \"/meteo/Potenza+picena\",5485 => \"/meteo/Pove+del+grappa\",5486 => \"/meteo/Povegliano\",5487 => \"/meteo/Povegliano+veronese\",5488 => \"/meteo/Poviglio\",5489 => \"/meteo/Povoletto\",5490 => \"/meteo/Pozza+di+fassa\",5491 => \"/meteo/Pozzaglia+sabino\",5492 => \"/meteo/Pozzaglio+ed+uniti\",5493 => \"/meteo/Pozzallo\",5494 => \"/meteo/Pozzilli\",5495 => \"/meteo/Pozzo+d'adda\",5496 => \"/meteo/Pozzol+groppo\",5497 => \"/meteo/Pozzolengo\",5498 => \"/meteo/Pozzoleone\",5499 => \"/meteo/Pozzolo+formigaro\",5500 => \"/meteo/Pozzomaggiore\",5501 => \"/meteo/Pozzonovo\",5502 => \"/meteo/Pozzuoli\",5503 => \"/meteo/Pozzuolo+del+friuli\",5504 => \"/meteo/Pozzuolo+martesana\",8693 => \"/meteo/Pra+Catinat\",5505 => \"/meteo/Pradalunga\",5506 => \"/meteo/Pradamano\",5507 => \"/meteo/Pradleves\",5508 => \"/meteo/Pragelato\",5509 => \"/meteo/Praia+a+mare\",5510 => \"/meteo/Praiano\",5511 => \"/meteo/Pralboino\",5512 => \"/meteo/Prali\",5513 => \"/meteo/Pralormo\",5514 => \"/meteo/Pralungo\",5515 => \"/meteo/Pramaggiore\",5516 => \"/meteo/Pramollo\",5517 => \"/meteo/Prarolo\",5518 => \"/meteo/Prarostino\",5519 => \"/meteo/Prasco\",5520 => \"/meteo/Prascorsano\",5521 => \"/meteo/Praso\",5522 => \"/meteo/Prata+camportaccio\",5523 => \"/meteo/Prata+d'ansidonia\",5524 => \"/meteo/Prata+di+pordenone\",5525 => \"/meteo/Prata+di+principato+ultra\",5526 => \"/meteo/Prata+sannita\",5527 => \"/meteo/Pratella\",8102 => \"/meteo/Prati+di+Tivo\",8694 => \"/meteo/Pratica+di+Mare\",5528 => \"/meteo/Pratiglione\",5529 => \"/meteo/Prato\",5530 => \"/meteo/Prato+allo+Stelvio\",5531 => \"/meteo/Prato+carnico\",8157 => \"/meteo/Prato+Nevoso\",5532 => \"/meteo/Prato+sesia\",8560 => \"/meteo/Prato+Spilla\",5533 => \"/meteo/Pratola+peligna\",5534 => \"/meteo/Pratola+serra\",5535 => \"/meteo/Pratovecchio\",5536 => \"/meteo/Pravisdomini\",5537 => \"/meteo/Pray\",5538 => \"/meteo/Prazzo\",5539 => \"/meteo/Pre'+Saint+Didier\",5540 => \"/meteo/Precenicco\",5541 => \"/meteo/Preci\",5542 => \"/meteo/Predappio\",5543 => \"/meteo/Predazzo\",5544 => \"/meteo/Predoi\",5545 => \"/meteo/Predore\",5546 => \"/meteo/Predosa\",5547 => \"/meteo/Preganziol\",5548 => \"/meteo/Pregnana+milanese\",5549 => \"/meteo/Prela'\",5550 => \"/meteo/Premana\",5551 => \"/meteo/Premariacco\",5552 => \"/meteo/Premeno\",5553 => \"/meteo/Premia\",5554 => \"/meteo/Premilcuore\",5555 => \"/meteo/Premolo\",5556 => \"/meteo/Premosello+chiovenda\",5557 => \"/meteo/Preone\",5558 => \"/meteo/Preore\",5559 => \"/meteo/Prepotto\",8578 => \"/meteo/Presanella\",5560 => \"/meteo/Preseglie\",5561 => \"/meteo/Presenzano\",5562 => \"/meteo/Presezzo\",5563 => \"/meteo/Presicce\",5564 => \"/meteo/Pressana\",5565 => \"/meteo/Prestine\",5566 => \"/meteo/Pretoro\",5567 => \"/meteo/Prevalle\",5568 => \"/meteo/Prezza\",5569 => \"/meteo/Prezzo\",5570 => \"/meteo/Priero\",5571 => \"/meteo/Prignano+cilento\",5572 => \"/meteo/Prignano+sulla+secchia\",5573 => \"/meteo/Primaluna\",5574 => \"/meteo/Priocca\",5575 => \"/meteo/Priola\",5576 => \"/meteo/Priolo+gargallo\",5577 => \"/meteo/Priverno\",5578 => \"/meteo/Prizzi\",5579 => \"/meteo/Proceno\",5580 => \"/meteo/Procida\",5581 => \"/meteo/Propata\",5582 => \"/meteo/Proserpio\",5583 => \"/meteo/Prossedi\",5584 => \"/meteo/Provaglio+d'iseo\",5585 => \"/meteo/Provaglio+val+sabbia\",5586 => \"/meteo/Proves\",5587 => \"/meteo/Provvidenti\",8189 => \"/meteo/Prunetta\",5588 => \"/meteo/Prunetto\",5589 => \"/meteo/Puegnago+sul+garda\",5590 => \"/meteo/Puglianello\",5591 => \"/meteo/Pula\",5592 => \"/meteo/Pulfero\",5593 => \"/meteo/Pulsano\",5594 => \"/meteo/Pumenengo\",8584 => \"/meteo/Punta+Ala\",8708 => \"/meteo/Punta+Ban\",8564 => \"/meteo/Punta+Helbronner\",8306 => \"/meteo/Punta+Indren\",8107 => \"/meteo/Punta+Stilo\",5595 => \"/meteo/Puos+d'alpago\",5596 => \"/meteo/Pusiano\",5597 => \"/meteo/Putifigari\",5598 => \"/meteo/Putignano\",5599 => \"/meteo/Quadrelle\",5600 => \"/meteo/Quadri\",5601 => \"/meteo/Quagliuzzo\",5602 => \"/meteo/Qualiano\",5603 => \"/meteo/Quaranti\",5604 => \"/meteo/Quaregna\",5605 => \"/meteo/Quargnento\",5606 => \"/meteo/Quarna+sopra\",5607 => \"/meteo/Quarna+sotto\",5608 => \"/meteo/Quarona\",5609 => \"/meteo/Quarrata\",5610 => \"/meteo/Quart\",5611 => \"/meteo/Quarto\",5612 => \"/meteo/Quarto+d'altino\",5613 => \"/meteo/Quartu+sant'elena\",5614 => \"/meteo/Quartucciu\",5615 => \"/meteo/Quassolo\",5616 => \"/meteo/Quattordio\",5617 => \"/meteo/Quattro+castella\",5618 => \"/meteo/Quero\",5619 => \"/meteo/Quiliano\",5620 => \"/meteo/Quincinetto\",5621 => \"/meteo/Quindici\",5622 => \"/meteo/Quingentole\",5623 => \"/meteo/Quintano\",5624 => \"/meteo/Quinto+di+treviso\",5625 => \"/meteo/Quinto+vercellese\",5626 => \"/meteo/Quinto+vicentino\",5627 => \"/meteo/Quinzano+d'oglio\",5628 => \"/meteo/Quistello\",5629 => \"/meteo/Quittengo\",5630 => \"/meteo/Rabbi\",5631 => \"/meteo/Racale\",5632 => \"/meteo/Racalmuto\",5633 => \"/meteo/Racconigi\",5634 => \"/meteo/Raccuja\",5635 => \"/meteo/Racines\",8352 => \"/meteo/Racines+Giovo\",5636 => \"/meteo/Radda+in+chianti\",5637 => \"/meteo/Raddusa\",5638 => \"/meteo/Radicofani\",5639 => \"/meteo/Radicondoli\",5640 => \"/meteo/Raffadali\",5641 => \"/meteo/Ragalna\",5642 => \"/meteo/Ragogna\",5643 => \"/meteo/Ragoli\",5644 => \"/meteo/Ragusa\",5645 => \"/meteo/Raiano\",5646 => \"/meteo/Ramacca\",5647 => \"/meteo/Ramiseto\",5648 => \"/meteo/Ramponio+verna\",5649 => \"/meteo/Rancio+valcuvia\",5650 => \"/meteo/Ranco\",5651 => \"/meteo/Randazzo\",5652 => \"/meteo/Ranica\",5653 => \"/meteo/Ranzanico\",5654 => \"/meteo/Ranzo\",5655 => \"/meteo/Rapagnano\",5656 => \"/meteo/Rapallo\",5657 => \"/meteo/Rapino\",5658 => \"/meteo/Rapolano+terme\",8394 => \"/meteo/Rapolla\",5660 => \"/meteo/Rapone\",5661 => \"/meteo/Rassa\",5662 => \"/meteo/Rasun+Anterselva\",5663 => \"/meteo/Rasura\",5664 => \"/meteo/Ravanusa\",5665 => \"/meteo/Ravarino\",5666 => \"/meteo/Ravascletto\",5667 => \"/meteo/Ravello\",5668 => \"/meteo/Ravenna\",5669 => \"/meteo/Raveo\",5670 => \"/meteo/Raviscanina\",5671 => \"/meteo/Re\",5672 => \"/meteo/Rea\",5673 => \"/meteo/Realmonte\",5674 => \"/meteo/Reana+del+roiale\",5675 => \"/meteo/Reano\",5676 => \"/meteo/Recale\",5677 => \"/meteo/Recanati\",5678 => \"/meteo/Recco\",5679 => \"/meteo/Recetto\",8639 => \"/meteo/Recoaro+Mille\",5680 => \"/meteo/Recoaro+Terme\",5681 => \"/meteo/Redavalle\",5682 => \"/meteo/Redondesco\",5683 => \"/meteo/Refrancore\",5684 => \"/meteo/Refrontolo\",5685 => \"/meteo/Regalbuto\",5686 => \"/meteo/Reggello\",8542 => \"/meteo/Reggio+Aeroporto+dello+Stretto\",5687 => \"/meteo/Reggio+Calabria\",5688 => \"/meteo/Reggio+Emilia\",5689 => \"/meteo/Reggiolo\",5690 => \"/meteo/Reino\",5691 => \"/meteo/Reitano\",5692 => \"/meteo/Remanzacco\",5693 => \"/meteo/Remedello\",5694 => \"/meteo/Renate\",5695 => \"/meteo/Rende\",5696 => \"/meteo/Renon\",5697 => \"/meteo/Resana\",5698 => \"/meteo/Rescaldina\",8734 => \"/meteo/Resegone\",5699 => \"/meteo/Resia\",5700 => \"/meteo/Resiutta\",5701 => \"/meteo/Resuttano\",5702 => \"/meteo/Retorbido\",5703 => \"/meteo/Revello\",5704 => \"/meteo/Revere\",5705 => \"/meteo/Revigliasco+d'asti\",5706 => \"/meteo/Revine+lago\",5707 => \"/meteo/Revo'\",5708 => \"/meteo/Rezzago\",5709 => \"/meteo/Rezzato\",5710 => \"/meteo/Rezzo\",5711 => \"/meteo/Rezzoaglio\",5712 => \"/meteo/Rhemes+Notre+Dame\",5713 => \"/meteo/Rhemes+Saint+Georges\",5714 => \"/meteo/Rho\",5715 => \"/meteo/Riace\",8106 => \"/meteo/Riace+Marina\",5716 => \"/meteo/Rialto\",5717 => \"/meteo/Riano\",5718 => \"/meteo/Riardo\",5719 => \"/meteo/Ribera\",5720 => \"/meteo/Ribordone\",5721 => \"/meteo/Ricadi\",5722 => \"/meteo/Ricaldone\",5723 => \"/meteo/Riccia\",5724 => \"/meteo/Riccione\",5725 => \"/meteo/Ricco'+del+golfo+di+spezia\",5726 => \"/meteo/Ricengo\",5727 => \"/meteo/Ricigliano\",5728 => \"/meteo/Riese+pio+x\",5729 => \"/meteo/Riesi\",5730 => \"/meteo/Rieti\",5731 => \"/meteo/Rifiano\",5732 => \"/meteo/Rifreddo\",8691 => \"/meteo/Rifugio+Boffalora+Ticino\",8244 => \"/meteo/Rifugio+Calvi+Laghi+Gemelli\",8684 => \"/meteo/Rifugio+Chivasso+-+Colle+del+Nivolet\",8678 => \"/meteo/Rifugio+Curò\",8679 => \"/meteo/Rifugio+laghi+Gemelli\",8731 => \"/meteo/Rifugio+Livio+Bianco\",8681 => \"/meteo/Rifugio+Mezzalama\",8682 => \"/meteo/Rifugio+Quintino+Sella\",8629 => \"/meteo/Rifugio+Sapienza\",8683 => \"/meteo/Rifugio+Torino\",8680 => \"/meteo/Rifugio+Viviani\",5733 => \"/meteo/Rignano+flaminio\",5734 => \"/meteo/Rignano+garganico\",5735 => \"/meteo/Rignano+sull'arno\",5736 => \"/meteo/Rigolato\",5737 => \"/meteo/Rima+san+giuseppe\",5738 => \"/meteo/Rimasco\",5739 => \"/meteo/Rimella\",5740 => \"/meteo/Rimini\",8546 => \"/meteo/Rimini+Miramare\",5741 => \"/meteo/Rio+di+Pusteria\",5742 => \"/meteo/Rio+marina\",5743 => \"/meteo/Rio+nell'elba\",5744 => \"/meteo/Rio+saliceto\",5745 => \"/meteo/Riofreddo\",5746 => \"/meteo/Riola+sardo\",5747 => \"/meteo/Riolo+terme\",5748 => \"/meteo/Riolunato\",5749 => \"/meteo/Riomaggiore\",5750 => \"/meteo/Rionero+in+vulture\",5751 => \"/meteo/Rionero+sannitico\",8503 => \"/meteo/Rioveggio\",5752 => \"/meteo/Ripa+teatina\",5753 => \"/meteo/Ripabottoni\",8404 => \"/meteo/Ripacandida\",5755 => \"/meteo/Ripalimosani\",5756 => \"/meteo/Ripalta+arpina\",5757 => \"/meteo/Ripalta+cremasca\",5758 => \"/meteo/Ripalta+guerina\",5759 => \"/meteo/Riparbella\",5760 => \"/meteo/Ripatransone\",5761 => \"/meteo/Ripe\",5762 => \"/meteo/Ripe+san+ginesio\",5763 => \"/meteo/Ripi\",5764 => \"/meteo/Riposto\",5765 => \"/meteo/Rittana\",5766 => \"/meteo/Riva+del+garda\",5767 => \"/meteo/Riva+di+solto\",8579 => \"/meteo/Riva+di+Tures\",5768 => \"/meteo/Riva+ligure\",5769 => \"/meteo/Riva+presso+chieri\",5770 => \"/meteo/Riva+valdobbia\",5771 => \"/meteo/Rivalba\",5772 => \"/meteo/Rivalta+bormida\",5773 => \"/meteo/Rivalta+di+torino\",5774 => \"/meteo/Rivamonte+agordino\",5775 => \"/meteo/Rivanazzano\",5776 => \"/meteo/Rivara\",5777 => \"/meteo/Rivarolo+canavese\",5778 => \"/meteo/Rivarolo+del+re+ed+uniti\",5779 => \"/meteo/Rivarolo+mantovano\",5780 => \"/meteo/Rivarone\",5781 => \"/meteo/Rivarossa\",5782 => \"/meteo/Rive\",5783 => \"/meteo/Rive+d'arcano\",8398 => \"/meteo/Rivello\",5785 => \"/meteo/Rivergaro\",5786 => \"/meteo/Rivignano\",5787 => \"/meteo/Rivisondoli\",5788 => \"/meteo/Rivodutri\",5789 => \"/meteo/Rivoli\",8436 => \"/meteo/Rivoli+veronese\",5791 => \"/meteo/Rivolta+d'adda\",5792 => \"/meteo/Rizziconi\",5793 => \"/meteo/Ro\",5794 => \"/meteo/Roana\",5795 => \"/meteo/Roaschia\",5796 => \"/meteo/Roascio\",5797 => \"/meteo/Roasio\",5798 => \"/meteo/Roatto\",5799 => \"/meteo/Robassomero\",5800 => \"/meteo/Robbiate\",5801 => \"/meteo/Robbio\",5802 => \"/meteo/Robecchetto+con+Induno\",5803 => \"/meteo/Robecco+d'oglio\",5804 => \"/meteo/Robecco+pavese\",5805 => \"/meteo/Robecco+sul+naviglio\",5806 => \"/meteo/Robella\",5807 => \"/meteo/Robilante\",5808 => \"/meteo/Roburent\",5809 => \"/meteo/Rocca+canavese\",5810 => \"/meteo/Rocca+Canterano\",5811 => \"/meteo/Rocca+Ciglie'\",5812 => \"/meteo/Rocca+d'Arazzo\",5813 => \"/meteo/Rocca+d'Arce\",5814 => \"/meteo/Rocca+d'Evandro\",5815 => \"/meteo/Rocca+de'+Baldi\",5816 => \"/meteo/Rocca+de'+Giorgi\",5817 => \"/meteo/Rocca+di+Botte\",5818 => \"/meteo/Rocca+di+Cambio\",5819 => \"/meteo/Rocca+di+Cave\",5820 => \"/meteo/Rocca+di+Mezzo\",5821 => \"/meteo/Rocca+di+Neto\",5822 => \"/meteo/Rocca+di+Papa\",5823 => \"/meteo/Rocca+Grimalda\",5824 => \"/meteo/Rocca+Imperiale\",8115 => \"/meteo/Rocca+Imperiale+Marina\",5825 => \"/meteo/Rocca+Massima\",5826 => \"/meteo/Rocca+Pia\",5827 => \"/meteo/Rocca+Pietore\",5828 => \"/meteo/Rocca+Priora\",5829 => \"/meteo/Rocca+San+Casciano\",5830 => \"/meteo/Rocca+San+Felice\",5831 => \"/meteo/Rocca+San+Giovanni\",5832 => \"/meteo/Rocca+Santa+Maria\",5833 => \"/meteo/Rocca+Santo+Stefano\",5834 => \"/meteo/Rocca+Sinibalda\",5835 => \"/meteo/Rocca+Susella\",5836 => \"/meteo/Roccabascerana\",5837 => \"/meteo/Roccabernarda\",5838 => \"/meteo/Roccabianca\",5839 => \"/meteo/Roccabruna\",8535 => \"/meteo/Roccacaramanico\",5840 => \"/meteo/Roccacasale\",5841 => \"/meteo/Roccadaspide\",5842 => \"/meteo/Roccafiorita\",5843 => \"/meteo/Roccafluvione\",5844 => \"/meteo/Roccaforte+del+greco\",5845 => \"/meteo/Roccaforte+ligure\",5846 => \"/meteo/Roccaforte+mondovi'\",5847 => \"/meteo/Roccaforzata\",5848 => \"/meteo/Roccafranca\",5849 => \"/meteo/Roccagiovine\",5850 => \"/meteo/Roccagloriosa\",5851 => \"/meteo/Roccagorga\",5852 => \"/meteo/Roccalbegna\",5853 => \"/meteo/Roccalumera\",5854 => \"/meteo/Roccamandolfi\",5855 => \"/meteo/Roccamena\",5856 => \"/meteo/Roccamonfina\",5857 => \"/meteo/Roccamontepiano\",5858 => \"/meteo/Roccamorice\",8418 => \"/meteo/Roccanova\",5860 => \"/meteo/Roccantica\",5861 => \"/meteo/Roccapalumba\",5862 => \"/meteo/Roccapiemonte\",5863 => \"/meteo/Roccarainola\",5864 => \"/meteo/Roccaraso\",5865 => \"/meteo/Roccaromana\",5866 => \"/meteo/Roccascalegna\",5867 => \"/meteo/Roccasecca\",5868 => \"/meteo/Roccasecca+dei+volsci\",5869 => \"/meteo/Roccasicura\",5870 => \"/meteo/Roccasparvera\",5871 => \"/meteo/Roccaspinalveti\",5872 => \"/meteo/Roccastrada\",5873 => \"/meteo/Roccavaldina\",5874 => \"/meteo/Roccaverano\",5875 => \"/meteo/Roccavignale\",5876 => \"/meteo/Roccavione\",5877 => \"/meteo/Roccavivara\",5878 => \"/meteo/Roccella+ionica\",5879 => \"/meteo/Roccella+valdemone\",5880 => \"/meteo/Rocchetta+a+volturno\",5881 => \"/meteo/Rocchetta+belbo\",5882 => \"/meteo/Rocchetta+di+vara\",5883 => \"/meteo/Rocchetta+e+croce\",5884 => \"/meteo/Rocchetta+ligure\",5885 => \"/meteo/Rocchetta+nervina\",5886 => \"/meteo/Rocchetta+palafea\",5887 => \"/meteo/Rocchetta+sant'antonio\",5888 => \"/meteo/Rocchetta+tanaro\",5889 => \"/meteo/Rodano\",5890 => \"/meteo/Roddi\",5891 => \"/meteo/Roddino\",5892 => \"/meteo/Rodello\",5893 => \"/meteo/Rodengo\",5894 => \"/meteo/Rodengo-saiano\",5895 => \"/meteo/Rodero\",5896 => \"/meteo/Rodi+garganico\",5897 => \"/meteo/Rodi'+milici\",5898 => \"/meteo/Rodigo\",5899 => \"/meteo/Roe'+volciano\",5900 => \"/meteo/Rofrano\",5901 => \"/meteo/Rogeno\",5902 => \"/meteo/Roggiano+gravina\",5903 => \"/meteo/Roghudi\",5904 => \"/meteo/Rogliano\",5905 => \"/meteo/Rognano\",5906 => \"/meteo/Rogno\",5907 => \"/meteo/Rogolo\",5908 => \"/meteo/Roiate\",5909 => \"/meteo/Roio+del+sangro\",5910 => \"/meteo/Roisan\",5911 => \"/meteo/Roletto\",5912 => \"/meteo/Rolo\",5913 => \"/meteo/Roma\",8545 => \"/meteo/Roma+Ciampino\",8499 => \"/meteo/Roma+Fiumicino\",5914 => \"/meteo/Romagnano+al+monte\",5915 => \"/meteo/Romagnano+sesia\",5916 => \"/meteo/Romagnese\",5917 => \"/meteo/Romallo\",5918 => \"/meteo/Romana\",5919 => \"/meteo/Romanengo\",5920 => \"/meteo/Romano+canavese\",5921 => \"/meteo/Romano+d'ezzelino\",5922 => \"/meteo/Romano+di+lombardia\",5923 => \"/meteo/Romans+d'isonzo\",5924 => \"/meteo/Rombiolo\",5925 => \"/meteo/Romeno\",5926 => \"/meteo/Romentino\",5927 => \"/meteo/Rometta\",5928 => \"/meteo/Ronago\",5929 => \"/meteo/Ronca'\",5930 => \"/meteo/Roncade\",5931 => \"/meteo/Roncadelle\",5932 => \"/meteo/Roncaro\",5933 => \"/meteo/Roncegno\",5934 => \"/meteo/Roncello\",5935 => \"/meteo/Ronchi+dei+legionari\",5936 => \"/meteo/Ronchi+valsugana\",5937 => \"/meteo/Ronchis\",5938 => \"/meteo/Ronciglione\",5939 => \"/meteo/Ronco+all'adige\",8231 => \"/meteo/Ronco+all`Adige\",5940 => \"/meteo/Ronco+biellese\",5941 => \"/meteo/Ronco+briantino\",5942 => \"/meteo/Ronco+canavese\",5943 => \"/meteo/Ronco+scrivia\",5944 => \"/meteo/Roncobello\",5945 => \"/meteo/Roncoferraro\",5946 => \"/meteo/Roncofreddo\",5947 => \"/meteo/Roncola\",5948 => \"/meteo/Roncone\",5949 => \"/meteo/Rondanina\",5950 => \"/meteo/Rondissone\",5951 => \"/meteo/Ronsecco\",5952 => \"/meteo/Ronzo+chienis\",5953 => \"/meteo/Ronzone\",5954 => \"/meteo/Roppolo\",5955 => \"/meteo/Rora'\",5956 => \"/meteo/Rosa'\",5957 => \"/meteo/Rosarno\",5958 => \"/meteo/Rosasco\",5959 => \"/meteo/Rosate\",5960 => \"/meteo/Rosazza\",5961 => \"/meteo/Rosciano\",5962 => \"/meteo/Roscigno\",5963 => \"/meteo/Rose\",5964 => \"/meteo/Rosello\",5965 => \"/meteo/Roseto+capo+spulico\",8439 => \"/meteo/Roseto+casello\",5966 => \"/meteo/Roseto+degli+abruzzi\",5967 => \"/meteo/Roseto+valfortore\",5968 => \"/meteo/Rosignano+marittimo\",5969 => \"/meteo/Rosignano+monferrato\",8195 => \"/meteo/Rosignano+Solvay\",5970 => \"/meteo/Rosolina\",8744 => \"/meteo/Rosolina+mare\",5971 => \"/meteo/Rosolini\",8704 => \"/meteo/Rosone\",5972 => \"/meteo/Rosora\",5973 => \"/meteo/Rossa\",5974 => \"/meteo/Rossana\",5975 => \"/meteo/Rossano\",8109 => \"/meteo/Rossano+Calabro+Marina\",5976 => \"/meteo/Rossano+veneto\",8431 => \"/meteo/Rossera\",5977 => \"/meteo/Rossiglione\",5978 => \"/meteo/Rosta\",5979 => \"/meteo/Rota+d'imagna\",5980 => \"/meteo/Rota+greca\",5981 => \"/meteo/Rotella\",5982 => \"/meteo/Rotello\",8429 => \"/meteo/Rotonda\",5984 => \"/meteo/Rotondella\",5985 => \"/meteo/Rotondi\",5986 => \"/meteo/Rottofreno\",5987 => \"/meteo/Rotzo\",5988 => \"/meteo/Roure\",5989 => \"/meteo/Rovagnate\",5990 => \"/meteo/Rovasenda\",5991 => \"/meteo/Rovato\",5992 => \"/meteo/Rovegno\",5993 => \"/meteo/Rovellasca\",5994 => \"/meteo/Rovello+porro\",5995 => \"/meteo/Roverbella\",5996 => \"/meteo/Roverchiara\",5997 => \"/meteo/Rovere'+della+luna\",5998 => \"/meteo/Rovere'+veronese\",5999 => \"/meteo/Roveredo+di+gua'\",6000 => \"/meteo/Roveredo+in+piano\",6001 => \"/meteo/Rovereto\",6002 => \"/meteo/Rovescala\",6003 => \"/meteo/Rovetta\",6004 => \"/meteo/Roviano\",6005 => \"/meteo/Rovigo\",6006 => \"/meteo/Rovito\",6007 => \"/meteo/Rovolon\",6008 => \"/meteo/Rozzano\",6009 => \"/meteo/Rubano\",6010 => \"/meteo/Rubiana\",6011 => \"/meteo/Rubiera\",8632 => \"/meteo/Rucas\",6012 => \"/meteo/Ruda\",6013 => \"/meteo/Rudiano\",6014 => \"/meteo/Rueglio\",6015 => \"/meteo/Ruffano\",6016 => \"/meteo/Ruffia\",6017 => \"/meteo/Ruffre'\",6018 => \"/meteo/Rufina\",6019 => \"/meteo/Ruinas\",6020 => \"/meteo/Ruino\",6021 => \"/meteo/Rumo\",8366 => \"/meteo/Ruoti\",6023 => \"/meteo/Russi\",6024 => \"/meteo/Rutigliano\",6025 => \"/meteo/Rutino\",6026 => \"/meteo/Ruviano\",8393 => \"/meteo/Ruvo+del+monte\",6028 => \"/meteo/Ruvo+di+Puglia\",6029 => \"/meteo/Sabaudia\",6030 => \"/meteo/Sabbia\",6031 => \"/meteo/Sabbio+chiese\",6032 => \"/meteo/Sabbioneta\",6033 => \"/meteo/Sacco\",6034 => \"/meteo/Saccolongo\",6035 => \"/meteo/Sacile\",8700 => \"/meteo/Sacra+di+San+Michele\",6036 => \"/meteo/Sacrofano\",6037 => \"/meteo/Sadali\",6038 => \"/meteo/Sagama\",6039 => \"/meteo/Sagliano+micca\",6040 => \"/meteo/Sagrado\",6041 => \"/meteo/Sagron+mis\",8602 => \"/meteo/Saint+Barthelemy\",6042 => \"/meteo/Saint+Christophe\",6043 => \"/meteo/Saint+Denis\",8304 => \"/meteo/Saint+Jacques\",6044 => \"/meteo/Saint+Marcel\",6045 => \"/meteo/Saint+Nicolas\",6046 => \"/meteo/Saint+Oyen+Flassin\",6047 => \"/meteo/Saint+Pierre\",6048 => \"/meteo/Saint+Rhemy+en+Bosses\",6049 => \"/meteo/Saint+Vincent\",6050 => \"/meteo/Sala+Baganza\",6051 => \"/meteo/Sala+Biellese\",6052 => \"/meteo/Sala+Bolognese\",6053 => \"/meteo/Sala+Comacina\",6054 => \"/meteo/Sala+Consilina\",6055 => \"/meteo/Sala+Monferrato\",8372 => \"/meteo/Salandra\",6057 => \"/meteo/Salaparuta\",6058 => \"/meteo/Salara\",6059 => \"/meteo/Salasco\",6060 => \"/meteo/Salassa\",6061 => \"/meteo/Salbertrand\",6062 => \"/meteo/Salcedo\",6063 => \"/meteo/Salcito\",6064 => \"/meteo/Sale\",6065 => \"/meteo/Sale+delle+Langhe\",6066 => \"/meteo/Sale+Marasino\",6067 => \"/meteo/Sale+San+Giovanni\",6068 => \"/meteo/Salemi\",6069 => \"/meteo/Salento\",6070 => \"/meteo/Salerano+Canavese\",6071 => \"/meteo/Salerano+sul+Lambro\",6072 => \"/meteo/Salerno\",6073 => \"/meteo/Saletto\",6074 => \"/meteo/Salgareda\",6075 => \"/meteo/Sali+Vercellese\",6076 => \"/meteo/Salice+Salentino\",6077 => \"/meteo/Saliceto\",6078 => \"/meteo/Salisano\",6079 => \"/meteo/Salizzole\",6080 => \"/meteo/Salle\",6081 => \"/meteo/Salmour\",6082 => \"/meteo/Salo'\",6083 => \"/meteo/Salorno\",6084 => \"/meteo/Salsomaggiore+Terme\",6085 => \"/meteo/Saltara\",6086 => \"/meteo/Saltrio\",6087 => \"/meteo/Saludecio\",6088 => \"/meteo/Saluggia\",6089 => \"/meteo/Salussola\",6090 => \"/meteo/Saluzzo\",6091 => \"/meteo/Salve\",6092 => \"/meteo/Salvirola\",6093 => \"/meteo/Salvitelle\",6094 => \"/meteo/Salza+di+Pinerolo\",6095 => \"/meteo/Salza+Irpina\",6096 => \"/meteo/Salzano\",6097 => \"/meteo/Samarate\",6098 => \"/meteo/Samassi\",6099 => \"/meteo/Samatzai\",6100 => \"/meteo/Sambuca+di+Sicilia\",6101 => \"/meteo/Sambuca+Pistoiese\",6102 => \"/meteo/Sambuci\",6103 => \"/meteo/Sambuco\",6104 => \"/meteo/Sammichele+di+Bari\",6105 => \"/meteo/Samo\",6106 => \"/meteo/Samolaco\",6107 => \"/meteo/Samone\",6108 => \"/meteo/Samone\",6109 => \"/meteo/Sampeyre\",6110 => \"/meteo/Samugheo\",6111 => \"/meteo/San+Bartolomeo+al+Mare\",6112 => \"/meteo/San+Bartolomeo+in+Galdo\",6113 => \"/meteo/San+Bartolomeo+Val+Cavargna\",6114 => \"/meteo/San+Basile\",6115 => \"/meteo/San+Basilio\",6116 => \"/meteo/San+Bassano\",6117 => \"/meteo/San+Bellino\",6118 => \"/meteo/San+Benedetto+Belbo\",6119 => \"/meteo/San+Benedetto+dei+Marsi\",6120 => \"/meteo/San+Benedetto+del+Tronto\",8126 => \"/meteo/San+Benedetto+in+Alpe\",6121 => \"/meteo/San+Benedetto+in+Perillis\",6122 => \"/meteo/San+Benedetto+Po\",6123 => \"/meteo/San+Benedetto+Ullano\",6124 => \"/meteo/San+Benedetto+val+di+Sambro\",6125 => \"/meteo/San+Benigno+Canavese\",8641 => \"/meteo/San+Bernardino\",6126 => \"/meteo/San+Bernardino+Verbano\",6127 => \"/meteo/San+Biagio+della+Cima\",6128 => \"/meteo/San+Biagio+di+Callalta\",6129 => \"/meteo/San+Biagio+Platani\",6130 => \"/meteo/San+Biagio+Saracinisco\",6131 => \"/meteo/San+Biase\",6132 => \"/meteo/San+Bonifacio\",6133 => \"/meteo/San+Buono\",6134 => \"/meteo/San+Calogero\",6135 => \"/meteo/San+Candido\",6136 => \"/meteo/San+Canzian+d'Isonzo\",6137 => \"/meteo/San+Carlo+Canavese\",6138 => \"/meteo/San+Casciano+dei+Bagni\",6139 => \"/meteo/San+Casciano+in+Val+di+Pesa\",6140 => \"/meteo/San+Cassiano\",8624 => \"/meteo/San+Cassiano+in+Badia\",6141 => \"/meteo/San+Cataldo\",6142 => \"/meteo/San+Cesareo\",6143 => \"/meteo/San+Cesario+di+Lecce\",6144 => \"/meteo/San+Cesario+sul+Panaro\",8367 => \"/meteo/San+Chirico+Nuovo\",6146 => \"/meteo/San+Chirico+Raparo\",6147 => \"/meteo/San+Cipirello\",6148 => \"/meteo/San+Cipriano+d'Aversa\",6149 => \"/meteo/San+Cipriano+Picentino\",6150 => \"/meteo/San+Cipriano+Po\",6151 => \"/meteo/San+Clemente\",6152 => \"/meteo/San+Colombano+al+Lambro\",6153 => \"/meteo/San+Colombano+Belmonte\",6154 => \"/meteo/San+Colombano+Certenoli\",8622 => \"/meteo/San+Colombano+Valdidentro\",6155 => \"/meteo/San+Cono\",6156 => \"/meteo/San+Cosmo+Albanese\",8376 => \"/meteo/San+Costantino+Albanese\",6158 => \"/meteo/San+Costantino+Calabro\",6159 => \"/meteo/San+Costanzo\",6160 => \"/meteo/San+Cristoforo\",6161 => \"/meteo/San+Damiano+al+Colle\",6162 => \"/meteo/San+Damiano+d'Asti\",6163 => \"/meteo/San+Damiano+Macra\",6164 => \"/meteo/San+Daniele+del+Friuli\",6165 => \"/meteo/San+Daniele+Po\",6166 => \"/meteo/San+Demetrio+Corone\",6167 => \"/meteo/San+Demetrio+ne'+Vestini\",6168 => \"/meteo/San+Didero\",8556 => \"/meteo/San+Domenico+di+Varzo\",6169 => \"/meteo/San+Dona'+di+Piave\",6170 => \"/meteo/San+Donaci\",6171 => \"/meteo/San+Donato+di+Lecce\",6172 => \"/meteo/San+Donato+di+Ninea\",6173 => \"/meteo/San+Donato+Milanese\",6174 => \"/meteo/San+Donato+Val+di+Comino\",6175 => \"/meteo/San+Dorligo+della+Valle\",6176 => \"/meteo/San+Fedele+Intelvi\",6177 => \"/meteo/San+Fele\",6178 => \"/meteo/San+Felice+a+Cancello\",6179 => \"/meteo/San+Felice+Circeo\",6180 => \"/meteo/San+Felice+del+Benaco\",6181 => \"/meteo/San+Felice+del+Molise\",6182 => \"/meteo/San+Felice+sul+Panaro\",6183 => \"/meteo/San+Ferdinando\",6184 => \"/meteo/San+Ferdinando+di+Puglia\",6185 => \"/meteo/San+Fermo+della+Battaglia\",6186 => \"/meteo/San+Fili\",6187 => \"/meteo/San+Filippo+del+mela\",6188 => \"/meteo/San+Fior\",6189 => \"/meteo/San+Fiorano\",6190 => \"/meteo/San+Floriano+del+collio\",6191 => \"/meteo/San+Floro\",6192 => \"/meteo/San+Francesco+al+campo\",6193 => \"/meteo/San+Fratello\",8690 => \"/meteo/San+Galgano\",6194 => \"/meteo/San+Gavino+monreale\",6195 => \"/meteo/San+Gemini\",6196 => \"/meteo/San+Genesio+Atesino\",6197 => \"/meteo/San+Genesio+ed+uniti\",6198 => \"/meteo/San+Gennaro+vesuviano\",6199 => \"/meteo/San+Germano+chisone\",6200 => \"/meteo/San+Germano+dei+berici\",6201 => \"/meteo/San+Germano+vercellese\",6202 => \"/meteo/San+Gervasio+bresciano\",6203 => \"/meteo/San+Giacomo+degli+schiavoni\",6204 => \"/meteo/San+Giacomo+delle+segnate\",8620 => \"/meteo/San+Giacomo+di+Roburent\",6205 => \"/meteo/San+Giacomo+filippo\",6206 => \"/meteo/San+Giacomo+vercellese\",6207 => \"/meteo/San+Gillio\",6208 => \"/meteo/San+Gimignano\",6209 => \"/meteo/San+Ginesio\",6210 => \"/meteo/San+Giorgio+a+cremano\",6211 => \"/meteo/San+Giorgio+a+liri\",6212 => \"/meteo/San+Giorgio+albanese\",6213 => \"/meteo/San+Giorgio+canavese\",6214 => \"/meteo/San+Giorgio+del+sannio\",6215 => \"/meteo/San+Giorgio+della+richinvelda\",6216 => \"/meteo/San+Giorgio+delle+Pertiche\",6217 => \"/meteo/San+Giorgio+di+lomellina\",6218 => \"/meteo/San+Giorgio+di+mantova\",6219 => \"/meteo/San+Giorgio+di+nogaro\",6220 => \"/meteo/San+Giorgio+di+pesaro\",6221 => \"/meteo/San+Giorgio+di+piano\",6222 => \"/meteo/San+Giorgio+in+bosco\",6223 => \"/meteo/San+Giorgio+ionico\",6224 => \"/meteo/San+Giorgio+la+molara\",6225 => \"/meteo/San+Giorgio+lucano\",6226 => \"/meteo/San+Giorgio+monferrato\",6227 => \"/meteo/San+Giorgio+morgeto\",6228 => \"/meteo/San+Giorgio+piacentino\",6229 => \"/meteo/San+Giorgio+scarampi\",6230 => \"/meteo/San+Giorgio+su+Legnano\",6231 => \"/meteo/San+Giorio+di+susa\",6232 => \"/meteo/San+Giovanni+a+piro\",6233 => \"/meteo/San+Giovanni+al+natisone\",6234 => \"/meteo/San+Giovanni+bianco\",6235 => \"/meteo/San+Giovanni+d'asso\",6236 => \"/meteo/San+Giovanni+del+dosso\",6237 => \"/meteo/San+Giovanni+di+gerace\",6238 => \"/meteo/San+Giovanni+gemini\",6239 => \"/meteo/San+Giovanni+ilarione\",6240 => \"/meteo/San+Giovanni+in+croce\",6241 => \"/meteo/San+Giovanni+in+fiore\",6242 => \"/meteo/San+Giovanni+in+galdo\",6243 => \"/meteo/San+Giovanni+in+marignano\",6244 => \"/meteo/San+Giovanni+in+persiceto\",8567 => \"/meteo/San+Giovanni+in+val+Aurina\",6245 => \"/meteo/San+Giovanni+incarico\",6246 => \"/meteo/San+Giovanni+la+punta\",6247 => \"/meteo/San+Giovanni+lipioni\",6248 => \"/meteo/San+Giovanni+lupatoto\",6249 => \"/meteo/San+Giovanni+rotondo\",6250 => \"/meteo/San+Giovanni+suergiu\",6251 => \"/meteo/San+Giovanni+teatino\",6252 => \"/meteo/San+Giovanni+valdarno\",6253 => \"/meteo/San+Giuliano+del+sannio\",6254 => \"/meteo/San+Giuliano+di+Puglia\",6255 => \"/meteo/San+Giuliano+milanese\",6256 => \"/meteo/San+Giuliano+terme\",6257 => \"/meteo/San+Giuseppe+jato\",6258 => \"/meteo/San+Giuseppe+vesuviano\",6259 => \"/meteo/San+Giustino\",6260 => \"/meteo/San+Giusto+canavese\",6261 => \"/meteo/San+Godenzo\",6262 => \"/meteo/San+Gregorio+d'ippona\",6263 => \"/meteo/San+Gregorio+da+sassola\",6264 => \"/meteo/San+Gregorio+di+Catania\",6265 => \"/meteo/San+Gregorio+Magno\",6266 => \"/meteo/San+Gregorio+Matese\",6267 => \"/meteo/San+Gregorio+nelle+Alpi\",6268 => \"/meteo/San+Lazzaro+di+Savena\",6269 => \"/meteo/San+Leo\",6270 => \"/meteo/San+Leonardo\",6271 => \"/meteo/San+Leonardo+in+Passiria\",8580 => \"/meteo/San+Leone\",6272 => \"/meteo/San+Leucio+del+Sannio\",6273 => \"/meteo/San+Lorenzello\",6274 => \"/meteo/San+Lorenzo\",6275 => \"/meteo/San+Lorenzo+al+mare\",6276 => \"/meteo/San+Lorenzo+Bellizzi\",6277 => \"/meteo/San+Lorenzo+del+vallo\",6278 => \"/meteo/San+Lorenzo+di+Sebato\",6279 => \"/meteo/San+Lorenzo+in+Banale\",6280 => \"/meteo/San+Lorenzo+in+campo\",6281 => \"/meteo/San+Lorenzo+isontino\",6282 => \"/meteo/San+Lorenzo+Maggiore\",6283 => \"/meteo/San+Lorenzo+Nuovo\",6284 => \"/meteo/San+Luca\",6285 => \"/meteo/San+Lucido\",6286 => \"/meteo/San+Lupo\",6287 => \"/meteo/San+Mango+d'Aquino\",6288 => \"/meteo/San+Mango+Piemonte\",6289 => \"/meteo/San+Mango+sul+Calore\",6290 => \"/meteo/San+Marcellino\",6291 => \"/meteo/San+Marcello\",6292 => \"/meteo/San+Marcello+pistoiese\",6293 => \"/meteo/San+Marco+argentano\",6294 => \"/meteo/San+Marco+d'Alunzio\",6295 => \"/meteo/San+Marco+dei+Cavoti\",6296 => \"/meteo/San+Marco+Evangelista\",6297 => \"/meteo/San+Marco+in+Lamis\",6298 => \"/meteo/San+Marco+la+Catola\",8152 => \"/meteo/San+Marino\",6299 => \"/meteo/San+Martino+al+Tagliamento\",6300 => \"/meteo/San+Martino+Alfieri\",6301 => \"/meteo/San+Martino+Buon+Albergo\",6302 => \"/meteo/San+Martino+Canavese\",6303 => \"/meteo/San+Martino+d'Agri\",6304 => \"/meteo/San+Martino+dall'argine\",6305 => \"/meteo/San+Martino+del+lago\",8209 => \"/meteo/San+Martino+di+Castrozza\",6306 => \"/meteo/San+Martino+di+Finita\",6307 => \"/meteo/San+Martino+di+Lupari\",6308 => \"/meteo/San+Martino+di+venezze\",8410 => \"/meteo/San+Martino+d`agri\",6309 => \"/meteo/San+Martino+in+Badia\",6310 => \"/meteo/San+Martino+in+Passiria\",6311 => \"/meteo/San+Martino+in+pensilis\",6312 => \"/meteo/San+Martino+in+rio\",6313 => \"/meteo/San+Martino+in+strada\",6314 => \"/meteo/San+Martino+sannita\",6315 => \"/meteo/San+Martino+siccomario\",6316 => \"/meteo/San+Martino+sulla+marrucina\",6317 => \"/meteo/San+Martino+valle+caudina\",6318 => \"/meteo/San+Marzano+di+San+Giuseppe\",6319 => \"/meteo/San+Marzano+oliveto\",6320 => \"/meteo/San+Marzano+sul+Sarno\",6321 => \"/meteo/San+Massimo\",6322 => \"/meteo/San+Maurizio+canavese\",6323 => \"/meteo/San+Maurizio+d'opaglio\",6324 => \"/meteo/San+Mauro+castelverde\",6325 => \"/meteo/San+Mauro+cilento\",6326 => \"/meteo/San+Mauro+di+saline\",8427 => \"/meteo/San+Mauro+forte\",6328 => \"/meteo/San+Mauro+la+bruca\",6329 => \"/meteo/San+Mauro+marchesato\",6330 => \"/meteo/San+Mauro+Pascoli\",6331 => \"/meteo/San+Mauro+torinese\",6332 => \"/meteo/San+Michele+al+Tagliamento\",6333 => \"/meteo/San+Michele+all'Adige\",6334 => \"/meteo/San+Michele+di+ganzaria\",6335 => \"/meteo/San+Michele+di+serino\",6336 => \"/meteo/San+Michele+Mondovi'\",6337 => \"/meteo/San+Michele+salentino\",6338 => \"/meteo/San+Miniato\",6339 => \"/meteo/San+Nazario\",6340 => \"/meteo/San+Nazzaro\",6341 => \"/meteo/San+Nazzaro+Sesia\",6342 => \"/meteo/San+Nazzaro+val+cavargna\",6343 => \"/meteo/San+Nicola+arcella\",6344 => \"/meteo/San+Nicola+baronia\",6345 => \"/meteo/San+Nicola+da+crissa\",6346 => \"/meteo/San+Nicola+dell'alto\",6347 => \"/meteo/San+Nicola+la+strada\",6348 => \"/meteo/San+nicola+manfredi\",6349 => \"/meteo/San+nicolo'+d'arcidano\",6350 => \"/meteo/San+nicolo'+di+comelico\",6351 => \"/meteo/San+Nicolo'+Gerrei\",6352 => \"/meteo/San+Pancrazio\",6353 => \"/meteo/San+Pancrazio+salentino\",6354 => \"/meteo/San+Paolo\",8361 => \"/meteo/San+Paolo+albanese\",6356 => \"/meteo/San+Paolo+bel+sito\",6357 => \"/meteo/San+Paolo+cervo\",6358 => \"/meteo/San+Paolo+d'argon\",6359 => \"/meteo/San+Paolo+di+civitate\",6360 => \"/meteo/San+Paolo+di+Jesi\",6361 => \"/meteo/San+Paolo+solbrito\",6362 => \"/meteo/San+Pellegrino+terme\",6363 => \"/meteo/San+Pier+d'isonzo\",6364 => \"/meteo/San+Pier+niceto\",6365 => \"/meteo/San+Piero+a+sieve\",6366 => \"/meteo/San+Piero+Patti\",6367 => \"/meteo/San+Pietro+a+maida\",6368 => \"/meteo/San+Pietro+al+Natisone\",6369 => \"/meteo/San+Pietro+al+Tanagro\",6370 => \"/meteo/San+Pietro+apostolo\",6371 => \"/meteo/San+Pietro+avellana\",6372 => \"/meteo/San+Pietro+clarenza\",6373 => \"/meteo/San+Pietro+di+cadore\",6374 => \"/meteo/San+Pietro+di+carida'\",6375 => \"/meteo/San+Pietro+di+feletto\",6376 => \"/meteo/San+Pietro+di+morubio\",6377 => \"/meteo/San+Pietro+in+Amantea\",6378 => \"/meteo/San+Pietro+in+cariano\",6379 => \"/meteo/San+Pietro+in+casale\",6380 => \"/meteo/San+Pietro+in+cerro\",6381 => \"/meteo/San+Pietro+in+gu\",6382 => \"/meteo/San+Pietro+in+guarano\",6383 => \"/meteo/San+Pietro+in+lama\",6384 => \"/meteo/San+Pietro+infine\",6385 => \"/meteo/San+Pietro+mosezzo\",6386 => \"/meteo/San+Pietro+mussolino\",6387 => \"/meteo/San+Pietro+val+lemina\",6388 => \"/meteo/San+Pietro+vernotico\",6389 => \"/meteo/San+Pietro+Viminario\",6390 => \"/meteo/San+Pio+delle+camere\",6391 => \"/meteo/San+Polo+d'enza\",6392 => \"/meteo/San+Polo+dei+cavalieri\",6393 => \"/meteo/San+Polo+di+Piave\",6394 => \"/meteo/San+Polo+matese\",6395 => \"/meteo/San+Ponso\",6396 => \"/meteo/San+Possidonio\",6397 => \"/meteo/San+Potito+sannitico\",6398 => \"/meteo/San+Potito+ultra\",6399 => \"/meteo/San+Prisco\",6400 => \"/meteo/San+Procopio\",6401 => \"/meteo/San+Prospero\",6402 => \"/meteo/San+Quirico+d'orcia\",8199 => \"/meteo/San+Quirico+d`Orcia\",6403 => \"/meteo/San+Quirino\",6404 => \"/meteo/San+Raffaele+cimena\",6405 => \"/meteo/San+Roberto\",6406 => \"/meteo/San+Rocco+al+porto\",6407 => \"/meteo/San+Romano+in+garfagnana\",6408 => \"/meteo/San+Rufo\",6409 => \"/meteo/San+Salvatore+di+fitalia\",6410 => \"/meteo/San+Salvatore+Monferrato\",6411 => \"/meteo/San+Salvatore+Telesino\",6412 => \"/meteo/San+Salvo\",8103 => \"/meteo/San+Salvo+Marina\",6413 => \"/meteo/San+Sebastiano+al+Vesuvio\",6414 => \"/meteo/San+Sebastiano+Curone\",6415 => \"/meteo/San+Sebastiano+da+Po\",6416 => \"/meteo/San+Secondo+di+Pinerolo\",6417 => \"/meteo/San+Secondo+Parmense\",6418 => \"/meteo/San+Severino+Lucano\",6419 => \"/meteo/San+Severino+Marche\",6420 => \"/meteo/San+Severo\",8347 => \"/meteo/San+Sicario+di+Cesana\",8289 => \"/meteo/San+Simone\",8539 => \"/meteo/San+Simone+Baita+del+Camoscio\",6421 => \"/meteo/San+Siro\",6422 => \"/meteo/San+Sossio+Baronia\",6423 => \"/meteo/San+Sostene\",6424 => \"/meteo/San+Sosti\",6425 => \"/meteo/San+Sperate\",6426 => \"/meteo/San+Tammaro\",6427 => \"/meteo/San+Teodoro\",8170 => \"/meteo/San+Teodoro\",6429 => \"/meteo/San+Tomaso+agordino\",8212 => \"/meteo/San+Valentino+alla+Muta\",6430 => \"/meteo/San+Valentino+in+abruzzo+citeriore\",6431 => \"/meteo/San+Valentino+torio\",6432 => \"/meteo/San+Venanzo\",6433 => \"/meteo/San+Vendemiano\",6434 => \"/meteo/San+Vero+milis\",6435 => \"/meteo/San+Vincenzo\",6436 => \"/meteo/San+Vincenzo+la+costa\",6437 => \"/meteo/San+Vincenzo+valle+roveto\",6438 => \"/meteo/San+Vitaliano\",8293 => \"/meteo/San+Vito\",6440 => \"/meteo/San+Vito+al+tagliamento\",6441 => \"/meteo/San+Vito+al+torre\",6442 => \"/meteo/San+Vito+chietino\",6443 => \"/meteo/San+Vito+dei+normanni\",6444 => \"/meteo/San+Vito+di+cadore\",6445 => \"/meteo/San+Vito+di+fagagna\",6446 => \"/meteo/San+Vito+di+leguzzano\",6447 => \"/meteo/San+Vito+lo+capo\",6448 => \"/meteo/San+Vito+romano\",6449 => \"/meteo/San+Vito+sullo+ionio\",6450 => \"/meteo/San+Vittore+del+lazio\",6451 => \"/meteo/San+Vittore+Olona\",6452 => \"/meteo/San+Zeno+di+montagna\",6453 => \"/meteo/San+Zeno+naviglio\",6454 => \"/meteo/San+Zenone+al+lambro\",6455 => \"/meteo/San+Zenone+al+po\",6456 => \"/meteo/San+Zenone+degli+ezzelini\",6457 => \"/meteo/Sanarica\",6458 => \"/meteo/Sandigliano\",6459 => \"/meteo/Sandrigo\",6460 => \"/meteo/Sanfre'\",6461 => \"/meteo/Sanfront\",6462 => \"/meteo/Sangano\",6463 => \"/meteo/Sangiano\",6464 => \"/meteo/Sangineto\",6465 => \"/meteo/Sanguinetto\",6466 => \"/meteo/Sanluri\",6467 => \"/meteo/Sannazzaro+de'+Burgondi\",6468 => \"/meteo/Sannicandro+di+bari\",6469 => \"/meteo/Sannicandro+garganico\",6470 => \"/meteo/Sannicola\",6471 => \"/meteo/Sanremo\",6472 => \"/meteo/Sansepolcro\",6473 => \"/meteo/Sant'Agapito\",6474 => \"/meteo/Sant'Agata+bolognese\",6475 => \"/meteo/Sant'Agata+de'+goti\",6476 => \"/meteo/Sant'Agata+del+bianco\",6477 => \"/meteo/Sant'Agata+di+esaro\",6478 => \"/meteo/Sant'Agata+di+Militello\",6479 => \"/meteo/Sant'Agata+di+Puglia\",6480 => \"/meteo/Sant'Agata+feltria\",6481 => \"/meteo/Sant'Agata+fossili\",6482 => \"/meteo/Sant'Agata+li+battiati\",6483 => \"/meteo/Sant'Agata+sul+Santerno\",6484 => \"/meteo/Sant'Agnello\",6485 => \"/meteo/Sant'Agostino\",6486 => \"/meteo/Sant'Albano+stura\",6487 => \"/meteo/Sant'Alessio+con+vialone\",6488 => \"/meteo/Sant'Alessio+in+aspromonte\",6489 => \"/meteo/Sant'Alessio+siculo\",6490 => \"/meteo/Sant'Alfio\",6491 => \"/meteo/Sant'Ambrogio+di+Torino\",6492 => \"/meteo/Sant'Ambrogio+di+valpolicella\",6493 => \"/meteo/Sant'Ambrogio+sul+garigliano\",6494 => \"/meteo/Sant'Anastasia\",6495 => \"/meteo/Sant'Anatolia+di+narco\",6496 => \"/meteo/Sant'Andrea+apostolo+dello+ionio\",6497 => \"/meteo/Sant'Andrea+del+garigliano\",6498 => \"/meteo/Sant'Andrea+di+conza\",6499 => \"/meteo/Sant'Andrea+Frius\",8763 => \"/meteo/Sant'Andrea+in+Monte\",6500 => \"/meteo/Sant'Angelo+a+cupolo\",6501 => \"/meteo/Sant'Angelo+a+fasanella\",6502 => \"/meteo/Sant'Angelo+a+scala\",6503 => \"/meteo/Sant'Angelo+all'esca\",6504 => \"/meteo/Sant'Angelo+d'alife\",6505 => \"/meteo/Sant'Angelo+dei+lombardi\",6506 => \"/meteo/Sant'Angelo+del+pesco\",6507 => \"/meteo/Sant'Angelo+di+brolo\",6508 => \"/meteo/Sant'Angelo+di+Piove+di+Sacco\",6509 => \"/meteo/Sant'Angelo+in+lizzola\",6510 => \"/meteo/Sant'Angelo+in+pontano\",6511 => \"/meteo/Sant'Angelo+in+vado\",6512 => \"/meteo/Sant'Angelo+le+fratte\",6513 => \"/meteo/Sant'Angelo+limosano\",6514 => \"/meteo/Sant'Angelo+lodigiano\",6515 => \"/meteo/Sant'Angelo+lomellina\",6516 => \"/meteo/Sant'Angelo+muxaro\",6517 => \"/meteo/Sant'Angelo+romano\",6518 => \"/meteo/Sant'Anna+Arresi\",6519 => \"/meteo/Sant'Anna+d'Alfaedo\",8730 => \"/meteo/Sant'Anna+di+Valdieri\",8698 => \"/meteo/Sant'Anna+di+Vinadio\",8563 => \"/meteo/Sant'Anna+Pelago\",6520 => \"/meteo/Sant'Antimo\",6521 => \"/meteo/Sant'Antioco\",6522 => \"/meteo/Sant'Antonino+di+Susa\",6523 => \"/meteo/Sant'Antonio+Abate\",6524 => \"/meteo/Sant'Antonio+di+gallura\",6525 => \"/meteo/Sant'Apollinare\",6526 => \"/meteo/Sant'Arcangelo\",6527 => \"/meteo/Sant'Arcangelo+trimonte\",6528 => \"/meteo/Sant'Arpino\",6529 => \"/meteo/Sant'Arsenio\",6530 => \"/meteo/Sant'Egidio+alla+vibrata\",6531 => \"/meteo/Sant'Egidio+del+monte+Albino\",6532 => \"/meteo/Sant'Elena\",6533 => \"/meteo/Sant'Elena+sannita\",6534 => \"/meteo/Sant'Elia+a+pianisi\",6535 => \"/meteo/Sant'Elia+fiumerapido\",6536 => \"/meteo/Sant'Elpidio+a+mare\",6537 => \"/meteo/Sant'Eufemia+a+maiella\",6538 => \"/meteo/Sant'Eufemia+d'Aspromonte\",6539 => \"/meteo/Sant'Eusanio+del+Sangro\",6540 => \"/meteo/Sant'Eusanio+forconese\",6541 => \"/meteo/Sant'Ilario+d'Enza\",6542 => \"/meteo/Sant'Ilario+dello+Ionio\",6543 => \"/meteo/Sant'Ippolito\",6544 => \"/meteo/Sant'Olcese\",6545 => \"/meteo/Sant'Omero\",6546 => \"/meteo/Sant'Omobono+imagna\",6547 => \"/meteo/Sant'Onofrio\",6548 => \"/meteo/Sant'Oreste\",6549 => \"/meteo/Sant'Orsola+terme\",6550 => \"/meteo/Sant'Urbano\",6551 => \"/meteo/Santa+Brigida\",6552 => \"/meteo/Santa+Caterina+albanese\",6553 => \"/meteo/Santa+Caterina+dello+ionio\",8144 => \"/meteo/Santa+Caterina+Valfurva\",6554 => \"/meteo/Santa+Caterina+villarmosa\",6555 => \"/meteo/Santa+Cesarea+terme\",6556 => \"/meteo/Santa+Cristina+d'Aspromonte\",6557 => \"/meteo/Santa+Cristina+e+Bissone\",6558 => \"/meteo/Santa+Cristina+gela\",6559 => \"/meteo/Santa+Cristina+Valgardena\",6560 => \"/meteo/Santa+Croce+camerina\",6561 => \"/meteo/Santa+Croce+del+sannio\",6562 => \"/meteo/Santa+Croce+di+Magliano\",6563 => \"/meteo/Santa+Croce+sull'Arno\",6564 => \"/meteo/Santa+Domenica+talao\",6565 => \"/meteo/Santa+Domenica+Vittoria\",6566 => \"/meteo/Santa+Elisabetta\",6567 => \"/meteo/Santa+Fiora\",6568 => \"/meteo/Santa+Flavia\",6569 => \"/meteo/Santa+Giuletta\",6570 => \"/meteo/Santa+Giusta\",6571 => \"/meteo/Santa+Giustina\",6572 => \"/meteo/Santa+Giustina+in+Colle\",6573 => \"/meteo/Santa+Luce\",6574 => \"/meteo/Santa+Lucia+del+Mela\",6575 => \"/meteo/Santa+Lucia+di+Piave\",6576 => \"/meteo/Santa+Lucia+di+serino\",6577 => \"/meteo/Santa+Margherita+d'adige\",6578 => \"/meteo/Santa+Margherita+di+belice\",6579 => \"/meteo/Santa+Margherita+di+staffora\",8285 => \"/meteo/Santa+Margherita+Ligure\",6581 => \"/meteo/Santa+Maria+a+monte\",6582 => \"/meteo/Santa+Maria+a+vico\",6583 => \"/meteo/Santa+Maria+Capua+Vetere\",6584 => \"/meteo/Santa+Maria+coghinas\",6585 => \"/meteo/Santa+Maria+del+cedro\",6586 => \"/meteo/Santa+Maria+del+Molise\",6587 => \"/meteo/Santa+Maria+della+Versa\",8122 => \"/meteo/Santa+Maria+di+Castellabate\",6588 => \"/meteo/Santa+Maria+di+Licodia\",6589 => \"/meteo/Santa+Maria+di+sala\",6590 => \"/meteo/Santa+Maria+Hoe'\",6591 => \"/meteo/Santa+Maria+imbaro\",6592 => \"/meteo/Santa+Maria+la+carita'\",6593 => \"/meteo/Santa+Maria+la+fossa\",6594 => \"/meteo/Santa+Maria+la+longa\",6595 => \"/meteo/Santa+Maria+Maggiore\",6596 => \"/meteo/Santa+Maria+Nuova\",6597 => \"/meteo/Santa+Marina\",6598 => \"/meteo/Santa+Marina+salina\",6599 => \"/meteo/Santa+Marinella\",6600 => \"/meteo/Santa+Ninfa\",6601 => \"/meteo/Santa+Paolina\",6602 => \"/meteo/Santa+Severina\",6603 => \"/meteo/Santa+Sofia\",6604 => \"/meteo/Santa+Sofia+d'Epiro\",6605 => \"/meteo/Santa+Teresa+di+Riva\",6606 => \"/meteo/Santa+Teresa+gallura\",6607 => \"/meteo/Santa+Venerina\",6608 => \"/meteo/Santa+Vittoria+d'Alba\",6609 => \"/meteo/Santa+Vittoria+in+matenano\",6610 => \"/meteo/Santadi\",6611 => \"/meteo/Santarcangelo+di+Romagna\",6612 => \"/meteo/Sante+marie\",6613 => \"/meteo/Santena\",6614 => \"/meteo/Santeramo+in+colle\",6615 => \"/meteo/Santhia'\",6616 => \"/meteo/Santi+Cosma+e+Damiano\",6617 => \"/meteo/Santo+Stefano+al+mare\",6618 => \"/meteo/Santo+Stefano+Belbo\",6619 => \"/meteo/Santo+Stefano+d'Aveto\",6620 => \"/meteo/Santo+Stefano+del+sole\",6621 => \"/meteo/Santo+Stefano+di+Cadore\",6622 => \"/meteo/Santo+Stefano+di+Camastra\",6623 => \"/meteo/Santo+Stefano+di+Magra\",6624 => \"/meteo/Santo+Stefano+di+Rogliano\",6625 => \"/meteo/Santo+Stefano+di+Sessanio\",6626 => \"/meteo/Santo+Stefano+in+Aspromonte\",6627 => \"/meteo/Santo+Stefano+lodigiano\",6628 => \"/meteo/Santo+Stefano+quisquina\",6629 => \"/meteo/Santo+Stefano+roero\",6630 => \"/meteo/Santo+Stefano+Ticino\",6631 => \"/meteo/Santo+Stino+di+Livenza\",6632 => \"/meteo/Santomenna\",6633 => \"/meteo/Santopadre\",6634 => \"/meteo/Santorso\",6635 => \"/meteo/Santu+Lussurgiu\",8419 => \"/meteo/Sant`Angelo+le+fratte\",6636 => \"/meteo/Sanza\",6637 => \"/meteo/Sanzeno\",6638 => \"/meteo/Saonara\",6639 => \"/meteo/Saponara\",6640 => \"/meteo/Sappada\",6641 => \"/meteo/Sapri\",6642 => \"/meteo/Saracena\",6643 => \"/meteo/Saracinesco\",6644 => \"/meteo/Sarcedo\",8377 => \"/meteo/Sarconi\",6646 => \"/meteo/Sardara\",6647 => \"/meteo/Sardigliano\",6648 => \"/meteo/Sarego\",6649 => \"/meteo/Sarentino\",6650 => \"/meteo/Sarezzano\",6651 => \"/meteo/Sarezzo\",6652 => \"/meteo/Sarmato\",6653 => \"/meteo/Sarmede\",6654 => \"/meteo/Sarnano\",6655 => \"/meteo/Sarnico\",6656 => \"/meteo/Sarno\",6657 => \"/meteo/Sarnonico\",6658 => \"/meteo/Saronno\",6659 => \"/meteo/Sarre\",6660 => \"/meteo/Sarroch\",6661 => \"/meteo/Sarsina\",6662 => \"/meteo/Sarteano\",6663 => \"/meteo/Sartirana+lomellina\",6664 => \"/meteo/Sarule\",6665 => \"/meteo/Sarzana\",6666 => \"/meteo/Sassano\",6667 => \"/meteo/Sassari\",6668 => \"/meteo/Sassello\",6669 => \"/meteo/Sassetta\",6670 => \"/meteo/Sassinoro\",8387 => \"/meteo/Sasso+di+castalda\",6672 => \"/meteo/Sasso+marconi\",6673 => \"/meteo/Sassocorvaro\",6674 => \"/meteo/Sassofeltrio\",6675 => \"/meteo/Sassoferrato\",8656 => \"/meteo/Sassotetto\",6676 => \"/meteo/Sassuolo\",6677 => \"/meteo/Satriano\",8420 => \"/meteo/Satriano+di+Lucania\",6679 => \"/meteo/Sauris\",6680 => \"/meteo/Sauze+d'Oulx\",6681 => \"/meteo/Sauze+di+Cesana\",6682 => \"/meteo/Sava\",6683 => \"/meteo/Savelli\",6684 => \"/meteo/Saviano\",6685 => \"/meteo/Savigliano\",6686 => \"/meteo/Savignano+irpino\",6687 => \"/meteo/Savignano+sul+Panaro\",6688 => \"/meteo/Savignano+sul+Rubicone\",6689 => \"/meteo/Savigno\",6690 => \"/meteo/Savignone\",6691 => \"/meteo/Saviore+dell'Adamello\",6692 => \"/meteo/Savoca\",6693 => \"/meteo/Savogna\",6694 => \"/meteo/Savogna+d'Isonzo\",8411 => \"/meteo/Savoia+di+Lucania\",6696 => \"/meteo/Savona\",6697 => \"/meteo/Scafa\",6698 => \"/meteo/Scafati\",6699 => \"/meteo/Scagnello\",6700 => \"/meteo/Scala\",6701 => \"/meteo/Scala+coeli\",6702 => \"/meteo/Scaldasole\",6703 => \"/meteo/Scalea\",6704 => \"/meteo/Scalenghe\",6705 => \"/meteo/Scaletta+Zanclea\",6706 => \"/meteo/Scampitella\",6707 => \"/meteo/Scandale\",6708 => \"/meteo/Scandiano\",6709 => \"/meteo/Scandicci\",6710 => \"/meteo/Scandolara+ravara\",6711 => \"/meteo/Scandolara+ripa+d'Oglio\",6712 => \"/meteo/Scandriglia\",6713 => \"/meteo/Scanno\",6714 => \"/meteo/Scano+di+montiferro\",6715 => \"/meteo/Scansano\",6716 => \"/meteo/Scanzano+jonico\",6717 => \"/meteo/Scanzorosciate\",6718 => \"/meteo/Scapoli\",8120 => \"/meteo/Scario\",6719 => \"/meteo/Scarlino\",6720 => \"/meteo/Scarmagno\",6721 => \"/meteo/Scarnafigi\",6722 => \"/meteo/Scarperia\",8139 => \"/meteo/Scauri\",6723 => \"/meteo/Scena\",6724 => \"/meteo/Scerni\",6725 => \"/meteo/Scheggia+e+pascelupo\",6726 => \"/meteo/Scheggino\",6727 => \"/meteo/Schiavi+di+Abruzzo\",6728 => \"/meteo/Schiavon\",8456 => \"/meteo/Schiavonea+di+Corigliano\",6729 => \"/meteo/Schignano\",6730 => \"/meteo/Schilpario\",6731 => \"/meteo/Schio\",6732 => \"/meteo/Schivenoglia\",6733 => \"/meteo/Sciacca\",6734 => \"/meteo/Sciara\",6735 => \"/meteo/Scicli\",6736 => \"/meteo/Scido\",6737 => \"/meteo/Scigliano\",6738 => \"/meteo/Scilla\",6739 => \"/meteo/Scillato\",6740 => \"/meteo/Sciolze\",6741 => \"/meteo/Scisciano\",6742 => \"/meteo/Sclafani+bagni\",6743 => \"/meteo/Scontrone\",6744 => \"/meteo/Scopa\",6745 => \"/meteo/Scopello\",6746 => \"/meteo/Scoppito\",6747 => \"/meteo/Scordia\",6748 => \"/meteo/Scorrano\",6749 => \"/meteo/Scorze'\",6750 => \"/meteo/Scurcola+marsicana\",6751 => \"/meteo/Scurelle\",6752 => \"/meteo/Scurzolengo\",6753 => \"/meteo/Seborga\",6754 => \"/meteo/Secinaro\",6755 => \"/meteo/Secli'\",8336 => \"/meteo/Secondino\",6756 => \"/meteo/Secugnago\",6757 => \"/meteo/Sedegliano\",6758 => \"/meteo/Sedico\",6759 => \"/meteo/Sedilo\",6760 => \"/meteo/Sedini\",6761 => \"/meteo/Sedriano\",6762 => \"/meteo/Sedrina\",6763 => \"/meteo/Sefro\",6764 => \"/meteo/Segariu\",8714 => \"/meteo/Segesta\",6765 => \"/meteo/Seggiano\",6766 => \"/meteo/Segni\",6767 => \"/meteo/Segonzano\",6768 => \"/meteo/Segrate\",6769 => \"/meteo/Segusino\",6770 => \"/meteo/Selargius\",6771 => \"/meteo/Selci\",6772 => \"/meteo/Selegas\",8715 => \"/meteo/Selinunte\",8130 => \"/meteo/Sella+Nevea\",6773 => \"/meteo/Sellano\",8651 => \"/meteo/Sellata+Arioso\",6774 => \"/meteo/Sellero\",8238 => \"/meteo/Selletta\",6775 => \"/meteo/Sellia\",6776 => \"/meteo/Sellia+marina\",6777 => \"/meteo/Selva+dei+Molini\",6778 => \"/meteo/Selva+di+Cadore\",6779 => \"/meteo/Selva+di+Progno\",6780 => \"/meteo/Selva+di+Val+Gardena\",6781 => \"/meteo/Selvazzano+dentro\",6782 => \"/meteo/Selve+marcone\",6783 => \"/meteo/Selvino\",6784 => \"/meteo/Semestene\",6785 => \"/meteo/Semiana\",6786 => \"/meteo/Seminara\",6787 => \"/meteo/Semproniano\",6788 => \"/meteo/Senago\",6789 => \"/meteo/Senale+San+Felice\",6790 => \"/meteo/Senales\",6791 => \"/meteo/Seneghe\",6792 => \"/meteo/Senerchia\",6793 => \"/meteo/Seniga\",6794 => \"/meteo/Senigallia\",6795 => \"/meteo/Senis\",6796 => \"/meteo/Senise\",6797 => \"/meteo/Senna+comasco\",6798 => \"/meteo/Senna+lodigiana\",6799 => \"/meteo/Sennariolo\",6800 => \"/meteo/Sennori\",6801 => \"/meteo/Senorbi'\",6802 => \"/meteo/Sepino\",6803 => \"/meteo/Seppiana\",6804 => \"/meteo/Sequals\",6805 => \"/meteo/Seravezza\",6806 => \"/meteo/Serdiana\",6807 => \"/meteo/Seregno\",6808 => \"/meteo/Seren+del+grappa\",6809 => \"/meteo/Sergnano\",6810 => \"/meteo/Seriate\",6811 => \"/meteo/Serina\",6812 => \"/meteo/Serino\",6813 => \"/meteo/Serle\",6814 => \"/meteo/Sermide\",6815 => \"/meteo/Sermoneta\",6816 => \"/meteo/Sernaglia+della+Battaglia\",6817 => \"/meteo/Sernio\",6818 => \"/meteo/Serole\",6819 => \"/meteo/Serra+d'aiello\",6820 => \"/meteo/Serra+de'conti\",6821 => \"/meteo/Serra+pedace\",6822 => \"/meteo/Serra+ricco'\",6823 => \"/meteo/Serra+San+Bruno\",6824 => \"/meteo/Serra+San+Quirico\",6825 => \"/meteo/Serra+Sant'Abbondio\",6826 => \"/meteo/Serracapriola\",6827 => \"/meteo/Serradifalco\",6828 => \"/meteo/Serralunga+d'Alba\",6829 => \"/meteo/Serralunga+di+Crea\",6830 => \"/meteo/Serramanna\",6831 => \"/meteo/Serramazzoni\",6832 => \"/meteo/Serramezzana\",6833 => \"/meteo/Serramonacesca\",6834 => \"/meteo/Serrapetrona\",6835 => \"/meteo/Serrara+fontana\",6836 => \"/meteo/Serrastretta\",6837 => \"/meteo/Serrata\",6838 => \"/meteo/Serravalle+a+po\",6839 => \"/meteo/Serravalle+di+chienti\",6840 => \"/meteo/Serravalle+langhe\",6841 => \"/meteo/Serravalle+pistoiese\",6842 => \"/meteo/Serravalle+Scrivia\",6843 => \"/meteo/Serravalle+Sesia\",6844 => \"/meteo/Serre\",6845 => \"/meteo/Serrenti\",6846 => \"/meteo/Serri\",6847 => \"/meteo/Serrone\",6848 => \"/meteo/Serrungarina\",6849 => \"/meteo/Sersale\",6850 => \"/meteo/Servigliano\",6851 => \"/meteo/Sessa+aurunca\",6852 => \"/meteo/Sessa+cilento\",6853 => \"/meteo/Sessame\",6854 => \"/meteo/Sessano+del+Molise\",6855 => \"/meteo/Sesta+godano\",6856 => \"/meteo/Sestino\",6857 => \"/meteo/Sesto\",6858 => \"/meteo/Sesto+al+reghena\",6859 => \"/meteo/Sesto+calende\",8709 => \"/meteo/Sesto+Calende+Alta\",6860 => \"/meteo/Sesto+campano\",6861 => \"/meteo/Sesto+ed+Uniti\",6862 => \"/meteo/Sesto+fiorentino\",6863 => \"/meteo/Sesto+San+Giovanni\",6864 => \"/meteo/Sestola\",6865 => \"/meteo/Sestri+levante\",6866 => \"/meteo/Sestriere\",6867 => \"/meteo/Sestu\",6868 => \"/meteo/Settala\",8316 => \"/meteo/Settebagni\",6869 => \"/meteo/Settefrati\",6870 => \"/meteo/Settime\",6871 => \"/meteo/Settimo+milanese\",6872 => \"/meteo/Settimo+rottaro\",6873 => \"/meteo/Settimo+San+Pietro\",6874 => \"/meteo/Settimo+torinese\",6875 => \"/meteo/Settimo+vittone\",6876 => \"/meteo/Settingiano\",6877 => \"/meteo/Setzu\",6878 => \"/meteo/Seui\",6879 => \"/meteo/Seulo\",6880 => \"/meteo/Seveso\",6881 => \"/meteo/Sezzadio\",6882 => \"/meteo/Sezze\",6883 => \"/meteo/Sfruz\",6884 => \"/meteo/Sgonico\",6885 => \"/meteo/Sgurgola\",6886 => \"/meteo/Siamaggiore\",6887 => \"/meteo/Siamanna\",6888 => \"/meteo/Siano\",6889 => \"/meteo/Siapiccia\",8114 => \"/meteo/Sibari\",6890 => \"/meteo/Sicignano+degli+Alburni\",6891 => \"/meteo/Siculiana\",6892 => \"/meteo/Siddi\",6893 => \"/meteo/Siderno\",6894 => \"/meteo/Siena\",6895 => \"/meteo/Sigillo\",6896 => \"/meteo/Signa\",8603 => \"/meteo/Sigonella\",6897 => \"/meteo/Silandro\",6898 => \"/meteo/Silanus\",6899 => \"/meteo/Silea\",6900 => \"/meteo/Siligo\",6901 => \"/meteo/Siliqua\",6902 => \"/meteo/Silius\",6903 => \"/meteo/Sillano\",6904 => \"/meteo/Sillavengo\",6905 => \"/meteo/Silvano+d'orba\",6906 => \"/meteo/Silvano+pietra\",6907 => \"/meteo/Silvi\",6908 => \"/meteo/Simala\",6909 => \"/meteo/Simaxis\",6910 => \"/meteo/Simbario\",6911 => \"/meteo/Simeri+crichi\",6912 => \"/meteo/Sinagra\",6913 => \"/meteo/Sinalunga\",6914 => \"/meteo/Sindia\",6915 => \"/meteo/Sini\",6916 => \"/meteo/Sinio\",6917 => \"/meteo/Siniscola\",6918 => \"/meteo/Sinnai\",6919 => \"/meteo/Sinopoli\",6920 => \"/meteo/Siracusa\",6921 => \"/meteo/Sirignano\",6922 => \"/meteo/Siris\",6923 => \"/meteo/Sirmione\",8457 => \"/meteo/Sirolo\",6925 => \"/meteo/Sirone\",6926 => \"/meteo/Siror\",6927 => \"/meteo/Sirtori\",6928 => \"/meteo/Sissa\",8492 => \"/meteo/Sistiana\",6929 => \"/meteo/Siurgus+donigala\",6930 => \"/meteo/Siziano\",6931 => \"/meteo/Sizzano\",8258 => \"/meteo/Ski+center+Latemar\",6932 => \"/meteo/Sluderno\",6933 => \"/meteo/Smarano\",6934 => \"/meteo/Smerillo\",6935 => \"/meteo/Soave\",8341 => \"/meteo/Sobretta+Vallalpe\",6936 => \"/meteo/Socchieve\",6937 => \"/meteo/Soddi\",6938 => \"/meteo/Sogliano+al+rubicone\",6939 => \"/meteo/Sogliano+Cavour\",6940 => \"/meteo/Soglio\",6941 => \"/meteo/Soiano+del+lago\",6942 => \"/meteo/Solagna\",6943 => \"/meteo/Solarino\",6944 => \"/meteo/Solaro\",6945 => \"/meteo/Solarolo\",6946 => \"/meteo/Solarolo+Rainerio\",6947 => \"/meteo/Solarussa\",6948 => \"/meteo/Solbiate\",6949 => \"/meteo/Solbiate+Arno\",6950 => \"/meteo/Solbiate+Olona\",8307 => \"/meteo/Solda\",6951 => \"/meteo/Soldano\",6952 => \"/meteo/Soleminis\",6953 => \"/meteo/Solero\",6954 => \"/meteo/Solesino\",6955 => \"/meteo/Soleto\",6956 => \"/meteo/Solferino\",6957 => \"/meteo/Soliera\",6958 => \"/meteo/Solignano\",6959 => \"/meteo/Solofra\",6960 => \"/meteo/Solonghello\",6961 => \"/meteo/Solopaca\",6962 => \"/meteo/Solto+collina\",6963 => \"/meteo/Solza\",6964 => \"/meteo/Somaglia\",6965 => \"/meteo/Somano\",6966 => \"/meteo/Somma+lombardo\",6967 => \"/meteo/Somma+vesuviana\",6968 => \"/meteo/Sommacampagna\",6969 => \"/meteo/Sommariva+del+bosco\",6970 => \"/meteo/Sommariva+Perno\",6971 => \"/meteo/Sommatino\",6972 => \"/meteo/Sommo\",6973 => \"/meteo/Sona\",6974 => \"/meteo/Soncino\",6975 => \"/meteo/Sondalo\",6976 => \"/meteo/Sondrio\",6977 => \"/meteo/Songavazzo\",6978 => \"/meteo/Sonico\",6979 => \"/meteo/Sonnino\",6980 => \"/meteo/Soprana\",6981 => \"/meteo/Sora\",6982 => \"/meteo/Soraga\",6983 => \"/meteo/Soragna\",6984 => \"/meteo/Sorano\",6985 => \"/meteo/Sorbo+San+Basile\",6986 => \"/meteo/Sorbo+Serpico\",6987 => \"/meteo/Sorbolo\",6988 => \"/meteo/Sordevolo\",6989 => \"/meteo/Sordio\",6990 => \"/meteo/Soresina\",6991 => \"/meteo/Sorga'\",6992 => \"/meteo/Sorgono\",6993 => \"/meteo/Sori\",6994 => \"/meteo/Sorianello\",6995 => \"/meteo/Soriano+calabro\",6996 => \"/meteo/Soriano+nel+cimino\",6997 => \"/meteo/Sorico\",6998 => \"/meteo/Soriso\",6999 => \"/meteo/Sorisole\",7000 => \"/meteo/Sormano\",7001 => \"/meteo/Sorradile\",7002 => \"/meteo/Sorrento\",7003 => \"/meteo/Sorso\",7004 => \"/meteo/Sortino\",7005 => \"/meteo/Sospiro\",7006 => \"/meteo/Sospirolo\",7007 => \"/meteo/Sossano\",7008 => \"/meteo/Sostegno\",7009 => \"/meteo/Sotto+il+monte+Giovanni+XXIII\",8747 => \"/meteo/Sottomarina\",7010 => \"/meteo/Sover\",7011 => \"/meteo/Soverato\",7012 => \"/meteo/Sovere\",7013 => \"/meteo/Soveria+mannelli\",7014 => \"/meteo/Soveria+simeri\",7015 => \"/meteo/Soverzene\",7016 => \"/meteo/Sovicille\",7017 => \"/meteo/Sovico\",7018 => \"/meteo/Sovizzo\",7019 => \"/meteo/Sovramonte\",7020 => \"/meteo/Sozzago\",7021 => \"/meteo/Spadafora\",7022 => \"/meteo/Spadola\",7023 => \"/meteo/Sparanise\",7024 => \"/meteo/Sparone\",7025 => \"/meteo/Specchia\",7026 => \"/meteo/Spello\",8585 => \"/meteo/Spelonga\",7027 => \"/meteo/Spera\",7028 => \"/meteo/Sperlinga\",7029 => \"/meteo/Sperlonga\",7030 => \"/meteo/Sperone\",7031 => \"/meteo/Spessa\",7032 => \"/meteo/Spezzano+albanese\",7033 => \"/meteo/Spezzano+della+Sila\",7034 => \"/meteo/Spezzano+piccolo\",7035 => \"/meteo/Spiazzo\",7036 => \"/meteo/Spigno+monferrato\",7037 => \"/meteo/Spigno+saturnia\",7038 => \"/meteo/Spilamberto\",7039 => \"/meteo/Spilimbergo\",7040 => \"/meteo/Spilinga\",7041 => \"/meteo/Spinadesco\",7042 => \"/meteo/Spinazzola\",7043 => \"/meteo/Spinea\",7044 => \"/meteo/Spineda\",7045 => \"/meteo/Spinete\",7046 => \"/meteo/Spineto+Scrivia\",7047 => \"/meteo/Spinetoli\",7048 => \"/meteo/Spino+d'Adda\",7049 => \"/meteo/Spinone+al+lago\",8421 => \"/meteo/Spinoso\",7051 => \"/meteo/Spirano\",7052 => \"/meteo/Spoleto\",7053 => \"/meteo/Spoltore\",7054 => \"/meteo/Spongano\",7055 => \"/meteo/Spormaggiore\",7056 => \"/meteo/Sporminore\",7057 => \"/meteo/Spotorno\",7058 => \"/meteo/Spresiano\",7059 => \"/meteo/Spriana\",7060 => \"/meteo/Squillace\",7061 => \"/meteo/Squinzano\",8248 => \"/meteo/Staffal\",7062 => \"/meteo/Staffolo\",7063 => \"/meteo/Stagno+lombardo\",7064 => \"/meteo/Staiti\",7065 => \"/meteo/Staletti\",7066 => \"/meteo/Stanghella\",7067 => \"/meteo/Staranzano\",7068 => \"/meteo/Statte\",7069 => \"/meteo/Stazzano\",7070 => \"/meteo/Stazzema\",7071 => \"/meteo/Stazzona\",7072 => \"/meteo/Stefanaconi\",7073 => \"/meteo/Stella\",7074 => \"/meteo/Stella+cilento\",7075 => \"/meteo/Stellanello\",7076 => \"/meteo/Stelvio\",7077 => \"/meteo/Stenico\",7078 => \"/meteo/Sternatia\",7079 => \"/meteo/Stezzano\",7080 => \"/meteo/Stia\",7081 => \"/meteo/Stienta\",7082 => \"/meteo/Stigliano\",7083 => \"/meteo/Stignano\",7084 => \"/meteo/Stilo\",7085 => \"/meteo/Stimigliano\",7086 => \"/meteo/Stintino\",7087 => \"/meteo/Stio\",7088 => \"/meteo/Stornara\",7089 => \"/meteo/Stornarella\",7090 => \"/meteo/Storo\",7091 => \"/meteo/Stra\",7092 => \"/meteo/Stradella\",7093 => \"/meteo/Strambinello\",7094 => \"/meteo/Strambino\",7095 => \"/meteo/Strangolagalli\",7096 => \"/meteo/Stregna\",7097 => \"/meteo/Strembo\",7098 => \"/meteo/Stresa\",7099 => \"/meteo/Strevi\",7100 => \"/meteo/Striano\",7101 => \"/meteo/Strigno\",8182 => \"/meteo/Stromboli\",7102 => \"/meteo/Strona\",7103 => \"/meteo/Stroncone\",7104 => \"/meteo/Strongoli\",7105 => \"/meteo/Stroppiana\",7106 => \"/meteo/Stroppo\",7107 => \"/meteo/Strozza\",8493 => \"/meteo/Stupizza\",7108 => \"/meteo/Sturno\",7109 => \"/meteo/Suardi\",7110 => \"/meteo/Subbiano\",7111 => \"/meteo/Subiaco\",7112 => \"/meteo/Succivo\",7113 => \"/meteo/Sueglio\",7114 => \"/meteo/Suelli\",7115 => \"/meteo/Suello\",7116 => \"/meteo/Suisio\",7117 => \"/meteo/Sulbiate\",7118 => \"/meteo/Sulmona\",7119 => \"/meteo/Sulzano\",7120 => \"/meteo/Sumirago\",7121 => \"/meteo/Summonte\",7122 => \"/meteo/Suni\",7123 => \"/meteo/Suno\",7124 => \"/meteo/Supersano\",7125 => \"/meteo/Supino\",7126 => \"/meteo/Surano\",7127 => \"/meteo/Surbo\",7128 => \"/meteo/Susa\",7129 => \"/meteo/Susegana\",7130 => \"/meteo/Sustinente\",7131 => \"/meteo/Sutera\",7132 => \"/meteo/Sutri\",7133 => \"/meteo/Sutrio\",7134 => \"/meteo/Suvereto\",7135 => \"/meteo/Suzzara\",7136 => \"/meteo/Taceno\",7137 => \"/meteo/Tadasuni\",7138 => \"/meteo/Taggia\",7139 => \"/meteo/Tagliacozzo\",8450 => \"/meteo/Tagliacozzo+casello\",7140 => \"/meteo/Taglio+di+po\",7141 => \"/meteo/Tagliolo+monferrato\",7142 => \"/meteo/Taibon+agordino\",7143 => \"/meteo/Taino\",7144 => \"/meteo/Taio\",7145 => \"/meteo/Taipana\",7146 => \"/meteo/Talamello\",7147 => \"/meteo/Talamona\",8299 => \"/meteo/Talamone\",7148 => \"/meteo/Talana\",7149 => \"/meteo/Taleggio\",7150 => \"/meteo/Talla\",7151 => \"/meteo/Talmassons\",7152 => \"/meteo/Tambre\",7153 => \"/meteo/Taormina\",7154 => \"/meteo/Tapogliano\",7155 => \"/meteo/Tarano\",7156 => \"/meteo/Taranta+peligna\",7157 => \"/meteo/Tarantasca\",7158 => \"/meteo/Taranto\",8550 => \"/meteo/Taranto+M.+A.+Grottaglie\",7159 => \"/meteo/Tarcento\",7160 => \"/meteo/Tarquinia\",8140 => \"/meteo/Tarquinia+Lido\",7161 => \"/meteo/Tarsia\",7162 => \"/meteo/Tartano\",7163 => \"/meteo/Tarvisio\",8466 => \"/meteo/Tarvisio+casello\",7164 => \"/meteo/Tarzo\",7165 => \"/meteo/Tassarolo\",7166 => \"/meteo/Tassullo\",7167 => \"/meteo/Taurano\",7168 => \"/meteo/Taurasi\",7169 => \"/meteo/Taurianova\",7170 => \"/meteo/Taurisano\",7171 => \"/meteo/Tavagnacco\",7172 => \"/meteo/Tavagnasco\",7173 => \"/meteo/Tavarnelle+val+di+pesa\",7174 => \"/meteo/Tavazzano+con+villavesco\",7175 => \"/meteo/Tavenna\",7176 => \"/meteo/Taverna\",7177 => \"/meteo/Tavernerio\",7178 => \"/meteo/Tavernola+bergamasca\",7179 => \"/meteo/Tavernole+sul+Mella\",7180 => \"/meteo/Taviano\",7181 => \"/meteo/Tavigliano\",7182 => \"/meteo/Tavoleto\",7183 => \"/meteo/Tavullia\",8362 => \"/meteo/Teana\",7185 => \"/meteo/Teano\",7186 => \"/meteo/Teggiano\",7187 => \"/meteo/Teglio\",7188 => \"/meteo/Teglio+veneto\",7189 => \"/meteo/Telese+terme\",7190 => \"/meteo/Telgate\",7191 => \"/meteo/Telti\",7192 => \"/meteo/Telve\",7193 => \"/meteo/Telve+di+sopra\",7194 => \"/meteo/Tempio+Pausania\",7195 => \"/meteo/Temu'\",7196 => \"/meteo/Tenna\",7197 => \"/meteo/Tenno\",7198 => \"/meteo/Teolo\",7199 => \"/meteo/Teor\",7200 => \"/meteo/Teora\",7201 => \"/meteo/Teramo\",8449 => \"/meteo/Teramo+Val+Vomano\",7202 => \"/meteo/Terdobbiate\",7203 => \"/meteo/Terelle\",7204 => \"/meteo/Terento\",7205 => \"/meteo/Terenzo\",7206 => \"/meteo/Tergu\",7207 => \"/meteo/Terlago\",7208 => \"/meteo/Terlano\",7209 => \"/meteo/Terlizzi\",8158 => \"/meteo/Terme+di+Lurisia\",7210 => \"/meteo/Terme+vigliatore\",7211 => \"/meteo/Termeno+sulla+strada+del+vino\",7212 => \"/meteo/Termini+imerese\",8133 => \"/meteo/Terminillo\",7213 => \"/meteo/Termoli\",7214 => \"/meteo/Ternate\",7215 => \"/meteo/Ternengo\",7216 => \"/meteo/Terni\",7217 => \"/meteo/Terno+d'isola\",7218 => \"/meteo/Terracina\",7219 => \"/meteo/Terragnolo\",7220 => \"/meteo/Terralba\",7221 => \"/meteo/Terranova+da+Sibari\",7222 => \"/meteo/Terranova+dei+passerini\",8379 => \"/meteo/Terranova+di+Pollino\",7224 => \"/meteo/Terranova+Sappo+Minulio\",7225 => \"/meteo/Terranuova+bracciolini\",7226 => \"/meteo/Terrasini\",7227 => \"/meteo/Terrassa+padovana\",7228 => \"/meteo/Terravecchia\",7229 => \"/meteo/Terrazzo\",7230 => \"/meteo/Terres\",7231 => \"/meteo/Terricciola\",7232 => \"/meteo/Terruggia\",7233 => \"/meteo/Tertenia\",7234 => \"/meteo/Terzigno\",7235 => \"/meteo/Terzo\",7236 => \"/meteo/Terzo+d'Aquileia\",7237 => \"/meteo/Terzolas\",7238 => \"/meteo/Terzorio\",7239 => \"/meteo/Tesero\",7240 => \"/meteo/Tesimo\",7241 => \"/meteo/Tessennano\",7242 => \"/meteo/Testico\",7243 => \"/meteo/Teti\",7244 => \"/meteo/Teulada\",7245 => \"/meteo/Teverola\",7246 => \"/meteo/Tezze+sul+Brenta\",8716 => \"/meteo/Tharros\",7247 => \"/meteo/Thiene\",7248 => \"/meteo/Thiesi\",7249 => \"/meteo/Tiana\",7250 => \"/meteo/Tiarno+di+sopra\",7251 => \"/meteo/Tiarno+di+sotto\",7252 => \"/meteo/Ticengo\",7253 => \"/meteo/Ticineto\",7254 => \"/meteo/Tiggiano\",7255 => \"/meteo/Tiglieto\",7256 => \"/meteo/Tigliole\",7257 => \"/meteo/Tignale\",7258 => \"/meteo/Tinnura\",7259 => \"/meteo/Tione+degli+Abruzzi\",7260 => \"/meteo/Tione+di+Trento\",7261 => \"/meteo/Tirano\",7262 => \"/meteo/Tires\",7263 => \"/meteo/Tiriolo\",7264 => \"/meteo/Tirolo\",8194 => \"/meteo/Tirrenia\",8719 => \"/meteo/Tiscali\",7265 => \"/meteo/Tissi\",8422 => \"/meteo/Tito\",7267 => \"/meteo/Tivoli\",8451 => \"/meteo/Tivoli+casello\",7268 => \"/meteo/Tizzano+val+Parma\",7269 => \"/meteo/Toano\",7270 => \"/meteo/Tocco+caudio\",7271 => \"/meteo/Tocco+da+Casauria\",7272 => \"/meteo/Toceno\",7273 => \"/meteo/Todi\",7274 => \"/meteo/Toffia\",7275 => \"/meteo/Toirano\",7276 => \"/meteo/Tolentino\",7277 => \"/meteo/Tolfa\",7278 => \"/meteo/Tollegno\",7279 => \"/meteo/Tollo\",7280 => \"/meteo/Tolmezzo\",8423 => \"/meteo/Tolve\",7282 => \"/meteo/Tombolo\",7283 => \"/meteo/Ton\",7284 => \"/meteo/Tonadico\",7285 => \"/meteo/Tonara\",7286 => \"/meteo/Tonco\",7287 => \"/meteo/Tonengo\",7288 => \"/meteo/Tonezza+del+Cimone\",7289 => \"/meteo/Tora+e+piccilli\",8132 => \"/meteo/Torano\",7290 => \"/meteo/Torano+castello\",7291 => \"/meteo/Torano+nuovo\",7292 => \"/meteo/Torbole+casaglia\",7293 => \"/meteo/Torcegno\",7294 => \"/meteo/Torchiara\",7295 => \"/meteo/Torchiarolo\",7296 => \"/meteo/Torella+dei+lombardi\",7297 => \"/meteo/Torella+del+sannio\",7298 => \"/meteo/Torgiano\",7299 => \"/meteo/Torgnon\",7300 => \"/meteo/Torino\",8271 => \"/meteo/Torino+Caselle\",7301 => \"/meteo/Torino+di+Sangro\",8494 => \"/meteo/Torino+di+Sangro+Marina\",7302 => \"/meteo/Toritto\",7303 => \"/meteo/Torlino+Vimercati\",7304 => \"/meteo/Tornaco\",7305 => \"/meteo/Tornareccio\",7306 => \"/meteo/Tornata\",7307 => \"/meteo/Tornimparte\",8445 => \"/meteo/Tornimparte+casello\",7308 => \"/meteo/Torno\",7309 => \"/meteo/Tornolo\",7310 => \"/meteo/Toro\",7311 => \"/meteo/Torpe'\",7312 => \"/meteo/Torraca\",7313 => \"/meteo/Torralba\",7314 => \"/meteo/Torrazza+coste\",7315 => \"/meteo/Torrazza+Piemonte\",7316 => \"/meteo/Torrazzo\",7317 => \"/meteo/Torre+Annunziata\",7318 => \"/meteo/Torre+Beretti+e+Castellaro\",7319 => \"/meteo/Torre+boldone\",7320 => \"/meteo/Torre+bormida\",7321 => \"/meteo/Torre+cajetani\",7322 => \"/meteo/Torre+canavese\",7323 => \"/meteo/Torre+d'arese\",7324 => \"/meteo/Torre+d'isola\",7325 => \"/meteo/Torre+de'+passeri\",7326 => \"/meteo/Torre+de'busi\",7327 => \"/meteo/Torre+de'negri\",7328 => \"/meteo/Torre+de'picenardi\",7329 => \"/meteo/Torre+de'roveri\",7330 => \"/meteo/Torre+del+greco\",7331 => \"/meteo/Torre+di+mosto\",7332 => \"/meteo/Torre+di+ruggiero\",7333 => \"/meteo/Torre+di+Santa+Maria\",7334 => \"/meteo/Torre+le+nocelle\",7335 => \"/meteo/Torre+mondovi'\",7336 => \"/meteo/Torre+orsaia\",8592 => \"/meteo/Torre+Pali\",7337 => \"/meteo/Torre+pallavicina\",7338 => \"/meteo/Torre+pellice\",7339 => \"/meteo/Torre+San+Giorgio\",8596 => \"/meteo/Torre+San+Giovanni\",8595 => \"/meteo/Torre+San+Gregorio\",7340 => \"/meteo/Torre+San+Patrizio\",7341 => \"/meteo/Torre+Santa+Susanna\",8593 => \"/meteo/Torre+Vado\",7342 => \"/meteo/Torreano\",7343 => \"/meteo/Torrebelvicino\",7344 => \"/meteo/Torrebruna\",7345 => \"/meteo/Torrecuso\",7346 => \"/meteo/Torreglia\",7347 => \"/meteo/Torregrotta\",7348 => \"/meteo/Torremaggiore\",7349 => \"/meteo/Torrenova\",7350 => \"/meteo/Torresina\",7351 => \"/meteo/Torretta\",7352 => \"/meteo/Torrevecchia+pia\",7353 => \"/meteo/Torrevecchia+teatina\",7354 => \"/meteo/Torri+del+benaco\",7355 => \"/meteo/Torri+di+quartesolo\",7356 => \"/meteo/Torri+in+sabina\",7357 => \"/meteo/Torriana\",7358 => \"/meteo/Torrice\",7359 => \"/meteo/Torricella\",7360 => \"/meteo/Torricella+del+pizzo\",7361 => \"/meteo/Torricella+in+sabina\",7362 => \"/meteo/Torricella+peligna\",7363 => \"/meteo/Torricella+sicura\",7364 => \"/meteo/Torricella+verzate\",7365 => \"/meteo/Torriglia\",7366 => \"/meteo/Torrile\",7367 => \"/meteo/Torrioni\",7368 => \"/meteo/Torrita+di+Siena\",7369 => \"/meteo/Torrita+tiberina\",7370 => \"/meteo/Tortoli'\",7371 => \"/meteo/Tortona\",7372 => \"/meteo/Tortora\",7373 => \"/meteo/Tortorella\",7374 => \"/meteo/Tortoreto\",8601 => \"/meteo/Tortoreto+lido\",7375 => \"/meteo/Tortorici\",8138 => \"/meteo/Torvaianica\",7376 => \"/meteo/Torviscosa\",7377 => \"/meteo/Toscolano+maderno\",7378 => \"/meteo/Tossicia\",7379 => \"/meteo/Tovo+di+Sant'Agata\",7380 => \"/meteo/Tovo+San+Giacomo\",7381 => \"/meteo/Trabia\",7382 => \"/meteo/Tradate\",8214 => \"/meteo/Trafoi\",7383 => \"/meteo/Tramatza\",7384 => \"/meteo/Trambileno\",7385 => \"/meteo/Tramonti\",7386 => \"/meteo/Tramonti+di+sopra\",7387 => \"/meteo/Tramonti+di+sotto\",8412 => \"/meteo/Tramutola\",7389 => \"/meteo/Trana\",7390 => \"/meteo/Trani\",7391 => \"/meteo/Transacqua\",7392 => \"/meteo/Traona\",7393 => \"/meteo/Trapani\",8544 => \"/meteo/Trapani+Birgi\",7394 => \"/meteo/Trappeto\",7395 => \"/meteo/Trarego+Viggiona\",7396 => \"/meteo/Trasacco\",7397 => \"/meteo/Trasaghis\",7398 => \"/meteo/Trasquera\",7399 => \"/meteo/Tratalias\",7400 => \"/meteo/Trausella\",7401 => \"/meteo/Travaco'+siccomario\",7402 => \"/meteo/Travagliato\",7403 => \"/meteo/Travedona+monate\",7404 => \"/meteo/Traversella\",7405 => \"/meteo/Traversetolo\",7406 => \"/meteo/Traves\",7407 => \"/meteo/Travesio\",7408 => \"/meteo/Travo\",8187 => \"/meteo/Tre+fontane\",7409 => \"/meteo/Trebaseleghe\",7410 => \"/meteo/Trebisacce\",7411 => \"/meteo/Trecasali\",7412 => \"/meteo/Trecase\",7413 => \"/meteo/Trecastagni\",7414 => \"/meteo/Trecate\",7415 => \"/meteo/Trecchina\",7416 => \"/meteo/Trecenta\",7417 => \"/meteo/Tredozio\",7418 => \"/meteo/Treglio\",7419 => \"/meteo/Tregnago\",7420 => \"/meteo/Treia\",7421 => \"/meteo/Treiso\",7422 => \"/meteo/Tremenico\",7423 => \"/meteo/Tremestieri+etneo\",7424 => \"/meteo/Tremezzo\",7425 => \"/meteo/Tremosine\",7426 => \"/meteo/Trenta\",7427 => \"/meteo/Trentinara\",7428 => \"/meteo/Trento\",7429 => \"/meteo/Trentola-ducenta\",7430 => \"/meteo/Trenzano\",8146 => \"/meteo/Trepalle\",7431 => \"/meteo/Treppo+carnico\",7432 => \"/meteo/Treppo+grande\",7433 => \"/meteo/Trepuzzi\",7434 => \"/meteo/Trequanda\",7435 => \"/meteo/Tres\",7436 => \"/meteo/Tresana\",7437 => \"/meteo/Trescore+balneario\",7438 => \"/meteo/Trescore+cremasco\",7439 => \"/meteo/Tresigallo\",7440 => \"/meteo/Tresivio\",7441 => \"/meteo/Tresnuraghes\",7442 => \"/meteo/Trevenzuolo\",7443 => \"/meteo/Trevi\",7444 => \"/meteo/Trevi+nel+lazio\",7445 => \"/meteo/Trevico\",7446 => \"/meteo/Treviglio\",7447 => \"/meteo/Trevignano\",7448 => \"/meteo/Trevignano+romano\",7449 => \"/meteo/Treville\",7450 => \"/meteo/Treviolo\",7451 => \"/meteo/Treviso\",7452 => \"/meteo/Treviso+bresciano\",8543 => \"/meteo/Treviso+Sant'Angelo\",7453 => \"/meteo/Trezzano+rosa\",7454 => \"/meteo/Trezzano+sul+Naviglio\",7455 => \"/meteo/Trezzo+sull'Adda\",7456 => \"/meteo/Trezzo+Tinella\",7457 => \"/meteo/Trezzone\",7458 => \"/meteo/Tribano\",7459 => \"/meteo/Tribiano\",7460 => \"/meteo/Tribogna\",7461 => \"/meteo/Tricarico\",7462 => \"/meteo/Tricase\",8597 => \"/meteo/Tricase+porto\",7463 => \"/meteo/Tricerro\",7464 => \"/meteo/Tricesimo\",7465 => \"/meteo/Trichiana\",7466 => \"/meteo/Triei\",7467 => \"/meteo/Trieste\",8472 => \"/meteo/Trieste+Ronchi+dei+Legionari\",7468 => \"/meteo/Triggiano\",7469 => \"/meteo/Trigolo\",7470 => \"/meteo/Trinita+d'Agultu+e+Vignola\",7471 => \"/meteo/Trinita'\",7472 => \"/meteo/Trinitapoli\",7473 => \"/meteo/Trino\",7474 => \"/meteo/Triora\",7475 => \"/meteo/Tripi\",7476 => \"/meteo/Trisobbio\",7477 => \"/meteo/Trissino\",7478 => \"/meteo/Triuggio\",7479 => \"/meteo/Trivento\",7480 => \"/meteo/Trivero\",7481 => \"/meteo/Trivigliano\",7482 => \"/meteo/Trivignano+udinese\",8413 => \"/meteo/Trivigno\",7484 => \"/meteo/Trivolzio\",7485 => \"/meteo/Trodena\",7486 => \"/meteo/Trofarello\",7487 => \"/meteo/Troia\",7488 => \"/meteo/Troina\",7489 => \"/meteo/Tromello\",7490 => \"/meteo/Trontano\",7491 => \"/meteo/Tronzano+lago+maggiore\",7492 => \"/meteo/Tronzano+vercellese\",7493 => \"/meteo/Tropea\",7494 => \"/meteo/Trovo\",7495 => \"/meteo/Truccazzano\",7496 => \"/meteo/Tubre\",7497 => \"/meteo/Tuenno\",7498 => \"/meteo/Tufara\",7499 => \"/meteo/Tufillo\",7500 => \"/meteo/Tufino\",7501 => \"/meteo/Tufo\",7502 => \"/meteo/Tuglie\",7503 => \"/meteo/Tuili\",7504 => \"/meteo/Tula\",7505 => \"/meteo/Tuoro+sul+trasimeno\",7506 => \"/meteo/Turania\",7507 => \"/meteo/Turano+lodigiano\",7508 => \"/meteo/Turate\",7509 => \"/meteo/Turbigo\",7510 => \"/meteo/Turi\",7511 => \"/meteo/Turri\",7512 => \"/meteo/Turriaco\",7513 => \"/meteo/Turrivalignani\",8390 => \"/meteo/Tursi\",7515 => \"/meteo/Tusa\",7516 => \"/meteo/Tuscania\",7517 => \"/meteo/Ubiale+Clanezzo\",7518 => \"/meteo/Uboldo\",7519 => \"/meteo/Ucria\",7520 => \"/meteo/Udine\",7521 => \"/meteo/Ugento\",7522 => \"/meteo/Uggiano+la+chiesa\",7523 => \"/meteo/Uggiate+trevano\",7524 => \"/meteo/Ula'+Tirso\",7525 => \"/meteo/Ulassai\",7526 => \"/meteo/Ultimo\",7527 => \"/meteo/Umbertide\",7528 => \"/meteo/Umbriatico\",7529 => \"/meteo/Urago+d'Oglio\",7530 => \"/meteo/Uras\",7531 => \"/meteo/Urbana\",7532 => \"/meteo/Urbania\",7533 => \"/meteo/Urbe\",7534 => \"/meteo/Urbino\",7535 => \"/meteo/Urbisaglia\",7536 => \"/meteo/Urgnano\",7537 => \"/meteo/Uri\",7538 => \"/meteo/Ururi\",7539 => \"/meteo/Urzulei\",7540 => \"/meteo/Uscio\",7541 => \"/meteo/Usellus\",7542 => \"/meteo/Usini\",7543 => \"/meteo/Usmate+Velate\",7544 => \"/meteo/Ussana\",7545 => \"/meteo/Ussaramanna\",7546 => \"/meteo/Ussassai\",7547 => \"/meteo/Usseaux\",7548 => \"/meteo/Usseglio\",7549 => \"/meteo/Ussita\",7550 => \"/meteo/Ustica\",7551 => \"/meteo/Uta\",7552 => \"/meteo/Uzzano\",7553 => \"/meteo/Vaccarizzo+albanese\",7554 => \"/meteo/Vacone\",7555 => \"/meteo/Vacri\",7556 => \"/meteo/Vadena\",7557 => \"/meteo/Vado+ligure\",7558 => \"/meteo/Vagli+sotto\",7559 => \"/meteo/Vaglia\",8388 => \"/meteo/Vaglio+Basilicata\",7561 => \"/meteo/Vaglio+serra\",7562 => \"/meteo/Vaiano\",7563 => \"/meteo/Vaiano+cremasco\",7564 => \"/meteo/Vaie\",7565 => \"/meteo/Vailate\",7566 => \"/meteo/Vairano+Patenora\",7567 => \"/meteo/Vajont\",8511 => \"/meteo/Val+Canale\",7568 => \"/meteo/Val+della+torre\",8243 => \"/meteo/Val+di+Lei\",8237 => \"/meteo/Val+di+Luce\",7569 => \"/meteo/Val+di+nizza\",8440 => \"/meteo/Val+di+Sangro+casello\",7570 => \"/meteo/Val+di+vizze\",8223 => \"/meteo/Val+Ferret\",8521 => \"/meteo/Val+Grauson\",7571 => \"/meteo/Val+Masino\",7572 => \"/meteo/Val+Rezzo\",8215 => \"/meteo/Val+Senales\",8522 => \"/meteo/Val+Urtier\",8224 => \"/meteo/Val+Veny\",7573 => \"/meteo/Valbondione\",7574 => \"/meteo/Valbrembo\",7575 => \"/meteo/Valbrevenna\",7576 => \"/meteo/Valbrona\",8311 => \"/meteo/Valcava\",7577 => \"/meteo/Valda\",7578 => \"/meteo/Valdagno\",7579 => \"/meteo/Valdaora\",7580 => \"/meteo/Valdastico\",7581 => \"/meteo/Valdengo\",7582 => \"/meteo/Valderice\",7583 => \"/meteo/Valdidentro\",7584 => \"/meteo/Valdieri\",7585 => \"/meteo/Valdina\",7586 => \"/meteo/Valdisotto\",7587 => \"/meteo/Valdobbiadene\",7588 => \"/meteo/Valduggia\",7589 => \"/meteo/Valeggio\",7590 => \"/meteo/Valeggio+sul+Mincio\",7591 => \"/meteo/Valentano\",7592 => \"/meteo/Valenza\",7593 => \"/meteo/Valenzano\",7594 => \"/meteo/Valera+fratta\",7595 => \"/meteo/Valfabbrica\",7596 => \"/meteo/Valfenera\",7597 => \"/meteo/Valfloriana\",7598 => \"/meteo/Valfurva\",7599 => \"/meteo/Valganna\",7600 => \"/meteo/Valgioie\",7601 => \"/meteo/Valgoglio\",7602 => \"/meteo/Valgrana\",7603 => \"/meteo/Valgreghentino\",7604 => \"/meteo/Valgrisenche\",7605 => \"/meteo/Valguarnera+caropepe\",8344 => \"/meteo/Valico+Citerna\",8510 => \"/meteo/Valico+dei+Giovi\",8318 => \"/meteo/Valico+di+Monforte\",8509 => \"/meteo/Valico+di+Montemiletto\",8507 => \"/meteo/Valico+di+Scampitella\",7606 => \"/meteo/Vallada+agordina\",7607 => \"/meteo/Vallanzengo\",7608 => \"/meteo/Vallarsa\",7609 => \"/meteo/Vallata\",7610 => \"/meteo/Valle+agricola\",7611 => \"/meteo/Valle+Aurina\",7612 => \"/meteo/Valle+castellana\",8444 => \"/meteo/Valle+del+salto\",7613 => \"/meteo/Valle+dell'Angelo\",7614 => \"/meteo/Valle+di+Cadore\",7615 => \"/meteo/Valle+di+Casies\",7616 => \"/meteo/Valle+di+maddaloni\",7617 => \"/meteo/Valle+lomellina\",7618 => \"/meteo/Valle+mosso\",7619 => \"/meteo/Valle+salimbene\",7620 => \"/meteo/Valle+San+Nicolao\",7621 => \"/meteo/Vallebona\",7622 => \"/meteo/Vallecorsa\",7623 => \"/meteo/Vallecrosia\",7624 => \"/meteo/Valledolmo\",7625 => \"/meteo/Valledoria\",7626 => \"/meteo/Vallefiorita\",7627 => \"/meteo/Vallelonga\",7628 => \"/meteo/Vallelunga+pratameno\",7629 => \"/meteo/Vallemaio\",7630 => \"/meteo/Vallepietra\",7631 => \"/meteo/Vallerano\",7632 => \"/meteo/Vallermosa\",7633 => \"/meteo/Vallerotonda\",7634 => \"/meteo/Vallesaccarda\",8749 => \"/meteo/Valletta\",7635 => \"/meteo/Valleve\",7636 => \"/meteo/Valli+del+Pasubio\",7637 => \"/meteo/Vallinfreda\",7638 => \"/meteo/Vallio+terme\",7639 => \"/meteo/Vallo+della+Lucania\",7640 => \"/meteo/Vallo+di+Nera\",7641 => \"/meteo/Vallo+torinese\",8191 => \"/meteo/Vallombrosa\",8471 => \"/meteo/Vallon\",7642 => \"/meteo/Valloriate\",7643 => \"/meteo/Valmacca\",7644 => \"/meteo/Valmadrera\",7645 => \"/meteo/Valmala\",8313 => \"/meteo/Valmasino\",7646 => \"/meteo/Valmontone\",7647 => \"/meteo/Valmorea\",7648 => \"/meteo/Valmozzola\",7649 => \"/meteo/Valnegra\",7650 => \"/meteo/Valpelline\",7651 => \"/meteo/Valperga\",7652 => \"/meteo/Valprato+Soana\",7653 => \"/meteo/Valsavarenche\",7654 => \"/meteo/Valsecca\",7655 => \"/meteo/Valsinni\",7656 => \"/meteo/Valsolda\",7657 => \"/meteo/Valstagna\",7658 => \"/meteo/Valstrona\",7659 => \"/meteo/Valtopina\",7660 => \"/meteo/Valtorta\",8148 => \"/meteo/Valtorta+impianti\",7661 => \"/meteo/Valtournenche\",7662 => \"/meteo/Valva\",7663 => \"/meteo/Valvasone\",7664 => \"/meteo/Valverde\",7665 => \"/meteo/Valverde\",7666 => \"/meteo/Valvestino\",7667 => \"/meteo/Vandoies\",7668 => \"/meteo/Vanzaghello\",7669 => \"/meteo/Vanzago\",7670 => \"/meteo/Vanzone+con+San+Carlo\",7671 => \"/meteo/Vaprio+d'Adda\",7672 => \"/meteo/Vaprio+d'Agogna\",7673 => \"/meteo/Varallo\",7674 => \"/meteo/Varallo+Pombia\",7675 => \"/meteo/Varano+Borghi\",7676 => \"/meteo/Varano+de'+Melegari\",7677 => \"/meteo/Varapodio\",7678 => \"/meteo/Varazze\",8600 => \"/meteo/Varcaturo\",7679 => \"/meteo/Varco+sabino\",7680 => \"/meteo/Varedo\",7681 => \"/meteo/Varena\",7682 => \"/meteo/Varenna\",7683 => \"/meteo/Varese\",7684 => \"/meteo/Varese+ligure\",8284 => \"/meteo/Varigotti\",7685 => \"/meteo/Varisella\",7686 => \"/meteo/Varmo\",7687 => \"/meteo/Varna\",7688 => \"/meteo/Varsi\",7689 => \"/meteo/Varzi\",7690 => \"/meteo/Varzo\",7691 => \"/meteo/Vas\",7692 => \"/meteo/Vasanello\",7693 => \"/meteo/Vasia\",7694 => \"/meteo/Vasto\",7695 => \"/meteo/Vastogirardi\",7696 => \"/meteo/Vattaro\",7697 => \"/meteo/Vauda+canavese\",7698 => \"/meteo/Vazzano\",7699 => \"/meteo/Vazzola\",7700 => \"/meteo/Vecchiano\",7701 => \"/meteo/Vedano+al+Lambro\",7702 => \"/meteo/Vedano+Olona\",7703 => \"/meteo/Veddasca\",7704 => \"/meteo/Vedelago\",7705 => \"/meteo/Vedeseta\",7706 => \"/meteo/Veduggio+con+Colzano\",7707 => \"/meteo/Veggiano\",7708 => \"/meteo/Veglie\",7709 => \"/meteo/Veglio\",7710 => \"/meteo/Vejano\",7711 => \"/meteo/Veleso\",7712 => \"/meteo/Velezzo+lomellina\",8530 => \"/meteo/Vellano\",7713 => \"/meteo/Velletri\",7714 => \"/meteo/Vellezzo+Bellini\",7715 => \"/meteo/Velo+d'Astico\",7716 => \"/meteo/Velo+veronese\",7717 => \"/meteo/Velturno\",7718 => \"/meteo/Venafro\",7719 => \"/meteo/Venaria\",7720 => \"/meteo/Venarotta\",7721 => \"/meteo/Venasca\",7722 => \"/meteo/Venaus\",7723 => \"/meteo/Vendone\",7724 => \"/meteo/Vendrogno\",7725 => \"/meteo/Venegono+inferiore\",7726 => \"/meteo/Venegono+superiore\",7727 => \"/meteo/Venetico\",7728 => \"/meteo/Venezia\",8502 => \"/meteo/Venezia+Mestre\",8268 => \"/meteo/Venezia+Tessera\",7729 => \"/meteo/Veniano\",7730 => \"/meteo/Venosa\",7731 => \"/meteo/Venticano\",7732 => \"/meteo/Ventimiglia\",7733 => \"/meteo/Ventimiglia+di+Sicilia\",7734 => \"/meteo/Ventotene\",7735 => \"/meteo/Venzone\",7736 => \"/meteo/Verano\",7737 => \"/meteo/Verano+brianza\",7738 => \"/meteo/Verbania\",7739 => \"/meteo/Verbicaro\",7740 => \"/meteo/Vercana\",7741 => \"/meteo/Verceia\",7742 => \"/meteo/Vercelli\",7743 => \"/meteo/Vercurago\",7744 => \"/meteo/Verdellino\",7745 => \"/meteo/Verdello\",7746 => \"/meteo/Verderio+inferiore\",7747 => \"/meteo/Verderio+superiore\",7748 => \"/meteo/Verduno\",7749 => \"/meteo/Vergato\",7750 => \"/meteo/Vergemoli\",7751 => \"/meteo/Verghereto\",7752 => \"/meteo/Vergiate\",7753 => \"/meteo/Vermezzo\",7754 => \"/meteo/Vermiglio\",8583 => \"/meteo/Vernago\",7755 => \"/meteo/Vernante\",7756 => \"/meteo/Vernasca\",7757 => \"/meteo/Vernate\",7758 => \"/meteo/Vernazza\",7759 => \"/meteo/Vernio\",7760 => \"/meteo/Vernole\",7761 => \"/meteo/Verolanuova\",7762 => \"/meteo/Verolavecchia\",7763 => \"/meteo/Verolengo\",7764 => \"/meteo/Veroli\",7765 => \"/meteo/Verona\",8269 => \"/meteo/Verona+Villafranca\",7766 => \"/meteo/Veronella\",7767 => \"/meteo/Verrayes\",7768 => \"/meteo/Verres\",7769 => \"/meteo/Verretto\",7770 => \"/meteo/Verrone\",7771 => \"/meteo/Verrua+po\",7772 => \"/meteo/Verrua+Savoia\",7773 => \"/meteo/Vertemate+con+Minoprio\",7774 => \"/meteo/Vertova\",7775 => \"/meteo/Verucchio\",7776 => \"/meteo/Veruno\",7777 => \"/meteo/Vervio\",7778 => \"/meteo/Vervo'\",7779 => \"/meteo/Verzegnis\",7780 => \"/meteo/Verzino\",7781 => \"/meteo/Verzuolo\",7782 => \"/meteo/Vescovana\",7783 => \"/meteo/Vescovato\",7784 => \"/meteo/Vesime\",7785 => \"/meteo/Vespolate\",7786 => \"/meteo/Vessalico\",7787 => \"/meteo/Vestenanova\",7788 => \"/meteo/Vestigne'\",7789 => \"/meteo/Vestone\",7790 => \"/meteo/Vestreno\",7791 => \"/meteo/Vetralla\",7792 => \"/meteo/Vetto\",7793 => \"/meteo/Vezza+d'Alba\",7794 => \"/meteo/Vezza+d'Oglio\",7795 => \"/meteo/Vezzano\",7796 => \"/meteo/Vezzano+ligure\",7797 => \"/meteo/Vezzano+sul+crostolo\",7798 => \"/meteo/Vezzi+portio\",8317 => \"/meteo/Vezzo\",7799 => \"/meteo/Viadana\",7800 => \"/meteo/Viadanica\",7801 => \"/meteo/Viagrande\",7802 => \"/meteo/Viale\",7803 => \"/meteo/Vialfre'\",7804 => \"/meteo/Viano\",7805 => \"/meteo/Viareggio\",7806 => \"/meteo/Viarigi\",8674 => \"/meteo/Vibo+Marina\",7807 => \"/meteo/Vibo+Valentia\",7808 => \"/meteo/Vibonati\",7809 => \"/meteo/Vicalvi\",7810 => \"/meteo/Vicari\",7811 => \"/meteo/Vicchio\",7812 => \"/meteo/Vicenza\",7813 => \"/meteo/Vico+canavese\",7814 => \"/meteo/Vico+del+Gargano\",7815 => \"/meteo/Vico+Equense\",7816 => \"/meteo/Vico+nel+Lazio\",7817 => \"/meteo/Vicoforte\",7818 => \"/meteo/Vicoli\",7819 => \"/meteo/Vicolungo\",7820 => \"/meteo/Vicopisano\",7821 => \"/meteo/Vicovaro\",7822 => \"/meteo/Viddalba\",7823 => \"/meteo/Vidigulfo\",7824 => \"/meteo/Vidor\",7825 => \"/meteo/Vidracco\",7826 => \"/meteo/Vieste\",7827 => \"/meteo/Vietri+di+Potenza\",7828 => \"/meteo/Vietri+sul+mare\",7829 => \"/meteo/Viganella\",7830 => \"/meteo/Vigano+San+Martino\",7831 => \"/meteo/Vigano'\",7832 => \"/meteo/Vigarano+Mainarda\",7833 => \"/meteo/Vigasio\",7834 => \"/meteo/Vigevano\",7835 => \"/meteo/Viggianello\",7836 => \"/meteo/Viggiano\",7837 => \"/meteo/Viggiu'\",7838 => \"/meteo/Vighizzolo+d'Este\",7839 => \"/meteo/Vigliano+biellese\",7840 => \"/meteo/Vigliano+d'Asti\",7841 => \"/meteo/Vignale+monferrato\",7842 => \"/meteo/Vignanello\",7843 => \"/meteo/Vignate\",8125 => \"/meteo/Vignola\",7845 => \"/meteo/Vignola+Falesina\",7846 => \"/meteo/Vignole+Borbera\",7847 => \"/meteo/Vignolo\",7848 => \"/meteo/Vignone\",8514 => \"/meteo/Vigo+Ciampedie\",7849 => \"/meteo/Vigo+di+Cadore\",7850 => \"/meteo/Vigo+di+Fassa\",7851 => \"/meteo/Vigo+Rendena\",7852 => \"/meteo/Vigodarzere\",7853 => \"/meteo/Vigolo\",7854 => \"/meteo/Vigolo+Vattaro\",7855 => \"/meteo/Vigolzone\",7856 => \"/meteo/Vigone\",7857 => \"/meteo/Vigonovo\",7858 => \"/meteo/Vigonza\",7859 => \"/meteo/Viguzzolo\",7860 => \"/meteo/Villa+agnedo\",7861 => \"/meteo/Villa+bartolomea\",7862 => \"/meteo/Villa+basilica\",7863 => \"/meteo/Villa+biscossi\",7864 => \"/meteo/Villa+carcina\",7865 => \"/meteo/Villa+castelli\",7866 => \"/meteo/Villa+celiera\",7867 => \"/meteo/Villa+collemandina\",7868 => \"/meteo/Villa+cortese\",7869 => \"/meteo/Villa+d'Adda\",7870 => \"/meteo/Villa+d'Alme'\",7871 => \"/meteo/Villa+d'Ogna\",7872 => \"/meteo/Villa+del+bosco\",7873 => \"/meteo/Villa+del+conte\",7874 => \"/meteo/Villa+di+briano\",7875 => \"/meteo/Villa+di+Chiavenna\",7876 => \"/meteo/Villa+di+Serio\",7877 => \"/meteo/Villa+di+Tirano\",7878 => \"/meteo/Villa+Estense\",7879 => \"/meteo/Villa+Faraldi\",7880 => \"/meteo/Villa+Guardia\",7881 => \"/meteo/Villa+Lagarina\",7882 => \"/meteo/Villa+Latina\",7883 => \"/meteo/Villa+Literno\",7884 => \"/meteo/Villa+minozzo\",7885 => \"/meteo/Villa+poma\",7886 => \"/meteo/Villa+rendena\",7887 => \"/meteo/Villa+San+Giovanni\",7888 => \"/meteo/Villa+San+Giovanni+in+Tuscia\",7889 => \"/meteo/Villa+San+Pietro\",7890 => \"/meteo/Villa+San+Secondo\",7891 => \"/meteo/Villa+Sant'Angelo\",7892 => \"/meteo/Villa+Sant'Antonio\",7893 => \"/meteo/Villa+Santa+Lucia\",7894 => \"/meteo/Villa+Santa+Lucia+degli+Abruzzi\",7895 => \"/meteo/Villa+Santa+Maria\",7896 => \"/meteo/Villa+Santina\",7897 => \"/meteo/Villa+Santo+Stefano\",7898 => \"/meteo/Villa+verde\",7899 => \"/meteo/Villa+vicentina\",7900 => \"/meteo/Villabassa\",7901 => \"/meteo/Villabate\",7902 => \"/meteo/Villachiara\",7903 => \"/meteo/Villacidro\",7904 => \"/meteo/Villadeati\",7905 => \"/meteo/Villadose\",7906 => \"/meteo/Villadossola\",7907 => \"/meteo/Villafalletto\",7908 => \"/meteo/Villafranca+d'Asti\",7909 => \"/meteo/Villafranca+di+Verona\",7910 => \"/meteo/Villafranca+in+Lunigiana\",7911 => \"/meteo/Villafranca+padovana\",7912 => \"/meteo/Villafranca+Piemonte\",7913 => \"/meteo/Villafranca+sicula\",7914 => \"/meteo/Villafranca+tirrena\",7915 => \"/meteo/Villafrati\",7916 => \"/meteo/Villaga\",7917 => \"/meteo/Villagrande+Strisaili\",7918 => \"/meteo/Villalago\",7919 => \"/meteo/Villalba\",7920 => \"/meteo/Villalfonsina\",7921 => \"/meteo/Villalvernia\",7922 => \"/meteo/Villamagna\",7923 => \"/meteo/Villamaina\",7924 => \"/meteo/Villamar\",7925 => \"/meteo/Villamarzana\",7926 => \"/meteo/Villamassargia\",7927 => \"/meteo/Villamiroglio\",7928 => \"/meteo/Villandro\",7929 => \"/meteo/Villanova+biellese\",7930 => \"/meteo/Villanova+canavese\",7931 => \"/meteo/Villanova+d'Albenga\",7932 => \"/meteo/Villanova+d'Ardenghi\",7933 => \"/meteo/Villanova+d'Asti\",7934 => \"/meteo/Villanova+del+Battista\",7935 => \"/meteo/Villanova+del+Ghebbo\",7936 => \"/meteo/Villanova+del+Sillaro\",7937 => \"/meteo/Villanova+di+Camposampiero\",7938 => \"/meteo/Villanova+marchesana\",7939 => \"/meteo/Villanova+Mondovi'\",7940 => \"/meteo/Villanova+Monferrato\",7941 => \"/meteo/Villanova+Monteleone\",7942 => \"/meteo/Villanova+solaro\",7943 => \"/meteo/Villanova+sull'Arda\",7944 => \"/meteo/Villanova+Truschedu\",7945 => \"/meteo/Villanova+Tulo\",7946 => \"/meteo/Villanovaforru\",7947 => \"/meteo/Villanovafranca\",7948 => \"/meteo/Villanterio\",7949 => \"/meteo/Villanuova+sul+Clisi\",7950 => \"/meteo/Villaperuccio\",7951 => \"/meteo/Villapiana\",7952 => \"/meteo/Villaputzu\",7953 => \"/meteo/Villar+dora\",7954 => \"/meteo/Villar+focchiardo\",7955 => \"/meteo/Villar+pellice\",7956 => \"/meteo/Villar+Perosa\",7957 => \"/meteo/Villar+San+Costanzo\",7958 => \"/meteo/Villarbasse\",7959 => \"/meteo/Villarboit\",7960 => \"/meteo/Villareggia\",7961 => \"/meteo/Villaricca\",7962 => \"/meteo/Villaromagnano\",7963 => \"/meteo/Villarosa\",7964 => \"/meteo/Villasalto\",7965 => \"/meteo/Villasanta\",7966 => \"/meteo/Villasimius\",7967 => \"/meteo/Villasor\",7968 => \"/meteo/Villaspeciosa\",7969 => \"/meteo/Villastellone\",7970 => \"/meteo/Villata\",7971 => \"/meteo/Villaurbana\",7972 => \"/meteo/Villavallelonga\",7973 => \"/meteo/Villaverla\",7974 => \"/meteo/Villeneuve\",7975 => \"/meteo/Villesse\",7976 => \"/meteo/Villetta+Barrea\",7977 => \"/meteo/Villette\",7978 => \"/meteo/Villimpenta\",7979 => \"/meteo/Villongo\",7980 => \"/meteo/Villorba\",7981 => \"/meteo/Vilminore+di+scalve\",7982 => \"/meteo/Vimercate\",7983 => \"/meteo/Vimodrone\",7984 => \"/meteo/Vinadio\",7985 => \"/meteo/Vinchiaturo\",7986 => \"/meteo/Vinchio\",7987 => \"/meteo/Vinci\",7988 => \"/meteo/Vinovo\",7989 => \"/meteo/Vinzaglio\",7990 => \"/meteo/Viola\",7991 => \"/meteo/Vione\",7992 => \"/meteo/Vipiteno\",7993 => \"/meteo/Virgilio\",7994 => \"/meteo/Virle+Piemonte\",7995 => \"/meteo/Visano\",7996 => \"/meteo/Vische\",7997 => \"/meteo/Visciano\",7998 => \"/meteo/Visco\",7999 => \"/meteo/Visone\",8000 => \"/meteo/Visso\",8001 => \"/meteo/Vistarino\",8002 => \"/meteo/Vistrorio\",8003 => \"/meteo/Vita\",8004 => \"/meteo/Viterbo\",8005 => \"/meteo/Viticuso\",8006 => \"/meteo/Vito+d'Asio\",8007 => \"/meteo/Vitorchiano\",8008 => \"/meteo/Vittoria\",8009 => \"/meteo/Vittorio+Veneto\",8010 => \"/meteo/Vittorito\",8011 => \"/meteo/Vittuone\",8012 => \"/meteo/Vitulano\",8013 => \"/meteo/Vitulazio\",8014 => \"/meteo/Viu'\",8015 => \"/meteo/Vivaro\",8016 => \"/meteo/Vivaro+romano\",8017 => \"/meteo/Viverone\",8018 => \"/meteo/Vizzini\",8019 => \"/meteo/Vizzola+Ticino\",8020 => \"/meteo/Vizzolo+Predabissi\",8021 => \"/meteo/Vo'\",8022 => \"/meteo/Vobarno\",8023 => \"/meteo/Vobbia\",8024 => \"/meteo/Vocca\",8025 => \"/meteo/Vodo+cadore\",8026 => \"/meteo/Voghera\",8027 => \"/meteo/Voghiera\",8028 => \"/meteo/Vogogna\",8029 => \"/meteo/Volano\",8030 => \"/meteo/Volla\",8031 => \"/meteo/Volongo\",8032 => \"/meteo/Volpago+del+montello\",8033 => \"/meteo/Volpara\",8034 => \"/meteo/Volpedo\",8035 => \"/meteo/Volpeglino\",8036 => \"/meteo/Volpiano\",8037 => \"/meteo/Volta+mantovana\",8038 => \"/meteo/Voltaggio\",8039 => \"/meteo/Voltago+agordino\",8040 => \"/meteo/Volterra\",8041 => \"/meteo/Voltido\",8042 => \"/meteo/Volturara+Appula\",8043 => \"/meteo/Volturara+irpina\",8044 => \"/meteo/Volturino\",8045 => \"/meteo/Volvera\",8046 => \"/meteo/Vottignasco\",8181 => \"/meteo/Vulcano+Porto\",8047 => \"/meteo/Zaccanopoli\",8048 => \"/meteo/Zafferana+etnea\",8049 => \"/meteo/Zagarise\",8050 => \"/meteo/Zagarolo\",8051 => \"/meteo/Zambana\",8707 => \"/meteo/Zambla\",8052 => \"/meteo/Zambrone\",8053 => \"/meteo/Zandobbio\",8054 => \"/meteo/Zane'\",8055 => \"/meteo/Zanica\",8056 => \"/meteo/Zapponeta\",8057 => \"/meteo/Zavattarello\",8058 => \"/meteo/Zeccone\",8059 => \"/meteo/Zeddiani\",8060 => \"/meteo/Zelbio\",8061 => \"/meteo/Zelo+Buon+Persico\",8062 => \"/meteo/Zelo+Surrigone\",8063 => \"/meteo/Zeme\",8064 => \"/meteo/Zenevredo\",8065 => \"/meteo/Zenson+di+Piave\",8066 => \"/meteo/Zerba\",8067 => \"/meteo/Zerbo\",8068 => \"/meteo/Zerbolo'\",8069 => \"/meteo/Zerfaliu\",8070 => \"/meteo/Zeri\",8071 => \"/meteo/Zermeghedo\",8072 => \"/meteo/Zero+Branco\",8073 => \"/meteo/Zevio\",8455 => \"/meteo/Ziano+di+Fiemme\",8075 => \"/meteo/Ziano+piacentino\",8076 => \"/meteo/Zibello\",8077 => \"/meteo/Zibido+San+Giacomo\",8078 => \"/meteo/Zignago\",8079 => \"/meteo/Zimella\",8080 => \"/meteo/Zimone\",8081 => \"/meteo/Zinasco\",8082 => \"/meteo/Zoagli\",8083 => \"/meteo/Zocca\",8084 => \"/meteo/Zogno\",8085 => \"/meteo/Zola+Predosa\",8086 => \"/meteo/Zoldo+alto\",8087 => \"/meteo/Zollino\",8088 => \"/meteo/Zone\",8089 => \"/meteo/Zoppe'+di+cadore\",8090 => \"/meteo/Zoppola\",8091 => \"/meteo/Zovencedo\",8092 => \"/meteo/Zubiena\",8093 => \"/meteo/Zuccarello\",8094 => \"/meteo/Zuclo\",8095 => \"/meteo/Zugliano\",8096 => \"/meteo/Zuglio\",8097 => \"/meteo/Zumaglia\",8098 => \"/meteo/Zumpano\",8099 => \"/meteo/Zungoli\",8100 => \"/meteo/Zungri\");\n\n$trebi_locs = array(1 => \"Abano terme\",2 => \"Abbadia cerreto\",3 => \"Abbadia lariana\",4 => \"Abbadia San Salvatore\",5 => \"Abbasanta\",6 => \"Abbateggio\",7 => \"Abbiategrasso\",8 => \"Abetone\",8399 => \"Abriola\",10 => \"Acate\",11 => \"Accadia\",12 => \"Acceglio\",8369 => \"Accettura\",14 => \"Acciano\",15 => \"Accumoli\",16 => \"Acerenza\",17 => \"Acerno\",18 => \"Acerra\",19 => \"Aci bonaccorsi\",20 => \"Aci castello\",21 => \"Aci Catena\",22 => \"Aci Sant'Antonio\",23 => \"Acireale\",24 => \"Acquacanina\",25 => \"Acquafondata\",26 => \"Acquaformosa\",27 => \"Acquafredda\",8750 => \"Acquafredda\",28 => \"Acqualagna\",29 => \"Acquanegra cremonese\",30 => \"Acquanegra sul chiese\",31 => \"Acquapendente\",32 => \"Acquappesa\",33 => \"Acquarica del capo\",34 => \"Acquaro\",35 => \"Acquasanta terme\",36 => \"Acquasparta\",37 => \"Acquaviva collecroce\",38 => \"Acquaviva d'Isernia\",39 => \"Acquaviva delle fonti\",40 => \"Acquaviva picena\",41 => \"Acquaviva platani\",42 => \"Acquedolci\",43 => \"Acqui terme\",44 => \"Acri\",45 => \"Acuto\",46 => \"Adelfia\",47 => \"Adrano\",48 => \"Adrara San Martino\",49 => \"Adrara San Rocco\",50 => \"Adria\",51 => \"Adro\",52 => \"Affi\",53 => \"Affile\",54 => \"Afragola\",55 => \"Africo\",56 => \"Agazzano\",57 => \"Agerola\",58 => \"Aggius\",59 => \"Agira\",60 => \"Agliana\",61 => \"Agliano\",62 => \"Aglie'\",63 => \"Aglientu\",64 => \"Agna\",65 => \"Agnadello\",66 => \"Agnana calabra\",8598 => \"Agnano\",67 => \"Agnone\",68 => \"Agnosine\",69 => \"Agordo\",70 => \"Agosta\",71 => \"Agra\",72 => \"Agrate brianza\",73 => \"Agrate conturbia\",74 => \"Agrigento\",75 => \"Agropoli\",76 => \"Agugliano\",77 => \"Agugliaro\",78 => \"Aicurzio\",79 => \"Aidomaggiore\",80 => \"Aidone\",81 => \"Aielli\",82 => \"Aiello calabro\",83 => \"Aiello del Friuli\",84 => \"Aiello del Sabato\",85 => \"Aieta\",86 => \"Ailano\",87 => \"Ailoche\",88 => \"Airasca\",89 => \"Airola\",90 => \"Airole\",91 => \"Airuno\",92 => \"Aisone\",93 => \"Ala\",94 => \"Ala di Stura\",95 => \"Ala' dei Sardi\",96 => \"Alagna\",97 => \"Alagna Valsesia\",98 => \"Alanno\",99 => \"Alano di Piave\",100 => \"Alassio\",101 => \"Alatri\",102 => \"Alba\",103 => \"Alba adriatica\",104 => \"Albagiara\",105 => \"Albairate\",106 => \"Albanella\",8386 => \"Albano di lucania\",108 => \"Albano laziale\",109 => \"Albano Sant'Alessandro\",110 => \"Albano vercellese\",111 => \"Albaredo arnaboldi\",112 => \"Albaredo d'Adige\",113 => \"Albaredo per San Marco\",114 => \"Albareto\",115 => \"Albaretto della torre\",116 => \"Albavilla\",117 => \"Albenga\",118 => \"Albera ligure\",119 => \"Alberobello\",120 => \"Alberona\",121 => \"Albese con Cassano\",122 => \"Albettone\",123 => \"Albi\",124 => \"Albiano\",125 => \"Albiano d'ivrea\",126 => \"Albiate\",127 => \"Albidona\",128 => \"Albignasego\",129 => \"Albinea\",130 => \"Albino\",131 => \"Albiolo\",132 => \"Albisola marina\",133 => \"Albisola superiore\",134 => \"Albizzate\",135 => \"Albonese\",136 => \"Albosaggia\",137 => \"Albugnano\",138 => \"Albuzzano\",139 => \"Alcamo\",140 => \"Alcara li Fusi\",141 => \"Aldeno\",142 => \"Aldino\",143 => \"Ales\",144 => \"Alessandria\",145 => \"Alessandria del Carretto\",146 => \"Alessandria della Rocca\",147 => \"Alessano\",148 => \"Alezio\",149 => \"Alfano\",150 => \"Alfedena\",151 => \"Alfianello\",152 => \"Alfiano natta\",153 => \"Alfonsine\",154 => \"Alghero\",8532 => \"Alghero Fertilia\",155 => \"Algua\",156 => \"Ali'\",157 => \"Ali' terme\",158 => \"Alia\",159 => \"Aliano\",160 => \"Alice bel colle\",161 => \"Alice castello\",162 => \"Alice superiore\",163 => \"Alife\",164 => \"Alimena\",165 => \"Aliminusa\",166 => \"Allai\",167 => \"Alleghe\",168 => \"Allein\",169 => \"Allerona\",170 => \"Alliste\",171 => \"Allumiere\",172 => \"Alluvioni cambio'\",173 => \"Alme'\",174 => \"Almenno San Bartolomeo\",175 => \"Almenno San Salvatore\",176 => \"Almese\",177 => \"Alonte\",8259 => \"Alpe Cermis\",8557 => \"Alpe Devero\",8162 => \"Alpe di Mera\",8565 => \"Alpe di Siusi\",8755 => \"Alpe Giumello\",8264 => \"Alpe Lusia\",8559 => \"Alpe Nevegal\",8239 => \"Alpe Tre Potenze\",8558 => \"Alpe Veglia\",8482 => \"Alpet\",178 => \"Alpette\",179 => \"Alpignano\",180 => \"Alseno\",181 => \"Alserio\",182 => \"Altamura\",8474 => \"Altare\",184 => \"Altavilla irpina\",185 => \"Altavilla milicia\",186 => \"Altavilla monferrato\",187 => \"Altavilla silentina\",188 => \"Altavilla vicentina\",189 => \"Altidona\",190 => \"Altilia\",191 => \"Altino\",192 => \"Altissimo\",193 => \"Altivole\",194 => \"Alto\",195 => \"Altofonte\",196 => \"Altomonte\",197 => \"Altopascio\",8536 => \"Altopiano dei Fiorentini\",8662 => \"Altopiano della Sila\",8640 => \"Altopiano di Renon\",198 => \"Alviano\",199 => \"Alvignano\",200 => \"Alvito\",201 => \"Alzano lombardo\",202 => \"Alzano scrivia\",203 => \"Alzate brianza\",204 => \"Amalfi\",205 => \"Amandola\",206 => \"Amantea\",207 => \"Amaro\",208 => \"Amaroni\",209 => \"Amaseno\",210 => \"Amato\",211 => \"Amatrice\",212 => \"Ambivere\",213 => \"Amblar\",214 => \"Ameglia\",215 => \"Amelia\",216 => \"Amendolara\",217 => \"Ameno\",218 => \"Amorosi\",219 => \"Ampezzo\",220 => \"Anacapri\",221 => \"Anagni\",8463 => \"Anagni casello\",222 => \"Ancarano\",223 => \"Ancona\",8267 => \"Ancona Falconara\",224 => \"Andali\",225 => \"Andalo\",226 => \"Andalo valtellino\",227 => \"Andezeno\",228 => \"Andora\",229 => \"Andorno micca\",230 => \"Andrano\",231 => \"Andrate\",232 => \"Andreis\",233 => \"Andretta\",234 => \"Andria\",235 => \"Andriano\",236 => \"Anela\",237 => \"Anfo\",238 => \"Angera\",239 => \"Anghiari\",240 => \"Angiari\",241 => \"Angolo terme\",242 => \"Angri\",243 => \"Angrogna\",244 => \"Anguillara sabazia\",245 => \"Anguillara veneta\",246 => \"Annicco\",247 => \"Annone di brianza\",248 => \"Annone veneto\",249 => \"Anoia\",8302 => \"Antagnod\",250 => \"Antegnate\",251 => \"Anterivo\",8211 => \"Anterselva di Sopra\",252 => \"Antey saint andre'\",253 => \"Anticoli Corrado\",254 => \"Antignano\",255 => \"Antillo\",256 => \"Antonimina\",257 => \"Antrodoco\",258 => \"Antrona Schieranco\",259 => \"Anversa degli Abruzzi\",260 => \"Anzano del Parco\",261 => \"Anzano di Puglia\",8400 => \"Anzi\",263 => \"Anzio\",264 => \"Anzola d'Ossola\",265 => \"Anzola dell'Emilia\",266 => \"Aosta\",8548 => \"Aosta Saint Christophe\",267 => \"Apecchio\",268 => \"Apice\",269 => \"Apiro\",270 => \"Apollosa\",271 => \"Appiano Gentile\",272 => \"Appiano sulla strada del vino\",273 => \"Appignano\",274 => \"Appignano del Tronto\",275 => \"Aprica\",276 => \"Apricale\",277 => \"Apricena\",278 => \"Aprigliano\",279 => \"Aprilia\",280 => \"Aquara\",281 => \"Aquila di Arroscia\",282 => \"Aquileia\",283 => \"Aquilonia\",284 => \"Aquino\",8228 => \"Arabba\",285 => \"Aradeo\",286 => \"Aragona\",287 => \"Aramengo\",288 => \"Arba\",8487 => \"Arbatax\",289 => \"Arborea\",290 => \"Arborio\",291 => \"Arbus\",292 => \"Arcade\",293 => \"Arce\",294 => \"Arcene\",295 => \"Arcevia\",296 => \"Archi\",297 => \"Arcidosso\",298 => \"Arcinazzo romano\",299 => \"Arcisate\",300 => \"Arco\",301 => \"Arcola\",302 => \"Arcole\",303 => \"Arconate\",304 => \"Arcore\",305 => \"Arcugnano\",306 => \"Ardara\",307 => \"Ardauli\",308 => \"Ardea\",309 => \"Ardenno\",310 => \"Ardesio\",311 => \"Ardore\",8675 => \"Ardore Marina\",8321 => \"Aremogna\",312 => \"Arena\",313 => \"Arena po\",314 => \"Arenzano\",315 => \"Arese\",316 => \"Arezzo\",317 => \"Argegno\",318 => \"Argelato\",319 => \"Argenta\",320 => \"Argentera\",321 => \"Arguello\",322 => \"Argusto\",323 => \"Ari\",324 => \"Ariano irpino\",325 => \"Ariano nel polesine\",326 => \"Ariccia\",327 => \"Arielli\",328 => \"Arienzo\",329 => \"Arignano\",330 => \"Aritzo\",331 => \"Arizzano\",332 => \"Arlena di castro\",333 => \"Arluno\",8677 => \"Arma di Taggia\",334 => \"Armeno\",8405 => \"Armento\",336 => \"Armo\",337 => \"Armungia\",338 => \"Arnad\",339 => \"Arnara\",340 => \"Arnasco\",341 => \"Arnesano\",342 => \"Arola\",343 => \"Arona\",344 => \"Arosio\",345 => \"Arpaia\",346 => \"Arpaise\",347 => \"Arpino\",348 => \"Arqua' Petrarca\",349 => \"Arqua' polesine\",350 => \"Arquata del tronto\",351 => \"Arquata scrivia\",352 => \"Arre\",353 => \"Arrone\",354 => \"Arsago Seprio\",355 => \"Arsie'\",356 => \"Arsiero\",357 => \"Arsita\",358 => \"Arsoli\",359 => \"Arta terme\",360 => \"Artegna\",361 => \"Artena\",8338 => \"Artesina\",362 => \"Artogne\",363 => \"Arvier\",364 => \"Arzachena\",365 => \"Arzago d'Adda\",366 => \"Arzana\",367 => \"Arzano\",368 => \"Arzene\",369 => \"Arzergrande\",370 => \"Arzignano\",371 => \"Ascea\",8513 => \"Asciano\",8198 => \"Asciano Pisano\",373 => \"Ascoli piceno\",374 => \"Ascoli satriano\",375 => \"Ascrea\",376 => \"Asiago\",377 => \"Asigliano Veneto\",378 => \"Asigliano vercellese\",379 => \"Asola\",380 => \"Asolo\",8438 => \"Aspio terme\",381 => \"Assago\",382 => \"Assemini\",8488 => \"Assergi\",8448 => \"Assergi casello\",383 => \"Assisi\",384 => \"Asso\",385 => \"Assolo\",386 => \"Assoro\",387 => \"Asti\",388 => \"Asuni\",389 => \"Ateleta\",8383 => \"Atella\",391 => \"Atena lucana\",392 => \"Atessa\",393 => \"Atina\",394 => \"Atrani\",395 => \"Atri\",396 => \"Atripalda\",397 => \"Attigliano\",398 => \"Attimis\",399 => \"Atzara\",400 => \"Auditore\",401 => \"Augusta\",402 => \"Auletta\",403 => \"Aulla\",404 => \"Aurano\",405 => \"Aurigo\",406 => \"Auronzo di cadore\",407 => \"Ausonia\",408 => \"Austis\",409 => \"Avegno\",410 => \"Avelengo\",411 => \"Avella\",412 => \"Avellino\",413 => \"Averara\",414 => \"Aversa\",415 => \"Avetrana\",416 => \"Avezzano\",417 => \"Aviano\",418 => \"Aviatico\",419 => \"Avigliana\",420 => \"Avigliano\",421 => \"Avigliano umbro\",422 => \"Avio\",423 => \"Avise\",424 => \"Avola\",425 => \"Avolasca\",426 => \"Ayas\",427 => \"Aymavilles\",428 => \"Azeglio\",429 => \"Azzanello\",430 => \"Azzano d'Asti\",431 => \"Azzano decimo\",432 => \"Azzano mella\",433 => \"Azzano San Paolo\",434 => \"Azzate\",435 => \"Azzio\",436 => \"Azzone\",437 => \"Baceno\",438 => \"Bacoli\",439 => \"Badalucco\",440 => \"Badesi\",441 => \"Badia\",442 => \"Badia calavena\",443 => \"Badia pavese\",444 => \"Badia polesine\",445 => \"Badia tedalda\",446 => \"Badolato\",447 => \"Bagaladi\",448 => \"Bagheria\",449 => \"Bagnacavallo\",450 => \"Bagnara calabra\",451 => \"Bagnara di romagna\",452 => \"Bagnaria\",453 => \"Bagnaria arsa\",454 => \"Bagnasco\",455 => \"Bagnatica\",456 => \"Bagni di Lucca\",8699 => \"Bagni di Vinadio\",457 => \"Bagno a Ripoli\",458 => \"Bagno di Romagna\",459 => \"Bagnoli del Trigno\",460 => \"Bagnoli di sopra\",461 => \"Bagnoli irpino\",462 => \"Bagnolo cremasco\",463 => \"Bagnolo del salento\",464 => \"Bagnolo di po\",465 => \"Bagnolo in piano\",466 => \"Bagnolo Mella\",467 => \"Bagnolo Piemonte\",468 => \"Bagnolo San Vito\",469 => \"Bagnone\",470 => \"Bagnoregio\",471 => \"Bagolino\",8123 => \"Baia Domizia\",472 => \"Baia e Latina\",473 => \"Baiano\",474 => \"Baiardo\",475 => \"Bairo\",476 => \"Baiso\",477 => \"Balangero\",478 => \"Baldichieri d'Asti\",479 => \"Baldissero canavese\",480 => \"Baldissero d'Alba\",481 => \"Baldissero torinese\",482 => \"Balestrate\",483 => \"Balestrino\",484 => \"Ballabio\",485 => \"Ballao\",486 => \"Balme\",487 => \"Balmuccia\",488 => \"Balocco\",489 => \"Balsorano\",490 => \"Balvano\",491 => \"Balzola\",492 => \"Banari\",493 => \"Banchette\",494 => \"Bannio anzino\",8368 => \"Banzi\",496 => \"Baone\",497 => \"Baradili\",8415 => \"Baragiano\",499 => \"Baranello\",500 => \"Barano d'Ischia\",501 => \"Barasso\",502 => \"Baratili San Pietro\",503 => \"Barbania\",504 => \"Barbara\",505 => \"Barbarano romano\",506 => \"Barbarano vicentino\",507 => \"Barbaresco\",508 => \"Barbariga\",509 => \"Barbata\",510 => \"Barberino di mugello\",511 => \"Barberino val d'elsa\",512 => \"Barbianello\",513 => \"Barbiano\",514 => \"Barbona\",515 => \"Barcellona pozzo di Gotto\",516 => \"Barchi\",517 => \"Barcis\",518 => \"Bard\",519 => \"Bardello\",520 => \"Bardi\",521 => \"Bardineto\",522 => \"Bardolino\",523 => \"Bardonecchia\",524 => \"Bareggio\",525 => \"Barengo\",526 => \"Baressa\",527 => \"Barete\",528 => \"Barga\",529 => \"Bargagli\",530 => \"Barge\",531 => \"Barghe\",532 => \"Bari\",8274 => \"Bari Palese\",533 => \"Bari sardo\",534 => \"Bariano\",535 => \"Baricella\",8402 => \"Barile\",537 => \"Barisciano\",538 => \"Barlassina\",539 => \"Barletta\",540 => \"Barni\",541 => \"Barolo\",542 => \"Barone canavese\",543 => \"Baronissi\",544 => \"Barrafranca\",545 => \"Barrali\",546 => \"Barrea\",8745 => \"Barricata\",547 => \"Barumini\",548 => \"Barzago\",549 => \"Barzana\",550 => \"Barzano'\",551 => \"Barzio\",552 => \"Basaluzzo\",553 => \"Bascape'\",554 => \"Baschi\",555 => \"Basciano\",556 => \"Baselga di Pine'\",557 => \"Baselice\",558 => \"Basiano\",559 => \"Basico'\",560 => \"Basiglio\",561 => \"Basiliano\",562 => \"Bassano bresciano\",563 => \"Bassano del grappa\",564 => \"Bassano in teverina\",565 => \"Bassano romano\",566 => \"Bassiano\",567 => \"Bassignana\",568 => \"Bastia\",569 => \"Bastia mondovi'\",570 => \"Bastida de' Dossi\",571 => \"Bastida pancarana\",572 => \"Bastiglia\",573 => \"Battaglia terme\",574 => \"Battifollo\",575 => \"Battipaglia\",576 => \"Battuda\",577 => \"Baucina\",578 => \"Bauladu\",579 => \"Baunei\",580 => \"Baveno\",581 => \"Bazzano\",582 => \"Bedero valcuvia\",583 => \"Bedizzole\",584 => \"Bedollo\",585 => \"Bedonia\",586 => \"Bedulita\",587 => \"Bee\",588 => \"Beinasco\",589 => \"Beinette\",590 => \"Belcastro\",591 => \"Belfiore\",592 => \"Belforte all'Isauro\",593 => \"Belforte del chienti\",594 => \"Belforte monferrato\",595 => \"Belgioioso\",596 => \"Belgirate\",597 => \"Bella\",598 => \"Bellagio\",8263 => \"Bellamonte\",599 => \"Bellano\",600 => \"Bellante\",601 => \"Bellaria Igea marina\",602 => \"Bellegra\",603 => \"Bellino\",604 => \"Bellinzago lombardo\",605 => \"Bellinzago novarese\",606 => \"Bellizzi\",607 => \"Bellona\",608 => \"Bellosguardo\",609 => \"Belluno\",610 => \"Bellusco\",611 => \"Belmonte calabro\",612 => \"Belmonte castello\",613 => \"Belmonte del sannio\",614 => \"Belmonte in sabina\",615 => \"Belmonte mezzagno\",616 => \"Belmonte piceno\",617 => \"Belpasso\",8573 => \"Belpiano Schoeneben\",618 => \"Belsito\",8265 => \"Belvedere\",619 => \"Belvedere di Spinello\",620 => \"Belvedere langhe\",621 => \"Belvedere marittimo\",622 => \"Belvedere ostrense\",623 => \"Belveglio\",624 => \"Belvi\",625 => \"Bema\",626 => \"Bene lario\",627 => \"Bene vagienna\",628 => \"Benestare\",629 => \"Benetutti\",630 => \"Benevello\",631 => \"Benevento\",632 => \"Benna\",633 => \"Bentivoglio\",634 => \"Berbenno\",635 => \"Berbenno di valtellina\",636 => \"Berceto\",637 => \"Berchidda\",638 => \"Beregazzo con Figliaro\",639 => \"Bereguardo\",640 => \"Bergamasco\",641 => \"Bergamo\",8519 => \"Bergamo città alta\",8497 => \"Bergamo Orio al Serio\",642 => \"Bergantino\",643 => \"Bergeggi\",644 => \"Bergolo\",645 => \"Berlingo\",646 => \"Bernalda\",647 => \"Bernareggio\",648 => \"Bernate ticino\",649 => \"Bernezzo\",650 => \"Berra\",651 => \"Bersone\",652 => \"Bertinoro\",653 => \"Bertiolo\",654 => \"Bertonico\",655 => \"Berzano di San Pietro\",656 => \"Berzano di Tortona\",657 => \"Berzo Demo\",658 => \"Berzo inferiore\",659 => \"Berzo San Fermo\",660 => \"Besana in brianza\",661 => \"Besano\",662 => \"Besate\",663 => \"Besenello\",664 => \"Besenzone\",665 => \"Besnate\",666 => \"Besozzo\",667 => \"Bessude\",668 => \"Bettola\",669 => \"Bettona\",670 => \"Beura Cardezza\",671 => \"Bevagna\",672 => \"Beverino\",673 => \"Bevilacqua\",674 => \"Bezzecca\",675 => \"Biancavilla\",676 => \"Bianchi\",677 => \"Bianco\",678 => \"Biandrate\",679 => \"Biandronno\",680 => \"Bianzano\",681 => \"Bianze'\",682 => \"Bianzone\",683 => \"Biassono\",684 => \"Bibbiano\",685 => \"Bibbiena\",686 => \"Bibbona\",687 => \"Bibiana\",8230 => \"Bibione\",688 => \"Biccari\",689 => \"Bicinicco\",690 => \"Bidoni'\",691 => \"Biella\",8163 => \"Bielmonte\",692 => \"Bienno\",693 => \"Bieno\",694 => \"Bientina\",695 => \"Bigarello\",696 => \"Binago\",697 => \"Binasco\",698 => \"Binetto\",699 => \"Bioglio\",700 => \"Bionaz\",701 => \"Bione\",702 => \"Birori\",703 => \"Bisaccia\",704 => \"Bisacquino\",705 => \"Bisceglie\",706 => \"Bisegna\",707 => \"Bisenti\",708 => \"Bisignano\",709 => \"Bistagno\",710 => \"Bisuschio\",711 => \"Bitetto\",712 => \"Bitonto\",713 => \"Bitritto\",714 => \"Bitti\",715 => \"Bivona\",716 => \"Bivongi\",717 => \"Bizzarone\",718 => \"Bleggio inferiore\",719 => \"Bleggio superiore\",720 => \"Blello\",721 => \"Blera\",722 => \"Blessagno\",723 => \"Blevio\",724 => \"Blufi\",725 => \"Boara Pisani\",726 => \"Bobbio\",727 => \"Bobbio Pellice\",728 => \"Boca\",8501 => \"Bocca di Magra\",729 => \"Bocchigliero\",730 => \"Boccioleto\",731 => \"Bocenago\",732 => \"Bodio Lomnago\",733 => \"Boffalora d'Adda\",734 => \"Boffalora sopra Ticino\",735 => \"Bogliasco\",736 => \"Bognanco\",8287 => \"Bognanco fonti\",737 => \"Bogogno\",738 => \"Boissano\",739 => \"Bojano\",740 => \"Bolano\",741 => \"Bolbeno\",742 => \"Bolgare\",743 => \"Bollate\",744 => \"Bollengo\",745 => \"Bologna\",8476 => \"Bologna Borgo Panigale\",746 => \"Bolognano\",747 => \"Bolognetta\",748 => \"Bolognola\",749 => \"Bolotana\",750 => \"Bolsena\",751 => \"Boltiere\",8505 => \"Bolzaneto\",752 => \"Bolzano\",753 => \"Bolzano novarese\",754 => \"Bolzano vicentino\",755 => \"Bomarzo\",756 => \"Bomba\",757 => \"Bompensiere\",758 => \"Bompietro\",759 => \"Bomporto\",760 => \"Bonarcado\",761 => \"Bonassola\",762 => \"Bonate sopra\",763 => \"Bonate sotto\",764 => \"Bonavigo\",765 => \"Bondeno\",766 => \"Bondo\",767 => \"Bondone\",768 => \"Bonea\",769 => \"Bonefro\",770 => \"Bonemerse\",771 => \"Bonifati\",772 => \"Bonito\",773 => \"Bonnanaro\",774 => \"Bono\",775 => \"Bonorva\",776 => \"Bonvicino\",777 => \"Borbona\",778 => \"Borca di cadore\",779 => \"Bordano\",780 => \"Bordighera\",781 => \"Bordolano\",782 => \"Bore\",783 => \"Boretto\",784 => \"Borgarello\",785 => \"Borgaro torinese\",786 => \"Borgetto\",787 => \"Borghetto d'arroscia\",788 => \"Borghetto di borbera\",789 => \"Borghetto di vara\",790 => \"Borghetto lodigiano\",791 => \"Borghetto Santo Spirito\",792 => \"Borghi\",793 => \"Borgia\",794 => \"Borgiallo\",795 => \"Borgio Verezzi\",796 => \"Borgo a Mozzano\",797 => \"Borgo d'Ale\",798 => \"Borgo di Terzo\",8159 => \"Borgo d`Ale\",799 => \"Borgo Pace\",800 => \"Borgo Priolo\",801 => \"Borgo San Dalmazzo\",802 => \"Borgo San Giacomo\",803 => \"Borgo San Giovanni\",804 => \"Borgo San Lorenzo\",805 => \"Borgo San Martino\",806 => \"Borgo San Siro\",807 => \"Borgo Ticino\",808 => \"Borgo Tossignano\",809 => \"Borgo Val di Taro\",810 => \"Borgo Valsugana\",811 => \"Borgo Velino\",812 => \"Borgo Vercelli\",813 => \"Borgoforte\",814 => \"Borgofranco d'Ivrea\",815 => \"Borgofranco sul Po\",816 => \"Borgolavezzaro\",817 => \"Borgomale\",818 => \"Borgomanero\",819 => \"Borgomaro\",820 => \"Borgomasino\",821 => \"Borgone susa\",822 => \"Borgonovo val tidone\",823 => \"Borgoratto alessandrino\",824 => \"Borgoratto mormorolo\",825 => \"Borgoricco\",826 => \"Borgorose\",827 => \"Borgosatollo\",828 => \"Borgosesia\",829 => \"Bormida\",830 => \"Bormio\",8334 => \"Bormio 2000\",8335 => \"Bormio 3000\",831 => \"Bornasco\",832 => \"Borno\",833 => \"Boroneddu\",834 => \"Borore\",835 => \"Borrello\",836 => \"Borriana\",837 => \"Borso del Grappa\",838 => \"Bortigali\",839 => \"Bortigiadas\",840 => \"Borutta\",841 => \"Borzonasca\",842 => \"Bosa\",843 => \"Bosaro\",844 => \"Boschi Sant'Anna\",845 => \"Bosco Chiesanuova\",846 => \"Bosco Marengo\",847 => \"Bosconero\",848 => \"Boscoreale\",849 => \"Boscotrecase\",850 => \"Bosentino\",851 => \"Bosia\",852 => \"Bosio\",853 => \"Bosisio Parini\",854 => \"Bosnasco\",855 => \"Bossico\",856 => \"Bossolasco\",857 => \"Botricello\",858 => \"Botrugno\",859 => \"Bottanuco\",860 => \"Botticino\",861 => \"Bottidda\",8655 => \"Bourg San Bernard\",862 => \"Bova\",863 => \"Bova marina\",864 => \"Bovalino\",865 => \"Bovegno\",866 => \"Boves\",867 => \"Bovezzo\",868 => \"Boville Ernica\",869 => \"Bovino\",870 => \"Bovisio Masciago\",871 => \"Bovolenta\",872 => \"Bovolone\",873 => \"Bozzole\",874 => \"Bozzolo\",875 => \"Bra\",876 => \"Bracca\",877 => \"Bracciano\",878 => \"Bracigliano\",879 => \"Braies\",880 => \"Brallo di Pregola\",881 => \"Brancaleone\",882 => \"Brandico\",883 => \"Brandizzo\",884 => \"Branzi\",885 => \"Braone\",8740 => \"Bratto\",886 => \"Brebbia\",887 => \"Breda di Piave\",888 => \"Bregano\",889 => \"Breganze\",890 => \"Bregnano\",891 => \"Breguzzo\",892 => \"Breia\",8724 => \"Breithorn\",893 => \"Brembate\",894 => \"Brembate di sopra\",895 => \"Brembilla\",896 => \"Brembio\",897 => \"Breme\",898 => \"Brendola\",899 => \"Brenna\",900 => \"Brennero\",901 => \"Breno\",902 => \"Brenta\",903 => \"Brentino Belluno\",904 => \"Brentonico\",905 => \"Brenzone\",906 => \"Brescello\",907 => \"Brescia\",8547 => \"Brescia Montichiari\",908 => \"Bresimo\",909 => \"Bressana Bottarone\",910 => \"Bressanone\",911 => \"Bressanvido\",912 => \"Bresso\",8226 => \"Breuil-Cervinia\",913 => \"Brez\",914 => \"Brezzo di Bedero\",915 => \"Briaglia\",916 => \"Briatico\",917 => \"Bricherasio\",918 => \"Brienno\",919 => \"Brienza\",920 => \"Briga alta\",921 => \"Briga novarese\",923 => \"Brignano Frascata\",922 => \"Brignano Gera d'Adda\",924 => \"Brindisi\",8358 => \"Brindisi montagna\",8549 => \"Brindisi Papola Casale\",926 => \"Brinzio\",927 => \"Briona\",928 => \"Brione\",929 => \"Brione\",930 => \"Briosco\",931 => \"Brisighella\",932 => \"Brissago valtravaglia\",933 => \"Brissogne\",934 => \"Brittoli\",935 => \"Brivio\",936 => \"Broccostella\",937 => \"Brogliano\",938 => \"Brognaturo\",939 => \"Brolo\",940 => \"Brondello\",941 => \"Broni\",942 => \"Bronte\",943 => \"Bronzolo\",944 => \"Brossasco\",945 => \"Brosso\",946 => \"Brovello Carpugnino\",947 => \"Brozolo\",948 => \"Brugherio\",949 => \"Brugine\",950 => \"Brugnato\",951 => \"Brugnera\",952 => \"Bruino\",953 => \"Brumano\",954 => \"Brunate\",955 => \"Brunello\",956 => \"Brunico\",957 => \"Bruno\",958 => \"Brusaporto\",959 => \"Brusasco\",960 => \"Brusciano\",961 => \"Brusimpiano\",962 => \"Brusnengo\",963 => \"Brusson\",8645 => \"Brusson 2000 Estoul\",964 => \"Bruzolo\",965 => \"Bruzzano Zeffirio\",966 => \"Bubbiano\",967 => \"Bubbio\",968 => \"Buccheri\",969 => \"Bucchianico\",970 => \"Bucciano\",971 => \"Buccinasco\",972 => \"Buccino\",973 => \"Bucine\",974 => \"Budduso'\",975 => \"Budoia\",976 => \"Budoni\",977 => \"Budrio\",978 => \"Buggerru\",979 => \"Buggiano\",980 => \"Buglio in Monte\",981 => \"Bugnara\",982 => \"Buguggiate\",983 => \"Buia\",984 => \"Bulciago\",985 => \"Bulgarograsso\",986 => \"Bultei\",987 => \"Bulzi\",988 => \"Buonabitacolo\",989 => \"Buonalbergo\",990 => \"Buonconvento\",991 => \"Buonvicino\",992 => \"Burago di Molgora\",993 => \"Burcei\",994 => \"Burgio\",995 => \"Burgos\",996 => \"Buriasco\",997 => \"Burolo\",998 => \"Buronzo\",8483 => \"Burrino\",999 => \"Busachi\",1000 => \"Busalla\",1001 => \"Busana\",1002 => \"Busano\",1003 => \"Busca\",1004 => \"Buscate\",1005 => \"Buscemi\",1006 => \"Buseto Palizzolo\",1007 => \"Busnago\",1008 => \"Bussero\",1009 => \"Busseto\",1010 => \"Bussi sul Tirino\",1011 => \"Busso\",1012 => \"Bussolengo\",1013 => \"Bussoleno\",1014 => \"Busto Arsizio\",1015 => \"Busto Garolfo\",1016 => \"Butera\",1017 => \"Buti\",1018 => \"Buttapietra\",1019 => \"Buttigliera alta\",1020 => \"Buttigliera d'Asti\",1021 => \"Buttrio\",1022 => \"Ca' d'Andrea\",1023 => \"Cabella ligure\",1024 => \"Cabiate\",1025 => \"Cabras\",1026 => \"Caccamo\",1027 => \"Caccuri\",1028 => \"Cadegliano Viconago\",1029 => \"Cadelbosco di sopra\",1030 => \"Cadeo\",1031 => \"Caderzone\",8566 => \"Cadipietra\",1032 => \"Cadoneghe\",1033 => \"Cadorago\",1034 => \"Cadrezzate\",1035 => \"Caerano di San Marco\",1036 => \"Cafasse\",1037 => \"Caggiano\",1038 => \"Cagli\",1039 => \"Cagliari\",8500 => \"Cagliari Elmas\",1040 => \"Caglio\",1041 => \"Cagnano Amiterno\",1042 => \"Cagnano Varano\",1043 => \"Cagno\",1044 => \"Cagno'\",1045 => \"Caianello\",1046 => \"Caiazzo\",1047 => \"Caines\",1048 => \"Caino\",1049 => \"Caiolo\",1050 => \"Cairano\",1051 => \"Cairate\",1052 => \"Cairo Montenotte\",1053 => \"Caivano\",8168 => \"Cala Gonone\",1054 => \"Calabritto\",1055 => \"Calalzo di cadore\",1056 => \"Calamandrana\",1057 => \"Calamonaci\",1058 => \"Calangianus\",1059 => \"Calanna\",1060 => \"Calasca Castiglione\",1061 => \"Calascibetta\",1062 => \"Calascio\",1063 => \"Calasetta\",1064 => \"Calatabiano\",1065 => \"Calatafimi\",1066 => \"Calavino\",1067 => \"Calcata\",1068 => \"Calceranica al lago\",1069 => \"Calci\",8424 => \"Calciano\",1071 => \"Calcinaia\",1072 => \"Calcinate\",1073 => \"Calcinato\",1074 => \"Calcio\",1075 => \"Calco\",1076 => \"Caldaro sulla strada del vino\",1077 => \"Caldarola\",1078 => \"Calderara di Reno\",1079 => \"Caldes\",1080 => \"Caldiero\",1081 => \"Caldogno\",1082 => \"Caldonazzo\",1083 => \"Calendasco\",8614 => \"Calenella\",1084 => \"Calenzano\",1085 => \"Calestano\",1086 => \"Calice al Cornoviglio\",1087 => \"Calice ligure\",8692 => \"California di Lesmo\",1088 => \"Calimera\",1089 => \"Calitri\",1090 => \"Calizzano\",1091 => \"Callabiana\",1092 => \"Calliano\",1093 => \"Calliano\",1094 => \"Calolziocorte\",1095 => \"Calopezzati\",1096 => \"Calosso\",1097 => \"Caloveto\",1098 => \"Caltabellotta\",1099 => \"Caltagirone\",1100 => \"Caltanissetta\",1101 => \"Caltavuturo\",1102 => \"Caltignaga\",1103 => \"Calto\",1104 => \"Caltrano\",1105 => \"Calusco d'Adda\",1106 => \"Caluso\",1107 => \"Calvagese della Riviera\",1108 => \"Calvanico\",1109 => \"Calvatone\",8406 => \"Calvello\",1111 => \"Calvene\",1112 => \"Calvenzano\",8373 => \"Calvera\",1114 => \"Calvi\",1115 => \"Calvi dell'Umbria\",1116 => \"Calvi risorta\",1117 => \"Calvignano\",1118 => \"Calvignasco\",1119 => \"Calvisano\",1120 => \"Calvizzano\",1121 => \"Camagna monferrato\",1122 => \"Camaiore\",1123 => \"Camairago\",1124 => \"Camandona\",1125 => \"Camastra\",1126 => \"Cambiago\",1127 => \"Cambiano\",1128 => \"Cambiasca\",1129 => \"Camburzano\",1130 => \"Camerana\",1131 => \"Camerano\",1132 => \"Camerano Casasco\",1133 => \"Camerata Cornello\",1134 => \"Camerata Nuova\",1135 => \"Camerata picena\",1136 => \"Cameri\",1137 => \"Camerino\",1138 => \"Camerota\",1139 => \"Camigliano\",8119 => \"Camigliatello silano\",1140 => \"Caminata\",1141 => \"Camini\",1142 => \"Camino\",1143 => \"Camino al Tagliamento\",1144 => \"Camisano\",1145 => \"Camisano vicentino\",1146 => \"Cammarata\",1147 => \"Camo\",1148 => \"Camogli\",1149 => \"Campagna\",1150 => \"Campagna Lupia\",1151 => \"Campagnano di Roma\",1152 => \"Campagnatico\",1153 => \"Campagnola cremasca\",1154 => \"Campagnola emilia\",1155 => \"Campana\",1156 => \"Camparada\",1157 => \"Campegine\",1158 => \"Campello sul Clitunno\",1159 => \"Campertogno\",1160 => \"Campi Bisenzio\",1161 => \"Campi salentina\",1162 => \"Campiglia cervo\",1163 => \"Campiglia dei Berici\",1164 => \"Campiglia marittima\",1165 => \"Campiglione Fenile\",8127 => \"Campigna\",1166 => \"Campione d'Italia\",1167 => \"Campitello di Fassa\",8155 => \"Campitello matese\",1168 => \"Campli\",1169 => \"Campo calabro\",8754 => \"Campo Carlo Magno\",8134 => \"Campo Catino\",8610 => \"Campo Cecina\",1170 => \"Campo di Giove\",1171 => \"Campo di Trens\",8345 => \"Campo Felice\",8101 => \"Campo imperatore\",1172 => \"Campo ligure\",1173 => \"Campo nell'Elba\",1174 => \"Campo San Martino\",8135 => \"Campo Staffi\",8644 => \"Campo Tenese\",1175 => \"Campo Tures\",1176 => \"Campobasso\",1177 => \"Campobello di Licata\",1178 => \"Campobello di Mazara\",1179 => \"Campochiaro\",1180 => \"Campodarsego\",1181 => \"Campodenno\",8357 => \"Campodimele\",1183 => \"Campodipietra\",1184 => \"Campodolcino\",1185 => \"Campodoro\",1186 => \"Campofelice di Fitalia\",1187 => \"Campofelice di Roccella\",1188 => \"Campofilone\",1189 => \"Campofiorito\",1190 => \"Campoformido\",1191 => \"Campofranco\",1192 => \"Campogalliano\",1193 => \"Campolattaro\",1194 => \"Campoli Appennino\",1195 => \"Campoli del Monte Taburno\",1196 => \"Campolieto\",1197 => \"Campolongo al Torre\",1198 => \"Campolongo Maggiore\",1199 => \"Campolongo sul Brenta\",8391 => \"Campomaggiore\",1201 => \"Campomarino\",1202 => \"Campomorone\",1203 => \"Camponogara\",1204 => \"Campora\",1205 => \"Camporeale\",1206 => \"Camporgiano\",1207 => \"Camporosso\",1208 => \"Camporotondo di Fiastrone\",1209 => \"Camporotondo etneo\",1210 => \"Camposampiero\",1211 => \"Camposano\",1212 => \"Camposanto\",1213 => \"Campospinoso\",1214 => \"Campotosto\",1215 => \"Camugnano\",1216 => \"Canal San Bovo\",1217 => \"Canale\",1218 => \"Canale d'Agordo\",1219 => \"Canale Monterano\",1220 => \"Canaro\",1221 => \"Canazei\",8407 => \"Cancellara\",1223 => \"Cancello ed Arnone\",1224 => \"Canda\",1225 => \"Candela\",8468 => \"Candela casello\",1226 => \"Candelo\",1227 => \"Candia canavese\",1228 => \"Candia lomellina\",1229 => \"Candiana\",1230 => \"Candida\",1231 => \"Candidoni\",1232 => \"Candiolo\",1233 => \"Canegrate\",1234 => \"Canelli\",1235 => \"Canepina\",1236 => \"Caneva\",8562 => \"Canevare di Fanano\",1237 => \"Canevino\",1238 => \"Canicatti'\",1239 => \"Canicattini Bagni\",1240 => \"Canino\",1241 => \"Canischio\",1242 => \"Canistro\",1243 => \"Canna\",1244 => \"Cannalonga\",1245 => \"Cannara\",1246 => \"Cannero riviera\",1247 => \"Canneto pavese\",1248 => \"Canneto sull'Oglio\",8588 => \"Cannigione\",1249 => \"Cannobio\",1250 => \"Cannole\",1251 => \"Canolo\",1252 => \"Canonica d'Adda\",1253 => \"Canosa di Puglia\",1254 => \"Canosa sannita\",1255 => \"Canosio\",1256 => \"Canossa\",1257 => \"Cansano\",1258 => \"Cantagallo\",1259 => \"Cantalice\",1260 => \"Cantalupa\",1261 => \"Cantalupo in Sabina\",1262 => \"Cantalupo ligure\",1263 => \"Cantalupo nel Sannio\",1264 => \"Cantarana\",1265 => \"Cantello\",1266 => \"Canterano\",1267 => \"Cantiano\",1268 => \"Cantoira\",1269 => \"Cantu'\",1270 => \"Canzano\",1271 => \"Canzo\",1272 => \"Caorle\",1273 => \"Caorso\",1274 => \"Capaccio\",1275 => \"Capaci\",1276 => \"Capalbio\",8242 => \"Capanna Margherita\",8297 => \"Capanne di Sillano\",1277 => \"Capannoli\",1278 => \"Capannori\",1279 => \"Capena\",1280 => \"Capergnanica\",1281 => \"Capestrano\",1282 => \"Capiago Intimiano\",1283 => \"Capistrano\",1284 => \"Capistrello\",1285 => \"Capitignano\",1286 => \"Capizzi\",1287 => \"Capizzone\",8609 => \"Capo Bellavista\",8113 => \"Capo Colonna\",1288 => \"Capo d'Orlando\",1289 => \"Capo di Ponte\",8676 => \"Capo Mele\",8607 => \"Capo Palinuro\",8112 => \"Capo Rizzuto\",1290 => \"Capodimonte\",1291 => \"Capodrise\",1292 => \"Capoliveri\",1293 => \"Capolona\",1294 => \"Caponago\",1295 => \"Caporciano\",1296 => \"Caposele\",1297 => \"Capoterra\",1298 => \"Capovalle\",1299 => \"Cappadocia\",1300 => \"Cappella Cantone\",1301 => \"Cappella de' Picenardi\",1302 => \"Cappella Maggiore\",1303 => \"Cappelle sul Tavo\",1304 => \"Capracotta\",1305 => \"Capraia e Limite\",1306 => \"Capraia isola\",1307 => \"Capralba\",1308 => \"Capranica\",1309 => \"Capranica Prenestina\",1310 => \"Caprarica di Lecce\",1311 => \"Caprarola\",1312 => \"Caprauna\",1313 => \"Caprese Michelangelo\",1314 => \"Caprezzo\",1315 => \"Capri\",1316 => \"Capri Leone\",1317 => \"Capriana\",1318 => \"Capriano del Colle\",1319 => \"Capriata d'Orba\",1320 => \"Capriate San Gervasio\",1321 => \"Capriati a Volturno\",1322 => \"Caprie\",1323 => \"Capriglia irpina\",1324 => \"Capriglio\",1325 => \"Caprile\",1326 => \"Caprino bergamasco\",1327 => \"Caprino veronese\",1328 => \"Capriolo\",1329 => \"Capriva del Friuli\",1330 => \"Capua\",1331 => \"Capurso\",1332 => \"Caraffa del Bianco\",1333 => \"Caraffa di Catanzaro\",1334 => \"Caraglio\",1335 => \"Caramagna Piemonte\",1336 => \"Caramanico terme\",1337 => \"Carano\",1338 => \"Carapelle\",1339 => \"Carapelle Calvisio\",1340 => \"Carasco\",1341 => \"Carassai\",1342 => \"Carate brianza\",1343 => \"Carate Urio\",1344 => \"Caravaggio\",1345 => \"Caravate\",1346 => \"Caravino\",1347 => \"Caravonica\",1348 => \"Carbognano\",1349 => \"Carbonara al Ticino\",1350 => \"Carbonara di Nola\",1351 => \"Carbonara di Po\",1352 => \"Carbonara Scrivia\",1353 => \"Carbonate\",8374 => \"Carbone\",1355 => \"Carbonera\",1356 => \"Carbonia\",1357 => \"Carcare\",1358 => \"Carceri\",1359 => \"Carcoforo\",1360 => \"Cardano al Campo\",1361 => \"Carde'\",1362 => \"Cardedu\",1363 => \"Cardeto\",1364 => \"Cardinale\",1365 => \"Cardito\",1366 => \"Careggine\",1367 => \"Carema\",1368 => \"Carenno\",1369 => \"Carentino\",1370 => \"Careri\",1371 => \"Caresana\",1372 => \"Caresanablot\",8625 => \"Carezza al lago\",1373 => \"Carezzano\",1374 => \"Carfizzi\",1375 => \"Cargeghe\",1376 => \"Cariati\",1377 => \"Carife\",1378 => \"Carignano\",1379 => \"Carimate\",1380 => \"Carinaro\",1381 => \"Carini\",1382 => \"Carinola\",1383 => \"Carisio\",1384 => \"Carisolo\",1385 => \"Carlantino\",1386 => \"Carlazzo\",1387 => \"Carlentini\",1388 => \"Carlino\",1389 => \"Carloforte\",1390 => \"Carlopoli\",1391 => \"Carmagnola\",1392 => \"Carmiano\",1393 => \"Carmignano\",1394 => \"Carmignano di Brenta\",1395 => \"Carnago\",1396 => \"Carnate\",1397 => \"Carobbio degli Angeli\",1398 => \"Carolei\",1399 => \"Carona\",8541 => \"Carona Carisole\",1400 => \"Caronia\",1401 => \"Caronno Pertusella\",1402 => \"Caronno varesino\",8253 => \"Carosello 3000\",1403 => \"Carosino\",1404 => \"Carovigno\",1405 => \"Carovilli\",1406 => \"Carpaneto piacentino\",1407 => \"Carpanzano\",1408 => \"Carpasio\",1409 => \"Carpegna\",1410 => \"Carpenedolo\",1411 => \"Carpeneto\",1412 => \"Carpi\",1413 => \"Carpiano\",1414 => \"Carpignano salentino\",1415 => \"Carpignano Sesia\",1416 => \"Carpineti\",1417 => \"Carpineto della Nora\",1418 => \"Carpineto romano\",1419 => \"Carpineto Sinello\",1420 => \"Carpino\",1421 => \"Carpinone\",1422 => \"Carrara\",1423 => \"Carre'\",1424 => \"Carrega ligure\",1425 => \"Carro\",1426 => \"Carrodano\",1427 => \"Carrosio\",1428 => \"Carru'\",1429 => \"Carsoli\",1430 => \"Cartigliano\",1431 => \"Cartignano\",1432 => \"Cartoceto\",1433 => \"Cartosio\",1434 => \"Cartura\",1435 => \"Carugate\",1436 => \"Carugo\",1437 => \"Carunchio\",1438 => \"Carvico\",1439 => \"Carzano\",1440 => \"Casabona\",1441 => \"Casacalenda\",1442 => \"Casacanditella\",1443 => \"Casagiove\",1444 => \"Casal Cermelli\",1445 => \"Casal di Principe\",1446 => \"Casal Velino\",1447 => \"Casalanguida\",1448 => \"Casalattico\",8648 => \"Casalavera\",1449 => \"Casalbeltrame\",1450 => \"Casalbordino\",1451 => \"Casalbore\",1452 => \"Casalborgone\",1453 => \"Casalbuono\",1454 => \"Casalbuttano ed Uniti\",1455 => \"Casalciprano\",1456 => \"Casalduni\",1457 => \"Casale Corte Cerro\",1458 => \"Casale cremasco Vidolasco\",1459 => \"Casale di Scodosia\",1460 => \"Casale Litta\",1461 => \"Casale marittimo\",1462 => \"Casale monferrato\",1463 => \"Casale sul Sile\",1464 => \"Casalecchio di Reno\",1465 => \"Casaleggio Boiro\",1466 => \"Casaleggio Novara\",1467 => \"Casaleone\",1468 => \"Casaletto Ceredano\",1469 => \"Casaletto di sopra\",1470 => \"Casaletto lodigiano\",1471 => \"Casaletto Spartano\",1472 => \"Casaletto Vaprio\",1473 => \"Casalfiumanese\",1474 => \"Casalgrande\",1475 => \"Casalgrasso\",1476 => \"Casalincontrada\",1477 => \"Casalino\",1478 => \"Casalmaggiore\",1479 => \"Casalmaiocco\",1480 => \"Casalmorano\",1481 => \"Casalmoro\",1482 => \"Casalnoceto\",1483 => \"Casalnuovo di Napoli\",1484 => \"Casalnuovo Monterotaro\",1485 => \"Casaloldo\",1486 => \"Casalpusterlengo\",1487 => \"Casalromano\",1488 => \"Casalserugo\",1489 => \"Casaluce\",1490 => \"Casalvecchio di Puglia\",1491 => \"Casalvecchio siculo\",1492 => \"Casalvieri\",1493 => \"Casalvolone\",1494 => \"Casalzuigno\",1495 => \"Casamarciano\",1496 => \"Casamassima\",1497 => \"Casamicciola terme\",1498 => \"Casandrino\",1499 => \"Casanova Elvo\",1500 => \"Casanova Lerrone\",1501 => \"Casanova Lonati\",1502 => \"Casape\",1503 => \"Casapesenna\",1504 => \"Casapinta\",1505 => \"Casaprota\",1506 => \"Casapulla\",1507 => \"Casarano\",1508 => \"Casargo\",1509 => \"Casarile\",1510 => \"Casarsa della Delizia\",1511 => \"Casarza ligure\",1512 => \"Casasco\",1513 => \"Casasco d'Intelvi\",1514 => \"Casatenovo\",1515 => \"Casatisma\",1516 => \"Casavatore\",1517 => \"Casazza\",8160 => \"Cascate del Toce\",1518 => \"Cascia\",1519 => \"Casciago\",1520 => \"Casciana terme\",1521 => \"Cascina\",1522 => \"Cascinette d'Ivrea\",1523 => \"Casei Gerola\",1524 => \"Caselette\",1525 => \"Casella\",1526 => \"Caselle in Pittari\",1527 => \"Caselle Landi\",1528 => \"Caselle Lurani\",1529 => \"Caselle torinese\",1530 => \"Caserta\",1531 => \"Casier\",1532 => \"Casignana\",1533 => \"Casina\",1534 => \"Casirate d'Adda\",1535 => \"Caslino d'Erba\",1536 => \"Casnate con Bernate\",1537 => \"Casnigo\",1538 => \"Casola di Napoli\",1539 => \"Casola in lunigiana\",1540 => \"Casola valsenio\",1541 => \"Casole Bruzio\",1542 => \"Casole d'Elsa\",1543 => \"Casoli\",1544 => \"Casorate Primo\",1545 => \"Casorate Sempione\",1546 => \"Casorezzo\",1547 => \"Casoria\",1548 => \"Casorzo\",1549 => \"Casperia\",1550 => \"Caspoggio\",1551 => \"Cassacco\",1552 => \"Cassago brianza\",1553 => \"Cassano allo Ionio\",1554 => \"Cassano d'Adda\",1555 => \"Cassano delle murge\",1556 => \"Cassano irpino\",1557 => \"Cassano Magnago\",1558 => \"Cassano Spinola\",1559 => \"Cassano valcuvia\",1560 => \"Cassaro\",1561 => \"Cassiglio\",1562 => \"Cassina de' Pecchi\",1563 => \"Cassina Rizzardi\",1564 => \"Cassina valsassina\",1565 => \"Cassinasco\",1566 => \"Cassine\",1567 => \"Cassinelle\",1568 => \"Cassinetta di Lugagnano\",1569 => \"Cassino\",1570 => \"Cassola\",1571 => \"Cassolnovo\",1572 => \"Castagnaro\",1573 => \"Castagneto Carducci\",1574 => \"Castagneto po\",1575 => \"Castagnito\",1576 => \"Castagnole delle Lanze\",1577 => \"Castagnole monferrato\",1578 => \"Castagnole Piemonte\",1579 => \"Castana\",1580 => \"Castano Primo\",1581 => \"Casteggio\",1582 => \"Castegnato\",1583 => \"Castegnero\",1584 => \"Castel Baronia\",1585 => \"Castel Boglione\",1586 => \"Castel bolognese\",1587 => \"Castel Campagnano\",1588 => \"Castel Castagna\",1589 => \"Castel Colonna\",1590 => \"Castel Condino\",1591 => \"Castel d'Aiano\",1592 => \"Castel d'Ario\",1593 => \"Castel d'Azzano\",1594 => \"Castel del Giudice\",1595 => \"Castel del monte\",1596 => \"Castel del piano\",1597 => \"Castel del rio\",1598 => \"Castel di Casio\",1599 => \"Castel di Ieri\",1600 => \"Castel di Iudica\",1601 => \"Castel di Lama\",1602 => \"Castel di Lucio\",1603 => \"Castel di Sangro\",1604 => \"Castel di Sasso\",1605 => \"Castel di Tora\",1606 => \"Castel Focognano\",1607 => \"Castel frentano\",1608 => \"Castel Gabbiano\",1609 => \"Castel Gandolfo\",1610 => \"Castel Giorgio\",1611 => \"Castel Goffredo\",1612 => \"Castel Guelfo di Bologna\",1613 => \"Castel Madama\",1614 => \"Castel Maggiore\",1615 => \"Castel Mella\",1616 => \"Castel Morrone\",1617 => \"Castel Ritaldi\",1618 => \"Castel Rocchero\",1619 => \"Castel Rozzone\",1620 => \"Castel San Giorgio\",1621 => \"Castel San Giovanni\",1622 => \"Castel San Lorenzo\",1623 => \"Castel San Niccolo'\",1624 => \"Castel San Pietro romano\",1625 => \"Castel San Pietro terme\",1626 => \"Castel San Vincenzo\",1627 => \"Castel Sant'Angelo\",1628 => \"Castel Sant'Elia\",1629 => \"Castel Viscardo\",1630 => \"Castel Vittorio\",1631 => \"Castel volturno\",1632 => \"Castelbaldo\",1633 => \"Castelbelforte\",1634 => \"Castelbellino\",1635 => \"Castelbello Ciardes\",1636 => \"Castelbianco\",1637 => \"Castelbottaccio\",1638 => \"Castelbuono\",1639 => \"Castelcivita\",1640 => \"Castelcovati\",1641 => \"Castelcucco\",1642 => \"Casteldaccia\",1643 => \"Casteldelci\",1644 => \"Casteldelfino\",1645 => \"Casteldidone\",1646 => \"Castelfidardo\",1647 => \"Castelfiorentino\",1648 => \"Castelfondo\",1649 => \"Castelforte\",1650 => \"Castelfranci\",1651 => \"Castelfranco di sopra\",1652 => \"Castelfranco di sotto\",1653 => \"Castelfranco Emilia\",1654 => \"Castelfranco in Miscano\",1655 => \"Castelfranco Veneto\",1656 => \"Castelgomberto\",8385 => \"Castelgrande\",1658 => \"Castelguglielmo\",1659 => \"Castelguidone\",1660 => \"Castell'alfero\",1661 => \"Castell'arquato\",1662 => \"Castell'azzara\",1663 => \"Castell'umberto\",1664 => \"Castellabate\",1665 => \"Castellafiume\",1666 => \"Castellalto\",1667 => \"Castellammare del Golfo\",1668 => \"Castellammare di Stabia\",1669 => \"Castellamonte\",1670 => \"Castellana Grotte\",1671 => \"Castellana sicula\",1672 => \"Castellaneta\",1673 => \"Castellania\",1674 => \"Castellanza\",1675 => \"Castellar\",1676 => \"Castellar Guidobono\",1677 => \"Castellarano\",1678 => \"Castellaro\",1679 => \"Castellazzo Bormida\",1680 => \"Castellazzo novarese\",1681 => \"Castelleone\",1682 => \"Castelleone di Suasa\",1683 => \"Castellero\",1684 => \"Castelletto Cervo\",1685 => \"Castelletto d'Erro\",1686 => \"Castelletto d'Orba\",1687 => \"Castelletto di Branduzzo\",1688 => \"Castelletto Merli\",1689 => \"Castelletto Molina\",1690 => \"Castelletto monferrato\",1691 => \"Castelletto sopra Ticino\",1692 => \"Castelletto Stura\",1693 => \"Castelletto Uzzone\",1694 => \"Castelli\",1695 => \"Castelli Calepio\",1696 => \"Castellina in chianti\",1697 => \"Castellina marittima\",1698 => \"Castellinaldo\",1699 => \"Castellino del Biferno\",1700 => \"Castellino Tanaro\",1701 => \"Castelliri\",1702 => \"Castello Cabiaglio\",1703 => \"Castello d'Agogna\",1704 => \"Castello d'Argile\",1705 => \"Castello del matese\",1706 => \"Castello dell'Acqua\",1707 => \"Castello di Annone\",1708 => \"Castello di brianza\",1709 => \"Castello di Cisterna\",1710 => \"Castello di Godego\",1711 => \"Castello di Serravalle\",1712 => \"Castello Lavazzo\",1714 => \"Castello Molina di Fiemme\",1713 => \"Castello tesino\",1715 => \"Castellucchio\",8219 => \"Castelluccio\",1716 => \"Castelluccio dei Sauri\",8395 => \"Castelluccio inferiore\",8359 => \"Castelluccio superiore\",1719 => \"Castelluccio valmaggiore\",8452 => \"Castelmadama casello\",1720 => \"Castelmagno\",1721 => \"Castelmarte\",1722 => \"Castelmassa\",1723 => \"Castelmauro\",8363 => \"Castelmezzano\",1725 => \"Castelmola\",1726 => \"Castelnovetto\",1727 => \"Castelnovo Bariano\",1728 => \"Castelnovo del Friuli\",1729 => \"Castelnovo di sotto\",8124 => \"Castelnovo ne' Monti\",1731 => \"Castelnuovo\",1732 => \"Castelnuovo Belbo\",1733 => \"Castelnuovo Berardenga\",1734 => \"Castelnuovo bocca d'Adda\",1735 => \"Castelnuovo Bormida\",1736 => \"Castelnuovo Bozzente\",1737 => \"Castelnuovo Calcea\",1738 => \"Castelnuovo cilento\",1739 => \"Castelnuovo del Garda\",1740 => \"Castelnuovo della daunia\",1741 => \"Castelnuovo di Ceva\",1742 => \"Castelnuovo di Conza\",1743 => \"Castelnuovo di Farfa\",1744 => \"Castelnuovo di Garfagnana\",1745 => \"Castelnuovo di Porto\",1746 => \"Castelnuovo di val di Cecina\",1747 => \"Castelnuovo Don Bosco\",1748 => \"Castelnuovo Magra\",1749 => \"Castelnuovo Nigra\",1750 => \"Castelnuovo Parano\",1751 => \"Castelnuovo Rangone\",1752 => \"Castelnuovo Scrivia\",1753 => \"Castelpagano\",1754 => \"Castelpetroso\",1755 => \"Castelpizzuto\",1756 => \"Castelplanio\",1757 => \"Castelpoto\",1758 => \"Castelraimondo\",1759 => \"Castelrotto\",1760 => \"Castelsantangelo sul Nera\",8378 => \"Castelsaraceno\",1762 => \"Castelsardo\",1763 => \"Castelseprio\",1764 => \"Castelsilano\",1765 => \"Castelspina\",1766 => \"Casteltermini\",1767 => \"Castelveccana\",1768 => \"Castelvecchio Calvisio\",1769 => \"Castelvecchio di Rocca Barbena\",1770 => \"Castelvecchio Subequo\",1771 => \"Castelvenere\",1772 => \"Castelverde\",1773 => \"Castelverrino\",1774 => \"Castelvetere in val fortore\",1775 => \"Castelvetere sul Calore\",1776 => \"Castelvetrano\",1777 => \"Castelvetro di Modena\",1778 => \"Castelvetro piacentino\",1779 => \"Castelvisconti\",1780 => \"Castenaso\",1781 => \"Castenedolo\",1782 => \"Castiadas\",1783 => \"Castiglion Fibocchi\",1784 => \"Castiglion fiorentino\",8193 => \"Castiglioncello\",1785 => \"Castiglione a Casauria\",1786 => \"Castiglione chiavarese\",1787 => \"Castiglione cosentino\",1788 => \"Castiglione d'Adda\",1789 => \"Castiglione d'Intelvi\",1790 => \"Castiglione d'Orcia\",1791 => \"Castiglione dei Pepoli\",1792 => \"Castiglione del Genovesi\",1793 => \"Castiglione del Lago\",1794 => \"Castiglione della Pescaia\",1795 => \"Castiglione delle Stiviere\",1796 => \"Castiglione di garfagnana\",1797 => \"Castiglione di Sicilia\",1798 => \"Castiglione Falletto\",1799 => \"Castiglione in teverina\",1800 => \"Castiglione Messer Marino\",1801 => \"Castiglione Messer Raimondo\",1802 => \"Castiglione Olona\",1803 => \"Castiglione Tinella\",1804 => \"Castiglione torinese\",1805 => \"Castignano\",1806 => \"Castilenti\",1807 => \"Castino\",1808 => \"Castione Andevenno\",1809 => \"Castione della Presolana\",1810 => \"Castions di Strada\",1811 => \"Castiraga Vidardo\",1812 => \"Casto\",1813 => \"Castorano\",8723 => \"Castore\",1814 => \"Castrezzato\",1815 => \"Castri di Lecce\",1816 => \"Castrignano de' Greci\",1817 => \"Castrignano del Capo\",1818 => \"Castro\",1819 => \"Castro\",1820 => \"Castro dei Volsci\",8167 => \"Castro Marina\",1821 => \"Castrocaro terme e terra del Sole\",1822 => \"Castrocielo\",1823 => \"Castrofilippo\",1824 => \"Castrolibero\",1825 => \"Castronno\",1826 => \"Castronuovo di Sant'Andrea\",1827 => \"Castronuovo di Sicilia\",1828 => \"Castropignano\",1829 => \"Castroreale\",1830 => \"Castroregio\",1831 => \"Castrovillari\",1832 => \"Catania\",8273 => \"Catania Fontanarossa\",1833 => \"Catanzaro\",1834 => \"Catenanuova\",1835 => \"Catignano\",8281 => \"Catinaccio\",1836 => \"Cattolica\",1837 => \"Cattolica Eraclea\",1838 => \"Caulonia\",8673 => \"Caulonia Marina\",1839 => \"Cautano\",1840 => \"Cava de' Tirreni\",1841 => \"Cava manara\",1842 => \"Cavacurta\",1843 => \"Cavaglia'\",1844 => \"Cavaglietto\",1845 => \"Cavaglio d'Agogna\",1846 => \"Cavaglio Spoccia\",1847 => \"Cavagnolo\",1848 => \"Cavaion veronese\",1849 => \"Cavalese\",1850 => \"Cavallasca\",1851 => \"Cavallerleone\",1852 => \"Cavallermaggiore\",1853 => \"Cavallino\",8657 => \"Cavallino\",1854 => \"Cavallino treporti\",1855 => \"Cavallirio\",1856 => \"Cavareno\",1857 => \"Cavargna\",1858 => \"Cavaria con Premezzo\",1859 => \"Cavarzere\",1860 => \"Cavaso del Tomba\",1861 => \"Cavasso nuovo\",1862 => \"Cavatore\",1863 => \"Cavazzo carnico\",1864 => \"Cave\",1865 => \"Cavedago\",1866 => \"Cavedine\",1867 => \"Cavenago d'Adda\",1868 => \"Cavenago di brianza\",1869 => \"Cavernago\",1870 => \"Cavezzo\",1871 => \"Cavizzana\",1872 => \"Cavour\",1873 => \"Cavriago\",1874 => \"Cavriana\",1875 => \"Cavriglia\",1876 => \"Cazzago Brabbia\",1877 => \"Cazzago San Martino\",1878 => \"Cazzano di Tramigna\",1879 => \"Cazzano Sant'Andrea\",1880 => \"Ceccano\",1881 => \"Cecima\",1882 => \"Cecina\",1883 => \"Cedegolo\",1884 => \"Cedrasco\",1885 => \"Cefala' Diana\",1886 => \"Cefalu'\",1887 => \"Ceggia\",1888 => \"Ceglie Messapica\",1889 => \"Celano\",1890 => \"Celenza sul Trigno\",1891 => \"Celenza valfortore\",1892 => \"Celico\",1893 => \"Cella dati\",1894 => \"Cella monte\",1895 => \"Cellamare\",1896 => \"Cellara\",1897 => \"Cellarengo\",1898 => \"Cellatica\",1899 => \"Celle di Bulgheria\",1900 => \"Celle di Macra\",1901 => \"Celle di San Vito\",1902 => \"Celle Enomondo\",1903 => \"Celle ligure\",1904 => \"Celleno\",1905 => \"Cellere\",1906 => \"Cellino Attanasio\",1907 => \"Cellino San Marco\",1908 => \"Cellio\",1909 => \"Cellole\",1910 => \"Cembra\",1911 => \"Cenadi\",1912 => \"Cenate sopra\",1913 => \"Cenate sotto\",1914 => \"Cencenighe Agordino\",1915 => \"Cene\",1916 => \"Ceneselli\",1917 => \"Cengio\",1918 => \"Centa San Nicolo'\",1919 => \"Centallo\",1920 => \"Cento\",1921 => \"Centola\",1922 => \"Centrache\",1923 => \"Centuripe\",1924 => \"Cepagatti\",1925 => \"Ceppaloni\",1926 => \"Ceppo Morelli\",1927 => \"Ceprano\",1928 => \"Cerami\",1929 => \"Ceranesi\",1930 => \"Cerano\",1931 => \"Cerano d'intelvi\",1932 => \"Ceranova\",1933 => \"Ceraso\",1934 => \"Cercemaggiore\",1935 => \"Cercenasco\",1936 => \"Cercepiccola\",1937 => \"Cerchiara di Calabria\",1938 => \"Cerchio\",1939 => \"Cercino\",1940 => \"Cercivento\",1941 => \"Cercola\",1942 => \"Cerda\",1943 => \"Cerea\",1944 => \"Ceregnano\",1945 => \"Cerenzia\",1946 => \"Ceres\",1947 => \"Ceresara\",1948 => \"Cereseto\",1949 => \"Ceresole Alba\",1950 => \"Ceresole reale\",1951 => \"Cerete\",1952 => \"Ceretto lomellina\",1953 => \"Cergnago\",1954 => \"Ceriale\",1955 => \"Ceriana\",1956 => \"Ceriano Laghetto\",1957 => \"Cerignale\",1958 => \"Cerignola\",1959 => \"Cerisano\",1960 => \"Cermenate\",1961 => \"Cermes\",1962 => \"Cermignano\",1963 => \"Cernobbio\",1964 => \"Cernusco lombardone\",1965 => \"Cernusco sul Naviglio\",1966 => \"Cerreto Castello\",1967 => \"Cerreto d'Asti\",1968 => \"Cerreto d'Esi\",1969 => \"Cerreto di Spoleto\",1970 => \"Cerreto Grue\",1971 => \"Cerreto Guidi\",1972 => \"Cerreto langhe\",1973 => \"Cerreto laziale\",1974 => \"Cerreto sannita\",1975 => \"Cerrina monferrato\",1976 => \"Cerrione\",1977 => \"Cerro al Lambro\",1978 => \"Cerro al Volturno\",1979 => \"Cerro maggiore\",1980 => \"Cerro Tanaro\",1981 => \"Cerro veronese\",8396 => \"Cersosimo\",1983 => \"Certaldo\",1984 => \"Certosa di Pavia\",1985 => \"Cerva\",1986 => \"Cervara di Roma\",1987 => \"Cervarese Santa Croce\",1988 => \"Cervaro\",1989 => \"Cervasca\",1990 => \"Cervatto\",1991 => \"Cerveno\",1992 => \"Cervere\",1993 => \"Cervesina\",1994 => \"Cerveteri\",1995 => \"Cervia\",1996 => \"Cervicati\",1997 => \"Cervignano d'Adda\",1998 => \"Cervignano del Friuli\",1999 => \"Cervinara\",2000 => \"Cervino\",2001 => \"Cervo\",2002 => \"Cerzeto\",2003 => \"Cesa\",2004 => \"Cesana brianza\",2005 => \"Cesana torinese\",2006 => \"Cesano Boscone\",2007 => \"Cesano Maderno\",2008 => \"Cesara\",2009 => \"Cesaro'\",2010 => \"Cesate\",2011 => \"Cesena\",2012 => \"Cesenatico\",2013 => \"Cesinali\",2014 => \"Cesio\",2015 => \"Cesiomaggiore\",2016 => \"Cessalto\",2017 => \"Cessaniti\",2018 => \"Cessapalombo\",2019 => \"Cessole\",2020 => \"Cetara\",2021 => \"Ceto\",2022 => \"Cetona\",2023 => \"Cetraro\",2024 => \"Ceva\",8721 => \"Cevedale\",2025 => \"Cevo\",2026 => \"Challand Saint Anselme\",2027 => \"Challand Saint Victor\",2028 => \"Chambave\",2029 => \"Chamois\",8255 => \"Chamole`\",2030 => \"Champdepraz\",8225 => \"Champoluc\",2031 => \"Champorcher\",8331 => \"Champorcher Cimetta Rossa\",8330 => \"Champorcher Laris\",2032 => \"Charvensod\",2033 => \"Chatillon\",2034 => \"Cherasco\",2035 => \"Cheremule\",8668 => \"Chesal\",2036 => \"Chialamberto\",2037 => \"Chiampo\",2038 => \"Chianche\",2039 => \"Chianciano terme\",2040 => \"Chianni\",2041 => \"Chianocco\",2042 => \"Chiaramonte Gulfi\",2043 => \"Chiaramonti\",2044 => \"Chiarano\",2045 => \"Chiaravalle\",2046 => \"Chiaravalle centrale\",8151 => \"Chiareggio\",2047 => \"Chiari\",2048 => \"Chiaromonte\",8432 => \"Chiasso\",2049 => \"Chiauci\",2050 => \"Chiavari\",2051 => \"Chiavenna\",2052 => \"Chiaverano\",2053 => \"Chienes\",2054 => \"Chieri\",2055 => \"Chies d'Alpago\",2056 => \"Chiesa in valmalenco\",2057 => \"Chiesanuova\",2058 => \"Chiesina uzzanese\",2059 => \"Chieti\",8319 => \"Chieti Scalo\",2060 => \"Chieuti\",2061 => \"Chieve\",2062 => \"Chignolo d'Isola\",2063 => \"Chignolo Po\",2064 => \"Chioggia\",2065 => \"Chiomonte\",2066 => \"Chions\",2067 => \"Chiopris Viscone\",2068 => \"Chitignano\",2069 => \"Chiuduno\",2070 => \"Chiuppano\",2071 => \"Chiuro\",2072 => \"Chiusa\",2073 => \"Chiusa di Pesio\",2074 => \"Chiusa di San Michele\",2075 => \"Chiusa Sclafani\",2076 => \"Chiusaforte\",2077 => \"Chiusanico\",2078 => \"Chiusano d'Asti\",2079 => \"Chiusano di San Domenico\",2080 => \"Chiusavecchia\",2081 => \"Chiusdino\",2082 => \"Chiusi\",2083 => \"Chiusi della Verna\",2084 => \"Chivasso\",8515 => \"Ciampac Alba\",2085 => \"Ciampino\",2086 => \"Cianciana\",2087 => \"Cibiana di cadore\",2088 => \"Cicagna\",2089 => \"Cicala\",2090 => \"Cicciano\",2091 => \"Cicerale\",2092 => \"Ciciliano\",2093 => \"Cicognolo\",2094 => \"Ciconio\",2095 => \"Cigliano\",2096 => \"Ciglie'\",2097 => \"Cigognola\",2098 => \"Cigole\",2099 => \"Cilavegna\",8340 => \"Cima Durand\",8590 => \"Cima Pisciadu'\",8764 => \"Cima Plose\",8703 => \"Cima Portavescovo\",8282 => \"Cima Sole\",2100 => \"Cimadolmo\",2101 => \"Cimbergo\",8332 => \"Cime Bianche\",2102 => \"Cimego\",2103 => \"Cimina'\",2104 => \"Ciminna\",2105 => \"Cimitile\",2106 => \"Cimolais\",8433 => \"Cimoncino\",2107 => \"Cimone\",2108 => \"Cinaglio\",2109 => \"Cineto romano\",2110 => \"Cingia de' Botti\",2111 => \"Cingoli\",2112 => \"Cinigiano\",2113 => \"Cinisello Balsamo\",2114 => \"Cinisi\",2115 => \"Cino\",2116 => \"Cinquefrondi\",2117 => \"Cintano\",2118 => \"Cinte tesino\",2119 => \"Cinto Caomaggiore\",2120 => \"Cinto Euganeo\",2121 => \"Cinzano\",2122 => \"Ciorlano\",2123 => \"Cipressa\",2124 => \"Circello\",2125 => \"Cirie'\",2126 => \"Cirigliano\",2127 => \"Cirimido\",2128 => \"Ciro'\",2129 => \"Ciro' marina\",2130 => \"Cis\",2131 => \"Cisano bergamasco\",2132 => \"Cisano sul Neva\",2133 => \"Ciserano\",2134 => \"Cislago\",2135 => \"Cisliano\",2136 => \"Cismon del Grappa\",2137 => \"Cison di valmarino\",2138 => \"Cissone\",2139 => \"Cisterna d'Asti\",2140 => \"Cisterna di Latina\",2141 => \"Cisternino\",2142 => \"Citerna\",8142 => \"Città del Vaticano\",2143 => \"Citta' della Pieve\",2144 => \"Citta' di Castello\",2145 => \"Citta' Sant'Angelo\",2146 => \"Cittadella\",2147 => \"Cittaducale\",2148 => \"Cittanova\",2149 => \"Cittareale\",2150 => \"Cittiglio\",2151 => \"Civate\",2152 => \"Civenna\",2153 => \"Civezza\",2154 => \"Civezzano\",2155 => \"Civiasco\",2156 => \"Cividale del Friuli\",2157 => \"Cividate al piano\",2158 => \"Cividate camuno\",2159 => \"Civita\",2160 => \"Civita Castellana\",2161 => \"Civita d'Antino\",2162 => \"Civitacampomarano\",2163 => \"Civitaluparella\",2164 => \"Civitanova del sannio\",2165 => \"Civitanova Marche\",8356 => \"Civitaquana\",2167 => \"Civitavecchia\",2168 => \"Civitella Alfedena\",2169 => \"Civitella Casanova\",2170 => \"Civitella d'Agliano\",2171 => \"Civitella del Tronto\",2172 => \"Civitella di Romagna\",2173 => \"Civitella in val di Chiana\",2174 => \"Civitella Messer Raimondo\",2175 => \"Civitella Paganico\",2176 => \"Civitella Roveto\",2177 => \"Civitella San Paolo\",2178 => \"Civo\",2179 => \"Claino con osteno\",2180 => \"Claut\",2181 => \"Clauzetto\",2182 => \"Clavesana\",2183 => \"Claviere\",2184 => \"Cles\",2185 => \"Cleto\",2186 => \"Clivio\",2187 => \"Cloz\",2188 => \"Clusone\",2189 => \"Coassolo torinese\",2190 => \"Coazze\",2191 => \"Coazzolo\",2192 => \"Coccaglio\",2193 => \"Cocconato\",2194 => \"Cocquio Trevisago\",2195 => \"Cocullo\",2196 => \"Codevigo\",2197 => \"Codevilla\",2198 => \"Codigoro\",2199 => \"Codogne'\",2200 => \"Codogno\",2201 => \"Codroipo\",2202 => \"Codrongianos\",2203 => \"Coggiola\",2204 => \"Cogliate\",2205 => \"Cogne\",8654 => \"Cogne Lillaz\",2206 => \"Cogoleto\",2207 => \"Cogollo del Cengio\",5049 => \"Cogolo\",2208 => \"Cogorno\",8354 => \"Col de Joux\",8604 => \"Col Indes\",2209 => \"Colazza\",2210 => \"Colbordolo\",2211 => \"Colere\",2212 => \"Colfelice\",8217 => \"Colfiorito\",8761 => \"Colfosco\",2213 => \"Coli\",2214 => \"Colico\",2215 => \"Collagna\",2216 => \"Collalto sabino\",2217 => \"Collarmele\",2218 => \"Collazzone\",8249 => \"Colle Bettaforca\",2219 => \"Colle Brianza\",2220 => \"Colle d'Anchise\",8687 => \"Colle del Gran San Bernardo\",8688 => \"Colle del Moncenisio\",8686 => \"Colle del Piccolo San Bernardo\",8481 => \"Colle del Prel\",2221 => \"Colle di Tora\",2222 => \"Colle di val d'Elsa\",2223 => \"Colle San Magno\",2224 => \"Colle sannita\",2225 => \"Colle Santa Lucia\",8246 => \"Colle Sarezza\",2226 => \"Colle Umberto\",2227 => \"Collebeato\",2228 => \"Collecchio\",2229 => \"Collecorvino\",2230 => \"Colledara\",8453 => \"Colledara casello\",2231 => \"Colledimacine\",2232 => \"Colledimezzo\",2233 => \"Colleferro\",2234 => \"Collegiove\",2235 => \"Collegno\",2236 => \"Collelongo\",2237 => \"Collepardo\",2238 => \"Collepasso\",2239 => \"Collepietro\",2240 => \"Colleretto castelnuovo\",2241 => \"Colleretto Giacosa\",2242 => \"Collesalvetti\",2243 => \"Collesano\",2244 => \"Colletorto\",2245 => \"Collevecchio\",2246 => \"Colli a volturno\",2247 => \"Colli del Tronto\",2248 => \"Colli sul Velino\",2249 => \"Colliano\",2250 => \"Collinas\",2251 => \"Collio\",2252 => \"Collobiano\",2253 => \"Colloredo di monte Albano\",2254 => \"Colmurano\",2255 => \"Colobraro\",2256 => \"Cologna veneta\",2257 => \"Cologne\",2258 => \"Cologno al Serio\",2259 => \"Cologno monzese\",2260 => \"Colognola ai Colli\",2261 => \"Colonna\",2262 => \"Colonnella\",2263 => \"Colonno\",2264 => \"Colorina\",2265 => \"Colorno\",2266 => \"Colosimi\",2267 => \"Colturano\",2268 => \"Colzate\",2269 => \"Comabbio\",2270 => \"Comacchio\",2271 => \"Comano\",2272 => \"Comazzo\",2273 => \"Comeglians\",2274 => \"Comelico superiore\",2275 => \"Comerio\",2276 => \"Comezzano Cizzago\",2277 => \"Comignago\",2278 => \"Comiso\",2279 => \"Comitini\",2280 => \"Comiziano\",2281 => \"Commessaggio\",2282 => \"Commezzadura\",2283 => \"Como\",2284 => \"Compiano\",8711 => \"Comprensorio Cimone\",2285 => \"Comun nuovo\",2286 => \"Comunanza\",2287 => \"Cona\",2288 => \"Conca Casale\",2289 => \"Conca dei Marini\",2290 => \"Conca della Campania\",2291 => \"Concamarise\",2292 => \"Concei\",2293 => \"Concerviano\",2294 => \"Concesio\",2295 => \"Conco\",2296 => \"Concordia Sagittaria\",2297 => \"Concordia sulla Secchia\",2298 => \"Concorezzo\",2299 => \"Condino\",2300 => \"Condofuri\",8689 => \"Condofuri Marina\",2301 => \"Condove\",2302 => \"Condro'\",2303 => \"Conegliano\",2304 => \"Confienza\",2305 => \"Configni\",2306 => \"Conflenti\",2307 => \"Coniolo\",2308 => \"Conselice\",2309 => \"Conselve\",2310 => \"Consiglio di Rumo\",2311 => \"Contessa Entellina\",2312 => \"Contigliano\",2313 => \"Contrada\",2314 => \"Controguerra\",2315 => \"Controne\",2316 => \"Contursi terme\",2317 => \"Conversano\",2318 => \"Conza della Campania\",2319 => \"Conzano\",2320 => \"Copertino\",2321 => \"Copiano\",2322 => \"Copparo\",2323 => \"Corana\",2324 => \"Corato\",2325 => \"Corbara\",2326 => \"Corbetta\",2327 => \"Corbola\",2328 => \"Corchiano\",2329 => \"Corciano\",2330 => \"Cordenons\",2331 => \"Cordignano\",2332 => \"Cordovado\",2333 => \"Coredo\",2334 => \"Coreglia Antelminelli\",2335 => \"Coreglia ligure\",2336 => \"Coreno Ausonio\",2337 => \"Corfinio\",2338 => \"Cori\",2339 => \"Coriano\",2340 => \"Corigliano calabro\",8110 => \"Corigliano Calabro Marina\",2341 => \"Corigliano d'Otranto\",2342 => \"Corinaldo\",2343 => \"Corio\",2344 => \"Corleone\",2345 => \"Corleto monforte\",2346 => \"Corleto Perticara\",2347 => \"Cormano\",2348 => \"Cormons\",2349 => \"Corna imagna\",2350 => \"Cornalba\",2351 => \"Cornale\",2352 => \"Cornaredo\",2353 => \"Cornate d'Adda\",2354 => \"Cornedo all'Isarco\",2355 => \"Cornedo vicentino\",2356 => \"Cornegliano laudense\",2357 => \"Corneliano d'Alba\",2358 => \"Corniglio\",8537 => \"Corno alle Scale\",8353 => \"Corno del Renon\",2359 => \"Corno di Rosazzo\",2360 => \"Corno Giovine\",2361 => \"Cornovecchio\",2362 => \"Cornuda\",2363 => \"Correggio\",2364 => \"Correzzana\",2365 => \"Correzzola\",2366 => \"Corrido\",2367 => \"Corridonia\",2368 => \"Corropoli\",2369 => \"Corsano\",2370 => \"Corsico\",2371 => \"Corsione\",2372 => \"Cortaccia sulla strada del vino\",2373 => \"Cortale\",2374 => \"Cortandone\",2375 => \"Cortanze\",2376 => \"Cortazzone\",2377 => \"Corte brugnatella\",2378 => \"Corte de' Cortesi con Cignone\",2379 => \"Corte de' Frati\",2380 => \"Corte Franca\",2381 => \"Corte Palasio\",2382 => \"Cortemaggiore\",2383 => \"Cortemilia\",2384 => \"Corteno Golgi\",2385 => \"Cortenova\",2386 => \"Cortenuova\",2387 => \"Corteolona\",2388 => \"Cortiglione\",2389 => \"Cortina d'Ampezzo\",2390 => \"Cortina sulla strada del vino\",2391 => \"Cortino\",2392 => \"Cortona\",2393 => \"Corvara\",2394 => \"Corvara in Badia\",2395 => \"Corvino san Quirico\",2396 => \"Corzano\",2397 => \"Coseano\",2398 => \"Cosenza\",2399 => \"Cosio di Arroscia\",2400 => \"Cosio valtellino\",2401 => \"Cosoleto\",2402 => \"Cossano belbo\",2403 => \"Cossano canavese\",2404 => \"Cossato\",2405 => \"Cosseria\",2406 => \"Cossignano\",2407 => \"Cossogno\",2408 => \"Cossoine\",2409 => \"Cossombrato\",2410 => \"Costa de' Nobili\",2411 => \"Costa di Mezzate\",2412 => \"Costa di Rovigo\",2413 => \"Costa di serina\",2414 => \"Costa masnaga\",8177 => \"Costa Rei\",2415 => \"Costa valle imagna\",2416 => \"Costa Vescovato\",2417 => \"Costa Volpino\",2418 => \"Costabissara\",2419 => \"Costacciaro\",2420 => \"Costanzana\",2421 => \"Costarainera\",2422 => \"Costermano\",2423 => \"Costigliole d'Asti\",2424 => \"Costigliole Saluzzo\",2425 => \"Cotignola\",2426 => \"Cotronei\",2427 => \"Cottanello\",8256 => \"Couis 2\",2428 => \"Courmayeur\",2429 => \"Covo\",2430 => \"Cozzo\",8382 => \"Craco\",2432 => \"Crandola valsassina\",2433 => \"Cravagliana\",2434 => \"Cravanzana\",2435 => \"Craveggia\",2436 => \"Creazzo\",2437 => \"Crecchio\",2438 => \"Credaro\",2439 => \"Credera Rubbiano\",2440 => \"Crema\",2441 => \"Cremella\",2442 => \"Cremenaga\",2443 => \"Cremeno\",2444 => \"Cremia\",2445 => \"Cremolino\",2446 => \"Cremona\",2447 => \"Cremosano\",2448 => \"Crescentino\",2449 => \"Crespadoro\",2450 => \"Crespano del Grappa\",2451 => \"Crespellano\",2452 => \"Crespiatica\",2453 => \"Crespina\",2454 => \"Crespino\",2455 => \"Cressa\",8247 => \"Crest\",8741 => \"Cresta Youla\",8646 => \"Crevacol\",2456 => \"Crevacuore\",2457 => \"Crevalcore\",2458 => \"Crevoladossola\",2459 => \"Crispano\",2460 => \"Crispiano\",2461 => \"Crissolo\",8355 => \"Crissolo Pian delle Regine\",2462 => \"Crocefieschi\",2463 => \"Crocetta del Montello\",2464 => \"Crodo\",2465 => \"Crognaleto\",2466 => \"Cropalati\",2467 => \"Cropani\",2468 => \"Crosa\",2469 => \"Crosia\",2470 => \"Crosio della valle\",2471 => \"Crotone\",8552 => \"Crotone Sant'Anna\",2472 => \"Crotta d'Adda\",2473 => \"Crova\",2474 => \"Croviana\",2475 => \"Crucoli\",2476 => \"Cuasso al monte\",2477 => \"Cuccaro monferrato\",2478 => \"Cuccaro Vetere\",2479 => \"Cucciago\",2480 => \"Cuceglio\",2481 => \"Cuggiono\",2482 => \"Cugliate-fabiasco\",2483 => \"Cuglieri\",2484 => \"Cugnoli\",8718 => \"Cuma\",2485 => \"Cumiana\",2486 => \"Cumignano sul Naviglio\",2487 => \"Cunardo\",2488 => \"Cuneo\",8553 => \"Cuneo Levaldigi\",2489 => \"Cunevo\",2490 => \"Cunico\",2491 => \"Cuorgne'\",2492 => \"Cupello\",2493 => \"Cupra marittima\",2494 => \"Cupramontana\",2495 => \"Cura carpignano\",2496 => \"Curcuris\",2497 => \"Cureggio\",2498 => \"Curiglia con Monteviasco\",2499 => \"Curinga\",2500 => \"Curino\",2501 => \"Curno\",2502 => \"Curon Venosta\",2503 => \"Cursi\",2504 => \"Cursolo orasso\",2505 => \"Curtarolo\",2506 => \"Curtatone\",2507 => \"Curti\",2508 => \"Cusago\",2509 => \"Cusano milanino\",2510 => \"Cusano Mutri\",2511 => \"Cusino\",2512 => \"Cusio\",2513 => \"Custonaci\",2514 => \"Cutigliano\",2515 => \"Cutro\",2516 => \"Cutrofiano\",2517 => \"Cuveglio\",2518 => \"Cuvio\",2519 => \"Daiano\",2520 => \"Dairago\",2521 => \"Dalmine\",2522 => \"Dambel\",2523 => \"Danta di cadore\",2524 => \"Daone\",2525 => \"Dare'\",2526 => \"Darfo Boario terme\",2527 => \"Dasa'\",2528 => \"Davagna\",2529 => \"Daverio\",2530 => \"Davoli\",2531 => \"Dazio\",2532 => \"Decimomannu\",2533 => \"Decimoputzu\",2534 => \"Decollatura\",2535 => \"Dego\",2536 => \"Deiva marina\",2537 => \"Delebio\",2538 => \"Delia\",2539 => \"Delianuova\",2540 => \"Deliceto\",2541 => \"Dello\",2542 => \"Demonte\",2543 => \"Denice\",2544 => \"Denno\",2545 => \"Dernice\",2546 => \"Derovere\",2547 => \"Deruta\",2548 => \"Dervio\",2549 => \"Desana\",2550 => \"Desenzano del Garda\",2551 => \"Desio\",2552 => \"Desulo\",2553 => \"Diamante\",2554 => \"Diano arentino\",2555 => \"Diano castello\",2556 => \"Diano d'Alba\",2557 => \"Diano marina\",2558 => \"Diano San Pietro\",2559 => \"Dicomano\",2560 => \"Dignano\",2561 => \"Dimaro\",2562 => \"Dinami\",2563 => \"Dipignano\",2564 => \"Diso\",2565 => \"Divignano\",2566 => \"Dizzasco\",2567 => \"Dobbiaco\",2568 => \"Doberdo' del lago\",8628 => \"Doganaccia\",2569 => \"Dogliani\",2570 => \"Dogliola\",2571 => \"Dogna\",2572 => \"Dolce'\",2573 => \"Dolceacqua\",2574 => \"Dolcedo\",2575 => \"Dolegna del collio\",2576 => \"Dolianova\",2577 => \"Dolo\",8616 => \"Dolonne\",2578 => \"Dolzago\",2579 => \"Domanico\",2580 => \"Domaso\",2581 => \"Domegge di cadore\",2582 => \"Domicella\",2583 => \"Domodossola\",2584 => \"Domus de Maria\",2585 => \"Domusnovas\",2586 => \"Don\",2587 => \"Donato\",2588 => \"Dongo\",2589 => \"Donnas\",2590 => \"Donori'\",2591 => \"Dorgali\",2592 => \"Dorio\",2593 => \"Dormelletto\",2594 => \"Dorno\",2595 => \"Dorsino\",2596 => \"Dorzano\",2597 => \"Dosolo\",2598 => \"Dossena\",2599 => \"Dosso del liro\",8323 => \"Dosso Pasò\",2600 => \"Doues\",2601 => \"Dovadola\",2602 => \"Dovera\",2603 => \"Dozza\",2604 => \"Dragoni\",2605 => \"Drapia\",2606 => \"Drena\",2607 => \"Drenchia\",2608 => \"Dresano\",2609 => \"Drezzo\",2610 => \"Drizzona\",2611 => \"Dro\",2612 => \"Dronero\",2613 => \"Druento\",2614 => \"Druogno\",2615 => \"Dualchi\",2616 => \"Dubino\",2617 => \"Due carrare\",2618 => \"Dueville\",2619 => \"Dugenta\",2620 => \"Duino aurisina\",2621 => \"Dumenza\",2622 => \"Duno\",2623 => \"Durazzano\",2624 => \"Duronia\",2625 => \"Dusino San Michele\",2626 => \"Eboli\",2627 => \"Edolo\",2628 => \"Egna\",2629 => \"Elice\",2630 => \"Elini\",2631 => \"Ello\",2632 => \"Elmas\",2633 => \"Elva\",2634 => \"Emarese\",2635 => \"Empoli\",2636 => \"Endine gaiano\",2637 => \"Enego\",2638 => \"Enemonzo\",2639 => \"Enna\",2640 => \"Entracque\",2641 => \"Entratico\",8222 => \"Entreves\",2642 => \"Envie\",8397 => \"Episcopia\",2644 => \"Eraclea\",2645 => \"Erba\",2646 => \"Erbe'\",2647 => \"Erbezzo\",2648 => \"Erbusco\",2649 => \"Erchie\",2650 => \"Ercolano\",8531 => \"Eremo di Camaldoli\",8606 => \"Eremo di Carpegna\",2651 => \"Erice\",2652 => \"Erli\",2653 => \"Erto e casso\",2654 => \"Erula\",2655 => \"Erve\",2656 => \"Esanatoglia\",2657 => \"Escalaplano\",2658 => \"Escolca\",2659 => \"Esine\",2660 => \"Esino lario\",2661 => \"Esperia\",2662 => \"Esporlatu\",2663 => \"Este\",2664 => \"Esterzili\",2665 => \"Etroubles\",2666 => \"Eupilio\",2667 => \"Exilles\",2668 => \"Fabbrica Curone\",2669 => \"Fabbriche di vallico\",2670 => \"Fabbrico\",2671 => \"Fabriano\",2672 => \"Fabrica di Roma\",2673 => \"Fabrizia\",2674 => \"Fabro\",8458 => \"Fabro casello\",2675 => \"Faedis\",2676 => \"Faedo\",2677 => \"Faedo valtellino\",2678 => \"Faenza\",2679 => \"Faeto\",2680 => \"Fagagna\",2681 => \"Faggeto lario\",2682 => \"Faggiano\",2683 => \"Fagnano alto\",2684 => \"Fagnano castello\",2685 => \"Fagnano olona\",2686 => \"Fai della paganella\",2687 => \"Faicchio\",2688 => \"Falcade\",2689 => \"Falciano del massico\",2690 => \"Falconara albanese\",2691 => \"Falconara marittima\",2692 => \"Falcone\",2693 => \"Faleria\",2694 => \"Falerna\",8116 => \"Falerna Marina\",2695 => \"Falerone\",2696 => \"Fallo\",2697 => \"Falmenta\",2698 => \"Faloppio\",2699 => \"Falvaterra\",2700 => \"Falzes\",2701 => \"Fanano\",2702 => \"Fanna\",2703 => \"Fano\",2704 => \"Fano adriano\",2705 => \"Fara Filiorum Petri\",2706 => \"Fara gera d'Adda\",2707 => \"Fara in sabina\",2708 => \"Fara novarese\",2709 => \"Fara Olivana con Sola\",2710 => \"Fara San Martino\",2711 => \"Fara vicentino\",8360 => \"Fardella\",2713 => \"Farigliano\",2714 => \"Farindola\",2715 => \"Farini\",2716 => \"Farnese\",2717 => \"Farra d'alpago\",2718 => \"Farra d'Isonzo\",2719 => \"Farra di soligo\",2720 => \"Fasano\",2721 => \"Fascia\",2722 => \"Fauglia\",2723 => \"Faule\",2724 => \"Favale di malvaro\",2725 => \"Favara\",2726 => \"Faver\",2727 => \"Favignana\",2728 => \"Favria\",2729 => \"Feisoglio\",2730 => \"Feletto\",2731 => \"Felino\",2732 => \"Felitto\",2733 => \"Felizzano\",2734 => \"Felonica\",2735 => \"Feltre\",2736 => \"Fenegro'\",2737 => \"Fenestrelle\",2738 => \"Fenis\",2739 => \"Ferentillo\",2740 => \"Ferentino\",2741 => \"Ferla\",2742 => \"Fermignano\",2743 => \"Fermo\",2744 => \"Ferno\",2745 => \"Feroleto Antico\",2746 => \"Feroleto della chiesa\",8370 => \"Ferrandina\",2748 => \"Ferrara\",2749 => \"Ferrara di monte Baldo\",2750 => \"Ferrazzano\",2751 => \"Ferrera di Varese\",2752 => \"Ferrera Erbognone\",2753 => \"Ferrere\",2754 => \"Ferriere\",2755 => \"Ferruzzano\",2756 => \"Fiamignano\",2757 => \"Fiano\",2758 => \"Fiano romano\",2759 => \"Fiastra\",2760 => \"Fiave'\",2761 => \"Ficarazzi\",2762 => \"Ficarolo\",2763 => \"Ficarra\",2764 => \"Ficulle\",2765 => \"Fidenza\",2766 => \"Fie' allo Sciliar\",2767 => \"Fiera di primiero\",2768 => \"Fierozzo\",2769 => \"Fiesco\",2770 => \"Fiesole\",2771 => \"Fiesse\",2772 => \"Fiesso d'Artico\",2773 => \"Fiesso Umbertiano\",2774 => \"Figino Serenza\",2775 => \"Figline valdarno\",2776 => \"Figline Vegliaturo\",2777 => \"Filacciano\",2778 => \"Filadelfia\",2779 => \"Filago\",2780 => \"Filandari\",2781 => \"Filattiera\",2782 => \"Filettino\",2783 => \"Filetto\",8392 => \"Filiano\",2785 => \"Filighera\",2786 => \"Filignano\",2787 => \"Filogaso\",2788 => \"Filottrano\",2789 => \"Finale emilia\",2790 => \"Finale ligure\",2791 => \"Fino del monte\",2792 => \"Fino Mornasco\",2793 => \"Fiorano al Serio\",2794 => \"Fiorano canavese\",2795 => \"Fiorano modenese\",2796 => \"Fiordimonte\",2797 => \"Fiorenzuola d'arda\",2798 => \"Firenze\",8270 => \"Firenze Peretola\",2799 => \"Firenzuola\",2800 => \"Firmo\",2801 => \"Fisciano\",2802 => \"Fiuggi\",2803 => \"Fiumalbo\",2804 => \"Fiumara\",8489 => \"Fiumata\",2805 => \"Fiume veneto\",2806 => \"Fiumedinisi\",2807 => \"Fiumefreddo Bruzio\",2808 => \"Fiumefreddo di Sicilia\",2809 => \"Fiumicello\",2810 => \"Fiumicino\",2811 => \"Fiuminata\",2812 => \"Fivizzano\",2813 => \"Flaibano\",2814 => \"Flavon\",2815 => \"Flero\",2816 => \"Floresta\",2817 => \"Floridia\",2818 => \"Florinas\",2819 => \"Flumeri\",2820 => \"Fluminimaggiore\",2821 => \"Flussio\",2822 => \"Fobello\",2823 => \"Foggia\",2824 => \"Foglianise\",2825 => \"Fogliano redipuglia\",2826 => \"Foglizzo\",2827 => \"Foiano della chiana\",2828 => \"Foiano di val fortore\",2829 => \"Folgaria\",8202 => \"Folgarida\",2830 => \"Folignano\",2831 => \"Foligno\",2832 => \"Follina\",2833 => \"Follo\",2834 => \"Follonica\",2835 => \"Fombio\",2836 => \"Fondachelli Fantina\",2837 => \"Fondi\",2838 => \"Fondo\",2839 => \"Fonni\",2840 => \"Fontainemore\",2841 => \"Fontana liri\",2842 => \"Fontanafredda\",2843 => \"Fontanarosa\",8185 => \"Fontane Bianche\",2844 => \"Fontanelice\",2845 => \"Fontanella\",2846 => \"Fontanellato\",2847 => \"Fontanelle\",2848 => \"Fontaneto d'Agogna\",2849 => \"Fontanetto po\",2850 => \"Fontanigorda\",2851 => \"Fontanile\",2852 => \"Fontaniva\",2853 => \"Fonte\",8643 => \"Fonte Cerreto\",2854 => \"Fonte Nuova\",2855 => \"Fontecchio\",2856 => \"Fontechiari\",2857 => \"Fontegreca\",2858 => \"Fonteno\",2859 => \"Fontevivo\",2860 => \"Fonzaso\",2861 => \"Foppolo\",8540 => \"Foppolo IV Baita\",2862 => \"Forano\",2863 => \"Force\",2864 => \"Forchia\",2865 => \"Forcola\",2866 => \"Fordongianus\",2867 => \"Forenza\",2868 => \"Foresto sparso\",2869 => \"Forgaria nel friuli\",2870 => \"Forino\",2871 => \"Forio\",8551 => \"Forlì Ridolfi\",2872 => \"Forli'\",2873 => \"Forli' del sannio\",2874 => \"Forlimpopoli\",2875 => \"Formazza\",2876 => \"Formello\",2877 => \"Formia\",2878 => \"Formicola\",2879 => \"Formigara\",2880 => \"Formigine\",2881 => \"Formigliana\",2882 => \"Formignana\",2883 => \"Fornace\",2884 => \"Fornelli\",2885 => \"Forni Avoltri\",2886 => \"Forni di sopra\",2887 => \"Forni di sotto\",8161 => \"Forno Alpi Graie\",2888 => \"Forno canavese\",2889 => \"Forno di Zoldo\",2890 => \"Fornovo di Taro\",2891 => \"Fornovo San Giovanni\",2892 => \"Forte dei marmi\",2893 => \"Fortezza\",2894 => \"Fortunago\",2895 => \"Forza d'Agro'\",2896 => \"Fosciandora\",8435 => \"Fosdinovo\",2898 => \"Fossa\",2899 => \"Fossacesia\",2900 => \"Fossalta di Piave\",2901 => \"Fossalta di Portogruaro\",2902 => \"Fossalto\",2903 => \"Fossano\",2904 => \"Fossato di vico\",2905 => \"Fossato serralta\",2906 => \"Fosso'\",2907 => \"Fossombrone\",2908 => \"Foza\",2909 => \"Frabosa soprana\",2910 => \"Frabosa sottana\",2911 => \"Fraconalto\",2912 => \"Fragagnano\",2913 => \"Fragneto l'abate\",2914 => \"Fragneto monforte\",2915 => \"Fraine\",2916 => \"Framura\",2917 => \"Francavilla al mare\",2918 => \"Francavilla angitola\",2919 => \"Francavilla bisio\",2920 => \"Francavilla d'ete\",2921 => \"Francavilla di Sicilia\",2922 => \"Francavilla fontana\",8380 => \"Francavilla in sinni\",2924 => \"Francavilla marittima\",2925 => \"Francica\",2926 => \"Francofonte\",2927 => \"Francolise\",2928 => \"Frascaro\",2929 => \"Frascarolo\",2930 => \"Frascati\",2931 => \"Frascineto\",2932 => \"Frassilongo\",2933 => \"Frassinelle polesine\",2934 => \"Frassinello monferrato\",2935 => \"Frassineto po\",2936 => \"Frassinetto\",2937 => \"Frassino\",2938 => \"Frassinoro\",2939 => \"Frasso sabino\",2940 => \"Frasso telesino\",2941 => \"Fratta polesine\",2942 => \"Fratta todina\",2943 => \"Frattamaggiore\",2944 => \"Frattaminore\",2945 => \"Fratte rosa\",2946 => \"Frazzano'\",8137 => \"Fregene\",2947 => \"Fregona\",8667 => \"Frejusia\",2948 => \"Fresagrandinaria\",2949 => \"Fresonara\",2950 => \"Frigento\",2951 => \"Frignano\",2952 => \"Frinco\",2953 => \"Frisa\",2954 => \"Frisanco\",2955 => \"Front\",8153 => \"Frontignano\",2956 => \"Frontino\",2957 => \"Frontone\",8751 => \"Frontone - Monte Catria\",2958 => \"Frosinone\",8464 => \"Frosinone casello\",2959 => \"Frosolone\",2960 => \"Frossasco\",2961 => \"Frugarolo\",2962 => \"Fubine\",2963 => \"Fucecchio\",2964 => \"Fuipiano valle imagna\",2965 => \"Fumane\",2966 => \"Fumone\",2967 => \"Funes\",2968 => \"Furci\",2969 => \"Furci siculo\",2970 => \"Furnari\",2971 => \"Furore\",2972 => \"Furtei\",2973 => \"Fuscaldo\",2974 => \"Fusignano\",2975 => \"Fusine\",8702 => \"Fusine di Zoldo\",8131 => \"Fusine in Valromana\",2976 => \"Futani\",2977 => \"Gabbioneta binanuova\",2978 => \"Gabiano\",2979 => \"Gabicce mare\",8252 => \"Gabiet\",2980 => \"Gaby\",2981 => \"Gadesco Pieve Delmona\",2982 => \"Gadoni\",2983 => \"Gaeta\",2984 => \"Gaggi\",2985 => \"Gaggiano\",2986 => \"Gaggio montano\",2987 => \"Gaglianico\",2988 => \"Gagliano aterno\",2989 => \"Gagliano castelferrato\",2990 => \"Gagliano del capo\",2991 => \"Gagliato\",2992 => \"Gagliole\",2993 => \"Gaiarine\",2994 => \"Gaiba\",2995 => \"Gaiola\",2996 => \"Gaiole in chianti\",2997 => \"Gairo\",2998 => \"Gais\",2999 => \"Galati Mamertino\",3000 => \"Galatina\",3001 => \"Galatone\",3002 => \"Galatro\",3003 => \"Galbiate\",3004 => \"Galeata\",3005 => \"Galgagnano\",3006 => \"Gallarate\",3007 => \"Gallese\",3008 => \"Galliate\",3009 => \"Galliate lombardo\",3010 => \"Galliavola\",3011 => \"Gallicano\",3012 => \"Gallicano nel Lazio\",8364 => \"Gallicchio\",3014 => \"Galliera\",3015 => \"Galliera veneta\",3016 => \"Gallinaro\",3017 => \"Gallio\",3018 => \"Gallipoli\",3019 => \"Gallo matese\",3020 => \"Gallodoro\",3021 => \"Galluccio\",8315 => \"Galluzzo\",3022 => \"Galtelli\",3023 => \"Galzignano terme\",3024 => \"Gamalero\",3025 => \"Gambara\",3026 => \"Gambarana\",8105 => \"Gambarie\",3027 => \"Gambasca\",3028 => \"Gambassi terme\",3029 => \"Gambatesa\",3030 => \"Gambellara\",3031 => \"Gamberale\",3032 => \"Gambettola\",3033 => \"Gambolo'\",3034 => \"Gambugliano\",3035 => \"Gandellino\",3036 => \"Gandino\",3037 => \"Gandosso\",3038 => \"Gangi\",8425 => \"Garaguso\",3040 => \"Garbagna\",3041 => \"Garbagna novarese\",3042 => \"Garbagnate milanese\",3043 => \"Garbagnate monastero\",3044 => \"Garda\",3045 => \"Gardone riviera\",3046 => \"Gardone val trompia\",3047 => \"Garessio\",8349 => \"Garessio 2000\",3048 => \"Gargallo\",3049 => \"Gargazzone\",3050 => \"Gargnano\",3051 => \"Garlasco\",3052 => \"Garlate\",3053 => \"Garlenda\",3054 => \"Garniga\",3055 => \"Garzeno\",3056 => \"Garzigliana\",3057 => \"Gasperina\",3058 => \"Gassino torinese\",3059 => \"Gattatico\",3060 => \"Gatteo\",3061 => \"Gattico\",3062 => \"Gattinara\",3063 => \"Gavardo\",3064 => \"Gavazzana\",3065 => \"Gavello\",3066 => \"Gaverina terme\",3067 => \"Gavi\",3068 => \"Gavignano\",3069 => \"Gavirate\",3070 => \"Gavoi\",3071 => \"Gavorrano\",3072 => \"Gazoldo degli ippoliti\",3073 => \"Gazzada schianno\",3074 => \"Gazzaniga\",3075 => \"Gazzo\",3076 => \"Gazzo veronese\",3077 => \"Gazzola\",3078 => \"Gazzuolo\",3079 => \"Gela\",3080 => \"Gemmano\",3081 => \"Gemona del friuli\",3082 => \"Gemonio\",3083 => \"Genazzano\",3084 => \"Genga\",3085 => \"Genivolta\",3086 => \"Genola\",3087 => \"Genoni\",3088 => \"Genova\",8506 => \"Genova Nervi\",8276 => \"Genova Sestri\",3089 => \"Genuri\",3090 => \"Genzano di lucania\",3091 => \"Genzano di roma\",3092 => \"Genzone\",3093 => \"Gera lario\",3094 => \"Gerace\",3095 => \"Geraci siculo\",3096 => \"Gerano\",8176 => \"Geremeas\",3097 => \"Gerenzago\",3098 => \"Gerenzano\",3099 => \"Gergei\",3100 => \"Germagnano\",3101 => \"Germagno\",3102 => \"Germasino\",3103 => \"Germignaga\",8303 => \"Gerno di Lesmo\",3104 => \"Gerocarne\",3105 => \"Gerola alta\",3106 => \"Gerosa\",3107 => \"Gerre de'caprioli\",3108 => \"Gesico\",3109 => \"Gessate\",3110 => \"Gessopalena\",3111 => \"Gesturi\",3112 => \"Gesualdo\",3113 => \"Ghedi\",3114 => \"Ghemme\",8236 => \"Ghiacciaio Presena\",3115 => \"Ghiffa\",3116 => \"Ghilarza\",3117 => \"Ghisalba\",3118 => \"Ghislarengo\",3119 => \"Giacciano con baruchella\",3120 => \"Giaglione\",3121 => \"Gianico\",3122 => \"Giano dell'umbria\",3123 => \"Giano vetusto\",3124 => \"Giardinello\",3125 => \"Giardini Naxos\",3126 => \"Giarole\",3127 => \"Giarratana\",3128 => \"Giarre\",3129 => \"Giave\",3130 => \"Giaveno\",3131 => \"Giavera del montello\",3132 => \"Giba\",3133 => \"Gibellina\",3134 => \"Gifflenga\",3135 => \"Giffone\",3136 => \"Giffoni sei casali\",3137 => \"Giffoni valle piana\",3380 => \"Giglio castello\",3138 => \"Gignese\",3139 => \"Gignod\",3140 => \"Gildone\",3141 => \"Gimigliano\",8403 => \"Ginestra\",3143 => \"Ginestra degli schiavoni\",8430 => \"Ginosa\",3145 => \"Gioi\",3146 => \"Gioia dei marsi\",3147 => \"Gioia del colle\",3148 => \"Gioia sannitica\",3149 => \"Gioia tauro\",3150 => \"Gioiosa ionica\",3151 => \"Gioiosa marea\",3152 => \"Giove\",3153 => \"Giovinazzo\",3154 => \"Giovo\",3155 => \"Girasole\",3156 => \"Girifalco\",3157 => \"Gironico\",3158 => \"Gissi\",3159 => \"Giuggianello\",3160 => \"Giugliano in campania\",3161 => \"Giuliana\",3162 => \"Giuliano di roma\",3163 => \"Giuliano teatino\",3164 => \"Giulianova\",3165 => \"Giuncugnano\",3166 => \"Giungano\",3167 => \"Giurdignano\",3168 => \"Giussago\",3169 => \"Giussano\",3170 => \"Giustenice\",3171 => \"Giustino\",3172 => \"Giusvalla\",3173 => \"Givoletto\",3174 => \"Gizzeria\",3175 => \"Glorenza\",3176 => \"Godega di sant'urbano\",3177 => \"Godiasco\",3178 => \"Godrano\",3179 => \"Goito\",3180 => \"Golasecca\",3181 => \"Golferenzo\",3182 => \"Golfo aranci\",3183 => \"Gombito\",3184 => \"Gonars\",3185 => \"Goni\",3186 => \"Gonnesa\",3187 => \"Gonnoscodina\",3188 => \"Gonnosfanadiga\",3189 => \"Gonnosno'\",3190 => \"Gonnostramatza\",3191 => \"Gonzaga\",3192 => \"Gordona\",3193 => \"Gorga\",3194 => \"Gorgo al monticano\",3195 => \"Gorgoglione\",3196 => \"Gorgonzola\",3197 => \"Goriano sicoli\",3198 => \"Gorizia\",3199 => \"Gorla maggiore\",3200 => \"Gorla minore\",3201 => \"Gorlago\",3202 => \"Gorle\",3203 => \"Gornate olona\",3204 => \"Gorno\",3205 => \"Goro\",3206 => \"Gorreto\",3207 => \"Gorzegno\",3208 => \"Gosaldo\",3209 => \"Gossolengo\",3210 => \"Gottasecca\",3211 => \"Gottolengo\",3212 => \"Govone\",3213 => \"Gozzano\",3214 => \"Gradara\",3215 => \"Gradisca d'isonzo\",3216 => \"Grado\",3217 => \"Gradoli\",3218 => \"Graffignana\",3219 => \"Graffignano\",3220 => \"Graglia\",3221 => \"Gragnano\",3222 => \"Gragnano trebbiense\",3223 => \"Grammichele\",8485 => \"Gran Paradiso\",3224 => \"Grana\",3225 => \"Granaglione\",3226 => \"Granarolo dell'emilia\",3227 => \"Grancona\",8728 => \"Grand Combin\",8327 => \"Grand Crot\",3228 => \"Grandate\",3229 => \"Grandola ed uniti\",3230 => \"Graniti\",3231 => \"Granozzo con monticello\",3232 => \"Grantola\",3233 => \"Grantorto\",3234 => \"Granze\",8371 => \"Grassano\",8504 => \"Grassina\",3236 => \"Grassobbio\",3237 => \"Gratteri\",3238 => \"Grauno\",3239 => \"Gravedona\",3240 => \"Gravellona lomellina\",3241 => \"Gravellona toce\",3242 => \"Gravere\",3243 => \"Gravina di Catania\",3244 => \"Gravina in puglia\",3245 => \"Grazzanise\",3246 => \"Grazzano badoglio\",3247 => \"Greccio\",3248 => \"Greci\",3249 => \"Greggio\",3250 => \"Gremiasco\",3251 => \"Gressan\",3252 => \"Gressoney la trinite'\",3253 => \"Gressoney saint jean\",3254 => \"Greve in chianti\",3255 => \"Grezzago\",3256 => \"Grezzana\",3257 => \"Griante\",3258 => \"Gricignano di aversa\",8733 => \"Grigna\",3259 => \"Grignasco\",3260 => \"Grigno\",3261 => \"Grimacco\",3262 => \"Grimaldi\",3263 => \"Grinzane cavour\",3264 => \"Grisignano di zocco\",3265 => \"Grisolia\",8520 => \"Grivola\",3266 => \"Grizzana morandi\",3267 => \"Grognardo\",3268 => \"Gromo\",3269 => \"Grondona\",3270 => \"Grone\",3271 => \"Grontardo\",3272 => \"Gropello cairoli\",3273 => \"Gropparello\",3274 => \"Groscavallo\",3275 => \"Grosio\",3276 => \"Grosotto\",3277 => \"Grosseto\",3278 => \"Grosso\",3279 => \"Grottaferrata\",3280 => \"Grottaglie\",3281 => \"Grottaminarda\",3282 => \"Grottammare\",3283 => \"Grottazzolina\",3284 => \"Grotte\",3285 => \"Grotte di castro\",3286 => \"Grotteria\",3287 => \"Grottole\",3288 => \"Grottolella\",3289 => \"Gruaro\",3290 => \"Grugliasco\",3291 => \"Grumello cremonese ed uniti\",3292 => \"Grumello del monte\",8414 => \"Grumento nova\",3294 => \"Grumes\",3295 => \"Grumo appula\",3296 => \"Grumo nevano\",3297 => \"Grumolo delle abbadesse\",3298 => \"Guagnano\",3299 => \"Gualdo\",3300 => \"Gualdo Cattaneo\",3301 => \"Gualdo tadino\",3302 => \"Gualtieri\",3303 => \"Gualtieri sicamino'\",3304 => \"Guamaggiore\",3305 => \"Guanzate\",3306 => \"Guarcino\",3307 => \"Guarda veneta\",3308 => \"Guardabosone\",3309 => \"Guardamiglio\",3310 => \"Guardavalle\",3311 => \"Guardea\",3312 => \"Guardia lombardi\",8365 => \"Guardia perticara\",3314 => \"Guardia piemontese\",3315 => \"Guardia sanframondi\",3316 => \"Guardiagrele\",3317 => \"Guardialfiera\",3318 => \"Guardiaregia\",3319 => \"Guardistallo\",3320 => \"Guarene\",3321 => \"Guasila\",3322 => \"Guastalla\",3323 => \"Guazzora\",3324 => \"Gubbio\",3325 => \"Gudo visconti\",3326 => \"Guglionesi\",3327 => \"Guidizzolo\",8508 => \"Guidonia\",3328 => \"Guidonia montecelio\",3329 => \"Guiglia\",3330 => \"Guilmi\",3331 => \"Gurro\",3332 => \"Guspini\",3333 => \"Gussago\",3334 => \"Gussola\",3335 => \"Hone\",8587 => \"I Prati\",3336 => \"Idro\",3337 => \"Iglesias\",3338 => \"Igliano\",3339 => \"Ilbono\",3340 => \"Illasi\",3341 => \"Illorai\",3342 => \"Imbersago\",3343 => \"Imer\",3344 => \"Imola\",3345 => \"Imperia\",3346 => \"Impruneta\",3347 => \"Inarzo\",3348 => \"Incisa in val d'arno\",3349 => \"Incisa scapaccino\",3350 => \"Incudine\",3351 => \"Induno olona\",3352 => \"Ingria\",3353 => \"Intragna\",3354 => \"Introbio\",3355 => \"Introd\",3356 => \"Introdacqua\",3357 => \"Introzzo\",3358 => \"Inverigo\",3359 => \"Inverno e monteleone\",3360 => \"Inverso pinasca\",3361 => \"Inveruno\",3362 => \"Invorio\",3363 => \"Inzago\",3364 => \"Ionadi\",3365 => \"Irgoli\",3366 => \"Irma\",3367 => \"Irsina\",3368 => \"Isasca\",3369 => \"Isca sullo ionio\",3370 => \"Ischia\",3371 => \"Ischia di castro\",3372 => \"Ischitella\",3373 => \"Iseo\",3374 => \"Isera\",3375 => \"Isernia\",3376 => \"Isili\",3377 => \"Isnello\",8742 => \"Isola Albarella\",3378 => \"Isola d'asti\",3379 => \"Isola del cantone\",8190 => \"Isola del Giglio\",3381 => \"Isola del gran sasso d'italia\",3382 => \"Isola del liri\",3383 => \"Isola del piano\",3384 => \"Isola della scala\",3385 => \"Isola delle femmine\",3386 => \"Isola di capo rizzuto\",3387 => \"Isola di fondra\",8671 => \"Isola di Giannutri\",3388 => \"Isola dovarese\",3389 => \"Isola rizza\",8173 => \"Isola Rossa\",8183 => \"Isola Salina\",3390 => \"Isola sant'antonio\",3391 => \"Isola vicentina\",3392 => \"Isolabella\",3393 => \"Isolabona\",3394 => \"Isole tremiti\",3395 => \"Isorella\",3396 => \"Ispani\",3397 => \"Ispica\",3398 => \"Ispra\",3399 => \"Issiglio\",3400 => \"Issime\",3401 => \"Isso\",3402 => \"Issogne\",3403 => \"Istrana\",3404 => \"Itala\",3405 => \"Itri\",3406 => \"Ittireddu\",3407 => \"Ittiri\",3408 => \"Ivano fracena\",3409 => \"Ivrea\",3410 => \"Izano\",3411 => \"Jacurso\",3412 => \"Jelsi\",3413 => \"Jenne\",3414 => \"Jerago con Orago\",3415 => \"Jerzu\",3416 => \"Jesi\",3417 => \"Jesolo\",3418 => \"Jolanda di Savoia\",3419 => \"Joppolo\",3420 => \"Joppolo Giancaxio\",3421 => \"Jovencan\",8568 => \"Klausberg\",3422 => \"L'Aquila\",3423 => \"La Cassa\",8227 => \"La Lechere\",3424 => \"La Loggia\",3425 => \"La Maddalena\",3426 => \"La Magdeleine\",3427 => \"La Morra\",8617 => \"La Palud\",3428 => \"La Salle\",3429 => \"La Spezia\",3430 => \"La Thuile\",3431 => \"La Valle\",3432 => \"La Valle Agordina\",8762 => \"La Villa\",3433 => \"Labico\",3434 => \"Labro\",3435 => \"Lacchiarella\",3436 => \"Lacco ameno\",3437 => \"Lacedonia\",8245 => \"Laceno\",3438 => \"Laces\",3439 => \"Laconi\",3440 => \"Ladispoli\",8571 => \"Ladurno\",3441 => \"Laerru\",3442 => \"Laganadi\",3443 => \"Laghi\",3444 => \"Laglio\",3445 => \"Lagnasco\",3446 => \"Lago\",3447 => \"Lagonegro\",3448 => \"Lagosanto\",3449 => \"Lagundo\",3450 => \"Laigueglia\",3451 => \"Lainate\",3452 => \"Laino\",3453 => \"Laino borgo\",3454 => \"Laino castello\",3455 => \"Laion\",3456 => \"Laives\",3457 => \"Lajatico\",3458 => \"Lallio\",3459 => \"Lama dei peligni\",3460 => \"Lama mocogno\",3461 => \"Lambrugo\",8477 => \"Lamezia Santa Eufemia\",3462 => \"Lamezia terme\",3463 => \"Lamon\",8179 => \"Lampedusa\",3464 => \"Lampedusa e linosa\",3465 => \"Lamporecchio\",3466 => \"Lamporo\",3467 => \"Lana\",3468 => \"Lanciano\",8467 => \"Lanciano casello\",3469 => \"Landiona\",3470 => \"Landriano\",3471 => \"Langhirano\",3472 => \"Langosco\",3473 => \"Lanusei\",3474 => \"Lanuvio\",3475 => \"Lanzada\",3476 => \"Lanzo d'intelvi\",3477 => \"Lanzo torinese\",3478 => \"Lapedona\",3479 => \"Lapio\",3480 => \"Lappano\",3481 => \"Larciano\",3482 => \"Lardaro\",3483 => \"Lardirago\",3484 => \"Lari\",3485 => \"Lariano\",3486 => \"Larino\",3487 => \"Las plassas\",3488 => \"Lasa\",3489 => \"Lascari\",3490 => \"Lasino\",3491 => \"Lasnigo\",3492 => \"Lastebasse\",3493 => \"Lastra a signa\",3494 => \"Latera\",3495 => \"Laterina\",3496 => \"Laterza\",3497 => \"Latiano\",3498 => \"Latina\",3499 => \"Latisana\",3500 => \"Latronico\",3501 => \"Lattarico\",3502 => \"Lauco\",3503 => \"Laureana cilento\",3504 => \"Laureana di borrello\",3505 => \"Lauregno\",3506 => \"Laurenzana\",3507 => \"Lauria\",3508 => \"Lauriano\",3509 => \"Laurino\",3510 => \"Laurito\",3511 => \"Lauro\",3512 => \"Lavagna\",3513 => \"Lavagno\",3514 => \"Lavarone\",3515 => \"Lavello\",3516 => \"Lavena ponte tresa\",3517 => \"Laveno mombello\",3518 => \"Lavenone\",3519 => \"Laviano\",8695 => \"Lavinio\",3520 => \"Lavis\",3521 => \"Lazise\",3522 => \"Lazzate\",8434 => \"Le polle\",3523 => \"Lecce\",3524 => \"Lecce nei marsi\",3525 => \"Lecco\",3526 => \"Leffe\",3527 => \"Leggiuno\",3528 => \"Legnago\",3529 => \"Legnano\",3530 => \"Legnaro\",3531 => \"Lei\",3532 => \"Leini\",3533 => \"Leivi\",3534 => \"Lemie\",3535 => \"Lendinara\",3536 => \"Leni\",3537 => \"Lenna\",3538 => \"Lenno\",3539 => \"Leno\",3540 => \"Lenola\",3541 => \"Lenta\",3542 => \"Lentate sul seveso\",3543 => \"Lentella\",3544 => \"Lentiai\",3545 => \"Lentini\",3546 => \"Leonessa\",3547 => \"Leonforte\",3548 => \"Leporano\",3549 => \"Lequile\",3550 => \"Lequio berria\",3551 => \"Lequio tanaro\",3552 => \"Lercara friddi\",3553 => \"Lerici\",3554 => \"Lerma\",8250 => \"Les Suches\",3555 => \"Lesa\",3556 => \"Lesegno\",3557 => \"Lesignano de 'bagni\",3558 => \"Lesina\",3559 => \"Lesmo\",3560 => \"Lessolo\",3561 => \"Lessona\",3562 => \"Lestizza\",3563 => \"Letino\",3564 => \"Letojanni\",3565 => \"Lettere\",3566 => \"Lettomanoppello\",3567 => \"Lettopalena\",3568 => \"Levanto\",3569 => \"Levate\",3570 => \"Leverano\",3571 => \"Levice\",3572 => \"Levico terme\",3573 => \"Levone\",3574 => \"Lezzeno\",3575 => \"Liberi\",3576 => \"Librizzi\",3577 => \"Licata\",3578 => \"Licciana nardi\",3579 => \"Licenza\",3580 => \"Licodia eubea\",8442 => \"Lido degli Estensi\",8441 => \"Lido delle Nazioni\",8200 => \"Lido di Camaiore\",8136 => \"Lido di Ostia\",8746 => \"Lido di Volano\",8594 => \"Lido Marini\",3581 => \"Lierna\",3582 => \"Lignana\",3583 => \"Lignano sabbiadoro\",3584 => \"Ligonchio\",3585 => \"Ligosullo\",3586 => \"Lillianes\",3587 => \"Limana\",3588 => \"Limatola\",3589 => \"Limbadi\",3590 => \"Limbiate\",3591 => \"Limena\",3592 => \"Limido comasco\",3593 => \"Limina\",3594 => \"Limone piemonte\",3595 => \"Limone sul garda\",3596 => \"Limosano\",3597 => \"Linarolo\",3598 => \"Linguaglossa\",8180 => \"Linosa\",3599 => \"Lioni\",3600 => \"Lipari\",3601 => \"Lipomo\",3602 => \"Lirio\",3603 => \"Liscate\",3604 => \"Liscia\",3605 => \"Lisciano niccone\",3606 => \"Lisignago\",3607 => \"Lisio\",3608 => \"Lissone\",3609 => \"Liveri\",3610 => \"Livigno\",3611 => \"Livinallongo del col di lana\",3613 => \"Livo\",3612 => \"Livo\",3614 => \"Livorno\",3615 => \"Livorno ferraris\",3616 => \"Livraga\",3617 => \"Lizzanello\",3618 => \"Lizzano\",3619 => \"Lizzano in belvedere\",8300 => \"Lizzola\",3620 => \"Loano\",3621 => \"Loazzolo\",3622 => \"Locana\",3623 => \"Locate di triulzi\",3624 => \"Locate varesino\",3625 => \"Locatello\",3626 => \"Loceri\",3627 => \"Locorotondo\",3628 => \"Locri\",3629 => \"Loculi\",3630 => \"Lode'\",3631 => \"Lodi\",3632 => \"Lodi vecchio\",3633 => \"Lodine\",3634 => \"Lodrino\",3635 => \"Lograto\",3636 => \"Loiano\",8748 => \"Loiano RFI\",3637 => \"Loiri porto san paolo\",3638 => \"Lomagna\",3639 => \"Lomaso\",3640 => \"Lomazzo\",3641 => \"Lombardore\",3642 => \"Lombriasco\",3643 => \"Lomello\",3644 => \"Lona lases\",3645 => \"Lonate ceppino\",3646 => \"Lonate pozzolo\",3647 => \"Lonato\",3648 => \"Londa\",3649 => \"Longano\",3650 => \"Longare\",3651 => \"Longarone\",3652 => \"Longhena\",3653 => \"Longi\",3654 => \"Longiano\",3655 => \"Longobardi\",3656 => \"Longobucco\",3657 => \"Longone al segrino\",3658 => \"Longone sabino\",3659 => \"Lonigo\",3660 => \"Loranze'\",3661 => \"Loreggia\",3662 => \"Loreglia\",3663 => \"Lorenzago di cadore\",3664 => \"Lorenzana\",3665 => \"Loreo\",3666 => \"Loreto\",3667 => \"Loreto aprutino\",3668 => \"Loria\",8523 => \"Lorica\",3669 => \"Loro ciuffenna\",3670 => \"Loro piceno\",3671 => \"Lorsica\",3672 => \"Losine\",3673 => \"Lotzorai\",3674 => \"Lovere\",3675 => \"Lovero\",3676 => \"Lozio\",3677 => \"Lozza\",3678 => \"Lozzo atestino\",3679 => \"Lozzo di cadore\",3680 => \"Lozzolo\",3681 => \"Lu\",3682 => \"Lubriano\",3683 => \"Lucca\",3684 => \"Lucca sicula\",3685 => \"Lucera\",3686 => \"Lucignano\",3687 => \"Lucinasco\",3688 => \"Lucito\",3689 => \"Luco dei marsi\",3690 => \"Lucoli\",3691 => \"Lugagnano val d'arda\",3692 => \"Lugnacco\",3693 => \"Lugnano in teverina\",3694 => \"Lugo\",3695 => \"Lugo di vicenza\",3696 => \"Luino\",3697 => \"Luisago\",3698 => \"Lula\",3699 => \"Lumarzo\",3700 => \"Lumezzane\",3701 => \"Lunamatrona\",3702 => \"Lunano\",3703 => \"Lungavilla\",3704 => \"Lungro\",3705 => \"Luogosano\",3706 => \"Luogosanto\",3707 => \"Lupara\",3708 => \"Lurago d'erba\",3709 => \"Lurago marinone\",3710 => \"Lurano\",3711 => \"Luras\",3712 => \"Lurate caccivio\",3713 => \"Lusciano\",8636 => \"Lusentino\",3714 => \"Luserna\",3715 => \"Luserna san giovanni\",3716 => \"Lusernetta\",3717 => \"Lusevera\",3718 => \"Lusia\",3719 => \"Lusiana\",3720 => \"Lusiglie'\",3721 => \"Luson\",3722 => \"Lustra\",8572 => \"Lutago\",3723 => \"Luvinate\",3724 => \"Luzzana\",3725 => \"Luzzara\",3726 => \"Luzzi\",8447 => \"L`Aquila est\",8446 => \"L`Aquila ovest\",3727 => \"Maccagno\",3728 => \"Maccastorna\",3729 => \"Macchia d'isernia\",3730 => \"Macchia valfortore\",3731 => \"Macchiagodena\",3732 => \"Macello\",3733 => \"Macerata\",3734 => \"Macerata campania\",3735 => \"Macerata feltria\",3736 => \"Macherio\",3737 => \"Maclodio\",3738 => \"Macomer\",3739 => \"Macra\",3740 => \"Macugnaga\",3741 => \"Maddaloni\",3742 => \"Madesimo\",3743 => \"Madignano\",3744 => \"Madone\",3745 => \"Madonna del sasso\",8201 => \"Madonna di Campiglio\",3746 => \"Maenza\",3747 => \"Mafalda\",3748 => \"Magasa\",3749 => \"Magenta\",3750 => \"Maggiora\",3751 => \"Magherno\",3752 => \"Magione\",3753 => \"Magisano\",3754 => \"Magliano alfieri\",3755 => \"Magliano alpi\",8461 => \"Magliano casello\",3756 => \"Magliano de' marsi\",3757 => \"Magliano di tenna\",3758 => \"Magliano in toscana\",3759 => \"Magliano romano\",3760 => \"Magliano sabina\",3761 => \"Magliano vetere\",3762 => \"Maglie\",3763 => \"Magliolo\",3764 => \"Maglione\",3765 => \"Magnacavallo\",3766 => \"Magnago\",3767 => \"Magnano\",3768 => \"Magnano in riviera\",8322 => \"Magnolta\",3769 => \"Magomadas\",3770 => \"Magre' sulla strada del vino\",3771 => \"Magreglio\",3772 => \"Maida\",3773 => \"Maiera'\",3774 => \"Maierato\",3775 => \"Maiolati spontini\",3776 => \"Maiolo\",3777 => \"Maiori\",3778 => \"Mairago\",3779 => \"Mairano\",3780 => \"Maissana\",3781 => \"Majano\",3782 => \"Malagnino\",3783 => \"Malalbergo\",3784 => \"Malborghetto valbruna\",3785 => \"Malcesine\",3786 => \"Male'\",3787 => \"Malegno\",3788 => \"Maleo\",3789 => \"Malesco\",3790 => \"Maletto\",3791 => \"Malfa\",8229 => \"Malga Ciapela\",8333 => \"Malga Polzone\",8661 => \"Malga San Giorgio\",3792 => \"Malgesso\",3793 => \"Malgrate\",3794 => \"Malito\",3795 => \"Mallare\",3796 => \"Malles Venosta\",3797 => \"Malnate\",3798 => \"Malo\",3799 => \"Malonno\",3800 => \"Malosco\",3801 => \"Maltignano\",3802 => \"Malvagna\",3803 => \"Malvicino\",3804 => \"Malvito\",3805 => \"Mammola\",3806 => \"Mamoiada\",3807 => \"Manciano\",3808 => \"Mandanici\",3809 => \"Mandas\",3810 => \"Mandatoriccio\",3811 => \"Mandela\",3812 => \"Mandello del lario\",3813 => \"Mandello vitta\",3814 => \"Manduria\",3815 => \"Manerba del garda\",3816 => \"Manerbio\",3817 => \"Manfredonia\",3818 => \"Mango\",3819 => \"Mangone\",3820 => \"Maniace\",3821 => \"Maniago\",3822 => \"Manocalzati\",3823 => \"Manoppello\",3824 => \"Mansue'\",3825 => \"Manta\",3826 => \"Mantello\",3827 => \"Mantova\",8129 => \"Manzano\",3829 => \"Manziana\",3830 => \"Mapello\",3831 => \"Mara\",3832 => \"Maracalagonis\",3833 => \"Maranello\",3834 => \"Marano di napoli\",3835 => \"Marano di valpolicella\",3836 => \"Marano equo\",3837 => \"Marano lagunare\",3838 => \"Marano marchesato\",3839 => \"Marano principato\",3840 => \"Marano sul panaro\",3841 => \"Marano ticino\",3842 => \"Marano vicentino\",3843 => \"Maranzana\",3844 => \"Maratea\",3845 => \"Marcallo con Casone\",3846 => \"Marcaria\",3847 => \"Marcedusa\",3848 => \"Marcellina\",3849 => \"Marcellinara\",3850 => \"Marcetelli\",3851 => \"Marcheno\",3852 => \"Marchirolo\",3853 => \"Marciana\",3854 => \"Marciana marina\",3855 => \"Marcianise\",3856 => \"Marciano della chiana\",3857 => \"Marcignago\",3858 => \"Marcon\",3859 => \"Marebbe\",8478 => \"Marene\",3861 => \"Mareno di piave\",3862 => \"Marentino\",3863 => \"Maretto\",3864 => \"Margarita\",3865 => \"Margherita di savoia\",3866 => \"Margno\",3867 => \"Mariana mantovana\",3868 => \"Mariano comense\",3869 => \"Mariano del friuli\",3870 => \"Marianopoli\",3871 => \"Mariglianella\",3872 => \"Marigliano\",8291 => \"Marilleva\",8490 => \"Marina di Arbus\",8599 => \"Marina di Camerota\",8582 => \"Marina di Campo\",8111 => \"Marina di Cariati\",8118 => \"Marina di Cetraro\",8175 => \"Marina di Gairo\",8164 => \"Marina di Ginosa\",3873 => \"Marina di gioiosa ionica\",8166 => \"Marina di Leuca\",8184 => \"Marina di Modica\",8156 => \"Marina di montenero\",8165 => \"Marina di Ostuni\",8186 => \"Marina di Palma\",8141 => \"Marina di Pescia Romana\",8591 => \"Marina di Pescoluse\",8298 => \"Marina di Pietrasanta\",8128 => \"Marina di Ravenna\",8174 => \"Marina di Sorso\",8188 => \"Marinella\",3874 => \"Marineo\",3875 => \"Marino\",3876 => \"Marlengo\",3877 => \"Marliana\",3878 => \"Marmentino\",3879 => \"Marmirolo\",8205 => \"Marmolada\",3880 => \"Marmora\",3881 => \"Marnate\",3882 => \"Marone\",3883 => \"Maropati\",3884 => \"Marostica\",8154 => \"Marotta\",3885 => \"Marradi\",3886 => \"Marrubiu\",3887 => \"Marsaglia\",3888 => \"Marsala\",3889 => \"Marsciano\",3890 => \"Marsico nuovo\",3891 => \"Marsicovetere\",3892 => \"Marta\",3893 => \"Martano\",3894 => \"Martellago\",3895 => \"Martello\",3896 => \"Martignacco\",3897 => \"Martignana di po\",3898 => \"Martignano\",3899 => \"Martina franca\",3900 => \"Martinengo\",3901 => \"Martiniana po\",3902 => \"Martinsicuro\",3903 => \"Martirano\",3904 => \"Martirano lombardo\",3905 => \"Martis\",3906 => \"Martone\",3907 => \"Marudo\",3908 => \"Maruggio\",3909 => \"Marzabotto\",3910 => \"Marzano\",3911 => \"Marzano appio\",3912 => \"Marzano di nola\",3913 => \"Marzi\",3914 => \"Marzio\",3915 => \"Masainas\",3916 => \"Masate\",3917 => \"Mascali\",3918 => \"Mascalucia\",3919 => \"Maschito\",3920 => \"Masciago primo\",3921 => \"Maser\",3922 => \"Masera\",3923 => \"Masera' di Padova\",3924 => \"Maserada sul piave\",3925 => \"Masi\",3926 => \"Masi torello\",3927 => \"Masio\",3928 => \"Maslianico\",8216 => \"Maso Corto\",3929 => \"Mason vicentino\",3930 => \"Masone\",3931 => \"Massa\",3932 => \"Massa d'albe\",3933 => \"Massa di somma\",3934 => \"Massa e cozzile\",3935 => \"Massa fermana\",3936 => \"Massa fiscaglia\",3937 => \"Massa lombarda\",3938 => \"Massa lubrense\",3939 => \"Massa marittima\",3940 => \"Massa martana\",3941 => \"Massafra\",3942 => \"Massalengo\",3943 => \"Massanzago\",3944 => \"Massarosa\",3945 => \"Massazza\",3946 => \"Massello\",3947 => \"Masserano\",3948 => \"Massignano\",3949 => \"Massimeno\",3950 => \"Massimino\",3951 => \"Massino visconti\",3952 => \"Massiola\",3953 => \"Masullas\",3954 => \"Matelica\",3955 => \"Matera\",3956 => \"Mathi\",3957 => \"Matino\",3958 => \"Matrice\",3959 => \"Mattie\",3960 => \"Mattinata\",3961 => \"Mazara del vallo\",3962 => \"Mazzano\",3963 => \"Mazzano romano\",3964 => \"Mazzarino\",3965 => \"Mazzarra' sant'andrea\",3966 => \"Mazzarrone\",3967 => \"Mazze'\",3968 => \"Mazzin\",3969 => \"Mazzo di valtellina\",3970 => \"Meana di susa\",3971 => \"Meana sardo\",3972 => \"Meda\",3973 => \"Mede\",3974 => \"Medea\",3975 => \"Medesano\",3976 => \"Medicina\",3977 => \"Mediglia\",3978 => \"Medolago\",3979 => \"Medole\",3980 => \"Medolla\",3981 => \"Meduna di livenza\",3982 => \"Meduno\",3983 => \"Megliadino san fidenzio\",3984 => \"Megliadino san vitale\",3985 => \"Meina\",3986 => \"Mel\",3987 => \"Melara\",3988 => \"Melazzo\",8443 => \"Meldola\",3990 => \"Mele\",3991 => \"Melegnano\",3992 => \"Melendugno\",3993 => \"Meleti\",8666 => \"Melezet\",3994 => \"Melfi\",3995 => \"Melicucca'\",3996 => \"Melicucco\",3997 => \"Melilli\",3998 => \"Melissa\",3999 => \"Melissano\",4000 => \"Melito di napoli\",4001 => \"Melito di porto salvo\",4002 => \"Melito irpino\",4003 => \"Melizzano\",4004 => \"Melle\",4005 => \"Mello\",4006 => \"Melpignano\",4007 => \"Meltina\",4008 => \"Melzo\",4009 => \"Menaggio\",4010 => \"Menarola\",4011 => \"Menconico\",4012 => \"Mendatica\",4013 => \"Mendicino\",4014 => \"Menfi\",4015 => \"Mentana\",4016 => \"Meolo\",4017 => \"Merana\",4018 => \"Merano\",8351 => \"Merano 2000\",4019 => \"Merate\",4020 => \"Mercallo\",4021 => \"Mercatello sul metauro\",4022 => \"Mercatino conca\",8437 => \"Mercato\",4023 => \"Mercato san severino\",4024 => \"Mercato saraceno\",4025 => \"Mercenasco\",4026 => \"Mercogliano\",4027 => \"Mereto di tomba\",4028 => \"Mergo\",4029 => \"Mergozzo\",4030 => \"Meri'\",4031 => \"Merlara\",4032 => \"Merlino\",4033 => \"Merone\",4034 => \"Mesagne\",4035 => \"Mese\",4036 => \"Mesenzana\",4037 => \"Mesero\",4038 => \"Mesola\",4039 => \"Mesoraca\",4040 => \"Messina\",4041 => \"Mestrino\",4042 => \"Meta\",8104 => \"Metaponto\",4043 => \"Meugliano\",4044 => \"Mezzago\",4045 => \"Mezzana\",4046 => \"Mezzana bigli\",4047 => \"Mezzana mortigliengo\",4048 => \"Mezzana rabattone\",4049 => \"Mezzane di sotto\",4050 => \"Mezzanego\",4051 => \"Mezzani\",4052 => \"Mezzanino\",4053 => \"Mezzano\",4054 => \"Mezzegra\",4055 => \"Mezzenile\",4056 => \"Mezzocorona\",4057 => \"Mezzojuso\",4058 => \"Mezzoldo\",4059 => \"Mezzolombardo\",4060 => \"Mezzomerico\",8524 => \"MI Olgettina\",8526 => \"MI Primaticcio\",8527 => \"MI Silla\",8525 => \"MI Zama\",4061 => \"Miagliano\",4062 => \"Miane\",4063 => \"Miasino\",4064 => \"Miazzina\",4065 => \"Micigliano\",4066 => \"Miggiano\",4067 => \"Miglianico\",4068 => \"Migliarino\",4069 => \"Migliaro\",4070 => \"Miglierina\",4071 => \"Miglionico\",4072 => \"Mignanego\",4073 => \"Mignano monte lungo\",4074 => \"Milano\",8495 => \"Milano Linate\",8496 => \"Milano Malpensa\",8240 => \"Milano marittima\",4075 => \"Milazzo\",4076 => \"Milena\",4077 => \"Mileto\",4078 => \"Milis\",4079 => \"Militello in val di catania\",4080 => \"Militello rosmarino\",4081 => \"Millesimo\",4082 => \"Milo\",4083 => \"Milzano\",4084 => \"Mineo\",4085 => \"Minerbe\",4086 => \"Minerbio\",4087 => \"Minervino di lecce\",4088 => \"Minervino murge\",4089 => \"Minori\",4090 => \"Minturno\",4091 => \"Minucciano\",4092 => \"Mioglia\",4093 => \"Mira\",4094 => \"Mirabella eclano\",4095 => \"Mirabella imbaccari\",4096 => \"Mirabello\",4097 => \"Mirabello monferrato\",4098 => \"Mirabello sannitico\",4099 => \"Miradolo terme\",4100 => \"Miranda\",4101 => \"Mirandola\",4102 => \"Mirano\",4103 => \"Mirto\",4104 => \"Misano adriatico\",4105 => \"Misano di gera d'adda\",4106 => \"Misilmeri\",4107 => \"Misinto\",4108 => \"Missaglia\",8416 => \"Missanello\",4110 => \"Misterbianco\",4111 => \"Mistretta\",8623 => \"Misurina\",4112 => \"Moasca\",4113 => \"Moconesi\",4114 => \"Modena\",4115 => \"Modica\",4116 => \"Modigliana\",4117 => \"Modolo\",4118 => \"Modugno\",4119 => \"Moena\",4120 => \"Moggio\",4121 => \"Moggio udinese\",4122 => \"Moglia\",4123 => \"Mogliano\",4124 => \"Mogliano veneto\",4125 => \"Mogorella\",4126 => \"Mogoro\",4127 => \"Moiano\",8615 => \"Moie\",4128 => \"Moimacco\",4129 => \"Moio Alcantara\",4130 => \"Moio de'calvi\",4131 => \"Moio della civitella\",4132 => \"Moiola\",4133 => \"Mola di bari\",4134 => \"Molare\",4135 => \"Molazzana\",4136 => \"Molfetta\",4137 => \"Molina aterno\",4138 => \"Molina di ledro\",4139 => \"Molinara\",4140 => \"Molinella\",4141 => \"Molini di triora\",4142 => \"Molino dei torti\",4143 => \"Molise\",4144 => \"Moliterno\",4145 => \"Mollia\",4146 => \"Molochio\",4147 => \"Molteno\",4148 => \"Moltrasio\",4149 => \"Molvena\",4150 => \"Molveno\",4151 => \"Mombaldone\",4152 => \"Mombarcaro\",4153 => \"Mombaroccio\",4154 => \"Mombaruzzo\",4155 => \"Mombasiglio\",4156 => \"Mombello di torino\",4157 => \"Mombello monferrato\",4158 => \"Mombercelli\",4159 => \"Momo\",4160 => \"Mompantero\",4161 => \"Mompeo\",4162 => \"Momperone\",4163 => \"Monacilioni\",4164 => \"Monale\",4165 => \"Monasterace\",4166 => \"Monastero bormida\",4167 => \"Monastero di lanzo\",4168 => \"Monastero di vasco\",4169 => \"Monasterolo casotto\",4170 => \"Monasterolo del castello\",4171 => \"Monasterolo di savigliano\",4172 => \"Monastier di treviso\",4173 => \"Monastir\",4174 => \"Moncalieri\",4175 => \"Moncalvo\",4176 => \"Moncenisio\",4177 => \"Moncestino\",4178 => \"Monchiero\",4179 => \"Monchio delle corti\",4180 => \"Monclassico\",4181 => \"Moncrivello\",8649 => \"Moncucco\",4182 => \"Moncucco torinese\",4183 => \"Mondaino\",4184 => \"Mondavio\",4185 => \"Mondolfo\",4186 => \"Mondovi'\",4187 => \"Mondragone\",4188 => \"Moneglia\",8143 => \"Monesi\",4189 => \"Monesiglio\",4190 => \"Monfalcone\",4191 => \"Monforte d'alba\",4192 => \"Monforte san giorgio\",4193 => \"Monfumo\",4194 => \"Mongardino\",4195 => \"Monghidoro\",4196 => \"Mongiana\",4197 => \"Mongiardino ligure\",8637 => \"Monginevro Montgenevre\",4198 => \"Mongiuffi melia\",4199 => \"Mongrando\",4200 => \"Mongrassano\",4201 => \"Monguelfo\",4202 => \"Monguzzo\",4203 => \"Moniga del garda\",4204 => \"Monleale\",4205 => \"Monno\",4206 => \"Monopoli\",4207 => \"Monreale\",4208 => \"Monrupino\",4209 => \"Monsampietro morico\",4210 => \"Monsampolo del tronto\",4211 => \"Monsano\",4212 => \"Monselice\",4213 => \"Monserrato\",4214 => \"Monsummano terme\",4215 => \"Monta'\",4216 => \"Montabone\",4217 => \"Montacuto\",4218 => \"Montafia\",4219 => \"Montagano\",4220 => \"Montagna\",4221 => \"Montagna in valtellina\",8301 => \"Montagnana\",4223 => \"Montagnareale\",4224 => \"Montagne\",4225 => \"Montaguto\",4226 => \"Montaione\",4227 => \"Montalbano Elicona\",4228 => \"Montalbano jonico\",4229 => \"Montalcino\",4230 => \"Montaldeo\",4231 => \"Montaldo bormida\",4232 => \"Montaldo di mondovi'\",4233 => \"Montaldo roero\",4234 => \"Montaldo scarampi\",4235 => \"Montaldo torinese\",4236 => \"Montale\",4237 => \"Montalenghe\",4238 => \"Montallegro\",4239 => \"Montalto delle marche\",4240 => \"Montalto di castro\",4241 => \"Montalto dora\",4242 => \"Montalto ligure\",4243 => \"Montalto pavese\",4244 => \"Montalto uffugo\",4245 => \"Montanaro\",4246 => \"Montanaso lombardo\",4247 => \"Montanera\",4248 => \"Montano antilia\",4249 => \"Montano lucino\",4250 => \"Montappone\",4251 => \"Montaquila\",4252 => \"Montasola\",4253 => \"Montauro\",4254 => \"Montazzoli\",8738 => \"Monte Alben\",8350 => \"Monte Amiata\",4255 => \"Monte Argentario\",8696 => \"Monte Avena\",8660 => \"Monte Baldo\",8251 => \"Monte Belvedere\",8720 => \"Monte Bianco\",8292 => \"Monte Bondone\",8757 => \"Monte Caio\",8149 => \"Monte Campione\",4256 => \"Monte Castello di Vibio\",4257 => \"Monte Cavallo\",4258 => \"Monte Cerignone\",8722 => \"Monte Cervino\",8533 => \"Monte Cimone\",4259 => \"Monte Colombo\",8658 => \"Monte Cornizzolo\",4260 => \"Monte Cremasco\",4261 => \"Monte di Malo\",4262 => \"Monte di Procida\",8581 => \"Monte Elmo\",8701 => \"Monte Faloria\",4263 => \"Monte Giberto\",8486 => \"Monte Gomito\",8232 => \"Monte Grappa\",4264 => \"Monte Isola\",8735 => \"Monte Legnone\",8631 => \"Monte Livata\",8574 => \"Monte Lussari\",8484 => \"Monte Malanotte\",4265 => \"Monte Marenzo\",8611 => \"Monte Matajur\",8732 => \"Monte Matto\",8266 => \"Monte Moro\",8697 => \"Monte Mucrone\",8619 => \"Monte Pigna\",8288 => \"Monte Pora Base\",8310 => \"Monte Pora Cima\",4266 => \"Monte Porzio\",4267 => \"Monte Porzio Catone\",8608 => \"Monte Prata\",8320 => \"Monte Pratello\",4268 => \"Monte Rinaldo\",4269 => \"Monte Roberto\",4270 => \"Monte Romano\",4271 => \"Monte San Biagio\",4272 => \"Monte San Giacomo\",4273 => \"Monte San Giovanni Campano\",4274 => \"Monte San Giovanni in Sabina\",4275 => \"Monte San Giusto\",4276 => \"Monte San Martino\",4277 => \"Monte San Pietrangeli\",4278 => \"Monte San Pietro\",8538 => \"Monte San Primo\",4279 => \"Monte San Savino\",8652 => \"Monte San Vigilio\",4280 => \"Monte San Vito\",4281 => \"Monte Sant'Angelo\",4282 => \"Monte Santa Maria Tiberina\",8570 => \"Monte Scuro\",8278 => \"Monte Spinale\",4283 => \"Monte Urano\",8758 => \"Monte Ventasso\",4284 => \"Monte Vidon Combatte\",4285 => \"Monte Vidon Corrado\",8729 => \"Monte Volturino\",8346 => \"Monte Zoncolan\",4286 => \"Montebello della Battaglia\",4287 => \"Montebello di Bertona\",4288 => \"Montebello Ionico\",4289 => \"Montebello sul Sangro\",4290 => \"Montebello Vicentino\",4291 => \"Montebelluna\",4292 => \"Montebruno\",4293 => \"Montebuono\",4294 => \"Montecalvo in Foglia\",4295 => \"Montecalvo Irpino\",4296 => \"Montecalvo Versiggia\",4297 => \"Montecarlo\",4298 => \"Montecarotto\",4299 => \"Montecassiano\",4300 => \"Montecastello\",4301 => \"Montecastrilli\",4303 => \"Montecatini terme\",4302 => \"Montecatini Val di Cecina\",4304 => \"Montecchia di Crosara\",4305 => \"Montecchio\",4306 => \"Montecchio Emilia\",4307 => \"Montecchio Maggiore\",4308 => \"Montecchio Precalcino\",4309 => \"Montechiaro d'Acqui\",4310 => \"Montechiaro d'Asti\",4311 => \"Montechiarugolo\",4312 => \"Monteciccardo\",4313 => \"Montecilfone\",4314 => \"Montecompatri\",4315 => \"Montecopiolo\",4316 => \"Montecorice\",4317 => \"Montecorvino Pugliano\",4318 => \"Montecorvino Rovella\",4319 => \"Montecosaro\",4320 => \"Montecrestese\",4321 => \"Montecreto\",4322 => \"Montedinove\",4323 => \"Montedoro\",4324 => \"Montefalcione\",4325 => \"Montefalco\",4326 => \"Montefalcone Appennino\",4327 => \"Montefalcone di Val Fortore\",4328 => \"Montefalcone nel Sannio\",4329 => \"Montefano\",4330 => \"Montefelcino\",4331 => \"Monteferrante\",4332 => \"Montefiascone\",4333 => \"Montefino\",4334 => \"Montefiore conca\",4335 => \"Montefiore dell'Aso\",4336 => \"Montefiorino\",4337 => \"Monteflavio\",4338 => \"Monteforte Cilento\",4339 => \"Monteforte d'Alpone\",4340 => \"Monteforte Irpino\",4341 => \"Montefortino\",4342 => \"Montefranco\",4343 => \"Montefredane\",4344 => \"Montefusco\",4345 => \"Montegabbione\",4346 => \"Montegalda\",4347 => \"Montegaldella\",4348 => \"Montegallo\",4349 => \"Montegioco\",4350 => \"Montegiordano\",4351 => \"Montegiorgio\",4352 => \"Montegranaro\",4353 => \"Montegridolfo\",4354 => \"Montegrimano\",4355 => \"Montegrino valtravaglia\",4356 => \"Montegrosso d'Asti\",4357 => \"Montegrosso pian latte\",4358 => \"Montegrotto terme\",4359 => \"Monteiasi\",4360 => \"Montelabbate\",4361 => \"Montelanico\",4362 => \"Montelapiano\",4363 => \"Monteleone d'orvieto\",4364 => \"Monteleone di fermo\",4365 => \"Monteleone di puglia\",4366 => \"Monteleone di spoleto\",4367 => \"Monteleone rocca doria\",4368 => \"Monteleone sabino\",4369 => \"Montelepre\",4370 => \"Montelibretti\",4371 => \"Montella\",4372 => \"Montello\",4373 => \"Montelongo\",4374 => \"Montelparo\",4375 => \"Montelupo albese\",4376 => \"Montelupo fiorentino\",4377 => \"Montelupone\",4378 => \"Montemaggiore al metauro\",4379 => \"Montemaggiore belsito\",4380 => \"Montemagno\",4381 => \"Montemale di cuneo\",4382 => \"Montemarano\",4383 => \"Montemarciano\",4384 => \"Montemarzino\",4385 => \"Montemesola\",4386 => \"Montemezzo\",4387 => \"Montemignaio\",4388 => \"Montemiletto\",8401 => \"Montemilone\",4390 => \"Montemitro\",4391 => \"Montemonaco\",4392 => \"Montemurlo\",8408 => \"Montemurro\",4394 => \"Montenars\",4395 => \"Montenero di bisaccia\",4396 => \"Montenero sabino\",4397 => \"Montenero val cocchiara\",4398 => \"Montenerodomo\",4399 => \"Monteodorisio\",4400 => \"Montepaone\",4401 => \"Monteparano\",8296 => \"Montepiano\",4402 => \"Monteprandone\",4403 => \"Montepulciano\",4404 => \"Monterado\",4405 => \"Monterchi\",4406 => \"Montereale\",4407 => \"Montereale valcellina\",4408 => \"Monterenzio\",4409 => \"Monteriggioni\",4410 => \"Monteroduni\",4411 => \"Monteroni d'arbia\",4412 => \"Monteroni di lecce\",4413 => \"Monterosi\",4414 => \"Monterosso al mare\",4415 => \"Monterosso almo\",4416 => \"Monterosso calabro\",4417 => \"Monterosso grana\",4418 => \"Monterotondo\",4419 => \"Monterotondo marittimo\",4420 => \"Monterubbiano\",4421 => \"Montesano salentino\",4422 => \"Montesano sulla marcellana\",4423 => \"Montesarchio\",8389 => \"Montescaglioso\",4425 => \"Montescano\",4426 => \"Montescheno\",4427 => \"Montescudaio\",4428 => \"Montescudo\",4429 => \"Montese\",4430 => \"Montesegale\",4431 => \"Montesilvano\",8491 => \"Montesilvano Marina\",4432 => \"Montespertoli\",1730 => \"Montespluga\",4433 => \"Monteu da Po\",4434 => \"Monteu roero\",4435 => \"Montevago\",4436 => \"Montevarchi\",4437 => \"Montevecchia\",4438 => \"Monteveglio\",4439 => \"Monteverde\",4440 => \"Monteverdi marittimo\",8589 => \"Montevergine\",4441 => \"Monteviale\",4442 => \"Montezemolo\",4443 => \"Monti\",4444 => \"Montiano\",4445 => \"Monticelli brusati\",4446 => \"Monticelli d'ongina\",4447 => \"Monticelli pavese\",4448 => \"Monticello brianza\",4449 => \"Monticello conte otto\",4450 => \"Monticello d'alba\",4451 => \"Montichiari\",4452 => \"Monticiano\",4453 => \"Montieri\",4454 => \"Montiglio monferrato\",4455 => \"Montignoso\",4456 => \"Montirone\",4457 => \"Montjovet\",4458 => \"Montodine\",4459 => \"Montoggio\",4460 => \"Montone\",4461 => \"Montopoli di sabina\",4462 => \"Montopoli in val d'arno\",4463 => \"Montorfano\",4464 => \"Montorio al vomano\",4465 => \"Montorio nei frentani\",4466 => \"Montorio romano\",4467 => \"Montoro inferiore\",4468 => \"Montoro superiore\",4469 => \"Montorso vicentino\",4470 => \"Montottone\",4471 => \"Montresta\",4472 => \"Montu' beccaria\",8326 => \"Montzeuc\",4473 => \"Monvalle\",8726 => \"Monviso\",4474 => \"Monza\",4475 => \"Monzambano\",4476 => \"Monzuno\",4477 => \"Morano calabro\",4478 => \"Morano sul Po\",4479 => \"Moransengo\",4480 => \"Moraro\",4481 => \"Morazzone\",4482 => \"Morbegno\",4483 => \"Morbello\",4484 => \"Morciano di leuca\",4485 => \"Morciano di romagna\",4486 => \"Morcone\",4487 => \"Mordano\",8262 => \"Morel\",4488 => \"Morengo\",4489 => \"Mores\",4490 => \"Moresco\",4491 => \"Moretta\",4492 => \"Morfasso\",4493 => \"Morgano\",8717 => \"Morgantina\",4494 => \"Morgex\",4495 => \"Morgongiori\",4496 => \"Mori\",4497 => \"Moriago della battaglia\",4498 => \"Moricone\",4499 => \"Morigerati\",4500 => \"Morimondo\",4501 => \"Morino\",4502 => \"Moriondo torinese\",4503 => \"Morlupo\",4504 => \"Mormanno\",4505 => \"Mornago\",4506 => \"Mornese\",4507 => \"Mornico al serio\",4508 => \"Mornico losana\",4509 => \"Morolo\",4510 => \"Morozzo\",4511 => \"Morra de sanctis\",4512 => \"Morro d'alba\",4513 => \"Morro d'oro\",4514 => \"Morro reatino\",4515 => \"Morrone del sannio\",4516 => \"Morrovalle\",4517 => \"Morsano al tagliamento\",4518 => \"Morsasco\",4519 => \"Mortara\",4520 => \"Mortegliano\",4521 => \"Morterone\",4522 => \"Moruzzo\",4523 => \"Moscazzano\",4524 => \"Moschiano\",4525 => \"Mosciano sant'angelo\",4526 => \"Moscufo\",4527 => \"Moso in Passiria\",4528 => \"Mossa\",4529 => \"Mossano\",4530 => \"Mosso Santa Maria\",4531 => \"Motta baluffi\",4532 => \"Motta Camastra\",4533 => \"Motta d'affermo\",4534 => \"Motta de' conti\",4535 => \"Motta di livenza\",4536 => \"Motta montecorvino\",4537 => \"Motta san giovanni\",4538 => \"Motta sant'anastasia\",4539 => \"Motta santa lucia\",4540 => \"Motta visconti\",4541 => \"Mottafollone\",4542 => \"Mottalciata\",8621 => \"Mottarone\",4543 => \"Motteggiana\",4544 => \"Mottola\",8254 => \"Mottolino\",4545 => \"Mozzagrogna\",4546 => \"Mozzanica\",4547 => \"Mozzate\",4548 => \"Mozzecane\",4549 => \"Mozzo\",4550 => \"Muccia\",4551 => \"Muggia\",4552 => \"Muggio'\",4553 => \"Mugnano del cardinale\",4554 => \"Mugnano di napoli\",4555 => \"Mulazzano\",4556 => \"Mulazzo\",4557 => \"Mura\",4558 => \"Muravera\",4559 => \"Murazzano\",4560 => \"Murello\",4561 => \"Murialdo\",4562 => \"Murisengo\",4563 => \"Murlo\",4564 => \"Muro leccese\",4565 => \"Muro lucano\",4566 => \"Muros\",4567 => \"Muscoline\",4568 => \"Musei\",4569 => \"Musile di piave\",4570 => \"Musso\",4571 => \"Mussolente\",4572 => \"Mussomeli\",4573 => \"Muzzana del turgnano\",4574 => \"Muzzano\",4575 => \"Nago torbole\",4576 => \"Nalles\",4577 => \"Nanno\",4578 => \"Nanto\",4579 => \"Napoli\",8498 => \"Napoli Capodichino\",4580 => \"Narbolia\",4581 => \"Narcao\",4582 => \"Nardo'\",4583 => \"Nardodipace\",4584 => \"Narni\",4585 => \"Naro\",4586 => \"Narzole\",4587 => \"Nasino\",4588 => \"Naso\",4589 => \"Naturno\",4590 => \"Nave\",4591 => \"Nave san rocco\",4592 => \"Navelli\",4593 => \"Naz Sciaves\",4594 => \"Nazzano\",4595 => \"Ne\",4596 => \"Nebbiuno\",4597 => \"Negrar\",4598 => \"Neirone\",4599 => \"Neive\",4600 => \"Nembro\",4601 => \"Nemi\",8381 => \"Nemoli\",4603 => \"Neoneli\",4604 => \"Nepi\",4605 => \"Nereto\",4606 => \"Nerola\",4607 => \"Nervesa della battaglia\",4608 => \"Nerviano\",4609 => \"Nespolo\",4610 => \"Nesso\",4611 => \"Netro\",4612 => \"Nettuno\",4613 => \"Neviano\",4614 => \"Neviano degli arduini\",4615 => \"Neviglie\",4616 => \"Niardo\",4617 => \"Nibbiano\",4618 => \"Nibbiola\",4619 => \"Nibionno\",4620 => \"Nichelino\",4621 => \"Nicolosi\",4622 => \"Nicorvo\",4623 => \"Nicosia\",4624 => \"Nicotera\",8117 => \"Nicotera Marina\",4625 => \"Niella belbo\",8475 => \"Niella Tanaro\",4627 => \"Nimis\",4628 => \"Niscemi\",4629 => \"Nissoria\",4630 => \"Nizza di sicilia\",4631 => \"Nizza monferrato\",4632 => \"Noale\",4633 => \"Noasca\",4634 => \"Nocara\",4635 => \"Nocciano\",4636 => \"Nocera inferiore\",4637 => \"Nocera superiore\",4638 => \"Nocera terinese\",4639 => \"Nocera umbra\",4640 => \"Noceto\",4641 => \"Noci\",4642 => \"Nociglia\",8375 => \"Noepoli\",4644 => \"Nogara\",4645 => \"Nogaredo\",4646 => \"Nogarole rocca\",4647 => \"Nogarole vicentino\",4648 => \"Noicattaro\",4649 => \"Nola\",4650 => \"Nole\",4651 => \"Noli\",4652 => \"Nomaglio\",4653 => \"Nomi\",4654 => \"Nonantola\",4655 => \"None\",4656 => \"Nonio\",4657 => \"Noragugume\",4658 => \"Norbello\",4659 => \"Norcia\",4660 => \"Norma\",4661 => \"Nosate\",4662 => \"Notaresco\",4663 => \"Noto\",4664 => \"Nova Levante\",4665 => \"Nova milanese\",4666 => \"Nova Ponente\",8428 => \"Nova siri\",4668 => \"Novafeltria\",4669 => \"Novaledo\",4670 => \"Novalesa\",4671 => \"Novara\",4672 => \"Novara di Sicilia\",4673 => \"Novate mezzola\",4674 => \"Novate milanese\",4675 => \"Nove\",4676 => \"Novedrate\",4677 => \"Novellara\",4678 => \"Novello\",4679 => \"Noventa di piave\",4680 => \"Noventa padovana\",4681 => \"Noventa vicentina\",4682 => \"Novi di modena\",4683 => \"Novi ligure\",4684 => \"Novi velia\",4685 => \"Noviglio\",4686 => \"Novoli\",4687 => \"Nucetto\",4688 => \"Nughedu di san nicolo'\",4689 => \"Nughedu santa vittoria\",4690 => \"Nule\",4691 => \"Nulvi\",4692 => \"Numana\",4693 => \"Nuoro\",4694 => \"Nurachi\",4695 => \"Nuragus\",4696 => \"Nurallao\",4697 => \"Nuraminis\",4698 => \"Nureci\",4699 => \"Nurri\",4700 => \"Nus\",4701 => \"Nusco\",4702 => \"Nuvolento\",4703 => \"Nuvolera\",4704 => \"Nuxis\",8260 => \"Obereggen\",4705 => \"Occhieppo inferiore\",4706 => \"Occhieppo superiore\",4707 => \"Occhiobello\",4708 => \"Occimiano\",4709 => \"Ocre\",4710 => \"Odalengo grande\",4711 => \"Odalengo piccolo\",4712 => \"Oderzo\",4713 => \"Odolo\",4714 => \"Ofena\",4715 => \"Offagna\",4716 => \"Offanengo\",4717 => \"Offida\",4718 => \"Offlaga\",4719 => \"Oggebbio\",4720 => \"Oggiona con santo stefano\",4721 => \"Oggiono\",4722 => \"Oglianico\",4723 => \"Ogliastro cilento\",4724 => \"Olbia\",8470 => \"Olbia Costa Smeralda\",4725 => \"Olcenengo\",4726 => \"Oldenico\",4727 => \"Oleggio\",4728 => \"Oleggio castello\",4729 => \"Olevano di lomellina\",4730 => \"Olevano romano\",4731 => \"Olevano sul tusciano\",4732 => \"Olgiate comasco\",4733 => \"Olgiate molgora\",4734 => \"Olgiate olona\",4735 => \"Olginate\",4736 => \"Oliena\",4737 => \"Oliva gessi\",4738 => \"Olivadi\",4739 => \"Oliveri\",4740 => \"Oliveto citra\",4741 => \"Oliveto lario\",8426 => \"Oliveto lucano\",4743 => \"Olivetta san michele\",4744 => \"Olivola\",4745 => \"Ollastra simaxis\",4746 => \"Ollolai\",4747 => \"Ollomont\",4748 => \"Olmedo\",4749 => \"Olmeneta\",4750 => \"Olmo al brembo\",4751 => \"Olmo gentile\",4752 => \"Oltre il colle\",4753 => \"Oltressenda alta\",4754 => \"Oltrona di san mamette\",4755 => \"Olzai\",4756 => \"Ome\",4757 => \"Omegna\",4758 => \"Omignano\",4759 => \"Onani\",4760 => \"Onano\",4761 => \"Oncino\",8283 => \"Oneglia\",4762 => \"Oneta\",4763 => \"Onifai\",4764 => \"Oniferi\",8664 => \"Onna\",4765 => \"Ono san pietro\",4766 => \"Onore\",4767 => \"Onzo\",4768 => \"Opera\",4769 => \"Opi\",4770 => \"Oppeano\",8409 => \"Oppido lucano\",4772 => \"Oppido mamertina\",4773 => \"Ora\",4774 => \"Orani\",4775 => \"Oratino\",4776 => \"Orbassano\",4777 => \"Orbetello\",4778 => \"Orciano di pesaro\",4779 => \"Orciano pisano\",4780 => \"Orco feglino\",4781 => \"Ordona\",4782 => \"Orero\",4783 => \"Orgiano\",4784 => \"Orgosolo\",4785 => \"Oria\",4786 => \"Oricola\",4787 => \"Origgio\",4788 => \"Orino\",4789 => \"Orio al serio\",4790 => \"Orio canavese\",4791 => \"Orio litta\",4792 => \"Oriolo\",4793 => \"Oriolo romano\",4794 => \"Oristano\",4795 => \"Ormea\",4796 => \"Ormelle\",4797 => \"Ornago\",4798 => \"Ornavasso\",4799 => \"Ornica\",8348 => \"Oropa\",8169 => \"Orosei\",4801 => \"Orotelli\",4802 => \"Orria\",4803 => \"Orroli\",4804 => \"Orsago\",4805 => \"Orsara bormida\",4806 => \"Orsara di puglia\",4807 => \"Orsenigo\",4808 => \"Orsogna\",4809 => \"Orsomarso\",4810 => \"Orta di atella\",4811 => \"Orta nova\",4812 => \"Orta san giulio\",4813 => \"Ortacesus\",4814 => \"Orte\",8460 => \"Orte casello\",4815 => \"Ortelle\",4816 => \"Ortezzano\",4817 => \"Ortignano raggiolo\",4818 => \"Ortisei\",8725 => \"Ortles\",4819 => \"Ortona\",4820 => \"Ortona dei marsi\",4821 => \"Ortonovo\",4822 => \"Ortovero\",4823 => \"Ortucchio\",4824 => \"Ortueri\",4825 => \"Orune\",4826 => \"Orvieto\",8459 => \"Orvieto casello\",4827 => \"Orvinio\",4828 => \"Orzinuovi\",4829 => \"Orzivecchi\",4830 => \"Osasco\",4831 => \"Osasio\",4832 => \"Oschiri\",4833 => \"Osidda\",4834 => \"Osiglia\",4835 => \"Osilo\",4836 => \"Osimo\",4837 => \"Osini\",4838 => \"Osio sopra\",4839 => \"Osio sotto\",4840 => \"Osmate\",4841 => \"Osnago\",8465 => \"Osoppo\",4843 => \"Ospedaletti\",4844 => \"Ospedaletto\",4845 => \"Ospedaletto d'alpinolo\",4846 => \"Ospedaletto euganeo\",4847 => \"Ospedaletto lodigiano\",4848 => \"Ospitale di cadore\",4849 => \"Ospitaletto\",4850 => \"Ossago lodigiano\",4851 => \"Ossana\",4852 => \"Ossi\",4853 => \"Ossimo\",4854 => \"Ossona\",4855 => \"Ossuccio\",4856 => \"Ostana\",4857 => \"Ostellato\",4858 => \"Ostiano\",4859 => \"Ostiglia\",4860 => \"Ostra\",4861 => \"Ostra vetere\",4862 => \"Ostuni\",4863 => \"Otranto\",4864 => \"Otricoli\",4865 => \"Ottana\",4866 => \"Ottati\",4867 => \"Ottaviano\",4868 => \"Ottiglio\",4869 => \"Ottobiano\",4870 => \"Ottone\",4871 => \"Oulx\",4872 => \"Ovada\",4873 => \"Ovaro\",4874 => \"Oviglio\",4875 => \"Ovindoli\",4876 => \"Ovodda\",4877 => \"Oyace\",4878 => \"Ozegna\",4879 => \"Ozieri\",4880 => \"Ozzano dell'emilia\",4881 => \"Ozzano monferrato\",4882 => \"Ozzero\",4883 => \"Pabillonis\",4884 => \"Pace del mela\",4885 => \"Paceco\",4886 => \"Pacentro\",4887 => \"Pachino\",4888 => \"Paciano\",4889 => \"Padenghe sul garda\",4890 => \"Padergnone\",4891 => \"Paderna\",4892 => \"Paderno d'adda\",4893 => \"Paderno del grappa\",4894 => \"Paderno dugnano\",4895 => \"Paderno franciacorta\",4896 => \"Paderno ponchielli\",4897 => \"Padova\",4898 => \"Padria\",4899 => \"Padru\",4900 => \"Padula\",4901 => \"Paduli\",4902 => \"Paesana\",4903 => \"Paese\",8713 => \"Paestum\",8203 => \"Paganella\",4904 => \"Pagani\",8663 => \"Paganica\",4905 => \"Paganico\",4906 => \"Pagazzano\",4907 => \"Pagliara\",4908 => \"Paglieta\",4909 => \"Pagnacco\",4910 => \"Pagno\",4911 => \"Pagnona\",4912 => \"Pago del vallo di lauro\",4913 => \"Pago veiano\",4914 => \"Paisco loveno\",4915 => \"Paitone\",4916 => \"Paladina\",8534 => \"Palafavera\",4917 => \"Palagano\",4918 => \"Palagianello\",4919 => \"Palagiano\",4920 => \"Palagonia\",4921 => \"Palaia\",4922 => \"Palanzano\",4923 => \"Palata\",4924 => \"Palau\",4925 => \"Palazzago\",4926 => \"Palazzo adriano\",4927 => \"Palazzo canavese\",4928 => \"Palazzo pignano\",4929 => \"Palazzo san gervasio\",4930 => \"Palazzolo acreide\",4931 => \"Palazzolo dello stella\",4932 => \"Palazzolo sull'Oglio\",4933 => \"Palazzolo vercellese\",4934 => \"Palazzuolo sul senio\",4935 => \"Palena\",4936 => \"Palermiti\",4937 => \"Palermo\",8575 => \"Palermo Boccadifalco\",8272 => \"Palermo Punta Raisi\",4938 => \"Palestrina\",4939 => \"Palestro\",4940 => \"Paliano\",8121 => \"Palinuro\",4941 => \"Palizzi\",8108 => \"Palizzi Marina\",4942 => \"Pallagorio\",4943 => \"Pallanzeno\",4944 => \"Pallare\",4945 => \"Palma campania\",4946 => \"Palma di montechiaro\",4947 => \"Palmanova\",4948 => \"Palmariggi\",4949 => \"Palmas arborea\",4950 => \"Palmi\",4951 => \"Palmiano\",4952 => \"Palmoli\",4953 => \"Palo del colle\",4954 => \"Palombara sabina\",4955 => \"Palombaro\",4956 => \"Palomonte\",4957 => \"Palosco\",4958 => \"Palu'\",4959 => \"Palu' del fersina\",4960 => \"Paludi\",4961 => \"Paluzza\",4962 => \"Pamparato\",8257 => \"Pampeago\",8753 => \"Panarotta\",4963 => \"Pancalieri\",8261 => \"Pancani\",4964 => \"Pancarana\",4965 => \"Panchia'\",4966 => \"Pandino\",4967 => \"Panettieri\",4968 => \"Panicale\",4969 => \"Pannarano\",4970 => \"Panni\",4971 => \"Pantelleria\",4972 => \"Pantigliate\",4973 => \"Paola\",4974 => \"Paolisi\",4975 => \"Papasidero\",4976 => \"Papozze\",4977 => \"Parabiago\",4978 => \"Parabita\",4979 => \"Paratico\",4980 => \"Parcines\",4981 => \"Pare'\",4982 => \"Parella\",4983 => \"Parenti\",4984 => \"Parete\",4985 => \"Pareto\",4986 => \"Parghelia\",4987 => \"Parlasco\",4988 => \"Parma\",8554 => \"Parma Verdi\",4989 => \"Parodi ligure\",4990 => \"Paroldo\",4991 => \"Parolise\",4992 => \"Parona\",4993 => \"Parrano\",4994 => \"Parre\",4995 => \"Partanna\",4996 => \"Partinico\",4997 => \"Paruzzaro\",4998 => \"Parzanica\",4999 => \"Pasian di prato\",5000 => \"Pasiano di pordenone\",5001 => \"Paspardo\",5002 => \"Passerano Marmorito\",5003 => \"Passignano sul trasimeno\",5004 => \"Passirano\",8613 => \"Passo Bernina\",8760 => \"Passo Campolongo\",8329 => \"Passo Costalunga\",8618 => \"Passo dei Salati\",8207 => \"Passo del Brennero\",8577 => \"Passo del Brocon\",8627 => \"Passo del Cerreto\",8147 => \"Passo del Foscagno\",8308 => \"Passo del Lupo\",8206 => \"Passo del Rombo\",8150 => \"Passo del Tonale\",8196 => \"Passo della Cisa\",8235 => \"Passo della Consuma\",8290 => \"Passo della Presolana\",8659 => \"Passo delle Fittanze\",8145 => \"Passo dello Stelvio\",8213 => \"Passo di Resia\",8752 => \"Passo di Vezzena\",8328 => \"Passo Fedaia\",8759 => \"Passo Gardena\",8277 => \"Passo Groste'\",8756 => \"Passo Lanciano\",8280 => \"Passo Pordoi\",8626 => \"Passo Pramollo\",8210 => \"Passo Rolle\",8279 => \"Passo San Pellegrino\",8325 => \"Passo Sella\",5005 => \"Pastena\",5006 => \"Pastorano\",5007 => \"Pastrengo\",5008 => \"Pasturana\",5009 => \"Pasturo\",8417 => \"Paterno\",5011 => \"Paterno calabro\",5012 => \"Paterno'\",5013 => \"Paternopoli\",5014 => \"Patrica\",5015 => \"Pattada\",5016 => \"Patti\",5017 => \"Patu'\",5018 => \"Pau\",5019 => \"Paularo\",5020 => \"Pauli arbarei\",5021 => \"Paulilatino\",5022 => \"Paullo\",5023 => \"Paupisi\",5024 => \"Pavarolo\",5025 => \"Pavia\",5026 => \"Pavia di udine\",5027 => \"Pavone canavese\",5028 => \"Pavone del mella\",5029 => \"Pavullo nel frignano\",5030 => \"Pazzano\",5031 => \"Peccioli\",5032 => \"Pecco\",5033 => \"Pecetto di valenza\",5034 => \"Pecetto torinese\",5035 => \"Pecorara\",5036 => \"Pedace\",5037 => \"Pedara\",5038 => \"Pedaso\",5039 => \"Pedavena\",5040 => \"Pedemonte\",5041 => \"Pederobba\",5042 => \"Pedesina\",5043 => \"Pedivigliano\",8473 => \"Pedraces\",5044 => \"Pedrengo\",5045 => \"Peglio\",5046 => \"Peglio\",5047 => \"Pegognaga\",5048 => \"Peia\",8665 => \"Pejo\",5050 => \"Pelago\",5051 => \"Pella\",5052 => \"Pellegrino parmense\",5053 => \"Pellezzano\",5054 => \"Pellio intelvi\",5055 => \"Pellizzano\",5056 => \"Pelugo\",5057 => \"Penango\",5058 => \"Penna in teverina\",5059 => \"Penna san giovanni\",5060 => \"Penna sant'andrea\",5061 => \"Pennabilli\",5062 => \"Pennadomo\",5063 => \"Pennapiedimonte\",5064 => \"Penne\",8208 => \"Pennes\",5065 => \"Pentone\",5066 => \"Perano\",5067 => \"Perarolo di cadore\",5068 => \"Perca\",5069 => \"Percile\",5070 => \"Perdasdefogu\",5071 => \"Perdaxius\",5072 => \"Perdifumo\",5073 => \"Perego\",5074 => \"Pereto\",5075 => \"Perfugas\",5076 => \"Pergine valdarno\",5077 => \"Pergine valsugana\",5078 => \"Pergola\",5079 => \"Perinaldo\",5080 => \"Perito\",5081 => \"Perledo\",5082 => \"Perletto\",5083 => \"Perlo\",5084 => \"Perloz\",5085 => \"Pernumia\",5086 => \"Pero\",5087 => \"Perosa argentina\",5088 => \"Perosa canavese\",5089 => \"Perrero\",5090 => \"Persico dosimo\",5091 => \"Pertengo\",5092 => \"Pertica alta\",5093 => \"Pertica bassa\",8586 => \"Perticara di Novafeltria\",5094 => \"Pertosa\",5095 => \"Pertusio\",5096 => \"Perugia\",8555 => \"Perugia Sant'Egidio\",5097 => \"Pesaro\",5098 => \"Pescaglia\",5099 => \"Pescantina\",5100 => \"Pescara\",8275 => \"Pescara Liberi\",5101 => \"Pescarolo ed uniti\",5102 => \"Pescasseroli\",5103 => \"Pescate\",8312 => \"Pescegallo\",5104 => \"Pesche\",5105 => \"Peschici\",5106 => \"Peschiera borromeo\",5107 => \"Peschiera del garda\",5108 => \"Pescia\",5109 => \"Pescina\",8454 => \"Pescina casello\",5110 => \"Pesco sannita\",5111 => \"Pescocostanzo\",5112 => \"Pescolanciano\",5113 => \"Pescopagano\",5114 => \"Pescopennataro\",5115 => \"Pescorocchiano\",5116 => \"Pescosansonesco\",5117 => \"Pescosolido\",5118 => \"Pessano con Bornago\",5119 => \"Pessina cremonese\",5120 => \"Pessinetto\",5121 => \"Petacciato\",5122 => \"Petilia policastro\",5123 => \"Petina\",5124 => \"Petralia soprana\",5125 => \"Petralia sottana\",5126 => \"Petrella salto\",5127 => \"Petrella tifernina\",5128 => \"Petriano\",5129 => \"Petriolo\",5130 => \"Petritoli\",5131 => \"Petrizzi\",5132 => \"Petrona'\",5133 => \"Petrosino\",5134 => \"Petruro irpino\",5135 => \"Pettenasco\",5136 => \"Pettinengo\",5137 => \"Pettineo\",5138 => \"Pettoranello del molise\",5139 => \"Pettorano sul gizio\",5140 => \"Pettorazza grimani\",5141 => \"Peveragno\",5142 => \"Pezzana\",5143 => \"Pezzaze\",5144 => \"Pezzolo valle uzzone\",5145 => \"Piacenza\",5146 => \"Piacenza d'adige\",5147 => \"Piadena\",5148 => \"Piagge\",5149 => \"Piaggine\",8706 => \"Piamprato\",5150 => \"Pian camuno\",8309 => \"Pian Cavallaro\",8233 => \"Pian del Cansiglio\",8642 => \"Pian del Frais\",8705 => \"Pian della Mussa\",8634 => \"Pian delle Betulle\",5151 => \"Pian di sco'\",8712 => \"Pian di Sole\",5152 => \"Piana crixia\",5153 => \"Piana degli albanesi\",8653 => \"Piana di Marcesina\",5154 => \"Piana di monte verna\",8305 => \"Pianalunga\",5155 => \"Piancastagnaio\",8516 => \"Piancavallo\",5156 => \"Piancogno\",5157 => \"Piandimeleto\",5158 => \"Piane crati\",8561 => \"Piane di Mocogno\",5159 => \"Pianella\",5160 => \"Pianello del lario\",5161 => \"Pianello val tidone\",5162 => \"Pianengo\",5163 => \"Pianezza\",5164 => \"Pianezze\",5165 => \"Pianfei\",8605 => \"Piani d'Erna\",8517 => \"Piani di Artavaggio\",8234 => \"Piani di Bobbio\",5166 => \"Pianico\",5167 => \"Pianiga\",8314 => \"Piano del Voglio\",5168 => \"Piano di Sorrento\",8630 => \"Piano Provenzana\",5169 => \"Pianopoli\",5170 => \"Pianoro\",5171 => \"Piansano\",5172 => \"Piantedo\",5173 => \"Piario\",5174 => \"Piasco\",5175 => \"Piateda\",5176 => \"Piatto\",5177 => \"Piazza al serchio\",5178 => \"Piazza armerina\",5179 => \"Piazza brembana\",5180 => \"Piazzatorre\",5181 => \"Piazzola sul brenta\",5182 => \"Piazzolo\",5183 => \"Picciano\",5184 => \"Picerno\",5185 => \"Picinisco\",5186 => \"Pico\",5187 => \"Piea\",5188 => \"Piedicavallo\",8218 => \"Piediluco\",5189 => \"Piedimonte etneo\",5190 => \"Piedimonte matese\",5191 => \"Piedimonte san germano\",5192 => \"Piedimulera\",5193 => \"Piegaro\",5194 => \"Pienza\",5195 => \"Pieranica\",5196 => \"Pietra de'giorgi\",5197 => \"Pietra ligure\",5198 => \"Pietra marazzi\",5199 => \"Pietrabbondante\",5200 => \"Pietrabruna\",5201 => \"Pietracamela\",5202 => \"Pietracatella\",5203 => \"Pietracupa\",5204 => \"Pietradefusi\",5205 => \"Pietraferrazzana\",5206 => \"Pietrafitta\",5207 => \"Pietragalla\",5208 => \"Pietralunga\",5209 => \"Pietramelara\",5210 => \"Pietramontecorvino\",5211 => \"Pietranico\",5212 => \"Pietrapaola\",5213 => \"Pietrapertosa\",5214 => \"Pietraperzia\",5215 => \"Pietraporzio\",5216 => \"Pietraroja\",5217 => \"Pietrarubbia\",5218 => \"Pietrasanta\",5219 => \"Pietrastornina\",5220 => \"Pietravairano\",5221 => \"Pietrelcina\",5222 => \"Pieve a nievole\",5223 => \"Pieve albignola\",5224 => \"Pieve d'alpago\",5225 => \"Pieve d'olmi\",5226 => \"Pieve del cairo\",5227 => \"Pieve di bono\",5228 => \"Pieve di cadore\",5229 => \"Pieve di cento\",5230 => \"Pieve di coriano\",5231 => \"Pieve di ledro\",5232 => \"Pieve di soligo\",5233 => \"Pieve di teco\",5234 => \"Pieve emanuele\",5235 => \"Pieve fissiraga\",5236 => \"Pieve fosciana\",5237 => \"Pieve ligure\",5238 => \"Pieve porto morone\",5239 => \"Pieve san giacomo\",5240 => \"Pieve santo stefano\",5241 => \"Pieve tesino\",5242 => \"Pieve torina\",5243 => \"Pieve vergonte\",5244 => \"Pievebovigliana\",5245 => \"Pievepelago\",5246 => \"Piglio\",5247 => \"Pigna\",5248 => \"Pignataro interamna\",5249 => \"Pignataro maggiore\",5250 => \"Pignola\",5251 => \"Pignone\",5252 => \"Pigra\",5253 => \"Pila\",8221 => \"Pila\",5254 => \"Pimentel\",5255 => \"Pimonte\",5256 => \"Pinarolo po\",5257 => \"Pinasca\",5258 => \"Pincara\",5259 => \"Pinerolo\",5260 => \"Pineto\",5261 => \"Pino d'asti\",5262 => \"Pino sulla sponda del lago magg.\",5263 => \"Pino torinese\",5264 => \"Pinzano al tagliamento\",5265 => \"Pinzolo\",5266 => \"Piobbico\",5267 => \"Piobesi d'alba\",5268 => \"Piobesi torinese\",5269 => \"Piode\",5270 => \"Pioltello\",5271 => \"Piombino\",5272 => \"Piombino dese\",5273 => \"Pioraco\",5274 => \"Piossasco\",5275 => \"Piova' massaia\",5276 => \"Piove di sacco\",5277 => \"Piovene rocchette\",5278 => \"Piovera\",5279 => \"Piozzano\",5280 => \"Piozzo\",5281 => \"Piraino\",5282 => \"Pisa\",8518 => \"Pisa San Giusto\",5283 => \"Pisano\",5284 => \"Piscina\",5285 => \"Piscinas\",5286 => \"Pisciotta\",5287 => \"Pisogne\",5288 => \"Pisoniano\",5289 => \"Pisticci\",5290 => \"Pistoia\",5291 => \"Piteglio\",5292 => \"Pitigliano\",5293 => \"Piubega\",5294 => \"Piuro\",5295 => \"Piverone\",5296 => \"Pizzale\",5297 => \"Pizzighettone\",5298 => \"Pizzo\",8737 => \"Pizzo Arera\",8727 => \"Pizzo Bernina\",8736 => \"Pizzo dei Tre Signori\",8739 => \"Pizzo della Presolana\",5299 => \"Pizzoferrato\",5300 => \"Pizzoli\",5301 => \"Pizzone\",5302 => \"Pizzoni\",5303 => \"Placanica\",8342 => \"Plaghera\",8685 => \"Plain Maison\",8324 => \"Plain Mason\",8337 => \"Plan\",8469 => \"Plan Boè\",8633 => \"Plan Checrouit\",8204 => \"Plan de Corones\",8576 => \"Plan in Passiria\",5304 => \"Plataci\",5305 => \"Platania\",8241 => \"Plateau Rosa\",5306 => \"Plati'\",5307 => \"Plaus\",5308 => \"Plesio\",5309 => \"Ploaghe\",5310 => \"Plodio\",8569 => \"Plose\",5311 => \"Pocapaglia\",5312 => \"Pocenia\",5313 => \"Podenzana\",5314 => \"Podenzano\",5315 => \"Pofi\",5316 => \"Poggiardo\",5317 => \"Poggibonsi\",5318 => \"Poggio a caiano\",5319 => \"Poggio berni\",5320 => \"Poggio bustone\",5321 => \"Poggio catino\",5322 => \"Poggio imperiale\",5323 => \"Poggio mirteto\",5324 => \"Poggio moiano\",5325 => \"Poggio nativo\",5326 => \"Poggio picenze\",5327 => \"Poggio renatico\",5328 => \"Poggio rusco\",5329 => \"Poggio san lorenzo\",5330 => \"Poggio san marcello\",5331 => \"Poggio san vicino\",5332 => \"Poggio sannita\",5333 => \"Poggiodomo\",5334 => \"Poggiofiorito\",5335 => \"Poggiomarino\",5336 => \"Poggioreale\",5337 => \"Poggiorsini\",5338 => \"Poggiridenti\",5339 => \"Pogliano milanese\",8339 => \"Pogliola\",5340 => \"Pognana lario\",5341 => \"Pognano\",5342 => \"Pogno\",5343 => \"Poiana maggiore\",5344 => \"Poirino\",5345 => \"Polaveno\",5346 => \"Polcenigo\",5347 => \"Polesella\",5348 => \"Polesine parmense\",5349 => \"Poli\",5350 => \"Polia\",5351 => \"Policoro\",5352 => \"Polignano a mare\",5353 => \"Polinago\",5354 => \"Polino\",5355 => \"Polistena\",5356 => \"Polizzi generosa\",5357 => \"Polla\",5358 => \"Pollein\",5359 => \"Pollena trocchia\",5360 => \"Pollenza\",5361 => \"Pollica\",5362 => \"Pollina\",5363 => \"Pollone\",5364 => \"Pollutri\",5365 => \"Polonghera\",5366 => \"Polpenazze del garda\",8650 => \"Polsa San Valentino\",5367 => \"Polverara\",5368 => \"Polverigi\",5369 => \"Pomarance\",5370 => \"Pomaretto\",8384 => \"Pomarico\",5372 => \"Pomaro monferrato\",5373 => \"Pomarolo\",5374 => \"Pombia\",5375 => \"Pomezia\",5376 => \"Pomigliano d'arco\",5377 => \"Pompei\",5378 => \"Pompeiana\",5379 => \"Pompiano\",5380 => \"Pomponesco\",5381 => \"Pompu\",5382 => \"Poncarale\",5383 => \"Ponderano\",5384 => \"Ponna\",5385 => \"Ponsacco\",5386 => \"Ponso\",8220 => \"Pont\",5389 => \"Pont canavese\",5427 => \"Pont Saint Martin\",5387 => \"Pontassieve\",5388 => \"Pontboset\",5390 => \"Ponte\",5391 => \"Ponte buggianese\",5392 => \"Ponte dell'olio\",5393 => \"Ponte di legno\",5394 => \"Ponte di piave\",5395 => \"Ponte Gardena\",5396 => \"Ponte in valtellina\",5397 => \"Ponte lambro\",5398 => \"Ponte nelle alpi\",5399 => \"Ponte nizza\",5400 => \"Ponte nossa\",5401 => \"Ponte San Nicolo'\",5402 => \"Ponte San Pietro\",5403 => \"Pontebba\",5404 => \"Pontecagnano faiano\",5405 => \"Pontecchio polesine\",5406 => \"Pontechianale\",5407 => \"Pontecorvo\",5408 => \"Pontecurone\",5409 => \"Pontedassio\",5410 => \"Pontedera\",5411 => \"Pontelandolfo\",5412 => \"Pontelatone\",5413 => \"Pontelongo\",5414 => \"Pontenure\",5415 => \"Ponteranica\",5416 => \"Pontestura\",5417 => \"Pontevico\",5418 => \"Pontey\",5419 => \"Ponti\",5420 => \"Ponti sul mincio\",5421 => \"Pontida\",5422 => \"Pontinia\",5423 => \"Pontinvrea\",5424 => \"Pontirolo nuovo\",5425 => \"Pontoglio\",5426 => \"Pontremoli\",5428 => \"Ponza\",5429 => \"Ponzano di fermo\",8462 => \"Ponzano galleria\",5430 => \"Ponzano monferrato\",5431 => \"Ponzano romano\",5432 => \"Ponzano veneto\",5433 => \"Ponzone\",5434 => \"Popoli\",5435 => \"Poppi\",8192 => \"Populonia\",5436 => \"Porano\",5437 => \"Porcari\",5438 => \"Porcia\",5439 => \"Pordenone\",5440 => \"Porlezza\",5441 => \"Pornassio\",5442 => \"Porpetto\",5443 => \"Porretta terme\",5444 => \"Portacomaro\",5445 => \"Portalbera\",5446 => \"Porte\",5447 => \"Portici\",5448 => \"Portico di caserta\",5449 => \"Portico e san benedetto\",5450 => \"Portigliola\",8294 => \"Porto Alabe\",5451 => \"Porto azzurro\",5452 => \"Porto ceresio\",8528 => \"Porto Cervo\",5453 => \"Porto cesareo\",8295 => \"Porto Conte\",8612 => \"Porto Corsini\",5454 => \"Porto empedocle\",8669 => \"Porto Ercole\",8743 => \"Porto Levante\",5455 => \"Porto mantovano\",8178 => \"Porto Pino\",5456 => \"Porto recanati\",8529 => \"Porto Rotondo\",5457 => \"Porto san giorgio\",5458 => \"Porto sant'elpidio\",8670 => \"Porto Santo Stefano\",5459 => \"Porto tolle\",5460 => \"Porto torres\",5461 => \"Porto valtravaglia\",5462 => \"Porto viro\",8172 => \"Portobello di Gallura\",5463 => \"Portobuffole'\",5464 => \"Portocannone\",5465 => \"Portoferraio\",5466 => \"Portofino\",5467 => \"Portogruaro\",5468 => \"Portomaggiore\",5469 => \"Portopalo di capo passero\",8171 => \"Portorotondo\",5470 => \"Portoscuso\",5471 => \"Portovenere\",5472 => \"Portula\",5473 => \"Posada\",5474 => \"Posina\",5475 => \"Positano\",5476 => \"Possagno\",5477 => \"Posta\",5478 => \"Posta fibreno\",5479 => \"Postal\",5480 => \"Postalesio\",5481 => \"Postiglione\",5482 => \"Postua\",5483 => \"Potenza\",5484 => \"Potenza picena\",5485 => \"Pove del grappa\",5486 => \"Povegliano\",5487 => \"Povegliano veronese\",5488 => \"Poviglio\",5489 => \"Povoletto\",5490 => \"Pozza di fassa\",5491 => \"Pozzaglia sabino\",5492 => \"Pozzaglio ed uniti\",5493 => \"Pozzallo\",5494 => \"Pozzilli\",5495 => \"Pozzo d'adda\",5496 => \"Pozzol groppo\",5497 => \"Pozzolengo\",5498 => \"Pozzoleone\",5499 => \"Pozzolo formigaro\",5500 => \"Pozzomaggiore\",5501 => \"Pozzonovo\",5502 => \"Pozzuoli\",5503 => \"Pozzuolo del friuli\",5504 => \"Pozzuolo martesana\",8693 => \"Pra Catinat\",5505 => \"Pradalunga\",5506 => \"Pradamano\",5507 => \"Pradleves\",5508 => \"Pragelato\",5509 => \"Praia a mare\",5510 => \"Praiano\",5511 => \"Pralboino\",5512 => \"Prali\",5513 => \"Pralormo\",5514 => \"Pralungo\",5515 => \"Pramaggiore\",5516 => \"Pramollo\",5517 => \"Prarolo\",5518 => \"Prarostino\",5519 => \"Prasco\",5520 => \"Prascorsano\",5521 => \"Praso\",5522 => \"Prata camportaccio\",5523 => \"Prata d'ansidonia\",5524 => \"Prata di pordenone\",5525 => \"Prata di principato ultra\",5526 => \"Prata sannita\",5527 => \"Pratella\",8102 => \"Prati di Tivo\",8694 => \"Pratica di Mare\",5528 => \"Pratiglione\",5529 => \"Prato\",5530 => \"Prato allo Stelvio\",5531 => \"Prato carnico\",8157 => \"Prato Nevoso\",5532 => \"Prato sesia\",8560 => \"Prato Spilla\",5533 => \"Pratola peligna\",5534 => \"Pratola serra\",5535 => \"Pratovecchio\",5536 => \"Pravisdomini\",5537 => \"Pray\",5538 => \"Prazzo\",5539 => \"Pre' Saint Didier\",5540 => \"Precenicco\",5541 => \"Preci\",5542 => \"Predappio\",5543 => \"Predazzo\",5544 => \"Predoi\",5545 => \"Predore\",5546 => \"Predosa\",5547 => \"Preganziol\",5548 => \"Pregnana milanese\",5549 => \"Prela'\",5550 => \"Premana\",5551 => \"Premariacco\",5552 => \"Premeno\",5553 => \"Premia\",5554 => \"Premilcuore\",5555 => \"Premolo\",5556 => \"Premosello chiovenda\",5557 => \"Preone\",5558 => \"Preore\",5559 => \"Prepotto\",8578 => \"Presanella\",5560 => \"Preseglie\",5561 => \"Presenzano\",5562 => \"Presezzo\",5563 => \"Presicce\",5564 => \"Pressana\",5565 => \"Prestine\",5566 => \"Pretoro\",5567 => \"Prevalle\",5568 => \"Prezza\",5569 => \"Prezzo\",5570 => \"Priero\",5571 => \"Prignano cilento\",5572 => \"Prignano sulla secchia\",5573 => \"Primaluna\",5574 => \"Priocca\",5575 => \"Priola\",5576 => \"Priolo gargallo\",5577 => \"Priverno\",5578 => \"Prizzi\",5579 => \"Proceno\",5580 => \"Procida\",5581 => \"Propata\",5582 => \"Proserpio\",5583 => \"Prossedi\",5584 => \"Provaglio d'iseo\",5585 => \"Provaglio val sabbia\",5586 => \"Proves\",5587 => \"Provvidenti\",8189 => \"Prunetta\",5588 => \"Prunetto\",5589 => \"Puegnago sul garda\",5590 => \"Puglianello\",5591 => \"Pula\",5592 => \"Pulfero\",5593 => \"Pulsano\",5594 => \"Pumenengo\",8584 => \"Punta Ala\",8708 => \"Punta Ban\",8564 => \"Punta Helbronner\",8306 => \"Punta Indren\",8107 => \"Punta Stilo\",5595 => \"Puos d'alpago\",5596 => \"Pusiano\",5597 => \"Putifigari\",5598 => \"Putignano\",5599 => \"Quadrelle\",5600 => \"Quadri\",5601 => \"Quagliuzzo\",5602 => \"Qualiano\",5603 => \"Quaranti\",5604 => \"Quaregna\",5605 => \"Quargnento\",5606 => \"Quarna sopra\",5607 => \"Quarna sotto\",5608 => \"Quarona\",5609 => \"Quarrata\",5610 => \"Quart\",5611 => \"Quarto\",5612 => \"Quarto d'altino\",5613 => \"Quartu sant'elena\",5614 => \"Quartucciu\",5615 => \"Quassolo\",5616 => \"Quattordio\",5617 => \"Quattro castella\",5618 => \"Quero\",5619 => \"Quiliano\",5620 => \"Quincinetto\",5621 => \"Quindici\",5622 => \"Quingentole\",5623 => \"Quintano\",5624 => \"Quinto di treviso\",5625 => \"Quinto vercellese\",5626 => \"Quinto vicentino\",5627 => \"Quinzano d'oglio\",5628 => \"Quistello\",5629 => \"Quittengo\",5630 => \"Rabbi\",5631 => \"Racale\",5632 => \"Racalmuto\",5633 => \"Racconigi\",5634 => \"Raccuja\",5635 => \"Racines\",8352 => \"Racines Giovo\",5636 => \"Radda in chianti\",5637 => \"Raddusa\",5638 => \"Radicofani\",5639 => \"Radicondoli\",5640 => \"Raffadali\",5641 => \"Ragalna\",5642 => \"Ragogna\",5643 => \"Ragoli\",5644 => \"Ragusa\",5645 => \"Raiano\",5646 => \"Ramacca\",5647 => \"Ramiseto\",5648 => \"Ramponio verna\",5649 => \"Rancio valcuvia\",5650 => \"Ranco\",5651 => \"Randazzo\",5652 => \"Ranica\",5653 => \"Ranzanico\",5654 => \"Ranzo\",5655 => \"Rapagnano\",5656 => \"Rapallo\",5657 => \"Rapino\",5658 => \"Rapolano terme\",8394 => \"Rapolla\",5660 => \"Rapone\",5661 => \"Rassa\",5662 => \"Rasun Anterselva\",5663 => \"Rasura\",5664 => \"Ravanusa\",5665 => \"Ravarino\",5666 => \"Ravascletto\",5667 => \"Ravello\",5668 => \"Ravenna\",5669 => \"Raveo\",5670 => \"Raviscanina\",5671 => \"Re\",5672 => \"Rea\",5673 => \"Realmonte\",5674 => \"Reana del roiale\",5675 => \"Reano\",5676 => \"Recale\",5677 => \"Recanati\",5678 => \"Recco\",5679 => \"Recetto\",8639 => \"Recoaro Mille\",5680 => \"Recoaro Terme\",5681 => \"Redavalle\",5682 => \"Redondesco\",5683 => \"Refrancore\",5684 => \"Refrontolo\",5685 => \"Regalbuto\",5686 => \"Reggello\",8542 => \"Reggio Aeroporto dello Stretto\",5687 => \"Reggio Calabria\",5688 => \"Reggio Emilia\",5689 => \"Reggiolo\",5690 => \"Reino\",5691 => \"Reitano\",5692 => \"Remanzacco\",5693 => \"Remedello\",5694 => \"Renate\",5695 => \"Rende\",5696 => \"Renon\",5697 => \"Resana\",5698 => \"Rescaldina\",8734 => \"Resegone\",5699 => \"Resia\",5700 => \"Resiutta\",5701 => \"Resuttano\",5702 => \"Retorbido\",5703 => \"Revello\",5704 => \"Revere\",5705 => \"Revigliasco d'asti\",5706 => \"Revine lago\",5707 => \"Revo'\",5708 => \"Rezzago\",5709 => \"Rezzato\",5710 => \"Rezzo\",5711 => \"Rezzoaglio\",5712 => \"Rhemes Notre Dame\",5713 => \"Rhemes Saint Georges\",5714 => \"Rho\",5715 => \"Riace\",8106 => \"Riace Marina\",5716 => \"Rialto\",5717 => \"Riano\",5718 => \"Riardo\",5719 => \"Ribera\",5720 => \"Ribordone\",5721 => \"Ricadi\",5722 => \"Ricaldone\",5723 => \"Riccia\",5724 => \"Riccione\",5725 => \"Ricco' del golfo di spezia\",5726 => \"Ricengo\",5727 => \"Ricigliano\",5728 => \"Riese pio x\",5729 => \"Riesi\",5730 => \"Rieti\",5731 => \"Rifiano\",5732 => \"Rifreddo\",8691 => \"Rifugio Boffalora Ticino\",8244 => \"Rifugio Calvi Laghi Gemelli\",8684 => \"Rifugio Chivasso - Colle del Nivolet\",8678 => \"Rifugio Curò\",8679 => \"Rifugio laghi Gemelli\",8731 => \"Rifugio Livio Bianco\",8681 => \"Rifugio Mezzalama\",8682 => \"Rifugio Quintino Sella\",8629 => \"Rifugio Sapienza\",8683 => \"Rifugio Torino\",8680 => \"Rifugio Viviani\",5733 => \"Rignano flaminio\",5734 => \"Rignano garganico\",5735 => \"Rignano sull'arno\",5736 => \"Rigolato\",5737 => \"Rima san giuseppe\",5738 => \"Rimasco\",5739 => \"Rimella\",5740 => \"Rimini\",8546 => \"Rimini Miramare\",5741 => \"Rio di Pusteria\",5742 => \"Rio marina\",5743 => \"Rio nell'elba\",5744 => \"Rio saliceto\",5745 => \"Riofreddo\",5746 => \"Riola sardo\",5747 => \"Riolo terme\",5748 => \"Riolunato\",5749 => \"Riomaggiore\",5750 => \"Rionero in vulture\",5751 => \"Rionero sannitico\",8503 => \"Rioveggio\",5752 => \"Ripa teatina\",5753 => \"Ripabottoni\",8404 => \"Ripacandida\",5755 => \"Ripalimosani\",5756 => \"Ripalta arpina\",5757 => \"Ripalta cremasca\",5758 => \"Ripalta guerina\",5759 => \"Riparbella\",5760 => \"Ripatransone\",5761 => \"Ripe\",5762 => \"Ripe san ginesio\",5763 => \"Ripi\",5764 => \"Riposto\",5765 => \"Rittana\",5766 => \"Riva del garda\",5767 => \"Riva di solto\",8579 => \"Riva di Tures\",5768 => \"Riva ligure\",5769 => \"Riva presso chieri\",5770 => \"Riva valdobbia\",5771 => \"Rivalba\",5772 => \"Rivalta bormida\",5773 => \"Rivalta di torino\",5774 => \"Rivamonte agordino\",5775 => \"Rivanazzano\",5776 => \"Rivara\",5777 => \"Rivarolo canavese\",5778 => \"Rivarolo del re ed uniti\",5779 => \"Rivarolo mantovano\",5780 => \"Rivarone\",5781 => \"Rivarossa\",5782 => \"Rive\",5783 => \"Rive d'arcano\",8398 => \"Rivello\",5785 => \"Rivergaro\",5786 => \"Rivignano\",5787 => \"Rivisondoli\",5788 => \"Rivodutri\",5789 => \"Rivoli\",8436 => \"Rivoli veronese\",5791 => \"Rivolta d'adda\",5792 => \"Rizziconi\",5793 => \"Ro\",5794 => \"Roana\",5795 => \"Roaschia\",5796 => \"Roascio\",5797 => \"Roasio\",5798 => \"Roatto\",5799 => \"Robassomero\",5800 => \"Robbiate\",5801 => \"Robbio\",5802 => \"Robecchetto con Induno\",5803 => \"Robecco d'oglio\",5804 => \"Robecco pavese\",5805 => \"Robecco sul naviglio\",5806 => \"Robella\",5807 => \"Robilante\",5808 => \"Roburent\",5809 => \"Rocca canavese\",5810 => \"Rocca Canterano\",5811 => \"Rocca Ciglie'\",5812 => \"Rocca d'Arazzo\",5813 => \"Rocca d'Arce\",5814 => \"Rocca d'Evandro\",5815 => \"Rocca de' Baldi\",5816 => \"Rocca de' Giorgi\",5817 => \"Rocca di Botte\",5818 => \"Rocca di Cambio\",5819 => \"Rocca di Cave\",5820 => \"Rocca di Mezzo\",5821 => \"Rocca di Neto\",5822 => \"Rocca di Papa\",5823 => \"Rocca Grimalda\",5824 => \"Rocca Imperiale\",8115 => \"Rocca Imperiale Marina\",5825 => \"Rocca Massima\",5826 => \"Rocca Pia\",5827 => \"Rocca Pietore\",5828 => \"Rocca Priora\",5829 => \"Rocca San Casciano\",5830 => \"Rocca San Felice\",5831 => \"Rocca San Giovanni\",5832 => \"Rocca Santa Maria\",5833 => \"Rocca Santo Stefano\",5834 => \"Rocca Sinibalda\",5835 => \"Rocca Susella\",5836 => \"Roccabascerana\",5837 => \"Roccabernarda\",5838 => \"Roccabianca\",5839 => \"Roccabruna\",8535 => \"Roccacaramanico\",5840 => \"Roccacasale\",5841 => \"Roccadaspide\",5842 => \"Roccafiorita\",5843 => \"Roccafluvione\",5844 => \"Roccaforte del greco\",5845 => \"Roccaforte ligure\",5846 => \"Roccaforte mondovi'\",5847 => \"Roccaforzata\",5848 => \"Roccafranca\",5849 => \"Roccagiovine\",5850 => \"Roccagloriosa\",5851 => \"Roccagorga\",5852 => \"Roccalbegna\",5853 => \"Roccalumera\",5854 => \"Roccamandolfi\",5855 => \"Roccamena\",5856 => \"Roccamonfina\",5857 => \"Roccamontepiano\",5858 => \"Roccamorice\",8418 => \"Roccanova\",5860 => \"Roccantica\",5861 => \"Roccapalumba\",5862 => \"Roccapiemonte\",5863 => \"Roccarainola\",5864 => \"Roccaraso\",5865 => \"Roccaromana\",5866 => \"Roccascalegna\",5867 => \"Roccasecca\",5868 => \"Roccasecca dei volsci\",5869 => \"Roccasicura\",5870 => \"Roccasparvera\",5871 => \"Roccaspinalveti\",5872 => \"Roccastrada\",5873 => \"Roccavaldina\",5874 => \"Roccaverano\",5875 => \"Roccavignale\",5876 => \"Roccavione\",5877 => \"Roccavivara\",5878 => \"Roccella ionica\",5879 => \"Roccella valdemone\",5880 => \"Rocchetta a volturno\",5881 => \"Rocchetta belbo\",5882 => \"Rocchetta di vara\",5883 => \"Rocchetta e croce\",5884 => \"Rocchetta ligure\",5885 => \"Rocchetta nervina\",5886 => \"Rocchetta palafea\",5887 => \"Rocchetta sant'antonio\",5888 => \"Rocchetta tanaro\",5889 => \"Rodano\",5890 => \"Roddi\",5891 => \"Roddino\",5892 => \"Rodello\",5893 => \"Rodengo\",5894 => \"Rodengo-saiano\",5895 => \"Rodero\",5896 => \"Rodi garganico\",5897 => \"Rodi' milici\",5898 => \"Rodigo\",5899 => \"Roe' volciano\",5900 => \"Rofrano\",5901 => \"Rogeno\",5902 => \"Roggiano gravina\",5903 => \"Roghudi\",5904 => \"Rogliano\",5905 => \"Rognano\",5906 => \"Rogno\",5907 => \"Rogolo\",5908 => \"Roiate\",5909 => \"Roio del sangro\",5910 => \"Roisan\",5911 => \"Roletto\",5912 => \"Rolo\",5913 => \"Roma\",8545 => \"Roma Ciampino\",8499 => \"Roma Fiumicino\",5914 => \"Romagnano al monte\",5915 => \"Romagnano sesia\",5916 => \"Romagnese\",5917 => \"Romallo\",5918 => \"Romana\",5919 => \"Romanengo\",5920 => \"Romano canavese\",5921 => \"Romano d'ezzelino\",5922 => \"Romano di lombardia\",5923 => \"Romans d'isonzo\",5924 => \"Rombiolo\",5925 => \"Romeno\",5926 => \"Romentino\",5927 => \"Rometta\",5928 => \"Ronago\",5929 => \"Ronca'\",5930 => \"Roncade\",5931 => \"Roncadelle\",5932 => \"Roncaro\",5933 => \"Roncegno\",5934 => \"Roncello\",5935 => \"Ronchi dei legionari\",5936 => \"Ronchi valsugana\",5937 => \"Ronchis\",5938 => \"Ronciglione\",5939 => \"Ronco all'adige\",8231 => \"Ronco all`Adige\",5940 => \"Ronco biellese\",5941 => \"Ronco briantino\",5942 => \"Ronco canavese\",5943 => \"Ronco scrivia\",5944 => \"Roncobello\",5945 => \"Roncoferraro\",5946 => \"Roncofreddo\",5947 => \"Roncola\",5948 => \"Roncone\",5949 => \"Rondanina\",5950 => \"Rondissone\",5951 => \"Ronsecco\",5952 => \"Ronzo chienis\",5953 => \"Ronzone\",5954 => \"Roppolo\",5955 => \"Rora'\",5956 => \"Rosa'\",5957 => \"Rosarno\",5958 => \"Rosasco\",5959 => \"Rosate\",5960 => \"Rosazza\",5961 => \"Rosciano\",5962 => \"Roscigno\",5963 => \"Rose\",5964 => \"Rosello\",5965 => \"Roseto capo spulico\",8439 => \"Roseto casello\",5966 => \"Roseto degli abruzzi\",5967 => \"Roseto valfortore\",5968 => \"Rosignano marittimo\",5969 => \"Rosignano monferrato\",8195 => \"Rosignano Solvay\",5970 => \"Rosolina\",8744 => \"Rosolina mare\",5971 => \"Rosolini\",8704 => \"Rosone\",5972 => \"Rosora\",5973 => \"Rossa\",5974 => \"Rossana\",5975 => \"Rossano\",8109 => \"Rossano Calabro Marina\",5976 => \"Rossano veneto\",8431 => \"Rossera\",5977 => \"Rossiglione\",5978 => \"Rosta\",5979 => \"Rota d'imagna\",5980 => \"Rota greca\",5981 => \"Rotella\",5982 => \"Rotello\",8429 => \"Rotonda\",5984 => \"Rotondella\",5985 => \"Rotondi\",5986 => \"Rottofreno\",5987 => \"Rotzo\",5988 => \"Roure\",5989 => \"Rovagnate\",5990 => \"Rovasenda\",5991 => \"Rovato\",5992 => \"Rovegno\",5993 => \"Rovellasca\",5994 => \"Rovello porro\",5995 => \"Roverbella\",5996 => \"Roverchiara\",5997 => \"Rovere' della luna\",5998 => \"Rovere' veronese\",5999 => \"Roveredo di gua'\",6000 => \"Roveredo in piano\",6001 => \"Rovereto\",6002 => \"Rovescala\",6003 => \"Rovetta\",6004 => \"Roviano\",6005 => \"Rovigo\",6006 => \"Rovito\",6007 => \"Rovolon\",6008 => \"Rozzano\",6009 => \"Rubano\",6010 => \"Rubiana\",6011 => \"Rubiera\",8632 => \"Rucas\",6012 => \"Ruda\",6013 => \"Rudiano\",6014 => \"Rueglio\",6015 => \"Ruffano\",6016 => \"Ruffia\",6017 => \"Ruffre'\",6018 => \"Rufina\",6019 => \"Ruinas\",6020 => \"Ruino\",6021 => \"Rumo\",8366 => \"Ruoti\",6023 => \"Russi\",6024 => \"Rutigliano\",6025 => \"Rutino\",6026 => \"Ruviano\",8393 => \"Ruvo del monte\",6028 => \"Ruvo di Puglia\",6029 => \"Sabaudia\",6030 => \"Sabbia\",6031 => \"Sabbio chiese\",6032 => \"Sabbioneta\",6033 => \"Sacco\",6034 => \"Saccolongo\",6035 => \"Sacile\",8700 => \"Sacra di San Michele\",6036 => \"Sacrofano\",6037 => \"Sadali\",6038 => \"Sagama\",6039 => \"Sagliano micca\",6040 => \"Sagrado\",6041 => \"Sagron mis\",8602 => \"Saint Barthelemy\",6042 => \"Saint Christophe\",6043 => \"Saint Denis\",8304 => \"Saint Jacques\",6044 => \"Saint Marcel\",6045 => \"Saint Nicolas\",6046 => \"Saint Oyen Flassin\",6047 => \"Saint Pierre\",6048 => \"Saint Rhemy en Bosses\",6049 => \"Saint Vincent\",6050 => \"Sala Baganza\",6051 => \"Sala Biellese\",6052 => \"Sala Bolognese\",6053 => \"Sala Comacina\",6054 => \"Sala Consilina\",6055 => \"Sala Monferrato\",8372 => \"Salandra\",6057 => \"Salaparuta\",6058 => \"Salara\",6059 => \"Salasco\",6060 => \"Salassa\",6061 => \"Salbertrand\",6062 => \"Salcedo\",6063 => \"Salcito\",6064 => \"Sale\",6065 => \"Sale delle Langhe\",6066 => \"Sale Marasino\",6067 => \"Sale San Giovanni\",6068 => \"Salemi\",6069 => \"Salento\",6070 => \"Salerano Canavese\",6071 => \"Salerano sul Lambro\",6072 => \"Salerno\",6073 => \"Saletto\",6074 => \"Salgareda\",6075 => \"Sali Vercellese\",6076 => \"Salice Salentino\",6077 => \"Saliceto\",6078 => \"Salisano\",6079 => \"Salizzole\",6080 => \"Salle\",6081 => \"Salmour\",6082 => \"Salo'\",6083 => \"Salorno\",6084 => \"Salsomaggiore Terme\",6085 => \"Saltara\",6086 => \"Saltrio\",6087 => \"Saludecio\",6088 => \"Saluggia\",6089 => \"Salussola\",6090 => \"Saluzzo\",6091 => \"Salve\",6092 => \"Salvirola\",6093 => \"Salvitelle\",6094 => \"Salza di Pinerolo\",6095 => \"Salza Irpina\",6096 => \"Salzano\",6097 => \"Samarate\",6098 => \"Samassi\",6099 => \"Samatzai\",6100 => \"Sambuca di Sicilia\",6101 => \"Sambuca Pistoiese\",6102 => \"Sambuci\",6103 => \"Sambuco\",6104 => \"Sammichele di Bari\",6105 => \"Samo\",6106 => \"Samolaco\",6107 => \"Samone\",6108 => \"Samone\",6109 => \"Sampeyre\",6110 => \"Samugheo\",6111 => \"San Bartolomeo al Mare\",6112 => \"San Bartolomeo in Galdo\",6113 => \"San Bartolomeo Val Cavargna\",6114 => \"San Basile\",6115 => \"San Basilio\",6116 => \"San Bassano\",6117 => \"San Bellino\",6118 => \"San Benedetto Belbo\",6119 => \"San Benedetto dei Marsi\",6120 => \"San Benedetto del Tronto\",8126 => \"San Benedetto in Alpe\",6121 => \"San Benedetto in Perillis\",6122 => \"San Benedetto Po\",6123 => \"San Benedetto Ullano\",6124 => \"San Benedetto val di Sambro\",6125 => \"San Benigno Canavese\",8641 => \"San Bernardino\",6126 => \"San Bernardino Verbano\",6127 => \"San Biagio della Cima\",6128 => \"San Biagio di Callalta\",6129 => \"San Biagio Platani\",6130 => \"San Biagio Saracinisco\",6131 => \"San Biase\",6132 => \"San Bonifacio\",6133 => \"San Buono\",6134 => \"San Calogero\",6135 => \"San Candido\",6136 => \"San Canzian d'Isonzo\",6137 => \"San Carlo Canavese\",6138 => \"San Casciano dei Bagni\",6139 => \"San Casciano in Val di Pesa\",6140 => \"San Cassiano\",8624 => \"San Cassiano in Badia\",6141 => \"San Cataldo\",6142 => \"San Cesareo\",6143 => \"San Cesario di Lecce\",6144 => \"San Cesario sul Panaro\",8367 => \"San Chirico Nuovo\",6146 => \"San Chirico Raparo\",6147 => \"San Cipirello\",6148 => \"San Cipriano d'Aversa\",6149 => \"San Cipriano Picentino\",6150 => \"San Cipriano Po\",6151 => \"San Clemente\",6152 => \"San Colombano al Lambro\",6153 => \"San Colombano Belmonte\",6154 => \"San Colombano Certenoli\",8622 => \"San Colombano Valdidentro\",6155 => \"San Cono\",6156 => \"San Cosmo Albanese\",8376 => \"San Costantino Albanese\",6158 => \"San Costantino Calabro\",6159 => \"San Costanzo\",6160 => \"San Cristoforo\",6161 => \"San Damiano al Colle\",6162 => \"San Damiano d'Asti\",6163 => \"San Damiano Macra\",6164 => \"San Daniele del Friuli\",6165 => \"San Daniele Po\",6166 => \"San Demetrio Corone\",6167 => \"San Demetrio ne' Vestini\",6168 => \"San Didero\",8556 => \"San Domenico di Varzo\",6169 => \"San Dona' di Piave\",6170 => \"San Donaci\",6171 => \"San Donato di Lecce\",6172 => \"San Donato di Ninea\",6173 => \"San Donato Milanese\",6174 => \"San Donato Val di Comino\",6175 => \"San Dorligo della Valle\",6176 => \"San Fedele Intelvi\",6177 => \"San Fele\",6178 => \"San Felice a Cancello\",6179 => \"San Felice Circeo\",6180 => \"San Felice del Benaco\",6181 => \"San Felice del Molise\",6182 => \"San Felice sul Panaro\",6183 => \"San Ferdinando\",6184 => \"San Ferdinando di Puglia\",6185 => \"San Fermo della Battaglia\",6186 => \"San Fili\",6187 => \"San Filippo del mela\",6188 => \"San Fior\",6189 => \"San Fiorano\",6190 => \"San Floriano del collio\",6191 => \"San Floro\",6192 => \"San Francesco al campo\",6193 => \"San Fratello\",8690 => \"San Galgano\",6194 => \"San Gavino monreale\",6195 => \"San Gemini\",6196 => \"San Genesio Atesino\",6197 => \"San Genesio ed uniti\",6198 => \"San Gennaro vesuviano\",6199 => \"San Germano chisone\",6200 => \"San Germano dei berici\",6201 => \"San Germano vercellese\",6202 => \"San Gervasio bresciano\",6203 => \"San Giacomo degli schiavoni\",6204 => \"San Giacomo delle segnate\",8620 => \"San Giacomo di Roburent\",6205 => \"San Giacomo filippo\",6206 => \"San Giacomo vercellese\",6207 => \"San Gillio\",6208 => \"San Gimignano\",6209 => \"San Ginesio\",6210 => \"San Giorgio a cremano\",6211 => \"San Giorgio a liri\",6212 => \"San Giorgio albanese\",6213 => \"San Giorgio canavese\",6214 => \"San Giorgio del sannio\",6215 => \"San Giorgio della richinvelda\",6216 => \"San Giorgio delle Pertiche\",6217 => \"San Giorgio di lomellina\",6218 => \"San Giorgio di mantova\",6219 => \"San Giorgio di nogaro\",6220 => \"San Giorgio di pesaro\",6221 => \"San Giorgio di piano\",6222 => \"San Giorgio in bosco\",6223 => \"San Giorgio ionico\",6224 => \"San Giorgio la molara\",6225 => \"San Giorgio lucano\",6226 => \"San Giorgio monferrato\",6227 => \"San Giorgio morgeto\",6228 => \"San Giorgio piacentino\",6229 => \"San Giorgio scarampi\",6230 => \"San Giorgio su Legnano\",6231 => \"San Giorio di susa\",6232 => \"San Giovanni a piro\",6233 => \"San Giovanni al natisone\",6234 => \"San Giovanni bianco\",6235 => \"San Giovanni d'asso\",6236 => \"San Giovanni del dosso\",6237 => \"San Giovanni di gerace\",6238 => \"San Giovanni gemini\",6239 => \"San Giovanni ilarione\",6240 => \"San Giovanni in croce\",6241 => \"San Giovanni in fiore\",6242 => \"San Giovanni in galdo\",6243 => \"San Giovanni in marignano\",6244 => \"San Giovanni in persiceto\",8567 => \"San Giovanni in val Aurina\",6245 => \"San Giovanni incarico\",6246 => \"San Giovanni la punta\",6247 => \"San Giovanni lipioni\",6248 => \"San Giovanni lupatoto\",6249 => \"San Giovanni rotondo\",6250 => \"San Giovanni suergiu\",6251 => \"San Giovanni teatino\",6252 => \"San Giovanni valdarno\",6253 => \"San Giuliano del sannio\",6254 => \"San Giuliano di Puglia\",6255 => \"San Giuliano milanese\",6256 => \"San Giuliano terme\",6257 => \"San Giuseppe jato\",6258 => \"San Giuseppe vesuviano\",6259 => \"San Giustino\",6260 => \"San Giusto canavese\",6261 => \"San Godenzo\",6262 => \"San Gregorio d'ippona\",6263 => \"San Gregorio da sassola\",6264 => \"San Gregorio di Catania\",6265 => \"San Gregorio Magno\",6266 => \"San Gregorio Matese\",6267 => \"San Gregorio nelle Alpi\",6268 => \"San Lazzaro di Savena\",6269 => \"San Leo\",6270 => \"San Leonardo\",6271 => \"San Leonardo in Passiria\",8580 => \"San Leone\",6272 => \"San Leucio del Sannio\",6273 => \"San Lorenzello\",6274 => \"San Lorenzo\",6275 => \"San Lorenzo al mare\",6276 => \"San Lorenzo Bellizzi\",6277 => \"San Lorenzo del vallo\",6278 => \"San Lorenzo di Sebato\",6279 => \"San Lorenzo in Banale\",6280 => \"San Lorenzo in campo\",6281 => \"San Lorenzo isontino\",6282 => \"San Lorenzo Maggiore\",6283 => \"San Lorenzo Nuovo\",6284 => \"San Luca\",6285 => \"San Lucido\",6286 => \"San Lupo\",6287 => \"San Mango d'Aquino\",6288 => \"San Mango Piemonte\",6289 => \"San Mango sul Calore\",6290 => \"San Marcellino\",6291 => \"San Marcello\",6292 => \"San Marcello pistoiese\",6293 => \"San Marco argentano\",6294 => \"San Marco d'Alunzio\",6295 => \"San Marco dei Cavoti\",6296 => \"San Marco Evangelista\",6297 => \"San Marco in Lamis\",6298 => \"San Marco la Catola\",8152 => \"San Marino\",6299 => \"San Martino al Tagliamento\",6300 => \"San Martino Alfieri\",6301 => \"San Martino Buon Albergo\",6302 => \"San Martino Canavese\",6303 => \"San Martino d'Agri\",6304 => \"San Martino dall'argine\",6305 => \"San Martino del lago\",8209 => \"San Martino di Castrozza\",6306 => \"San Martino di Finita\",6307 => \"San Martino di Lupari\",6308 => \"San Martino di venezze\",8410 => \"San Martino d`agri\",6309 => \"San Martino in Badia\",6310 => \"San Martino in Passiria\",6311 => \"San Martino in pensilis\",6312 => \"San Martino in rio\",6313 => \"San Martino in strada\",6314 => \"San Martino sannita\",6315 => \"San Martino siccomario\",6316 => \"San Martino sulla marrucina\",6317 => \"San Martino valle caudina\",6318 => \"San Marzano di San Giuseppe\",6319 => \"San Marzano oliveto\",6320 => \"San Marzano sul Sarno\",6321 => \"San Massimo\",6322 => \"San Maurizio canavese\",6323 => \"San Maurizio d'opaglio\",6324 => \"San Mauro castelverde\",6325 => \"San Mauro cilento\",6326 => \"San Mauro di saline\",8427 => \"San Mauro forte\",6328 => \"San Mauro la bruca\",6329 => \"San Mauro marchesato\",6330 => \"San Mauro Pascoli\",6331 => \"San Mauro torinese\",6332 => \"San Michele al Tagliamento\",6333 => \"San Michele all'Adige\",6334 => \"San Michele di ganzaria\",6335 => \"San Michele di serino\",6336 => \"San Michele Mondovi'\",6337 => \"San Michele salentino\",6338 => \"San Miniato\",6339 => \"San Nazario\",6340 => \"San Nazzaro\",6341 => \"San Nazzaro Sesia\",6342 => \"San Nazzaro val cavargna\",6343 => \"San Nicola arcella\",6344 => \"San Nicola baronia\",6345 => \"San Nicola da crissa\",6346 => \"San Nicola dell'alto\",6347 => \"San Nicola la strada\",6348 => \"San nicola manfredi\",6349 => \"San nicolo' d'arcidano\",6350 => \"San nicolo' di comelico\",6351 => \"San Nicolo' Gerrei\",6352 => \"San Pancrazio\",6353 => \"San Pancrazio salentino\",6354 => \"San Paolo\",8361 => \"San Paolo albanese\",6356 => \"San Paolo bel sito\",6357 => \"San Paolo cervo\",6358 => \"San Paolo d'argon\",6359 => \"San Paolo di civitate\",6360 => \"San Paolo di Jesi\",6361 => \"San Paolo solbrito\",6362 => \"San Pellegrino terme\",6363 => \"San Pier d'isonzo\",6364 => \"San Pier niceto\",6365 => \"San Piero a sieve\",6366 => \"San Piero Patti\",6367 => \"San Pietro a maida\",6368 => \"San Pietro al Natisone\",6369 => \"San Pietro al Tanagro\",6370 => \"San Pietro apostolo\",6371 => \"San Pietro avellana\",6372 => \"San Pietro clarenza\",6373 => \"San Pietro di cadore\",6374 => \"San Pietro di carida'\",6375 => \"San Pietro di feletto\",6376 => \"San Pietro di morubio\",6377 => \"San Pietro in Amantea\",6378 => \"San Pietro in cariano\",6379 => \"San Pietro in casale\",6380 => \"San Pietro in cerro\",6381 => \"San Pietro in gu\",6382 => \"San Pietro in guarano\",6383 => \"San Pietro in lama\",6384 => \"San Pietro infine\",6385 => \"San Pietro mosezzo\",6386 => \"San Pietro mussolino\",6387 => \"San Pietro val lemina\",6388 => \"San Pietro vernotico\",6389 => \"San Pietro Viminario\",6390 => \"San Pio delle camere\",6391 => \"San Polo d'enza\",6392 => \"San Polo dei cavalieri\",6393 => \"San Polo di Piave\",6394 => \"San Polo matese\",6395 => \"San Ponso\",6396 => \"San Possidonio\",6397 => \"San Potito sannitico\",6398 => \"San Potito ultra\",6399 => \"San Prisco\",6400 => \"San Procopio\",6401 => \"San Prospero\",6402 => \"San Quirico d'orcia\",8199 => \"San Quirico d`Orcia\",6403 => \"San Quirino\",6404 => \"San Raffaele cimena\",6405 => \"San Roberto\",6406 => \"San Rocco al porto\",6407 => \"San Romano in garfagnana\",6408 => \"San Rufo\",6409 => \"San Salvatore di fitalia\",6410 => \"San Salvatore Monferrato\",6411 => \"San Salvatore Telesino\",6412 => \"San Salvo\",8103 => \"San Salvo Marina\",6413 => \"San Sebastiano al Vesuvio\",6414 => \"San Sebastiano Curone\",6415 => \"San Sebastiano da Po\",6416 => \"San Secondo di Pinerolo\",6417 => \"San Secondo Parmense\",6418 => \"San Severino Lucano\",6419 => \"San Severino Marche\",6420 => \"San Severo\",8347 => \"San Sicario di Cesana\",8289 => \"San Simone\",8539 => \"San Simone Baita del Camoscio\",6421 => \"San Siro\",6422 => \"San Sossio Baronia\",6423 => \"San Sostene\",6424 => \"San Sosti\",6425 => \"San Sperate\",6426 => \"San Tammaro\",6427 => \"San Teodoro\",8170 => \"San Teodoro\",6429 => \"San Tomaso agordino\",8212 => \"San Valentino alla Muta\",6430 => \"San Valentino in abruzzo citeriore\",6431 => \"San Valentino torio\",6432 => \"San Venanzo\",6433 => \"San Vendemiano\",6434 => \"San Vero milis\",6435 => \"San Vincenzo\",6436 => \"San Vincenzo la costa\",6437 => \"San Vincenzo valle roveto\",6438 => \"San Vitaliano\",8293 => \"San Vito\",6440 => \"San Vito al tagliamento\",6441 => \"San Vito al torre\",6442 => \"San Vito chietino\",6443 => \"San Vito dei normanni\",6444 => \"San Vito di cadore\",6445 => \"San Vito di fagagna\",6446 => \"San Vito di leguzzano\",6447 => \"San Vito lo capo\",6448 => \"San Vito romano\",6449 => \"San Vito sullo ionio\",6450 => \"San Vittore del lazio\",6451 => \"San Vittore Olona\",6452 => \"San Zeno di montagna\",6453 => \"San Zeno naviglio\",6454 => \"San Zenone al lambro\",6455 => \"San Zenone al po\",6456 => \"San Zenone degli ezzelini\",6457 => \"Sanarica\",6458 => \"Sandigliano\",6459 => \"Sandrigo\",6460 => \"Sanfre'\",6461 => \"Sanfront\",6462 => \"Sangano\",6463 => \"Sangiano\",6464 => \"Sangineto\",6465 => \"Sanguinetto\",6466 => \"Sanluri\",6467 => \"Sannazzaro de' Burgondi\",6468 => \"Sannicandro di bari\",6469 => \"Sannicandro garganico\",6470 => \"Sannicola\",6471 => \"Sanremo\",6472 => \"Sansepolcro\",6473 => \"Sant'Agapito\",6474 => \"Sant'Agata bolognese\",6475 => \"Sant'Agata de' goti\",6476 => \"Sant'Agata del bianco\",6477 => \"Sant'Agata di esaro\",6478 => \"Sant'Agata di Militello\",6479 => \"Sant'Agata di Puglia\",6480 => \"Sant'Agata feltria\",6481 => \"Sant'Agata fossili\",6482 => \"Sant'Agata li battiati\",6483 => \"Sant'Agata sul Santerno\",6484 => \"Sant'Agnello\",6485 => \"Sant'Agostino\",6486 => \"Sant'Albano stura\",6487 => \"Sant'Alessio con vialone\",6488 => \"Sant'Alessio in aspromonte\",6489 => \"Sant'Alessio siculo\",6490 => \"Sant'Alfio\",6491 => \"Sant'Ambrogio di Torino\",6492 => \"Sant'Ambrogio di valpolicella\",6493 => \"Sant'Ambrogio sul garigliano\",6494 => \"Sant'Anastasia\",6495 => \"Sant'Anatolia di narco\",6496 => \"Sant'Andrea apostolo dello ionio\",6497 => \"Sant'Andrea del garigliano\",6498 => \"Sant'Andrea di conza\",6499 => \"Sant'Andrea Frius\",8763 => \"Sant'Andrea in Monte\",6500 => \"Sant'Angelo a cupolo\",6501 => \"Sant'Angelo a fasanella\",6502 => \"Sant'Angelo a scala\",6503 => \"Sant'Angelo all'esca\",6504 => \"Sant'Angelo d'alife\",6505 => \"Sant'Angelo dei lombardi\",6506 => \"Sant'Angelo del pesco\",6507 => \"Sant'Angelo di brolo\",6508 => \"Sant'Angelo di Piove di Sacco\",6509 => \"Sant'Angelo in lizzola\",6510 => \"Sant'Angelo in pontano\",6511 => \"Sant'Angelo in vado\",6512 => \"Sant'Angelo le fratte\",6513 => \"Sant'Angelo limosano\",6514 => \"Sant'Angelo lodigiano\",6515 => \"Sant'Angelo lomellina\",6516 => \"Sant'Angelo muxaro\",6517 => \"Sant'Angelo romano\",6518 => \"Sant'Anna Arresi\",6519 => \"Sant'Anna d'Alfaedo\",8730 => \"Sant'Anna di Valdieri\",8698 => \"Sant'Anna di Vinadio\",8563 => \"Sant'Anna Pelago\",6520 => \"Sant'Antimo\",6521 => \"Sant'Antioco\",6522 => \"Sant'Antonino di Susa\",6523 => \"Sant'Antonio Abate\",6524 => \"Sant'Antonio di gallura\",6525 => \"Sant'Apollinare\",6526 => \"Sant'Arcangelo\",6527 => \"Sant'Arcangelo trimonte\",6528 => \"Sant'Arpino\",6529 => \"Sant'Arsenio\",6530 => \"Sant'Egidio alla vibrata\",6531 => \"Sant'Egidio del monte Albino\",6532 => \"Sant'Elena\",6533 => \"Sant'Elena sannita\",6534 => \"Sant'Elia a pianisi\",6535 => \"Sant'Elia fiumerapido\",6536 => \"Sant'Elpidio a mare\",6537 => \"Sant'Eufemia a maiella\",6538 => \"Sant'Eufemia d'Aspromonte\",6539 => \"Sant'Eusanio del Sangro\",6540 => \"Sant'Eusanio forconese\",6541 => \"Sant'Ilario d'Enza\",6542 => \"Sant'Ilario dello Ionio\",6543 => \"Sant'Ippolito\",6544 => \"Sant'Olcese\",6545 => \"Sant'Omero\",6546 => \"Sant'Omobono imagna\",6547 => \"Sant'Onofrio\",6548 => \"Sant'Oreste\",6549 => \"Sant'Orsola terme\",6550 => \"Sant'Urbano\",6551 => \"Santa Brigida\",6552 => \"Santa Caterina albanese\",6553 => \"Santa Caterina dello ionio\",8144 => \"Santa Caterina Valfurva\",6554 => \"Santa Caterina villarmosa\",6555 => \"Santa Cesarea terme\",6556 => \"Santa Cristina d'Aspromonte\",6557 => \"Santa Cristina e Bissone\",6558 => \"Santa Cristina gela\",6559 => \"Santa Cristina Valgardena\",6560 => \"Santa Croce camerina\",6561 => \"Santa Croce del sannio\",6562 => \"Santa Croce di Magliano\",6563 => \"Santa Croce sull'Arno\",6564 => \"Santa Domenica talao\",6565 => \"Santa Domenica Vittoria\",6566 => \"Santa Elisabetta\",6567 => \"Santa Fiora\",6568 => \"Santa Flavia\",6569 => \"Santa Giuletta\",6570 => \"Santa Giusta\",6571 => \"Santa Giustina\",6572 => \"Santa Giustina in Colle\",6573 => \"Santa Luce\",6574 => \"Santa Lucia del Mela\",6575 => \"Santa Lucia di Piave\",6576 => \"Santa Lucia di serino\",6577 => \"Santa Margherita d'adige\",6578 => \"Santa Margherita di belice\",6579 => \"Santa Margherita di staffora\",8285 => \"Santa Margherita Ligure\",6581 => \"Santa Maria a monte\",6582 => \"Santa Maria a vico\",6583 => \"Santa Maria Capua Vetere\",6584 => \"Santa Maria coghinas\",6585 => \"Santa Maria del cedro\",6586 => \"Santa Maria del Molise\",6587 => \"Santa Maria della Versa\",8122 => \"Santa Maria di Castellabate\",6588 => \"Santa Maria di Licodia\",6589 => \"Santa Maria di sala\",6590 => \"Santa Maria Hoe'\",6591 => \"Santa Maria imbaro\",6592 => \"Santa Maria la carita'\",6593 => \"Santa Maria la fossa\",6594 => \"Santa Maria la longa\",6595 => \"Santa Maria Maggiore\",6596 => \"Santa Maria Nuova\",6597 => \"Santa Marina\",6598 => \"Santa Marina salina\",6599 => \"Santa Marinella\",6600 => \"Santa Ninfa\",6601 => \"Santa Paolina\",6602 => \"Santa Severina\",6603 => \"Santa Sofia\",6604 => \"Santa Sofia d'Epiro\",6605 => \"Santa Teresa di Riva\",6606 => \"Santa Teresa gallura\",6607 => \"Santa Venerina\",6608 => \"Santa Vittoria d'Alba\",6609 => \"Santa Vittoria in matenano\",6610 => \"Santadi\",6611 => \"Santarcangelo di Romagna\",6612 => \"Sante marie\",6613 => \"Santena\",6614 => \"Santeramo in colle\",6615 => \"Santhia'\",6616 => \"Santi Cosma e Damiano\",6617 => \"Santo Stefano al mare\",6618 => \"Santo Stefano Belbo\",6619 => \"Santo Stefano d'Aveto\",6620 => \"Santo Stefano del sole\",6621 => \"Santo Stefano di Cadore\",6622 => \"Santo Stefano di Camastra\",6623 => \"Santo Stefano di Magra\",6624 => \"Santo Stefano di Rogliano\",6625 => \"Santo Stefano di Sessanio\",6626 => \"Santo Stefano in Aspromonte\",6627 => \"Santo Stefano lodigiano\",6628 => \"Santo Stefano quisquina\",6629 => \"Santo Stefano roero\",6630 => \"Santo Stefano Ticino\",6631 => \"Santo Stino di Livenza\",6632 => \"Santomenna\",6633 => \"Santopadre\",6634 => \"Santorso\",6635 => \"Santu Lussurgiu\",8419 => \"Sant`Angelo le fratte\",6636 => \"Sanza\",6637 => \"Sanzeno\",6638 => \"Saonara\",6639 => \"Saponara\",6640 => \"Sappada\",6641 => \"Sapri\",6642 => \"Saracena\",6643 => \"Saracinesco\",6644 => \"Sarcedo\",8377 => \"Sarconi\",6646 => \"Sardara\",6647 => \"Sardigliano\",6648 => \"Sarego\",6649 => \"Sarentino\",6650 => \"Sarezzano\",6651 => \"Sarezzo\",6652 => \"Sarmato\",6653 => \"Sarmede\",6654 => \"Sarnano\",6655 => \"Sarnico\",6656 => \"Sarno\",6657 => \"Sarnonico\",6658 => \"Saronno\",6659 => \"Sarre\",6660 => \"Sarroch\",6661 => \"Sarsina\",6662 => \"Sarteano\",6663 => \"Sartirana lomellina\",6664 => \"Sarule\",6665 => \"Sarzana\",6666 => \"Sassano\",6667 => \"Sassari\",6668 => \"Sassello\",6669 => \"Sassetta\",6670 => \"Sassinoro\",8387 => \"Sasso di castalda\",6672 => \"Sasso marconi\",6673 => \"Sassocorvaro\",6674 => \"Sassofeltrio\",6675 => \"Sassoferrato\",8656 => \"Sassotetto\",6676 => \"Sassuolo\",6677 => \"Satriano\",8420 => \"Satriano di Lucania\",6679 => \"Sauris\",6680 => \"Sauze d'Oulx\",6681 => \"Sauze di Cesana\",6682 => \"Sava\",6683 => \"Savelli\",6684 => \"Saviano\",6685 => \"Savigliano\",6686 => \"Savignano irpino\",6687 => \"Savignano sul Panaro\",6688 => \"Savignano sul Rubicone\",6689 => \"Savigno\",6690 => \"Savignone\",6691 => \"Saviore dell'Adamello\",6692 => \"Savoca\",6693 => \"Savogna\",6694 => \"Savogna d'Isonzo\",8411 => \"Savoia di Lucania\",6696 => \"Savona\",6697 => \"Scafa\",6698 => \"Scafati\",6699 => \"Scagnello\",6700 => \"Scala\",6701 => \"Scala coeli\",6702 => \"Scaldasole\",6703 => \"Scalea\",6704 => \"Scalenghe\",6705 => \"Scaletta Zanclea\",6706 => \"Scampitella\",6707 => \"Scandale\",6708 => \"Scandiano\",6709 => \"Scandicci\",6710 => \"Scandolara ravara\",6711 => \"Scandolara ripa d'Oglio\",6712 => \"Scandriglia\",6713 => \"Scanno\",6714 => \"Scano di montiferro\",6715 => \"Scansano\",6716 => \"Scanzano jonico\",6717 => \"Scanzorosciate\",6718 => \"Scapoli\",8120 => \"Scario\",6719 => \"Scarlino\",6720 => \"Scarmagno\",6721 => \"Scarnafigi\",6722 => \"Scarperia\",8139 => \"Scauri\",6723 => \"Scena\",6724 => \"Scerni\",6725 => \"Scheggia e pascelupo\",6726 => \"Scheggino\",6727 => \"Schiavi di Abruzzo\",6728 => \"Schiavon\",8456 => \"Schiavonea di Corigliano\",6729 => \"Schignano\",6730 => \"Schilpario\",6731 => \"Schio\",6732 => \"Schivenoglia\",6733 => \"Sciacca\",6734 => \"Sciara\",6735 => \"Scicli\",6736 => \"Scido\",6737 => \"Scigliano\",6738 => \"Scilla\",6739 => \"Scillato\",6740 => \"Sciolze\",6741 => \"Scisciano\",6742 => \"Sclafani bagni\",6743 => \"Scontrone\",6744 => \"Scopa\",6745 => \"Scopello\",6746 => \"Scoppito\",6747 => \"Scordia\",6748 => \"Scorrano\",6749 => \"Scorze'\",6750 => \"Scurcola marsicana\",6751 => \"Scurelle\",6752 => \"Scurzolengo\",6753 => \"Seborga\",6754 => \"Secinaro\",6755 => \"Secli'\",8336 => \"Secondino\",6756 => \"Secugnago\",6757 => \"Sedegliano\",6758 => \"Sedico\",6759 => \"Sedilo\",6760 => \"Sedini\",6761 => \"Sedriano\",6762 => \"Sedrina\",6763 => \"Sefro\",6764 => \"Segariu\",8714 => \"Segesta\",6765 => \"Seggiano\",6766 => \"Segni\",6767 => \"Segonzano\",6768 => \"Segrate\",6769 => \"Segusino\",6770 => \"Selargius\",6771 => \"Selci\",6772 => \"Selegas\",8715 => \"Selinunte\",8130 => \"Sella Nevea\",6773 => \"Sellano\",8651 => \"Sellata Arioso\",6774 => \"Sellero\",8238 => \"Selletta\",6775 => \"Sellia\",6776 => \"Sellia marina\",6777 => \"Selva dei Molini\",6778 => \"Selva di Cadore\",6779 => \"Selva di Progno\",6780 => \"Selva di Val Gardena\",6781 => \"Selvazzano dentro\",6782 => \"Selve marcone\",6783 => \"Selvino\",6784 => \"Semestene\",6785 => \"Semiana\",6786 => \"Seminara\",6787 => \"Semproniano\",6788 => \"Senago\",6789 => \"Senale San Felice\",6790 => \"Senales\",6791 => \"Seneghe\",6792 => \"Senerchia\",6793 => \"Seniga\",6794 => \"Senigallia\",6795 => \"Senis\",6796 => \"Senise\",6797 => \"Senna comasco\",6798 => \"Senna lodigiana\",6799 => \"Sennariolo\",6800 => \"Sennori\",6801 => \"Senorbi'\",6802 => \"Sepino\",6803 => \"Seppiana\",6804 => \"Sequals\",6805 => \"Seravezza\",6806 => \"Serdiana\",6807 => \"Seregno\",6808 => \"Seren del grappa\",6809 => \"Sergnano\",6810 => \"Seriate\",6811 => \"Serina\",6812 => \"Serino\",6813 => \"Serle\",6814 => \"Sermide\",6815 => \"Sermoneta\",6816 => \"Sernaglia della Battaglia\",6817 => \"Sernio\",6818 => \"Serole\",6819 => \"Serra d'aiello\",6820 => \"Serra de'conti\",6821 => \"Serra pedace\",6822 => \"Serra ricco'\",6823 => \"Serra San Bruno\",6824 => \"Serra San Quirico\",6825 => \"Serra Sant'Abbondio\",6826 => \"Serracapriola\",6827 => \"Serradifalco\",6828 => \"Serralunga d'Alba\",6829 => \"Serralunga di Crea\",6830 => \"Serramanna\",6831 => \"Serramazzoni\",6832 => \"Serramezzana\",6833 => \"Serramonacesca\",6834 => \"Serrapetrona\",6835 => \"Serrara fontana\",6836 => \"Serrastretta\",6837 => \"Serrata\",6838 => \"Serravalle a po\",6839 => \"Serravalle di chienti\",6840 => \"Serravalle langhe\",6841 => \"Serravalle pistoiese\",6842 => \"Serravalle Scrivia\",6843 => \"Serravalle Sesia\",6844 => \"Serre\",6845 => \"Serrenti\",6846 => \"Serri\",6847 => \"Serrone\",6848 => \"Serrungarina\",6849 => \"Sersale\",6850 => \"Servigliano\",6851 => \"Sessa aurunca\",6852 => \"Sessa cilento\",6853 => \"Sessame\",6854 => \"Sessano del Molise\",6855 => \"Sesta godano\",6856 => \"Sestino\",6857 => \"Sesto\",6858 => \"Sesto al reghena\",6859 => \"Sesto calende\",8709 => \"Sesto Calende Alta\",6860 => \"Sesto campano\",6861 => \"Sesto ed Uniti\",6862 => \"Sesto fiorentino\",6863 => \"Sesto San Giovanni\",6864 => \"Sestola\",6865 => \"Sestri levante\",6866 => \"Sestriere\",6867 => \"Sestu\",6868 => \"Settala\",8316 => \"Settebagni\",6869 => \"Settefrati\",6870 => \"Settime\",6871 => \"Settimo milanese\",6872 => \"Settimo rottaro\",6873 => \"Settimo San Pietro\",6874 => \"Settimo torinese\",6875 => \"Settimo vittone\",6876 => \"Settingiano\",6877 => \"Setzu\",6878 => \"Seui\",6879 => \"Seulo\",6880 => \"Seveso\",6881 => \"Sezzadio\",6882 => \"Sezze\",6883 => \"Sfruz\",6884 => \"Sgonico\",6885 => \"Sgurgola\",6886 => \"Siamaggiore\",6887 => \"Siamanna\",6888 => \"Siano\",6889 => \"Siapiccia\",8114 => \"Sibari\",6890 => \"Sicignano degli Alburni\",6891 => \"Siculiana\",6892 => \"Siddi\",6893 => \"Siderno\",6894 => \"Siena\",6895 => \"Sigillo\",6896 => \"Signa\",8603 => \"Sigonella\",6897 => \"Silandro\",6898 => \"Silanus\",6899 => \"Silea\",6900 => \"Siligo\",6901 => \"Siliqua\",6902 => \"Silius\",6903 => \"Sillano\",6904 => \"Sillavengo\",6905 => \"Silvano d'orba\",6906 => \"Silvano pietra\",6907 => \"Silvi\",6908 => \"Simala\",6909 => \"Simaxis\",6910 => \"Simbario\",6911 => \"Simeri crichi\",6912 => \"Sinagra\",6913 => \"Sinalunga\",6914 => \"Sindia\",6915 => \"Sini\",6916 => \"Sinio\",6917 => \"Siniscola\",6918 => \"Sinnai\",6919 => \"Sinopoli\",6920 => \"Siracusa\",6921 => \"Sirignano\",6922 => \"Siris\",6923 => \"Sirmione\",8457 => \"Sirolo\",6925 => \"Sirone\",6926 => \"Siror\",6927 => \"Sirtori\",6928 => \"Sissa\",8492 => \"Sistiana\",6929 => \"Siurgus donigala\",6930 => \"Siziano\",6931 => \"Sizzano\",8258 => \"Ski center Latemar\",6932 => \"Sluderno\",6933 => \"Smarano\",6934 => \"Smerillo\",6935 => \"Soave\",8341 => \"Sobretta Vallalpe\",6936 => \"Socchieve\",6937 => \"Soddi\",6938 => \"Sogliano al rubicone\",6939 => \"Sogliano Cavour\",6940 => \"Soglio\",6941 => \"Soiano del lago\",6942 => \"Solagna\",6943 => \"Solarino\",6944 => \"Solaro\",6945 => \"Solarolo\",6946 => \"Solarolo Rainerio\",6947 => \"Solarussa\",6948 => \"Solbiate\",6949 => \"Solbiate Arno\",6950 => \"Solbiate Olona\",8307 => \"Solda\",6951 => \"Soldano\",6952 => \"Soleminis\",6953 => \"Solero\",6954 => \"Solesino\",6955 => \"Soleto\",6956 => \"Solferino\",6957 => \"Soliera\",6958 => \"Solignano\",6959 => \"Solofra\",6960 => \"Solonghello\",6961 => \"Solopaca\",6962 => \"Solto collina\",6963 => \"Solza\",6964 => \"Somaglia\",6965 => \"Somano\",6966 => \"Somma lombardo\",6967 => \"Somma vesuviana\",6968 => \"Sommacampagna\",6969 => \"Sommariva del bosco\",6970 => \"Sommariva Perno\",6971 => \"Sommatino\",6972 => \"Sommo\",6973 => \"Sona\",6974 => \"Soncino\",6975 => \"Sondalo\",6976 => \"Sondrio\",6977 => \"Songavazzo\",6978 => \"Sonico\",6979 => \"Sonnino\",6980 => \"Soprana\",6981 => \"Sora\",6982 => \"Soraga\",6983 => \"Soragna\",6984 => \"Sorano\",6985 => \"Sorbo San Basile\",6986 => \"Sorbo Serpico\",6987 => \"Sorbolo\",6988 => \"Sordevolo\",6989 => \"Sordio\",6990 => \"Soresina\",6991 => \"Sorga'\",6992 => \"Sorgono\",6993 => \"Sori\",6994 => \"Sorianello\",6995 => \"Soriano calabro\",6996 => \"Soriano nel cimino\",6997 => \"Sorico\",6998 => \"Soriso\",6999 => \"Sorisole\",7000 => \"Sormano\",7001 => \"Sorradile\",7002 => \"Sorrento\",7003 => \"Sorso\",7004 => \"Sortino\",7005 => \"Sospiro\",7006 => \"Sospirolo\",7007 => \"Sossano\",7008 => \"Sostegno\",7009 => \"Sotto il monte Giovanni XXIII\",8747 => \"Sottomarina\",7010 => \"Sover\",7011 => \"Soverato\",7012 => \"Sovere\",7013 => \"Soveria mannelli\",7014 => \"Soveria simeri\",7015 => \"Soverzene\",7016 => \"Sovicille\",7017 => \"Sovico\",7018 => \"Sovizzo\",7019 => \"Sovramonte\",7020 => \"Sozzago\",7021 => \"Spadafora\",7022 => \"Spadola\",7023 => \"Sparanise\",7024 => \"Sparone\",7025 => \"Specchia\",7026 => \"Spello\",8585 => \"Spelonga\",7027 => \"Spera\",7028 => \"Sperlinga\",7029 => \"Sperlonga\",7030 => \"Sperone\",7031 => \"Spessa\",7032 => \"Spezzano albanese\",7033 => \"Spezzano della Sila\",7034 => \"Spezzano piccolo\",7035 => \"Spiazzo\",7036 => \"Spigno monferrato\",7037 => \"Spigno saturnia\",7038 => \"Spilamberto\",7039 => \"Spilimbergo\",7040 => \"Spilinga\",7041 => \"Spinadesco\",7042 => \"Spinazzola\",7043 => \"Spinea\",7044 => \"Spineda\",7045 => \"Spinete\",7046 => \"Spineto Scrivia\",7047 => \"Spinetoli\",7048 => \"Spino d'Adda\",7049 => \"Spinone al lago\",8421 => \"Spinoso\",7051 => \"Spirano\",7052 => \"Spoleto\",7053 => \"Spoltore\",7054 => \"Spongano\",7055 => \"Spormaggiore\",7056 => \"Sporminore\",7057 => \"Spotorno\",7058 => \"Spresiano\",7059 => \"Spriana\",7060 => \"Squillace\",7061 => \"Squinzano\",8248 => \"Staffal\",7062 => \"Staffolo\",7063 => \"Stagno lombardo\",7064 => \"Staiti\",7065 => \"Staletti\",7066 => \"Stanghella\",7067 => \"Staranzano\",7068 => \"Statte\",7069 => \"Stazzano\",7070 => \"Stazzema\",7071 => \"Stazzona\",7072 => \"Stefanaconi\",7073 => \"Stella\",7074 => \"Stella cilento\",7075 => \"Stellanello\",7076 => \"Stelvio\",7077 => \"Stenico\",7078 => \"Sternatia\",7079 => \"Stezzano\",7080 => \"Stia\",7081 => \"Stienta\",7082 => \"Stigliano\",7083 => \"Stignano\",7084 => \"Stilo\",7085 => \"Stimigliano\",7086 => \"Stintino\",7087 => \"Stio\",7088 => \"Stornara\",7089 => \"Stornarella\",7090 => \"Storo\",7091 => \"Stra\",7092 => \"Stradella\",7093 => \"Strambinello\",7094 => \"Strambino\",7095 => \"Strangolagalli\",7096 => \"Stregna\",7097 => \"Strembo\",7098 => \"Stresa\",7099 => \"Strevi\",7100 => \"Striano\",7101 => \"Strigno\",8182 => \"Stromboli\",7102 => \"Strona\",7103 => \"Stroncone\",7104 => \"Strongoli\",7105 => \"Stroppiana\",7106 => \"Stroppo\",7107 => \"Strozza\",8493 => \"Stupizza\",7108 => \"Sturno\",7109 => \"Suardi\",7110 => \"Subbiano\",7111 => \"Subiaco\",7112 => \"Succivo\",7113 => \"Sueglio\",7114 => \"Suelli\",7115 => \"Suello\",7116 => \"Suisio\",7117 => \"Sulbiate\",7118 => \"Sulmona\",7119 => \"Sulzano\",7120 => \"Sumirago\",7121 => \"Summonte\",7122 => \"Suni\",7123 => \"Suno\",7124 => \"Supersano\",7125 => \"Supino\",7126 => \"Surano\",7127 => \"Surbo\",7128 => \"Susa\",7129 => \"Susegana\",7130 => \"Sustinente\",7131 => \"Sutera\",7132 => \"Sutri\",7133 => \"Sutrio\",7134 => \"Suvereto\",7135 => \"Suzzara\",7136 => \"Taceno\",7137 => \"Tadasuni\",7138 => \"Taggia\",7139 => \"Tagliacozzo\",8450 => \"Tagliacozzo casello\",7140 => \"Taglio di po\",7141 => \"Tagliolo monferrato\",7142 => \"Taibon agordino\",7143 => \"Taino\",7144 => \"Taio\",7145 => \"Taipana\",7146 => \"Talamello\",7147 => \"Talamona\",8299 => \"Talamone\",7148 => \"Talana\",7149 => \"Taleggio\",7150 => \"Talla\",7151 => \"Talmassons\",7152 => \"Tambre\",7153 => \"Taormina\",7154 => \"Tapogliano\",7155 => \"Tarano\",7156 => \"Taranta peligna\",7157 => \"Tarantasca\",7158 => \"Taranto\",8550 => \"Taranto M. A. Grottaglie\",7159 => \"Tarcento\",7160 => \"Tarquinia\",8140 => \"Tarquinia Lido\",7161 => \"Tarsia\",7162 => \"Tartano\",7163 => \"Tarvisio\",8466 => \"Tarvisio casello\",7164 => \"Tarzo\",7165 => \"Tassarolo\",7166 => \"Tassullo\",7167 => \"Taurano\",7168 => \"Taurasi\",7169 => \"Taurianova\",7170 => \"Taurisano\",7171 => \"Tavagnacco\",7172 => \"Tavagnasco\",7173 => \"Tavarnelle val di pesa\",7174 => \"Tavazzano con villavesco\",7175 => \"Tavenna\",7176 => \"Taverna\",7177 => \"Tavernerio\",7178 => \"Tavernola bergamasca\",7179 => \"Tavernole sul Mella\",7180 => \"Taviano\",7181 => \"Tavigliano\",7182 => \"Tavoleto\",7183 => \"Tavullia\",8362 => \"Teana\",7185 => \"Teano\",7186 => \"Teggiano\",7187 => \"Teglio\",7188 => \"Teglio veneto\",7189 => \"Telese terme\",7190 => \"Telgate\",7191 => \"Telti\",7192 => \"Telve\",7193 => \"Telve di sopra\",7194 => \"Tempio Pausania\",7195 => \"Temu'\",7196 => \"Tenna\",7197 => \"Tenno\",7198 => \"Teolo\",7199 => \"Teor\",7200 => \"Teora\",7201 => \"Teramo\",8449 => \"Teramo Val Vomano\",7202 => \"Terdobbiate\",7203 => \"Terelle\",7204 => \"Terento\",7205 => \"Terenzo\",7206 => \"Tergu\",7207 => \"Terlago\",7208 => \"Terlano\",7209 => \"Terlizzi\",8158 => \"Terme di Lurisia\",7210 => \"Terme vigliatore\",7211 => \"Termeno sulla strada del vino\",7212 => \"Termini imerese\",8133 => \"Terminillo\",7213 => \"Termoli\",7214 => \"Ternate\",7215 => \"Ternengo\",7216 => \"Terni\",7217 => \"Terno d'isola\",7218 => \"Terracina\",7219 => \"Terragnolo\",7220 => \"Terralba\",7221 => \"Terranova da Sibari\",7222 => \"Terranova dei passerini\",8379 => \"Terranova di Pollino\",7224 => \"Terranova Sappo Minulio\",7225 => \"Terranuova bracciolini\",7226 => \"Terrasini\",7227 => \"Terrassa padovana\",7228 => \"Terravecchia\",7229 => \"Terrazzo\",7230 => \"Terres\",7231 => \"Terricciola\",7232 => \"Terruggia\",7233 => \"Tertenia\",7234 => \"Terzigno\",7235 => \"Terzo\",7236 => \"Terzo d'Aquileia\",7237 => \"Terzolas\",7238 => \"Terzorio\",7239 => \"Tesero\",7240 => \"Tesimo\",7241 => \"Tessennano\",7242 => \"Testico\",7243 => \"Teti\",7244 => \"Teulada\",7245 => \"Teverola\",7246 => \"Tezze sul Brenta\",8716 => \"Tharros\",7247 => \"Thiene\",7248 => \"Thiesi\",7249 => \"Tiana\",7250 => \"Tiarno di sopra\",7251 => \"Tiarno di sotto\",7252 => \"Ticengo\",7253 => \"Ticineto\",7254 => \"Tiggiano\",7255 => \"Tiglieto\",7256 => \"Tigliole\",7257 => \"Tignale\",7258 => \"Tinnura\",7259 => \"Tione degli Abruzzi\",7260 => \"Tione di Trento\",7261 => \"Tirano\",7262 => \"Tires\",7263 => \"Tiriolo\",7264 => \"Tirolo\",8194 => \"Tirrenia\",8719 => \"Tiscali\",7265 => \"Tissi\",8422 => \"Tito\",7267 => \"Tivoli\",8451 => \"Tivoli casello\",7268 => \"Tizzano val Parma\",7269 => \"Toano\",7270 => \"Tocco caudio\",7271 => \"Tocco da Casauria\",7272 => \"Toceno\",7273 => \"Todi\",7274 => \"Toffia\",7275 => \"Toirano\",7276 => \"Tolentino\",7277 => \"Tolfa\",7278 => \"Tollegno\",7279 => \"Tollo\",7280 => \"Tolmezzo\",8423 => \"Tolve\",7282 => \"Tombolo\",7283 => \"Ton\",7284 => \"Tonadico\",7285 => \"Tonara\",7286 => \"Tonco\",7287 => \"Tonengo\",7288 => \"Tonezza del Cimone\",7289 => \"Tora e piccilli\",8132 => \"Torano\",7290 => \"Torano castello\",7291 => \"Torano nuovo\",7292 => \"Torbole casaglia\",7293 => \"Torcegno\",7294 => \"Torchiara\",7295 => \"Torchiarolo\",7296 => \"Torella dei lombardi\",7297 => \"Torella del sannio\",7298 => \"Torgiano\",7299 => \"Torgnon\",7300 => \"Torino\",8271 => \"Torino Caselle\",7301 => \"Torino di Sangro\",8494 => \"Torino di Sangro Marina\",7302 => \"Toritto\",7303 => \"Torlino Vimercati\",7304 => \"Tornaco\",7305 => \"Tornareccio\",7306 => \"Tornata\",7307 => \"Tornimparte\",8445 => \"Tornimparte casello\",7308 => \"Torno\",7309 => \"Tornolo\",7310 => \"Toro\",7311 => \"Torpe'\",7312 => \"Torraca\",7313 => \"Torralba\",7314 => \"Torrazza coste\",7315 => \"Torrazza Piemonte\",7316 => \"Torrazzo\",7317 => \"Torre Annunziata\",7318 => \"Torre Beretti e Castellaro\",7319 => \"Torre boldone\",7320 => \"Torre bormida\",7321 => \"Torre cajetani\",7322 => \"Torre canavese\",7323 => \"Torre d'arese\",7324 => \"Torre d'isola\",7325 => \"Torre de' passeri\",7326 => \"Torre de'busi\",7327 => \"Torre de'negri\",7328 => \"Torre de'picenardi\",7329 => \"Torre de'roveri\",7330 => \"Torre del greco\",7331 => \"Torre di mosto\",7332 => \"Torre di ruggiero\",7333 => \"Torre di Santa Maria\",7334 => \"Torre le nocelle\",7335 => \"Torre mondovi'\",7336 => \"Torre orsaia\",8592 => \"Torre Pali\",7337 => \"Torre pallavicina\",7338 => \"Torre pellice\",7339 => \"Torre San Giorgio\",8596 => \"Torre San Giovanni\",8595 => \"Torre San Gregorio\",7340 => \"Torre San Patrizio\",7341 => \"Torre Santa Susanna\",8593 => \"Torre Vado\",7342 => \"Torreano\",7343 => \"Torrebelvicino\",7344 => \"Torrebruna\",7345 => \"Torrecuso\",7346 => \"Torreglia\",7347 => \"Torregrotta\",7348 => \"Torremaggiore\",7349 => \"Torrenova\",7350 => \"Torresina\",7351 => \"Torretta\",7352 => \"Torrevecchia pia\",7353 => \"Torrevecchia teatina\",7354 => \"Torri del benaco\",7355 => \"Torri di quartesolo\",7356 => \"Torri in sabina\",7357 => \"Torriana\",7358 => \"Torrice\",7359 => \"Torricella\",7360 => \"Torricella del pizzo\",7361 => \"Torricella in sabina\",7362 => \"Torricella peligna\",7363 => \"Torricella sicura\",7364 => \"Torricella verzate\",7365 => \"Torriglia\",7366 => \"Torrile\",7367 => \"Torrioni\",7368 => \"Torrita di Siena\",7369 => \"Torrita tiberina\",7370 => \"Tortoli'\",7371 => \"Tortona\",7372 => \"Tortora\",7373 => \"Tortorella\",7374 => \"Tortoreto\",8601 => \"Tortoreto lido\",7375 => \"Tortorici\",8138 => \"Torvaianica\",7376 => \"Torviscosa\",7377 => \"Toscolano maderno\",7378 => \"Tossicia\",7379 => \"Tovo di Sant'Agata\",7380 => \"Tovo San Giacomo\",7381 => \"Trabia\",7382 => \"Tradate\",8214 => \"Trafoi\",7383 => \"Tramatza\",7384 => \"Trambileno\",7385 => \"Tramonti\",7386 => \"Tramonti di sopra\",7387 => \"Tramonti di sotto\",8412 => \"Tramutola\",7389 => \"Trana\",7390 => \"Trani\",7391 => \"Transacqua\",7392 => \"Traona\",7393 => \"Trapani\",8544 => \"Trapani Birgi\",7394 => \"Trappeto\",7395 => \"Trarego Viggiona\",7396 => \"Trasacco\",7397 => \"Trasaghis\",7398 => \"Trasquera\",7399 => \"Tratalias\",7400 => \"Trausella\",7401 => \"Travaco' siccomario\",7402 => \"Travagliato\",7403 => \"Travedona monate\",7404 => \"Traversella\",7405 => \"Traversetolo\",7406 => \"Traves\",7407 => \"Travesio\",7408 => \"Travo\",8187 => \"Tre fontane\",7409 => \"Trebaseleghe\",7410 => \"Trebisacce\",7411 => \"Trecasali\",7412 => \"Trecase\",7413 => \"Trecastagni\",7414 => \"Trecate\",7415 => \"Trecchina\",7416 => \"Trecenta\",7417 => \"Tredozio\",7418 => \"Treglio\",7419 => \"Tregnago\",7420 => \"Treia\",7421 => \"Treiso\",7422 => \"Tremenico\",7423 => \"Tremestieri etneo\",7424 => \"Tremezzo\",7425 => \"Tremosine\",7426 => \"Trenta\",7427 => \"Trentinara\",7428 => \"Trento\",7429 => \"Trentola-ducenta\",7430 => \"Trenzano\",8146 => \"Trepalle\",7431 => \"Treppo carnico\",7432 => \"Treppo grande\",7433 => \"Trepuzzi\",7434 => \"Trequanda\",7435 => \"Tres\",7436 => \"Tresana\",7437 => \"Trescore balneario\",7438 => \"Trescore cremasco\",7439 => \"Tresigallo\",7440 => \"Tresivio\",7441 => \"Tresnuraghes\",7442 => \"Trevenzuolo\",7443 => \"Trevi\",7444 => \"Trevi nel lazio\",7445 => \"Trevico\",7446 => \"Treviglio\",7447 => \"Trevignano\",7448 => \"Trevignano romano\",7449 => \"Treville\",7450 => \"Treviolo\",7451 => \"Treviso\",7452 => \"Treviso bresciano\",8543 => \"Treviso Sant'Angelo\",7453 => \"Trezzano rosa\",7454 => \"Trezzano sul Naviglio\",7455 => \"Trezzo sull'Adda\",7456 => \"Trezzo Tinella\",7457 => \"Trezzone\",7458 => \"Tribano\",7459 => \"Tribiano\",7460 => \"Tribogna\",7461 => \"Tricarico\",7462 => \"Tricase\",8597 => \"Tricase porto\",7463 => \"Tricerro\",7464 => \"Tricesimo\",7465 => \"Trichiana\",7466 => \"Triei\",7467 => \"Trieste\",8472 => \"Trieste Ronchi dei Legionari\",7468 => \"Triggiano\",7469 => \"Trigolo\",7470 => \"Trinita d'Agultu e Vignola\",7471 => \"Trinita'\",7472 => \"Trinitapoli\",7473 => \"Trino\",7474 => \"Triora\",7475 => \"Tripi\",7476 => \"Trisobbio\",7477 => \"Trissino\",7478 => \"Triuggio\",7479 => \"Trivento\",7480 => \"Trivero\",7481 => \"Trivigliano\",7482 => \"Trivignano udinese\",8413 => \"Trivigno\",7484 => \"Trivolzio\",7485 => \"Trodena\",7486 => \"Trofarello\",7487 => \"Troia\",7488 => \"Troina\",7489 => \"Tromello\",7490 => \"Trontano\",7491 => \"Tronzano lago maggiore\",7492 => \"Tronzano vercellese\",7493 => \"Tropea\",7494 => \"Trovo\",7495 => \"Truccazzano\",7496 => \"Tubre\",7497 => \"Tuenno\",7498 => \"Tufara\",7499 => \"Tufillo\",7500 => \"Tufino\",7501 => \"Tufo\",7502 => \"Tuglie\",7503 => \"Tuili\",7504 => \"Tula\",7505 => \"Tuoro sul trasimeno\",7506 => \"Turania\",7507 => \"Turano lodigiano\",7508 => \"Turate\",7509 => \"Turbigo\",7510 => \"Turi\",7511 => \"Turri\",7512 => \"Turriaco\",7513 => \"Turrivalignani\",8390 => \"Tursi\",7515 => \"Tusa\",7516 => \"Tuscania\",7517 => \"Ubiale Clanezzo\",7518 => \"Uboldo\",7519 => \"Ucria\",7520 => \"Udine\",7521 => \"Ugento\",7522 => \"Uggiano la chiesa\",7523 => \"Uggiate trevano\",7524 => \"Ula' Tirso\",7525 => \"Ulassai\",7526 => \"Ultimo\",7527 => \"Umbertide\",7528 => \"Umbriatico\",7529 => \"Urago d'Oglio\",7530 => \"Uras\",7531 => \"Urbana\",7532 => \"Urbania\",7533 => \"Urbe\",7534 => \"Urbino\",7535 => \"Urbisaglia\",7536 => \"Urgnano\",7537 => \"Uri\",7538 => \"Ururi\",7539 => \"Urzulei\",7540 => \"Uscio\",7541 => \"Usellus\",7542 => \"Usini\",7543 => \"Usmate Velate\",7544 => \"Ussana\",7545 => \"Ussaramanna\",7546 => \"Ussassai\",7547 => \"Usseaux\",7548 => \"Usseglio\",7549 => \"Ussita\",7550 => \"Ustica\",7551 => \"Uta\",7552 => \"Uzzano\",7553 => \"Vaccarizzo albanese\",7554 => \"Vacone\",7555 => \"Vacri\",7556 => \"Vadena\",7557 => \"Vado ligure\",7558 => \"Vagli sotto\",7559 => \"Vaglia\",8388 => \"Vaglio Basilicata\",7561 => \"Vaglio serra\",7562 => \"Vaiano\",7563 => \"Vaiano cremasco\",7564 => \"Vaie\",7565 => \"Vailate\",7566 => \"Vairano Patenora\",7567 => \"Vajont\",8511 => \"Val Canale\",7568 => \"Val della torre\",8243 => \"Val di Lei\",8237 => \"Val di Luce\",7569 => \"Val di nizza\",8440 => \"Val di Sangro casello\",7570 => \"Val di vizze\",8223 => \"Val Ferret\",8521 => \"Val Grauson\",7571 => \"Val Masino\",7572 => \"Val Rezzo\",8215 => \"Val Senales\",8522 => \"Val Urtier\",8224 => \"Val Veny\",7573 => \"Valbondione\",7574 => \"Valbrembo\",7575 => \"Valbrevenna\",7576 => \"Valbrona\",8311 => \"Valcava\",7577 => \"Valda\",7578 => \"Valdagno\",7579 => \"Valdaora\",7580 => \"Valdastico\",7581 => \"Valdengo\",7582 => \"Valderice\",7583 => \"Valdidentro\",7584 => \"Valdieri\",7585 => \"Valdina\",7586 => \"Valdisotto\",7587 => \"Valdobbiadene\",7588 => \"Valduggia\",7589 => \"Valeggio\",7590 => \"Valeggio sul Mincio\",7591 => \"Valentano\",7592 => \"Valenza\",7593 => \"Valenzano\",7594 => \"Valera fratta\",7595 => \"Valfabbrica\",7596 => \"Valfenera\",7597 => \"Valfloriana\",7598 => \"Valfurva\",7599 => \"Valganna\",7600 => \"Valgioie\",7601 => \"Valgoglio\",7602 => \"Valgrana\",7603 => \"Valgreghentino\",7604 => \"Valgrisenche\",7605 => \"Valguarnera caropepe\",8344 => \"Valico Citerna\",8510 => \"Valico dei Giovi\",8318 => \"Valico di Monforte\",8509 => \"Valico di Montemiletto\",8507 => \"Valico di Scampitella\",7606 => \"Vallada agordina\",7607 => \"Vallanzengo\",7608 => \"Vallarsa\",7609 => \"Vallata\",7610 => \"Valle agricola\",7611 => \"Valle Aurina\",7612 => \"Valle castellana\",8444 => \"Valle del salto\",7613 => \"Valle dell'Angelo\",7614 => \"Valle di Cadore\",7615 => \"Valle di Casies\",7616 => \"Valle di maddaloni\",7617 => \"Valle lomellina\",7618 => \"Valle mosso\",7619 => \"Valle salimbene\",7620 => \"Valle San Nicolao\",7621 => \"Vallebona\",7622 => \"Vallecorsa\",7623 => \"Vallecrosia\",7624 => \"Valledolmo\",7625 => \"Valledoria\",7626 => \"Vallefiorita\",7627 => \"Vallelonga\",7628 => \"Vallelunga pratameno\",7629 => \"Vallemaio\",7630 => \"Vallepietra\",7631 => \"Vallerano\",7632 => \"Vallermosa\",7633 => \"Vallerotonda\",7634 => \"Vallesaccarda\",8749 => \"Valletta\",7635 => \"Valleve\",7636 => \"Valli del Pasubio\",7637 => \"Vallinfreda\",7638 => \"Vallio terme\",7639 => \"Vallo della Lucania\",7640 => \"Vallo di Nera\",7641 => \"Vallo torinese\",8191 => \"Vallombrosa\",8471 => \"Vallon\",7642 => \"Valloriate\",7643 => \"Valmacca\",7644 => \"Valmadrera\",7645 => \"Valmala\",8313 => \"Valmasino\",7646 => \"Valmontone\",7647 => \"Valmorea\",7648 => \"Valmozzola\",7649 => \"Valnegra\",7650 => \"Valpelline\",7651 => \"Valperga\",7652 => \"Valprato Soana\",7653 => \"Valsavarenche\",7654 => \"Valsecca\",7655 => \"Valsinni\",7656 => \"Valsolda\",7657 => \"Valstagna\",7658 => \"Valstrona\",7659 => \"Valtopina\",7660 => \"Valtorta\",8148 => \"Valtorta impianti\",7661 => \"Valtournenche\",7662 => \"Valva\",7663 => \"Valvasone\",7664 => \"Valverde\",7665 => \"Valverde\",7666 => \"Valvestino\",7667 => \"Vandoies\",7668 => \"Vanzaghello\",7669 => \"Vanzago\",7670 => \"Vanzone con San Carlo\",7671 => \"Vaprio d'Adda\",7672 => \"Vaprio d'Agogna\",7673 => \"Varallo\",7674 => \"Varallo Pombia\",7675 => \"Varano Borghi\",7676 => \"Varano de' Melegari\",7677 => \"Varapodio\",7678 => \"Varazze\",8600 => \"Varcaturo\",7679 => \"Varco sabino\",7680 => \"Varedo\",7681 => \"Varena\",7682 => \"Varenna\",7683 => \"Varese\",7684 => \"Varese ligure\",8284 => \"Varigotti\",7685 => \"Varisella\",7686 => \"Varmo\",7687 => \"Varna\",7688 => \"Varsi\",7689 => \"Varzi\",7690 => \"Varzo\",7691 => \"Vas\",7692 => \"Vasanello\",7693 => \"Vasia\",7694 => \"Vasto\",7695 => \"Vastogirardi\",7696 => \"Vattaro\",7697 => \"Vauda canavese\",7698 => \"Vazzano\",7699 => \"Vazzola\",7700 => \"Vecchiano\",7701 => \"Vedano al Lambro\",7702 => \"Vedano Olona\",7703 => \"Veddasca\",7704 => \"Vedelago\",7705 => \"Vedeseta\",7706 => \"Veduggio con Colzano\",7707 => \"Veggiano\",7708 => \"Veglie\",7709 => \"Veglio\",7710 => \"Vejano\",7711 => \"Veleso\",7712 => \"Velezzo lomellina\",8530 => \"Vellano\",7713 => \"Velletri\",7714 => \"Vellezzo Bellini\",7715 => \"Velo d'Astico\",7716 => \"Velo veronese\",7717 => \"Velturno\",7718 => \"Venafro\",7719 => \"Venaria\",7720 => \"Venarotta\",7721 => \"Venasca\",7722 => \"Venaus\",7723 => \"Vendone\",7724 => \"Vendrogno\",7725 => \"Venegono inferiore\",7726 => \"Venegono superiore\",7727 => \"Venetico\",7728 => \"Venezia\",8502 => \"Venezia Mestre\",8268 => \"Venezia Tessera\",7729 => \"Veniano\",7730 => \"Venosa\",7731 => \"Venticano\",7732 => \"Ventimiglia\",7733 => \"Ventimiglia di Sicilia\",7734 => \"Ventotene\",7735 => \"Venzone\",7736 => \"Verano\",7737 => \"Verano brianza\",7738 => \"Verbania\",7739 => \"Verbicaro\",7740 => \"Vercana\",7741 => \"Verceia\",7742 => \"Vercelli\",7743 => \"Vercurago\",7744 => \"Verdellino\",7745 => \"Verdello\",7746 => \"Verderio inferiore\",7747 => \"Verderio superiore\",7748 => \"Verduno\",7749 => \"Vergato\",7750 => \"Vergemoli\",7751 => \"Verghereto\",7752 => \"Vergiate\",7753 => \"Vermezzo\",7754 => \"Vermiglio\",8583 => \"Vernago\",7755 => \"Vernante\",7756 => \"Vernasca\",7757 => \"Vernate\",7758 => \"Vernazza\",7759 => \"Vernio\",7760 => \"Vernole\",7761 => \"Verolanuova\",7762 => \"Verolavecchia\",7763 => \"Verolengo\",7764 => \"Veroli\",7765 => \"Verona\",8269 => \"Verona Villafranca\",7766 => \"Veronella\",7767 => \"Verrayes\",7768 => \"Verres\",7769 => \"Verretto\",7770 => \"Verrone\",7771 => \"Verrua po\",7772 => \"Verrua Savoia\",7773 => \"Vertemate con Minoprio\",7774 => \"Vertova\",7775 => \"Verucchio\",7776 => \"Veruno\",7777 => \"Vervio\",7778 => \"Vervo'\",7779 => \"Verzegnis\",7780 => \"Verzino\",7781 => \"Verzuolo\",7782 => \"Vescovana\",7783 => \"Vescovato\",7784 => \"Vesime\",7785 => \"Vespolate\",7786 => \"Vessalico\",7787 => \"Vestenanova\",7788 => \"Vestigne'\",7789 => \"Vestone\",7790 => \"Vestreno\",7791 => \"Vetralla\",7792 => \"Vetto\",7793 => \"Vezza d'Alba\",7794 => \"Vezza d'Oglio\",7795 => \"Vezzano\",7796 => \"Vezzano ligure\",7797 => \"Vezzano sul crostolo\",7798 => \"Vezzi portio\",8317 => \"Vezzo\",7799 => \"Viadana\",7800 => \"Viadanica\",7801 => \"Viagrande\",7802 => \"Viale\",7803 => \"Vialfre'\",7804 => \"Viano\",7805 => \"Viareggio\",7806 => \"Viarigi\",8674 => \"Vibo Marina\",7807 => \"Vibo Valentia\",7808 => \"Vibonati\",7809 => \"Vicalvi\",7810 => \"Vicari\",7811 => \"Vicchio\",7812 => \"Vicenza\",7813 => \"Vico canavese\",7814 => \"Vico del Gargano\",7815 => \"Vico Equense\",7816 => \"Vico nel Lazio\",7817 => \"Vicoforte\",7818 => \"Vicoli\",7819 => \"Vicolungo\",7820 => \"Vicopisano\",7821 => \"Vicovaro\",7822 => \"Viddalba\",7823 => \"Vidigulfo\",7824 => \"Vidor\",7825 => \"Vidracco\",7826 => \"Vieste\",7827 => \"Vietri di Potenza\",7828 => \"Vietri sul mare\",7829 => \"Viganella\",7830 => \"Vigano San Martino\",7831 => \"Vigano'\",7832 => \"Vigarano Mainarda\",7833 => \"Vigasio\",7834 => \"Vigevano\",7835 => \"Viggianello\",7836 => \"Viggiano\",7837 => \"Viggiu'\",7838 => \"Vighizzolo d'Este\",7839 => \"Vigliano biellese\",7840 => \"Vigliano d'Asti\",7841 => \"Vignale monferrato\",7842 => \"Vignanello\",7843 => \"Vignate\",8125 => \"Vignola\",7845 => \"Vignola Falesina\",7846 => \"Vignole Borbera\",7847 => \"Vignolo\",7848 => \"Vignone\",8514 => \"Vigo Ciampedie\",7849 => \"Vigo di Cadore\",7850 => \"Vigo di Fassa\",7851 => \"Vigo Rendena\",7852 => \"Vigodarzere\",7853 => \"Vigolo\",7854 => \"Vigolo Vattaro\",7855 => \"Vigolzone\",7856 => \"Vigone\",7857 => \"Vigonovo\",7858 => \"Vigonza\",7859 => \"Viguzzolo\",7860 => \"Villa agnedo\",7861 => \"Villa bartolomea\",7862 => \"Villa basilica\",7863 => \"Villa biscossi\",7864 => \"Villa carcina\",7865 => \"Villa castelli\",7866 => \"Villa celiera\",7867 => \"Villa collemandina\",7868 => \"Villa cortese\",7869 => \"Villa d'Adda\",7870 => \"Villa d'Alme'\",7871 => \"Villa d'Ogna\",7872 => \"Villa del bosco\",7873 => \"Villa del conte\",7874 => \"Villa di briano\",7875 => \"Villa di Chiavenna\",7876 => \"Villa di Serio\",7877 => \"Villa di Tirano\",7878 => \"Villa Estense\",7879 => \"Villa Faraldi\",7880 => \"Villa Guardia\",7881 => \"Villa Lagarina\",7882 => \"Villa Latina\",7883 => \"Villa Literno\",7884 => \"Villa minozzo\",7885 => \"Villa poma\",7886 => \"Villa rendena\",7887 => \"Villa San Giovanni\",7888 => \"Villa San Giovanni in Tuscia\",7889 => \"Villa San Pietro\",7890 => \"Villa San Secondo\",7891 => \"Villa Sant'Angelo\",7892 => \"Villa Sant'Antonio\",7893 => \"Villa Santa Lucia\",7894 => \"Villa Santa Lucia degli Abruzzi\",7895 => \"Villa Santa Maria\",7896 => \"Villa Santina\",7897 => \"Villa Santo Stefano\",7898 => \"Villa verde\",7899 => \"Villa vicentina\",7900 => \"Villabassa\",7901 => \"Villabate\",7902 => \"Villachiara\",7903 => \"Villacidro\",7904 => \"Villadeati\",7905 => \"Villadose\",7906 => \"Villadossola\",7907 => \"Villafalletto\",7908 => \"Villafranca d'Asti\",7909 => \"Villafranca di Verona\",7910 => \"Villafranca in Lunigiana\",7911 => \"Villafranca padovana\",7912 => \"Villafranca Piemonte\",7913 => \"Villafranca sicula\",7914 => \"Villafranca tirrena\",7915 => \"Villafrati\",7916 => \"Villaga\",7917 => \"Villagrande Strisaili\",7918 => \"Villalago\",7919 => \"Villalba\",7920 => \"Villalfonsina\",7921 => \"Villalvernia\",7922 => \"Villamagna\",7923 => \"Villamaina\",7924 => \"Villamar\",7925 => \"Villamarzana\",7926 => \"Villamassargia\",7927 => \"Villamiroglio\",7928 => \"Villandro\",7929 => \"Villanova biellese\",7930 => \"Villanova canavese\",7931 => \"Villanova d'Albenga\",7932 => \"Villanova d'Ardenghi\",7933 => \"Villanova d'Asti\",7934 => \"Villanova del Battista\",7935 => \"Villanova del Ghebbo\",7936 => \"Villanova del Sillaro\",7937 => \"Villanova di Camposampiero\",7938 => \"Villanova marchesana\",7939 => \"Villanova Mondovi'\",7940 => \"Villanova Monferrato\",7941 => \"Villanova Monteleone\",7942 => \"Villanova solaro\",7943 => \"Villanova sull'Arda\",7944 => \"Villanova Truschedu\",7945 => \"Villanova Tulo\",7946 => \"Villanovaforru\",7947 => \"Villanovafranca\",7948 => \"Villanterio\",7949 => \"Villanuova sul Clisi\",7950 => \"Villaperuccio\",7951 => \"Villapiana\",7952 => \"Villaputzu\",7953 => \"Villar dora\",7954 => \"Villar focchiardo\",7955 => \"Villar pellice\",7956 => \"Villar Perosa\",7957 => \"Villar San Costanzo\",7958 => \"Villarbasse\",7959 => \"Villarboit\",7960 => \"Villareggia\",7961 => \"Villaricca\",7962 => \"Villaromagnano\",7963 => \"Villarosa\",7964 => \"Villasalto\",7965 => \"Villasanta\",7966 => \"Villasimius\",7967 => \"Villasor\",7968 => \"Villaspeciosa\",7969 => \"Villastellone\",7970 => \"Villata\",7971 => \"Villaurbana\",7972 => \"Villavallelonga\",7973 => \"Villaverla\",7974 => \"Villeneuve\",7975 => \"Villesse\",7976 => \"Villetta Barrea\",7977 => \"Villette\",7978 => \"Villimpenta\",7979 => \"Villongo\",7980 => \"Villorba\",7981 => \"Vilminore di scalve\",7982 => \"Vimercate\",7983 => \"Vimodrone\",7984 => \"Vinadio\",7985 => \"Vinchiaturo\",7986 => \"Vinchio\",7987 => \"Vinci\",7988 => \"Vinovo\",7989 => \"Vinzaglio\",7990 => \"Viola\",7991 => \"Vione\",7992 => \"Vipiteno\",7993 => \"Virgilio\",7994 => \"Virle Piemonte\",7995 => \"Visano\",7996 => \"Vische\",7997 => \"Visciano\",7998 => \"Visco\",7999 => \"Visone\",8000 => \"Visso\",8001 => \"Vistarino\",8002 => \"Vistrorio\",8003 => \"Vita\",8004 => \"Viterbo\",8005 => \"Viticuso\",8006 => \"Vito d'Asio\",8007 => \"Vitorchiano\",8008 => \"Vittoria\",8009 => \"Vittorio Veneto\",8010 => \"Vittorito\",8011 => \"Vittuone\",8012 => \"Vitulano\",8013 => \"Vitulazio\",8014 => \"Viu'\",8015 => \"Vivaro\",8016 => \"Vivaro romano\",8017 => \"Viverone\",8018 => \"Vizzini\",8019 => \"Vizzola Ticino\",8020 => \"Vizzolo Predabissi\",8021 => \"Vo'\",8022 => \"Vobarno\",8023 => \"Vobbia\",8024 => \"Vocca\",8025 => \"Vodo cadore\",8026 => \"Voghera\",8027 => \"Voghiera\",8028 => \"Vogogna\",8029 => \"Volano\",8030 => \"Volla\",8031 => \"Volongo\",8032 => \"Volpago del montello\",8033 => \"Volpara\",8034 => \"Volpedo\",8035 => \"Volpeglino\",8036 => \"Volpiano\",8037 => \"Volta mantovana\",8038 => \"Voltaggio\",8039 => \"Voltago agordino\",8040 => \"Volterra\",8041 => \"Voltido\",8042 => \"Volturara Appula\",8043 => \"Volturara irpina\",8044 => \"Volturino\",8045 => \"Volvera\",8046 => \"Vottignasco\",8181 => \"Vulcano Porto\",8047 => \"Zaccanopoli\",8048 => \"Zafferana etnea\",8049 => \"Zagarise\",8050 => \"Zagarolo\",8051 => \"Zambana\",8707 => \"Zambla\",8052 => \"Zambrone\",8053 => \"Zandobbio\",8054 => \"Zane'\",8055 => \"Zanica\",8056 => \"Zapponeta\",8057 => \"Zavattarello\",8058 => \"Zeccone\",8059 => \"Zeddiani\",8060 => \"Zelbio\",8061 => \"Zelo Buon Persico\",8062 => \"Zelo Surrigone\",8063 => \"Zeme\",8064 => \"Zenevredo\",8065 => \"Zenson di Piave\",8066 => \"Zerba\",8067 => \"Zerbo\",8068 => \"Zerbolo'\",8069 => \"Zerfaliu\",8070 => \"Zeri\",8071 => \"Zermeghedo\",8072 => \"Zero Branco\",8073 => \"Zevio\",8455 => \"Ziano di Fiemme\",8075 => \"Ziano piacentino\",8076 => \"Zibello\",8077 => \"Zibido San Giacomo\",8078 => \"Zignago\",8079 => \"Zimella\",8080 => \"Zimone\",8081 => \"Zinasco\",8082 => \"Zoagli\",8083 => \"Zocca\",8084 => \"Zogno\",8085 => \"Zola Predosa\",8086 => \"Zoldo alto\",8087 => \"Zollino\",8088 => \"Zone\",8089 => \"Zoppe' di cadore\",8090 => \"Zoppola\",8091 => \"Zovencedo\",8092 => \"Zubiena\",8093 => \"Zuccarello\",8094 => \"Zuclo\",8095 => \"Zugliano\",8096 => \"Zuglio\",8097 => \"Zumaglia\",8098 => \"Zumpano\",8099 => \"Zungoli\",8100 => \"Zungri\");\n\t$return = '<br/><a href=\"https://www.3bmeteo.com'.strtolower($trebi_url_locs[$idloc]).'\" style=\"font-size:10px;\">Meteo '.$trebi_locs[$idloc].'</a>';\n\treturn $return;\n}", "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 }", "private function _makepath() {\n $params = func_get_args();\n $path = '';\n\n foreach ($params as $value) {\n $path .= $value;\n\n if (!empty($value)) $path .= PS;\n }\n\n return $path;\n }", "public static function uriKey()\n {\n return 'users';\n }", "public function route($method='', $paths = array(), $params, $userid){\n\n $identifier = !empty($paths['0']) ? $paths['0'] : '';\n $identifier_subclass = !empty($paths['2']) ? $paths['2'] : '';\n\n //format the response\n $response = '';\n //the default class will be company\n $class = 'company';\n \n #check if the paths are empty. if they are, it is a call to master endpoint\n if(empty($paths)){\n $class = 'company';\n\n }elseif(!empty($paths['0']) && !is_numeric($paths['0'])){#check if the first parameter is numeric. if it's not, it is an invalid call\n echo 'HTTP/1.1 404 Not Found';\n header('HTTP/1.1 404 Not Found');\n die();\n }elseif(!empty($paths['1'])){\n #if all is fine, route to desired class\n $classname = 'company_'.$paths['1'];\n $class = new $classname;\n $identifier_subclass = !empty($paths['2']) ? $paths['2'] : '';\n\n }\n switch ($method) {\n case 'GET':\n if((empty($identifier) || !is_numeric($identifier))){\n $response = $class::getAll($userid, $identifier);\n }else{\n if( (empty($identifier_subclass) || !is_numeric($identifier_subclass)) && $class != 'company'){\n \n $response = $class::getAll($userid, $identifier);\n }else{\n $response = $class::get($identifier, $identifier_subclass); \n }\n \n }\n break;\n case 'POST':\n $response = $class::create($params, $userid, $identifier);\n break;\n case 'PUT':\n if(empty($identifier) || !is_numeric($identifier)){\n echo 'HTTP/1.1 404 Not Found';\n header('HTTP/1.1 404 Not Found');\n die();\n }\n\n if(!empty($identifier_subclass)){\n $response = $class::edit($identifier, $params, $identifier_subclass);\n }else{\n $response = $class::edit($identifier, $params, $userid);\n }\n break;\n case 'DELETE':\n if(empty($identifier) || !is_numeric($identifier)){\n echo 'HTTP/1.1 404 Not Found';\n header('HTTP/1.1 404 Not Found');\n die();\n }\n\n if(!empty($identifier_subclass)){\n $response = $class::delete($identifier, $identifier_subclass);\n }else{\n $response = $class::delete($userid, $identifier);\n }\n break;\n default:\n header('HTTP/1.0 501 Not implemented');\n die();\n break;\n }\n return $response;\n }", "public function buildPath($pathKeys) {\n return join('.', $pathKeys);\n }", "function userconnection_frnd_relationship($path_array) {\r\n\tglobal $setting, $database;\r\n\t$temp =-1;\r\n\tforeach ($path_array as $key) {\r\n\t\t$query = $database->database_query(\"SELECT friend_type FROM se_friends WHERE friend_user_id1 = $temp AND friend_user_id2 = $key \");\r\n\t\t $temp = $key;\r\n\t\t while($ee = $database->database_fetch_assoc($query)) {\r\n\t\t \t$relation[] = $ee['friend_type'];\r\n\t\t }\r\n\t}\r\n return $relation;\r\n}", "public function get_userfollowing($id)\n\t{\n\t\t$result = $this->db->select('users.Id as userId, fullname, phone, fotoprofil');\n\t\t$result = $this->db->from('users');\n\t\t$result = $this->db->join('following', 'following.followed_id = users.Id');\n\t\t$result = $this->db->where('following.user_id', $id);\n\t\t$result = $this->db->get();\n\n\t\tif($result->num_rows() > 0)\n {\n foreach ($result->result() as $row)\n {\n \t$data[] = $row;\n\t\t\t}\n\t\t\t\n return $data;\n }\n\t}", "function create_url( $args ) {\n\tglobal $base_url;\n\t\n\t$base_url = add_query_arg( 'wc-api', 'software-api', $base_url );\n\t\n\treturn $base_url . '&' . http_build_query( $args );\n}", "function generate_url($u) {\n return is_scalar($u) ? (string) $u : url_for($u);\n}", "public function url_user($id, $name)\n\t{\n\t\treturn URL::user($id, $name);\n\t}", "public function buildUrl($method, $params = array()) {\n\t\tswitch ($method) {\n\t\t\tcase 'twitter.users.getUserByName':\n\t\t\t\treturn \"http://www.twitter.com/users/show/{$params['name']}.{$this->format}\";\n\t\t\tcase 'twitter.users.getTimelineByName':\n\t\t\t\treturn \"http://www.twitter.com/statuses/user_timeline.{$this->format}?screen_name={$params['name']}\";\n\t\t\tcase 'twitter.users.update':\n\t\t\t\treturn \"http://www.twitter.com/statuses/update.{$this->format}\";\n\t\t\tcase 'twitter.users.destroy':\n\t\t\t\treturn \"http://www.twitter.com/statuses/destroy/{$params['id']}.{$this->format}\";\n\t\t}\n\t}", "function gen_id() {\n\t\t$this->id = get_uid();\n\t\t$this->mk_paths($this->id);\n\t}", "function getUrl($endpoint_id, $user_params) \n {\n global $endpoints_master;\n\n // validate the endpoint id is valid\n if (!array_key_exists($endpoint_id, $endpoints_master))\n shared::ex(EX_INVALID_ENDPOINT_ID . ': ' . $endpoint_id);\n\n // get the endpoint definition including url and list of valid parameters\n $endpoint = \n $endpoints_master[$endpoint_id];\n\n // are all the parameters passed in legit? bad ones will gunk up the api\n $invalid_params = \n array_diff(\n shared::map_to_member($user_params, 'name'), // names of user-provided parameters\n shared::map_to_member($endpoint['params'], 'name')); // names of valid parameters for this endpoint\n \n // if we found any, throw exception\n if (count($invalid_params) > 0)\n shared::ex(EX_INVALID_PARAMETER_SUPPLIED);\n\n // verified params have the necessary defaults added and all required params\n $verified_user_params =\n $this->check_requireds_and_add_defaults($endpoint, $user_params);\n\n // add any required auto-parameters (api key, api secret)\n $final_params = \n array_merge(\n $verified_user_params\n , auto_param($endpoint, 'requires_api_secret', KEY_API_SECRET, API_SECRET)\n , auto_param($endpoint, 'requires_api_key', KEY_API_KEY, API_KEY)\n , auto_param($endpoint, 'requires_access_token', KEY_ACCESS_TOKEN, ACCESS_TOKEN));\n\n\n // convert our format to the format required for http_build_query \n // e.g.\n // [ ('name'=>'limit','val'=>30), ('name' => 'forum', 'val'='disqus') ]\n // becomes \n // [ ('limit' => 30), ('forum'=>'disqus') ]\n $transformed_params = \n array_map(\n function($val) { return array($val['name'] => $val['val']); }\n , $final_params);\n\n\n // map each transformed parameter record to a url-encoded key=value string\n // e.g.\n // [ ('limit' => 30), ('forum'=>'disqus') ]\n // becomes\n // [ \"limit=30\", \"forum=disqus\" ]\n $mapped = \n array_map(\n function($v){ return http_build_query($v); }\n , $transformed_params);\n\n\n // implode the various key=value strings into key=value&key2=value2&...\n $qry_str = \n implode('&', $mapped);\n\n\n // combine the endpoint url and the query string into full abc/def.ghi?param1=val1&param2=val2 string\n // the hostname and root of the url will be added elsewhere\n return $endpoint['url'] . '?' . $qry_str;\n }", "abstract protected function paths();", "function getLoanprofileUrl($userid, $loanid){\n\tglobal $database;\n\t$username = $database->getUserNameById($userid);\n\tif(empty($username)) {\n\t\tLogger(\"uname_empty_url_rewrite_loanprofile\".$_SERVER['HTTP_REFERER'].\" \".$userid.\" \".$loanid);\n\t}\n\t$username = str_replace(' ','-',$username);\n\t$url = \"microfinance/loan/$username/$loanid.html\";\n\treturn $url;\n}", "function email_get_folders($userid, $sort='id') {\n\n\treturn get_records('email_folder', 'userid', $userid, $sort);\n}", "public function buildOptionsIdFromUid()\n {\n if (empty($this->uid))\n throw new \\Exception(\"A uid is required.\");\n \n return [\n new Endpoint\\UsersEndpoint(),\n [\n BuildRequestOptions::FILTERS => [\n new \\Validic\\Filter\\UidFilter($this->uid)\n ]\n ]\n ];\n }", "public function getItemPath($item_id,$start=true){\n\n if($item_id != 0) {\n $sql=\"SELECT * FROM `\".$this->db_table.\"` WHERE `\".$this->item_identifier_field_name.\"`='\".$item_id.\"' \";\n $res=mysql_query($sql);\n $itemdata=mysql_fetch_assoc($res);\n array_push($this->item_path,$itemdata); \n\n if($itemdata[$this->parent_identifier_field_name]!=0) {\n $this->item_path=$this->getItemPath($itemdata[$this->parent_identifier_field_name],false);\n } \n if ($start) {\n $this->item_path=array_reverse($this->item_path);\n }\n }\n return $this->item_path;\n\n }", "protected function buildUrl($resource_path, array $variables) {\n if (!empty($resource_path)) {\n $url = $this->endpoint . $resource_path;\n }\n else {\n $url = $this->endpoint;\n }\n\n // Set the options to be used by url().\n $options = array(\n 'query' => isset($variables['query']) ? $variables['query'] : '',\n 'absolute' => TRUE,\n 'alias' => TRUE,\n 'external' => TRUE,\n );\n\n // TODO: find a way to skip hook_url_outbound or migrate url() function\n // to internal function.\n $url = url($url, $options);\n\n return $url;\n }", "protected function addPath($user_id, $file_path) {\n\t\t$sql = \"INSERT INTO csv_meta_paths(user_id, path) VALUES(?, ?)\";\n\t\t$fields = Yii::app()->db->createCommand($sql)\n\t\t\t->execute(array($user_id, $file_path));\n\t}", "public function show_user_following( $user_id )\n {\n $offset = $this->input->get( 'offset' );\n $limit = $this->input->get( 'limit' );\n\n $offset = ( $offset ) ? $offset : 0;\n $limit = ( $limit ) ? $limit : 10;\n\n $follows = $this->clip_model->get_user_following( $user_id, $offset, $limit );\n\n $json = json_encode( $follows );\n\n if ( $json ) {\n header( 'Content-type: application/json' );\n echo( $json );\n }\n }", "public function get_FollowingList($user_id){\r\n $this->db->select(\"followers.user_id,followers.follower_id,followers.created_at,users.full_name,users.user_name,users.picture\");\r\n $this->db->from('followers');\r\n $this->db->order_by(\"full_name\", \"asc\");\r\n $this->db->join('users','users.user_id = followers.user_id');\r\n $this->db->where('followers.follower_id',$user_id);\r\n $followinglist=$this->db->get();\r\n return $followinglist->result();\r\n }", "private function return_user_uri($id) {\r\n return get_author_posts_url($id).\"#account\";\r\n }", "private function renderMapRouteMarkerByPath()\n {\n $marker = array();\n\n // short variables\n $confMapper = $this->confMap[ 'configuration.' ][ 'route.' ][ 'markerMapper.' ];\n $tableMarker = $confMapper[ 'tables.' ][ 'local.' ][ 'marker' ];\n // short variables\n\n foreach ( $this->pObj->rows as $rowIn )\n {\n $rowOut = $this->renderMapRouteMarkerByPathRow( $rowIn );\n $key = $rowOut[ $tableMarker . '.uid' ];\n $marker[ $key ] = $rowOut;\n }\n return $marker;\n }", "protected function routeToURI(){\n\t\t$args = func_get_args();\n\t\treturn call_user_func_array(array('Router', 'routeToURI'), $args);\n\t}", "function getEmailPath($id = \"0\", $urlPrefix = '') {\n if($id == \"\") { $id = \"0\"; }\n $treeRecord = $this->getTreeRecord($id);\n if($treeRecord != null) {\n if($treeRecord->belongs_to == \"0\") {\n return \"/ <a href=\\\"\" . $urlPrefix . \"index.php?id=\".$treeRecord->id.\"\\\">\".$treeRecord->title.\"</a>\";\n } else {\n $path = $this->getEmailPath($treeRecord->belongs_to, $urlPrefix);\n return $path . \" / <a href=\\\"\" . $urlPrefix . \"index.php?id=\".$treeRecord->id.\"\\\">\" . $treeRecord->title.\"</a>\";\n }\n } else {\n return \"/ \";\n }\n }", "function getPath($id = \"0\", $urlPrefix = '') {\n if($id == \"\") { $id = \"0\"; }\n $treeRecord = $this->getTreeRecord($id);\n\n if($treeRecord != null) {\n if($treeRecord->belongs_to == \"0\") {\n return \"<li class=\\\"breadcrumb-item\\\"><a href=\\\"\" . $urlPrefix . \"index.php?id=\".$treeRecord->id.\"\\\">\".$treeRecord->title.\"</a></li>\";\n } else {\n $path = $this->getPath($treeRecord->belongs_to, $urlPrefix);\n return $path . \"<li class=\\\"breadcrumb-item\\\"><a href=\\\"\" . $urlPrefix . \"index.php?id=\".$treeRecord->id.\"\\\">\" . $treeRecord->title.\"</a></li>\";\n }\n } else {\n return \"/ \";\n }\n }", "protected function makePath(...$parts) : string\n {\n return implode('::', $parts);\n }", "public function showList($userId)\r\n {\r\n\r\n\r\n $ds = new DataSource();\r\n $array = array($userId);\r\n $sql = sprintf(\"SELECT * from %s where %s=?\", self::_TABLE, self::USER);\r\n\r\n $dirFileList = \"<h2>Listado de Reservas</h2>\";\r\n foreach ($ds->fetchAll($sql, $array) as $row) {\r\n $id = $row['id'];\r\n $dirFileList .= \"- \" . $id . \"&nbsp;<a href='\" . $_SERVER['PHP_SELF'] . \"?section=reserves&delete=\".$id.\" '>Borrar</a>&nbsp;|&nbsp;<a href='\" . $_SERVER['PHP_SELF'] . \"?section=reserves&watch=$id'>Ver</a>|&nbsp;<a href='\" . $_SERVER['PHP_SELF'] . \"?section=reserves&edit=$id'>Editar</a><br>\";\r\n\r\n }\r\n\r\n $ds->close();\r\n\r\n return $dirFileList;\r\n }", "private function generatePath($base_path=NULL, $vpaths=1, $vdepth=1, $vfiles=1)\r\n\t{\r\n\t\ttry {\r\n\t\t\t$data \t = [];\r\n\t\t\t$full_path = \"/home/user\";\r\n\t\t\tif( $base_path!==NULL ){\r\n\t\t\t\t$full_path = $base_path;\r\n\t\t\t}\r\n\r\n\t\t\tfor ($i=1; $i < $vpaths+1 ; $i++) \r\n\t\t\t{ \r\n\t\t\t\t$generated = $this->generateFolder($vdepth, $vfiles);\r\n\t\t\t\t$data[] = $full_path.\"/\".$generated['depths'].$generated['files'][0];\r\n\t\t\t}\r\n\r\n\t\t\treturn $data;\r\n\t\t\t\r\n\t\t} catch (Exception $e) {\r\n\t\t\t\r\n\t\t}\r\n\t}", "protected function apiUrl(string $path = '')\n {\n return 'entries/'.$this->getId().($path ? '/'.ltrim($path) : '');\n }", "function build_url(array $parts) {\n return (isset($parts['scheme']) ? \"{$parts['scheme']}:\" : '') . \n ((isset($parts['user']) || isset($parts['host'])) ? '//' : '') . \n (isset($parts['user']) ? \"{$parts['user']}\" : '') . \n (isset($parts['pass']) ? \":{$parts['pass']}\" : '') . \n (isset($parts['user']) ? '@' : '') . \n (isset($parts['host']) ? \"{$parts['host']}\" : '') . \n (isset($parts['port']) ? \":{$parts['port']}\" : '') . \n (isset($parts['path']) ? \"{$parts['path']}\" : '') . \n (isset($parts['query']) ? \"?{$parts['query']}\" : '') . \n (isset($parts['fragment']) ? \"#{$parts['fragment']}\" : '');\n}", "protected static function makePath(...$path_components): string { // phpcs:ignore\n return self::gluePartsTogether($path_components, '/');\n }" ]
[ "0.73111373", "0.688177", "0.6846103", "0.6696979", "0.63262826", "0.60690075", "0.6022626", "0.6009777", "0.57877827", "0.57311195", "0.5601593", "0.55471545", "0.55305636", "0.54062057", "0.5396578", "0.52734786", "0.5237174", "0.5209232", "0.5159071", "0.51410407", "0.50850874", "0.50731814", "0.5029474", "0.4991474", "0.49145418", "0.48888534", "0.48684987", "0.48609018", "0.48598704", "0.48583198", "0.48538044", "0.4830376", "0.48218387", "0.48093414", "0.48068956", "0.4781538", "0.47761738", "0.4762123", "0.47465715", "0.47375622", "0.47317812", "0.47259223", "0.47161588", "0.4703495", "0.46862075", "0.46806398", "0.4667257", "0.46437925", "0.46432802", "0.46317312", "0.46120092", "0.46054903", "0.4604592", "0.4599688", "0.45967117", "0.45918098", "0.4589442", "0.4583029", "0.45766836", "0.45745507", "0.4574477", "0.45678833", "0.45530355", "0.45487666", "0.4545206", "0.45286787", "0.452674", "0.4525862", "0.45175073", "0.4510268", "0.44977978", "0.44961992", "0.44955158", "0.44943726", "0.44931093", "0.4492869", "0.44884324", "0.44838306", "0.4470122", "0.44679594", "0.44659266", "0.44654822", "0.44629163", "0.445505", "0.44487602", "0.44433945", "0.44424745", "0.4436847", "0.44322413", "0.44293192", "0.4428665", "0.4426161", "0.44248995", "0.4424663", "0.44204247", "0.44146723", "0.43986633", "0.4392961", "0.43908933", "0.43858394" ]
0.8433878
0
API Function to generate a url path for use by other modules/themes. Example Usage: $nids = "1,2,3,4"; where '1' is the nid of the starting point '4' is the nid of the end point and the numbers in between are the nids of the waypoints $path = getdirections_locations_via_path($nids); $url = l(t('Get directions'), $path);
function getdirections_locations_via_path($nids) { if (module_exists('location')) { return "getdirections/locations_via/$nids"; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getdirections_locations_path($fromnid, $tonid) {\n if (module_exists('location') && is_numeric($fromnid) && is_numeric($tonid)) {\n return \"getdirections/locations/$fromnid/$tonid\";\n }\n}", "function getdirections_location_n2u_path($fromnid, $touid) {\n if (module_exists('location') && is_numeric($fromnid) && is_numeric($touid)) {\n return \"getdirections/location_u2n/$fromnid/$touid\";\n }\n}", "function getdirections_location_u2n_path($fromuid, $tonid) {\n if (module_exists('location') && is_numeric($fromuid) && is_numeric($tonid)) {\n return \"getdirections/location_u2n/$fromuid/$tonid\";\n }\n}", "function getdirections_location_id_path($direction, $lid) {\n if (module_exists('location') && is_numeric($lid) && ($direction == 'to' || $direction == 'from')) {\n return \"getdirections/location_id/$direction/$lid\";\n }\n}", "function getdirections_location_latlon_path($direction, $latlon, $locs='') {\n if (($direction == 'to' || $direction == 'from') && preg_match(\"/[0-9.\\-],[0-9.\\-]/\", $latlon)) {\n $out = \"getdirections/latlon/$direction/$latlon\";\n if ($locs) {\n $out .= \"/$locs\";\n }\n return $out;\n }\n}", "function getdirections_locations_user_via_path($uids) {\n if (module_exists('location')) {\n return \"getdirections/locations_user_via/$uids\";\n }\n}", "function get_directions( $location ) {\n\treturn directions_base_url . urlencode( str_replace( \"\\n\", ', ', $location->address ) ) // change newlines into comma+space so google maps can process it properly\n\t . '/@' . $location->latitude . ',' . $location->longitude . ',17z/';\n\t// https://www.google.com/maps/dir//6850+Lake+Nona+Blvd,+Orlando,+FL+32827/@28.3676791,-81.2850738,17z/\n}", "public function getNodeRoute();", "public function get_directions();", "function get_route($my_location){\n $route_start = $my_location[0];\n $route_end = $my_location[1];\n\n $loc_api_key = AIzaSyBFuL6yafR8BuhdbzupDAcorVH4sAO2YpE;\n //$route_url = \"https://maps.googleapis.com/maps/api/directions/json?origin=\".$route_start.\"&destination=\".$route_end.\"&key=\".$loc_api_key.\"&alternatives=true\"; this is for detours\n $route_url = \"https://maps.googleapis.com/maps/api/directions/json?origin=\".$route_start.\"&destination=\".$route_end.\"&key=\".$loc_api_key;\n\n if (!function_exists('curl_init')){\n die('Can\\'t find cURL module'); \n }\n\n $chRD = curl_init(); //RD = Route Directions\n\n if (!$chRD){\n die('Couldn\\'t initialize a cURL module'); \n }\n\n curl_setopt($chRD, CURLOPT_URL, $route_url);\n curl_setopt($chRD, CURLOPT_RETURNTRANSFER, TRUE);\n \n $dataRD = curl_exec($chRD);\n curl_close($chRD);\n\n $routes = json_decode($dataRD);\n\n return $routes;\n}", "function getdirections_locations_user_path($fromuid, $touid) {\n if (module_exists('location') && is_numeric($fromuid) && is_numeric($touid)) {\n return \"getdirections/locations_user/$fromuid/$touid\";\n }\n}", "function getdirections_location_user_path($direction, $uid) {\n if (module_exists('location') && is_numeric($uid) && ($direction == 'to' || $direction == 'from')) {\n return \"getdirections/location_user/$direction/$uid\";\n }\n}", "function GetDirectionURL($type,$origin,$destination){\r\n $url = null;\r\n\r\n if($type == 'findway'){\r\n $url = 'https://www.google.com/maps/dir/?api=1&origin='.trim($origin).'&destination='.trim($destination).'&travelmode=driving';\r\n }else if($type == 'where') {\r\n\r\n $url = 'https://www.google.com/maps/search/?api=1&query=' . $destination;\r\n }\r\n return $url;\r\n}", "function map_directions_link($location,$latitude,$longitude)\n {\n return \"https://maps.google.com/maps?ll={$latitude},{$longitude}&amp;z=16&amp;t=m&amp;hl=en-US&amp;gl=PT&amp;mapclient=embed&amp;daddr={$location}@{$latitude},{$longitude}\";\n }", "function getNodePath($a_endnode_id, $a_startnode_id = 0)\n\t{\n\t\tglobal $ilDB;\n\n\t\t$pathIds = $this->getPathId($a_endnode_id, $a_startnode_id);\n\n\t\t// Abort if no path ids were found\n\t\tif (count($pathIds) == 0)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\n\t\t\n\t\t$types = array();\n\t\t$data = array();\n\t\tfor ($i = 0; $i < count($pathIds); $i++)\n\t\t{\n\t\t\t$types[] = 'integer';\n\t\t\t$data[] = $pathIds[$i];\n\t\t}\n\n\t\t$query = 'SELECT t.depth,t.parent,t.child,d.obj_id,d.type,d.title '.\n\t\t\t'FROM '.$this->table_tree.' t '.\n\t\t\t'JOIN '.$this->table_obj_reference.' r ON r.ref_id = t.child '.\n\t\t\t'JOIN '.$this->table_obj_data.' d ON d.obj_id = r.obj_id '.\n\t\t\t'WHERE '.$ilDB->in('t.child',$data,false,'integer').' '.\n\t\t\t'ORDER BY t.depth ';\n\t\t\t\n\t\t$res = $ilDB->queryF($query,$types,$data);\n\n\t\t$titlePath = array();\n\t\twhile ($row = $ilDB->fetchAssoc($res))\n\t\t{\n\t\t\t$titlePath[] = $row;\n\t\t}\n\t\treturn $titlePath;\n\t}", "public static function path(string ...$_ids): string\n {\n return \\implode(self::PATH_DELIMITER, $_ids);\n }", "function build_url($node)\n {\n \t// make sure we have the minimum properties of a node\n \t$node = array_merge($this->node, $node);\n\n \t// default to nada\n \t$url = '';\n\n \t// if we have a url override just use that\n \tif( $node['custom_url'] ) \n \t{\t\n \t\t// @todo - review this decision as people may want relatives\n \t\t// without the site index prepended.\n \t\t// does the custom url start with a '/', if so add site index\n \t\tif(isset($node['custom_url'][0]) && $node['custom_url'][0] == '/')\n \t\t{\n \t\t\t$node['custom_url'] = ee()->functions->fetch_site_index().$node['custom_url'];\n \t\t}\n\n \t\t$url = $node['custom_url'];\n\n \t}\n \t// associated with an entry or template?\n \telseif( $node['entry_id'] || $node['template_path'] ) \n \t{\n\n \t\t// does this have a pages/structure uri\n \t\t$pages_uri = $this->entry_id_to_page_uri( $node['entry_id'] );\n\n \t\tif($pages_uri)\n \t\t{\n \t\t\t$url = $pages_uri;\n \t\t}\n \t\telse\n \t\t{\n\n \t\t\tif($node['template_path'])\n\t \t\t{\n\t \t\t\t$templates = $this->get_templates();\n\t \t\t\t$url .= (isset($templates['by_id'][ $node['template_path'] ])) ? '/'.$templates['by_id'][ $node['template_path'] ] : '';\n\t \t\t}\n\n\t \t\tif($node['entry_id'])\n\t\t\t\t{\n\t\t\t\t\t$url .= '/'.$node['url_title'];\n\t\t\t\t}\n\n\t\t\t\tif($node['entry_id'] || $node['template_path'])\n\t\t\t\t{\n\t\t\t\t\t$url = ee()->functions->fetch_site_index().$url;\n\t\t\t\t}\n \t\t}\n\n \t}\n\n \tif($url && $url != '/')\n \t{\n \t\t// remove double slashes\n \t\t$url = preg_replace(\"#(^|[^:])//+#\", \"\\\\1/\", $url);\n\t\t\t// remove trailing slash\n\t\t\t$url = rtrim($url,\"/\");\n \t}\n\n \treturn $url;\n\n }", "function getNationalRoute($originCity, $destinyCity)\n {\n }", "public function fetchPath( $nodeId )\n {\n $className = $this->properties['nodeClassName'];\n\n $nodes = array();\n $nodes[] = new $className( $this, $nodeId );\n\n $nodeId = $this->getParentId( $nodeId );\n\n while ( $nodeId != null )\n {\n $nodes[] = new $className( $this, $nodeId );\n $nodeId = $this->getParentId( $nodeId );\n }\n\n $list = new ezcTreeNodeList;\n foreach ( array_reverse( $nodes ) as $node )\n {\n $list->addNode( $node );\n }\n return $list;\n }", "function read_router_url()\n{\n return explode(\";\", $_GET[\"nodeid\"]);\n}", "function addPointToPath($newLatLong, $trip) {\n $jsonRouteFilePath = \"cricketTraveledPath.json\";\n $error_msg = \"\";\n $result = false;\n \n //read the old $lat and $long from the $jsonTravelFilePath\n $tripPaths = json_decode(file_get_contents($jsonRouteFilePath)); \n $lastLeg = end($tripPaths->{$trip});\n $lastLatLong = $lastLeg->{\"endLatLong\"};\n $lastid = $lastLeg->{\"id\"};\n \n //get a new encoded path from MapQuestAPI\n $mqString = getMQroute($lastLatLong, $newLatLong);\n if($mqString){\n $mqResult = json_decode($mqString);\n \n //create a new Leg php object\n /* looks like this in json format\n { \n \"id\": 40,\n \"startLatLong\": [ lat ,long]\n \"endLatLong\": [31.9494000, -104.6993000],\n \"distance\": 600.433,\n \"MQencodedPath\": \"}yvwEh_prQFwB??NoK??\\\\iELiDBy@???G?y@@sEAa@??G?kA?E???A`@CrG??BbABlGEnCIjCKnBGnBYjF?xBFvB`@~DRpBNpAFt@H`BDrA@d@C`GAdBGbCAtDAfA?jA?dG?jB?~@?T?xC?`CAbE?~D?pK?`H?~C?vA?`@?L?b@?fA?`D?lC?lC?vA?dB?`H@~K?rHA~B@hH?^?zE?|E?`FBzEH~E@jF?`B?lABnW?|A?fI?|A?nD?|A?zB@jT?xA?h@?xEAjC?rB@bFCxCGdBUvCUhBs@~FWpBa@|CS~AkAhI{@lGS~AGx@[fCeBlM{@nGOpAWxBg@zDoA|JSbCS|BUpFGtCC|D@vD?pBBtLBdI?pBDxL@pKBjHBdBLjI@vEDdQCff@?~A]xb@G|P?tPBd]Gx\\\\E~LA~L?xAArTFfFRhF\\\\`Fb@|EpAtHfB|HhAvDzCzJtIbYjFtPdFhPVz@x@fDj@rDf@fFJ|E?hD?nOBfTAzN@|L?V?tI?rCExBMlCGpEDhBArQ?bA?pHAbI@bICzFAfA@lDClC@vH?jI@`@CvC?rCElBG~G?fTAdRBtL?zJ@t\\\\AlQ?pQ?v_@?|B@|C?jB?`HBrRAvc@@xQ@zPAfd@??^?~a@@??DrALn@tApEVhAPjAFpCJtBBre@lC``CB|B?R|@ds@LtOArS_@lSqAhf@mB`v@YlOSdVD~JP|N|Bfx@Rv`@i@dc@_Ap\\\\IjKGpS@pnA@pc@AtCBte@@|d@?zBKfNq@xJMdAmAdJ}ExR{HpX}HhYsHfXqBtHqEdPwCdLqCnNmA|IkAdKsAhQsBbVoClVqD~VkElVqExTuD`PuO`l@qFfTeGxTgGpU{\\\\ppAeBtIcAhHm@lHYrHGhSF~PApV@|_AHb{BJdZd@j\\\\n@pZZpWBzTObR}@p^[hUIx[D`UA|i@QlQy@db@wAhd@cAv`@UpULtU`@hQd@zODjAzA`h@~@p_@\\\\jT?j\\\\F~N@z`ABrJ?vBFd^Dzi@E~L[|Oq@`LsAbMsJpv@mMjbAoI~m@eAxIeEd\\\\yC~Ts@vJUlJPdIp@tIpA~HnBtItCxHx]rs@lXdj@~GfNrC`G|AvDz@~B|@tCnBdIrArHdAxJ^vGNtHEfFOxGk@zIUpBy@`GsBdMiXndBu@jFgAjKc@rG]bHO`HG|NCt|@AtV?hAAv_@C`NEzwA@nGIdgA?fAAzXQtNOdISlIWvHI~GE`I@pFLdL`@|NPhLD~CHhLGv}CQpY]pVCtM?dIXhWPd[Adu@AdSMvrHOvN[zM_@tIo@zKg@|Fu@hIo@zFuAlKgB~KO`A_Hba@{BfN}CxQqAzIe@tDiAtKaA|M]vGc@pMMpJErHBhVBpe@@lA@~p@?~A@xUCbKB~^ApO@zn@G~lCBfgBA~M@lEAnYBtGCdDBb]BfE?|d@CvDBdFC`HDvT@b`@B~DTdERfBh@rDh@`Cz@pCtB`FzAnCxHrMjM|SvDlFtBdCjAlA\\\\TtE|D|CrCzF~E~@r@rBrBpBhCdAbBfBfD~@fCp@vB\\\\nAZbBj@dEPxBJhCHpHBtSA|V@~A?`PDzHN|JDlBl@zKR~C|@jK~@`L^nGH`EB~FK|GGtAUjEqC`[mA|Nw@hNOjEOzIK|z@?dr@EpMMjdC?xAc@t{D?hSGn]DlIJ`HXbINvCf@tGVlC`A`JtAfJnDxSt@rEvGp_@hEbWv@jE|@bHt@fHb@`Gb@vJTbIHzK@fSAfk@Exo@C~CBzNMdsDRpLXjHj@rIV`Cx@hHb@~CnArHRl@l@dCn@rC|@zCt@dCnBdGnCvHpAdD~@rCfAtC`E~KrGdQnArDbF`NhArCxU|o@lDnJzDdLfAbEp@rCj@vC`@dCd@rD\\\\xDRpCVvFDfD@|EItEeAx\\\\QdFMdFGnECrEBdHLxH^rJZxE`@tFvAvMbAbJl@fF^fDdD`ZrBpQjD`[TxB\\\\fD~AbNbBdLhCjLt@|CtBdHxAlEhDvIjDrHHPfD`GrBdDvGfJvFrH|EfHzEbIpC~FhC|F|@~BvD~KzBrIpAvFx@rEHVz@dFhA|In@zHNbCLpARdETtHF|FE~_B?pU?bB?rUCb]?npAE`KAfj@Cv~A@|IClM@rXA~ZBjENjFN`DRjCp@lG~@bGXpAZzA|@tDfD|KbA|ChEhMhXvy@fAtCzEjLhB|DlEfIvCvExEbHxApBnG|HtI~J`HlIpAxAp@n@fDfEhFfGvBfCfAjAhAxA~DtEp@|@vCfD|InKdAhArAbBdF~FdFfGtAxAnHdJlCrDjEpG~@zApDtGf@hAj@`AzCvGrB~Er@hBzCdJxAzEjCvJ|@~DdAlFbBlKjEp]^pEf@rEdBfMb@vDrBhLhAlFbC~JlAtEdEvLxBvFfDvHzBtElU~c@xCbGzPn\\\\vGzMdBfEv@jBfCnHh@jBx@rChBhHrAhG`AdGdAbId@~D`@nE`@dGZhHNnG@tI@vnB@nTAlo@KbHQfDc@lF_@rDc@zCcApFy@jDwBnI{B`Ie@lBuBrI}@dEm@hDeAfHe@`Ey@~IWtFGnBMdJ@nIFdEBx@FdCNhCl@jIZ`DZlCbAnHx@|DR~@jAnFx@|C|EnOfAxDrBdJ|@dGVnBd@|FPhDLjEDh_@NzqBDvgACtILvlBDbEPbFLdB\\\\`ED`@~@~G\\\\fBl@jCh@rBbCnIrArDxAjDpDnG|A~BjA`B|DtEj@p@pMpMj@h@rD~DtHtHpCvCrJxJb@d@~TtUlMtMz@~@jd@ne@jKnKrDxD`DlDzD|DzAbBrBhCdCnDdAbBzBfEdA~B~@|Bz@`C`AvClAxE^dB`AzEXdBl@rFb@xFNpCFfBDnC?|PAlHBdz@CvK@hKAfb@KfJChJIdFEdHu@dWGtDOjDO|EUvKCzAG~ECrECxE@tIFdHL|G\\\\tKh@hSLrDR~LVjTBrG@xIBxGArODv\\\\?rkB?nSAjAB~GC|GDpFn@xI^`CnAxE`AzC`D|HbBxDpFnLtBlErQpa@bBfEbBxDxLdXz@vBrHjPrQva@pFvLbDjGfCjEzSp\\\\tWha@lDvFzEnHnIdMhBdDnEvIpGhNrBzEfCnFtGdOdChFtCzGrClGnHtPdDfHtg@jiAfAdC|CtF|CnFfHvKhB`CpD`Fn@t@dC~BxNzL`OrLdDfCpYpU|PbNfG`EvChBvC`BtIfEbGlCbA^xAl@zCfAjElAxBp@`Dx@`Dr@jI`BpEv@zGtAtH`Bf]fHvFlArPbD~KbClAVdF~@|RhErBd@tQnDdIjBlGjA~PlDlHdBfFbBxD|A`EhBvDlBjAr@vCjB~EvDhGfF`CdClBtBvClDxCdElDtFxCtFlBbE~ArDlCnHXz@x@jCbBfGfBhIf@pCn@vEp@pEv@lINvBVdEJpDJlF@fHGloBEfJO~rDDzI^bRb@xMj@hLjApPj@xGn@rG~@hI~@rHjAdIfAjHzAdIbBhIlCfLxEnR`ChIzCjJrBvFrB|FlCjHbDtHjL|Vz@rBvJvSpCrG~BzExIzRj@pApHnOxApDrHxOvHnPr@hBhAzBnIxQpDdIpB~EtAhDzBhG~BjH~BbI`BtGdBrH|@vEzA~I~@|FjApJr@rH|@~Kb@bI\\\\jIH|FFbHBpEElJF~bAFvPPtQPxKNfGv@tVd@xMJpAdAzTnArTdAzTPrDtB``@~Ah\\\\x@bXh@nWLjJNxX?bZEzZEh[?hC?vSAnBQveD@zKE|UApV?dACbQK|CS|JSzG_@fJgAbR]hDq@dIgArKyPpxA]xDkA|Og@|J]dIOxEQpNErRN`MRhGx@lRbSfrCr@~Jv@bMJjBnAbVBzBl@rQNjGJnMJvpAA`IBrlABf]Aj\\\\FpcC?fxACjJ?|BCjzGEf}@Bjm@EfrBEft@Bxg@CjqBPr}CIpGMdGItBSzCWzC[xC_@vC[xAo@jF}Mr_AoDbWO`BYzEQbFExCAtCBlDRtGhA`QbBtYz@tMPfDr@tKXhFp@jKjBzXz@`Lb@vGV~DzCda@^zFz@fL^hHJ`EDjJ@dYCve@IxOCv[?buAGzTAhfABdMCfFBj^@`JDvb@Ilc@O~EUnBg@rDgBfLUfDiEzjAgAf[E~B?tBD|BPvD\\\\dFXrBh@rC`AdEfCzJvA|GTxATjCN`DB`A@xGC~cAOfh@GpH?tDCvHBvHAxh@F`UHxHJxQ?jQAzX?l^?pZDnf@Ad}@Uxm@EnYJ~j@LbRBtU?jqACva@BdXC`WAd_@Sh^?z]F|LNnHR~Nb@lVDnNE`IAnn@A`r@N|tBFtYDhy@@bE?tGMlM]fSOhHClCEl_@@xICby@GhF[|G[`EoBvYSzCiD|d@s@zKI|E?~F\\\\fJp@dG^zBh@xCf}@bgEnAlH\\\\xCXzCRzCN|CxKdoCnBvf@|A`_@lAj\\\\|Ab^HdD?dDMvFUdDI|@cBtM_DvSa@bEGbAKxCGrD@hw@@nBNtCR~CPbBp@|EbCvOvCpRt@hFd@~Ej@lHJfKA`DIvFItBOvB[tD{@fHoF|ZgA|GY|CSzDC|ADfEFbCj@xF|@rE`@bBnApDr@dBx@`BxB`Dt@bAvDtD|ErEfFnErFhGlA`BlBtC~DnHxAdDjBfFt@pCxF`Qh@`BbFdPb@rAhCbGfA`CjBhDtAzB~DrFxBpCfL~NtNrR`AlAbNxPdB~BxD`GrBjEz@jBhOd^zNv]hLhXvCfJd@lB~AjIf@rDr@zHXdEPnGClJIrCcAbNaBzOeAbK_Fdd@k@`GqBfYqDbf@a@|FYlGKtEA~ADlGP`Fp@zJd@xDNbAp@xDl@xCz@tDx@pCxBtI~Hf[XpAjAlJl@xFZbN@rNGl[[`G_A|Jg@rDwBtLeBnHw@jDoFpW[tBSdBe@nEMzAMlBSlGIpYD`LGfVEtwDH||@Sv{@?dSRxIf@vJRfChChYdCnWPdCL|BF~BB~B?`CA~BI~B{Czr@u@~OGl@EvAWnEo@hOyCvq@O|BSzBaHdp@sJn_AgS`nBqFli@_UrwBe@|Dw@dFSbAkAjFgA~D{AxEwBlFwDtGu@dAkFrHsOnRkAvAeLdOqAnBoBvCeEdHaDhGuHzO}@nBcL`V{AxDiB`Gc@jBc@rBe@rCc@zD]fDE`AQlEChE?xDJvD\\\\hFjA~KXhChFhf@~@~HxGpm@tGnl@XxBv@xHn@fI^|F`@bLF|DJjJCt}ACdr@Alt@Cx{@@lUEdy@Aje@EzPGpB]fHM|EEdEBjGH~Df@vLDvC?ru@A~{A@lVArS?tkBCva@CrmB@p]GhmBErsFOfH_@lGk@xFIf@}@xFw@|DwAjFuJ`\\\\qPdk@cBnFoEnOkDhLqOxh@qEjOuAfFy@pD]dBy@rFc@rDOfBOlBObDG~AGjD@jx@RhcD@ff@C|g@L~eBJvzBAfh@@bh@FpSHlFHp\\\\FfLJv`@~@||CFnb@?nLFjp@\\\\zvCOvm@Q|jA^lHr@|Er@|Cx@jChAnCbDxFry@zmA~DrGxBpF~AjGn@nFVnF@nEGfyCAd\\\\AlB?fNDfDF~BFfAXbDLtBJrB~Dji@xBfZNrB|B|Zp@tJf@fDd@pBh@nBbApCx@pBnAvBxA|B|AjBp^rd@~IvKxA`Cn@lAnAbDnAzEt@|EVrCL`DFnCB~P?fD@f`@AfB@fPOjNI|FAlD@jTApWLjsA@bHBzPA~K@tCCdL?`JD|i@H`g@?jBCj_@Bvr@@`QFfJBbCDnK@dN@bR?dCCfRArDGrBOnCi@lGmA|REhA?vB?zJ?bC?r\\\\?xBP|RBjAn@xS~@jXFbCR~FJrDD~T?dC?`O@pCBvMAdR??i@rD_@~@[h@??iDfEuBvCc@fAETM`AA^@n@H|@Jd@L\\\\\\\\l@jB`C\\\\XZNXH^FX@ZCTE\\\\Kh@YNQT]z@}A^e@TORKn@Q`@CjABpI~@~Fr@tAJrGBdEAnEAfCRNBjAP|Ad@z@ZhB`ArAz@rO~Jz@t@h@f@`@f@x@lAn@pA^`AV~@XlATzAHbAFtC?zO@bE?vNHhCJrAZtBd@vBlArDx@bClBfF|DtK`EhLbFfNr@dB|BpEfCpErBjC~ApB|AbBlBfBzAnAzFzEbNbLtC~B|JhIvBdBvDfDjH|Ff[fW|InHfIrG`CjBhA~@rPhNxAnAtPdNp\\\\vXlO`M`JrHd]~X|BhBbGrEdGdD|EjCdEtBdStKrHbEdBx@jDxAfEzAhBh@hEdAdFbAlGr@fFp@ho@fIhh@tGziBpUpZvD|SlCx@Fr@BlGAbb@BvU@zQ?dVBzp@D|g@?jO?dg@BzLFhC?|H[lOs@pBW~Bc@rBm@jBw@nDqBhB{AhHwGbA}@pLiLf[aZ|[mZzTgTbD{CfT}RbF_FpDgDxG}Fl@e@xEqDvBgBxB_B|MgKjLwIbLyItQmNnC{BzL_JfEeDrB{AlWgSpFcE`W{RdDoCfBgBna@i`@xeAycAlQqPnBgBtByApCiBxEcC~CoApDkAhEgAdCe@vBYpDYhCMlAEr\\\\IzMCvr@?jMB~fA?baCJhc@B|DFfh@FfBB`v@TvhAVbKCfTo@t`@?zJ?~gABl`A?vb@Cj}ABf~A?~_@?bC@dMAz]B`LG`J[hE]dTkBhGa@~LKzNB|GAjSAr[Fz^BzC?t`@Clp@?hQDxC@`IChEMzBQrCYbBYxXaFjjIm{AdlAmTfGqA|C}@r[cLhc@qOjVsIra@uNhnBoq@dHeCdNyEt_Ak\\\\di@aRjAe@nGuCbDsBnDgCxPmNlDmC`BaAfAk@lCkAdBk@~Bo@jDo@tBS`BIrBEzC@x@BrALbD\\\\tM`BxCX|I`AdBLjDJlRDxp@?p}@FvIBrZ?pLDlJDzCPxK~@hDPz`@DpGArh@@lC@nCC`ACjBOxC_@r@M`EgAxAc@hDwAnEoBzVaLvt@e\\\\jr@e[`j@iV`CcAfBk@|C}@rBc@hDi@dC]nCUjBI~CEvJ@jVCvfAFzOElHF|m@BbSEzP@tJAlQDzS?xl@@`NC~K@pR?t]HtG?`\\\\Hjd@Ifq@C~_A?xBBvDGnCKtAIzDa@rASzAYzA]~DeAfBm@~@_@~DeBlDmBv@e@re@_^fe@w]|JwH|m@wd@pi@ka@fKsH|MgKfSgOfAu@|A}@bB}@fBy@bCeAdDkA`HyBlGmBtHiC|L{DjNsE|g@kPzQeGbJqCtNwE`MgEnxB_s@t|@gYbMaEpr@{TdwAwd@lEkAvDg@vc@[zg@g@|ZWrJGtJDtG\\\\lARrE`AlExAdLtGlCxBnDzEfFdG`GbHz^hd@nKzM`F|FpHrJdTvWbClClEpF`L|LpB|BjHjIxFxFlGlHzHtI~RvU`IxJzAdB`BxAnAz@hAn@`An@zAp@fBn@zBn@lCZ`BJjBDbF@bUSbJAlB@pMMpDBpIb@pRr@nDVnI`@dG@hDItDUpKu@nGk@nKu@nKw@l]uAdO]jk@mA``@Sph@Q`LKvAAlO?vH`@|HdBbIlDfAr@jB~A~DdDjOtTvAnBlS|XxE~GbOhTtE|GnAtBhDpGjD`HlKnOrMjRrIrLfUp\\\\jHtKzChFtd@feA~_@l}@fSle@ls@haBhHzP|FrMbJvOzEbH~D|FzJhNxDlEtBxAdAf@`GfBtEn@p@@lIJpa@?vERpCf@bChAvDlBfCnCdAfAtCdDpGnH`EjFrGlHhExC|AfAdHvCvDlAjBZ`F`@pZNbdA?pWD|e@E`nCLbt@@pGBrZAt_@Qj^@hfAFtsBQbZKxU?fLBbKFne@@xU?|]Frk@Fp_ACvtAAx^AtKCxBCxAAdEEnTDbHFnO?xkAGpLKvFe@vHkBzEwBvFuDvDoDhJaL|HmJlOyRfByBl@u@tBgCdBsApDsAhCUxKB~RDdYGfDCpM?xCAnEB|JEnEOfCWtBY|Cq@pA_@bBm@dIiDnBu@tDkAvBe@`B]`Fq@~DYbAE|ACp{AQvz@?t]?v^Ely@Gh`BCtP?vA@fBDbADfAN~Bd@dB`@jCr@bFlB~B`AbNtFlCbAfA^vDbAlCl@fBVzCXvCTbBHfBDjP@~H?zR?xAGhBMvAQlAQfAWjA[zAg@jAe@dEuBrAq@v@a@nBu@jCs@~Bc@nFa@bMAxLAbCHvCPbKlA~BRnFTlA@~BBzDFvF@|JJfDEzCGvAQnBYfASdAW~Ai@zJwBnEeApD}@tLqC|Bi@hDy@t@QzCe@zD_@rAItEKlB?|C@fOG~a@GzB?hSGpYCpSIbB?xBD|BNxBXjCb@dDZlCLvC@j]GbD?z^IpBIjBSf@IvAMvEw@`AKnBIp\\\\MpDA`ME`GIxJCjBBrGCxGIpX]bEC|B@bE^fBR|B^tCz@v@T`Bn@hAh@vC~A~@n@`CjBjFpEv\\\\xXnCvB`DzCnBtAbB~@rAh@zA\\\\vC^t@Dj@@xBAnBQ`MuAnEe@d[iD~AOlCYxCi@rCm@vBk@t@WlG_C??dAU~Am@`A]xBeAzIyEl@YvB}@t@U`AO|AI??l@RNRLXAvADzA??FrB@|@Cv@UzCIrB??u@pHc@rFIlECvB@fE@p`@?zD@\\\\BzJBnbAAl^DvCFdBLdBr@tEd@lBl@jBt@fB|@`B|ElI|JlQvPd[tIjPrWvg@zDdJjD~HtCjHjDxGbE~G~BpDfB~ChA~AbOdVlCbFvHrNhKbRdDzGfBhE`FbMlBxEdDxHrAnCz@~Ab@x@nB~CbBrCdF`IzEtHbJnMrGfKxEdJhEbIbElIzAnDzE~NnBnF~DdIpEhIbFhI??|\\\\dm@fEfIxBtDbHzMvQv]nAfC`DzFpBxDpDdHzJnRtCtFjBzD|BlE~J`Rt\\\\no@jA~B^~@Xj@fPrVjDhF~BrDbDtDxBzB`CpB~CtBfE`CvFvB~RtGrMlEtDjBlDdCrCdCfCtCdCrDxBzD`CxGrAjEt@xBzC~IjAbFz@vG^vE\\\\pQZxZFz@DhAt@tGvBlLjArG^hBj@|Bf@fBpBjFl@lAnYfj@~IzPrEhJbBxChHhNdc@zy@|Ttb@`GlLtKvS~BrExOzYhGpLbGtLbCdEp@rAtAlCdu@fwAdN`X~h@hdAxPv[~Sr`@|g@vaArF~Jh\\\\xn@vIlPjUlc@`BlCbArAt@|@~@`AhAbAjOjLzWfSfOfLvBpAZNXCtCvAlAr@|AfApDrCtDtC`FpDfCjBnCzBlCpCJ`@j@n@nArAnBbBda@xZxc@x\\\\zi@`b@r[`VvDzBdD|A`NtFnHpCfHtC`KbE|X~KzFxBbm@bVvj@xTxd@zQd^tNjH~CnBv@lBb@`EdBfQ`HdFrBbJnDjChA~ZbMvTvIrb@tPzu@nZryAjl@nyAbl@dzAll@vIlDh^tNdp@rWlTvIfS|HbFrBfO`G`LrEdK`ElVtJnW`KvJbEfK~Df|@t]~n@zVrTtItb@|PdA\\\\bBj@|@XnB`@t@LpCT~DHjIJvCFpEBvAA`DGl@Eb@KdGClE@tEB|BCpA@rBOxANhB?bB?tD@V?f@?L?b@?D?X?t@?`C?rBAjA?b@AZ?T@R@ZFFB^J\\\\`@VD~AfAf@P^Fb@BnC?|ECvEAhE?nE?v@Fj@Jz@Xj@ZXTVV`BvBb@D??\\\\p@`BlBbAdAzUbXdBfBrFdGnArB~CnF|CrF`DlFlAlBrAxAnDtGDd@~EfIhC`E|AxBtAxAvAlAfC~AjCxAnAv@`@\\\\|B|BfArAzRfWtCzDpE|Fn@|@fAlBf@bAl@xA`ExK\\\\x@n@rAvAhCxFxHxJfMvEjGvn@by@fVd[jMtPhQbUnLrOrDpEzElGdRnVjG`IxBrChs@x~@dc@|j@v{@~hAvI`LbLjNjA|Aja@rh@~q@~|@hRlV`q@b|@jF`Hp[pa@jb@hj@hQxTtG|HxE~E~AdBXH~ApBV\\\\hDbEV\\\\X\\\\vCtDdKxMxBtCNb@tBvCxG`KlAlBlHjKn{@lhArUrZjaBhvBzOrSdg@ro@jCpDdm@`w@|NhR~AjBjVj[|G`JnHfJj]~c@dP|StHrJt~@dlAbC|CXXnAhAbBhAxBfArAh@T@zAr@zAx@`Ax@Z^l@x@V^j@nAZbA^|APfBFfB?nHBrBFtAHt@RnAVdA\\\\dAj@hAT\\\\fArAZXhAv@rAp@xFdCvBbAjAx@x@t@j@n@~@lAva@bi@fBhC~C|Et@jAbCvDzF`J~EtGxEfGvCrDtCpDjA|AfAvApCrDvEfGz@fAfCbD`LxNnEzFjGbInPdTrIzKnJzLHXhBdCbEtGvBxC`ItJpDjEdRlUfS`Vzy@rbAbNnPfPlRrp@|w@|Yx]rMjOzVvZ`j@dp@fDpC|CpBfEbBrFrApBd@vCPjCJrmAI~OH`[@bm@IhMBrp@CpKGrAApJBxg@GvRGn]Lrc@Kju@A`VEhUDrl@CZAvTL`V@xd@KvF?bSDfBBvbAGn@?jE?`E?fj@Cx`@AfB?xCLpAPpA\\\\`Bh@`GhBfCp@`Ch@t@Pf@CvJpClEtApEvA`EnAPFnDhA`@LnEtAfAZzAXl@FfAHfA@zIChGAdGAhGGpEA??ArF@xHAzD?~CCxACbAKxBCn@e@xFq@vFcAlFiAxFy@~DuEpTcBtHoGt[If@_FtVe@jBg@|D}@bE_A`IKfDEbFFv`AHxb@A~^FjaAStw@?tJHlf@DhjBChkBE~iB?djB@~X?hjCAhN?f`@Hnw@Czr@GjpAFvL?fg@B~HCvPYhLYjOU|IA~EBbyBBrnBBnLIjJ[jK_Ax]oAve@_F||AgBlp@VtXz@fv@v@ru@r@vd@n@xn@JhO?~_ACrp@Fvu@Fp\\\\Bv~AAdc@AlU@fEDd[BvMJ~G`@~SR|I`@dSj@~YRzTNhQJfLRlUHdJRnUH`IJnJDdBJpBH|@ZjCPbAf@`Cx@rCdAlCbAtBfAjBv@dAnAzA`A`A`T~Q~FbFjHrGrJnItFxE|EjEfDrCdA~@f@b@nAfAtN~LjEvDjPrNfB|AVPR?\\\\XpAhAfHjGlC|BzFbF|DhD|BnB`Ax@f@d@Z`@n@~@r@~A`@lANt@ATJ~@H`B?vB@xF?z@D\\\\@xCAvF?rF?xF?vFAxF?vF?vF?vF?tFA`F?RAdA@~K@vFAjF?nF@j^?pCAjBAjEBd\\\\AvH?hN?rU?rT?rF?|Q?f@?zGKl@?pG?pA?dBCjR?LPlAE~nA@bECfc@?nC?fLA|r@?^?V?|D??K\\\\E^A~^E~{@M~xC?rFEti@?jICxb@???p@Cbe@?lb@Era@AnM@hSIna@Xn}EA`KB`vARv}BAdZFxEPdFVzCZdDd@dDz@dFx@xDhA|DzAnEdBbFpEjMhFtO`Kn[nDlKlNda@la@fkAfSpk@`dAtwCzm@jfBdn@dgBlKnZpg@rxA|Wtu@dCjHfDvJtNda@dA~CpJjXb]xaA`_@bfA|]rbAz_@vgAlDnJjD`Kn@vBrIzZbc@t}Ad@dBbb@d{A`C`Jdo@b}Bxj@tqBjn@|zBfMfd@r\\\\nlAfB`HxBrJbiA|xFdc@|xBvN|s@hAbFpBtHdB`Gb@dBjQho@jJz[rHbXnAzElAfEhg@lhBt@dE~@dGf@jETvDRhF^~PdAtb@f@zT`DbtAb@fQfDpwAnAlf@hClfAd@lTvDv~Ar@jZVtFp@pM|HbyAbPt|CvDxr@nAhVlB|]^jHHnCFtDCdDOpGYlFwTzbC_BjRsMjxAcHpv@{OpfBuJffAg@pGQxFC|FFtETjG^vEd@lEt@rEj@tChAtEhArDbAnC|qAx~CxKpWzQdc@t@fBnB`EpBpDhT`\\\\x{BbiDlRjYhF~H|s@~fAdQxWb\\\\rf@pOtUfSnZjF~H`Ynb@lMnRtJbOlEtG~I~M~AdCh[be@fDrFhAjBbC`FjCfHd@xAxBlGtDvKnGfRdBdF`K~YbGbQrDrKlFtOvI`WpCdIlRlj@tGlRtM|_@zIfWlBxFxAdEdA|Cr@xBZfARx@RnARhBDx@FvABrA?`BAlC?j@?\\\\CnG?D?J@fC@`C?bCA|BAdC?rBFR??P?vC@b@@h@?lA@~@?\\\\?~@?jFB`JQ`GMpBK|AQbAOjB]`B_@zAc@fAc@dAc@h@[bAk@P[\\\\Uf@[lAeA~BcChHqIn@k@pA{@vAo@x@WvPuDdYgGjGuAnCk@pAY~Bg@JCVDxEu@dD]tAGjAB`AFx@LNBxAd@xAt@ZRh@XPJP?zCfB~HxEpGvDxJ~FnC~AfAp@lDtBjAp@h@ZxHnE`DlB~D`Cr@b@JFj@\\\\d@VdBdAh@ZdJpF~BvAbB`AhHjEz@f@B@lAt@hAp@xIhFhWlO~@h@HDLJh@ZJFjYzPlBjA`DlBtGxDfL~G`CtAjp@n`@`@TlVzNfAn@HPrBnAdJfGj^jTt@d@fCpAzEtB~s@nYrEhBf_Ad_@~\\\\`Ntn@zVhEbBxB|@dJpDnKpDpBv@bNjFxEnBpVtJlTzIzw@f[nIhDnIfDrd@vQzIpDzYhLfUdJpLzErLrEnOfG|KrEnBz@pNpF`ZpLfE~Aht@vYtKlEhVlJdI~CjElBzBz@zOxG~Bt@`DpA|CvAzDxBbDzBjA|@pAfAlAjAnArAlArAjAzAvPhUbClDlJ`MdA~A`FtG|P|UjOnSbB`ChDjEn^`g@nFjHlL~OhB`ClAhBvGvIxC`EtB`Dp[tb@pC~Dz@pA~BbErAxCp@hB~@pCj@nBbArE^pB^hCNjAr@lIbAhMHbAv@tIRhCLhA`@xB\\\\xAt@fCDJn@dBTf@hAzBt@jAv@bArA~An@l@rBfBnFjDZTjBhAbFbDvAx@hKxGjAr@rLlH`C~A~PvKdOhJfLlHtBnA|BzAfCxArCfBrQfLjJ`GxBxApIdF`HlEdFdDlDtBzB|AhAn@`_@nUvEzC~MpItBnAlCdBtD`CfNxIvSlMlJbGzCnBpC`B`BjAtBnAnFlDvCbBnHtExE`DxAv@~EbDtEnC|GhExCnB~MpIvKzGxCpBhBdAtAbAP?zK`HrK`HlM`IhCdBfCxApBrAtSlMdM`IvNzIdC`Bj\\\\tS|@l@lN~ItN|I^VjCbBfNrIlAz@lBnAjNtIrEzCrHvEx@l@nS~L`JzFD@hMdIlC~AhG|D`W|OpRxL~GdEfIlF|IlFvClBdIbFhIdF`ElCdKpGpLhH`HnEhDrBlInF`DnBpm@p_@nInFvFrDbV`O`NpIvRvLdAv@~AtAhAhA~@jAjA`BfAnBjAfCl@`Bj@pBt@lDfIzc@zAdJ~F|[|^vqBnHva@L^DXrAnH`ArF~Fp[bs@f|D~DrOxa@hpAl_@fiAlGnUlDtO`[vhCrE|b@pFxd@hp@x}FHl@h@tDh@tC^fB^vAv@nCl@dBl@xAlBrE|P|[tTnb@`J~PzB~DxA|B~ArBf@p@\" \n }\n */\n $distance = $mqResult->{\"route\"}->{\"distance\"};\n if($distance > 0){\n $newLeg = new TripLeg();\n $newLeg->id =$lastid+10;\n $newLeg->distance = $distance;\n $newLeg->startLatLong = $lastLatLong;\n $newLeg->endLatLong = $newLatLong;\n $newLeg->MQencodedPath = $mqResult->{\"route\"}->{\"shape\"}->{\"shapePoints\"};\n\n //echo json_encode($newLeg);\n\n //Push the leg to the end of the $tripPaths->{$trip}\n array_push($tripPaths->{$trip},$newLeg);\n //var_dump($tripPaths);\n\n if($newTripsRoute = fopen($jsonRouteFilePath,\"w\")){\n fwrite($newTripsRoute, json_encode($tripPaths));\n fclose($newTripsRoute);\n $result = TRUE;\n }else{\n //error using fopen.\n $error_msg = \"Could not open file.\";\n $result = FALSE;\n }\n }else{\n //No distance between provided point and last point. Likely the same point was provided.\n $error_msg = \"No distance travelled\";\n $result = FALSE;\n }\n }else{\n $error_msg = \"No MapQuest result given. Could not add Leg to trip.\";\n $result = FALSE;\n }\n if(!empty($error_msg)){echo $error_msg;}\n return $result;\n}", "function piece_http_request($origin_location, $destination_location){\r\n $bing_secret = file_get_contents(BING_SECRET_FILE);\r\n $request_url = \"http://dev.virtualearth.net/REST/V1/Routes/Driving?\". //Base url\r\n \"wp.0=\".urlencode($origin_location). //Filter address to match url-formatting\r\n \"&wp.1=\".urlencode($destination_location).\r\n \"&routeAttributes=routeSummariesOnly&output=xml\". //Setup XML and only route summaries\r\n \"&key=\".$bing_secret;\r\n return $request_url;\r\n}", "public function outgoingPaths()\n {\n return $this->hasMany(Path::class,'first_node_id','id');\n }", "public function googleDirectionsLink()\n {\n return 'https://maps.google.com/?daddr=' . urlencode($this->full_address);\n }", "public function uri_string(){\n return implode('/', $this->segments);\n }", "public static function buildPath()\n {\n $path = [];\n\n foreach( func_get_args() as $item )\n {\n if( !empty( $item ) )\n {\n $path[] = trim( $item, \"/ \" );\n }\n }\n return \"/\".implode( \"/\", $path );\n }", "protected function _getDirectionsData($from, $to, $key = NULL) {\n\n if (is_null($key))\n $index = 0;\n else\n $index = $key;\n\n $keys_all = array('AIzaSyAp_1Skip1qbBmuou068YulGux7SJQdlaw', 'AIzaSyDczTv9Cu9c0vPkLoZtyJuCYPYRzYcx738', 'AIzaSyBZtOXPwL4hmjyq2JqOsd0qrQ-Vv0JtCO4', 'AIzaSyDXdyLHngG-zGUPj7wBYRKefFwcv2wnk7g', 'AIzaSyCibRhPUiPw5kOZd-nxN4fgEODzPgcBAqg', 'AIzaSyB1Twhseoyz5Z6o5OcPZ-3FqFNxne2SnyQ', 'AIzaSyCgHxcZuDslVJNvWxLs8ge4syxLNbokA6c', 'AIzaSyDH-y04IGsMRfn4z9vBis4O4LVLusWYdMk', 'AIzaSyB1Twhseoyz5Z6o5OcPZ-3FqFNxne2SnyQ', 'AIzaSyBQ4dTEeJlU-neooM6aOz4HlqPKZKfyTOc'); //$this->dirKeys;\n\n $url = 'https://maps.googleapis.com/maps/api/directions/json?origin=' . $from['lat'] . ',' . $from['long'] . '&destination=' . $to['lat'] . ',' . $to['long'] . '&sensor=false&key=' . $keys_all[$index];\n\n $ch = curl_init();\n// Disable SSL verification\n curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);\n// Will return the response, if false it print the response\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n// Set the url\n curl_setopt($ch, CURLOPT_URL, $url);\n// Execute\n $result = curl_exec($ch);\n\n// echo $result->routes;\n// Will dump a beauty json :3\n $arr = json_decode($result, true);\n\n if (!is_array($arr['routes'][0])) {\n\n $index++;\n\n $arr['key_arr'] = array('key' => $keys_all[$index], 'index' => $index, 'all' => $keys_all);\n\n if (count($keys_all) > $index)\n return $this->_getDirectionsData($from, $to, $index);\n else\n return $arr;\n }\n\n $arr['key_arr'] = array('key' => $keys_all[$index], 'index' => $index, 'all' => $keys_all);\n\n return $arr;\n }", "public function get_node_path($nid) {\n return \\Drupal::service('path_alias.manager')->getAliasByPath('/node/' . $nid);\n }", "function getPath($id = \"0\", $urlPrefix = '') {\n if($id == \"\") { $id = \"0\"; }\n $treeRecord = $this->getTreeRecord($id);\n\n if($treeRecord != null) {\n if($treeRecord->belongs_to == \"0\") {\n return \"<li class=\\\"breadcrumb-item\\\"><a href=\\\"\" . $urlPrefix . \"index.php?id=\".$treeRecord->id.\"\\\">\".$treeRecord->title.\"</a></li>\";\n } else {\n $path = $this->getPath($treeRecord->belongs_to, $urlPrefix);\n return $path . \"<li class=\\\"breadcrumb-item\\\"><a href=\\\"\" . $urlPrefix . \"index.php?id=\".$treeRecord->id.\"\\\">\" . $treeRecord->title.\"</a></li>\";\n }\n } else {\n return \"/ \";\n }\n }", "public function viewRouteByAddresses($init, $dest) {\n// $data = json_encode($route);\n// echo $data;\n }", "public function getRoutePath($onlyStaticPart = false);", "public function route($n=0) {\n\t\t$link = $this->selected_link();\n\t\tif (!$link) return false;\n\t\t$route = false;\n\t\tif ($link->sublinks) $route = $link->sublinks->route($n+1);\n\t\tif (!$route) $route = new CMS_Navigation3_LinkSet();\n\t\t$route->links[$n] = $link;\n\t\treturn $route;\n\t}", "public static function url(string $id, array $args = [], int $type = self::ABSOLUTE_PATH): string\n {\n if ($type === self::RELATIVE_PATH) {\n Log::debug('Requested relative path which is not an absolute path... just saying...');\n }\n return self::$router->generate($id, $args, $type);\n }", "abstract protected function getListRoute() : string;", "function getDepartamentalRoute($originCity, $destinyCity)\n {\n }", "public function route() {\n\t\t$route = $this->sets[':default']->route();\n\t\tif (!$route&&sizeof($this->route_extra)==0) return false;\n\t\tif (!$route) $route = new CMS_Navigation3_LinkSet();\n\t\t$n = $route->count();\n\t\tforeach($this->route_extra as $r) {\n\t\t\t$item = $r[1];\n\t\t\t$item['id'] = $n;\n\t\t\t$n++;\n\t\t\t$route->add($r[0],$item);\n\t\t}\t\n\t\treturn $route;\n\t}", "public function getRoute();", "public function getNodeRoutes() {\n \t$localizedModel = $this->meta->getLocalizedModel();\n\n $query = $localizedModel->createQuery(0);\n $query->setDistinct(true);\n $query->setFields('{route}');\n $query->addCondition('{route} IS NOT NULL AND {route} <> %1%', '');\n $nodes = $query->query();\n\n $routes = array();\n foreach ($nodes as $node) {\n $routes[$node->route] = $node->route;\n }\n\n return $routes;\n }", "public function getPathId($a_endnode_id, $a_startnode_id = 0)\n\t{\n\t\tif(!$a_endnode_id)\n\t\t{\n\t\t\t$GLOBALS['ilLog']->logStack();\n\t\t\tthrow new InvalidArgumentException(__METHOD__.': No endnode given!');\n\t\t}\n\t\t\n\t\t// path id cache\n\t\tif ($this->isCacheUsed() && isset($this->path_id_cache[$a_endnode_id][$a_startnode_id]))\n\t\t{\n//echo \"<br>getPathIdhit\";\n\t\t\treturn $this->path_id_cache[$a_endnode_id][$a_startnode_id];\n\t\t}\n//echo \"<br>miss\";\n\n\t\t$pathIds = $this->getTreeImplementation()->getPathIds($a_endnode_id, $a_startnode_id);\n\t\t\n\t\tif($this->__isMainTree())\n\t\t{\n\t\t\t$this->path_id_cache[$a_endnode_id][$a_startnode_id] = $pathIds;\n\t\t}\n\t\treturn $pathIds;\n\t}", "public function paths_to($node_dsts, $tonode) {\r\n\r\n\t\t$current = $tonode;\r\n\t\t$path = array();\r\n\r\n\t\tif (isset($node_dsts[$current])) { // only add if there is a path to node\r\n\t\t\tarray_push($path, $tonode);\r\n\t\t}\r\n\t\twhile(isset($node_dsts[$current])) {\r\n\t\t\t$nextnode = $node_dsts[$current];\r\n\r\n\t\t\tarray_push($path, $nextnode);\r\n\r\n\t\t\t$current = $nextnode;\r\n\t\t}\r\n\r\n\t\treturn array_reverse($path);\r\n\r\n\t}", "function timetracking_uri(timetracking $timetracking){\n return array(\n 'path' => 'timetracking/' . $timetracking->timetracking_id,\n );\n}", "public function getItemPath($item_id,$start=true){\n\n if($item_id != 0) {\n $sql=\"SELECT * FROM `\".$this->db_table.\"` WHERE `\".$this->item_identifier_field_name.\"`='\".$item_id.\"' \";\n $res=mysql_query($sql);\n $itemdata=mysql_fetch_assoc($res);\n array_push($this->item_path,$itemdata); \n\n if($itemdata[$this->parent_identifier_field_name]!=0) {\n $this->item_path=$this->getItemPath($itemdata[$this->parent_identifier_field_name],false);\n } \n if ($start) {\n $this->item_path=array_reverse($this->item_path);\n }\n }\n return $this->item_path;\n\n }", "private function getRoute(){\n\t}", "public function path(): RoutePathInterface;", "function findRoute()\r\n{\r\n\t// --------- GLOBALIZE ---------\r\n\tglobal $route;\r\n\t// ------ CONVERT TO INTEGER ------\r\n\t$P1 = intval(GET_INC('p1'));\r\n\t$P2 = intval(GET_INC('p2'));\r\n\t$P2n = GET_INC('p2name');\r\n\t$city = GET_INC('city');\r\n\t// ------- FIND ROUTE -------\r\n\t$route->findRoute($P1,$P2,$city);\r\n\t$route->nature($P2n);\r\n\t// ------- OUTPUT RESULT -------\r\n\tfor ( $i=1;$i<=$route->num;$i++ )\r\n\t{\r\n\t\t// Split with Dollar Sign\r\n\t\tif ( $i != 1 )\r\n\t\t\techo '$$$';\r\n\t\techo $route->nat[$i];\r\n\t}\r\n}", "public function uriRelationships();", "public static function formUrlPath(array $variables) : string {\n\n\t\tif (self::_hasAdapter(get_class(), __FUNCTION__))\n\t\t\treturn self::_callAdapter(get_class(), __FUNCTION__, $variables);\n\n\t\t$variables = self::_applyFilter(get_class(), __FUNCTION__, $variables, array('event' => 'args'));\n\n\t\t$appendix = '';\n\n\t\t$first = 1;\n\t\tforeach ($variables as $key => $value) {\n\t\t\tif ($first === 1) {\n\t\t\t\t$appendix .= urlencode($value);\n\t\t\t} else {\n\t\t\t\t$appendix .= '/' . urlencode($value);\n\t\t\t}\n\t\t\t$first = 0;\n\t\t}//end foreach\n\n\t\tself::_notify(get_class() . '::' . __FUNCTION__, $appendix, $variables);\n\t\t$appendix = self::_applyFilter(get_class(), __FUNCTION__, $appendix, array('event' => 'return'));\n\n\t\treturn $appendix;\n\n\t}", "public function get_locations($nodes);", "public function generateUrls()\n {\n $url_array[self::FORWARD_KEY] = $this->getForwardRoom();\n $url_array[self::LEFT_KEY] = $this->getLeftRoom();\n $url_array[self::RIGHT_KEY] = $this->getRightRoom();\n $url_array[self::BACK_KEY] = $this->getBackRoom();\n $url_array[self::CURRENT_KEY] = $this->getCurrentRoom();\n\n return $url_array;\n }", "protected function getPathIdsUsingAdjacencyMap($a_endnode_id, $a_startnode_id = 0)\n\t{\n\t\tglobal $ilDB;\n\n\t\t// The adjacency map algorithm is harder to implement than the nested sets algorithm.\n\t\t// This algorithms performs an index search for each of the path element.\n\t\t// This algorithms performs well for large trees which are not deeply nested.\n\n\t\t// The $takeId variable is used, to determine if a given id shall be included in the path\n\t\t$takeId = $a_startnode_id == 0;\n\t\t\n\t\t$depth_cache = $this->getTree()->getDepthCache();\n\t\t$parent_cache = $this->getTree()->getParentCache();\n\t\t\n\t\tif(\n\t\t\t$this->getTree()->__isMainTree() && \n\t\t\tisset($depth_cache[$a_endnode_id]) &&\n\t\t\tisset($parent_cache[$a_endnode_id]))\n\t\t{\n\t\t\t$nodeDepth = $depth_cache[$a_endnode_id];\n\t\t\t$parentId = $parent_cache[$a_endnode_id];\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$nodeDepth = $this->getTree()->getDepth($a_endnode_id);\n\t\t\t$parentId = $this->getTree()->getParentId($a_endnode_id);\n\t\t}\n\n\t\t// Fetch the node ids. For shallow depths we can fill in the id's directly.\t\n\t\t$pathIds = array();\n\t\t\n\t\t// backward compatible check for nodes not in tree\n\t\tif(!$nodeDepth )\n\t\t{\n\t\t\treturn array();\n\t\t}\n\t\telse if ($nodeDepth == 1)\n\t\t{\n\t\t\t\t$takeId = $takeId || $a_endnode_id == $a_startnode_id;\n\t\t\t\tif ($takeId) $pathIds[] = $a_endnode_id;\n\t\t}\n\t\telse if ($nodeDepth == 2)\n\t\t{\n\t\t\t\t$takeId = $takeId || $parentId == $a_startnode_id;\n\t\t\t\tif ($takeId) $pathIds[] = $parentId;\n\t\t\t\t$takeId = $takeId || $a_endnode_id == $a_startnode_id;\n\t\t\t\tif ($takeId) $pathIds[] = $a_endnode_id;\n\t\t}\n\t\telse if ($nodeDepth == 3)\n\t\t{\n\t\t\t\t$takeId = $takeId || $this->getTree()->getRootId() == $a_startnode_id;\n\t\t\t\tif ($takeId) $pathIds[] = $this->getTree()->getRootId();\n\t\t\t\t$takeId = $takeId || $parentId == $a_startnode_id;\n\t\t\t\tif ($takeId) $pathIds[] = $parentId;\n\t\t\t\t$takeId = $takeId || $a_endnode_id == $a_startnode_id;\n\t\t\t\tif ($takeId) $pathIds[] = $a_endnode_id;\n\t\t}\n\t\telse if ($nodeDepth < 32)\n\t\t{\n\t\t\t// Adjacency Map Tree performs better than\n\t\t\t// Nested Sets Tree even for very deep trees.\n\t\t\t// The following code construct nested self-joins\n\t\t\t// Since we already know the root-id of the tree and\n\t\t\t// we also know the id and parent id of the current node,\n\t\t\t// we only need to perform $nodeDepth - 3 self-joins. \n\t\t\t// We can further reduce the number of self-joins by 1\n\t\t\t// by taking into account, that each row in table tree\n\t\t\t// contains the id of itself and of its parent.\n\t\t\t$qSelect = 't1.child c0';\n\t\t\t$qJoin = '';\n\t\t\tfor ($i = 1; $i < $nodeDepth - 2; $i++)\n\t\t\t{\n\t\t\t\t$qSelect .= ', t'.$i.'.parent c'.$i;\n\t\t\t\t$qJoin .= ' JOIN '.$this->getTree()->getTreeTable().' t'.$i.' ON '.\n\t\t\t\t\t\t\t't'.$i.'.child=t'.($i - 1).'.parent AND '.\n\t\t\t\t\t\t\t't'.$i.'.'.$this->getTree()->getTreePk().' = '.(int) $this->getTree()->getTreeId();\n\t\t\t}\n\t\t\t\n\t\t\t$types = array('integer','integer');\n\t\t\t$data = array($this->getTree()->getTreeId(),$parentId);\n\t\t\t$query = 'SELECT '.$qSelect.' '.\n\t\t\t\t'FROM '.$this->getTree()->getTreeTable().' t0 '.$qJoin.' '.\n\t\t\t\t'WHERE t0.'.$this->getTree()->getTreePk().' = %s '.\n\t\t\t\t'AND t0.child = %s ';\n\t\t\t\t\n\t\t\t$ilDB->setLimit(1);\n\t\t\t$res = $ilDB->queryF($query,$types,$data);\n\n\t\t\tif ($res->numRows() == 0)\n\t\t\t{\n\t\t\t\treturn array();\n\t\t\t}\n\t\t\t\n\t\t\t$row = $ilDB->fetchAssoc($res);\n\t\t\t\n\t\t\t$takeId = $takeId || $this->getTree()->getRootId() == $a_startnode_id;\n\t\t\tif ($takeId) $pathIds[] = $this->getTree()->getRootId();\n\t\t\tfor ($i = $nodeDepth - 4; $i >=0; $i--)\n\t\t\t{\n\t\t\t\t$takeId = $takeId || $row['c'.$i] == $a_startnode_id;\n\t\t\t\tif ($takeId) $pathIds[] = $row['c'.$i];\n\t\t\t}\n\t\t\t$takeId = $takeId || $parentId == $a_startnode_id;\n\t\t\tif ($takeId) $pathIds[] = $parentId;\n\t\t\t$takeId = $takeId || $a_endnode_id == $a_startnode_id;\n\t\t\tif ($takeId) $pathIds[] = $a_endnode_id;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// Fall back to nested sets tree for extremely deep tree structures\n\t\t\treturn $this->getPathIdsUsingNestedSets($a_endnode_id, $a_startnode_id);\n\t\t}\n\t\treturn $pathIds;\n\t}", "public function getRoutes() {\r\n \r\n $params = array(\"line\");\r\n \r\n $results = $this->fetch(\"search\", $params);\r\n \r\n $routes = array(); \r\n \r\n foreach ($results as $row) {\r\n if ($row['result']['transport_type'] == \"train\") {\r\n $routes[$row['result']['line_id']] = array(\r\n \"id\" => $row['result']['line_id'],\r\n \"route_id\" => $row['result']['line_id'],\r\n \"agency_id\" => 1,\r\n \"route_short_name\" => $row['result']['line_number'],\r\n \"route_long_name\" => $row['result']['line_name'],\r\n \"route_desc\" => \"\",\r\n \"route_url\" => \"\",\r\n \"route_color\" => \"\",\r\n \"route_text_color\" => \"\",\r\n \"url\" => new Url(sprintf(\"%s/timetables?provider=%s&id=%d\", RP_WEB_ROOT, static::PROVIDER_NAME, $row['result']['line_id']))\r\n );\r\n }\r\n }\r\n \r\n return $routes;\r\n \r\n /*\r\n $routes = array(\r\n array(\r\n \"id\" => 1,\r\n \"route_id\" => 1,\r\n \"agency_id\" => 1,\r\n \"route_short_name\" => \"Alamein Line\",\r\n \"route_long_name\" => \"Alamein Line\",\r\n \"route_desc\" => \"\",\r\n \"route_url\" => \"\",\r\n \"route_color\" => \"\",\r\n \"route_text_color\" => \"\"\r\n ),\r\n array(\r\n \"id\" => 2,\r\n \"route_id\" => 2,\r\n \"agency_id\" => 1,\r\n \"route_short_name\" => \"Belgrave Line\",\r\n \"route_long_name\" => \"Belgrave Line\",\r\n \"route_desc\" => \"\",\r\n \"route_url\" => \"\",\r\n \"route_color\" => \"\",\r\n \"route_text_color\" => \"\"\r\n ),\r\n array(\r\n \"id\" => 3,\r\n \"route_id\" => 3,\r\n \"agency_id\" => 1,\r\n \"route_short_name\" => \"Craigieburn Line\",\r\n \"route_long_name\" => \"Craigieburn Line\",\r\n \"route_desc\" => \"\",\r\n \"route_url\" => \"\",\r\n \"route_color\" => \"\",\r\n \"route_text_color\" => \"\"\r\n ),\r\n array(\r\n \"id\" => 4,\r\n \"route_id\" => 4,\r\n \"agency_id\" => 1,\r\n \"route_short_name\" => \"Cranbourne Line\",\r\n \"route_long_name\" => \"Cranbourne Line\",\r\n \"route_desc\" => \"\",\r\n \"route_url\" => \"\",\r\n \"route_color\" => \"\",\r\n \"route_text_color\" => \"\"\r\n ),\r\n array(\r\n \"id\" => 6,\r\n \"route_id\" => 6,\r\n \"agency_id\" => 1,\r\n \"route_short_name\" => \"Frankston Line\",\r\n \"route_long_name\" => \"Frankston Line\",\r\n \"route_desc\" => \"\",\r\n \"route_url\" => \"\",\r\n \"route_color\" => \"\",\r\n \"route_text_color\" => \"\"\r\n ),\r\n array(\r\n \"id\" => 7,\r\n \"route_id\" => 7,\r\n \"agency_id\" => 1,\r\n \"route_short_name\" => \"Glen Waverley Line\",\r\n \"route_long_name\" => \"Glen Waverley Line\",\r\n \"route_desc\" => \"\",\r\n \"route_url\" => \"\",\r\n \"route_color\" => \"\",\r\n \"route_text_color\" => \"\"\r\n ),\r\n array(\r\n \"id\" => 8,\r\n \"route_id\" => 8,\r\n \"agency_id\" => 1,\r\n \"route_short_name\" => \"Hurstbridge Line\",\r\n \"route_long_name\" => \"Hurstbridge Line\",\r\n \"route_desc\" => \"\",\r\n \"route_url\" => \"\",\r\n \"route_color\" => \"\",\r\n \"route_text_color\" => \"\"\r\n ),\r\n array(\r\n \"id\" => 9,\r\n \"route_id\" => 9,\r\n \"agency_id\" => 1,\r\n \"route_short_name\" => \"Lilydale Line\",\r\n \"route_long_name\" => \"Lilydale Line\",\r\n \"route_desc\" => \"\",\r\n \"route_url\" => \"\",\r\n \"route_color\" => \"\",\r\n \"route_text_color\" => \"\"\r\n ),\r\n array(\r\n \"id\" => 11,\r\n \"route_id\" => 11,\r\n \"agency_id\" => 1,\r\n \"route_short_name\" => \"Pakenham Line\",\r\n \"route_long_name\" => \"Pakenham Line\",\r\n \"route_desc\" => \"\",\r\n \"route_url\" => \"\",\r\n \"route_color\" => \"\",\r\n \"route_text_color\" => \"\"\r\n )\r\n );\r\n */\r\n \r\n printArray($routes);\r\n }", "public function getPathLocation(): string;", "public function directions(): array;", "protected function buildPath($ref_ids)\n\t{\n\t\tinclude_once 'Services/Link/classes/class.ilLink.php';\n\n\t\tif (!count($ref_ids)) {\n\t\t\treturn false;\n\t\t}\n\n\t\t$result = array();\n\t\tforeach ($ref_ids as $ref_id) {\n\t\t\t$path = \"\";\n\t\t\t$path_full = self::dic()->tree()->getPathFull($ref_id);\n\t\t\tforeach ($path_full as $idx => $data) {\n\t\t\t\tif ($idx) {\n\t\t\t\t\t$path .= \" &raquo; \";\n\t\t\t\t}\n\t\t\t\tif ($ref_id != $data['ref_id']) {\n\t\t\t\t\t$path .= $data['title'];\n\t\t\t\t} else {\n\t\t\t\t\t$path .= ('<a target=\"_top\" href=\"' . ilLink::_getLink($data['ref_id'], $data['type']) . '\">' . $data['title'] . '</a>');\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$result[] = $path;\n\t\t}\n\n\t\treturn $result;\n\t}", "public static function route();", "public static function getPath($id);", "public function getPath($id);", "public function getSystemRoutes();", "function get_segments($ignore_custom_routes=NULL) {\n $psuedo_url = str_replace('://', '', BASE_URL);\n $psuedo_url = rtrim($psuedo_url, '/');\n $bits = explode('/', $psuedo_url);\n $num_bits = count($bits);\n\n if ($num_bits>1) {\n $num_segments_to_ditch = $num_bits-1;\n } else {\n $num_segments_to_ditch = 0;\n }\n\n $assumed_url = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? \"https\" : \"http\") . \"://\" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];\n\n if (!isset($ignore_custom_routes)) {\n $assumed_url = attempt_add_custom_routes($assumed_url);\n }\n\n $data['assumed_url'] = $assumed_url;\n\n $assumed_url = str_replace('://', '', $assumed_url);\n $assumed_url = rtrim($assumed_url, '/');\n\n $segments = explode('/', $assumed_url);\n\n for ($i=0; $i < $num_segments_to_ditch; $i++) { \n unset($segments[$i]);\n }\n\n $data['segments'] = array_values($segments); \n return $data;\n}", "public function toString() {\n return url::buildPath($this->toArray());\n }", "function getInternationalRoute($originCity, $destinyCity)\n {\n }", "function generateFullPath() {\n include_once('../common/common_functions.php');\n $jsonRouteFilePath = \"cricketTraveledPath.json\";\n $error_msg = \"\";\n $result = true;\n $travelObj = new Travel();\n $tdh_db = \"CLEARDB_URL_TDH_SCRIPTS\";\n \n //Get the points from the database sorted by tripname, then date\n try{\n if($db = connect_db($tdh_db)){\n $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n $db->setAttribute(PDO::ATTR_EMULATE_PREPARES, false);\n \n $query_sel = $db->query(\"SELECT * from gps_readings order by `tripname`, `time` ASC\");\n $previousLatLong = [];\n $previousTripName = \"\";\n $tripLeg_id = 0;\n if($query_sel->rowCount() > 0){\n foreach ($query_sel as $row){\n $currentLatLong = [ $row['lat'], $row['long'] ];\n $time = $row['time'];\n if(!empty($previousLatLong)){\n //get the mapquest info\n// echo \"getting directions with \"\n// .implode(\",\",$currentLatLong)\n// .\" and \"\n// .implode(\",\",$previousLatLong)\n// .\" <br />\";\n $mqString = getMQroute($previousLatLong, $currentLatLong);\n if($mqString){\n //echo \"Got mq result <br />\";\n $mqResult = json_decode($mqString);\n if( $row['tripname'] !== $previousTripName){\n $newTrip = new Trip();\n $newTrip->name = ($row['tripname']);\n $travelObj->add_trip($newTrip);\n $previousTripName = $row['tripname'];\n }\n //Get the latest trip object from the travelObj\n $currentTrip = end($travelObj->trips);\n\n //If the points not the same make a new leg\n $distance = $mqResult->{\"route\"}->{\"distance\"};\n if($distance > 0){\n $tripLeg_id += 10;\n $newLeg = new TripLeg();\n $newLeg->id = $tripLeg_id;\n $newLeg->distance = $distance;\n $newLeg->startLatLong = $previousLatLong;\n $newLeg->endLatLong = $currentLatLong;\n $newLeg->startTime = $time;\n $newLeg->MQencodedPath = $mqResult->{\"route\"}->{\"shape\"}->{\"shapePoints\"};\n\n //add the leg to the current trip\n $currentTrip->add_leg($newLeg);\n }\n }else{ \n //Map Quest result not returned\n $error_msg = \"Map Quest result not returned\";\n $result = false;\n }\n }\n $previousLatLong = $currentLatLong;\n }\n //If none of the leg creations failed,\n //Turn the object into a json string and update the file.\n if($result){\n if($newTripsRoute = fopen($jsonRouteFilePath,\"w\")){\n fwrite($newTripsRoute, json_encode($travelObj));\n fclose($newTripsRoute);\n $result = true;\n }else{\n //error using fopen.\n $error_msg = \"Could not open file.\";\n $result = false;\n }\n }else{\n $error_msg.=\"Failed to create all legs of trip from MQ api. <br />\";\n }\n }\n }else{ //handle error\n $error_msg = \"Could not connect to database\";\n $result = false;\n }\n }catch(PDOException $ex) {\n $error_msg = \"CODE 120: Could not connect to mySQL DB<br />\"; //user friendly message\n $error_msg .= $ex->getMessage();\n $result = false; \n }\n echo $result ? \"Success! New file created.\" : $error_msg;\n return $result;\n}", "public static function uri($mnt,$path)\n{\nreturn self::baseURI($mnt).ltrim($path,'/');\n}", "function jeanisRoute($citys, $roads) {\n // 需要投递的城市\n $deliverMap = [];\n $k = count($citys);\n foreach ($citys as $city) {\n $deliverMap[$city] = true;\n }\n \n // road转成connectMap\n $connectMap = [];\n foreach ($roads as $item) {\n $connectMap[$item[0]][$item[1]] = $connectMap[$item[1]][$item[0]] = $item[2];\n }\n \n // 以第一个节点作为根\n $root = 1;\n \n // 其所有子节点中待投递城市的数量\n $subDeliveryCountArr = [];\n \n // 所有走过的边的距离之和\n $result = 0;\n \n // 最长距离\n $globalMaxDis = 0;\n \n processDis($subDeliveryCountArr, $connectMap, $deliverMap, $result, $globalMaxDis, $root, 0, $k);\n\n \n return 2 * $result - $globalMaxDis;\n}", "public function getPath ($pathType, $from, $to)\n\t{\n\t\t/* needs prev. routes saving (by $from)*/\n\t\tif ($pathType === self::SHORT){\n\t\t\t$routes = $this->dijkstraEdges($from);\n\t\t}\n\t\telse if ($pathType === self::CHEAP){\n\t\t\t$routes = $this->dijkstraVertices($from);\n\t\t}\n\t\telse{\n\t\t\tthrow new Exception('No such path type: '.$pathType);\n\t\t}\n\n\t\t$path = array();\n\t\t$tmp = $routes[$to];\n\t\twhile($tmp !== null){\n\t\t\tarray_unshift($path, $tmp);\n\t\t\t$tmp = $routes[$tmp];\n\t\t}\n\t\tarray_shift($path);\n\n\t\treturn $path;\n\t}", "function getGoogleRoute($point1, $point2){\n //Reference: https://developers.google.com/maps/documentation/roads/snap\n \n $apiKey = getenv(\"GOOGLE_ROADS_API\");\n $pointStr = \"{$point1[0]},{$point1[1]}|{$point2[0]},{$point2[1]}\";\n $url = \"https://roads.googleapis.com/v1/snapToRoads?path={$pointStr}&interpolate=true&key={$apiKey}\";\n \n $result = file_get_contents($url);\n if ($result === FALSE || empty($result)) { \n echo \"Nothing returned from Google Roads API\";\n $result = FALSE;\n }\n //echo $result;\n return $result;\n}", "public static function getRoutes();", "public static function getRoutes();", "protected function getPathLinkUrl($paramsOnly = false) {\n\t\t$tempArr = array();\n\t\t$tempStr = '';\n\t\t$tempUrl = $GLOBALS['chregUrl'] . 'link.php';\n\t\t\n\t\tforeach($this->ccttsParams as $sessionParamName => $value)\n\t\t\t$tempArr[$sessionParamName] = $value;\n\t\t\n\t\t$tempArr['linkID'] = $this->pathOrderArr[$this->position]['linkID'];\n\t\t$tempArr['linkURL'] = $this->pathOrderArr[$this->position]['linkURL'];\n\t\t\n\t\t$params = base64_encode(json_encode($tempArr));\n\t\t\n\t\tif ($paramsOnly)\n\t\t\treturn $params;\n\t\telse\n\t\t\treturn $tempUrl .'?params='. $params;\n\t}", "abstract public function getRoute();", "public function getNaturalPath($path){\n\t\t$path = explode('/',$path);\n\t\t$slug = '';\n\t\tforeach($path as $item){\n\t\t\tif( (!is_numeric($item)) && ($item != 'create') && !empty($item) ){\n\t\t\t\t$slug .= '/'.$item;\n\t\t\t}else{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn $slug;\n\t}", "public function generate_url()\n {\n }", "function buildPath($entity, $options = array()) {\n return file_create_url($entity->uri);\n }", "protected function build_node_path($id, $name = '', $root = '') {\n $path = $id;\n if (!empty($name)) {\n $path .= '|' . urlencode($name);\n }\n if (!empty($root)) {\n $path = trim($root, '/') . '/' . $path;\n }\n return $path;\n }", "private function generateDeclaredRoutes(): string\n {\n $routes = '';\n foreach ($this->getCompiledRoutes() as $name => $properties) {\n $routes .= sprintf(\"\\n '%s' => %s,\", $name, CompiledUrlMatcherDumper::export($properties));\n }\n\n return $routes;\n }", "private function generateUrl() : string\n {\n return $this->apiUrl.$this->ownerRepo.$this->branchPath.$this->branch;\n }", "function drum_smart_directions($address_array) {\n\t// Set up variables\n\t$street1 = $address_array['street1'];\n\t$street2 = $address_array['street2'];\n\t$city = $address_array['city'];\n\t$state = $address_array['state'];\n\t$zip = $address_array['zip'];\n\t// Format address for links to map\n\tif ($street2 == null) {\n\t\t$address = $street1 . ', ' . $street2 . ', ' . $city . ', ' . $state . ' ' . $zip;\n\t} else {\n\t\t$address = $street1 . ', ' . $city . ', ' . $state . ' ' . $zip;\n\t}\n\t// Show 'Get Directions' button\n\t$clean_address = urlencode( strip_tags($address) );\n\t$detect = new Mobile_Detect;\n\t$output = '<div class=\"button\">';\n\tif( $detect->isiOS() ) {\n \t$output .= '<a href=\"http://maps.apple.com/?daddr=' . $clean_address . '\">Apple Maps';\n\t} else {\n\t $output .= '<a href=\"http://maps.google.com/?q=' . $clean_address . '\" target=\"_blank\">Get Directions';\n\t}\n $output .= '</a></div>';\n return $output;\n}", "public function createPathInfoUrl($route, $params, $ampersand='&') {\n\t\t$url = parent::createUrl($route, $params, $ampersand);\n\t\t\n\t\t//strip base url\n\t\t$baseUrl = $this->baseUrl;\n\t\tif ( $baseUrl && !$this->hasHostInfo($url) && strpos($url, $baseUrl)===0 ) {\n\t\t\t$url = substr($url, strlen($baseUrl));\n\t\t}\n\t\treturn $url;\n\t}", "function SimulationBuildRoute(&$query)\n{\n\t$segments\t= array();\n\n\t// get a menu item based on Itemid or currently active\n\t$app\t\t= JFactory::getApplication();\n\t$menu\t\t= $app->getMenu();\n\t$params\t\t= JComponentHelper::getParams('com_workshop');\n\t$advanced\t= $params->get('sef_advanced_link', 0);\n\n\t// we need a menu item. Either the one specified in the query, or the current active one if none specified\n\tif (empty($query['Itemid'])) {\n\t\t$menuItem = $menu->getActive();\n\t\t$menuItemGiven = false;\n\t}\n\telse {\n\t\t$menuItem = $menu->getItem($query['Itemid']);\n\t\t$menuItemGiven = true;\n\t}\n\n\tif (isset($query['layout']) && isset($query['id'])) {\n\t\t$view = $query['layout'];\n\t\t$id = $query['id'];\n\t}\n\telse {\n\t\t// we need to have a view in the query or it is an invalid URL\n\t\treturn $segments;\n\t}\n\n\tif (!$view == '')\n\t{\n\t\t\t$segments[] = 'RealEstateProperties';\n\t\t\t$segments[] = $view;\n\t\t\t$segments[] = $id;\n\t\t\tunset($query['layout']);\n\t\t\tunset($query['id']);\n\t}\n\treturn $segments;\n}", "function url($route,$params=array(),$ampersand='&')\n{\n return Yii::app()->createUrl($route,$params,$ampersand);\n}", "private function _makepath() {\n $params = func_get_args();\n $path = '';\n\n foreach ($params as $value) {\n $path .= $value;\n\n if (!empty($value)) $path .= PS;\n }\n\n return $path;\n }", "function trebi_getUrlLoc($idloc)\n{\n$trebi_url_locs = array (1 => \"/meteo/Abano+terme\",2 => \"/meteo/Abbadia+cerreto\",3 => \"/meteo/Abbadia+lariana\",4 => \"/meteo/Abbadia+San+Salvatore\",5 => \"/meteo/Abbasanta\",6 => \"/meteo/Abbateggio\",7 => \"/meteo/Abbiategrasso\",8 => \"/meteo/Abetone\",8399 => \"/meteo/Abriola\",10 => \"/meteo/Acate\",11 => \"/meteo/Accadia\",12 => \"/meteo/Acceglio\",8369 => \"/meteo/Accettura\",14 => \"/meteo/Acciano\",15 => \"/meteo/Accumoli\",16 => \"/meteo/Acerenza\",17 => \"/meteo/Acerno\",18 => \"/meteo/Acerra\",19 => \"/meteo/Aci+bonaccorsi\",20 => \"/meteo/Aci+castello\",21 => \"/meteo/Aci+Catena\",22 => \"/meteo/Aci+Sant'Antonio\",23 => \"/meteo/Acireale\",24 => \"/meteo/Acquacanina\",25 => \"/meteo/Acquafondata\",26 => \"/meteo/Acquaformosa\",27 => \"/meteo/Acquafredda\",8750 => \"/meteo/Acquafredda\",28 => \"/meteo/Acqualagna\",29 => \"/meteo/Acquanegra+cremonese\",30 => \"/meteo/Acquanegra+sul+chiese\",31 => \"/meteo/Acquapendente\",32 => \"/meteo/Acquappesa\",33 => \"/meteo/Acquarica+del+capo\",34 => \"/meteo/Acquaro\",35 => \"/meteo/Acquasanta+terme\",36 => \"/meteo/Acquasparta\",37 => \"/meteo/Acquaviva+collecroce\",38 => \"/meteo/Acquaviva+d'Isernia\",39 => \"/meteo/Acquaviva+delle+fonti\",40 => \"/meteo/Acquaviva+picena\",41 => \"/meteo/Acquaviva+platani\",42 => \"/meteo/Acquedolci\",43 => \"/meteo/Acqui+terme\",44 => \"/meteo/Acri\",45 => \"/meteo/Acuto\",46 => \"/meteo/Adelfia\",47 => \"/meteo/Adrano\",48 => \"/meteo/Adrara+San+Martino\",49 => \"/meteo/Adrara+San+Rocco\",50 => \"/meteo/Adria\",51 => \"/meteo/Adro\",52 => \"/meteo/Affi\",53 => \"/meteo/Affile\",54 => \"/meteo/Afragola\",55 => \"/meteo/Africo\",56 => \"/meteo/Agazzano\",57 => \"/meteo/Agerola\",58 => \"/meteo/Aggius\",59 => \"/meteo/Agira\",60 => \"/meteo/Agliana\",61 => \"/meteo/Agliano\",62 => \"/meteo/Aglie'\",63 => \"/meteo/Aglientu\",64 => \"/meteo/Agna\",65 => \"/meteo/Agnadello\",66 => \"/meteo/Agnana+calabra\",8598 => \"/meteo/Agnano\",67 => \"/meteo/Agnone\",68 => \"/meteo/Agnosine\",69 => \"/meteo/Agordo\",70 => \"/meteo/Agosta\",71 => \"/meteo/Agra\",72 => \"/meteo/Agrate+brianza\",73 => \"/meteo/Agrate+conturbia\",74 => \"/meteo/Agrigento\",75 => \"/meteo/Agropoli\",76 => \"/meteo/Agugliano\",77 => \"/meteo/Agugliaro\",78 => \"/meteo/Aicurzio\",79 => \"/meteo/Aidomaggiore\",80 => \"/meteo/Aidone\",81 => \"/meteo/Aielli\",82 => \"/meteo/Aiello+calabro\",83 => \"/meteo/Aiello+del+Friuli\",84 => \"/meteo/Aiello+del+Sabato\",85 => \"/meteo/Aieta\",86 => \"/meteo/Ailano\",87 => \"/meteo/Ailoche\",88 => \"/meteo/Airasca\",89 => \"/meteo/Airola\",90 => \"/meteo/Airole\",91 => \"/meteo/Airuno\",92 => \"/meteo/Aisone\",93 => \"/meteo/Ala\",94 => \"/meteo/Ala+di+Stura\",95 => \"/meteo/Ala'+dei+Sardi\",96 => \"/meteo/Alagna\",97 => \"/meteo/Alagna+Valsesia\",98 => \"/meteo/Alanno\",99 => \"/meteo/Alano+di+Piave\",100 => \"/meteo/Alassio\",101 => \"/meteo/Alatri\",102 => \"/meteo/Alba\",103 => \"/meteo/Alba+adriatica\",104 => \"/meteo/Albagiara\",105 => \"/meteo/Albairate\",106 => \"/meteo/Albanella\",8386 => \"/meteo/Albano+di+lucania\",108 => \"/meteo/Albano+laziale\",109 => \"/meteo/Albano+Sant'Alessandro\",110 => \"/meteo/Albano+vercellese\",111 => \"/meteo/Albaredo+arnaboldi\",112 => \"/meteo/Albaredo+d'Adige\",113 => \"/meteo/Albaredo+per+San+Marco\",114 => \"/meteo/Albareto\",115 => \"/meteo/Albaretto+della+torre\",116 => \"/meteo/Albavilla\",117 => \"/meteo/Albenga\",118 => \"/meteo/Albera+ligure\",119 => \"/meteo/Alberobello\",120 => \"/meteo/Alberona\",121 => \"/meteo/Albese+con+Cassano\",122 => \"/meteo/Albettone\",123 => \"/meteo/Albi\",124 => \"/meteo/Albiano\",125 => \"/meteo/Albiano+d'ivrea\",126 => \"/meteo/Albiate\",127 => \"/meteo/Albidona\",128 => \"/meteo/Albignasego\",129 => \"/meteo/Albinea\",130 => \"/meteo/Albino\",131 => \"/meteo/Albiolo\",132 => \"/meteo/Albisola+marina\",133 => \"/meteo/Albisola+superiore\",134 => \"/meteo/Albizzate\",135 => \"/meteo/Albonese\",136 => \"/meteo/Albosaggia\",137 => \"/meteo/Albugnano\",138 => \"/meteo/Albuzzano\",139 => \"/meteo/Alcamo\",140 => \"/meteo/Alcara+li+Fusi\",141 => \"/meteo/Aldeno\",142 => \"/meteo/Aldino\",143 => \"/meteo/Ales\",144 => \"/meteo/Alessandria\",145 => \"/meteo/Alessandria+del+Carretto\",146 => \"/meteo/Alessandria+della+Rocca\",147 => \"/meteo/Alessano\",148 => \"/meteo/Alezio\",149 => \"/meteo/Alfano\",150 => \"/meteo/Alfedena\",151 => \"/meteo/Alfianello\",152 => \"/meteo/Alfiano+natta\",153 => \"/meteo/Alfonsine\",154 => \"/meteo/Alghero\",8532 => \"/meteo/Alghero+Fertilia\",155 => \"/meteo/Algua\",156 => \"/meteo/Ali'\",157 => \"/meteo/Ali'+terme\",158 => \"/meteo/Alia\",159 => \"/meteo/Aliano\",160 => \"/meteo/Alice+bel+colle\",161 => \"/meteo/Alice+castello\",162 => \"/meteo/Alice+superiore\",163 => \"/meteo/Alife\",164 => \"/meteo/Alimena\",165 => \"/meteo/Aliminusa\",166 => \"/meteo/Allai\",167 => \"/meteo/Alleghe\",168 => \"/meteo/Allein\",169 => \"/meteo/Allerona\",170 => \"/meteo/Alliste\",171 => \"/meteo/Allumiere\",172 => \"/meteo/Alluvioni+cambio'\",173 => \"/meteo/Alme'\",174 => \"/meteo/Almenno+San+Bartolomeo\",175 => \"/meteo/Almenno+San+Salvatore\",176 => \"/meteo/Almese\",177 => \"/meteo/Alonte\",8259 => \"/meteo/Alpe+Cermis\",8557 => \"/meteo/Alpe+Devero\",8162 => \"/meteo/Alpe+di+Mera\",8565 => \"/meteo/Alpe+di+Siusi\",8755 => \"/meteo/Alpe+Giumello\",8264 => \"/meteo/Alpe+Lusia\",8559 => \"/meteo/Alpe+Nevegal\",8239 => \"/meteo/Alpe+Tre+Potenze\",8558 => \"/meteo/Alpe+Veglia\",8482 => \"/meteo/Alpet\",178 => \"/meteo/Alpette\",179 => \"/meteo/Alpignano\",180 => \"/meteo/Alseno\",181 => \"/meteo/Alserio\",182 => \"/meteo/Altamura\",8474 => \"/meteo/Altare\",184 => \"/meteo/Altavilla+irpina\",185 => \"/meteo/Altavilla+milicia\",186 => \"/meteo/Altavilla+monferrato\",187 => \"/meteo/Altavilla+silentina\",188 => \"/meteo/Altavilla+vicentina\",189 => \"/meteo/Altidona\",190 => \"/meteo/Altilia\",191 => \"/meteo/Altino\",192 => \"/meteo/Altissimo\",193 => \"/meteo/Altivole\",194 => \"/meteo/Alto\",195 => \"/meteo/Altofonte\",196 => \"/meteo/Altomonte\",197 => \"/meteo/Altopascio\",8536 => \"/meteo/Altopiano+dei+Fiorentini\",8662 => \"/meteo/Altopiano+della+Sila\",8640 => \"/meteo/Altopiano+di+Renon\",198 => \"/meteo/Alviano\",199 => \"/meteo/Alvignano\",200 => \"/meteo/Alvito\",201 => \"/meteo/Alzano+lombardo\",202 => \"/meteo/Alzano+scrivia\",203 => \"/meteo/Alzate+brianza\",204 => \"/meteo/Amalfi\",205 => \"/meteo/Amandola\",206 => \"/meteo/Amantea\",207 => \"/meteo/Amaro\",208 => \"/meteo/Amaroni\",209 => \"/meteo/Amaseno\",210 => \"/meteo/Amato\",211 => \"/meteo/Amatrice\",212 => \"/meteo/Ambivere\",213 => \"/meteo/Amblar\",214 => \"/meteo/Ameglia\",215 => \"/meteo/Amelia\",216 => \"/meteo/Amendolara\",217 => \"/meteo/Ameno\",218 => \"/meteo/Amorosi\",219 => \"/meteo/Ampezzo\",220 => \"/meteo/Anacapri\",221 => \"/meteo/Anagni\",8463 => \"/meteo/Anagni+casello\",222 => \"/meteo/Ancarano\",223 => \"/meteo/Ancona\",8267 => \"/meteo/Ancona+Falconara\",224 => \"/meteo/Andali\",225 => \"/meteo/Andalo\",226 => \"/meteo/Andalo+valtellino\",227 => \"/meteo/Andezeno\",228 => \"/meteo/Andora\",229 => \"/meteo/Andorno+micca\",230 => \"/meteo/Andrano\",231 => \"/meteo/Andrate\",232 => \"/meteo/Andreis\",233 => \"/meteo/Andretta\",234 => \"/meteo/Andria\",235 => \"/meteo/Andriano\",236 => \"/meteo/Anela\",237 => \"/meteo/Anfo\",238 => \"/meteo/Angera\",239 => \"/meteo/Anghiari\",240 => \"/meteo/Angiari\",241 => \"/meteo/Angolo+terme\",242 => \"/meteo/Angri\",243 => \"/meteo/Angrogna\",244 => \"/meteo/Anguillara+sabazia\",245 => \"/meteo/Anguillara+veneta\",246 => \"/meteo/Annicco\",247 => \"/meteo/Annone+di+brianza\",248 => \"/meteo/Annone+veneto\",249 => \"/meteo/Anoia\",8302 => \"/meteo/Antagnod\",250 => \"/meteo/Antegnate\",251 => \"/meteo/Anterivo\",8211 => \"/meteo/Anterselva+di+Sopra\",252 => \"/meteo/Antey+saint+andre'\",253 => \"/meteo/Anticoli+Corrado\",254 => \"/meteo/Antignano\",255 => \"/meteo/Antillo\",256 => \"/meteo/Antonimina\",257 => \"/meteo/Antrodoco\",258 => \"/meteo/Antrona+Schieranco\",259 => \"/meteo/Anversa+degli+Abruzzi\",260 => \"/meteo/Anzano+del+Parco\",261 => \"/meteo/Anzano+di+Puglia\",8400 => \"/meteo/Anzi\",263 => \"/meteo/Anzio\",264 => \"/meteo/Anzola+d'Ossola\",265 => \"/meteo/Anzola+dell'Emilia\",266 => \"/meteo/Aosta\",8548 => \"/meteo/Aosta+Saint+Christophe\",267 => \"/meteo/Apecchio\",268 => \"/meteo/Apice\",269 => \"/meteo/Apiro\",270 => \"/meteo/Apollosa\",271 => \"/meteo/Appiano+Gentile\",272 => \"/meteo/Appiano+sulla+strada+del+vino\",273 => \"/meteo/Appignano\",274 => \"/meteo/Appignano+del+Tronto\",275 => \"/meteo/Aprica\",276 => \"/meteo/Apricale\",277 => \"/meteo/Apricena\",278 => \"/meteo/Aprigliano\",279 => \"/meteo/Aprilia\",280 => \"/meteo/Aquara\",281 => \"/meteo/Aquila+di+Arroscia\",282 => \"/meteo/Aquileia\",283 => \"/meteo/Aquilonia\",284 => \"/meteo/Aquino\",8228 => \"/meteo/Arabba\",285 => \"/meteo/Aradeo\",286 => \"/meteo/Aragona\",287 => \"/meteo/Aramengo\",288 => \"/meteo/Arba\",8487 => \"/meteo/Arbatax\",289 => \"/meteo/Arborea\",290 => \"/meteo/Arborio\",291 => \"/meteo/Arbus\",292 => \"/meteo/Arcade\",293 => \"/meteo/Arce\",294 => \"/meteo/Arcene\",295 => \"/meteo/Arcevia\",296 => \"/meteo/Archi\",297 => \"/meteo/Arcidosso\",298 => \"/meteo/Arcinazzo+romano\",299 => \"/meteo/Arcisate\",300 => \"/meteo/Arco\",301 => \"/meteo/Arcola\",302 => \"/meteo/Arcole\",303 => \"/meteo/Arconate\",304 => \"/meteo/Arcore\",305 => \"/meteo/Arcugnano\",306 => \"/meteo/Ardara\",307 => \"/meteo/Ardauli\",308 => \"/meteo/Ardea\",309 => \"/meteo/Ardenno\",310 => \"/meteo/Ardesio\",311 => \"/meteo/Ardore\",8675 => \"/meteo/Ardore+Marina\",8321 => \"/meteo/Aremogna\",312 => \"/meteo/Arena\",313 => \"/meteo/Arena+po\",314 => \"/meteo/Arenzano\",315 => \"/meteo/Arese\",316 => \"/meteo/Arezzo\",317 => \"/meteo/Argegno\",318 => \"/meteo/Argelato\",319 => \"/meteo/Argenta\",320 => \"/meteo/Argentera\",321 => \"/meteo/Arguello\",322 => \"/meteo/Argusto\",323 => \"/meteo/Ari\",324 => \"/meteo/Ariano+irpino\",325 => \"/meteo/Ariano+nel+polesine\",326 => \"/meteo/Ariccia\",327 => \"/meteo/Arielli\",328 => \"/meteo/Arienzo\",329 => \"/meteo/Arignano\",330 => \"/meteo/Aritzo\",331 => \"/meteo/Arizzano\",332 => \"/meteo/Arlena+di+castro\",333 => \"/meteo/Arluno\",8677 => \"/meteo/Arma+di+Taggia\",334 => \"/meteo/Armeno\",8405 => \"/meteo/Armento\",336 => \"/meteo/Armo\",337 => \"/meteo/Armungia\",338 => \"/meteo/Arnad\",339 => \"/meteo/Arnara\",340 => \"/meteo/Arnasco\",341 => \"/meteo/Arnesano\",342 => \"/meteo/Arola\",343 => \"/meteo/Arona\",344 => \"/meteo/Arosio\",345 => \"/meteo/Arpaia\",346 => \"/meteo/Arpaise\",347 => \"/meteo/Arpino\",348 => \"/meteo/Arqua'+Petrarca\",349 => \"/meteo/Arqua'+polesine\",350 => \"/meteo/Arquata+del+tronto\",351 => \"/meteo/Arquata+scrivia\",352 => \"/meteo/Arre\",353 => \"/meteo/Arrone\",354 => \"/meteo/Arsago+Seprio\",355 => \"/meteo/Arsie'\",356 => \"/meteo/Arsiero\",357 => \"/meteo/Arsita\",358 => \"/meteo/Arsoli\",359 => \"/meteo/Arta+terme\",360 => \"/meteo/Artegna\",361 => \"/meteo/Artena\",8338 => \"/meteo/Artesina\",362 => \"/meteo/Artogne\",363 => \"/meteo/Arvier\",364 => \"/meteo/Arzachena\",365 => \"/meteo/Arzago+d'Adda\",366 => \"/meteo/Arzana\",367 => \"/meteo/Arzano\",368 => \"/meteo/Arzene\",369 => \"/meteo/Arzergrande\",370 => \"/meteo/Arzignano\",371 => \"/meteo/Ascea\",8513 => \"/meteo/Asciano\",8198 => \"/meteo/Asciano+Pisano\",373 => \"/meteo/Ascoli+piceno\",374 => \"/meteo/Ascoli+satriano\",375 => \"/meteo/Ascrea\",376 => \"/meteo/Asiago\",377 => \"/meteo/Asigliano+Veneto\",378 => \"/meteo/Asigliano+vercellese\",379 => \"/meteo/Asola\",380 => \"/meteo/Asolo\",8438 => \"/meteo/Aspio+terme\",381 => \"/meteo/Assago\",382 => \"/meteo/Assemini\",8488 => \"/meteo/Assergi\",8448 => \"/meteo/Assergi+casello\",383 => \"/meteo/Assisi\",384 => \"/meteo/Asso\",385 => \"/meteo/Assolo\",386 => \"/meteo/Assoro\",387 => \"/meteo/Asti\",388 => \"/meteo/Asuni\",389 => \"/meteo/Ateleta\",8383 => \"/meteo/Atella\",391 => \"/meteo/Atena+lucana\",392 => \"/meteo/Atessa\",393 => \"/meteo/Atina\",394 => \"/meteo/Atrani\",395 => \"/meteo/Atri\",396 => \"/meteo/Atripalda\",397 => \"/meteo/Attigliano\",398 => \"/meteo/Attimis\",399 => \"/meteo/Atzara\",400 => \"/meteo/Auditore\",401 => \"/meteo/Augusta\",402 => \"/meteo/Auletta\",403 => \"/meteo/Aulla\",404 => \"/meteo/Aurano\",405 => \"/meteo/Aurigo\",406 => \"/meteo/Auronzo+di+cadore\",407 => \"/meteo/Ausonia\",408 => \"/meteo/Austis\",409 => \"/meteo/Avegno\",410 => \"/meteo/Avelengo\",411 => \"/meteo/Avella\",412 => \"/meteo/Avellino\",413 => \"/meteo/Averara\",414 => \"/meteo/Aversa\",415 => \"/meteo/Avetrana\",416 => \"/meteo/Avezzano\",417 => \"/meteo/Aviano\",418 => \"/meteo/Aviatico\",419 => \"/meteo/Avigliana\",420 => \"/meteo/Avigliano\",421 => \"/meteo/Avigliano+umbro\",422 => \"/meteo/Avio\",423 => \"/meteo/Avise\",424 => \"/meteo/Avola\",425 => \"/meteo/Avolasca\",426 => \"/meteo/Ayas\",427 => \"/meteo/Aymavilles\",428 => \"/meteo/Azeglio\",429 => \"/meteo/Azzanello\",430 => \"/meteo/Azzano+d'Asti\",431 => \"/meteo/Azzano+decimo\",432 => \"/meteo/Azzano+mella\",433 => \"/meteo/Azzano+San+Paolo\",434 => \"/meteo/Azzate\",435 => \"/meteo/Azzio\",436 => \"/meteo/Azzone\",437 => \"/meteo/Baceno\",438 => \"/meteo/Bacoli\",439 => \"/meteo/Badalucco\",440 => \"/meteo/Badesi\",441 => \"/meteo/Badia\",442 => \"/meteo/Badia+calavena\",443 => \"/meteo/Badia+pavese\",444 => \"/meteo/Badia+polesine\",445 => \"/meteo/Badia+tedalda\",446 => \"/meteo/Badolato\",447 => \"/meteo/Bagaladi\",448 => \"/meteo/Bagheria\",449 => \"/meteo/Bagnacavallo\",450 => \"/meteo/Bagnara+calabra\",451 => \"/meteo/Bagnara+di+romagna\",452 => \"/meteo/Bagnaria\",453 => \"/meteo/Bagnaria+arsa\",454 => \"/meteo/Bagnasco\",455 => \"/meteo/Bagnatica\",456 => \"/meteo/Bagni+di+Lucca\",8699 => \"/meteo/Bagni+di+Vinadio\",457 => \"/meteo/Bagno+a+Ripoli\",458 => \"/meteo/Bagno+di+Romagna\",459 => \"/meteo/Bagnoli+del+Trigno\",460 => \"/meteo/Bagnoli+di+sopra\",461 => \"/meteo/Bagnoli+irpino\",462 => \"/meteo/Bagnolo+cremasco\",463 => \"/meteo/Bagnolo+del+salento\",464 => \"/meteo/Bagnolo+di+po\",465 => \"/meteo/Bagnolo+in+piano\",466 => \"/meteo/Bagnolo+Mella\",467 => \"/meteo/Bagnolo+Piemonte\",468 => \"/meteo/Bagnolo+San+Vito\",469 => \"/meteo/Bagnone\",470 => \"/meteo/Bagnoregio\",471 => \"/meteo/Bagolino\",8123 => \"/meteo/Baia+Domizia\",472 => \"/meteo/Baia+e+Latina\",473 => \"/meteo/Baiano\",474 => \"/meteo/Baiardo\",475 => \"/meteo/Bairo\",476 => \"/meteo/Baiso\",477 => \"/meteo/Balangero\",478 => \"/meteo/Baldichieri+d'Asti\",479 => \"/meteo/Baldissero+canavese\",480 => \"/meteo/Baldissero+d'Alba\",481 => \"/meteo/Baldissero+torinese\",482 => \"/meteo/Balestrate\",483 => \"/meteo/Balestrino\",484 => \"/meteo/Ballabio\",485 => \"/meteo/Ballao\",486 => \"/meteo/Balme\",487 => \"/meteo/Balmuccia\",488 => \"/meteo/Balocco\",489 => \"/meteo/Balsorano\",490 => \"/meteo/Balvano\",491 => \"/meteo/Balzola\",492 => \"/meteo/Banari\",493 => \"/meteo/Banchette\",494 => \"/meteo/Bannio+anzino\",8368 => \"/meteo/Banzi\",496 => \"/meteo/Baone\",497 => \"/meteo/Baradili\",8415 => \"/meteo/Baragiano\",499 => \"/meteo/Baranello\",500 => \"/meteo/Barano+d'Ischia\",501 => \"/meteo/Barasso\",502 => \"/meteo/Baratili+San+Pietro\",503 => \"/meteo/Barbania\",504 => \"/meteo/Barbara\",505 => \"/meteo/Barbarano+romano\",506 => \"/meteo/Barbarano+vicentino\",507 => \"/meteo/Barbaresco\",508 => \"/meteo/Barbariga\",509 => \"/meteo/Barbata\",510 => \"/meteo/Barberino+di+mugello\",511 => \"/meteo/Barberino+val+d'elsa\",512 => \"/meteo/Barbianello\",513 => \"/meteo/Barbiano\",514 => \"/meteo/Barbona\",515 => \"/meteo/Barcellona+pozzo+di+Gotto\",516 => \"/meteo/Barchi\",517 => \"/meteo/Barcis\",518 => \"/meteo/Bard\",519 => \"/meteo/Bardello\",520 => \"/meteo/Bardi\",521 => \"/meteo/Bardineto\",522 => \"/meteo/Bardolino\",523 => \"/meteo/Bardonecchia\",524 => \"/meteo/Bareggio\",525 => \"/meteo/Barengo\",526 => \"/meteo/Baressa\",527 => \"/meteo/Barete\",528 => \"/meteo/Barga\",529 => \"/meteo/Bargagli\",530 => \"/meteo/Barge\",531 => \"/meteo/Barghe\",532 => \"/meteo/Bari\",8274 => \"/meteo/Bari+Palese\",533 => \"/meteo/Bari+sardo\",534 => \"/meteo/Bariano\",535 => \"/meteo/Baricella\",8402 => \"/meteo/Barile\",537 => \"/meteo/Barisciano\",538 => \"/meteo/Barlassina\",539 => \"/meteo/Barletta\",540 => \"/meteo/Barni\",541 => \"/meteo/Barolo\",542 => \"/meteo/Barone+canavese\",543 => \"/meteo/Baronissi\",544 => \"/meteo/Barrafranca\",545 => \"/meteo/Barrali\",546 => \"/meteo/Barrea\",8745 => \"/meteo/Barricata\",547 => \"/meteo/Barumini\",548 => \"/meteo/Barzago\",549 => \"/meteo/Barzana\",550 => \"/meteo/Barzano'\",551 => \"/meteo/Barzio\",552 => \"/meteo/Basaluzzo\",553 => \"/meteo/Bascape'\",554 => \"/meteo/Baschi\",555 => \"/meteo/Basciano\",556 => \"/meteo/Baselga+di+Pine'\",557 => \"/meteo/Baselice\",558 => \"/meteo/Basiano\",559 => \"/meteo/Basico'\",560 => \"/meteo/Basiglio\",561 => \"/meteo/Basiliano\",562 => \"/meteo/Bassano+bresciano\",563 => \"/meteo/Bassano+del+grappa\",564 => \"/meteo/Bassano+in+teverina\",565 => \"/meteo/Bassano+romano\",566 => \"/meteo/Bassiano\",567 => \"/meteo/Bassignana\",568 => \"/meteo/Bastia\",569 => \"/meteo/Bastia+mondovi'\",570 => \"/meteo/Bastida+de'+Dossi\",571 => \"/meteo/Bastida+pancarana\",572 => \"/meteo/Bastiglia\",573 => \"/meteo/Battaglia+terme\",574 => \"/meteo/Battifollo\",575 => \"/meteo/Battipaglia\",576 => \"/meteo/Battuda\",577 => \"/meteo/Baucina\",578 => \"/meteo/Bauladu\",579 => \"/meteo/Baunei\",580 => \"/meteo/Baveno\",581 => \"/meteo/Bazzano\",582 => \"/meteo/Bedero+valcuvia\",583 => \"/meteo/Bedizzole\",584 => \"/meteo/Bedollo\",585 => \"/meteo/Bedonia\",586 => \"/meteo/Bedulita\",587 => \"/meteo/Bee\",588 => \"/meteo/Beinasco\",589 => \"/meteo/Beinette\",590 => \"/meteo/Belcastro\",591 => \"/meteo/Belfiore\",592 => \"/meteo/Belforte+all'Isauro\",593 => \"/meteo/Belforte+del+chienti\",594 => \"/meteo/Belforte+monferrato\",595 => \"/meteo/Belgioioso\",596 => \"/meteo/Belgirate\",597 => \"/meteo/Bella\",598 => \"/meteo/Bellagio\",8263 => \"/meteo/Bellamonte\",599 => \"/meteo/Bellano\",600 => \"/meteo/Bellante\",601 => \"/meteo/Bellaria+Igea+marina\",602 => \"/meteo/Bellegra\",603 => \"/meteo/Bellino\",604 => \"/meteo/Bellinzago+lombardo\",605 => \"/meteo/Bellinzago+novarese\",606 => \"/meteo/Bellizzi\",607 => \"/meteo/Bellona\",608 => \"/meteo/Bellosguardo\",609 => \"/meteo/Belluno\",610 => \"/meteo/Bellusco\",611 => \"/meteo/Belmonte+calabro\",612 => \"/meteo/Belmonte+castello\",613 => \"/meteo/Belmonte+del+sannio\",614 => \"/meteo/Belmonte+in+sabina\",615 => \"/meteo/Belmonte+mezzagno\",616 => \"/meteo/Belmonte+piceno\",617 => \"/meteo/Belpasso\",8573 => \"/meteo/Belpiano+Schoeneben\",618 => \"/meteo/Belsito\",8265 => \"/meteo/Belvedere\",619 => \"/meteo/Belvedere+di+Spinello\",620 => \"/meteo/Belvedere+langhe\",621 => \"/meteo/Belvedere+marittimo\",622 => \"/meteo/Belvedere+ostrense\",623 => \"/meteo/Belveglio\",624 => \"/meteo/Belvi\",625 => \"/meteo/Bema\",626 => \"/meteo/Bene+lario\",627 => \"/meteo/Bene+vagienna\",628 => \"/meteo/Benestare\",629 => \"/meteo/Benetutti\",630 => \"/meteo/Benevello\",631 => \"/meteo/Benevento\",632 => \"/meteo/Benna\",633 => \"/meteo/Bentivoglio\",634 => \"/meteo/Berbenno\",635 => \"/meteo/Berbenno+di+valtellina\",636 => \"/meteo/Berceto\",637 => \"/meteo/Berchidda\",638 => \"/meteo/Beregazzo+con+Figliaro\",639 => \"/meteo/Bereguardo\",640 => \"/meteo/Bergamasco\",641 => \"/meteo/Bergamo\",8519 => \"/meteo/Bergamo+città+alta\",8497 => \"/meteo/Bergamo+Orio+al+Serio\",642 => \"/meteo/Bergantino\",643 => \"/meteo/Bergeggi\",644 => \"/meteo/Bergolo\",645 => \"/meteo/Berlingo\",646 => \"/meteo/Bernalda\",647 => \"/meteo/Bernareggio\",648 => \"/meteo/Bernate+ticino\",649 => \"/meteo/Bernezzo\",650 => \"/meteo/Berra\",651 => \"/meteo/Bersone\",652 => \"/meteo/Bertinoro\",653 => \"/meteo/Bertiolo\",654 => \"/meteo/Bertonico\",655 => \"/meteo/Berzano+di+San+Pietro\",656 => \"/meteo/Berzano+di+Tortona\",657 => \"/meteo/Berzo+Demo\",658 => \"/meteo/Berzo+inferiore\",659 => \"/meteo/Berzo+San+Fermo\",660 => \"/meteo/Besana+in+brianza\",661 => \"/meteo/Besano\",662 => \"/meteo/Besate\",663 => \"/meteo/Besenello\",664 => \"/meteo/Besenzone\",665 => \"/meteo/Besnate\",666 => \"/meteo/Besozzo\",667 => \"/meteo/Bessude\",668 => \"/meteo/Bettola\",669 => \"/meteo/Bettona\",670 => \"/meteo/Beura+Cardezza\",671 => \"/meteo/Bevagna\",672 => \"/meteo/Beverino\",673 => \"/meteo/Bevilacqua\",674 => \"/meteo/Bezzecca\",675 => \"/meteo/Biancavilla\",676 => \"/meteo/Bianchi\",677 => \"/meteo/Bianco\",678 => \"/meteo/Biandrate\",679 => \"/meteo/Biandronno\",680 => \"/meteo/Bianzano\",681 => \"/meteo/Bianze'\",682 => \"/meteo/Bianzone\",683 => \"/meteo/Biassono\",684 => \"/meteo/Bibbiano\",685 => \"/meteo/Bibbiena\",686 => \"/meteo/Bibbona\",687 => \"/meteo/Bibiana\",8230 => \"/meteo/Bibione\",688 => \"/meteo/Biccari\",689 => \"/meteo/Bicinicco\",690 => \"/meteo/Bidoni'\",691 => \"/meteo/Biella\",8163 => \"/meteo/Bielmonte\",692 => \"/meteo/Bienno\",693 => \"/meteo/Bieno\",694 => \"/meteo/Bientina\",695 => \"/meteo/Bigarello\",696 => \"/meteo/Binago\",697 => \"/meteo/Binasco\",698 => \"/meteo/Binetto\",699 => \"/meteo/Bioglio\",700 => \"/meteo/Bionaz\",701 => \"/meteo/Bione\",702 => \"/meteo/Birori\",703 => \"/meteo/Bisaccia\",704 => \"/meteo/Bisacquino\",705 => \"/meteo/Bisceglie\",706 => \"/meteo/Bisegna\",707 => \"/meteo/Bisenti\",708 => \"/meteo/Bisignano\",709 => \"/meteo/Bistagno\",710 => \"/meteo/Bisuschio\",711 => \"/meteo/Bitetto\",712 => \"/meteo/Bitonto\",713 => \"/meteo/Bitritto\",714 => \"/meteo/Bitti\",715 => \"/meteo/Bivona\",716 => \"/meteo/Bivongi\",717 => \"/meteo/Bizzarone\",718 => \"/meteo/Bleggio+inferiore\",719 => \"/meteo/Bleggio+superiore\",720 => \"/meteo/Blello\",721 => \"/meteo/Blera\",722 => \"/meteo/Blessagno\",723 => \"/meteo/Blevio\",724 => \"/meteo/Blufi\",725 => \"/meteo/Boara+Pisani\",726 => \"/meteo/Bobbio\",727 => \"/meteo/Bobbio+Pellice\",728 => \"/meteo/Boca\",8501 => \"/meteo/Bocca+di+Magra\",729 => \"/meteo/Bocchigliero\",730 => \"/meteo/Boccioleto\",731 => \"/meteo/Bocenago\",732 => \"/meteo/Bodio+Lomnago\",733 => \"/meteo/Boffalora+d'Adda\",734 => \"/meteo/Boffalora+sopra+Ticino\",735 => \"/meteo/Bogliasco\",736 => \"/meteo/Bognanco\",8287 => \"/meteo/Bognanco+fonti\",737 => \"/meteo/Bogogno\",738 => \"/meteo/Boissano\",739 => \"/meteo/Bojano\",740 => \"/meteo/Bolano\",741 => \"/meteo/Bolbeno\",742 => \"/meteo/Bolgare\",743 => \"/meteo/Bollate\",744 => \"/meteo/Bollengo\",745 => \"/meteo/Bologna\",8476 => \"/meteo/Bologna+Borgo+Panigale\",746 => \"/meteo/Bolognano\",747 => \"/meteo/Bolognetta\",748 => \"/meteo/Bolognola\",749 => \"/meteo/Bolotana\",750 => \"/meteo/Bolsena\",751 => \"/meteo/Boltiere\",8505 => \"/meteo/Bolzaneto\",752 => \"/meteo/Bolzano\",753 => \"/meteo/Bolzano+novarese\",754 => \"/meteo/Bolzano+vicentino\",755 => \"/meteo/Bomarzo\",756 => \"/meteo/Bomba\",757 => \"/meteo/Bompensiere\",758 => \"/meteo/Bompietro\",759 => \"/meteo/Bomporto\",760 => \"/meteo/Bonarcado\",761 => \"/meteo/Bonassola\",762 => \"/meteo/Bonate+sopra\",763 => \"/meteo/Bonate+sotto\",764 => \"/meteo/Bonavigo\",765 => \"/meteo/Bondeno\",766 => \"/meteo/Bondo\",767 => \"/meteo/Bondone\",768 => \"/meteo/Bonea\",769 => \"/meteo/Bonefro\",770 => \"/meteo/Bonemerse\",771 => \"/meteo/Bonifati\",772 => \"/meteo/Bonito\",773 => \"/meteo/Bonnanaro\",774 => \"/meteo/Bono\",775 => \"/meteo/Bonorva\",776 => \"/meteo/Bonvicino\",777 => \"/meteo/Borbona\",778 => \"/meteo/Borca+di+cadore\",779 => \"/meteo/Bordano\",780 => \"/meteo/Bordighera\",781 => \"/meteo/Bordolano\",782 => \"/meteo/Bore\",783 => \"/meteo/Boretto\",784 => \"/meteo/Borgarello\",785 => \"/meteo/Borgaro+torinese\",786 => \"/meteo/Borgetto\",787 => \"/meteo/Borghetto+d'arroscia\",788 => \"/meteo/Borghetto+di+borbera\",789 => \"/meteo/Borghetto+di+vara\",790 => \"/meteo/Borghetto+lodigiano\",791 => \"/meteo/Borghetto+Santo+Spirito\",792 => \"/meteo/Borghi\",793 => \"/meteo/Borgia\",794 => \"/meteo/Borgiallo\",795 => \"/meteo/Borgio+Verezzi\",796 => \"/meteo/Borgo+a+Mozzano\",797 => \"/meteo/Borgo+d'Ale\",798 => \"/meteo/Borgo+di+Terzo\",8159 => \"/meteo/Borgo+d`Ale\",799 => \"/meteo/Borgo+Pace\",800 => \"/meteo/Borgo+Priolo\",801 => \"/meteo/Borgo+San+Dalmazzo\",802 => \"/meteo/Borgo+San+Giacomo\",803 => \"/meteo/Borgo+San+Giovanni\",804 => \"/meteo/Borgo+San+Lorenzo\",805 => \"/meteo/Borgo+San+Martino\",806 => \"/meteo/Borgo+San+Siro\",807 => \"/meteo/Borgo+Ticino\",808 => \"/meteo/Borgo+Tossignano\",809 => \"/meteo/Borgo+Val+di+Taro\",810 => \"/meteo/Borgo+Valsugana\",811 => \"/meteo/Borgo+Velino\",812 => \"/meteo/Borgo+Vercelli\",813 => \"/meteo/Borgoforte\",814 => \"/meteo/Borgofranco+d'Ivrea\",815 => \"/meteo/Borgofranco+sul+Po\",816 => \"/meteo/Borgolavezzaro\",817 => \"/meteo/Borgomale\",818 => \"/meteo/Borgomanero\",819 => \"/meteo/Borgomaro\",820 => \"/meteo/Borgomasino\",821 => \"/meteo/Borgone+susa\",822 => \"/meteo/Borgonovo+val+tidone\",823 => \"/meteo/Borgoratto+alessandrino\",824 => \"/meteo/Borgoratto+mormorolo\",825 => \"/meteo/Borgoricco\",826 => \"/meteo/Borgorose\",827 => \"/meteo/Borgosatollo\",828 => \"/meteo/Borgosesia\",829 => \"/meteo/Bormida\",830 => \"/meteo/Bormio\",8334 => \"/meteo/Bormio+2000\",8335 => \"/meteo/Bormio+3000\",831 => \"/meteo/Bornasco\",832 => \"/meteo/Borno\",833 => \"/meteo/Boroneddu\",834 => \"/meteo/Borore\",835 => \"/meteo/Borrello\",836 => \"/meteo/Borriana\",837 => \"/meteo/Borso+del+Grappa\",838 => \"/meteo/Bortigali\",839 => \"/meteo/Bortigiadas\",840 => \"/meteo/Borutta\",841 => \"/meteo/Borzonasca\",842 => \"/meteo/Bosa\",843 => \"/meteo/Bosaro\",844 => \"/meteo/Boschi+Sant'Anna\",845 => \"/meteo/Bosco+Chiesanuova\",846 => \"/meteo/Bosco+Marengo\",847 => \"/meteo/Bosconero\",848 => \"/meteo/Boscoreale\",849 => \"/meteo/Boscotrecase\",850 => \"/meteo/Bosentino\",851 => \"/meteo/Bosia\",852 => \"/meteo/Bosio\",853 => \"/meteo/Bosisio+Parini\",854 => \"/meteo/Bosnasco\",855 => \"/meteo/Bossico\",856 => \"/meteo/Bossolasco\",857 => \"/meteo/Botricello\",858 => \"/meteo/Botrugno\",859 => \"/meteo/Bottanuco\",860 => \"/meteo/Botticino\",861 => \"/meteo/Bottidda\",8655 => \"/meteo/Bourg+San+Bernard\",862 => \"/meteo/Bova\",863 => \"/meteo/Bova+marina\",864 => \"/meteo/Bovalino\",865 => \"/meteo/Bovegno\",866 => \"/meteo/Boves\",867 => \"/meteo/Bovezzo\",868 => \"/meteo/Boville+Ernica\",869 => \"/meteo/Bovino\",870 => \"/meteo/Bovisio+Masciago\",871 => \"/meteo/Bovolenta\",872 => \"/meteo/Bovolone\",873 => \"/meteo/Bozzole\",874 => \"/meteo/Bozzolo\",875 => \"/meteo/Bra\",876 => \"/meteo/Bracca\",877 => \"/meteo/Bracciano\",878 => \"/meteo/Bracigliano\",879 => \"/meteo/Braies\",880 => \"/meteo/Brallo+di+Pregola\",881 => \"/meteo/Brancaleone\",882 => \"/meteo/Brandico\",883 => \"/meteo/Brandizzo\",884 => \"/meteo/Branzi\",885 => \"/meteo/Braone\",8740 => \"/meteo/Bratto\",886 => \"/meteo/Brebbia\",887 => \"/meteo/Breda+di+Piave\",888 => \"/meteo/Bregano\",889 => \"/meteo/Breganze\",890 => \"/meteo/Bregnano\",891 => \"/meteo/Breguzzo\",892 => \"/meteo/Breia\",8724 => \"/meteo/Breithorn\",893 => \"/meteo/Brembate\",894 => \"/meteo/Brembate+di+sopra\",895 => \"/meteo/Brembilla\",896 => \"/meteo/Brembio\",897 => \"/meteo/Breme\",898 => \"/meteo/Brendola\",899 => \"/meteo/Brenna\",900 => \"/meteo/Brennero\",901 => \"/meteo/Breno\",902 => \"/meteo/Brenta\",903 => \"/meteo/Brentino+Belluno\",904 => \"/meteo/Brentonico\",905 => \"/meteo/Brenzone\",906 => \"/meteo/Brescello\",907 => \"/meteo/Brescia\",8547 => \"/meteo/Brescia+Montichiari\",908 => \"/meteo/Bresimo\",909 => \"/meteo/Bressana+Bottarone\",910 => \"/meteo/Bressanone\",911 => \"/meteo/Bressanvido\",912 => \"/meteo/Bresso\",8226 => \"/meteo/Breuil-Cervinia\",913 => \"/meteo/Brez\",914 => \"/meteo/Brezzo+di+Bedero\",915 => \"/meteo/Briaglia\",916 => \"/meteo/Briatico\",917 => \"/meteo/Bricherasio\",918 => \"/meteo/Brienno\",919 => \"/meteo/Brienza\",920 => \"/meteo/Briga+alta\",921 => \"/meteo/Briga+novarese\",923 => \"/meteo/Brignano+Frascata\",922 => \"/meteo/Brignano+Gera+d'Adda\",924 => \"/meteo/Brindisi\",8358 => \"/meteo/Brindisi+montagna\",8549 => \"/meteo/Brindisi+Papola+Casale\",926 => \"/meteo/Brinzio\",927 => \"/meteo/Briona\",928 => \"/meteo/Brione\",929 => \"/meteo/Brione\",930 => \"/meteo/Briosco\",931 => \"/meteo/Brisighella\",932 => \"/meteo/Brissago+valtravaglia\",933 => \"/meteo/Brissogne\",934 => \"/meteo/Brittoli\",935 => \"/meteo/Brivio\",936 => \"/meteo/Broccostella\",937 => \"/meteo/Brogliano\",938 => \"/meteo/Brognaturo\",939 => \"/meteo/Brolo\",940 => \"/meteo/Brondello\",941 => \"/meteo/Broni\",942 => \"/meteo/Bronte\",943 => \"/meteo/Bronzolo\",944 => \"/meteo/Brossasco\",945 => \"/meteo/Brosso\",946 => \"/meteo/Brovello+Carpugnino\",947 => \"/meteo/Brozolo\",948 => \"/meteo/Brugherio\",949 => \"/meteo/Brugine\",950 => \"/meteo/Brugnato\",951 => \"/meteo/Brugnera\",952 => \"/meteo/Bruino\",953 => \"/meteo/Brumano\",954 => \"/meteo/Brunate\",955 => \"/meteo/Brunello\",956 => \"/meteo/Brunico\",957 => \"/meteo/Bruno\",958 => \"/meteo/Brusaporto\",959 => \"/meteo/Brusasco\",960 => \"/meteo/Brusciano\",961 => \"/meteo/Brusimpiano\",962 => \"/meteo/Brusnengo\",963 => \"/meteo/Brusson\",8645 => \"/meteo/Brusson+2000+Estoul\",964 => \"/meteo/Bruzolo\",965 => \"/meteo/Bruzzano+Zeffirio\",966 => \"/meteo/Bubbiano\",967 => \"/meteo/Bubbio\",968 => \"/meteo/Buccheri\",969 => \"/meteo/Bucchianico\",970 => \"/meteo/Bucciano\",971 => \"/meteo/Buccinasco\",972 => \"/meteo/Buccino\",973 => \"/meteo/Bucine\",974 => \"/meteo/Budduso'\",975 => \"/meteo/Budoia\",976 => \"/meteo/Budoni\",977 => \"/meteo/Budrio\",978 => \"/meteo/Buggerru\",979 => \"/meteo/Buggiano\",980 => \"/meteo/Buglio+in+Monte\",981 => \"/meteo/Bugnara\",982 => \"/meteo/Buguggiate\",983 => \"/meteo/Buia\",984 => \"/meteo/Bulciago\",985 => \"/meteo/Bulgarograsso\",986 => \"/meteo/Bultei\",987 => \"/meteo/Bulzi\",988 => \"/meteo/Buonabitacolo\",989 => \"/meteo/Buonalbergo\",990 => \"/meteo/Buonconvento\",991 => \"/meteo/Buonvicino\",992 => \"/meteo/Burago+di+Molgora\",993 => \"/meteo/Burcei\",994 => \"/meteo/Burgio\",995 => \"/meteo/Burgos\",996 => \"/meteo/Buriasco\",997 => \"/meteo/Burolo\",998 => \"/meteo/Buronzo\",8483 => \"/meteo/Burrino\",999 => \"/meteo/Busachi\",1000 => \"/meteo/Busalla\",1001 => \"/meteo/Busana\",1002 => \"/meteo/Busano\",1003 => \"/meteo/Busca\",1004 => \"/meteo/Buscate\",1005 => \"/meteo/Buscemi\",1006 => \"/meteo/Buseto+Palizzolo\",1007 => \"/meteo/Busnago\",1008 => \"/meteo/Bussero\",1009 => \"/meteo/Busseto\",1010 => \"/meteo/Bussi+sul+Tirino\",1011 => \"/meteo/Busso\",1012 => \"/meteo/Bussolengo\",1013 => \"/meteo/Bussoleno\",1014 => \"/meteo/Busto+Arsizio\",1015 => \"/meteo/Busto+Garolfo\",1016 => \"/meteo/Butera\",1017 => \"/meteo/Buti\",1018 => \"/meteo/Buttapietra\",1019 => \"/meteo/Buttigliera+alta\",1020 => \"/meteo/Buttigliera+d'Asti\",1021 => \"/meteo/Buttrio\",1022 => \"/meteo/Ca'+d'Andrea\",1023 => \"/meteo/Cabella+ligure\",1024 => \"/meteo/Cabiate\",1025 => \"/meteo/Cabras\",1026 => \"/meteo/Caccamo\",1027 => \"/meteo/Caccuri\",1028 => \"/meteo/Cadegliano+Viconago\",1029 => \"/meteo/Cadelbosco+di+sopra\",1030 => \"/meteo/Cadeo\",1031 => \"/meteo/Caderzone\",8566 => \"/meteo/Cadipietra\",1032 => \"/meteo/Cadoneghe\",1033 => \"/meteo/Cadorago\",1034 => \"/meteo/Cadrezzate\",1035 => \"/meteo/Caerano+di+San+Marco\",1036 => \"/meteo/Cafasse\",1037 => \"/meteo/Caggiano\",1038 => \"/meteo/Cagli\",1039 => \"/meteo/Cagliari\",8500 => \"/meteo/Cagliari+Elmas\",1040 => \"/meteo/Caglio\",1041 => \"/meteo/Cagnano+Amiterno\",1042 => \"/meteo/Cagnano+Varano\",1043 => \"/meteo/Cagno\",1044 => \"/meteo/Cagno'\",1045 => \"/meteo/Caianello\",1046 => \"/meteo/Caiazzo\",1047 => \"/meteo/Caines\",1048 => \"/meteo/Caino\",1049 => \"/meteo/Caiolo\",1050 => \"/meteo/Cairano\",1051 => \"/meteo/Cairate\",1052 => \"/meteo/Cairo+Montenotte\",1053 => \"/meteo/Caivano\",8168 => \"/meteo/Cala+Gonone\",1054 => \"/meteo/Calabritto\",1055 => \"/meteo/Calalzo+di+cadore\",1056 => \"/meteo/Calamandrana\",1057 => \"/meteo/Calamonaci\",1058 => \"/meteo/Calangianus\",1059 => \"/meteo/Calanna\",1060 => \"/meteo/Calasca+Castiglione\",1061 => \"/meteo/Calascibetta\",1062 => \"/meteo/Calascio\",1063 => \"/meteo/Calasetta\",1064 => \"/meteo/Calatabiano\",1065 => \"/meteo/Calatafimi\",1066 => \"/meteo/Calavino\",1067 => \"/meteo/Calcata\",1068 => \"/meteo/Calceranica+al+lago\",1069 => \"/meteo/Calci\",8424 => \"/meteo/Calciano\",1071 => \"/meteo/Calcinaia\",1072 => \"/meteo/Calcinate\",1073 => \"/meteo/Calcinato\",1074 => \"/meteo/Calcio\",1075 => \"/meteo/Calco\",1076 => \"/meteo/Caldaro+sulla+strada+del+vino\",1077 => \"/meteo/Caldarola\",1078 => \"/meteo/Calderara+di+Reno\",1079 => \"/meteo/Caldes\",1080 => \"/meteo/Caldiero\",1081 => \"/meteo/Caldogno\",1082 => \"/meteo/Caldonazzo\",1083 => \"/meteo/Calendasco\",8614 => \"/meteo/Calenella\",1084 => \"/meteo/Calenzano\",1085 => \"/meteo/Calestano\",1086 => \"/meteo/Calice+al+Cornoviglio\",1087 => \"/meteo/Calice+ligure\",8692 => \"/meteo/California+di+Lesmo\",1088 => \"/meteo/Calimera\",1089 => \"/meteo/Calitri\",1090 => \"/meteo/Calizzano\",1091 => \"/meteo/Callabiana\",1092 => \"/meteo/Calliano\",1093 => \"/meteo/Calliano\",1094 => \"/meteo/Calolziocorte\",1095 => \"/meteo/Calopezzati\",1096 => \"/meteo/Calosso\",1097 => \"/meteo/Caloveto\",1098 => \"/meteo/Caltabellotta\",1099 => \"/meteo/Caltagirone\",1100 => \"/meteo/Caltanissetta\",1101 => \"/meteo/Caltavuturo\",1102 => \"/meteo/Caltignaga\",1103 => \"/meteo/Calto\",1104 => \"/meteo/Caltrano\",1105 => \"/meteo/Calusco+d'Adda\",1106 => \"/meteo/Caluso\",1107 => \"/meteo/Calvagese+della+Riviera\",1108 => \"/meteo/Calvanico\",1109 => \"/meteo/Calvatone\",8406 => \"/meteo/Calvello\",1111 => \"/meteo/Calvene\",1112 => \"/meteo/Calvenzano\",8373 => \"/meteo/Calvera\",1114 => \"/meteo/Calvi\",1115 => \"/meteo/Calvi+dell'Umbria\",1116 => \"/meteo/Calvi+risorta\",1117 => \"/meteo/Calvignano\",1118 => \"/meteo/Calvignasco\",1119 => \"/meteo/Calvisano\",1120 => \"/meteo/Calvizzano\",1121 => \"/meteo/Camagna+monferrato\",1122 => \"/meteo/Camaiore\",1123 => \"/meteo/Camairago\",1124 => \"/meteo/Camandona\",1125 => \"/meteo/Camastra\",1126 => \"/meteo/Cambiago\",1127 => \"/meteo/Cambiano\",1128 => \"/meteo/Cambiasca\",1129 => \"/meteo/Camburzano\",1130 => \"/meteo/Camerana\",1131 => \"/meteo/Camerano\",1132 => \"/meteo/Camerano+Casasco\",1133 => \"/meteo/Camerata+Cornello\",1134 => \"/meteo/Camerata+Nuova\",1135 => \"/meteo/Camerata+picena\",1136 => \"/meteo/Cameri\",1137 => \"/meteo/Camerino\",1138 => \"/meteo/Camerota\",1139 => \"/meteo/Camigliano\",8119 => \"/meteo/Camigliatello+silano\",1140 => \"/meteo/Caminata\",1141 => \"/meteo/Camini\",1142 => \"/meteo/Camino\",1143 => \"/meteo/Camino+al+Tagliamento\",1144 => \"/meteo/Camisano\",1145 => \"/meteo/Camisano+vicentino\",1146 => \"/meteo/Cammarata\",1147 => \"/meteo/Camo\",1148 => \"/meteo/Camogli\",1149 => \"/meteo/Campagna\",1150 => \"/meteo/Campagna+Lupia\",1151 => \"/meteo/Campagnano+di+Roma\",1152 => \"/meteo/Campagnatico\",1153 => \"/meteo/Campagnola+cremasca\",1154 => \"/meteo/Campagnola+emilia\",1155 => \"/meteo/Campana\",1156 => \"/meteo/Camparada\",1157 => \"/meteo/Campegine\",1158 => \"/meteo/Campello+sul+Clitunno\",1159 => \"/meteo/Campertogno\",1160 => \"/meteo/Campi+Bisenzio\",1161 => \"/meteo/Campi+salentina\",1162 => \"/meteo/Campiglia+cervo\",1163 => \"/meteo/Campiglia+dei+Berici\",1164 => \"/meteo/Campiglia+marittima\",1165 => \"/meteo/Campiglione+Fenile\",8127 => \"/meteo/Campigna\",1166 => \"/meteo/Campione+d'Italia\",1167 => \"/meteo/Campitello+di+Fassa\",8155 => \"/meteo/Campitello+matese\",1168 => \"/meteo/Campli\",1169 => \"/meteo/Campo+calabro\",8754 => \"/meteo/Campo+Carlo+Magno\",8134 => \"/meteo/Campo+Catino\",8610 => \"/meteo/Campo+Cecina\",1170 => \"/meteo/Campo+di+Giove\",1171 => \"/meteo/Campo+di+Trens\",8345 => \"/meteo/Campo+Felice\",8101 => \"/meteo/Campo+imperatore\",1172 => \"/meteo/Campo+ligure\",1173 => \"/meteo/Campo+nell'Elba\",1174 => \"/meteo/Campo+San+Martino\",8135 => \"/meteo/Campo+Staffi\",8644 => \"/meteo/Campo+Tenese\",1175 => \"/meteo/Campo+Tures\",1176 => \"/meteo/Campobasso\",1177 => \"/meteo/Campobello+di+Licata\",1178 => \"/meteo/Campobello+di+Mazara\",1179 => \"/meteo/Campochiaro\",1180 => \"/meteo/Campodarsego\",1181 => \"/meteo/Campodenno\",8357 => \"/meteo/Campodimele\",1183 => \"/meteo/Campodipietra\",1184 => \"/meteo/Campodolcino\",1185 => \"/meteo/Campodoro\",1186 => \"/meteo/Campofelice+di+Fitalia\",1187 => \"/meteo/Campofelice+di+Roccella\",1188 => \"/meteo/Campofilone\",1189 => \"/meteo/Campofiorito\",1190 => \"/meteo/Campoformido\",1191 => \"/meteo/Campofranco\",1192 => \"/meteo/Campogalliano\",1193 => \"/meteo/Campolattaro\",1194 => \"/meteo/Campoli+Appennino\",1195 => \"/meteo/Campoli+del+Monte+Taburno\",1196 => \"/meteo/Campolieto\",1197 => \"/meteo/Campolongo+al+Torre\",1198 => \"/meteo/Campolongo+Maggiore\",1199 => \"/meteo/Campolongo+sul+Brenta\",8391 => \"/meteo/Campomaggiore\",1201 => \"/meteo/Campomarino\",1202 => \"/meteo/Campomorone\",1203 => \"/meteo/Camponogara\",1204 => \"/meteo/Campora\",1205 => \"/meteo/Camporeale\",1206 => \"/meteo/Camporgiano\",1207 => \"/meteo/Camporosso\",1208 => \"/meteo/Camporotondo+di+Fiastrone\",1209 => \"/meteo/Camporotondo+etneo\",1210 => \"/meteo/Camposampiero\",1211 => \"/meteo/Camposano\",1212 => \"/meteo/Camposanto\",1213 => \"/meteo/Campospinoso\",1214 => \"/meteo/Campotosto\",1215 => \"/meteo/Camugnano\",1216 => \"/meteo/Canal+San+Bovo\",1217 => \"/meteo/Canale\",1218 => \"/meteo/Canale+d'Agordo\",1219 => \"/meteo/Canale+Monterano\",1220 => \"/meteo/Canaro\",1221 => \"/meteo/Canazei\",8407 => \"/meteo/Cancellara\",1223 => \"/meteo/Cancello+ed+Arnone\",1224 => \"/meteo/Canda\",1225 => \"/meteo/Candela\",8468 => \"/meteo/Candela+casello\",1226 => \"/meteo/Candelo\",1227 => \"/meteo/Candia+canavese\",1228 => \"/meteo/Candia+lomellina\",1229 => \"/meteo/Candiana\",1230 => \"/meteo/Candida\",1231 => \"/meteo/Candidoni\",1232 => \"/meteo/Candiolo\",1233 => \"/meteo/Canegrate\",1234 => \"/meteo/Canelli\",1235 => \"/meteo/Canepina\",1236 => \"/meteo/Caneva\",8562 => \"/meteo/Canevare+di+Fanano\",1237 => \"/meteo/Canevino\",1238 => \"/meteo/Canicatti'\",1239 => \"/meteo/Canicattini+Bagni\",1240 => \"/meteo/Canino\",1241 => \"/meteo/Canischio\",1242 => \"/meteo/Canistro\",1243 => \"/meteo/Canna\",1244 => \"/meteo/Cannalonga\",1245 => \"/meteo/Cannara\",1246 => \"/meteo/Cannero+riviera\",1247 => \"/meteo/Canneto+pavese\",1248 => \"/meteo/Canneto+sull'Oglio\",8588 => \"/meteo/Cannigione\",1249 => \"/meteo/Cannobio\",1250 => \"/meteo/Cannole\",1251 => \"/meteo/Canolo\",1252 => \"/meteo/Canonica+d'Adda\",1253 => \"/meteo/Canosa+di+Puglia\",1254 => \"/meteo/Canosa+sannita\",1255 => \"/meteo/Canosio\",1256 => \"/meteo/Canossa\",1257 => \"/meteo/Cansano\",1258 => \"/meteo/Cantagallo\",1259 => \"/meteo/Cantalice\",1260 => \"/meteo/Cantalupa\",1261 => \"/meteo/Cantalupo+in+Sabina\",1262 => \"/meteo/Cantalupo+ligure\",1263 => \"/meteo/Cantalupo+nel+Sannio\",1264 => \"/meteo/Cantarana\",1265 => \"/meteo/Cantello\",1266 => \"/meteo/Canterano\",1267 => \"/meteo/Cantiano\",1268 => \"/meteo/Cantoira\",1269 => \"/meteo/Cantu'\",1270 => \"/meteo/Canzano\",1271 => \"/meteo/Canzo\",1272 => \"/meteo/Caorle\",1273 => \"/meteo/Caorso\",1274 => \"/meteo/Capaccio\",1275 => \"/meteo/Capaci\",1276 => \"/meteo/Capalbio\",8242 => \"/meteo/Capanna+Margherita\",8297 => \"/meteo/Capanne+di+Sillano\",1277 => \"/meteo/Capannoli\",1278 => \"/meteo/Capannori\",1279 => \"/meteo/Capena\",1280 => \"/meteo/Capergnanica\",1281 => \"/meteo/Capestrano\",1282 => \"/meteo/Capiago+Intimiano\",1283 => \"/meteo/Capistrano\",1284 => \"/meteo/Capistrello\",1285 => \"/meteo/Capitignano\",1286 => \"/meteo/Capizzi\",1287 => \"/meteo/Capizzone\",8609 => \"/meteo/Capo+Bellavista\",8113 => \"/meteo/Capo+Colonna\",1288 => \"/meteo/Capo+d'Orlando\",1289 => \"/meteo/Capo+di+Ponte\",8676 => \"/meteo/Capo+Mele\",8607 => \"/meteo/Capo+Palinuro\",8112 => \"/meteo/Capo+Rizzuto\",1290 => \"/meteo/Capodimonte\",1291 => \"/meteo/Capodrise\",1292 => \"/meteo/Capoliveri\",1293 => \"/meteo/Capolona\",1294 => \"/meteo/Caponago\",1295 => \"/meteo/Caporciano\",1296 => \"/meteo/Caposele\",1297 => \"/meteo/Capoterra\",1298 => \"/meteo/Capovalle\",1299 => \"/meteo/Cappadocia\",1300 => \"/meteo/Cappella+Cantone\",1301 => \"/meteo/Cappella+de'+Picenardi\",1302 => \"/meteo/Cappella+Maggiore\",1303 => \"/meteo/Cappelle+sul+Tavo\",1304 => \"/meteo/Capracotta\",1305 => \"/meteo/Capraia+e+Limite\",1306 => \"/meteo/Capraia+isola\",1307 => \"/meteo/Capralba\",1308 => \"/meteo/Capranica\",1309 => \"/meteo/Capranica+Prenestina\",1310 => \"/meteo/Caprarica+di+Lecce\",1311 => \"/meteo/Caprarola\",1312 => \"/meteo/Caprauna\",1313 => \"/meteo/Caprese+Michelangelo\",1314 => \"/meteo/Caprezzo\",1315 => \"/meteo/Capri\",1316 => \"/meteo/Capri+Leone\",1317 => \"/meteo/Capriana\",1318 => \"/meteo/Capriano+del+Colle\",1319 => \"/meteo/Capriata+d'Orba\",1320 => \"/meteo/Capriate+San+Gervasio\",1321 => \"/meteo/Capriati+a+Volturno\",1322 => \"/meteo/Caprie\",1323 => \"/meteo/Capriglia+irpina\",1324 => \"/meteo/Capriglio\",1325 => \"/meteo/Caprile\",1326 => \"/meteo/Caprino+bergamasco\",1327 => \"/meteo/Caprino+veronese\",1328 => \"/meteo/Capriolo\",1329 => \"/meteo/Capriva+del+Friuli\",1330 => \"/meteo/Capua\",1331 => \"/meteo/Capurso\",1332 => \"/meteo/Caraffa+del+Bianco\",1333 => \"/meteo/Caraffa+di+Catanzaro\",1334 => \"/meteo/Caraglio\",1335 => \"/meteo/Caramagna+Piemonte\",1336 => \"/meteo/Caramanico+terme\",1337 => \"/meteo/Carano\",1338 => \"/meteo/Carapelle\",1339 => \"/meteo/Carapelle+Calvisio\",1340 => \"/meteo/Carasco\",1341 => \"/meteo/Carassai\",1342 => \"/meteo/Carate+brianza\",1343 => \"/meteo/Carate+Urio\",1344 => \"/meteo/Caravaggio\",1345 => \"/meteo/Caravate\",1346 => \"/meteo/Caravino\",1347 => \"/meteo/Caravonica\",1348 => \"/meteo/Carbognano\",1349 => \"/meteo/Carbonara+al+Ticino\",1350 => \"/meteo/Carbonara+di+Nola\",1351 => \"/meteo/Carbonara+di+Po\",1352 => \"/meteo/Carbonara+Scrivia\",1353 => \"/meteo/Carbonate\",8374 => \"/meteo/Carbone\",1355 => \"/meteo/Carbonera\",1356 => \"/meteo/Carbonia\",1357 => \"/meteo/Carcare\",1358 => \"/meteo/Carceri\",1359 => \"/meteo/Carcoforo\",1360 => \"/meteo/Cardano+al+Campo\",1361 => \"/meteo/Carde'\",1362 => \"/meteo/Cardedu\",1363 => \"/meteo/Cardeto\",1364 => \"/meteo/Cardinale\",1365 => \"/meteo/Cardito\",1366 => \"/meteo/Careggine\",1367 => \"/meteo/Carema\",1368 => \"/meteo/Carenno\",1369 => \"/meteo/Carentino\",1370 => \"/meteo/Careri\",1371 => \"/meteo/Caresana\",1372 => \"/meteo/Caresanablot\",8625 => \"/meteo/Carezza+al+lago\",1373 => \"/meteo/Carezzano\",1374 => \"/meteo/Carfizzi\",1375 => \"/meteo/Cargeghe\",1376 => \"/meteo/Cariati\",1377 => \"/meteo/Carife\",1378 => \"/meteo/Carignano\",1379 => \"/meteo/Carimate\",1380 => \"/meteo/Carinaro\",1381 => \"/meteo/Carini\",1382 => \"/meteo/Carinola\",1383 => \"/meteo/Carisio\",1384 => \"/meteo/Carisolo\",1385 => \"/meteo/Carlantino\",1386 => \"/meteo/Carlazzo\",1387 => \"/meteo/Carlentini\",1388 => \"/meteo/Carlino\",1389 => \"/meteo/Carloforte\",1390 => \"/meteo/Carlopoli\",1391 => \"/meteo/Carmagnola\",1392 => \"/meteo/Carmiano\",1393 => \"/meteo/Carmignano\",1394 => \"/meteo/Carmignano+di+Brenta\",1395 => \"/meteo/Carnago\",1396 => \"/meteo/Carnate\",1397 => \"/meteo/Carobbio+degli+Angeli\",1398 => \"/meteo/Carolei\",1399 => \"/meteo/Carona\",8541 => \"/meteo/Carona+Carisole\",1400 => \"/meteo/Caronia\",1401 => \"/meteo/Caronno+Pertusella\",1402 => \"/meteo/Caronno+varesino\",8253 => \"/meteo/Carosello+3000\",1403 => \"/meteo/Carosino\",1404 => \"/meteo/Carovigno\",1405 => \"/meteo/Carovilli\",1406 => \"/meteo/Carpaneto+piacentino\",1407 => \"/meteo/Carpanzano\",1408 => \"/meteo/Carpasio\",1409 => \"/meteo/Carpegna\",1410 => \"/meteo/Carpenedolo\",1411 => \"/meteo/Carpeneto\",1412 => \"/meteo/Carpi\",1413 => \"/meteo/Carpiano\",1414 => \"/meteo/Carpignano+salentino\",1415 => \"/meteo/Carpignano+Sesia\",1416 => \"/meteo/Carpineti\",1417 => \"/meteo/Carpineto+della+Nora\",1418 => \"/meteo/Carpineto+romano\",1419 => \"/meteo/Carpineto+Sinello\",1420 => \"/meteo/Carpino\",1421 => \"/meteo/Carpinone\",1422 => \"/meteo/Carrara\",1423 => \"/meteo/Carre'\",1424 => \"/meteo/Carrega+ligure\",1425 => \"/meteo/Carro\",1426 => \"/meteo/Carrodano\",1427 => \"/meteo/Carrosio\",1428 => \"/meteo/Carru'\",1429 => \"/meteo/Carsoli\",1430 => \"/meteo/Cartigliano\",1431 => \"/meteo/Cartignano\",1432 => \"/meteo/Cartoceto\",1433 => \"/meteo/Cartosio\",1434 => \"/meteo/Cartura\",1435 => \"/meteo/Carugate\",1436 => \"/meteo/Carugo\",1437 => \"/meteo/Carunchio\",1438 => \"/meteo/Carvico\",1439 => \"/meteo/Carzano\",1440 => \"/meteo/Casabona\",1441 => \"/meteo/Casacalenda\",1442 => \"/meteo/Casacanditella\",1443 => \"/meteo/Casagiove\",1444 => \"/meteo/Casal+Cermelli\",1445 => \"/meteo/Casal+di+Principe\",1446 => \"/meteo/Casal+Velino\",1447 => \"/meteo/Casalanguida\",1448 => \"/meteo/Casalattico\",8648 => \"/meteo/Casalavera\",1449 => \"/meteo/Casalbeltrame\",1450 => \"/meteo/Casalbordino\",1451 => \"/meteo/Casalbore\",1452 => \"/meteo/Casalborgone\",1453 => \"/meteo/Casalbuono\",1454 => \"/meteo/Casalbuttano+ed+Uniti\",1455 => \"/meteo/Casalciprano\",1456 => \"/meteo/Casalduni\",1457 => \"/meteo/Casale+Corte+Cerro\",1458 => \"/meteo/Casale+cremasco+Vidolasco\",1459 => \"/meteo/Casale+di+Scodosia\",1460 => \"/meteo/Casale+Litta\",1461 => \"/meteo/Casale+marittimo\",1462 => \"/meteo/Casale+monferrato\",1463 => \"/meteo/Casale+sul+Sile\",1464 => \"/meteo/Casalecchio+di+Reno\",1465 => \"/meteo/Casaleggio+Boiro\",1466 => \"/meteo/Casaleggio+Novara\",1467 => \"/meteo/Casaleone\",1468 => \"/meteo/Casaletto+Ceredano\",1469 => \"/meteo/Casaletto+di+sopra\",1470 => \"/meteo/Casaletto+lodigiano\",1471 => \"/meteo/Casaletto+Spartano\",1472 => \"/meteo/Casaletto+Vaprio\",1473 => \"/meteo/Casalfiumanese\",1474 => \"/meteo/Casalgrande\",1475 => \"/meteo/Casalgrasso\",1476 => \"/meteo/Casalincontrada\",1477 => \"/meteo/Casalino\",1478 => \"/meteo/Casalmaggiore\",1479 => \"/meteo/Casalmaiocco\",1480 => \"/meteo/Casalmorano\",1481 => \"/meteo/Casalmoro\",1482 => \"/meteo/Casalnoceto\",1483 => \"/meteo/Casalnuovo+di+Napoli\",1484 => \"/meteo/Casalnuovo+Monterotaro\",1485 => \"/meteo/Casaloldo\",1486 => \"/meteo/Casalpusterlengo\",1487 => \"/meteo/Casalromano\",1488 => \"/meteo/Casalserugo\",1489 => \"/meteo/Casaluce\",1490 => \"/meteo/Casalvecchio+di+Puglia\",1491 => \"/meteo/Casalvecchio+siculo\",1492 => \"/meteo/Casalvieri\",1493 => \"/meteo/Casalvolone\",1494 => \"/meteo/Casalzuigno\",1495 => \"/meteo/Casamarciano\",1496 => \"/meteo/Casamassima\",1497 => \"/meteo/Casamicciola+terme\",1498 => \"/meteo/Casandrino\",1499 => \"/meteo/Casanova+Elvo\",1500 => \"/meteo/Casanova+Lerrone\",1501 => \"/meteo/Casanova+Lonati\",1502 => \"/meteo/Casape\",1503 => \"/meteo/Casapesenna\",1504 => \"/meteo/Casapinta\",1505 => \"/meteo/Casaprota\",1506 => \"/meteo/Casapulla\",1507 => \"/meteo/Casarano\",1508 => \"/meteo/Casargo\",1509 => \"/meteo/Casarile\",1510 => \"/meteo/Casarsa+della+Delizia\",1511 => \"/meteo/Casarza+ligure\",1512 => \"/meteo/Casasco\",1513 => \"/meteo/Casasco+d'Intelvi\",1514 => \"/meteo/Casatenovo\",1515 => \"/meteo/Casatisma\",1516 => \"/meteo/Casavatore\",1517 => \"/meteo/Casazza\",8160 => \"/meteo/Cascate+del+Toce\",1518 => \"/meteo/Cascia\",1519 => \"/meteo/Casciago\",1520 => \"/meteo/Casciana+terme\",1521 => \"/meteo/Cascina\",1522 => \"/meteo/Cascinette+d'Ivrea\",1523 => \"/meteo/Casei+Gerola\",1524 => \"/meteo/Caselette\",1525 => \"/meteo/Casella\",1526 => \"/meteo/Caselle+in+Pittari\",1527 => \"/meteo/Caselle+Landi\",1528 => \"/meteo/Caselle+Lurani\",1529 => \"/meteo/Caselle+torinese\",1530 => \"/meteo/Caserta\",1531 => \"/meteo/Casier\",1532 => \"/meteo/Casignana\",1533 => \"/meteo/Casina\",1534 => \"/meteo/Casirate+d'Adda\",1535 => \"/meteo/Caslino+d'Erba\",1536 => \"/meteo/Casnate+con+Bernate\",1537 => \"/meteo/Casnigo\",1538 => \"/meteo/Casola+di+Napoli\",1539 => \"/meteo/Casola+in+lunigiana\",1540 => \"/meteo/Casola+valsenio\",1541 => \"/meteo/Casole+Bruzio\",1542 => \"/meteo/Casole+d'Elsa\",1543 => \"/meteo/Casoli\",1544 => \"/meteo/Casorate+Primo\",1545 => \"/meteo/Casorate+Sempione\",1546 => \"/meteo/Casorezzo\",1547 => \"/meteo/Casoria\",1548 => \"/meteo/Casorzo\",1549 => \"/meteo/Casperia\",1550 => \"/meteo/Caspoggio\",1551 => \"/meteo/Cassacco\",1552 => \"/meteo/Cassago+brianza\",1553 => \"/meteo/Cassano+allo+Ionio\",1554 => \"/meteo/Cassano+d'Adda\",1555 => \"/meteo/Cassano+delle+murge\",1556 => \"/meteo/Cassano+irpino\",1557 => \"/meteo/Cassano+Magnago\",1558 => \"/meteo/Cassano+Spinola\",1559 => \"/meteo/Cassano+valcuvia\",1560 => \"/meteo/Cassaro\",1561 => \"/meteo/Cassiglio\",1562 => \"/meteo/Cassina+de'+Pecchi\",1563 => \"/meteo/Cassina+Rizzardi\",1564 => \"/meteo/Cassina+valsassina\",1565 => \"/meteo/Cassinasco\",1566 => \"/meteo/Cassine\",1567 => \"/meteo/Cassinelle\",1568 => \"/meteo/Cassinetta+di+Lugagnano\",1569 => \"/meteo/Cassino\",1570 => \"/meteo/Cassola\",1571 => \"/meteo/Cassolnovo\",1572 => \"/meteo/Castagnaro\",1573 => \"/meteo/Castagneto+Carducci\",1574 => \"/meteo/Castagneto+po\",1575 => \"/meteo/Castagnito\",1576 => \"/meteo/Castagnole+delle+Lanze\",1577 => \"/meteo/Castagnole+monferrato\",1578 => \"/meteo/Castagnole+Piemonte\",1579 => \"/meteo/Castana\",1580 => \"/meteo/Castano+Primo\",1581 => \"/meteo/Casteggio\",1582 => \"/meteo/Castegnato\",1583 => \"/meteo/Castegnero\",1584 => \"/meteo/Castel+Baronia\",1585 => \"/meteo/Castel+Boglione\",1586 => \"/meteo/Castel+bolognese\",1587 => \"/meteo/Castel+Campagnano\",1588 => \"/meteo/Castel+Castagna\",1589 => \"/meteo/Castel+Colonna\",1590 => \"/meteo/Castel+Condino\",1591 => \"/meteo/Castel+d'Aiano\",1592 => \"/meteo/Castel+d'Ario\",1593 => \"/meteo/Castel+d'Azzano\",1594 => \"/meteo/Castel+del+Giudice\",1595 => \"/meteo/Castel+del+monte\",1596 => \"/meteo/Castel+del+piano\",1597 => \"/meteo/Castel+del+rio\",1598 => \"/meteo/Castel+di+Casio\",1599 => \"/meteo/Castel+di+Ieri\",1600 => \"/meteo/Castel+di+Iudica\",1601 => \"/meteo/Castel+di+Lama\",1602 => \"/meteo/Castel+di+Lucio\",1603 => \"/meteo/Castel+di+Sangro\",1604 => \"/meteo/Castel+di+Sasso\",1605 => \"/meteo/Castel+di+Tora\",1606 => \"/meteo/Castel+Focognano\",1607 => \"/meteo/Castel+frentano\",1608 => \"/meteo/Castel+Gabbiano\",1609 => \"/meteo/Castel+Gandolfo\",1610 => \"/meteo/Castel+Giorgio\",1611 => \"/meteo/Castel+Goffredo\",1612 => \"/meteo/Castel+Guelfo+di+Bologna\",1613 => \"/meteo/Castel+Madama\",1614 => \"/meteo/Castel+Maggiore\",1615 => \"/meteo/Castel+Mella\",1616 => \"/meteo/Castel+Morrone\",1617 => \"/meteo/Castel+Ritaldi\",1618 => \"/meteo/Castel+Rocchero\",1619 => \"/meteo/Castel+Rozzone\",1620 => \"/meteo/Castel+San+Giorgio\",1621 => \"/meteo/Castel+San+Giovanni\",1622 => \"/meteo/Castel+San+Lorenzo\",1623 => \"/meteo/Castel+San+Niccolo'\",1624 => \"/meteo/Castel+San+Pietro+romano\",1625 => \"/meteo/Castel+San+Pietro+terme\",1626 => \"/meteo/Castel+San+Vincenzo\",1627 => \"/meteo/Castel+Sant'Angelo\",1628 => \"/meteo/Castel+Sant'Elia\",1629 => \"/meteo/Castel+Viscardo\",1630 => \"/meteo/Castel+Vittorio\",1631 => \"/meteo/Castel+volturno\",1632 => \"/meteo/Castelbaldo\",1633 => \"/meteo/Castelbelforte\",1634 => \"/meteo/Castelbellino\",1635 => \"/meteo/Castelbello+Ciardes\",1636 => \"/meteo/Castelbianco\",1637 => \"/meteo/Castelbottaccio\",1638 => \"/meteo/Castelbuono\",1639 => \"/meteo/Castelcivita\",1640 => \"/meteo/Castelcovati\",1641 => \"/meteo/Castelcucco\",1642 => \"/meteo/Casteldaccia\",1643 => \"/meteo/Casteldelci\",1644 => \"/meteo/Casteldelfino\",1645 => \"/meteo/Casteldidone\",1646 => \"/meteo/Castelfidardo\",1647 => \"/meteo/Castelfiorentino\",1648 => \"/meteo/Castelfondo\",1649 => \"/meteo/Castelforte\",1650 => \"/meteo/Castelfranci\",1651 => \"/meteo/Castelfranco+di+sopra\",1652 => \"/meteo/Castelfranco+di+sotto\",1653 => \"/meteo/Castelfranco+Emilia\",1654 => \"/meteo/Castelfranco+in+Miscano\",1655 => \"/meteo/Castelfranco+Veneto\",1656 => \"/meteo/Castelgomberto\",8385 => \"/meteo/Castelgrande\",1658 => \"/meteo/Castelguglielmo\",1659 => \"/meteo/Castelguidone\",1660 => \"/meteo/Castell'alfero\",1661 => \"/meteo/Castell'arquato\",1662 => \"/meteo/Castell'azzara\",1663 => \"/meteo/Castell'umberto\",1664 => \"/meteo/Castellabate\",1665 => \"/meteo/Castellafiume\",1666 => \"/meteo/Castellalto\",1667 => \"/meteo/Castellammare+del+Golfo\",1668 => \"/meteo/Castellammare+di+Stabia\",1669 => \"/meteo/Castellamonte\",1670 => \"/meteo/Castellana+Grotte\",1671 => \"/meteo/Castellana+sicula\",1672 => \"/meteo/Castellaneta\",1673 => \"/meteo/Castellania\",1674 => \"/meteo/Castellanza\",1675 => \"/meteo/Castellar\",1676 => \"/meteo/Castellar+Guidobono\",1677 => \"/meteo/Castellarano\",1678 => \"/meteo/Castellaro\",1679 => \"/meteo/Castellazzo+Bormida\",1680 => \"/meteo/Castellazzo+novarese\",1681 => \"/meteo/Castelleone\",1682 => \"/meteo/Castelleone+di+Suasa\",1683 => \"/meteo/Castellero\",1684 => \"/meteo/Castelletto+Cervo\",1685 => \"/meteo/Castelletto+d'Erro\",1686 => \"/meteo/Castelletto+d'Orba\",1687 => \"/meteo/Castelletto+di+Branduzzo\",1688 => \"/meteo/Castelletto+Merli\",1689 => \"/meteo/Castelletto+Molina\",1690 => \"/meteo/Castelletto+monferrato\",1691 => \"/meteo/Castelletto+sopra+Ticino\",1692 => \"/meteo/Castelletto+Stura\",1693 => \"/meteo/Castelletto+Uzzone\",1694 => \"/meteo/Castelli\",1695 => \"/meteo/Castelli+Calepio\",1696 => \"/meteo/Castellina+in+chianti\",1697 => \"/meteo/Castellina+marittima\",1698 => \"/meteo/Castellinaldo\",1699 => \"/meteo/Castellino+del+Biferno\",1700 => \"/meteo/Castellino+Tanaro\",1701 => \"/meteo/Castelliri\",1702 => \"/meteo/Castello+Cabiaglio\",1703 => \"/meteo/Castello+d'Agogna\",1704 => \"/meteo/Castello+d'Argile\",1705 => \"/meteo/Castello+del+matese\",1706 => \"/meteo/Castello+dell'Acqua\",1707 => \"/meteo/Castello+di+Annone\",1708 => \"/meteo/Castello+di+brianza\",1709 => \"/meteo/Castello+di+Cisterna\",1710 => \"/meteo/Castello+di+Godego\",1711 => \"/meteo/Castello+di+Serravalle\",1712 => \"/meteo/Castello+Lavazzo\",1714 => \"/meteo/Castello+Molina+di+Fiemme\",1713 => \"/meteo/Castello+tesino\",1715 => \"/meteo/Castellucchio\",8219 => \"/meteo/Castelluccio\",1716 => \"/meteo/Castelluccio+dei+Sauri\",8395 => \"/meteo/Castelluccio+inferiore\",8359 => \"/meteo/Castelluccio+superiore\",1719 => \"/meteo/Castelluccio+valmaggiore\",8452 => \"/meteo/Castelmadama+casello\",1720 => \"/meteo/Castelmagno\",1721 => \"/meteo/Castelmarte\",1722 => \"/meteo/Castelmassa\",1723 => \"/meteo/Castelmauro\",8363 => \"/meteo/Castelmezzano\",1725 => \"/meteo/Castelmola\",1726 => \"/meteo/Castelnovetto\",1727 => \"/meteo/Castelnovo+Bariano\",1728 => \"/meteo/Castelnovo+del+Friuli\",1729 => \"/meteo/Castelnovo+di+sotto\",8124 => \"/meteo/Castelnovo+ne'+Monti\",1731 => \"/meteo/Castelnuovo\",1732 => \"/meteo/Castelnuovo+Belbo\",1733 => \"/meteo/Castelnuovo+Berardenga\",1734 => \"/meteo/Castelnuovo+bocca+d'Adda\",1735 => \"/meteo/Castelnuovo+Bormida\",1736 => \"/meteo/Castelnuovo+Bozzente\",1737 => \"/meteo/Castelnuovo+Calcea\",1738 => \"/meteo/Castelnuovo+cilento\",1739 => \"/meteo/Castelnuovo+del+Garda\",1740 => \"/meteo/Castelnuovo+della+daunia\",1741 => \"/meteo/Castelnuovo+di+Ceva\",1742 => \"/meteo/Castelnuovo+di+Conza\",1743 => \"/meteo/Castelnuovo+di+Farfa\",1744 => \"/meteo/Castelnuovo+di+Garfagnana\",1745 => \"/meteo/Castelnuovo+di+Porto\",1746 => \"/meteo/Castelnuovo+di+val+di+Cecina\",1747 => \"/meteo/Castelnuovo+Don+Bosco\",1748 => \"/meteo/Castelnuovo+Magra\",1749 => \"/meteo/Castelnuovo+Nigra\",1750 => \"/meteo/Castelnuovo+Parano\",1751 => \"/meteo/Castelnuovo+Rangone\",1752 => \"/meteo/Castelnuovo+Scrivia\",1753 => \"/meteo/Castelpagano\",1754 => \"/meteo/Castelpetroso\",1755 => \"/meteo/Castelpizzuto\",1756 => \"/meteo/Castelplanio\",1757 => \"/meteo/Castelpoto\",1758 => \"/meteo/Castelraimondo\",1759 => \"/meteo/Castelrotto\",1760 => \"/meteo/Castelsantangelo+sul+Nera\",8378 => \"/meteo/Castelsaraceno\",1762 => \"/meteo/Castelsardo\",1763 => \"/meteo/Castelseprio\",1764 => \"/meteo/Castelsilano\",1765 => \"/meteo/Castelspina\",1766 => \"/meteo/Casteltermini\",1767 => \"/meteo/Castelveccana\",1768 => \"/meteo/Castelvecchio+Calvisio\",1769 => \"/meteo/Castelvecchio+di+Rocca+Barbena\",1770 => \"/meteo/Castelvecchio+Subequo\",1771 => \"/meteo/Castelvenere\",1772 => \"/meteo/Castelverde\",1773 => \"/meteo/Castelverrino\",1774 => \"/meteo/Castelvetere+in+val+fortore\",1775 => \"/meteo/Castelvetere+sul+Calore\",1776 => \"/meteo/Castelvetrano\",1777 => \"/meteo/Castelvetro+di+Modena\",1778 => \"/meteo/Castelvetro+piacentino\",1779 => \"/meteo/Castelvisconti\",1780 => \"/meteo/Castenaso\",1781 => \"/meteo/Castenedolo\",1782 => \"/meteo/Castiadas\",1783 => \"/meteo/Castiglion+Fibocchi\",1784 => \"/meteo/Castiglion+fiorentino\",8193 => \"/meteo/Castiglioncello\",1785 => \"/meteo/Castiglione+a+Casauria\",1786 => \"/meteo/Castiglione+chiavarese\",1787 => \"/meteo/Castiglione+cosentino\",1788 => \"/meteo/Castiglione+d'Adda\",1789 => \"/meteo/Castiglione+d'Intelvi\",1790 => \"/meteo/Castiglione+d'Orcia\",1791 => \"/meteo/Castiglione+dei+Pepoli\",1792 => \"/meteo/Castiglione+del+Genovesi\",1793 => \"/meteo/Castiglione+del+Lago\",1794 => \"/meteo/Castiglione+della+Pescaia\",1795 => \"/meteo/Castiglione+delle+Stiviere\",1796 => \"/meteo/Castiglione+di+garfagnana\",1797 => \"/meteo/Castiglione+di+Sicilia\",1798 => \"/meteo/Castiglione+Falletto\",1799 => \"/meteo/Castiglione+in+teverina\",1800 => \"/meteo/Castiglione+Messer+Marino\",1801 => \"/meteo/Castiglione+Messer+Raimondo\",1802 => \"/meteo/Castiglione+Olona\",1803 => \"/meteo/Castiglione+Tinella\",1804 => \"/meteo/Castiglione+torinese\",1805 => \"/meteo/Castignano\",1806 => \"/meteo/Castilenti\",1807 => \"/meteo/Castino\",1808 => \"/meteo/Castione+Andevenno\",1809 => \"/meteo/Castione+della+Presolana\",1810 => \"/meteo/Castions+di+Strada\",1811 => \"/meteo/Castiraga+Vidardo\",1812 => \"/meteo/Casto\",1813 => \"/meteo/Castorano\",8723 => \"/meteo/Castore\",1814 => \"/meteo/Castrezzato\",1815 => \"/meteo/Castri+di+Lecce\",1816 => \"/meteo/Castrignano+de'+Greci\",1817 => \"/meteo/Castrignano+del+Capo\",1818 => \"/meteo/Castro\",1819 => \"/meteo/Castro\",1820 => \"/meteo/Castro+dei+Volsci\",8167 => \"/meteo/Castro+Marina\",1821 => \"/meteo/Castrocaro+terme+e+terra+del+Sole\",1822 => \"/meteo/Castrocielo\",1823 => \"/meteo/Castrofilippo\",1824 => \"/meteo/Castrolibero\",1825 => \"/meteo/Castronno\",1826 => \"/meteo/Castronuovo+di+Sant'Andrea\",1827 => \"/meteo/Castronuovo+di+Sicilia\",1828 => \"/meteo/Castropignano\",1829 => \"/meteo/Castroreale\",1830 => \"/meteo/Castroregio\",1831 => \"/meteo/Castrovillari\",1832 => \"/meteo/Catania\",8273 => \"/meteo/Catania+Fontanarossa\",1833 => \"/meteo/Catanzaro\",1834 => \"/meteo/Catenanuova\",1835 => \"/meteo/Catignano\",8281 => \"/meteo/Catinaccio\",1836 => \"/meteo/Cattolica\",1837 => \"/meteo/Cattolica+Eraclea\",1838 => \"/meteo/Caulonia\",8673 => \"/meteo/Caulonia+Marina\",1839 => \"/meteo/Cautano\",1840 => \"/meteo/Cava+de'+Tirreni\",1841 => \"/meteo/Cava+manara\",1842 => \"/meteo/Cavacurta\",1843 => \"/meteo/Cavaglia'\",1844 => \"/meteo/Cavaglietto\",1845 => \"/meteo/Cavaglio+d'Agogna\",1846 => \"/meteo/Cavaglio+Spoccia\",1847 => \"/meteo/Cavagnolo\",1848 => \"/meteo/Cavaion+veronese\",1849 => \"/meteo/Cavalese\",1850 => \"/meteo/Cavallasca\",1851 => \"/meteo/Cavallerleone\",1852 => \"/meteo/Cavallermaggiore\",1853 => \"/meteo/Cavallino\",8657 => \"/meteo/Cavallino\",1854 => \"/meteo/Cavallino+treporti\",1855 => \"/meteo/Cavallirio\",1856 => \"/meteo/Cavareno\",1857 => \"/meteo/Cavargna\",1858 => \"/meteo/Cavaria+con+Premezzo\",1859 => \"/meteo/Cavarzere\",1860 => \"/meteo/Cavaso+del+Tomba\",1861 => \"/meteo/Cavasso+nuovo\",1862 => \"/meteo/Cavatore\",1863 => \"/meteo/Cavazzo+carnico\",1864 => \"/meteo/Cave\",1865 => \"/meteo/Cavedago\",1866 => \"/meteo/Cavedine\",1867 => \"/meteo/Cavenago+d'Adda\",1868 => \"/meteo/Cavenago+di+brianza\",1869 => \"/meteo/Cavernago\",1870 => \"/meteo/Cavezzo\",1871 => \"/meteo/Cavizzana\",1872 => \"/meteo/Cavour\",1873 => \"/meteo/Cavriago\",1874 => \"/meteo/Cavriana\",1875 => \"/meteo/Cavriglia\",1876 => \"/meteo/Cazzago+Brabbia\",1877 => \"/meteo/Cazzago+San+Martino\",1878 => \"/meteo/Cazzano+di+Tramigna\",1879 => \"/meteo/Cazzano+Sant'Andrea\",1880 => \"/meteo/Ceccano\",1881 => \"/meteo/Cecima\",1882 => \"/meteo/Cecina\",1883 => \"/meteo/Cedegolo\",1884 => \"/meteo/Cedrasco\",1885 => \"/meteo/Cefala'+Diana\",1886 => \"/meteo/Cefalu'\",1887 => \"/meteo/Ceggia\",1888 => \"/meteo/Ceglie+Messapica\",1889 => \"/meteo/Celano\",1890 => \"/meteo/Celenza+sul+Trigno\",1891 => \"/meteo/Celenza+valfortore\",1892 => \"/meteo/Celico\",1893 => \"/meteo/Cella+dati\",1894 => \"/meteo/Cella+monte\",1895 => \"/meteo/Cellamare\",1896 => \"/meteo/Cellara\",1897 => \"/meteo/Cellarengo\",1898 => \"/meteo/Cellatica\",1899 => \"/meteo/Celle+di+Bulgheria\",1900 => \"/meteo/Celle+di+Macra\",1901 => \"/meteo/Celle+di+San+Vito\",1902 => \"/meteo/Celle+Enomondo\",1903 => \"/meteo/Celle+ligure\",1904 => \"/meteo/Celleno\",1905 => \"/meteo/Cellere\",1906 => \"/meteo/Cellino+Attanasio\",1907 => \"/meteo/Cellino+San+Marco\",1908 => \"/meteo/Cellio\",1909 => \"/meteo/Cellole\",1910 => \"/meteo/Cembra\",1911 => \"/meteo/Cenadi\",1912 => \"/meteo/Cenate+sopra\",1913 => \"/meteo/Cenate+sotto\",1914 => \"/meteo/Cencenighe+Agordino\",1915 => \"/meteo/Cene\",1916 => \"/meteo/Ceneselli\",1917 => \"/meteo/Cengio\",1918 => \"/meteo/Centa+San+Nicolo'\",1919 => \"/meteo/Centallo\",1920 => \"/meteo/Cento\",1921 => \"/meteo/Centola\",1922 => \"/meteo/Centrache\",1923 => \"/meteo/Centuripe\",1924 => \"/meteo/Cepagatti\",1925 => \"/meteo/Ceppaloni\",1926 => \"/meteo/Ceppo+Morelli\",1927 => \"/meteo/Ceprano\",1928 => \"/meteo/Cerami\",1929 => \"/meteo/Ceranesi\",1930 => \"/meteo/Cerano\",1931 => \"/meteo/Cerano+d'intelvi\",1932 => \"/meteo/Ceranova\",1933 => \"/meteo/Ceraso\",1934 => \"/meteo/Cercemaggiore\",1935 => \"/meteo/Cercenasco\",1936 => \"/meteo/Cercepiccola\",1937 => \"/meteo/Cerchiara+di+Calabria\",1938 => \"/meteo/Cerchio\",1939 => \"/meteo/Cercino\",1940 => \"/meteo/Cercivento\",1941 => \"/meteo/Cercola\",1942 => \"/meteo/Cerda\",1943 => \"/meteo/Cerea\",1944 => \"/meteo/Ceregnano\",1945 => \"/meteo/Cerenzia\",1946 => \"/meteo/Ceres\",1947 => \"/meteo/Ceresara\",1948 => \"/meteo/Cereseto\",1949 => \"/meteo/Ceresole+Alba\",1950 => \"/meteo/Ceresole+reale\",1951 => \"/meteo/Cerete\",1952 => \"/meteo/Ceretto+lomellina\",1953 => \"/meteo/Cergnago\",1954 => \"/meteo/Ceriale\",1955 => \"/meteo/Ceriana\",1956 => \"/meteo/Ceriano+Laghetto\",1957 => \"/meteo/Cerignale\",1958 => \"/meteo/Cerignola\",1959 => \"/meteo/Cerisano\",1960 => \"/meteo/Cermenate\",1961 => \"/meteo/Cermes\",1962 => \"/meteo/Cermignano\",1963 => \"/meteo/Cernobbio\",1964 => \"/meteo/Cernusco+lombardone\",1965 => \"/meteo/Cernusco+sul+Naviglio\",1966 => \"/meteo/Cerreto+Castello\",1967 => \"/meteo/Cerreto+d'Asti\",1968 => \"/meteo/Cerreto+d'Esi\",1969 => \"/meteo/Cerreto+di+Spoleto\",1970 => \"/meteo/Cerreto+Grue\",1971 => \"/meteo/Cerreto+Guidi\",1972 => \"/meteo/Cerreto+langhe\",1973 => \"/meteo/Cerreto+laziale\",1974 => \"/meteo/Cerreto+sannita\",1975 => \"/meteo/Cerrina+monferrato\",1976 => \"/meteo/Cerrione\",1977 => \"/meteo/Cerro+al+Lambro\",1978 => \"/meteo/Cerro+al+Volturno\",1979 => \"/meteo/Cerro+maggiore\",1980 => \"/meteo/Cerro+Tanaro\",1981 => \"/meteo/Cerro+veronese\",8396 => \"/meteo/Cersosimo\",1983 => \"/meteo/Certaldo\",1984 => \"/meteo/Certosa+di+Pavia\",1985 => \"/meteo/Cerva\",1986 => \"/meteo/Cervara+di+Roma\",1987 => \"/meteo/Cervarese+Santa+Croce\",1988 => \"/meteo/Cervaro\",1989 => \"/meteo/Cervasca\",1990 => \"/meteo/Cervatto\",1991 => \"/meteo/Cerveno\",1992 => \"/meteo/Cervere\",1993 => \"/meteo/Cervesina\",1994 => \"/meteo/Cerveteri\",1995 => \"/meteo/Cervia\",1996 => \"/meteo/Cervicati\",1997 => \"/meteo/Cervignano+d'Adda\",1998 => \"/meteo/Cervignano+del+Friuli\",1999 => \"/meteo/Cervinara\",2000 => \"/meteo/Cervino\",2001 => \"/meteo/Cervo\",2002 => \"/meteo/Cerzeto\",2003 => \"/meteo/Cesa\",2004 => \"/meteo/Cesana+brianza\",2005 => \"/meteo/Cesana+torinese\",2006 => \"/meteo/Cesano+Boscone\",2007 => \"/meteo/Cesano+Maderno\",2008 => \"/meteo/Cesara\",2009 => \"/meteo/Cesaro'\",2010 => \"/meteo/Cesate\",2011 => \"/meteo/Cesena\",2012 => \"/meteo/Cesenatico\",2013 => \"/meteo/Cesinali\",2014 => \"/meteo/Cesio\",2015 => \"/meteo/Cesiomaggiore\",2016 => \"/meteo/Cessalto\",2017 => \"/meteo/Cessaniti\",2018 => \"/meteo/Cessapalombo\",2019 => \"/meteo/Cessole\",2020 => \"/meteo/Cetara\",2021 => \"/meteo/Ceto\",2022 => \"/meteo/Cetona\",2023 => \"/meteo/Cetraro\",2024 => \"/meteo/Ceva\",8721 => \"/meteo/Cevedale\",2025 => \"/meteo/Cevo\",2026 => \"/meteo/Challand+Saint+Anselme\",2027 => \"/meteo/Challand+Saint+Victor\",2028 => \"/meteo/Chambave\",2029 => \"/meteo/Chamois\",8255 => \"/meteo/Chamole`\",2030 => \"/meteo/Champdepraz\",8225 => \"/meteo/Champoluc\",2031 => \"/meteo/Champorcher\",8331 => \"/meteo/Champorcher+Cimetta+Rossa\",8330 => \"/meteo/Champorcher+Laris\",2032 => \"/meteo/Charvensod\",2033 => \"/meteo/Chatillon\",2034 => \"/meteo/Cherasco\",2035 => \"/meteo/Cheremule\",8668 => \"/meteo/Chesal\",2036 => \"/meteo/Chialamberto\",2037 => \"/meteo/Chiampo\",2038 => \"/meteo/Chianche\",2039 => \"/meteo/Chianciano+terme\",2040 => \"/meteo/Chianni\",2041 => \"/meteo/Chianocco\",2042 => \"/meteo/Chiaramonte+Gulfi\",2043 => \"/meteo/Chiaramonti\",2044 => \"/meteo/Chiarano\",2045 => \"/meteo/Chiaravalle\",2046 => \"/meteo/Chiaravalle+centrale\",8151 => \"/meteo/Chiareggio\",2047 => \"/meteo/Chiari\",2048 => \"/meteo/Chiaromonte\",8432 => \"/meteo/Chiasso\",2049 => \"/meteo/Chiauci\",2050 => \"/meteo/Chiavari\",2051 => \"/meteo/Chiavenna\",2052 => \"/meteo/Chiaverano\",2053 => \"/meteo/Chienes\",2054 => \"/meteo/Chieri\",2055 => \"/meteo/Chies+d'Alpago\",2056 => \"/meteo/Chiesa+in+valmalenco\",2057 => \"/meteo/Chiesanuova\",2058 => \"/meteo/Chiesina+uzzanese\",2059 => \"/meteo/Chieti\",8319 => \"/meteo/Chieti+Scalo\",2060 => \"/meteo/Chieuti\",2061 => \"/meteo/Chieve\",2062 => \"/meteo/Chignolo+d'Isola\",2063 => \"/meteo/Chignolo+Po\",2064 => \"/meteo/Chioggia\",2065 => \"/meteo/Chiomonte\",2066 => \"/meteo/Chions\",2067 => \"/meteo/Chiopris+Viscone\",2068 => \"/meteo/Chitignano\",2069 => \"/meteo/Chiuduno\",2070 => \"/meteo/Chiuppano\",2071 => \"/meteo/Chiuro\",2072 => \"/meteo/Chiusa\",2073 => \"/meteo/Chiusa+di+Pesio\",2074 => \"/meteo/Chiusa+di+San+Michele\",2075 => \"/meteo/Chiusa+Sclafani\",2076 => \"/meteo/Chiusaforte\",2077 => \"/meteo/Chiusanico\",2078 => \"/meteo/Chiusano+d'Asti\",2079 => \"/meteo/Chiusano+di+San+Domenico\",2080 => \"/meteo/Chiusavecchia\",2081 => \"/meteo/Chiusdino\",2082 => \"/meteo/Chiusi\",2083 => \"/meteo/Chiusi+della+Verna\",2084 => \"/meteo/Chivasso\",8515 => \"/meteo/Ciampac+Alba\",2085 => \"/meteo/Ciampino\",2086 => \"/meteo/Cianciana\",2087 => \"/meteo/Cibiana+di+cadore\",2088 => \"/meteo/Cicagna\",2089 => \"/meteo/Cicala\",2090 => \"/meteo/Cicciano\",2091 => \"/meteo/Cicerale\",2092 => \"/meteo/Ciciliano\",2093 => \"/meteo/Cicognolo\",2094 => \"/meteo/Ciconio\",2095 => \"/meteo/Cigliano\",2096 => \"/meteo/Ciglie'\",2097 => \"/meteo/Cigognola\",2098 => \"/meteo/Cigole\",2099 => \"/meteo/Cilavegna\",8340 => \"/meteo/Cima+Durand\",8590 => \"/meteo/Cima+Pisciadu'\",8764 => \"/meteo/Cima+Plose\",8703 => \"/meteo/Cima+Portavescovo\",8282 => \"/meteo/Cima+Sole\",2100 => \"/meteo/Cimadolmo\",2101 => \"/meteo/Cimbergo\",8332 => \"/meteo/Cime+Bianche\",2102 => \"/meteo/Cimego\",2103 => \"/meteo/Cimina'\",2104 => \"/meteo/Ciminna\",2105 => \"/meteo/Cimitile\",2106 => \"/meteo/Cimolais\",8433 => \"/meteo/Cimoncino\",2107 => \"/meteo/Cimone\",2108 => \"/meteo/Cinaglio\",2109 => \"/meteo/Cineto+romano\",2110 => \"/meteo/Cingia+de'+Botti\",2111 => \"/meteo/Cingoli\",2112 => \"/meteo/Cinigiano\",2113 => \"/meteo/Cinisello+Balsamo\",2114 => \"/meteo/Cinisi\",2115 => \"/meteo/Cino\",2116 => \"/meteo/Cinquefrondi\",2117 => \"/meteo/Cintano\",2118 => \"/meteo/Cinte+tesino\",2119 => \"/meteo/Cinto+Caomaggiore\",2120 => \"/meteo/Cinto+Euganeo\",2121 => \"/meteo/Cinzano\",2122 => \"/meteo/Ciorlano\",2123 => \"/meteo/Cipressa\",2124 => \"/meteo/Circello\",2125 => \"/meteo/Cirie'\",2126 => \"/meteo/Cirigliano\",2127 => \"/meteo/Cirimido\",2128 => \"/meteo/Ciro'\",2129 => \"/meteo/Ciro'+marina\",2130 => \"/meteo/Cis\",2131 => \"/meteo/Cisano+bergamasco\",2132 => \"/meteo/Cisano+sul+Neva\",2133 => \"/meteo/Ciserano\",2134 => \"/meteo/Cislago\",2135 => \"/meteo/Cisliano\",2136 => \"/meteo/Cismon+del+Grappa\",2137 => \"/meteo/Cison+di+valmarino\",2138 => \"/meteo/Cissone\",2139 => \"/meteo/Cisterna+d'Asti\",2140 => \"/meteo/Cisterna+di+Latina\",2141 => \"/meteo/Cisternino\",2142 => \"/meteo/Citerna\",8142 => \"/meteo/Città+del+Vaticano\",2143 => \"/meteo/Citta'+della+Pieve\",2144 => \"/meteo/Citta'+di+Castello\",2145 => \"/meteo/Citta'+Sant'Angelo\",2146 => \"/meteo/Cittadella\",2147 => \"/meteo/Cittaducale\",2148 => \"/meteo/Cittanova\",2149 => \"/meteo/Cittareale\",2150 => \"/meteo/Cittiglio\",2151 => \"/meteo/Civate\",2152 => \"/meteo/Civenna\",2153 => \"/meteo/Civezza\",2154 => \"/meteo/Civezzano\",2155 => \"/meteo/Civiasco\",2156 => \"/meteo/Cividale+del+Friuli\",2157 => \"/meteo/Cividate+al+piano\",2158 => \"/meteo/Cividate+camuno\",2159 => \"/meteo/Civita\",2160 => \"/meteo/Civita+Castellana\",2161 => \"/meteo/Civita+d'Antino\",2162 => \"/meteo/Civitacampomarano\",2163 => \"/meteo/Civitaluparella\",2164 => \"/meteo/Civitanova+del+sannio\",2165 => \"/meteo/Civitanova+Marche\",8356 => \"/meteo/Civitaquana\",2167 => \"/meteo/Civitavecchia\",2168 => \"/meteo/Civitella+Alfedena\",2169 => \"/meteo/Civitella+Casanova\",2170 => \"/meteo/Civitella+d'Agliano\",2171 => \"/meteo/Civitella+del+Tronto\",2172 => \"/meteo/Civitella+di+Romagna\",2173 => \"/meteo/Civitella+in+val+di+Chiana\",2174 => \"/meteo/Civitella+Messer+Raimondo\",2175 => \"/meteo/Civitella+Paganico\",2176 => \"/meteo/Civitella+Roveto\",2177 => \"/meteo/Civitella+San+Paolo\",2178 => \"/meteo/Civo\",2179 => \"/meteo/Claino+con+osteno\",2180 => \"/meteo/Claut\",2181 => \"/meteo/Clauzetto\",2182 => \"/meteo/Clavesana\",2183 => \"/meteo/Claviere\",2184 => \"/meteo/Cles\",2185 => \"/meteo/Cleto\",2186 => \"/meteo/Clivio\",2187 => \"/meteo/Cloz\",2188 => \"/meteo/Clusone\",2189 => \"/meteo/Coassolo+torinese\",2190 => \"/meteo/Coazze\",2191 => \"/meteo/Coazzolo\",2192 => \"/meteo/Coccaglio\",2193 => \"/meteo/Cocconato\",2194 => \"/meteo/Cocquio+Trevisago\",2195 => \"/meteo/Cocullo\",2196 => \"/meteo/Codevigo\",2197 => \"/meteo/Codevilla\",2198 => \"/meteo/Codigoro\",2199 => \"/meteo/Codogne'\",2200 => \"/meteo/Codogno\",2201 => \"/meteo/Codroipo\",2202 => \"/meteo/Codrongianos\",2203 => \"/meteo/Coggiola\",2204 => \"/meteo/Cogliate\",2205 => \"/meteo/Cogne\",8654 => \"/meteo/Cogne+Lillaz\",2206 => \"/meteo/Cogoleto\",2207 => \"/meteo/Cogollo+del+Cengio\",5049 => \"/meteo/Cogolo\",2208 => \"/meteo/Cogorno\",8354 => \"/meteo/Col+de+Joux\",8604 => \"/meteo/Col+Indes\",2209 => \"/meteo/Colazza\",2210 => \"/meteo/Colbordolo\",2211 => \"/meteo/Colere\",2212 => \"/meteo/Colfelice\",8217 => \"/meteo/Colfiorito\",8761 => \"/meteo/Colfosco\",2213 => \"/meteo/Coli\",2214 => \"/meteo/Colico\",2215 => \"/meteo/Collagna\",2216 => \"/meteo/Collalto+sabino\",2217 => \"/meteo/Collarmele\",2218 => \"/meteo/Collazzone\",8249 => \"/meteo/Colle+Bettaforca\",2219 => \"/meteo/Colle+Brianza\",2220 => \"/meteo/Colle+d'Anchise\",8687 => \"/meteo/Colle+del+Gran+San+Bernardo\",8688 => \"/meteo/Colle+del+Moncenisio\",8686 => \"/meteo/Colle+del+Piccolo+San+Bernardo\",8481 => \"/meteo/Colle+del+Prel\",2221 => \"/meteo/Colle+di+Tora\",2222 => \"/meteo/Colle+di+val+d'Elsa\",2223 => \"/meteo/Colle+San+Magno\",2224 => \"/meteo/Colle+sannita\",2225 => \"/meteo/Colle+Santa+Lucia\",8246 => \"/meteo/Colle+Sarezza\",2226 => \"/meteo/Colle+Umberto\",2227 => \"/meteo/Collebeato\",2228 => \"/meteo/Collecchio\",2229 => \"/meteo/Collecorvino\",2230 => \"/meteo/Colledara\",8453 => \"/meteo/Colledara+casello\",2231 => \"/meteo/Colledimacine\",2232 => \"/meteo/Colledimezzo\",2233 => \"/meteo/Colleferro\",2234 => \"/meteo/Collegiove\",2235 => \"/meteo/Collegno\",2236 => \"/meteo/Collelongo\",2237 => \"/meteo/Collepardo\",2238 => \"/meteo/Collepasso\",2239 => \"/meteo/Collepietro\",2240 => \"/meteo/Colleretto+castelnuovo\",2241 => \"/meteo/Colleretto+Giacosa\",2242 => \"/meteo/Collesalvetti\",2243 => \"/meteo/Collesano\",2244 => \"/meteo/Colletorto\",2245 => \"/meteo/Collevecchio\",2246 => \"/meteo/Colli+a+volturno\",2247 => \"/meteo/Colli+del+Tronto\",2248 => \"/meteo/Colli+sul+Velino\",2249 => \"/meteo/Colliano\",2250 => \"/meteo/Collinas\",2251 => \"/meteo/Collio\",2252 => \"/meteo/Collobiano\",2253 => \"/meteo/Colloredo+di+monte+Albano\",2254 => \"/meteo/Colmurano\",2255 => \"/meteo/Colobraro\",2256 => \"/meteo/Cologna+veneta\",2257 => \"/meteo/Cologne\",2258 => \"/meteo/Cologno+al+Serio\",2259 => \"/meteo/Cologno+monzese\",2260 => \"/meteo/Colognola+ai+Colli\",2261 => \"/meteo/Colonna\",2262 => \"/meteo/Colonnella\",2263 => \"/meteo/Colonno\",2264 => \"/meteo/Colorina\",2265 => \"/meteo/Colorno\",2266 => \"/meteo/Colosimi\",2267 => \"/meteo/Colturano\",2268 => \"/meteo/Colzate\",2269 => \"/meteo/Comabbio\",2270 => \"/meteo/Comacchio\",2271 => \"/meteo/Comano\",2272 => \"/meteo/Comazzo\",2273 => \"/meteo/Comeglians\",2274 => \"/meteo/Comelico+superiore\",2275 => \"/meteo/Comerio\",2276 => \"/meteo/Comezzano+Cizzago\",2277 => \"/meteo/Comignago\",2278 => \"/meteo/Comiso\",2279 => \"/meteo/Comitini\",2280 => \"/meteo/Comiziano\",2281 => \"/meteo/Commessaggio\",2282 => \"/meteo/Commezzadura\",2283 => \"/meteo/Como\",2284 => \"/meteo/Compiano\",8711 => \"/meteo/Comprensorio+Cimone\",2285 => \"/meteo/Comun+nuovo\",2286 => \"/meteo/Comunanza\",2287 => \"/meteo/Cona\",2288 => \"/meteo/Conca+Casale\",2289 => \"/meteo/Conca+dei+Marini\",2290 => \"/meteo/Conca+della+Campania\",2291 => \"/meteo/Concamarise\",2292 => \"/meteo/Concei\",2293 => \"/meteo/Concerviano\",2294 => \"/meteo/Concesio\",2295 => \"/meteo/Conco\",2296 => \"/meteo/Concordia+Sagittaria\",2297 => \"/meteo/Concordia+sulla+Secchia\",2298 => \"/meteo/Concorezzo\",2299 => \"/meteo/Condino\",2300 => \"/meteo/Condofuri\",8689 => \"/meteo/Condofuri+Marina\",2301 => \"/meteo/Condove\",2302 => \"/meteo/Condro'\",2303 => \"/meteo/Conegliano\",2304 => \"/meteo/Confienza\",2305 => \"/meteo/Configni\",2306 => \"/meteo/Conflenti\",2307 => \"/meteo/Coniolo\",2308 => \"/meteo/Conselice\",2309 => \"/meteo/Conselve\",2310 => \"/meteo/Consiglio+di+Rumo\",2311 => \"/meteo/Contessa+Entellina\",2312 => \"/meteo/Contigliano\",2313 => \"/meteo/Contrada\",2314 => \"/meteo/Controguerra\",2315 => \"/meteo/Controne\",2316 => \"/meteo/Contursi+terme\",2317 => \"/meteo/Conversano\",2318 => \"/meteo/Conza+della+Campania\",2319 => \"/meteo/Conzano\",2320 => \"/meteo/Copertino\",2321 => \"/meteo/Copiano\",2322 => \"/meteo/Copparo\",2323 => \"/meteo/Corana\",2324 => \"/meteo/Corato\",2325 => \"/meteo/Corbara\",2326 => \"/meteo/Corbetta\",2327 => \"/meteo/Corbola\",2328 => \"/meteo/Corchiano\",2329 => \"/meteo/Corciano\",2330 => \"/meteo/Cordenons\",2331 => \"/meteo/Cordignano\",2332 => \"/meteo/Cordovado\",2333 => \"/meteo/Coredo\",2334 => \"/meteo/Coreglia+Antelminelli\",2335 => \"/meteo/Coreglia+ligure\",2336 => \"/meteo/Coreno+Ausonio\",2337 => \"/meteo/Corfinio\",2338 => \"/meteo/Cori\",2339 => \"/meteo/Coriano\",2340 => \"/meteo/Corigliano+calabro\",8110 => \"/meteo/Corigliano+Calabro+Marina\",2341 => \"/meteo/Corigliano+d'Otranto\",2342 => \"/meteo/Corinaldo\",2343 => \"/meteo/Corio\",2344 => \"/meteo/Corleone\",2345 => \"/meteo/Corleto+monforte\",2346 => \"/meteo/Corleto+Perticara\",2347 => \"/meteo/Cormano\",2348 => \"/meteo/Cormons\",2349 => \"/meteo/Corna+imagna\",2350 => \"/meteo/Cornalba\",2351 => \"/meteo/Cornale\",2352 => \"/meteo/Cornaredo\",2353 => \"/meteo/Cornate+d'Adda\",2354 => \"/meteo/Cornedo+all'Isarco\",2355 => \"/meteo/Cornedo+vicentino\",2356 => \"/meteo/Cornegliano+laudense\",2357 => \"/meteo/Corneliano+d'Alba\",2358 => \"/meteo/Corniglio\",8537 => \"/meteo/Corno+alle+Scale\",8353 => \"/meteo/Corno+del+Renon\",2359 => \"/meteo/Corno+di+Rosazzo\",2360 => \"/meteo/Corno+Giovine\",2361 => \"/meteo/Cornovecchio\",2362 => \"/meteo/Cornuda\",2363 => \"/meteo/Correggio\",2364 => \"/meteo/Correzzana\",2365 => \"/meteo/Correzzola\",2366 => \"/meteo/Corrido\",2367 => \"/meteo/Corridonia\",2368 => \"/meteo/Corropoli\",2369 => \"/meteo/Corsano\",2370 => \"/meteo/Corsico\",2371 => \"/meteo/Corsione\",2372 => \"/meteo/Cortaccia+sulla+strada+del+vino\",2373 => \"/meteo/Cortale\",2374 => \"/meteo/Cortandone\",2375 => \"/meteo/Cortanze\",2376 => \"/meteo/Cortazzone\",2377 => \"/meteo/Corte+brugnatella\",2378 => \"/meteo/Corte+de'+Cortesi+con+Cignone\",2379 => \"/meteo/Corte+de'+Frati\",2380 => \"/meteo/Corte+Franca\",2381 => \"/meteo/Corte+Palasio\",2382 => \"/meteo/Cortemaggiore\",2383 => \"/meteo/Cortemilia\",2384 => \"/meteo/Corteno+Golgi\",2385 => \"/meteo/Cortenova\",2386 => \"/meteo/Cortenuova\",2387 => \"/meteo/Corteolona\",2388 => \"/meteo/Cortiglione\",2389 => \"/meteo/Cortina+d'Ampezzo\",2390 => \"/meteo/Cortina+sulla+strada+del+vino\",2391 => \"/meteo/Cortino\",2392 => \"/meteo/Cortona\",2393 => \"/meteo/Corvara\",2394 => \"/meteo/Corvara+in+Badia\",2395 => \"/meteo/Corvino+san+Quirico\",2396 => \"/meteo/Corzano\",2397 => \"/meteo/Coseano\",2398 => \"/meteo/Cosenza\",2399 => \"/meteo/Cosio+di+Arroscia\",2400 => \"/meteo/Cosio+valtellino\",2401 => \"/meteo/Cosoleto\",2402 => \"/meteo/Cossano+belbo\",2403 => \"/meteo/Cossano+canavese\",2404 => \"/meteo/Cossato\",2405 => \"/meteo/Cosseria\",2406 => \"/meteo/Cossignano\",2407 => \"/meteo/Cossogno\",2408 => \"/meteo/Cossoine\",2409 => \"/meteo/Cossombrato\",2410 => \"/meteo/Costa+de'+Nobili\",2411 => \"/meteo/Costa+di+Mezzate\",2412 => \"/meteo/Costa+di+Rovigo\",2413 => \"/meteo/Costa+di+serina\",2414 => \"/meteo/Costa+masnaga\",8177 => \"/meteo/Costa+Rei\",2415 => \"/meteo/Costa+valle+imagna\",2416 => \"/meteo/Costa+Vescovato\",2417 => \"/meteo/Costa+Volpino\",2418 => \"/meteo/Costabissara\",2419 => \"/meteo/Costacciaro\",2420 => \"/meteo/Costanzana\",2421 => \"/meteo/Costarainera\",2422 => \"/meteo/Costermano\",2423 => \"/meteo/Costigliole+d'Asti\",2424 => \"/meteo/Costigliole+Saluzzo\",2425 => \"/meteo/Cotignola\",2426 => \"/meteo/Cotronei\",2427 => \"/meteo/Cottanello\",8256 => \"/meteo/Couis+2\",2428 => \"/meteo/Courmayeur\",2429 => \"/meteo/Covo\",2430 => \"/meteo/Cozzo\",8382 => \"/meteo/Craco\",2432 => \"/meteo/Crandola+valsassina\",2433 => \"/meteo/Cravagliana\",2434 => \"/meteo/Cravanzana\",2435 => \"/meteo/Craveggia\",2436 => \"/meteo/Creazzo\",2437 => \"/meteo/Crecchio\",2438 => \"/meteo/Credaro\",2439 => \"/meteo/Credera+Rubbiano\",2440 => \"/meteo/Crema\",2441 => \"/meteo/Cremella\",2442 => \"/meteo/Cremenaga\",2443 => \"/meteo/Cremeno\",2444 => \"/meteo/Cremia\",2445 => \"/meteo/Cremolino\",2446 => \"/meteo/Cremona\",2447 => \"/meteo/Cremosano\",2448 => \"/meteo/Crescentino\",2449 => \"/meteo/Crespadoro\",2450 => \"/meteo/Crespano+del+Grappa\",2451 => \"/meteo/Crespellano\",2452 => \"/meteo/Crespiatica\",2453 => \"/meteo/Crespina\",2454 => \"/meteo/Crespino\",2455 => \"/meteo/Cressa\",8247 => \"/meteo/Crest\",8741 => \"/meteo/Cresta+Youla\",8646 => \"/meteo/Crevacol\",2456 => \"/meteo/Crevacuore\",2457 => \"/meteo/Crevalcore\",2458 => \"/meteo/Crevoladossola\",2459 => \"/meteo/Crispano\",2460 => \"/meteo/Crispiano\",2461 => \"/meteo/Crissolo\",8355 => \"/meteo/Crissolo+Pian+delle+Regine\",2462 => \"/meteo/Crocefieschi\",2463 => \"/meteo/Crocetta+del+Montello\",2464 => \"/meteo/Crodo\",2465 => \"/meteo/Crognaleto\",2466 => \"/meteo/Cropalati\",2467 => \"/meteo/Cropani\",2468 => \"/meteo/Crosa\",2469 => \"/meteo/Crosia\",2470 => \"/meteo/Crosio+della+valle\",2471 => \"/meteo/Crotone\",8552 => \"/meteo/Crotone+Sant'Anna\",2472 => \"/meteo/Crotta+d'Adda\",2473 => \"/meteo/Crova\",2474 => \"/meteo/Croviana\",2475 => \"/meteo/Crucoli\",2476 => \"/meteo/Cuasso+al+monte\",2477 => \"/meteo/Cuccaro+monferrato\",2478 => \"/meteo/Cuccaro+Vetere\",2479 => \"/meteo/Cucciago\",2480 => \"/meteo/Cuceglio\",2481 => \"/meteo/Cuggiono\",2482 => \"/meteo/Cugliate-fabiasco\",2483 => \"/meteo/Cuglieri\",2484 => \"/meteo/Cugnoli\",8718 => \"/meteo/Cuma\",2485 => \"/meteo/Cumiana\",2486 => \"/meteo/Cumignano+sul+Naviglio\",2487 => \"/meteo/Cunardo\",2488 => \"/meteo/Cuneo\",8553 => \"/meteo/Cuneo+Levaldigi\",2489 => \"/meteo/Cunevo\",2490 => \"/meteo/Cunico\",2491 => \"/meteo/Cuorgne'\",2492 => \"/meteo/Cupello\",2493 => \"/meteo/Cupra+marittima\",2494 => \"/meteo/Cupramontana\",2495 => \"/meteo/Cura+carpignano\",2496 => \"/meteo/Curcuris\",2497 => \"/meteo/Cureggio\",2498 => \"/meteo/Curiglia+con+Monteviasco\",2499 => \"/meteo/Curinga\",2500 => \"/meteo/Curino\",2501 => \"/meteo/Curno\",2502 => \"/meteo/Curon+Venosta\",2503 => \"/meteo/Cursi\",2504 => \"/meteo/Cursolo+orasso\",2505 => \"/meteo/Curtarolo\",2506 => \"/meteo/Curtatone\",2507 => \"/meteo/Curti\",2508 => \"/meteo/Cusago\",2509 => \"/meteo/Cusano+milanino\",2510 => \"/meteo/Cusano+Mutri\",2511 => \"/meteo/Cusino\",2512 => \"/meteo/Cusio\",2513 => \"/meteo/Custonaci\",2514 => \"/meteo/Cutigliano\",2515 => \"/meteo/Cutro\",2516 => \"/meteo/Cutrofiano\",2517 => \"/meteo/Cuveglio\",2518 => \"/meteo/Cuvio\",2519 => \"/meteo/Daiano\",2520 => \"/meteo/Dairago\",2521 => \"/meteo/Dalmine\",2522 => \"/meteo/Dambel\",2523 => \"/meteo/Danta+di+cadore\",2524 => \"/meteo/Daone\",2525 => \"/meteo/Dare'\",2526 => \"/meteo/Darfo+Boario+terme\",2527 => \"/meteo/Dasa'\",2528 => \"/meteo/Davagna\",2529 => \"/meteo/Daverio\",2530 => \"/meteo/Davoli\",2531 => \"/meteo/Dazio\",2532 => \"/meteo/Decimomannu\",2533 => \"/meteo/Decimoputzu\",2534 => \"/meteo/Decollatura\",2535 => \"/meteo/Dego\",2536 => \"/meteo/Deiva+marina\",2537 => \"/meteo/Delebio\",2538 => \"/meteo/Delia\",2539 => \"/meteo/Delianuova\",2540 => \"/meteo/Deliceto\",2541 => \"/meteo/Dello\",2542 => \"/meteo/Demonte\",2543 => \"/meteo/Denice\",2544 => \"/meteo/Denno\",2545 => \"/meteo/Dernice\",2546 => \"/meteo/Derovere\",2547 => \"/meteo/Deruta\",2548 => \"/meteo/Dervio\",2549 => \"/meteo/Desana\",2550 => \"/meteo/Desenzano+del+Garda\",2551 => \"/meteo/Desio\",2552 => \"/meteo/Desulo\",2553 => \"/meteo/Diamante\",2554 => \"/meteo/Diano+arentino\",2555 => \"/meteo/Diano+castello\",2556 => \"/meteo/Diano+d'Alba\",2557 => \"/meteo/Diano+marina\",2558 => \"/meteo/Diano+San+Pietro\",2559 => \"/meteo/Dicomano\",2560 => \"/meteo/Dignano\",2561 => \"/meteo/Dimaro\",2562 => \"/meteo/Dinami\",2563 => \"/meteo/Dipignano\",2564 => \"/meteo/Diso\",2565 => \"/meteo/Divignano\",2566 => \"/meteo/Dizzasco\",2567 => \"/meteo/Dobbiaco\",2568 => \"/meteo/Doberdo'+del+lago\",8628 => \"/meteo/Doganaccia\",2569 => \"/meteo/Dogliani\",2570 => \"/meteo/Dogliola\",2571 => \"/meteo/Dogna\",2572 => \"/meteo/Dolce'\",2573 => \"/meteo/Dolceacqua\",2574 => \"/meteo/Dolcedo\",2575 => \"/meteo/Dolegna+del+collio\",2576 => \"/meteo/Dolianova\",2577 => \"/meteo/Dolo\",8616 => \"/meteo/Dolonne\",2578 => \"/meteo/Dolzago\",2579 => \"/meteo/Domanico\",2580 => \"/meteo/Domaso\",2581 => \"/meteo/Domegge+di+cadore\",2582 => \"/meteo/Domicella\",2583 => \"/meteo/Domodossola\",2584 => \"/meteo/Domus+de+Maria\",2585 => \"/meteo/Domusnovas\",2586 => \"/meteo/Don\",2587 => \"/meteo/Donato\",2588 => \"/meteo/Dongo\",2589 => \"/meteo/Donnas\",2590 => \"/meteo/Donori'\",2591 => \"/meteo/Dorgali\",2592 => \"/meteo/Dorio\",2593 => \"/meteo/Dormelletto\",2594 => \"/meteo/Dorno\",2595 => \"/meteo/Dorsino\",2596 => \"/meteo/Dorzano\",2597 => \"/meteo/Dosolo\",2598 => \"/meteo/Dossena\",2599 => \"/meteo/Dosso+del+liro\",8323 => \"/meteo/Dosso+Pasò\",2600 => \"/meteo/Doues\",2601 => \"/meteo/Dovadola\",2602 => \"/meteo/Dovera\",2603 => \"/meteo/Dozza\",2604 => \"/meteo/Dragoni\",2605 => \"/meteo/Drapia\",2606 => \"/meteo/Drena\",2607 => \"/meteo/Drenchia\",2608 => \"/meteo/Dresano\",2609 => \"/meteo/Drezzo\",2610 => \"/meteo/Drizzona\",2611 => \"/meteo/Dro\",2612 => \"/meteo/Dronero\",2613 => \"/meteo/Druento\",2614 => \"/meteo/Druogno\",2615 => \"/meteo/Dualchi\",2616 => \"/meteo/Dubino\",2617 => \"/meteo/Due+carrare\",2618 => \"/meteo/Dueville\",2619 => \"/meteo/Dugenta\",2620 => \"/meteo/Duino+aurisina\",2621 => \"/meteo/Dumenza\",2622 => \"/meteo/Duno\",2623 => \"/meteo/Durazzano\",2624 => \"/meteo/Duronia\",2625 => \"/meteo/Dusino+San+Michele\",2626 => \"/meteo/Eboli\",2627 => \"/meteo/Edolo\",2628 => \"/meteo/Egna\",2629 => \"/meteo/Elice\",2630 => \"/meteo/Elini\",2631 => \"/meteo/Ello\",2632 => \"/meteo/Elmas\",2633 => \"/meteo/Elva\",2634 => \"/meteo/Emarese\",2635 => \"/meteo/Empoli\",2636 => \"/meteo/Endine+gaiano\",2637 => \"/meteo/Enego\",2638 => \"/meteo/Enemonzo\",2639 => \"/meteo/Enna\",2640 => \"/meteo/Entracque\",2641 => \"/meteo/Entratico\",8222 => \"/meteo/Entreves\",2642 => \"/meteo/Envie\",8397 => \"/meteo/Episcopia\",2644 => \"/meteo/Eraclea\",2645 => \"/meteo/Erba\",2646 => \"/meteo/Erbe'\",2647 => \"/meteo/Erbezzo\",2648 => \"/meteo/Erbusco\",2649 => \"/meteo/Erchie\",2650 => \"/meteo/Ercolano\",8531 => \"/meteo/Eremo+di+Camaldoli\",8606 => \"/meteo/Eremo+di+Carpegna\",2651 => \"/meteo/Erice\",2652 => \"/meteo/Erli\",2653 => \"/meteo/Erto+e+casso\",2654 => \"/meteo/Erula\",2655 => \"/meteo/Erve\",2656 => \"/meteo/Esanatoglia\",2657 => \"/meteo/Escalaplano\",2658 => \"/meteo/Escolca\",2659 => \"/meteo/Esine\",2660 => \"/meteo/Esino+lario\",2661 => \"/meteo/Esperia\",2662 => \"/meteo/Esporlatu\",2663 => \"/meteo/Este\",2664 => \"/meteo/Esterzili\",2665 => \"/meteo/Etroubles\",2666 => \"/meteo/Eupilio\",2667 => \"/meteo/Exilles\",2668 => \"/meteo/Fabbrica+Curone\",2669 => \"/meteo/Fabbriche+di+vallico\",2670 => \"/meteo/Fabbrico\",2671 => \"/meteo/Fabriano\",2672 => \"/meteo/Fabrica+di+Roma\",2673 => \"/meteo/Fabrizia\",2674 => \"/meteo/Fabro\",8458 => \"/meteo/Fabro+casello\",2675 => \"/meteo/Faedis\",2676 => \"/meteo/Faedo\",2677 => \"/meteo/Faedo+valtellino\",2678 => \"/meteo/Faenza\",2679 => \"/meteo/Faeto\",2680 => \"/meteo/Fagagna\",2681 => \"/meteo/Faggeto+lario\",2682 => \"/meteo/Faggiano\",2683 => \"/meteo/Fagnano+alto\",2684 => \"/meteo/Fagnano+castello\",2685 => \"/meteo/Fagnano+olona\",2686 => \"/meteo/Fai+della+paganella\",2687 => \"/meteo/Faicchio\",2688 => \"/meteo/Falcade\",2689 => \"/meteo/Falciano+del+massico\",2690 => \"/meteo/Falconara+albanese\",2691 => \"/meteo/Falconara+marittima\",2692 => \"/meteo/Falcone\",2693 => \"/meteo/Faleria\",2694 => \"/meteo/Falerna\",8116 => \"/meteo/Falerna+Marina\",2695 => \"/meteo/Falerone\",2696 => \"/meteo/Fallo\",2697 => \"/meteo/Falmenta\",2698 => \"/meteo/Faloppio\",2699 => \"/meteo/Falvaterra\",2700 => \"/meteo/Falzes\",2701 => \"/meteo/Fanano\",2702 => \"/meteo/Fanna\",2703 => \"/meteo/Fano\",2704 => \"/meteo/Fano+adriano\",2705 => \"/meteo/Fara+Filiorum+Petri\",2706 => \"/meteo/Fara+gera+d'Adda\",2707 => \"/meteo/Fara+in+sabina\",2708 => \"/meteo/Fara+novarese\",2709 => \"/meteo/Fara+Olivana+con+Sola\",2710 => \"/meteo/Fara+San+Martino\",2711 => \"/meteo/Fara+vicentino\",8360 => \"/meteo/Fardella\",2713 => \"/meteo/Farigliano\",2714 => \"/meteo/Farindola\",2715 => \"/meteo/Farini\",2716 => \"/meteo/Farnese\",2717 => \"/meteo/Farra+d'alpago\",2718 => \"/meteo/Farra+d'Isonzo\",2719 => \"/meteo/Farra+di+soligo\",2720 => \"/meteo/Fasano\",2721 => \"/meteo/Fascia\",2722 => \"/meteo/Fauglia\",2723 => \"/meteo/Faule\",2724 => \"/meteo/Favale+di+malvaro\",2725 => \"/meteo/Favara\",2726 => \"/meteo/Faver\",2727 => \"/meteo/Favignana\",2728 => \"/meteo/Favria\",2729 => \"/meteo/Feisoglio\",2730 => \"/meteo/Feletto\",2731 => \"/meteo/Felino\",2732 => \"/meteo/Felitto\",2733 => \"/meteo/Felizzano\",2734 => \"/meteo/Felonica\",2735 => \"/meteo/Feltre\",2736 => \"/meteo/Fenegro'\",2737 => \"/meteo/Fenestrelle\",2738 => \"/meteo/Fenis\",2739 => \"/meteo/Ferentillo\",2740 => \"/meteo/Ferentino\",2741 => \"/meteo/Ferla\",2742 => \"/meteo/Fermignano\",2743 => \"/meteo/Fermo\",2744 => \"/meteo/Ferno\",2745 => \"/meteo/Feroleto+Antico\",2746 => \"/meteo/Feroleto+della+chiesa\",8370 => \"/meteo/Ferrandina\",2748 => \"/meteo/Ferrara\",2749 => \"/meteo/Ferrara+di+monte+Baldo\",2750 => \"/meteo/Ferrazzano\",2751 => \"/meteo/Ferrera+di+Varese\",2752 => \"/meteo/Ferrera+Erbognone\",2753 => \"/meteo/Ferrere\",2754 => \"/meteo/Ferriere\",2755 => \"/meteo/Ferruzzano\",2756 => \"/meteo/Fiamignano\",2757 => \"/meteo/Fiano\",2758 => \"/meteo/Fiano+romano\",2759 => \"/meteo/Fiastra\",2760 => \"/meteo/Fiave'\",2761 => \"/meteo/Ficarazzi\",2762 => \"/meteo/Ficarolo\",2763 => \"/meteo/Ficarra\",2764 => \"/meteo/Ficulle\",2765 => \"/meteo/Fidenza\",2766 => \"/meteo/Fie'+allo+Sciliar\",2767 => \"/meteo/Fiera+di+primiero\",2768 => \"/meteo/Fierozzo\",2769 => \"/meteo/Fiesco\",2770 => \"/meteo/Fiesole\",2771 => \"/meteo/Fiesse\",2772 => \"/meteo/Fiesso+d'Artico\",2773 => \"/meteo/Fiesso+Umbertiano\",2774 => \"/meteo/Figino+Serenza\",2775 => \"/meteo/Figline+valdarno\",2776 => \"/meteo/Figline+Vegliaturo\",2777 => \"/meteo/Filacciano\",2778 => \"/meteo/Filadelfia\",2779 => \"/meteo/Filago\",2780 => \"/meteo/Filandari\",2781 => \"/meteo/Filattiera\",2782 => \"/meteo/Filettino\",2783 => \"/meteo/Filetto\",8392 => \"/meteo/Filiano\",2785 => \"/meteo/Filighera\",2786 => \"/meteo/Filignano\",2787 => \"/meteo/Filogaso\",2788 => \"/meteo/Filottrano\",2789 => \"/meteo/Finale+emilia\",2790 => \"/meteo/Finale+ligure\",2791 => \"/meteo/Fino+del+monte\",2792 => \"/meteo/Fino+Mornasco\",2793 => \"/meteo/Fiorano+al+Serio\",2794 => \"/meteo/Fiorano+canavese\",2795 => \"/meteo/Fiorano+modenese\",2796 => \"/meteo/Fiordimonte\",2797 => \"/meteo/Fiorenzuola+d'arda\",2798 => \"/meteo/Firenze\",8270 => \"/meteo/Firenze+Peretola\",2799 => \"/meteo/Firenzuola\",2800 => \"/meteo/Firmo\",2801 => \"/meteo/Fisciano\",2802 => \"/meteo/Fiuggi\",2803 => \"/meteo/Fiumalbo\",2804 => \"/meteo/Fiumara\",8489 => \"/meteo/Fiumata\",2805 => \"/meteo/Fiume+veneto\",2806 => \"/meteo/Fiumedinisi\",2807 => \"/meteo/Fiumefreddo+Bruzio\",2808 => \"/meteo/Fiumefreddo+di+Sicilia\",2809 => \"/meteo/Fiumicello\",2810 => \"/meteo/Fiumicino\",2811 => \"/meteo/Fiuminata\",2812 => \"/meteo/Fivizzano\",2813 => \"/meteo/Flaibano\",2814 => \"/meteo/Flavon\",2815 => \"/meteo/Flero\",2816 => \"/meteo/Floresta\",2817 => \"/meteo/Floridia\",2818 => \"/meteo/Florinas\",2819 => \"/meteo/Flumeri\",2820 => \"/meteo/Fluminimaggiore\",2821 => \"/meteo/Flussio\",2822 => \"/meteo/Fobello\",2823 => \"/meteo/Foggia\",2824 => \"/meteo/Foglianise\",2825 => \"/meteo/Fogliano+redipuglia\",2826 => \"/meteo/Foglizzo\",2827 => \"/meteo/Foiano+della+chiana\",2828 => \"/meteo/Foiano+di+val+fortore\",2829 => \"/meteo/Folgaria\",8202 => \"/meteo/Folgarida\",2830 => \"/meteo/Folignano\",2831 => \"/meteo/Foligno\",2832 => \"/meteo/Follina\",2833 => \"/meteo/Follo\",2834 => \"/meteo/Follonica\",2835 => \"/meteo/Fombio\",2836 => \"/meteo/Fondachelli+Fantina\",2837 => \"/meteo/Fondi\",2838 => \"/meteo/Fondo\",2839 => \"/meteo/Fonni\",2840 => \"/meteo/Fontainemore\",2841 => \"/meteo/Fontana+liri\",2842 => \"/meteo/Fontanafredda\",2843 => \"/meteo/Fontanarosa\",8185 => \"/meteo/Fontane+Bianche\",2844 => \"/meteo/Fontanelice\",2845 => \"/meteo/Fontanella\",2846 => \"/meteo/Fontanellato\",2847 => \"/meteo/Fontanelle\",2848 => \"/meteo/Fontaneto+d'Agogna\",2849 => \"/meteo/Fontanetto+po\",2850 => \"/meteo/Fontanigorda\",2851 => \"/meteo/Fontanile\",2852 => \"/meteo/Fontaniva\",2853 => \"/meteo/Fonte\",8643 => \"/meteo/Fonte+Cerreto\",2854 => \"/meteo/Fonte+Nuova\",2855 => \"/meteo/Fontecchio\",2856 => \"/meteo/Fontechiari\",2857 => \"/meteo/Fontegreca\",2858 => \"/meteo/Fonteno\",2859 => \"/meteo/Fontevivo\",2860 => \"/meteo/Fonzaso\",2861 => \"/meteo/Foppolo\",8540 => \"/meteo/Foppolo+IV+Baita\",2862 => \"/meteo/Forano\",2863 => \"/meteo/Force\",2864 => \"/meteo/Forchia\",2865 => \"/meteo/Forcola\",2866 => \"/meteo/Fordongianus\",2867 => \"/meteo/Forenza\",2868 => \"/meteo/Foresto+sparso\",2869 => \"/meteo/Forgaria+nel+friuli\",2870 => \"/meteo/Forino\",2871 => \"/meteo/Forio\",8551 => \"/meteo/Forlì+Ridolfi\",2872 => \"/meteo/Forli'\",2873 => \"/meteo/Forli'+del+sannio\",2874 => \"/meteo/Forlimpopoli\",2875 => \"/meteo/Formazza\",2876 => \"/meteo/Formello\",2877 => \"/meteo/Formia\",2878 => \"/meteo/Formicola\",2879 => \"/meteo/Formigara\",2880 => \"/meteo/Formigine\",2881 => \"/meteo/Formigliana\",2882 => \"/meteo/Formignana\",2883 => \"/meteo/Fornace\",2884 => \"/meteo/Fornelli\",2885 => \"/meteo/Forni+Avoltri\",2886 => \"/meteo/Forni+di+sopra\",2887 => \"/meteo/Forni+di+sotto\",8161 => \"/meteo/Forno+Alpi+Graie\",2888 => \"/meteo/Forno+canavese\",2889 => \"/meteo/Forno+di+Zoldo\",2890 => \"/meteo/Fornovo+di+Taro\",2891 => \"/meteo/Fornovo+San+Giovanni\",2892 => \"/meteo/Forte+dei+marmi\",2893 => \"/meteo/Fortezza\",2894 => \"/meteo/Fortunago\",2895 => \"/meteo/Forza+d'Agro'\",2896 => \"/meteo/Fosciandora\",8435 => \"/meteo/Fosdinovo\",2898 => \"/meteo/Fossa\",2899 => \"/meteo/Fossacesia\",2900 => \"/meteo/Fossalta+di+Piave\",2901 => \"/meteo/Fossalta+di+Portogruaro\",2902 => \"/meteo/Fossalto\",2903 => \"/meteo/Fossano\",2904 => \"/meteo/Fossato+di+vico\",2905 => \"/meteo/Fossato+serralta\",2906 => \"/meteo/Fosso'\",2907 => \"/meteo/Fossombrone\",2908 => \"/meteo/Foza\",2909 => \"/meteo/Frabosa+soprana\",2910 => \"/meteo/Frabosa+sottana\",2911 => \"/meteo/Fraconalto\",2912 => \"/meteo/Fragagnano\",2913 => \"/meteo/Fragneto+l'abate\",2914 => \"/meteo/Fragneto+monforte\",2915 => \"/meteo/Fraine\",2916 => \"/meteo/Framura\",2917 => \"/meteo/Francavilla+al+mare\",2918 => \"/meteo/Francavilla+angitola\",2919 => \"/meteo/Francavilla+bisio\",2920 => \"/meteo/Francavilla+d'ete\",2921 => \"/meteo/Francavilla+di+Sicilia\",2922 => \"/meteo/Francavilla+fontana\",8380 => \"/meteo/Francavilla+in+sinni\",2924 => \"/meteo/Francavilla+marittima\",2925 => \"/meteo/Francica\",2926 => \"/meteo/Francofonte\",2927 => \"/meteo/Francolise\",2928 => \"/meteo/Frascaro\",2929 => \"/meteo/Frascarolo\",2930 => \"/meteo/Frascati\",2931 => \"/meteo/Frascineto\",2932 => \"/meteo/Frassilongo\",2933 => \"/meteo/Frassinelle+polesine\",2934 => \"/meteo/Frassinello+monferrato\",2935 => \"/meteo/Frassineto+po\",2936 => \"/meteo/Frassinetto\",2937 => \"/meteo/Frassino\",2938 => \"/meteo/Frassinoro\",2939 => \"/meteo/Frasso+sabino\",2940 => \"/meteo/Frasso+telesino\",2941 => \"/meteo/Fratta+polesine\",2942 => \"/meteo/Fratta+todina\",2943 => \"/meteo/Frattamaggiore\",2944 => \"/meteo/Frattaminore\",2945 => \"/meteo/Fratte+rosa\",2946 => \"/meteo/Frazzano'\",8137 => \"/meteo/Fregene\",2947 => \"/meteo/Fregona\",8667 => \"/meteo/Frejusia\",2948 => \"/meteo/Fresagrandinaria\",2949 => \"/meteo/Fresonara\",2950 => \"/meteo/Frigento\",2951 => \"/meteo/Frignano\",2952 => \"/meteo/Frinco\",2953 => \"/meteo/Frisa\",2954 => \"/meteo/Frisanco\",2955 => \"/meteo/Front\",8153 => \"/meteo/Frontignano\",2956 => \"/meteo/Frontino\",2957 => \"/meteo/Frontone\",8751 => \"/meteo/Frontone+-+Monte+Catria\",2958 => \"/meteo/Frosinone\",8464 => \"/meteo/Frosinone+casello\",2959 => \"/meteo/Frosolone\",2960 => \"/meteo/Frossasco\",2961 => \"/meteo/Frugarolo\",2962 => \"/meteo/Fubine\",2963 => \"/meteo/Fucecchio\",2964 => \"/meteo/Fuipiano+valle+imagna\",2965 => \"/meteo/Fumane\",2966 => \"/meteo/Fumone\",2967 => \"/meteo/Funes\",2968 => \"/meteo/Furci\",2969 => \"/meteo/Furci+siculo\",2970 => \"/meteo/Furnari\",2971 => \"/meteo/Furore\",2972 => \"/meteo/Furtei\",2973 => \"/meteo/Fuscaldo\",2974 => \"/meteo/Fusignano\",2975 => \"/meteo/Fusine\",8702 => \"/meteo/Fusine+di+Zoldo\",8131 => \"/meteo/Fusine+in+Valromana\",2976 => \"/meteo/Futani\",2977 => \"/meteo/Gabbioneta+binanuova\",2978 => \"/meteo/Gabiano\",2979 => \"/meteo/Gabicce+mare\",8252 => \"/meteo/Gabiet\",2980 => \"/meteo/Gaby\",2981 => \"/meteo/Gadesco+Pieve+Delmona\",2982 => \"/meteo/Gadoni\",2983 => \"/meteo/Gaeta\",2984 => \"/meteo/Gaggi\",2985 => \"/meteo/Gaggiano\",2986 => \"/meteo/Gaggio+montano\",2987 => \"/meteo/Gaglianico\",2988 => \"/meteo/Gagliano+aterno\",2989 => \"/meteo/Gagliano+castelferrato\",2990 => \"/meteo/Gagliano+del+capo\",2991 => \"/meteo/Gagliato\",2992 => \"/meteo/Gagliole\",2993 => \"/meteo/Gaiarine\",2994 => \"/meteo/Gaiba\",2995 => \"/meteo/Gaiola\",2996 => \"/meteo/Gaiole+in+chianti\",2997 => \"/meteo/Gairo\",2998 => \"/meteo/Gais\",2999 => \"/meteo/Galati+Mamertino\",3000 => \"/meteo/Galatina\",3001 => \"/meteo/Galatone\",3002 => \"/meteo/Galatro\",3003 => \"/meteo/Galbiate\",3004 => \"/meteo/Galeata\",3005 => \"/meteo/Galgagnano\",3006 => \"/meteo/Gallarate\",3007 => \"/meteo/Gallese\",3008 => \"/meteo/Galliate\",3009 => \"/meteo/Galliate+lombardo\",3010 => \"/meteo/Galliavola\",3011 => \"/meteo/Gallicano\",3012 => \"/meteo/Gallicano+nel+Lazio\",8364 => \"/meteo/Gallicchio\",3014 => \"/meteo/Galliera\",3015 => \"/meteo/Galliera+veneta\",3016 => \"/meteo/Gallinaro\",3017 => \"/meteo/Gallio\",3018 => \"/meteo/Gallipoli\",3019 => \"/meteo/Gallo+matese\",3020 => \"/meteo/Gallodoro\",3021 => \"/meteo/Galluccio\",8315 => \"/meteo/Galluzzo\",3022 => \"/meteo/Galtelli\",3023 => \"/meteo/Galzignano+terme\",3024 => \"/meteo/Gamalero\",3025 => \"/meteo/Gambara\",3026 => \"/meteo/Gambarana\",8105 => \"/meteo/Gambarie\",3027 => \"/meteo/Gambasca\",3028 => \"/meteo/Gambassi+terme\",3029 => \"/meteo/Gambatesa\",3030 => \"/meteo/Gambellara\",3031 => \"/meteo/Gamberale\",3032 => \"/meteo/Gambettola\",3033 => \"/meteo/Gambolo'\",3034 => \"/meteo/Gambugliano\",3035 => \"/meteo/Gandellino\",3036 => \"/meteo/Gandino\",3037 => \"/meteo/Gandosso\",3038 => \"/meteo/Gangi\",8425 => \"/meteo/Garaguso\",3040 => \"/meteo/Garbagna\",3041 => \"/meteo/Garbagna+novarese\",3042 => \"/meteo/Garbagnate+milanese\",3043 => \"/meteo/Garbagnate+monastero\",3044 => \"/meteo/Garda\",3045 => \"/meteo/Gardone+riviera\",3046 => \"/meteo/Gardone+val+trompia\",3047 => \"/meteo/Garessio\",8349 => \"/meteo/Garessio+2000\",3048 => \"/meteo/Gargallo\",3049 => \"/meteo/Gargazzone\",3050 => \"/meteo/Gargnano\",3051 => \"/meteo/Garlasco\",3052 => \"/meteo/Garlate\",3053 => \"/meteo/Garlenda\",3054 => \"/meteo/Garniga\",3055 => \"/meteo/Garzeno\",3056 => \"/meteo/Garzigliana\",3057 => \"/meteo/Gasperina\",3058 => \"/meteo/Gassino+torinese\",3059 => \"/meteo/Gattatico\",3060 => \"/meteo/Gatteo\",3061 => \"/meteo/Gattico\",3062 => \"/meteo/Gattinara\",3063 => \"/meteo/Gavardo\",3064 => \"/meteo/Gavazzana\",3065 => \"/meteo/Gavello\",3066 => \"/meteo/Gaverina+terme\",3067 => \"/meteo/Gavi\",3068 => \"/meteo/Gavignano\",3069 => \"/meteo/Gavirate\",3070 => \"/meteo/Gavoi\",3071 => \"/meteo/Gavorrano\",3072 => \"/meteo/Gazoldo+degli+ippoliti\",3073 => \"/meteo/Gazzada+schianno\",3074 => \"/meteo/Gazzaniga\",3075 => \"/meteo/Gazzo\",3076 => \"/meteo/Gazzo+veronese\",3077 => \"/meteo/Gazzola\",3078 => \"/meteo/Gazzuolo\",3079 => \"/meteo/Gela\",3080 => \"/meteo/Gemmano\",3081 => \"/meteo/Gemona+del+friuli\",3082 => \"/meteo/Gemonio\",3083 => \"/meteo/Genazzano\",3084 => \"/meteo/Genga\",3085 => \"/meteo/Genivolta\",3086 => \"/meteo/Genola\",3087 => \"/meteo/Genoni\",3088 => \"/meteo/Genova\",8506 => \"/meteo/Genova+Nervi\",8276 => \"/meteo/Genova+Sestri\",3089 => \"/meteo/Genuri\",3090 => \"/meteo/Genzano+di+lucania\",3091 => \"/meteo/Genzano+di+roma\",3092 => \"/meteo/Genzone\",3093 => \"/meteo/Gera+lario\",3094 => \"/meteo/Gerace\",3095 => \"/meteo/Geraci+siculo\",3096 => \"/meteo/Gerano\",8176 => \"/meteo/Geremeas\",3097 => \"/meteo/Gerenzago\",3098 => \"/meteo/Gerenzano\",3099 => \"/meteo/Gergei\",3100 => \"/meteo/Germagnano\",3101 => \"/meteo/Germagno\",3102 => \"/meteo/Germasino\",3103 => \"/meteo/Germignaga\",8303 => \"/meteo/Gerno+di+Lesmo\",3104 => \"/meteo/Gerocarne\",3105 => \"/meteo/Gerola+alta\",3106 => \"/meteo/Gerosa\",3107 => \"/meteo/Gerre+de'caprioli\",3108 => \"/meteo/Gesico\",3109 => \"/meteo/Gessate\",3110 => \"/meteo/Gessopalena\",3111 => \"/meteo/Gesturi\",3112 => \"/meteo/Gesualdo\",3113 => \"/meteo/Ghedi\",3114 => \"/meteo/Ghemme\",8236 => \"/meteo/Ghiacciaio+Presena\",3115 => \"/meteo/Ghiffa\",3116 => \"/meteo/Ghilarza\",3117 => \"/meteo/Ghisalba\",3118 => \"/meteo/Ghislarengo\",3119 => \"/meteo/Giacciano+con+baruchella\",3120 => \"/meteo/Giaglione\",3121 => \"/meteo/Gianico\",3122 => \"/meteo/Giano+dell'umbria\",3123 => \"/meteo/Giano+vetusto\",3124 => \"/meteo/Giardinello\",3125 => \"/meteo/Giardini+Naxos\",3126 => \"/meteo/Giarole\",3127 => \"/meteo/Giarratana\",3128 => \"/meteo/Giarre\",3129 => \"/meteo/Giave\",3130 => \"/meteo/Giaveno\",3131 => \"/meteo/Giavera+del+montello\",3132 => \"/meteo/Giba\",3133 => \"/meteo/Gibellina\",3134 => \"/meteo/Gifflenga\",3135 => \"/meteo/Giffone\",3136 => \"/meteo/Giffoni+sei+casali\",3137 => \"/meteo/Giffoni+valle+piana\",3380 => \"/meteo/Giglio+castello\",3138 => \"/meteo/Gignese\",3139 => \"/meteo/Gignod\",3140 => \"/meteo/Gildone\",3141 => \"/meteo/Gimigliano\",8403 => \"/meteo/Ginestra\",3143 => \"/meteo/Ginestra+degli+schiavoni\",8430 => \"/meteo/Ginosa\",3145 => \"/meteo/Gioi\",3146 => \"/meteo/Gioia+dei+marsi\",3147 => \"/meteo/Gioia+del+colle\",3148 => \"/meteo/Gioia+sannitica\",3149 => \"/meteo/Gioia+tauro\",3150 => \"/meteo/Gioiosa+ionica\",3151 => \"/meteo/Gioiosa+marea\",3152 => \"/meteo/Giove\",3153 => \"/meteo/Giovinazzo\",3154 => \"/meteo/Giovo\",3155 => \"/meteo/Girasole\",3156 => \"/meteo/Girifalco\",3157 => \"/meteo/Gironico\",3158 => \"/meteo/Gissi\",3159 => \"/meteo/Giuggianello\",3160 => \"/meteo/Giugliano+in+campania\",3161 => \"/meteo/Giuliana\",3162 => \"/meteo/Giuliano+di+roma\",3163 => \"/meteo/Giuliano+teatino\",3164 => \"/meteo/Giulianova\",3165 => \"/meteo/Giuncugnano\",3166 => \"/meteo/Giungano\",3167 => \"/meteo/Giurdignano\",3168 => \"/meteo/Giussago\",3169 => \"/meteo/Giussano\",3170 => \"/meteo/Giustenice\",3171 => \"/meteo/Giustino\",3172 => \"/meteo/Giusvalla\",3173 => \"/meteo/Givoletto\",3174 => \"/meteo/Gizzeria\",3175 => \"/meteo/Glorenza\",3176 => \"/meteo/Godega+di+sant'urbano\",3177 => \"/meteo/Godiasco\",3178 => \"/meteo/Godrano\",3179 => \"/meteo/Goito\",3180 => \"/meteo/Golasecca\",3181 => \"/meteo/Golferenzo\",3182 => \"/meteo/Golfo+aranci\",3183 => \"/meteo/Gombito\",3184 => \"/meteo/Gonars\",3185 => \"/meteo/Goni\",3186 => \"/meteo/Gonnesa\",3187 => \"/meteo/Gonnoscodina\",3188 => \"/meteo/Gonnosfanadiga\",3189 => \"/meteo/Gonnosno'\",3190 => \"/meteo/Gonnostramatza\",3191 => \"/meteo/Gonzaga\",3192 => \"/meteo/Gordona\",3193 => \"/meteo/Gorga\",3194 => \"/meteo/Gorgo+al+monticano\",3195 => \"/meteo/Gorgoglione\",3196 => \"/meteo/Gorgonzola\",3197 => \"/meteo/Goriano+sicoli\",3198 => \"/meteo/Gorizia\",3199 => \"/meteo/Gorla+maggiore\",3200 => \"/meteo/Gorla+minore\",3201 => \"/meteo/Gorlago\",3202 => \"/meteo/Gorle\",3203 => \"/meteo/Gornate+olona\",3204 => \"/meteo/Gorno\",3205 => \"/meteo/Goro\",3206 => \"/meteo/Gorreto\",3207 => \"/meteo/Gorzegno\",3208 => \"/meteo/Gosaldo\",3209 => \"/meteo/Gossolengo\",3210 => \"/meteo/Gottasecca\",3211 => \"/meteo/Gottolengo\",3212 => \"/meteo/Govone\",3213 => \"/meteo/Gozzano\",3214 => \"/meteo/Gradara\",3215 => \"/meteo/Gradisca+d'isonzo\",3216 => \"/meteo/Grado\",3217 => \"/meteo/Gradoli\",3218 => \"/meteo/Graffignana\",3219 => \"/meteo/Graffignano\",3220 => \"/meteo/Graglia\",3221 => \"/meteo/Gragnano\",3222 => \"/meteo/Gragnano+trebbiense\",3223 => \"/meteo/Grammichele\",8485 => \"/meteo/Gran+Paradiso\",3224 => \"/meteo/Grana\",3225 => \"/meteo/Granaglione\",3226 => \"/meteo/Granarolo+dell'emilia\",3227 => \"/meteo/Grancona\",8728 => \"/meteo/Grand+Combin\",8327 => \"/meteo/Grand+Crot\",3228 => \"/meteo/Grandate\",3229 => \"/meteo/Grandola+ed+uniti\",3230 => \"/meteo/Graniti\",3231 => \"/meteo/Granozzo+con+monticello\",3232 => \"/meteo/Grantola\",3233 => \"/meteo/Grantorto\",3234 => \"/meteo/Granze\",8371 => \"/meteo/Grassano\",8504 => \"/meteo/Grassina\",3236 => \"/meteo/Grassobbio\",3237 => \"/meteo/Gratteri\",3238 => \"/meteo/Grauno\",3239 => \"/meteo/Gravedona\",3240 => \"/meteo/Gravellona+lomellina\",3241 => \"/meteo/Gravellona+toce\",3242 => \"/meteo/Gravere\",3243 => \"/meteo/Gravina+di+Catania\",3244 => \"/meteo/Gravina+in+puglia\",3245 => \"/meteo/Grazzanise\",3246 => \"/meteo/Grazzano+badoglio\",3247 => \"/meteo/Greccio\",3248 => \"/meteo/Greci\",3249 => \"/meteo/Greggio\",3250 => \"/meteo/Gremiasco\",3251 => \"/meteo/Gressan\",3252 => \"/meteo/Gressoney+la+trinite'\",3253 => \"/meteo/Gressoney+saint+jean\",3254 => \"/meteo/Greve+in+chianti\",3255 => \"/meteo/Grezzago\",3256 => \"/meteo/Grezzana\",3257 => \"/meteo/Griante\",3258 => \"/meteo/Gricignano+di+aversa\",8733 => \"/meteo/Grigna\",3259 => \"/meteo/Grignasco\",3260 => \"/meteo/Grigno\",3261 => \"/meteo/Grimacco\",3262 => \"/meteo/Grimaldi\",3263 => \"/meteo/Grinzane+cavour\",3264 => \"/meteo/Grisignano+di+zocco\",3265 => \"/meteo/Grisolia\",8520 => \"/meteo/Grivola\",3266 => \"/meteo/Grizzana+morandi\",3267 => \"/meteo/Grognardo\",3268 => \"/meteo/Gromo\",3269 => \"/meteo/Grondona\",3270 => \"/meteo/Grone\",3271 => \"/meteo/Grontardo\",3272 => \"/meteo/Gropello+cairoli\",3273 => \"/meteo/Gropparello\",3274 => \"/meteo/Groscavallo\",3275 => \"/meteo/Grosio\",3276 => \"/meteo/Grosotto\",3277 => \"/meteo/Grosseto\",3278 => \"/meteo/Grosso\",3279 => \"/meteo/Grottaferrata\",3280 => \"/meteo/Grottaglie\",3281 => \"/meteo/Grottaminarda\",3282 => \"/meteo/Grottammare\",3283 => \"/meteo/Grottazzolina\",3284 => \"/meteo/Grotte\",3285 => \"/meteo/Grotte+di+castro\",3286 => \"/meteo/Grotteria\",3287 => \"/meteo/Grottole\",3288 => \"/meteo/Grottolella\",3289 => \"/meteo/Gruaro\",3290 => \"/meteo/Grugliasco\",3291 => \"/meteo/Grumello+cremonese+ed+uniti\",3292 => \"/meteo/Grumello+del+monte\",8414 => \"/meteo/Grumento+nova\",3294 => \"/meteo/Grumes\",3295 => \"/meteo/Grumo+appula\",3296 => \"/meteo/Grumo+nevano\",3297 => \"/meteo/Grumolo+delle+abbadesse\",3298 => \"/meteo/Guagnano\",3299 => \"/meteo/Gualdo\",3300 => \"/meteo/Gualdo+Cattaneo\",3301 => \"/meteo/Gualdo+tadino\",3302 => \"/meteo/Gualtieri\",3303 => \"/meteo/Gualtieri+sicamino'\",3304 => \"/meteo/Guamaggiore\",3305 => \"/meteo/Guanzate\",3306 => \"/meteo/Guarcino\",3307 => \"/meteo/Guarda+veneta\",3308 => \"/meteo/Guardabosone\",3309 => \"/meteo/Guardamiglio\",3310 => \"/meteo/Guardavalle\",3311 => \"/meteo/Guardea\",3312 => \"/meteo/Guardia+lombardi\",8365 => \"/meteo/Guardia+perticara\",3314 => \"/meteo/Guardia+piemontese\",3315 => \"/meteo/Guardia+sanframondi\",3316 => \"/meteo/Guardiagrele\",3317 => \"/meteo/Guardialfiera\",3318 => \"/meteo/Guardiaregia\",3319 => \"/meteo/Guardistallo\",3320 => \"/meteo/Guarene\",3321 => \"/meteo/Guasila\",3322 => \"/meteo/Guastalla\",3323 => \"/meteo/Guazzora\",3324 => \"/meteo/Gubbio\",3325 => \"/meteo/Gudo+visconti\",3326 => \"/meteo/Guglionesi\",3327 => \"/meteo/Guidizzolo\",8508 => \"/meteo/Guidonia\",3328 => \"/meteo/Guidonia+montecelio\",3329 => \"/meteo/Guiglia\",3330 => \"/meteo/Guilmi\",3331 => \"/meteo/Gurro\",3332 => \"/meteo/Guspini\",3333 => \"/meteo/Gussago\",3334 => \"/meteo/Gussola\",3335 => \"/meteo/Hone\",8587 => \"/meteo/I+Prati\",3336 => \"/meteo/Idro\",3337 => \"/meteo/Iglesias\",3338 => \"/meteo/Igliano\",3339 => \"/meteo/Ilbono\",3340 => \"/meteo/Illasi\",3341 => \"/meteo/Illorai\",3342 => \"/meteo/Imbersago\",3343 => \"/meteo/Imer\",3344 => \"/meteo/Imola\",3345 => \"/meteo/Imperia\",3346 => \"/meteo/Impruneta\",3347 => \"/meteo/Inarzo\",3348 => \"/meteo/Incisa+in+val+d'arno\",3349 => \"/meteo/Incisa+scapaccino\",3350 => \"/meteo/Incudine\",3351 => \"/meteo/Induno+olona\",3352 => \"/meteo/Ingria\",3353 => \"/meteo/Intragna\",3354 => \"/meteo/Introbio\",3355 => \"/meteo/Introd\",3356 => \"/meteo/Introdacqua\",3357 => \"/meteo/Introzzo\",3358 => \"/meteo/Inverigo\",3359 => \"/meteo/Inverno+e+monteleone\",3360 => \"/meteo/Inverso+pinasca\",3361 => \"/meteo/Inveruno\",3362 => \"/meteo/Invorio\",3363 => \"/meteo/Inzago\",3364 => \"/meteo/Ionadi\",3365 => \"/meteo/Irgoli\",3366 => \"/meteo/Irma\",3367 => \"/meteo/Irsina\",3368 => \"/meteo/Isasca\",3369 => \"/meteo/Isca+sullo+ionio\",3370 => \"/meteo/Ischia\",3371 => \"/meteo/Ischia+di+castro\",3372 => \"/meteo/Ischitella\",3373 => \"/meteo/Iseo\",3374 => \"/meteo/Isera\",3375 => \"/meteo/Isernia\",3376 => \"/meteo/Isili\",3377 => \"/meteo/Isnello\",8742 => \"/meteo/Isola+Albarella\",3378 => \"/meteo/Isola+d'asti\",3379 => \"/meteo/Isola+del+cantone\",8190 => \"/meteo/Isola+del+Giglio\",3381 => \"/meteo/Isola+del+gran+sasso+d'italia\",3382 => \"/meteo/Isola+del+liri\",3383 => \"/meteo/Isola+del+piano\",3384 => \"/meteo/Isola+della+scala\",3385 => \"/meteo/Isola+delle+femmine\",3386 => \"/meteo/Isola+di+capo+rizzuto\",3387 => \"/meteo/Isola+di+fondra\",8671 => \"/meteo/Isola+di+Giannutri\",3388 => \"/meteo/Isola+dovarese\",3389 => \"/meteo/Isola+rizza\",8173 => \"/meteo/Isola+Rossa\",8183 => \"/meteo/Isola+Salina\",3390 => \"/meteo/Isola+sant'antonio\",3391 => \"/meteo/Isola+vicentina\",3392 => \"/meteo/Isolabella\",3393 => \"/meteo/Isolabona\",3394 => \"/meteo/Isole+tremiti\",3395 => \"/meteo/Isorella\",3396 => \"/meteo/Ispani\",3397 => \"/meteo/Ispica\",3398 => \"/meteo/Ispra\",3399 => \"/meteo/Issiglio\",3400 => \"/meteo/Issime\",3401 => \"/meteo/Isso\",3402 => \"/meteo/Issogne\",3403 => \"/meteo/Istrana\",3404 => \"/meteo/Itala\",3405 => \"/meteo/Itri\",3406 => \"/meteo/Ittireddu\",3407 => \"/meteo/Ittiri\",3408 => \"/meteo/Ivano+fracena\",3409 => \"/meteo/Ivrea\",3410 => \"/meteo/Izano\",3411 => \"/meteo/Jacurso\",3412 => \"/meteo/Jelsi\",3413 => \"/meteo/Jenne\",3414 => \"/meteo/Jerago+con+Orago\",3415 => \"/meteo/Jerzu\",3416 => \"/meteo/Jesi\",3417 => \"/meteo/Jesolo\",3418 => \"/meteo/Jolanda+di+Savoia\",3419 => \"/meteo/Joppolo\",3420 => \"/meteo/Joppolo+Giancaxio\",3421 => \"/meteo/Jovencan\",8568 => \"/meteo/Klausberg\",3422 => \"/meteo/L'Aquila\",3423 => \"/meteo/La+Cassa\",8227 => \"/meteo/La+Lechere\",3424 => \"/meteo/La+Loggia\",3425 => \"/meteo/La+Maddalena\",3426 => \"/meteo/La+Magdeleine\",3427 => \"/meteo/La+Morra\",8617 => \"/meteo/La+Palud\",3428 => \"/meteo/La+Salle\",3429 => \"/meteo/La+Spezia\",3430 => \"/meteo/La+Thuile\",3431 => \"/meteo/La+Valle\",3432 => \"/meteo/La+Valle+Agordina\",8762 => \"/meteo/La+Villa\",3433 => \"/meteo/Labico\",3434 => \"/meteo/Labro\",3435 => \"/meteo/Lacchiarella\",3436 => \"/meteo/Lacco+ameno\",3437 => \"/meteo/Lacedonia\",8245 => \"/meteo/Laceno\",3438 => \"/meteo/Laces\",3439 => \"/meteo/Laconi\",3440 => \"/meteo/Ladispoli\",8571 => \"/meteo/Ladurno\",3441 => \"/meteo/Laerru\",3442 => \"/meteo/Laganadi\",3443 => \"/meteo/Laghi\",3444 => \"/meteo/Laglio\",3445 => \"/meteo/Lagnasco\",3446 => \"/meteo/Lago\",3447 => \"/meteo/Lagonegro\",3448 => \"/meteo/Lagosanto\",3449 => \"/meteo/Lagundo\",3450 => \"/meteo/Laigueglia\",3451 => \"/meteo/Lainate\",3452 => \"/meteo/Laino\",3453 => \"/meteo/Laino+borgo\",3454 => \"/meteo/Laino+castello\",3455 => \"/meteo/Laion\",3456 => \"/meteo/Laives\",3457 => \"/meteo/Lajatico\",3458 => \"/meteo/Lallio\",3459 => \"/meteo/Lama+dei+peligni\",3460 => \"/meteo/Lama+mocogno\",3461 => \"/meteo/Lambrugo\",8477 => \"/meteo/Lamezia+Santa+Eufemia\",3462 => \"/meteo/Lamezia+terme\",3463 => \"/meteo/Lamon\",8179 => \"/meteo/Lampedusa\",3464 => \"/meteo/Lampedusa+e+linosa\",3465 => \"/meteo/Lamporecchio\",3466 => \"/meteo/Lamporo\",3467 => \"/meteo/Lana\",3468 => \"/meteo/Lanciano\",8467 => \"/meteo/Lanciano+casello\",3469 => \"/meteo/Landiona\",3470 => \"/meteo/Landriano\",3471 => \"/meteo/Langhirano\",3472 => \"/meteo/Langosco\",3473 => \"/meteo/Lanusei\",3474 => \"/meteo/Lanuvio\",3475 => \"/meteo/Lanzada\",3476 => \"/meteo/Lanzo+d'intelvi\",3477 => \"/meteo/Lanzo+torinese\",3478 => \"/meteo/Lapedona\",3479 => \"/meteo/Lapio\",3480 => \"/meteo/Lappano\",3481 => \"/meteo/Larciano\",3482 => \"/meteo/Lardaro\",3483 => \"/meteo/Lardirago\",3484 => \"/meteo/Lari\",3485 => \"/meteo/Lariano\",3486 => \"/meteo/Larino\",3487 => \"/meteo/Las+plassas\",3488 => \"/meteo/Lasa\",3489 => \"/meteo/Lascari\",3490 => \"/meteo/Lasino\",3491 => \"/meteo/Lasnigo\",3492 => \"/meteo/Lastebasse\",3493 => \"/meteo/Lastra+a+signa\",3494 => \"/meteo/Latera\",3495 => \"/meteo/Laterina\",3496 => \"/meteo/Laterza\",3497 => \"/meteo/Latiano\",3498 => \"/meteo/Latina\",3499 => \"/meteo/Latisana\",3500 => \"/meteo/Latronico\",3501 => \"/meteo/Lattarico\",3502 => \"/meteo/Lauco\",3503 => \"/meteo/Laureana+cilento\",3504 => \"/meteo/Laureana+di+borrello\",3505 => \"/meteo/Lauregno\",3506 => \"/meteo/Laurenzana\",3507 => \"/meteo/Lauria\",3508 => \"/meteo/Lauriano\",3509 => \"/meteo/Laurino\",3510 => \"/meteo/Laurito\",3511 => \"/meteo/Lauro\",3512 => \"/meteo/Lavagna\",3513 => \"/meteo/Lavagno\",3514 => \"/meteo/Lavarone\",3515 => \"/meteo/Lavello\",3516 => \"/meteo/Lavena+ponte+tresa\",3517 => \"/meteo/Laveno+mombello\",3518 => \"/meteo/Lavenone\",3519 => \"/meteo/Laviano\",8695 => \"/meteo/Lavinio\",3520 => \"/meteo/Lavis\",3521 => \"/meteo/Lazise\",3522 => \"/meteo/Lazzate\",8434 => \"/meteo/Le+polle\",3523 => \"/meteo/Lecce\",3524 => \"/meteo/Lecce+nei+marsi\",3525 => \"/meteo/Lecco\",3526 => \"/meteo/Leffe\",3527 => \"/meteo/Leggiuno\",3528 => \"/meteo/Legnago\",3529 => \"/meteo/Legnano\",3530 => \"/meteo/Legnaro\",3531 => \"/meteo/Lei\",3532 => \"/meteo/Leini\",3533 => \"/meteo/Leivi\",3534 => \"/meteo/Lemie\",3535 => \"/meteo/Lendinara\",3536 => \"/meteo/Leni\",3537 => \"/meteo/Lenna\",3538 => \"/meteo/Lenno\",3539 => \"/meteo/Leno\",3540 => \"/meteo/Lenola\",3541 => \"/meteo/Lenta\",3542 => \"/meteo/Lentate+sul+seveso\",3543 => \"/meteo/Lentella\",3544 => \"/meteo/Lentiai\",3545 => \"/meteo/Lentini\",3546 => \"/meteo/Leonessa\",3547 => \"/meteo/Leonforte\",3548 => \"/meteo/Leporano\",3549 => \"/meteo/Lequile\",3550 => \"/meteo/Lequio+berria\",3551 => \"/meteo/Lequio+tanaro\",3552 => \"/meteo/Lercara+friddi\",3553 => \"/meteo/Lerici\",3554 => \"/meteo/Lerma\",8250 => \"/meteo/Les+Suches\",3555 => \"/meteo/Lesa\",3556 => \"/meteo/Lesegno\",3557 => \"/meteo/Lesignano+de+'bagni\",3558 => \"/meteo/Lesina\",3559 => \"/meteo/Lesmo\",3560 => \"/meteo/Lessolo\",3561 => \"/meteo/Lessona\",3562 => \"/meteo/Lestizza\",3563 => \"/meteo/Letino\",3564 => \"/meteo/Letojanni\",3565 => \"/meteo/Lettere\",3566 => \"/meteo/Lettomanoppello\",3567 => \"/meteo/Lettopalena\",3568 => \"/meteo/Levanto\",3569 => \"/meteo/Levate\",3570 => \"/meteo/Leverano\",3571 => \"/meteo/Levice\",3572 => \"/meteo/Levico+terme\",3573 => \"/meteo/Levone\",3574 => \"/meteo/Lezzeno\",3575 => \"/meteo/Liberi\",3576 => \"/meteo/Librizzi\",3577 => \"/meteo/Licata\",3578 => \"/meteo/Licciana+nardi\",3579 => \"/meteo/Licenza\",3580 => \"/meteo/Licodia+eubea\",8442 => \"/meteo/Lido+degli+Estensi\",8441 => \"/meteo/Lido+delle+Nazioni\",8200 => \"/meteo/Lido+di+Camaiore\",8136 => \"/meteo/Lido+di+Ostia\",8746 => \"/meteo/Lido+di+Volano\",8594 => \"/meteo/Lido+Marini\",3581 => \"/meteo/Lierna\",3582 => \"/meteo/Lignana\",3583 => \"/meteo/Lignano+sabbiadoro\",3584 => \"/meteo/Ligonchio\",3585 => \"/meteo/Ligosullo\",3586 => \"/meteo/Lillianes\",3587 => \"/meteo/Limana\",3588 => \"/meteo/Limatola\",3589 => \"/meteo/Limbadi\",3590 => \"/meteo/Limbiate\",3591 => \"/meteo/Limena\",3592 => \"/meteo/Limido+comasco\",3593 => \"/meteo/Limina\",3594 => \"/meteo/Limone+piemonte\",3595 => \"/meteo/Limone+sul+garda\",3596 => \"/meteo/Limosano\",3597 => \"/meteo/Linarolo\",3598 => \"/meteo/Linguaglossa\",8180 => \"/meteo/Linosa\",3599 => \"/meteo/Lioni\",3600 => \"/meteo/Lipari\",3601 => \"/meteo/Lipomo\",3602 => \"/meteo/Lirio\",3603 => \"/meteo/Liscate\",3604 => \"/meteo/Liscia\",3605 => \"/meteo/Lisciano+niccone\",3606 => \"/meteo/Lisignago\",3607 => \"/meteo/Lisio\",3608 => \"/meteo/Lissone\",3609 => \"/meteo/Liveri\",3610 => \"/meteo/Livigno\",3611 => \"/meteo/Livinallongo+del+col+di+lana\",3613 => \"/meteo/Livo\",3612 => \"/meteo/Livo\",3614 => \"/meteo/Livorno\",3615 => \"/meteo/Livorno+ferraris\",3616 => \"/meteo/Livraga\",3617 => \"/meteo/Lizzanello\",3618 => \"/meteo/Lizzano\",3619 => \"/meteo/Lizzano+in+belvedere\",8300 => \"/meteo/Lizzola\",3620 => \"/meteo/Loano\",3621 => \"/meteo/Loazzolo\",3622 => \"/meteo/Locana\",3623 => \"/meteo/Locate+di+triulzi\",3624 => \"/meteo/Locate+varesino\",3625 => \"/meteo/Locatello\",3626 => \"/meteo/Loceri\",3627 => \"/meteo/Locorotondo\",3628 => \"/meteo/Locri\",3629 => \"/meteo/Loculi\",3630 => \"/meteo/Lode'\",3631 => \"/meteo/Lodi\",3632 => \"/meteo/Lodi+vecchio\",3633 => \"/meteo/Lodine\",3634 => \"/meteo/Lodrino\",3635 => \"/meteo/Lograto\",3636 => \"/meteo/Loiano\",8748 => \"/meteo/Loiano+RFI\",3637 => \"/meteo/Loiri+porto+san+paolo\",3638 => \"/meteo/Lomagna\",3639 => \"/meteo/Lomaso\",3640 => \"/meteo/Lomazzo\",3641 => \"/meteo/Lombardore\",3642 => \"/meteo/Lombriasco\",3643 => \"/meteo/Lomello\",3644 => \"/meteo/Lona+lases\",3645 => \"/meteo/Lonate+ceppino\",3646 => \"/meteo/Lonate+pozzolo\",3647 => \"/meteo/Lonato\",3648 => \"/meteo/Londa\",3649 => \"/meteo/Longano\",3650 => \"/meteo/Longare\",3651 => \"/meteo/Longarone\",3652 => \"/meteo/Longhena\",3653 => \"/meteo/Longi\",3654 => \"/meteo/Longiano\",3655 => \"/meteo/Longobardi\",3656 => \"/meteo/Longobucco\",3657 => \"/meteo/Longone+al+segrino\",3658 => \"/meteo/Longone+sabino\",3659 => \"/meteo/Lonigo\",3660 => \"/meteo/Loranze'\",3661 => \"/meteo/Loreggia\",3662 => \"/meteo/Loreglia\",3663 => \"/meteo/Lorenzago+di+cadore\",3664 => \"/meteo/Lorenzana\",3665 => \"/meteo/Loreo\",3666 => \"/meteo/Loreto\",3667 => \"/meteo/Loreto+aprutino\",3668 => \"/meteo/Loria\",8523 => \"/meteo/Lorica\",3669 => \"/meteo/Loro+ciuffenna\",3670 => \"/meteo/Loro+piceno\",3671 => \"/meteo/Lorsica\",3672 => \"/meteo/Losine\",3673 => \"/meteo/Lotzorai\",3674 => \"/meteo/Lovere\",3675 => \"/meteo/Lovero\",3676 => \"/meteo/Lozio\",3677 => \"/meteo/Lozza\",3678 => \"/meteo/Lozzo+atestino\",3679 => \"/meteo/Lozzo+di+cadore\",3680 => \"/meteo/Lozzolo\",3681 => \"/meteo/Lu\",3682 => \"/meteo/Lubriano\",3683 => \"/meteo/Lucca\",3684 => \"/meteo/Lucca+sicula\",3685 => \"/meteo/Lucera\",3686 => \"/meteo/Lucignano\",3687 => \"/meteo/Lucinasco\",3688 => \"/meteo/Lucito\",3689 => \"/meteo/Luco+dei+marsi\",3690 => \"/meteo/Lucoli\",3691 => \"/meteo/Lugagnano+val+d'arda\",3692 => \"/meteo/Lugnacco\",3693 => \"/meteo/Lugnano+in+teverina\",3694 => \"/meteo/Lugo\",3695 => \"/meteo/Lugo+di+vicenza\",3696 => \"/meteo/Luino\",3697 => \"/meteo/Luisago\",3698 => \"/meteo/Lula\",3699 => \"/meteo/Lumarzo\",3700 => \"/meteo/Lumezzane\",3701 => \"/meteo/Lunamatrona\",3702 => \"/meteo/Lunano\",3703 => \"/meteo/Lungavilla\",3704 => \"/meteo/Lungro\",3705 => \"/meteo/Luogosano\",3706 => \"/meteo/Luogosanto\",3707 => \"/meteo/Lupara\",3708 => \"/meteo/Lurago+d'erba\",3709 => \"/meteo/Lurago+marinone\",3710 => \"/meteo/Lurano\",3711 => \"/meteo/Luras\",3712 => \"/meteo/Lurate+caccivio\",3713 => \"/meteo/Lusciano\",8636 => \"/meteo/Lusentino\",3714 => \"/meteo/Luserna\",3715 => \"/meteo/Luserna+san+giovanni\",3716 => \"/meteo/Lusernetta\",3717 => \"/meteo/Lusevera\",3718 => \"/meteo/Lusia\",3719 => \"/meteo/Lusiana\",3720 => \"/meteo/Lusiglie'\",3721 => \"/meteo/Luson\",3722 => \"/meteo/Lustra\",8572 => \"/meteo/Lutago\",3723 => \"/meteo/Luvinate\",3724 => \"/meteo/Luzzana\",3725 => \"/meteo/Luzzara\",3726 => \"/meteo/Luzzi\",8447 => \"/meteo/L`Aquila+est\",8446 => \"/meteo/L`Aquila+ovest\",3727 => \"/meteo/Maccagno\",3728 => \"/meteo/Maccastorna\",3729 => \"/meteo/Macchia+d'isernia\",3730 => \"/meteo/Macchia+valfortore\",3731 => \"/meteo/Macchiagodena\",3732 => \"/meteo/Macello\",3733 => \"/meteo/Macerata\",3734 => \"/meteo/Macerata+campania\",3735 => \"/meteo/Macerata+feltria\",3736 => \"/meteo/Macherio\",3737 => \"/meteo/Maclodio\",3738 => \"/meteo/Macomer\",3739 => \"/meteo/Macra\",3740 => \"/meteo/Macugnaga\",3741 => \"/meteo/Maddaloni\",3742 => \"/meteo/Madesimo\",3743 => \"/meteo/Madignano\",3744 => \"/meteo/Madone\",3745 => \"/meteo/Madonna+del+sasso\",8201 => \"/meteo/Madonna+di+Campiglio\",3746 => \"/meteo/Maenza\",3747 => \"/meteo/Mafalda\",3748 => \"/meteo/Magasa\",3749 => \"/meteo/Magenta\",3750 => \"/meteo/Maggiora\",3751 => \"/meteo/Magherno\",3752 => \"/meteo/Magione\",3753 => \"/meteo/Magisano\",3754 => \"/meteo/Magliano+alfieri\",3755 => \"/meteo/Magliano+alpi\",8461 => \"/meteo/Magliano+casello\",3756 => \"/meteo/Magliano+de'+marsi\",3757 => \"/meteo/Magliano+di+tenna\",3758 => \"/meteo/Magliano+in+toscana\",3759 => \"/meteo/Magliano+romano\",3760 => \"/meteo/Magliano+sabina\",3761 => \"/meteo/Magliano+vetere\",3762 => \"/meteo/Maglie\",3763 => \"/meteo/Magliolo\",3764 => \"/meteo/Maglione\",3765 => \"/meteo/Magnacavallo\",3766 => \"/meteo/Magnago\",3767 => \"/meteo/Magnano\",3768 => \"/meteo/Magnano+in+riviera\",8322 => \"/meteo/Magnolta\",3769 => \"/meteo/Magomadas\",3770 => \"/meteo/Magre'+sulla+strada+del+vino\",3771 => \"/meteo/Magreglio\",3772 => \"/meteo/Maida\",3773 => \"/meteo/Maiera'\",3774 => \"/meteo/Maierato\",3775 => \"/meteo/Maiolati+spontini\",3776 => \"/meteo/Maiolo\",3777 => \"/meteo/Maiori\",3778 => \"/meteo/Mairago\",3779 => \"/meteo/Mairano\",3780 => \"/meteo/Maissana\",3781 => \"/meteo/Majano\",3782 => \"/meteo/Malagnino\",3783 => \"/meteo/Malalbergo\",3784 => \"/meteo/Malborghetto+valbruna\",3785 => \"/meteo/Malcesine\",3786 => \"/meteo/Male'\",3787 => \"/meteo/Malegno\",3788 => \"/meteo/Maleo\",3789 => \"/meteo/Malesco\",3790 => \"/meteo/Maletto\",3791 => \"/meteo/Malfa\",8229 => \"/meteo/Malga+Ciapela\",8333 => \"/meteo/Malga+Polzone\",8661 => \"/meteo/Malga+San+Giorgio\",3792 => \"/meteo/Malgesso\",3793 => \"/meteo/Malgrate\",3794 => \"/meteo/Malito\",3795 => \"/meteo/Mallare\",3796 => \"/meteo/Malles+Venosta\",3797 => \"/meteo/Malnate\",3798 => \"/meteo/Malo\",3799 => \"/meteo/Malonno\",3800 => \"/meteo/Malosco\",3801 => \"/meteo/Maltignano\",3802 => \"/meteo/Malvagna\",3803 => \"/meteo/Malvicino\",3804 => \"/meteo/Malvito\",3805 => \"/meteo/Mammola\",3806 => \"/meteo/Mamoiada\",3807 => \"/meteo/Manciano\",3808 => \"/meteo/Mandanici\",3809 => \"/meteo/Mandas\",3810 => \"/meteo/Mandatoriccio\",3811 => \"/meteo/Mandela\",3812 => \"/meteo/Mandello+del+lario\",3813 => \"/meteo/Mandello+vitta\",3814 => \"/meteo/Manduria\",3815 => \"/meteo/Manerba+del+garda\",3816 => \"/meteo/Manerbio\",3817 => \"/meteo/Manfredonia\",3818 => \"/meteo/Mango\",3819 => \"/meteo/Mangone\",3820 => \"/meteo/Maniace\",3821 => \"/meteo/Maniago\",3822 => \"/meteo/Manocalzati\",3823 => \"/meteo/Manoppello\",3824 => \"/meteo/Mansue'\",3825 => \"/meteo/Manta\",3826 => \"/meteo/Mantello\",3827 => \"/meteo/Mantova\",8129 => \"/meteo/Manzano\",3829 => \"/meteo/Manziana\",3830 => \"/meteo/Mapello\",3831 => \"/meteo/Mara\",3832 => \"/meteo/Maracalagonis\",3833 => \"/meteo/Maranello\",3834 => \"/meteo/Marano+di+napoli\",3835 => \"/meteo/Marano+di+valpolicella\",3836 => \"/meteo/Marano+equo\",3837 => \"/meteo/Marano+lagunare\",3838 => \"/meteo/Marano+marchesato\",3839 => \"/meteo/Marano+principato\",3840 => \"/meteo/Marano+sul+panaro\",3841 => \"/meteo/Marano+ticino\",3842 => \"/meteo/Marano+vicentino\",3843 => \"/meteo/Maranzana\",3844 => \"/meteo/Maratea\",3845 => \"/meteo/Marcallo+con+Casone\",3846 => \"/meteo/Marcaria\",3847 => \"/meteo/Marcedusa\",3848 => \"/meteo/Marcellina\",3849 => \"/meteo/Marcellinara\",3850 => \"/meteo/Marcetelli\",3851 => \"/meteo/Marcheno\",3852 => \"/meteo/Marchirolo\",3853 => \"/meteo/Marciana\",3854 => \"/meteo/Marciana+marina\",3855 => \"/meteo/Marcianise\",3856 => \"/meteo/Marciano+della+chiana\",3857 => \"/meteo/Marcignago\",3858 => \"/meteo/Marcon\",3859 => \"/meteo/Marebbe\",8478 => \"/meteo/Marene\",3861 => \"/meteo/Mareno+di+piave\",3862 => \"/meteo/Marentino\",3863 => \"/meteo/Maretto\",3864 => \"/meteo/Margarita\",3865 => \"/meteo/Margherita+di+savoia\",3866 => \"/meteo/Margno\",3867 => \"/meteo/Mariana+mantovana\",3868 => \"/meteo/Mariano+comense\",3869 => \"/meteo/Mariano+del+friuli\",3870 => \"/meteo/Marianopoli\",3871 => \"/meteo/Mariglianella\",3872 => \"/meteo/Marigliano\",8291 => \"/meteo/Marilleva\",8490 => \"/meteo/Marina+di+Arbus\",8599 => \"/meteo/Marina+di+Camerota\",8582 => \"/meteo/Marina+di+Campo\",8111 => \"/meteo/Marina+di+Cariati\",8118 => \"/meteo/Marina+di+Cetraro\",8175 => \"/meteo/Marina+di+Gairo\",8164 => \"/meteo/Marina+di+Ginosa\",3873 => \"/meteo/Marina+di+gioiosa+ionica\",8166 => \"/meteo/Marina+di+Leuca\",8184 => \"/meteo/Marina+di+Modica\",8156 => \"/meteo/Marina+di+montenero\",8165 => \"/meteo/Marina+di+Ostuni\",8186 => \"/meteo/Marina+di+Palma\",8141 => \"/meteo/Marina+di+Pescia+Romana\",8591 => \"/meteo/Marina+di+Pescoluse\",8298 => \"/meteo/Marina+di+Pietrasanta\",8128 => \"/meteo/Marina+di+Ravenna\",8174 => \"/meteo/Marina+di+Sorso\",8188 => \"/meteo/Marinella\",3874 => \"/meteo/Marineo\",3875 => \"/meteo/Marino\",3876 => \"/meteo/Marlengo\",3877 => \"/meteo/Marliana\",3878 => \"/meteo/Marmentino\",3879 => \"/meteo/Marmirolo\",8205 => \"/meteo/Marmolada\",3880 => \"/meteo/Marmora\",3881 => \"/meteo/Marnate\",3882 => \"/meteo/Marone\",3883 => \"/meteo/Maropati\",3884 => \"/meteo/Marostica\",8154 => \"/meteo/Marotta\",3885 => \"/meteo/Marradi\",3886 => \"/meteo/Marrubiu\",3887 => \"/meteo/Marsaglia\",3888 => \"/meteo/Marsala\",3889 => \"/meteo/Marsciano\",3890 => \"/meteo/Marsico+nuovo\",3891 => \"/meteo/Marsicovetere\",3892 => \"/meteo/Marta\",3893 => \"/meteo/Martano\",3894 => \"/meteo/Martellago\",3895 => \"/meteo/Martello\",3896 => \"/meteo/Martignacco\",3897 => \"/meteo/Martignana+di+po\",3898 => \"/meteo/Martignano\",3899 => \"/meteo/Martina+franca\",3900 => \"/meteo/Martinengo\",3901 => \"/meteo/Martiniana+po\",3902 => \"/meteo/Martinsicuro\",3903 => \"/meteo/Martirano\",3904 => \"/meteo/Martirano+lombardo\",3905 => \"/meteo/Martis\",3906 => \"/meteo/Martone\",3907 => \"/meteo/Marudo\",3908 => \"/meteo/Maruggio\",3909 => \"/meteo/Marzabotto\",3910 => \"/meteo/Marzano\",3911 => \"/meteo/Marzano+appio\",3912 => \"/meteo/Marzano+di+nola\",3913 => \"/meteo/Marzi\",3914 => \"/meteo/Marzio\",3915 => \"/meteo/Masainas\",3916 => \"/meteo/Masate\",3917 => \"/meteo/Mascali\",3918 => \"/meteo/Mascalucia\",3919 => \"/meteo/Maschito\",3920 => \"/meteo/Masciago+primo\",3921 => \"/meteo/Maser\",3922 => \"/meteo/Masera\",3923 => \"/meteo/Masera'+di+Padova\",3924 => \"/meteo/Maserada+sul+piave\",3925 => \"/meteo/Masi\",3926 => \"/meteo/Masi+torello\",3927 => \"/meteo/Masio\",3928 => \"/meteo/Maslianico\",8216 => \"/meteo/Maso+Corto\",3929 => \"/meteo/Mason+vicentino\",3930 => \"/meteo/Masone\",3931 => \"/meteo/Massa\",3932 => \"/meteo/Massa+d'albe\",3933 => \"/meteo/Massa+di+somma\",3934 => \"/meteo/Massa+e+cozzile\",3935 => \"/meteo/Massa+fermana\",3936 => \"/meteo/Massa+fiscaglia\",3937 => \"/meteo/Massa+lombarda\",3938 => \"/meteo/Massa+lubrense\",3939 => \"/meteo/Massa+marittima\",3940 => \"/meteo/Massa+martana\",3941 => \"/meteo/Massafra\",3942 => \"/meteo/Massalengo\",3943 => \"/meteo/Massanzago\",3944 => \"/meteo/Massarosa\",3945 => \"/meteo/Massazza\",3946 => \"/meteo/Massello\",3947 => \"/meteo/Masserano\",3948 => \"/meteo/Massignano\",3949 => \"/meteo/Massimeno\",3950 => \"/meteo/Massimino\",3951 => \"/meteo/Massino+visconti\",3952 => \"/meteo/Massiola\",3953 => \"/meteo/Masullas\",3954 => \"/meteo/Matelica\",3955 => \"/meteo/Matera\",3956 => \"/meteo/Mathi\",3957 => \"/meteo/Matino\",3958 => \"/meteo/Matrice\",3959 => \"/meteo/Mattie\",3960 => \"/meteo/Mattinata\",3961 => \"/meteo/Mazara+del+vallo\",3962 => \"/meteo/Mazzano\",3963 => \"/meteo/Mazzano+romano\",3964 => \"/meteo/Mazzarino\",3965 => \"/meteo/Mazzarra'+sant'andrea\",3966 => \"/meteo/Mazzarrone\",3967 => \"/meteo/Mazze'\",3968 => \"/meteo/Mazzin\",3969 => \"/meteo/Mazzo+di+valtellina\",3970 => \"/meteo/Meana+di+susa\",3971 => \"/meteo/Meana+sardo\",3972 => \"/meteo/Meda\",3973 => \"/meteo/Mede\",3974 => \"/meteo/Medea\",3975 => \"/meteo/Medesano\",3976 => \"/meteo/Medicina\",3977 => \"/meteo/Mediglia\",3978 => \"/meteo/Medolago\",3979 => \"/meteo/Medole\",3980 => \"/meteo/Medolla\",3981 => \"/meteo/Meduna+di+livenza\",3982 => \"/meteo/Meduno\",3983 => \"/meteo/Megliadino+san+fidenzio\",3984 => \"/meteo/Megliadino+san+vitale\",3985 => \"/meteo/Meina\",3986 => \"/meteo/Mel\",3987 => \"/meteo/Melara\",3988 => \"/meteo/Melazzo\",8443 => \"/meteo/Meldola\",3990 => \"/meteo/Mele\",3991 => \"/meteo/Melegnano\",3992 => \"/meteo/Melendugno\",3993 => \"/meteo/Meleti\",8666 => \"/meteo/Melezet\",3994 => \"/meteo/Melfi\",3995 => \"/meteo/Melicucca'\",3996 => \"/meteo/Melicucco\",3997 => \"/meteo/Melilli\",3998 => \"/meteo/Melissa\",3999 => \"/meteo/Melissano\",4000 => \"/meteo/Melito+di+napoli\",4001 => \"/meteo/Melito+di+porto+salvo\",4002 => \"/meteo/Melito+irpino\",4003 => \"/meteo/Melizzano\",4004 => \"/meteo/Melle\",4005 => \"/meteo/Mello\",4006 => \"/meteo/Melpignano\",4007 => \"/meteo/Meltina\",4008 => \"/meteo/Melzo\",4009 => \"/meteo/Menaggio\",4010 => \"/meteo/Menarola\",4011 => \"/meteo/Menconico\",4012 => \"/meteo/Mendatica\",4013 => \"/meteo/Mendicino\",4014 => \"/meteo/Menfi\",4015 => \"/meteo/Mentana\",4016 => \"/meteo/Meolo\",4017 => \"/meteo/Merana\",4018 => \"/meteo/Merano\",8351 => \"/meteo/Merano+2000\",4019 => \"/meteo/Merate\",4020 => \"/meteo/Mercallo\",4021 => \"/meteo/Mercatello+sul+metauro\",4022 => \"/meteo/Mercatino+conca\",8437 => \"/meteo/Mercato\",4023 => \"/meteo/Mercato+san+severino\",4024 => \"/meteo/Mercato+saraceno\",4025 => \"/meteo/Mercenasco\",4026 => \"/meteo/Mercogliano\",4027 => \"/meteo/Mereto+di+tomba\",4028 => \"/meteo/Mergo\",4029 => \"/meteo/Mergozzo\",4030 => \"/meteo/Meri'\",4031 => \"/meteo/Merlara\",4032 => \"/meteo/Merlino\",4033 => \"/meteo/Merone\",4034 => \"/meteo/Mesagne\",4035 => \"/meteo/Mese\",4036 => \"/meteo/Mesenzana\",4037 => \"/meteo/Mesero\",4038 => \"/meteo/Mesola\",4039 => \"/meteo/Mesoraca\",4040 => \"/meteo/Messina\",4041 => \"/meteo/Mestrino\",4042 => \"/meteo/Meta\",8104 => \"/meteo/Metaponto\",4043 => \"/meteo/Meugliano\",4044 => \"/meteo/Mezzago\",4045 => \"/meteo/Mezzana\",4046 => \"/meteo/Mezzana+bigli\",4047 => \"/meteo/Mezzana+mortigliengo\",4048 => \"/meteo/Mezzana+rabattone\",4049 => \"/meteo/Mezzane+di+sotto\",4050 => \"/meteo/Mezzanego\",4051 => \"/meteo/Mezzani\",4052 => \"/meteo/Mezzanino\",4053 => \"/meteo/Mezzano\",4054 => \"/meteo/Mezzegra\",4055 => \"/meteo/Mezzenile\",4056 => \"/meteo/Mezzocorona\",4057 => \"/meteo/Mezzojuso\",4058 => \"/meteo/Mezzoldo\",4059 => \"/meteo/Mezzolombardo\",4060 => \"/meteo/Mezzomerico\",8524 => \"/meteo/MI+Olgettina\",8526 => \"/meteo/MI+Primaticcio\",8527 => \"/meteo/MI+Silla\",8525 => \"/meteo/MI+Zama\",4061 => \"/meteo/Miagliano\",4062 => \"/meteo/Miane\",4063 => \"/meteo/Miasino\",4064 => \"/meteo/Miazzina\",4065 => \"/meteo/Micigliano\",4066 => \"/meteo/Miggiano\",4067 => \"/meteo/Miglianico\",4068 => \"/meteo/Migliarino\",4069 => \"/meteo/Migliaro\",4070 => \"/meteo/Miglierina\",4071 => \"/meteo/Miglionico\",4072 => \"/meteo/Mignanego\",4073 => \"/meteo/Mignano+monte+lungo\",4074 => \"/meteo/Milano\",8495 => \"/meteo/Milano+Linate\",8496 => \"/meteo/Milano+Malpensa\",8240 => \"/meteo/Milano+marittima\",4075 => \"/meteo/Milazzo\",4076 => \"/meteo/Milena\",4077 => \"/meteo/Mileto\",4078 => \"/meteo/Milis\",4079 => \"/meteo/Militello+in+val+di+catania\",4080 => \"/meteo/Militello+rosmarino\",4081 => \"/meteo/Millesimo\",4082 => \"/meteo/Milo\",4083 => \"/meteo/Milzano\",4084 => \"/meteo/Mineo\",4085 => \"/meteo/Minerbe\",4086 => \"/meteo/Minerbio\",4087 => \"/meteo/Minervino+di+lecce\",4088 => \"/meteo/Minervino+murge\",4089 => \"/meteo/Minori\",4090 => \"/meteo/Minturno\",4091 => \"/meteo/Minucciano\",4092 => \"/meteo/Mioglia\",4093 => \"/meteo/Mira\",4094 => \"/meteo/Mirabella+eclano\",4095 => \"/meteo/Mirabella+imbaccari\",4096 => \"/meteo/Mirabello\",4097 => \"/meteo/Mirabello+monferrato\",4098 => \"/meteo/Mirabello+sannitico\",4099 => \"/meteo/Miradolo+terme\",4100 => \"/meteo/Miranda\",4101 => \"/meteo/Mirandola\",4102 => \"/meteo/Mirano\",4103 => \"/meteo/Mirto\",4104 => \"/meteo/Misano+adriatico\",4105 => \"/meteo/Misano+di+gera+d'adda\",4106 => \"/meteo/Misilmeri\",4107 => \"/meteo/Misinto\",4108 => \"/meteo/Missaglia\",8416 => \"/meteo/Missanello\",4110 => \"/meteo/Misterbianco\",4111 => \"/meteo/Mistretta\",8623 => \"/meteo/Misurina\",4112 => \"/meteo/Moasca\",4113 => \"/meteo/Moconesi\",4114 => \"/meteo/Modena\",4115 => \"/meteo/Modica\",4116 => \"/meteo/Modigliana\",4117 => \"/meteo/Modolo\",4118 => \"/meteo/Modugno\",4119 => \"/meteo/Moena\",4120 => \"/meteo/Moggio\",4121 => \"/meteo/Moggio+udinese\",4122 => \"/meteo/Moglia\",4123 => \"/meteo/Mogliano\",4124 => \"/meteo/Mogliano+veneto\",4125 => \"/meteo/Mogorella\",4126 => \"/meteo/Mogoro\",4127 => \"/meteo/Moiano\",8615 => \"/meteo/Moie\",4128 => \"/meteo/Moimacco\",4129 => \"/meteo/Moio+Alcantara\",4130 => \"/meteo/Moio+de'calvi\",4131 => \"/meteo/Moio+della+civitella\",4132 => \"/meteo/Moiola\",4133 => \"/meteo/Mola+di+bari\",4134 => \"/meteo/Molare\",4135 => \"/meteo/Molazzana\",4136 => \"/meteo/Molfetta\",4137 => \"/meteo/Molina+aterno\",4138 => \"/meteo/Molina+di+ledro\",4139 => \"/meteo/Molinara\",4140 => \"/meteo/Molinella\",4141 => \"/meteo/Molini+di+triora\",4142 => \"/meteo/Molino+dei+torti\",4143 => \"/meteo/Molise\",4144 => \"/meteo/Moliterno\",4145 => \"/meteo/Mollia\",4146 => \"/meteo/Molochio\",4147 => \"/meteo/Molteno\",4148 => \"/meteo/Moltrasio\",4149 => \"/meteo/Molvena\",4150 => \"/meteo/Molveno\",4151 => \"/meteo/Mombaldone\",4152 => \"/meteo/Mombarcaro\",4153 => \"/meteo/Mombaroccio\",4154 => \"/meteo/Mombaruzzo\",4155 => \"/meteo/Mombasiglio\",4156 => \"/meteo/Mombello+di+torino\",4157 => \"/meteo/Mombello+monferrato\",4158 => \"/meteo/Mombercelli\",4159 => \"/meteo/Momo\",4160 => \"/meteo/Mompantero\",4161 => \"/meteo/Mompeo\",4162 => \"/meteo/Momperone\",4163 => \"/meteo/Monacilioni\",4164 => \"/meteo/Monale\",4165 => \"/meteo/Monasterace\",4166 => \"/meteo/Monastero+bormida\",4167 => \"/meteo/Monastero+di+lanzo\",4168 => \"/meteo/Monastero+di+vasco\",4169 => \"/meteo/Monasterolo+casotto\",4170 => \"/meteo/Monasterolo+del+castello\",4171 => \"/meteo/Monasterolo+di+savigliano\",4172 => \"/meteo/Monastier+di+treviso\",4173 => \"/meteo/Monastir\",4174 => \"/meteo/Moncalieri\",4175 => \"/meteo/Moncalvo\",4176 => \"/meteo/Moncenisio\",4177 => \"/meteo/Moncestino\",4178 => \"/meteo/Monchiero\",4179 => \"/meteo/Monchio+delle+corti\",4180 => \"/meteo/Monclassico\",4181 => \"/meteo/Moncrivello\",8649 => \"/meteo/Moncucco\",4182 => \"/meteo/Moncucco+torinese\",4183 => \"/meteo/Mondaino\",4184 => \"/meteo/Mondavio\",4185 => \"/meteo/Mondolfo\",4186 => \"/meteo/Mondovi'\",4187 => \"/meteo/Mondragone\",4188 => \"/meteo/Moneglia\",8143 => \"/meteo/Monesi\",4189 => \"/meteo/Monesiglio\",4190 => \"/meteo/Monfalcone\",4191 => \"/meteo/Monforte+d'alba\",4192 => \"/meteo/Monforte+san+giorgio\",4193 => \"/meteo/Monfumo\",4194 => \"/meteo/Mongardino\",4195 => \"/meteo/Monghidoro\",4196 => \"/meteo/Mongiana\",4197 => \"/meteo/Mongiardino+ligure\",8637 => \"/meteo/Monginevro+Montgenevre\",4198 => \"/meteo/Mongiuffi+melia\",4199 => \"/meteo/Mongrando\",4200 => \"/meteo/Mongrassano\",4201 => \"/meteo/Monguelfo\",4202 => \"/meteo/Monguzzo\",4203 => \"/meteo/Moniga+del+garda\",4204 => \"/meteo/Monleale\",4205 => \"/meteo/Monno\",4206 => \"/meteo/Monopoli\",4207 => \"/meteo/Monreale\",4208 => \"/meteo/Monrupino\",4209 => \"/meteo/Monsampietro+morico\",4210 => \"/meteo/Monsampolo+del+tronto\",4211 => \"/meteo/Monsano\",4212 => \"/meteo/Monselice\",4213 => \"/meteo/Monserrato\",4214 => \"/meteo/Monsummano+terme\",4215 => \"/meteo/Monta'\",4216 => \"/meteo/Montabone\",4217 => \"/meteo/Montacuto\",4218 => \"/meteo/Montafia\",4219 => \"/meteo/Montagano\",4220 => \"/meteo/Montagna\",4221 => \"/meteo/Montagna+in+valtellina\",8301 => \"/meteo/Montagnana\",4223 => \"/meteo/Montagnareale\",4224 => \"/meteo/Montagne\",4225 => \"/meteo/Montaguto\",4226 => \"/meteo/Montaione\",4227 => \"/meteo/Montalbano+Elicona\",4228 => \"/meteo/Montalbano+jonico\",4229 => \"/meteo/Montalcino\",4230 => \"/meteo/Montaldeo\",4231 => \"/meteo/Montaldo+bormida\",4232 => \"/meteo/Montaldo+di+mondovi'\",4233 => \"/meteo/Montaldo+roero\",4234 => \"/meteo/Montaldo+scarampi\",4235 => \"/meteo/Montaldo+torinese\",4236 => \"/meteo/Montale\",4237 => \"/meteo/Montalenghe\",4238 => \"/meteo/Montallegro\",4239 => \"/meteo/Montalto+delle+marche\",4240 => \"/meteo/Montalto+di+castro\",4241 => \"/meteo/Montalto+dora\",4242 => \"/meteo/Montalto+ligure\",4243 => \"/meteo/Montalto+pavese\",4244 => \"/meteo/Montalto+uffugo\",4245 => \"/meteo/Montanaro\",4246 => \"/meteo/Montanaso+lombardo\",4247 => \"/meteo/Montanera\",4248 => \"/meteo/Montano+antilia\",4249 => \"/meteo/Montano+lucino\",4250 => \"/meteo/Montappone\",4251 => \"/meteo/Montaquila\",4252 => \"/meteo/Montasola\",4253 => \"/meteo/Montauro\",4254 => \"/meteo/Montazzoli\",8738 => \"/meteo/Monte+Alben\",8350 => \"/meteo/Monte+Amiata\",4255 => \"/meteo/Monte+Argentario\",8696 => \"/meteo/Monte+Avena\",8660 => \"/meteo/Monte+Baldo\",8251 => \"/meteo/Monte+Belvedere\",8720 => \"/meteo/Monte+Bianco\",8292 => \"/meteo/Monte+Bondone\",8757 => \"/meteo/Monte+Caio\",8149 => \"/meteo/Monte+Campione\",4256 => \"/meteo/Monte+Castello+di+Vibio\",4257 => \"/meteo/Monte+Cavallo\",4258 => \"/meteo/Monte+Cerignone\",8722 => \"/meteo/Monte+Cervino\",8533 => \"/meteo/Monte+Cimone\",4259 => \"/meteo/Monte+Colombo\",8658 => \"/meteo/Monte+Cornizzolo\",4260 => \"/meteo/Monte+Cremasco\",4261 => \"/meteo/Monte+di+Malo\",4262 => \"/meteo/Monte+di+Procida\",8581 => \"/meteo/Monte+Elmo\",8701 => \"/meteo/Monte+Faloria\",4263 => \"/meteo/Monte+Giberto\",8486 => \"/meteo/Monte+Gomito\",8232 => \"/meteo/Monte+Grappa\",4264 => \"/meteo/Monte+Isola\",8735 => \"/meteo/Monte+Legnone\",8631 => \"/meteo/Monte+Livata\",8574 => \"/meteo/Monte+Lussari\",8484 => \"/meteo/Monte+Malanotte\",4265 => \"/meteo/Monte+Marenzo\",8611 => \"/meteo/Monte+Matajur\",8732 => \"/meteo/Monte+Matto\",8266 => \"/meteo/Monte+Moro\",8697 => \"/meteo/Monte+Mucrone\",8619 => \"/meteo/Monte+Pigna\",8288 => \"/meteo/Monte+Pora+Base\",8310 => \"/meteo/Monte+Pora+Cima\",4266 => \"/meteo/Monte+Porzio\",4267 => \"/meteo/Monte+Porzio+Catone\",8608 => \"/meteo/Monte+Prata\",8320 => \"/meteo/Monte+Pratello\",4268 => \"/meteo/Monte+Rinaldo\",4269 => \"/meteo/Monte+Roberto\",4270 => \"/meteo/Monte+Romano\",4271 => \"/meteo/Monte+San+Biagio\",4272 => \"/meteo/Monte+San+Giacomo\",4273 => \"/meteo/Monte+San+Giovanni+Campano\",4274 => \"/meteo/Monte+San+Giovanni+in+Sabina\",4275 => \"/meteo/Monte+San+Giusto\",4276 => \"/meteo/Monte+San+Martino\",4277 => \"/meteo/Monte+San+Pietrangeli\",4278 => \"/meteo/Monte+San+Pietro\",8538 => \"/meteo/Monte+San+Primo\",4279 => \"/meteo/Monte+San+Savino\",8652 => \"/meteo/Monte+San+Vigilio\",4280 => \"/meteo/Monte+San+Vito\",4281 => \"/meteo/Monte+Sant'Angelo\",4282 => \"/meteo/Monte+Santa+Maria+Tiberina\",8570 => \"/meteo/Monte+Scuro\",8278 => \"/meteo/Monte+Spinale\",4283 => \"/meteo/Monte+Urano\",8758 => \"/meteo/Monte+Ventasso\",4284 => \"/meteo/Monte+Vidon+Combatte\",4285 => \"/meteo/Monte+Vidon+Corrado\",8729 => \"/meteo/Monte+Volturino\",8346 => \"/meteo/Monte+Zoncolan\",4286 => \"/meteo/Montebello+della+Battaglia\",4287 => \"/meteo/Montebello+di+Bertona\",4288 => \"/meteo/Montebello+Ionico\",4289 => \"/meteo/Montebello+sul+Sangro\",4290 => \"/meteo/Montebello+Vicentino\",4291 => \"/meteo/Montebelluna\",4292 => \"/meteo/Montebruno\",4293 => \"/meteo/Montebuono\",4294 => \"/meteo/Montecalvo+in+Foglia\",4295 => \"/meteo/Montecalvo+Irpino\",4296 => \"/meteo/Montecalvo+Versiggia\",4297 => \"/meteo/Montecarlo\",4298 => \"/meteo/Montecarotto\",4299 => \"/meteo/Montecassiano\",4300 => \"/meteo/Montecastello\",4301 => \"/meteo/Montecastrilli\",4303 => \"/meteo/Montecatini+terme\",4302 => \"/meteo/Montecatini+Val+di+Cecina\",4304 => \"/meteo/Montecchia+di+Crosara\",4305 => \"/meteo/Montecchio\",4306 => \"/meteo/Montecchio+Emilia\",4307 => \"/meteo/Montecchio+Maggiore\",4308 => \"/meteo/Montecchio+Precalcino\",4309 => \"/meteo/Montechiaro+d'Acqui\",4310 => \"/meteo/Montechiaro+d'Asti\",4311 => \"/meteo/Montechiarugolo\",4312 => \"/meteo/Monteciccardo\",4313 => \"/meteo/Montecilfone\",4314 => \"/meteo/Montecompatri\",4315 => \"/meteo/Montecopiolo\",4316 => \"/meteo/Montecorice\",4317 => \"/meteo/Montecorvino+Pugliano\",4318 => \"/meteo/Montecorvino+Rovella\",4319 => \"/meteo/Montecosaro\",4320 => \"/meteo/Montecrestese\",4321 => \"/meteo/Montecreto\",4322 => \"/meteo/Montedinove\",4323 => \"/meteo/Montedoro\",4324 => \"/meteo/Montefalcione\",4325 => \"/meteo/Montefalco\",4326 => \"/meteo/Montefalcone+Appennino\",4327 => \"/meteo/Montefalcone+di+Val+Fortore\",4328 => \"/meteo/Montefalcone+nel+Sannio\",4329 => \"/meteo/Montefano\",4330 => \"/meteo/Montefelcino\",4331 => \"/meteo/Monteferrante\",4332 => \"/meteo/Montefiascone\",4333 => \"/meteo/Montefino\",4334 => \"/meteo/Montefiore+conca\",4335 => \"/meteo/Montefiore+dell'Aso\",4336 => \"/meteo/Montefiorino\",4337 => \"/meteo/Monteflavio\",4338 => \"/meteo/Monteforte+Cilento\",4339 => \"/meteo/Monteforte+d'Alpone\",4340 => \"/meteo/Monteforte+Irpino\",4341 => \"/meteo/Montefortino\",4342 => \"/meteo/Montefranco\",4343 => \"/meteo/Montefredane\",4344 => \"/meteo/Montefusco\",4345 => \"/meteo/Montegabbione\",4346 => \"/meteo/Montegalda\",4347 => \"/meteo/Montegaldella\",4348 => \"/meteo/Montegallo\",4349 => \"/meteo/Montegioco\",4350 => \"/meteo/Montegiordano\",4351 => \"/meteo/Montegiorgio\",4352 => \"/meteo/Montegranaro\",4353 => \"/meteo/Montegridolfo\",4354 => \"/meteo/Montegrimano\",4355 => \"/meteo/Montegrino+valtravaglia\",4356 => \"/meteo/Montegrosso+d'Asti\",4357 => \"/meteo/Montegrosso+pian+latte\",4358 => \"/meteo/Montegrotto+terme\",4359 => \"/meteo/Monteiasi\",4360 => \"/meteo/Montelabbate\",4361 => \"/meteo/Montelanico\",4362 => \"/meteo/Montelapiano\",4363 => \"/meteo/Monteleone+d'orvieto\",4364 => \"/meteo/Monteleone+di+fermo\",4365 => \"/meteo/Monteleone+di+puglia\",4366 => \"/meteo/Monteleone+di+spoleto\",4367 => \"/meteo/Monteleone+rocca+doria\",4368 => \"/meteo/Monteleone+sabino\",4369 => \"/meteo/Montelepre\",4370 => \"/meteo/Montelibretti\",4371 => \"/meteo/Montella\",4372 => \"/meteo/Montello\",4373 => \"/meteo/Montelongo\",4374 => \"/meteo/Montelparo\",4375 => \"/meteo/Montelupo+albese\",4376 => \"/meteo/Montelupo+fiorentino\",4377 => \"/meteo/Montelupone\",4378 => \"/meteo/Montemaggiore+al+metauro\",4379 => \"/meteo/Montemaggiore+belsito\",4380 => \"/meteo/Montemagno\",4381 => \"/meteo/Montemale+di+cuneo\",4382 => \"/meteo/Montemarano\",4383 => \"/meteo/Montemarciano\",4384 => \"/meteo/Montemarzino\",4385 => \"/meteo/Montemesola\",4386 => \"/meteo/Montemezzo\",4387 => \"/meteo/Montemignaio\",4388 => \"/meteo/Montemiletto\",8401 => \"/meteo/Montemilone\",4390 => \"/meteo/Montemitro\",4391 => \"/meteo/Montemonaco\",4392 => \"/meteo/Montemurlo\",8408 => \"/meteo/Montemurro\",4394 => \"/meteo/Montenars\",4395 => \"/meteo/Montenero+di+bisaccia\",4396 => \"/meteo/Montenero+sabino\",4397 => \"/meteo/Montenero+val+cocchiara\",4398 => \"/meteo/Montenerodomo\",4399 => \"/meteo/Monteodorisio\",4400 => \"/meteo/Montepaone\",4401 => \"/meteo/Monteparano\",8296 => \"/meteo/Montepiano\",4402 => \"/meteo/Monteprandone\",4403 => \"/meteo/Montepulciano\",4404 => \"/meteo/Monterado\",4405 => \"/meteo/Monterchi\",4406 => \"/meteo/Montereale\",4407 => \"/meteo/Montereale+valcellina\",4408 => \"/meteo/Monterenzio\",4409 => \"/meteo/Monteriggioni\",4410 => \"/meteo/Monteroduni\",4411 => \"/meteo/Monteroni+d'arbia\",4412 => \"/meteo/Monteroni+di+lecce\",4413 => \"/meteo/Monterosi\",4414 => \"/meteo/Monterosso+al+mare\",4415 => \"/meteo/Monterosso+almo\",4416 => \"/meteo/Monterosso+calabro\",4417 => \"/meteo/Monterosso+grana\",4418 => \"/meteo/Monterotondo\",4419 => \"/meteo/Monterotondo+marittimo\",4420 => \"/meteo/Monterubbiano\",4421 => \"/meteo/Montesano+salentino\",4422 => \"/meteo/Montesano+sulla+marcellana\",4423 => \"/meteo/Montesarchio\",8389 => \"/meteo/Montescaglioso\",4425 => \"/meteo/Montescano\",4426 => \"/meteo/Montescheno\",4427 => \"/meteo/Montescudaio\",4428 => \"/meteo/Montescudo\",4429 => \"/meteo/Montese\",4430 => \"/meteo/Montesegale\",4431 => \"/meteo/Montesilvano\",8491 => \"/meteo/Montesilvano+Marina\",4432 => \"/meteo/Montespertoli\",1730 => \"/meteo/Montespluga\",4433 => \"/meteo/Monteu+da+Po\",4434 => \"/meteo/Monteu+roero\",4435 => \"/meteo/Montevago\",4436 => \"/meteo/Montevarchi\",4437 => \"/meteo/Montevecchia\",4438 => \"/meteo/Monteveglio\",4439 => \"/meteo/Monteverde\",4440 => \"/meteo/Monteverdi+marittimo\",8589 => \"/meteo/Montevergine\",4441 => \"/meteo/Monteviale\",4442 => \"/meteo/Montezemolo\",4443 => \"/meteo/Monti\",4444 => \"/meteo/Montiano\",4445 => \"/meteo/Monticelli+brusati\",4446 => \"/meteo/Monticelli+d'ongina\",4447 => \"/meteo/Monticelli+pavese\",4448 => \"/meteo/Monticello+brianza\",4449 => \"/meteo/Monticello+conte+otto\",4450 => \"/meteo/Monticello+d'alba\",4451 => \"/meteo/Montichiari\",4452 => \"/meteo/Monticiano\",4453 => \"/meteo/Montieri\",4454 => \"/meteo/Montiglio+monferrato\",4455 => \"/meteo/Montignoso\",4456 => \"/meteo/Montirone\",4457 => \"/meteo/Montjovet\",4458 => \"/meteo/Montodine\",4459 => \"/meteo/Montoggio\",4460 => \"/meteo/Montone\",4461 => \"/meteo/Montopoli+di+sabina\",4462 => \"/meteo/Montopoli+in+val+d'arno\",4463 => \"/meteo/Montorfano\",4464 => \"/meteo/Montorio+al+vomano\",4465 => \"/meteo/Montorio+nei+frentani\",4466 => \"/meteo/Montorio+romano\",4467 => \"/meteo/Montoro+inferiore\",4468 => \"/meteo/Montoro+superiore\",4469 => \"/meteo/Montorso+vicentino\",4470 => \"/meteo/Montottone\",4471 => \"/meteo/Montresta\",4472 => \"/meteo/Montu'+beccaria\",8326 => \"/meteo/Montzeuc\",4473 => \"/meteo/Monvalle\",8726 => \"/meteo/Monviso\",4474 => \"/meteo/Monza\",4475 => \"/meteo/Monzambano\",4476 => \"/meteo/Monzuno\",4477 => \"/meteo/Morano+calabro\",4478 => \"/meteo/Morano+sul+Po\",4479 => \"/meteo/Moransengo\",4480 => \"/meteo/Moraro\",4481 => \"/meteo/Morazzone\",4482 => \"/meteo/Morbegno\",4483 => \"/meteo/Morbello\",4484 => \"/meteo/Morciano+di+leuca\",4485 => \"/meteo/Morciano+di+romagna\",4486 => \"/meteo/Morcone\",4487 => \"/meteo/Mordano\",8262 => \"/meteo/Morel\",4488 => \"/meteo/Morengo\",4489 => \"/meteo/Mores\",4490 => \"/meteo/Moresco\",4491 => \"/meteo/Moretta\",4492 => \"/meteo/Morfasso\",4493 => \"/meteo/Morgano\",8717 => \"/meteo/Morgantina\",4494 => \"/meteo/Morgex\",4495 => \"/meteo/Morgongiori\",4496 => \"/meteo/Mori\",4497 => \"/meteo/Moriago+della+battaglia\",4498 => \"/meteo/Moricone\",4499 => \"/meteo/Morigerati\",4500 => \"/meteo/Morimondo\",4501 => \"/meteo/Morino\",4502 => \"/meteo/Moriondo+torinese\",4503 => \"/meteo/Morlupo\",4504 => \"/meteo/Mormanno\",4505 => \"/meteo/Mornago\",4506 => \"/meteo/Mornese\",4507 => \"/meteo/Mornico+al+serio\",4508 => \"/meteo/Mornico+losana\",4509 => \"/meteo/Morolo\",4510 => \"/meteo/Morozzo\",4511 => \"/meteo/Morra+de+sanctis\",4512 => \"/meteo/Morro+d'alba\",4513 => \"/meteo/Morro+d'oro\",4514 => \"/meteo/Morro+reatino\",4515 => \"/meteo/Morrone+del+sannio\",4516 => \"/meteo/Morrovalle\",4517 => \"/meteo/Morsano+al+tagliamento\",4518 => \"/meteo/Morsasco\",4519 => \"/meteo/Mortara\",4520 => \"/meteo/Mortegliano\",4521 => \"/meteo/Morterone\",4522 => \"/meteo/Moruzzo\",4523 => \"/meteo/Moscazzano\",4524 => \"/meteo/Moschiano\",4525 => \"/meteo/Mosciano+sant'angelo\",4526 => \"/meteo/Moscufo\",4527 => \"/meteo/Moso+in+Passiria\",4528 => \"/meteo/Mossa\",4529 => \"/meteo/Mossano\",4530 => \"/meteo/Mosso+Santa+Maria\",4531 => \"/meteo/Motta+baluffi\",4532 => \"/meteo/Motta+Camastra\",4533 => \"/meteo/Motta+d'affermo\",4534 => \"/meteo/Motta+de'+conti\",4535 => \"/meteo/Motta+di+livenza\",4536 => \"/meteo/Motta+montecorvino\",4537 => \"/meteo/Motta+san+giovanni\",4538 => \"/meteo/Motta+sant'anastasia\",4539 => \"/meteo/Motta+santa+lucia\",4540 => \"/meteo/Motta+visconti\",4541 => \"/meteo/Mottafollone\",4542 => \"/meteo/Mottalciata\",8621 => \"/meteo/Mottarone\",4543 => \"/meteo/Motteggiana\",4544 => \"/meteo/Mottola\",8254 => \"/meteo/Mottolino\",4545 => \"/meteo/Mozzagrogna\",4546 => \"/meteo/Mozzanica\",4547 => \"/meteo/Mozzate\",4548 => \"/meteo/Mozzecane\",4549 => \"/meteo/Mozzo\",4550 => \"/meteo/Muccia\",4551 => \"/meteo/Muggia\",4552 => \"/meteo/Muggio'\",4553 => \"/meteo/Mugnano+del+cardinale\",4554 => \"/meteo/Mugnano+di+napoli\",4555 => \"/meteo/Mulazzano\",4556 => \"/meteo/Mulazzo\",4557 => \"/meteo/Mura\",4558 => \"/meteo/Muravera\",4559 => \"/meteo/Murazzano\",4560 => \"/meteo/Murello\",4561 => \"/meteo/Murialdo\",4562 => \"/meteo/Murisengo\",4563 => \"/meteo/Murlo\",4564 => \"/meteo/Muro+leccese\",4565 => \"/meteo/Muro+lucano\",4566 => \"/meteo/Muros\",4567 => \"/meteo/Muscoline\",4568 => \"/meteo/Musei\",4569 => \"/meteo/Musile+di+piave\",4570 => \"/meteo/Musso\",4571 => \"/meteo/Mussolente\",4572 => \"/meteo/Mussomeli\",4573 => \"/meteo/Muzzana+del+turgnano\",4574 => \"/meteo/Muzzano\",4575 => \"/meteo/Nago+torbole\",4576 => \"/meteo/Nalles\",4577 => \"/meteo/Nanno\",4578 => \"/meteo/Nanto\",4579 => \"/meteo/Napoli\",8498 => \"/meteo/Napoli+Capodichino\",4580 => \"/meteo/Narbolia\",4581 => \"/meteo/Narcao\",4582 => \"/meteo/Nardo'\",4583 => \"/meteo/Nardodipace\",4584 => \"/meteo/Narni\",4585 => \"/meteo/Naro\",4586 => \"/meteo/Narzole\",4587 => \"/meteo/Nasino\",4588 => \"/meteo/Naso\",4589 => \"/meteo/Naturno\",4590 => \"/meteo/Nave\",4591 => \"/meteo/Nave+san+rocco\",4592 => \"/meteo/Navelli\",4593 => \"/meteo/Naz+Sciaves\",4594 => \"/meteo/Nazzano\",4595 => \"/meteo/Ne\",4596 => \"/meteo/Nebbiuno\",4597 => \"/meteo/Negrar\",4598 => \"/meteo/Neirone\",4599 => \"/meteo/Neive\",4600 => \"/meteo/Nembro\",4601 => \"/meteo/Nemi\",8381 => \"/meteo/Nemoli\",4603 => \"/meteo/Neoneli\",4604 => \"/meteo/Nepi\",4605 => \"/meteo/Nereto\",4606 => \"/meteo/Nerola\",4607 => \"/meteo/Nervesa+della+battaglia\",4608 => \"/meteo/Nerviano\",4609 => \"/meteo/Nespolo\",4610 => \"/meteo/Nesso\",4611 => \"/meteo/Netro\",4612 => \"/meteo/Nettuno\",4613 => \"/meteo/Neviano\",4614 => \"/meteo/Neviano+degli+arduini\",4615 => \"/meteo/Neviglie\",4616 => \"/meteo/Niardo\",4617 => \"/meteo/Nibbiano\",4618 => \"/meteo/Nibbiola\",4619 => \"/meteo/Nibionno\",4620 => \"/meteo/Nichelino\",4621 => \"/meteo/Nicolosi\",4622 => \"/meteo/Nicorvo\",4623 => \"/meteo/Nicosia\",4624 => \"/meteo/Nicotera\",8117 => \"/meteo/Nicotera+Marina\",4625 => \"/meteo/Niella+belbo\",8475 => \"/meteo/Niella+Tanaro\",4627 => \"/meteo/Nimis\",4628 => \"/meteo/Niscemi\",4629 => \"/meteo/Nissoria\",4630 => \"/meteo/Nizza+di+sicilia\",4631 => \"/meteo/Nizza+monferrato\",4632 => \"/meteo/Noale\",4633 => \"/meteo/Noasca\",4634 => \"/meteo/Nocara\",4635 => \"/meteo/Nocciano\",4636 => \"/meteo/Nocera+inferiore\",4637 => \"/meteo/Nocera+superiore\",4638 => \"/meteo/Nocera+terinese\",4639 => \"/meteo/Nocera+umbra\",4640 => \"/meteo/Noceto\",4641 => \"/meteo/Noci\",4642 => \"/meteo/Nociglia\",8375 => \"/meteo/Noepoli\",4644 => \"/meteo/Nogara\",4645 => \"/meteo/Nogaredo\",4646 => \"/meteo/Nogarole+rocca\",4647 => \"/meteo/Nogarole+vicentino\",4648 => \"/meteo/Noicattaro\",4649 => \"/meteo/Nola\",4650 => \"/meteo/Nole\",4651 => \"/meteo/Noli\",4652 => \"/meteo/Nomaglio\",4653 => \"/meteo/Nomi\",4654 => \"/meteo/Nonantola\",4655 => \"/meteo/None\",4656 => \"/meteo/Nonio\",4657 => \"/meteo/Noragugume\",4658 => \"/meteo/Norbello\",4659 => \"/meteo/Norcia\",4660 => \"/meteo/Norma\",4661 => \"/meteo/Nosate\",4662 => \"/meteo/Notaresco\",4663 => \"/meteo/Noto\",4664 => \"/meteo/Nova+Levante\",4665 => \"/meteo/Nova+milanese\",4666 => \"/meteo/Nova+Ponente\",8428 => \"/meteo/Nova+siri\",4668 => \"/meteo/Novafeltria\",4669 => \"/meteo/Novaledo\",4670 => \"/meteo/Novalesa\",4671 => \"/meteo/Novara\",4672 => \"/meteo/Novara+di+Sicilia\",4673 => \"/meteo/Novate+mezzola\",4674 => \"/meteo/Novate+milanese\",4675 => \"/meteo/Nove\",4676 => \"/meteo/Novedrate\",4677 => \"/meteo/Novellara\",4678 => \"/meteo/Novello\",4679 => \"/meteo/Noventa+di+piave\",4680 => \"/meteo/Noventa+padovana\",4681 => \"/meteo/Noventa+vicentina\",4682 => \"/meteo/Novi+di+modena\",4683 => \"/meteo/Novi+ligure\",4684 => \"/meteo/Novi+velia\",4685 => \"/meteo/Noviglio\",4686 => \"/meteo/Novoli\",4687 => \"/meteo/Nucetto\",4688 => \"/meteo/Nughedu+di+san+nicolo'\",4689 => \"/meteo/Nughedu+santa+vittoria\",4690 => \"/meteo/Nule\",4691 => \"/meteo/Nulvi\",4692 => \"/meteo/Numana\",4693 => \"/meteo/Nuoro\",4694 => \"/meteo/Nurachi\",4695 => \"/meteo/Nuragus\",4696 => \"/meteo/Nurallao\",4697 => \"/meteo/Nuraminis\",4698 => \"/meteo/Nureci\",4699 => \"/meteo/Nurri\",4700 => \"/meteo/Nus\",4701 => \"/meteo/Nusco\",4702 => \"/meteo/Nuvolento\",4703 => \"/meteo/Nuvolera\",4704 => \"/meteo/Nuxis\",8260 => \"/meteo/Obereggen\",4705 => \"/meteo/Occhieppo+inferiore\",4706 => \"/meteo/Occhieppo+superiore\",4707 => \"/meteo/Occhiobello\",4708 => \"/meteo/Occimiano\",4709 => \"/meteo/Ocre\",4710 => \"/meteo/Odalengo+grande\",4711 => \"/meteo/Odalengo+piccolo\",4712 => \"/meteo/Oderzo\",4713 => \"/meteo/Odolo\",4714 => \"/meteo/Ofena\",4715 => \"/meteo/Offagna\",4716 => \"/meteo/Offanengo\",4717 => \"/meteo/Offida\",4718 => \"/meteo/Offlaga\",4719 => \"/meteo/Oggebbio\",4720 => \"/meteo/Oggiona+con+santo+stefano\",4721 => \"/meteo/Oggiono\",4722 => \"/meteo/Oglianico\",4723 => \"/meteo/Ogliastro+cilento\",4724 => \"/meteo/Olbia\",8470 => \"/meteo/Olbia+Costa+Smeralda\",4725 => \"/meteo/Olcenengo\",4726 => \"/meteo/Oldenico\",4727 => \"/meteo/Oleggio\",4728 => \"/meteo/Oleggio+castello\",4729 => \"/meteo/Olevano+di+lomellina\",4730 => \"/meteo/Olevano+romano\",4731 => \"/meteo/Olevano+sul+tusciano\",4732 => \"/meteo/Olgiate+comasco\",4733 => \"/meteo/Olgiate+molgora\",4734 => \"/meteo/Olgiate+olona\",4735 => \"/meteo/Olginate\",4736 => \"/meteo/Oliena\",4737 => \"/meteo/Oliva+gessi\",4738 => \"/meteo/Olivadi\",4739 => \"/meteo/Oliveri\",4740 => \"/meteo/Oliveto+citra\",4741 => \"/meteo/Oliveto+lario\",8426 => \"/meteo/Oliveto+lucano\",4743 => \"/meteo/Olivetta+san+michele\",4744 => \"/meteo/Olivola\",4745 => \"/meteo/Ollastra+simaxis\",4746 => \"/meteo/Ollolai\",4747 => \"/meteo/Ollomont\",4748 => \"/meteo/Olmedo\",4749 => \"/meteo/Olmeneta\",4750 => \"/meteo/Olmo+al+brembo\",4751 => \"/meteo/Olmo+gentile\",4752 => \"/meteo/Oltre+il+colle\",4753 => \"/meteo/Oltressenda+alta\",4754 => \"/meteo/Oltrona+di+san+mamette\",4755 => \"/meteo/Olzai\",4756 => \"/meteo/Ome\",4757 => \"/meteo/Omegna\",4758 => \"/meteo/Omignano\",4759 => \"/meteo/Onani\",4760 => \"/meteo/Onano\",4761 => \"/meteo/Oncino\",8283 => \"/meteo/Oneglia\",4762 => \"/meteo/Oneta\",4763 => \"/meteo/Onifai\",4764 => \"/meteo/Oniferi\",8664 => \"/meteo/Onna\",4765 => \"/meteo/Ono+san+pietro\",4766 => \"/meteo/Onore\",4767 => \"/meteo/Onzo\",4768 => \"/meteo/Opera\",4769 => \"/meteo/Opi\",4770 => \"/meteo/Oppeano\",8409 => \"/meteo/Oppido+lucano\",4772 => \"/meteo/Oppido+mamertina\",4773 => \"/meteo/Ora\",4774 => \"/meteo/Orani\",4775 => \"/meteo/Oratino\",4776 => \"/meteo/Orbassano\",4777 => \"/meteo/Orbetello\",4778 => \"/meteo/Orciano+di+pesaro\",4779 => \"/meteo/Orciano+pisano\",4780 => \"/meteo/Orco+feglino\",4781 => \"/meteo/Ordona\",4782 => \"/meteo/Orero\",4783 => \"/meteo/Orgiano\",4784 => \"/meteo/Orgosolo\",4785 => \"/meteo/Oria\",4786 => \"/meteo/Oricola\",4787 => \"/meteo/Origgio\",4788 => \"/meteo/Orino\",4789 => \"/meteo/Orio+al+serio\",4790 => \"/meteo/Orio+canavese\",4791 => \"/meteo/Orio+litta\",4792 => \"/meteo/Oriolo\",4793 => \"/meteo/Oriolo+romano\",4794 => \"/meteo/Oristano\",4795 => \"/meteo/Ormea\",4796 => \"/meteo/Ormelle\",4797 => \"/meteo/Ornago\",4798 => \"/meteo/Ornavasso\",4799 => \"/meteo/Ornica\",8348 => \"/meteo/Oropa\",8169 => \"/meteo/Orosei\",4801 => \"/meteo/Orotelli\",4802 => \"/meteo/Orria\",4803 => \"/meteo/Orroli\",4804 => \"/meteo/Orsago\",4805 => \"/meteo/Orsara+bormida\",4806 => \"/meteo/Orsara+di+puglia\",4807 => \"/meteo/Orsenigo\",4808 => \"/meteo/Orsogna\",4809 => \"/meteo/Orsomarso\",4810 => \"/meteo/Orta+di+atella\",4811 => \"/meteo/Orta+nova\",4812 => \"/meteo/Orta+san+giulio\",4813 => \"/meteo/Ortacesus\",4814 => \"/meteo/Orte\",8460 => \"/meteo/Orte+casello\",4815 => \"/meteo/Ortelle\",4816 => \"/meteo/Ortezzano\",4817 => \"/meteo/Ortignano+raggiolo\",4818 => \"/meteo/Ortisei\",8725 => \"/meteo/Ortles\",4819 => \"/meteo/Ortona\",4820 => \"/meteo/Ortona+dei+marsi\",4821 => \"/meteo/Ortonovo\",4822 => \"/meteo/Ortovero\",4823 => \"/meteo/Ortucchio\",4824 => \"/meteo/Ortueri\",4825 => \"/meteo/Orune\",4826 => \"/meteo/Orvieto\",8459 => \"/meteo/Orvieto+casello\",4827 => \"/meteo/Orvinio\",4828 => \"/meteo/Orzinuovi\",4829 => \"/meteo/Orzivecchi\",4830 => \"/meteo/Osasco\",4831 => \"/meteo/Osasio\",4832 => \"/meteo/Oschiri\",4833 => \"/meteo/Osidda\",4834 => \"/meteo/Osiglia\",4835 => \"/meteo/Osilo\",4836 => \"/meteo/Osimo\",4837 => \"/meteo/Osini\",4838 => \"/meteo/Osio+sopra\",4839 => \"/meteo/Osio+sotto\",4840 => \"/meteo/Osmate\",4841 => \"/meteo/Osnago\",8465 => \"/meteo/Osoppo\",4843 => \"/meteo/Ospedaletti\",4844 => \"/meteo/Ospedaletto\",4845 => \"/meteo/Ospedaletto+d'alpinolo\",4846 => \"/meteo/Ospedaletto+euganeo\",4847 => \"/meteo/Ospedaletto+lodigiano\",4848 => \"/meteo/Ospitale+di+cadore\",4849 => \"/meteo/Ospitaletto\",4850 => \"/meteo/Ossago+lodigiano\",4851 => \"/meteo/Ossana\",4852 => \"/meteo/Ossi\",4853 => \"/meteo/Ossimo\",4854 => \"/meteo/Ossona\",4855 => \"/meteo/Ossuccio\",4856 => \"/meteo/Ostana\",4857 => \"/meteo/Ostellato\",4858 => \"/meteo/Ostiano\",4859 => \"/meteo/Ostiglia\",4860 => \"/meteo/Ostra\",4861 => \"/meteo/Ostra+vetere\",4862 => \"/meteo/Ostuni\",4863 => \"/meteo/Otranto\",4864 => \"/meteo/Otricoli\",4865 => \"/meteo/Ottana\",4866 => \"/meteo/Ottati\",4867 => \"/meteo/Ottaviano\",4868 => \"/meteo/Ottiglio\",4869 => \"/meteo/Ottobiano\",4870 => \"/meteo/Ottone\",4871 => \"/meteo/Oulx\",4872 => \"/meteo/Ovada\",4873 => \"/meteo/Ovaro\",4874 => \"/meteo/Oviglio\",4875 => \"/meteo/Ovindoli\",4876 => \"/meteo/Ovodda\",4877 => \"/meteo/Oyace\",4878 => \"/meteo/Ozegna\",4879 => \"/meteo/Ozieri\",4880 => \"/meteo/Ozzano+dell'emilia\",4881 => \"/meteo/Ozzano+monferrato\",4882 => \"/meteo/Ozzero\",4883 => \"/meteo/Pabillonis\",4884 => \"/meteo/Pace+del+mela\",4885 => \"/meteo/Paceco\",4886 => \"/meteo/Pacentro\",4887 => \"/meteo/Pachino\",4888 => \"/meteo/Paciano\",4889 => \"/meteo/Padenghe+sul+garda\",4890 => \"/meteo/Padergnone\",4891 => \"/meteo/Paderna\",4892 => \"/meteo/Paderno+d'adda\",4893 => \"/meteo/Paderno+del+grappa\",4894 => \"/meteo/Paderno+dugnano\",4895 => \"/meteo/Paderno+franciacorta\",4896 => \"/meteo/Paderno+ponchielli\",4897 => \"/meteo/Padova\",4898 => \"/meteo/Padria\",4899 => \"/meteo/Padru\",4900 => \"/meteo/Padula\",4901 => \"/meteo/Paduli\",4902 => \"/meteo/Paesana\",4903 => \"/meteo/Paese\",8713 => \"/meteo/Paestum\",8203 => \"/meteo/Paganella\",4904 => \"/meteo/Pagani\",8663 => \"/meteo/Paganica\",4905 => \"/meteo/Paganico\",4906 => \"/meteo/Pagazzano\",4907 => \"/meteo/Pagliara\",4908 => \"/meteo/Paglieta\",4909 => \"/meteo/Pagnacco\",4910 => \"/meteo/Pagno\",4911 => \"/meteo/Pagnona\",4912 => \"/meteo/Pago+del+vallo+di+lauro\",4913 => \"/meteo/Pago+veiano\",4914 => \"/meteo/Paisco+loveno\",4915 => \"/meteo/Paitone\",4916 => \"/meteo/Paladina\",8534 => \"/meteo/Palafavera\",4917 => \"/meteo/Palagano\",4918 => \"/meteo/Palagianello\",4919 => \"/meteo/Palagiano\",4920 => \"/meteo/Palagonia\",4921 => \"/meteo/Palaia\",4922 => \"/meteo/Palanzano\",4923 => \"/meteo/Palata\",4924 => \"/meteo/Palau\",4925 => \"/meteo/Palazzago\",4926 => \"/meteo/Palazzo+adriano\",4927 => \"/meteo/Palazzo+canavese\",4928 => \"/meteo/Palazzo+pignano\",4929 => \"/meteo/Palazzo+san+gervasio\",4930 => \"/meteo/Palazzolo+acreide\",4931 => \"/meteo/Palazzolo+dello+stella\",4932 => \"/meteo/Palazzolo+sull'Oglio\",4933 => \"/meteo/Palazzolo+vercellese\",4934 => \"/meteo/Palazzuolo+sul+senio\",4935 => \"/meteo/Palena\",4936 => \"/meteo/Palermiti\",4937 => \"/meteo/Palermo\",8575 => \"/meteo/Palermo+Boccadifalco\",8272 => \"/meteo/Palermo+Punta+Raisi\",4938 => \"/meteo/Palestrina\",4939 => \"/meteo/Palestro\",4940 => \"/meteo/Paliano\",8121 => \"/meteo/Palinuro\",4941 => \"/meteo/Palizzi\",8108 => \"/meteo/Palizzi+Marina\",4942 => \"/meteo/Pallagorio\",4943 => \"/meteo/Pallanzeno\",4944 => \"/meteo/Pallare\",4945 => \"/meteo/Palma+campania\",4946 => \"/meteo/Palma+di+montechiaro\",4947 => \"/meteo/Palmanova\",4948 => \"/meteo/Palmariggi\",4949 => \"/meteo/Palmas+arborea\",4950 => \"/meteo/Palmi\",4951 => \"/meteo/Palmiano\",4952 => \"/meteo/Palmoli\",4953 => \"/meteo/Palo+del+colle\",4954 => \"/meteo/Palombara+sabina\",4955 => \"/meteo/Palombaro\",4956 => \"/meteo/Palomonte\",4957 => \"/meteo/Palosco\",4958 => \"/meteo/Palu'\",4959 => \"/meteo/Palu'+del+fersina\",4960 => \"/meteo/Paludi\",4961 => \"/meteo/Paluzza\",4962 => \"/meteo/Pamparato\",8257 => \"/meteo/Pampeago\",8753 => \"/meteo/Panarotta\",4963 => \"/meteo/Pancalieri\",8261 => \"/meteo/Pancani\",4964 => \"/meteo/Pancarana\",4965 => \"/meteo/Panchia'\",4966 => \"/meteo/Pandino\",4967 => \"/meteo/Panettieri\",4968 => \"/meteo/Panicale\",4969 => \"/meteo/Pannarano\",4970 => \"/meteo/Panni\",4971 => \"/meteo/Pantelleria\",4972 => \"/meteo/Pantigliate\",4973 => \"/meteo/Paola\",4974 => \"/meteo/Paolisi\",4975 => \"/meteo/Papasidero\",4976 => \"/meteo/Papozze\",4977 => \"/meteo/Parabiago\",4978 => \"/meteo/Parabita\",4979 => \"/meteo/Paratico\",4980 => \"/meteo/Parcines\",4981 => \"/meteo/Pare'\",4982 => \"/meteo/Parella\",4983 => \"/meteo/Parenti\",4984 => \"/meteo/Parete\",4985 => \"/meteo/Pareto\",4986 => \"/meteo/Parghelia\",4987 => \"/meteo/Parlasco\",4988 => \"/meteo/Parma\",8554 => \"/meteo/Parma+Verdi\",4989 => \"/meteo/Parodi+ligure\",4990 => \"/meteo/Paroldo\",4991 => \"/meteo/Parolise\",4992 => \"/meteo/Parona\",4993 => \"/meteo/Parrano\",4994 => \"/meteo/Parre\",4995 => \"/meteo/Partanna\",4996 => \"/meteo/Partinico\",4997 => \"/meteo/Paruzzaro\",4998 => \"/meteo/Parzanica\",4999 => \"/meteo/Pasian+di+prato\",5000 => \"/meteo/Pasiano+di+pordenone\",5001 => \"/meteo/Paspardo\",5002 => \"/meteo/Passerano+Marmorito\",5003 => \"/meteo/Passignano+sul+trasimeno\",5004 => \"/meteo/Passirano\",8613 => \"/meteo/Passo+Bernina\",8760 => \"/meteo/Passo+Campolongo\",8329 => \"/meteo/Passo+Costalunga\",8618 => \"/meteo/Passo+dei+Salati\",8207 => \"/meteo/Passo+del+Brennero\",8577 => \"/meteo/Passo+del+Brocon\",8627 => \"/meteo/Passo+del+Cerreto\",8147 => \"/meteo/Passo+del+Foscagno\",8308 => \"/meteo/Passo+del+Lupo\",8206 => \"/meteo/Passo+del+Rombo\",8150 => \"/meteo/Passo+del+Tonale\",8196 => \"/meteo/Passo+della+Cisa\",8235 => \"/meteo/Passo+della+Consuma\",8290 => \"/meteo/Passo+della+Presolana\",8659 => \"/meteo/Passo+delle+Fittanze\",8145 => \"/meteo/Passo+dello+Stelvio\",8213 => \"/meteo/Passo+di+Resia\",8752 => \"/meteo/Passo+di+Vezzena\",8328 => \"/meteo/Passo+Fedaia\",8759 => \"/meteo/Passo+Gardena\",8277 => \"/meteo/Passo+Groste'\",8756 => \"/meteo/Passo+Lanciano\",8280 => \"/meteo/Passo+Pordoi\",8626 => \"/meteo/Passo+Pramollo\",8210 => \"/meteo/Passo+Rolle\",8279 => \"/meteo/Passo+San+Pellegrino\",8325 => \"/meteo/Passo+Sella\",5005 => \"/meteo/Pastena\",5006 => \"/meteo/Pastorano\",5007 => \"/meteo/Pastrengo\",5008 => \"/meteo/Pasturana\",5009 => \"/meteo/Pasturo\",8417 => \"/meteo/Paterno\",5011 => \"/meteo/Paterno+calabro\",5012 => \"/meteo/Paterno'\",5013 => \"/meteo/Paternopoli\",5014 => \"/meteo/Patrica\",5015 => \"/meteo/Pattada\",5016 => \"/meteo/Patti\",5017 => \"/meteo/Patu'\",5018 => \"/meteo/Pau\",5019 => \"/meteo/Paularo\",5020 => \"/meteo/Pauli+arbarei\",5021 => \"/meteo/Paulilatino\",5022 => \"/meteo/Paullo\",5023 => \"/meteo/Paupisi\",5024 => \"/meteo/Pavarolo\",5025 => \"/meteo/Pavia\",5026 => \"/meteo/Pavia+di+udine\",5027 => \"/meteo/Pavone+canavese\",5028 => \"/meteo/Pavone+del+mella\",5029 => \"/meteo/Pavullo+nel+frignano\",5030 => \"/meteo/Pazzano\",5031 => \"/meteo/Peccioli\",5032 => \"/meteo/Pecco\",5033 => \"/meteo/Pecetto+di+valenza\",5034 => \"/meteo/Pecetto+torinese\",5035 => \"/meteo/Pecorara\",5036 => \"/meteo/Pedace\",5037 => \"/meteo/Pedara\",5038 => \"/meteo/Pedaso\",5039 => \"/meteo/Pedavena\",5040 => \"/meteo/Pedemonte\",5041 => \"/meteo/Pederobba\",5042 => \"/meteo/Pedesina\",5043 => \"/meteo/Pedivigliano\",8473 => \"/meteo/Pedraces\",5044 => \"/meteo/Pedrengo\",5045 => \"/meteo/Peglio\",5046 => \"/meteo/Peglio\",5047 => \"/meteo/Pegognaga\",5048 => \"/meteo/Peia\",8665 => \"/meteo/Pejo\",5050 => \"/meteo/Pelago\",5051 => \"/meteo/Pella\",5052 => \"/meteo/Pellegrino+parmense\",5053 => \"/meteo/Pellezzano\",5054 => \"/meteo/Pellio+intelvi\",5055 => \"/meteo/Pellizzano\",5056 => \"/meteo/Pelugo\",5057 => \"/meteo/Penango\",5058 => \"/meteo/Penna+in+teverina\",5059 => \"/meteo/Penna+san+giovanni\",5060 => \"/meteo/Penna+sant'andrea\",5061 => \"/meteo/Pennabilli\",5062 => \"/meteo/Pennadomo\",5063 => \"/meteo/Pennapiedimonte\",5064 => \"/meteo/Penne\",8208 => \"/meteo/Pennes\",5065 => \"/meteo/Pentone\",5066 => \"/meteo/Perano\",5067 => \"/meteo/Perarolo+di+cadore\",5068 => \"/meteo/Perca\",5069 => \"/meteo/Percile\",5070 => \"/meteo/Perdasdefogu\",5071 => \"/meteo/Perdaxius\",5072 => \"/meteo/Perdifumo\",5073 => \"/meteo/Perego\",5074 => \"/meteo/Pereto\",5075 => \"/meteo/Perfugas\",5076 => \"/meteo/Pergine+valdarno\",5077 => \"/meteo/Pergine+valsugana\",5078 => \"/meteo/Pergola\",5079 => \"/meteo/Perinaldo\",5080 => \"/meteo/Perito\",5081 => \"/meteo/Perledo\",5082 => \"/meteo/Perletto\",5083 => \"/meteo/Perlo\",5084 => \"/meteo/Perloz\",5085 => \"/meteo/Pernumia\",5086 => \"/meteo/Pero\",5087 => \"/meteo/Perosa+argentina\",5088 => \"/meteo/Perosa+canavese\",5089 => \"/meteo/Perrero\",5090 => \"/meteo/Persico+dosimo\",5091 => \"/meteo/Pertengo\",5092 => \"/meteo/Pertica+alta\",5093 => \"/meteo/Pertica+bassa\",8586 => \"/meteo/Perticara+di+Novafeltria\",5094 => \"/meteo/Pertosa\",5095 => \"/meteo/Pertusio\",5096 => \"/meteo/Perugia\",8555 => \"/meteo/Perugia+Sant'Egidio\",5097 => \"/meteo/Pesaro\",5098 => \"/meteo/Pescaglia\",5099 => \"/meteo/Pescantina\",5100 => \"/meteo/Pescara\",8275 => \"/meteo/Pescara+Liberi\",5101 => \"/meteo/Pescarolo+ed+uniti\",5102 => \"/meteo/Pescasseroli\",5103 => \"/meteo/Pescate\",8312 => \"/meteo/Pescegallo\",5104 => \"/meteo/Pesche\",5105 => \"/meteo/Peschici\",5106 => \"/meteo/Peschiera+borromeo\",5107 => \"/meteo/Peschiera+del+garda\",5108 => \"/meteo/Pescia\",5109 => \"/meteo/Pescina\",8454 => \"/meteo/Pescina+casello\",5110 => \"/meteo/Pesco+sannita\",5111 => \"/meteo/Pescocostanzo\",5112 => \"/meteo/Pescolanciano\",5113 => \"/meteo/Pescopagano\",5114 => \"/meteo/Pescopennataro\",5115 => \"/meteo/Pescorocchiano\",5116 => \"/meteo/Pescosansonesco\",5117 => \"/meteo/Pescosolido\",5118 => \"/meteo/Pessano+con+Bornago\",5119 => \"/meteo/Pessina+cremonese\",5120 => \"/meteo/Pessinetto\",5121 => \"/meteo/Petacciato\",5122 => \"/meteo/Petilia+policastro\",5123 => \"/meteo/Petina\",5124 => \"/meteo/Petralia+soprana\",5125 => \"/meteo/Petralia+sottana\",5126 => \"/meteo/Petrella+salto\",5127 => \"/meteo/Petrella+tifernina\",5128 => \"/meteo/Petriano\",5129 => \"/meteo/Petriolo\",5130 => \"/meteo/Petritoli\",5131 => \"/meteo/Petrizzi\",5132 => \"/meteo/Petrona'\",5133 => \"/meteo/Petrosino\",5134 => \"/meteo/Petruro+irpino\",5135 => \"/meteo/Pettenasco\",5136 => \"/meteo/Pettinengo\",5137 => \"/meteo/Pettineo\",5138 => \"/meteo/Pettoranello+del+molise\",5139 => \"/meteo/Pettorano+sul+gizio\",5140 => \"/meteo/Pettorazza+grimani\",5141 => \"/meteo/Peveragno\",5142 => \"/meteo/Pezzana\",5143 => \"/meteo/Pezzaze\",5144 => \"/meteo/Pezzolo+valle+uzzone\",5145 => \"/meteo/Piacenza\",5146 => \"/meteo/Piacenza+d'adige\",5147 => \"/meteo/Piadena\",5148 => \"/meteo/Piagge\",5149 => \"/meteo/Piaggine\",8706 => \"/meteo/Piamprato\",5150 => \"/meteo/Pian+camuno\",8309 => \"/meteo/Pian+Cavallaro\",8233 => \"/meteo/Pian+del+Cansiglio\",8642 => \"/meteo/Pian+del+Frais\",8705 => \"/meteo/Pian+della+Mussa\",8634 => \"/meteo/Pian+delle+Betulle\",5151 => \"/meteo/Pian+di+sco'\",8712 => \"/meteo/Pian+di+Sole\",5152 => \"/meteo/Piana+crixia\",5153 => \"/meteo/Piana+degli+albanesi\",8653 => \"/meteo/Piana+di+Marcesina\",5154 => \"/meteo/Piana+di+monte+verna\",8305 => \"/meteo/Pianalunga\",5155 => \"/meteo/Piancastagnaio\",8516 => \"/meteo/Piancavallo\",5156 => \"/meteo/Piancogno\",5157 => \"/meteo/Piandimeleto\",5158 => \"/meteo/Piane+crati\",8561 => \"/meteo/Piane+di+Mocogno\",5159 => \"/meteo/Pianella\",5160 => \"/meteo/Pianello+del+lario\",5161 => \"/meteo/Pianello+val+tidone\",5162 => \"/meteo/Pianengo\",5163 => \"/meteo/Pianezza\",5164 => \"/meteo/Pianezze\",5165 => \"/meteo/Pianfei\",8605 => \"/meteo/Piani+d'Erna\",8517 => \"/meteo/Piani+di+Artavaggio\",8234 => \"/meteo/Piani+di+Bobbio\",5166 => \"/meteo/Pianico\",5167 => \"/meteo/Pianiga\",8314 => \"/meteo/Piano+del+Voglio\",5168 => \"/meteo/Piano+di+Sorrento\",8630 => \"/meteo/Piano+Provenzana\",5169 => \"/meteo/Pianopoli\",5170 => \"/meteo/Pianoro\",5171 => \"/meteo/Piansano\",5172 => \"/meteo/Piantedo\",5173 => \"/meteo/Piario\",5174 => \"/meteo/Piasco\",5175 => \"/meteo/Piateda\",5176 => \"/meteo/Piatto\",5177 => \"/meteo/Piazza+al+serchio\",5178 => \"/meteo/Piazza+armerina\",5179 => \"/meteo/Piazza+brembana\",5180 => \"/meteo/Piazzatorre\",5181 => \"/meteo/Piazzola+sul+brenta\",5182 => \"/meteo/Piazzolo\",5183 => \"/meteo/Picciano\",5184 => \"/meteo/Picerno\",5185 => \"/meteo/Picinisco\",5186 => \"/meteo/Pico\",5187 => \"/meteo/Piea\",5188 => \"/meteo/Piedicavallo\",8218 => \"/meteo/Piediluco\",5189 => \"/meteo/Piedimonte+etneo\",5190 => \"/meteo/Piedimonte+matese\",5191 => \"/meteo/Piedimonte+san+germano\",5192 => \"/meteo/Piedimulera\",5193 => \"/meteo/Piegaro\",5194 => \"/meteo/Pienza\",5195 => \"/meteo/Pieranica\",5196 => \"/meteo/Pietra+de'giorgi\",5197 => \"/meteo/Pietra+ligure\",5198 => \"/meteo/Pietra+marazzi\",5199 => \"/meteo/Pietrabbondante\",5200 => \"/meteo/Pietrabruna\",5201 => \"/meteo/Pietracamela\",5202 => \"/meteo/Pietracatella\",5203 => \"/meteo/Pietracupa\",5204 => \"/meteo/Pietradefusi\",5205 => \"/meteo/Pietraferrazzana\",5206 => \"/meteo/Pietrafitta\",5207 => \"/meteo/Pietragalla\",5208 => \"/meteo/Pietralunga\",5209 => \"/meteo/Pietramelara\",5210 => \"/meteo/Pietramontecorvino\",5211 => \"/meteo/Pietranico\",5212 => \"/meteo/Pietrapaola\",5213 => \"/meteo/Pietrapertosa\",5214 => \"/meteo/Pietraperzia\",5215 => \"/meteo/Pietraporzio\",5216 => \"/meteo/Pietraroja\",5217 => \"/meteo/Pietrarubbia\",5218 => \"/meteo/Pietrasanta\",5219 => \"/meteo/Pietrastornina\",5220 => \"/meteo/Pietravairano\",5221 => \"/meteo/Pietrelcina\",5222 => \"/meteo/Pieve+a+nievole\",5223 => \"/meteo/Pieve+albignola\",5224 => \"/meteo/Pieve+d'alpago\",5225 => \"/meteo/Pieve+d'olmi\",5226 => \"/meteo/Pieve+del+cairo\",5227 => \"/meteo/Pieve+di+bono\",5228 => \"/meteo/Pieve+di+cadore\",5229 => \"/meteo/Pieve+di+cento\",5230 => \"/meteo/Pieve+di+coriano\",5231 => \"/meteo/Pieve+di+ledro\",5232 => \"/meteo/Pieve+di+soligo\",5233 => \"/meteo/Pieve+di+teco\",5234 => \"/meteo/Pieve+emanuele\",5235 => \"/meteo/Pieve+fissiraga\",5236 => \"/meteo/Pieve+fosciana\",5237 => \"/meteo/Pieve+ligure\",5238 => \"/meteo/Pieve+porto+morone\",5239 => \"/meteo/Pieve+san+giacomo\",5240 => \"/meteo/Pieve+santo+stefano\",5241 => \"/meteo/Pieve+tesino\",5242 => \"/meteo/Pieve+torina\",5243 => \"/meteo/Pieve+vergonte\",5244 => \"/meteo/Pievebovigliana\",5245 => \"/meteo/Pievepelago\",5246 => \"/meteo/Piglio\",5247 => \"/meteo/Pigna\",5248 => \"/meteo/Pignataro+interamna\",5249 => \"/meteo/Pignataro+maggiore\",5250 => \"/meteo/Pignola\",5251 => \"/meteo/Pignone\",5252 => \"/meteo/Pigra\",5253 => \"/meteo/Pila\",8221 => \"/meteo/Pila\",5254 => \"/meteo/Pimentel\",5255 => \"/meteo/Pimonte\",5256 => \"/meteo/Pinarolo+po\",5257 => \"/meteo/Pinasca\",5258 => \"/meteo/Pincara\",5259 => \"/meteo/Pinerolo\",5260 => \"/meteo/Pineto\",5261 => \"/meteo/Pino+d'asti\",5262 => \"/meteo/Pino+sulla+sponda+del+lago+magg.\",5263 => \"/meteo/Pino+torinese\",5264 => \"/meteo/Pinzano+al+tagliamento\",5265 => \"/meteo/Pinzolo\",5266 => \"/meteo/Piobbico\",5267 => \"/meteo/Piobesi+d'alba\",5268 => \"/meteo/Piobesi+torinese\",5269 => \"/meteo/Piode\",5270 => \"/meteo/Pioltello\",5271 => \"/meteo/Piombino\",5272 => \"/meteo/Piombino+dese\",5273 => \"/meteo/Pioraco\",5274 => \"/meteo/Piossasco\",5275 => \"/meteo/Piova'+massaia\",5276 => \"/meteo/Piove+di+sacco\",5277 => \"/meteo/Piovene+rocchette\",5278 => \"/meteo/Piovera\",5279 => \"/meteo/Piozzano\",5280 => \"/meteo/Piozzo\",5281 => \"/meteo/Piraino\",5282 => \"/meteo/Pisa\",8518 => \"/meteo/Pisa+San+Giusto\",5283 => \"/meteo/Pisano\",5284 => \"/meteo/Piscina\",5285 => \"/meteo/Piscinas\",5286 => \"/meteo/Pisciotta\",5287 => \"/meteo/Pisogne\",5288 => \"/meteo/Pisoniano\",5289 => \"/meteo/Pisticci\",5290 => \"/meteo/Pistoia\",5291 => \"/meteo/Piteglio\",5292 => \"/meteo/Pitigliano\",5293 => \"/meteo/Piubega\",5294 => \"/meteo/Piuro\",5295 => \"/meteo/Piverone\",5296 => \"/meteo/Pizzale\",5297 => \"/meteo/Pizzighettone\",5298 => \"/meteo/Pizzo\",8737 => \"/meteo/Pizzo+Arera\",8727 => \"/meteo/Pizzo+Bernina\",8736 => \"/meteo/Pizzo+dei+Tre+Signori\",8739 => \"/meteo/Pizzo+della+Presolana\",5299 => \"/meteo/Pizzoferrato\",5300 => \"/meteo/Pizzoli\",5301 => \"/meteo/Pizzone\",5302 => \"/meteo/Pizzoni\",5303 => \"/meteo/Placanica\",8342 => \"/meteo/Plaghera\",8685 => \"/meteo/Plain+Maison\",8324 => \"/meteo/Plain+Mason\",8337 => \"/meteo/Plan\",8469 => \"/meteo/Plan+Boè\",8633 => \"/meteo/Plan+Checrouit\",8204 => \"/meteo/Plan+de+Corones\",8576 => \"/meteo/Plan+in+Passiria\",5304 => \"/meteo/Plataci\",5305 => \"/meteo/Platania\",8241 => \"/meteo/Plateau+Rosa\",5306 => \"/meteo/Plati'\",5307 => \"/meteo/Plaus\",5308 => \"/meteo/Plesio\",5309 => \"/meteo/Ploaghe\",5310 => \"/meteo/Plodio\",8569 => \"/meteo/Plose\",5311 => \"/meteo/Pocapaglia\",5312 => \"/meteo/Pocenia\",5313 => \"/meteo/Podenzana\",5314 => \"/meteo/Podenzano\",5315 => \"/meteo/Pofi\",5316 => \"/meteo/Poggiardo\",5317 => \"/meteo/Poggibonsi\",5318 => \"/meteo/Poggio+a+caiano\",5319 => \"/meteo/Poggio+berni\",5320 => \"/meteo/Poggio+bustone\",5321 => \"/meteo/Poggio+catino\",5322 => \"/meteo/Poggio+imperiale\",5323 => \"/meteo/Poggio+mirteto\",5324 => \"/meteo/Poggio+moiano\",5325 => \"/meteo/Poggio+nativo\",5326 => \"/meteo/Poggio+picenze\",5327 => \"/meteo/Poggio+renatico\",5328 => \"/meteo/Poggio+rusco\",5329 => \"/meteo/Poggio+san+lorenzo\",5330 => \"/meteo/Poggio+san+marcello\",5331 => \"/meteo/Poggio+san+vicino\",5332 => \"/meteo/Poggio+sannita\",5333 => \"/meteo/Poggiodomo\",5334 => \"/meteo/Poggiofiorito\",5335 => \"/meteo/Poggiomarino\",5336 => \"/meteo/Poggioreale\",5337 => \"/meteo/Poggiorsini\",5338 => \"/meteo/Poggiridenti\",5339 => \"/meteo/Pogliano+milanese\",8339 => \"/meteo/Pogliola\",5340 => \"/meteo/Pognana+lario\",5341 => \"/meteo/Pognano\",5342 => \"/meteo/Pogno\",5343 => \"/meteo/Poiana+maggiore\",5344 => \"/meteo/Poirino\",5345 => \"/meteo/Polaveno\",5346 => \"/meteo/Polcenigo\",5347 => \"/meteo/Polesella\",5348 => \"/meteo/Polesine+parmense\",5349 => \"/meteo/Poli\",5350 => \"/meteo/Polia\",5351 => \"/meteo/Policoro\",5352 => \"/meteo/Polignano+a+mare\",5353 => \"/meteo/Polinago\",5354 => \"/meteo/Polino\",5355 => \"/meteo/Polistena\",5356 => \"/meteo/Polizzi+generosa\",5357 => \"/meteo/Polla\",5358 => \"/meteo/Pollein\",5359 => \"/meteo/Pollena+trocchia\",5360 => \"/meteo/Pollenza\",5361 => \"/meteo/Pollica\",5362 => \"/meteo/Pollina\",5363 => \"/meteo/Pollone\",5364 => \"/meteo/Pollutri\",5365 => \"/meteo/Polonghera\",5366 => \"/meteo/Polpenazze+del+garda\",8650 => \"/meteo/Polsa+San+Valentino\",5367 => \"/meteo/Polverara\",5368 => \"/meteo/Polverigi\",5369 => \"/meteo/Pomarance\",5370 => \"/meteo/Pomaretto\",8384 => \"/meteo/Pomarico\",5372 => \"/meteo/Pomaro+monferrato\",5373 => \"/meteo/Pomarolo\",5374 => \"/meteo/Pombia\",5375 => \"/meteo/Pomezia\",5376 => \"/meteo/Pomigliano+d'arco\",5377 => \"/meteo/Pompei\",5378 => \"/meteo/Pompeiana\",5379 => \"/meteo/Pompiano\",5380 => \"/meteo/Pomponesco\",5381 => \"/meteo/Pompu\",5382 => \"/meteo/Poncarale\",5383 => \"/meteo/Ponderano\",5384 => \"/meteo/Ponna\",5385 => \"/meteo/Ponsacco\",5386 => \"/meteo/Ponso\",8220 => \"/meteo/Pont\",5389 => \"/meteo/Pont+canavese\",5427 => \"/meteo/Pont+Saint+Martin\",5387 => \"/meteo/Pontassieve\",5388 => \"/meteo/Pontboset\",5390 => \"/meteo/Ponte\",5391 => \"/meteo/Ponte+buggianese\",5392 => \"/meteo/Ponte+dell'olio\",5393 => \"/meteo/Ponte+di+legno\",5394 => \"/meteo/Ponte+di+piave\",5395 => \"/meteo/Ponte+Gardena\",5396 => \"/meteo/Ponte+in+valtellina\",5397 => \"/meteo/Ponte+lambro\",5398 => \"/meteo/Ponte+nelle+alpi\",5399 => \"/meteo/Ponte+nizza\",5400 => \"/meteo/Ponte+nossa\",5401 => \"/meteo/Ponte+San+Nicolo'\",5402 => \"/meteo/Ponte+San+Pietro\",5403 => \"/meteo/Pontebba\",5404 => \"/meteo/Pontecagnano+faiano\",5405 => \"/meteo/Pontecchio+polesine\",5406 => \"/meteo/Pontechianale\",5407 => \"/meteo/Pontecorvo\",5408 => \"/meteo/Pontecurone\",5409 => \"/meteo/Pontedassio\",5410 => \"/meteo/Pontedera\",5411 => \"/meteo/Pontelandolfo\",5412 => \"/meteo/Pontelatone\",5413 => \"/meteo/Pontelongo\",5414 => \"/meteo/Pontenure\",5415 => \"/meteo/Ponteranica\",5416 => \"/meteo/Pontestura\",5417 => \"/meteo/Pontevico\",5418 => \"/meteo/Pontey\",5419 => \"/meteo/Ponti\",5420 => \"/meteo/Ponti+sul+mincio\",5421 => \"/meteo/Pontida\",5422 => \"/meteo/Pontinia\",5423 => \"/meteo/Pontinvrea\",5424 => \"/meteo/Pontirolo+nuovo\",5425 => \"/meteo/Pontoglio\",5426 => \"/meteo/Pontremoli\",5428 => \"/meteo/Ponza\",5429 => \"/meteo/Ponzano+di+fermo\",8462 => \"/meteo/Ponzano+galleria\",5430 => \"/meteo/Ponzano+monferrato\",5431 => \"/meteo/Ponzano+romano\",5432 => \"/meteo/Ponzano+veneto\",5433 => \"/meteo/Ponzone\",5434 => \"/meteo/Popoli\",5435 => \"/meteo/Poppi\",8192 => \"/meteo/Populonia\",5436 => \"/meteo/Porano\",5437 => \"/meteo/Porcari\",5438 => \"/meteo/Porcia\",5439 => \"/meteo/Pordenone\",5440 => \"/meteo/Porlezza\",5441 => \"/meteo/Pornassio\",5442 => \"/meteo/Porpetto\",5443 => \"/meteo/Porretta+terme\",5444 => \"/meteo/Portacomaro\",5445 => \"/meteo/Portalbera\",5446 => \"/meteo/Porte\",5447 => \"/meteo/Portici\",5448 => \"/meteo/Portico+di+caserta\",5449 => \"/meteo/Portico+e+san+benedetto\",5450 => \"/meteo/Portigliola\",8294 => \"/meteo/Porto+Alabe\",5451 => \"/meteo/Porto+azzurro\",5452 => \"/meteo/Porto+ceresio\",8528 => \"/meteo/Porto+Cervo\",5453 => \"/meteo/Porto+cesareo\",8295 => \"/meteo/Porto+Conte\",8612 => \"/meteo/Porto+Corsini\",5454 => \"/meteo/Porto+empedocle\",8669 => \"/meteo/Porto+Ercole\",8743 => \"/meteo/Porto+Levante\",5455 => \"/meteo/Porto+mantovano\",8178 => \"/meteo/Porto+Pino\",5456 => \"/meteo/Porto+recanati\",8529 => \"/meteo/Porto+Rotondo\",5457 => \"/meteo/Porto+san+giorgio\",5458 => \"/meteo/Porto+sant'elpidio\",8670 => \"/meteo/Porto+Santo+Stefano\",5459 => \"/meteo/Porto+tolle\",5460 => \"/meteo/Porto+torres\",5461 => \"/meteo/Porto+valtravaglia\",5462 => \"/meteo/Porto+viro\",8172 => \"/meteo/Portobello+di+Gallura\",5463 => \"/meteo/Portobuffole'\",5464 => \"/meteo/Portocannone\",5465 => \"/meteo/Portoferraio\",5466 => \"/meteo/Portofino\",5467 => \"/meteo/Portogruaro\",5468 => \"/meteo/Portomaggiore\",5469 => \"/meteo/Portopalo+di+capo+passero\",8171 => \"/meteo/Portorotondo\",5470 => \"/meteo/Portoscuso\",5471 => \"/meteo/Portovenere\",5472 => \"/meteo/Portula\",5473 => \"/meteo/Posada\",5474 => \"/meteo/Posina\",5475 => \"/meteo/Positano\",5476 => \"/meteo/Possagno\",5477 => \"/meteo/Posta\",5478 => \"/meteo/Posta+fibreno\",5479 => \"/meteo/Postal\",5480 => \"/meteo/Postalesio\",5481 => \"/meteo/Postiglione\",5482 => \"/meteo/Postua\",5483 => \"/meteo/Potenza\",5484 => \"/meteo/Potenza+picena\",5485 => \"/meteo/Pove+del+grappa\",5486 => \"/meteo/Povegliano\",5487 => \"/meteo/Povegliano+veronese\",5488 => \"/meteo/Poviglio\",5489 => \"/meteo/Povoletto\",5490 => \"/meteo/Pozza+di+fassa\",5491 => \"/meteo/Pozzaglia+sabino\",5492 => \"/meteo/Pozzaglio+ed+uniti\",5493 => \"/meteo/Pozzallo\",5494 => \"/meteo/Pozzilli\",5495 => \"/meteo/Pozzo+d'adda\",5496 => \"/meteo/Pozzol+groppo\",5497 => \"/meteo/Pozzolengo\",5498 => \"/meteo/Pozzoleone\",5499 => \"/meteo/Pozzolo+formigaro\",5500 => \"/meteo/Pozzomaggiore\",5501 => \"/meteo/Pozzonovo\",5502 => \"/meteo/Pozzuoli\",5503 => \"/meteo/Pozzuolo+del+friuli\",5504 => \"/meteo/Pozzuolo+martesana\",8693 => \"/meteo/Pra+Catinat\",5505 => \"/meteo/Pradalunga\",5506 => \"/meteo/Pradamano\",5507 => \"/meteo/Pradleves\",5508 => \"/meteo/Pragelato\",5509 => \"/meteo/Praia+a+mare\",5510 => \"/meteo/Praiano\",5511 => \"/meteo/Pralboino\",5512 => \"/meteo/Prali\",5513 => \"/meteo/Pralormo\",5514 => \"/meteo/Pralungo\",5515 => \"/meteo/Pramaggiore\",5516 => \"/meteo/Pramollo\",5517 => \"/meteo/Prarolo\",5518 => \"/meteo/Prarostino\",5519 => \"/meteo/Prasco\",5520 => \"/meteo/Prascorsano\",5521 => \"/meteo/Praso\",5522 => \"/meteo/Prata+camportaccio\",5523 => \"/meteo/Prata+d'ansidonia\",5524 => \"/meteo/Prata+di+pordenone\",5525 => \"/meteo/Prata+di+principato+ultra\",5526 => \"/meteo/Prata+sannita\",5527 => \"/meteo/Pratella\",8102 => \"/meteo/Prati+di+Tivo\",8694 => \"/meteo/Pratica+di+Mare\",5528 => \"/meteo/Pratiglione\",5529 => \"/meteo/Prato\",5530 => \"/meteo/Prato+allo+Stelvio\",5531 => \"/meteo/Prato+carnico\",8157 => \"/meteo/Prato+Nevoso\",5532 => \"/meteo/Prato+sesia\",8560 => \"/meteo/Prato+Spilla\",5533 => \"/meteo/Pratola+peligna\",5534 => \"/meteo/Pratola+serra\",5535 => \"/meteo/Pratovecchio\",5536 => \"/meteo/Pravisdomini\",5537 => \"/meteo/Pray\",5538 => \"/meteo/Prazzo\",5539 => \"/meteo/Pre'+Saint+Didier\",5540 => \"/meteo/Precenicco\",5541 => \"/meteo/Preci\",5542 => \"/meteo/Predappio\",5543 => \"/meteo/Predazzo\",5544 => \"/meteo/Predoi\",5545 => \"/meteo/Predore\",5546 => \"/meteo/Predosa\",5547 => \"/meteo/Preganziol\",5548 => \"/meteo/Pregnana+milanese\",5549 => \"/meteo/Prela'\",5550 => \"/meteo/Premana\",5551 => \"/meteo/Premariacco\",5552 => \"/meteo/Premeno\",5553 => \"/meteo/Premia\",5554 => \"/meteo/Premilcuore\",5555 => \"/meteo/Premolo\",5556 => \"/meteo/Premosello+chiovenda\",5557 => \"/meteo/Preone\",5558 => \"/meteo/Preore\",5559 => \"/meteo/Prepotto\",8578 => \"/meteo/Presanella\",5560 => \"/meteo/Preseglie\",5561 => \"/meteo/Presenzano\",5562 => \"/meteo/Presezzo\",5563 => \"/meteo/Presicce\",5564 => \"/meteo/Pressana\",5565 => \"/meteo/Prestine\",5566 => \"/meteo/Pretoro\",5567 => \"/meteo/Prevalle\",5568 => \"/meteo/Prezza\",5569 => \"/meteo/Prezzo\",5570 => \"/meteo/Priero\",5571 => \"/meteo/Prignano+cilento\",5572 => \"/meteo/Prignano+sulla+secchia\",5573 => \"/meteo/Primaluna\",5574 => \"/meteo/Priocca\",5575 => \"/meteo/Priola\",5576 => \"/meteo/Priolo+gargallo\",5577 => \"/meteo/Priverno\",5578 => \"/meteo/Prizzi\",5579 => \"/meteo/Proceno\",5580 => \"/meteo/Procida\",5581 => \"/meteo/Propata\",5582 => \"/meteo/Proserpio\",5583 => \"/meteo/Prossedi\",5584 => \"/meteo/Provaglio+d'iseo\",5585 => \"/meteo/Provaglio+val+sabbia\",5586 => \"/meteo/Proves\",5587 => \"/meteo/Provvidenti\",8189 => \"/meteo/Prunetta\",5588 => \"/meteo/Prunetto\",5589 => \"/meteo/Puegnago+sul+garda\",5590 => \"/meteo/Puglianello\",5591 => \"/meteo/Pula\",5592 => \"/meteo/Pulfero\",5593 => \"/meteo/Pulsano\",5594 => \"/meteo/Pumenengo\",8584 => \"/meteo/Punta+Ala\",8708 => \"/meteo/Punta+Ban\",8564 => \"/meteo/Punta+Helbronner\",8306 => \"/meteo/Punta+Indren\",8107 => \"/meteo/Punta+Stilo\",5595 => \"/meteo/Puos+d'alpago\",5596 => \"/meteo/Pusiano\",5597 => \"/meteo/Putifigari\",5598 => \"/meteo/Putignano\",5599 => \"/meteo/Quadrelle\",5600 => \"/meteo/Quadri\",5601 => \"/meteo/Quagliuzzo\",5602 => \"/meteo/Qualiano\",5603 => \"/meteo/Quaranti\",5604 => \"/meteo/Quaregna\",5605 => \"/meteo/Quargnento\",5606 => \"/meteo/Quarna+sopra\",5607 => \"/meteo/Quarna+sotto\",5608 => \"/meteo/Quarona\",5609 => \"/meteo/Quarrata\",5610 => \"/meteo/Quart\",5611 => \"/meteo/Quarto\",5612 => \"/meteo/Quarto+d'altino\",5613 => \"/meteo/Quartu+sant'elena\",5614 => \"/meteo/Quartucciu\",5615 => \"/meteo/Quassolo\",5616 => \"/meteo/Quattordio\",5617 => \"/meteo/Quattro+castella\",5618 => \"/meteo/Quero\",5619 => \"/meteo/Quiliano\",5620 => \"/meteo/Quincinetto\",5621 => \"/meteo/Quindici\",5622 => \"/meteo/Quingentole\",5623 => \"/meteo/Quintano\",5624 => \"/meteo/Quinto+di+treviso\",5625 => \"/meteo/Quinto+vercellese\",5626 => \"/meteo/Quinto+vicentino\",5627 => \"/meteo/Quinzano+d'oglio\",5628 => \"/meteo/Quistello\",5629 => \"/meteo/Quittengo\",5630 => \"/meteo/Rabbi\",5631 => \"/meteo/Racale\",5632 => \"/meteo/Racalmuto\",5633 => \"/meteo/Racconigi\",5634 => \"/meteo/Raccuja\",5635 => \"/meteo/Racines\",8352 => \"/meteo/Racines+Giovo\",5636 => \"/meteo/Radda+in+chianti\",5637 => \"/meteo/Raddusa\",5638 => \"/meteo/Radicofani\",5639 => \"/meteo/Radicondoli\",5640 => \"/meteo/Raffadali\",5641 => \"/meteo/Ragalna\",5642 => \"/meteo/Ragogna\",5643 => \"/meteo/Ragoli\",5644 => \"/meteo/Ragusa\",5645 => \"/meteo/Raiano\",5646 => \"/meteo/Ramacca\",5647 => \"/meteo/Ramiseto\",5648 => \"/meteo/Ramponio+verna\",5649 => \"/meteo/Rancio+valcuvia\",5650 => \"/meteo/Ranco\",5651 => \"/meteo/Randazzo\",5652 => \"/meteo/Ranica\",5653 => \"/meteo/Ranzanico\",5654 => \"/meteo/Ranzo\",5655 => \"/meteo/Rapagnano\",5656 => \"/meteo/Rapallo\",5657 => \"/meteo/Rapino\",5658 => \"/meteo/Rapolano+terme\",8394 => \"/meteo/Rapolla\",5660 => \"/meteo/Rapone\",5661 => \"/meteo/Rassa\",5662 => \"/meteo/Rasun+Anterselva\",5663 => \"/meteo/Rasura\",5664 => \"/meteo/Ravanusa\",5665 => \"/meteo/Ravarino\",5666 => \"/meteo/Ravascletto\",5667 => \"/meteo/Ravello\",5668 => \"/meteo/Ravenna\",5669 => \"/meteo/Raveo\",5670 => \"/meteo/Raviscanina\",5671 => \"/meteo/Re\",5672 => \"/meteo/Rea\",5673 => \"/meteo/Realmonte\",5674 => \"/meteo/Reana+del+roiale\",5675 => \"/meteo/Reano\",5676 => \"/meteo/Recale\",5677 => \"/meteo/Recanati\",5678 => \"/meteo/Recco\",5679 => \"/meteo/Recetto\",8639 => \"/meteo/Recoaro+Mille\",5680 => \"/meteo/Recoaro+Terme\",5681 => \"/meteo/Redavalle\",5682 => \"/meteo/Redondesco\",5683 => \"/meteo/Refrancore\",5684 => \"/meteo/Refrontolo\",5685 => \"/meteo/Regalbuto\",5686 => \"/meteo/Reggello\",8542 => \"/meteo/Reggio+Aeroporto+dello+Stretto\",5687 => \"/meteo/Reggio+Calabria\",5688 => \"/meteo/Reggio+Emilia\",5689 => \"/meteo/Reggiolo\",5690 => \"/meteo/Reino\",5691 => \"/meteo/Reitano\",5692 => \"/meteo/Remanzacco\",5693 => \"/meteo/Remedello\",5694 => \"/meteo/Renate\",5695 => \"/meteo/Rende\",5696 => \"/meteo/Renon\",5697 => \"/meteo/Resana\",5698 => \"/meteo/Rescaldina\",8734 => \"/meteo/Resegone\",5699 => \"/meteo/Resia\",5700 => \"/meteo/Resiutta\",5701 => \"/meteo/Resuttano\",5702 => \"/meteo/Retorbido\",5703 => \"/meteo/Revello\",5704 => \"/meteo/Revere\",5705 => \"/meteo/Revigliasco+d'asti\",5706 => \"/meteo/Revine+lago\",5707 => \"/meteo/Revo'\",5708 => \"/meteo/Rezzago\",5709 => \"/meteo/Rezzato\",5710 => \"/meteo/Rezzo\",5711 => \"/meteo/Rezzoaglio\",5712 => \"/meteo/Rhemes+Notre+Dame\",5713 => \"/meteo/Rhemes+Saint+Georges\",5714 => \"/meteo/Rho\",5715 => \"/meteo/Riace\",8106 => \"/meteo/Riace+Marina\",5716 => \"/meteo/Rialto\",5717 => \"/meteo/Riano\",5718 => \"/meteo/Riardo\",5719 => \"/meteo/Ribera\",5720 => \"/meteo/Ribordone\",5721 => \"/meteo/Ricadi\",5722 => \"/meteo/Ricaldone\",5723 => \"/meteo/Riccia\",5724 => \"/meteo/Riccione\",5725 => \"/meteo/Ricco'+del+golfo+di+spezia\",5726 => \"/meteo/Ricengo\",5727 => \"/meteo/Ricigliano\",5728 => \"/meteo/Riese+pio+x\",5729 => \"/meteo/Riesi\",5730 => \"/meteo/Rieti\",5731 => \"/meteo/Rifiano\",5732 => \"/meteo/Rifreddo\",8691 => \"/meteo/Rifugio+Boffalora+Ticino\",8244 => \"/meteo/Rifugio+Calvi+Laghi+Gemelli\",8684 => \"/meteo/Rifugio+Chivasso+-+Colle+del+Nivolet\",8678 => \"/meteo/Rifugio+Curò\",8679 => \"/meteo/Rifugio+laghi+Gemelli\",8731 => \"/meteo/Rifugio+Livio+Bianco\",8681 => \"/meteo/Rifugio+Mezzalama\",8682 => \"/meteo/Rifugio+Quintino+Sella\",8629 => \"/meteo/Rifugio+Sapienza\",8683 => \"/meteo/Rifugio+Torino\",8680 => \"/meteo/Rifugio+Viviani\",5733 => \"/meteo/Rignano+flaminio\",5734 => \"/meteo/Rignano+garganico\",5735 => \"/meteo/Rignano+sull'arno\",5736 => \"/meteo/Rigolato\",5737 => \"/meteo/Rima+san+giuseppe\",5738 => \"/meteo/Rimasco\",5739 => \"/meteo/Rimella\",5740 => \"/meteo/Rimini\",8546 => \"/meteo/Rimini+Miramare\",5741 => \"/meteo/Rio+di+Pusteria\",5742 => \"/meteo/Rio+marina\",5743 => \"/meteo/Rio+nell'elba\",5744 => \"/meteo/Rio+saliceto\",5745 => \"/meteo/Riofreddo\",5746 => \"/meteo/Riola+sardo\",5747 => \"/meteo/Riolo+terme\",5748 => \"/meteo/Riolunato\",5749 => \"/meteo/Riomaggiore\",5750 => \"/meteo/Rionero+in+vulture\",5751 => \"/meteo/Rionero+sannitico\",8503 => \"/meteo/Rioveggio\",5752 => \"/meteo/Ripa+teatina\",5753 => \"/meteo/Ripabottoni\",8404 => \"/meteo/Ripacandida\",5755 => \"/meteo/Ripalimosani\",5756 => \"/meteo/Ripalta+arpina\",5757 => \"/meteo/Ripalta+cremasca\",5758 => \"/meteo/Ripalta+guerina\",5759 => \"/meteo/Riparbella\",5760 => \"/meteo/Ripatransone\",5761 => \"/meteo/Ripe\",5762 => \"/meteo/Ripe+san+ginesio\",5763 => \"/meteo/Ripi\",5764 => \"/meteo/Riposto\",5765 => \"/meteo/Rittana\",5766 => \"/meteo/Riva+del+garda\",5767 => \"/meteo/Riva+di+solto\",8579 => \"/meteo/Riva+di+Tures\",5768 => \"/meteo/Riva+ligure\",5769 => \"/meteo/Riva+presso+chieri\",5770 => \"/meteo/Riva+valdobbia\",5771 => \"/meteo/Rivalba\",5772 => \"/meteo/Rivalta+bormida\",5773 => \"/meteo/Rivalta+di+torino\",5774 => \"/meteo/Rivamonte+agordino\",5775 => \"/meteo/Rivanazzano\",5776 => \"/meteo/Rivara\",5777 => \"/meteo/Rivarolo+canavese\",5778 => \"/meteo/Rivarolo+del+re+ed+uniti\",5779 => \"/meteo/Rivarolo+mantovano\",5780 => \"/meteo/Rivarone\",5781 => \"/meteo/Rivarossa\",5782 => \"/meteo/Rive\",5783 => \"/meteo/Rive+d'arcano\",8398 => \"/meteo/Rivello\",5785 => \"/meteo/Rivergaro\",5786 => \"/meteo/Rivignano\",5787 => \"/meteo/Rivisondoli\",5788 => \"/meteo/Rivodutri\",5789 => \"/meteo/Rivoli\",8436 => \"/meteo/Rivoli+veronese\",5791 => \"/meteo/Rivolta+d'adda\",5792 => \"/meteo/Rizziconi\",5793 => \"/meteo/Ro\",5794 => \"/meteo/Roana\",5795 => \"/meteo/Roaschia\",5796 => \"/meteo/Roascio\",5797 => \"/meteo/Roasio\",5798 => \"/meteo/Roatto\",5799 => \"/meteo/Robassomero\",5800 => \"/meteo/Robbiate\",5801 => \"/meteo/Robbio\",5802 => \"/meteo/Robecchetto+con+Induno\",5803 => \"/meteo/Robecco+d'oglio\",5804 => \"/meteo/Robecco+pavese\",5805 => \"/meteo/Robecco+sul+naviglio\",5806 => \"/meteo/Robella\",5807 => \"/meteo/Robilante\",5808 => \"/meteo/Roburent\",5809 => \"/meteo/Rocca+canavese\",5810 => \"/meteo/Rocca+Canterano\",5811 => \"/meteo/Rocca+Ciglie'\",5812 => \"/meteo/Rocca+d'Arazzo\",5813 => \"/meteo/Rocca+d'Arce\",5814 => \"/meteo/Rocca+d'Evandro\",5815 => \"/meteo/Rocca+de'+Baldi\",5816 => \"/meteo/Rocca+de'+Giorgi\",5817 => \"/meteo/Rocca+di+Botte\",5818 => \"/meteo/Rocca+di+Cambio\",5819 => \"/meteo/Rocca+di+Cave\",5820 => \"/meteo/Rocca+di+Mezzo\",5821 => \"/meteo/Rocca+di+Neto\",5822 => \"/meteo/Rocca+di+Papa\",5823 => \"/meteo/Rocca+Grimalda\",5824 => \"/meteo/Rocca+Imperiale\",8115 => \"/meteo/Rocca+Imperiale+Marina\",5825 => \"/meteo/Rocca+Massima\",5826 => \"/meteo/Rocca+Pia\",5827 => \"/meteo/Rocca+Pietore\",5828 => \"/meteo/Rocca+Priora\",5829 => \"/meteo/Rocca+San+Casciano\",5830 => \"/meteo/Rocca+San+Felice\",5831 => \"/meteo/Rocca+San+Giovanni\",5832 => \"/meteo/Rocca+Santa+Maria\",5833 => \"/meteo/Rocca+Santo+Stefano\",5834 => \"/meteo/Rocca+Sinibalda\",5835 => \"/meteo/Rocca+Susella\",5836 => \"/meteo/Roccabascerana\",5837 => \"/meteo/Roccabernarda\",5838 => \"/meteo/Roccabianca\",5839 => \"/meteo/Roccabruna\",8535 => \"/meteo/Roccacaramanico\",5840 => \"/meteo/Roccacasale\",5841 => \"/meteo/Roccadaspide\",5842 => \"/meteo/Roccafiorita\",5843 => \"/meteo/Roccafluvione\",5844 => \"/meteo/Roccaforte+del+greco\",5845 => \"/meteo/Roccaforte+ligure\",5846 => \"/meteo/Roccaforte+mondovi'\",5847 => \"/meteo/Roccaforzata\",5848 => \"/meteo/Roccafranca\",5849 => \"/meteo/Roccagiovine\",5850 => \"/meteo/Roccagloriosa\",5851 => \"/meteo/Roccagorga\",5852 => \"/meteo/Roccalbegna\",5853 => \"/meteo/Roccalumera\",5854 => \"/meteo/Roccamandolfi\",5855 => \"/meteo/Roccamena\",5856 => \"/meteo/Roccamonfina\",5857 => \"/meteo/Roccamontepiano\",5858 => \"/meteo/Roccamorice\",8418 => \"/meteo/Roccanova\",5860 => \"/meteo/Roccantica\",5861 => \"/meteo/Roccapalumba\",5862 => \"/meteo/Roccapiemonte\",5863 => \"/meteo/Roccarainola\",5864 => \"/meteo/Roccaraso\",5865 => \"/meteo/Roccaromana\",5866 => \"/meteo/Roccascalegna\",5867 => \"/meteo/Roccasecca\",5868 => \"/meteo/Roccasecca+dei+volsci\",5869 => \"/meteo/Roccasicura\",5870 => \"/meteo/Roccasparvera\",5871 => \"/meteo/Roccaspinalveti\",5872 => \"/meteo/Roccastrada\",5873 => \"/meteo/Roccavaldina\",5874 => \"/meteo/Roccaverano\",5875 => \"/meteo/Roccavignale\",5876 => \"/meteo/Roccavione\",5877 => \"/meteo/Roccavivara\",5878 => \"/meteo/Roccella+ionica\",5879 => \"/meteo/Roccella+valdemone\",5880 => \"/meteo/Rocchetta+a+volturno\",5881 => \"/meteo/Rocchetta+belbo\",5882 => \"/meteo/Rocchetta+di+vara\",5883 => \"/meteo/Rocchetta+e+croce\",5884 => \"/meteo/Rocchetta+ligure\",5885 => \"/meteo/Rocchetta+nervina\",5886 => \"/meteo/Rocchetta+palafea\",5887 => \"/meteo/Rocchetta+sant'antonio\",5888 => \"/meteo/Rocchetta+tanaro\",5889 => \"/meteo/Rodano\",5890 => \"/meteo/Roddi\",5891 => \"/meteo/Roddino\",5892 => \"/meteo/Rodello\",5893 => \"/meteo/Rodengo\",5894 => \"/meteo/Rodengo-saiano\",5895 => \"/meteo/Rodero\",5896 => \"/meteo/Rodi+garganico\",5897 => \"/meteo/Rodi'+milici\",5898 => \"/meteo/Rodigo\",5899 => \"/meteo/Roe'+volciano\",5900 => \"/meteo/Rofrano\",5901 => \"/meteo/Rogeno\",5902 => \"/meteo/Roggiano+gravina\",5903 => \"/meteo/Roghudi\",5904 => \"/meteo/Rogliano\",5905 => \"/meteo/Rognano\",5906 => \"/meteo/Rogno\",5907 => \"/meteo/Rogolo\",5908 => \"/meteo/Roiate\",5909 => \"/meteo/Roio+del+sangro\",5910 => \"/meteo/Roisan\",5911 => \"/meteo/Roletto\",5912 => \"/meteo/Rolo\",5913 => \"/meteo/Roma\",8545 => \"/meteo/Roma+Ciampino\",8499 => \"/meteo/Roma+Fiumicino\",5914 => \"/meteo/Romagnano+al+monte\",5915 => \"/meteo/Romagnano+sesia\",5916 => \"/meteo/Romagnese\",5917 => \"/meteo/Romallo\",5918 => \"/meteo/Romana\",5919 => \"/meteo/Romanengo\",5920 => \"/meteo/Romano+canavese\",5921 => \"/meteo/Romano+d'ezzelino\",5922 => \"/meteo/Romano+di+lombardia\",5923 => \"/meteo/Romans+d'isonzo\",5924 => \"/meteo/Rombiolo\",5925 => \"/meteo/Romeno\",5926 => \"/meteo/Romentino\",5927 => \"/meteo/Rometta\",5928 => \"/meteo/Ronago\",5929 => \"/meteo/Ronca'\",5930 => \"/meteo/Roncade\",5931 => \"/meteo/Roncadelle\",5932 => \"/meteo/Roncaro\",5933 => \"/meteo/Roncegno\",5934 => \"/meteo/Roncello\",5935 => \"/meteo/Ronchi+dei+legionari\",5936 => \"/meteo/Ronchi+valsugana\",5937 => \"/meteo/Ronchis\",5938 => \"/meteo/Ronciglione\",5939 => \"/meteo/Ronco+all'adige\",8231 => \"/meteo/Ronco+all`Adige\",5940 => \"/meteo/Ronco+biellese\",5941 => \"/meteo/Ronco+briantino\",5942 => \"/meteo/Ronco+canavese\",5943 => \"/meteo/Ronco+scrivia\",5944 => \"/meteo/Roncobello\",5945 => \"/meteo/Roncoferraro\",5946 => \"/meteo/Roncofreddo\",5947 => \"/meteo/Roncola\",5948 => \"/meteo/Roncone\",5949 => \"/meteo/Rondanina\",5950 => \"/meteo/Rondissone\",5951 => \"/meteo/Ronsecco\",5952 => \"/meteo/Ronzo+chienis\",5953 => \"/meteo/Ronzone\",5954 => \"/meteo/Roppolo\",5955 => \"/meteo/Rora'\",5956 => \"/meteo/Rosa'\",5957 => \"/meteo/Rosarno\",5958 => \"/meteo/Rosasco\",5959 => \"/meteo/Rosate\",5960 => \"/meteo/Rosazza\",5961 => \"/meteo/Rosciano\",5962 => \"/meteo/Roscigno\",5963 => \"/meteo/Rose\",5964 => \"/meteo/Rosello\",5965 => \"/meteo/Roseto+capo+spulico\",8439 => \"/meteo/Roseto+casello\",5966 => \"/meteo/Roseto+degli+abruzzi\",5967 => \"/meteo/Roseto+valfortore\",5968 => \"/meteo/Rosignano+marittimo\",5969 => \"/meteo/Rosignano+monferrato\",8195 => \"/meteo/Rosignano+Solvay\",5970 => \"/meteo/Rosolina\",8744 => \"/meteo/Rosolina+mare\",5971 => \"/meteo/Rosolini\",8704 => \"/meteo/Rosone\",5972 => \"/meteo/Rosora\",5973 => \"/meteo/Rossa\",5974 => \"/meteo/Rossana\",5975 => \"/meteo/Rossano\",8109 => \"/meteo/Rossano+Calabro+Marina\",5976 => \"/meteo/Rossano+veneto\",8431 => \"/meteo/Rossera\",5977 => \"/meteo/Rossiglione\",5978 => \"/meteo/Rosta\",5979 => \"/meteo/Rota+d'imagna\",5980 => \"/meteo/Rota+greca\",5981 => \"/meteo/Rotella\",5982 => \"/meteo/Rotello\",8429 => \"/meteo/Rotonda\",5984 => \"/meteo/Rotondella\",5985 => \"/meteo/Rotondi\",5986 => \"/meteo/Rottofreno\",5987 => \"/meteo/Rotzo\",5988 => \"/meteo/Roure\",5989 => \"/meteo/Rovagnate\",5990 => \"/meteo/Rovasenda\",5991 => \"/meteo/Rovato\",5992 => \"/meteo/Rovegno\",5993 => \"/meteo/Rovellasca\",5994 => \"/meteo/Rovello+porro\",5995 => \"/meteo/Roverbella\",5996 => \"/meteo/Roverchiara\",5997 => \"/meteo/Rovere'+della+luna\",5998 => \"/meteo/Rovere'+veronese\",5999 => \"/meteo/Roveredo+di+gua'\",6000 => \"/meteo/Roveredo+in+piano\",6001 => \"/meteo/Rovereto\",6002 => \"/meteo/Rovescala\",6003 => \"/meteo/Rovetta\",6004 => \"/meteo/Roviano\",6005 => \"/meteo/Rovigo\",6006 => \"/meteo/Rovito\",6007 => \"/meteo/Rovolon\",6008 => \"/meteo/Rozzano\",6009 => \"/meteo/Rubano\",6010 => \"/meteo/Rubiana\",6011 => \"/meteo/Rubiera\",8632 => \"/meteo/Rucas\",6012 => \"/meteo/Ruda\",6013 => \"/meteo/Rudiano\",6014 => \"/meteo/Rueglio\",6015 => \"/meteo/Ruffano\",6016 => \"/meteo/Ruffia\",6017 => \"/meteo/Ruffre'\",6018 => \"/meteo/Rufina\",6019 => \"/meteo/Ruinas\",6020 => \"/meteo/Ruino\",6021 => \"/meteo/Rumo\",8366 => \"/meteo/Ruoti\",6023 => \"/meteo/Russi\",6024 => \"/meteo/Rutigliano\",6025 => \"/meteo/Rutino\",6026 => \"/meteo/Ruviano\",8393 => \"/meteo/Ruvo+del+monte\",6028 => \"/meteo/Ruvo+di+Puglia\",6029 => \"/meteo/Sabaudia\",6030 => \"/meteo/Sabbia\",6031 => \"/meteo/Sabbio+chiese\",6032 => \"/meteo/Sabbioneta\",6033 => \"/meteo/Sacco\",6034 => \"/meteo/Saccolongo\",6035 => \"/meteo/Sacile\",8700 => \"/meteo/Sacra+di+San+Michele\",6036 => \"/meteo/Sacrofano\",6037 => \"/meteo/Sadali\",6038 => \"/meteo/Sagama\",6039 => \"/meteo/Sagliano+micca\",6040 => \"/meteo/Sagrado\",6041 => \"/meteo/Sagron+mis\",8602 => \"/meteo/Saint+Barthelemy\",6042 => \"/meteo/Saint+Christophe\",6043 => \"/meteo/Saint+Denis\",8304 => \"/meteo/Saint+Jacques\",6044 => \"/meteo/Saint+Marcel\",6045 => \"/meteo/Saint+Nicolas\",6046 => \"/meteo/Saint+Oyen+Flassin\",6047 => \"/meteo/Saint+Pierre\",6048 => \"/meteo/Saint+Rhemy+en+Bosses\",6049 => \"/meteo/Saint+Vincent\",6050 => \"/meteo/Sala+Baganza\",6051 => \"/meteo/Sala+Biellese\",6052 => \"/meteo/Sala+Bolognese\",6053 => \"/meteo/Sala+Comacina\",6054 => \"/meteo/Sala+Consilina\",6055 => \"/meteo/Sala+Monferrato\",8372 => \"/meteo/Salandra\",6057 => \"/meteo/Salaparuta\",6058 => \"/meteo/Salara\",6059 => \"/meteo/Salasco\",6060 => \"/meteo/Salassa\",6061 => \"/meteo/Salbertrand\",6062 => \"/meteo/Salcedo\",6063 => \"/meteo/Salcito\",6064 => \"/meteo/Sale\",6065 => \"/meteo/Sale+delle+Langhe\",6066 => \"/meteo/Sale+Marasino\",6067 => \"/meteo/Sale+San+Giovanni\",6068 => \"/meteo/Salemi\",6069 => \"/meteo/Salento\",6070 => \"/meteo/Salerano+Canavese\",6071 => \"/meteo/Salerano+sul+Lambro\",6072 => \"/meteo/Salerno\",6073 => \"/meteo/Saletto\",6074 => \"/meteo/Salgareda\",6075 => \"/meteo/Sali+Vercellese\",6076 => \"/meteo/Salice+Salentino\",6077 => \"/meteo/Saliceto\",6078 => \"/meteo/Salisano\",6079 => \"/meteo/Salizzole\",6080 => \"/meteo/Salle\",6081 => \"/meteo/Salmour\",6082 => \"/meteo/Salo'\",6083 => \"/meteo/Salorno\",6084 => \"/meteo/Salsomaggiore+Terme\",6085 => \"/meteo/Saltara\",6086 => \"/meteo/Saltrio\",6087 => \"/meteo/Saludecio\",6088 => \"/meteo/Saluggia\",6089 => \"/meteo/Salussola\",6090 => \"/meteo/Saluzzo\",6091 => \"/meteo/Salve\",6092 => \"/meteo/Salvirola\",6093 => \"/meteo/Salvitelle\",6094 => \"/meteo/Salza+di+Pinerolo\",6095 => \"/meteo/Salza+Irpina\",6096 => \"/meteo/Salzano\",6097 => \"/meteo/Samarate\",6098 => \"/meteo/Samassi\",6099 => \"/meteo/Samatzai\",6100 => \"/meteo/Sambuca+di+Sicilia\",6101 => \"/meteo/Sambuca+Pistoiese\",6102 => \"/meteo/Sambuci\",6103 => \"/meteo/Sambuco\",6104 => \"/meteo/Sammichele+di+Bari\",6105 => \"/meteo/Samo\",6106 => \"/meteo/Samolaco\",6107 => \"/meteo/Samone\",6108 => \"/meteo/Samone\",6109 => \"/meteo/Sampeyre\",6110 => \"/meteo/Samugheo\",6111 => \"/meteo/San+Bartolomeo+al+Mare\",6112 => \"/meteo/San+Bartolomeo+in+Galdo\",6113 => \"/meteo/San+Bartolomeo+Val+Cavargna\",6114 => \"/meteo/San+Basile\",6115 => \"/meteo/San+Basilio\",6116 => \"/meteo/San+Bassano\",6117 => \"/meteo/San+Bellino\",6118 => \"/meteo/San+Benedetto+Belbo\",6119 => \"/meteo/San+Benedetto+dei+Marsi\",6120 => \"/meteo/San+Benedetto+del+Tronto\",8126 => \"/meteo/San+Benedetto+in+Alpe\",6121 => \"/meteo/San+Benedetto+in+Perillis\",6122 => \"/meteo/San+Benedetto+Po\",6123 => \"/meteo/San+Benedetto+Ullano\",6124 => \"/meteo/San+Benedetto+val+di+Sambro\",6125 => \"/meteo/San+Benigno+Canavese\",8641 => \"/meteo/San+Bernardino\",6126 => \"/meteo/San+Bernardino+Verbano\",6127 => \"/meteo/San+Biagio+della+Cima\",6128 => \"/meteo/San+Biagio+di+Callalta\",6129 => \"/meteo/San+Biagio+Platani\",6130 => \"/meteo/San+Biagio+Saracinisco\",6131 => \"/meteo/San+Biase\",6132 => \"/meteo/San+Bonifacio\",6133 => \"/meteo/San+Buono\",6134 => \"/meteo/San+Calogero\",6135 => \"/meteo/San+Candido\",6136 => \"/meteo/San+Canzian+d'Isonzo\",6137 => \"/meteo/San+Carlo+Canavese\",6138 => \"/meteo/San+Casciano+dei+Bagni\",6139 => \"/meteo/San+Casciano+in+Val+di+Pesa\",6140 => \"/meteo/San+Cassiano\",8624 => \"/meteo/San+Cassiano+in+Badia\",6141 => \"/meteo/San+Cataldo\",6142 => \"/meteo/San+Cesareo\",6143 => \"/meteo/San+Cesario+di+Lecce\",6144 => \"/meteo/San+Cesario+sul+Panaro\",8367 => \"/meteo/San+Chirico+Nuovo\",6146 => \"/meteo/San+Chirico+Raparo\",6147 => \"/meteo/San+Cipirello\",6148 => \"/meteo/San+Cipriano+d'Aversa\",6149 => \"/meteo/San+Cipriano+Picentino\",6150 => \"/meteo/San+Cipriano+Po\",6151 => \"/meteo/San+Clemente\",6152 => \"/meteo/San+Colombano+al+Lambro\",6153 => \"/meteo/San+Colombano+Belmonte\",6154 => \"/meteo/San+Colombano+Certenoli\",8622 => \"/meteo/San+Colombano+Valdidentro\",6155 => \"/meteo/San+Cono\",6156 => \"/meteo/San+Cosmo+Albanese\",8376 => \"/meteo/San+Costantino+Albanese\",6158 => \"/meteo/San+Costantino+Calabro\",6159 => \"/meteo/San+Costanzo\",6160 => \"/meteo/San+Cristoforo\",6161 => \"/meteo/San+Damiano+al+Colle\",6162 => \"/meteo/San+Damiano+d'Asti\",6163 => \"/meteo/San+Damiano+Macra\",6164 => \"/meteo/San+Daniele+del+Friuli\",6165 => \"/meteo/San+Daniele+Po\",6166 => \"/meteo/San+Demetrio+Corone\",6167 => \"/meteo/San+Demetrio+ne'+Vestini\",6168 => \"/meteo/San+Didero\",8556 => \"/meteo/San+Domenico+di+Varzo\",6169 => \"/meteo/San+Dona'+di+Piave\",6170 => \"/meteo/San+Donaci\",6171 => \"/meteo/San+Donato+di+Lecce\",6172 => \"/meteo/San+Donato+di+Ninea\",6173 => \"/meteo/San+Donato+Milanese\",6174 => \"/meteo/San+Donato+Val+di+Comino\",6175 => \"/meteo/San+Dorligo+della+Valle\",6176 => \"/meteo/San+Fedele+Intelvi\",6177 => \"/meteo/San+Fele\",6178 => \"/meteo/San+Felice+a+Cancello\",6179 => \"/meteo/San+Felice+Circeo\",6180 => \"/meteo/San+Felice+del+Benaco\",6181 => \"/meteo/San+Felice+del+Molise\",6182 => \"/meteo/San+Felice+sul+Panaro\",6183 => \"/meteo/San+Ferdinando\",6184 => \"/meteo/San+Ferdinando+di+Puglia\",6185 => \"/meteo/San+Fermo+della+Battaglia\",6186 => \"/meteo/San+Fili\",6187 => \"/meteo/San+Filippo+del+mela\",6188 => \"/meteo/San+Fior\",6189 => \"/meteo/San+Fiorano\",6190 => \"/meteo/San+Floriano+del+collio\",6191 => \"/meteo/San+Floro\",6192 => \"/meteo/San+Francesco+al+campo\",6193 => \"/meteo/San+Fratello\",8690 => \"/meteo/San+Galgano\",6194 => \"/meteo/San+Gavino+monreale\",6195 => \"/meteo/San+Gemini\",6196 => \"/meteo/San+Genesio+Atesino\",6197 => \"/meteo/San+Genesio+ed+uniti\",6198 => \"/meteo/San+Gennaro+vesuviano\",6199 => \"/meteo/San+Germano+chisone\",6200 => \"/meteo/San+Germano+dei+berici\",6201 => \"/meteo/San+Germano+vercellese\",6202 => \"/meteo/San+Gervasio+bresciano\",6203 => \"/meteo/San+Giacomo+degli+schiavoni\",6204 => \"/meteo/San+Giacomo+delle+segnate\",8620 => \"/meteo/San+Giacomo+di+Roburent\",6205 => \"/meteo/San+Giacomo+filippo\",6206 => \"/meteo/San+Giacomo+vercellese\",6207 => \"/meteo/San+Gillio\",6208 => \"/meteo/San+Gimignano\",6209 => \"/meteo/San+Ginesio\",6210 => \"/meteo/San+Giorgio+a+cremano\",6211 => \"/meteo/San+Giorgio+a+liri\",6212 => \"/meteo/San+Giorgio+albanese\",6213 => \"/meteo/San+Giorgio+canavese\",6214 => \"/meteo/San+Giorgio+del+sannio\",6215 => \"/meteo/San+Giorgio+della+richinvelda\",6216 => \"/meteo/San+Giorgio+delle+Pertiche\",6217 => \"/meteo/San+Giorgio+di+lomellina\",6218 => \"/meteo/San+Giorgio+di+mantova\",6219 => \"/meteo/San+Giorgio+di+nogaro\",6220 => \"/meteo/San+Giorgio+di+pesaro\",6221 => \"/meteo/San+Giorgio+di+piano\",6222 => \"/meteo/San+Giorgio+in+bosco\",6223 => \"/meteo/San+Giorgio+ionico\",6224 => \"/meteo/San+Giorgio+la+molara\",6225 => \"/meteo/San+Giorgio+lucano\",6226 => \"/meteo/San+Giorgio+monferrato\",6227 => \"/meteo/San+Giorgio+morgeto\",6228 => \"/meteo/San+Giorgio+piacentino\",6229 => \"/meteo/San+Giorgio+scarampi\",6230 => \"/meteo/San+Giorgio+su+Legnano\",6231 => \"/meteo/San+Giorio+di+susa\",6232 => \"/meteo/San+Giovanni+a+piro\",6233 => \"/meteo/San+Giovanni+al+natisone\",6234 => \"/meteo/San+Giovanni+bianco\",6235 => \"/meteo/San+Giovanni+d'asso\",6236 => \"/meteo/San+Giovanni+del+dosso\",6237 => \"/meteo/San+Giovanni+di+gerace\",6238 => \"/meteo/San+Giovanni+gemini\",6239 => \"/meteo/San+Giovanni+ilarione\",6240 => \"/meteo/San+Giovanni+in+croce\",6241 => \"/meteo/San+Giovanni+in+fiore\",6242 => \"/meteo/San+Giovanni+in+galdo\",6243 => \"/meteo/San+Giovanni+in+marignano\",6244 => \"/meteo/San+Giovanni+in+persiceto\",8567 => \"/meteo/San+Giovanni+in+val+Aurina\",6245 => \"/meteo/San+Giovanni+incarico\",6246 => \"/meteo/San+Giovanni+la+punta\",6247 => \"/meteo/San+Giovanni+lipioni\",6248 => \"/meteo/San+Giovanni+lupatoto\",6249 => \"/meteo/San+Giovanni+rotondo\",6250 => \"/meteo/San+Giovanni+suergiu\",6251 => \"/meteo/San+Giovanni+teatino\",6252 => \"/meteo/San+Giovanni+valdarno\",6253 => \"/meteo/San+Giuliano+del+sannio\",6254 => \"/meteo/San+Giuliano+di+Puglia\",6255 => \"/meteo/San+Giuliano+milanese\",6256 => \"/meteo/San+Giuliano+terme\",6257 => \"/meteo/San+Giuseppe+jato\",6258 => \"/meteo/San+Giuseppe+vesuviano\",6259 => \"/meteo/San+Giustino\",6260 => \"/meteo/San+Giusto+canavese\",6261 => \"/meteo/San+Godenzo\",6262 => \"/meteo/San+Gregorio+d'ippona\",6263 => \"/meteo/San+Gregorio+da+sassola\",6264 => \"/meteo/San+Gregorio+di+Catania\",6265 => \"/meteo/San+Gregorio+Magno\",6266 => \"/meteo/San+Gregorio+Matese\",6267 => \"/meteo/San+Gregorio+nelle+Alpi\",6268 => \"/meteo/San+Lazzaro+di+Savena\",6269 => \"/meteo/San+Leo\",6270 => \"/meteo/San+Leonardo\",6271 => \"/meteo/San+Leonardo+in+Passiria\",8580 => \"/meteo/San+Leone\",6272 => \"/meteo/San+Leucio+del+Sannio\",6273 => \"/meteo/San+Lorenzello\",6274 => \"/meteo/San+Lorenzo\",6275 => \"/meteo/San+Lorenzo+al+mare\",6276 => \"/meteo/San+Lorenzo+Bellizzi\",6277 => \"/meteo/San+Lorenzo+del+vallo\",6278 => \"/meteo/San+Lorenzo+di+Sebato\",6279 => \"/meteo/San+Lorenzo+in+Banale\",6280 => \"/meteo/San+Lorenzo+in+campo\",6281 => \"/meteo/San+Lorenzo+isontino\",6282 => \"/meteo/San+Lorenzo+Maggiore\",6283 => \"/meteo/San+Lorenzo+Nuovo\",6284 => \"/meteo/San+Luca\",6285 => \"/meteo/San+Lucido\",6286 => \"/meteo/San+Lupo\",6287 => \"/meteo/San+Mango+d'Aquino\",6288 => \"/meteo/San+Mango+Piemonte\",6289 => \"/meteo/San+Mango+sul+Calore\",6290 => \"/meteo/San+Marcellino\",6291 => \"/meteo/San+Marcello\",6292 => \"/meteo/San+Marcello+pistoiese\",6293 => \"/meteo/San+Marco+argentano\",6294 => \"/meteo/San+Marco+d'Alunzio\",6295 => \"/meteo/San+Marco+dei+Cavoti\",6296 => \"/meteo/San+Marco+Evangelista\",6297 => \"/meteo/San+Marco+in+Lamis\",6298 => \"/meteo/San+Marco+la+Catola\",8152 => \"/meteo/San+Marino\",6299 => \"/meteo/San+Martino+al+Tagliamento\",6300 => \"/meteo/San+Martino+Alfieri\",6301 => \"/meteo/San+Martino+Buon+Albergo\",6302 => \"/meteo/San+Martino+Canavese\",6303 => \"/meteo/San+Martino+d'Agri\",6304 => \"/meteo/San+Martino+dall'argine\",6305 => \"/meteo/San+Martino+del+lago\",8209 => \"/meteo/San+Martino+di+Castrozza\",6306 => \"/meteo/San+Martino+di+Finita\",6307 => \"/meteo/San+Martino+di+Lupari\",6308 => \"/meteo/San+Martino+di+venezze\",8410 => \"/meteo/San+Martino+d`agri\",6309 => \"/meteo/San+Martino+in+Badia\",6310 => \"/meteo/San+Martino+in+Passiria\",6311 => \"/meteo/San+Martino+in+pensilis\",6312 => \"/meteo/San+Martino+in+rio\",6313 => \"/meteo/San+Martino+in+strada\",6314 => \"/meteo/San+Martino+sannita\",6315 => \"/meteo/San+Martino+siccomario\",6316 => \"/meteo/San+Martino+sulla+marrucina\",6317 => \"/meteo/San+Martino+valle+caudina\",6318 => \"/meteo/San+Marzano+di+San+Giuseppe\",6319 => \"/meteo/San+Marzano+oliveto\",6320 => \"/meteo/San+Marzano+sul+Sarno\",6321 => \"/meteo/San+Massimo\",6322 => \"/meteo/San+Maurizio+canavese\",6323 => \"/meteo/San+Maurizio+d'opaglio\",6324 => \"/meteo/San+Mauro+castelverde\",6325 => \"/meteo/San+Mauro+cilento\",6326 => \"/meteo/San+Mauro+di+saline\",8427 => \"/meteo/San+Mauro+forte\",6328 => \"/meteo/San+Mauro+la+bruca\",6329 => \"/meteo/San+Mauro+marchesato\",6330 => \"/meteo/San+Mauro+Pascoli\",6331 => \"/meteo/San+Mauro+torinese\",6332 => \"/meteo/San+Michele+al+Tagliamento\",6333 => \"/meteo/San+Michele+all'Adige\",6334 => \"/meteo/San+Michele+di+ganzaria\",6335 => \"/meteo/San+Michele+di+serino\",6336 => \"/meteo/San+Michele+Mondovi'\",6337 => \"/meteo/San+Michele+salentino\",6338 => \"/meteo/San+Miniato\",6339 => \"/meteo/San+Nazario\",6340 => \"/meteo/San+Nazzaro\",6341 => \"/meteo/San+Nazzaro+Sesia\",6342 => \"/meteo/San+Nazzaro+val+cavargna\",6343 => \"/meteo/San+Nicola+arcella\",6344 => \"/meteo/San+Nicola+baronia\",6345 => \"/meteo/San+Nicola+da+crissa\",6346 => \"/meteo/San+Nicola+dell'alto\",6347 => \"/meteo/San+Nicola+la+strada\",6348 => \"/meteo/San+nicola+manfredi\",6349 => \"/meteo/San+nicolo'+d'arcidano\",6350 => \"/meteo/San+nicolo'+di+comelico\",6351 => \"/meteo/San+Nicolo'+Gerrei\",6352 => \"/meteo/San+Pancrazio\",6353 => \"/meteo/San+Pancrazio+salentino\",6354 => \"/meteo/San+Paolo\",8361 => \"/meteo/San+Paolo+albanese\",6356 => \"/meteo/San+Paolo+bel+sito\",6357 => \"/meteo/San+Paolo+cervo\",6358 => \"/meteo/San+Paolo+d'argon\",6359 => \"/meteo/San+Paolo+di+civitate\",6360 => \"/meteo/San+Paolo+di+Jesi\",6361 => \"/meteo/San+Paolo+solbrito\",6362 => \"/meteo/San+Pellegrino+terme\",6363 => \"/meteo/San+Pier+d'isonzo\",6364 => \"/meteo/San+Pier+niceto\",6365 => \"/meteo/San+Piero+a+sieve\",6366 => \"/meteo/San+Piero+Patti\",6367 => \"/meteo/San+Pietro+a+maida\",6368 => \"/meteo/San+Pietro+al+Natisone\",6369 => \"/meteo/San+Pietro+al+Tanagro\",6370 => \"/meteo/San+Pietro+apostolo\",6371 => \"/meteo/San+Pietro+avellana\",6372 => \"/meteo/San+Pietro+clarenza\",6373 => \"/meteo/San+Pietro+di+cadore\",6374 => \"/meteo/San+Pietro+di+carida'\",6375 => \"/meteo/San+Pietro+di+feletto\",6376 => \"/meteo/San+Pietro+di+morubio\",6377 => \"/meteo/San+Pietro+in+Amantea\",6378 => \"/meteo/San+Pietro+in+cariano\",6379 => \"/meteo/San+Pietro+in+casale\",6380 => \"/meteo/San+Pietro+in+cerro\",6381 => \"/meteo/San+Pietro+in+gu\",6382 => \"/meteo/San+Pietro+in+guarano\",6383 => \"/meteo/San+Pietro+in+lama\",6384 => \"/meteo/San+Pietro+infine\",6385 => \"/meteo/San+Pietro+mosezzo\",6386 => \"/meteo/San+Pietro+mussolino\",6387 => \"/meteo/San+Pietro+val+lemina\",6388 => \"/meteo/San+Pietro+vernotico\",6389 => \"/meteo/San+Pietro+Viminario\",6390 => \"/meteo/San+Pio+delle+camere\",6391 => \"/meteo/San+Polo+d'enza\",6392 => \"/meteo/San+Polo+dei+cavalieri\",6393 => \"/meteo/San+Polo+di+Piave\",6394 => \"/meteo/San+Polo+matese\",6395 => \"/meteo/San+Ponso\",6396 => \"/meteo/San+Possidonio\",6397 => \"/meteo/San+Potito+sannitico\",6398 => \"/meteo/San+Potito+ultra\",6399 => \"/meteo/San+Prisco\",6400 => \"/meteo/San+Procopio\",6401 => \"/meteo/San+Prospero\",6402 => \"/meteo/San+Quirico+d'orcia\",8199 => \"/meteo/San+Quirico+d`Orcia\",6403 => \"/meteo/San+Quirino\",6404 => \"/meteo/San+Raffaele+cimena\",6405 => \"/meteo/San+Roberto\",6406 => \"/meteo/San+Rocco+al+porto\",6407 => \"/meteo/San+Romano+in+garfagnana\",6408 => \"/meteo/San+Rufo\",6409 => \"/meteo/San+Salvatore+di+fitalia\",6410 => \"/meteo/San+Salvatore+Monferrato\",6411 => \"/meteo/San+Salvatore+Telesino\",6412 => \"/meteo/San+Salvo\",8103 => \"/meteo/San+Salvo+Marina\",6413 => \"/meteo/San+Sebastiano+al+Vesuvio\",6414 => \"/meteo/San+Sebastiano+Curone\",6415 => \"/meteo/San+Sebastiano+da+Po\",6416 => \"/meteo/San+Secondo+di+Pinerolo\",6417 => \"/meteo/San+Secondo+Parmense\",6418 => \"/meteo/San+Severino+Lucano\",6419 => \"/meteo/San+Severino+Marche\",6420 => \"/meteo/San+Severo\",8347 => \"/meteo/San+Sicario+di+Cesana\",8289 => \"/meteo/San+Simone\",8539 => \"/meteo/San+Simone+Baita+del+Camoscio\",6421 => \"/meteo/San+Siro\",6422 => \"/meteo/San+Sossio+Baronia\",6423 => \"/meteo/San+Sostene\",6424 => \"/meteo/San+Sosti\",6425 => \"/meteo/San+Sperate\",6426 => \"/meteo/San+Tammaro\",6427 => \"/meteo/San+Teodoro\",8170 => \"/meteo/San+Teodoro\",6429 => \"/meteo/San+Tomaso+agordino\",8212 => \"/meteo/San+Valentino+alla+Muta\",6430 => \"/meteo/San+Valentino+in+abruzzo+citeriore\",6431 => \"/meteo/San+Valentino+torio\",6432 => \"/meteo/San+Venanzo\",6433 => \"/meteo/San+Vendemiano\",6434 => \"/meteo/San+Vero+milis\",6435 => \"/meteo/San+Vincenzo\",6436 => \"/meteo/San+Vincenzo+la+costa\",6437 => \"/meteo/San+Vincenzo+valle+roveto\",6438 => \"/meteo/San+Vitaliano\",8293 => \"/meteo/San+Vito\",6440 => \"/meteo/San+Vito+al+tagliamento\",6441 => \"/meteo/San+Vito+al+torre\",6442 => \"/meteo/San+Vito+chietino\",6443 => \"/meteo/San+Vito+dei+normanni\",6444 => \"/meteo/San+Vito+di+cadore\",6445 => \"/meteo/San+Vito+di+fagagna\",6446 => \"/meteo/San+Vito+di+leguzzano\",6447 => \"/meteo/San+Vito+lo+capo\",6448 => \"/meteo/San+Vito+romano\",6449 => \"/meteo/San+Vito+sullo+ionio\",6450 => \"/meteo/San+Vittore+del+lazio\",6451 => \"/meteo/San+Vittore+Olona\",6452 => \"/meteo/San+Zeno+di+montagna\",6453 => \"/meteo/San+Zeno+naviglio\",6454 => \"/meteo/San+Zenone+al+lambro\",6455 => \"/meteo/San+Zenone+al+po\",6456 => \"/meteo/San+Zenone+degli+ezzelini\",6457 => \"/meteo/Sanarica\",6458 => \"/meteo/Sandigliano\",6459 => \"/meteo/Sandrigo\",6460 => \"/meteo/Sanfre'\",6461 => \"/meteo/Sanfront\",6462 => \"/meteo/Sangano\",6463 => \"/meteo/Sangiano\",6464 => \"/meteo/Sangineto\",6465 => \"/meteo/Sanguinetto\",6466 => \"/meteo/Sanluri\",6467 => \"/meteo/Sannazzaro+de'+Burgondi\",6468 => \"/meteo/Sannicandro+di+bari\",6469 => \"/meteo/Sannicandro+garganico\",6470 => \"/meteo/Sannicola\",6471 => \"/meteo/Sanremo\",6472 => \"/meteo/Sansepolcro\",6473 => \"/meteo/Sant'Agapito\",6474 => \"/meteo/Sant'Agata+bolognese\",6475 => \"/meteo/Sant'Agata+de'+goti\",6476 => \"/meteo/Sant'Agata+del+bianco\",6477 => \"/meteo/Sant'Agata+di+esaro\",6478 => \"/meteo/Sant'Agata+di+Militello\",6479 => \"/meteo/Sant'Agata+di+Puglia\",6480 => \"/meteo/Sant'Agata+feltria\",6481 => \"/meteo/Sant'Agata+fossili\",6482 => \"/meteo/Sant'Agata+li+battiati\",6483 => \"/meteo/Sant'Agata+sul+Santerno\",6484 => \"/meteo/Sant'Agnello\",6485 => \"/meteo/Sant'Agostino\",6486 => \"/meteo/Sant'Albano+stura\",6487 => \"/meteo/Sant'Alessio+con+vialone\",6488 => \"/meteo/Sant'Alessio+in+aspromonte\",6489 => \"/meteo/Sant'Alessio+siculo\",6490 => \"/meteo/Sant'Alfio\",6491 => \"/meteo/Sant'Ambrogio+di+Torino\",6492 => \"/meteo/Sant'Ambrogio+di+valpolicella\",6493 => \"/meteo/Sant'Ambrogio+sul+garigliano\",6494 => \"/meteo/Sant'Anastasia\",6495 => \"/meteo/Sant'Anatolia+di+narco\",6496 => \"/meteo/Sant'Andrea+apostolo+dello+ionio\",6497 => \"/meteo/Sant'Andrea+del+garigliano\",6498 => \"/meteo/Sant'Andrea+di+conza\",6499 => \"/meteo/Sant'Andrea+Frius\",8763 => \"/meteo/Sant'Andrea+in+Monte\",6500 => \"/meteo/Sant'Angelo+a+cupolo\",6501 => \"/meteo/Sant'Angelo+a+fasanella\",6502 => \"/meteo/Sant'Angelo+a+scala\",6503 => \"/meteo/Sant'Angelo+all'esca\",6504 => \"/meteo/Sant'Angelo+d'alife\",6505 => \"/meteo/Sant'Angelo+dei+lombardi\",6506 => \"/meteo/Sant'Angelo+del+pesco\",6507 => \"/meteo/Sant'Angelo+di+brolo\",6508 => \"/meteo/Sant'Angelo+di+Piove+di+Sacco\",6509 => \"/meteo/Sant'Angelo+in+lizzola\",6510 => \"/meteo/Sant'Angelo+in+pontano\",6511 => \"/meteo/Sant'Angelo+in+vado\",6512 => \"/meteo/Sant'Angelo+le+fratte\",6513 => \"/meteo/Sant'Angelo+limosano\",6514 => \"/meteo/Sant'Angelo+lodigiano\",6515 => \"/meteo/Sant'Angelo+lomellina\",6516 => \"/meteo/Sant'Angelo+muxaro\",6517 => \"/meteo/Sant'Angelo+romano\",6518 => \"/meteo/Sant'Anna+Arresi\",6519 => \"/meteo/Sant'Anna+d'Alfaedo\",8730 => \"/meteo/Sant'Anna+di+Valdieri\",8698 => \"/meteo/Sant'Anna+di+Vinadio\",8563 => \"/meteo/Sant'Anna+Pelago\",6520 => \"/meteo/Sant'Antimo\",6521 => \"/meteo/Sant'Antioco\",6522 => \"/meteo/Sant'Antonino+di+Susa\",6523 => \"/meteo/Sant'Antonio+Abate\",6524 => \"/meteo/Sant'Antonio+di+gallura\",6525 => \"/meteo/Sant'Apollinare\",6526 => \"/meteo/Sant'Arcangelo\",6527 => \"/meteo/Sant'Arcangelo+trimonte\",6528 => \"/meteo/Sant'Arpino\",6529 => \"/meteo/Sant'Arsenio\",6530 => \"/meteo/Sant'Egidio+alla+vibrata\",6531 => \"/meteo/Sant'Egidio+del+monte+Albino\",6532 => \"/meteo/Sant'Elena\",6533 => \"/meteo/Sant'Elena+sannita\",6534 => \"/meteo/Sant'Elia+a+pianisi\",6535 => \"/meteo/Sant'Elia+fiumerapido\",6536 => \"/meteo/Sant'Elpidio+a+mare\",6537 => \"/meteo/Sant'Eufemia+a+maiella\",6538 => \"/meteo/Sant'Eufemia+d'Aspromonte\",6539 => \"/meteo/Sant'Eusanio+del+Sangro\",6540 => \"/meteo/Sant'Eusanio+forconese\",6541 => \"/meteo/Sant'Ilario+d'Enza\",6542 => \"/meteo/Sant'Ilario+dello+Ionio\",6543 => \"/meteo/Sant'Ippolito\",6544 => \"/meteo/Sant'Olcese\",6545 => \"/meteo/Sant'Omero\",6546 => \"/meteo/Sant'Omobono+imagna\",6547 => \"/meteo/Sant'Onofrio\",6548 => \"/meteo/Sant'Oreste\",6549 => \"/meteo/Sant'Orsola+terme\",6550 => \"/meteo/Sant'Urbano\",6551 => \"/meteo/Santa+Brigida\",6552 => \"/meteo/Santa+Caterina+albanese\",6553 => \"/meteo/Santa+Caterina+dello+ionio\",8144 => \"/meteo/Santa+Caterina+Valfurva\",6554 => \"/meteo/Santa+Caterina+villarmosa\",6555 => \"/meteo/Santa+Cesarea+terme\",6556 => \"/meteo/Santa+Cristina+d'Aspromonte\",6557 => \"/meteo/Santa+Cristina+e+Bissone\",6558 => \"/meteo/Santa+Cristina+gela\",6559 => \"/meteo/Santa+Cristina+Valgardena\",6560 => \"/meteo/Santa+Croce+camerina\",6561 => \"/meteo/Santa+Croce+del+sannio\",6562 => \"/meteo/Santa+Croce+di+Magliano\",6563 => \"/meteo/Santa+Croce+sull'Arno\",6564 => \"/meteo/Santa+Domenica+talao\",6565 => \"/meteo/Santa+Domenica+Vittoria\",6566 => \"/meteo/Santa+Elisabetta\",6567 => \"/meteo/Santa+Fiora\",6568 => \"/meteo/Santa+Flavia\",6569 => \"/meteo/Santa+Giuletta\",6570 => \"/meteo/Santa+Giusta\",6571 => \"/meteo/Santa+Giustina\",6572 => \"/meteo/Santa+Giustina+in+Colle\",6573 => \"/meteo/Santa+Luce\",6574 => \"/meteo/Santa+Lucia+del+Mela\",6575 => \"/meteo/Santa+Lucia+di+Piave\",6576 => \"/meteo/Santa+Lucia+di+serino\",6577 => \"/meteo/Santa+Margherita+d'adige\",6578 => \"/meteo/Santa+Margherita+di+belice\",6579 => \"/meteo/Santa+Margherita+di+staffora\",8285 => \"/meteo/Santa+Margherita+Ligure\",6581 => \"/meteo/Santa+Maria+a+monte\",6582 => \"/meteo/Santa+Maria+a+vico\",6583 => \"/meteo/Santa+Maria+Capua+Vetere\",6584 => \"/meteo/Santa+Maria+coghinas\",6585 => \"/meteo/Santa+Maria+del+cedro\",6586 => \"/meteo/Santa+Maria+del+Molise\",6587 => \"/meteo/Santa+Maria+della+Versa\",8122 => \"/meteo/Santa+Maria+di+Castellabate\",6588 => \"/meteo/Santa+Maria+di+Licodia\",6589 => \"/meteo/Santa+Maria+di+sala\",6590 => \"/meteo/Santa+Maria+Hoe'\",6591 => \"/meteo/Santa+Maria+imbaro\",6592 => \"/meteo/Santa+Maria+la+carita'\",6593 => \"/meteo/Santa+Maria+la+fossa\",6594 => \"/meteo/Santa+Maria+la+longa\",6595 => \"/meteo/Santa+Maria+Maggiore\",6596 => \"/meteo/Santa+Maria+Nuova\",6597 => \"/meteo/Santa+Marina\",6598 => \"/meteo/Santa+Marina+salina\",6599 => \"/meteo/Santa+Marinella\",6600 => \"/meteo/Santa+Ninfa\",6601 => \"/meteo/Santa+Paolina\",6602 => \"/meteo/Santa+Severina\",6603 => \"/meteo/Santa+Sofia\",6604 => \"/meteo/Santa+Sofia+d'Epiro\",6605 => \"/meteo/Santa+Teresa+di+Riva\",6606 => \"/meteo/Santa+Teresa+gallura\",6607 => \"/meteo/Santa+Venerina\",6608 => \"/meteo/Santa+Vittoria+d'Alba\",6609 => \"/meteo/Santa+Vittoria+in+matenano\",6610 => \"/meteo/Santadi\",6611 => \"/meteo/Santarcangelo+di+Romagna\",6612 => \"/meteo/Sante+marie\",6613 => \"/meteo/Santena\",6614 => \"/meteo/Santeramo+in+colle\",6615 => \"/meteo/Santhia'\",6616 => \"/meteo/Santi+Cosma+e+Damiano\",6617 => \"/meteo/Santo+Stefano+al+mare\",6618 => \"/meteo/Santo+Stefano+Belbo\",6619 => \"/meteo/Santo+Stefano+d'Aveto\",6620 => \"/meteo/Santo+Stefano+del+sole\",6621 => \"/meteo/Santo+Stefano+di+Cadore\",6622 => \"/meteo/Santo+Stefano+di+Camastra\",6623 => \"/meteo/Santo+Stefano+di+Magra\",6624 => \"/meteo/Santo+Stefano+di+Rogliano\",6625 => \"/meteo/Santo+Stefano+di+Sessanio\",6626 => \"/meteo/Santo+Stefano+in+Aspromonte\",6627 => \"/meteo/Santo+Stefano+lodigiano\",6628 => \"/meteo/Santo+Stefano+quisquina\",6629 => \"/meteo/Santo+Stefano+roero\",6630 => \"/meteo/Santo+Stefano+Ticino\",6631 => \"/meteo/Santo+Stino+di+Livenza\",6632 => \"/meteo/Santomenna\",6633 => \"/meteo/Santopadre\",6634 => \"/meteo/Santorso\",6635 => \"/meteo/Santu+Lussurgiu\",8419 => \"/meteo/Sant`Angelo+le+fratte\",6636 => \"/meteo/Sanza\",6637 => \"/meteo/Sanzeno\",6638 => \"/meteo/Saonara\",6639 => \"/meteo/Saponara\",6640 => \"/meteo/Sappada\",6641 => \"/meteo/Sapri\",6642 => \"/meteo/Saracena\",6643 => \"/meteo/Saracinesco\",6644 => \"/meteo/Sarcedo\",8377 => \"/meteo/Sarconi\",6646 => \"/meteo/Sardara\",6647 => \"/meteo/Sardigliano\",6648 => \"/meteo/Sarego\",6649 => \"/meteo/Sarentino\",6650 => \"/meteo/Sarezzano\",6651 => \"/meteo/Sarezzo\",6652 => \"/meteo/Sarmato\",6653 => \"/meteo/Sarmede\",6654 => \"/meteo/Sarnano\",6655 => \"/meteo/Sarnico\",6656 => \"/meteo/Sarno\",6657 => \"/meteo/Sarnonico\",6658 => \"/meteo/Saronno\",6659 => \"/meteo/Sarre\",6660 => \"/meteo/Sarroch\",6661 => \"/meteo/Sarsina\",6662 => \"/meteo/Sarteano\",6663 => \"/meteo/Sartirana+lomellina\",6664 => \"/meteo/Sarule\",6665 => \"/meteo/Sarzana\",6666 => \"/meteo/Sassano\",6667 => \"/meteo/Sassari\",6668 => \"/meteo/Sassello\",6669 => \"/meteo/Sassetta\",6670 => \"/meteo/Sassinoro\",8387 => \"/meteo/Sasso+di+castalda\",6672 => \"/meteo/Sasso+marconi\",6673 => \"/meteo/Sassocorvaro\",6674 => \"/meteo/Sassofeltrio\",6675 => \"/meteo/Sassoferrato\",8656 => \"/meteo/Sassotetto\",6676 => \"/meteo/Sassuolo\",6677 => \"/meteo/Satriano\",8420 => \"/meteo/Satriano+di+Lucania\",6679 => \"/meteo/Sauris\",6680 => \"/meteo/Sauze+d'Oulx\",6681 => \"/meteo/Sauze+di+Cesana\",6682 => \"/meteo/Sava\",6683 => \"/meteo/Savelli\",6684 => \"/meteo/Saviano\",6685 => \"/meteo/Savigliano\",6686 => \"/meteo/Savignano+irpino\",6687 => \"/meteo/Savignano+sul+Panaro\",6688 => \"/meteo/Savignano+sul+Rubicone\",6689 => \"/meteo/Savigno\",6690 => \"/meteo/Savignone\",6691 => \"/meteo/Saviore+dell'Adamello\",6692 => \"/meteo/Savoca\",6693 => \"/meteo/Savogna\",6694 => \"/meteo/Savogna+d'Isonzo\",8411 => \"/meteo/Savoia+di+Lucania\",6696 => \"/meteo/Savona\",6697 => \"/meteo/Scafa\",6698 => \"/meteo/Scafati\",6699 => \"/meteo/Scagnello\",6700 => \"/meteo/Scala\",6701 => \"/meteo/Scala+coeli\",6702 => \"/meteo/Scaldasole\",6703 => \"/meteo/Scalea\",6704 => \"/meteo/Scalenghe\",6705 => \"/meteo/Scaletta+Zanclea\",6706 => \"/meteo/Scampitella\",6707 => \"/meteo/Scandale\",6708 => \"/meteo/Scandiano\",6709 => \"/meteo/Scandicci\",6710 => \"/meteo/Scandolara+ravara\",6711 => \"/meteo/Scandolara+ripa+d'Oglio\",6712 => \"/meteo/Scandriglia\",6713 => \"/meteo/Scanno\",6714 => \"/meteo/Scano+di+montiferro\",6715 => \"/meteo/Scansano\",6716 => \"/meteo/Scanzano+jonico\",6717 => \"/meteo/Scanzorosciate\",6718 => \"/meteo/Scapoli\",8120 => \"/meteo/Scario\",6719 => \"/meteo/Scarlino\",6720 => \"/meteo/Scarmagno\",6721 => \"/meteo/Scarnafigi\",6722 => \"/meteo/Scarperia\",8139 => \"/meteo/Scauri\",6723 => \"/meteo/Scena\",6724 => \"/meteo/Scerni\",6725 => \"/meteo/Scheggia+e+pascelupo\",6726 => \"/meteo/Scheggino\",6727 => \"/meteo/Schiavi+di+Abruzzo\",6728 => \"/meteo/Schiavon\",8456 => \"/meteo/Schiavonea+di+Corigliano\",6729 => \"/meteo/Schignano\",6730 => \"/meteo/Schilpario\",6731 => \"/meteo/Schio\",6732 => \"/meteo/Schivenoglia\",6733 => \"/meteo/Sciacca\",6734 => \"/meteo/Sciara\",6735 => \"/meteo/Scicli\",6736 => \"/meteo/Scido\",6737 => \"/meteo/Scigliano\",6738 => \"/meteo/Scilla\",6739 => \"/meteo/Scillato\",6740 => \"/meteo/Sciolze\",6741 => \"/meteo/Scisciano\",6742 => \"/meteo/Sclafani+bagni\",6743 => \"/meteo/Scontrone\",6744 => \"/meteo/Scopa\",6745 => \"/meteo/Scopello\",6746 => \"/meteo/Scoppito\",6747 => \"/meteo/Scordia\",6748 => \"/meteo/Scorrano\",6749 => \"/meteo/Scorze'\",6750 => \"/meteo/Scurcola+marsicana\",6751 => \"/meteo/Scurelle\",6752 => \"/meteo/Scurzolengo\",6753 => \"/meteo/Seborga\",6754 => \"/meteo/Secinaro\",6755 => \"/meteo/Secli'\",8336 => \"/meteo/Secondino\",6756 => \"/meteo/Secugnago\",6757 => \"/meteo/Sedegliano\",6758 => \"/meteo/Sedico\",6759 => \"/meteo/Sedilo\",6760 => \"/meteo/Sedini\",6761 => \"/meteo/Sedriano\",6762 => \"/meteo/Sedrina\",6763 => \"/meteo/Sefro\",6764 => \"/meteo/Segariu\",8714 => \"/meteo/Segesta\",6765 => \"/meteo/Seggiano\",6766 => \"/meteo/Segni\",6767 => \"/meteo/Segonzano\",6768 => \"/meteo/Segrate\",6769 => \"/meteo/Segusino\",6770 => \"/meteo/Selargius\",6771 => \"/meteo/Selci\",6772 => \"/meteo/Selegas\",8715 => \"/meteo/Selinunte\",8130 => \"/meteo/Sella+Nevea\",6773 => \"/meteo/Sellano\",8651 => \"/meteo/Sellata+Arioso\",6774 => \"/meteo/Sellero\",8238 => \"/meteo/Selletta\",6775 => \"/meteo/Sellia\",6776 => \"/meteo/Sellia+marina\",6777 => \"/meteo/Selva+dei+Molini\",6778 => \"/meteo/Selva+di+Cadore\",6779 => \"/meteo/Selva+di+Progno\",6780 => \"/meteo/Selva+di+Val+Gardena\",6781 => \"/meteo/Selvazzano+dentro\",6782 => \"/meteo/Selve+marcone\",6783 => \"/meteo/Selvino\",6784 => \"/meteo/Semestene\",6785 => \"/meteo/Semiana\",6786 => \"/meteo/Seminara\",6787 => \"/meteo/Semproniano\",6788 => \"/meteo/Senago\",6789 => \"/meteo/Senale+San+Felice\",6790 => \"/meteo/Senales\",6791 => \"/meteo/Seneghe\",6792 => \"/meteo/Senerchia\",6793 => \"/meteo/Seniga\",6794 => \"/meteo/Senigallia\",6795 => \"/meteo/Senis\",6796 => \"/meteo/Senise\",6797 => \"/meteo/Senna+comasco\",6798 => \"/meteo/Senna+lodigiana\",6799 => \"/meteo/Sennariolo\",6800 => \"/meteo/Sennori\",6801 => \"/meteo/Senorbi'\",6802 => \"/meteo/Sepino\",6803 => \"/meteo/Seppiana\",6804 => \"/meteo/Sequals\",6805 => \"/meteo/Seravezza\",6806 => \"/meteo/Serdiana\",6807 => \"/meteo/Seregno\",6808 => \"/meteo/Seren+del+grappa\",6809 => \"/meteo/Sergnano\",6810 => \"/meteo/Seriate\",6811 => \"/meteo/Serina\",6812 => \"/meteo/Serino\",6813 => \"/meteo/Serle\",6814 => \"/meteo/Sermide\",6815 => \"/meteo/Sermoneta\",6816 => \"/meteo/Sernaglia+della+Battaglia\",6817 => \"/meteo/Sernio\",6818 => \"/meteo/Serole\",6819 => \"/meteo/Serra+d'aiello\",6820 => \"/meteo/Serra+de'conti\",6821 => \"/meteo/Serra+pedace\",6822 => \"/meteo/Serra+ricco'\",6823 => \"/meteo/Serra+San+Bruno\",6824 => \"/meteo/Serra+San+Quirico\",6825 => \"/meteo/Serra+Sant'Abbondio\",6826 => \"/meteo/Serracapriola\",6827 => \"/meteo/Serradifalco\",6828 => \"/meteo/Serralunga+d'Alba\",6829 => \"/meteo/Serralunga+di+Crea\",6830 => \"/meteo/Serramanna\",6831 => \"/meteo/Serramazzoni\",6832 => \"/meteo/Serramezzana\",6833 => \"/meteo/Serramonacesca\",6834 => \"/meteo/Serrapetrona\",6835 => \"/meteo/Serrara+fontana\",6836 => \"/meteo/Serrastretta\",6837 => \"/meteo/Serrata\",6838 => \"/meteo/Serravalle+a+po\",6839 => \"/meteo/Serravalle+di+chienti\",6840 => \"/meteo/Serravalle+langhe\",6841 => \"/meteo/Serravalle+pistoiese\",6842 => \"/meteo/Serravalle+Scrivia\",6843 => \"/meteo/Serravalle+Sesia\",6844 => \"/meteo/Serre\",6845 => \"/meteo/Serrenti\",6846 => \"/meteo/Serri\",6847 => \"/meteo/Serrone\",6848 => \"/meteo/Serrungarina\",6849 => \"/meteo/Sersale\",6850 => \"/meteo/Servigliano\",6851 => \"/meteo/Sessa+aurunca\",6852 => \"/meteo/Sessa+cilento\",6853 => \"/meteo/Sessame\",6854 => \"/meteo/Sessano+del+Molise\",6855 => \"/meteo/Sesta+godano\",6856 => \"/meteo/Sestino\",6857 => \"/meteo/Sesto\",6858 => \"/meteo/Sesto+al+reghena\",6859 => \"/meteo/Sesto+calende\",8709 => \"/meteo/Sesto+Calende+Alta\",6860 => \"/meteo/Sesto+campano\",6861 => \"/meteo/Sesto+ed+Uniti\",6862 => \"/meteo/Sesto+fiorentino\",6863 => \"/meteo/Sesto+San+Giovanni\",6864 => \"/meteo/Sestola\",6865 => \"/meteo/Sestri+levante\",6866 => \"/meteo/Sestriere\",6867 => \"/meteo/Sestu\",6868 => \"/meteo/Settala\",8316 => \"/meteo/Settebagni\",6869 => \"/meteo/Settefrati\",6870 => \"/meteo/Settime\",6871 => \"/meteo/Settimo+milanese\",6872 => \"/meteo/Settimo+rottaro\",6873 => \"/meteo/Settimo+San+Pietro\",6874 => \"/meteo/Settimo+torinese\",6875 => \"/meteo/Settimo+vittone\",6876 => \"/meteo/Settingiano\",6877 => \"/meteo/Setzu\",6878 => \"/meteo/Seui\",6879 => \"/meteo/Seulo\",6880 => \"/meteo/Seveso\",6881 => \"/meteo/Sezzadio\",6882 => \"/meteo/Sezze\",6883 => \"/meteo/Sfruz\",6884 => \"/meteo/Sgonico\",6885 => \"/meteo/Sgurgola\",6886 => \"/meteo/Siamaggiore\",6887 => \"/meteo/Siamanna\",6888 => \"/meteo/Siano\",6889 => \"/meteo/Siapiccia\",8114 => \"/meteo/Sibari\",6890 => \"/meteo/Sicignano+degli+Alburni\",6891 => \"/meteo/Siculiana\",6892 => \"/meteo/Siddi\",6893 => \"/meteo/Siderno\",6894 => \"/meteo/Siena\",6895 => \"/meteo/Sigillo\",6896 => \"/meteo/Signa\",8603 => \"/meteo/Sigonella\",6897 => \"/meteo/Silandro\",6898 => \"/meteo/Silanus\",6899 => \"/meteo/Silea\",6900 => \"/meteo/Siligo\",6901 => \"/meteo/Siliqua\",6902 => \"/meteo/Silius\",6903 => \"/meteo/Sillano\",6904 => \"/meteo/Sillavengo\",6905 => \"/meteo/Silvano+d'orba\",6906 => \"/meteo/Silvano+pietra\",6907 => \"/meteo/Silvi\",6908 => \"/meteo/Simala\",6909 => \"/meteo/Simaxis\",6910 => \"/meteo/Simbario\",6911 => \"/meteo/Simeri+crichi\",6912 => \"/meteo/Sinagra\",6913 => \"/meteo/Sinalunga\",6914 => \"/meteo/Sindia\",6915 => \"/meteo/Sini\",6916 => \"/meteo/Sinio\",6917 => \"/meteo/Siniscola\",6918 => \"/meteo/Sinnai\",6919 => \"/meteo/Sinopoli\",6920 => \"/meteo/Siracusa\",6921 => \"/meteo/Sirignano\",6922 => \"/meteo/Siris\",6923 => \"/meteo/Sirmione\",8457 => \"/meteo/Sirolo\",6925 => \"/meteo/Sirone\",6926 => \"/meteo/Siror\",6927 => \"/meteo/Sirtori\",6928 => \"/meteo/Sissa\",8492 => \"/meteo/Sistiana\",6929 => \"/meteo/Siurgus+donigala\",6930 => \"/meteo/Siziano\",6931 => \"/meteo/Sizzano\",8258 => \"/meteo/Ski+center+Latemar\",6932 => \"/meteo/Sluderno\",6933 => \"/meteo/Smarano\",6934 => \"/meteo/Smerillo\",6935 => \"/meteo/Soave\",8341 => \"/meteo/Sobretta+Vallalpe\",6936 => \"/meteo/Socchieve\",6937 => \"/meteo/Soddi\",6938 => \"/meteo/Sogliano+al+rubicone\",6939 => \"/meteo/Sogliano+Cavour\",6940 => \"/meteo/Soglio\",6941 => \"/meteo/Soiano+del+lago\",6942 => \"/meteo/Solagna\",6943 => \"/meteo/Solarino\",6944 => \"/meteo/Solaro\",6945 => \"/meteo/Solarolo\",6946 => \"/meteo/Solarolo+Rainerio\",6947 => \"/meteo/Solarussa\",6948 => \"/meteo/Solbiate\",6949 => \"/meteo/Solbiate+Arno\",6950 => \"/meteo/Solbiate+Olona\",8307 => \"/meteo/Solda\",6951 => \"/meteo/Soldano\",6952 => \"/meteo/Soleminis\",6953 => \"/meteo/Solero\",6954 => \"/meteo/Solesino\",6955 => \"/meteo/Soleto\",6956 => \"/meteo/Solferino\",6957 => \"/meteo/Soliera\",6958 => \"/meteo/Solignano\",6959 => \"/meteo/Solofra\",6960 => \"/meteo/Solonghello\",6961 => \"/meteo/Solopaca\",6962 => \"/meteo/Solto+collina\",6963 => \"/meteo/Solza\",6964 => \"/meteo/Somaglia\",6965 => \"/meteo/Somano\",6966 => \"/meteo/Somma+lombardo\",6967 => \"/meteo/Somma+vesuviana\",6968 => \"/meteo/Sommacampagna\",6969 => \"/meteo/Sommariva+del+bosco\",6970 => \"/meteo/Sommariva+Perno\",6971 => \"/meteo/Sommatino\",6972 => \"/meteo/Sommo\",6973 => \"/meteo/Sona\",6974 => \"/meteo/Soncino\",6975 => \"/meteo/Sondalo\",6976 => \"/meteo/Sondrio\",6977 => \"/meteo/Songavazzo\",6978 => \"/meteo/Sonico\",6979 => \"/meteo/Sonnino\",6980 => \"/meteo/Soprana\",6981 => \"/meteo/Sora\",6982 => \"/meteo/Soraga\",6983 => \"/meteo/Soragna\",6984 => \"/meteo/Sorano\",6985 => \"/meteo/Sorbo+San+Basile\",6986 => \"/meteo/Sorbo+Serpico\",6987 => \"/meteo/Sorbolo\",6988 => \"/meteo/Sordevolo\",6989 => \"/meteo/Sordio\",6990 => \"/meteo/Soresina\",6991 => \"/meteo/Sorga'\",6992 => \"/meteo/Sorgono\",6993 => \"/meteo/Sori\",6994 => \"/meteo/Sorianello\",6995 => \"/meteo/Soriano+calabro\",6996 => \"/meteo/Soriano+nel+cimino\",6997 => \"/meteo/Sorico\",6998 => \"/meteo/Soriso\",6999 => \"/meteo/Sorisole\",7000 => \"/meteo/Sormano\",7001 => \"/meteo/Sorradile\",7002 => \"/meteo/Sorrento\",7003 => \"/meteo/Sorso\",7004 => \"/meteo/Sortino\",7005 => \"/meteo/Sospiro\",7006 => \"/meteo/Sospirolo\",7007 => \"/meteo/Sossano\",7008 => \"/meteo/Sostegno\",7009 => \"/meteo/Sotto+il+monte+Giovanni+XXIII\",8747 => \"/meteo/Sottomarina\",7010 => \"/meteo/Sover\",7011 => \"/meteo/Soverato\",7012 => \"/meteo/Sovere\",7013 => \"/meteo/Soveria+mannelli\",7014 => \"/meteo/Soveria+simeri\",7015 => \"/meteo/Soverzene\",7016 => \"/meteo/Sovicille\",7017 => \"/meteo/Sovico\",7018 => \"/meteo/Sovizzo\",7019 => \"/meteo/Sovramonte\",7020 => \"/meteo/Sozzago\",7021 => \"/meteo/Spadafora\",7022 => \"/meteo/Spadola\",7023 => \"/meteo/Sparanise\",7024 => \"/meteo/Sparone\",7025 => \"/meteo/Specchia\",7026 => \"/meteo/Spello\",8585 => \"/meteo/Spelonga\",7027 => \"/meteo/Spera\",7028 => \"/meteo/Sperlinga\",7029 => \"/meteo/Sperlonga\",7030 => \"/meteo/Sperone\",7031 => \"/meteo/Spessa\",7032 => \"/meteo/Spezzano+albanese\",7033 => \"/meteo/Spezzano+della+Sila\",7034 => \"/meteo/Spezzano+piccolo\",7035 => \"/meteo/Spiazzo\",7036 => \"/meteo/Spigno+monferrato\",7037 => \"/meteo/Spigno+saturnia\",7038 => \"/meteo/Spilamberto\",7039 => \"/meteo/Spilimbergo\",7040 => \"/meteo/Spilinga\",7041 => \"/meteo/Spinadesco\",7042 => \"/meteo/Spinazzola\",7043 => \"/meteo/Spinea\",7044 => \"/meteo/Spineda\",7045 => \"/meteo/Spinete\",7046 => \"/meteo/Spineto+Scrivia\",7047 => \"/meteo/Spinetoli\",7048 => \"/meteo/Spino+d'Adda\",7049 => \"/meteo/Spinone+al+lago\",8421 => \"/meteo/Spinoso\",7051 => \"/meteo/Spirano\",7052 => \"/meteo/Spoleto\",7053 => \"/meteo/Spoltore\",7054 => \"/meteo/Spongano\",7055 => \"/meteo/Spormaggiore\",7056 => \"/meteo/Sporminore\",7057 => \"/meteo/Spotorno\",7058 => \"/meteo/Spresiano\",7059 => \"/meteo/Spriana\",7060 => \"/meteo/Squillace\",7061 => \"/meteo/Squinzano\",8248 => \"/meteo/Staffal\",7062 => \"/meteo/Staffolo\",7063 => \"/meteo/Stagno+lombardo\",7064 => \"/meteo/Staiti\",7065 => \"/meteo/Staletti\",7066 => \"/meteo/Stanghella\",7067 => \"/meteo/Staranzano\",7068 => \"/meteo/Statte\",7069 => \"/meteo/Stazzano\",7070 => \"/meteo/Stazzema\",7071 => \"/meteo/Stazzona\",7072 => \"/meteo/Stefanaconi\",7073 => \"/meteo/Stella\",7074 => \"/meteo/Stella+cilento\",7075 => \"/meteo/Stellanello\",7076 => \"/meteo/Stelvio\",7077 => \"/meteo/Stenico\",7078 => \"/meteo/Sternatia\",7079 => \"/meteo/Stezzano\",7080 => \"/meteo/Stia\",7081 => \"/meteo/Stienta\",7082 => \"/meteo/Stigliano\",7083 => \"/meteo/Stignano\",7084 => \"/meteo/Stilo\",7085 => \"/meteo/Stimigliano\",7086 => \"/meteo/Stintino\",7087 => \"/meteo/Stio\",7088 => \"/meteo/Stornara\",7089 => \"/meteo/Stornarella\",7090 => \"/meteo/Storo\",7091 => \"/meteo/Stra\",7092 => \"/meteo/Stradella\",7093 => \"/meteo/Strambinello\",7094 => \"/meteo/Strambino\",7095 => \"/meteo/Strangolagalli\",7096 => \"/meteo/Stregna\",7097 => \"/meteo/Strembo\",7098 => \"/meteo/Stresa\",7099 => \"/meteo/Strevi\",7100 => \"/meteo/Striano\",7101 => \"/meteo/Strigno\",8182 => \"/meteo/Stromboli\",7102 => \"/meteo/Strona\",7103 => \"/meteo/Stroncone\",7104 => \"/meteo/Strongoli\",7105 => \"/meteo/Stroppiana\",7106 => \"/meteo/Stroppo\",7107 => \"/meteo/Strozza\",8493 => \"/meteo/Stupizza\",7108 => \"/meteo/Sturno\",7109 => \"/meteo/Suardi\",7110 => \"/meteo/Subbiano\",7111 => \"/meteo/Subiaco\",7112 => \"/meteo/Succivo\",7113 => \"/meteo/Sueglio\",7114 => \"/meteo/Suelli\",7115 => \"/meteo/Suello\",7116 => \"/meteo/Suisio\",7117 => \"/meteo/Sulbiate\",7118 => \"/meteo/Sulmona\",7119 => \"/meteo/Sulzano\",7120 => \"/meteo/Sumirago\",7121 => \"/meteo/Summonte\",7122 => \"/meteo/Suni\",7123 => \"/meteo/Suno\",7124 => \"/meteo/Supersano\",7125 => \"/meteo/Supino\",7126 => \"/meteo/Surano\",7127 => \"/meteo/Surbo\",7128 => \"/meteo/Susa\",7129 => \"/meteo/Susegana\",7130 => \"/meteo/Sustinente\",7131 => \"/meteo/Sutera\",7132 => \"/meteo/Sutri\",7133 => \"/meteo/Sutrio\",7134 => \"/meteo/Suvereto\",7135 => \"/meteo/Suzzara\",7136 => \"/meteo/Taceno\",7137 => \"/meteo/Tadasuni\",7138 => \"/meteo/Taggia\",7139 => \"/meteo/Tagliacozzo\",8450 => \"/meteo/Tagliacozzo+casello\",7140 => \"/meteo/Taglio+di+po\",7141 => \"/meteo/Tagliolo+monferrato\",7142 => \"/meteo/Taibon+agordino\",7143 => \"/meteo/Taino\",7144 => \"/meteo/Taio\",7145 => \"/meteo/Taipana\",7146 => \"/meteo/Talamello\",7147 => \"/meteo/Talamona\",8299 => \"/meteo/Talamone\",7148 => \"/meteo/Talana\",7149 => \"/meteo/Taleggio\",7150 => \"/meteo/Talla\",7151 => \"/meteo/Talmassons\",7152 => \"/meteo/Tambre\",7153 => \"/meteo/Taormina\",7154 => \"/meteo/Tapogliano\",7155 => \"/meteo/Tarano\",7156 => \"/meteo/Taranta+peligna\",7157 => \"/meteo/Tarantasca\",7158 => \"/meteo/Taranto\",8550 => \"/meteo/Taranto+M.+A.+Grottaglie\",7159 => \"/meteo/Tarcento\",7160 => \"/meteo/Tarquinia\",8140 => \"/meteo/Tarquinia+Lido\",7161 => \"/meteo/Tarsia\",7162 => \"/meteo/Tartano\",7163 => \"/meteo/Tarvisio\",8466 => \"/meteo/Tarvisio+casello\",7164 => \"/meteo/Tarzo\",7165 => \"/meteo/Tassarolo\",7166 => \"/meteo/Tassullo\",7167 => \"/meteo/Taurano\",7168 => \"/meteo/Taurasi\",7169 => \"/meteo/Taurianova\",7170 => \"/meteo/Taurisano\",7171 => \"/meteo/Tavagnacco\",7172 => \"/meteo/Tavagnasco\",7173 => \"/meteo/Tavarnelle+val+di+pesa\",7174 => \"/meteo/Tavazzano+con+villavesco\",7175 => \"/meteo/Tavenna\",7176 => \"/meteo/Taverna\",7177 => \"/meteo/Tavernerio\",7178 => \"/meteo/Tavernola+bergamasca\",7179 => \"/meteo/Tavernole+sul+Mella\",7180 => \"/meteo/Taviano\",7181 => \"/meteo/Tavigliano\",7182 => \"/meteo/Tavoleto\",7183 => \"/meteo/Tavullia\",8362 => \"/meteo/Teana\",7185 => \"/meteo/Teano\",7186 => \"/meteo/Teggiano\",7187 => \"/meteo/Teglio\",7188 => \"/meteo/Teglio+veneto\",7189 => \"/meteo/Telese+terme\",7190 => \"/meteo/Telgate\",7191 => \"/meteo/Telti\",7192 => \"/meteo/Telve\",7193 => \"/meteo/Telve+di+sopra\",7194 => \"/meteo/Tempio+Pausania\",7195 => \"/meteo/Temu'\",7196 => \"/meteo/Tenna\",7197 => \"/meteo/Tenno\",7198 => \"/meteo/Teolo\",7199 => \"/meteo/Teor\",7200 => \"/meteo/Teora\",7201 => \"/meteo/Teramo\",8449 => \"/meteo/Teramo+Val+Vomano\",7202 => \"/meteo/Terdobbiate\",7203 => \"/meteo/Terelle\",7204 => \"/meteo/Terento\",7205 => \"/meteo/Terenzo\",7206 => \"/meteo/Tergu\",7207 => \"/meteo/Terlago\",7208 => \"/meteo/Terlano\",7209 => \"/meteo/Terlizzi\",8158 => \"/meteo/Terme+di+Lurisia\",7210 => \"/meteo/Terme+vigliatore\",7211 => \"/meteo/Termeno+sulla+strada+del+vino\",7212 => \"/meteo/Termini+imerese\",8133 => \"/meteo/Terminillo\",7213 => \"/meteo/Termoli\",7214 => \"/meteo/Ternate\",7215 => \"/meteo/Ternengo\",7216 => \"/meteo/Terni\",7217 => \"/meteo/Terno+d'isola\",7218 => \"/meteo/Terracina\",7219 => \"/meteo/Terragnolo\",7220 => \"/meteo/Terralba\",7221 => \"/meteo/Terranova+da+Sibari\",7222 => \"/meteo/Terranova+dei+passerini\",8379 => \"/meteo/Terranova+di+Pollino\",7224 => \"/meteo/Terranova+Sappo+Minulio\",7225 => \"/meteo/Terranuova+bracciolini\",7226 => \"/meteo/Terrasini\",7227 => \"/meteo/Terrassa+padovana\",7228 => \"/meteo/Terravecchia\",7229 => \"/meteo/Terrazzo\",7230 => \"/meteo/Terres\",7231 => \"/meteo/Terricciola\",7232 => \"/meteo/Terruggia\",7233 => \"/meteo/Tertenia\",7234 => \"/meteo/Terzigno\",7235 => \"/meteo/Terzo\",7236 => \"/meteo/Terzo+d'Aquileia\",7237 => \"/meteo/Terzolas\",7238 => \"/meteo/Terzorio\",7239 => \"/meteo/Tesero\",7240 => \"/meteo/Tesimo\",7241 => \"/meteo/Tessennano\",7242 => \"/meteo/Testico\",7243 => \"/meteo/Teti\",7244 => \"/meteo/Teulada\",7245 => \"/meteo/Teverola\",7246 => \"/meteo/Tezze+sul+Brenta\",8716 => \"/meteo/Tharros\",7247 => \"/meteo/Thiene\",7248 => \"/meteo/Thiesi\",7249 => \"/meteo/Tiana\",7250 => \"/meteo/Tiarno+di+sopra\",7251 => \"/meteo/Tiarno+di+sotto\",7252 => \"/meteo/Ticengo\",7253 => \"/meteo/Ticineto\",7254 => \"/meteo/Tiggiano\",7255 => \"/meteo/Tiglieto\",7256 => \"/meteo/Tigliole\",7257 => \"/meteo/Tignale\",7258 => \"/meteo/Tinnura\",7259 => \"/meteo/Tione+degli+Abruzzi\",7260 => \"/meteo/Tione+di+Trento\",7261 => \"/meteo/Tirano\",7262 => \"/meteo/Tires\",7263 => \"/meteo/Tiriolo\",7264 => \"/meteo/Tirolo\",8194 => \"/meteo/Tirrenia\",8719 => \"/meteo/Tiscali\",7265 => \"/meteo/Tissi\",8422 => \"/meteo/Tito\",7267 => \"/meteo/Tivoli\",8451 => \"/meteo/Tivoli+casello\",7268 => \"/meteo/Tizzano+val+Parma\",7269 => \"/meteo/Toano\",7270 => \"/meteo/Tocco+caudio\",7271 => \"/meteo/Tocco+da+Casauria\",7272 => \"/meteo/Toceno\",7273 => \"/meteo/Todi\",7274 => \"/meteo/Toffia\",7275 => \"/meteo/Toirano\",7276 => \"/meteo/Tolentino\",7277 => \"/meteo/Tolfa\",7278 => \"/meteo/Tollegno\",7279 => \"/meteo/Tollo\",7280 => \"/meteo/Tolmezzo\",8423 => \"/meteo/Tolve\",7282 => \"/meteo/Tombolo\",7283 => \"/meteo/Ton\",7284 => \"/meteo/Tonadico\",7285 => \"/meteo/Tonara\",7286 => \"/meteo/Tonco\",7287 => \"/meteo/Tonengo\",7288 => \"/meteo/Tonezza+del+Cimone\",7289 => \"/meteo/Tora+e+piccilli\",8132 => \"/meteo/Torano\",7290 => \"/meteo/Torano+castello\",7291 => \"/meteo/Torano+nuovo\",7292 => \"/meteo/Torbole+casaglia\",7293 => \"/meteo/Torcegno\",7294 => \"/meteo/Torchiara\",7295 => \"/meteo/Torchiarolo\",7296 => \"/meteo/Torella+dei+lombardi\",7297 => \"/meteo/Torella+del+sannio\",7298 => \"/meteo/Torgiano\",7299 => \"/meteo/Torgnon\",7300 => \"/meteo/Torino\",8271 => \"/meteo/Torino+Caselle\",7301 => \"/meteo/Torino+di+Sangro\",8494 => \"/meteo/Torino+di+Sangro+Marina\",7302 => \"/meteo/Toritto\",7303 => \"/meteo/Torlino+Vimercati\",7304 => \"/meteo/Tornaco\",7305 => \"/meteo/Tornareccio\",7306 => \"/meteo/Tornata\",7307 => \"/meteo/Tornimparte\",8445 => \"/meteo/Tornimparte+casello\",7308 => \"/meteo/Torno\",7309 => \"/meteo/Tornolo\",7310 => \"/meteo/Toro\",7311 => \"/meteo/Torpe'\",7312 => \"/meteo/Torraca\",7313 => \"/meteo/Torralba\",7314 => \"/meteo/Torrazza+coste\",7315 => \"/meteo/Torrazza+Piemonte\",7316 => \"/meteo/Torrazzo\",7317 => \"/meteo/Torre+Annunziata\",7318 => \"/meteo/Torre+Beretti+e+Castellaro\",7319 => \"/meteo/Torre+boldone\",7320 => \"/meteo/Torre+bormida\",7321 => \"/meteo/Torre+cajetani\",7322 => \"/meteo/Torre+canavese\",7323 => \"/meteo/Torre+d'arese\",7324 => \"/meteo/Torre+d'isola\",7325 => \"/meteo/Torre+de'+passeri\",7326 => \"/meteo/Torre+de'busi\",7327 => \"/meteo/Torre+de'negri\",7328 => \"/meteo/Torre+de'picenardi\",7329 => \"/meteo/Torre+de'roveri\",7330 => \"/meteo/Torre+del+greco\",7331 => \"/meteo/Torre+di+mosto\",7332 => \"/meteo/Torre+di+ruggiero\",7333 => \"/meteo/Torre+di+Santa+Maria\",7334 => \"/meteo/Torre+le+nocelle\",7335 => \"/meteo/Torre+mondovi'\",7336 => \"/meteo/Torre+orsaia\",8592 => \"/meteo/Torre+Pali\",7337 => \"/meteo/Torre+pallavicina\",7338 => \"/meteo/Torre+pellice\",7339 => \"/meteo/Torre+San+Giorgio\",8596 => \"/meteo/Torre+San+Giovanni\",8595 => \"/meteo/Torre+San+Gregorio\",7340 => \"/meteo/Torre+San+Patrizio\",7341 => \"/meteo/Torre+Santa+Susanna\",8593 => \"/meteo/Torre+Vado\",7342 => \"/meteo/Torreano\",7343 => \"/meteo/Torrebelvicino\",7344 => \"/meteo/Torrebruna\",7345 => \"/meteo/Torrecuso\",7346 => \"/meteo/Torreglia\",7347 => \"/meteo/Torregrotta\",7348 => \"/meteo/Torremaggiore\",7349 => \"/meteo/Torrenova\",7350 => \"/meteo/Torresina\",7351 => \"/meteo/Torretta\",7352 => \"/meteo/Torrevecchia+pia\",7353 => \"/meteo/Torrevecchia+teatina\",7354 => \"/meteo/Torri+del+benaco\",7355 => \"/meteo/Torri+di+quartesolo\",7356 => \"/meteo/Torri+in+sabina\",7357 => \"/meteo/Torriana\",7358 => \"/meteo/Torrice\",7359 => \"/meteo/Torricella\",7360 => \"/meteo/Torricella+del+pizzo\",7361 => \"/meteo/Torricella+in+sabina\",7362 => \"/meteo/Torricella+peligna\",7363 => \"/meteo/Torricella+sicura\",7364 => \"/meteo/Torricella+verzate\",7365 => \"/meteo/Torriglia\",7366 => \"/meteo/Torrile\",7367 => \"/meteo/Torrioni\",7368 => \"/meteo/Torrita+di+Siena\",7369 => \"/meteo/Torrita+tiberina\",7370 => \"/meteo/Tortoli'\",7371 => \"/meteo/Tortona\",7372 => \"/meteo/Tortora\",7373 => \"/meteo/Tortorella\",7374 => \"/meteo/Tortoreto\",8601 => \"/meteo/Tortoreto+lido\",7375 => \"/meteo/Tortorici\",8138 => \"/meteo/Torvaianica\",7376 => \"/meteo/Torviscosa\",7377 => \"/meteo/Toscolano+maderno\",7378 => \"/meteo/Tossicia\",7379 => \"/meteo/Tovo+di+Sant'Agata\",7380 => \"/meteo/Tovo+San+Giacomo\",7381 => \"/meteo/Trabia\",7382 => \"/meteo/Tradate\",8214 => \"/meteo/Trafoi\",7383 => \"/meteo/Tramatza\",7384 => \"/meteo/Trambileno\",7385 => \"/meteo/Tramonti\",7386 => \"/meteo/Tramonti+di+sopra\",7387 => \"/meteo/Tramonti+di+sotto\",8412 => \"/meteo/Tramutola\",7389 => \"/meteo/Trana\",7390 => \"/meteo/Trani\",7391 => \"/meteo/Transacqua\",7392 => \"/meteo/Traona\",7393 => \"/meteo/Trapani\",8544 => \"/meteo/Trapani+Birgi\",7394 => \"/meteo/Trappeto\",7395 => \"/meteo/Trarego+Viggiona\",7396 => \"/meteo/Trasacco\",7397 => \"/meteo/Trasaghis\",7398 => \"/meteo/Trasquera\",7399 => \"/meteo/Tratalias\",7400 => \"/meteo/Trausella\",7401 => \"/meteo/Travaco'+siccomario\",7402 => \"/meteo/Travagliato\",7403 => \"/meteo/Travedona+monate\",7404 => \"/meteo/Traversella\",7405 => \"/meteo/Traversetolo\",7406 => \"/meteo/Traves\",7407 => \"/meteo/Travesio\",7408 => \"/meteo/Travo\",8187 => \"/meteo/Tre+fontane\",7409 => \"/meteo/Trebaseleghe\",7410 => \"/meteo/Trebisacce\",7411 => \"/meteo/Trecasali\",7412 => \"/meteo/Trecase\",7413 => \"/meteo/Trecastagni\",7414 => \"/meteo/Trecate\",7415 => \"/meteo/Trecchina\",7416 => \"/meteo/Trecenta\",7417 => \"/meteo/Tredozio\",7418 => \"/meteo/Treglio\",7419 => \"/meteo/Tregnago\",7420 => \"/meteo/Treia\",7421 => \"/meteo/Treiso\",7422 => \"/meteo/Tremenico\",7423 => \"/meteo/Tremestieri+etneo\",7424 => \"/meteo/Tremezzo\",7425 => \"/meteo/Tremosine\",7426 => \"/meteo/Trenta\",7427 => \"/meteo/Trentinara\",7428 => \"/meteo/Trento\",7429 => \"/meteo/Trentola-ducenta\",7430 => \"/meteo/Trenzano\",8146 => \"/meteo/Trepalle\",7431 => \"/meteo/Treppo+carnico\",7432 => \"/meteo/Treppo+grande\",7433 => \"/meteo/Trepuzzi\",7434 => \"/meteo/Trequanda\",7435 => \"/meteo/Tres\",7436 => \"/meteo/Tresana\",7437 => \"/meteo/Trescore+balneario\",7438 => \"/meteo/Trescore+cremasco\",7439 => \"/meteo/Tresigallo\",7440 => \"/meteo/Tresivio\",7441 => \"/meteo/Tresnuraghes\",7442 => \"/meteo/Trevenzuolo\",7443 => \"/meteo/Trevi\",7444 => \"/meteo/Trevi+nel+lazio\",7445 => \"/meteo/Trevico\",7446 => \"/meteo/Treviglio\",7447 => \"/meteo/Trevignano\",7448 => \"/meteo/Trevignano+romano\",7449 => \"/meteo/Treville\",7450 => \"/meteo/Treviolo\",7451 => \"/meteo/Treviso\",7452 => \"/meteo/Treviso+bresciano\",8543 => \"/meteo/Treviso+Sant'Angelo\",7453 => \"/meteo/Trezzano+rosa\",7454 => \"/meteo/Trezzano+sul+Naviglio\",7455 => \"/meteo/Trezzo+sull'Adda\",7456 => \"/meteo/Trezzo+Tinella\",7457 => \"/meteo/Trezzone\",7458 => \"/meteo/Tribano\",7459 => \"/meteo/Tribiano\",7460 => \"/meteo/Tribogna\",7461 => \"/meteo/Tricarico\",7462 => \"/meteo/Tricase\",8597 => \"/meteo/Tricase+porto\",7463 => \"/meteo/Tricerro\",7464 => \"/meteo/Tricesimo\",7465 => \"/meteo/Trichiana\",7466 => \"/meteo/Triei\",7467 => \"/meteo/Trieste\",8472 => \"/meteo/Trieste+Ronchi+dei+Legionari\",7468 => \"/meteo/Triggiano\",7469 => \"/meteo/Trigolo\",7470 => \"/meteo/Trinita+d'Agultu+e+Vignola\",7471 => \"/meteo/Trinita'\",7472 => \"/meteo/Trinitapoli\",7473 => \"/meteo/Trino\",7474 => \"/meteo/Triora\",7475 => \"/meteo/Tripi\",7476 => \"/meteo/Trisobbio\",7477 => \"/meteo/Trissino\",7478 => \"/meteo/Triuggio\",7479 => \"/meteo/Trivento\",7480 => \"/meteo/Trivero\",7481 => \"/meteo/Trivigliano\",7482 => \"/meteo/Trivignano+udinese\",8413 => \"/meteo/Trivigno\",7484 => \"/meteo/Trivolzio\",7485 => \"/meteo/Trodena\",7486 => \"/meteo/Trofarello\",7487 => \"/meteo/Troia\",7488 => \"/meteo/Troina\",7489 => \"/meteo/Tromello\",7490 => \"/meteo/Trontano\",7491 => \"/meteo/Tronzano+lago+maggiore\",7492 => \"/meteo/Tronzano+vercellese\",7493 => \"/meteo/Tropea\",7494 => \"/meteo/Trovo\",7495 => \"/meteo/Truccazzano\",7496 => \"/meteo/Tubre\",7497 => \"/meteo/Tuenno\",7498 => \"/meteo/Tufara\",7499 => \"/meteo/Tufillo\",7500 => \"/meteo/Tufino\",7501 => \"/meteo/Tufo\",7502 => \"/meteo/Tuglie\",7503 => \"/meteo/Tuili\",7504 => \"/meteo/Tula\",7505 => \"/meteo/Tuoro+sul+trasimeno\",7506 => \"/meteo/Turania\",7507 => \"/meteo/Turano+lodigiano\",7508 => \"/meteo/Turate\",7509 => \"/meteo/Turbigo\",7510 => \"/meteo/Turi\",7511 => \"/meteo/Turri\",7512 => \"/meteo/Turriaco\",7513 => \"/meteo/Turrivalignani\",8390 => \"/meteo/Tursi\",7515 => \"/meteo/Tusa\",7516 => \"/meteo/Tuscania\",7517 => \"/meteo/Ubiale+Clanezzo\",7518 => \"/meteo/Uboldo\",7519 => \"/meteo/Ucria\",7520 => \"/meteo/Udine\",7521 => \"/meteo/Ugento\",7522 => \"/meteo/Uggiano+la+chiesa\",7523 => \"/meteo/Uggiate+trevano\",7524 => \"/meteo/Ula'+Tirso\",7525 => \"/meteo/Ulassai\",7526 => \"/meteo/Ultimo\",7527 => \"/meteo/Umbertide\",7528 => \"/meteo/Umbriatico\",7529 => \"/meteo/Urago+d'Oglio\",7530 => \"/meteo/Uras\",7531 => \"/meteo/Urbana\",7532 => \"/meteo/Urbania\",7533 => \"/meteo/Urbe\",7534 => \"/meteo/Urbino\",7535 => \"/meteo/Urbisaglia\",7536 => \"/meteo/Urgnano\",7537 => \"/meteo/Uri\",7538 => \"/meteo/Ururi\",7539 => \"/meteo/Urzulei\",7540 => \"/meteo/Uscio\",7541 => \"/meteo/Usellus\",7542 => \"/meteo/Usini\",7543 => \"/meteo/Usmate+Velate\",7544 => \"/meteo/Ussana\",7545 => \"/meteo/Ussaramanna\",7546 => \"/meteo/Ussassai\",7547 => \"/meteo/Usseaux\",7548 => \"/meteo/Usseglio\",7549 => \"/meteo/Ussita\",7550 => \"/meteo/Ustica\",7551 => \"/meteo/Uta\",7552 => \"/meteo/Uzzano\",7553 => \"/meteo/Vaccarizzo+albanese\",7554 => \"/meteo/Vacone\",7555 => \"/meteo/Vacri\",7556 => \"/meteo/Vadena\",7557 => \"/meteo/Vado+ligure\",7558 => \"/meteo/Vagli+sotto\",7559 => \"/meteo/Vaglia\",8388 => \"/meteo/Vaglio+Basilicata\",7561 => \"/meteo/Vaglio+serra\",7562 => \"/meteo/Vaiano\",7563 => \"/meteo/Vaiano+cremasco\",7564 => \"/meteo/Vaie\",7565 => \"/meteo/Vailate\",7566 => \"/meteo/Vairano+Patenora\",7567 => \"/meteo/Vajont\",8511 => \"/meteo/Val+Canale\",7568 => \"/meteo/Val+della+torre\",8243 => \"/meteo/Val+di+Lei\",8237 => \"/meteo/Val+di+Luce\",7569 => \"/meteo/Val+di+nizza\",8440 => \"/meteo/Val+di+Sangro+casello\",7570 => \"/meteo/Val+di+vizze\",8223 => \"/meteo/Val+Ferret\",8521 => \"/meteo/Val+Grauson\",7571 => \"/meteo/Val+Masino\",7572 => \"/meteo/Val+Rezzo\",8215 => \"/meteo/Val+Senales\",8522 => \"/meteo/Val+Urtier\",8224 => \"/meteo/Val+Veny\",7573 => \"/meteo/Valbondione\",7574 => \"/meteo/Valbrembo\",7575 => \"/meteo/Valbrevenna\",7576 => \"/meteo/Valbrona\",8311 => \"/meteo/Valcava\",7577 => \"/meteo/Valda\",7578 => \"/meteo/Valdagno\",7579 => \"/meteo/Valdaora\",7580 => \"/meteo/Valdastico\",7581 => \"/meteo/Valdengo\",7582 => \"/meteo/Valderice\",7583 => \"/meteo/Valdidentro\",7584 => \"/meteo/Valdieri\",7585 => \"/meteo/Valdina\",7586 => \"/meteo/Valdisotto\",7587 => \"/meteo/Valdobbiadene\",7588 => \"/meteo/Valduggia\",7589 => \"/meteo/Valeggio\",7590 => \"/meteo/Valeggio+sul+Mincio\",7591 => \"/meteo/Valentano\",7592 => \"/meteo/Valenza\",7593 => \"/meteo/Valenzano\",7594 => \"/meteo/Valera+fratta\",7595 => \"/meteo/Valfabbrica\",7596 => \"/meteo/Valfenera\",7597 => \"/meteo/Valfloriana\",7598 => \"/meteo/Valfurva\",7599 => \"/meteo/Valganna\",7600 => \"/meteo/Valgioie\",7601 => \"/meteo/Valgoglio\",7602 => \"/meteo/Valgrana\",7603 => \"/meteo/Valgreghentino\",7604 => \"/meteo/Valgrisenche\",7605 => \"/meteo/Valguarnera+caropepe\",8344 => \"/meteo/Valico+Citerna\",8510 => \"/meteo/Valico+dei+Giovi\",8318 => \"/meteo/Valico+di+Monforte\",8509 => \"/meteo/Valico+di+Montemiletto\",8507 => \"/meteo/Valico+di+Scampitella\",7606 => \"/meteo/Vallada+agordina\",7607 => \"/meteo/Vallanzengo\",7608 => \"/meteo/Vallarsa\",7609 => \"/meteo/Vallata\",7610 => \"/meteo/Valle+agricola\",7611 => \"/meteo/Valle+Aurina\",7612 => \"/meteo/Valle+castellana\",8444 => \"/meteo/Valle+del+salto\",7613 => \"/meteo/Valle+dell'Angelo\",7614 => \"/meteo/Valle+di+Cadore\",7615 => \"/meteo/Valle+di+Casies\",7616 => \"/meteo/Valle+di+maddaloni\",7617 => \"/meteo/Valle+lomellina\",7618 => \"/meteo/Valle+mosso\",7619 => \"/meteo/Valle+salimbene\",7620 => \"/meteo/Valle+San+Nicolao\",7621 => \"/meteo/Vallebona\",7622 => \"/meteo/Vallecorsa\",7623 => \"/meteo/Vallecrosia\",7624 => \"/meteo/Valledolmo\",7625 => \"/meteo/Valledoria\",7626 => \"/meteo/Vallefiorita\",7627 => \"/meteo/Vallelonga\",7628 => \"/meteo/Vallelunga+pratameno\",7629 => \"/meteo/Vallemaio\",7630 => \"/meteo/Vallepietra\",7631 => \"/meteo/Vallerano\",7632 => \"/meteo/Vallermosa\",7633 => \"/meteo/Vallerotonda\",7634 => \"/meteo/Vallesaccarda\",8749 => \"/meteo/Valletta\",7635 => \"/meteo/Valleve\",7636 => \"/meteo/Valli+del+Pasubio\",7637 => \"/meteo/Vallinfreda\",7638 => \"/meteo/Vallio+terme\",7639 => \"/meteo/Vallo+della+Lucania\",7640 => \"/meteo/Vallo+di+Nera\",7641 => \"/meteo/Vallo+torinese\",8191 => \"/meteo/Vallombrosa\",8471 => \"/meteo/Vallon\",7642 => \"/meteo/Valloriate\",7643 => \"/meteo/Valmacca\",7644 => \"/meteo/Valmadrera\",7645 => \"/meteo/Valmala\",8313 => \"/meteo/Valmasino\",7646 => \"/meteo/Valmontone\",7647 => \"/meteo/Valmorea\",7648 => \"/meteo/Valmozzola\",7649 => \"/meteo/Valnegra\",7650 => \"/meteo/Valpelline\",7651 => \"/meteo/Valperga\",7652 => \"/meteo/Valprato+Soana\",7653 => \"/meteo/Valsavarenche\",7654 => \"/meteo/Valsecca\",7655 => \"/meteo/Valsinni\",7656 => \"/meteo/Valsolda\",7657 => \"/meteo/Valstagna\",7658 => \"/meteo/Valstrona\",7659 => \"/meteo/Valtopina\",7660 => \"/meteo/Valtorta\",8148 => \"/meteo/Valtorta+impianti\",7661 => \"/meteo/Valtournenche\",7662 => \"/meteo/Valva\",7663 => \"/meteo/Valvasone\",7664 => \"/meteo/Valverde\",7665 => \"/meteo/Valverde\",7666 => \"/meteo/Valvestino\",7667 => \"/meteo/Vandoies\",7668 => \"/meteo/Vanzaghello\",7669 => \"/meteo/Vanzago\",7670 => \"/meteo/Vanzone+con+San+Carlo\",7671 => \"/meteo/Vaprio+d'Adda\",7672 => \"/meteo/Vaprio+d'Agogna\",7673 => \"/meteo/Varallo\",7674 => \"/meteo/Varallo+Pombia\",7675 => \"/meteo/Varano+Borghi\",7676 => \"/meteo/Varano+de'+Melegari\",7677 => \"/meteo/Varapodio\",7678 => \"/meteo/Varazze\",8600 => \"/meteo/Varcaturo\",7679 => \"/meteo/Varco+sabino\",7680 => \"/meteo/Varedo\",7681 => \"/meteo/Varena\",7682 => \"/meteo/Varenna\",7683 => \"/meteo/Varese\",7684 => \"/meteo/Varese+ligure\",8284 => \"/meteo/Varigotti\",7685 => \"/meteo/Varisella\",7686 => \"/meteo/Varmo\",7687 => \"/meteo/Varna\",7688 => \"/meteo/Varsi\",7689 => \"/meteo/Varzi\",7690 => \"/meteo/Varzo\",7691 => \"/meteo/Vas\",7692 => \"/meteo/Vasanello\",7693 => \"/meteo/Vasia\",7694 => \"/meteo/Vasto\",7695 => \"/meteo/Vastogirardi\",7696 => \"/meteo/Vattaro\",7697 => \"/meteo/Vauda+canavese\",7698 => \"/meteo/Vazzano\",7699 => \"/meteo/Vazzola\",7700 => \"/meteo/Vecchiano\",7701 => \"/meteo/Vedano+al+Lambro\",7702 => \"/meteo/Vedano+Olona\",7703 => \"/meteo/Veddasca\",7704 => \"/meteo/Vedelago\",7705 => \"/meteo/Vedeseta\",7706 => \"/meteo/Veduggio+con+Colzano\",7707 => \"/meteo/Veggiano\",7708 => \"/meteo/Veglie\",7709 => \"/meteo/Veglio\",7710 => \"/meteo/Vejano\",7711 => \"/meteo/Veleso\",7712 => \"/meteo/Velezzo+lomellina\",8530 => \"/meteo/Vellano\",7713 => \"/meteo/Velletri\",7714 => \"/meteo/Vellezzo+Bellini\",7715 => \"/meteo/Velo+d'Astico\",7716 => \"/meteo/Velo+veronese\",7717 => \"/meteo/Velturno\",7718 => \"/meteo/Venafro\",7719 => \"/meteo/Venaria\",7720 => \"/meteo/Venarotta\",7721 => \"/meteo/Venasca\",7722 => \"/meteo/Venaus\",7723 => \"/meteo/Vendone\",7724 => \"/meteo/Vendrogno\",7725 => \"/meteo/Venegono+inferiore\",7726 => \"/meteo/Venegono+superiore\",7727 => \"/meteo/Venetico\",7728 => \"/meteo/Venezia\",8502 => \"/meteo/Venezia+Mestre\",8268 => \"/meteo/Venezia+Tessera\",7729 => \"/meteo/Veniano\",7730 => \"/meteo/Venosa\",7731 => \"/meteo/Venticano\",7732 => \"/meteo/Ventimiglia\",7733 => \"/meteo/Ventimiglia+di+Sicilia\",7734 => \"/meteo/Ventotene\",7735 => \"/meteo/Venzone\",7736 => \"/meteo/Verano\",7737 => \"/meteo/Verano+brianza\",7738 => \"/meteo/Verbania\",7739 => \"/meteo/Verbicaro\",7740 => \"/meteo/Vercana\",7741 => \"/meteo/Verceia\",7742 => \"/meteo/Vercelli\",7743 => \"/meteo/Vercurago\",7744 => \"/meteo/Verdellino\",7745 => \"/meteo/Verdello\",7746 => \"/meteo/Verderio+inferiore\",7747 => \"/meteo/Verderio+superiore\",7748 => \"/meteo/Verduno\",7749 => \"/meteo/Vergato\",7750 => \"/meteo/Vergemoli\",7751 => \"/meteo/Verghereto\",7752 => \"/meteo/Vergiate\",7753 => \"/meteo/Vermezzo\",7754 => \"/meteo/Vermiglio\",8583 => \"/meteo/Vernago\",7755 => \"/meteo/Vernante\",7756 => \"/meteo/Vernasca\",7757 => \"/meteo/Vernate\",7758 => \"/meteo/Vernazza\",7759 => \"/meteo/Vernio\",7760 => \"/meteo/Vernole\",7761 => \"/meteo/Verolanuova\",7762 => \"/meteo/Verolavecchia\",7763 => \"/meteo/Verolengo\",7764 => \"/meteo/Veroli\",7765 => \"/meteo/Verona\",8269 => \"/meteo/Verona+Villafranca\",7766 => \"/meteo/Veronella\",7767 => \"/meteo/Verrayes\",7768 => \"/meteo/Verres\",7769 => \"/meteo/Verretto\",7770 => \"/meteo/Verrone\",7771 => \"/meteo/Verrua+po\",7772 => \"/meteo/Verrua+Savoia\",7773 => \"/meteo/Vertemate+con+Minoprio\",7774 => \"/meteo/Vertova\",7775 => \"/meteo/Verucchio\",7776 => \"/meteo/Veruno\",7777 => \"/meteo/Vervio\",7778 => \"/meteo/Vervo'\",7779 => \"/meteo/Verzegnis\",7780 => \"/meteo/Verzino\",7781 => \"/meteo/Verzuolo\",7782 => \"/meteo/Vescovana\",7783 => \"/meteo/Vescovato\",7784 => \"/meteo/Vesime\",7785 => \"/meteo/Vespolate\",7786 => \"/meteo/Vessalico\",7787 => \"/meteo/Vestenanova\",7788 => \"/meteo/Vestigne'\",7789 => \"/meteo/Vestone\",7790 => \"/meteo/Vestreno\",7791 => \"/meteo/Vetralla\",7792 => \"/meteo/Vetto\",7793 => \"/meteo/Vezza+d'Alba\",7794 => \"/meteo/Vezza+d'Oglio\",7795 => \"/meteo/Vezzano\",7796 => \"/meteo/Vezzano+ligure\",7797 => \"/meteo/Vezzano+sul+crostolo\",7798 => \"/meteo/Vezzi+portio\",8317 => \"/meteo/Vezzo\",7799 => \"/meteo/Viadana\",7800 => \"/meteo/Viadanica\",7801 => \"/meteo/Viagrande\",7802 => \"/meteo/Viale\",7803 => \"/meteo/Vialfre'\",7804 => \"/meteo/Viano\",7805 => \"/meteo/Viareggio\",7806 => \"/meteo/Viarigi\",8674 => \"/meteo/Vibo+Marina\",7807 => \"/meteo/Vibo+Valentia\",7808 => \"/meteo/Vibonati\",7809 => \"/meteo/Vicalvi\",7810 => \"/meteo/Vicari\",7811 => \"/meteo/Vicchio\",7812 => \"/meteo/Vicenza\",7813 => \"/meteo/Vico+canavese\",7814 => \"/meteo/Vico+del+Gargano\",7815 => \"/meteo/Vico+Equense\",7816 => \"/meteo/Vico+nel+Lazio\",7817 => \"/meteo/Vicoforte\",7818 => \"/meteo/Vicoli\",7819 => \"/meteo/Vicolungo\",7820 => \"/meteo/Vicopisano\",7821 => \"/meteo/Vicovaro\",7822 => \"/meteo/Viddalba\",7823 => \"/meteo/Vidigulfo\",7824 => \"/meteo/Vidor\",7825 => \"/meteo/Vidracco\",7826 => \"/meteo/Vieste\",7827 => \"/meteo/Vietri+di+Potenza\",7828 => \"/meteo/Vietri+sul+mare\",7829 => \"/meteo/Viganella\",7830 => \"/meteo/Vigano+San+Martino\",7831 => \"/meteo/Vigano'\",7832 => \"/meteo/Vigarano+Mainarda\",7833 => \"/meteo/Vigasio\",7834 => \"/meteo/Vigevano\",7835 => \"/meteo/Viggianello\",7836 => \"/meteo/Viggiano\",7837 => \"/meteo/Viggiu'\",7838 => \"/meteo/Vighizzolo+d'Este\",7839 => \"/meteo/Vigliano+biellese\",7840 => \"/meteo/Vigliano+d'Asti\",7841 => \"/meteo/Vignale+monferrato\",7842 => \"/meteo/Vignanello\",7843 => \"/meteo/Vignate\",8125 => \"/meteo/Vignola\",7845 => \"/meteo/Vignola+Falesina\",7846 => \"/meteo/Vignole+Borbera\",7847 => \"/meteo/Vignolo\",7848 => \"/meteo/Vignone\",8514 => \"/meteo/Vigo+Ciampedie\",7849 => \"/meteo/Vigo+di+Cadore\",7850 => \"/meteo/Vigo+di+Fassa\",7851 => \"/meteo/Vigo+Rendena\",7852 => \"/meteo/Vigodarzere\",7853 => \"/meteo/Vigolo\",7854 => \"/meteo/Vigolo+Vattaro\",7855 => \"/meteo/Vigolzone\",7856 => \"/meteo/Vigone\",7857 => \"/meteo/Vigonovo\",7858 => \"/meteo/Vigonza\",7859 => \"/meteo/Viguzzolo\",7860 => \"/meteo/Villa+agnedo\",7861 => \"/meteo/Villa+bartolomea\",7862 => \"/meteo/Villa+basilica\",7863 => \"/meteo/Villa+biscossi\",7864 => \"/meteo/Villa+carcina\",7865 => \"/meteo/Villa+castelli\",7866 => \"/meteo/Villa+celiera\",7867 => \"/meteo/Villa+collemandina\",7868 => \"/meteo/Villa+cortese\",7869 => \"/meteo/Villa+d'Adda\",7870 => \"/meteo/Villa+d'Alme'\",7871 => \"/meteo/Villa+d'Ogna\",7872 => \"/meteo/Villa+del+bosco\",7873 => \"/meteo/Villa+del+conte\",7874 => \"/meteo/Villa+di+briano\",7875 => \"/meteo/Villa+di+Chiavenna\",7876 => \"/meteo/Villa+di+Serio\",7877 => \"/meteo/Villa+di+Tirano\",7878 => \"/meteo/Villa+Estense\",7879 => \"/meteo/Villa+Faraldi\",7880 => \"/meteo/Villa+Guardia\",7881 => \"/meteo/Villa+Lagarina\",7882 => \"/meteo/Villa+Latina\",7883 => \"/meteo/Villa+Literno\",7884 => \"/meteo/Villa+minozzo\",7885 => \"/meteo/Villa+poma\",7886 => \"/meteo/Villa+rendena\",7887 => \"/meteo/Villa+San+Giovanni\",7888 => \"/meteo/Villa+San+Giovanni+in+Tuscia\",7889 => \"/meteo/Villa+San+Pietro\",7890 => \"/meteo/Villa+San+Secondo\",7891 => \"/meteo/Villa+Sant'Angelo\",7892 => \"/meteo/Villa+Sant'Antonio\",7893 => \"/meteo/Villa+Santa+Lucia\",7894 => \"/meteo/Villa+Santa+Lucia+degli+Abruzzi\",7895 => \"/meteo/Villa+Santa+Maria\",7896 => \"/meteo/Villa+Santina\",7897 => \"/meteo/Villa+Santo+Stefano\",7898 => \"/meteo/Villa+verde\",7899 => \"/meteo/Villa+vicentina\",7900 => \"/meteo/Villabassa\",7901 => \"/meteo/Villabate\",7902 => \"/meteo/Villachiara\",7903 => \"/meteo/Villacidro\",7904 => \"/meteo/Villadeati\",7905 => \"/meteo/Villadose\",7906 => \"/meteo/Villadossola\",7907 => \"/meteo/Villafalletto\",7908 => \"/meteo/Villafranca+d'Asti\",7909 => \"/meteo/Villafranca+di+Verona\",7910 => \"/meteo/Villafranca+in+Lunigiana\",7911 => \"/meteo/Villafranca+padovana\",7912 => \"/meteo/Villafranca+Piemonte\",7913 => \"/meteo/Villafranca+sicula\",7914 => \"/meteo/Villafranca+tirrena\",7915 => \"/meteo/Villafrati\",7916 => \"/meteo/Villaga\",7917 => \"/meteo/Villagrande+Strisaili\",7918 => \"/meteo/Villalago\",7919 => \"/meteo/Villalba\",7920 => \"/meteo/Villalfonsina\",7921 => \"/meteo/Villalvernia\",7922 => \"/meteo/Villamagna\",7923 => \"/meteo/Villamaina\",7924 => \"/meteo/Villamar\",7925 => \"/meteo/Villamarzana\",7926 => \"/meteo/Villamassargia\",7927 => \"/meteo/Villamiroglio\",7928 => \"/meteo/Villandro\",7929 => \"/meteo/Villanova+biellese\",7930 => \"/meteo/Villanova+canavese\",7931 => \"/meteo/Villanova+d'Albenga\",7932 => \"/meteo/Villanova+d'Ardenghi\",7933 => \"/meteo/Villanova+d'Asti\",7934 => \"/meteo/Villanova+del+Battista\",7935 => \"/meteo/Villanova+del+Ghebbo\",7936 => \"/meteo/Villanova+del+Sillaro\",7937 => \"/meteo/Villanova+di+Camposampiero\",7938 => \"/meteo/Villanova+marchesana\",7939 => \"/meteo/Villanova+Mondovi'\",7940 => \"/meteo/Villanova+Monferrato\",7941 => \"/meteo/Villanova+Monteleone\",7942 => \"/meteo/Villanova+solaro\",7943 => \"/meteo/Villanova+sull'Arda\",7944 => \"/meteo/Villanova+Truschedu\",7945 => \"/meteo/Villanova+Tulo\",7946 => \"/meteo/Villanovaforru\",7947 => \"/meteo/Villanovafranca\",7948 => \"/meteo/Villanterio\",7949 => \"/meteo/Villanuova+sul+Clisi\",7950 => \"/meteo/Villaperuccio\",7951 => \"/meteo/Villapiana\",7952 => \"/meteo/Villaputzu\",7953 => \"/meteo/Villar+dora\",7954 => \"/meteo/Villar+focchiardo\",7955 => \"/meteo/Villar+pellice\",7956 => \"/meteo/Villar+Perosa\",7957 => \"/meteo/Villar+San+Costanzo\",7958 => \"/meteo/Villarbasse\",7959 => \"/meteo/Villarboit\",7960 => \"/meteo/Villareggia\",7961 => \"/meteo/Villaricca\",7962 => \"/meteo/Villaromagnano\",7963 => \"/meteo/Villarosa\",7964 => \"/meteo/Villasalto\",7965 => \"/meteo/Villasanta\",7966 => \"/meteo/Villasimius\",7967 => \"/meteo/Villasor\",7968 => \"/meteo/Villaspeciosa\",7969 => \"/meteo/Villastellone\",7970 => \"/meteo/Villata\",7971 => \"/meteo/Villaurbana\",7972 => \"/meteo/Villavallelonga\",7973 => \"/meteo/Villaverla\",7974 => \"/meteo/Villeneuve\",7975 => \"/meteo/Villesse\",7976 => \"/meteo/Villetta+Barrea\",7977 => \"/meteo/Villette\",7978 => \"/meteo/Villimpenta\",7979 => \"/meteo/Villongo\",7980 => \"/meteo/Villorba\",7981 => \"/meteo/Vilminore+di+scalve\",7982 => \"/meteo/Vimercate\",7983 => \"/meteo/Vimodrone\",7984 => \"/meteo/Vinadio\",7985 => \"/meteo/Vinchiaturo\",7986 => \"/meteo/Vinchio\",7987 => \"/meteo/Vinci\",7988 => \"/meteo/Vinovo\",7989 => \"/meteo/Vinzaglio\",7990 => \"/meteo/Viola\",7991 => \"/meteo/Vione\",7992 => \"/meteo/Vipiteno\",7993 => \"/meteo/Virgilio\",7994 => \"/meteo/Virle+Piemonte\",7995 => \"/meteo/Visano\",7996 => \"/meteo/Vische\",7997 => \"/meteo/Visciano\",7998 => \"/meteo/Visco\",7999 => \"/meteo/Visone\",8000 => \"/meteo/Visso\",8001 => \"/meteo/Vistarino\",8002 => \"/meteo/Vistrorio\",8003 => \"/meteo/Vita\",8004 => \"/meteo/Viterbo\",8005 => \"/meteo/Viticuso\",8006 => \"/meteo/Vito+d'Asio\",8007 => \"/meteo/Vitorchiano\",8008 => \"/meteo/Vittoria\",8009 => \"/meteo/Vittorio+Veneto\",8010 => \"/meteo/Vittorito\",8011 => \"/meteo/Vittuone\",8012 => \"/meteo/Vitulano\",8013 => \"/meteo/Vitulazio\",8014 => \"/meteo/Viu'\",8015 => \"/meteo/Vivaro\",8016 => \"/meteo/Vivaro+romano\",8017 => \"/meteo/Viverone\",8018 => \"/meteo/Vizzini\",8019 => \"/meteo/Vizzola+Ticino\",8020 => \"/meteo/Vizzolo+Predabissi\",8021 => \"/meteo/Vo'\",8022 => \"/meteo/Vobarno\",8023 => \"/meteo/Vobbia\",8024 => \"/meteo/Vocca\",8025 => \"/meteo/Vodo+cadore\",8026 => \"/meteo/Voghera\",8027 => \"/meteo/Voghiera\",8028 => \"/meteo/Vogogna\",8029 => \"/meteo/Volano\",8030 => \"/meteo/Volla\",8031 => \"/meteo/Volongo\",8032 => \"/meteo/Volpago+del+montello\",8033 => \"/meteo/Volpara\",8034 => \"/meteo/Volpedo\",8035 => \"/meteo/Volpeglino\",8036 => \"/meteo/Volpiano\",8037 => \"/meteo/Volta+mantovana\",8038 => \"/meteo/Voltaggio\",8039 => \"/meteo/Voltago+agordino\",8040 => \"/meteo/Volterra\",8041 => \"/meteo/Voltido\",8042 => \"/meteo/Volturara+Appula\",8043 => \"/meteo/Volturara+irpina\",8044 => \"/meteo/Volturino\",8045 => \"/meteo/Volvera\",8046 => \"/meteo/Vottignasco\",8181 => \"/meteo/Vulcano+Porto\",8047 => \"/meteo/Zaccanopoli\",8048 => \"/meteo/Zafferana+etnea\",8049 => \"/meteo/Zagarise\",8050 => \"/meteo/Zagarolo\",8051 => \"/meteo/Zambana\",8707 => \"/meteo/Zambla\",8052 => \"/meteo/Zambrone\",8053 => \"/meteo/Zandobbio\",8054 => \"/meteo/Zane'\",8055 => \"/meteo/Zanica\",8056 => \"/meteo/Zapponeta\",8057 => \"/meteo/Zavattarello\",8058 => \"/meteo/Zeccone\",8059 => \"/meteo/Zeddiani\",8060 => \"/meteo/Zelbio\",8061 => \"/meteo/Zelo+Buon+Persico\",8062 => \"/meteo/Zelo+Surrigone\",8063 => \"/meteo/Zeme\",8064 => \"/meteo/Zenevredo\",8065 => \"/meteo/Zenson+di+Piave\",8066 => \"/meteo/Zerba\",8067 => \"/meteo/Zerbo\",8068 => \"/meteo/Zerbolo'\",8069 => \"/meteo/Zerfaliu\",8070 => \"/meteo/Zeri\",8071 => \"/meteo/Zermeghedo\",8072 => \"/meteo/Zero+Branco\",8073 => \"/meteo/Zevio\",8455 => \"/meteo/Ziano+di+Fiemme\",8075 => \"/meteo/Ziano+piacentino\",8076 => \"/meteo/Zibello\",8077 => \"/meteo/Zibido+San+Giacomo\",8078 => \"/meteo/Zignago\",8079 => \"/meteo/Zimella\",8080 => \"/meteo/Zimone\",8081 => \"/meteo/Zinasco\",8082 => \"/meteo/Zoagli\",8083 => \"/meteo/Zocca\",8084 => \"/meteo/Zogno\",8085 => \"/meteo/Zola+Predosa\",8086 => \"/meteo/Zoldo+alto\",8087 => \"/meteo/Zollino\",8088 => \"/meteo/Zone\",8089 => \"/meteo/Zoppe'+di+cadore\",8090 => \"/meteo/Zoppola\",8091 => \"/meteo/Zovencedo\",8092 => \"/meteo/Zubiena\",8093 => \"/meteo/Zuccarello\",8094 => \"/meteo/Zuclo\",8095 => \"/meteo/Zugliano\",8096 => \"/meteo/Zuglio\",8097 => \"/meteo/Zumaglia\",8098 => \"/meteo/Zumpano\",8099 => \"/meteo/Zungoli\",8100 => \"/meteo/Zungri\");\n\n$trebi_locs = array(1 => \"Abano terme\",2 => \"Abbadia cerreto\",3 => \"Abbadia lariana\",4 => \"Abbadia San Salvatore\",5 => \"Abbasanta\",6 => \"Abbateggio\",7 => \"Abbiategrasso\",8 => \"Abetone\",8399 => \"Abriola\",10 => \"Acate\",11 => \"Accadia\",12 => \"Acceglio\",8369 => \"Accettura\",14 => \"Acciano\",15 => \"Accumoli\",16 => \"Acerenza\",17 => \"Acerno\",18 => \"Acerra\",19 => \"Aci bonaccorsi\",20 => \"Aci castello\",21 => \"Aci Catena\",22 => \"Aci Sant'Antonio\",23 => \"Acireale\",24 => \"Acquacanina\",25 => \"Acquafondata\",26 => \"Acquaformosa\",27 => \"Acquafredda\",8750 => \"Acquafredda\",28 => \"Acqualagna\",29 => \"Acquanegra cremonese\",30 => \"Acquanegra sul chiese\",31 => \"Acquapendente\",32 => \"Acquappesa\",33 => \"Acquarica del capo\",34 => \"Acquaro\",35 => \"Acquasanta terme\",36 => \"Acquasparta\",37 => \"Acquaviva collecroce\",38 => \"Acquaviva d'Isernia\",39 => \"Acquaviva delle fonti\",40 => \"Acquaviva picena\",41 => \"Acquaviva platani\",42 => \"Acquedolci\",43 => \"Acqui terme\",44 => \"Acri\",45 => \"Acuto\",46 => \"Adelfia\",47 => \"Adrano\",48 => \"Adrara San Martino\",49 => \"Adrara San Rocco\",50 => \"Adria\",51 => \"Adro\",52 => \"Affi\",53 => \"Affile\",54 => \"Afragola\",55 => \"Africo\",56 => \"Agazzano\",57 => \"Agerola\",58 => \"Aggius\",59 => \"Agira\",60 => \"Agliana\",61 => \"Agliano\",62 => \"Aglie'\",63 => \"Aglientu\",64 => \"Agna\",65 => \"Agnadello\",66 => \"Agnana calabra\",8598 => \"Agnano\",67 => \"Agnone\",68 => \"Agnosine\",69 => \"Agordo\",70 => \"Agosta\",71 => \"Agra\",72 => \"Agrate brianza\",73 => \"Agrate conturbia\",74 => \"Agrigento\",75 => \"Agropoli\",76 => \"Agugliano\",77 => \"Agugliaro\",78 => \"Aicurzio\",79 => \"Aidomaggiore\",80 => \"Aidone\",81 => \"Aielli\",82 => \"Aiello calabro\",83 => \"Aiello del Friuli\",84 => \"Aiello del Sabato\",85 => \"Aieta\",86 => \"Ailano\",87 => \"Ailoche\",88 => \"Airasca\",89 => \"Airola\",90 => \"Airole\",91 => \"Airuno\",92 => \"Aisone\",93 => \"Ala\",94 => \"Ala di Stura\",95 => \"Ala' dei Sardi\",96 => \"Alagna\",97 => \"Alagna Valsesia\",98 => \"Alanno\",99 => \"Alano di Piave\",100 => \"Alassio\",101 => \"Alatri\",102 => \"Alba\",103 => \"Alba adriatica\",104 => \"Albagiara\",105 => \"Albairate\",106 => \"Albanella\",8386 => \"Albano di lucania\",108 => \"Albano laziale\",109 => \"Albano Sant'Alessandro\",110 => \"Albano vercellese\",111 => \"Albaredo arnaboldi\",112 => \"Albaredo d'Adige\",113 => \"Albaredo per San Marco\",114 => \"Albareto\",115 => \"Albaretto della torre\",116 => \"Albavilla\",117 => \"Albenga\",118 => \"Albera ligure\",119 => \"Alberobello\",120 => \"Alberona\",121 => \"Albese con Cassano\",122 => \"Albettone\",123 => \"Albi\",124 => \"Albiano\",125 => \"Albiano d'ivrea\",126 => \"Albiate\",127 => \"Albidona\",128 => \"Albignasego\",129 => \"Albinea\",130 => \"Albino\",131 => \"Albiolo\",132 => \"Albisola marina\",133 => \"Albisola superiore\",134 => \"Albizzate\",135 => \"Albonese\",136 => \"Albosaggia\",137 => \"Albugnano\",138 => \"Albuzzano\",139 => \"Alcamo\",140 => \"Alcara li Fusi\",141 => \"Aldeno\",142 => \"Aldino\",143 => \"Ales\",144 => \"Alessandria\",145 => \"Alessandria del Carretto\",146 => \"Alessandria della Rocca\",147 => \"Alessano\",148 => \"Alezio\",149 => \"Alfano\",150 => \"Alfedena\",151 => \"Alfianello\",152 => \"Alfiano natta\",153 => \"Alfonsine\",154 => \"Alghero\",8532 => \"Alghero Fertilia\",155 => \"Algua\",156 => \"Ali'\",157 => \"Ali' terme\",158 => \"Alia\",159 => \"Aliano\",160 => \"Alice bel colle\",161 => \"Alice castello\",162 => \"Alice superiore\",163 => \"Alife\",164 => \"Alimena\",165 => \"Aliminusa\",166 => \"Allai\",167 => \"Alleghe\",168 => \"Allein\",169 => \"Allerona\",170 => \"Alliste\",171 => \"Allumiere\",172 => \"Alluvioni cambio'\",173 => \"Alme'\",174 => \"Almenno San Bartolomeo\",175 => \"Almenno San Salvatore\",176 => \"Almese\",177 => \"Alonte\",8259 => \"Alpe Cermis\",8557 => \"Alpe Devero\",8162 => \"Alpe di Mera\",8565 => \"Alpe di Siusi\",8755 => \"Alpe Giumello\",8264 => \"Alpe Lusia\",8559 => \"Alpe Nevegal\",8239 => \"Alpe Tre Potenze\",8558 => \"Alpe Veglia\",8482 => \"Alpet\",178 => \"Alpette\",179 => \"Alpignano\",180 => \"Alseno\",181 => \"Alserio\",182 => \"Altamura\",8474 => \"Altare\",184 => \"Altavilla irpina\",185 => \"Altavilla milicia\",186 => \"Altavilla monferrato\",187 => \"Altavilla silentina\",188 => \"Altavilla vicentina\",189 => \"Altidona\",190 => \"Altilia\",191 => \"Altino\",192 => \"Altissimo\",193 => \"Altivole\",194 => \"Alto\",195 => \"Altofonte\",196 => \"Altomonte\",197 => \"Altopascio\",8536 => \"Altopiano dei Fiorentini\",8662 => \"Altopiano della Sila\",8640 => \"Altopiano di Renon\",198 => \"Alviano\",199 => \"Alvignano\",200 => \"Alvito\",201 => \"Alzano lombardo\",202 => \"Alzano scrivia\",203 => \"Alzate brianza\",204 => \"Amalfi\",205 => \"Amandola\",206 => \"Amantea\",207 => \"Amaro\",208 => \"Amaroni\",209 => \"Amaseno\",210 => \"Amato\",211 => \"Amatrice\",212 => \"Ambivere\",213 => \"Amblar\",214 => \"Ameglia\",215 => \"Amelia\",216 => \"Amendolara\",217 => \"Ameno\",218 => \"Amorosi\",219 => \"Ampezzo\",220 => \"Anacapri\",221 => \"Anagni\",8463 => \"Anagni casello\",222 => \"Ancarano\",223 => \"Ancona\",8267 => \"Ancona Falconara\",224 => \"Andali\",225 => \"Andalo\",226 => \"Andalo valtellino\",227 => \"Andezeno\",228 => \"Andora\",229 => \"Andorno micca\",230 => \"Andrano\",231 => \"Andrate\",232 => \"Andreis\",233 => \"Andretta\",234 => \"Andria\",235 => \"Andriano\",236 => \"Anela\",237 => \"Anfo\",238 => \"Angera\",239 => \"Anghiari\",240 => \"Angiari\",241 => \"Angolo terme\",242 => \"Angri\",243 => \"Angrogna\",244 => \"Anguillara sabazia\",245 => \"Anguillara veneta\",246 => \"Annicco\",247 => \"Annone di brianza\",248 => \"Annone veneto\",249 => \"Anoia\",8302 => \"Antagnod\",250 => \"Antegnate\",251 => \"Anterivo\",8211 => \"Anterselva di Sopra\",252 => \"Antey saint andre'\",253 => \"Anticoli Corrado\",254 => \"Antignano\",255 => \"Antillo\",256 => \"Antonimina\",257 => \"Antrodoco\",258 => \"Antrona Schieranco\",259 => \"Anversa degli Abruzzi\",260 => \"Anzano del Parco\",261 => \"Anzano di Puglia\",8400 => \"Anzi\",263 => \"Anzio\",264 => \"Anzola d'Ossola\",265 => \"Anzola dell'Emilia\",266 => \"Aosta\",8548 => \"Aosta Saint Christophe\",267 => \"Apecchio\",268 => \"Apice\",269 => \"Apiro\",270 => \"Apollosa\",271 => \"Appiano Gentile\",272 => \"Appiano sulla strada del vino\",273 => \"Appignano\",274 => \"Appignano del Tronto\",275 => \"Aprica\",276 => \"Apricale\",277 => \"Apricena\",278 => \"Aprigliano\",279 => \"Aprilia\",280 => \"Aquara\",281 => \"Aquila di Arroscia\",282 => \"Aquileia\",283 => \"Aquilonia\",284 => \"Aquino\",8228 => \"Arabba\",285 => \"Aradeo\",286 => \"Aragona\",287 => \"Aramengo\",288 => \"Arba\",8487 => \"Arbatax\",289 => \"Arborea\",290 => \"Arborio\",291 => \"Arbus\",292 => \"Arcade\",293 => \"Arce\",294 => \"Arcene\",295 => \"Arcevia\",296 => \"Archi\",297 => \"Arcidosso\",298 => \"Arcinazzo romano\",299 => \"Arcisate\",300 => \"Arco\",301 => \"Arcola\",302 => \"Arcole\",303 => \"Arconate\",304 => \"Arcore\",305 => \"Arcugnano\",306 => \"Ardara\",307 => \"Ardauli\",308 => \"Ardea\",309 => \"Ardenno\",310 => \"Ardesio\",311 => \"Ardore\",8675 => \"Ardore Marina\",8321 => \"Aremogna\",312 => \"Arena\",313 => \"Arena po\",314 => \"Arenzano\",315 => \"Arese\",316 => \"Arezzo\",317 => \"Argegno\",318 => \"Argelato\",319 => \"Argenta\",320 => \"Argentera\",321 => \"Arguello\",322 => \"Argusto\",323 => \"Ari\",324 => \"Ariano irpino\",325 => \"Ariano nel polesine\",326 => \"Ariccia\",327 => \"Arielli\",328 => \"Arienzo\",329 => \"Arignano\",330 => \"Aritzo\",331 => \"Arizzano\",332 => \"Arlena di castro\",333 => \"Arluno\",8677 => \"Arma di Taggia\",334 => \"Armeno\",8405 => \"Armento\",336 => \"Armo\",337 => \"Armungia\",338 => \"Arnad\",339 => \"Arnara\",340 => \"Arnasco\",341 => \"Arnesano\",342 => \"Arola\",343 => \"Arona\",344 => \"Arosio\",345 => \"Arpaia\",346 => \"Arpaise\",347 => \"Arpino\",348 => \"Arqua' Petrarca\",349 => \"Arqua' polesine\",350 => \"Arquata del tronto\",351 => \"Arquata scrivia\",352 => \"Arre\",353 => \"Arrone\",354 => \"Arsago Seprio\",355 => \"Arsie'\",356 => \"Arsiero\",357 => \"Arsita\",358 => \"Arsoli\",359 => \"Arta terme\",360 => \"Artegna\",361 => \"Artena\",8338 => \"Artesina\",362 => \"Artogne\",363 => \"Arvier\",364 => \"Arzachena\",365 => \"Arzago d'Adda\",366 => \"Arzana\",367 => \"Arzano\",368 => \"Arzene\",369 => \"Arzergrande\",370 => \"Arzignano\",371 => \"Ascea\",8513 => \"Asciano\",8198 => \"Asciano Pisano\",373 => \"Ascoli piceno\",374 => \"Ascoli satriano\",375 => \"Ascrea\",376 => \"Asiago\",377 => \"Asigliano Veneto\",378 => \"Asigliano vercellese\",379 => \"Asola\",380 => \"Asolo\",8438 => \"Aspio terme\",381 => \"Assago\",382 => \"Assemini\",8488 => \"Assergi\",8448 => \"Assergi casello\",383 => \"Assisi\",384 => \"Asso\",385 => \"Assolo\",386 => \"Assoro\",387 => \"Asti\",388 => \"Asuni\",389 => \"Ateleta\",8383 => \"Atella\",391 => \"Atena lucana\",392 => \"Atessa\",393 => \"Atina\",394 => \"Atrani\",395 => \"Atri\",396 => \"Atripalda\",397 => \"Attigliano\",398 => \"Attimis\",399 => \"Atzara\",400 => \"Auditore\",401 => \"Augusta\",402 => \"Auletta\",403 => \"Aulla\",404 => \"Aurano\",405 => \"Aurigo\",406 => \"Auronzo di cadore\",407 => \"Ausonia\",408 => \"Austis\",409 => \"Avegno\",410 => \"Avelengo\",411 => \"Avella\",412 => \"Avellino\",413 => \"Averara\",414 => \"Aversa\",415 => \"Avetrana\",416 => \"Avezzano\",417 => \"Aviano\",418 => \"Aviatico\",419 => \"Avigliana\",420 => \"Avigliano\",421 => \"Avigliano umbro\",422 => \"Avio\",423 => \"Avise\",424 => \"Avola\",425 => \"Avolasca\",426 => \"Ayas\",427 => \"Aymavilles\",428 => \"Azeglio\",429 => \"Azzanello\",430 => \"Azzano d'Asti\",431 => \"Azzano decimo\",432 => \"Azzano mella\",433 => \"Azzano San Paolo\",434 => \"Azzate\",435 => \"Azzio\",436 => \"Azzone\",437 => \"Baceno\",438 => \"Bacoli\",439 => \"Badalucco\",440 => \"Badesi\",441 => \"Badia\",442 => \"Badia calavena\",443 => \"Badia pavese\",444 => \"Badia polesine\",445 => \"Badia tedalda\",446 => \"Badolato\",447 => \"Bagaladi\",448 => \"Bagheria\",449 => \"Bagnacavallo\",450 => \"Bagnara calabra\",451 => \"Bagnara di romagna\",452 => \"Bagnaria\",453 => \"Bagnaria arsa\",454 => \"Bagnasco\",455 => \"Bagnatica\",456 => \"Bagni di Lucca\",8699 => \"Bagni di Vinadio\",457 => \"Bagno a Ripoli\",458 => \"Bagno di Romagna\",459 => \"Bagnoli del Trigno\",460 => \"Bagnoli di sopra\",461 => \"Bagnoli irpino\",462 => \"Bagnolo cremasco\",463 => \"Bagnolo del salento\",464 => \"Bagnolo di po\",465 => \"Bagnolo in piano\",466 => \"Bagnolo Mella\",467 => \"Bagnolo Piemonte\",468 => \"Bagnolo San Vito\",469 => \"Bagnone\",470 => \"Bagnoregio\",471 => \"Bagolino\",8123 => \"Baia Domizia\",472 => \"Baia e Latina\",473 => \"Baiano\",474 => \"Baiardo\",475 => \"Bairo\",476 => \"Baiso\",477 => \"Balangero\",478 => \"Baldichieri d'Asti\",479 => \"Baldissero canavese\",480 => \"Baldissero d'Alba\",481 => \"Baldissero torinese\",482 => \"Balestrate\",483 => \"Balestrino\",484 => \"Ballabio\",485 => \"Ballao\",486 => \"Balme\",487 => \"Balmuccia\",488 => \"Balocco\",489 => \"Balsorano\",490 => \"Balvano\",491 => \"Balzola\",492 => \"Banari\",493 => \"Banchette\",494 => \"Bannio anzino\",8368 => \"Banzi\",496 => \"Baone\",497 => \"Baradili\",8415 => \"Baragiano\",499 => \"Baranello\",500 => \"Barano d'Ischia\",501 => \"Barasso\",502 => \"Baratili San Pietro\",503 => \"Barbania\",504 => \"Barbara\",505 => \"Barbarano romano\",506 => \"Barbarano vicentino\",507 => \"Barbaresco\",508 => \"Barbariga\",509 => \"Barbata\",510 => \"Barberino di mugello\",511 => \"Barberino val d'elsa\",512 => \"Barbianello\",513 => \"Barbiano\",514 => \"Barbona\",515 => \"Barcellona pozzo di Gotto\",516 => \"Barchi\",517 => \"Barcis\",518 => \"Bard\",519 => \"Bardello\",520 => \"Bardi\",521 => \"Bardineto\",522 => \"Bardolino\",523 => \"Bardonecchia\",524 => \"Bareggio\",525 => \"Barengo\",526 => \"Baressa\",527 => \"Barete\",528 => \"Barga\",529 => \"Bargagli\",530 => \"Barge\",531 => \"Barghe\",532 => \"Bari\",8274 => \"Bari Palese\",533 => \"Bari sardo\",534 => \"Bariano\",535 => \"Baricella\",8402 => \"Barile\",537 => \"Barisciano\",538 => \"Barlassina\",539 => \"Barletta\",540 => \"Barni\",541 => \"Barolo\",542 => \"Barone canavese\",543 => \"Baronissi\",544 => \"Barrafranca\",545 => \"Barrali\",546 => \"Barrea\",8745 => \"Barricata\",547 => \"Barumini\",548 => \"Barzago\",549 => \"Barzana\",550 => \"Barzano'\",551 => \"Barzio\",552 => \"Basaluzzo\",553 => \"Bascape'\",554 => \"Baschi\",555 => \"Basciano\",556 => \"Baselga di Pine'\",557 => \"Baselice\",558 => \"Basiano\",559 => \"Basico'\",560 => \"Basiglio\",561 => \"Basiliano\",562 => \"Bassano bresciano\",563 => \"Bassano del grappa\",564 => \"Bassano in teverina\",565 => \"Bassano romano\",566 => \"Bassiano\",567 => \"Bassignana\",568 => \"Bastia\",569 => \"Bastia mondovi'\",570 => \"Bastida de' Dossi\",571 => \"Bastida pancarana\",572 => \"Bastiglia\",573 => \"Battaglia terme\",574 => \"Battifollo\",575 => \"Battipaglia\",576 => \"Battuda\",577 => \"Baucina\",578 => \"Bauladu\",579 => \"Baunei\",580 => \"Baveno\",581 => \"Bazzano\",582 => \"Bedero valcuvia\",583 => \"Bedizzole\",584 => \"Bedollo\",585 => \"Bedonia\",586 => \"Bedulita\",587 => \"Bee\",588 => \"Beinasco\",589 => \"Beinette\",590 => \"Belcastro\",591 => \"Belfiore\",592 => \"Belforte all'Isauro\",593 => \"Belforte del chienti\",594 => \"Belforte monferrato\",595 => \"Belgioioso\",596 => \"Belgirate\",597 => \"Bella\",598 => \"Bellagio\",8263 => \"Bellamonte\",599 => \"Bellano\",600 => \"Bellante\",601 => \"Bellaria Igea marina\",602 => \"Bellegra\",603 => \"Bellino\",604 => \"Bellinzago lombardo\",605 => \"Bellinzago novarese\",606 => \"Bellizzi\",607 => \"Bellona\",608 => \"Bellosguardo\",609 => \"Belluno\",610 => \"Bellusco\",611 => \"Belmonte calabro\",612 => \"Belmonte castello\",613 => \"Belmonte del sannio\",614 => \"Belmonte in sabina\",615 => \"Belmonte mezzagno\",616 => \"Belmonte piceno\",617 => \"Belpasso\",8573 => \"Belpiano Schoeneben\",618 => \"Belsito\",8265 => \"Belvedere\",619 => \"Belvedere di Spinello\",620 => \"Belvedere langhe\",621 => \"Belvedere marittimo\",622 => \"Belvedere ostrense\",623 => \"Belveglio\",624 => \"Belvi\",625 => \"Bema\",626 => \"Bene lario\",627 => \"Bene vagienna\",628 => \"Benestare\",629 => \"Benetutti\",630 => \"Benevello\",631 => \"Benevento\",632 => \"Benna\",633 => \"Bentivoglio\",634 => \"Berbenno\",635 => \"Berbenno di valtellina\",636 => \"Berceto\",637 => \"Berchidda\",638 => \"Beregazzo con Figliaro\",639 => \"Bereguardo\",640 => \"Bergamasco\",641 => \"Bergamo\",8519 => \"Bergamo città alta\",8497 => \"Bergamo Orio al Serio\",642 => \"Bergantino\",643 => \"Bergeggi\",644 => \"Bergolo\",645 => \"Berlingo\",646 => \"Bernalda\",647 => \"Bernareggio\",648 => \"Bernate ticino\",649 => \"Bernezzo\",650 => \"Berra\",651 => \"Bersone\",652 => \"Bertinoro\",653 => \"Bertiolo\",654 => \"Bertonico\",655 => \"Berzano di San Pietro\",656 => \"Berzano di Tortona\",657 => \"Berzo Demo\",658 => \"Berzo inferiore\",659 => \"Berzo San Fermo\",660 => \"Besana in brianza\",661 => \"Besano\",662 => \"Besate\",663 => \"Besenello\",664 => \"Besenzone\",665 => \"Besnate\",666 => \"Besozzo\",667 => \"Bessude\",668 => \"Bettola\",669 => \"Bettona\",670 => \"Beura Cardezza\",671 => \"Bevagna\",672 => \"Beverino\",673 => \"Bevilacqua\",674 => \"Bezzecca\",675 => \"Biancavilla\",676 => \"Bianchi\",677 => \"Bianco\",678 => \"Biandrate\",679 => \"Biandronno\",680 => \"Bianzano\",681 => \"Bianze'\",682 => \"Bianzone\",683 => \"Biassono\",684 => \"Bibbiano\",685 => \"Bibbiena\",686 => \"Bibbona\",687 => \"Bibiana\",8230 => \"Bibione\",688 => \"Biccari\",689 => \"Bicinicco\",690 => \"Bidoni'\",691 => \"Biella\",8163 => \"Bielmonte\",692 => \"Bienno\",693 => \"Bieno\",694 => \"Bientina\",695 => \"Bigarello\",696 => \"Binago\",697 => \"Binasco\",698 => \"Binetto\",699 => \"Bioglio\",700 => \"Bionaz\",701 => \"Bione\",702 => \"Birori\",703 => \"Bisaccia\",704 => \"Bisacquino\",705 => \"Bisceglie\",706 => \"Bisegna\",707 => \"Bisenti\",708 => \"Bisignano\",709 => \"Bistagno\",710 => \"Bisuschio\",711 => \"Bitetto\",712 => \"Bitonto\",713 => \"Bitritto\",714 => \"Bitti\",715 => \"Bivona\",716 => \"Bivongi\",717 => \"Bizzarone\",718 => \"Bleggio inferiore\",719 => \"Bleggio superiore\",720 => \"Blello\",721 => \"Blera\",722 => \"Blessagno\",723 => \"Blevio\",724 => \"Blufi\",725 => \"Boara Pisani\",726 => \"Bobbio\",727 => \"Bobbio Pellice\",728 => \"Boca\",8501 => \"Bocca di Magra\",729 => \"Bocchigliero\",730 => \"Boccioleto\",731 => \"Bocenago\",732 => \"Bodio Lomnago\",733 => \"Boffalora d'Adda\",734 => \"Boffalora sopra Ticino\",735 => \"Bogliasco\",736 => \"Bognanco\",8287 => \"Bognanco fonti\",737 => \"Bogogno\",738 => \"Boissano\",739 => \"Bojano\",740 => \"Bolano\",741 => \"Bolbeno\",742 => \"Bolgare\",743 => \"Bollate\",744 => \"Bollengo\",745 => \"Bologna\",8476 => \"Bologna Borgo Panigale\",746 => \"Bolognano\",747 => \"Bolognetta\",748 => \"Bolognola\",749 => \"Bolotana\",750 => \"Bolsena\",751 => \"Boltiere\",8505 => \"Bolzaneto\",752 => \"Bolzano\",753 => \"Bolzano novarese\",754 => \"Bolzano vicentino\",755 => \"Bomarzo\",756 => \"Bomba\",757 => \"Bompensiere\",758 => \"Bompietro\",759 => \"Bomporto\",760 => \"Bonarcado\",761 => \"Bonassola\",762 => \"Bonate sopra\",763 => \"Bonate sotto\",764 => \"Bonavigo\",765 => \"Bondeno\",766 => \"Bondo\",767 => \"Bondone\",768 => \"Bonea\",769 => \"Bonefro\",770 => \"Bonemerse\",771 => \"Bonifati\",772 => \"Bonito\",773 => \"Bonnanaro\",774 => \"Bono\",775 => \"Bonorva\",776 => \"Bonvicino\",777 => \"Borbona\",778 => \"Borca di cadore\",779 => \"Bordano\",780 => \"Bordighera\",781 => \"Bordolano\",782 => \"Bore\",783 => \"Boretto\",784 => \"Borgarello\",785 => \"Borgaro torinese\",786 => \"Borgetto\",787 => \"Borghetto d'arroscia\",788 => \"Borghetto di borbera\",789 => \"Borghetto di vara\",790 => \"Borghetto lodigiano\",791 => \"Borghetto Santo Spirito\",792 => \"Borghi\",793 => \"Borgia\",794 => \"Borgiallo\",795 => \"Borgio Verezzi\",796 => \"Borgo a Mozzano\",797 => \"Borgo d'Ale\",798 => \"Borgo di Terzo\",8159 => \"Borgo d`Ale\",799 => \"Borgo Pace\",800 => \"Borgo Priolo\",801 => \"Borgo San Dalmazzo\",802 => \"Borgo San Giacomo\",803 => \"Borgo San Giovanni\",804 => \"Borgo San Lorenzo\",805 => \"Borgo San Martino\",806 => \"Borgo San Siro\",807 => \"Borgo Ticino\",808 => \"Borgo Tossignano\",809 => \"Borgo Val di Taro\",810 => \"Borgo Valsugana\",811 => \"Borgo Velino\",812 => \"Borgo Vercelli\",813 => \"Borgoforte\",814 => \"Borgofranco d'Ivrea\",815 => \"Borgofranco sul Po\",816 => \"Borgolavezzaro\",817 => \"Borgomale\",818 => \"Borgomanero\",819 => \"Borgomaro\",820 => \"Borgomasino\",821 => \"Borgone susa\",822 => \"Borgonovo val tidone\",823 => \"Borgoratto alessandrino\",824 => \"Borgoratto mormorolo\",825 => \"Borgoricco\",826 => \"Borgorose\",827 => \"Borgosatollo\",828 => \"Borgosesia\",829 => \"Bormida\",830 => \"Bormio\",8334 => \"Bormio 2000\",8335 => \"Bormio 3000\",831 => \"Bornasco\",832 => \"Borno\",833 => \"Boroneddu\",834 => \"Borore\",835 => \"Borrello\",836 => \"Borriana\",837 => \"Borso del Grappa\",838 => \"Bortigali\",839 => \"Bortigiadas\",840 => \"Borutta\",841 => \"Borzonasca\",842 => \"Bosa\",843 => \"Bosaro\",844 => \"Boschi Sant'Anna\",845 => \"Bosco Chiesanuova\",846 => \"Bosco Marengo\",847 => \"Bosconero\",848 => \"Boscoreale\",849 => \"Boscotrecase\",850 => \"Bosentino\",851 => \"Bosia\",852 => \"Bosio\",853 => \"Bosisio Parini\",854 => \"Bosnasco\",855 => \"Bossico\",856 => \"Bossolasco\",857 => \"Botricello\",858 => \"Botrugno\",859 => \"Bottanuco\",860 => \"Botticino\",861 => \"Bottidda\",8655 => \"Bourg San Bernard\",862 => \"Bova\",863 => \"Bova marina\",864 => \"Bovalino\",865 => \"Bovegno\",866 => \"Boves\",867 => \"Bovezzo\",868 => \"Boville Ernica\",869 => \"Bovino\",870 => \"Bovisio Masciago\",871 => \"Bovolenta\",872 => \"Bovolone\",873 => \"Bozzole\",874 => \"Bozzolo\",875 => \"Bra\",876 => \"Bracca\",877 => \"Bracciano\",878 => \"Bracigliano\",879 => \"Braies\",880 => \"Brallo di Pregola\",881 => \"Brancaleone\",882 => \"Brandico\",883 => \"Brandizzo\",884 => \"Branzi\",885 => \"Braone\",8740 => \"Bratto\",886 => \"Brebbia\",887 => \"Breda di Piave\",888 => \"Bregano\",889 => \"Breganze\",890 => \"Bregnano\",891 => \"Breguzzo\",892 => \"Breia\",8724 => \"Breithorn\",893 => \"Brembate\",894 => \"Brembate di sopra\",895 => \"Brembilla\",896 => \"Brembio\",897 => \"Breme\",898 => \"Brendola\",899 => \"Brenna\",900 => \"Brennero\",901 => \"Breno\",902 => \"Brenta\",903 => \"Brentino Belluno\",904 => \"Brentonico\",905 => \"Brenzone\",906 => \"Brescello\",907 => \"Brescia\",8547 => \"Brescia Montichiari\",908 => \"Bresimo\",909 => \"Bressana Bottarone\",910 => \"Bressanone\",911 => \"Bressanvido\",912 => \"Bresso\",8226 => \"Breuil-Cervinia\",913 => \"Brez\",914 => \"Brezzo di Bedero\",915 => \"Briaglia\",916 => \"Briatico\",917 => \"Bricherasio\",918 => \"Brienno\",919 => \"Brienza\",920 => \"Briga alta\",921 => \"Briga novarese\",923 => \"Brignano Frascata\",922 => \"Brignano Gera d'Adda\",924 => \"Brindisi\",8358 => \"Brindisi montagna\",8549 => \"Brindisi Papola Casale\",926 => \"Brinzio\",927 => \"Briona\",928 => \"Brione\",929 => \"Brione\",930 => \"Briosco\",931 => \"Brisighella\",932 => \"Brissago valtravaglia\",933 => \"Brissogne\",934 => \"Brittoli\",935 => \"Brivio\",936 => \"Broccostella\",937 => \"Brogliano\",938 => \"Brognaturo\",939 => \"Brolo\",940 => \"Brondello\",941 => \"Broni\",942 => \"Bronte\",943 => \"Bronzolo\",944 => \"Brossasco\",945 => \"Brosso\",946 => \"Brovello Carpugnino\",947 => \"Brozolo\",948 => \"Brugherio\",949 => \"Brugine\",950 => \"Brugnato\",951 => \"Brugnera\",952 => \"Bruino\",953 => \"Brumano\",954 => \"Brunate\",955 => \"Brunello\",956 => \"Brunico\",957 => \"Bruno\",958 => \"Brusaporto\",959 => \"Brusasco\",960 => \"Brusciano\",961 => \"Brusimpiano\",962 => \"Brusnengo\",963 => \"Brusson\",8645 => \"Brusson 2000 Estoul\",964 => \"Bruzolo\",965 => \"Bruzzano Zeffirio\",966 => \"Bubbiano\",967 => \"Bubbio\",968 => \"Buccheri\",969 => \"Bucchianico\",970 => \"Bucciano\",971 => \"Buccinasco\",972 => \"Buccino\",973 => \"Bucine\",974 => \"Budduso'\",975 => \"Budoia\",976 => \"Budoni\",977 => \"Budrio\",978 => \"Buggerru\",979 => \"Buggiano\",980 => \"Buglio in Monte\",981 => \"Bugnara\",982 => \"Buguggiate\",983 => \"Buia\",984 => \"Bulciago\",985 => \"Bulgarograsso\",986 => \"Bultei\",987 => \"Bulzi\",988 => \"Buonabitacolo\",989 => \"Buonalbergo\",990 => \"Buonconvento\",991 => \"Buonvicino\",992 => \"Burago di Molgora\",993 => \"Burcei\",994 => \"Burgio\",995 => \"Burgos\",996 => \"Buriasco\",997 => \"Burolo\",998 => \"Buronzo\",8483 => \"Burrino\",999 => \"Busachi\",1000 => \"Busalla\",1001 => \"Busana\",1002 => \"Busano\",1003 => \"Busca\",1004 => \"Buscate\",1005 => \"Buscemi\",1006 => \"Buseto Palizzolo\",1007 => \"Busnago\",1008 => \"Bussero\",1009 => \"Busseto\",1010 => \"Bussi sul Tirino\",1011 => \"Busso\",1012 => \"Bussolengo\",1013 => \"Bussoleno\",1014 => \"Busto Arsizio\",1015 => \"Busto Garolfo\",1016 => \"Butera\",1017 => \"Buti\",1018 => \"Buttapietra\",1019 => \"Buttigliera alta\",1020 => \"Buttigliera d'Asti\",1021 => \"Buttrio\",1022 => \"Ca' d'Andrea\",1023 => \"Cabella ligure\",1024 => \"Cabiate\",1025 => \"Cabras\",1026 => \"Caccamo\",1027 => \"Caccuri\",1028 => \"Cadegliano Viconago\",1029 => \"Cadelbosco di sopra\",1030 => \"Cadeo\",1031 => \"Caderzone\",8566 => \"Cadipietra\",1032 => \"Cadoneghe\",1033 => \"Cadorago\",1034 => \"Cadrezzate\",1035 => \"Caerano di San Marco\",1036 => \"Cafasse\",1037 => \"Caggiano\",1038 => \"Cagli\",1039 => \"Cagliari\",8500 => \"Cagliari Elmas\",1040 => \"Caglio\",1041 => \"Cagnano Amiterno\",1042 => \"Cagnano Varano\",1043 => \"Cagno\",1044 => \"Cagno'\",1045 => \"Caianello\",1046 => \"Caiazzo\",1047 => \"Caines\",1048 => \"Caino\",1049 => \"Caiolo\",1050 => \"Cairano\",1051 => \"Cairate\",1052 => \"Cairo Montenotte\",1053 => \"Caivano\",8168 => \"Cala Gonone\",1054 => \"Calabritto\",1055 => \"Calalzo di cadore\",1056 => \"Calamandrana\",1057 => \"Calamonaci\",1058 => \"Calangianus\",1059 => \"Calanna\",1060 => \"Calasca Castiglione\",1061 => \"Calascibetta\",1062 => \"Calascio\",1063 => \"Calasetta\",1064 => \"Calatabiano\",1065 => \"Calatafimi\",1066 => \"Calavino\",1067 => \"Calcata\",1068 => \"Calceranica al lago\",1069 => \"Calci\",8424 => \"Calciano\",1071 => \"Calcinaia\",1072 => \"Calcinate\",1073 => \"Calcinato\",1074 => \"Calcio\",1075 => \"Calco\",1076 => \"Caldaro sulla strada del vino\",1077 => \"Caldarola\",1078 => \"Calderara di Reno\",1079 => \"Caldes\",1080 => \"Caldiero\",1081 => \"Caldogno\",1082 => \"Caldonazzo\",1083 => \"Calendasco\",8614 => \"Calenella\",1084 => \"Calenzano\",1085 => \"Calestano\",1086 => \"Calice al Cornoviglio\",1087 => \"Calice ligure\",8692 => \"California di Lesmo\",1088 => \"Calimera\",1089 => \"Calitri\",1090 => \"Calizzano\",1091 => \"Callabiana\",1092 => \"Calliano\",1093 => \"Calliano\",1094 => \"Calolziocorte\",1095 => \"Calopezzati\",1096 => \"Calosso\",1097 => \"Caloveto\",1098 => \"Caltabellotta\",1099 => \"Caltagirone\",1100 => \"Caltanissetta\",1101 => \"Caltavuturo\",1102 => \"Caltignaga\",1103 => \"Calto\",1104 => \"Caltrano\",1105 => \"Calusco d'Adda\",1106 => \"Caluso\",1107 => \"Calvagese della Riviera\",1108 => \"Calvanico\",1109 => \"Calvatone\",8406 => \"Calvello\",1111 => \"Calvene\",1112 => \"Calvenzano\",8373 => \"Calvera\",1114 => \"Calvi\",1115 => \"Calvi dell'Umbria\",1116 => \"Calvi risorta\",1117 => \"Calvignano\",1118 => \"Calvignasco\",1119 => \"Calvisano\",1120 => \"Calvizzano\",1121 => \"Camagna monferrato\",1122 => \"Camaiore\",1123 => \"Camairago\",1124 => \"Camandona\",1125 => \"Camastra\",1126 => \"Cambiago\",1127 => \"Cambiano\",1128 => \"Cambiasca\",1129 => \"Camburzano\",1130 => \"Camerana\",1131 => \"Camerano\",1132 => \"Camerano Casasco\",1133 => \"Camerata Cornello\",1134 => \"Camerata Nuova\",1135 => \"Camerata picena\",1136 => \"Cameri\",1137 => \"Camerino\",1138 => \"Camerota\",1139 => \"Camigliano\",8119 => \"Camigliatello silano\",1140 => \"Caminata\",1141 => \"Camini\",1142 => \"Camino\",1143 => \"Camino al Tagliamento\",1144 => \"Camisano\",1145 => \"Camisano vicentino\",1146 => \"Cammarata\",1147 => \"Camo\",1148 => \"Camogli\",1149 => \"Campagna\",1150 => \"Campagna Lupia\",1151 => \"Campagnano di Roma\",1152 => \"Campagnatico\",1153 => \"Campagnola cremasca\",1154 => \"Campagnola emilia\",1155 => \"Campana\",1156 => \"Camparada\",1157 => \"Campegine\",1158 => \"Campello sul Clitunno\",1159 => \"Campertogno\",1160 => \"Campi Bisenzio\",1161 => \"Campi salentina\",1162 => \"Campiglia cervo\",1163 => \"Campiglia dei Berici\",1164 => \"Campiglia marittima\",1165 => \"Campiglione Fenile\",8127 => \"Campigna\",1166 => \"Campione d'Italia\",1167 => \"Campitello di Fassa\",8155 => \"Campitello matese\",1168 => \"Campli\",1169 => \"Campo calabro\",8754 => \"Campo Carlo Magno\",8134 => \"Campo Catino\",8610 => \"Campo Cecina\",1170 => \"Campo di Giove\",1171 => \"Campo di Trens\",8345 => \"Campo Felice\",8101 => \"Campo imperatore\",1172 => \"Campo ligure\",1173 => \"Campo nell'Elba\",1174 => \"Campo San Martino\",8135 => \"Campo Staffi\",8644 => \"Campo Tenese\",1175 => \"Campo Tures\",1176 => \"Campobasso\",1177 => \"Campobello di Licata\",1178 => \"Campobello di Mazara\",1179 => \"Campochiaro\",1180 => \"Campodarsego\",1181 => \"Campodenno\",8357 => \"Campodimele\",1183 => \"Campodipietra\",1184 => \"Campodolcino\",1185 => \"Campodoro\",1186 => \"Campofelice di Fitalia\",1187 => \"Campofelice di Roccella\",1188 => \"Campofilone\",1189 => \"Campofiorito\",1190 => \"Campoformido\",1191 => \"Campofranco\",1192 => \"Campogalliano\",1193 => \"Campolattaro\",1194 => \"Campoli Appennino\",1195 => \"Campoli del Monte Taburno\",1196 => \"Campolieto\",1197 => \"Campolongo al Torre\",1198 => \"Campolongo Maggiore\",1199 => \"Campolongo sul Brenta\",8391 => \"Campomaggiore\",1201 => \"Campomarino\",1202 => \"Campomorone\",1203 => \"Camponogara\",1204 => \"Campora\",1205 => \"Camporeale\",1206 => \"Camporgiano\",1207 => \"Camporosso\",1208 => \"Camporotondo di Fiastrone\",1209 => \"Camporotondo etneo\",1210 => \"Camposampiero\",1211 => \"Camposano\",1212 => \"Camposanto\",1213 => \"Campospinoso\",1214 => \"Campotosto\",1215 => \"Camugnano\",1216 => \"Canal San Bovo\",1217 => \"Canale\",1218 => \"Canale d'Agordo\",1219 => \"Canale Monterano\",1220 => \"Canaro\",1221 => \"Canazei\",8407 => \"Cancellara\",1223 => \"Cancello ed Arnone\",1224 => \"Canda\",1225 => \"Candela\",8468 => \"Candela casello\",1226 => \"Candelo\",1227 => \"Candia canavese\",1228 => \"Candia lomellina\",1229 => \"Candiana\",1230 => \"Candida\",1231 => \"Candidoni\",1232 => \"Candiolo\",1233 => \"Canegrate\",1234 => \"Canelli\",1235 => \"Canepina\",1236 => \"Caneva\",8562 => \"Canevare di Fanano\",1237 => \"Canevino\",1238 => \"Canicatti'\",1239 => \"Canicattini Bagni\",1240 => \"Canino\",1241 => \"Canischio\",1242 => \"Canistro\",1243 => \"Canna\",1244 => \"Cannalonga\",1245 => \"Cannara\",1246 => \"Cannero riviera\",1247 => \"Canneto pavese\",1248 => \"Canneto sull'Oglio\",8588 => \"Cannigione\",1249 => \"Cannobio\",1250 => \"Cannole\",1251 => \"Canolo\",1252 => \"Canonica d'Adda\",1253 => \"Canosa di Puglia\",1254 => \"Canosa sannita\",1255 => \"Canosio\",1256 => \"Canossa\",1257 => \"Cansano\",1258 => \"Cantagallo\",1259 => \"Cantalice\",1260 => \"Cantalupa\",1261 => \"Cantalupo in Sabina\",1262 => \"Cantalupo ligure\",1263 => \"Cantalupo nel Sannio\",1264 => \"Cantarana\",1265 => \"Cantello\",1266 => \"Canterano\",1267 => \"Cantiano\",1268 => \"Cantoira\",1269 => \"Cantu'\",1270 => \"Canzano\",1271 => \"Canzo\",1272 => \"Caorle\",1273 => \"Caorso\",1274 => \"Capaccio\",1275 => \"Capaci\",1276 => \"Capalbio\",8242 => \"Capanna Margherita\",8297 => \"Capanne di Sillano\",1277 => \"Capannoli\",1278 => \"Capannori\",1279 => \"Capena\",1280 => \"Capergnanica\",1281 => \"Capestrano\",1282 => \"Capiago Intimiano\",1283 => \"Capistrano\",1284 => \"Capistrello\",1285 => \"Capitignano\",1286 => \"Capizzi\",1287 => \"Capizzone\",8609 => \"Capo Bellavista\",8113 => \"Capo Colonna\",1288 => \"Capo d'Orlando\",1289 => \"Capo di Ponte\",8676 => \"Capo Mele\",8607 => \"Capo Palinuro\",8112 => \"Capo Rizzuto\",1290 => \"Capodimonte\",1291 => \"Capodrise\",1292 => \"Capoliveri\",1293 => \"Capolona\",1294 => \"Caponago\",1295 => \"Caporciano\",1296 => \"Caposele\",1297 => \"Capoterra\",1298 => \"Capovalle\",1299 => \"Cappadocia\",1300 => \"Cappella Cantone\",1301 => \"Cappella de' Picenardi\",1302 => \"Cappella Maggiore\",1303 => \"Cappelle sul Tavo\",1304 => \"Capracotta\",1305 => \"Capraia e Limite\",1306 => \"Capraia isola\",1307 => \"Capralba\",1308 => \"Capranica\",1309 => \"Capranica Prenestina\",1310 => \"Caprarica di Lecce\",1311 => \"Caprarola\",1312 => \"Caprauna\",1313 => \"Caprese Michelangelo\",1314 => \"Caprezzo\",1315 => \"Capri\",1316 => \"Capri Leone\",1317 => \"Capriana\",1318 => \"Capriano del Colle\",1319 => \"Capriata d'Orba\",1320 => \"Capriate San Gervasio\",1321 => \"Capriati a Volturno\",1322 => \"Caprie\",1323 => \"Capriglia irpina\",1324 => \"Capriglio\",1325 => \"Caprile\",1326 => \"Caprino bergamasco\",1327 => \"Caprino veronese\",1328 => \"Capriolo\",1329 => \"Capriva del Friuli\",1330 => \"Capua\",1331 => \"Capurso\",1332 => \"Caraffa del Bianco\",1333 => \"Caraffa di Catanzaro\",1334 => \"Caraglio\",1335 => \"Caramagna Piemonte\",1336 => \"Caramanico terme\",1337 => \"Carano\",1338 => \"Carapelle\",1339 => \"Carapelle Calvisio\",1340 => \"Carasco\",1341 => \"Carassai\",1342 => \"Carate brianza\",1343 => \"Carate Urio\",1344 => \"Caravaggio\",1345 => \"Caravate\",1346 => \"Caravino\",1347 => \"Caravonica\",1348 => \"Carbognano\",1349 => \"Carbonara al Ticino\",1350 => \"Carbonara di Nola\",1351 => \"Carbonara di Po\",1352 => \"Carbonara Scrivia\",1353 => \"Carbonate\",8374 => \"Carbone\",1355 => \"Carbonera\",1356 => \"Carbonia\",1357 => \"Carcare\",1358 => \"Carceri\",1359 => \"Carcoforo\",1360 => \"Cardano al Campo\",1361 => \"Carde'\",1362 => \"Cardedu\",1363 => \"Cardeto\",1364 => \"Cardinale\",1365 => \"Cardito\",1366 => \"Careggine\",1367 => \"Carema\",1368 => \"Carenno\",1369 => \"Carentino\",1370 => \"Careri\",1371 => \"Caresana\",1372 => \"Caresanablot\",8625 => \"Carezza al lago\",1373 => \"Carezzano\",1374 => \"Carfizzi\",1375 => \"Cargeghe\",1376 => \"Cariati\",1377 => \"Carife\",1378 => \"Carignano\",1379 => \"Carimate\",1380 => \"Carinaro\",1381 => \"Carini\",1382 => \"Carinola\",1383 => \"Carisio\",1384 => \"Carisolo\",1385 => \"Carlantino\",1386 => \"Carlazzo\",1387 => \"Carlentini\",1388 => \"Carlino\",1389 => \"Carloforte\",1390 => \"Carlopoli\",1391 => \"Carmagnola\",1392 => \"Carmiano\",1393 => \"Carmignano\",1394 => \"Carmignano di Brenta\",1395 => \"Carnago\",1396 => \"Carnate\",1397 => \"Carobbio degli Angeli\",1398 => \"Carolei\",1399 => \"Carona\",8541 => \"Carona Carisole\",1400 => \"Caronia\",1401 => \"Caronno Pertusella\",1402 => \"Caronno varesino\",8253 => \"Carosello 3000\",1403 => \"Carosino\",1404 => \"Carovigno\",1405 => \"Carovilli\",1406 => \"Carpaneto piacentino\",1407 => \"Carpanzano\",1408 => \"Carpasio\",1409 => \"Carpegna\",1410 => \"Carpenedolo\",1411 => \"Carpeneto\",1412 => \"Carpi\",1413 => \"Carpiano\",1414 => \"Carpignano salentino\",1415 => \"Carpignano Sesia\",1416 => \"Carpineti\",1417 => \"Carpineto della Nora\",1418 => \"Carpineto romano\",1419 => \"Carpineto Sinello\",1420 => \"Carpino\",1421 => \"Carpinone\",1422 => \"Carrara\",1423 => \"Carre'\",1424 => \"Carrega ligure\",1425 => \"Carro\",1426 => \"Carrodano\",1427 => \"Carrosio\",1428 => \"Carru'\",1429 => \"Carsoli\",1430 => \"Cartigliano\",1431 => \"Cartignano\",1432 => \"Cartoceto\",1433 => \"Cartosio\",1434 => \"Cartura\",1435 => \"Carugate\",1436 => \"Carugo\",1437 => \"Carunchio\",1438 => \"Carvico\",1439 => \"Carzano\",1440 => \"Casabona\",1441 => \"Casacalenda\",1442 => \"Casacanditella\",1443 => \"Casagiove\",1444 => \"Casal Cermelli\",1445 => \"Casal di Principe\",1446 => \"Casal Velino\",1447 => \"Casalanguida\",1448 => \"Casalattico\",8648 => \"Casalavera\",1449 => \"Casalbeltrame\",1450 => \"Casalbordino\",1451 => \"Casalbore\",1452 => \"Casalborgone\",1453 => \"Casalbuono\",1454 => \"Casalbuttano ed Uniti\",1455 => \"Casalciprano\",1456 => \"Casalduni\",1457 => \"Casale Corte Cerro\",1458 => \"Casale cremasco Vidolasco\",1459 => \"Casale di Scodosia\",1460 => \"Casale Litta\",1461 => \"Casale marittimo\",1462 => \"Casale monferrato\",1463 => \"Casale sul Sile\",1464 => \"Casalecchio di Reno\",1465 => \"Casaleggio Boiro\",1466 => \"Casaleggio Novara\",1467 => \"Casaleone\",1468 => \"Casaletto Ceredano\",1469 => \"Casaletto di sopra\",1470 => \"Casaletto lodigiano\",1471 => \"Casaletto Spartano\",1472 => \"Casaletto Vaprio\",1473 => \"Casalfiumanese\",1474 => \"Casalgrande\",1475 => \"Casalgrasso\",1476 => \"Casalincontrada\",1477 => \"Casalino\",1478 => \"Casalmaggiore\",1479 => \"Casalmaiocco\",1480 => \"Casalmorano\",1481 => \"Casalmoro\",1482 => \"Casalnoceto\",1483 => \"Casalnuovo di Napoli\",1484 => \"Casalnuovo Monterotaro\",1485 => \"Casaloldo\",1486 => \"Casalpusterlengo\",1487 => \"Casalromano\",1488 => \"Casalserugo\",1489 => \"Casaluce\",1490 => \"Casalvecchio di Puglia\",1491 => \"Casalvecchio siculo\",1492 => \"Casalvieri\",1493 => \"Casalvolone\",1494 => \"Casalzuigno\",1495 => \"Casamarciano\",1496 => \"Casamassima\",1497 => \"Casamicciola terme\",1498 => \"Casandrino\",1499 => \"Casanova Elvo\",1500 => \"Casanova Lerrone\",1501 => \"Casanova Lonati\",1502 => \"Casape\",1503 => \"Casapesenna\",1504 => \"Casapinta\",1505 => \"Casaprota\",1506 => \"Casapulla\",1507 => \"Casarano\",1508 => \"Casargo\",1509 => \"Casarile\",1510 => \"Casarsa della Delizia\",1511 => \"Casarza ligure\",1512 => \"Casasco\",1513 => \"Casasco d'Intelvi\",1514 => \"Casatenovo\",1515 => \"Casatisma\",1516 => \"Casavatore\",1517 => \"Casazza\",8160 => \"Cascate del Toce\",1518 => \"Cascia\",1519 => \"Casciago\",1520 => \"Casciana terme\",1521 => \"Cascina\",1522 => \"Cascinette d'Ivrea\",1523 => \"Casei Gerola\",1524 => \"Caselette\",1525 => \"Casella\",1526 => \"Caselle in Pittari\",1527 => \"Caselle Landi\",1528 => \"Caselle Lurani\",1529 => \"Caselle torinese\",1530 => \"Caserta\",1531 => \"Casier\",1532 => \"Casignana\",1533 => \"Casina\",1534 => \"Casirate d'Adda\",1535 => \"Caslino d'Erba\",1536 => \"Casnate con Bernate\",1537 => \"Casnigo\",1538 => \"Casola di Napoli\",1539 => \"Casola in lunigiana\",1540 => \"Casola valsenio\",1541 => \"Casole Bruzio\",1542 => \"Casole d'Elsa\",1543 => \"Casoli\",1544 => \"Casorate Primo\",1545 => \"Casorate Sempione\",1546 => \"Casorezzo\",1547 => \"Casoria\",1548 => \"Casorzo\",1549 => \"Casperia\",1550 => \"Caspoggio\",1551 => \"Cassacco\",1552 => \"Cassago brianza\",1553 => \"Cassano allo Ionio\",1554 => \"Cassano d'Adda\",1555 => \"Cassano delle murge\",1556 => \"Cassano irpino\",1557 => \"Cassano Magnago\",1558 => \"Cassano Spinola\",1559 => \"Cassano valcuvia\",1560 => \"Cassaro\",1561 => \"Cassiglio\",1562 => \"Cassina de' Pecchi\",1563 => \"Cassina Rizzardi\",1564 => \"Cassina valsassina\",1565 => \"Cassinasco\",1566 => \"Cassine\",1567 => \"Cassinelle\",1568 => \"Cassinetta di Lugagnano\",1569 => \"Cassino\",1570 => \"Cassola\",1571 => \"Cassolnovo\",1572 => \"Castagnaro\",1573 => \"Castagneto Carducci\",1574 => \"Castagneto po\",1575 => \"Castagnito\",1576 => \"Castagnole delle Lanze\",1577 => \"Castagnole monferrato\",1578 => \"Castagnole Piemonte\",1579 => \"Castana\",1580 => \"Castano Primo\",1581 => \"Casteggio\",1582 => \"Castegnato\",1583 => \"Castegnero\",1584 => \"Castel Baronia\",1585 => \"Castel Boglione\",1586 => \"Castel bolognese\",1587 => \"Castel Campagnano\",1588 => \"Castel Castagna\",1589 => \"Castel Colonna\",1590 => \"Castel Condino\",1591 => \"Castel d'Aiano\",1592 => \"Castel d'Ario\",1593 => \"Castel d'Azzano\",1594 => \"Castel del Giudice\",1595 => \"Castel del monte\",1596 => \"Castel del piano\",1597 => \"Castel del rio\",1598 => \"Castel di Casio\",1599 => \"Castel di Ieri\",1600 => \"Castel di Iudica\",1601 => \"Castel di Lama\",1602 => \"Castel di Lucio\",1603 => \"Castel di Sangro\",1604 => \"Castel di Sasso\",1605 => \"Castel di Tora\",1606 => \"Castel Focognano\",1607 => \"Castel frentano\",1608 => \"Castel Gabbiano\",1609 => \"Castel Gandolfo\",1610 => \"Castel Giorgio\",1611 => \"Castel Goffredo\",1612 => \"Castel Guelfo di Bologna\",1613 => \"Castel Madama\",1614 => \"Castel Maggiore\",1615 => \"Castel Mella\",1616 => \"Castel Morrone\",1617 => \"Castel Ritaldi\",1618 => \"Castel Rocchero\",1619 => \"Castel Rozzone\",1620 => \"Castel San Giorgio\",1621 => \"Castel San Giovanni\",1622 => \"Castel San Lorenzo\",1623 => \"Castel San Niccolo'\",1624 => \"Castel San Pietro romano\",1625 => \"Castel San Pietro terme\",1626 => \"Castel San Vincenzo\",1627 => \"Castel Sant'Angelo\",1628 => \"Castel Sant'Elia\",1629 => \"Castel Viscardo\",1630 => \"Castel Vittorio\",1631 => \"Castel volturno\",1632 => \"Castelbaldo\",1633 => \"Castelbelforte\",1634 => \"Castelbellino\",1635 => \"Castelbello Ciardes\",1636 => \"Castelbianco\",1637 => \"Castelbottaccio\",1638 => \"Castelbuono\",1639 => \"Castelcivita\",1640 => \"Castelcovati\",1641 => \"Castelcucco\",1642 => \"Casteldaccia\",1643 => \"Casteldelci\",1644 => \"Casteldelfino\",1645 => \"Casteldidone\",1646 => \"Castelfidardo\",1647 => \"Castelfiorentino\",1648 => \"Castelfondo\",1649 => \"Castelforte\",1650 => \"Castelfranci\",1651 => \"Castelfranco di sopra\",1652 => \"Castelfranco di sotto\",1653 => \"Castelfranco Emilia\",1654 => \"Castelfranco in Miscano\",1655 => \"Castelfranco Veneto\",1656 => \"Castelgomberto\",8385 => \"Castelgrande\",1658 => \"Castelguglielmo\",1659 => \"Castelguidone\",1660 => \"Castell'alfero\",1661 => \"Castell'arquato\",1662 => \"Castell'azzara\",1663 => \"Castell'umberto\",1664 => \"Castellabate\",1665 => \"Castellafiume\",1666 => \"Castellalto\",1667 => \"Castellammare del Golfo\",1668 => \"Castellammare di Stabia\",1669 => \"Castellamonte\",1670 => \"Castellana Grotte\",1671 => \"Castellana sicula\",1672 => \"Castellaneta\",1673 => \"Castellania\",1674 => \"Castellanza\",1675 => \"Castellar\",1676 => \"Castellar Guidobono\",1677 => \"Castellarano\",1678 => \"Castellaro\",1679 => \"Castellazzo Bormida\",1680 => \"Castellazzo novarese\",1681 => \"Castelleone\",1682 => \"Castelleone di Suasa\",1683 => \"Castellero\",1684 => \"Castelletto Cervo\",1685 => \"Castelletto d'Erro\",1686 => \"Castelletto d'Orba\",1687 => \"Castelletto di Branduzzo\",1688 => \"Castelletto Merli\",1689 => \"Castelletto Molina\",1690 => \"Castelletto monferrato\",1691 => \"Castelletto sopra Ticino\",1692 => \"Castelletto Stura\",1693 => \"Castelletto Uzzone\",1694 => \"Castelli\",1695 => \"Castelli Calepio\",1696 => \"Castellina in chianti\",1697 => \"Castellina marittima\",1698 => \"Castellinaldo\",1699 => \"Castellino del Biferno\",1700 => \"Castellino Tanaro\",1701 => \"Castelliri\",1702 => \"Castello Cabiaglio\",1703 => \"Castello d'Agogna\",1704 => \"Castello d'Argile\",1705 => \"Castello del matese\",1706 => \"Castello dell'Acqua\",1707 => \"Castello di Annone\",1708 => \"Castello di brianza\",1709 => \"Castello di Cisterna\",1710 => \"Castello di Godego\",1711 => \"Castello di Serravalle\",1712 => \"Castello Lavazzo\",1714 => \"Castello Molina di Fiemme\",1713 => \"Castello tesino\",1715 => \"Castellucchio\",8219 => \"Castelluccio\",1716 => \"Castelluccio dei Sauri\",8395 => \"Castelluccio inferiore\",8359 => \"Castelluccio superiore\",1719 => \"Castelluccio valmaggiore\",8452 => \"Castelmadama casello\",1720 => \"Castelmagno\",1721 => \"Castelmarte\",1722 => \"Castelmassa\",1723 => \"Castelmauro\",8363 => \"Castelmezzano\",1725 => \"Castelmola\",1726 => \"Castelnovetto\",1727 => \"Castelnovo Bariano\",1728 => \"Castelnovo del Friuli\",1729 => \"Castelnovo di sotto\",8124 => \"Castelnovo ne' Monti\",1731 => \"Castelnuovo\",1732 => \"Castelnuovo Belbo\",1733 => \"Castelnuovo Berardenga\",1734 => \"Castelnuovo bocca d'Adda\",1735 => \"Castelnuovo Bormida\",1736 => \"Castelnuovo Bozzente\",1737 => \"Castelnuovo Calcea\",1738 => \"Castelnuovo cilento\",1739 => \"Castelnuovo del Garda\",1740 => \"Castelnuovo della daunia\",1741 => \"Castelnuovo di Ceva\",1742 => \"Castelnuovo di Conza\",1743 => \"Castelnuovo di Farfa\",1744 => \"Castelnuovo di Garfagnana\",1745 => \"Castelnuovo di Porto\",1746 => \"Castelnuovo di val di Cecina\",1747 => \"Castelnuovo Don Bosco\",1748 => \"Castelnuovo Magra\",1749 => \"Castelnuovo Nigra\",1750 => \"Castelnuovo Parano\",1751 => \"Castelnuovo Rangone\",1752 => \"Castelnuovo Scrivia\",1753 => \"Castelpagano\",1754 => \"Castelpetroso\",1755 => \"Castelpizzuto\",1756 => \"Castelplanio\",1757 => \"Castelpoto\",1758 => \"Castelraimondo\",1759 => \"Castelrotto\",1760 => \"Castelsantangelo sul Nera\",8378 => \"Castelsaraceno\",1762 => \"Castelsardo\",1763 => \"Castelseprio\",1764 => \"Castelsilano\",1765 => \"Castelspina\",1766 => \"Casteltermini\",1767 => \"Castelveccana\",1768 => \"Castelvecchio Calvisio\",1769 => \"Castelvecchio di Rocca Barbena\",1770 => \"Castelvecchio Subequo\",1771 => \"Castelvenere\",1772 => \"Castelverde\",1773 => \"Castelverrino\",1774 => \"Castelvetere in val fortore\",1775 => \"Castelvetere sul Calore\",1776 => \"Castelvetrano\",1777 => \"Castelvetro di Modena\",1778 => \"Castelvetro piacentino\",1779 => \"Castelvisconti\",1780 => \"Castenaso\",1781 => \"Castenedolo\",1782 => \"Castiadas\",1783 => \"Castiglion Fibocchi\",1784 => \"Castiglion fiorentino\",8193 => \"Castiglioncello\",1785 => \"Castiglione a Casauria\",1786 => \"Castiglione chiavarese\",1787 => \"Castiglione cosentino\",1788 => \"Castiglione d'Adda\",1789 => \"Castiglione d'Intelvi\",1790 => \"Castiglione d'Orcia\",1791 => \"Castiglione dei Pepoli\",1792 => \"Castiglione del Genovesi\",1793 => \"Castiglione del Lago\",1794 => \"Castiglione della Pescaia\",1795 => \"Castiglione delle Stiviere\",1796 => \"Castiglione di garfagnana\",1797 => \"Castiglione di Sicilia\",1798 => \"Castiglione Falletto\",1799 => \"Castiglione in teverina\",1800 => \"Castiglione Messer Marino\",1801 => \"Castiglione Messer Raimondo\",1802 => \"Castiglione Olona\",1803 => \"Castiglione Tinella\",1804 => \"Castiglione torinese\",1805 => \"Castignano\",1806 => \"Castilenti\",1807 => \"Castino\",1808 => \"Castione Andevenno\",1809 => \"Castione della Presolana\",1810 => \"Castions di Strada\",1811 => \"Castiraga Vidardo\",1812 => \"Casto\",1813 => \"Castorano\",8723 => \"Castore\",1814 => \"Castrezzato\",1815 => \"Castri di Lecce\",1816 => \"Castrignano de' Greci\",1817 => \"Castrignano del Capo\",1818 => \"Castro\",1819 => \"Castro\",1820 => \"Castro dei Volsci\",8167 => \"Castro Marina\",1821 => \"Castrocaro terme e terra del Sole\",1822 => \"Castrocielo\",1823 => \"Castrofilippo\",1824 => \"Castrolibero\",1825 => \"Castronno\",1826 => \"Castronuovo di Sant'Andrea\",1827 => \"Castronuovo di Sicilia\",1828 => \"Castropignano\",1829 => \"Castroreale\",1830 => \"Castroregio\",1831 => \"Castrovillari\",1832 => \"Catania\",8273 => \"Catania Fontanarossa\",1833 => \"Catanzaro\",1834 => \"Catenanuova\",1835 => \"Catignano\",8281 => \"Catinaccio\",1836 => \"Cattolica\",1837 => \"Cattolica Eraclea\",1838 => \"Caulonia\",8673 => \"Caulonia Marina\",1839 => \"Cautano\",1840 => \"Cava de' Tirreni\",1841 => \"Cava manara\",1842 => \"Cavacurta\",1843 => \"Cavaglia'\",1844 => \"Cavaglietto\",1845 => \"Cavaglio d'Agogna\",1846 => \"Cavaglio Spoccia\",1847 => \"Cavagnolo\",1848 => \"Cavaion veronese\",1849 => \"Cavalese\",1850 => \"Cavallasca\",1851 => \"Cavallerleone\",1852 => \"Cavallermaggiore\",1853 => \"Cavallino\",8657 => \"Cavallino\",1854 => \"Cavallino treporti\",1855 => \"Cavallirio\",1856 => \"Cavareno\",1857 => \"Cavargna\",1858 => \"Cavaria con Premezzo\",1859 => \"Cavarzere\",1860 => \"Cavaso del Tomba\",1861 => \"Cavasso nuovo\",1862 => \"Cavatore\",1863 => \"Cavazzo carnico\",1864 => \"Cave\",1865 => \"Cavedago\",1866 => \"Cavedine\",1867 => \"Cavenago d'Adda\",1868 => \"Cavenago di brianza\",1869 => \"Cavernago\",1870 => \"Cavezzo\",1871 => \"Cavizzana\",1872 => \"Cavour\",1873 => \"Cavriago\",1874 => \"Cavriana\",1875 => \"Cavriglia\",1876 => \"Cazzago Brabbia\",1877 => \"Cazzago San Martino\",1878 => \"Cazzano di Tramigna\",1879 => \"Cazzano Sant'Andrea\",1880 => \"Ceccano\",1881 => \"Cecima\",1882 => \"Cecina\",1883 => \"Cedegolo\",1884 => \"Cedrasco\",1885 => \"Cefala' Diana\",1886 => \"Cefalu'\",1887 => \"Ceggia\",1888 => \"Ceglie Messapica\",1889 => \"Celano\",1890 => \"Celenza sul Trigno\",1891 => \"Celenza valfortore\",1892 => \"Celico\",1893 => \"Cella dati\",1894 => \"Cella monte\",1895 => \"Cellamare\",1896 => \"Cellara\",1897 => \"Cellarengo\",1898 => \"Cellatica\",1899 => \"Celle di Bulgheria\",1900 => \"Celle di Macra\",1901 => \"Celle di San Vito\",1902 => \"Celle Enomondo\",1903 => \"Celle ligure\",1904 => \"Celleno\",1905 => \"Cellere\",1906 => \"Cellino Attanasio\",1907 => \"Cellino San Marco\",1908 => \"Cellio\",1909 => \"Cellole\",1910 => \"Cembra\",1911 => \"Cenadi\",1912 => \"Cenate sopra\",1913 => \"Cenate sotto\",1914 => \"Cencenighe Agordino\",1915 => \"Cene\",1916 => \"Ceneselli\",1917 => \"Cengio\",1918 => \"Centa San Nicolo'\",1919 => \"Centallo\",1920 => \"Cento\",1921 => \"Centola\",1922 => \"Centrache\",1923 => \"Centuripe\",1924 => \"Cepagatti\",1925 => \"Ceppaloni\",1926 => \"Ceppo Morelli\",1927 => \"Ceprano\",1928 => \"Cerami\",1929 => \"Ceranesi\",1930 => \"Cerano\",1931 => \"Cerano d'intelvi\",1932 => \"Ceranova\",1933 => \"Ceraso\",1934 => \"Cercemaggiore\",1935 => \"Cercenasco\",1936 => \"Cercepiccola\",1937 => \"Cerchiara di Calabria\",1938 => \"Cerchio\",1939 => \"Cercino\",1940 => \"Cercivento\",1941 => \"Cercola\",1942 => \"Cerda\",1943 => \"Cerea\",1944 => \"Ceregnano\",1945 => \"Cerenzia\",1946 => \"Ceres\",1947 => \"Ceresara\",1948 => \"Cereseto\",1949 => \"Ceresole Alba\",1950 => \"Ceresole reale\",1951 => \"Cerete\",1952 => \"Ceretto lomellina\",1953 => \"Cergnago\",1954 => \"Ceriale\",1955 => \"Ceriana\",1956 => \"Ceriano Laghetto\",1957 => \"Cerignale\",1958 => \"Cerignola\",1959 => \"Cerisano\",1960 => \"Cermenate\",1961 => \"Cermes\",1962 => \"Cermignano\",1963 => \"Cernobbio\",1964 => \"Cernusco lombardone\",1965 => \"Cernusco sul Naviglio\",1966 => \"Cerreto Castello\",1967 => \"Cerreto d'Asti\",1968 => \"Cerreto d'Esi\",1969 => \"Cerreto di Spoleto\",1970 => \"Cerreto Grue\",1971 => \"Cerreto Guidi\",1972 => \"Cerreto langhe\",1973 => \"Cerreto laziale\",1974 => \"Cerreto sannita\",1975 => \"Cerrina monferrato\",1976 => \"Cerrione\",1977 => \"Cerro al Lambro\",1978 => \"Cerro al Volturno\",1979 => \"Cerro maggiore\",1980 => \"Cerro Tanaro\",1981 => \"Cerro veronese\",8396 => \"Cersosimo\",1983 => \"Certaldo\",1984 => \"Certosa di Pavia\",1985 => \"Cerva\",1986 => \"Cervara di Roma\",1987 => \"Cervarese Santa Croce\",1988 => \"Cervaro\",1989 => \"Cervasca\",1990 => \"Cervatto\",1991 => \"Cerveno\",1992 => \"Cervere\",1993 => \"Cervesina\",1994 => \"Cerveteri\",1995 => \"Cervia\",1996 => \"Cervicati\",1997 => \"Cervignano d'Adda\",1998 => \"Cervignano del Friuli\",1999 => \"Cervinara\",2000 => \"Cervino\",2001 => \"Cervo\",2002 => \"Cerzeto\",2003 => \"Cesa\",2004 => \"Cesana brianza\",2005 => \"Cesana torinese\",2006 => \"Cesano Boscone\",2007 => \"Cesano Maderno\",2008 => \"Cesara\",2009 => \"Cesaro'\",2010 => \"Cesate\",2011 => \"Cesena\",2012 => \"Cesenatico\",2013 => \"Cesinali\",2014 => \"Cesio\",2015 => \"Cesiomaggiore\",2016 => \"Cessalto\",2017 => \"Cessaniti\",2018 => \"Cessapalombo\",2019 => \"Cessole\",2020 => \"Cetara\",2021 => \"Ceto\",2022 => \"Cetona\",2023 => \"Cetraro\",2024 => \"Ceva\",8721 => \"Cevedale\",2025 => \"Cevo\",2026 => \"Challand Saint Anselme\",2027 => \"Challand Saint Victor\",2028 => \"Chambave\",2029 => \"Chamois\",8255 => \"Chamole`\",2030 => \"Champdepraz\",8225 => \"Champoluc\",2031 => \"Champorcher\",8331 => \"Champorcher Cimetta Rossa\",8330 => \"Champorcher Laris\",2032 => \"Charvensod\",2033 => \"Chatillon\",2034 => \"Cherasco\",2035 => \"Cheremule\",8668 => \"Chesal\",2036 => \"Chialamberto\",2037 => \"Chiampo\",2038 => \"Chianche\",2039 => \"Chianciano terme\",2040 => \"Chianni\",2041 => \"Chianocco\",2042 => \"Chiaramonte Gulfi\",2043 => \"Chiaramonti\",2044 => \"Chiarano\",2045 => \"Chiaravalle\",2046 => \"Chiaravalle centrale\",8151 => \"Chiareggio\",2047 => \"Chiari\",2048 => \"Chiaromonte\",8432 => \"Chiasso\",2049 => \"Chiauci\",2050 => \"Chiavari\",2051 => \"Chiavenna\",2052 => \"Chiaverano\",2053 => \"Chienes\",2054 => \"Chieri\",2055 => \"Chies d'Alpago\",2056 => \"Chiesa in valmalenco\",2057 => \"Chiesanuova\",2058 => \"Chiesina uzzanese\",2059 => \"Chieti\",8319 => \"Chieti Scalo\",2060 => \"Chieuti\",2061 => \"Chieve\",2062 => \"Chignolo d'Isola\",2063 => \"Chignolo Po\",2064 => \"Chioggia\",2065 => \"Chiomonte\",2066 => \"Chions\",2067 => \"Chiopris Viscone\",2068 => \"Chitignano\",2069 => \"Chiuduno\",2070 => \"Chiuppano\",2071 => \"Chiuro\",2072 => \"Chiusa\",2073 => \"Chiusa di Pesio\",2074 => \"Chiusa di San Michele\",2075 => \"Chiusa Sclafani\",2076 => \"Chiusaforte\",2077 => \"Chiusanico\",2078 => \"Chiusano d'Asti\",2079 => \"Chiusano di San Domenico\",2080 => \"Chiusavecchia\",2081 => \"Chiusdino\",2082 => \"Chiusi\",2083 => \"Chiusi della Verna\",2084 => \"Chivasso\",8515 => \"Ciampac Alba\",2085 => \"Ciampino\",2086 => \"Cianciana\",2087 => \"Cibiana di cadore\",2088 => \"Cicagna\",2089 => \"Cicala\",2090 => \"Cicciano\",2091 => \"Cicerale\",2092 => \"Ciciliano\",2093 => \"Cicognolo\",2094 => \"Ciconio\",2095 => \"Cigliano\",2096 => \"Ciglie'\",2097 => \"Cigognola\",2098 => \"Cigole\",2099 => \"Cilavegna\",8340 => \"Cima Durand\",8590 => \"Cima Pisciadu'\",8764 => \"Cima Plose\",8703 => \"Cima Portavescovo\",8282 => \"Cima Sole\",2100 => \"Cimadolmo\",2101 => \"Cimbergo\",8332 => \"Cime Bianche\",2102 => \"Cimego\",2103 => \"Cimina'\",2104 => \"Ciminna\",2105 => \"Cimitile\",2106 => \"Cimolais\",8433 => \"Cimoncino\",2107 => \"Cimone\",2108 => \"Cinaglio\",2109 => \"Cineto romano\",2110 => \"Cingia de' Botti\",2111 => \"Cingoli\",2112 => \"Cinigiano\",2113 => \"Cinisello Balsamo\",2114 => \"Cinisi\",2115 => \"Cino\",2116 => \"Cinquefrondi\",2117 => \"Cintano\",2118 => \"Cinte tesino\",2119 => \"Cinto Caomaggiore\",2120 => \"Cinto Euganeo\",2121 => \"Cinzano\",2122 => \"Ciorlano\",2123 => \"Cipressa\",2124 => \"Circello\",2125 => \"Cirie'\",2126 => \"Cirigliano\",2127 => \"Cirimido\",2128 => \"Ciro'\",2129 => \"Ciro' marina\",2130 => \"Cis\",2131 => \"Cisano bergamasco\",2132 => \"Cisano sul Neva\",2133 => \"Ciserano\",2134 => \"Cislago\",2135 => \"Cisliano\",2136 => \"Cismon del Grappa\",2137 => \"Cison di valmarino\",2138 => \"Cissone\",2139 => \"Cisterna d'Asti\",2140 => \"Cisterna di Latina\",2141 => \"Cisternino\",2142 => \"Citerna\",8142 => \"Città del Vaticano\",2143 => \"Citta' della Pieve\",2144 => \"Citta' di Castello\",2145 => \"Citta' Sant'Angelo\",2146 => \"Cittadella\",2147 => \"Cittaducale\",2148 => \"Cittanova\",2149 => \"Cittareale\",2150 => \"Cittiglio\",2151 => \"Civate\",2152 => \"Civenna\",2153 => \"Civezza\",2154 => \"Civezzano\",2155 => \"Civiasco\",2156 => \"Cividale del Friuli\",2157 => \"Cividate al piano\",2158 => \"Cividate camuno\",2159 => \"Civita\",2160 => \"Civita Castellana\",2161 => \"Civita d'Antino\",2162 => \"Civitacampomarano\",2163 => \"Civitaluparella\",2164 => \"Civitanova del sannio\",2165 => \"Civitanova Marche\",8356 => \"Civitaquana\",2167 => \"Civitavecchia\",2168 => \"Civitella Alfedena\",2169 => \"Civitella Casanova\",2170 => \"Civitella d'Agliano\",2171 => \"Civitella del Tronto\",2172 => \"Civitella di Romagna\",2173 => \"Civitella in val di Chiana\",2174 => \"Civitella Messer Raimondo\",2175 => \"Civitella Paganico\",2176 => \"Civitella Roveto\",2177 => \"Civitella San Paolo\",2178 => \"Civo\",2179 => \"Claino con osteno\",2180 => \"Claut\",2181 => \"Clauzetto\",2182 => \"Clavesana\",2183 => \"Claviere\",2184 => \"Cles\",2185 => \"Cleto\",2186 => \"Clivio\",2187 => \"Cloz\",2188 => \"Clusone\",2189 => \"Coassolo torinese\",2190 => \"Coazze\",2191 => \"Coazzolo\",2192 => \"Coccaglio\",2193 => \"Cocconato\",2194 => \"Cocquio Trevisago\",2195 => \"Cocullo\",2196 => \"Codevigo\",2197 => \"Codevilla\",2198 => \"Codigoro\",2199 => \"Codogne'\",2200 => \"Codogno\",2201 => \"Codroipo\",2202 => \"Codrongianos\",2203 => \"Coggiola\",2204 => \"Cogliate\",2205 => \"Cogne\",8654 => \"Cogne Lillaz\",2206 => \"Cogoleto\",2207 => \"Cogollo del Cengio\",5049 => \"Cogolo\",2208 => \"Cogorno\",8354 => \"Col de Joux\",8604 => \"Col Indes\",2209 => \"Colazza\",2210 => \"Colbordolo\",2211 => \"Colere\",2212 => \"Colfelice\",8217 => \"Colfiorito\",8761 => \"Colfosco\",2213 => \"Coli\",2214 => \"Colico\",2215 => \"Collagna\",2216 => \"Collalto sabino\",2217 => \"Collarmele\",2218 => \"Collazzone\",8249 => \"Colle Bettaforca\",2219 => \"Colle Brianza\",2220 => \"Colle d'Anchise\",8687 => \"Colle del Gran San Bernardo\",8688 => \"Colle del Moncenisio\",8686 => \"Colle del Piccolo San Bernardo\",8481 => \"Colle del Prel\",2221 => \"Colle di Tora\",2222 => \"Colle di val d'Elsa\",2223 => \"Colle San Magno\",2224 => \"Colle sannita\",2225 => \"Colle Santa Lucia\",8246 => \"Colle Sarezza\",2226 => \"Colle Umberto\",2227 => \"Collebeato\",2228 => \"Collecchio\",2229 => \"Collecorvino\",2230 => \"Colledara\",8453 => \"Colledara casello\",2231 => \"Colledimacine\",2232 => \"Colledimezzo\",2233 => \"Colleferro\",2234 => \"Collegiove\",2235 => \"Collegno\",2236 => \"Collelongo\",2237 => \"Collepardo\",2238 => \"Collepasso\",2239 => \"Collepietro\",2240 => \"Colleretto castelnuovo\",2241 => \"Colleretto Giacosa\",2242 => \"Collesalvetti\",2243 => \"Collesano\",2244 => \"Colletorto\",2245 => \"Collevecchio\",2246 => \"Colli a volturno\",2247 => \"Colli del Tronto\",2248 => \"Colli sul Velino\",2249 => \"Colliano\",2250 => \"Collinas\",2251 => \"Collio\",2252 => \"Collobiano\",2253 => \"Colloredo di monte Albano\",2254 => \"Colmurano\",2255 => \"Colobraro\",2256 => \"Cologna veneta\",2257 => \"Cologne\",2258 => \"Cologno al Serio\",2259 => \"Cologno monzese\",2260 => \"Colognola ai Colli\",2261 => \"Colonna\",2262 => \"Colonnella\",2263 => \"Colonno\",2264 => \"Colorina\",2265 => \"Colorno\",2266 => \"Colosimi\",2267 => \"Colturano\",2268 => \"Colzate\",2269 => \"Comabbio\",2270 => \"Comacchio\",2271 => \"Comano\",2272 => \"Comazzo\",2273 => \"Comeglians\",2274 => \"Comelico superiore\",2275 => \"Comerio\",2276 => \"Comezzano Cizzago\",2277 => \"Comignago\",2278 => \"Comiso\",2279 => \"Comitini\",2280 => \"Comiziano\",2281 => \"Commessaggio\",2282 => \"Commezzadura\",2283 => \"Como\",2284 => \"Compiano\",8711 => \"Comprensorio Cimone\",2285 => \"Comun nuovo\",2286 => \"Comunanza\",2287 => \"Cona\",2288 => \"Conca Casale\",2289 => \"Conca dei Marini\",2290 => \"Conca della Campania\",2291 => \"Concamarise\",2292 => \"Concei\",2293 => \"Concerviano\",2294 => \"Concesio\",2295 => \"Conco\",2296 => \"Concordia Sagittaria\",2297 => \"Concordia sulla Secchia\",2298 => \"Concorezzo\",2299 => \"Condino\",2300 => \"Condofuri\",8689 => \"Condofuri Marina\",2301 => \"Condove\",2302 => \"Condro'\",2303 => \"Conegliano\",2304 => \"Confienza\",2305 => \"Configni\",2306 => \"Conflenti\",2307 => \"Coniolo\",2308 => \"Conselice\",2309 => \"Conselve\",2310 => \"Consiglio di Rumo\",2311 => \"Contessa Entellina\",2312 => \"Contigliano\",2313 => \"Contrada\",2314 => \"Controguerra\",2315 => \"Controne\",2316 => \"Contursi terme\",2317 => \"Conversano\",2318 => \"Conza della Campania\",2319 => \"Conzano\",2320 => \"Copertino\",2321 => \"Copiano\",2322 => \"Copparo\",2323 => \"Corana\",2324 => \"Corato\",2325 => \"Corbara\",2326 => \"Corbetta\",2327 => \"Corbola\",2328 => \"Corchiano\",2329 => \"Corciano\",2330 => \"Cordenons\",2331 => \"Cordignano\",2332 => \"Cordovado\",2333 => \"Coredo\",2334 => \"Coreglia Antelminelli\",2335 => \"Coreglia ligure\",2336 => \"Coreno Ausonio\",2337 => \"Corfinio\",2338 => \"Cori\",2339 => \"Coriano\",2340 => \"Corigliano calabro\",8110 => \"Corigliano Calabro Marina\",2341 => \"Corigliano d'Otranto\",2342 => \"Corinaldo\",2343 => \"Corio\",2344 => \"Corleone\",2345 => \"Corleto monforte\",2346 => \"Corleto Perticara\",2347 => \"Cormano\",2348 => \"Cormons\",2349 => \"Corna imagna\",2350 => \"Cornalba\",2351 => \"Cornale\",2352 => \"Cornaredo\",2353 => \"Cornate d'Adda\",2354 => \"Cornedo all'Isarco\",2355 => \"Cornedo vicentino\",2356 => \"Cornegliano laudense\",2357 => \"Corneliano d'Alba\",2358 => \"Corniglio\",8537 => \"Corno alle Scale\",8353 => \"Corno del Renon\",2359 => \"Corno di Rosazzo\",2360 => \"Corno Giovine\",2361 => \"Cornovecchio\",2362 => \"Cornuda\",2363 => \"Correggio\",2364 => \"Correzzana\",2365 => \"Correzzola\",2366 => \"Corrido\",2367 => \"Corridonia\",2368 => \"Corropoli\",2369 => \"Corsano\",2370 => \"Corsico\",2371 => \"Corsione\",2372 => \"Cortaccia sulla strada del vino\",2373 => \"Cortale\",2374 => \"Cortandone\",2375 => \"Cortanze\",2376 => \"Cortazzone\",2377 => \"Corte brugnatella\",2378 => \"Corte de' Cortesi con Cignone\",2379 => \"Corte de' Frati\",2380 => \"Corte Franca\",2381 => \"Corte Palasio\",2382 => \"Cortemaggiore\",2383 => \"Cortemilia\",2384 => \"Corteno Golgi\",2385 => \"Cortenova\",2386 => \"Cortenuova\",2387 => \"Corteolona\",2388 => \"Cortiglione\",2389 => \"Cortina d'Ampezzo\",2390 => \"Cortina sulla strada del vino\",2391 => \"Cortino\",2392 => \"Cortona\",2393 => \"Corvara\",2394 => \"Corvara in Badia\",2395 => \"Corvino san Quirico\",2396 => \"Corzano\",2397 => \"Coseano\",2398 => \"Cosenza\",2399 => \"Cosio di Arroscia\",2400 => \"Cosio valtellino\",2401 => \"Cosoleto\",2402 => \"Cossano belbo\",2403 => \"Cossano canavese\",2404 => \"Cossato\",2405 => \"Cosseria\",2406 => \"Cossignano\",2407 => \"Cossogno\",2408 => \"Cossoine\",2409 => \"Cossombrato\",2410 => \"Costa de' Nobili\",2411 => \"Costa di Mezzate\",2412 => \"Costa di Rovigo\",2413 => \"Costa di serina\",2414 => \"Costa masnaga\",8177 => \"Costa Rei\",2415 => \"Costa valle imagna\",2416 => \"Costa Vescovato\",2417 => \"Costa Volpino\",2418 => \"Costabissara\",2419 => \"Costacciaro\",2420 => \"Costanzana\",2421 => \"Costarainera\",2422 => \"Costermano\",2423 => \"Costigliole d'Asti\",2424 => \"Costigliole Saluzzo\",2425 => \"Cotignola\",2426 => \"Cotronei\",2427 => \"Cottanello\",8256 => \"Couis 2\",2428 => \"Courmayeur\",2429 => \"Covo\",2430 => \"Cozzo\",8382 => \"Craco\",2432 => \"Crandola valsassina\",2433 => \"Cravagliana\",2434 => \"Cravanzana\",2435 => \"Craveggia\",2436 => \"Creazzo\",2437 => \"Crecchio\",2438 => \"Credaro\",2439 => \"Credera Rubbiano\",2440 => \"Crema\",2441 => \"Cremella\",2442 => \"Cremenaga\",2443 => \"Cremeno\",2444 => \"Cremia\",2445 => \"Cremolino\",2446 => \"Cremona\",2447 => \"Cremosano\",2448 => \"Crescentino\",2449 => \"Crespadoro\",2450 => \"Crespano del Grappa\",2451 => \"Crespellano\",2452 => \"Crespiatica\",2453 => \"Crespina\",2454 => \"Crespino\",2455 => \"Cressa\",8247 => \"Crest\",8741 => \"Cresta Youla\",8646 => \"Crevacol\",2456 => \"Crevacuore\",2457 => \"Crevalcore\",2458 => \"Crevoladossola\",2459 => \"Crispano\",2460 => \"Crispiano\",2461 => \"Crissolo\",8355 => \"Crissolo Pian delle Regine\",2462 => \"Crocefieschi\",2463 => \"Crocetta del Montello\",2464 => \"Crodo\",2465 => \"Crognaleto\",2466 => \"Cropalati\",2467 => \"Cropani\",2468 => \"Crosa\",2469 => \"Crosia\",2470 => \"Crosio della valle\",2471 => \"Crotone\",8552 => \"Crotone Sant'Anna\",2472 => \"Crotta d'Adda\",2473 => \"Crova\",2474 => \"Croviana\",2475 => \"Crucoli\",2476 => \"Cuasso al monte\",2477 => \"Cuccaro monferrato\",2478 => \"Cuccaro Vetere\",2479 => \"Cucciago\",2480 => \"Cuceglio\",2481 => \"Cuggiono\",2482 => \"Cugliate-fabiasco\",2483 => \"Cuglieri\",2484 => \"Cugnoli\",8718 => \"Cuma\",2485 => \"Cumiana\",2486 => \"Cumignano sul Naviglio\",2487 => \"Cunardo\",2488 => \"Cuneo\",8553 => \"Cuneo Levaldigi\",2489 => \"Cunevo\",2490 => \"Cunico\",2491 => \"Cuorgne'\",2492 => \"Cupello\",2493 => \"Cupra marittima\",2494 => \"Cupramontana\",2495 => \"Cura carpignano\",2496 => \"Curcuris\",2497 => \"Cureggio\",2498 => \"Curiglia con Monteviasco\",2499 => \"Curinga\",2500 => \"Curino\",2501 => \"Curno\",2502 => \"Curon Venosta\",2503 => \"Cursi\",2504 => \"Cursolo orasso\",2505 => \"Curtarolo\",2506 => \"Curtatone\",2507 => \"Curti\",2508 => \"Cusago\",2509 => \"Cusano milanino\",2510 => \"Cusano Mutri\",2511 => \"Cusino\",2512 => \"Cusio\",2513 => \"Custonaci\",2514 => \"Cutigliano\",2515 => \"Cutro\",2516 => \"Cutrofiano\",2517 => \"Cuveglio\",2518 => \"Cuvio\",2519 => \"Daiano\",2520 => \"Dairago\",2521 => \"Dalmine\",2522 => \"Dambel\",2523 => \"Danta di cadore\",2524 => \"Daone\",2525 => \"Dare'\",2526 => \"Darfo Boario terme\",2527 => \"Dasa'\",2528 => \"Davagna\",2529 => \"Daverio\",2530 => \"Davoli\",2531 => \"Dazio\",2532 => \"Decimomannu\",2533 => \"Decimoputzu\",2534 => \"Decollatura\",2535 => \"Dego\",2536 => \"Deiva marina\",2537 => \"Delebio\",2538 => \"Delia\",2539 => \"Delianuova\",2540 => \"Deliceto\",2541 => \"Dello\",2542 => \"Demonte\",2543 => \"Denice\",2544 => \"Denno\",2545 => \"Dernice\",2546 => \"Derovere\",2547 => \"Deruta\",2548 => \"Dervio\",2549 => \"Desana\",2550 => \"Desenzano del Garda\",2551 => \"Desio\",2552 => \"Desulo\",2553 => \"Diamante\",2554 => \"Diano arentino\",2555 => \"Diano castello\",2556 => \"Diano d'Alba\",2557 => \"Diano marina\",2558 => \"Diano San Pietro\",2559 => \"Dicomano\",2560 => \"Dignano\",2561 => \"Dimaro\",2562 => \"Dinami\",2563 => \"Dipignano\",2564 => \"Diso\",2565 => \"Divignano\",2566 => \"Dizzasco\",2567 => \"Dobbiaco\",2568 => \"Doberdo' del lago\",8628 => \"Doganaccia\",2569 => \"Dogliani\",2570 => \"Dogliola\",2571 => \"Dogna\",2572 => \"Dolce'\",2573 => \"Dolceacqua\",2574 => \"Dolcedo\",2575 => \"Dolegna del collio\",2576 => \"Dolianova\",2577 => \"Dolo\",8616 => \"Dolonne\",2578 => \"Dolzago\",2579 => \"Domanico\",2580 => \"Domaso\",2581 => \"Domegge di cadore\",2582 => \"Domicella\",2583 => \"Domodossola\",2584 => \"Domus de Maria\",2585 => \"Domusnovas\",2586 => \"Don\",2587 => \"Donato\",2588 => \"Dongo\",2589 => \"Donnas\",2590 => \"Donori'\",2591 => \"Dorgali\",2592 => \"Dorio\",2593 => \"Dormelletto\",2594 => \"Dorno\",2595 => \"Dorsino\",2596 => \"Dorzano\",2597 => \"Dosolo\",2598 => \"Dossena\",2599 => \"Dosso del liro\",8323 => \"Dosso Pasò\",2600 => \"Doues\",2601 => \"Dovadola\",2602 => \"Dovera\",2603 => \"Dozza\",2604 => \"Dragoni\",2605 => \"Drapia\",2606 => \"Drena\",2607 => \"Drenchia\",2608 => \"Dresano\",2609 => \"Drezzo\",2610 => \"Drizzona\",2611 => \"Dro\",2612 => \"Dronero\",2613 => \"Druento\",2614 => \"Druogno\",2615 => \"Dualchi\",2616 => \"Dubino\",2617 => \"Due carrare\",2618 => \"Dueville\",2619 => \"Dugenta\",2620 => \"Duino aurisina\",2621 => \"Dumenza\",2622 => \"Duno\",2623 => \"Durazzano\",2624 => \"Duronia\",2625 => \"Dusino San Michele\",2626 => \"Eboli\",2627 => \"Edolo\",2628 => \"Egna\",2629 => \"Elice\",2630 => \"Elini\",2631 => \"Ello\",2632 => \"Elmas\",2633 => \"Elva\",2634 => \"Emarese\",2635 => \"Empoli\",2636 => \"Endine gaiano\",2637 => \"Enego\",2638 => \"Enemonzo\",2639 => \"Enna\",2640 => \"Entracque\",2641 => \"Entratico\",8222 => \"Entreves\",2642 => \"Envie\",8397 => \"Episcopia\",2644 => \"Eraclea\",2645 => \"Erba\",2646 => \"Erbe'\",2647 => \"Erbezzo\",2648 => \"Erbusco\",2649 => \"Erchie\",2650 => \"Ercolano\",8531 => \"Eremo di Camaldoli\",8606 => \"Eremo di Carpegna\",2651 => \"Erice\",2652 => \"Erli\",2653 => \"Erto e casso\",2654 => \"Erula\",2655 => \"Erve\",2656 => \"Esanatoglia\",2657 => \"Escalaplano\",2658 => \"Escolca\",2659 => \"Esine\",2660 => \"Esino lario\",2661 => \"Esperia\",2662 => \"Esporlatu\",2663 => \"Este\",2664 => \"Esterzili\",2665 => \"Etroubles\",2666 => \"Eupilio\",2667 => \"Exilles\",2668 => \"Fabbrica Curone\",2669 => \"Fabbriche di vallico\",2670 => \"Fabbrico\",2671 => \"Fabriano\",2672 => \"Fabrica di Roma\",2673 => \"Fabrizia\",2674 => \"Fabro\",8458 => \"Fabro casello\",2675 => \"Faedis\",2676 => \"Faedo\",2677 => \"Faedo valtellino\",2678 => \"Faenza\",2679 => \"Faeto\",2680 => \"Fagagna\",2681 => \"Faggeto lario\",2682 => \"Faggiano\",2683 => \"Fagnano alto\",2684 => \"Fagnano castello\",2685 => \"Fagnano olona\",2686 => \"Fai della paganella\",2687 => \"Faicchio\",2688 => \"Falcade\",2689 => \"Falciano del massico\",2690 => \"Falconara albanese\",2691 => \"Falconara marittima\",2692 => \"Falcone\",2693 => \"Faleria\",2694 => \"Falerna\",8116 => \"Falerna Marina\",2695 => \"Falerone\",2696 => \"Fallo\",2697 => \"Falmenta\",2698 => \"Faloppio\",2699 => \"Falvaterra\",2700 => \"Falzes\",2701 => \"Fanano\",2702 => \"Fanna\",2703 => \"Fano\",2704 => \"Fano adriano\",2705 => \"Fara Filiorum Petri\",2706 => \"Fara gera d'Adda\",2707 => \"Fara in sabina\",2708 => \"Fara novarese\",2709 => \"Fara Olivana con Sola\",2710 => \"Fara San Martino\",2711 => \"Fara vicentino\",8360 => \"Fardella\",2713 => \"Farigliano\",2714 => \"Farindola\",2715 => \"Farini\",2716 => \"Farnese\",2717 => \"Farra d'alpago\",2718 => \"Farra d'Isonzo\",2719 => \"Farra di soligo\",2720 => \"Fasano\",2721 => \"Fascia\",2722 => \"Fauglia\",2723 => \"Faule\",2724 => \"Favale di malvaro\",2725 => \"Favara\",2726 => \"Faver\",2727 => \"Favignana\",2728 => \"Favria\",2729 => \"Feisoglio\",2730 => \"Feletto\",2731 => \"Felino\",2732 => \"Felitto\",2733 => \"Felizzano\",2734 => \"Felonica\",2735 => \"Feltre\",2736 => \"Fenegro'\",2737 => \"Fenestrelle\",2738 => \"Fenis\",2739 => \"Ferentillo\",2740 => \"Ferentino\",2741 => \"Ferla\",2742 => \"Fermignano\",2743 => \"Fermo\",2744 => \"Ferno\",2745 => \"Feroleto Antico\",2746 => \"Feroleto della chiesa\",8370 => \"Ferrandina\",2748 => \"Ferrara\",2749 => \"Ferrara di monte Baldo\",2750 => \"Ferrazzano\",2751 => \"Ferrera di Varese\",2752 => \"Ferrera Erbognone\",2753 => \"Ferrere\",2754 => \"Ferriere\",2755 => \"Ferruzzano\",2756 => \"Fiamignano\",2757 => \"Fiano\",2758 => \"Fiano romano\",2759 => \"Fiastra\",2760 => \"Fiave'\",2761 => \"Ficarazzi\",2762 => \"Ficarolo\",2763 => \"Ficarra\",2764 => \"Ficulle\",2765 => \"Fidenza\",2766 => \"Fie' allo Sciliar\",2767 => \"Fiera di primiero\",2768 => \"Fierozzo\",2769 => \"Fiesco\",2770 => \"Fiesole\",2771 => \"Fiesse\",2772 => \"Fiesso d'Artico\",2773 => \"Fiesso Umbertiano\",2774 => \"Figino Serenza\",2775 => \"Figline valdarno\",2776 => \"Figline Vegliaturo\",2777 => \"Filacciano\",2778 => \"Filadelfia\",2779 => \"Filago\",2780 => \"Filandari\",2781 => \"Filattiera\",2782 => \"Filettino\",2783 => \"Filetto\",8392 => \"Filiano\",2785 => \"Filighera\",2786 => \"Filignano\",2787 => \"Filogaso\",2788 => \"Filottrano\",2789 => \"Finale emilia\",2790 => \"Finale ligure\",2791 => \"Fino del monte\",2792 => \"Fino Mornasco\",2793 => \"Fiorano al Serio\",2794 => \"Fiorano canavese\",2795 => \"Fiorano modenese\",2796 => \"Fiordimonte\",2797 => \"Fiorenzuola d'arda\",2798 => \"Firenze\",8270 => \"Firenze Peretola\",2799 => \"Firenzuola\",2800 => \"Firmo\",2801 => \"Fisciano\",2802 => \"Fiuggi\",2803 => \"Fiumalbo\",2804 => \"Fiumara\",8489 => \"Fiumata\",2805 => \"Fiume veneto\",2806 => \"Fiumedinisi\",2807 => \"Fiumefreddo Bruzio\",2808 => \"Fiumefreddo di Sicilia\",2809 => \"Fiumicello\",2810 => \"Fiumicino\",2811 => \"Fiuminata\",2812 => \"Fivizzano\",2813 => \"Flaibano\",2814 => \"Flavon\",2815 => \"Flero\",2816 => \"Floresta\",2817 => \"Floridia\",2818 => \"Florinas\",2819 => \"Flumeri\",2820 => \"Fluminimaggiore\",2821 => \"Flussio\",2822 => \"Fobello\",2823 => \"Foggia\",2824 => \"Foglianise\",2825 => \"Fogliano redipuglia\",2826 => \"Foglizzo\",2827 => \"Foiano della chiana\",2828 => \"Foiano di val fortore\",2829 => \"Folgaria\",8202 => \"Folgarida\",2830 => \"Folignano\",2831 => \"Foligno\",2832 => \"Follina\",2833 => \"Follo\",2834 => \"Follonica\",2835 => \"Fombio\",2836 => \"Fondachelli Fantina\",2837 => \"Fondi\",2838 => \"Fondo\",2839 => \"Fonni\",2840 => \"Fontainemore\",2841 => \"Fontana liri\",2842 => \"Fontanafredda\",2843 => \"Fontanarosa\",8185 => \"Fontane Bianche\",2844 => \"Fontanelice\",2845 => \"Fontanella\",2846 => \"Fontanellato\",2847 => \"Fontanelle\",2848 => \"Fontaneto d'Agogna\",2849 => \"Fontanetto po\",2850 => \"Fontanigorda\",2851 => \"Fontanile\",2852 => \"Fontaniva\",2853 => \"Fonte\",8643 => \"Fonte Cerreto\",2854 => \"Fonte Nuova\",2855 => \"Fontecchio\",2856 => \"Fontechiari\",2857 => \"Fontegreca\",2858 => \"Fonteno\",2859 => \"Fontevivo\",2860 => \"Fonzaso\",2861 => \"Foppolo\",8540 => \"Foppolo IV Baita\",2862 => \"Forano\",2863 => \"Force\",2864 => \"Forchia\",2865 => \"Forcola\",2866 => \"Fordongianus\",2867 => \"Forenza\",2868 => \"Foresto sparso\",2869 => \"Forgaria nel friuli\",2870 => \"Forino\",2871 => \"Forio\",8551 => \"Forlì Ridolfi\",2872 => \"Forli'\",2873 => \"Forli' del sannio\",2874 => \"Forlimpopoli\",2875 => \"Formazza\",2876 => \"Formello\",2877 => \"Formia\",2878 => \"Formicola\",2879 => \"Formigara\",2880 => \"Formigine\",2881 => \"Formigliana\",2882 => \"Formignana\",2883 => \"Fornace\",2884 => \"Fornelli\",2885 => \"Forni Avoltri\",2886 => \"Forni di sopra\",2887 => \"Forni di sotto\",8161 => \"Forno Alpi Graie\",2888 => \"Forno canavese\",2889 => \"Forno di Zoldo\",2890 => \"Fornovo di Taro\",2891 => \"Fornovo San Giovanni\",2892 => \"Forte dei marmi\",2893 => \"Fortezza\",2894 => \"Fortunago\",2895 => \"Forza d'Agro'\",2896 => \"Fosciandora\",8435 => \"Fosdinovo\",2898 => \"Fossa\",2899 => \"Fossacesia\",2900 => \"Fossalta di Piave\",2901 => \"Fossalta di Portogruaro\",2902 => \"Fossalto\",2903 => \"Fossano\",2904 => \"Fossato di vico\",2905 => \"Fossato serralta\",2906 => \"Fosso'\",2907 => \"Fossombrone\",2908 => \"Foza\",2909 => \"Frabosa soprana\",2910 => \"Frabosa sottana\",2911 => \"Fraconalto\",2912 => \"Fragagnano\",2913 => \"Fragneto l'abate\",2914 => \"Fragneto monforte\",2915 => \"Fraine\",2916 => \"Framura\",2917 => \"Francavilla al mare\",2918 => \"Francavilla angitola\",2919 => \"Francavilla bisio\",2920 => \"Francavilla d'ete\",2921 => \"Francavilla di Sicilia\",2922 => \"Francavilla fontana\",8380 => \"Francavilla in sinni\",2924 => \"Francavilla marittima\",2925 => \"Francica\",2926 => \"Francofonte\",2927 => \"Francolise\",2928 => \"Frascaro\",2929 => \"Frascarolo\",2930 => \"Frascati\",2931 => \"Frascineto\",2932 => \"Frassilongo\",2933 => \"Frassinelle polesine\",2934 => \"Frassinello monferrato\",2935 => \"Frassineto po\",2936 => \"Frassinetto\",2937 => \"Frassino\",2938 => \"Frassinoro\",2939 => \"Frasso sabino\",2940 => \"Frasso telesino\",2941 => \"Fratta polesine\",2942 => \"Fratta todina\",2943 => \"Frattamaggiore\",2944 => \"Frattaminore\",2945 => \"Fratte rosa\",2946 => \"Frazzano'\",8137 => \"Fregene\",2947 => \"Fregona\",8667 => \"Frejusia\",2948 => \"Fresagrandinaria\",2949 => \"Fresonara\",2950 => \"Frigento\",2951 => \"Frignano\",2952 => \"Frinco\",2953 => \"Frisa\",2954 => \"Frisanco\",2955 => \"Front\",8153 => \"Frontignano\",2956 => \"Frontino\",2957 => \"Frontone\",8751 => \"Frontone - Monte Catria\",2958 => \"Frosinone\",8464 => \"Frosinone casello\",2959 => \"Frosolone\",2960 => \"Frossasco\",2961 => \"Frugarolo\",2962 => \"Fubine\",2963 => \"Fucecchio\",2964 => \"Fuipiano valle imagna\",2965 => \"Fumane\",2966 => \"Fumone\",2967 => \"Funes\",2968 => \"Furci\",2969 => \"Furci siculo\",2970 => \"Furnari\",2971 => \"Furore\",2972 => \"Furtei\",2973 => \"Fuscaldo\",2974 => \"Fusignano\",2975 => \"Fusine\",8702 => \"Fusine di Zoldo\",8131 => \"Fusine in Valromana\",2976 => \"Futani\",2977 => \"Gabbioneta binanuova\",2978 => \"Gabiano\",2979 => \"Gabicce mare\",8252 => \"Gabiet\",2980 => \"Gaby\",2981 => \"Gadesco Pieve Delmona\",2982 => \"Gadoni\",2983 => \"Gaeta\",2984 => \"Gaggi\",2985 => \"Gaggiano\",2986 => \"Gaggio montano\",2987 => \"Gaglianico\",2988 => \"Gagliano aterno\",2989 => \"Gagliano castelferrato\",2990 => \"Gagliano del capo\",2991 => \"Gagliato\",2992 => \"Gagliole\",2993 => \"Gaiarine\",2994 => \"Gaiba\",2995 => \"Gaiola\",2996 => \"Gaiole in chianti\",2997 => \"Gairo\",2998 => \"Gais\",2999 => \"Galati Mamertino\",3000 => \"Galatina\",3001 => \"Galatone\",3002 => \"Galatro\",3003 => \"Galbiate\",3004 => \"Galeata\",3005 => \"Galgagnano\",3006 => \"Gallarate\",3007 => \"Gallese\",3008 => \"Galliate\",3009 => \"Galliate lombardo\",3010 => \"Galliavola\",3011 => \"Gallicano\",3012 => \"Gallicano nel Lazio\",8364 => \"Gallicchio\",3014 => \"Galliera\",3015 => \"Galliera veneta\",3016 => \"Gallinaro\",3017 => \"Gallio\",3018 => \"Gallipoli\",3019 => \"Gallo matese\",3020 => \"Gallodoro\",3021 => \"Galluccio\",8315 => \"Galluzzo\",3022 => \"Galtelli\",3023 => \"Galzignano terme\",3024 => \"Gamalero\",3025 => \"Gambara\",3026 => \"Gambarana\",8105 => \"Gambarie\",3027 => \"Gambasca\",3028 => \"Gambassi terme\",3029 => \"Gambatesa\",3030 => \"Gambellara\",3031 => \"Gamberale\",3032 => \"Gambettola\",3033 => \"Gambolo'\",3034 => \"Gambugliano\",3035 => \"Gandellino\",3036 => \"Gandino\",3037 => \"Gandosso\",3038 => \"Gangi\",8425 => \"Garaguso\",3040 => \"Garbagna\",3041 => \"Garbagna novarese\",3042 => \"Garbagnate milanese\",3043 => \"Garbagnate monastero\",3044 => \"Garda\",3045 => \"Gardone riviera\",3046 => \"Gardone val trompia\",3047 => \"Garessio\",8349 => \"Garessio 2000\",3048 => \"Gargallo\",3049 => \"Gargazzone\",3050 => \"Gargnano\",3051 => \"Garlasco\",3052 => \"Garlate\",3053 => \"Garlenda\",3054 => \"Garniga\",3055 => \"Garzeno\",3056 => \"Garzigliana\",3057 => \"Gasperina\",3058 => \"Gassino torinese\",3059 => \"Gattatico\",3060 => \"Gatteo\",3061 => \"Gattico\",3062 => \"Gattinara\",3063 => \"Gavardo\",3064 => \"Gavazzana\",3065 => \"Gavello\",3066 => \"Gaverina terme\",3067 => \"Gavi\",3068 => \"Gavignano\",3069 => \"Gavirate\",3070 => \"Gavoi\",3071 => \"Gavorrano\",3072 => \"Gazoldo degli ippoliti\",3073 => \"Gazzada schianno\",3074 => \"Gazzaniga\",3075 => \"Gazzo\",3076 => \"Gazzo veronese\",3077 => \"Gazzola\",3078 => \"Gazzuolo\",3079 => \"Gela\",3080 => \"Gemmano\",3081 => \"Gemona del friuli\",3082 => \"Gemonio\",3083 => \"Genazzano\",3084 => \"Genga\",3085 => \"Genivolta\",3086 => \"Genola\",3087 => \"Genoni\",3088 => \"Genova\",8506 => \"Genova Nervi\",8276 => \"Genova Sestri\",3089 => \"Genuri\",3090 => \"Genzano di lucania\",3091 => \"Genzano di roma\",3092 => \"Genzone\",3093 => \"Gera lario\",3094 => \"Gerace\",3095 => \"Geraci siculo\",3096 => \"Gerano\",8176 => \"Geremeas\",3097 => \"Gerenzago\",3098 => \"Gerenzano\",3099 => \"Gergei\",3100 => \"Germagnano\",3101 => \"Germagno\",3102 => \"Germasino\",3103 => \"Germignaga\",8303 => \"Gerno di Lesmo\",3104 => \"Gerocarne\",3105 => \"Gerola alta\",3106 => \"Gerosa\",3107 => \"Gerre de'caprioli\",3108 => \"Gesico\",3109 => \"Gessate\",3110 => \"Gessopalena\",3111 => \"Gesturi\",3112 => \"Gesualdo\",3113 => \"Ghedi\",3114 => \"Ghemme\",8236 => \"Ghiacciaio Presena\",3115 => \"Ghiffa\",3116 => \"Ghilarza\",3117 => \"Ghisalba\",3118 => \"Ghislarengo\",3119 => \"Giacciano con baruchella\",3120 => \"Giaglione\",3121 => \"Gianico\",3122 => \"Giano dell'umbria\",3123 => \"Giano vetusto\",3124 => \"Giardinello\",3125 => \"Giardini Naxos\",3126 => \"Giarole\",3127 => \"Giarratana\",3128 => \"Giarre\",3129 => \"Giave\",3130 => \"Giaveno\",3131 => \"Giavera del montello\",3132 => \"Giba\",3133 => \"Gibellina\",3134 => \"Gifflenga\",3135 => \"Giffone\",3136 => \"Giffoni sei casali\",3137 => \"Giffoni valle piana\",3380 => \"Giglio castello\",3138 => \"Gignese\",3139 => \"Gignod\",3140 => \"Gildone\",3141 => \"Gimigliano\",8403 => \"Ginestra\",3143 => \"Ginestra degli schiavoni\",8430 => \"Ginosa\",3145 => \"Gioi\",3146 => \"Gioia dei marsi\",3147 => \"Gioia del colle\",3148 => \"Gioia sannitica\",3149 => \"Gioia tauro\",3150 => \"Gioiosa ionica\",3151 => \"Gioiosa marea\",3152 => \"Giove\",3153 => \"Giovinazzo\",3154 => \"Giovo\",3155 => \"Girasole\",3156 => \"Girifalco\",3157 => \"Gironico\",3158 => \"Gissi\",3159 => \"Giuggianello\",3160 => \"Giugliano in campania\",3161 => \"Giuliana\",3162 => \"Giuliano di roma\",3163 => \"Giuliano teatino\",3164 => \"Giulianova\",3165 => \"Giuncugnano\",3166 => \"Giungano\",3167 => \"Giurdignano\",3168 => \"Giussago\",3169 => \"Giussano\",3170 => \"Giustenice\",3171 => \"Giustino\",3172 => \"Giusvalla\",3173 => \"Givoletto\",3174 => \"Gizzeria\",3175 => \"Glorenza\",3176 => \"Godega di sant'urbano\",3177 => \"Godiasco\",3178 => \"Godrano\",3179 => \"Goito\",3180 => \"Golasecca\",3181 => \"Golferenzo\",3182 => \"Golfo aranci\",3183 => \"Gombito\",3184 => \"Gonars\",3185 => \"Goni\",3186 => \"Gonnesa\",3187 => \"Gonnoscodina\",3188 => \"Gonnosfanadiga\",3189 => \"Gonnosno'\",3190 => \"Gonnostramatza\",3191 => \"Gonzaga\",3192 => \"Gordona\",3193 => \"Gorga\",3194 => \"Gorgo al monticano\",3195 => \"Gorgoglione\",3196 => \"Gorgonzola\",3197 => \"Goriano sicoli\",3198 => \"Gorizia\",3199 => \"Gorla maggiore\",3200 => \"Gorla minore\",3201 => \"Gorlago\",3202 => \"Gorle\",3203 => \"Gornate olona\",3204 => \"Gorno\",3205 => \"Goro\",3206 => \"Gorreto\",3207 => \"Gorzegno\",3208 => \"Gosaldo\",3209 => \"Gossolengo\",3210 => \"Gottasecca\",3211 => \"Gottolengo\",3212 => \"Govone\",3213 => \"Gozzano\",3214 => \"Gradara\",3215 => \"Gradisca d'isonzo\",3216 => \"Grado\",3217 => \"Gradoli\",3218 => \"Graffignana\",3219 => \"Graffignano\",3220 => \"Graglia\",3221 => \"Gragnano\",3222 => \"Gragnano trebbiense\",3223 => \"Grammichele\",8485 => \"Gran Paradiso\",3224 => \"Grana\",3225 => \"Granaglione\",3226 => \"Granarolo dell'emilia\",3227 => \"Grancona\",8728 => \"Grand Combin\",8327 => \"Grand Crot\",3228 => \"Grandate\",3229 => \"Grandola ed uniti\",3230 => \"Graniti\",3231 => \"Granozzo con monticello\",3232 => \"Grantola\",3233 => \"Grantorto\",3234 => \"Granze\",8371 => \"Grassano\",8504 => \"Grassina\",3236 => \"Grassobbio\",3237 => \"Gratteri\",3238 => \"Grauno\",3239 => \"Gravedona\",3240 => \"Gravellona lomellina\",3241 => \"Gravellona toce\",3242 => \"Gravere\",3243 => \"Gravina di Catania\",3244 => \"Gravina in puglia\",3245 => \"Grazzanise\",3246 => \"Grazzano badoglio\",3247 => \"Greccio\",3248 => \"Greci\",3249 => \"Greggio\",3250 => \"Gremiasco\",3251 => \"Gressan\",3252 => \"Gressoney la trinite'\",3253 => \"Gressoney saint jean\",3254 => \"Greve in chianti\",3255 => \"Grezzago\",3256 => \"Grezzana\",3257 => \"Griante\",3258 => \"Gricignano di aversa\",8733 => \"Grigna\",3259 => \"Grignasco\",3260 => \"Grigno\",3261 => \"Grimacco\",3262 => \"Grimaldi\",3263 => \"Grinzane cavour\",3264 => \"Grisignano di zocco\",3265 => \"Grisolia\",8520 => \"Grivola\",3266 => \"Grizzana morandi\",3267 => \"Grognardo\",3268 => \"Gromo\",3269 => \"Grondona\",3270 => \"Grone\",3271 => \"Grontardo\",3272 => \"Gropello cairoli\",3273 => \"Gropparello\",3274 => \"Groscavallo\",3275 => \"Grosio\",3276 => \"Grosotto\",3277 => \"Grosseto\",3278 => \"Grosso\",3279 => \"Grottaferrata\",3280 => \"Grottaglie\",3281 => \"Grottaminarda\",3282 => \"Grottammare\",3283 => \"Grottazzolina\",3284 => \"Grotte\",3285 => \"Grotte di castro\",3286 => \"Grotteria\",3287 => \"Grottole\",3288 => \"Grottolella\",3289 => \"Gruaro\",3290 => \"Grugliasco\",3291 => \"Grumello cremonese ed uniti\",3292 => \"Grumello del monte\",8414 => \"Grumento nova\",3294 => \"Grumes\",3295 => \"Grumo appula\",3296 => \"Grumo nevano\",3297 => \"Grumolo delle abbadesse\",3298 => \"Guagnano\",3299 => \"Gualdo\",3300 => \"Gualdo Cattaneo\",3301 => \"Gualdo tadino\",3302 => \"Gualtieri\",3303 => \"Gualtieri sicamino'\",3304 => \"Guamaggiore\",3305 => \"Guanzate\",3306 => \"Guarcino\",3307 => \"Guarda veneta\",3308 => \"Guardabosone\",3309 => \"Guardamiglio\",3310 => \"Guardavalle\",3311 => \"Guardea\",3312 => \"Guardia lombardi\",8365 => \"Guardia perticara\",3314 => \"Guardia piemontese\",3315 => \"Guardia sanframondi\",3316 => \"Guardiagrele\",3317 => \"Guardialfiera\",3318 => \"Guardiaregia\",3319 => \"Guardistallo\",3320 => \"Guarene\",3321 => \"Guasila\",3322 => \"Guastalla\",3323 => \"Guazzora\",3324 => \"Gubbio\",3325 => \"Gudo visconti\",3326 => \"Guglionesi\",3327 => \"Guidizzolo\",8508 => \"Guidonia\",3328 => \"Guidonia montecelio\",3329 => \"Guiglia\",3330 => \"Guilmi\",3331 => \"Gurro\",3332 => \"Guspini\",3333 => \"Gussago\",3334 => \"Gussola\",3335 => \"Hone\",8587 => \"I Prati\",3336 => \"Idro\",3337 => \"Iglesias\",3338 => \"Igliano\",3339 => \"Ilbono\",3340 => \"Illasi\",3341 => \"Illorai\",3342 => \"Imbersago\",3343 => \"Imer\",3344 => \"Imola\",3345 => \"Imperia\",3346 => \"Impruneta\",3347 => \"Inarzo\",3348 => \"Incisa in val d'arno\",3349 => \"Incisa scapaccino\",3350 => \"Incudine\",3351 => \"Induno olona\",3352 => \"Ingria\",3353 => \"Intragna\",3354 => \"Introbio\",3355 => \"Introd\",3356 => \"Introdacqua\",3357 => \"Introzzo\",3358 => \"Inverigo\",3359 => \"Inverno e monteleone\",3360 => \"Inverso pinasca\",3361 => \"Inveruno\",3362 => \"Invorio\",3363 => \"Inzago\",3364 => \"Ionadi\",3365 => \"Irgoli\",3366 => \"Irma\",3367 => \"Irsina\",3368 => \"Isasca\",3369 => \"Isca sullo ionio\",3370 => \"Ischia\",3371 => \"Ischia di castro\",3372 => \"Ischitella\",3373 => \"Iseo\",3374 => \"Isera\",3375 => \"Isernia\",3376 => \"Isili\",3377 => \"Isnello\",8742 => \"Isola Albarella\",3378 => \"Isola d'asti\",3379 => \"Isola del cantone\",8190 => \"Isola del Giglio\",3381 => \"Isola del gran sasso d'italia\",3382 => \"Isola del liri\",3383 => \"Isola del piano\",3384 => \"Isola della scala\",3385 => \"Isola delle femmine\",3386 => \"Isola di capo rizzuto\",3387 => \"Isola di fondra\",8671 => \"Isola di Giannutri\",3388 => \"Isola dovarese\",3389 => \"Isola rizza\",8173 => \"Isola Rossa\",8183 => \"Isola Salina\",3390 => \"Isola sant'antonio\",3391 => \"Isola vicentina\",3392 => \"Isolabella\",3393 => \"Isolabona\",3394 => \"Isole tremiti\",3395 => \"Isorella\",3396 => \"Ispani\",3397 => \"Ispica\",3398 => \"Ispra\",3399 => \"Issiglio\",3400 => \"Issime\",3401 => \"Isso\",3402 => \"Issogne\",3403 => \"Istrana\",3404 => \"Itala\",3405 => \"Itri\",3406 => \"Ittireddu\",3407 => \"Ittiri\",3408 => \"Ivano fracena\",3409 => \"Ivrea\",3410 => \"Izano\",3411 => \"Jacurso\",3412 => \"Jelsi\",3413 => \"Jenne\",3414 => \"Jerago con Orago\",3415 => \"Jerzu\",3416 => \"Jesi\",3417 => \"Jesolo\",3418 => \"Jolanda di Savoia\",3419 => \"Joppolo\",3420 => \"Joppolo Giancaxio\",3421 => \"Jovencan\",8568 => \"Klausberg\",3422 => \"L'Aquila\",3423 => \"La Cassa\",8227 => \"La Lechere\",3424 => \"La Loggia\",3425 => \"La Maddalena\",3426 => \"La Magdeleine\",3427 => \"La Morra\",8617 => \"La Palud\",3428 => \"La Salle\",3429 => \"La Spezia\",3430 => \"La Thuile\",3431 => \"La Valle\",3432 => \"La Valle Agordina\",8762 => \"La Villa\",3433 => \"Labico\",3434 => \"Labro\",3435 => \"Lacchiarella\",3436 => \"Lacco ameno\",3437 => \"Lacedonia\",8245 => \"Laceno\",3438 => \"Laces\",3439 => \"Laconi\",3440 => \"Ladispoli\",8571 => \"Ladurno\",3441 => \"Laerru\",3442 => \"Laganadi\",3443 => \"Laghi\",3444 => \"Laglio\",3445 => \"Lagnasco\",3446 => \"Lago\",3447 => \"Lagonegro\",3448 => \"Lagosanto\",3449 => \"Lagundo\",3450 => \"Laigueglia\",3451 => \"Lainate\",3452 => \"Laino\",3453 => \"Laino borgo\",3454 => \"Laino castello\",3455 => \"Laion\",3456 => \"Laives\",3457 => \"Lajatico\",3458 => \"Lallio\",3459 => \"Lama dei peligni\",3460 => \"Lama mocogno\",3461 => \"Lambrugo\",8477 => \"Lamezia Santa Eufemia\",3462 => \"Lamezia terme\",3463 => \"Lamon\",8179 => \"Lampedusa\",3464 => \"Lampedusa e linosa\",3465 => \"Lamporecchio\",3466 => \"Lamporo\",3467 => \"Lana\",3468 => \"Lanciano\",8467 => \"Lanciano casello\",3469 => \"Landiona\",3470 => \"Landriano\",3471 => \"Langhirano\",3472 => \"Langosco\",3473 => \"Lanusei\",3474 => \"Lanuvio\",3475 => \"Lanzada\",3476 => \"Lanzo d'intelvi\",3477 => \"Lanzo torinese\",3478 => \"Lapedona\",3479 => \"Lapio\",3480 => \"Lappano\",3481 => \"Larciano\",3482 => \"Lardaro\",3483 => \"Lardirago\",3484 => \"Lari\",3485 => \"Lariano\",3486 => \"Larino\",3487 => \"Las plassas\",3488 => \"Lasa\",3489 => \"Lascari\",3490 => \"Lasino\",3491 => \"Lasnigo\",3492 => \"Lastebasse\",3493 => \"Lastra a signa\",3494 => \"Latera\",3495 => \"Laterina\",3496 => \"Laterza\",3497 => \"Latiano\",3498 => \"Latina\",3499 => \"Latisana\",3500 => \"Latronico\",3501 => \"Lattarico\",3502 => \"Lauco\",3503 => \"Laureana cilento\",3504 => \"Laureana di borrello\",3505 => \"Lauregno\",3506 => \"Laurenzana\",3507 => \"Lauria\",3508 => \"Lauriano\",3509 => \"Laurino\",3510 => \"Laurito\",3511 => \"Lauro\",3512 => \"Lavagna\",3513 => \"Lavagno\",3514 => \"Lavarone\",3515 => \"Lavello\",3516 => \"Lavena ponte tresa\",3517 => \"Laveno mombello\",3518 => \"Lavenone\",3519 => \"Laviano\",8695 => \"Lavinio\",3520 => \"Lavis\",3521 => \"Lazise\",3522 => \"Lazzate\",8434 => \"Le polle\",3523 => \"Lecce\",3524 => \"Lecce nei marsi\",3525 => \"Lecco\",3526 => \"Leffe\",3527 => \"Leggiuno\",3528 => \"Legnago\",3529 => \"Legnano\",3530 => \"Legnaro\",3531 => \"Lei\",3532 => \"Leini\",3533 => \"Leivi\",3534 => \"Lemie\",3535 => \"Lendinara\",3536 => \"Leni\",3537 => \"Lenna\",3538 => \"Lenno\",3539 => \"Leno\",3540 => \"Lenola\",3541 => \"Lenta\",3542 => \"Lentate sul seveso\",3543 => \"Lentella\",3544 => \"Lentiai\",3545 => \"Lentini\",3546 => \"Leonessa\",3547 => \"Leonforte\",3548 => \"Leporano\",3549 => \"Lequile\",3550 => \"Lequio berria\",3551 => \"Lequio tanaro\",3552 => \"Lercara friddi\",3553 => \"Lerici\",3554 => \"Lerma\",8250 => \"Les Suches\",3555 => \"Lesa\",3556 => \"Lesegno\",3557 => \"Lesignano de 'bagni\",3558 => \"Lesina\",3559 => \"Lesmo\",3560 => \"Lessolo\",3561 => \"Lessona\",3562 => \"Lestizza\",3563 => \"Letino\",3564 => \"Letojanni\",3565 => \"Lettere\",3566 => \"Lettomanoppello\",3567 => \"Lettopalena\",3568 => \"Levanto\",3569 => \"Levate\",3570 => \"Leverano\",3571 => \"Levice\",3572 => \"Levico terme\",3573 => \"Levone\",3574 => \"Lezzeno\",3575 => \"Liberi\",3576 => \"Librizzi\",3577 => \"Licata\",3578 => \"Licciana nardi\",3579 => \"Licenza\",3580 => \"Licodia eubea\",8442 => \"Lido degli Estensi\",8441 => \"Lido delle Nazioni\",8200 => \"Lido di Camaiore\",8136 => \"Lido di Ostia\",8746 => \"Lido di Volano\",8594 => \"Lido Marini\",3581 => \"Lierna\",3582 => \"Lignana\",3583 => \"Lignano sabbiadoro\",3584 => \"Ligonchio\",3585 => \"Ligosullo\",3586 => \"Lillianes\",3587 => \"Limana\",3588 => \"Limatola\",3589 => \"Limbadi\",3590 => \"Limbiate\",3591 => \"Limena\",3592 => \"Limido comasco\",3593 => \"Limina\",3594 => \"Limone piemonte\",3595 => \"Limone sul garda\",3596 => \"Limosano\",3597 => \"Linarolo\",3598 => \"Linguaglossa\",8180 => \"Linosa\",3599 => \"Lioni\",3600 => \"Lipari\",3601 => \"Lipomo\",3602 => \"Lirio\",3603 => \"Liscate\",3604 => \"Liscia\",3605 => \"Lisciano niccone\",3606 => \"Lisignago\",3607 => \"Lisio\",3608 => \"Lissone\",3609 => \"Liveri\",3610 => \"Livigno\",3611 => \"Livinallongo del col di lana\",3613 => \"Livo\",3612 => \"Livo\",3614 => \"Livorno\",3615 => \"Livorno ferraris\",3616 => \"Livraga\",3617 => \"Lizzanello\",3618 => \"Lizzano\",3619 => \"Lizzano in belvedere\",8300 => \"Lizzola\",3620 => \"Loano\",3621 => \"Loazzolo\",3622 => \"Locana\",3623 => \"Locate di triulzi\",3624 => \"Locate varesino\",3625 => \"Locatello\",3626 => \"Loceri\",3627 => \"Locorotondo\",3628 => \"Locri\",3629 => \"Loculi\",3630 => \"Lode'\",3631 => \"Lodi\",3632 => \"Lodi vecchio\",3633 => \"Lodine\",3634 => \"Lodrino\",3635 => \"Lograto\",3636 => \"Loiano\",8748 => \"Loiano RFI\",3637 => \"Loiri porto san paolo\",3638 => \"Lomagna\",3639 => \"Lomaso\",3640 => \"Lomazzo\",3641 => \"Lombardore\",3642 => \"Lombriasco\",3643 => \"Lomello\",3644 => \"Lona lases\",3645 => \"Lonate ceppino\",3646 => \"Lonate pozzolo\",3647 => \"Lonato\",3648 => \"Londa\",3649 => \"Longano\",3650 => \"Longare\",3651 => \"Longarone\",3652 => \"Longhena\",3653 => \"Longi\",3654 => \"Longiano\",3655 => \"Longobardi\",3656 => \"Longobucco\",3657 => \"Longone al segrino\",3658 => \"Longone sabino\",3659 => \"Lonigo\",3660 => \"Loranze'\",3661 => \"Loreggia\",3662 => \"Loreglia\",3663 => \"Lorenzago di cadore\",3664 => \"Lorenzana\",3665 => \"Loreo\",3666 => \"Loreto\",3667 => \"Loreto aprutino\",3668 => \"Loria\",8523 => \"Lorica\",3669 => \"Loro ciuffenna\",3670 => \"Loro piceno\",3671 => \"Lorsica\",3672 => \"Losine\",3673 => \"Lotzorai\",3674 => \"Lovere\",3675 => \"Lovero\",3676 => \"Lozio\",3677 => \"Lozza\",3678 => \"Lozzo atestino\",3679 => \"Lozzo di cadore\",3680 => \"Lozzolo\",3681 => \"Lu\",3682 => \"Lubriano\",3683 => \"Lucca\",3684 => \"Lucca sicula\",3685 => \"Lucera\",3686 => \"Lucignano\",3687 => \"Lucinasco\",3688 => \"Lucito\",3689 => \"Luco dei marsi\",3690 => \"Lucoli\",3691 => \"Lugagnano val d'arda\",3692 => \"Lugnacco\",3693 => \"Lugnano in teverina\",3694 => \"Lugo\",3695 => \"Lugo di vicenza\",3696 => \"Luino\",3697 => \"Luisago\",3698 => \"Lula\",3699 => \"Lumarzo\",3700 => \"Lumezzane\",3701 => \"Lunamatrona\",3702 => \"Lunano\",3703 => \"Lungavilla\",3704 => \"Lungro\",3705 => \"Luogosano\",3706 => \"Luogosanto\",3707 => \"Lupara\",3708 => \"Lurago d'erba\",3709 => \"Lurago marinone\",3710 => \"Lurano\",3711 => \"Luras\",3712 => \"Lurate caccivio\",3713 => \"Lusciano\",8636 => \"Lusentino\",3714 => \"Luserna\",3715 => \"Luserna san giovanni\",3716 => \"Lusernetta\",3717 => \"Lusevera\",3718 => \"Lusia\",3719 => \"Lusiana\",3720 => \"Lusiglie'\",3721 => \"Luson\",3722 => \"Lustra\",8572 => \"Lutago\",3723 => \"Luvinate\",3724 => \"Luzzana\",3725 => \"Luzzara\",3726 => \"Luzzi\",8447 => \"L`Aquila est\",8446 => \"L`Aquila ovest\",3727 => \"Maccagno\",3728 => \"Maccastorna\",3729 => \"Macchia d'isernia\",3730 => \"Macchia valfortore\",3731 => \"Macchiagodena\",3732 => \"Macello\",3733 => \"Macerata\",3734 => \"Macerata campania\",3735 => \"Macerata feltria\",3736 => \"Macherio\",3737 => \"Maclodio\",3738 => \"Macomer\",3739 => \"Macra\",3740 => \"Macugnaga\",3741 => \"Maddaloni\",3742 => \"Madesimo\",3743 => \"Madignano\",3744 => \"Madone\",3745 => \"Madonna del sasso\",8201 => \"Madonna di Campiglio\",3746 => \"Maenza\",3747 => \"Mafalda\",3748 => \"Magasa\",3749 => \"Magenta\",3750 => \"Maggiora\",3751 => \"Magherno\",3752 => \"Magione\",3753 => \"Magisano\",3754 => \"Magliano alfieri\",3755 => \"Magliano alpi\",8461 => \"Magliano casello\",3756 => \"Magliano de' marsi\",3757 => \"Magliano di tenna\",3758 => \"Magliano in toscana\",3759 => \"Magliano romano\",3760 => \"Magliano sabina\",3761 => \"Magliano vetere\",3762 => \"Maglie\",3763 => \"Magliolo\",3764 => \"Maglione\",3765 => \"Magnacavallo\",3766 => \"Magnago\",3767 => \"Magnano\",3768 => \"Magnano in riviera\",8322 => \"Magnolta\",3769 => \"Magomadas\",3770 => \"Magre' sulla strada del vino\",3771 => \"Magreglio\",3772 => \"Maida\",3773 => \"Maiera'\",3774 => \"Maierato\",3775 => \"Maiolati spontini\",3776 => \"Maiolo\",3777 => \"Maiori\",3778 => \"Mairago\",3779 => \"Mairano\",3780 => \"Maissana\",3781 => \"Majano\",3782 => \"Malagnino\",3783 => \"Malalbergo\",3784 => \"Malborghetto valbruna\",3785 => \"Malcesine\",3786 => \"Male'\",3787 => \"Malegno\",3788 => \"Maleo\",3789 => \"Malesco\",3790 => \"Maletto\",3791 => \"Malfa\",8229 => \"Malga Ciapela\",8333 => \"Malga Polzone\",8661 => \"Malga San Giorgio\",3792 => \"Malgesso\",3793 => \"Malgrate\",3794 => \"Malito\",3795 => \"Mallare\",3796 => \"Malles Venosta\",3797 => \"Malnate\",3798 => \"Malo\",3799 => \"Malonno\",3800 => \"Malosco\",3801 => \"Maltignano\",3802 => \"Malvagna\",3803 => \"Malvicino\",3804 => \"Malvito\",3805 => \"Mammola\",3806 => \"Mamoiada\",3807 => \"Manciano\",3808 => \"Mandanici\",3809 => \"Mandas\",3810 => \"Mandatoriccio\",3811 => \"Mandela\",3812 => \"Mandello del lario\",3813 => \"Mandello vitta\",3814 => \"Manduria\",3815 => \"Manerba del garda\",3816 => \"Manerbio\",3817 => \"Manfredonia\",3818 => \"Mango\",3819 => \"Mangone\",3820 => \"Maniace\",3821 => \"Maniago\",3822 => \"Manocalzati\",3823 => \"Manoppello\",3824 => \"Mansue'\",3825 => \"Manta\",3826 => \"Mantello\",3827 => \"Mantova\",8129 => \"Manzano\",3829 => \"Manziana\",3830 => \"Mapello\",3831 => \"Mara\",3832 => \"Maracalagonis\",3833 => \"Maranello\",3834 => \"Marano di napoli\",3835 => \"Marano di valpolicella\",3836 => \"Marano equo\",3837 => \"Marano lagunare\",3838 => \"Marano marchesato\",3839 => \"Marano principato\",3840 => \"Marano sul panaro\",3841 => \"Marano ticino\",3842 => \"Marano vicentino\",3843 => \"Maranzana\",3844 => \"Maratea\",3845 => \"Marcallo con Casone\",3846 => \"Marcaria\",3847 => \"Marcedusa\",3848 => \"Marcellina\",3849 => \"Marcellinara\",3850 => \"Marcetelli\",3851 => \"Marcheno\",3852 => \"Marchirolo\",3853 => \"Marciana\",3854 => \"Marciana marina\",3855 => \"Marcianise\",3856 => \"Marciano della chiana\",3857 => \"Marcignago\",3858 => \"Marcon\",3859 => \"Marebbe\",8478 => \"Marene\",3861 => \"Mareno di piave\",3862 => \"Marentino\",3863 => \"Maretto\",3864 => \"Margarita\",3865 => \"Margherita di savoia\",3866 => \"Margno\",3867 => \"Mariana mantovana\",3868 => \"Mariano comense\",3869 => \"Mariano del friuli\",3870 => \"Marianopoli\",3871 => \"Mariglianella\",3872 => \"Marigliano\",8291 => \"Marilleva\",8490 => \"Marina di Arbus\",8599 => \"Marina di Camerota\",8582 => \"Marina di Campo\",8111 => \"Marina di Cariati\",8118 => \"Marina di Cetraro\",8175 => \"Marina di Gairo\",8164 => \"Marina di Ginosa\",3873 => \"Marina di gioiosa ionica\",8166 => \"Marina di Leuca\",8184 => \"Marina di Modica\",8156 => \"Marina di montenero\",8165 => \"Marina di Ostuni\",8186 => \"Marina di Palma\",8141 => \"Marina di Pescia Romana\",8591 => \"Marina di Pescoluse\",8298 => \"Marina di Pietrasanta\",8128 => \"Marina di Ravenna\",8174 => \"Marina di Sorso\",8188 => \"Marinella\",3874 => \"Marineo\",3875 => \"Marino\",3876 => \"Marlengo\",3877 => \"Marliana\",3878 => \"Marmentino\",3879 => \"Marmirolo\",8205 => \"Marmolada\",3880 => \"Marmora\",3881 => \"Marnate\",3882 => \"Marone\",3883 => \"Maropati\",3884 => \"Marostica\",8154 => \"Marotta\",3885 => \"Marradi\",3886 => \"Marrubiu\",3887 => \"Marsaglia\",3888 => \"Marsala\",3889 => \"Marsciano\",3890 => \"Marsico nuovo\",3891 => \"Marsicovetere\",3892 => \"Marta\",3893 => \"Martano\",3894 => \"Martellago\",3895 => \"Martello\",3896 => \"Martignacco\",3897 => \"Martignana di po\",3898 => \"Martignano\",3899 => \"Martina franca\",3900 => \"Martinengo\",3901 => \"Martiniana po\",3902 => \"Martinsicuro\",3903 => \"Martirano\",3904 => \"Martirano lombardo\",3905 => \"Martis\",3906 => \"Martone\",3907 => \"Marudo\",3908 => \"Maruggio\",3909 => \"Marzabotto\",3910 => \"Marzano\",3911 => \"Marzano appio\",3912 => \"Marzano di nola\",3913 => \"Marzi\",3914 => \"Marzio\",3915 => \"Masainas\",3916 => \"Masate\",3917 => \"Mascali\",3918 => \"Mascalucia\",3919 => \"Maschito\",3920 => \"Masciago primo\",3921 => \"Maser\",3922 => \"Masera\",3923 => \"Masera' di Padova\",3924 => \"Maserada sul piave\",3925 => \"Masi\",3926 => \"Masi torello\",3927 => \"Masio\",3928 => \"Maslianico\",8216 => \"Maso Corto\",3929 => \"Mason vicentino\",3930 => \"Masone\",3931 => \"Massa\",3932 => \"Massa d'albe\",3933 => \"Massa di somma\",3934 => \"Massa e cozzile\",3935 => \"Massa fermana\",3936 => \"Massa fiscaglia\",3937 => \"Massa lombarda\",3938 => \"Massa lubrense\",3939 => \"Massa marittima\",3940 => \"Massa martana\",3941 => \"Massafra\",3942 => \"Massalengo\",3943 => \"Massanzago\",3944 => \"Massarosa\",3945 => \"Massazza\",3946 => \"Massello\",3947 => \"Masserano\",3948 => \"Massignano\",3949 => \"Massimeno\",3950 => \"Massimino\",3951 => \"Massino visconti\",3952 => \"Massiola\",3953 => \"Masullas\",3954 => \"Matelica\",3955 => \"Matera\",3956 => \"Mathi\",3957 => \"Matino\",3958 => \"Matrice\",3959 => \"Mattie\",3960 => \"Mattinata\",3961 => \"Mazara del vallo\",3962 => \"Mazzano\",3963 => \"Mazzano romano\",3964 => \"Mazzarino\",3965 => \"Mazzarra' sant'andrea\",3966 => \"Mazzarrone\",3967 => \"Mazze'\",3968 => \"Mazzin\",3969 => \"Mazzo di valtellina\",3970 => \"Meana di susa\",3971 => \"Meana sardo\",3972 => \"Meda\",3973 => \"Mede\",3974 => \"Medea\",3975 => \"Medesano\",3976 => \"Medicina\",3977 => \"Mediglia\",3978 => \"Medolago\",3979 => \"Medole\",3980 => \"Medolla\",3981 => \"Meduna di livenza\",3982 => \"Meduno\",3983 => \"Megliadino san fidenzio\",3984 => \"Megliadino san vitale\",3985 => \"Meina\",3986 => \"Mel\",3987 => \"Melara\",3988 => \"Melazzo\",8443 => \"Meldola\",3990 => \"Mele\",3991 => \"Melegnano\",3992 => \"Melendugno\",3993 => \"Meleti\",8666 => \"Melezet\",3994 => \"Melfi\",3995 => \"Melicucca'\",3996 => \"Melicucco\",3997 => \"Melilli\",3998 => \"Melissa\",3999 => \"Melissano\",4000 => \"Melito di napoli\",4001 => \"Melito di porto salvo\",4002 => \"Melito irpino\",4003 => \"Melizzano\",4004 => \"Melle\",4005 => \"Mello\",4006 => \"Melpignano\",4007 => \"Meltina\",4008 => \"Melzo\",4009 => \"Menaggio\",4010 => \"Menarola\",4011 => \"Menconico\",4012 => \"Mendatica\",4013 => \"Mendicino\",4014 => \"Menfi\",4015 => \"Mentana\",4016 => \"Meolo\",4017 => \"Merana\",4018 => \"Merano\",8351 => \"Merano 2000\",4019 => \"Merate\",4020 => \"Mercallo\",4021 => \"Mercatello sul metauro\",4022 => \"Mercatino conca\",8437 => \"Mercato\",4023 => \"Mercato san severino\",4024 => \"Mercato saraceno\",4025 => \"Mercenasco\",4026 => \"Mercogliano\",4027 => \"Mereto di tomba\",4028 => \"Mergo\",4029 => \"Mergozzo\",4030 => \"Meri'\",4031 => \"Merlara\",4032 => \"Merlino\",4033 => \"Merone\",4034 => \"Mesagne\",4035 => \"Mese\",4036 => \"Mesenzana\",4037 => \"Mesero\",4038 => \"Mesola\",4039 => \"Mesoraca\",4040 => \"Messina\",4041 => \"Mestrino\",4042 => \"Meta\",8104 => \"Metaponto\",4043 => \"Meugliano\",4044 => \"Mezzago\",4045 => \"Mezzana\",4046 => \"Mezzana bigli\",4047 => \"Mezzana mortigliengo\",4048 => \"Mezzana rabattone\",4049 => \"Mezzane di sotto\",4050 => \"Mezzanego\",4051 => \"Mezzani\",4052 => \"Mezzanino\",4053 => \"Mezzano\",4054 => \"Mezzegra\",4055 => \"Mezzenile\",4056 => \"Mezzocorona\",4057 => \"Mezzojuso\",4058 => \"Mezzoldo\",4059 => \"Mezzolombardo\",4060 => \"Mezzomerico\",8524 => \"MI Olgettina\",8526 => \"MI Primaticcio\",8527 => \"MI Silla\",8525 => \"MI Zama\",4061 => \"Miagliano\",4062 => \"Miane\",4063 => \"Miasino\",4064 => \"Miazzina\",4065 => \"Micigliano\",4066 => \"Miggiano\",4067 => \"Miglianico\",4068 => \"Migliarino\",4069 => \"Migliaro\",4070 => \"Miglierina\",4071 => \"Miglionico\",4072 => \"Mignanego\",4073 => \"Mignano monte lungo\",4074 => \"Milano\",8495 => \"Milano Linate\",8496 => \"Milano Malpensa\",8240 => \"Milano marittima\",4075 => \"Milazzo\",4076 => \"Milena\",4077 => \"Mileto\",4078 => \"Milis\",4079 => \"Militello in val di catania\",4080 => \"Militello rosmarino\",4081 => \"Millesimo\",4082 => \"Milo\",4083 => \"Milzano\",4084 => \"Mineo\",4085 => \"Minerbe\",4086 => \"Minerbio\",4087 => \"Minervino di lecce\",4088 => \"Minervino murge\",4089 => \"Minori\",4090 => \"Minturno\",4091 => \"Minucciano\",4092 => \"Mioglia\",4093 => \"Mira\",4094 => \"Mirabella eclano\",4095 => \"Mirabella imbaccari\",4096 => \"Mirabello\",4097 => \"Mirabello monferrato\",4098 => \"Mirabello sannitico\",4099 => \"Miradolo terme\",4100 => \"Miranda\",4101 => \"Mirandola\",4102 => \"Mirano\",4103 => \"Mirto\",4104 => \"Misano adriatico\",4105 => \"Misano di gera d'adda\",4106 => \"Misilmeri\",4107 => \"Misinto\",4108 => \"Missaglia\",8416 => \"Missanello\",4110 => \"Misterbianco\",4111 => \"Mistretta\",8623 => \"Misurina\",4112 => \"Moasca\",4113 => \"Moconesi\",4114 => \"Modena\",4115 => \"Modica\",4116 => \"Modigliana\",4117 => \"Modolo\",4118 => \"Modugno\",4119 => \"Moena\",4120 => \"Moggio\",4121 => \"Moggio udinese\",4122 => \"Moglia\",4123 => \"Mogliano\",4124 => \"Mogliano veneto\",4125 => \"Mogorella\",4126 => \"Mogoro\",4127 => \"Moiano\",8615 => \"Moie\",4128 => \"Moimacco\",4129 => \"Moio Alcantara\",4130 => \"Moio de'calvi\",4131 => \"Moio della civitella\",4132 => \"Moiola\",4133 => \"Mola di bari\",4134 => \"Molare\",4135 => \"Molazzana\",4136 => \"Molfetta\",4137 => \"Molina aterno\",4138 => \"Molina di ledro\",4139 => \"Molinara\",4140 => \"Molinella\",4141 => \"Molini di triora\",4142 => \"Molino dei torti\",4143 => \"Molise\",4144 => \"Moliterno\",4145 => \"Mollia\",4146 => \"Molochio\",4147 => \"Molteno\",4148 => \"Moltrasio\",4149 => \"Molvena\",4150 => \"Molveno\",4151 => \"Mombaldone\",4152 => \"Mombarcaro\",4153 => \"Mombaroccio\",4154 => \"Mombaruzzo\",4155 => \"Mombasiglio\",4156 => \"Mombello di torino\",4157 => \"Mombello monferrato\",4158 => \"Mombercelli\",4159 => \"Momo\",4160 => \"Mompantero\",4161 => \"Mompeo\",4162 => \"Momperone\",4163 => \"Monacilioni\",4164 => \"Monale\",4165 => \"Monasterace\",4166 => \"Monastero bormida\",4167 => \"Monastero di lanzo\",4168 => \"Monastero di vasco\",4169 => \"Monasterolo casotto\",4170 => \"Monasterolo del castello\",4171 => \"Monasterolo di savigliano\",4172 => \"Monastier di treviso\",4173 => \"Monastir\",4174 => \"Moncalieri\",4175 => \"Moncalvo\",4176 => \"Moncenisio\",4177 => \"Moncestino\",4178 => \"Monchiero\",4179 => \"Monchio delle corti\",4180 => \"Monclassico\",4181 => \"Moncrivello\",8649 => \"Moncucco\",4182 => \"Moncucco torinese\",4183 => \"Mondaino\",4184 => \"Mondavio\",4185 => \"Mondolfo\",4186 => \"Mondovi'\",4187 => \"Mondragone\",4188 => \"Moneglia\",8143 => \"Monesi\",4189 => \"Monesiglio\",4190 => \"Monfalcone\",4191 => \"Monforte d'alba\",4192 => \"Monforte san giorgio\",4193 => \"Monfumo\",4194 => \"Mongardino\",4195 => \"Monghidoro\",4196 => \"Mongiana\",4197 => \"Mongiardino ligure\",8637 => \"Monginevro Montgenevre\",4198 => \"Mongiuffi melia\",4199 => \"Mongrando\",4200 => \"Mongrassano\",4201 => \"Monguelfo\",4202 => \"Monguzzo\",4203 => \"Moniga del garda\",4204 => \"Monleale\",4205 => \"Monno\",4206 => \"Monopoli\",4207 => \"Monreale\",4208 => \"Monrupino\",4209 => \"Monsampietro morico\",4210 => \"Monsampolo del tronto\",4211 => \"Monsano\",4212 => \"Monselice\",4213 => \"Monserrato\",4214 => \"Monsummano terme\",4215 => \"Monta'\",4216 => \"Montabone\",4217 => \"Montacuto\",4218 => \"Montafia\",4219 => \"Montagano\",4220 => \"Montagna\",4221 => \"Montagna in valtellina\",8301 => \"Montagnana\",4223 => \"Montagnareale\",4224 => \"Montagne\",4225 => \"Montaguto\",4226 => \"Montaione\",4227 => \"Montalbano Elicona\",4228 => \"Montalbano jonico\",4229 => \"Montalcino\",4230 => \"Montaldeo\",4231 => \"Montaldo bormida\",4232 => \"Montaldo di mondovi'\",4233 => \"Montaldo roero\",4234 => \"Montaldo scarampi\",4235 => \"Montaldo torinese\",4236 => \"Montale\",4237 => \"Montalenghe\",4238 => \"Montallegro\",4239 => \"Montalto delle marche\",4240 => \"Montalto di castro\",4241 => \"Montalto dora\",4242 => \"Montalto ligure\",4243 => \"Montalto pavese\",4244 => \"Montalto uffugo\",4245 => \"Montanaro\",4246 => \"Montanaso lombardo\",4247 => \"Montanera\",4248 => \"Montano antilia\",4249 => \"Montano lucino\",4250 => \"Montappone\",4251 => \"Montaquila\",4252 => \"Montasola\",4253 => \"Montauro\",4254 => \"Montazzoli\",8738 => \"Monte Alben\",8350 => \"Monte Amiata\",4255 => \"Monte Argentario\",8696 => \"Monte Avena\",8660 => \"Monte Baldo\",8251 => \"Monte Belvedere\",8720 => \"Monte Bianco\",8292 => \"Monte Bondone\",8757 => \"Monte Caio\",8149 => \"Monte Campione\",4256 => \"Monte Castello di Vibio\",4257 => \"Monte Cavallo\",4258 => \"Monte Cerignone\",8722 => \"Monte Cervino\",8533 => \"Monte Cimone\",4259 => \"Monte Colombo\",8658 => \"Monte Cornizzolo\",4260 => \"Monte Cremasco\",4261 => \"Monte di Malo\",4262 => \"Monte di Procida\",8581 => \"Monte Elmo\",8701 => \"Monte Faloria\",4263 => \"Monte Giberto\",8486 => \"Monte Gomito\",8232 => \"Monte Grappa\",4264 => \"Monte Isola\",8735 => \"Monte Legnone\",8631 => \"Monte Livata\",8574 => \"Monte Lussari\",8484 => \"Monte Malanotte\",4265 => \"Monte Marenzo\",8611 => \"Monte Matajur\",8732 => \"Monte Matto\",8266 => \"Monte Moro\",8697 => \"Monte Mucrone\",8619 => \"Monte Pigna\",8288 => \"Monte Pora Base\",8310 => \"Monte Pora Cima\",4266 => \"Monte Porzio\",4267 => \"Monte Porzio Catone\",8608 => \"Monte Prata\",8320 => \"Monte Pratello\",4268 => \"Monte Rinaldo\",4269 => \"Monte Roberto\",4270 => \"Monte Romano\",4271 => \"Monte San Biagio\",4272 => \"Monte San Giacomo\",4273 => \"Monte San Giovanni Campano\",4274 => \"Monte San Giovanni in Sabina\",4275 => \"Monte San Giusto\",4276 => \"Monte San Martino\",4277 => \"Monte San Pietrangeli\",4278 => \"Monte San Pietro\",8538 => \"Monte San Primo\",4279 => \"Monte San Savino\",8652 => \"Monte San Vigilio\",4280 => \"Monte San Vito\",4281 => \"Monte Sant'Angelo\",4282 => \"Monte Santa Maria Tiberina\",8570 => \"Monte Scuro\",8278 => \"Monte Spinale\",4283 => \"Monte Urano\",8758 => \"Monte Ventasso\",4284 => \"Monte Vidon Combatte\",4285 => \"Monte Vidon Corrado\",8729 => \"Monte Volturino\",8346 => \"Monte Zoncolan\",4286 => \"Montebello della Battaglia\",4287 => \"Montebello di Bertona\",4288 => \"Montebello Ionico\",4289 => \"Montebello sul Sangro\",4290 => \"Montebello Vicentino\",4291 => \"Montebelluna\",4292 => \"Montebruno\",4293 => \"Montebuono\",4294 => \"Montecalvo in Foglia\",4295 => \"Montecalvo Irpino\",4296 => \"Montecalvo Versiggia\",4297 => \"Montecarlo\",4298 => \"Montecarotto\",4299 => \"Montecassiano\",4300 => \"Montecastello\",4301 => \"Montecastrilli\",4303 => \"Montecatini terme\",4302 => \"Montecatini Val di Cecina\",4304 => \"Montecchia di Crosara\",4305 => \"Montecchio\",4306 => \"Montecchio Emilia\",4307 => \"Montecchio Maggiore\",4308 => \"Montecchio Precalcino\",4309 => \"Montechiaro d'Acqui\",4310 => \"Montechiaro d'Asti\",4311 => \"Montechiarugolo\",4312 => \"Monteciccardo\",4313 => \"Montecilfone\",4314 => \"Montecompatri\",4315 => \"Montecopiolo\",4316 => \"Montecorice\",4317 => \"Montecorvino Pugliano\",4318 => \"Montecorvino Rovella\",4319 => \"Montecosaro\",4320 => \"Montecrestese\",4321 => \"Montecreto\",4322 => \"Montedinove\",4323 => \"Montedoro\",4324 => \"Montefalcione\",4325 => \"Montefalco\",4326 => \"Montefalcone Appennino\",4327 => \"Montefalcone di Val Fortore\",4328 => \"Montefalcone nel Sannio\",4329 => \"Montefano\",4330 => \"Montefelcino\",4331 => \"Monteferrante\",4332 => \"Montefiascone\",4333 => \"Montefino\",4334 => \"Montefiore conca\",4335 => \"Montefiore dell'Aso\",4336 => \"Montefiorino\",4337 => \"Monteflavio\",4338 => \"Monteforte Cilento\",4339 => \"Monteforte d'Alpone\",4340 => \"Monteforte Irpino\",4341 => \"Montefortino\",4342 => \"Montefranco\",4343 => \"Montefredane\",4344 => \"Montefusco\",4345 => \"Montegabbione\",4346 => \"Montegalda\",4347 => \"Montegaldella\",4348 => \"Montegallo\",4349 => \"Montegioco\",4350 => \"Montegiordano\",4351 => \"Montegiorgio\",4352 => \"Montegranaro\",4353 => \"Montegridolfo\",4354 => \"Montegrimano\",4355 => \"Montegrino valtravaglia\",4356 => \"Montegrosso d'Asti\",4357 => \"Montegrosso pian latte\",4358 => \"Montegrotto terme\",4359 => \"Monteiasi\",4360 => \"Montelabbate\",4361 => \"Montelanico\",4362 => \"Montelapiano\",4363 => \"Monteleone d'orvieto\",4364 => \"Monteleone di fermo\",4365 => \"Monteleone di puglia\",4366 => \"Monteleone di spoleto\",4367 => \"Monteleone rocca doria\",4368 => \"Monteleone sabino\",4369 => \"Montelepre\",4370 => \"Montelibretti\",4371 => \"Montella\",4372 => \"Montello\",4373 => \"Montelongo\",4374 => \"Montelparo\",4375 => \"Montelupo albese\",4376 => \"Montelupo fiorentino\",4377 => \"Montelupone\",4378 => \"Montemaggiore al metauro\",4379 => \"Montemaggiore belsito\",4380 => \"Montemagno\",4381 => \"Montemale di cuneo\",4382 => \"Montemarano\",4383 => \"Montemarciano\",4384 => \"Montemarzino\",4385 => \"Montemesola\",4386 => \"Montemezzo\",4387 => \"Montemignaio\",4388 => \"Montemiletto\",8401 => \"Montemilone\",4390 => \"Montemitro\",4391 => \"Montemonaco\",4392 => \"Montemurlo\",8408 => \"Montemurro\",4394 => \"Montenars\",4395 => \"Montenero di bisaccia\",4396 => \"Montenero sabino\",4397 => \"Montenero val cocchiara\",4398 => \"Montenerodomo\",4399 => \"Monteodorisio\",4400 => \"Montepaone\",4401 => \"Monteparano\",8296 => \"Montepiano\",4402 => \"Monteprandone\",4403 => \"Montepulciano\",4404 => \"Monterado\",4405 => \"Monterchi\",4406 => \"Montereale\",4407 => \"Montereale valcellina\",4408 => \"Monterenzio\",4409 => \"Monteriggioni\",4410 => \"Monteroduni\",4411 => \"Monteroni d'arbia\",4412 => \"Monteroni di lecce\",4413 => \"Monterosi\",4414 => \"Monterosso al mare\",4415 => \"Monterosso almo\",4416 => \"Monterosso calabro\",4417 => \"Monterosso grana\",4418 => \"Monterotondo\",4419 => \"Monterotondo marittimo\",4420 => \"Monterubbiano\",4421 => \"Montesano salentino\",4422 => \"Montesano sulla marcellana\",4423 => \"Montesarchio\",8389 => \"Montescaglioso\",4425 => \"Montescano\",4426 => \"Montescheno\",4427 => \"Montescudaio\",4428 => \"Montescudo\",4429 => \"Montese\",4430 => \"Montesegale\",4431 => \"Montesilvano\",8491 => \"Montesilvano Marina\",4432 => \"Montespertoli\",1730 => \"Montespluga\",4433 => \"Monteu da Po\",4434 => \"Monteu roero\",4435 => \"Montevago\",4436 => \"Montevarchi\",4437 => \"Montevecchia\",4438 => \"Monteveglio\",4439 => \"Monteverde\",4440 => \"Monteverdi marittimo\",8589 => \"Montevergine\",4441 => \"Monteviale\",4442 => \"Montezemolo\",4443 => \"Monti\",4444 => \"Montiano\",4445 => \"Monticelli brusati\",4446 => \"Monticelli d'ongina\",4447 => \"Monticelli pavese\",4448 => \"Monticello brianza\",4449 => \"Monticello conte otto\",4450 => \"Monticello d'alba\",4451 => \"Montichiari\",4452 => \"Monticiano\",4453 => \"Montieri\",4454 => \"Montiglio monferrato\",4455 => \"Montignoso\",4456 => \"Montirone\",4457 => \"Montjovet\",4458 => \"Montodine\",4459 => \"Montoggio\",4460 => \"Montone\",4461 => \"Montopoli di sabina\",4462 => \"Montopoli in val d'arno\",4463 => \"Montorfano\",4464 => \"Montorio al vomano\",4465 => \"Montorio nei frentani\",4466 => \"Montorio romano\",4467 => \"Montoro inferiore\",4468 => \"Montoro superiore\",4469 => \"Montorso vicentino\",4470 => \"Montottone\",4471 => \"Montresta\",4472 => \"Montu' beccaria\",8326 => \"Montzeuc\",4473 => \"Monvalle\",8726 => \"Monviso\",4474 => \"Monza\",4475 => \"Monzambano\",4476 => \"Monzuno\",4477 => \"Morano calabro\",4478 => \"Morano sul Po\",4479 => \"Moransengo\",4480 => \"Moraro\",4481 => \"Morazzone\",4482 => \"Morbegno\",4483 => \"Morbello\",4484 => \"Morciano di leuca\",4485 => \"Morciano di romagna\",4486 => \"Morcone\",4487 => \"Mordano\",8262 => \"Morel\",4488 => \"Morengo\",4489 => \"Mores\",4490 => \"Moresco\",4491 => \"Moretta\",4492 => \"Morfasso\",4493 => \"Morgano\",8717 => \"Morgantina\",4494 => \"Morgex\",4495 => \"Morgongiori\",4496 => \"Mori\",4497 => \"Moriago della battaglia\",4498 => \"Moricone\",4499 => \"Morigerati\",4500 => \"Morimondo\",4501 => \"Morino\",4502 => \"Moriondo torinese\",4503 => \"Morlupo\",4504 => \"Mormanno\",4505 => \"Mornago\",4506 => \"Mornese\",4507 => \"Mornico al serio\",4508 => \"Mornico losana\",4509 => \"Morolo\",4510 => \"Morozzo\",4511 => \"Morra de sanctis\",4512 => \"Morro d'alba\",4513 => \"Morro d'oro\",4514 => \"Morro reatino\",4515 => \"Morrone del sannio\",4516 => \"Morrovalle\",4517 => \"Morsano al tagliamento\",4518 => \"Morsasco\",4519 => \"Mortara\",4520 => \"Mortegliano\",4521 => \"Morterone\",4522 => \"Moruzzo\",4523 => \"Moscazzano\",4524 => \"Moschiano\",4525 => \"Mosciano sant'angelo\",4526 => \"Moscufo\",4527 => \"Moso in Passiria\",4528 => \"Mossa\",4529 => \"Mossano\",4530 => \"Mosso Santa Maria\",4531 => \"Motta baluffi\",4532 => \"Motta Camastra\",4533 => \"Motta d'affermo\",4534 => \"Motta de' conti\",4535 => \"Motta di livenza\",4536 => \"Motta montecorvino\",4537 => \"Motta san giovanni\",4538 => \"Motta sant'anastasia\",4539 => \"Motta santa lucia\",4540 => \"Motta visconti\",4541 => \"Mottafollone\",4542 => \"Mottalciata\",8621 => \"Mottarone\",4543 => \"Motteggiana\",4544 => \"Mottola\",8254 => \"Mottolino\",4545 => \"Mozzagrogna\",4546 => \"Mozzanica\",4547 => \"Mozzate\",4548 => \"Mozzecane\",4549 => \"Mozzo\",4550 => \"Muccia\",4551 => \"Muggia\",4552 => \"Muggio'\",4553 => \"Mugnano del cardinale\",4554 => \"Mugnano di napoli\",4555 => \"Mulazzano\",4556 => \"Mulazzo\",4557 => \"Mura\",4558 => \"Muravera\",4559 => \"Murazzano\",4560 => \"Murello\",4561 => \"Murialdo\",4562 => \"Murisengo\",4563 => \"Murlo\",4564 => \"Muro leccese\",4565 => \"Muro lucano\",4566 => \"Muros\",4567 => \"Muscoline\",4568 => \"Musei\",4569 => \"Musile di piave\",4570 => \"Musso\",4571 => \"Mussolente\",4572 => \"Mussomeli\",4573 => \"Muzzana del turgnano\",4574 => \"Muzzano\",4575 => \"Nago torbole\",4576 => \"Nalles\",4577 => \"Nanno\",4578 => \"Nanto\",4579 => \"Napoli\",8498 => \"Napoli Capodichino\",4580 => \"Narbolia\",4581 => \"Narcao\",4582 => \"Nardo'\",4583 => \"Nardodipace\",4584 => \"Narni\",4585 => \"Naro\",4586 => \"Narzole\",4587 => \"Nasino\",4588 => \"Naso\",4589 => \"Naturno\",4590 => \"Nave\",4591 => \"Nave san rocco\",4592 => \"Navelli\",4593 => \"Naz Sciaves\",4594 => \"Nazzano\",4595 => \"Ne\",4596 => \"Nebbiuno\",4597 => \"Negrar\",4598 => \"Neirone\",4599 => \"Neive\",4600 => \"Nembro\",4601 => \"Nemi\",8381 => \"Nemoli\",4603 => \"Neoneli\",4604 => \"Nepi\",4605 => \"Nereto\",4606 => \"Nerola\",4607 => \"Nervesa della battaglia\",4608 => \"Nerviano\",4609 => \"Nespolo\",4610 => \"Nesso\",4611 => \"Netro\",4612 => \"Nettuno\",4613 => \"Neviano\",4614 => \"Neviano degli arduini\",4615 => \"Neviglie\",4616 => \"Niardo\",4617 => \"Nibbiano\",4618 => \"Nibbiola\",4619 => \"Nibionno\",4620 => \"Nichelino\",4621 => \"Nicolosi\",4622 => \"Nicorvo\",4623 => \"Nicosia\",4624 => \"Nicotera\",8117 => \"Nicotera Marina\",4625 => \"Niella belbo\",8475 => \"Niella Tanaro\",4627 => \"Nimis\",4628 => \"Niscemi\",4629 => \"Nissoria\",4630 => \"Nizza di sicilia\",4631 => \"Nizza monferrato\",4632 => \"Noale\",4633 => \"Noasca\",4634 => \"Nocara\",4635 => \"Nocciano\",4636 => \"Nocera inferiore\",4637 => \"Nocera superiore\",4638 => \"Nocera terinese\",4639 => \"Nocera umbra\",4640 => \"Noceto\",4641 => \"Noci\",4642 => \"Nociglia\",8375 => \"Noepoli\",4644 => \"Nogara\",4645 => \"Nogaredo\",4646 => \"Nogarole rocca\",4647 => \"Nogarole vicentino\",4648 => \"Noicattaro\",4649 => \"Nola\",4650 => \"Nole\",4651 => \"Noli\",4652 => \"Nomaglio\",4653 => \"Nomi\",4654 => \"Nonantola\",4655 => \"None\",4656 => \"Nonio\",4657 => \"Noragugume\",4658 => \"Norbello\",4659 => \"Norcia\",4660 => \"Norma\",4661 => \"Nosate\",4662 => \"Notaresco\",4663 => \"Noto\",4664 => \"Nova Levante\",4665 => \"Nova milanese\",4666 => \"Nova Ponente\",8428 => \"Nova siri\",4668 => \"Novafeltria\",4669 => \"Novaledo\",4670 => \"Novalesa\",4671 => \"Novara\",4672 => \"Novara di Sicilia\",4673 => \"Novate mezzola\",4674 => \"Novate milanese\",4675 => \"Nove\",4676 => \"Novedrate\",4677 => \"Novellara\",4678 => \"Novello\",4679 => \"Noventa di piave\",4680 => \"Noventa padovana\",4681 => \"Noventa vicentina\",4682 => \"Novi di modena\",4683 => \"Novi ligure\",4684 => \"Novi velia\",4685 => \"Noviglio\",4686 => \"Novoli\",4687 => \"Nucetto\",4688 => \"Nughedu di san nicolo'\",4689 => \"Nughedu santa vittoria\",4690 => \"Nule\",4691 => \"Nulvi\",4692 => \"Numana\",4693 => \"Nuoro\",4694 => \"Nurachi\",4695 => \"Nuragus\",4696 => \"Nurallao\",4697 => \"Nuraminis\",4698 => \"Nureci\",4699 => \"Nurri\",4700 => \"Nus\",4701 => \"Nusco\",4702 => \"Nuvolento\",4703 => \"Nuvolera\",4704 => \"Nuxis\",8260 => \"Obereggen\",4705 => \"Occhieppo inferiore\",4706 => \"Occhieppo superiore\",4707 => \"Occhiobello\",4708 => \"Occimiano\",4709 => \"Ocre\",4710 => \"Odalengo grande\",4711 => \"Odalengo piccolo\",4712 => \"Oderzo\",4713 => \"Odolo\",4714 => \"Ofena\",4715 => \"Offagna\",4716 => \"Offanengo\",4717 => \"Offida\",4718 => \"Offlaga\",4719 => \"Oggebbio\",4720 => \"Oggiona con santo stefano\",4721 => \"Oggiono\",4722 => \"Oglianico\",4723 => \"Ogliastro cilento\",4724 => \"Olbia\",8470 => \"Olbia Costa Smeralda\",4725 => \"Olcenengo\",4726 => \"Oldenico\",4727 => \"Oleggio\",4728 => \"Oleggio castello\",4729 => \"Olevano di lomellina\",4730 => \"Olevano romano\",4731 => \"Olevano sul tusciano\",4732 => \"Olgiate comasco\",4733 => \"Olgiate molgora\",4734 => \"Olgiate olona\",4735 => \"Olginate\",4736 => \"Oliena\",4737 => \"Oliva gessi\",4738 => \"Olivadi\",4739 => \"Oliveri\",4740 => \"Oliveto citra\",4741 => \"Oliveto lario\",8426 => \"Oliveto lucano\",4743 => \"Olivetta san michele\",4744 => \"Olivola\",4745 => \"Ollastra simaxis\",4746 => \"Ollolai\",4747 => \"Ollomont\",4748 => \"Olmedo\",4749 => \"Olmeneta\",4750 => \"Olmo al brembo\",4751 => \"Olmo gentile\",4752 => \"Oltre il colle\",4753 => \"Oltressenda alta\",4754 => \"Oltrona di san mamette\",4755 => \"Olzai\",4756 => \"Ome\",4757 => \"Omegna\",4758 => \"Omignano\",4759 => \"Onani\",4760 => \"Onano\",4761 => \"Oncino\",8283 => \"Oneglia\",4762 => \"Oneta\",4763 => \"Onifai\",4764 => \"Oniferi\",8664 => \"Onna\",4765 => \"Ono san pietro\",4766 => \"Onore\",4767 => \"Onzo\",4768 => \"Opera\",4769 => \"Opi\",4770 => \"Oppeano\",8409 => \"Oppido lucano\",4772 => \"Oppido mamertina\",4773 => \"Ora\",4774 => \"Orani\",4775 => \"Oratino\",4776 => \"Orbassano\",4777 => \"Orbetello\",4778 => \"Orciano di pesaro\",4779 => \"Orciano pisano\",4780 => \"Orco feglino\",4781 => \"Ordona\",4782 => \"Orero\",4783 => \"Orgiano\",4784 => \"Orgosolo\",4785 => \"Oria\",4786 => \"Oricola\",4787 => \"Origgio\",4788 => \"Orino\",4789 => \"Orio al serio\",4790 => \"Orio canavese\",4791 => \"Orio litta\",4792 => \"Oriolo\",4793 => \"Oriolo romano\",4794 => \"Oristano\",4795 => \"Ormea\",4796 => \"Ormelle\",4797 => \"Ornago\",4798 => \"Ornavasso\",4799 => \"Ornica\",8348 => \"Oropa\",8169 => \"Orosei\",4801 => \"Orotelli\",4802 => \"Orria\",4803 => \"Orroli\",4804 => \"Orsago\",4805 => \"Orsara bormida\",4806 => \"Orsara di puglia\",4807 => \"Orsenigo\",4808 => \"Orsogna\",4809 => \"Orsomarso\",4810 => \"Orta di atella\",4811 => \"Orta nova\",4812 => \"Orta san giulio\",4813 => \"Ortacesus\",4814 => \"Orte\",8460 => \"Orte casello\",4815 => \"Ortelle\",4816 => \"Ortezzano\",4817 => \"Ortignano raggiolo\",4818 => \"Ortisei\",8725 => \"Ortles\",4819 => \"Ortona\",4820 => \"Ortona dei marsi\",4821 => \"Ortonovo\",4822 => \"Ortovero\",4823 => \"Ortucchio\",4824 => \"Ortueri\",4825 => \"Orune\",4826 => \"Orvieto\",8459 => \"Orvieto casello\",4827 => \"Orvinio\",4828 => \"Orzinuovi\",4829 => \"Orzivecchi\",4830 => \"Osasco\",4831 => \"Osasio\",4832 => \"Oschiri\",4833 => \"Osidda\",4834 => \"Osiglia\",4835 => \"Osilo\",4836 => \"Osimo\",4837 => \"Osini\",4838 => \"Osio sopra\",4839 => \"Osio sotto\",4840 => \"Osmate\",4841 => \"Osnago\",8465 => \"Osoppo\",4843 => \"Ospedaletti\",4844 => \"Ospedaletto\",4845 => \"Ospedaletto d'alpinolo\",4846 => \"Ospedaletto euganeo\",4847 => \"Ospedaletto lodigiano\",4848 => \"Ospitale di cadore\",4849 => \"Ospitaletto\",4850 => \"Ossago lodigiano\",4851 => \"Ossana\",4852 => \"Ossi\",4853 => \"Ossimo\",4854 => \"Ossona\",4855 => \"Ossuccio\",4856 => \"Ostana\",4857 => \"Ostellato\",4858 => \"Ostiano\",4859 => \"Ostiglia\",4860 => \"Ostra\",4861 => \"Ostra vetere\",4862 => \"Ostuni\",4863 => \"Otranto\",4864 => \"Otricoli\",4865 => \"Ottana\",4866 => \"Ottati\",4867 => \"Ottaviano\",4868 => \"Ottiglio\",4869 => \"Ottobiano\",4870 => \"Ottone\",4871 => \"Oulx\",4872 => \"Ovada\",4873 => \"Ovaro\",4874 => \"Oviglio\",4875 => \"Ovindoli\",4876 => \"Ovodda\",4877 => \"Oyace\",4878 => \"Ozegna\",4879 => \"Ozieri\",4880 => \"Ozzano dell'emilia\",4881 => \"Ozzano monferrato\",4882 => \"Ozzero\",4883 => \"Pabillonis\",4884 => \"Pace del mela\",4885 => \"Paceco\",4886 => \"Pacentro\",4887 => \"Pachino\",4888 => \"Paciano\",4889 => \"Padenghe sul garda\",4890 => \"Padergnone\",4891 => \"Paderna\",4892 => \"Paderno d'adda\",4893 => \"Paderno del grappa\",4894 => \"Paderno dugnano\",4895 => \"Paderno franciacorta\",4896 => \"Paderno ponchielli\",4897 => \"Padova\",4898 => \"Padria\",4899 => \"Padru\",4900 => \"Padula\",4901 => \"Paduli\",4902 => \"Paesana\",4903 => \"Paese\",8713 => \"Paestum\",8203 => \"Paganella\",4904 => \"Pagani\",8663 => \"Paganica\",4905 => \"Paganico\",4906 => \"Pagazzano\",4907 => \"Pagliara\",4908 => \"Paglieta\",4909 => \"Pagnacco\",4910 => \"Pagno\",4911 => \"Pagnona\",4912 => \"Pago del vallo di lauro\",4913 => \"Pago veiano\",4914 => \"Paisco loveno\",4915 => \"Paitone\",4916 => \"Paladina\",8534 => \"Palafavera\",4917 => \"Palagano\",4918 => \"Palagianello\",4919 => \"Palagiano\",4920 => \"Palagonia\",4921 => \"Palaia\",4922 => \"Palanzano\",4923 => \"Palata\",4924 => \"Palau\",4925 => \"Palazzago\",4926 => \"Palazzo adriano\",4927 => \"Palazzo canavese\",4928 => \"Palazzo pignano\",4929 => \"Palazzo san gervasio\",4930 => \"Palazzolo acreide\",4931 => \"Palazzolo dello stella\",4932 => \"Palazzolo sull'Oglio\",4933 => \"Palazzolo vercellese\",4934 => \"Palazzuolo sul senio\",4935 => \"Palena\",4936 => \"Palermiti\",4937 => \"Palermo\",8575 => \"Palermo Boccadifalco\",8272 => \"Palermo Punta Raisi\",4938 => \"Palestrina\",4939 => \"Palestro\",4940 => \"Paliano\",8121 => \"Palinuro\",4941 => \"Palizzi\",8108 => \"Palizzi Marina\",4942 => \"Pallagorio\",4943 => \"Pallanzeno\",4944 => \"Pallare\",4945 => \"Palma campania\",4946 => \"Palma di montechiaro\",4947 => \"Palmanova\",4948 => \"Palmariggi\",4949 => \"Palmas arborea\",4950 => \"Palmi\",4951 => \"Palmiano\",4952 => \"Palmoli\",4953 => \"Palo del colle\",4954 => \"Palombara sabina\",4955 => \"Palombaro\",4956 => \"Palomonte\",4957 => \"Palosco\",4958 => \"Palu'\",4959 => \"Palu' del fersina\",4960 => \"Paludi\",4961 => \"Paluzza\",4962 => \"Pamparato\",8257 => \"Pampeago\",8753 => \"Panarotta\",4963 => \"Pancalieri\",8261 => \"Pancani\",4964 => \"Pancarana\",4965 => \"Panchia'\",4966 => \"Pandino\",4967 => \"Panettieri\",4968 => \"Panicale\",4969 => \"Pannarano\",4970 => \"Panni\",4971 => \"Pantelleria\",4972 => \"Pantigliate\",4973 => \"Paola\",4974 => \"Paolisi\",4975 => \"Papasidero\",4976 => \"Papozze\",4977 => \"Parabiago\",4978 => \"Parabita\",4979 => \"Paratico\",4980 => \"Parcines\",4981 => \"Pare'\",4982 => \"Parella\",4983 => \"Parenti\",4984 => \"Parete\",4985 => \"Pareto\",4986 => \"Parghelia\",4987 => \"Parlasco\",4988 => \"Parma\",8554 => \"Parma Verdi\",4989 => \"Parodi ligure\",4990 => \"Paroldo\",4991 => \"Parolise\",4992 => \"Parona\",4993 => \"Parrano\",4994 => \"Parre\",4995 => \"Partanna\",4996 => \"Partinico\",4997 => \"Paruzzaro\",4998 => \"Parzanica\",4999 => \"Pasian di prato\",5000 => \"Pasiano di pordenone\",5001 => \"Paspardo\",5002 => \"Passerano Marmorito\",5003 => \"Passignano sul trasimeno\",5004 => \"Passirano\",8613 => \"Passo Bernina\",8760 => \"Passo Campolongo\",8329 => \"Passo Costalunga\",8618 => \"Passo dei Salati\",8207 => \"Passo del Brennero\",8577 => \"Passo del Brocon\",8627 => \"Passo del Cerreto\",8147 => \"Passo del Foscagno\",8308 => \"Passo del Lupo\",8206 => \"Passo del Rombo\",8150 => \"Passo del Tonale\",8196 => \"Passo della Cisa\",8235 => \"Passo della Consuma\",8290 => \"Passo della Presolana\",8659 => \"Passo delle Fittanze\",8145 => \"Passo dello Stelvio\",8213 => \"Passo di Resia\",8752 => \"Passo di Vezzena\",8328 => \"Passo Fedaia\",8759 => \"Passo Gardena\",8277 => \"Passo Groste'\",8756 => \"Passo Lanciano\",8280 => \"Passo Pordoi\",8626 => \"Passo Pramollo\",8210 => \"Passo Rolle\",8279 => \"Passo San Pellegrino\",8325 => \"Passo Sella\",5005 => \"Pastena\",5006 => \"Pastorano\",5007 => \"Pastrengo\",5008 => \"Pasturana\",5009 => \"Pasturo\",8417 => \"Paterno\",5011 => \"Paterno calabro\",5012 => \"Paterno'\",5013 => \"Paternopoli\",5014 => \"Patrica\",5015 => \"Pattada\",5016 => \"Patti\",5017 => \"Patu'\",5018 => \"Pau\",5019 => \"Paularo\",5020 => \"Pauli arbarei\",5021 => \"Paulilatino\",5022 => \"Paullo\",5023 => \"Paupisi\",5024 => \"Pavarolo\",5025 => \"Pavia\",5026 => \"Pavia di udine\",5027 => \"Pavone canavese\",5028 => \"Pavone del mella\",5029 => \"Pavullo nel frignano\",5030 => \"Pazzano\",5031 => \"Peccioli\",5032 => \"Pecco\",5033 => \"Pecetto di valenza\",5034 => \"Pecetto torinese\",5035 => \"Pecorara\",5036 => \"Pedace\",5037 => \"Pedara\",5038 => \"Pedaso\",5039 => \"Pedavena\",5040 => \"Pedemonte\",5041 => \"Pederobba\",5042 => \"Pedesina\",5043 => \"Pedivigliano\",8473 => \"Pedraces\",5044 => \"Pedrengo\",5045 => \"Peglio\",5046 => \"Peglio\",5047 => \"Pegognaga\",5048 => \"Peia\",8665 => \"Pejo\",5050 => \"Pelago\",5051 => \"Pella\",5052 => \"Pellegrino parmense\",5053 => \"Pellezzano\",5054 => \"Pellio intelvi\",5055 => \"Pellizzano\",5056 => \"Pelugo\",5057 => \"Penango\",5058 => \"Penna in teverina\",5059 => \"Penna san giovanni\",5060 => \"Penna sant'andrea\",5061 => \"Pennabilli\",5062 => \"Pennadomo\",5063 => \"Pennapiedimonte\",5064 => \"Penne\",8208 => \"Pennes\",5065 => \"Pentone\",5066 => \"Perano\",5067 => \"Perarolo di cadore\",5068 => \"Perca\",5069 => \"Percile\",5070 => \"Perdasdefogu\",5071 => \"Perdaxius\",5072 => \"Perdifumo\",5073 => \"Perego\",5074 => \"Pereto\",5075 => \"Perfugas\",5076 => \"Pergine valdarno\",5077 => \"Pergine valsugana\",5078 => \"Pergola\",5079 => \"Perinaldo\",5080 => \"Perito\",5081 => \"Perledo\",5082 => \"Perletto\",5083 => \"Perlo\",5084 => \"Perloz\",5085 => \"Pernumia\",5086 => \"Pero\",5087 => \"Perosa argentina\",5088 => \"Perosa canavese\",5089 => \"Perrero\",5090 => \"Persico dosimo\",5091 => \"Pertengo\",5092 => \"Pertica alta\",5093 => \"Pertica bassa\",8586 => \"Perticara di Novafeltria\",5094 => \"Pertosa\",5095 => \"Pertusio\",5096 => \"Perugia\",8555 => \"Perugia Sant'Egidio\",5097 => \"Pesaro\",5098 => \"Pescaglia\",5099 => \"Pescantina\",5100 => \"Pescara\",8275 => \"Pescara Liberi\",5101 => \"Pescarolo ed uniti\",5102 => \"Pescasseroli\",5103 => \"Pescate\",8312 => \"Pescegallo\",5104 => \"Pesche\",5105 => \"Peschici\",5106 => \"Peschiera borromeo\",5107 => \"Peschiera del garda\",5108 => \"Pescia\",5109 => \"Pescina\",8454 => \"Pescina casello\",5110 => \"Pesco sannita\",5111 => \"Pescocostanzo\",5112 => \"Pescolanciano\",5113 => \"Pescopagano\",5114 => \"Pescopennataro\",5115 => \"Pescorocchiano\",5116 => \"Pescosansonesco\",5117 => \"Pescosolido\",5118 => \"Pessano con Bornago\",5119 => \"Pessina cremonese\",5120 => \"Pessinetto\",5121 => \"Petacciato\",5122 => \"Petilia policastro\",5123 => \"Petina\",5124 => \"Petralia soprana\",5125 => \"Petralia sottana\",5126 => \"Petrella salto\",5127 => \"Petrella tifernina\",5128 => \"Petriano\",5129 => \"Petriolo\",5130 => \"Petritoli\",5131 => \"Petrizzi\",5132 => \"Petrona'\",5133 => \"Petrosino\",5134 => \"Petruro irpino\",5135 => \"Pettenasco\",5136 => \"Pettinengo\",5137 => \"Pettineo\",5138 => \"Pettoranello del molise\",5139 => \"Pettorano sul gizio\",5140 => \"Pettorazza grimani\",5141 => \"Peveragno\",5142 => \"Pezzana\",5143 => \"Pezzaze\",5144 => \"Pezzolo valle uzzone\",5145 => \"Piacenza\",5146 => \"Piacenza d'adige\",5147 => \"Piadena\",5148 => \"Piagge\",5149 => \"Piaggine\",8706 => \"Piamprato\",5150 => \"Pian camuno\",8309 => \"Pian Cavallaro\",8233 => \"Pian del Cansiglio\",8642 => \"Pian del Frais\",8705 => \"Pian della Mussa\",8634 => \"Pian delle Betulle\",5151 => \"Pian di sco'\",8712 => \"Pian di Sole\",5152 => \"Piana crixia\",5153 => \"Piana degli albanesi\",8653 => \"Piana di Marcesina\",5154 => \"Piana di monte verna\",8305 => \"Pianalunga\",5155 => \"Piancastagnaio\",8516 => \"Piancavallo\",5156 => \"Piancogno\",5157 => \"Piandimeleto\",5158 => \"Piane crati\",8561 => \"Piane di Mocogno\",5159 => \"Pianella\",5160 => \"Pianello del lario\",5161 => \"Pianello val tidone\",5162 => \"Pianengo\",5163 => \"Pianezza\",5164 => \"Pianezze\",5165 => \"Pianfei\",8605 => \"Piani d'Erna\",8517 => \"Piani di Artavaggio\",8234 => \"Piani di Bobbio\",5166 => \"Pianico\",5167 => \"Pianiga\",8314 => \"Piano del Voglio\",5168 => \"Piano di Sorrento\",8630 => \"Piano Provenzana\",5169 => \"Pianopoli\",5170 => \"Pianoro\",5171 => \"Piansano\",5172 => \"Piantedo\",5173 => \"Piario\",5174 => \"Piasco\",5175 => \"Piateda\",5176 => \"Piatto\",5177 => \"Piazza al serchio\",5178 => \"Piazza armerina\",5179 => \"Piazza brembana\",5180 => \"Piazzatorre\",5181 => \"Piazzola sul brenta\",5182 => \"Piazzolo\",5183 => \"Picciano\",5184 => \"Picerno\",5185 => \"Picinisco\",5186 => \"Pico\",5187 => \"Piea\",5188 => \"Piedicavallo\",8218 => \"Piediluco\",5189 => \"Piedimonte etneo\",5190 => \"Piedimonte matese\",5191 => \"Piedimonte san germano\",5192 => \"Piedimulera\",5193 => \"Piegaro\",5194 => \"Pienza\",5195 => \"Pieranica\",5196 => \"Pietra de'giorgi\",5197 => \"Pietra ligure\",5198 => \"Pietra marazzi\",5199 => \"Pietrabbondante\",5200 => \"Pietrabruna\",5201 => \"Pietracamela\",5202 => \"Pietracatella\",5203 => \"Pietracupa\",5204 => \"Pietradefusi\",5205 => \"Pietraferrazzana\",5206 => \"Pietrafitta\",5207 => \"Pietragalla\",5208 => \"Pietralunga\",5209 => \"Pietramelara\",5210 => \"Pietramontecorvino\",5211 => \"Pietranico\",5212 => \"Pietrapaola\",5213 => \"Pietrapertosa\",5214 => \"Pietraperzia\",5215 => \"Pietraporzio\",5216 => \"Pietraroja\",5217 => \"Pietrarubbia\",5218 => \"Pietrasanta\",5219 => \"Pietrastornina\",5220 => \"Pietravairano\",5221 => \"Pietrelcina\",5222 => \"Pieve a nievole\",5223 => \"Pieve albignola\",5224 => \"Pieve d'alpago\",5225 => \"Pieve d'olmi\",5226 => \"Pieve del cairo\",5227 => \"Pieve di bono\",5228 => \"Pieve di cadore\",5229 => \"Pieve di cento\",5230 => \"Pieve di coriano\",5231 => \"Pieve di ledro\",5232 => \"Pieve di soligo\",5233 => \"Pieve di teco\",5234 => \"Pieve emanuele\",5235 => \"Pieve fissiraga\",5236 => \"Pieve fosciana\",5237 => \"Pieve ligure\",5238 => \"Pieve porto morone\",5239 => \"Pieve san giacomo\",5240 => \"Pieve santo stefano\",5241 => \"Pieve tesino\",5242 => \"Pieve torina\",5243 => \"Pieve vergonte\",5244 => \"Pievebovigliana\",5245 => \"Pievepelago\",5246 => \"Piglio\",5247 => \"Pigna\",5248 => \"Pignataro interamna\",5249 => \"Pignataro maggiore\",5250 => \"Pignola\",5251 => \"Pignone\",5252 => \"Pigra\",5253 => \"Pila\",8221 => \"Pila\",5254 => \"Pimentel\",5255 => \"Pimonte\",5256 => \"Pinarolo po\",5257 => \"Pinasca\",5258 => \"Pincara\",5259 => \"Pinerolo\",5260 => \"Pineto\",5261 => \"Pino d'asti\",5262 => \"Pino sulla sponda del lago magg.\",5263 => \"Pino torinese\",5264 => \"Pinzano al tagliamento\",5265 => \"Pinzolo\",5266 => \"Piobbico\",5267 => \"Piobesi d'alba\",5268 => \"Piobesi torinese\",5269 => \"Piode\",5270 => \"Pioltello\",5271 => \"Piombino\",5272 => \"Piombino dese\",5273 => \"Pioraco\",5274 => \"Piossasco\",5275 => \"Piova' massaia\",5276 => \"Piove di sacco\",5277 => \"Piovene rocchette\",5278 => \"Piovera\",5279 => \"Piozzano\",5280 => \"Piozzo\",5281 => \"Piraino\",5282 => \"Pisa\",8518 => \"Pisa San Giusto\",5283 => \"Pisano\",5284 => \"Piscina\",5285 => \"Piscinas\",5286 => \"Pisciotta\",5287 => \"Pisogne\",5288 => \"Pisoniano\",5289 => \"Pisticci\",5290 => \"Pistoia\",5291 => \"Piteglio\",5292 => \"Pitigliano\",5293 => \"Piubega\",5294 => \"Piuro\",5295 => \"Piverone\",5296 => \"Pizzale\",5297 => \"Pizzighettone\",5298 => \"Pizzo\",8737 => \"Pizzo Arera\",8727 => \"Pizzo Bernina\",8736 => \"Pizzo dei Tre Signori\",8739 => \"Pizzo della Presolana\",5299 => \"Pizzoferrato\",5300 => \"Pizzoli\",5301 => \"Pizzone\",5302 => \"Pizzoni\",5303 => \"Placanica\",8342 => \"Plaghera\",8685 => \"Plain Maison\",8324 => \"Plain Mason\",8337 => \"Plan\",8469 => \"Plan Boè\",8633 => \"Plan Checrouit\",8204 => \"Plan de Corones\",8576 => \"Plan in Passiria\",5304 => \"Plataci\",5305 => \"Platania\",8241 => \"Plateau Rosa\",5306 => \"Plati'\",5307 => \"Plaus\",5308 => \"Plesio\",5309 => \"Ploaghe\",5310 => \"Plodio\",8569 => \"Plose\",5311 => \"Pocapaglia\",5312 => \"Pocenia\",5313 => \"Podenzana\",5314 => \"Podenzano\",5315 => \"Pofi\",5316 => \"Poggiardo\",5317 => \"Poggibonsi\",5318 => \"Poggio a caiano\",5319 => \"Poggio berni\",5320 => \"Poggio bustone\",5321 => \"Poggio catino\",5322 => \"Poggio imperiale\",5323 => \"Poggio mirteto\",5324 => \"Poggio moiano\",5325 => \"Poggio nativo\",5326 => \"Poggio picenze\",5327 => \"Poggio renatico\",5328 => \"Poggio rusco\",5329 => \"Poggio san lorenzo\",5330 => \"Poggio san marcello\",5331 => \"Poggio san vicino\",5332 => \"Poggio sannita\",5333 => \"Poggiodomo\",5334 => \"Poggiofiorito\",5335 => \"Poggiomarino\",5336 => \"Poggioreale\",5337 => \"Poggiorsini\",5338 => \"Poggiridenti\",5339 => \"Pogliano milanese\",8339 => \"Pogliola\",5340 => \"Pognana lario\",5341 => \"Pognano\",5342 => \"Pogno\",5343 => \"Poiana maggiore\",5344 => \"Poirino\",5345 => \"Polaveno\",5346 => \"Polcenigo\",5347 => \"Polesella\",5348 => \"Polesine parmense\",5349 => \"Poli\",5350 => \"Polia\",5351 => \"Policoro\",5352 => \"Polignano a mare\",5353 => \"Polinago\",5354 => \"Polino\",5355 => \"Polistena\",5356 => \"Polizzi generosa\",5357 => \"Polla\",5358 => \"Pollein\",5359 => \"Pollena trocchia\",5360 => \"Pollenza\",5361 => \"Pollica\",5362 => \"Pollina\",5363 => \"Pollone\",5364 => \"Pollutri\",5365 => \"Polonghera\",5366 => \"Polpenazze del garda\",8650 => \"Polsa San Valentino\",5367 => \"Polverara\",5368 => \"Polverigi\",5369 => \"Pomarance\",5370 => \"Pomaretto\",8384 => \"Pomarico\",5372 => \"Pomaro monferrato\",5373 => \"Pomarolo\",5374 => \"Pombia\",5375 => \"Pomezia\",5376 => \"Pomigliano d'arco\",5377 => \"Pompei\",5378 => \"Pompeiana\",5379 => \"Pompiano\",5380 => \"Pomponesco\",5381 => \"Pompu\",5382 => \"Poncarale\",5383 => \"Ponderano\",5384 => \"Ponna\",5385 => \"Ponsacco\",5386 => \"Ponso\",8220 => \"Pont\",5389 => \"Pont canavese\",5427 => \"Pont Saint Martin\",5387 => \"Pontassieve\",5388 => \"Pontboset\",5390 => \"Ponte\",5391 => \"Ponte buggianese\",5392 => \"Ponte dell'olio\",5393 => \"Ponte di legno\",5394 => \"Ponte di piave\",5395 => \"Ponte Gardena\",5396 => \"Ponte in valtellina\",5397 => \"Ponte lambro\",5398 => \"Ponte nelle alpi\",5399 => \"Ponte nizza\",5400 => \"Ponte nossa\",5401 => \"Ponte San Nicolo'\",5402 => \"Ponte San Pietro\",5403 => \"Pontebba\",5404 => \"Pontecagnano faiano\",5405 => \"Pontecchio polesine\",5406 => \"Pontechianale\",5407 => \"Pontecorvo\",5408 => \"Pontecurone\",5409 => \"Pontedassio\",5410 => \"Pontedera\",5411 => \"Pontelandolfo\",5412 => \"Pontelatone\",5413 => \"Pontelongo\",5414 => \"Pontenure\",5415 => \"Ponteranica\",5416 => \"Pontestura\",5417 => \"Pontevico\",5418 => \"Pontey\",5419 => \"Ponti\",5420 => \"Ponti sul mincio\",5421 => \"Pontida\",5422 => \"Pontinia\",5423 => \"Pontinvrea\",5424 => \"Pontirolo nuovo\",5425 => \"Pontoglio\",5426 => \"Pontremoli\",5428 => \"Ponza\",5429 => \"Ponzano di fermo\",8462 => \"Ponzano galleria\",5430 => \"Ponzano monferrato\",5431 => \"Ponzano romano\",5432 => \"Ponzano veneto\",5433 => \"Ponzone\",5434 => \"Popoli\",5435 => \"Poppi\",8192 => \"Populonia\",5436 => \"Porano\",5437 => \"Porcari\",5438 => \"Porcia\",5439 => \"Pordenone\",5440 => \"Porlezza\",5441 => \"Pornassio\",5442 => \"Porpetto\",5443 => \"Porretta terme\",5444 => \"Portacomaro\",5445 => \"Portalbera\",5446 => \"Porte\",5447 => \"Portici\",5448 => \"Portico di caserta\",5449 => \"Portico e san benedetto\",5450 => \"Portigliola\",8294 => \"Porto Alabe\",5451 => \"Porto azzurro\",5452 => \"Porto ceresio\",8528 => \"Porto Cervo\",5453 => \"Porto cesareo\",8295 => \"Porto Conte\",8612 => \"Porto Corsini\",5454 => \"Porto empedocle\",8669 => \"Porto Ercole\",8743 => \"Porto Levante\",5455 => \"Porto mantovano\",8178 => \"Porto Pino\",5456 => \"Porto recanati\",8529 => \"Porto Rotondo\",5457 => \"Porto san giorgio\",5458 => \"Porto sant'elpidio\",8670 => \"Porto Santo Stefano\",5459 => \"Porto tolle\",5460 => \"Porto torres\",5461 => \"Porto valtravaglia\",5462 => \"Porto viro\",8172 => \"Portobello di Gallura\",5463 => \"Portobuffole'\",5464 => \"Portocannone\",5465 => \"Portoferraio\",5466 => \"Portofino\",5467 => \"Portogruaro\",5468 => \"Portomaggiore\",5469 => \"Portopalo di capo passero\",8171 => \"Portorotondo\",5470 => \"Portoscuso\",5471 => \"Portovenere\",5472 => \"Portula\",5473 => \"Posada\",5474 => \"Posina\",5475 => \"Positano\",5476 => \"Possagno\",5477 => \"Posta\",5478 => \"Posta fibreno\",5479 => \"Postal\",5480 => \"Postalesio\",5481 => \"Postiglione\",5482 => \"Postua\",5483 => \"Potenza\",5484 => \"Potenza picena\",5485 => \"Pove del grappa\",5486 => \"Povegliano\",5487 => \"Povegliano veronese\",5488 => \"Poviglio\",5489 => \"Povoletto\",5490 => \"Pozza di fassa\",5491 => \"Pozzaglia sabino\",5492 => \"Pozzaglio ed uniti\",5493 => \"Pozzallo\",5494 => \"Pozzilli\",5495 => \"Pozzo d'adda\",5496 => \"Pozzol groppo\",5497 => \"Pozzolengo\",5498 => \"Pozzoleone\",5499 => \"Pozzolo formigaro\",5500 => \"Pozzomaggiore\",5501 => \"Pozzonovo\",5502 => \"Pozzuoli\",5503 => \"Pozzuolo del friuli\",5504 => \"Pozzuolo martesana\",8693 => \"Pra Catinat\",5505 => \"Pradalunga\",5506 => \"Pradamano\",5507 => \"Pradleves\",5508 => \"Pragelato\",5509 => \"Praia a mare\",5510 => \"Praiano\",5511 => \"Pralboino\",5512 => \"Prali\",5513 => \"Pralormo\",5514 => \"Pralungo\",5515 => \"Pramaggiore\",5516 => \"Pramollo\",5517 => \"Prarolo\",5518 => \"Prarostino\",5519 => \"Prasco\",5520 => \"Prascorsano\",5521 => \"Praso\",5522 => \"Prata camportaccio\",5523 => \"Prata d'ansidonia\",5524 => \"Prata di pordenone\",5525 => \"Prata di principato ultra\",5526 => \"Prata sannita\",5527 => \"Pratella\",8102 => \"Prati di Tivo\",8694 => \"Pratica di Mare\",5528 => \"Pratiglione\",5529 => \"Prato\",5530 => \"Prato allo Stelvio\",5531 => \"Prato carnico\",8157 => \"Prato Nevoso\",5532 => \"Prato sesia\",8560 => \"Prato Spilla\",5533 => \"Pratola peligna\",5534 => \"Pratola serra\",5535 => \"Pratovecchio\",5536 => \"Pravisdomini\",5537 => \"Pray\",5538 => \"Prazzo\",5539 => \"Pre' Saint Didier\",5540 => \"Precenicco\",5541 => \"Preci\",5542 => \"Predappio\",5543 => \"Predazzo\",5544 => \"Predoi\",5545 => \"Predore\",5546 => \"Predosa\",5547 => \"Preganziol\",5548 => \"Pregnana milanese\",5549 => \"Prela'\",5550 => \"Premana\",5551 => \"Premariacco\",5552 => \"Premeno\",5553 => \"Premia\",5554 => \"Premilcuore\",5555 => \"Premolo\",5556 => \"Premosello chiovenda\",5557 => \"Preone\",5558 => \"Preore\",5559 => \"Prepotto\",8578 => \"Presanella\",5560 => \"Preseglie\",5561 => \"Presenzano\",5562 => \"Presezzo\",5563 => \"Presicce\",5564 => \"Pressana\",5565 => \"Prestine\",5566 => \"Pretoro\",5567 => \"Prevalle\",5568 => \"Prezza\",5569 => \"Prezzo\",5570 => \"Priero\",5571 => \"Prignano cilento\",5572 => \"Prignano sulla secchia\",5573 => \"Primaluna\",5574 => \"Priocca\",5575 => \"Priola\",5576 => \"Priolo gargallo\",5577 => \"Priverno\",5578 => \"Prizzi\",5579 => \"Proceno\",5580 => \"Procida\",5581 => \"Propata\",5582 => \"Proserpio\",5583 => \"Prossedi\",5584 => \"Provaglio d'iseo\",5585 => \"Provaglio val sabbia\",5586 => \"Proves\",5587 => \"Provvidenti\",8189 => \"Prunetta\",5588 => \"Prunetto\",5589 => \"Puegnago sul garda\",5590 => \"Puglianello\",5591 => \"Pula\",5592 => \"Pulfero\",5593 => \"Pulsano\",5594 => \"Pumenengo\",8584 => \"Punta Ala\",8708 => \"Punta Ban\",8564 => \"Punta Helbronner\",8306 => \"Punta Indren\",8107 => \"Punta Stilo\",5595 => \"Puos d'alpago\",5596 => \"Pusiano\",5597 => \"Putifigari\",5598 => \"Putignano\",5599 => \"Quadrelle\",5600 => \"Quadri\",5601 => \"Quagliuzzo\",5602 => \"Qualiano\",5603 => \"Quaranti\",5604 => \"Quaregna\",5605 => \"Quargnento\",5606 => \"Quarna sopra\",5607 => \"Quarna sotto\",5608 => \"Quarona\",5609 => \"Quarrata\",5610 => \"Quart\",5611 => \"Quarto\",5612 => \"Quarto d'altino\",5613 => \"Quartu sant'elena\",5614 => \"Quartucciu\",5615 => \"Quassolo\",5616 => \"Quattordio\",5617 => \"Quattro castella\",5618 => \"Quero\",5619 => \"Quiliano\",5620 => \"Quincinetto\",5621 => \"Quindici\",5622 => \"Quingentole\",5623 => \"Quintano\",5624 => \"Quinto di treviso\",5625 => \"Quinto vercellese\",5626 => \"Quinto vicentino\",5627 => \"Quinzano d'oglio\",5628 => \"Quistello\",5629 => \"Quittengo\",5630 => \"Rabbi\",5631 => \"Racale\",5632 => \"Racalmuto\",5633 => \"Racconigi\",5634 => \"Raccuja\",5635 => \"Racines\",8352 => \"Racines Giovo\",5636 => \"Radda in chianti\",5637 => \"Raddusa\",5638 => \"Radicofani\",5639 => \"Radicondoli\",5640 => \"Raffadali\",5641 => \"Ragalna\",5642 => \"Ragogna\",5643 => \"Ragoli\",5644 => \"Ragusa\",5645 => \"Raiano\",5646 => \"Ramacca\",5647 => \"Ramiseto\",5648 => \"Ramponio verna\",5649 => \"Rancio valcuvia\",5650 => \"Ranco\",5651 => \"Randazzo\",5652 => \"Ranica\",5653 => \"Ranzanico\",5654 => \"Ranzo\",5655 => \"Rapagnano\",5656 => \"Rapallo\",5657 => \"Rapino\",5658 => \"Rapolano terme\",8394 => \"Rapolla\",5660 => \"Rapone\",5661 => \"Rassa\",5662 => \"Rasun Anterselva\",5663 => \"Rasura\",5664 => \"Ravanusa\",5665 => \"Ravarino\",5666 => \"Ravascletto\",5667 => \"Ravello\",5668 => \"Ravenna\",5669 => \"Raveo\",5670 => \"Raviscanina\",5671 => \"Re\",5672 => \"Rea\",5673 => \"Realmonte\",5674 => \"Reana del roiale\",5675 => \"Reano\",5676 => \"Recale\",5677 => \"Recanati\",5678 => \"Recco\",5679 => \"Recetto\",8639 => \"Recoaro Mille\",5680 => \"Recoaro Terme\",5681 => \"Redavalle\",5682 => \"Redondesco\",5683 => \"Refrancore\",5684 => \"Refrontolo\",5685 => \"Regalbuto\",5686 => \"Reggello\",8542 => \"Reggio Aeroporto dello Stretto\",5687 => \"Reggio Calabria\",5688 => \"Reggio Emilia\",5689 => \"Reggiolo\",5690 => \"Reino\",5691 => \"Reitano\",5692 => \"Remanzacco\",5693 => \"Remedello\",5694 => \"Renate\",5695 => \"Rende\",5696 => \"Renon\",5697 => \"Resana\",5698 => \"Rescaldina\",8734 => \"Resegone\",5699 => \"Resia\",5700 => \"Resiutta\",5701 => \"Resuttano\",5702 => \"Retorbido\",5703 => \"Revello\",5704 => \"Revere\",5705 => \"Revigliasco d'asti\",5706 => \"Revine lago\",5707 => \"Revo'\",5708 => \"Rezzago\",5709 => \"Rezzato\",5710 => \"Rezzo\",5711 => \"Rezzoaglio\",5712 => \"Rhemes Notre Dame\",5713 => \"Rhemes Saint Georges\",5714 => \"Rho\",5715 => \"Riace\",8106 => \"Riace Marina\",5716 => \"Rialto\",5717 => \"Riano\",5718 => \"Riardo\",5719 => \"Ribera\",5720 => \"Ribordone\",5721 => \"Ricadi\",5722 => \"Ricaldone\",5723 => \"Riccia\",5724 => \"Riccione\",5725 => \"Ricco' del golfo di spezia\",5726 => \"Ricengo\",5727 => \"Ricigliano\",5728 => \"Riese pio x\",5729 => \"Riesi\",5730 => \"Rieti\",5731 => \"Rifiano\",5732 => \"Rifreddo\",8691 => \"Rifugio Boffalora Ticino\",8244 => \"Rifugio Calvi Laghi Gemelli\",8684 => \"Rifugio Chivasso - Colle del Nivolet\",8678 => \"Rifugio Curò\",8679 => \"Rifugio laghi Gemelli\",8731 => \"Rifugio Livio Bianco\",8681 => \"Rifugio Mezzalama\",8682 => \"Rifugio Quintino Sella\",8629 => \"Rifugio Sapienza\",8683 => \"Rifugio Torino\",8680 => \"Rifugio Viviani\",5733 => \"Rignano flaminio\",5734 => \"Rignano garganico\",5735 => \"Rignano sull'arno\",5736 => \"Rigolato\",5737 => \"Rima san giuseppe\",5738 => \"Rimasco\",5739 => \"Rimella\",5740 => \"Rimini\",8546 => \"Rimini Miramare\",5741 => \"Rio di Pusteria\",5742 => \"Rio marina\",5743 => \"Rio nell'elba\",5744 => \"Rio saliceto\",5745 => \"Riofreddo\",5746 => \"Riola sardo\",5747 => \"Riolo terme\",5748 => \"Riolunato\",5749 => \"Riomaggiore\",5750 => \"Rionero in vulture\",5751 => \"Rionero sannitico\",8503 => \"Rioveggio\",5752 => \"Ripa teatina\",5753 => \"Ripabottoni\",8404 => \"Ripacandida\",5755 => \"Ripalimosani\",5756 => \"Ripalta arpina\",5757 => \"Ripalta cremasca\",5758 => \"Ripalta guerina\",5759 => \"Riparbella\",5760 => \"Ripatransone\",5761 => \"Ripe\",5762 => \"Ripe san ginesio\",5763 => \"Ripi\",5764 => \"Riposto\",5765 => \"Rittana\",5766 => \"Riva del garda\",5767 => \"Riva di solto\",8579 => \"Riva di Tures\",5768 => \"Riva ligure\",5769 => \"Riva presso chieri\",5770 => \"Riva valdobbia\",5771 => \"Rivalba\",5772 => \"Rivalta bormida\",5773 => \"Rivalta di torino\",5774 => \"Rivamonte agordino\",5775 => \"Rivanazzano\",5776 => \"Rivara\",5777 => \"Rivarolo canavese\",5778 => \"Rivarolo del re ed uniti\",5779 => \"Rivarolo mantovano\",5780 => \"Rivarone\",5781 => \"Rivarossa\",5782 => \"Rive\",5783 => \"Rive d'arcano\",8398 => \"Rivello\",5785 => \"Rivergaro\",5786 => \"Rivignano\",5787 => \"Rivisondoli\",5788 => \"Rivodutri\",5789 => \"Rivoli\",8436 => \"Rivoli veronese\",5791 => \"Rivolta d'adda\",5792 => \"Rizziconi\",5793 => \"Ro\",5794 => \"Roana\",5795 => \"Roaschia\",5796 => \"Roascio\",5797 => \"Roasio\",5798 => \"Roatto\",5799 => \"Robassomero\",5800 => \"Robbiate\",5801 => \"Robbio\",5802 => \"Robecchetto con Induno\",5803 => \"Robecco d'oglio\",5804 => \"Robecco pavese\",5805 => \"Robecco sul naviglio\",5806 => \"Robella\",5807 => \"Robilante\",5808 => \"Roburent\",5809 => \"Rocca canavese\",5810 => \"Rocca Canterano\",5811 => \"Rocca Ciglie'\",5812 => \"Rocca d'Arazzo\",5813 => \"Rocca d'Arce\",5814 => \"Rocca d'Evandro\",5815 => \"Rocca de' Baldi\",5816 => \"Rocca de' Giorgi\",5817 => \"Rocca di Botte\",5818 => \"Rocca di Cambio\",5819 => \"Rocca di Cave\",5820 => \"Rocca di Mezzo\",5821 => \"Rocca di Neto\",5822 => \"Rocca di Papa\",5823 => \"Rocca Grimalda\",5824 => \"Rocca Imperiale\",8115 => \"Rocca Imperiale Marina\",5825 => \"Rocca Massima\",5826 => \"Rocca Pia\",5827 => \"Rocca Pietore\",5828 => \"Rocca Priora\",5829 => \"Rocca San Casciano\",5830 => \"Rocca San Felice\",5831 => \"Rocca San Giovanni\",5832 => \"Rocca Santa Maria\",5833 => \"Rocca Santo Stefano\",5834 => \"Rocca Sinibalda\",5835 => \"Rocca Susella\",5836 => \"Roccabascerana\",5837 => \"Roccabernarda\",5838 => \"Roccabianca\",5839 => \"Roccabruna\",8535 => \"Roccacaramanico\",5840 => \"Roccacasale\",5841 => \"Roccadaspide\",5842 => \"Roccafiorita\",5843 => \"Roccafluvione\",5844 => \"Roccaforte del greco\",5845 => \"Roccaforte ligure\",5846 => \"Roccaforte mondovi'\",5847 => \"Roccaforzata\",5848 => \"Roccafranca\",5849 => \"Roccagiovine\",5850 => \"Roccagloriosa\",5851 => \"Roccagorga\",5852 => \"Roccalbegna\",5853 => \"Roccalumera\",5854 => \"Roccamandolfi\",5855 => \"Roccamena\",5856 => \"Roccamonfina\",5857 => \"Roccamontepiano\",5858 => \"Roccamorice\",8418 => \"Roccanova\",5860 => \"Roccantica\",5861 => \"Roccapalumba\",5862 => \"Roccapiemonte\",5863 => \"Roccarainola\",5864 => \"Roccaraso\",5865 => \"Roccaromana\",5866 => \"Roccascalegna\",5867 => \"Roccasecca\",5868 => \"Roccasecca dei volsci\",5869 => \"Roccasicura\",5870 => \"Roccasparvera\",5871 => \"Roccaspinalveti\",5872 => \"Roccastrada\",5873 => \"Roccavaldina\",5874 => \"Roccaverano\",5875 => \"Roccavignale\",5876 => \"Roccavione\",5877 => \"Roccavivara\",5878 => \"Roccella ionica\",5879 => \"Roccella valdemone\",5880 => \"Rocchetta a volturno\",5881 => \"Rocchetta belbo\",5882 => \"Rocchetta di vara\",5883 => \"Rocchetta e croce\",5884 => \"Rocchetta ligure\",5885 => \"Rocchetta nervina\",5886 => \"Rocchetta palafea\",5887 => \"Rocchetta sant'antonio\",5888 => \"Rocchetta tanaro\",5889 => \"Rodano\",5890 => \"Roddi\",5891 => \"Roddino\",5892 => \"Rodello\",5893 => \"Rodengo\",5894 => \"Rodengo-saiano\",5895 => \"Rodero\",5896 => \"Rodi garganico\",5897 => \"Rodi' milici\",5898 => \"Rodigo\",5899 => \"Roe' volciano\",5900 => \"Rofrano\",5901 => \"Rogeno\",5902 => \"Roggiano gravina\",5903 => \"Roghudi\",5904 => \"Rogliano\",5905 => \"Rognano\",5906 => \"Rogno\",5907 => \"Rogolo\",5908 => \"Roiate\",5909 => \"Roio del sangro\",5910 => \"Roisan\",5911 => \"Roletto\",5912 => \"Rolo\",5913 => \"Roma\",8545 => \"Roma Ciampino\",8499 => \"Roma Fiumicino\",5914 => \"Romagnano al monte\",5915 => \"Romagnano sesia\",5916 => \"Romagnese\",5917 => \"Romallo\",5918 => \"Romana\",5919 => \"Romanengo\",5920 => \"Romano canavese\",5921 => \"Romano d'ezzelino\",5922 => \"Romano di lombardia\",5923 => \"Romans d'isonzo\",5924 => \"Rombiolo\",5925 => \"Romeno\",5926 => \"Romentino\",5927 => \"Rometta\",5928 => \"Ronago\",5929 => \"Ronca'\",5930 => \"Roncade\",5931 => \"Roncadelle\",5932 => \"Roncaro\",5933 => \"Roncegno\",5934 => \"Roncello\",5935 => \"Ronchi dei legionari\",5936 => \"Ronchi valsugana\",5937 => \"Ronchis\",5938 => \"Ronciglione\",5939 => \"Ronco all'adige\",8231 => \"Ronco all`Adige\",5940 => \"Ronco biellese\",5941 => \"Ronco briantino\",5942 => \"Ronco canavese\",5943 => \"Ronco scrivia\",5944 => \"Roncobello\",5945 => \"Roncoferraro\",5946 => \"Roncofreddo\",5947 => \"Roncola\",5948 => \"Roncone\",5949 => \"Rondanina\",5950 => \"Rondissone\",5951 => \"Ronsecco\",5952 => \"Ronzo chienis\",5953 => \"Ronzone\",5954 => \"Roppolo\",5955 => \"Rora'\",5956 => \"Rosa'\",5957 => \"Rosarno\",5958 => \"Rosasco\",5959 => \"Rosate\",5960 => \"Rosazza\",5961 => \"Rosciano\",5962 => \"Roscigno\",5963 => \"Rose\",5964 => \"Rosello\",5965 => \"Roseto capo spulico\",8439 => \"Roseto casello\",5966 => \"Roseto degli abruzzi\",5967 => \"Roseto valfortore\",5968 => \"Rosignano marittimo\",5969 => \"Rosignano monferrato\",8195 => \"Rosignano Solvay\",5970 => \"Rosolina\",8744 => \"Rosolina mare\",5971 => \"Rosolini\",8704 => \"Rosone\",5972 => \"Rosora\",5973 => \"Rossa\",5974 => \"Rossana\",5975 => \"Rossano\",8109 => \"Rossano Calabro Marina\",5976 => \"Rossano veneto\",8431 => \"Rossera\",5977 => \"Rossiglione\",5978 => \"Rosta\",5979 => \"Rota d'imagna\",5980 => \"Rota greca\",5981 => \"Rotella\",5982 => \"Rotello\",8429 => \"Rotonda\",5984 => \"Rotondella\",5985 => \"Rotondi\",5986 => \"Rottofreno\",5987 => \"Rotzo\",5988 => \"Roure\",5989 => \"Rovagnate\",5990 => \"Rovasenda\",5991 => \"Rovato\",5992 => \"Rovegno\",5993 => \"Rovellasca\",5994 => \"Rovello porro\",5995 => \"Roverbella\",5996 => \"Roverchiara\",5997 => \"Rovere' della luna\",5998 => \"Rovere' veronese\",5999 => \"Roveredo di gua'\",6000 => \"Roveredo in piano\",6001 => \"Rovereto\",6002 => \"Rovescala\",6003 => \"Rovetta\",6004 => \"Roviano\",6005 => \"Rovigo\",6006 => \"Rovito\",6007 => \"Rovolon\",6008 => \"Rozzano\",6009 => \"Rubano\",6010 => \"Rubiana\",6011 => \"Rubiera\",8632 => \"Rucas\",6012 => \"Ruda\",6013 => \"Rudiano\",6014 => \"Rueglio\",6015 => \"Ruffano\",6016 => \"Ruffia\",6017 => \"Ruffre'\",6018 => \"Rufina\",6019 => \"Ruinas\",6020 => \"Ruino\",6021 => \"Rumo\",8366 => \"Ruoti\",6023 => \"Russi\",6024 => \"Rutigliano\",6025 => \"Rutino\",6026 => \"Ruviano\",8393 => \"Ruvo del monte\",6028 => \"Ruvo di Puglia\",6029 => \"Sabaudia\",6030 => \"Sabbia\",6031 => \"Sabbio chiese\",6032 => \"Sabbioneta\",6033 => \"Sacco\",6034 => \"Saccolongo\",6035 => \"Sacile\",8700 => \"Sacra di San Michele\",6036 => \"Sacrofano\",6037 => \"Sadali\",6038 => \"Sagama\",6039 => \"Sagliano micca\",6040 => \"Sagrado\",6041 => \"Sagron mis\",8602 => \"Saint Barthelemy\",6042 => \"Saint Christophe\",6043 => \"Saint Denis\",8304 => \"Saint Jacques\",6044 => \"Saint Marcel\",6045 => \"Saint Nicolas\",6046 => \"Saint Oyen Flassin\",6047 => \"Saint Pierre\",6048 => \"Saint Rhemy en Bosses\",6049 => \"Saint Vincent\",6050 => \"Sala Baganza\",6051 => \"Sala Biellese\",6052 => \"Sala Bolognese\",6053 => \"Sala Comacina\",6054 => \"Sala Consilina\",6055 => \"Sala Monferrato\",8372 => \"Salandra\",6057 => \"Salaparuta\",6058 => \"Salara\",6059 => \"Salasco\",6060 => \"Salassa\",6061 => \"Salbertrand\",6062 => \"Salcedo\",6063 => \"Salcito\",6064 => \"Sale\",6065 => \"Sale delle Langhe\",6066 => \"Sale Marasino\",6067 => \"Sale San Giovanni\",6068 => \"Salemi\",6069 => \"Salento\",6070 => \"Salerano Canavese\",6071 => \"Salerano sul Lambro\",6072 => \"Salerno\",6073 => \"Saletto\",6074 => \"Salgareda\",6075 => \"Sali Vercellese\",6076 => \"Salice Salentino\",6077 => \"Saliceto\",6078 => \"Salisano\",6079 => \"Salizzole\",6080 => \"Salle\",6081 => \"Salmour\",6082 => \"Salo'\",6083 => \"Salorno\",6084 => \"Salsomaggiore Terme\",6085 => \"Saltara\",6086 => \"Saltrio\",6087 => \"Saludecio\",6088 => \"Saluggia\",6089 => \"Salussola\",6090 => \"Saluzzo\",6091 => \"Salve\",6092 => \"Salvirola\",6093 => \"Salvitelle\",6094 => \"Salza di Pinerolo\",6095 => \"Salza Irpina\",6096 => \"Salzano\",6097 => \"Samarate\",6098 => \"Samassi\",6099 => \"Samatzai\",6100 => \"Sambuca di Sicilia\",6101 => \"Sambuca Pistoiese\",6102 => \"Sambuci\",6103 => \"Sambuco\",6104 => \"Sammichele di Bari\",6105 => \"Samo\",6106 => \"Samolaco\",6107 => \"Samone\",6108 => \"Samone\",6109 => \"Sampeyre\",6110 => \"Samugheo\",6111 => \"San Bartolomeo al Mare\",6112 => \"San Bartolomeo in Galdo\",6113 => \"San Bartolomeo Val Cavargna\",6114 => \"San Basile\",6115 => \"San Basilio\",6116 => \"San Bassano\",6117 => \"San Bellino\",6118 => \"San Benedetto Belbo\",6119 => \"San Benedetto dei Marsi\",6120 => \"San Benedetto del Tronto\",8126 => \"San Benedetto in Alpe\",6121 => \"San Benedetto in Perillis\",6122 => \"San Benedetto Po\",6123 => \"San Benedetto Ullano\",6124 => \"San Benedetto val di Sambro\",6125 => \"San Benigno Canavese\",8641 => \"San Bernardino\",6126 => \"San Bernardino Verbano\",6127 => \"San Biagio della Cima\",6128 => \"San Biagio di Callalta\",6129 => \"San Biagio Platani\",6130 => \"San Biagio Saracinisco\",6131 => \"San Biase\",6132 => \"San Bonifacio\",6133 => \"San Buono\",6134 => \"San Calogero\",6135 => \"San Candido\",6136 => \"San Canzian d'Isonzo\",6137 => \"San Carlo Canavese\",6138 => \"San Casciano dei Bagni\",6139 => \"San Casciano in Val di Pesa\",6140 => \"San Cassiano\",8624 => \"San Cassiano in Badia\",6141 => \"San Cataldo\",6142 => \"San Cesareo\",6143 => \"San Cesario di Lecce\",6144 => \"San Cesario sul Panaro\",8367 => \"San Chirico Nuovo\",6146 => \"San Chirico Raparo\",6147 => \"San Cipirello\",6148 => \"San Cipriano d'Aversa\",6149 => \"San Cipriano Picentino\",6150 => \"San Cipriano Po\",6151 => \"San Clemente\",6152 => \"San Colombano al Lambro\",6153 => \"San Colombano Belmonte\",6154 => \"San Colombano Certenoli\",8622 => \"San Colombano Valdidentro\",6155 => \"San Cono\",6156 => \"San Cosmo Albanese\",8376 => \"San Costantino Albanese\",6158 => \"San Costantino Calabro\",6159 => \"San Costanzo\",6160 => \"San Cristoforo\",6161 => \"San Damiano al Colle\",6162 => \"San Damiano d'Asti\",6163 => \"San Damiano Macra\",6164 => \"San Daniele del Friuli\",6165 => \"San Daniele Po\",6166 => \"San Demetrio Corone\",6167 => \"San Demetrio ne' Vestini\",6168 => \"San Didero\",8556 => \"San Domenico di Varzo\",6169 => \"San Dona' di Piave\",6170 => \"San Donaci\",6171 => \"San Donato di Lecce\",6172 => \"San Donato di Ninea\",6173 => \"San Donato Milanese\",6174 => \"San Donato Val di Comino\",6175 => \"San Dorligo della Valle\",6176 => \"San Fedele Intelvi\",6177 => \"San Fele\",6178 => \"San Felice a Cancello\",6179 => \"San Felice Circeo\",6180 => \"San Felice del Benaco\",6181 => \"San Felice del Molise\",6182 => \"San Felice sul Panaro\",6183 => \"San Ferdinando\",6184 => \"San Ferdinando di Puglia\",6185 => \"San Fermo della Battaglia\",6186 => \"San Fili\",6187 => \"San Filippo del mela\",6188 => \"San Fior\",6189 => \"San Fiorano\",6190 => \"San Floriano del collio\",6191 => \"San Floro\",6192 => \"San Francesco al campo\",6193 => \"San Fratello\",8690 => \"San Galgano\",6194 => \"San Gavino monreale\",6195 => \"San Gemini\",6196 => \"San Genesio Atesino\",6197 => \"San Genesio ed uniti\",6198 => \"San Gennaro vesuviano\",6199 => \"San Germano chisone\",6200 => \"San Germano dei berici\",6201 => \"San Germano vercellese\",6202 => \"San Gervasio bresciano\",6203 => \"San Giacomo degli schiavoni\",6204 => \"San Giacomo delle segnate\",8620 => \"San Giacomo di Roburent\",6205 => \"San Giacomo filippo\",6206 => \"San Giacomo vercellese\",6207 => \"San Gillio\",6208 => \"San Gimignano\",6209 => \"San Ginesio\",6210 => \"San Giorgio a cremano\",6211 => \"San Giorgio a liri\",6212 => \"San Giorgio albanese\",6213 => \"San Giorgio canavese\",6214 => \"San Giorgio del sannio\",6215 => \"San Giorgio della richinvelda\",6216 => \"San Giorgio delle Pertiche\",6217 => \"San Giorgio di lomellina\",6218 => \"San Giorgio di mantova\",6219 => \"San Giorgio di nogaro\",6220 => \"San Giorgio di pesaro\",6221 => \"San Giorgio di piano\",6222 => \"San Giorgio in bosco\",6223 => \"San Giorgio ionico\",6224 => \"San Giorgio la molara\",6225 => \"San Giorgio lucano\",6226 => \"San Giorgio monferrato\",6227 => \"San Giorgio morgeto\",6228 => \"San Giorgio piacentino\",6229 => \"San Giorgio scarampi\",6230 => \"San Giorgio su Legnano\",6231 => \"San Giorio di susa\",6232 => \"San Giovanni a piro\",6233 => \"San Giovanni al natisone\",6234 => \"San Giovanni bianco\",6235 => \"San Giovanni d'asso\",6236 => \"San Giovanni del dosso\",6237 => \"San Giovanni di gerace\",6238 => \"San Giovanni gemini\",6239 => \"San Giovanni ilarione\",6240 => \"San Giovanni in croce\",6241 => \"San Giovanni in fiore\",6242 => \"San Giovanni in galdo\",6243 => \"San Giovanni in marignano\",6244 => \"San Giovanni in persiceto\",8567 => \"San Giovanni in val Aurina\",6245 => \"San Giovanni incarico\",6246 => \"San Giovanni la punta\",6247 => \"San Giovanni lipioni\",6248 => \"San Giovanni lupatoto\",6249 => \"San Giovanni rotondo\",6250 => \"San Giovanni suergiu\",6251 => \"San Giovanni teatino\",6252 => \"San Giovanni valdarno\",6253 => \"San Giuliano del sannio\",6254 => \"San Giuliano di Puglia\",6255 => \"San Giuliano milanese\",6256 => \"San Giuliano terme\",6257 => \"San Giuseppe jato\",6258 => \"San Giuseppe vesuviano\",6259 => \"San Giustino\",6260 => \"San Giusto canavese\",6261 => \"San Godenzo\",6262 => \"San Gregorio d'ippona\",6263 => \"San Gregorio da sassola\",6264 => \"San Gregorio di Catania\",6265 => \"San Gregorio Magno\",6266 => \"San Gregorio Matese\",6267 => \"San Gregorio nelle Alpi\",6268 => \"San Lazzaro di Savena\",6269 => \"San Leo\",6270 => \"San Leonardo\",6271 => \"San Leonardo in Passiria\",8580 => \"San Leone\",6272 => \"San Leucio del Sannio\",6273 => \"San Lorenzello\",6274 => \"San Lorenzo\",6275 => \"San Lorenzo al mare\",6276 => \"San Lorenzo Bellizzi\",6277 => \"San Lorenzo del vallo\",6278 => \"San Lorenzo di Sebato\",6279 => \"San Lorenzo in Banale\",6280 => \"San Lorenzo in campo\",6281 => \"San Lorenzo isontino\",6282 => \"San Lorenzo Maggiore\",6283 => \"San Lorenzo Nuovo\",6284 => \"San Luca\",6285 => \"San Lucido\",6286 => \"San Lupo\",6287 => \"San Mango d'Aquino\",6288 => \"San Mango Piemonte\",6289 => \"San Mango sul Calore\",6290 => \"San Marcellino\",6291 => \"San Marcello\",6292 => \"San Marcello pistoiese\",6293 => \"San Marco argentano\",6294 => \"San Marco d'Alunzio\",6295 => \"San Marco dei Cavoti\",6296 => \"San Marco Evangelista\",6297 => \"San Marco in Lamis\",6298 => \"San Marco la Catola\",8152 => \"San Marino\",6299 => \"San Martino al Tagliamento\",6300 => \"San Martino Alfieri\",6301 => \"San Martino Buon Albergo\",6302 => \"San Martino Canavese\",6303 => \"San Martino d'Agri\",6304 => \"San Martino dall'argine\",6305 => \"San Martino del lago\",8209 => \"San Martino di Castrozza\",6306 => \"San Martino di Finita\",6307 => \"San Martino di Lupari\",6308 => \"San Martino di venezze\",8410 => \"San Martino d`agri\",6309 => \"San Martino in Badia\",6310 => \"San Martino in Passiria\",6311 => \"San Martino in pensilis\",6312 => \"San Martino in rio\",6313 => \"San Martino in strada\",6314 => \"San Martino sannita\",6315 => \"San Martino siccomario\",6316 => \"San Martino sulla marrucina\",6317 => \"San Martino valle caudina\",6318 => \"San Marzano di San Giuseppe\",6319 => \"San Marzano oliveto\",6320 => \"San Marzano sul Sarno\",6321 => \"San Massimo\",6322 => \"San Maurizio canavese\",6323 => \"San Maurizio d'opaglio\",6324 => \"San Mauro castelverde\",6325 => \"San Mauro cilento\",6326 => \"San Mauro di saline\",8427 => \"San Mauro forte\",6328 => \"San Mauro la bruca\",6329 => \"San Mauro marchesato\",6330 => \"San Mauro Pascoli\",6331 => \"San Mauro torinese\",6332 => \"San Michele al Tagliamento\",6333 => \"San Michele all'Adige\",6334 => \"San Michele di ganzaria\",6335 => \"San Michele di serino\",6336 => \"San Michele Mondovi'\",6337 => \"San Michele salentino\",6338 => \"San Miniato\",6339 => \"San Nazario\",6340 => \"San Nazzaro\",6341 => \"San Nazzaro Sesia\",6342 => \"San Nazzaro val cavargna\",6343 => \"San Nicola arcella\",6344 => \"San Nicola baronia\",6345 => \"San Nicola da crissa\",6346 => \"San Nicola dell'alto\",6347 => \"San Nicola la strada\",6348 => \"San nicola manfredi\",6349 => \"San nicolo' d'arcidano\",6350 => \"San nicolo' di comelico\",6351 => \"San Nicolo' Gerrei\",6352 => \"San Pancrazio\",6353 => \"San Pancrazio salentino\",6354 => \"San Paolo\",8361 => \"San Paolo albanese\",6356 => \"San Paolo bel sito\",6357 => \"San Paolo cervo\",6358 => \"San Paolo d'argon\",6359 => \"San Paolo di civitate\",6360 => \"San Paolo di Jesi\",6361 => \"San Paolo solbrito\",6362 => \"San Pellegrino terme\",6363 => \"San Pier d'isonzo\",6364 => \"San Pier niceto\",6365 => \"San Piero a sieve\",6366 => \"San Piero Patti\",6367 => \"San Pietro a maida\",6368 => \"San Pietro al Natisone\",6369 => \"San Pietro al Tanagro\",6370 => \"San Pietro apostolo\",6371 => \"San Pietro avellana\",6372 => \"San Pietro clarenza\",6373 => \"San Pietro di cadore\",6374 => \"San Pietro di carida'\",6375 => \"San Pietro di feletto\",6376 => \"San Pietro di morubio\",6377 => \"San Pietro in Amantea\",6378 => \"San Pietro in cariano\",6379 => \"San Pietro in casale\",6380 => \"San Pietro in cerro\",6381 => \"San Pietro in gu\",6382 => \"San Pietro in guarano\",6383 => \"San Pietro in lama\",6384 => \"San Pietro infine\",6385 => \"San Pietro mosezzo\",6386 => \"San Pietro mussolino\",6387 => \"San Pietro val lemina\",6388 => \"San Pietro vernotico\",6389 => \"San Pietro Viminario\",6390 => \"San Pio delle camere\",6391 => \"San Polo d'enza\",6392 => \"San Polo dei cavalieri\",6393 => \"San Polo di Piave\",6394 => \"San Polo matese\",6395 => \"San Ponso\",6396 => \"San Possidonio\",6397 => \"San Potito sannitico\",6398 => \"San Potito ultra\",6399 => \"San Prisco\",6400 => \"San Procopio\",6401 => \"San Prospero\",6402 => \"San Quirico d'orcia\",8199 => \"San Quirico d`Orcia\",6403 => \"San Quirino\",6404 => \"San Raffaele cimena\",6405 => \"San Roberto\",6406 => \"San Rocco al porto\",6407 => \"San Romano in garfagnana\",6408 => \"San Rufo\",6409 => \"San Salvatore di fitalia\",6410 => \"San Salvatore Monferrato\",6411 => \"San Salvatore Telesino\",6412 => \"San Salvo\",8103 => \"San Salvo Marina\",6413 => \"San Sebastiano al Vesuvio\",6414 => \"San Sebastiano Curone\",6415 => \"San Sebastiano da Po\",6416 => \"San Secondo di Pinerolo\",6417 => \"San Secondo Parmense\",6418 => \"San Severino Lucano\",6419 => \"San Severino Marche\",6420 => \"San Severo\",8347 => \"San Sicario di Cesana\",8289 => \"San Simone\",8539 => \"San Simone Baita del Camoscio\",6421 => \"San Siro\",6422 => \"San Sossio Baronia\",6423 => \"San Sostene\",6424 => \"San Sosti\",6425 => \"San Sperate\",6426 => \"San Tammaro\",6427 => \"San Teodoro\",8170 => \"San Teodoro\",6429 => \"San Tomaso agordino\",8212 => \"San Valentino alla Muta\",6430 => \"San Valentino in abruzzo citeriore\",6431 => \"San Valentino torio\",6432 => \"San Venanzo\",6433 => \"San Vendemiano\",6434 => \"San Vero milis\",6435 => \"San Vincenzo\",6436 => \"San Vincenzo la costa\",6437 => \"San Vincenzo valle roveto\",6438 => \"San Vitaliano\",8293 => \"San Vito\",6440 => \"San Vito al tagliamento\",6441 => \"San Vito al torre\",6442 => \"San Vito chietino\",6443 => \"San Vito dei normanni\",6444 => \"San Vito di cadore\",6445 => \"San Vito di fagagna\",6446 => \"San Vito di leguzzano\",6447 => \"San Vito lo capo\",6448 => \"San Vito romano\",6449 => \"San Vito sullo ionio\",6450 => \"San Vittore del lazio\",6451 => \"San Vittore Olona\",6452 => \"San Zeno di montagna\",6453 => \"San Zeno naviglio\",6454 => \"San Zenone al lambro\",6455 => \"San Zenone al po\",6456 => \"San Zenone degli ezzelini\",6457 => \"Sanarica\",6458 => \"Sandigliano\",6459 => \"Sandrigo\",6460 => \"Sanfre'\",6461 => \"Sanfront\",6462 => \"Sangano\",6463 => \"Sangiano\",6464 => \"Sangineto\",6465 => \"Sanguinetto\",6466 => \"Sanluri\",6467 => \"Sannazzaro de' Burgondi\",6468 => \"Sannicandro di bari\",6469 => \"Sannicandro garganico\",6470 => \"Sannicola\",6471 => \"Sanremo\",6472 => \"Sansepolcro\",6473 => \"Sant'Agapito\",6474 => \"Sant'Agata bolognese\",6475 => \"Sant'Agata de' goti\",6476 => \"Sant'Agata del bianco\",6477 => \"Sant'Agata di esaro\",6478 => \"Sant'Agata di Militello\",6479 => \"Sant'Agata di Puglia\",6480 => \"Sant'Agata feltria\",6481 => \"Sant'Agata fossili\",6482 => \"Sant'Agata li battiati\",6483 => \"Sant'Agata sul Santerno\",6484 => \"Sant'Agnello\",6485 => \"Sant'Agostino\",6486 => \"Sant'Albano stura\",6487 => \"Sant'Alessio con vialone\",6488 => \"Sant'Alessio in aspromonte\",6489 => \"Sant'Alessio siculo\",6490 => \"Sant'Alfio\",6491 => \"Sant'Ambrogio di Torino\",6492 => \"Sant'Ambrogio di valpolicella\",6493 => \"Sant'Ambrogio sul garigliano\",6494 => \"Sant'Anastasia\",6495 => \"Sant'Anatolia di narco\",6496 => \"Sant'Andrea apostolo dello ionio\",6497 => \"Sant'Andrea del garigliano\",6498 => \"Sant'Andrea di conza\",6499 => \"Sant'Andrea Frius\",8763 => \"Sant'Andrea in Monte\",6500 => \"Sant'Angelo a cupolo\",6501 => \"Sant'Angelo a fasanella\",6502 => \"Sant'Angelo a scala\",6503 => \"Sant'Angelo all'esca\",6504 => \"Sant'Angelo d'alife\",6505 => \"Sant'Angelo dei lombardi\",6506 => \"Sant'Angelo del pesco\",6507 => \"Sant'Angelo di brolo\",6508 => \"Sant'Angelo di Piove di Sacco\",6509 => \"Sant'Angelo in lizzola\",6510 => \"Sant'Angelo in pontano\",6511 => \"Sant'Angelo in vado\",6512 => \"Sant'Angelo le fratte\",6513 => \"Sant'Angelo limosano\",6514 => \"Sant'Angelo lodigiano\",6515 => \"Sant'Angelo lomellina\",6516 => \"Sant'Angelo muxaro\",6517 => \"Sant'Angelo romano\",6518 => \"Sant'Anna Arresi\",6519 => \"Sant'Anna d'Alfaedo\",8730 => \"Sant'Anna di Valdieri\",8698 => \"Sant'Anna di Vinadio\",8563 => \"Sant'Anna Pelago\",6520 => \"Sant'Antimo\",6521 => \"Sant'Antioco\",6522 => \"Sant'Antonino di Susa\",6523 => \"Sant'Antonio Abate\",6524 => \"Sant'Antonio di gallura\",6525 => \"Sant'Apollinare\",6526 => \"Sant'Arcangelo\",6527 => \"Sant'Arcangelo trimonte\",6528 => \"Sant'Arpino\",6529 => \"Sant'Arsenio\",6530 => \"Sant'Egidio alla vibrata\",6531 => \"Sant'Egidio del monte Albino\",6532 => \"Sant'Elena\",6533 => \"Sant'Elena sannita\",6534 => \"Sant'Elia a pianisi\",6535 => \"Sant'Elia fiumerapido\",6536 => \"Sant'Elpidio a mare\",6537 => \"Sant'Eufemia a maiella\",6538 => \"Sant'Eufemia d'Aspromonte\",6539 => \"Sant'Eusanio del Sangro\",6540 => \"Sant'Eusanio forconese\",6541 => \"Sant'Ilario d'Enza\",6542 => \"Sant'Ilario dello Ionio\",6543 => \"Sant'Ippolito\",6544 => \"Sant'Olcese\",6545 => \"Sant'Omero\",6546 => \"Sant'Omobono imagna\",6547 => \"Sant'Onofrio\",6548 => \"Sant'Oreste\",6549 => \"Sant'Orsola terme\",6550 => \"Sant'Urbano\",6551 => \"Santa Brigida\",6552 => \"Santa Caterina albanese\",6553 => \"Santa Caterina dello ionio\",8144 => \"Santa Caterina Valfurva\",6554 => \"Santa Caterina villarmosa\",6555 => \"Santa Cesarea terme\",6556 => \"Santa Cristina d'Aspromonte\",6557 => \"Santa Cristina e Bissone\",6558 => \"Santa Cristina gela\",6559 => \"Santa Cristina Valgardena\",6560 => \"Santa Croce camerina\",6561 => \"Santa Croce del sannio\",6562 => \"Santa Croce di Magliano\",6563 => \"Santa Croce sull'Arno\",6564 => \"Santa Domenica talao\",6565 => \"Santa Domenica Vittoria\",6566 => \"Santa Elisabetta\",6567 => \"Santa Fiora\",6568 => \"Santa Flavia\",6569 => \"Santa Giuletta\",6570 => \"Santa Giusta\",6571 => \"Santa Giustina\",6572 => \"Santa Giustina in Colle\",6573 => \"Santa Luce\",6574 => \"Santa Lucia del Mela\",6575 => \"Santa Lucia di Piave\",6576 => \"Santa Lucia di serino\",6577 => \"Santa Margherita d'adige\",6578 => \"Santa Margherita di belice\",6579 => \"Santa Margherita di staffora\",8285 => \"Santa Margherita Ligure\",6581 => \"Santa Maria a monte\",6582 => \"Santa Maria a vico\",6583 => \"Santa Maria Capua Vetere\",6584 => \"Santa Maria coghinas\",6585 => \"Santa Maria del cedro\",6586 => \"Santa Maria del Molise\",6587 => \"Santa Maria della Versa\",8122 => \"Santa Maria di Castellabate\",6588 => \"Santa Maria di Licodia\",6589 => \"Santa Maria di sala\",6590 => \"Santa Maria Hoe'\",6591 => \"Santa Maria imbaro\",6592 => \"Santa Maria la carita'\",6593 => \"Santa Maria la fossa\",6594 => \"Santa Maria la longa\",6595 => \"Santa Maria Maggiore\",6596 => \"Santa Maria Nuova\",6597 => \"Santa Marina\",6598 => \"Santa Marina salina\",6599 => \"Santa Marinella\",6600 => \"Santa Ninfa\",6601 => \"Santa Paolina\",6602 => \"Santa Severina\",6603 => \"Santa Sofia\",6604 => \"Santa Sofia d'Epiro\",6605 => \"Santa Teresa di Riva\",6606 => \"Santa Teresa gallura\",6607 => \"Santa Venerina\",6608 => \"Santa Vittoria d'Alba\",6609 => \"Santa Vittoria in matenano\",6610 => \"Santadi\",6611 => \"Santarcangelo di Romagna\",6612 => \"Sante marie\",6613 => \"Santena\",6614 => \"Santeramo in colle\",6615 => \"Santhia'\",6616 => \"Santi Cosma e Damiano\",6617 => \"Santo Stefano al mare\",6618 => \"Santo Stefano Belbo\",6619 => \"Santo Stefano d'Aveto\",6620 => \"Santo Stefano del sole\",6621 => \"Santo Stefano di Cadore\",6622 => \"Santo Stefano di Camastra\",6623 => \"Santo Stefano di Magra\",6624 => \"Santo Stefano di Rogliano\",6625 => \"Santo Stefano di Sessanio\",6626 => \"Santo Stefano in Aspromonte\",6627 => \"Santo Stefano lodigiano\",6628 => \"Santo Stefano quisquina\",6629 => \"Santo Stefano roero\",6630 => \"Santo Stefano Ticino\",6631 => \"Santo Stino di Livenza\",6632 => \"Santomenna\",6633 => \"Santopadre\",6634 => \"Santorso\",6635 => \"Santu Lussurgiu\",8419 => \"Sant`Angelo le fratte\",6636 => \"Sanza\",6637 => \"Sanzeno\",6638 => \"Saonara\",6639 => \"Saponara\",6640 => \"Sappada\",6641 => \"Sapri\",6642 => \"Saracena\",6643 => \"Saracinesco\",6644 => \"Sarcedo\",8377 => \"Sarconi\",6646 => \"Sardara\",6647 => \"Sardigliano\",6648 => \"Sarego\",6649 => \"Sarentino\",6650 => \"Sarezzano\",6651 => \"Sarezzo\",6652 => \"Sarmato\",6653 => \"Sarmede\",6654 => \"Sarnano\",6655 => \"Sarnico\",6656 => \"Sarno\",6657 => \"Sarnonico\",6658 => \"Saronno\",6659 => \"Sarre\",6660 => \"Sarroch\",6661 => \"Sarsina\",6662 => \"Sarteano\",6663 => \"Sartirana lomellina\",6664 => \"Sarule\",6665 => \"Sarzana\",6666 => \"Sassano\",6667 => \"Sassari\",6668 => \"Sassello\",6669 => \"Sassetta\",6670 => \"Sassinoro\",8387 => \"Sasso di castalda\",6672 => \"Sasso marconi\",6673 => \"Sassocorvaro\",6674 => \"Sassofeltrio\",6675 => \"Sassoferrato\",8656 => \"Sassotetto\",6676 => \"Sassuolo\",6677 => \"Satriano\",8420 => \"Satriano di Lucania\",6679 => \"Sauris\",6680 => \"Sauze d'Oulx\",6681 => \"Sauze di Cesana\",6682 => \"Sava\",6683 => \"Savelli\",6684 => \"Saviano\",6685 => \"Savigliano\",6686 => \"Savignano irpino\",6687 => \"Savignano sul Panaro\",6688 => \"Savignano sul Rubicone\",6689 => \"Savigno\",6690 => \"Savignone\",6691 => \"Saviore dell'Adamello\",6692 => \"Savoca\",6693 => \"Savogna\",6694 => \"Savogna d'Isonzo\",8411 => \"Savoia di Lucania\",6696 => \"Savona\",6697 => \"Scafa\",6698 => \"Scafati\",6699 => \"Scagnello\",6700 => \"Scala\",6701 => \"Scala coeli\",6702 => \"Scaldasole\",6703 => \"Scalea\",6704 => \"Scalenghe\",6705 => \"Scaletta Zanclea\",6706 => \"Scampitella\",6707 => \"Scandale\",6708 => \"Scandiano\",6709 => \"Scandicci\",6710 => \"Scandolara ravara\",6711 => \"Scandolara ripa d'Oglio\",6712 => \"Scandriglia\",6713 => \"Scanno\",6714 => \"Scano di montiferro\",6715 => \"Scansano\",6716 => \"Scanzano jonico\",6717 => \"Scanzorosciate\",6718 => \"Scapoli\",8120 => \"Scario\",6719 => \"Scarlino\",6720 => \"Scarmagno\",6721 => \"Scarnafigi\",6722 => \"Scarperia\",8139 => \"Scauri\",6723 => \"Scena\",6724 => \"Scerni\",6725 => \"Scheggia e pascelupo\",6726 => \"Scheggino\",6727 => \"Schiavi di Abruzzo\",6728 => \"Schiavon\",8456 => \"Schiavonea di Corigliano\",6729 => \"Schignano\",6730 => \"Schilpario\",6731 => \"Schio\",6732 => \"Schivenoglia\",6733 => \"Sciacca\",6734 => \"Sciara\",6735 => \"Scicli\",6736 => \"Scido\",6737 => \"Scigliano\",6738 => \"Scilla\",6739 => \"Scillato\",6740 => \"Sciolze\",6741 => \"Scisciano\",6742 => \"Sclafani bagni\",6743 => \"Scontrone\",6744 => \"Scopa\",6745 => \"Scopello\",6746 => \"Scoppito\",6747 => \"Scordia\",6748 => \"Scorrano\",6749 => \"Scorze'\",6750 => \"Scurcola marsicana\",6751 => \"Scurelle\",6752 => \"Scurzolengo\",6753 => \"Seborga\",6754 => \"Secinaro\",6755 => \"Secli'\",8336 => \"Secondino\",6756 => \"Secugnago\",6757 => \"Sedegliano\",6758 => \"Sedico\",6759 => \"Sedilo\",6760 => \"Sedini\",6761 => \"Sedriano\",6762 => \"Sedrina\",6763 => \"Sefro\",6764 => \"Segariu\",8714 => \"Segesta\",6765 => \"Seggiano\",6766 => \"Segni\",6767 => \"Segonzano\",6768 => \"Segrate\",6769 => \"Segusino\",6770 => \"Selargius\",6771 => \"Selci\",6772 => \"Selegas\",8715 => \"Selinunte\",8130 => \"Sella Nevea\",6773 => \"Sellano\",8651 => \"Sellata Arioso\",6774 => \"Sellero\",8238 => \"Selletta\",6775 => \"Sellia\",6776 => \"Sellia marina\",6777 => \"Selva dei Molini\",6778 => \"Selva di Cadore\",6779 => \"Selva di Progno\",6780 => \"Selva di Val Gardena\",6781 => \"Selvazzano dentro\",6782 => \"Selve marcone\",6783 => \"Selvino\",6784 => \"Semestene\",6785 => \"Semiana\",6786 => \"Seminara\",6787 => \"Semproniano\",6788 => \"Senago\",6789 => \"Senale San Felice\",6790 => \"Senales\",6791 => \"Seneghe\",6792 => \"Senerchia\",6793 => \"Seniga\",6794 => \"Senigallia\",6795 => \"Senis\",6796 => \"Senise\",6797 => \"Senna comasco\",6798 => \"Senna lodigiana\",6799 => \"Sennariolo\",6800 => \"Sennori\",6801 => \"Senorbi'\",6802 => \"Sepino\",6803 => \"Seppiana\",6804 => \"Sequals\",6805 => \"Seravezza\",6806 => \"Serdiana\",6807 => \"Seregno\",6808 => \"Seren del grappa\",6809 => \"Sergnano\",6810 => \"Seriate\",6811 => \"Serina\",6812 => \"Serino\",6813 => \"Serle\",6814 => \"Sermide\",6815 => \"Sermoneta\",6816 => \"Sernaglia della Battaglia\",6817 => \"Sernio\",6818 => \"Serole\",6819 => \"Serra d'aiello\",6820 => \"Serra de'conti\",6821 => \"Serra pedace\",6822 => \"Serra ricco'\",6823 => \"Serra San Bruno\",6824 => \"Serra San Quirico\",6825 => \"Serra Sant'Abbondio\",6826 => \"Serracapriola\",6827 => \"Serradifalco\",6828 => \"Serralunga d'Alba\",6829 => \"Serralunga di Crea\",6830 => \"Serramanna\",6831 => \"Serramazzoni\",6832 => \"Serramezzana\",6833 => \"Serramonacesca\",6834 => \"Serrapetrona\",6835 => \"Serrara fontana\",6836 => \"Serrastretta\",6837 => \"Serrata\",6838 => \"Serravalle a po\",6839 => \"Serravalle di chienti\",6840 => \"Serravalle langhe\",6841 => \"Serravalle pistoiese\",6842 => \"Serravalle Scrivia\",6843 => \"Serravalle Sesia\",6844 => \"Serre\",6845 => \"Serrenti\",6846 => \"Serri\",6847 => \"Serrone\",6848 => \"Serrungarina\",6849 => \"Sersale\",6850 => \"Servigliano\",6851 => \"Sessa aurunca\",6852 => \"Sessa cilento\",6853 => \"Sessame\",6854 => \"Sessano del Molise\",6855 => \"Sesta godano\",6856 => \"Sestino\",6857 => \"Sesto\",6858 => \"Sesto al reghena\",6859 => \"Sesto calende\",8709 => \"Sesto Calende Alta\",6860 => \"Sesto campano\",6861 => \"Sesto ed Uniti\",6862 => \"Sesto fiorentino\",6863 => \"Sesto San Giovanni\",6864 => \"Sestola\",6865 => \"Sestri levante\",6866 => \"Sestriere\",6867 => \"Sestu\",6868 => \"Settala\",8316 => \"Settebagni\",6869 => \"Settefrati\",6870 => \"Settime\",6871 => \"Settimo milanese\",6872 => \"Settimo rottaro\",6873 => \"Settimo San Pietro\",6874 => \"Settimo torinese\",6875 => \"Settimo vittone\",6876 => \"Settingiano\",6877 => \"Setzu\",6878 => \"Seui\",6879 => \"Seulo\",6880 => \"Seveso\",6881 => \"Sezzadio\",6882 => \"Sezze\",6883 => \"Sfruz\",6884 => \"Sgonico\",6885 => \"Sgurgola\",6886 => \"Siamaggiore\",6887 => \"Siamanna\",6888 => \"Siano\",6889 => \"Siapiccia\",8114 => \"Sibari\",6890 => \"Sicignano degli Alburni\",6891 => \"Siculiana\",6892 => \"Siddi\",6893 => \"Siderno\",6894 => \"Siena\",6895 => \"Sigillo\",6896 => \"Signa\",8603 => \"Sigonella\",6897 => \"Silandro\",6898 => \"Silanus\",6899 => \"Silea\",6900 => \"Siligo\",6901 => \"Siliqua\",6902 => \"Silius\",6903 => \"Sillano\",6904 => \"Sillavengo\",6905 => \"Silvano d'orba\",6906 => \"Silvano pietra\",6907 => \"Silvi\",6908 => \"Simala\",6909 => \"Simaxis\",6910 => \"Simbario\",6911 => \"Simeri crichi\",6912 => \"Sinagra\",6913 => \"Sinalunga\",6914 => \"Sindia\",6915 => \"Sini\",6916 => \"Sinio\",6917 => \"Siniscola\",6918 => \"Sinnai\",6919 => \"Sinopoli\",6920 => \"Siracusa\",6921 => \"Sirignano\",6922 => \"Siris\",6923 => \"Sirmione\",8457 => \"Sirolo\",6925 => \"Sirone\",6926 => \"Siror\",6927 => \"Sirtori\",6928 => \"Sissa\",8492 => \"Sistiana\",6929 => \"Siurgus donigala\",6930 => \"Siziano\",6931 => \"Sizzano\",8258 => \"Ski center Latemar\",6932 => \"Sluderno\",6933 => \"Smarano\",6934 => \"Smerillo\",6935 => \"Soave\",8341 => \"Sobretta Vallalpe\",6936 => \"Socchieve\",6937 => \"Soddi\",6938 => \"Sogliano al rubicone\",6939 => \"Sogliano Cavour\",6940 => \"Soglio\",6941 => \"Soiano del lago\",6942 => \"Solagna\",6943 => \"Solarino\",6944 => \"Solaro\",6945 => \"Solarolo\",6946 => \"Solarolo Rainerio\",6947 => \"Solarussa\",6948 => \"Solbiate\",6949 => \"Solbiate Arno\",6950 => \"Solbiate Olona\",8307 => \"Solda\",6951 => \"Soldano\",6952 => \"Soleminis\",6953 => \"Solero\",6954 => \"Solesino\",6955 => \"Soleto\",6956 => \"Solferino\",6957 => \"Soliera\",6958 => \"Solignano\",6959 => \"Solofra\",6960 => \"Solonghello\",6961 => \"Solopaca\",6962 => \"Solto collina\",6963 => \"Solza\",6964 => \"Somaglia\",6965 => \"Somano\",6966 => \"Somma lombardo\",6967 => \"Somma vesuviana\",6968 => \"Sommacampagna\",6969 => \"Sommariva del bosco\",6970 => \"Sommariva Perno\",6971 => \"Sommatino\",6972 => \"Sommo\",6973 => \"Sona\",6974 => \"Soncino\",6975 => \"Sondalo\",6976 => \"Sondrio\",6977 => \"Songavazzo\",6978 => \"Sonico\",6979 => \"Sonnino\",6980 => \"Soprana\",6981 => \"Sora\",6982 => \"Soraga\",6983 => \"Soragna\",6984 => \"Sorano\",6985 => \"Sorbo San Basile\",6986 => \"Sorbo Serpico\",6987 => \"Sorbolo\",6988 => \"Sordevolo\",6989 => \"Sordio\",6990 => \"Soresina\",6991 => \"Sorga'\",6992 => \"Sorgono\",6993 => \"Sori\",6994 => \"Sorianello\",6995 => \"Soriano calabro\",6996 => \"Soriano nel cimino\",6997 => \"Sorico\",6998 => \"Soriso\",6999 => \"Sorisole\",7000 => \"Sormano\",7001 => \"Sorradile\",7002 => \"Sorrento\",7003 => \"Sorso\",7004 => \"Sortino\",7005 => \"Sospiro\",7006 => \"Sospirolo\",7007 => \"Sossano\",7008 => \"Sostegno\",7009 => \"Sotto il monte Giovanni XXIII\",8747 => \"Sottomarina\",7010 => \"Sover\",7011 => \"Soverato\",7012 => \"Sovere\",7013 => \"Soveria mannelli\",7014 => \"Soveria simeri\",7015 => \"Soverzene\",7016 => \"Sovicille\",7017 => \"Sovico\",7018 => \"Sovizzo\",7019 => \"Sovramonte\",7020 => \"Sozzago\",7021 => \"Spadafora\",7022 => \"Spadola\",7023 => \"Sparanise\",7024 => \"Sparone\",7025 => \"Specchia\",7026 => \"Spello\",8585 => \"Spelonga\",7027 => \"Spera\",7028 => \"Sperlinga\",7029 => \"Sperlonga\",7030 => \"Sperone\",7031 => \"Spessa\",7032 => \"Spezzano albanese\",7033 => \"Spezzano della Sila\",7034 => \"Spezzano piccolo\",7035 => \"Spiazzo\",7036 => \"Spigno monferrato\",7037 => \"Spigno saturnia\",7038 => \"Spilamberto\",7039 => \"Spilimbergo\",7040 => \"Spilinga\",7041 => \"Spinadesco\",7042 => \"Spinazzola\",7043 => \"Spinea\",7044 => \"Spineda\",7045 => \"Spinete\",7046 => \"Spineto Scrivia\",7047 => \"Spinetoli\",7048 => \"Spino d'Adda\",7049 => \"Spinone al lago\",8421 => \"Spinoso\",7051 => \"Spirano\",7052 => \"Spoleto\",7053 => \"Spoltore\",7054 => \"Spongano\",7055 => \"Spormaggiore\",7056 => \"Sporminore\",7057 => \"Spotorno\",7058 => \"Spresiano\",7059 => \"Spriana\",7060 => \"Squillace\",7061 => \"Squinzano\",8248 => \"Staffal\",7062 => \"Staffolo\",7063 => \"Stagno lombardo\",7064 => \"Staiti\",7065 => \"Staletti\",7066 => \"Stanghella\",7067 => \"Staranzano\",7068 => \"Statte\",7069 => \"Stazzano\",7070 => \"Stazzema\",7071 => \"Stazzona\",7072 => \"Stefanaconi\",7073 => \"Stella\",7074 => \"Stella cilento\",7075 => \"Stellanello\",7076 => \"Stelvio\",7077 => \"Stenico\",7078 => \"Sternatia\",7079 => \"Stezzano\",7080 => \"Stia\",7081 => \"Stienta\",7082 => \"Stigliano\",7083 => \"Stignano\",7084 => \"Stilo\",7085 => \"Stimigliano\",7086 => \"Stintino\",7087 => \"Stio\",7088 => \"Stornara\",7089 => \"Stornarella\",7090 => \"Storo\",7091 => \"Stra\",7092 => \"Stradella\",7093 => \"Strambinello\",7094 => \"Strambino\",7095 => \"Strangolagalli\",7096 => \"Stregna\",7097 => \"Strembo\",7098 => \"Stresa\",7099 => \"Strevi\",7100 => \"Striano\",7101 => \"Strigno\",8182 => \"Stromboli\",7102 => \"Strona\",7103 => \"Stroncone\",7104 => \"Strongoli\",7105 => \"Stroppiana\",7106 => \"Stroppo\",7107 => \"Strozza\",8493 => \"Stupizza\",7108 => \"Sturno\",7109 => \"Suardi\",7110 => \"Subbiano\",7111 => \"Subiaco\",7112 => \"Succivo\",7113 => \"Sueglio\",7114 => \"Suelli\",7115 => \"Suello\",7116 => \"Suisio\",7117 => \"Sulbiate\",7118 => \"Sulmona\",7119 => \"Sulzano\",7120 => \"Sumirago\",7121 => \"Summonte\",7122 => \"Suni\",7123 => \"Suno\",7124 => \"Supersano\",7125 => \"Supino\",7126 => \"Surano\",7127 => \"Surbo\",7128 => \"Susa\",7129 => \"Susegana\",7130 => \"Sustinente\",7131 => \"Sutera\",7132 => \"Sutri\",7133 => \"Sutrio\",7134 => \"Suvereto\",7135 => \"Suzzara\",7136 => \"Taceno\",7137 => \"Tadasuni\",7138 => \"Taggia\",7139 => \"Tagliacozzo\",8450 => \"Tagliacozzo casello\",7140 => \"Taglio di po\",7141 => \"Tagliolo monferrato\",7142 => \"Taibon agordino\",7143 => \"Taino\",7144 => \"Taio\",7145 => \"Taipana\",7146 => \"Talamello\",7147 => \"Talamona\",8299 => \"Talamone\",7148 => \"Talana\",7149 => \"Taleggio\",7150 => \"Talla\",7151 => \"Talmassons\",7152 => \"Tambre\",7153 => \"Taormina\",7154 => \"Tapogliano\",7155 => \"Tarano\",7156 => \"Taranta peligna\",7157 => \"Tarantasca\",7158 => \"Taranto\",8550 => \"Taranto M. A. Grottaglie\",7159 => \"Tarcento\",7160 => \"Tarquinia\",8140 => \"Tarquinia Lido\",7161 => \"Tarsia\",7162 => \"Tartano\",7163 => \"Tarvisio\",8466 => \"Tarvisio casello\",7164 => \"Tarzo\",7165 => \"Tassarolo\",7166 => \"Tassullo\",7167 => \"Taurano\",7168 => \"Taurasi\",7169 => \"Taurianova\",7170 => \"Taurisano\",7171 => \"Tavagnacco\",7172 => \"Tavagnasco\",7173 => \"Tavarnelle val di pesa\",7174 => \"Tavazzano con villavesco\",7175 => \"Tavenna\",7176 => \"Taverna\",7177 => \"Tavernerio\",7178 => \"Tavernola bergamasca\",7179 => \"Tavernole sul Mella\",7180 => \"Taviano\",7181 => \"Tavigliano\",7182 => \"Tavoleto\",7183 => \"Tavullia\",8362 => \"Teana\",7185 => \"Teano\",7186 => \"Teggiano\",7187 => \"Teglio\",7188 => \"Teglio veneto\",7189 => \"Telese terme\",7190 => \"Telgate\",7191 => \"Telti\",7192 => \"Telve\",7193 => \"Telve di sopra\",7194 => \"Tempio Pausania\",7195 => \"Temu'\",7196 => \"Tenna\",7197 => \"Tenno\",7198 => \"Teolo\",7199 => \"Teor\",7200 => \"Teora\",7201 => \"Teramo\",8449 => \"Teramo Val Vomano\",7202 => \"Terdobbiate\",7203 => \"Terelle\",7204 => \"Terento\",7205 => \"Terenzo\",7206 => \"Tergu\",7207 => \"Terlago\",7208 => \"Terlano\",7209 => \"Terlizzi\",8158 => \"Terme di Lurisia\",7210 => \"Terme vigliatore\",7211 => \"Termeno sulla strada del vino\",7212 => \"Termini imerese\",8133 => \"Terminillo\",7213 => \"Termoli\",7214 => \"Ternate\",7215 => \"Ternengo\",7216 => \"Terni\",7217 => \"Terno d'isola\",7218 => \"Terracina\",7219 => \"Terragnolo\",7220 => \"Terralba\",7221 => \"Terranova da Sibari\",7222 => \"Terranova dei passerini\",8379 => \"Terranova di Pollino\",7224 => \"Terranova Sappo Minulio\",7225 => \"Terranuova bracciolini\",7226 => \"Terrasini\",7227 => \"Terrassa padovana\",7228 => \"Terravecchia\",7229 => \"Terrazzo\",7230 => \"Terres\",7231 => \"Terricciola\",7232 => \"Terruggia\",7233 => \"Tertenia\",7234 => \"Terzigno\",7235 => \"Terzo\",7236 => \"Terzo d'Aquileia\",7237 => \"Terzolas\",7238 => \"Terzorio\",7239 => \"Tesero\",7240 => \"Tesimo\",7241 => \"Tessennano\",7242 => \"Testico\",7243 => \"Teti\",7244 => \"Teulada\",7245 => \"Teverola\",7246 => \"Tezze sul Brenta\",8716 => \"Tharros\",7247 => \"Thiene\",7248 => \"Thiesi\",7249 => \"Tiana\",7250 => \"Tiarno di sopra\",7251 => \"Tiarno di sotto\",7252 => \"Ticengo\",7253 => \"Ticineto\",7254 => \"Tiggiano\",7255 => \"Tiglieto\",7256 => \"Tigliole\",7257 => \"Tignale\",7258 => \"Tinnura\",7259 => \"Tione degli Abruzzi\",7260 => \"Tione di Trento\",7261 => \"Tirano\",7262 => \"Tires\",7263 => \"Tiriolo\",7264 => \"Tirolo\",8194 => \"Tirrenia\",8719 => \"Tiscali\",7265 => \"Tissi\",8422 => \"Tito\",7267 => \"Tivoli\",8451 => \"Tivoli casello\",7268 => \"Tizzano val Parma\",7269 => \"Toano\",7270 => \"Tocco caudio\",7271 => \"Tocco da Casauria\",7272 => \"Toceno\",7273 => \"Todi\",7274 => \"Toffia\",7275 => \"Toirano\",7276 => \"Tolentino\",7277 => \"Tolfa\",7278 => \"Tollegno\",7279 => \"Tollo\",7280 => \"Tolmezzo\",8423 => \"Tolve\",7282 => \"Tombolo\",7283 => \"Ton\",7284 => \"Tonadico\",7285 => \"Tonara\",7286 => \"Tonco\",7287 => \"Tonengo\",7288 => \"Tonezza del Cimone\",7289 => \"Tora e piccilli\",8132 => \"Torano\",7290 => \"Torano castello\",7291 => \"Torano nuovo\",7292 => \"Torbole casaglia\",7293 => \"Torcegno\",7294 => \"Torchiara\",7295 => \"Torchiarolo\",7296 => \"Torella dei lombardi\",7297 => \"Torella del sannio\",7298 => \"Torgiano\",7299 => \"Torgnon\",7300 => \"Torino\",8271 => \"Torino Caselle\",7301 => \"Torino di Sangro\",8494 => \"Torino di Sangro Marina\",7302 => \"Toritto\",7303 => \"Torlino Vimercati\",7304 => \"Tornaco\",7305 => \"Tornareccio\",7306 => \"Tornata\",7307 => \"Tornimparte\",8445 => \"Tornimparte casello\",7308 => \"Torno\",7309 => \"Tornolo\",7310 => \"Toro\",7311 => \"Torpe'\",7312 => \"Torraca\",7313 => \"Torralba\",7314 => \"Torrazza coste\",7315 => \"Torrazza Piemonte\",7316 => \"Torrazzo\",7317 => \"Torre Annunziata\",7318 => \"Torre Beretti e Castellaro\",7319 => \"Torre boldone\",7320 => \"Torre bormida\",7321 => \"Torre cajetani\",7322 => \"Torre canavese\",7323 => \"Torre d'arese\",7324 => \"Torre d'isola\",7325 => \"Torre de' passeri\",7326 => \"Torre de'busi\",7327 => \"Torre de'negri\",7328 => \"Torre de'picenardi\",7329 => \"Torre de'roveri\",7330 => \"Torre del greco\",7331 => \"Torre di mosto\",7332 => \"Torre di ruggiero\",7333 => \"Torre di Santa Maria\",7334 => \"Torre le nocelle\",7335 => \"Torre mondovi'\",7336 => \"Torre orsaia\",8592 => \"Torre Pali\",7337 => \"Torre pallavicina\",7338 => \"Torre pellice\",7339 => \"Torre San Giorgio\",8596 => \"Torre San Giovanni\",8595 => \"Torre San Gregorio\",7340 => \"Torre San Patrizio\",7341 => \"Torre Santa Susanna\",8593 => \"Torre Vado\",7342 => \"Torreano\",7343 => \"Torrebelvicino\",7344 => \"Torrebruna\",7345 => \"Torrecuso\",7346 => \"Torreglia\",7347 => \"Torregrotta\",7348 => \"Torremaggiore\",7349 => \"Torrenova\",7350 => \"Torresina\",7351 => \"Torretta\",7352 => \"Torrevecchia pia\",7353 => \"Torrevecchia teatina\",7354 => \"Torri del benaco\",7355 => \"Torri di quartesolo\",7356 => \"Torri in sabina\",7357 => \"Torriana\",7358 => \"Torrice\",7359 => \"Torricella\",7360 => \"Torricella del pizzo\",7361 => \"Torricella in sabina\",7362 => \"Torricella peligna\",7363 => \"Torricella sicura\",7364 => \"Torricella verzate\",7365 => \"Torriglia\",7366 => \"Torrile\",7367 => \"Torrioni\",7368 => \"Torrita di Siena\",7369 => \"Torrita tiberina\",7370 => \"Tortoli'\",7371 => \"Tortona\",7372 => \"Tortora\",7373 => \"Tortorella\",7374 => \"Tortoreto\",8601 => \"Tortoreto lido\",7375 => \"Tortorici\",8138 => \"Torvaianica\",7376 => \"Torviscosa\",7377 => \"Toscolano maderno\",7378 => \"Tossicia\",7379 => \"Tovo di Sant'Agata\",7380 => \"Tovo San Giacomo\",7381 => \"Trabia\",7382 => \"Tradate\",8214 => \"Trafoi\",7383 => \"Tramatza\",7384 => \"Trambileno\",7385 => \"Tramonti\",7386 => \"Tramonti di sopra\",7387 => \"Tramonti di sotto\",8412 => \"Tramutola\",7389 => \"Trana\",7390 => \"Trani\",7391 => \"Transacqua\",7392 => \"Traona\",7393 => \"Trapani\",8544 => \"Trapani Birgi\",7394 => \"Trappeto\",7395 => \"Trarego Viggiona\",7396 => \"Trasacco\",7397 => \"Trasaghis\",7398 => \"Trasquera\",7399 => \"Tratalias\",7400 => \"Trausella\",7401 => \"Travaco' siccomario\",7402 => \"Travagliato\",7403 => \"Travedona monate\",7404 => \"Traversella\",7405 => \"Traversetolo\",7406 => \"Traves\",7407 => \"Travesio\",7408 => \"Travo\",8187 => \"Tre fontane\",7409 => \"Trebaseleghe\",7410 => \"Trebisacce\",7411 => \"Trecasali\",7412 => \"Trecase\",7413 => \"Trecastagni\",7414 => \"Trecate\",7415 => \"Trecchina\",7416 => \"Trecenta\",7417 => \"Tredozio\",7418 => \"Treglio\",7419 => \"Tregnago\",7420 => \"Treia\",7421 => \"Treiso\",7422 => \"Tremenico\",7423 => \"Tremestieri etneo\",7424 => \"Tremezzo\",7425 => \"Tremosine\",7426 => \"Trenta\",7427 => \"Trentinara\",7428 => \"Trento\",7429 => \"Trentola-ducenta\",7430 => \"Trenzano\",8146 => \"Trepalle\",7431 => \"Treppo carnico\",7432 => \"Treppo grande\",7433 => \"Trepuzzi\",7434 => \"Trequanda\",7435 => \"Tres\",7436 => \"Tresana\",7437 => \"Trescore balneario\",7438 => \"Trescore cremasco\",7439 => \"Tresigallo\",7440 => \"Tresivio\",7441 => \"Tresnuraghes\",7442 => \"Trevenzuolo\",7443 => \"Trevi\",7444 => \"Trevi nel lazio\",7445 => \"Trevico\",7446 => \"Treviglio\",7447 => \"Trevignano\",7448 => \"Trevignano romano\",7449 => \"Treville\",7450 => \"Treviolo\",7451 => \"Treviso\",7452 => \"Treviso bresciano\",8543 => \"Treviso Sant'Angelo\",7453 => \"Trezzano rosa\",7454 => \"Trezzano sul Naviglio\",7455 => \"Trezzo sull'Adda\",7456 => \"Trezzo Tinella\",7457 => \"Trezzone\",7458 => \"Tribano\",7459 => \"Tribiano\",7460 => \"Tribogna\",7461 => \"Tricarico\",7462 => \"Tricase\",8597 => \"Tricase porto\",7463 => \"Tricerro\",7464 => \"Tricesimo\",7465 => \"Trichiana\",7466 => \"Triei\",7467 => \"Trieste\",8472 => \"Trieste Ronchi dei Legionari\",7468 => \"Triggiano\",7469 => \"Trigolo\",7470 => \"Trinita d'Agultu e Vignola\",7471 => \"Trinita'\",7472 => \"Trinitapoli\",7473 => \"Trino\",7474 => \"Triora\",7475 => \"Tripi\",7476 => \"Trisobbio\",7477 => \"Trissino\",7478 => \"Triuggio\",7479 => \"Trivento\",7480 => \"Trivero\",7481 => \"Trivigliano\",7482 => \"Trivignano udinese\",8413 => \"Trivigno\",7484 => \"Trivolzio\",7485 => \"Trodena\",7486 => \"Trofarello\",7487 => \"Troia\",7488 => \"Troina\",7489 => \"Tromello\",7490 => \"Trontano\",7491 => \"Tronzano lago maggiore\",7492 => \"Tronzano vercellese\",7493 => \"Tropea\",7494 => \"Trovo\",7495 => \"Truccazzano\",7496 => \"Tubre\",7497 => \"Tuenno\",7498 => \"Tufara\",7499 => \"Tufillo\",7500 => \"Tufino\",7501 => \"Tufo\",7502 => \"Tuglie\",7503 => \"Tuili\",7504 => \"Tula\",7505 => \"Tuoro sul trasimeno\",7506 => \"Turania\",7507 => \"Turano lodigiano\",7508 => \"Turate\",7509 => \"Turbigo\",7510 => \"Turi\",7511 => \"Turri\",7512 => \"Turriaco\",7513 => \"Turrivalignani\",8390 => \"Tursi\",7515 => \"Tusa\",7516 => \"Tuscania\",7517 => \"Ubiale Clanezzo\",7518 => \"Uboldo\",7519 => \"Ucria\",7520 => \"Udine\",7521 => \"Ugento\",7522 => \"Uggiano la chiesa\",7523 => \"Uggiate trevano\",7524 => \"Ula' Tirso\",7525 => \"Ulassai\",7526 => \"Ultimo\",7527 => \"Umbertide\",7528 => \"Umbriatico\",7529 => \"Urago d'Oglio\",7530 => \"Uras\",7531 => \"Urbana\",7532 => \"Urbania\",7533 => \"Urbe\",7534 => \"Urbino\",7535 => \"Urbisaglia\",7536 => \"Urgnano\",7537 => \"Uri\",7538 => \"Ururi\",7539 => \"Urzulei\",7540 => \"Uscio\",7541 => \"Usellus\",7542 => \"Usini\",7543 => \"Usmate Velate\",7544 => \"Ussana\",7545 => \"Ussaramanna\",7546 => \"Ussassai\",7547 => \"Usseaux\",7548 => \"Usseglio\",7549 => \"Ussita\",7550 => \"Ustica\",7551 => \"Uta\",7552 => \"Uzzano\",7553 => \"Vaccarizzo albanese\",7554 => \"Vacone\",7555 => \"Vacri\",7556 => \"Vadena\",7557 => \"Vado ligure\",7558 => \"Vagli sotto\",7559 => \"Vaglia\",8388 => \"Vaglio Basilicata\",7561 => \"Vaglio serra\",7562 => \"Vaiano\",7563 => \"Vaiano cremasco\",7564 => \"Vaie\",7565 => \"Vailate\",7566 => \"Vairano Patenora\",7567 => \"Vajont\",8511 => \"Val Canale\",7568 => \"Val della torre\",8243 => \"Val di Lei\",8237 => \"Val di Luce\",7569 => \"Val di nizza\",8440 => \"Val di Sangro casello\",7570 => \"Val di vizze\",8223 => \"Val Ferret\",8521 => \"Val Grauson\",7571 => \"Val Masino\",7572 => \"Val Rezzo\",8215 => \"Val Senales\",8522 => \"Val Urtier\",8224 => \"Val Veny\",7573 => \"Valbondione\",7574 => \"Valbrembo\",7575 => \"Valbrevenna\",7576 => \"Valbrona\",8311 => \"Valcava\",7577 => \"Valda\",7578 => \"Valdagno\",7579 => \"Valdaora\",7580 => \"Valdastico\",7581 => \"Valdengo\",7582 => \"Valderice\",7583 => \"Valdidentro\",7584 => \"Valdieri\",7585 => \"Valdina\",7586 => \"Valdisotto\",7587 => \"Valdobbiadene\",7588 => \"Valduggia\",7589 => \"Valeggio\",7590 => \"Valeggio sul Mincio\",7591 => \"Valentano\",7592 => \"Valenza\",7593 => \"Valenzano\",7594 => \"Valera fratta\",7595 => \"Valfabbrica\",7596 => \"Valfenera\",7597 => \"Valfloriana\",7598 => \"Valfurva\",7599 => \"Valganna\",7600 => \"Valgioie\",7601 => \"Valgoglio\",7602 => \"Valgrana\",7603 => \"Valgreghentino\",7604 => \"Valgrisenche\",7605 => \"Valguarnera caropepe\",8344 => \"Valico Citerna\",8510 => \"Valico dei Giovi\",8318 => \"Valico di Monforte\",8509 => \"Valico di Montemiletto\",8507 => \"Valico di Scampitella\",7606 => \"Vallada agordina\",7607 => \"Vallanzengo\",7608 => \"Vallarsa\",7609 => \"Vallata\",7610 => \"Valle agricola\",7611 => \"Valle Aurina\",7612 => \"Valle castellana\",8444 => \"Valle del salto\",7613 => \"Valle dell'Angelo\",7614 => \"Valle di Cadore\",7615 => \"Valle di Casies\",7616 => \"Valle di maddaloni\",7617 => \"Valle lomellina\",7618 => \"Valle mosso\",7619 => \"Valle salimbene\",7620 => \"Valle San Nicolao\",7621 => \"Vallebona\",7622 => \"Vallecorsa\",7623 => \"Vallecrosia\",7624 => \"Valledolmo\",7625 => \"Valledoria\",7626 => \"Vallefiorita\",7627 => \"Vallelonga\",7628 => \"Vallelunga pratameno\",7629 => \"Vallemaio\",7630 => \"Vallepietra\",7631 => \"Vallerano\",7632 => \"Vallermosa\",7633 => \"Vallerotonda\",7634 => \"Vallesaccarda\",8749 => \"Valletta\",7635 => \"Valleve\",7636 => \"Valli del Pasubio\",7637 => \"Vallinfreda\",7638 => \"Vallio terme\",7639 => \"Vallo della Lucania\",7640 => \"Vallo di Nera\",7641 => \"Vallo torinese\",8191 => \"Vallombrosa\",8471 => \"Vallon\",7642 => \"Valloriate\",7643 => \"Valmacca\",7644 => \"Valmadrera\",7645 => \"Valmala\",8313 => \"Valmasino\",7646 => \"Valmontone\",7647 => \"Valmorea\",7648 => \"Valmozzola\",7649 => \"Valnegra\",7650 => \"Valpelline\",7651 => \"Valperga\",7652 => \"Valprato Soana\",7653 => \"Valsavarenche\",7654 => \"Valsecca\",7655 => \"Valsinni\",7656 => \"Valsolda\",7657 => \"Valstagna\",7658 => \"Valstrona\",7659 => \"Valtopina\",7660 => \"Valtorta\",8148 => \"Valtorta impianti\",7661 => \"Valtournenche\",7662 => \"Valva\",7663 => \"Valvasone\",7664 => \"Valverde\",7665 => \"Valverde\",7666 => \"Valvestino\",7667 => \"Vandoies\",7668 => \"Vanzaghello\",7669 => \"Vanzago\",7670 => \"Vanzone con San Carlo\",7671 => \"Vaprio d'Adda\",7672 => \"Vaprio d'Agogna\",7673 => \"Varallo\",7674 => \"Varallo Pombia\",7675 => \"Varano Borghi\",7676 => \"Varano de' Melegari\",7677 => \"Varapodio\",7678 => \"Varazze\",8600 => \"Varcaturo\",7679 => \"Varco sabino\",7680 => \"Varedo\",7681 => \"Varena\",7682 => \"Varenna\",7683 => \"Varese\",7684 => \"Varese ligure\",8284 => \"Varigotti\",7685 => \"Varisella\",7686 => \"Varmo\",7687 => \"Varna\",7688 => \"Varsi\",7689 => \"Varzi\",7690 => \"Varzo\",7691 => \"Vas\",7692 => \"Vasanello\",7693 => \"Vasia\",7694 => \"Vasto\",7695 => \"Vastogirardi\",7696 => \"Vattaro\",7697 => \"Vauda canavese\",7698 => \"Vazzano\",7699 => \"Vazzola\",7700 => \"Vecchiano\",7701 => \"Vedano al Lambro\",7702 => \"Vedano Olona\",7703 => \"Veddasca\",7704 => \"Vedelago\",7705 => \"Vedeseta\",7706 => \"Veduggio con Colzano\",7707 => \"Veggiano\",7708 => \"Veglie\",7709 => \"Veglio\",7710 => \"Vejano\",7711 => \"Veleso\",7712 => \"Velezzo lomellina\",8530 => \"Vellano\",7713 => \"Velletri\",7714 => \"Vellezzo Bellini\",7715 => \"Velo d'Astico\",7716 => \"Velo veronese\",7717 => \"Velturno\",7718 => \"Venafro\",7719 => \"Venaria\",7720 => \"Venarotta\",7721 => \"Venasca\",7722 => \"Venaus\",7723 => \"Vendone\",7724 => \"Vendrogno\",7725 => \"Venegono inferiore\",7726 => \"Venegono superiore\",7727 => \"Venetico\",7728 => \"Venezia\",8502 => \"Venezia Mestre\",8268 => \"Venezia Tessera\",7729 => \"Veniano\",7730 => \"Venosa\",7731 => \"Venticano\",7732 => \"Ventimiglia\",7733 => \"Ventimiglia di Sicilia\",7734 => \"Ventotene\",7735 => \"Venzone\",7736 => \"Verano\",7737 => \"Verano brianza\",7738 => \"Verbania\",7739 => \"Verbicaro\",7740 => \"Vercana\",7741 => \"Verceia\",7742 => \"Vercelli\",7743 => \"Vercurago\",7744 => \"Verdellino\",7745 => \"Verdello\",7746 => \"Verderio inferiore\",7747 => \"Verderio superiore\",7748 => \"Verduno\",7749 => \"Vergato\",7750 => \"Vergemoli\",7751 => \"Verghereto\",7752 => \"Vergiate\",7753 => \"Vermezzo\",7754 => \"Vermiglio\",8583 => \"Vernago\",7755 => \"Vernante\",7756 => \"Vernasca\",7757 => \"Vernate\",7758 => \"Vernazza\",7759 => \"Vernio\",7760 => \"Vernole\",7761 => \"Verolanuova\",7762 => \"Verolavecchia\",7763 => \"Verolengo\",7764 => \"Veroli\",7765 => \"Verona\",8269 => \"Verona Villafranca\",7766 => \"Veronella\",7767 => \"Verrayes\",7768 => \"Verres\",7769 => \"Verretto\",7770 => \"Verrone\",7771 => \"Verrua po\",7772 => \"Verrua Savoia\",7773 => \"Vertemate con Minoprio\",7774 => \"Vertova\",7775 => \"Verucchio\",7776 => \"Veruno\",7777 => \"Vervio\",7778 => \"Vervo'\",7779 => \"Verzegnis\",7780 => \"Verzino\",7781 => \"Verzuolo\",7782 => \"Vescovana\",7783 => \"Vescovato\",7784 => \"Vesime\",7785 => \"Vespolate\",7786 => \"Vessalico\",7787 => \"Vestenanova\",7788 => \"Vestigne'\",7789 => \"Vestone\",7790 => \"Vestreno\",7791 => \"Vetralla\",7792 => \"Vetto\",7793 => \"Vezza d'Alba\",7794 => \"Vezza d'Oglio\",7795 => \"Vezzano\",7796 => \"Vezzano ligure\",7797 => \"Vezzano sul crostolo\",7798 => \"Vezzi portio\",8317 => \"Vezzo\",7799 => \"Viadana\",7800 => \"Viadanica\",7801 => \"Viagrande\",7802 => \"Viale\",7803 => \"Vialfre'\",7804 => \"Viano\",7805 => \"Viareggio\",7806 => \"Viarigi\",8674 => \"Vibo Marina\",7807 => \"Vibo Valentia\",7808 => \"Vibonati\",7809 => \"Vicalvi\",7810 => \"Vicari\",7811 => \"Vicchio\",7812 => \"Vicenza\",7813 => \"Vico canavese\",7814 => \"Vico del Gargano\",7815 => \"Vico Equense\",7816 => \"Vico nel Lazio\",7817 => \"Vicoforte\",7818 => \"Vicoli\",7819 => \"Vicolungo\",7820 => \"Vicopisano\",7821 => \"Vicovaro\",7822 => \"Viddalba\",7823 => \"Vidigulfo\",7824 => \"Vidor\",7825 => \"Vidracco\",7826 => \"Vieste\",7827 => \"Vietri di Potenza\",7828 => \"Vietri sul mare\",7829 => \"Viganella\",7830 => \"Vigano San Martino\",7831 => \"Vigano'\",7832 => \"Vigarano Mainarda\",7833 => \"Vigasio\",7834 => \"Vigevano\",7835 => \"Viggianello\",7836 => \"Viggiano\",7837 => \"Viggiu'\",7838 => \"Vighizzolo d'Este\",7839 => \"Vigliano biellese\",7840 => \"Vigliano d'Asti\",7841 => \"Vignale monferrato\",7842 => \"Vignanello\",7843 => \"Vignate\",8125 => \"Vignola\",7845 => \"Vignola Falesina\",7846 => \"Vignole Borbera\",7847 => \"Vignolo\",7848 => \"Vignone\",8514 => \"Vigo Ciampedie\",7849 => \"Vigo di Cadore\",7850 => \"Vigo di Fassa\",7851 => \"Vigo Rendena\",7852 => \"Vigodarzere\",7853 => \"Vigolo\",7854 => \"Vigolo Vattaro\",7855 => \"Vigolzone\",7856 => \"Vigone\",7857 => \"Vigonovo\",7858 => \"Vigonza\",7859 => \"Viguzzolo\",7860 => \"Villa agnedo\",7861 => \"Villa bartolomea\",7862 => \"Villa basilica\",7863 => \"Villa biscossi\",7864 => \"Villa carcina\",7865 => \"Villa castelli\",7866 => \"Villa celiera\",7867 => \"Villa collemandina\",7868 => \"Villa cortese\",7869 => \"Villa d'Adda\",7870 => \"Villa d'Alme'\",7871 => \"Villa d'Ogna\",7872 => \"Villa del bosco\",7873 => \"Villa del conte\",7874 => \"Villa di briano\",7875 => \"Villa di Chiavenna\",7876 => \"Villa di Serio\",7877 => \"Villa di Tirano\",7878 => \"Villa Estense\",7879 => \"Villa Faraldi\",7880 => \"Villa Guardia\",7881 => \"Villa Lagarina\",7882 => \"Villa Latina\",7883 => \"Villa Literno\",7884 => \"Villa minozzo\",7885 => \"Villa poma\",7886 => \"Villa rendena\",7887 => \"Villa San Giovanni\",7888 => \"Villa San Giovanni in Tuscia\",7889 => \"Villa San Pietro\",7890 => \"Villa San Secondo\",7891 => \"Villa Sant'Angelo\",7892 => \"Villa Sant'Antonio\",7893 => \"Villa Santa Lucia\",7894 => \"Villa Santa Lucia degli Abruzzi\",7895 => \"Villa Santa Maria\",7896 => \"Villa Santina\",7897 => \"Villa Santo Stefano\",7898 => \"Villa verde\",7899 => \"Villa vicentina\",7900 => \"Villabassa\",7901 => \"Villabate\",7902 => \"Villachiara\",7903 => \"Villacidro\",7904 => \"Villadeati\",7905 => \"Villadose\",7906 => \"Villadossola\",7907 => \"Villafalletto\",7908 => \"Villafranca d'Asti\",7909 => \"Villafranca di Verona\",7910 => \"Villafranca in Lunigiana\",7911 => \"Villafranca padovana\",7912 => \"Villafranca Piemonte\",7913 => \"Villafranca sicula\",7914 => \"Villafranca tirrena\",7915 => \"Villafrati\",7916 => \"Villaga\",7917 => \"Villagrande Strisaili\",7918 => \"Villalago\",7919 => \"Villalba\",7920 => \"Villalfonsina\",7921 => \"Villalvernia\",7922 => \"Villamagna\",7923 => \"Villamaina\",7924 => \"Villamar\",7925 => \"Villamarzana\",7926 => \"Villamassargia\",7927 => \"Villamiroglio\",7928 => \"Villandro\",7929 => \"Villanova biellese\",7930 => \"Villanova canavese\",7931 => \"Villanova d'Albenga\",7932 => \"Villanova d'Ardenghi\",7933 => \"Villanova d'Asti\",7934 => \"Villanova del Battista\",7935 => \"Villanova del Ghebbo\",7936 => \"Villanova del Sillaro\",7937 => \"Villanova di Camposampiero\",7938 => \"Villanova marchesana\",7939 => \"Villanova Mondovi'\",7940 => \"Villanova Monferrato\",7941 => \"Villanova Monteleone\",7942 => \"Villanova solaro\",7943 => \"Villanova sull'Arda\",7944 => \"Villanova Truschedu\",7945 => \"Villanova Tulo\",7946 => \"Villanovaforru\",7947 => \"Villanovafranca\",7948 => \"Villanterio\",7949 => \"Villanuova sul Clisi\",7950 => \"Villaperuccio\",7951 => \"Villapiana\",7952 => \"Villaputzu\",7953 => \"Villar dora\",7954 => \"Villar focchiardo\",7955 => \"Villar pellice\",7956 => \"Villar Perosa\",7957 => \"Villar San Costanzo\",7958 => \"Villarbasse\",7959 => \"Villarboit\",7960 => \"Villareggia\",7961 => \"Villaricca\",7962 => \"Villaromagnano\",7963 => \"Villarosa\",7964 => \"Villasalto\",7965 => \"Villasanta\",7966 => \"Villasimius\",7967 => \"Villasor\",7968 => \"Villaspeciosa\",7969 => \"Villastellone\",7970 => \"Villata\",7971 => \"Villaurbana\",7972 => \"Villavallelonga\",7973 => \"Villaverla\",7974 => \"Villeneuve\",7975 => \"Villesse\",7976 => \"Villetta Barrea\",7977 => \"Villette\",7978 => \"Villimpenta\",7979 => \"Villongo\",7980 => \"Villorba\",7981 => \"Vilminore di scalve\",7982 => \"Vimercate\",7983 => \"Vimodrone\",7984 => \"Vinadio\",7985 => \"Vinchiaturo\",7986 => \"Vinchio\",7987 => \"Vinci\",7988 => \"Vinovo\",7989 => \"Vinzaglio\",7990 => \"Viola\",7991 => \"Vione\",7992 => \"Vipiteno\",7993 => \"Virgilio\",7994 => \"Virle Piemonte\",7995 => \"Visano\",7996 => \"Vische\",7997 => \"Visciano\",7998 => \"Visco\",7999 => \"Visone\",8000 => \"Visso\",8001 => \"Vistarino\",8002 => \"Vistrorio\",8003 => \"Vita\",8004 => \"Viterbo\",8005 => \"Viticuso\",8006 => \"Vito d'Asio\",8007 => \"Vitorchiano\",8008 => \"Vittoria\",8009 => \"Vittorio Veneto\",8010 => \"Vittorito\",8011 => \"Vittuone\",8012 => \"Vitulano\",8013 => \"Vitulazio\",8014 => \"Viu'\",8015 => \"Vivaro\",8016 => \"Vivaro romano\",8017 => \"Viverone\",8018 => \"Vizzini\",8019 => \"Vizzola Ticino\",8020 => \"Vizzolo Predabissi\",8021 => \"Vo'\",8022 => \"Vobarno\",8023 => \"Vobbia\",8024 => \"Vocca\",8025 => \"Vodo cadore\",8026 => \"Voghera\",8027 => \"Voghiera\",8028 => \"Vogogna\",8029 => \"Volano\",8030 => \"Volla\",8031 => \"Volongo\",8032 => \"Volpago del montello\",8033 => \"Volpara\",8034 => \"Volpedo\",8035 => \"Volpeglino\",8036 => \"Volpiano\",8037 => \"Volta mantovana\",8038 => \"Voltaggio\",8039 => \"Voltago agordino\",8040 => \"Volterra\",8041 => \"Voltido\",8042 => \"Volturara Appula\",8043 => \"Volturara irpina\",8044 => \"Volturino\",8045 => \"Volvera\",8046 => \"Vottignasco\",8181 => \"Vulcano Porto\",8047 => \"Zaccanopoli\",8048 => \"Zafferana etnea\",8049 => \"Zagarise\",8050 => \"Zagarolo\",8051 => \"Zambana\",8707 => \"Zambla\",8052 => \"Zambrone\",8053 => \"Zandobbio\",8054 => \"Zane'\",8055 => \"Zanica\",8056 => \"Zapponeta\",8057 => \"Zavattarello\",8058 => \"Zeccone\",8059 => \"Zeddiani\",8060 => \"Zelbio\",8061 => \"Zelo Buon Persico\",8062 => \"Zelo Surrigone\",8063 => \"Zeme\",8064 => \"Zenevredo\",8065 => \"Zenson di Piave\",8066 => \"Zerba\",8067 => \"Zerbo\",8068 => \"Zerbolo'\",8069 => \"Zerfaliu\",8070 => \"Zeri\",8071 => \"Zermeghedo\",8072 => \"Zero Branco\",8073 => \"Zevio\",8455 => \"Ziano di Fiemme\",8075 => \"Ziano piacentino\",8076 => \"Zibello\",8077 => \"Zibido San Giacomo\",8078 => \"Zignago\",8079 => \"Zimella\",8080 => \"Zimone\",8081 => \"Zinasco\",8082 => \"Zoagli\",8083 => \"Zocca\",8084 => \"Zogno\",8085 => \"Zola Predosa\",8086 => \"Zoldo alto\",8087 => \"Zollino\",8088 => \"Zone\",8089 => \"Zoppe' di cadore\",8090 => \"Zoppola\",8091 => \"Zovencedo\",8092 => \"Zubiena\",8093 => \"Zuccarello\",8094 => \"Zuclo\",8095 => \"Zugliano\",8096 => \"Zuglio\",8097 => \"Zumaglia\",8098 => \"Zumpano\",8099 => \"Zungoli\",8100 => \"Zungri\");\n\t$return = '<br/><a href=\"https://www.3bmeteo.com'.strtolower($trebi_url_locs[$idloc]).'\" style=\"font-size:10px;\">Meteo '.$trebi_locs[$idloc].'</a>';\n\treturn $return;\n}", "public function getPath($seperator = ' > ', $includeNode = false);", "public function getPath($path, $entity_id);", "public function getPath(int $id): string\n {\n $section_url = '';\n $section = (new NewsSection())->find($id);\n if ($section !== null) {\n $path = [\n $section->code,\n ];\n $parent = $section->parentSection;\n while ($parent !== null) {\n $path[] = $parent->code;\n $parent = $parent->parentSection;\n }\n krsort($path);\n\n $section_url = implode('/', $path);\n }\n\n return $section_url;\n }", "public function generateUrl(){\n if(($this->getGetMethodResult('task') != null) && ($this->getGetMethodResult('action') != null)) {\n $urlFromArray = [];\n\n foreach ($this->getMethodUrlPathArray() as $key => $value) {\n if (is_array($value)) {\n foreach ($value as $argsKey => $argsValue) {\n $urlFromArray[] = $argsKey . '=' . $argsValue;\n }\n } else {\n $urlFromArray[] = $key . '=' . $value;\n }\n }\n return implode('&', $urlFromArray);\n }\n else{\n return null;\n }\n }", "private static function getUrl($type,$id=\"\")\n\t{\n\t\t$link = self::base_url;\n\t\tswitch ($type) {\n\t\t\tcase 1:\n\t\t\t\t$link = $link.\"collections\";\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\t$link = $link.\"bills\";\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\t$link = $link.\"collections/\".$id;\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\t$link = $link.\"bills/\".$id;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t# code...\n\t\t\t\tbreak;\n\t\t}\n\t\treturn $link;\n\t}", "function build_href( $p_path ) {\n\tglobal $t_depth;\n\n\t$t_split = explode( DIRECTORY_SEPARATOR, $p_path );\n\t$t_slice = array_slice( $t_split, $t_depth );\n\n\treturn '/' . implode( '/', array_map( 'urlencode', $t_slice ) );\n}", "function createURI($relativePath): string;", "function getNodePathForTitlePath($titlePath, $a_startnode_id = null)\n\t{\n\t\tglobal $ilDB, $log;\n\t\t//$log->write('getNodePathForTitlePath('.implode('/',$titlePath));\n\t\t\n\t\t// handle empty title path\n\t\tif ($titlePath == null || count($titlePath) == 0)\n\t\t{\n\t\t\tif ($a_startnode_id == 0)\n\t\t\t{\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn $this->getNodePath($a_startnode_id);\n\t\t\t}\n\t\t}\n\n\t\t// fetch the node path up to the startnode\n\t\tif ($a_startnode_id != null && $a_startnode_id != 0)\n\t\t{\n\t\t\t// Start using the node path to the root of the relative path\n\t\t\t$nodePath = $this->getNodePath($a_startnode_id);\n\t\t\t$parent = $a_startnode_id;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// Start using the root of the tree\n\t\t\t$nodePath = array();\n\t\t\t$parent = 0;\n\t\t}\n\n\t\t\n\t\t// Convert title path into Unicode Normal Form C\n\t\t// This is needed to ensure that we can compare title path strings with\n\t\t// strings from the database.\n\t\trequire_once('include/Unicode/UtfNormal.php');\n\t\tinclude_once './Services/Utilities/classes/class.ilStr.php';\n\t\t$inClause = 'd.title IN (';\n\t\tfor ($i=0; $i < count($titlePath); $i++)\n\t\t{\n\t\t\t$titlePath[$i] = ilStr::strToLower(UtfNormal::toNFC($titlePath[$i]));\n\t\t\tif ($i > 0) $inClause .= ',';\n\t\t\t$inClause .= $ilDB->quote($titlePath[$i],'text');\n\t\t}\n\t\t$inClause .= ')';\n\n\t\t// Fetch all rows that are potential path elements\n\t\tif ($this->table_obj_reference)\n\t\t{\n\t\t\t$joinClause = 'JOIN '.$this->table_obj_reference.' r ON t.child = r.'.$this->ref_pk.' '.\n\t\t\t\t'JOIN '.$this->table_obj_data.' d ON r.'.$this->obj_pk.' = d.'.$this->obj_pk;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$joinClause = 'JOIN '.$this->table_obj_data.' d ON t.child = d.'.$this->obj_pk;\n\t\t}\n\t\t// The ORDER BY clause in the following SQL statement ensures that,\n\t\t// in case of a multiple objects with the same title, always the Object\n\t\t// with the oldest ref_id is chosen.\n\t\t// This ensure, that, if a new object with the same title is added,\n\t\t// WebDAV clients can still work with the older object.\n\t\t$q = 'SELECT t.depth, t.parent, t.child, d.'.$this->obj_pk.' obj_id, d.type, d.title '.\n\t\t\t'FROM '.$this->table_tree.' t '.\n\t\t\t$joinClause.' '.\n\t\t\t'WHERE '.$inClause.' '.\n\t\t\t'AND t.depth <= '.(count($titlePath)+count($nodePath)).' '.\n\t\t\t'AND t.tree = 1 '.\n\t\t\t'ORDER BY t.depth, t.child ASC';\n\t\t$r = $ilDB->query($q);\n\t\t\n\t\t$rows = array();\n\t\twhile ($row = $r->fetchRow(DB_FETCHMODE_ASSOC))\n\t\t{\n\t\t\t$row['title'] = UtfNormal::toNFC($row['title']);\n\t\t\t$row['ref_id'] = $row['child'];\n\t\t\t$rows[] = $row;\n\t\t}\n\n\t\t// Extract the path elements from the fetched rows\n\t\tfor ($i = 0; $i < count($titlePath); $i++) {\n\t\t\t$pathElementFound = false; \n\t\t\tforeach ($rows as $row) {\n\t\t\t\tif ($row['parent'] == $parent && \n\t\t\t\tilStr::strToLower($row['title']) == $titlePath[$i])\n\t\t\t\t{\n\t\t\t\t\t// FIXME - We should test here, if the user has \n\t\t\t\t\t// 'visible' permission for the object.\n\t\t\t\t\t$nodePath[] = $row;\n\t\t\t\t\t$parent = $row['child'];\n\t\t\t\t\t$pathElementFound = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Abort if we haven't found a path element for the current depth\n\t\t\tif (! $pathElementFound)\n\t\t\t{\n\t\t\t\t//$log->write('ilTree.getNodePathForTitlePath('.var_export($titlePath,true).','.$a_startnode_id.'):null');\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\t\t// Return the node path\n\t\t//$log->write('ilTree.getNodePathForTitlePath('.var_export($titlePath,true).','.$a_startnode_id.'):'.var_export($nodePath,true));\n\t\treturn $nodePath;\n\t}", "function findRouteGet(array &$variaveis): string\n {\n $url = \"\";\n $path = \"\";\n $count = count($variaveis);\n for ($i = 0; $i < $count; $i++) {\n $path .= ($i > 0 ? \"/{$url}\" : \"\");\n $url = array_shift($variaveis);\n foreach (\\Config\\Config::getRoutesTo(\"get\" . $path) as $item) {\n if (file_exists($item . $url . \".php\"))\n return $item . $url . \".php\";\n }\n }\n\n return \"\";\n }", "public function get_routes($punto1, $punto2, &$routes, &$route = array()){\r\n \r\n $origin_connections = $this->connections[$punto1];\r\n \r\n foreach ($origin_connections as $city => $cost) {\r\n \r\n if(!in_array($city , $this->ruta) && $cost > 0){\r\n $this->ruta[] = $city;\r\n if($city == $punto2){\r\n $routes[] = $this->ruta;\r\n array_splice($this->ruta, array_search($city, $this->ruta ));\r\n }else{\r\n $this->get_routes($city, $punto2, $routes, $route);\r\n }\r\n }\r\n }\r\n array_splice($this->ruta, count($this->ruta)-1);\r\n\r\n }", "function url($route,$params=array(),$ampersand='&')\n{\n return Yii::app()->createUrl($route,$params,$ampersand);\n}", "function url($route,$params=array(),$ampersand='&')\n{\n return Yii::app()->createUrl($route,$params,$ampersand);\n}", "function url($route, $params=array ( ), $ampersand='&'){\n return Yii::app()->controller->createUrl($route, $params, $ampersand);\n}", "function wpsp_list_tour_destination(){\n\tglobal $post;\n\n\t$destinations = wp_get_post_terms( $post->ID, 'tour_destination' );\n\t$out = '<span class=\"label\">' . esc_html__( 'Destination: ', 'discovertravel' ) . '</span>';\n\tforeach ($destinations as $term) {\n\t\t$dests[] = '<strong>' . $term->name . '</strong>';\n\t}\n\t$out .= implode(' / ', $dests);\n\techo $out;\n}", "public function actionGenerate()\n\t{\n\t\t$routes = $this->searchRoute('all');\n\t\tforeach ($routes as $route => $status) {\n\t\t\tif (!Route::findOne($route)) {\n\t\t\t\t$model = new Route();\n\t\t\t\t$model->name = $route;\n\t\t\t\t$pos = (strrpos($route, '/'));\n\t\t\t\t$model->type = substr($route, 1, $pos - 1);\n\t\t\t\t$model->alias = substr($route, $pos + 1, 64);\n\t\t\t\t$model->save();\n\t\t\t}\n\t\t}\n\t\tYii::$app->session->setFlash('success', 'Route success generate');\n\t\treturn $this->redirect(['index']);\n\t}", "public function buildZombiePathToLouderZone()\n {\n // Faudrait définir la Zone la plus bruyante pour initialiser le Path.\n // Pour le moment, on va initialiser avec la 13 qu'on sait être la plus bruyante.\n $MissionZone = $this->getMissionZoneByNum(13);\n $this->LouderNodeZombiePath = new NodeZombiePath($MissionZone);\n $this->buildZombiePath($this->LouderNodeZombiePath, 0);\n }", "protected function routeToURI(){\n\t\t$args = func_get_args();\n\t\treturn call_user_func_array(array('Router', 'routeToURI'), $args);\n\t}", "public function getPathList() {\n \n $path_list = '';\n foreach($this->_path as $path) {\n $path_list .= '<li>' . $path . '</li>'; \n }\n\n return $path_list;\n }" ]
[ "0.7175524", "0.68015826", "0.661541", "0.6377787", "0.6320532", "0.61718243", "0.6004077", "0.5822857", "0.5624021", "0.55894077", "0.5580945", "0.5544744", "0.54988974", "0.54529357", "0.5404151", "0.5344036", "0.51976854", "0.51917684", "0.51637906", "0.5160891", "0.51014596", "0.50792307", "0.49946895", "0.49946788", "0.49415484", "0.4935815", "0.49351344", "0.49226803", "0.4894417", "0.48891652", "0.48814106", "0.48454994", "0.48051995", "0.48014203", "0.47990438", "0.47792152", "0.47766998", "0.47755265", "0.47675735", "0.4764951", "0.47558108", "0.47544894", "0.47532338", "0.47506672", "0.47498927", "0.47492045", "0.47473285", "0.4746479", "0.47129542", "0.47098222", "0.47081977", "0.47017425", "0.46973383", "0.46942952", "0.46872497", "0.46857515", "0.46843585", "0.46827033", "0.46810156", "0.4656914", "0.4653404", "0.4652509", "0.464422", "0.46421355", "0.46304157", "0.46248138", "0.46210545", "0.46210545", "0.46206534", "0.4620142", "0.46194637", "0.4618505", "0.4618347", "0.46098652", "0.46085948", "0.4605254", "0.46002704", "0.4597447", "0.4596217", "0.45921037", "0.45920876", "0.4587661", "0.45873752", "0.45868585", "0.45854515", "0.45827252", "0.45821303", "0.45818898", "0.4579524", "0.45770848", "0.4559495", "0.4551492", "0.4549208", "0.4549208", "0.45444322", "0.45411557", "0.45408154", "0.4535422", "0.45333013", "0.4529737" ]
0.7854525
0
API Function to generate a url path for use by other modules/themes. Example Usage: $path = getdirections_location_u2n_path($fromuid, $tonid); $url = l(t('Get directions'), $path);
function getdirections_location_u2n_path($fromuid, $tonid) { if (module_exists('location') && is_numeric($fromuid) && is_numeric($tonid)) { return "getdirections/location_u2n/$fromuid/$tonid"; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getdirections_location_n2u_path($fromnid, $touid) {\n if (module_exists('location') && is_numeric($fromnid) && is_numeric($touid)) {\n return \"getdirections/location_u2n/$fromnid/$touid\";\n }\n}", "function getdirections_locations_path($fromnid, $tonid) {\n if (module_exists('location') && is_numeric($fromnid) && is_numeric($tonid)) {\n return \"getdirections/locations/$fromnid/$tonid\";\n }\n}", "function getdirections_locations_user_path($fromuid, $touid) {\n if (module_exists('location') && is_numeric($fromuid) && is_numeric($touid)) {\n return \"getdirections/locations_user/$fromuid/$touid\";\n }\n}", "function getdirections_location_user_path($direction, $uid) {\n if (module_exists('location') && is_numeric($uid) && ($direction == 'to' || $direction == 'from')) {\n return \"getdirections/location_user/$direction/$uid\";\n }\n}", "function getdirections_locations_via_path($nids) {\n if (module_exists('location')) {\n return \"getdirections/locations_via/$nids\";\n }\n}", "function getdirections_locations_user_via_path($uids) {\n if (module_exists('location')) {\n return \"getdirections/locations_user_via/$uids\";\n }\n}", "function getdirections_location_id_path($direction, $lid) {\n if (module_exists('location') && is_numeric($lid) && ($direction == 'to' || $direction == 'from')) {\n return \"getdirections/location_id/$direction/$lid\";\n }\n}", "function getdirections_location_latlon_path($direction, $latlon, $locs='') {\n if (($direction == 'to' || $direction == 'from') && preg_match(\"/[0-9.\\-],[0-9.\\-]/\", $latlon)) {\n $out = \"getdirections/latlon/$direction/$latlon\";\n if ($locs) {\n $out .= \"/$locs\";\n }\n return $out;\n }\n}", "function GetDirectionURL($type,$origin,$destination){\r\n $url = null;\r\n\r\n if($type == 'findway'){\r\n $url = 'https://www.google.com/maps/dir/?api=1&origin='.trim($origin).'&destination='.trim($destination).'&travelmode=driving';\r\n }else if($type == 'where') {\r\n\r\n $url = 'https://www.google.com/maps/search/?api=1&query=' . $destination;\r\n }\r\n return $url;\r\n}", "function get_directions( $location ) {\n\treturn directions_base_url . urlencode( str_replace( \"\\n\", ', ', $location->address ) ) // change newlines into comma+space so google maps can process it properly\n\t . '/@' . $location->latitude . ',' . $location->longitude . ',17z/';\n\t// https://www.google.com/maps/dir//6850+Lake+Nona+Blvd,+Orlando,+FL+32827/@28.3676791,-81.2850738,17z/\n}", "function map_directions_link($location,$latitude,$longitude)\n {\n return \"https://maps.google.com/maps?ll={$latitude},{$longitude}&amp;z=16&amp;t=m&amp;hl=en-US&amp;gl=PT&amp;mapclient=embed&amp;daddr={$location}@{$latitude},{$longitude}\";\n }", "function url_for($to) {\n $args = func_get_args();\n\n # find params\n $params = array();\n if (is_array(end($args))) {\n $params = array_pop($args);\n }\n\n # urlencode all but the first argument\n $args = array_map('urlencode', $args);\n $args[0] = $to;\n\n return PluginEngine::getURL($this->dispatcher->plugin, $params, join('/', $args));\n }", "function url_for($to)\n {\n $args = func_get_args();\n\n # find params\n $params = array();\n if (is_array(end($args))) {\n $params = array_pop($args);\n }\n\n # urlencode all but the first argument\n $args = array_map('urlencode', $args);\n $args[0] = $to;\n\n return PluginEngine::getURL($this->dispatcher->plugin, $params, join('/', $args));\n }", "function url_for($to)\n {\n $args = func_get_args();\n\n // find params\n $params = array();\n if (is_array(end($args))) {\n $params = array_pop($args);\n }\n\n // urlencode all but the first argument\n $args = array_map('urlencode', $args);\n $args[0] = $to;\n\n return PluginEngine::getURL($this->dispatcher->plugin, $params, join('/', $args));\n }", "public static function get_rel_dir($from_dir, $to_dir) {\n $from_dir_parts = explode('/', str_replace( '\\\\', '/', $from_dir ));\n $to_dir_parts = explode('/', str_replace( '\\\\', '/', $to_dir ));\n $i = 0;\n while (($i < count($from_dir_parts)) && ($i < count($to_dir_parts)) && ($from_dir_parts[$i] == $to_dir_parts[$i])) {\n $i++;\n }\n $rel = \"\";\n for ($j = $i; $j < count($from_dir_parts); $j++) {\n $rel .= \"../\";\n } \n\n for ($j = $i; $j < count($to_dir_parts); $j++) {\n $rel .= $to_dir_parts[$j];\n if ($j < count($to_dir_parts)-1) {\n $rel .= '/';\n }\n }\n return $rel;\n }", "private function getRelativePath($from, $to)\n\t{\n\t\t\t$from = explode('/', $from);\n\t\t\t$to = explode('/', $to);\n\t\t\t$relPath = $to;\n\n\t\t\tforeach($from as $depth => $dir) {\n\t\t\t\t\t// find first non-matching dir\n\t\t\t\t\tif($dir === $to[$depth]) {\n\t\t\t\t\t\t\t// ignore this directory\n\t\t\t\t\t\t\tarray_shift($relPath);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// get number of remaining dirs to $from\n\t\t\t\t\t\t\t$remaining = count($from) - $depth;\n\t\t\t\t\t\t\tif($remaining > 1) {\n\t\t\t\t\t\t\t\t\t// add traversals up to first matching dir\n\t\t\t\t\t\t\t\t\t$padLength = (count($relPath) + $remaining - 1) * -1;\n\t\t\t\t\t\t\t\t\t$relPath = array_pad($relPath, $padLength, '..');\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t$relPath[0] = './' . $relPath[0];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t}\n\t\t\tunset($relPath[count($relPath)-1]);\n\t\t\treturn implode('/', $relPath);\n\t}", "function convert_url_to_path($url)\n{\n require_code('urls2');\n return _convert_url_to_path($url);\n}", "public function url_for($to)\n {\n $args = func_get_args();\n\n # find params\n $params = array();\n if (is_array(end($args))) {\n $params = array_pop($args);\n }\n\n # urlencode all but the first argument\n $args = array_map('urlencode', $args);\n $args[0] = $to;\n\n return PluginEngine::getURL($this->dispatcher->plugin, $params, join('/', $args));\n }", "public function getPathLocation(): string;", "public function googleDirectionsLink()\n {\n return 'https://maps.google.com/?daddr=' . urlencode($this->full_address);\n }", "public static function generateURL()\n {\n return $_SERVER['REQUEST_SCHEME'].'://'.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];\n }", "private function generateUrl() : string\n {\n return $this->apiUrl.$this->ownerRepo.$this->branchPath.$this->branch;\n }", "public function getUserRoutePathLng()\n {\n return $this->userRoutePathLng;\n }", "function user_connection_path ($userid, $to_user_id)\r\n{\r\n\tglobal $database;\r\n\tglobal $user;\r\n\tglobal $userconnection_distance;\r\n global $userconnection_previous;\r\n\tglobal $userconnection_setting;\r\n\t$userconnection_output = array();\r\n\t\r\n\t // CACHING\r\n $cache_object = SECache::getInstance('serial');\r\n if (is_object($cache_object) ) {\r\n\t $userconnection_combind_path_contacts_array = $cache_object->get('userconnection_combind_path_contacts_array_cache');\r\n }\r\n\tif (!is_array($userconnection_combind_path_contacts_array)) {\r\n\t\t// longest is the steps ... By changint it you can change steps level \r\n\t\t$longest = $userconnection_setting['level'];\r\n\t\t// IF $longest IS LESS THEN 4 THEN FOR FINDING OUT CONTACTS DEGREE WE ASSIGN '4' TO $longest BECAUSE WE WANT TO SHOW THREE DEGREE CONTACTS \r\n\t\tif ($longest<4) {\r\n\t\t\t$longest = 4;\r\n\t\t}\r\n\t\t// Initialize the distance to all the user entities with the maximum value of distance.\r\n \t// Initialize the previous connecting user entity for every user entity as -1. This means a no known path.\r\n\t\t$id =\t $user->user_info['user_id'];\r\n\t\t$result = $database->database_query (\"SELECT su.user_id FROM se_users su INNER JOIN se_usersettings sus ON sus.usersetting_user_id = su.user_id WHERE (su.user_verified='1' AND su.user_enabled='1' AND su.user_search='1' AND sus.usersetting_userconnection = '0') OR su.user_id = '$id'\");\r\n\t\twhile ($row = $database->database_fetch_assoc($result)) {\r\n\t\t\t\r\n\t\t\t$userconnection_entity = $row['user_id'];\r\n\t\t\t$userconnection_entities_array[] = $userconnection_entity;\r\n \t $userconnection_distance[$userconnection_entity] = $longest;\r\n \t $userconnection_previous[$userconnection_entity] = -1;\r\n\t\t}\r\n \t// The connection distance from the userid to itself is 0\r\n \t$userconnection_distance[$userid] = 0;\r\n \t// $userconnection_temp1_array keeps track of the entities we still need to work on \r\n \t$userconnection_temp1_array = $userconnection_entities_array;\r\n \t\r\n \twhile (count ($userconnection_temp1_array) > 0) { // more elements in $userconnection_temp1_array\r\n \t $userconnection_userentity_id = find_minimum ($userconnection_temp1_array);\r\n \t\tif ($userconnection_userentity_id == $to_user_id) {\r\n \t\t\t$userconnection_previous_array = $userconnection_previous;\r\n \t // Can stop computing the distance if we have reached the to_user_id\r\n \t }\r\n\t\t\t\r\n \t$userconnection_temp2_array = array_search ($userconnection_userentity_id, $userconnection_temp1_array);\r\n \t$userconnection_temp1_array[$userconnection_temp2_array] = false;\r\n \t$userconnection_temp1_array = array_filter ($userconnection_temp1_array); // filters away the false elements\r\n \t// Find all friends linked to $userconnection_temp2_array\r\n \t$invitees = $database->database_query(\"SELECT friend_user_id1 FROM se_friends WHERE friend_user_id2='$userconnection_userentity_id' AND friend_status = '1'\");\r\n \twhile ($row = $database->database_fetch_assoc($invitees)) {\r\n \t\t$link_id = $row['friend_user_id1'];\r\n\t\t\t\tuserconnection_calculate_distance ($userconnection_userentity_id, $link_id);\r\n \t}\r\n \t$inviters = $database->database_query(\"SELECT friend_user_id2 FROM se_friends WHERE friend_user_id1='$userconnection_userentity_id' AND friend_status = '1'\");\r\n \twhile ($row = $database->database_fetch_assoc($inviters)) {\r\n \t\r\n \t\t$link_id = $row['friend_user_id2'];\r\n\t\t\t\tuserconnection_calculate_distance ($userconnection_userentity_id, $link_id);\r\n \t}\r\n \t}\r\n\t\t// The path is found in the $userconnection_previous values from $fromid to $to_user_id\r\n \t$userconnection_temp = 0;\r\n \t// If user visiting his/her profile then $to_user_id is 0 so for terminating this we assign -1 to $to_user_id\r\n \tif (empty($to_user_id)) {\r\n \t\t$to_user_id = -1;\r\n \t}\r\n \t$userconnection_currententity = $to_user_id;\r\n\t\t\r\n \twhile ($userconnection_currententity != $userid && $userconnection_currententity != -1) {\r\n \t$userconnection_links_array[$userconnection_temp++] = $userconnection_currententity;\r\n \t$userconnection_currententity = $userconnection_previous_array[$userconnection_currententity];\r\n \t}\r\n \r\n \tif ($userconnection_currententity != $userid) { \r\n \t\t $empty =array();\r\n \t\t // HERE WE ARE ASSIGING TWO ARRAY ($empty ,$userconnection_distance) TO A NEW ARRAY \r\n \t\t$userconnection_combind_path_contacts_array = array($empty, $userconnection_distance);\r\n \t\treturn $userconnection_combind_path_contacts_array;\r\n \t} \r\n \telse {\r\n \t// Display the connection paths in the reverse order\r\n \t$userconnection_preventity = $userid;\r\n \t$userconnection_output[] = $user->user_info['user_id'];\r\n\t\t\t// Entering the values in ouput array\r\n \tfor ($i = $userconnection_temp - 1; $i >= 0; $i--) {\r\n \t $userconnection_temp1 = $userconnection_links_array[$i];\r\n \t $userconnection_output[] = $userconnection_temp1;\r\n \t $userconnection_preventity = $userconnection_temp1;\r\n \t} \r\n \t}\r\n\t\t// HERE WE ARE COMPARING No. OF ELEMENT IN $USERCONNECTION_OUTPUT AND LEVEL BECAUSE WE ASSINGED $larget TO 4 IN CASE OF LEVEL LESS THEN 4 SO IF ADMIN ASSIGN LEVEL LESS THEN 4 THEN IT WILL ALWAYS RETURN A PATH OF 4 LEVEL AND WE DON'T WANT THIS \r\n \tif (count($userconnection_output) > $userconnection_setting['level']){\r\n \t\t$empty\t= array();\r\n \t\t// HERE WE ARE ASSIGING TWO ARRAY ($empty ,$userconnection_distance) TO A NEW ARRAY \r\n \t\t$userconnection_combind_path_contacts_array = array($empty, $userconnection_distance);\r\n \t}\r\n \telse {\r\n \t// HERE WE ARE ASSIGING TWO ARRAY ($userconnection_output ,$userconnection_distance) TO A NEW ARRAY \t\r\n\t\t $userconnection_combind_path_contacts_array = array($userconnection_output, $userconnection_distance);\r\n \t}\r\n \t// CACHE\r\n if (is_object($cache_object)) {\r\n\t $cache_object->store($userconnection_output, 'userconnection_combind_path_contacts_array_cache');\r\n }\r\n\t}\r\n return $userconnection_combind_path_contacts_array;\r\n}", "function get_route($my_location){\n $route_start = $my_location[0];\n $route_end = $my_location[1];\n\n $loc_api_key = AIzaSyBFuL6yafR8BuhdbzupDAcorVH4sAO2YpE;\n //$route_url = \"https://maps.googleapis.com/maps/api/directions/json?origin=\".$route_start.\"&destination=\".$route_end.\"&key=\".$loc_api_key.\"&alternatives=true\"; this is for detours\n $route_url = \"https://maps.googleapis.com/maps/api/directions/json?origin=\".$route_start.\"&destination=\".$route_end.\"&key=\".$loc_api_key;\n\n if (!function_exists('curl_init')){\n die('Can\\'t find cURL module'); \n }\n\n $chRD = curl_init(); //RD = Route Directions\n\n if (!$chRD){\n die('Couldn\\'t initialize a cURL module'); \n }\n\n curl_setopt($chRD, CURLOPT_URL, $route_url);\n curl_setopt($chRD, CURLOPT_RETURNTRANSFER, TRUE);\n \n $dataRD = curl_exec($chRD);\n curl_close($chRD);\n\n $routes = json_decode($dataRD);\n\n return $routes;\n}", "protected function _getDirectionsData($from, $to, $key = NULL) {\n\n if (is_null($key))\n $index = 0;\n else\n $index = $key;\n\n $keys_all = array('AIzaSyAp_1Skip1qbBmuou068YulGux7SJQdlaw', 'AIzaSyDczTv9Cu9c0vPkLoZtyJuCYPYRzYcx738', 'AIzaSyBZtOXPwL4hmjyq2JqOsd0qrQ-Vv0JtCO4', 'AIzaSyDXdyLHngG-zGUPj7wBYRKefFwcv2wnk7g', 'AIzaSyCibRhPUiPw5kOZd-nxN4fgEODzPgcBAqg', 'AIzaSyB1Twhseoyz5Z6o5OcPZ-3FqFNxne2SnyQ', 'AIzaSyCgHxcZuDslVJNvWxLs8ge4syxLNbokA6c', 'AIzaSyDH-y04IGsMRfn4z9vBis4O4LVLusWYdMk', 'AIzaSyB1Twhseoyz5Z6o5OcPZ-3FqFNxne2SnyQ', 'AIzaSyBQ4dTEeJlU-neooM6aOz4HlqPKZKfyTOc'); //$this->dirKeys;\n\n $url = 'https://maps.googleapis.com/maps/api/directions/json?origin=' . $from['lat'] . ',' . $from['long'] . '&destination=' . $to['lat'] . ',' . $to['long'] . '&sensor=false&key=' . $keys_all[$index];\n\n $ch = curl_init();\n// Disable SSL verification\n curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);\n// Will return the response, if false it print the response\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n// Set the url\n curl_setopt($ch, CURLOPT_URL, $url);\n// Execute\n $result = curl_exec($ch);\n\n// echo $result->routes;\n// Will dump a beauty json :3\n $arr = json_decode($result, true);\n\n if (!is_array($arr['routes'][0])) {\n\n $index++;\n\n $arr['key_arr'] = array('key' => $keys_all[$index], 'index' => $index, 'all' => $keys_all);\n\n if (count($keys_all) > $index)\n return $this->_getDirectionsData($from, $to, $index);\n else\n return $arr;\n }\n\n $arr['key_arr'] = array('key' => $keys_all[$index], 'index' => $index, 'all' => $keys_all);\n\n return $arr;\n }", "private function getRelativePath($from, $to)\n {\n $from = is_dir($from) ? rtrim($from, '\\/') . '/' : $from;\n $to = is_dir($to) ? rtrim($to, '\\/') . '/' : $to;\n $from = str_replace('\\\\', '/', $from);\n $to = str_replace('\\\\', '/', $to);\n\n $from = explode('/', $from);\n $to = explode('/', $to);\n $relPath = $to;\n\n foreach ($from as $depth => $dir)\n {\n // find first non-matching dir\n if ($dir === $to[$depth])\n {\n // ignore this directory\n array_shift($relPath);\n }\n else\n {\n // get number of remaining dirs to $from\n $remaining = count($from) - $depth;\n if ($remaining > 1)\n {\n // add traversals up to first matching dir\n $padLength = (count($relPath) + $remaining - 1) * -1;\n $relPath = array_pad($relPath, $padLength, '..');\n break;\n }\n else\n {\n $relPath[0] = './' . $relPath[0];\n }\n }\n }\n return implode('/', $relPath);\n }", "function cot_pfs_relpath($userid)\n{\n\tglobal $cfg;\n\n\tif ($cfg['pfs']['pfsuserfolder'])\n\t{\n\t\treturn($userid.'/');\n\t}\n\telse\n\t{\n\t\treturn('');\n\t}\n}", "public function getRelativePath($from, $to)\n {\n $from = $this->getPathParts($from);\n $to = $this->getPathParts($to);\n\n $relPath = $to;\n foreach ($from as $depth => $dir) {\n if ($dir === $to[$depth]) {\n array_shift($relPath);\n } else {\n $remaining = count($from) - $depth;\n if ($remaining > 1) {\n $padLength = (count($relPath) + $remaining - 1) * -1;\n $relPath = array_pad($relPath, $padLength, '..');\n break;\n } else {\n $relPath[0] = './' . $relPath[0];\n }\n }\n }\n return implode('/', $relPath);\n }", "private function createPath($numeroModel){\n\n\t\t$publicacion = $numeroModel->getPublicacion ();\n\t\t$numeroRevista = $this->generateNumeroRevista($numeroModel);\n\t\t$pathname = $GLOBALS['app_config'][\"url_imagen\"] . $numeroModel->id_publicacion . \"_\" . $publicacion->nombre . \"/numero\" . $numeroRevista;\n\t\treturn $pathname;\n\t}", "public function getPath ($pathType, $from, $to)\n\t{\n\t\t/* needs prev. routes saving (by $from)*/\n\t\tif ($pathType === self::SHORT){\n\t\t\t$routes = $this->dijkstraEdges($from);\n\t\t}\n\t\telse if ($pathType === self::CHEAP){\n\t\t\t$routes = $this->dijkstraVertices($from);\n\t\t}\n\t\telse{\n\t\t\tthrow new Exception('No such path type: '.$pathType);\n\t\t}\n\n\t\t$path = array();\n\t\t$tmp = $routes[$to];\n\t\twhile($tmp !== null){\n\t\t\tarray_unshift($path, $tmp);\n\t\t\t$tmp = $routes[$tmp];\n\t\t}\n\t\tarray_shift($path);\n\n\t\treturn $path;\n\t}", "public static function personal_folder_path($user_id) {\n\n\n $user = Backend_User::find($user_id);\n\n $slash = Config::get('portal.back_slash');\n\n\n if($user) {\n\n $route = '';\n\n if ($user->user_type == 0 || $user->user_type == 1) {\n\n //get first and last name \n $details = Backend_User_Details::where('user_id','=',$user->id)->get(array('first_name','last_name'));\n\n\n\n $details = $details[0];\n\n //form route\n $route .= 'users'. $slash .$details->last_name.'-'.$details->first_name.'-'.$user->id;\n\n }//if user or admin \n else {\n\n //get client's details\n $client_details = Backend_Client::infos($user->id);\n\n $client_details = $client_details[0];\n\n\n if($client_details->client_type_id == 1 ) {\n\n $route .= 'clients'. $slash.'individual'.$slash.str_replace(' ', '-', $client_details->last_name).'-'.str_replace(' ', '-',$client_details->first_name).'-'.$user->id;\n \n }//if individual\n else{\n\n $folder = Backend_Client_Type::get_name_by_client_type_id($client_details->client_type_id);\n\n $route .= 'clients'. $slash.strtolower($folder). $slash .str_replace(' ', '-',$client_details->name).'-'.$user->id;\n\n }//if corporate\n\n\n }//if client\n\n return $route;\n\n }//if the user exsists\n\n return false;\n\n }", "function getInternationalRoute($originCity, $destinyCity)\n {\n }", "function getRelativePath($from, $to)\r\n\t{\r\n\t\t// some compatibility fixes for Windows paths\r\n\t\t$from = is_dir($from) ? rtrim($from, '\\/') . '/' : $from;\r\n\t\t$to = is_dir($to) ? rtrim($to, '\\/') . '/' : $to;\r\n\t\t$from = str_replace('\\\\', '/', $from);\r\n\t\t$to = str_replace('\\\\', '/', $to);\r\n\r\n\t\t$from = explode('/', $from);\r\n\t\t$to = explode('/', $to);\r\n\t\t$relPath = $to;\r\n\r\n\t\tforeach($from as $depth => $dir) {\r\n\t\t\t// find first non-matching dir\r\n\t\t\tif($dir === $to[$depth]) {\r\n\t\t\t\t// ignore this directory\r\n\t\t\t\tarray_shift($relPath);\r\n\t\t\t} else {\r\n\t\t\t\t// get number of remaining dirs to $from\r\n\t\t\t\t$remaining = count($from) - $depth;\r\n\t\t\t\tif($remaining > 1) {\r\n\t\t\t\t\t// add traversals up to first matching dir\r\n\t\t\t\t\t$padLength = (count($relPath) + $remaining - 1) * -1;\r\n\t\t\t\t\t$relPath = array_pad($relPath, $padLength, '..');\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$relPath[0] = './' . $relPath[0];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn implode('/', $relPath);\r\n\t}", "public function generate_url()\n {\n }", "function buildPath($entity, $options = array()) {\n return file_create_url($entity->uri);\n }", "private static function get_relative_path($from, $to)\n {\n // some compatibility fixes for Windows paths\n $from = is_dir($from) ? rtrim($from, '\\/') . '/' : $from;\n $to = is_dir($to) ? rtrim($to, '\\/') . '/' : $to;\n $from = str_replace('\\\\', '/', $from);\n $to = str_replace('\\\\', '/', $to);\n\n $from = explode('/', $from);\n $to = explode('/', $to);\n $rel_path = $to;\n\n foreach ($from as $depth => $dir) {\n // find first non-matching dir\n if ($dir === $to[$depth]) {\n // ignore this directory\n array_shift($rel_path);\n } else {\n // get number of remaining dirs to $from\n $remaining = count($from) - $depth;\n if ($remaining > 1) {\n // add traversals up to first matching dir\n $pad_length = (count($rel_path) + $remaining - 1) * -1;\n $rel_path = array_pad($rel_path, $pad_length, '..');\n break;\n } else {\n $rel_path[0] = './' . $rel_path[0];\n }\n }\n }\n return implode('/', $rel_path);\n }", "public function get_directions();", "public static function getRelPath($dir, $from = NULL) {\n\t\tif (!is_string($from))\n\t\t\t$from = ABSPATH;\n\n\t\t$from = explode(DIRECTORY_SEPARATOR, rtrim(realpath($from), DIRECTORY_SEPARATOR));\n\t\t$to = explode(DIRECTORY_SEPARATOR, rtrim(realpath($dir), DIRECTORY_SEPARATOR));\n\t\t\n\t\twhile(count($from) && count($to) && ($from[0] == $to[0])) {\n\t\t\tarray_shift($from);\n\t\t\tarray_shift($to);\n\t\t}\n\t\t\n\t\treturn str_pad(\"\", count($from) * 3, '..'. DIRECTORY_SEPARATOR) . implode(DIRECTORY_SEPARATOR, $to);\n\t}", "public function getRoutePath($onlyStaticPart = false);", "public function path(): string\n {\n // path to your own account\n if ($this->model->isLoggedIn() === true) {\n return 'account';\n }\n\n return 'users/' . $this->model->id();\n }", "function addPointToPath($newLatLong, $trip) {\n $jsonRouteFilePath = \"cricketTraveledPath.json\";\n $error_msg = \"\";\n $result = false;\n \n //read the old $lat and $long from the $jsonTravelFilePath\n $tripPaths = json_decode(file_get_contents($jsonRouteFilePath)); \n $lastLeg = end($tripPaths->{$trip});\n $lastLatLong = $lastLeg->{\"endLatLong\"};\n $lastid = $lastLeg->{\"id\"};\n \n //get a new encoded path from MapQuestAPI\n $mqString = getMQroute($lastLatLong, $newLatLong);\n if($mqString){\n $mqResult = json_decode($mqString);\n \n //create a new Leg php object\n /* looks like this in json format\n { \n \"id\": 40,\n \"startLatLong\": [ lat ,long]\n \"endLatLong\": [31.9494000, -104.6993000],\n \"distance\": 600.433,\n \"MQencodedPath\": \"}yvwEh_prQFwB??NoK??\\\\iELiDBy@???G?y@@sEAa@??G?kA?E???A`@CrG??BbABlGEnCIjCKnBGnBYjF?xBFvB`@~DRpBNpAFt@H`BDrA@d@C`GAdBGbCAtDAfA?jA?dG?jB?~@?T?xC?`CAbE?~D?pK?`H?~C?vA?`@?L?b@?fA?`D?lC?lC?vA?dB?`H@~K?rHA~B@hH?^?zE?|E?`FBzEH~E@jF?`B?lABnW?|A?fI?|A?nD?|A?zB@jT?xA?h@?xEAjC?rB@bFCxCGdBUvCUhBs@~FWpBa@|CS~AkAhI{@lGS~AGx@[fCeBlM{@nGOpAWxBg@zDoA|JSbCS|BUpFGtCC|D@vD?pBBtLBdI?pBDxL@pKBjHBdBLjI@vEDdQCff@?~A]xb@G|P?tPBd]Gx\\\\E~LA~L?xAArTFfFRhF\\\\`Fb@|EpAtHfB|HhAvDzCzJtIbYjFtPdFhPVz@x@fDj@rDf@fFJ|E?hD?nOBfTAzN@|L?V?tI?rCExBMlCGpEDhBArQ?bA?pHAbI@bICzFAfA@lDClC@vH?jI@`@CvC?rCElBG~G?fTAdRBtL?zJ@t\\\\AlQ?pQ?v_@?|B@|C?jB?`HBrRAvc@@xQ@zPAfd@??^?~a@@??DrALn@tApEVhAPjAFpCJtBBre@lC``CB|B?R|@ds@LtOArS_@lSqAhf@mB`v@YlOSdVD~JP|N|Bfx@Rv`@i@dc@_Ap\\\\IjKGpS@pnA@pc@AtCBte@@|d@?zBKfNq@xJMdAmAdJ}ExR{HpX}HhYsHfXqBtHqEdPwCdLqCnNmA|IkAdKsAhQsBbVoClVqD~VkElVqExTuD`PuO`l@qFfTeGxTgGpU{\\\\ppAeBtIcAhHm@lHYrHGhSF~PApV@|_AHb{BJdZd@j\\\\n@pZZpWBzTObR}@p^[hUIx[D`UA|i@QlQy@db@wAhd@cAv`@UpULtU`@hQd@zODjAzA`h@~@p_@\\\\jT?j\\\\F~N@z`ABrJ?vBFd^Dzi@E~L[|Oq@`LsAbMsJpv@mMjbAoI~m@eAxIeEd\\\\yC~Ts@vJUlJPdIp@tIpA~HnBtItCxHx]rs@lXdj@~GfNrC`G|AvDz@~B|@tCnBdIrArHdAxJ^vGNtHEfFOxGk@zIUpBy@`GsBdMiXndBu@jFgAjKc@rG]bHO`HG|NCt|@AtV?hAAv_@C`NEzwA@nGIdgA?fAAzXQtNOdISlIWvHI~GE`I@pFLdL`@|NPhLD~CHhLGv}CQpY]pVCtM?dIXhWPd[Adu@AdSMvrHOvN[zM_@tIo@zKg@|Fu@hIo@zFuAlKgB~KO`A_Hba@{BfN}CxQqAzIe@tDiAtKaA|M]vGc@pMMpJErHBhVBpe@@lA@~p@?~A@xUCbKB~^ApO@zn@G~lCBfgBA~M@lEAnYBtGCdDBb]BfE?|d@CvDBdFC`HDvT@b`@B~DTdERfBh@rDh@`Cz@pCtB`FzAnCxHrMjM|SvDlFtBdCjAlA\\\\TtE|D|CrCzF~E~@r@rBrBpBhCdAbBfBfD~@fCp@vB\\\\nAZbBj@dEPxBJhCHpHBtSA|V@~A?`PDzHN|JDlBl@zKR~C|@jK~@`L^nGH`EB~FK|GGtAUjEqC`[mA|Nw@hNOjEOzIK|z@?dr@EpMMjdC?xAc@t{D?hSGn]DlIJ`HXbINvCf@tGVlC`A`JtAfJnDxSt@rEvGp_@hEbWv@jE|@bHt@fHb@`Gb@vJTbIHzK@fSAfk@Exo@C~CBzNMdsDRpLXjHj@rIV`Cx@hHb@~CnArHRl@l@dCn@rC|@zCt@dCnBdGnCvHpAdD~@rCfAtC`E~KrGdQnArDbF`NhArCxU|o@lDnJzDdLfAbEp@rCj@vC`@dCd@rD\\\\xDRpCVvFDfD@|EItEeAx\\\\QdFMdFGnECrEBdHLxH^rJZxE`@tFvAvMbAbJl@fF^fDdD`ZrBpQjD`[TxB\\\\fD~AbNbBdLhCjLt@|CtBdHxAlEhDvIjDrHHPfD`GrBdDvGfJvFrH|EfHzEbIpC~FhC|F|@~BvD~KzBrIpAvFx@rEHVz@dFhA|In@zHNbCLpARdETtHF|FE~_B?pU?bB?rUCb]?npAE`KAfj@Cv~A@|IClM@rXA~ZBjENjFN`DRjCp@lG~@bGXpAZzA|@tDfD|KbA|ChEhMhXvy@fAtCzEjLhB|DlEfIvCvExEbHxApBnG|HtI~J`HlIpAxAp@n@fDfEhFfGvBfCfAjAhAxA~DtEp@|@vCfD|InKdAhArAbBdF~FdFfGtAxAnHdJlCrDjEpG~@zApDtGf@hAj@`AzCvGrB~Er@hBzCdJxAzEjCvJ|@~DdAlFbBlKjEp]^pEf@rEdBfMb@vDrBhLhAlFbC~JlAtEdEvLxBvFfDvHzBtElU~c@xCbGzPn\\\\vGzMdBfEv@jBfCnHh@jBx@rChBhHrAhG`AdGdAbId@~D`@nE`@dGZhHNnG@tI@vnB@nTAlo@KbHQfDc@lF_@rDc@zCcApFy@jDwBnI{B`Ie@lBuBrI}@dEm@hDeAfHe@`Ey@~IWtFGnBMdJ@nIFdEBx@FdCNhCl@jIZ`DZlCbAnHx@|DR~@jAnFx@|C|EnOfAxDrBdJ|@dGVnBd@|FPhDLjEDh_@NzqBDvgACtILvlBDbEPbFLdB\\\\`ED`@~@~G\\\\fBl@jCh@rBbCnIrArDxAjDpDnG|A~BjA`B|DtEj@p@pMpMj@h@rD~DtHtHpCvCrJxJb@d@~TtUlMtMz@~@jd@ne@jKnKrDxD`DlDzD|DzAbBrBhCdCnDdAbBzBfEdA~B~@|Bz@`C`AvClAxE^dB`AzEXdBl@rFb@xFNpCFfBDnC?|PAlHBdz@CvK@hKAfb@KfJChJIdFEdHu@dWGtDOjDO|EUvKCzAG~ECrECxE@tIFdHL|G\\\\tKh@hSLrDR~LVjTBrG@xIBxGArODv\\\\?rkB?nSAjAB~GC|GDpFn@xI^`CnAxE`AzC`D|HbBxDpFnLtBlErQpa@bBfEbBxDxLdXz@vBrHjPrQva@pFvLbDjGfCjEzSp\\\\tWha@lDvFzEnHnIdMhBdDnEvIpGhNrBzEfCnFtGdOdChFtCzGrClGnHtPdDfHtg@jiAfAdC|CtF|CnFfHvKhB`CpD`Fn@t@dC~BxNzL`OrLdDfCpYpU|PbNfG`EvChBvC`BtIfEbGlCbA^xAl@zCfAjElAxBp@`Dx@`Dr@jI`BpEv@zGtAtH`Bf]fHvFlArPbD~KbClAVdF~@|RhErBd@tQnDdIjBlGjA~PlDlHdBfFbBxD|A`EhBvDlBjAr@vCjB~EvDhGfF`CdClBtBvClDxCdElDtFxCtFlBbE~ArDlCnHXz@x@jCbBfGfBhIf@pCn@vEp@pEv@lINvBVdEJpDJlF@fHGloBEfJO~rDDzI^bRb@xMj@hLjApPj@xGn@rG~@hI~@rHjAdIfAjHzAdIbBhIlCfLxEnR`ChIzCjJrBvFrB|FlCjHbDtHjL|Vz@rBvJvSpCrG~BzExIzRj@pApHnOxApDrHxOvHnPr@hBhAzBnIxQpDdIpB~EtAhDzBhG~BjH~BbI`BtGdBrH|@vEzA~I~@|FjApJr@rH|@~Kb@bI\\\\jIH|FFbHBpEElJF~bAFvPPtQPxKNfGv@tVd@xMJpAdAzTnArTdAzTPrDtB``@~Ah\\\\x@bXh@nWLjJNxX?bZEzZEh[?hC?vSAnBQveD@zKE|UApV?dACbQK|CS|JSzG_@fJgAbR]hDq@dIgArKyPpxA]xDkA|Og@|J]dIOxEQpNErRN`MRhGx@lRbSfrCr@~Jv@bMJjBnAbVBzBl@rQNjGJnMJvpAA`IBrlABf]Aj\\\\FpcC?fxACjJ?|BCjzGEf}@Bjm@EfrBEft@Bxg@CjqBPr}CIpGMdGItBSzCWzC[xC_@vC[xAo@jF}Mr_AoDbWO`BYzEQbFExCAtCBlDRtGhA`QbBtYz@tMPfDr@tKXhFp@jKjBzXz@`Lb@vGV~DzCda@^zFz@fL^hHJ`EDjJ@dYCve@IxOCv[?buAGzTAhfABdMCfFBj^@`JDvb@Ilc@O~EUnBg@rDgBfLUfDiEzjAgAf[E~B?tBD|BPvD\\\\dFXrBh@rC`AdEfCzJvA|GTxATjCN`DB`A@xGC~cAOfh@GpH?tDCvHBvHAxh@F`UHxHJxQ?jQAzX?l^?pZDnf@Ad}@Uxm@EnYJ~j@LbRBtU?jqACva@BdXC`WAd_@Sh^?z]F|LNnHR~Nb@lVDnNE`IAnn@A`r@N|tBFtYDhy@@bE?tGMlM]fSOhHClCEl_@@xICby@GhF[|G[`EoBvYSzCiD|d@s@zKI|E?~F\\\\fJp@dG^zBh@xCf}@bgEnAlH\\\\xCXzCRzCN|CxKdoCnBvf@|A`_@lAj\\\\|Ab^HdD?dDMvFUdDI|@cBtM_DvSa@bEGbAKxCGrD@hw@@nBNtCR~CPbBp@|EbCvOvCpRt@hFd@~Ej@lHJfKA`DIvFItBOvB[tD{@fHoF|ZgA|GY|CSzDC|ADfEFbCj@xF|@rE`@bBnApDr@dBx@`BxB`Dt@bAvDtD|ErEfFnErFhGlA`BlBtC~DnHxAdDjBfFt@pCxF`Qh@`BbFdPb@rAhCbGfA`CjBhDtAzB~DrFxBpCfL~NtNrR`AlAbNxPdB~BxD`GrBjEz@jBhOd^zNv]hLhXvCfJd@lB~AjIf@rDr@zHXdEPnGClJIrCcAbNaBzOeAbK_Fdd@k@`GqBfYqDbf@a@|FYlGKtEA~ADlGP`Fp@zJd@xDNbAp@xDl@xCz@tDx@pCxBtI~Hf[XpAjAlJl@xFZbN@rNGl[[`G_A|Jg@rDwBtLeBnHw@jDoFpW[tBSdBe@nEMzAMlBSlGIpYD`LGfVEtwDH||@Sv{@?dSRxIf@vJRfChChYdCnWPdCL|BF~BB~B?`CA~BI~B{Czr@u@~OGl@EvAWnEo@hOyCvq@O|BSzBaHdp@sJn_AgS`nBqFli@_UrwBe@|Dw@dFSbAkAjFgA~D{AxEwBlFwDtGu@dAkFrHsOnRkAvAeLdOqAnBoBvCeEdHaDhGuHzO}@nBcL`V{AxDiB`Gc@jBc@rBe@rCc@zD]fDE`AQlEChE?xDJvD\\\\hFjA~KXhChFhf@~@~HxGpm@tGnl@XxBv@xHn@fI^|F`@bLF|DJjJCt}ACdr@Alt@Cx{@@lUEdy@Aje@EzPGpB]fHM|EEdEBjGH~Df@vLDvC?ru@A~{A@lVArS?tkBCva@CrmB@p]GhmBErsFOfH_@lGk@xFIf@}@xFw@|DwAjFuJ`\\\\qPdk@cBnFoEnOkDhLqOxh@qEjOuAfFy@pD]dBy@rFc@rDOfBOlBObDG~AGjD@jx@RhcD@ff@C|g@L~eBJvzBAfh@@bh@FpSHlFHp\\\\FfLJv`@~@||CFnb@?nLFjp@\\\\zvCOvm@Q|jA^lHr@|Er@|Cx@jChAnCbDxFry@zmA~DrGxBpF~AjGn@nFVnF@nEGfyCAd\\\\AlB?fNDfDF~BFfAXbDLtBJrB~Dji@xBfZNrB|B|Zp@tJf@fDd@pBh@nBbApCx@pBnAvBxA|B|AjBp^rd@~IvKxA`Cn@lAnAbDnAzEt@|EVrCL`DFnCB~P?fD@f`@AfB@fPOjNI|FAlD@jTApWLjsA@bHBzPA~K@tCCdL?`JD|i@H`g@?jBCj_@Bvr@@`QFfJBbCDnK@dN@bR?dCCfRArDGrBOnCi@lGmA|REhA?vB?zJ?bC?r\\\\?xBP|RBjAn@xS~@jXFbCR~FJrDD~T?dC?`O@pCBvMAdR??i@rD_@~@[h@??iDfEuBvCc@fAETM`AA^@n@H|@Jd@L\\\\\\\\l@jB`C\\\\XZNXH^FX@ZCTE\\\\Kh@YNQT]z@}A^e@TORKn@Q`@CjABpI~@~Fr@tAJrGBdEAnEAfCRNBjAP|Ad@z@ZhB`ArAz@rO~Jz@t@h@f@`@f@x@lAn@pA^`AV~@XlATzAHbAFtC?zO@bE?vNHhCJrAZtBd@vBlArDx@bClBfF|DtK`EhLbFfNr@dB|BpEfCpErBjC~ApB|AbBlBfBzAnAzFzEbNbLtC~B|JhIvBdBvDfDjH|Ff[fW|InHfIrG`CjBhA~@rPhNxAnAtPdNp\\\\vXlO`M`JrHd]~X|BhBbGrEdGdD|EjCdEtBdStKrHbEdBx@jDxAfEzAhBh@hEdAdFbAlGr@fFp@ho@fIhh@tGziBpUpZvD|SlCx@Fr@BlGAbb@BvU@zQ?dVBzp@D|g@?jO?dg@BzLFhC?|H[lOs@pBW~Bc@rBm@jBw@nDqBhB{AhHwGbA}@pLiLf[aZ|[mZzTgTbD{CfT}RbF_FpDgDxG}Fl@e@xEqDvBgBxB_B|MgKjLwIbLyItQmNnC{BzL_JfEeDrB{AlWgSpFcE`W{RdDoCfBgBna@i`@xeAycAlQqPnBgBtByApCiBxEcC~CoApDkAhEgAdCe@vBYpDYhCMlAEr\\\\IzMCvr@?jMB~fA?baCJhc@B|DFfh@FfBB`v@TvhAVbKCfTo@t`@?zJ?~gABl`A?vb@Cj}ABf~A?~_@?bC@dMAz]B`LG`J[hE]dTkBhGa@~LKzNB|GAjSAr[Fz^BzC?t`@Clp@?hQDxC@`IChEMzBQrCYbBYxXaFjjIm{AdlAmTfGqA|C}@r[cLhc@qOjVsIra@uNhnBoq@dHeCdNyEt_Ak\\\\di@aRjAe@nGuCbDsBnDgCxPmNlDmC`BaAfAk@lCkAdBk@~Bo@jDo@tBS`BIrBEzC@x@BrALbD\\\\tM`BxCX|I`AdBLjDJlRDxp@?p}@FvIBrZ?pLDlJDzCPxK~@hDPz`@DpGArh@@lC@nCC`ACjBOxC_@r@M`EgAxAc@hDwAnEoBzVaLvt@e\\\\jr@e[`j@iV`CcAfBk@|C}@rBc@hDi@dC]nCUjBI~CEvJ@jVCvfAFzOElHF|m@BbSEzP@tJAlQDzS?xl@@`NC~K@pR?t]HtG?`\\\\Hjd@Ifq@C~_A?xBBvDGnCKtAIzDa@rASzAYzA]~DeAfBm@~@_@~DeBlDmBv@e@re@_^fe@w]|JwH|m@wd@pi@ka@fKsH|MgKfSgOfAu@|A}@bB}@fBy@bCeAdDkA`HyBlGmBtHiC|L{DjNsE|g@kPzQeGbJqCtNwE`MgEnxB_s@t|@gYbMaEpr@{TdwAwd@lEkAvDg@vc@[zg@g@|ZWrJGtJDtG\\\\lARrE`AlExAdLtGlCxBnDzEfFdG`GbHz^hd@nKzM`F|FpHrJdTvWbClClEpF`L|LpB|BjHjIxFxFlGlHzHtI~RvU`IxJzAdB`BxAnAz@hAn@`An@zAp@fBn@zBn@lCZ`BJjBDbF@bUSbJAlB@pMMpDBpIb@pRr@nDVnI`@dG@hDItDUpKu@nGk@nKu@nKw@l]uAdO]jk@mA``@Sph@Q`LKvAAlO?vH`@|HdBbIlDfAr@jB~A~DdDjOtTvAnBlS|XxE~GbOhTtE|GnAtBhDpGjD`HlKnOrMjRrIrLfUp\\\\jHtKzChFtd@feA~_@l}@fSle@ls@haBhHzP|FrMbJvOzEbH~D|FzJhNxDlEtBxAdAf@`GfBtEn@p@@lIJpa@?vERpCf@bChAvDlBfCnCdAfAtCdDpGnH`EjFrGlHhExC|AfAdHvCvDlAjBZ`F`@pZNbdA?pWD|e@E`nCLbt@@pGBrZAt_@Qj^@hfAFtsBQbZKxU?fLBbKFne@@xU?|]Frk@Fp_ACvtAAx^AtKCxBCxAAdEEnTDbHFnO?xkAGpLKvFe@vHkBzEwBvFuDvDoDhJaL|HmJlOyRfByBl@u@tBgCdBsApDsAhCUxKB~RDdYGfDCpM?xCAnEB|JEnEOfCWtBY|Cq@pA_@bBm@dIiDnBu@tDkAvBe@`B]`Fq@~DYbAE|ACp{AQvz@?t]?v^Ely@Gh`BCtP?vA@fBDbADfAN~Bd@dB`@jCr@bFlB~B`AbNtFlCbAfA^vDbAlCl@fBVzCXvCTbBHfBDjP@~H?zR?xAGhBMvAQlAQfAWjA[zAg@jAe@dEuBrAq@v@a@nBu@jCs@~Bc@nFa@bMAxLAbCHvCPbKlA~BRnFTlA@~BBzDFvF@|JJfDEzCGvAQnBYfASdAW~Ai@zJwBnEeApD}@tLqC|Bi@hDy@t@QzCe@zD_@rAItEKlB?|C@fOG~a@GzB?hSGpYCpSIbB?xBD|BNxBXjCb@dDZlCLvC@j]GbD?z^IpBIjBSf@IvAMvEw@`AKnBIp\\\\MpDA`ME`GIxJCjBBrGCxGIpX]bEC|B@bE^fBR|B^tCz@v@T`Bn@hAh@vC~A~@n@`CjBjFpEv\\\\xXnCvB`DzCnBtAbB~@rAh@zA\\\\vC^t@Dj@@xBAnBQ`MuAnEe@d[iD~AOlCYxCi@rCm@vBk@t@WlG_C??dAU~Am@`A]xBeAzIyEl@YvB}@t@U`AO|AI??l@RNRLXAvADzA??FrB@|@Cv@UzCIrB??u@pHc@rFIlECvB@fE@p`@?zD@\\\\BzJBnbAAl^DvCFdBLdBr@tEd@lBl@jBt@fB|@`B|ElI|JlQvPd[tIjPrWvg@zDdJjD~HtCjHjDxGbE~G~BpDfB~ChA~AbOdVlCbFvHrNhKbRdDzGfBhE`FbMlBxEdDxHrAnCz@~Ab@x@nB~CbBrCdF`IzEtHbJnMrGfKxEdJhEbIbElIzAnDzE~NnBnF~DdIpEhIbFhI??|\\\\dm@fEfIxBtDbHzMvQv]nAfC`DzFpBxDpDdHzJnRtCtFjBzD|BlE~J`Rt\\\\no@jA~B^~@Xj@fPrVjDhF~BrDbDtDxBzB`CpB~CtBfE`CvFvB~RtGrMlEtDjBlDdCrCdCfCtCdCrDxBzD`CxGrAjEt@xBzC~IjAbFz@vG^vE\\\\pQZxZFz@DhAt@tGvBlLjArG^hBj@|Bf@fBpBjFl@lAnYfj@~IzPrEhJbBxChHhNdc@zy@|Ttb@`GlLtKvS~BrExOzYhGpLbGtLbCdEp@rAtAlCdu@fwAdN`X~h@hdAxPv[~Sr`@|g@vaArF~Jh\\\\xn@vIlPjUlc@`BlCbArAt@|@~@`AhAbAjOjLzWfSfOfLvBpAZNXCtCvAlAr@|AfApDrCtDtC`FpDfCjBnCzBlCpCJ`@j@n@nArAnBbBda@xZxc@x\\\\zi@`b@r[`VvDzBdD|A`NtFnHpCfHtC`KbE|X~KzFxBbm@bVvj@xTxd@zQd^tNjH~CnBv@lBb@`EdBfQ`HdFrBbJnDjChA~ZbMvTvIrb@tPzu@nZryAjl@nyAbl@dzAll@vIlDh^tNdp@rWlTvIfS|HbFrBfO`G`LrEdK`ElVtJnW`KvJbEfK~Df|@t]~n@zVrTtItb@|PdA\\\\bBj@|@XnB`@t@LpCT~DHjIJvCFpEBvAA`DGl@Eb@KdGClE@tEB|BCpA@rBOxANhB?bB?tD@V?f@?L?b@?D?X?t@?`C?rBAjA?b@AZ?T@R@ZFFB^J\\\\`@VD~AfAf@P^Fb@BnC?|ECvEAhE?nE?v@Fj@Jz@Xj@ZXTVV`BvBb@D??\\\\p@`BlBbAdAzUbXdBfBrFdGnArB~CnF|CrF`DlFlAlBrAxAnDtGDd@~EfIhC`E|AxBtAxAvAlAfC~AjCxAnAv@`@\\\\|B|BfArAzRfWtCzDpE|Fn@|@fAlBf@bAl@xA`ExK\\\\x@n@rAvAhCxFxHxJfMvEjGvn@by@fVd[jMtPhQbUnLrOrDpEzElGdRnVjG`IxBrChs@x~@dc@|j@v{@~hAvI`LbLjNjA|Aja@rh@~q@~|@hRlV`q@b|@jF`Hp[pa@jb@hj@hQxTtG|HxE~E~AdBXH~ApBV\\\\hDbEV\\\\X\\\\vCtDdKxMxBtCNb@tBvCxG`KlAlBlHjKn{@lhArUrZjaBhvBzOrSdg@ro@jCpDdm@`w@|NhR~AjBjVj[|G`JnHfJj]~c@dP|StHrJt~@dlAbC|CXXnAhAbBhAxBfArAh@T@zAr@zAx@`Ax@Z^l@x@V^j@nAZbA^|APfBFfB?nHBrBFtAHt@RnAVdA\\\\dAj@hAT\\\\fArAZXhAv@rAp@xFdCvBbAjAx@x@t@j@n@~@lAva@bi@fBhC~C|Et@jAbCvDzF`J~EtGxEfGvCrDtCpDjA|AfAvApCrDvEfGz@fAfCbD`LxNnEzFjGbInPdTrIzKnJzLHXhBdCbEtGvBxC`ItJpDjEdRlUfS`Vzy@rbAbNnPfPlRrp@|w@|Yx]rMjOzVvZ`j@dp@fDpC|CpBfEbBrFrApBd@vCPjCJrmAI~OH`[@bm@IhMBrp@CpKGrAApJBxg@GvRGn]Lrc@Kju@A`VEhUDrl@CZAvTL`V@xd@KvF?bSDfBBvbAGn@?jE?`E?fj@Cx`@AfB?xCLpAPpA\\\\`Bh@`GhBfCp@`Ch@t@Pf@CvJpClEtApEvA`EnAPFnDhA`@LnEtAfAZzAXl@FfAHfA@zIChGAdGAhGGpEA??ArF@xHAzD?~CCxACbAKxBCn@e@xFq@vFcAlFiAxFy@~DuEpTcBtHoGt[If@_FtVe@jBg@|D}@bE_A`IKfDEbFFv`AHxb@A~^FjaAStw@?tJHlf@DhjBChkBE~iB?djB@~X?hjCAhN?f`@Hnw@Czr@GjpAFvL?fg@B~HCvPYhLYjOU|IA~EBbyBBrnBBnLIjJ[jK_Ax]oAve@_F||AgBlp@VtXz@fv@v@ru@r@vd@n@xn@JhO?~_ACrp@Fvu@Fp\\\\Bv~AAdc@AlU@fEDd[BvMJ~G`@~SR|I`@dSj@~YRzTNhQJfLRlUHdJRnUH`IJnJDdBJpBH|@ZjCPbAf@`Cx@rCdAlCbAtBfAjBv@dAnAzA`A`A`T~Q~FbFjHrGrJnItFxE|EjEfDrCdA~@f@b@nAfAtN~LjEvDjPrNfB|AVPR?\\\\XpAhAfHjGlC|BzFbF|DhD|BnB`Ax@f@d@Z`@n@~@r@~A`@lANt@ATJ~@H`B?vB@xF?z@D\\\\@xCAvF?rF?xF?vFAxF?vF?vF?vF?tFA`F?RAdA@~K@vFAjF?nF@j^?pCAjBAjEBd\\\\AvH?hN?rU?rT?rF?|Q?f@?zGKl@?pG?pA?dBCjR?LPlAE~nA@bECfc@?nC?fLA|r@?^?V?|D??K\\\\E^A~^E~{@M~xC?rFEti@?jICxb@???p@Cbe@?lb@Era@AnM@hSIna@Xn}EA`KB`vARv}BAdZFxEPdFVzCZdDd@dDz@dFx@xDhA|DzAnEdBbFpEjMhFtO`Kn[nDlKlNda@la@fkAfSpk@`dAtwCzm@jfBdn@dgBlKnZpg@rxA|Wtu@dCjHfDvJtNda@dA~CpJjXb]xaA`_@bfA|]rbAz_@vgAlDnJjD`Kn@vBrIzZbc@t}Ad@dBbb@d{A`C`Jdo@b}Bxj@tqBjn@|zBfMfd@r\\\\nlAfB`HxBrJbiA|xFdc@|xBvN|s@hAbFpBtHdB`Gb@dBjQho@jJz[rHbXnAzElAfEhg@lhBt@dE~@dGf@jETvDRhF^~PdAtb@f@zT`DbtAb@fQfDpwAnAlf@hClfAd@lTvDv~Ar@jZVtFp@pM|HbyAbPt|CvDxr@nAhVlB|]^jHHnCFtDCdDOpGYlFwTzbC_BjRsMjxAcHpv@{OpfBuJffAg@pGQxFC|FFtETjG^vEd@lEt@rEj@tChAtEhArDbAnC|qAx~CxKpWzQdc@t@fBnB`EpBpDhT`\\\\x{BbiDlRjYhF~H|s@~fAdQxWb\\\\rf@pOtUfSnZjF~H`Ynb@lMnRtJbOlEtG~I~M~AdCh[be@fDrFhAjBbC`FjCfHd@xAxBlGtDvKnGfRdBdF`K~YbGbQrDrKlFtOvI`WpCdIlRlj@tGlRtM|_@zIfWlBxFxAdEdA|Cr@xBZfARx@RnARhBDx@FvABrA?`BAlC?j@?\\\\CnG?D?J@fC@`C?bCA|BAdC?rBFR??P?vC@b@@h@?lA@~@?\\\\?~@?jFB`JQ`GMpBK|AQbAOjB]`B_@zAc@fAc@dAc@h@[bAk@P[\\\\Uf@[lAeA~BcChHqIn@k@pA{@vAo@x@WvPuDdYgGjGuAnCk@pAY~Bg@JCVDxEu@dD]tAGjAB`AFx@LNBxAd@xAt@ZRh@XPJP?zCfB~HxEpGvDxJ~FnC~AfAp@lDtBjAp@h@ZxHnE`DlB~D`Cr@b@JFj@\\\\d@VdBdAh@ZdJpF~BvAbB`AhHjEz@f@B@lAt@hAp@xIhFhWlO~@h@HDLJh@ZJFjYzPlBjA`DlBtGxDfL~G`CtAjp@n`@`@TlVzNfAn@HPrBnAdJfGj^jTt@d@fCpAzEtB~s@nYrEhBf_Ad_@~\\\\`Ntn@zVhEbBxB|@dJpDnKpDpBv@bNjFxEnBpVtJlTzIzw@f[nIhDnIfDrd@vQzIpDzYhLfUdJpLzErLrEnOfG|KrEnBz@pNpF`ZpLfE~Aht@vYtKlEhVlJdI~CjElBzBz@zOxG~Bt@`DpA|CvAzDxBbDzBjA|@pAfAlAjAnArAlArAjAzAvPhUbClDlJ`MdA~A`FtG|P|UjOnSbB`ChDjEn^`g@nFjHlL~OhB`ClAhBvGvIxC`EtB`Dp[tb@pC~Dz@pA~BbErAxCp@hB~@pCj@nBbArE^pB^hCNjAr@lIbAhMHbAv@tIRhCLhA`@xB\\\\xAt@fCDJn@dBTf@hAzBt@jAv@bArA~An@l@rBfBnFjDZTjBhAbFbDvAx@hKxGjAr@rLlH`C~A~PvKdOhJfLlHtBnA|BzAfCxArCfBrQfLjJ`GxBxApIdF`HlEdFdDlDtBzB|AhAn@`_@nUvEzC~MpItBnAlCdBtD`CfNxIvSlMlJbGzCnBpC`B`BjAtBnAnFlDvCbBnHtExE`DxAv@~EbDtEnC|GhExCnB~MpIvKzGxCpBhBdAtAbAP?zK`HrK`HlM`IhCdBfCxApBrAtSlMdM`IvNzIdC`Bj\\\\tS|@l@lN~ItN|I^VjCbBfNrIlAz@lBnAjNtIrEzCrHvEx@l@nS~L`JzFD@hMdIlC~AhG|D`W|OpRxL~GdEfIlF|IlFvClBdIbFhIdF`ElCdKpGpLhH`HnEhDrBlInF`DnBpm@p_@nInFvFrDbV`O`NpIvRvLdAv@~AtAhAhA~@jAjA`BfAnBjAfCl@`Bj@pBt@lDfIzc@zAdJ~F|[|^vqBnHva@L^DXrAnH`ArF~Fp[bs@f|D~DrOxa@hpAl_@fiAlGnUlDtO`[vhCrE|b@pFxd@hp@x}FHl@h@tDh@tC^fB^vAv@nCl@dBl@xAlBrE|P|[tTnb@`J~PzB~DxA|B~ArBf@p@\" \n }\n */\n $distance = $mqResult->{\"route\"}->{\"distance\"};\n if($distance > 0){\n $newLeg = new TripLeg();\n $newLeg->id =$lastid+10;\n $newLeg->distance = $distance;\n $newLeg->startLatLong = $lastLatLong;\n $newLeg->endLatLong = $newLatLong;\n $newLeg->MQencodedPath = $mqResult->{\"route\"}->{\"shape\"}->{\"shapePoints\"};\n\n //echo json_encode($newLeg);\n\n //Push the leg to the end of the $tripPaths->{$trip}\n array_push($tripPaths->{$trip},$newLeg);\n //var_dump($tripPaths);\n\n if($newTripsRoute = fopen($jsonRouteFilePath,\"w\")){\n fwrite($newTripsRoute, json_encode($tripPaths));\n fclose($newTripsRoute);\n $result = TRUE;\n }else{\n //error using fopen.\n $error_msg = \"Could not open file.\";\n $result = FALSE;\n }\n }else{\n //No distance between provided point and last point. Likely the same point was provided.\n $error_msg = \"No distance travelled\";\n $result = FALSE;\n }\n }else{\n $error_msg = \"No MapQuest result given. Could not add Leg to trip.\";\n $result = FALSE;\n }\n if(!empty($error_msg)){echo $error_msg;}\n return $result;\n}", "public function path(): string\n {\n return str_replace('?', '', \"/{$this->route->uri()}\");\n }", "public static function getPath() {\n\t\tif ($args = func_get_args()) {\n\t\t\t$path = self::_getPath($args);\n\t\t} else {\n\t\t\t$path = '';\n\t\t}\n\t\treturn self::fixSlash($path);\n\t}", "function timetracking_uri(timetracking $timetracking){\n return array(\n 'path' => 'timetracking/' . $timetracking->timetracking_id,\n );\n}", "public function getRelativePath($from, $to)\n {\n $from = explode('/', $from);\n $to = explode('/', $to);\n $relPath = $to;\n\n foreach ($from as $depth => $dir) {\n // find first non-matching dir\n if ($dir === $to[$depth]) {\n // ignore this directory\n array_shift($relPath);\n } else {\n // get number of remaining dirs to $from\n $remaining = count($from) - $depth;\n if ($remaining > 1) {\n // add traversals up to first matching dir\n $padLength = (count($relPath) + $remaining - 1) * -1;\n $relPath = array_pad($relPath, $padLength, '..');\n break;\n } else {\n $relPath[0] = './' . $relPath[0];\n }\n }\n }\n return implode('/', $relPath);\n }", "public function toUrl()\n {\n $postData = $this->toPostdata();\n $out = $this->getNormalizedHttpUrl();\n if ($postData) {\n $out .= '?'.$postPata;\n }\n return $out;\n }", "public function toString() {\n return url::buildPath($this->toArray());\n }", "public function getMytripUrl() {\n $objectManager = \\Magento\\Framework\\App\\ObjectManager::getInstance ()->get ( 'Magento\\Store\\Model\\StoreManagerInterface' )->getStore ();\n return $objectManager->getUrl('booking/mytrip/currenttrip/');\n }", "private function getPath() {\n return '%2F' . urlencode($this->source) . '%2F' . urlencode($this->campaign) .'%2F' . urlencode($this->content);\n }", "function admin_getPathway( $back = 0 )\n{\n\t$pathway = '';\n\n\tglobal $g_admin_pathway;\n\n\t/*\n\t * Default behaviour\n\t * -----------------\n\t * This function is called by a script wich is required from the \"backend\"\n\t * The variable $g_admin_pathway have been initialized in the main admin script : '/admin/index.php'\n\t */\n\tif (isset($g_admin_pathway))\n\t{\n\t\tif ($back < 0) {\n\t\t\t$back *= -1; # $back is strictly >= 0\n\t\t}\n\n\t\t$steps = count($g_admin_pathway);\n\t\tif ($back < $steps)\n\t\t{\n\t\t\t$pathway = '?'.$g_admin_pathway[0]['url'];\n\n\t\t\tfor ($i=1; $i<$steps-$back; $i++) {\n\t\t\t\t$pathway .= '&amp;'.$g_admin_pathway[$i]['url'];\n\t\t\t}\n\t\t}\n\t}\n\t/*\n\t * Special behaviour (to allow the loading of backend scripts in frontend)\n\t * -----------------\n\t * This function is called by a script wich is required from the \"frontend\"\n\t * In frontend the variable $g_admin_pathway should never be initialized !\n\t */\n\telse\n\t{\n\t\tif ($_SERVER['QUERY_STRING']) {\n\t\t\t$pathway = '?'.$_SERVER['QUERY_STRING'];\n\t\t}\n\t}\n\n\treturn $pathway;\n}", "protected function getBackUrl($from)\n {\n $boxes = explode('|', urldecode($from), 2);\n $parts = explode('-', array_shift($boxes), 2);\n if (count($parts) < 2) {\n return '/';\n }\n \n $params = count($boxes) ? array('f' => $boxes[0]) : array();\n switch ($parts[0]) {\n case 's':\n $params['q'] = $parts[1];\n return $this->router->buildRoute('search/', $params)->getUrl();\n case 'w':\n $params['c'] = $parts[1];\n return $this->router->buildRoute('search/wine', $params)->getUrl();\n case 'l':\n $params['id'] = $parts[1];\n return $this->router->buildRoute('lists/contents', $params)->getUrl();\n case 'm':\n $params['c'] = $parts[1];\n return $this->router->buildRoute('search/availability', $params)->getUrl();\n default:\n return '/';\n }\n }", "function getNationalRoute($originCity, $destinyCity)\n {\n }", "public function getRoutingUrl($namespace)\n {\n if (TYPO3_MODE === 'FE') {\n $url = GeneralUtility::locationHeaderUrl('?eID=ExtDirect&action=route&namespace=' . rawurlencode($namespace));\n } else {\n /** @var UriBuilder $uriBuilder */\n $uriBuilder = GeneralUtility::makeInstance(UriBuilder::class);\n $url = (string)$uriBuilder->buildUriFromRoute('ajax_ext_direct_route', ['namespace' => $namespace]);\n }\n return $url;\n }", "function twoParts($part1,$part2){\r\n $partone=str_replace('/','',$part1);\r\n $parttwo=str_replace('/','',$part2);\r\n $wholepart = $partone.'/'.$parttwo; \r\n return\"Path:\".$wholepart;\r\n\r\n }", "public function buildZombiePathToLouderZone()\n {\n // Faudrait définir la Zone la plus bruyante pour initialiser le Path.\n // Pour le moment, on va initialiser avec la 13 qu'on sait être la plus bruyante.\n $MissionZone = $this->getMissionZoneByNum(13);\n $this->LouderNodeZombiePath = new NodeZombiePath($MissionZone);\n $this->buildZombiePath($this->LouderNodeZombiePath, 0);\n }", "function urlTo($path, $echo = false, $locale = '') {\n\t\t\tglobal $site;\n\t\t\tif ( empty($locale) ) {\n\t\t\t\t$locale = $this->getLocale();\n\t\t\t}\n\t\t\t$ret = $site->baseUrl( sprintf('/%s%s', $locale, $path) );\n\t\t\tif ($echo) {\n\t\t\t\techo $ret;\n\t\t\t}\n\t\t\treturn $ret;\n\t\t}", "public function niceUrl()\n {\n return '/' . $this->recipe_id . '/' . $this->url;\n }", "public function getPathTranslated() {\n\t\t\n\t}", "public static function get_path1(){\n return self::PATH1;\n }", "public function routePath(string $value) {\n if (null !== ($generatedPath = $this->routingHelper->getPath($value))) {\n return $generatedPath;\n }\n\n return \"\";\n }", "function getPath($nim){\n\t\t$query = $this->db->query(\"select PATH_FOTO from KKN_MHS where NIM='$nim'\");\n\t\treturn $query;\n\t}", "protected function getRelativePath($from, $to)\n {\n // some compatibility fixes for Windows paths\n $from = is_dir($from) ? rtrim($from, '\\/') . '/' : $from;\n $to = is_dir($to) ? rtrim($to, '\\/') . '/' : $to;\n $from = str_replace('\\\\', '/', $from);\n $to = str_replace('\\\\', '/', $to);\n\n $from = explode('/', $from);\n $to = explode('/', $to);\n $relPath = $to;\n\n foreach ($from as $depth => $dir) {\n // find first non-matching dir\n if (isset($to[$depth]) && $dir === $to[$depth]) {\n // ignore this directory\n array_shift($relPath);\n } else {\n // get number of remaining dirs to $from\n $remaining = count($from) - $depth;\n if ($remaining > 1) {\n // add traversals up to first matching dir\n $padLength = (count($relPath) + $remaining - 1) * -1;\n $relPath = array_pad($relPath, $padLength, '..');\n break;\n }\n }\n }\n return implode('/', $relPath);\n }", "public function to_url() {\n $post_data = $this->to_postdata();\n $out = $this->get_normalized_http_url();\n if ($post_data) {\n $out .= '?'.$post_data;\n }\n return $out;\n }", "public static function url(string $id, array $args = [], int $type = self::ABSOLUTE_PATH): string\n {\n if ($type === self::RELATIVE_PATH) {\n Log::debug('Requested relative path which is not an absolute path... just saying...');\n }\n return self::$router->generate($id, $args, $type);\n }", "private static function getPath(string $method): string\n {\n return \\str_replace(':method', $method, self::PATH);\n }", "private static function getPath() : string {\n return getBasePath() . '/miaus';\n }", "public function createPathInfoUrl($route, $params, $ampersand='&') {\n\t\t$url = parent::createUrl($route, $params, $ampersand);\n\t\t\n\t\t//strip base url\n\t\t$baseUrl = $this->baseUrl;\n\t\tif ( $baseUrl && !$this->hasHostInfo($url) && strpos($url, $baseUrl)===0 ) {\n\t\t\t$url = substr($url, strlen($baseUrl));\n\t\t}\n\t\treturn $url;\n\t}", "public static function generateRelativePath($path = __DIR__, $from = 'modules')\n {\n $path = realpath($path);\n $parts = explode(DIRECTORY_SEPARATOR, $path);\n foreach ($parts as $part) {\n if ($part === $from) {\n return $path;\n }\n $path = mb_substr($path, mb_strlen($part . DIRECTORY_SEPARATOR));\n }\n\n return $path;\n }", "private function getRoute(){\n\t}", "function getPath() {\n $ruta = realpath(dirname(__FILE__));\n if ( strtoupper(substr(PHP_OS, 0, 3)) === 'WIN' )\n $separator = '\\\\';\n else\n $separator = '/';\n $aRuta = explode($separator,$ruta);\n $ruta = '';\n foreach($aRuta as $index => $value)\n if ( $index < count($aRuta) - 1 ) $ruta .= $value.$separator;\n return $ruta;\n}", "function build_href( $p_path ) {\n\tglobal $t_depth;\n\n\t$t_split = explode( DIRECTORY_SEPARATOR, $p_path );\n\t$t_slice = array_slice( $t_split, $t_depth );\n\n\treturn '/' . implode( '/', array_map( 'urlencode', $t_slice ) );\n}", "public function trace($no = false) {\n\t\t$no = $no !== false ? $no : $this->pointer;\n\n\t\tif($no < 0) {\n\t\t\t$no = $no / -1;\t// invert sign\n\t\t\t$no = $this->pointer - $no;\n\t\t}\n\n\t\t$path = '/';\n\t\tforeach($this->segments as $key => $val) {\n\t\t\tif($key >= $no) { break; } else {\n\t\t\t\t$path .= $val.'/';\n\t\t\t}\n\t\t}\n\t\treturn $path;\n\t}", "public function to_url()\n {\n $post_data = $this->to_postdata();\n $out = $this->get_http_url();\n if ($post_data) {\n $out .= '?'.$post_data;\n }\n\n return $out;\n }", "function hook_uuid_menu_uri_to_path(&$path, $uri) {\n\n}", "function url_for($to, $options = array()) {\n return $this->presenter()->url_for($to, $options);\n }", "function build_url($node)\n {\n \t// make sure we have the minimum properties of a node\n \t$node = array_merge($this->node, $node);\n\n \t// default to nada\n \t$url = '';\n\n \t// if we have a url override just use that\n \tif( $node['custom_url'] ) \n \t{\t\n \t\t// @todo - review this decision as people may want relatives\n \t\t// without the site index prepended.\n \t\t// does the custom url start with a '/', if so add site index\n \t\tif(isset($node['custom_url'][0]) && $node['custom_url'][0] == '/')\n \t\t{\n \t\t\t$node['custom_url'] = ee()->functions->fetch_site_index().$node['custom_url'];\n \t\t}\n\n \t\t$url = $node['custom_url'];\n\n \t}\n \t// associated with an entry or template?\n \telseif( $node['entry_id'] || $node['template_path'] ) \n \t{\n\n \t\t// does this have a pages/structure uri\n \t\t$pages_uri = $this->entry_id_to_page_uri( $node['entry_id'] );\n\n \t\tif($pages_uri)\n \t\t{\n \t\t\t$url = $pages_uri;\n \t\t}\n \t\telse\n \t\t{\n\n \t\t\tif($node['template_path'])\n\t \t\t{\n\t \t\t\t$templates = $this->get_templates();\n\t \t\t\t$url .= (isset($templates['by_id'][ $node['template_path'] ])) ? '/'.$templates['by_id'][ $node['template_path'] ] : '';\n\t \t\t}\n\n\t \t\tif($node['entry_id'])\n\t\t\t\t{\n\t\t\t\t\t$url .= '/'.$node['url_title'];\n\t\t\t\t}\n\n\t\t\t\tif($node['entry_id'] || $node['template_path'])\n\t\t\t\t{\n\t\t\t\t\t$url = ee()->functions->fetch_site_index().$url;\n\t\t\t\t}\n \t\t}\n\n \t}\n\n \tif($url && $url != '/')\n \t{\n \t\t// remove double slashes\n \t\t$url = preg_replace(\"#(^|[^:])//+#\", \"\\\\1/\", $url);\n\t\t\t// remove trailing slash\n\t\t\t$url = rtrim($url,\"/\");\n \t}\n\n \treturn $url;\n\n }", "public function generateUrl(){\n if(($this->getGetMethodResult('task') != null) && ($this->getGetMethodResult('action') != null)) {\n $urlFromArray = [];\n\n foreach ($this->getMethodUrlPathArray() as $key => $value) {\n if (is_array($value)) {\n foreach ($value as $argsKey => $argsValue) {\n $urlFromArray[] = $argsKey . '=' . $argsValue;\n }\n } else {\n $urlFromArray[] = $key . '=' . $value;\n }\n }\n return implode('&', $urlFromArray);\n }\n else{\n return null;\n }\n }", "public static function buildPath()\n {\n $path = [];\n\n foreach( func_get_args() as $item )\n {\n if( !empty( $item ) )\n {\n $path[] = trim( $item, \"/ \" );\n }\n }\n return \"/\".implode( \"/\", $path );\n }", "private function _makepath() {\n $params = func_get_args();\n $path = '';\n\n foreach ($params as $value) {\n $path .= $value;\n\n if (!empty($value)) $path .= PS;\n }\n\n return $path;\n }", "public function getPath() {\n if (empty($this->uriParts['path'])) {\n return '';\n }\n return implode('/', array_map(\"rawurlencode\", explode('/', $this->uriParts['path'])));\n }", "function page_path_to_page_link($page)\n{\n require_code('urls2');\n return _page_path_to_page_link($page);\n}", "function buildPath() {\n\t$args = func_get_args();\n\t$path = '';\n\tforeach ($args as $arg) {\n\t\tif (strlen($path)) {\n\t\t\t$path .= \"/$arg\";\n\t\t} else {\n\t\t\t$path = $arg;\n\t\t}\n\t}\n\n\t/* DO NOT USE realpath() -- it hoses everything! */\n\t$path = str_replace('//', '/', $path);\n\t\n\t/* 'escape' the squirrely-ness of Bb's pseudo-windows paths-in-filenames */\n\t$path = preg_replace(\"|(^\\\\\\\\]\\\\\\\\)([^\\\\\\\\])|\", '\\\\1\\\\\\2', $path);\n\t\n\treturn $path;\n}", "public function getPath():string\n {\n $retUrl = self::API_PATH_SPACES;\n if ($this->spaceId != \"\") {\n $retUrl = str_replace(\"{spaceId}\", $this->spaceId, $this->uri);\n }\n $queryParams = $this->queryString();\n if ($queryParams !== \"\") {\n $retUrl = $retUrl . $queryParams;\n }\n return $retUrl;\n }", "public function getChansonUrl($id){\n // return \"Chanson.php/\".$id; \n return $this->rootUrl().\"\".$id; \n }", "function fn_get_url_path($path)\n{\n $dir = dirname($path);\n\n if ($dir == '.' || $dir == '/') {\n return '';\n }\n\n return (defined('WINDOWS')) ? str_replace('\\\\', '/', $dir) : $dir;\n}", "public function get_url()\n\t{\n\t\treturn append_sid($this->phpbb_root_path . 'ucp.' . $this->php_ext, \"i=pm&amp;mode=view&amp;p={$this->item_id}\");\n\t}", "public static function imagePath($image)\n\t{\n\t\tstatic $image_path=null;\n\t\tif (!isset($image_path)) $image_path = self::templateImagePath ();\n\n\t\t$parts = explode('/', $image_path);\n\t\t$image_parts = explode('/', $image);\n\n\t\t// remove common parts\n\t\twhile(isset($parts[0]) && $parts[0] === $image_parts[0])\n\t\t{\n\t\t\tarray_shift($parts);\n\t\t\tarray_shift($image_parts);\n\t\t}\n\t\t// add .. for different parts, except last image part\n\t\t$url = implode('/', array_merge(array_fill(0, count($parts)-1, '..'), $image_parts));\n\n\t\t//error_log(__METHOD__.\"('$image') image_path=$image_path returning $url\");\n\t\treturn $url;\n\t}", "function GetDestination() {\n if (isset($_REQUEST['destination'])) {\n return 'destination=' . urlencode($_REQUEST['destination']);\n } else {\n return 'destination=' . urlencode(str_ireplace(\"/\" . PROJECT_NAME, \"\", $_SERVER[\"REQUEST_URI\"]));\n }\n }", "public static function formUrlPath(array $variables) : string {\n\n\t\tif (self::_hasAdapter(get_class(), __FUNCTION__))\n\t\t\treturn self::_callAdapter(get_class(), __FUNCTION__, $variables);\n\n\t\t$variables = self::_applyFilter(get_class(), __FUNCTION__, $variables, array('event' => 'args'));\n\n\t\t$appendix = '';\n\n\t\t$first = 1;\n\t\tforeach ($variables as $key => $value) {\n\t\t\tif ($first === 1) {\n\t\t\t\t$appendix .= urlencode($value);\n\t\t\t} else {\n\t\t\t\t$appendix .= '/' . urlencode($value);\n\t\t\t}\n\t\t\t$first = 0;\n\t\t}//end foreach\n\n\t\tself::_notify(get_class() . '::' . __FUNCTION__, $appendix, $variables);\n\t\t$appendix = self::_applyFilter(get_class(), __FUNCTION__, $appendix, array('event' => 'return'));\n\n\t\treturn $appendix;\n\n\t}", "function _build_url() {\n\t\t// Add transaction ID for better detecting double requests in AUTH server\n\t\tif($GLOBALS['config']['application']['tid'] == '') $GLOBALS['config']['application']['tid'] = rand(0, 10000);\n\n\t\t$url = $this->url.'&action='.$this->action.'&tid='.$GLOBALS['config']['application']['tid'];\n\t\t\n\t\treturn $url;\n\t}", "function getWhatsNewArticlesPath($locale);", "function _url($path){\n echo getFullUrl($path);\n}", "static function get_rmu_link($path) {\n return RMU::WEBSITE_URL . $path;\n }", "public function fetch_path()\n\t{\n\t\treturn $this->route_stack[self::SEG_PATH];\n\t}", "public function path()\n {\n return $this->user->path() . $this->slug;\n }", "function lanorg_get_tournament_url($event_id, $tournament_id=NULL) {\n\tglobal $wp_rewrite;\n\n\tif ($wp_rewrite->using_permalinks()) {\n\t\t$url = $wp_rewrite->root . 'tournament/' . $event_id . '/';\n\t\tif ($tournament_id !== NULL) {\n\t\t\t$url .= $tournament_id . '/';\n\t\t}\n\t\t$url = home_url(user_trailingslashit($url));\n\t}\n\telse {\n\t\t$vars = array(\n\t\t\t'lanorg_page' => 'tournament',\n\t\t\t'event' => $event_id,\n\t\t);\n\t\tif ($tournament_id !== NULL) {\n\t\t\t$vars['tournament_id'] = $tournament_id;\n\t\t}\n\t\t$url = add_query_arg($vars, home_url( '/'));\n\t}\n\treturn htmlentities($url, NULL, 'UTF-8');\n}", "public function path()\n {\n return $this->connection->protocol()->route($this);\n }", "function getDepartamentalRoute($originCity, $destinyCity)\n {\n }", "protected static function makePath(...$path_components): string { // phpcs:ignore\n return self::gluePartsTogether($path_components, '/');\n }" ]
[ "0.827039", "0.73324925", "0.7306781", "0.7127578", "0.7120952", "0.6827245", "0.6713223", "0.6169454", "0.57783556", "0.5768576", "0.5477448", "0.5447109", "0.5434358", "0.5426796", "0.53442603", "0.5274352", "0.5254341", "0.521777", "0.52060145", "0.5204246", "0.5191419", "0.51807356", "0.5175622", "0.5163686", "0.5149826", "0.51349825", "0.5120276", "0.50932354", "0.5082499", "0.50696564", "0.5065187", "0.50626314", "0.50514346", "0.50393957", "0.5037512", "0.5024194", "0.50227976", "0.50200444", "0.50189453", "0.5006019", "0.4992", "0.49822506", "0.49819827", "0.4969129", "0.49555698", "0.4936985", "0.4919518", "0.49186984", "0.49179623", "0.49133027", "0.49116212", "0.49072185", "0.49055594", "0.49053872", "0.49007818", "0.48982388", "0.48926753", "0.4876991", "0.48679158", "0.48645714", "0.48644882", "0.48546103", "0.48530722", "0.48492604", "0.48453948", "0.48413822", "0.48275822", "0.48174036", "0.4806354", "0.48014706", "0.47883898", "0.4786478", "0.47851068", "0.47804302", "0.47722617", "0.4771929", "0.47602594", "0.4754797", "0.47523797", "0.47519404", "0.47500846", "0.47463614", "0.47381476", "0.4736703", "0.47354954", "0.47316667", "0.47302982", "0.47255158", "0.4722686", "0.47160116", "0.47053513", "0.46975487", "0.46949342", "0.46905485", "0.46867108", "0.46814194", "0.46736136", "0.46655136", "0.46645686", "0.46626315" ]
0.8674704
0
API Function to generate a url path for use by other modules/themes. Example Usage: $path = getdirections_location_n2u_path($fromnid, $touid); $url = l(t('Get directions'), $path);
function getdirections_location_n2u_path($fromnid, $touid) { if (module_exists('location') && is_numeric($fromnid) && is_numeric($touid)) { return "getdirections/location_u2n/$fromnid/$touid"; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getdirections_location_u2n_path($fromuid, $tonid) {\n if (module_exists('location') && is_numeric($fromuid) && is_numeric($tonid)) {\n return \"getdirections/location_u2n/$fromuid/$tonid\";\n }\n}", "function getdirections_locations_user_path($fromuid, $touid) {\n if (module_exists('location') && is_numeric($fromuid) && is_numeric($touid)) {\n return \"getdirections/locations_user/$fromuid/$touid\";\n }\n}", "function getdirections_locations_via_path($nids) {\n if (module_exists('location')) {\n return \"getdirections/locations_via/$nids\";\n }\n}", "function getdirections_locations_path($fromnid, $tonid) {\n if (module_exists('location') && is_numeric($fromnid) && is_numeric($tonid)) {\n return \"getdirections/locations/$fromnid/$tonid\";\n }\n}", "function getdirections_location_user_path($direction, $uid) {\n if (module_exists('location') && is_numeric($uid) && ($direction == 'to' || $direction == 'from')) {\n return \"getdirections/location_user/$direction/$uid\";\n }\n}", "function getdirections_locations_user_via_path($uids) {\n if (module_exists('location')) {\n return \"getdirections/locations_user_via/$uids\";\n }\n}", "function getdirections_location_id_path($direction, $lid) {\n if (module_exists('location') && is_numeric($lid) && ($direction == 'to' || $direction == 'from')) {\n return \"getdirections/location_id/$direction/$lid\";\n }\n}", "function getdirections_location_latlon_path($direction, $latlon, $locs='') {\n if (($direction == 'to' || $direction == 'from') && preg_match(\"/[0-9.\\-],[0-9.\\-]/\", $latlon)) {\n $out = \"getdirections/latlon/$direction/$latlon\";\n if ($locs) {\n $out .= \"/$locs\";\n }\n return $out;\n }\n}", "function GetDirectionURL($type,$origin,$destination){\r\n $url = null;\r\n\r\n if($type == 'findway'){\r\n $url = 'https://www.google.com/maps/dir/?api=1&origin='.trim($origin).'&destination='.trim($destination).'&travelmode=driving';\r\n }else if($type == 'where') {\r\n\r\n $url = 'https://www.google.com/maps/search/?api=1&query=' . $destination;\r\n }\r\n return $url;\r\n}", "function url_for($to) {\n $args = func_get_args();\n\n # find params\n $params = array();\n if (is_array(end($args))) {\n $params = array_pop($args);\n }\n\n # urlencode all but the first argument\n $args = array_map('urlencode', $args);\n $args[0] = $to;\n\n return PluginEngine::getURL($this->dispatcher->plugin, $params, join('/', $args));\n }", "function url_for($to)\n {\n $args = func_get_args();\n\n # find params\n $params = array();\n if (is_array(end($args))) {\n $params = array_pop($args);\n }\n\n # urlencode all but the first argument\n $args = array_map('urlencode', $args);\n $args[0] = $to;\n\n return PluginEngine::getURL($this->dispatcher->plugin, $params, join('/', $args));\n }", "function url_for($to)\n {\n $args = func_get_args();\n\n // find params\n $params = array();\n if (is_array(end($args))) {\n $params = array_pop($args);\n }\n\n // urlencode all but the first argument\n $args = array_map('urlencode', $args);\n $args[0] = $to;\n\n return PluginEngine::getURL($this->dispatcher->plugin, $params, join('/', $args));\n }", "function get_directions( $location ) {\n\treturn directions_base_url . urlencode( str_replace( \"\\n\", ', ', $location->address ) ) // change newlines into comma+space so google maps can process it properly\n\t . '/@' . $location->latitude . ',' . $location->longitude . ',17z/';\n\t// https://www.google.com/maps/dir//6850+Lake+Nona+Blvd,+Orlando,+FL+32827/@28.3676791,-81.2850738,17z/\n}", "public static function get_rel_dir($from_dir, $to_dir) {\n $from_dir_parts = explode('/', str_replace( '\\\\', '/', $from_dir ));\n $to_dir_parts = explode('/', str_replace( '\\\\', '/', $to_dir ));\n $i = 0;\n while (($i < count($from_dir_parts)) && ($i < count($to_dir_parts)) && ($from_dir_parts[$i] == $to_dir_parts[$i])) {\n $i++;\n }\n $rel = \"\";\n for ($j = $i; $j < count($from_dir_parts); $j++) {\n $rel .= \"../\";\n } \n\n for ($j = $i; $j < count($to_dir_parts); $j++) {\n $rel .= $to_dir_parts[$j];\n if ($j < count($to_dir_parts)-1) {\n $rel .= '/';\n }\n }\n return $rel;\n }", "function convert_url_to_path($url)\n{\n require_code('urls2');\n return _convert_url_to_path($url);\n}", "function map_directions_link($location,$latitude,$longitude)\n {\n return \"https://maps.google.com/maps?ll={$latitude},{$longitude}&amp;z=16&amp;t=m&amp;hl=en-US&amp;gl=PT&amp;mapclient=embed&amp;daddr={$location}@{$latitude},{$longitude}\";\n }", "private function getRelativePath($from, $to)\n\t{\n\t\t\t$from = explode('/', $from);\n\t\t\t$to = explode('/', $to);\n\t\t\t$relPath = $to;\n\n\t\t\tforeach($from as $depth => $dir) {\n\t\t\t\t\t// find first non-matching dir\n\t\t\t\t\tif($dir === $to[$depth]) {\n\t\t\t\t\t\t\t// ignore this directory\n\t\t\t\t\t\t\tarray_shift($relPath);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// get number of remaining dirs to $from\n\t\t\t\t\t\t\t$remaining = count($from) - $depth;\n\t\t\t\t\t\t\tif($remaining > 1) {\n\t\t\t\t\t\t\t\t\t// add traversals up to first matching dir\n\t\t\t\t\t\t\t\t\t$padLength = (count($relPath) + $remaining - 1) * -1;\n\t\t\t\t\t\t\t\t\t$relPath = array_pad($relPath, $padLength, '..');\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t$relPath[0] = './' . $relPath[0];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t}\n\t\t\tunset($relPath[count($relPath)-1]);\n\t\t\treturn implode('/', $relPath);\n\t}", "public function url_for($to)\n {\n $args = func_get_args();\n\n # find params\n $params = array();\n if (is_array(end($args))) {\n $params = array_pop($args);\n }\n\n # urlencode all but the first argument\n $args = array_map('urlencode', $args);\n $args[0] = $to;\n\n return PluginEngine::getURL($this->dispatcher->plugin, $params, join('/', $args));\n }", "function build_url($node)\n {\n \t// make sure we have the minimum properties of a node\n \t$node = array_merge($this->node, $node);\n\n \t// default to nada\n \t$url = '';\n\n \t// if we have a url override just use that\n \tif( $node['custom_url'] ) \n \t{\t\n \t\t// @todo - review this decision as people may want relatives\n \t\t// without the site index prepended.\n \t\t// does the custom url start with a '/', if so add site index\n \t\tif(isset($node['custom_url'][0]) && $node['custom_url'][0] == '/')\n \t\t{\n \t\t\t$node['custom_url'] = ee()->functions->fetch_site_index().$node['custom_url'];\n \t\t}\n\n \t\t$url = $node['custom_url'];\n\n \t}\n \t// associated with an entry or template?\n \telseif( $node['entry_id'] || $node['template_path'] ) \n \t{\n\n \t\t// does this have a pages/structure uri\n \t\t$pages_uri = $this->entry_id_to_page_uri( $node['entry_id'] );\n\n \t\tif($pages_uri)\n \t\t{\n \t\t\t$url = $pages_uri;\n \t\t}\n \t\telse\n \t\t{\n\n \t\t\tif($node['template_path'])\n\t \t\t{\n\t \t\t\t$templates = $this->get_templates();\n\t \t\t\t$url .= (isset($templates['by_id'][ $node['template_path'] ])) ? '/'.$templates['by_id'][ $node['template_path'] ] : '';\n\t \t\t}\n\n\t \t\tif($node['entry_id'])\n\t\t\t\t{\n\t\t\t\t\t$url .= '/'.$node['url_title'];\n\t\t\t\t}\n\n\t\t\t\tif($node['entry_id'] || $node['template_path'])\n\t\t\t\t{\n\t\t\t\t\t$url = ee()->functions->fetch_site_index().$url;\n\t\t\t\t}\n \t\t}\n\n \t}\n\n \tif($url && $url != '/')\n \t{\n \t\t// remove double slashes\n \t\t$url = preg_replace(\"#(^|[^:])//+#\", \"\\\\1/\", $url);\n\t\t\t// remove trailing slash\n\t\t\t$url = rtrim($url,\"/\");\n \t}\n\n \treturn $url;\n\n }", "function twoParts($part1,$part2){\r\n $partone=str_replace('/','',$part1);\r\n $parttwo=str_replace('/','',$part2);\r\n $wholepart = $partone.'/'.$parttwo; \r\n return\"Path:\".$wholepart;\r\n\r\n }", "function user_connection_path ($userid, $to_user_id)\r\n{\r\n\tglobal $database;\r\n\tglobal $user;\r\n\tglobal $userconnection_distance;\r\n global $userconnection_previous;\r\n\tglobal $userconnection_setting;\r\n\t$userconnection_output = array();\r\n\t\r\n\t // CACHING\r\n $cache_object = SECache::getInstance('serial');\r\n if (is_object($cache_object) ) {\r\n\t $userconnection_combind_path_contacts_array = $cache_object->get('userconnection_combind_path_contacts_array_cache');\r\n }\r\n\tif (!is_array($userconnection_combind_path_contacts_array)) {\r\n\t\t// longest is the steps ... By changint it you can change steps level \r\n\t\t$longest = $userconnection_setting['level'];\r\n\t\t// IF $longest IS LESS THEN 4 THEN FOR FINDING OUT CONTACTS DEGREE WE ASSIGN '4' TO $longest BECAUSE WE WANT TO SHOW THREE DEGREE CONTACTS \r\n\t\tif ($longest<4) {\r\n\t\t\t$longest = 4;\r\n\t\t}\r\n\t\t// Initialize the distance to all the user entities with the maximum value of distance.\r\n \t// Initialize the previous connecting user entity for every user entity as -1. This means a no known path.\r\n\t\t$id =\t $user->user_info['user_id'];\r\n\t\t$result = $database->database_query (\"SELECT su.user_id FROM se_users su INNER JOIN se_usersettings sus ON sus.usersetting_user_id = su.user_id WHERE (su.user_verified='1' AND su.user_enabled='1' AND su.user_search='1' AND sus.usersetting_userconnection = '0') OR su.user_id = '$id'\");\r\n\t\twhile ($row = $database->database_fetch_assoc($result)) {\r\n\t\t\t\r\n\t\t\t$userconnection_entity = $row['user_id'];\r\n\t\t\t$userconnection_entities_array[] = $userconnection_entity;\r\n \t $userconnection_distance[$userconnection_entity] = $longest;\r\n \t $userconnection_previous[$userconnection_entity] = -1;\r\n\t\t}\r\n \t// The connection distance from the userid to itself is 0\r\n \t$userconnection_distance[$userid] = 0;\r\n \t// $userconnection_temp1_array keeps track of the entities we still need to work on \r\n \t$userconnection_temp1_array = $userconnection_entities_array;\r\n \t\r\n \twhile (count ($userconnection_temp1_array) > 0) { // more elements in $userconnection_temp1_array\r\n \t $userconnection_userentity_id = find_minimum ($userconnection_temp1_array);\r\n \t\tif ($userconnection_userentity_id == $to_user_id) {\r\n \t\t\t$userconnection_previous_array = $userconnection_previous;\r\n \t // Can stop computing the distance if we have reached the to_user_id\r\n \t }\r\n\t\t\t\r\n \t$userconnection_temp2_array = array_search ($userconnection_userentity_id, $userconnection_temp1_array);\r\n \t$userconnection_temp1_array[$userconnection_temp2_array] = false;\r\n \t$userconnection_temp1_array = array_filter ($userconnection_temp1_array); // filters away the false elements\r\n \t// Find all friends linked to $userconnection_temp2_array\r\n \t$invitees = $database->database_query(\"SELECT friend_user_id1 FROM se_friends WHERE friend_user_id2='$userconnection_userentity_id' AND friend_status = '1'\");\r\n \twhile ($row = $database->database_fetch_assoc($invitees)) {\r\n \t\t$link_id = $row['friend_user_id1'];\r\n\t\t\t\tuserconnection_calculate_distance ($userconnection_userentity_id, $link_id);\r\n \t}\r\n \t$inviters = $database->database_query(\"SELECT friend_user_id2 FROM se_friends WHERE friend_user_id1='$userconnection_userentity_id' AND friend_status = '1'\");\r\n \twhile ($row = $database->database_fetch_assoc($inviters)) {\r\n \t\r\n \t\t$link_id = $row['friend_user_id2'];\r\n\t\t\t\tuserconnection_calculate_distance ($userconnection_userentity_id, $link_id);\r\n \t}\r\n \t}\r\n\t\t// The path is found in the $userconnection_previous values from $fromid to $to_user_id\r\n \t$userconnection_temp = 0;\r\n \t// If user visiting his/her profile then $to_user_id is 0 so for terminating this we assign -1 to $to_user_id\r\n \tif (empty($to_user_id)) {\r\n \t\t$to_user_id = -1;\r\n \t}\r\n \t$userconnection_currententity = $to_user_id;\r\n\t\t\r\n \twhile ($userconnection_currententity != $userid && $userconnection_currententity != -1) {\r\n \t$userconnection_links_array[$userconnection_temp++] = $userconnection_currententity;\r\n \t$userconnection_currententity = $userconnection_previous_array[$userconnection_currententity];\r\n \t}\r\n \r\n \tif ($userconnection_currententity != $userid) { \r\n \t\t $empty =array();\r\n \t\t // HERE WE ARE ASSIGING TWO ARRAY ($empty ,$userconnection_distance) TO A NEW ARRAY \r\n \t\t$userconnection_combind_path_contacts_array = array($empty, $userconnection_distance);\r\n \t\treturn $userconnection_combind_path_contacts_array;\r\n \t} \r\n \telse {\r\n \t// Display the connection paths in the reverse order\r\n \t$userconnection_preventity = $userid;\r\n \t$userconnection_output[] = $user->user_info['user_id'];\r\n\t\t\t// Entering the values in ouput array\r\n \tfor ($i = $userconnection_temp - 1; $i >= 0; $i--) {\r\n \t $userconnection_temp1 = $userconnection_links_array[$i];\r\n \t $userconnection_output[] = $userconnection_temp1;\r\n \t $userconnection_preventity = $userconnection_temp1;\r\n \t} \r\n \t}\r\n\t\t// HERE WE ARE COMPARING No. OF ELEMENT IN $USERCONNECTION_OUTPUT AND LEVEL BECAUSE WE ASSINGED $larget TO 4 IN CASE OF LEVEL LESS THEN 4 SO IF ADMIN ASSIGN LEVEL LESS THEN 4 THEN IT WILL ALWAYS RETURN A PATH OF 4 LEVEL AND WE DON'T WANT THIS \r\n \tif (count($userconnection_output) > $userconnection_setting['level']){\r\n \t\t$empty\t= array();\r\n \t\t// HERE WE ARE ASSIGING TWO ARRAY ($empty ,$userconnection_distance) TO A NEW ARRAY \r\n \t\t$userconnection_combind_path_contacts_array = array($empty, $userconnection_distance);\r\n \t}\r\n \telse {\r\n \t// HERE WE ARE ASSIGING TWO ARRAY ($userconnection_output ,$userconnection_distance) TO A NEW ARRAY \t\r\n\t\t $userconnection_combind_path_contacts_array = array($userconnection_output, $userconnection_distance);\r\n \t}\r\n \t// CACHE\r\n if (is_object($cache_object)) {\r\n\t $cache_object->store($userconnection_output, 'userconnection_combind_path_contacts_array_cache');\r\n }\r\n\t}\r\n return $userconnection_combind_path_contacts_array;\r\n}", "function buildPath($entity, $options = array()) {\n return file_create_url($entity->uri);\n }", "private function generateUrl() : string\n {\n return $this->apiUrl.$this->ownerRepo.$this->branchPath.$this->branch;\n }", "public static function getPath() {\n\t\tif ($args = func_get_args()) {\n\t\t\t$path = self::_getPath($args);\n\t\t} else {\n\t\t\t$path = '';\n\t\t}\n\t\treturn self::fixSlash($path);\n\t}", "public function getRoutePath($onlyStaticPart = false);", "function cot_pfs_relpath($userid)\n{\n\tglobal $cfg;\n\n\tif ($cfg['pfs']['pfsuserfolder'])\n\t{\n\t\treturn($userid.'/');\n\t}\n\telse\n\t{\n\t\treturn('');\n\t}\n}", "private function createPath($numeroModel){\n\n\t\t$publicacion = $numeroModel->getPublicacion ();\n\t\t$numeroRevista = $this->generateNumeroRevista($numeroModel);\n\t\t$pathname = $GLOBALS['app_config'][\"url_imagen\"] . $numeroModel->id_publicacion . \"_\" . $publicacion->nombre . \"/numero\" . $numeroRevista;\n\t\treturn $pathname;\n\t}", "function getInternationalRoute($originCity, $destinyCity)\n {\n }", "public function getPath ($pathType, $from, $to)\n\t{\n\t\t/* needs prev. routes saving (by $from)*/\n\t\tif ($pathType === self::SHORT){\n\t\t\t$routes = $this->dijkstraEdges($from);\n\t\t}\n\t\telse if ($pathType === self::CHEAP){\n\t\t\t$routes = $this->dijkstraVertices($from);\n\t\t}\n\t\telse{\n\t\t\tthrow new Exception('No such path type: '.$pathType);\n\t\t}\n\n\t\t$path = array();\n\t\t$tmp = $routes[$to];\n\t\twhile($tmp !== null){\n\t\t\tarray_unshift($path, $tmp);\n\t\t\t$tmp = $routes[$tmp];\n\t\t}\n\t\tarray_shift($path);\n\n\t\treturn $path;\n\t}", "function urlTo($path, $echo = false, $locale = '') {\n\t\t\tglobal $site;\n\t\t\tif ( empty($locale) ) {\n\t\t\t\t$locale = $this->getLocale();\n\t\t\t}\n\t\t\t$ret = $site->baseUrl( sprintf('/%s%s', $locale, $path) );\n\t\t\tif ($echo) {\n\t\t\t\techo $ret;\n\t\t\t}\n\t\t\treturn $ret;\n\t\t}", "private function getRelativePath($from, $to)\n {\n $from = is_dir($from) ? rtrim($from, '\\/') . '/' : $from;\n $to = is_dir($to) ? rtrim($to, '\\/') . '/' : $to;\n $from = str_replace('\\\\', '/', $from);\n $to = str_replace('\\\\', '/', $to);\n\n $from = explode('/', $from);\n $to = explode('/', $to);\n $relPath = $to;\n\n foreach ($from as $depth => $dir)\n {\n // find first non-matching dir\n if ($dir === $to[$depth])\n {\n // ignore this directory\n array_shift($relPath);\n }\n else\n {\n // get number of remaining dirs to $from\n $remaining = count($from) - $depth;\n if ($remaining > 1)\n {\n // add traversals up to first matching dir\n $padLength = (count($relPath) + $remaining - 1) * -1;\n $relPath = array_pad($relPath, $padLength, '..');\n break;\n }\n else\n {\n $relPath[0] = './' . $relPath[0];\n }\n }\n }\n return implode('/', $relPath);\n }", "public function getPathLocation(): string;", "public function generate_url()\n {\n }", "public function path(): string\n {\n // path to your own account\n if ($this->model->isLoggedIn() === true) {\n return 'account';\n }\n\n return 'users/' . $this->model->id();\n }", "function getRelativePath($from, $to)\r\n\t{\r\n\t\t// some compatibility fixes for Windows paths\r\n\t\t$from = is_dir($from) ? rtrim($from, '\\/') . '/' : $from;\r\n\t\t$to = is_dir($to) ? rtrim($to, '\\/') . '/' : $to;\r\n\t\t$from = str_replace('\\\\', '/', $from);\r\n\t\t$to = str_replace('\\\\', '/', $to);\r\n\r\n\t\t$from = explode('/', $from);\r\n\t\t$to = explode('/', $to);\r\n\t\t$relPath = $to;\r\n\r\n\t\tforeach($from as $depth => $dir) {\r\n\t\t\t// find first non-matching dir\r\n\t\t\tif($dir === $to[$depth]) {\r\n\t\t\t\t// ignore this directory\r\n\t\t\t\tarray_shift($relPath);\r\n\t\t\t} else {\r\n\t\t\t\t// get number of remaining dirs to $from\r\n\t\t\t\t$remaining = count($from) - $depth;\r\n\t\t\t\tif($remaining > 1) {\r\n\t\t\t\t\t// add traversals up to first matching dir\r\n\t\t\t\t\t$padLength = (count($relPath) + $remaining - 1) * -1;\r\n\t\t\t\t\t$relPath = array_pad($relPath, $padLength, '..');\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$relPath[0] = './' . $relPath[0];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn implode('/', $relPath);\r\n\t}", "public function getRelativePath($from, $to)\n {\n $from = $this->getPathParts($from);\n $to = $this->getPathParts($to);\n\n $relPath = $to;\n foreach ($from as $depth => $dir) {\n if ($dir === $to[$depth]) {\n array_shift($relPath);\n } else {\n $remaining = count($from) - $depth;\n if ($remaining > 1) {\n $padLength = (count($relPath) + $remaining - 1) * -1;\n $relPath = array_pad($relPath, $padLength, '..');\n break;\n } else {\n $relPath[0] = './' . $relPath[0];\n }\n }\n }\n return implode('/', $relPath);\n }", "private function getPath() {\n return '%2F' . urlencode($this->source) . '%2F' . urlencode($this->campaign) .'%2F' . urlencode($this->content);\n }", "function page_path_to_page_link($page)\n{\n require_code('urls2');\n return _page_path_to_page_link($page);\n}", "public static function generateURL()\n {\n return $_SERVER['REQUEST_SCHEME'].'://'.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];\n }", "public function toString() {\n return url::buildPath($this->toArray());\n }", "private static function get_relative_path($from, $to)\n {\n // some compatibility fixes for Windows paths\n $from = is_dir($from) ? rtrim($from, '\\/') . '/' : $from;\n $to = is_dir($to) ? rtrim($to, '\\/') . '/' : $to;\n $from = str_replace('\\\\', '/', $from);\n $to = str_replace('\\\\', '/', $to);\n\n $from = explode('/', $from);\n $to = explode('/', $to);\n $rel_path = $to;\n\n foreach ($from as $depth => $dir) {\n // find first non-matching dir\n if ($dir === $to[$depth]) {\n // ignore this directory\n array_shift($rel_path);\n } else {\n // get number of remaining dirs to $from\n $remaining = count($from) - $depth;\n if ($remaining > 1) {\n // add traversals up to first matching dir\n $pad_length = (count($rel_path) + $remaining - 1) * -1;\n $rel_path = array_pad($rel_path, $pad_length, '..');\n break;\n } else {\n $rel_path[0] = './' . $rel_path[0];\n }\n }\n }\n return implode('/', $rel_path);\n }", "function build_href( $p_path ) {\n\tglobal $t_depth;\n\n\t$t_split = explode( DIRECTORY_SEPARATOR, $p_path );\n\t$t_slice = array_slice( $t_split, $t_depth );\n\n\treturn '/' . implode( '/', array_map( 'urlencode', $t_slice ) );\n}", "public function path(): string\n {\n return str_replace('?', '', \"/{$this->route->uri()}\");\n }", "function buildPath() {\n\t$args = func_get_args();\n\t$path = '';\n\tforeach ($args as $arg) {\n\t\tif (strlen($path)) {\n\t\t\t$path .= \"/$arg\";\n\t\t} else {\n\t\t\t$path = $arg;\n\t\t}\n\t}\n\n\t/* DO NOT USE realpath() -- it hoses everything! */\n\t$path = str_replace('//', '/', $path);\n\t\n\t/* 'escape' the squirrely-ness of Bb's pseudo-windows paths-in-filenames */\n\t$path = preg_replace(\"|(^\\\\\\\\]\\\\\\\\)([^\\\\\\\\])|\", '\\\\1\\\\\\2', $path);\n\t\n\treturn $path;\n}", "private function _makepath() {\n $params = func_get_args();\n $path = '';\n\n foreach ($params as $value) {\n $path .= $value;\n\n if (!empty($value)) $path .= PS;\n }\n\n return $path;\n }", "public function routePath(string $value) {\n if (null !== ($generatedPath = $this->routingHelper->getPath($value))) {\n return $generatedPath;\n }\n\n return \"\";\n }", "public function getRelativePath($from, $to)\n {\n $from = explode('/', $from);\n $to = explode('/', $to);\n $relPath = $to;\n\n foreach ($from as $depth => $dir) {\n // find first non-matching dir\n if ($dir === $to[$depth]) {\n // ignore this directory\n array_shift($relPath);\n } else {\n // get number of remaining dirs to $from\n $remaining = count($from) - $depth;\n if ($remaining > 1) {\n // add traversals up to first matching dir\n $padLength = (count($relPath) + $remaining - 1) * -1;\n $relPath = array_pad($relPath, $padLength, '..');\n break;\n } else {\n $relPath[0] = './' . $relPath[0];\n }\n }\n }\n return implode('/', $relPath);\n }", "public function getPathTranslated() {\n\t\t\n\t}", "public function niceUrl()\n {\n return '/' . $this->recipe_id . '/' . $this->url;\n }", "protected function _getDirectionsData($from, $to, $key = NULL) {\n\n if (is_null($key))\n $index = 0;\n else\n $index = $key;\n\n $keys_all = array('AIzaSyAp_1Skip1qbBmuou068YulGux7SJQdlaw', 'AIzaSyDczTv9Cu9c0vPkLoZtyJuCYPYRzYcx738', 'AIzaSyBZtOXPwL4hmjyq2JqOsd0qrQ-Vv0JtCO4', 'AIzaSyDXdyLHngG-zGUPj7wBYRKefFwcv2wnk7g', 'AIzaSyCibRhPUiPw5kOZd-nxN4fgEODzPgcBAqg', 'AIzaSyB1Twhseoyz5Z6o5OcPZ-3FqFNxne2SnyQ', 'AIzaSyCgHxcZuDslVJNvWxLs8ge4syxLNbokA6c', 'AIzaSyDH-y04IGsMRfn4z9vBis4O4LVLusWYdMk', 'AIzaSyB1Twhseoyz5Z6o5OcPZ-3FqFNxne2SnyQ', 'AIzaSyBQ4dTEeJlU-neooM6aOz4HlqPKZKfyTOc'); //$this->dirKeys;\n\n $url = 'https://maps.googleapis.com/maps/api/directions/json?origin=' . $from['lat'] . ',' . $from['long'] . '&destination=' . $to['lat'] . ',' . $to['long'] . '&sensor=false&key=' . $keys_all[$index];\n\n $ch = curl_init();\n// Disable SSL verification\n curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);\n// Will return the response, if false it print the response\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n// Set the url\n curl_setopt($ch, CURLOPT_URL, $url);\n// Execute\n $result = curl_exec($ch);\n\n// echo $result->routes;\n// Will dump a beauty json :3\n $arr = json_decode($result, true);\n\n if (!is_array($arr['routes'][0])) {\n\n $index++;\n\n $arr['key_arr'] = array('key' => $keys_all[$index], 'index' => $index, 'all' => $keys_all);\n\n if (count($keys_all) > $index)\n return $this->_getDirectionsData($from, $to, $index);\n else\n return $arr;\n }\n\n $arr['key_arr'] = array('key' => $keys_all[$index], 'index' => $index, 'all' => $keys_all);\n\n return $arr;\n }", "public function createPathInfoUrl($route, $params, $ampersand='&') {\n\t\t$url = parent::createUrl($route, $params, $ampersand);\n\t\t\n\t\t//strip base url\n\t\t$baseUrl = $this->baseUrl;\n\t\tif ( $baseUrl && !$this->hasHostInfo($url) && strpos($url, $baseUrl)===0 ) {\n\t\t\t$url = substr($url, strlen($baseUrl));\n\t\t}\n\t\treturn $url;\n\t}", "public function to_url() {\n $post_data = $this->to_postdata();\n $out = $this->get_normalized_http_url();\n if ($post_data) {\n $out .= '?'.$post_data;\n }\n return $out;\n }", "public static function buildPath()\n {\n $path = [];\n\n foreach( func_get_args() as $item )\n {\n if( !empty( $item ) )\n {\n $path[] = trim( $item, \"/ \" );\n }\n }\n return \"/\".implode( \"/\", $path );\n }", "function admin_getPathway( $back = 0 )\n{\n\t$pathway = '';\n\n\tglobal $g_admin_pathway;\n\n\t/*\n\t * Default behaviour\n\t * -----------------\n\t * This function is called by a script wich is required from the \"backend\"\n\t * The variable $g_admin_pathway have been initialized in the main admin script : '/admin/index.php'\n\t */\n\tif (isset($g_admin_pathway))\n\t{\n\t\tif ($back < 0) {\n\t\t\t$back *= -1; # $back is strictly >= 0\n\t\t}\n\n\t\t$steps = count($g_admin_pathway);\n\t\tif ($back < $steps)\n\t\t{\n\t\t\t$pathway = '?'.$g_admin_pathway[0]['url'];\n\n\t\t\tfor ($i=1; $i<$steps-$back; $i++) {\n\t\t\t\t$pathway .= '&amp;'.$g_admin_pathway[$i]['url'];\n\t\t\t}\n\t\t}\n\t}\n\t/*\n\t * Special behaviour (to allow the loading of backend scripts in frontend)\n\t * -----------------\n\t * This function is called by a script wich is required from the \"frontend\"\n\t * In frontend the variable $g_admin_pathway should never be initialized !\n\t */\n\telse\n\t{\n\t\tif ($_SERVER['QUERY_STRING']) {\n\t\t\t$pathway = '?'.$_SERVER['QUERY_STRING'];\n\t\t}\n\t}\n\n\treturn $pathway;\n}", "function hook_uuid_menu_uri_to_path(&$path, $uri) {\n\n}", "function getNationalRoute($originCity, $destinyCity)\n {\n }", "public function googleDirectionsLink()\n {\n return 'https://maps.google.com/?daddr=' . urlencode($this->full_address);\n }", "public function path();", "public function getRoutingUrl($namespace)\n {\n if (TYPO3_MODE === 'FE') {\n $url = GeneralUtility::locationHeaderUrl('?eID=ExtDirect&action=route&namespace=' . rawurlencode($namespace));\n } else {\n /** @var UriBuilder $uriBuilder */\n $uriBuilder = GeneralUtility::makeInstance(UriBuilder::class);\n $url = (string)$uriBuilder->buildUriFromRoute('ajax_ext_direct_route', ['namespace' => $namespace]);\n }\n return $url;\n }", "function timetracking_uri(timetracking $timetracking){\n return array(\n 'path' => 'timetracking/' . $timetracking->timetracking_id,\n );\n}", "public static function personal_folder_path($user_id) {\n\n\n $user = Backend_User::find($user_id);\n\n $slash = Config::get('portal.back_slash');\n\n\n if($user) {\n\n $route = '';\n\n if ($user->user_type == 0 || $user->user_type == 1) {\n\n //get first and last name \n $details = Backend_User_Details::where('user_id','=',$user->id)->get(array('first_name','last_name'));\n\n\n\n $details = $details[0];\n\n //form route\n $route .= 'users'. $slash .$details->last_name.'-'.$details->first_name.'-'.$user->id;\n\n }//if user or admin \n else {\n\n //get client's details\n $client_details = Backend_Client::infos($user->id);\n\n $client_details = $client_details[0];\n\n\n if($client_details->client_type_id == 1 ) {\n\n $route .= 'clients'. $slash.'individual'.$slash.str_replace(' ', '-', $client_details->last_name).'-'.str_replace(' ', '-',$client_details->first_name).'-'.$user->id;\n \n }//if individual\n else{\n\n $folder = Backend_Client_Type::get_name_by_client_type_id($client_details->client_type_id);\n\n $route .= 'clients'. $slash.strtolower($folder). $slash .str_replace(' ', '-',$client_details->name).'-'.$user->id;\n\n }//if corporate\n\n\n }//if client\n\n return $route;\n\n }//if the user exsists\n\n return false;\n\n }", "public function toUrl()\n {\n $postData = $this->toPostdata();\n $out = $this->getNormalizedHttpUrl();\n if ($postData) {\n $out .= '?'.$postPata;\n }\n return $out;\n }", "function path_join($base, $path)\n {\n }", "function fn_get_url_path($path)\n{\n $dir = dirname($path);\n\n if ($dir == '.' || $dir == '/') {\n return '';\n }\n\n return (defined('WINDOWS')) ? str_replace('\\\\', '/', $dir) : $dir;\n}", "function _url($path){\n echo getFullUrl($path);\n}", "protected function getRelativePath($from, $to)\n {\n // some compatibility fixes for Windows paths\n $from = is_dir($from) ? rtrim($from, '\\/') . '/' : $from;\n $to = is_dir($to) ? rtrim($to, '\\/') . '/' : $to;\n $from = str_replace('\\\\', '/', $from);\n $to = str_replace('\\\\', '/', $to);\n\n $from = explode('/', $from);\n $to = explode('/', $to);\n $relPath = $to;\n\n foreach ($from as $depth => $dir) {\n // find first non-matching dir\n if (isset($to[$depth]) && $dir === $to[$depth]) {\n // ignore this directory\n array_shift($relPath);\n } else {\n // get number of remaining dirs to $from\n $remaining = count($from) - $depth;\n if ($remaining > 1) {\n // add traversals up to first matching dir\n $padLength = (count($relPath) + $remaining - 1) * -1;\n $relPath = array_pad($relPath, $padLength, '..');\n break;\n }\n }\n }\n return implode('/', $relPath);\n }", "function build_path()\n {\n // We build the path only if arguments are passed\n if ( ! empty($args = func_get_args()))\n {\n // Make sure arguments are an array but not a mutidimensional one\n isset($args[0]) && is_array($args[0]) && $args = $args[0];\n\n return implode(DIRECTORY_SEPARATOR, array_map('rtrim', $args, array(DIRECTORY_SEPARATOR))).DIRECTORY_SEPARATOR;\n }\n\n return NULL;\n }", "function get_route($my_location){\n $route_start = $my_location[0];\n $route_end = $my_location[1];\n\n $loc_api_key = AIzaSyBFuL6yafR8BuhdbzupDAcorVH4sAO2YpE;\n //$route_url = \"https://maps.googleapis.com/maps/api/directions/json?origin=\".$route_start.\"&destination=\".$route_end.\"&key=\".$loc_api_key.\"&alternatives=true\"; this is for detours\n $route_url = \"https://maps.googleapis.com/maps/api/directions/json?origin=\".$route_start.\"&destination=\".$route_end.\"&key=\".$loc_api_key;\n\n if (!function_exists('curl_init')){\n die('Can\\'t find cURL module'); \n }\n\n $chRD = curl_init(); //RD = Route Directions\n\n if (!$chRD){\n die('Couldn\\'t initialize a cURL module'); \n }\n\n curl_setopt($chRD, CURLOPT_URL, $route_url);\n curl_setopt($chRD, CURLOPT_RETURNTRANSFER, TRUE);\n \n $dataRD = curl_exec($chRD);\n curl_close($chRD);\n\n $routes = json_decode($dataRD);\n\n return $routes;\n}", "public function to_url()\n {\n $post_data = $this->to_postdata();\n $out = $this->get_http_url();\n if ($post_data) {\n $out .= '?'.$post_data;\n }\n\n return $out;\n }", "function url_to(...$arguments):string\n{\n if (count(locales()) < 2) {\n return call_user_func_array('url', $arguments);\n }\n\n return url_add_locale(call_user_func_array('url', $arguments), locale());\n}", "function url($location) {\n\techo getAbsolutePath() . $location;\n}", "public static function imagePath($image)\n\t{\n\t\tstatic $image_path=null;\n\t\tif (!isset($image_path)) $image_path = self::templateImagePath ();\n\n\t\t$parts = explode('/', $image_path);\n\t\t$image_parts = explode('/', $image);\n\n\t\t// remove common parts\n\t\twhile(isset($parts[0]) && $parts[0] === $image_parts[0])\n\t\t{\n\t\t\tarray_shift($parts);\n\t\t\tarray_shift($image_parts);\n\t\t}\n\t\t// add .. for different parts, except last image part\n\t\t$url = implode('/', array_merge(array_fill(0, count($parts)-1, '..'), $image_parts));\n\n\t\t//error_log(__METHOD__.\"('$image') image_path=$image_path returning $url\");\n\t\treturn $url;\n\t}", "function getPath() {\n $ruta = realpath(dirname(__FILE__));\n if ( strtoupper(substr(PHP_OS, 0, 3)) === 'WIN' )\n $separator = '\\\\';\n else\n $separator = '/';\n $aRuta = explode($separator,$ruta);\n $ruta = '';\n foreach($aRuta as $index => $value)\n if ( $index < count($aRuta) - 1 ) $ruta .= $value.$separator;\n return $ruta;\n}", "protected function routeToURI(){\n\t\t$args = func_get_args();\n\t\treturn call_user_func_array(array('Router', 'routeToURI'), $args);\n\t}", "abstract protected function getPath();", "public static function url(string $id, array $args = [], int $type = self::ABSOLUTE_PATH): string\n {\n if ($type === self::RELATIVE_PATH) {\n Log::debug('Requested relative path which is not an absolute path... just saying...');\n }\n return self::$router->generate($id, $args, $type);\n }", "protected static function makePath(...$path_components): string { // phpcs:ignore\n return self::gluePartsTogether($path_components, '/');\n }", "public function getUserRoutePathLng()\n {\n return $this->userRoutePathLng;\n }", "private static function getPath() : string {\n return getBasePath() . '/miaus';\n }", "public function get_directions();", "function GetDestination() {\n if (isset($_REQUEST['destination'])) {\n return 'destination=' . urlencode($_REQUEST['destination']);\n } else {\n return 'destination=' . urlencode(str_ireplace(\"/\" . PROJECT_NAME, \"\", $_SERVER[\"REQUEST_URI\"]));\n }\n }", "private function _combineUrl()\n {\n $args = func_get_args();\n $url = '';\n foreach ($args as $arg) {\n if (!is_string($arg)) {\n continue;\n }\n if ($arg[strlen($arg) - 1] !== '/') {\n $arg .= '/';\n }\n $url .= $arg;\n }\n\n return $url;\n }", "public function getPath() {\n if (empty($this->uriParts['path'])) {\n return '';\n }\n return implode('/', array_map(\"rawurlencode\", explode('/', $this->uriParts['path'])));\n }", "public function path()\n {\n return $this->user->path() . $this->slug;\n }", "public function getNodeRoute();", "function buildPath($path, $options = array()) {\n return url($path, $options);\n }", "protected abstract function getPath();", "public function generateUrl(){\n if(($this->getGetMethodResult('task') != null) && ($this->getGetMethodResult('action') != null)) {\n $urlFromArray = [];\n\n foreach ($this->getMethodUrlPathArray() as $key => $value) {\n if (is_array($value)) {\n foreach ($value as $argsKey => $argsValue) {\n $urlFromArray[] = $argsKey . '=' . $argsValue;\n }\n } else {\n $urlFromArray[] = $key . '=' . $value;\n }\n }\n return implode('&', $urlFromArray);\n }\n else{\n return null;\n }\n }", "public static function get_path1(){\n return self::PATH1;\n }", "function url_for($to, $options = array()) {\n return $this->presenter()->url_for($to, $options);\n }", "protected function getPathSite() {}", "protected function getPathSite() {}", "public function buildZombiePathToLouderZone()\n {\n // Faudrait définir la Zone la plus bruyante pour initialiser le Path.\n // Pour le moment, on va initialiser avec la 13 qu'on sait être la plus bruyante.\n $MissionZone = $this->getMissionZoneByNum(13);\n $this->LouderNodeZombiePath = new NodeZombiePath($MissionZone);\n $this->buildZombiePath($this->LouderNodeZombiePath, 0);\n }", "private function getRoute(){\n\t}", "function getPath(): string;", "public static function formUrlPath(array $variables) : string {\n\n\t\tif (self::_hasAdapter(get_class(), __FUNCTION__))\n\t\t\treturn self::_callAdapter(get_class(), __FUNCTION__, $variables);\n\n\t\t$variables = self::_applyFilter(get_class(), __FUNCTION__, $variables, array('event' => 'args'));\n\n\t\t$appendix = '';\n\n\t\t$first = 1;\n\t\tforeach ($variables as $key => $value) {\n\t\t\tif ($first === 1) {\n\t\t\t\t$appendix .= urlencode($value);\n\t\t\t} else {\n\t\t\t\t$appendix .= '/' . urlencode($value);\n\t\t\t}\n\t\t\t$first = 0;\n\t\t}//end foreach\n\n\t\tself::_notify(get_class() . '::' . __FUNCTION__, $appendix, $variables);\n\t\t$appendix = self::_applyFilter(get_class(), __FUNCTION__, $appendix, array('event' => 'return'));\n\n\t\treturn $appendix;\n\n\t}", "public function getFullPath();", "public function trace($no = false) {\n\t\t$no = $no !== false ? $no : $this->pointer;\n\n\t\tif($no < 0) {\n\t\t\t$no = $no / -1;\t// invert sign\n\t\t\t$no = $this->pointer - $no;\n\t\t}\n\n\t\t$path = '/';\n\t\tforeach($this->segments as $key => $val) {\n\t\t\tif($key >= $no) { break; } else {\n\t\t\t\t$path .= $val.'/';\n\t\t\t}\n\t\t}\n\t\treturn $path;\n\t}", "public function path(): RoutePathInterface;", "function getDepartamentalRoute($originCity, $destinyCity)\n {\n }" ]
[ "0.8035006", "0.7386157", "0.7182983", "0.6996523", "0.6926344", "0.6739206", "0.6527484", "0.6143385", "0.58234125", "0.5726031", "0.5716199", "0.57079077", "0.5628011", "0.5590719", "0.5566664", "0.5502422", "0.5493402", "0.54780644", "0.5466773", "0.5428348", "0.5419628", "0.5410708", "0.53974867", "0.53973264", "0.53842545", "0.5382482", "0.5365146", "0.53582776", "0.5335985", "0.5332345", "0.5332076", "0.53296465", "0.5302018", "0.5292159", "0.527372", "0.5272103", "0.5244462", "0.52418214", "0.5235255", "0.52217394", "0.52210635", "0.5213928", "0.51834667", "0.5177333", "0.5158776", "0.5141315", "0.5140896", "0.5125114", "0.5121278", "0.5120056", "0.5117933", "0.5116276", "0.5108183", "0.5106424", "0.51017535", "0.5098557", "0.5082854", "0.5080734", "0.50773275", "0.5066308", "0.50615484", "0.50589556", "0.505615", "0.50280035", "0.5025308", "0.5024656", "0.5020274", "0.50168556", "0.50156313", "0.5012512", "0.50103575", "0.5005656", "0.4996466", "0.49835682", "0.49759564", "0.49758303", "0.49547863", "0.49526754", "0.49517223", "0.49444997", "0.49439505", "0.49434838", "0.4942741", "0.4941832", "0.49259964", "0.4925515", "0.49193966", "0.49163342", "0.49159142", "0.4914927", "0.49148008", "0.49148008", "0.49110568", "0.49015436", "0.48910308", "0.4889784", "0.48778", "0.48754078", "0.48706248", "0.48688853" ]
0.85261977
0
API Function to generate a url path for use by other modules/themes. Example Usage: $path = getdirections_location_latlon_path('to', '1.1234,1.234', 'my place'); $url = l(t('Get directions'), $path);
function getdirections_location_latlon_path($direction, $latlon, $locs='') { if (($direction == 'to' || $direction == 'from') && preg_match("/[0-9.\-],[0-9.\-]/", $latlon)) { $out = "getdirections/latlon/$direction/$latlon"; if ($locs) { $out .= "/$locs"; } return $out; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_directions( $location ) {\n\treturn directions_base_url . urlencode( str_replace( \"\\n\", ', ', $location->address ) ) // change newlines into comma+space so google maps can process it properly\n\t . '/@' . $location->latitude . ',' . $location->longitude . ',17z/';\n\t// https://www.google.com/maps/dir//6850+Lake+Nona+Blvd,+Orlando,+FL+32827/@28.3676791,-81.2850738,17z/\n}", "function map_directions_link($location,$latitude,$longitude)\n {\n return \"https://maps.google.com/maps?ll={$latitude},{$longitude}&amp;z=16&amp;t=m&amp;hl=en-US&amp;gl=PT&amp;mapclient=embed&amp;daddr={$location}@{$latitude},{$longitude}\";\n }", "function getdirections_locations_via_path($nids) {\n if (module_exists('location')) {\n return \"getdirections/locations_via/$nids\";\n }\n}", "function getdirections_locations_path($fromnid, $tonid) {\n if (module_exists('location') && is_numeric($fromnid) && is_numeric($tonid)) {\n return \"getdirections/locations/$fromnid/$tonid\";\n }\n}", "function getdirections_location_id_path($direction, $lid) {\n if (module_exists('location') && is_numeric($lid) && ($direction == 'to' || $direction == 'from')) {\n return \"getdirections/location_id/$direction/$lid\";\n }\n}", "function GetDirectionURL($type,$origin,$destination){\r\n $url = null;\r\n\r\n if($type == 'findway'){\r\n $url = 'https://www.google.com/maps/dir/?api=1&origin='.trim($origin).'&destination='.trim($destination).'&travelmode=driving';\r\n }else if($type == 'where') {\r\n\r\n $url = 'https://www.google.com/maps/search/?api=1&query=' . $destination;\r\n }\r\n return $url;\r\n}", "public function getPathLocation(): string;", "function get_route($my_location){\n $route_start = $my_location[0];\n $route_end = $my_location[1];\n\n $loc_api_key = AIzaSyBFuL6yafR8BuhdbzupDAcorVH4sAO2YpE;\n //$route_url = \"https://maps.googleapis.com/maps/api/directions/json?origin=\".$route_start.\"&destination=\".$route_end.\"&key=\".$loc_api_key.\"&alternatives=true\"; this is for detours\n $route_url = \"https://maps.googleapis.com/maps/api/directions/json?origin=\".$route_start.\"&destination=\".$route_end.\"&key=\".$loc_api_key;\n\n if (!function_exists('curl_init')){\n die('Can\\'t find cURL module'); \n }\n\n $chRD = curl_init(); //RD = Route Directions\n\n if (!$chRD){\n die('Couldn\\'t initialize a cURL module'); \n }\n\n curl_setopt($chRD, CURLOPT_URL, $route_url);\n curl_setopt($chRD, CURLOPT_RETURNTRANSFER, TRUE);\n \n $dataRD = curl_exec($chRD);\n curl_close($chRD);\n\n $routes = json_decode($dataRD);\n\n return $routes;\n}", "function getdirections_location_u2n_path($fromuid, $tonid) {\n if (module_exists('location') && is_numeric($fromuid) && is_numeric($tonid)) {\n return \"getdirections/location_u2n/$fromuid/$tonid\";\n }\n}", "function addPointToPath($newLatLong, $trip) {\n $jsonRouteFilePath = \"cricketTraveledPath.json\";\n $error_msg = \"\";\n $result = false;\n \n //read the old $lat and $long from the $jsonTravelFilePath\n $tripPaths = json_decode(file_get_contents($jsonRouteFilePath)); \n $lastLeg = end($tripPaths->{$trip});\n $lastLatLong = $lastLeg->{\"endLatLong\"};\n $lastid = $lastLeg->{\"id\"};\n \n //get a new encoded path from MapQuestAPI\n $mqString = getMQroute($lastLatLong, $newLatLong);\n if($mqString){\n $mqResult = json_decode($mqString);\n \n //create a new Leg php object\n /* looks like this in json format\n { \n \"id\": 40,\n \"startLatLong\": [ lat ,long]\n \"endLatLong\": [31.9494000, -104.6993000],\n \"distance\": 600.433,\n \"MQencodedPath\": \"}yvwEh_prQFwB??NoK??\\\\iELiDBy@???G?y@@sEAa@??G?kA?E???A`@CrG??BbABlGEnCIjCKnBGnBYjF?xBFvB`@~DRpBNpAFt@H`BDrA@d@C`GAdBGbCAtDAfA?jA?dG?jB?~@?T?xC?`CAbE?~D?pK?`H?~C?vA?`@?L?b@?fA?`D?lC?lC?vA?dB?`H@~K?rHA~B@hH?^?zE?|E?`FBzEH~E@jF?`B?lABnW?|A?fI?|A?nD?|A?zB@jT?xA?h@?xEAjC?rB@bFCxCGdBUvCUhBs@~FWpBa@|CS~AkAhI{@lGS~AGx@[fCeBlM{@nGOpAWxBg@zDoA|JSbCS|BUpFGtCC|D@vD?pBBtLBdI?pBDxL@pKBjHBdBLjI@vEDdQCff@?~A]xb@G|P?tPBd]Gx\\\\E~LA~L?xAArTFfFRhF\\\\`Fb@|EpAtHfB|HhAvDzCzJtIbYjFtPdFhPVz@x@fDj@rDf@fFJ|E?hD?nOBfTAzN@|L?V?tI?rCExBMlCGpEDhBArQ?bA?pHAbI@bICzFAfA@lDClC@vH?jI@`@CvC?rCElBG~G?fTAdRBtL?zJ@t\\\\AlQ?pQ?v_@?|B@|C?jB?`HBrRAvc@@xQ@zPAfd@??^?~a@@??DrALn@tApEVhAPjAFpCJtBBre@lC``CB|B?R|@ds@LtOArS_@lSqAhf@mB`v@YlOSdVD~JP|N|Bfx@Rv`@i@dc@_Ap\\\\IjKGpS@pnA@pc@AtCBte@@|d@?zBKfNq@xJMdAmAdJ}ExR{HpX}HhYsHfXqBtHqEdPwCdLqCnNmA|IkAdKsAhQsBbVoClVqD~VkElVqExTuD`PuO`l@qFfTeGxTgGpU{\\\\ppAeBtIcAhHm@lHYrHGhSF~PApV@|_AHb{BJdZd@j\\\\n@pZZpWBzTObR}@p^[hUIx[D`UA|i@QlQy@db@wAhd@cAv`@UpULtU`@hQd@zODjAzA`h@~@p_@\\\\jT?j\\\\F~N@z`ABrJ?vBFd^Dzi@E~L[|Oq@`LsAbMsJpv@mMjbAoI~m@eAxIeEd\\\\yC~Ts@vJUlJPdIp@tIpA~HnBtItCxHx]rs@lXdj@~GfNrC`G|AvDz@~B|@tCnBdIrArHdAxJ^vGNtHEfFOxGk@zIUpBy@`GsBdMiXndBu@jFgAjKc@rG]bHO`HG|NCt|@AtV?hAAv_@C`NEzwA@nGIdgA?fAAzXQtNOdISlIWvHI~GE`I@pFLdL`@|NPhLD~CHhLGv}CQpY]pVCtM?dIXhWPd[Adu@AdSMvrHOvN[zM_@tIo@zKg@|Fu@hIo@zFuAlKgB~KO`A_Hba@{BfN}CxQqAzIe@tDiAtKaA|M]vGc@pMMpJErHBhVBpe@@lA@~p@?~A@xUCbKB~^ApO@zn@G~lCBfgBA~M@lEAnYBtGCdDBb]BfE?|d@CvDBdFC`HDvT@b`@B~DTdERfBh@rDh@`Cz@pCtB`FzAnCxHrMjM|SvDlFtBdCjAlA\\\\TtE|D|CrCzF~E~@r@rBrBpBhCdAbBfBfD~@fCp@vB\\\\nAZbBj@dEPxBJhCHpHBtSA|V@~A?`PDzHN|JDlBl@zKR~C|@jK~@`L^nGH`EB~FK|GGtAUjEqC`[mA|Nw@hNOjEOzIK|z@?dr@EpMMjdC?xAc@t{D?hSGn]DlIJ`HXbINvCf@tGVlC`A`JtAfJnDxSt@rEvGp_@hEbWv@jE|@bHt@fHb@`Gb@vJTbIHzK@fSAfk@Exo@C~CBzNMdsDRpLXjHj@rIV`Cx@hHb@~CnArHRl@l@dCn@rC|@zCt@dCnBdGnCvHpAdD~@rCfAtC`E~KrGdQnArDbF`NhArCxU|o@lDnJzDdLfAbEp@rCj@vC`@dCd@rD\\\\xDRpCVvFDfD@|EItEeAx\\\\QdFMdFGnECrEBdHLxH^rJZxE`@tFvAvMbAbJl@fF^fDdD`ZrBpQjD`[TxB\\\\fD~AbNbBdLhCjLt@|CtBdHxAlEhDvIjDrHHPfD`GrBdDvGfJvFrH|EfHzEbIpC~FhC|F|@~BvD~KzBrIpAvFx@rEHVz@dFhA|In@zHNbCLpARdETtHF|FE~_B?pU?bB?rUCb]?npAE`KAfj@Cv~A@|IClM@rXA~ZBjENjFN`DRjCp@lG~@bGXpAZzA|@tDfD|KbA|ChEhMhXvy@fAtCzEjLhB|DlEfIvCvExEbHxApBnG|HtI~J`HlIpAxAp@n@fDfEhFfGvBfCfAjAhAxA~DtEp@|@vCfD|InKdAhArAbBdF~FdFfGtAxAnHdJlCrDjEpG~@zApDtGf@hAj@`AzCvGrB~Er@hBzCdJxAzEjCvJ|@~DdAlFbBlKjEp]^pEf@rEdBfMb@vDrBhLhAlFbC~JlAtEdEvLxBvFfDvHzBtElU~c@xCbGzPn\\\\vGzMdBfEv@jBfCnHh@jBx@rChBhHrAhG`AdGdAbId@~D`@nE`@dGZhHNnG@tI@vnB@nTAlo@KbHQfDc@lF_@rDc@zCcApFy@jDwBnI{B`Ie@lBuBrI}@dEm@hDeAfHe@`Ey@~IWtFGnBMdJ@nIFdEBx@FdCNhCl@jIZ`DZlCbAnHx@|DR~@jAnFx@|C|EnOfAxDrBdJ|@dGVnBd@|FPhDLjEDh_@NzqBDvgACtILvlBDbEPbFLdB\\\\`ED`@~@~G\\\\fBl@jCh@rBbCnIrArDxAjDpDnG|A~BjA`B|DtEj@p@pMpMj@h@rD~DtHtHpCvCrJxJb@d@~TtUlMtMz@~@jd@ne@jKnKrDxD`DlDzD|DzAbBrBhCdCnDdAbBzBfEdA~B~@|Bz@`C`AvClAxE^dB`AzEXdBl@rFb@xFNpCFfBDnC?|PAlHBdz@CvK@hKAfb@KfJChJIdFEdHu@dWGtDOjDO|EUvKCzAG~ECrECxE@tIFdHL|G\\\\tKh@hSLrDR~LVjTBrG@xIBxGArODv\\\\?rkB?nSAjAB~GC|GDpFn@xI^`CnAxE`AzC`D|HbBxDpFnLtBlErQpa@bBfEbBxDxLdXz@vBrHjPrQva@pFvLbDjGfCjEzSp\\\\tWha@lDvFzEnHnIdMhBdDnEvIpGhNrBzEfCnFtGdOdChFtCzGrClGnHtPdDfHtg@jiAfAdC|CtF|CnFfHvKhB`CpD`Fn@t@dC~BxNzL`OrLdDfCpYpU|PbNfG`EvChBvC`BtIfEbGlCbA^xAl@zCfAjElAxBp@`Dx@`Dr@jI`BpEv@zGtAtH`Bf]fHvFlArPbD~KbClAVdF~@|RhErBd@tQnDdIjBlGjA~PlDlHdBfFbBxD|A`EhBvDlBjAr@vCjB~EvDhGfF`CdClBtBvClDxCdElDtFxCtFlBbE~ArDlCnHXz@x@jCbBfGfBhIf@pCn@vEp@pEv@lINvBVdEJpDJlF@fHGloBEfJO~rDDzI^bRb@xMj@hLjApPj@xGn@rG~@hI~@rHjAdIfAjHzAdIbBhIlCfLxEnR`ChIzCjJrBvFrB|FlCjHbDtHjL|Vz@rBvJvSpCrG~BzExIzRj@pApHnOxApDrHxOvHnPr@hBhAzBnIxQpDdIpB~EtAhDzBhG~BjH~BbI`BtGdBrH|@vEzA~I~@|FjApJr@rH|@~Kb@bI\\\\jIH|FFbHBpEElJF~bAFvPPtQPxKNfGv@tVd@xMJpAdAzTnArTdAzTPrDtB``@~Ah\\\\x@bXh@nWLjJNxX?bZEzZEh[?hC?vSAnBQveD@zKE|UApV?dACbQK|CS|JSzG_@fJgAbR]hDq@dIgArKyPpxA]xDkA|Og@|J]dIOxEQpNErRN`MRhGx@lRbSfrCr@~Jv@bMJjBnAbVBzBl@rQNjGJnMJvpAA`IBrlABf]Aj\\\\FpcC?fxACjJ?|BCjzGEf}@Bjm@EfrBEft@Bxg@CjqBPr}CIpGMdGItBSzCWzC[xC_@vC[xAo@jF}Mr_AoDbWO`BYzEQbFExCAtCBlDRtGhA`QbBtYz@tMPfDr@tKXhFp@jKjBzXz@`Lb@vGV~DzCda@^zFz@fL^hHJ`EDjJ@dYCve@IxOCv[?buAGzTAhfABdMCfFBj^@`JDvb@Ilc@O~EUnBg@rDgBfLUfDiEzjAgAf[E~B?tBD|BPvD\\\\dFXrBh@rC`AdEfCzJvA|GTxATjCN`DB`A@xGC~cAOfh@GpH?tDCvHBvHAxh@F`UHxHJxQ?jQAzX?l^?pZDnf@Ad}@Uxm@EnYJ~j@LbRBtU?jqACva@BdXC`WAd_@Sh^?z]F|LNnHR~Nb@lVDnNE`IAnn@A`r@N|tBFtYDhy@@bE?tGMlM]fSOhHClCEl_@@xICby@GhF[|G[`EoBvYSzCiD|d@s@zKI|E?~F\\\\fJp@dG^zBh@xCf}@bgEnAlH\\\\xCXzCRzCN|CxKdoCnBvf@|A`_@lAj\\\\|Ab^HdD?dDMvFUdDI|@cBtM_DvSa@bEGbAKxCGrD@hw@@nBNtCR~CPbBp@|EbCvOvCpRt@hFd@~Ej@lHJfKA`DIvFItBOvB[tD{@fHoF|ZgA|GY|CSzDC|ADfEFbCj@xF|@rE`@bBnApDr@dBx@`BxB`Dt@bAvDtD|ErEfFnErFhGlA`BlBtC~DnHxAdDjBfFt@pCxF`Qh@`BbFdPb@rAhCbGfA`CjBhDtAzB~DrFxBpCfL~NtNrR`AlAbNxPdB~BxD`GrBjEz@jBhOd^zNv]hLhXvCfJd@lB~AjIf@rDr@zHXdEPnGClJIrCcAbNaBzOeAbK_Fdd@k@`GqBfYqDbf@a@|FYlGKtEA~ADlGP`Fp@zJd@xDNbAp@xDl@xCz@tDx@pCxBtI~Hf[XpAjAlJl@xFZbN@rNGl[[`G_A|Jg@rDwBtLeBnHw@jDoFpW[tBSdBe@nEMzAMlBSlGIpYD`LGfVEtwDH||@Sv{@?dSRxIf@vJRfChChYdCnWPdCL|BF~BB~B?`CA~BI~B{Czr@u@~OGl@EvAWnEo@hOyCvq@O|BSzBaHdp@sJn_AgS`nBqFli@_UrwBe@|Dw@dFSbAkAjFgA~D{AxEwBlFwDtGu@dAkFrHsOnRkAvAeLdOqAnBoBvCeEdHaDhGuHzO}@nBcL`V{AxDiB`Gc@jBc@rBe@rCc@zD]fDE`AQlEChE?xDJvD\\\\hFjA~KXhChFhf@~@~HxGpm@tGnl@XxBv@xHn@fI^|F`@bLF|DJjJCt}ACdr@Alt@Cx{@@lUEdy@Aje@EzPGpB]fHM|EEdEBjGH~Df@vLDvC?ru@A~{A@lVArS?tkBCva@CrmB@p]GhmBErsFOfH_@lGk@xFIf@}@xFw@|DwAjFuJ`\\\\qPdk@cBnFoEnOkDhLqOxh@qEjOuAfFy@pD]dBy@rFc@rDOfBOlBObDG~AGjD@jx@RhcD@ff@C|g@L~eBJvzBAfh@@bh@FpSHlFHp\\\\FfLJv`@~@||CFnb@?nLFjp@\\\\zvCOvm@Q|jA^lHr@|Er@|Cx@jChAnCbDxFry@zmA~DrGxBpF~AjGn@nFVnF@nEGfyCAd\\\\AlB?fNDfDF~BFfAXbDLtBJrB~Dji@xBfZNrB|B|Zp@tJf@fDd@pBh@nBbApCx@pBnAvBxA|B|AjBp^rd@~IvKxA`Cn@lAnAbDnAzEt@|EVrCL`DFnCB~P?fD@f`@AfB@fPOjNI|FAlD@jTApWLjsA@bHBzPA~K@tCCdL?`JD|i@H`g@?jBCj_@Bvr@@`QFfJBbCDnK@dN@bR?dCCfRArDGrBOnCi@lGmA|REhA?vB?zJ?bC?r\\\\?xBP|RBjAn@xS~@jXFbCR~FJrDD~T?dC?`O@pCBvMAdR??i@rD_@~@[h@??iDfEuBvCc@fAETM`AA^@n@H|@Jd@L\\\\\\\\l@jB`C\\\\XZNXH^FX@ZCTE\\\\Kh@YNQT]z@}A^e@TORKn@Q`@CjABpI~@~Fr@tAJrGBdEAnEAfCRNBjAP|Ad@z@ZhB`ArAz@rO~Jz@t@h@f@`@f@x@lAn@pA^`AV~@XlATzAHbAFtC?zO@bE?vNHhCJrAZtBd@vBlArDx@bClBfF|DtK`EhLbFfNr@dB|BpEfCpErBjC~ApB|AbBlBfBzAnAzFzEbNbLtC~B|JhIvBdBvDfDjH|Ff[fW|InHfIrG`CjBhA~@rPhNxAnAtPdNp\\\\vXlO`M`JrHd]~X|BhBbGrEdGdD|EjCdEtBdStKrHbEdBx@jDxAfEzAhBh@hEdAdFbAlGr@fFp@ho@fIhh@tGziBpUpZvD|SlCx@Fr@BlGAbb@BvU@zQ?dVBzp@D|g@?jO?dg@BzLFhC?|H[lOs@pBW~Bc@rBm@jBw@nDqBhB{AhHwGbA}@pLiLf[aZ|[mZzTgTbD{CfT}RbF_FpDgDxG}Fl@e@xEqDvBgBxB_B|MgKjLwIbLyItQmNnC{BzL_JfEeDrB{AlWgSpFcE`W{RdDoCfBgBna@i`@xeAycAlQqPnBgBtByApCiBxEcC~CoApDkAhEgAdCe@vBYpDYhCMlAEr\\\\IzMCvr@?jMB~fA?baCJhc@B|DFfh@FfBB`v@TvhAVbKCfTo@t`@?zJ?~gABl`A?vb@Cj}ABf~A?~_@?bC@dMAz]B`LG`J[hE]dTkBhGa@~LKzNB|GAjSAr[Fz^BzC?t`@Clp@?hQDxC@`IChEMzBQrCYbBYxXaFjjIm{AdlAmTfGqA|C}@r[cLhc@qOjVsIra@uNhnBoq@dHeCdNyEt_Ak\\\\di@aRjAe@nGuCbDsBnDgCxPmNlDmC`BaAfAk@lCkAdBk@~Bo@jDo@tBS`BIrBEzC@x@BrALbD\\\\tM`BxCX|I`AdBLjDJlRDxp@?p}@FvIBrZ?pLDlJDzCPxK~@hDPz`@DpGArh@@lC@nCC`ACjBOxC_@r@M`EgAxAc@hDwAnEoBzVaLvt@e\\\\jr@e[`j@iV`CcAfBk@|C}@rBc@hDi@dC]nCUjBI~CEvJ@jVCvfAFzOElHF|m@BbSEzP@tJAlQDzS?xl@@`NC~K@pR?t]HtG?`\\\\Hjd@Ifq@C~_A?xBBvDGnCKtAIzDa@rASzAYzA]~DeAfBm@~@_@~DeBlDmBv@e@re@_^fe@w]|JwH|m@wd@pi@ka@fKsH|MgKfSgOfAu@|A}@bB}@fBy@bCeAdDkA`HyBlGmBtHiC|L{DjNsE|g@kPzQeGbJqCtNwE`MgEnxB_s@t|@gYbMaEpr@{TdwAwd@lEkAvDg@vc@[zg@g@|ZWrJGtJDtG\\\\lARrE`AlExAdLtGlCxBnDzEfFdG`GbHz^hd@nKzM`F|FpHrJdTvWbClClEpF`L|LpB|BjHjIxFxFlGlHzHtI~RvU`IxJzAdB`BxAnAz@hAn@`An@zAp@fBn@zBn@lCZ`BJjBDbF@bUSbJAlB@pMMpDBpIb@pRr@nDVnI`@dG@hDItDUpKu@nGk@nKu@nKw@l]uAdO]jk@mA``@Sph@Q`LKvAAlO?vH`@|HdBbIlDfAr@jB~A~DdDjOtTvAnBlS|XxE~GbOhTtE|GnAtBhDpGjD`HlKnOrMjRrIrLfUp\\\\jHtKzChFtd@feA~_@l}@fSle@ls@haBhHzP|FrMbJvOzEbH~D|FzJhNxDlEtBxAdAf@`GfBtEn@p@@lIJpa@?vERpCf@bChAvDlBfCnCdAfAtCdDpGnH`EjFrGlHhExC|AfAdHvCvDlAjBZ`F`@pZNbdA?pWD|e@E`nCLbt@@pGBrZAt_@Qj^@hfAFtsBQbZKxU?fLBbKFne@@xU?|]Frk@Fp_ACvtAAx^AtKCxBCxAAdEEnTDbHFnO?xkAGpLKvFe@vHkBzEwBvFuDvDoDhJaL|HmJlOyRfByBl@u@tBgCdBsApDsAhCUxKB~RDdYGfDCpM?xCAnEB|JEnEOfCWtBY|Cq@pA_@bBm@dIiDnBu@tDkAvBe@`B]`Fq@~DYbAE|ACp{AQvz@?t]?v^Ely@Gh`BCtP?vA@fBDbADfAN~Bd@dB`@jCr@bFlB~B`AbNtFlCbAfA^vDbAlCl@fBVzCXvCTbBHfBDjP@~H?zR?xAGhBMvAQlAQfAWjA[zAg@jAe@dEuBrAq@v@a@nBu@jCs@~Bc@nFa@bMAxLAbCHvCPbKlA~BRnFTlA@~BBzDFvF@|JJfDEzCGvAQnBYfASdAW~Ai@zJwBnEeApD}@tLqC|Bi@hDy@t@QzCe@zD_@rAItEKlB?|C@fOG~a@GzB?hSGpYCpSIbB?xBD|BNxBXjCb@dDZlCLvC@j]GbD?z^IpBIjBSf@IvAMvEw@`AKnBIp\\\\MpDA`ME`GIxJCjBBrGCxGIpX]bEC|B@bE^fBR|B^tCz@v@T`Bn@hAh@vC~A~@n@`CjBjFpEv\\\\xXnCvB`DzCnBtAbB~@rAh@zA\\\\vC^t@Dj@@xBAnBQ`MuAnEe@d[iD~AOlCYxCi@rCm@vBk@t@WlG_C??dAU~Am@`A]xBeAzIyEl@YvB}@t@U`AO|AI??l@RNRLXAvADzA??FrB@|@Cv@UzCIrB??u@pHc@rFIlECvB@fE@p`@?zD@\\\\BzJBnbAAl^DvCFdBLdBr@tEd@lBl@jBt@fB|@`B|ElI|JlQvPd[tIjPrWvg@zDdJjD~HtCjHjDxGbE~G~BpDfB~ChA~AbOdVlCbFvHrNhKbRdDzGfBhE`FbMlBxEdDxHrAnCz@~Ab@x@nB~CbBrCdF`IzEtHbJnMrGfKxEdJhEbIbElIzAnDzE~NnBnF~DdIpEhIbFhI??|\\\\dm@fEfIxBtDbHzMvQv]nAfC`DzFpBxDpDdHzJnRtCtFjBzD|BlE~J`Rt\\\\no@jA~B^~@Xj@fPrVjDhF~BrDbDtDxBzB`CpB~CtBfE`CvFvB~RtGrMlEtDjBlDdCrCdCfCtCdCrDxBzD`CxGrAjEt@xBzC~IjAbFz@vG^vE\\\\pQZxZFz@DhAt@tGvBlLjArG^hBj@|Bf@fBpBjFl@lAnYfj@~IzPrEhJbBxChHhNdc@zy@|Ttb@`GlLtKvS~BrExOzYhGpLbGtLbCdEp@rAtAlCdu@fwAdN`X~h@hdAxPv[~Sr`@|g@vaArF~Jh\\\\xn@vIlPjUlc@`BlCbArAt@|@~@`AhAbAjOjLzWfSfOfLvBpAZNXCtCvAlAr@|AfApDrCtDtC`FpDfCjBnCzBlCpCJ`@j@n@nArAnBbBda@xZxc@x\\\\zi@`b@r[`VvDzBdD|A`NtFnHpCfHtC`KbE|X~KzFxBbm@bVvj@xTxd@zQd^tNjH~CnBv@lBb@`EdBfQ`HdFrBbJnDjChA~ZbMvTvIrb@tPzu@nZryAjl@nyAbl@dzAll@vIlDh^tNdp@rWlTvIfS|HbFrBfO`G`LrEdK`ElVtJnW`KvJbEfK~Df|@t]~n@zVrTtItb@|PdA\\\\bBj@|@XnB`@t@LpCT~DHjIJvCFpEBvAA`DGl@Eb@KdGClE@tEB|BCpA@rBOxANhB?bB?tD@V?f@?L?b@?D?X?t@?`C?rBAjA?b@AZ?T@R@ZFFB^J\\\\`@VD~AfAf@P^Fb@BnC?|ECvEAhE?nE?v@Fj@Jz@Xj@ZXTVV`BvBb@D??\\\\p@`BlBbAdAzUbXdBfBrFdGnArB~CnF|CrF`DlFlAlBrAxAnDtGDd@~EfIhC`E|AxBtAxAvAlAfC~AjCxAnAv@`@\\\\|B|BfArAzRfWtCzDpE|Fn@|@fAlBf@bAl@xA`ExK\\\\x@n@rAvAhCxFxHxJfMvEjGvn@by@fVd[jMtPhQbUnLrOrDpEzElGdRnVjG`IxBrChs@x~@dc@|j@v{@~hAvI`LbLjNjA|Aja@rh@~q@~|@hRlV`q@b|@jF`Hp[pa@jb@hj@hQxTtG|HxE~E~AdBXH~ApBV\\\\hDbEV\\\\X\\\\vCtDdKxMxBtCNb@tBvCxG`KlAlBlHjKn{@lhArUrZjaBhvBzOrSdg@ro@jCpDdm@`w@|NhR~AjBjVj[|G`JnHfJj]~c@dP|StHrJt~@dlAbC|CXXnAhAbBhAxBfArAh@T@zAr@zAx@`Ax@Z^l@x@V^j@nAZbA^|APfBFfB?nHBrBFtAHt@RnAVdA\\\\dAj@hAT\\\\fArAZXhAv@rAp@xFdCvBbAjAx@x@t@j@n@~@lAva@bi@fBhC~C|Et@jAbCvDzF`J~EtGxEfGvCrDtCpDjA|AfAvApCrDvEfGz@fAfCbD`LxNnEzFjGbInPdTrIzKnJzLHXhBdCbEtGvBxC`ItJpDjEdRlUfS`Vzy@rbAbNnPfPlRrp@|w@|Yx]rMjOzVvZ`j@dp@fDpC|CpBfEbBrFrApBd@vCPjCJrmAI~OH`[@bm@IhMBrp@CpKGrAApJBxg@GvRGn]Lrc@Kju@A`VEhUDrl@CZAvTL`V@xd@KvF?bSDfBBvbAGn@?jE?`E?fj@Cx`@AfB?xCLpAPpA\\\\`Bh@`GhBfCp@`Ch@t@Pf@CvJpClEtApEvA`EnAPFnDhA`@LnEtAfAZzAXl@FfAHfA@zIChGAdGAhGGpEA??ArF@xHAzD?~CCxACbAKxBCn@e@xFq@vFcAlFiAxFy@~DuEpTcBtHoGt[If@_FtVe@jBg@|D}@bE_A`IKfDEbFFv`AHxb@A~^FjaAStw@?tJHlf@DhjBChkBE~iB?djB@~X?hjCAhN?f`@Hnw@Czr@GjpAFvL?fg@B~HCvPYhLYjOU|IA~EBbyBBrnBBnLIjJ[jK_Ax]oAve@_F||AgBlp@VtXz@fv@v@ru@r@vd@n@xn@JhO?~_ACrp@Fvu@Fp\\\\Bv~AAdc@AlU@fEDd[BvMJ~G`@~SR|I`@dSj@~YRzTNhQJfLRlUHdJRnUH`IJnJDdBJpBH|@ZjCPbAf@`Cx@rCdAlCbAtBfAjBv@dAnAzA`A`A`T~Q~FbFjHrGrJnItFxE|EjEfDrCdA~@f@b@nAfAtN~LjEvDjPrNfB|AVPR?\\\\XpAhAfHjGlC|BzFbF|DhD|BnB`Ax@f@d@Z`@n@~@r@~A`@lANt@ATJ~@H`B?vB@xF?z@D\\\\@xCAvF?rF?xF?vFAxF?vF?vF?vF?tFA`F?RAdA@~K@vFAjF?nF@j^?pCAjBAjEBd\\\\AvH?hN?rU?rT?rF?|Q?f@?zGKl@?pG?pA?dBCjR?LPlAE~nA@bECfc@?nC?fLA|r@?^?V?|D??K\\\\E^A~^E~{@M~xC?rFEti@?jICxb@???p@Cbe@?lb@Era@AnM@hSIna@Xn}EA`KB`vARv}BAdZFxEPdFVzCZdDd@dDz@dFx@xDhA|DzAnEdBbFpEjMhFtO`Kn[nDlKlNda@la@fkAfSpk@`dAtwCzm@jfBdn@dgBlKnZpg@rxA|Wtu@dCjHfDvJtNda@dA~CpJjXb]xaA`_@bfA|]rbAz_@vgAlDnJjD`Kn@vBrIzZbc@t}Ad@dBbb@d{A`C`Jdo@b}Bxj@tqBjn@|zBfMfd@r\\\\nlAfB`HxBrJbiA|xFdc@|xBvN|s@hAbFpBtHdB`Gb@dBjQho@jJz[rHbXnAzElAfEhg@lhBt@dE~@dGf@jETvDRhF^~PdAtb@f@zT`DbtAb@fQfDpwAnAlf@hClfAd@lTvDv~Ar@jZVtFp@pM|HbyAbPt|CvDxr@nAhVlB|]^jHHnCFtDCdDOpGYlFwTzbC_BjRsMjxAcHpv@{OpfBuJffAg@pGQxFC|FFtETjG^vEd@lEt@rEj@tChAtEhArDbAnC|qAx~CxKpWzQdc@t@fBnB`EpBpDhT`\\\\x{BbiDlRjYhF~H|s@~fAdQxWb\\\\rf@pOtUfSnZjF~H`Ynb@lMnRtJbOlEtG~I~M~AdCh[be@fDrFhAjBbC`FjCfHd@xAxBlGtDvKnGfRdBdF`K~YbGbQrDrKlFtOvI`WpCdIlRlj@tGlRtM|_@zIfWlBxFxAdEdA|Cr@xBZfARx@RnARhBDx@FvABrA?`BAlC?j@?\\\\CnG?D?J@fC@`C?bCA|BAdC?rBFR??P?vC@b@@h@?lA@~@?\\\\?~@?jFB`JQ`GMpBK|AQbAOjB]`B_@zAc@fAc@dAc@h@[bAk@P[\\\\Uf@[lAeA~BcChHqIn@k@pA{@vAo@x@WvPuDdYgGjGuAnCk@pAY~Bg@JCVDxEu@dD]tAGjAB`AFx@LNBxAd@xAt@ZRh@XPJP?zCfB~HxEpGvDxJ~FnC~AfAp@lDtBjAp@h@ZxHnE`DlB~D`Cr@b@JFj@\\\\d@VdBdAh@ZdJpF~BvAbB`AhHjEz@f@B@lAt@hAp@xIhFhWlO~@h@HDLJh@ZJFjYzPlBjA`DlBtGxDfL~G`CtAjp@n`@`@TlVzNfAn@HPrBnAdJfGj^jTt@d@fCpAzEtB~s@nYrEhBf_Ad_@~\\\\`Ntn@zVhEbBxB|@dJpDnKpDpBv@bNjFxEnBpVtJlTzIzw@f[nIhDnIfDrd@vQzIpDzYhLfUdJpLzErLrEnOfG|KrEnBz@pNpF`ZpLfE~Aht@vYtKlEhVlJdI~CjElBzBz@zOxG~Bt@`DpA|CvAzDxBbDzBjA|@pAfAlAjAnArAlArAjAzAvPhUbClDlJ`MdA~A`FtG|P|UjOnSbB`ChDjEn^`g@nFjHlL~OhB`ClAhBvGvIxC`EtB`Dp[tb@pC~Dz@pA~BbErAxCp@hB~@pCj@nBbArE^pB^hCNjAr@lIbAhMHbAv@tIRhCLhA`@xB\\\\xAt@fCDJn@dBTf@hAzBt@jAv@bArA~An@l@rBfBnFjDZTjBhAbFbDvAx@hKxGjAr@rLlH`C~A~PvKdOhJfLlHtBnA|BzAfCxArCfBrQfLjJ`GxBxApIdF`HlEdFdDlDtBzB|AhAn@`_@nUvEzC~MpItBnAlCdBtD`CfNxIvSlMlJbGzCnBpC`B`BjAtBnAnFlDvCbBnHtExE`DxAv@~EbDtEnC|GhExCnB~MpIvKzGxCpBhBdAtAbAP?zK`HrK`HlM`IhCdBfCxApBrAtSlMdM`IvNzIdC`Bj\\\\tS|@l@lN~ItN|I^VjCbBfNrIlAz@lBnAjNtIrEzCrHvEx@l@nS~L`JzFD@hMdIlC~AhG|D`W|OpRxL~GdEfIlF|IlFvClBdIbFhIdF`ElCdKpGpLhH`HnEhDrBlInF`DnBpm@p_@nInFvFrDbV`O`NpIvRvLdAv@~AtAhAhA~@jAjA`BfAnBjAfCl@`Bj@pBt@lDfIzc@zAdJ~F|[|^vqBnHva@L^DXrAnH`ArF~Fp[bs@f|D~DrOxa@hpAl_@fiAlGnUlDtO`[vhCrE|b@pFxd@hp@x}FHl@h@tDh@tC^fB^vAv@nCl@dBl@xAlBrE|P|[tTnb@`J~PzB~DxA|B~ArBf@p@\" \n }\n */\n $distance = $mqResult->{\"route\"}->{\"distance\"};\n if($distance > 0){\n $newLeg = new TripLeg();\n $newLeg->id =$lastid+10;\n $newLeg->distance = $distance;\n $newLeg->startLatLong = $lastLatLong;\n $newLeg->endLatLong = $newLatLong;\n $newLeg->MQencodedPath = $mqResult->{\"route\"}->{\"shape\"}->{\"shapePoints\"};\n\n //echo json_encode($newLeg);\n\n //Push the leg to the end of the $tripPaths->{$trip}\n array_push($tripPaths->{$trip},$newLeg);\n //var_dump($tripPaths);\n\n if($newTripsRoute = fopen($jsonRouteFilePath,\"w\")){\n fwrite($newTripsRoute, json_encode($tripPaths));\n fclose($newTripsRoute);\n $result = TRUE;\n }else{\n //error using fopen.\n $error_msg = \"Could not open file.\";\n $result = FALSE;\n }\n }else{\n //No distance between provided point and last point. Likely the same point was provided.\n $error_msg = \"No distance travelled\";\n $result = FALSE;\n }\n }else{\n $error_msg = \"No MapQuest result given. Could not add Leg to trip.\";\n $result = FALSE;\n }\n if(!empty($error_msg)){echo $error_msg;}\n return $result;\n}", "function getdirections_location_user_path($direction, $uid) {\n if (module_exists('location') && is_numeric($uid) && ($direction == 'to' || $direction == 'from')) {\n return \"getdirections/location_user/$direction/$uid\";\n }\n}", "function getdirections_location_n2u_path($fromnid, $touid) {\n if (module_exists('location') && is_numeric($fromnid) && is_numeric($touid)) {\n return \"getdirections/location_u2n/$fromnid/$touid\";\n }\n}", "function getdirections_locations_user_via_path($uids) {\n if (module_exists('location')) {\n return \"getdirections/locations_user_via/$uids\";\n }\n}", "function url($location) {\n\techo getAbsolutePath() . $location;\n}", "public function googleDirectionsLink()\n {\n return 'https://maps.google.com/?daddr=' . urlencode($this->full_address);\n }", "function buildPath($path, $options = array()) {\n return url($path, $options);\n }", "function getdirections_locations_user_path($fromuid, $touid) {\n if (module_exists('location') && is_numeric($fromuid) && is_numeric($touid)) {\n return \"getdirections/locations_user/$fromuid/$touid\";\n }\n}", "function piece_http_request($origin_location, $destination_location){\r\n $bing_secret = file_get_contents(BING_SECRET_FILE);\r\n $request_url = \"http://dev.virtualearth.net/REST/V1/Routes/Driving?\". //Base url\r\n \"wp.0=\".urlencode($origin_location). //Filter address to match url-formatting\r\n \"&wp.1=\".urlencode($destination_location).\r\n \"&routeAttributes=routeSummariesOnly&output=xml\". //Setup XML and only route summaries\r\n \"&key=\".$bing_secret;\r\n return $request_url;\r\n}", "public function get_directions();", "function location($gps){\n\tglobal $api;\n\t$lat = $gps['lat'];\n\t$lon = $gps['lon'];\n\t$endpoint = \"https://us1.locationiq.com/v1/reverse.php?key=$api&lat=$lat&lon=$lon&format=json\";\n\techo \"https://www.google.com/maps/search/?q=$lat,$lon\\n\";\n\treturn file_get_contents($endpoint);\n}", "function getGoogleRoute($point1, $point2){\n //Reference: https://developers.google.com/maps/documentation/roads/snap\n \n $apiKey = getenv(\"GOOGLE_ROADS_API\");\n $pointStr = \"{$point1[0]},{$point1[1]}|{$point2[0]},{$point2[1]}\";\n $url = \"https://roads.googleapis.com/v1/snapToRoads?path={$pointStr}&interpolate=true&key={$apiKey}\";\n \n $result = file_get_contents($url);\n if ($result === FALSE || empty($result)) { \n echo \"Nothing returned from Google Roads API\";\n $result = FALSE;\n }\n //echo $result;\n return $result;\n}", "public static function getPath() {\n\t\tif ($args = func_get_args()) {\n\t\t\t$path = self::_getPath($args);\n\t\t} else {\n\t\t\t$path = '';\n\t\t}\n\t\treturn self::fixSlash($path);\n\t}", "public function genMapsLink()\n {\n $city = str_replace(' ', '+', $this->getCity()->getCityName());\n $street = str_replace(' ', '+', $this->getStreet());\n $hno = str_replace(' ', '+', $this->getHouseNo());\n\n $url = \"https://maps.google.com?q=\" . $city . '+' . $street . '+' . $hno;\n\n return $url;\n }", "public function path(): RoutePathInterface;", "function map_large_link($location,$latitude,$longitude)\n {\n return \"https://maps.google.com/maps?ll={$latitude},{$longitude}&amp;z=16&amp;t=m&amp;hl=en-US&amp;gl=PT&amp;mapclient=embed&amp;\";\n }", "public function getUserRoutePathLat()\n {\n return $this->userRoutePathLat;\n }", "function _url($path){\n echo getFullUrl($path);\n}", "public function getUserRoutePathLng()\n {\n return $this->userRoutePathLng;\n }", "function google_maps_link($lat, $lon){\n return \"<a target=_blank href='https://www.google.com/maps/search/$lat,$lon?hl=es&source=opensearch'>$lat, $lon</a>\";\n }", "public function path();", "public function toString() {\n return url::buildPath($this->toArray());\n }", "private function getURLCustom($path){\n return App::$apiURL . $path . $this->getAPIParam();\n }", "function getdirections_locations_bylatlon($fromlocs, $fromlatlon, $tolocs, $tolatlon, $width='', $height='') {\n return getdirections_locations($fromlocs, $fromlatlon, $tolocs, $tolatlon, $width, $height);\n}", "function getAbsolutePath() ;", "function getLocation();", "public function createPathInfoUrl($route, $params, $ampersand='&') {\n\t\t$url = parent::createUrl($route, $params, $ampersand);\n\t\t\n\t\t//strip base url\n\t\t$baseUrl = $this->baseUrl;\n\t\tif ( $baseUrl && !$this->hasHostInfo($url) && strpos($url, $baseUrl)===0 ) {\n\t\t\t$url = substr($url, strlen($baseUrl));\n\t\t}\n\t\treturn $url;\n\t}", "public function getRoutePath($onlyStaticPart = false);", "function urlTo($path, $echo = false, $locale = '') {\n\t\t\tglobal $site;\n\t\t\tif ( empty($locale) ) {\n\t\t\t\t$locale = $this->getLocale();\n\t\t\t}\n\t\t\t$ret = $site->baseUrl( sprintf('/%s%s', $locale, $path) );\n\t\t\tif ($echo) {\n\t\t\t\techo $ret;\n\t\t\t}\n\t\t\treturn $ret;\n\t\t}", "public function getPathTranslated() {\n\t\t\n\t}", "private function _getWeatherLink () {\n return sprintf(\n 'https://forecast.weather.gov/MapClick.php?textField1=%.4f&textField2=%.4f',\n $this->lat,\n $this->lon\n );\n }", "function url(string $path = '')\n{\n // server protocol\n $protocol = empty($_SERVER['HTTPS']) ? 'http' : 'https';\n\n // domain name\n $domain = $_SERVER['SERVER_NAME'];\n\n // server port\n $port = $_SERVER['SERVER_PORT'];\n $disp_port = ($protocol == 'http' && $port == 80 || $protocol == 'https' && $port == 443) ? '' : \":$port\";\n\n // put em all together to get the complete base URL\n return \"${protocol}://${domain}${disp_port}\" . (!ROOT_URL ? '' : DS . ROOT_URL) . ($path && $path[0] !== '/' ? '/' : '') . ($path ? htmlspecialchars($path) : '');\n}", "function getPath() {\n $ruta = realpath(dirname(__FILE__));\n if ( strtoupper(substr(PHP_OS, 0, 3)) === 'WIN' )\n $separator = '\\\\';\n else\n $separator = '/';\n $aRuta = explode($separator,$ruta);\n $ruta = '';\n foreach($aRuta as $index => $value)\n if ( $index < count($aRuta) - 1 ) $ruta .= $value.$separator;\n return $ruta;\n}", "public function getLocalPath();", "function getPath(): string;", "function generateFullPathWithGoogle() {\n include_once('../common/common_functions.php');\n $jsonRouteFilePath = \"cricketTraveledPath.json\";\n $error_msg = \"\";\n $result = false;\n $travelObj = new Travel();\n $tdh_db = \"CLEARDB_URL_TDH_SCRIPTS\";\n \n //Get the points from the database sorted by tripname, then date\n try{\n if($db = connect_db($tdh_db)){\n $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n $db->setAttribute(PDO::ATTR_EMULATE_PREPARES, false);\n \n $query_sel = $db->query(\"SELECT * from gps_readings order by `tripname`, `time` ASC\");\n $previousLatLong = [];\n $previousTripName = \"\";\n $tripLeg_id = 0;\n if($query_sel->rowCount() > 0){\n foreach ($query_sel as $row){\n $currentLatLong = [ $row['lat'], $row['long'] ];\n $time = $row['time'];\n if(!empty($previousLatLong)){\n //get the mapquest info\n $mqString = getMQroute($previousLatLong, $currentLatLong);\n if($mqString){\n $mqResult = json_decode($mqString);\n if( $row['tripname'] !== $previousTripName){\n $newTrip = new Trip();\n $newTrip->name = ($row['tripname']);\n $travelObj->add_trip($newTrip);\n $previousTripName = $row['tripname'];\n }\n //Get the latest trip object from the travelObj\n $currentTrip = end($travelObj->trips);\n\n //If the points not the same make a new leg\n $distance = $mqResult->{\"route\"}->{\"distance\"};\n if($distance > 0){\n $tripLeg_id += 10;\n $newLeg = new TripLeg();\n $newLeg->id = $tripLeg_id;\n $newLeg->distance = $distance;\n $newLeg->startLatLong = $previousLatLong;\n $newLeg->endLatLong = $currentLatLong;\n $newLeg->startTime = $time;\n $newLeg->MQencodedPath = $mqResult->{\"route\"}->{\"shape\"}->{\"shapePoints\"};\n\n //add the leg to the current trip\n $currentTrip->add_leg($newLeg);\n }\n }else{ \n //Map Quest result not returned\n $error_msg = \"Map Quest result not returned\";\n $result = false;\n \n }\n }\n $previousLatLong = $currentLatLong;\n }\n //If none of the leg creations failed,\n //Turn the object into a json string and update the file.\n if($result){\n if($newTripsRoute = fopen($jsonRouteFilePath,\"w\")){\n fwrite($newTripsRoute, json_encode($travelObj));\n fclose($newTripsRoute);\n $result = true;\n }else{\n //error using fopen.\n $error_msg = \"Could not open file.\";\n $result = false;\n }\n }\n }\n }else{ //handle error\n $error_msg = \"Could not connect to database\";\n $result = false;\n }\n }catch(PDOException $ex) {\n $error_msg = \"CODE 120: Could not connect to mySQL DB<br />\"; //user friendly message\n $error_msg .= $ex->getMessage();\n $result = false; \n }\n echo $result ? \"Success! New file created.\" : $error_msg;\n return $result;\n}", "private function _makepath() {\n $params = func_get_args();\n $path = '';\n\n foreach ($params as $value) {\n $path .= $value;\n\n if (!empty($value)) $path .= PS;\n }\n\n return $path;\n }", "public function getPath(string ...$arguments) : string\n {\n if ($arguments) {\n return $this->router->fillPlaceholders($this->path, ...$arguments);\n }\n return $this->path;\n }", "public function getPath():string\n {\n $retUrl = self::API_PATH_SPACES;\n if ($this->spaceId != \"\") {\n $retUrl = str_replace(\"{spaceId}\", $this->spaceId, $this->uri);\n }\n $queryParams = $this->queryString();\n if ($queryParams !== \"\") {\n $retUrl = $retUrl . $queryParams;\n }\n return $retUrl;\n }", "function path_PMS() {\n global $nome_cartella;\n $path = $nome_cartella;\n if(!empty($path)) $path = $nome_cartella .\"/\";\n return \"http://\" . $_SERVER['SERVER_NAME'] . \"/\".$path;\n}", "function generateFullPath() {\n include_once('../common/common_functions.php');\n $jsonRouteFilePath = \"cricketTraveledPath.json\";\n $error_msg = \"\";\n $result = true;\n $travelObj = new Travel();\n $tdh_db = \"CLEARDB_URL_TDH_SCRIPTS\";\n \n //Get the points from the database sorted by tripname, then date\n try{\n if($db = connect_db($tdh_db)){\n $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n $db->setAttribute(PDO::ATTR_EMULATE_PREPARES, false);\n \n $query_sel = $db->query(\"SELECT * from gps_readings order by `tripname`, `time` ASC\");\n $previousLatLong = [];\n $previousTripName = \"\";\n $tripLeg_id = 0;\n if($query_sel->rowCount() > 0){\n foreach ($query_sel as $row){\n $currentLatLong = [ $row['lat'], $row['long'] ];\n $time = $row['time'];\n if(!empty($previousLatLong)){\n //get the mapquest info\n// echo \"getting directions with \"\n// .implode(\",\",$currentLatLong)\n// .\" and \"\n// .implode(\",\",$previousLatLong)\n// .\" <br />\";\n $mqString = getMQroute($previousLatLong, $currentLatLong);\n if($mqString){\n //echo \"Got mq result <br />\";\n $mqResult = json_decode($mqString);\n if( $row['tripname'] !== $previousTripName){\n $newTrip = new Trip();\n $newTrip->name = ($row['tripname']);\n $travelObj->add_trip($newTrip);\n $previousTripName = $row['tripname'];\n }\n //Get the latest trip object from the travelObj\n $currentTrip = end($travelObj->trips);\n\n //If the points not the same make a new leg\n $distance = $mqResult->{\"route\"}->{\"distance\"};\n if($distance > 0){\n $tripLeg_id += 10;\n $newLeg = new TripLeg();\n $newLeg->id = $tripLeg_id;\n $newLeg->distance = $distance;\n $newLeg->startLatLong = $previousLatLong;\n $newLeg->endLatLong = $currentLatLong;\n $newLeg->startTime = $time;\n $newLeg->MQencodedPath = $mqResult->{\"route\"}->{\"shape\"}->{\"shapePoints\"};\n\n //add the leg to the current trip\n $currentTrip->add_leg($newLeg);\n }\n }else{ \n //Map Quest result not returned\n $error_msg = \"Map Quest result not returned\";\n $result = false;\n }\n }\n $previousLatLong = $currentLatLong;\n }\n //If none of the leg creations failed,\n //Turn the object into a json string and update the file.\n if($result){\n if($newTripsRoute = fopen($jsonRouteFilePath,\"w\")){\n fwrite($newTripsRoute, json_encode($travelObj));\n fclose($newTripsRoute);\n $result = true;\n }else{\n //error using fopen.\n $error_msg = \"Could not open file.\";\n $result = false;\n }\n }else{\n $error_msg.=\"Failed to create all legs of trip from MQ api. <br />\";\n }\n }\n }else{ //handle error\n $error_msg = \"Could not connect to database\";\n $result = false;\n }\n }catch(PDOException $ex) {\n $error_msg = \"CODE 120: Could not connect to mySQL DB<br />\"; //user friendly message\n $error_msg .= $ex->getMessage();\n $result = false; \n }\n echo $result ? \"Success! New file created.\" : $error_msg;\n return $result;\n}", "function fn_get_url_path($path)\n{\n $dir = dirname($path);\n\n if ($dir == '.' || $dir == '/') {\n return '';\n }\n\n return (defined('WINDOWS')) ? str_replace('\\\\', '/', $dir) : $dir;\n}", "private static function getPath() : string {\n return getBasePath() . '/miaus';\n }", "private function getPath() {\n return '%2F' . urlencode($this->source) . '%2F' . urlencode($this->campaign) .'%2F' . urlencode($this->content);\n }", "public function getLocation();", "public function getLocation();", "public function getPath();", "public function getPath();", "public function getPath();", "public function getPath();", "public function getPath();", "public function getPath();", "public function getPath();", "public function getPath();", "public function getPath();", "public function getPath();", "public function getPath();", "public function getPath();", "public function getPath();", "public function getPath();", "function build_path()\n {\n // We build the path only if arguments are passed\n if ( ! empty($args = func_get_args()))\n {\n // Make sure arguments are an array but not a mutidimensional one\n isset($args[0]) && is_array($args[0]) && $args = $args[0];\n\n return implode(DIRECTORY_SEPARATOR, array_map('rtrim', $args, array(DIRECTORY_SEPARATOR))).DIRECTORY_SEPARATOR;\n }\n\n return NULL;\n }", "public static function buildPath()\n {\n $path = [];\n\n foreach( func_get_args() as $item )\n {\n if( !empty( $item ) )\n {\n $path[] = trim( $item, \"/ \" );\n }\n }\n return \"/\".implode( \"/\", $path );\n }", "public static function getPath()\n {\n }", "function getpath() {\n\t\n\t$parseurl = parse_url(\"http://\".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']);\n\t$path = explode('/', $parseurl['path']); \n\n\treturn $path;\n}", "function buildPath() {\n\t$args = func_get_args();\n\t$path = '';\n\tforeach ($args as $arg) {\n\t\tif (strlen($path)) {\n\t\t\t$path .= \"/$arg\";\n\t\t} else {\n\t\t\t$path = $arg;\n\t\t}\n\t}\n\n\t/* DO NOT USE realpath() -- it hoses everything! */\n\t$path = str_replace('//', '/', $path);\n\t\n\t/* 'escape' the squirrely-ness of Bb's pseudo-windows paths-in-filenames */\n\t$path = preg_replace(\"|(^\\\\\\\\]\\\\\\\\)([^\\\\\\\\])|\", '\\\\1\\\\\\2', $path);\n\t\n\treturn $path;\n}", "public function path(): string\n {\n return str_replace('?', '', \"/{$this->route->uri()}\");\n }", "public function getPathInfo(): string\r\n {\r\n return $_GET['url'] ?? '/';\r\n }", "private static function getPath($path) {\n if ($path == 'image') $addr = self::IMAGE_PATH;\n elseif ($path == 'album') $addr = self::ALBUM_PATH;\n elseif ($path == 'rates') $addr = self::RATES_PATH;\n else {\n Print 'Path was not recognized.';\n Die;\n }\n\n Return self::API_PATH . $addr;\n }", "public function routePath(string $value) {\n if (null !== ($generatedPath = $this->routingHelper->getPath($value))) {\n return $generatedPath;\n }\n\n return \"\";\n }", "function getFullUrl($path){\n $base = get_application_path();\n $parts = parse_url($base.$path);\n return build_url($parts);\n}", "public function getRoute();", "public function getPath(string $url): string;", "function getURL(string $location, array $param = []){\n $base_url = getBaseURL();\n $path = !empty($param) || $location !== \"index\" ? \"{$location}.php\" : \"\";\n if(!empty($param)){\n $query_params = http_build_query($param);\n $path .= \"?{$query_params}\";\n // var_dump($query_params);\n // exit();\n }\n return \"{$base_url}/{$path}\";\n}", "public function path() {}", "private function getRoute(){\n\t}", "public function path() {}", "function url($path){\n global $app;\n return $app->request->getRootUri() . '/' . trim($path,'/');\n}", "function getDepartamentalRoute($originCity, $destinyCity)\n {\n }", "public function webPath();", "public function toString(): string\n\t{\n\t\t$url = $this->base();\n\t\t$slash = true;\n\n\t\tif (empty($url) === true) {\n\t\t\t$url = '/';\n\t\t\t$slash = false;\n\t\t}\n\n\t\t$path = $this->path->toString($slash) . $this->params->toString(true);\n\n\t\tif ($this->slash && $slash === true) {\n\t\t\t$path .= '/';\n\t\t}\n\n\t\t$url .= $path;\n\t\t$url .= $this->query->toString(true);\n\n\t\tif (empty($this->fragment) === false) {\n\t\t\t$url .= '#' . $this->fragment;\n\t\t}\n\n\t\treturn $url;\n\t}", "function url($path = \"\", $params = array()) {\n return $GLOBALS['k_current_context']->url($path, $params);\n}", "public function getUrl(string $path): string;", "public function getPath() : string;", "function getInternationalRoute($originCity, $destinyCity)\n {\n }", "public function getPath() {\n if (empty($this->uriParts['path'])) {\n return '';\n }\n return implode('/', array_map(\"rawurlencode\", explode('/', $this->uriParts['path'])));\n }", "public function getPathEncoded();", "public function getAbsolutePath();", "public function getUrl()\n {\n return trim(implode('/', $this->path), '/').$this->getParams();\n }", "function getMQroute($point1, $point2){\n \n $apiKey = getenv(\"MQ_API\");\n //echo \"API key: \".$apiKey;\n $url = \"http://open.mapquestapi.com/directions/v2/route?key=$apiKey\";\n //$data = array('key1' => 'value1', 'key2' => 'value2');\n\n //For json format see https://developer.mapquest.com/documentation/open/directions-api/route/post/\n $jsonData = \n \"{\n 'locations' : [\n {'latLng': {\n 'lat': $point1[0],\n 'lng': $point1[1]\n }},\n {'latLng': {\n 'lat': $point2[0],\n 'lng': $point2[1]\n }}\n ],\n 'options' : {\n 'narrativeType' : 'none',\n 'shapeFormat' : 'cmp',\n 'generalize' : 0,\n 'timeType' : 1,\n 'highwayEfficiency' : 16.0\n }\n }\";\n \n $options = array(\n 'http' => array(\n 'header' => \"Content-Type: application/json\",\n 'method' => 'POST',\n 'content' => $jsonData\n )\n );\n $context = stream_context_create($options);\n //temp time limit\n set_time_limit(60);\n $result = file_get_contents($url, false, $context);\n if ($result === FALSE || empty($result)) { \n //echo \"Nothing returned from map quest\";\n $result = FALSE;\n }\n //echo $result;\n return $result;\n}", "function build_href( $p_path ) {\n\tglobal $t_depth;\n\n\t$t_split = explode( DIRECTORY_SEPARATOR, $p_path );\n\t$t_slice = array_slice( $t_split, $t_depth );\n\n\treturn '/' . implode( '/', array_map( 'urlencode', $t_slice ) );\n}", "public function getPath() {}" ]
[ "0.72381365", "0.6965551", "0.6951273", "0.66551095", "0.6584612", "0.6357827", "0.63563216", "0.6332807", "0.63172734", "0.60717595", "0.59265697", "0.59203523", "0.5918222", "0.5891961", "0.58176684", "0.5808852", "0.5773072", "0.56945354", "0.56778425", "0.5596748", "0.5594774", "0.55928606", "0.5581797", "0.55329627", "0.5532453", "0.5511146", "0.5462583", "0.5454316", "0.54535145", "0.5431384", "0.5406654", "0.5401221", "0.53846025", "0.536913", "0.5364394", "0.5364242", "0.53626394", "0.53419685", "0.53356063", "0.5330321", "0.5316905", "0.53140086", "0.52940255", "0.5264388", "0.52517146", "0.52489114", "0.523623", "0.52272606", "0.52194333", "0.52177536", "0.52150595", "0.5209215", "0.519866", "0.5192574", "0.5192574", "0.5186629", "0.5186629", "0.5186629", "0.5186629", "0.5186629", "0.5186629", "0.5186629", "0.5186629", "0.5186629", "0.5186629", "0.5186629", "0.5186629", "0.5186629", "0.5186629", "0.5177656", "0.5163747", "0.51617616", "0.5160216", "0.5146113", "0.51327884", "0.51326144", "0.5121748", "0.5114996", "0.5110432", "0.51048297", "0.509835", "0.5096091", "0.50909585", "0.5090769", "0.508977", "0.50867885", "0.5075974", "0.50714767", "0.5069356", "0.5066551", "0.50652254", "0.50648284", "0.5064826", "0.50628525", "0.5062024", "0.50604784", "0.50603014", "0.5053942", "0.5053557", "0.5046798" ]
0.774524
0
API Function to generate a url path for use by other modules/themes. Example Usage: $path = getdirections_location_id_path('to', $lid); $url = l(t('Get directions'), $path);
function getdirections_location_id_path($direction, $lid) { if (module_exists('location') && is_numeric($lid) && ($direction == 'to' || $direction == 'from')) { return "getdirections/location_id/$direction/$lid"; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getdirections_locations_path($fromnid, $tonid) {\n if (module_exists('location') && is_numeric($fromnid) && is_numeric($tonid)) {\n return \"getdirections/locations/$fromnid/$tonid\";\n }\n}", "function getdirections_location_u2n_path($fromuid, $tonid) {\n if (module_exists('location') && is_numeric($fromuid) && is_numeric($tonid)) {\n return \"getdirections/location_u2n/$fromuid/$tonid\";\n }\n}", "function getdirections_locations_via_path($nids) {\n if (module_exists('location')) {\n return \"getdirections/locations_via/$nids\";\n }\n}", "function getdirections_location_latlon_path($direction, $latlon, $locs='') {\n if (($direction == 'to' || $direction == 'from') && preg_match(\"/[0-9.\\-],[0-9.\\-]/\", $latlon)) {\n $out = \"getdirections/latlon/$direction/$latlon\";\n if ($locs) {\n $out .= \"/$locs\";\n }\n return $out;\n }\n}", "function get_directions( $location ) {\n\treturn directions_base_url . urlencode( str_replace( \"\\n\", ', ', $location->address ) ) // change newlines into comma+space so google maps can process it properly\n\t . '/@' . $location->latitude . ',' . $location->longitude . ',17z/';\n\t// https://www.google.com/maps/dir//6850+Lake+Nona+Blvd,+Orlando,+FL+32827/@28.3676791,-81.2850738,17z/\n}", "public static function getPath($id);", "function getdirections_locations_user_via_path($uids) {\n if (module_exists('location')) {\n return \"getdirections/locations_user_via/$uids\";\n }\n}", "public function getPath($id);", "function map_directions_link($location,$latitude,$longitude)\n {\n return \"https://maps.google.com/maps?ll={$latitude},{$longitude}&amp;z=16&amp;t=m&amp;hl=en-US&amp;gl=PT&amp;mapclient=embed&amp;daddr={$location}@{$latitude},{$longitude}\";\n }", "function getdirections_location_user_path($direction, $uid) {\n if (module_exists('location') && is_numeric($uid) && ($direction == 'to' || $direction == 'from')) {\n return \"getdirections/location_user/$direction/$uid\";\n }\n}", "function getdirections_location_n2u_path($fromnid, $touid) {\n if (module_exists('location') && is_numeric($fromnid) && is_numeric($touid)) {\n return \"getdirections/location_u2n/$fromnid/$touid\";\n }\n}", "public static function getPath($id) {\n\t\treturn self::$defaultInstance->getPath($id);\n\t}", "public function getPathLocation(): string;", "protected function _GetPath($category_id, $language)\n\t{\n if($category_id === null)\n return '/';\n \n\t\treturn $this->categories->PathFor($category_id, $language);\n\t}", "function getdirections_locations_user_path($fromuid, $touid) {\n if (module_exists('location') && is_numeric($fromuid) && is_numeric($touid)) {\n return \"getdirections/locations_user/$fromuid/$touid\";\n }\n}", "function getPath($id = \"0\", $urlPrefix = '') {\n if($id == \"\") { $id = \"0\"; }\n $treeRecord = $this->getTreeRecord($id);\n\n if($treeRecord != null) {\n if($treeRecord->belongs_to == \"0\") {\n return \"<li class=\\\"breadcrumb-item\\\"><a href=\\\"\" . $urlPrefix . \"index.php?id=\".$treeRecord->id.\"\\\">\".$treeRecord->title.\"</a></li>\";\n } else {\n $path = $this->getPath($treeRecord->belongs_to, $urlPrefix);\n return $path . \"<li class=\\\"breadcrumb-item\\\"><a href=\\\"\" . $urlPrefix . \"index.php?id=\".$treeRecord->id.\"\\\">\" . $treeRecord->title.\"</a></li>\";\n }\n } else {\n return \"/ \";\n }\n }", "function GetDirectionURL($type,$origin,$destination){\r\n $url = null;\r\n\r\n if($type == 'findway'){\r\n $url = 'https://www.google.com/maps/dir/?api=1&origin='.trim($origin).'&destination='.trim($destination).'&travelmode=driving';\r\n }else if($type == 'where') {\r\n\r\n $url = 'https://www.google.com/maps/search/?api=1&query=' . $destination;\r\n }\r\n return $url;\r\n}", "public function getPath($modifierId = false) {\n return URL . $this->getFolder() . $this->getFilename();\n }", "public static function getPath($id)\n\t{\n\t\t$sql = \"SELECT c.*, p.level, p.order \"\n\t\t\t. \"FROM \" . self::$PathTable . \" p \"\n\t\t\t. \"JOIN \" . self::$ClientTable . \" c ON c.`id`=p.`parent` \"\n\t\t\t. \"WHERE p.`id`={$id} ORDER BY p.`order`\";\n\t\treturn self::query($sql);\n\t}", "public function googleDirectionsLink()\n {\n return 'https://maps.google.com/?daddr=' . urlencode($this->full_address);\n }", "public static function getPath() {\n\t\tif ($args = func_get_args()) {\n\t\t\t$path = self::_getPath($args);\n\t\t} else {\n\t\t\t$path = '';\n\t\t}\n\t\treturn self::fixSlash($path);\n\t}", "public function routePath(string $value) {\n if (null !== ($generatedPath = $this->routingHelper->getPath($value))) {\n return $generatedPath;\n }\n\n return \"\";\n }", "function LangPathById($language_id) {\n\tglobal $dbconn;\n\n\t$lang_path = \"\";\n\t$strSQL = \"SELECT lang_path FROM \".LANGUAGE_TABLE.\" WHERE id='$language_id'\";\n\t$rs = $dbconn->Execute($strSQL);\n\tif ($rs->RowCount() > 0) {\n\t\t$lang_path = $rs->fields[0];\n\t}\n\treturn $lang_path;\n}", "public function path(): RoutePathInterface;", "private function getFullWHPath($id)\r\n {\r\n \t$warehouse = Factory::service(\"Warehouse\")->getWarehouse($id);\r\n \tif($warehouse instanceof Warehouse ){\r\n \t\treturn Factory::service(\"Warehouse\")->getWarehouseBreadCrumbs($warehouse,TRUE,\"/\");\r\n \t}else{\r\n \t\treturn $id;\r\n \t}\r\n }", "public function getRoutePath($onlyStaticPart = false);", "public function path(/* array */ $id): string {\n $torrentId = $id[0];\n $logId = $id[1];\n $key = strrev(sprintf('%04d', $torrentId));\n return sprintf('%s/%02d/%02d', self::STORAGE, substr($key, 0, 2), substr($key, 2, 2))\n . '/' . $torrentId . '_' . $logId . '.html';\n }", "function addPointToPath($newLatLong, $trip) {\n $jsonRouteFilePath = \"cricketTraveledPath.json\";\n $error_msg = \"\";\n $result = false;\n \n //read the old $lat and $long from the $jsonTravelFilePath\n $tripPaths = json_decode(file_get_contents($jsonRouteFilePath)); \n $lastLeg = end($tripPaths->{$trip});\n $lastLatLong = $lastLeg->{\"endLatLong\"};\n $lastid = $lastLeg->{\"id\"};\n \n //get a new encoded path from MapQuestAPI\n $mqString = getMQroute($lastLatLong, $newLatLong);\n if($mqString){\n $mqResult = json_decode($mqString);\n \n //create a new Leg php object\n /* looks like this in json format\n { \n \"id\": 40,\n \"startLatLong\": [ lat ,long]\n \"endLatLong\": [31.9494000, -104.6993000],\n \"distance\": 600.433,\n \"MQencodedPath\": \"}yvwEh_prQFwB??NoK??\\\\iELiDBy@???G?y@@sEAa@??G?kA?E???A`@CrG??BbABlGEnCIjCKnBGnBYjF?xBFvB`@~DRpBNpAFt@H`BDrA@d@C`GAdBGbCAtDAfA?jA?dG?jB?~@?T?xC?`CAbE?~D?pK?`H?~C?vA?`@?L?b@?fA?`D?lC?lC?vA?dB?`H@~K?rHA~B@hH?^?zE?|E?`FBzEH~E@jF?`B?lABnW?|A?fI?|A?nD?|A?zB@jT?xA?h@?xEAjC?rB@bFCxCGdBUvCUhBs@~FWpBa@|CS~AkAhI{@lGS~AGx@[fCeBlM{@nGOpAWxBg@zDoA|JSbCS|BUpFGtCC|D@vD?pBBtLBdI?pBDxL@pKBjHBdBLjI@vEDdQCff@?~A]xb@G|P?tPBd]Gx\\\\E~LA~L?xAArTFfFRhF\\\\`Fb@|EpAtHfB|HhAvDzCzJtIbYjFtPdFhPVz@x@fDj@rDf@fFJ|E?hD?nOBfTAzN@|L?V?tI?rCExBMlCGpEDhBArQ?bA?pHAbI@bICzFAfA@lDClC@vH?jI@`@CvC?rCElBG~G?fTAdRBtL?zJ@t\\\\AlQ?pQ?v_@?|B@|C?jB?`HBrRAvc@@xQ@zPAfd@??^?~a@@??DrALn@tApEVhAPjAFpCJtBBre@lC``CB|B?R|@ds@LtOArS_@lSqAhf@mB`v@YlOSdVD~JP|N|Bfx@Rv`@i@dc@_Ap\\\\IjKGpS@pnA@pc@AtCBte@@|d@?zBKfNq@xJMdAmAdJ}ExR{HpX}HhYsHfXqBtHqEdPwCdLqCnNmA|IkAdKsAhQsBbVoClVqD~VkElVqExTuD`PuO`l@qFfTeGxTgGpU{\\\\ppAeBtIcAhHm@lHYrHGhSF~PApV@|_AHb{BJdZd@j\\\\n@pZZpWBzTObR}@p^[hUIx[D`UA|i@QlQy@db@wAhd@cAv`@UpULtU`@hQd@zODjAzA`h@~@p_@\\\\jT?j\\\\F~N@z`ABrJ?vBFd^Dzi@E~L[|Oq@`LsAbMsJpv@mMjbAoI~m@eAxIeEd\\\\yC~Ts@vJUlJPdIp@tIpA~HnBtItCxHx]rs@lXdj@~GfNrC`G|AvDz@~B|@tCnBdIrArHdAxJ^vGNtHEfFOxGk@zIUpBy@`GsBdMiXndBu@jFgAjKc@rG]bHO`HG|NCt|@AtV?hAAv_@C`NEzwA@nGIdgA?fAAzXQtNOdISlIWvHI~GE`I@pFLdL`@|NPhLD~CHhLGv}CQpY]pVCtM?dIXhWPd[Adu@AdSMvrHOvN[zM_@tIo@zKg@|Fu@hIo@zFuAlKgB~KO`A_Hba@{BfN}CxQqAzIe@tDiAtKaA|M]vGc@pMMpJErHBhVBpe@@lA@~p@?~A@xUCbKB~^ApO@zn@G~lCBfgBA~M@lEAnYBtGCdDBb]BfE?|d@CvDBdFC`HDvT@b`@B~DTdERfBh@rDh@`Cz@pCtB`FzAnCxHrMjM|SvDlFtBdCjAlA\\\\TtE|D|CrCzF~E~@r@rBrBpBhCdAbBfBfD~@fCp@vB\\\\nAZbBj@dEPxBJhCHpHBtSA|V@~A?`PDzHN|JDlBl@zKR~C|@jK~@`L^nGH`EB~FK|GGtAUjEqC`[mA|Nw@hNOjEOzIK|z@?dr@EpMMjdC?xAc@t{D?hSGn]DlIJ`HXbINvCf@tGVlC`A`JtAfJnDxSt@rEvGp_@hEbWv@jE|@bHt@fHb@`Gb@vJTbIHzK@fSAfk@Exo@C~CBzNMdsDRpLXjHj@rIV`Cx@hHb@~CnArHRl@l@dCn@rC|@zCt@dCnBdGnCvHpAdD~@rCfAtC`E~KrGdQnArDbF`NhArCxU|o@lDnJzDdLfAbEp@rCj@vC`@dCd@rD\\\\xDRpCVvFDfD@|EItEeAx\\\\QdFMdFGnECrEBdHLxH^rJZxE`@tFvAvMbAbJl@fF^fDdD`ZrBpQjD`[TxB\\\\fD~AbNbBdLhCjLt@|CtBdHxAlEhDvIjDrHHPfD`GrBdDvGfJvFrH|EfHzEbIpC~FhC|F|@~BvD~KzBrIpAvFx@rEHVz@dFhA|In@zHNbCLpARdETtHF|FE~_B?pU?bB?rUCb]?npAE`KAfj@Cv~A@|IClM@rXA~ZBjENjFN`DRjCp@lG~@bGXpAZzA|@tDfD|KbA|ChEhMhXvy@fAtCzEjLhB|DlEfIvCvExEbHxApBnG|HtI~J`HlIpAxAp@n@fDfEhFfGvBfCfAjAhAxA~DtEp@|@vCfD|InKdAhArAbBdF~FdFfGtAxAnHdJlCrDjEpG~@zApDtGf@hAj@`AzCvGrB~Er@hBzCdJxAzEjCvJ|@~DdAlFbBlKjEp]^pEf@rEdBfMb@vDrBhLhAlFbC~JlAtEdEvLxBvFfDvHzBtElU~c@xCbGzPn\\\\vGzMdBfEv@jBfCnHh@jBx@rChBhHrAhG`AdGdAbId@~D`@nE`@dGZhHNnG@tI@vnB@nTAlo@KbHQfDc@lF_@rDc@zCcApFy@jDwBnI{B`Ie@lBuBrI}@dEm@hDeAfHe@`Ey@~IWtFGnBMdJ@nIFdEBx@FdCNhCl@jIZ`DZlCbAnHx@|DR~@jAnFx@|C|EnOfAxDrBdJ|@dGVnBd@|FPhDLjEDh_@NzqBDvgACtILvlBDbEPbFLdB\\\\`ED`@~@~G\\\\fBl@jCh@rBbCnIrArDxAjDpDnG|A~BjA`B|DtEj@p@pMpMj@h@rD~DtHtHpCvCrJxJb@d@~TtUlMtMz@~@jd@ne@jKnKrDxD`DlDzD|DzAbBrBhCdCnDdAbBzBfEdA~B~@|Bz@`C`AvClAxE^dB`AzEXdBl@rFb@xFNpCFfBDnC?|PAlHBdz@CvK@hKAfb@KfJChJIdFEdHu@dWGtDOjDO|EUvKCzAG~ECrECxE@tIFdHL|G\\\\tKh@hSLrDR~LVjTBrG@xIBxGArODv\\\\?rkB?nSAjAB~GC|GDpFn@xI^`CnAxE`AzC`D|HbBxDpFnLtBlErQpa@bBfEbBxDxLdXz@vBrHjPrQva@pFvLbDjGfCjEzSp\\\\tWha@lDvFzEnHnIdMhBdDnEvIpGhNrBzEfCnFtGdOdChFtCzGrClGnHtPdDfHtg@jiAfAdC|CtF|CnFfHvKhB`CpD`Fn@t@dC~BxNzL`OrLdDfCpYpU|PbNfG`EvChBvC`BtIfEbGlCbA^xAl@zCfAjElAxBp@`Dx@`Dr@jI`BpEv@zGtAtH`Bf]fHvFlArPbD~KbClAVdF~@|RhErBd@tQnDdIjBlGjA~PlDlHdBfFbBxD|A`EhBvDlBjAr@vCjB~EvDhGfF`CdClBtBvClDxCdElDtFxCtFlBbE~ArDlCnHXz@x@jCbBfGfBhIf@pCn@vEp@pEv@lINvBVdEJpDJlF@fHGloBEfJO~rDDzI^bRb@xMj@hLjApPj@xGn@rG~@hI~@rHjAdIfAjHzAdIbBhIlCfLxEnR`ChIzCjJrBvFrB|FlCjHbDtHjL|Vz@rBvJvSpCrG~BzExIzRj@pApHnOxApDrHxOvHnPr@hBhAzBnIxQpDdIpB~EtAhDzBhG~BjH~BbI`BtGdBrH|@vEzA~I~@|FjApJr@rH|@~Kb@bI\\\\jIH|FFbHBpEElJF~bAFvPPtQPxKNfGv@tVd@xMJpAdAzTnArTdAzTPrDtB``@~Ah\\\\x@bXh@nWLjJNxX?bZEzZEh[?hC?vSAnBQveD@zKE|UApV?dACbQK|CS|JSzG_@fJgAbR]hDq@dIgArKyPpxA]xDkA|Og@|J]dIOxEQpNErRN`MRhGx@lRbSfrCr@~Jv@bMJjBnAbVBzBl@rQNjGJnMJvpAA`IBrlABf]Aj\\\\FpcC?fxACjJ?|BCjzGEf}@Bjm@EfrBEft@Bxg@CjqBPr}CIpGMdGItBSzCWzC[xC_@vC[xAo@jF}Mr_AoDbWO`BYzEQbFExCAtCBlDRtGhA`QbBtYz@tMPfDr@tKXhFp@jKjBzXz@`Lb@vGV~DzCda@^zFz@fL^hHJ`EDjJ@dYCve@IxOCv[?buAGzTAhfABdMCfFBj^@`JDvb@Ilc@O~EUnBg@rDgBfLUfDiEzjAgAf[E~B?tBD|BPvD\\\\dFXrBh@rC`AdEfCzJvA|GTxATjCN`DB`A@xGC~cAOfh@GpH?tDCvHBvHAxh@F`UHxHJxQ?jQAzX?l^?pZDnf@Ad}@Uxm@EnYJ~j@LbRBtU?jqACva@BdXC`WAd_@Sh^?z]F|LNnHR~Nb@lVDnNE`IAnn@A`r@N|tBFtYDhy@@bE?tGMlM]fSOhHClCEl_@@xICby@GhF[|G[`EoBvYSzCiD|d@s@zKI|E?~F\\\\fJp@dG^zBh@xCf}@bgEnAlH\\\\xCXzCRzCN|CxKdoCnBvf@|A`_@lAj\\\\|Ab^HdD?dDMvFUdDI|@cBtM_DvSa@bEGbAKxCGrD@hw@@nBNtCR~CPbBp@|EbCvOvCpRt@hFd@~Ej@lHJfKA`DIvFItBOvB[tD{@fHoF|ZgA|GY|CSzDC|ADfEFbCj@xF|@rE`@bBnApDr@dBx@`BxB`Dt@bAvDtD|ErEfFnErFhGlA`BlBtC~DnHxAdDjBfFt@pCxF`Qh@`BbFdPb@rAhCbGfA`CjBhDtAzB~DrFxBpCfL~NtNrR`AlAbNxPdB~BxD`GrBjEz@jBhOd^zNv]hLhXvCfJd@lB~AjIf@rDr@zHXdEPnGClJIrCcAbNaBzOeAbK_Fdd@k@`GqBfYqDbf@a@|FYlGKtEA~ADlGP`Fp@zJd@xDNbAp@xDl@xCz@tDx@pCxBtI~Hf[XpAjAlJl@xFZbN@rNGl[[`G_A|Jg@rDwBtLeBnHw@jDoFpW[tBSdBe@nEMzAMlBSlGIpYD`LGfVEtwDH||@Sv{@?dSRxIf@vJRfChChYdCnWPdCL|BF~BB~B?`CA~BI~B{Czr@u@~OGl@EvAWnEo@hOyCvq@O|BSzBaHdp@sJn_AgS`nBqFli@_UrwBe@|Dw@dFSbAkAjFgA~D{AxEwBlFwDtGu@dAkFrHsOnRkAvAeLdOqAnBoBvCeEdHaDhGuHzO}@nBcL`V{AxDiB`Gc@jBc@rBe@rCc@zD]fDE`AQlEChE?xDJvD\\\\hFjA~KXhChFhf@~@~HxGpm@tGnl@XxBv@xHn@fI^|F`@bLF|DJjJCt}ACdr@Alt@Cx{@@lUEdy@Aje@EzPGpB]fHM|EEdEBjGH~Df@vLDvC?ru@A~{A@lVArS?tkBCva@CrmB@p]GhmBErsFOfH_@lGk@xFIf@}@xFw@|DwAjFuJ`\\\\qPdk@cBnFoEnOkDhLqOxh@qEjOuAfFy@pD]dBy@rFc@rDOfBOlBObDG~AGjD@jx@RhcD@ff@C|g@L~eBJvzBAfh@@bh@FpSHlFHp\\\\FfLJv`@~@||CFnb@?nLFjp@\\\\zvCOvm@Q|jA^lHr@|Er@|Cx@jChAnCbDxFry@zmA~DrGxBpF~AjGn@nFVnF@nEGfyCAd\\\\AlB?fNDfDF~BFfAXbDLtBJrB~Dji@xBfZNrB|B|Zp@tJf@fDd@pBh@nBbApCx@pBnAvBxA|B|AjBp^rd@~IvKxA`Cn@lAnAbDnAzEt@|EVrCL`DFnCB~P?fD@f`@AfB@fPOjNI|FAlD@jTApWLjsA@bHBzPA~K@tCCdL?`JD|i@H`g@?jBCj_@Bvr@@`QFfJBbCDnK@dN@bR?dCCfRArDGrBOnCi@lGmA|REhA?vB?zJ?bC?r\\\\?xBP|RBjAn@xS~@jXFbCR~FJrDD~T?dC?`O@pCBvMAdR??i@rD_@~@[h@??iDfEuBvCc@fAETM`AA^@n@H|@Jd@L\\\\\\\\l@jB`C\\\\XZNXH^FX@ZCTE\\\\Kh@YNQT]z@}A^e@TORKn@Q`@CjABpI~@~Fr@tAJrGBdEAnEAfCRNBjAP|Ad@z@ZhB`ArAz@rO~Jz@t@h@f@`@f@x@lAn@pA^`AV~@XlATzAHbAFtC?zO@bE?vNHhCJrAZtBd@vBlArDx@bClBfF|DtK`EhLbFfNr@dB|BpEfCpErBjC~ApB|AbBlBfBzAnAzFzEbNbLtC~B|JhIvBdBvDfDjH|Ff[fW|InHfIrG`CjBhA~@rPhNxAnAtPdNp\\\\vXlO`M`JrHd]~X|BhBbGrEdGdD|EjCdEtBdStKrHbEdBx@jDxAfEzAhBh@hEdAdFbAlGr@fFp@ho@fIhh@tGziBpUpZvD|SlCx@Fr@BlGAbb@BvU@zQ?dVBzp@D|g@?jO?dg@BzLFhC?|H[lOs@pBW~Bc@rBm@jBw@nDqBhB{AhHwGbA}@pLiLf[aZ|[mZzTgTbD{CfT}RbF_FpDgDxG}Fl@e@xEqDvBgBxB_B|MgKjLwIbLyItQmNnC{BzL_JfEeDrB{AlWgSpFcE`W{RdDoCfBgBna@i`@xeAycAlQqPnBgBtByApCiBxEcC~CoApDkAhEgAdCe@vBYpDYhCMlAEr\\\\IzMCvr@?jMB~fA?baCJhc@B|DFfh@FfBB`v@TvhAVbKCfTo@t`@?zJ?~gABl`A?vb@Cj}ABf~A?~_@?bC@dMAz]B`LG`J[hE]dTkBhGa@~LKzNB|GAjSAr[Fz^BzC?t`@Clp@?hQDxC@`IChEMzBQrCYbBYxXaFjjIm{AdlAmTfGqA|C}@r[cLhc@qOjVsIra@uNhnBoq@dHeCdNyEt_Ak\\\\di@aRjAe@nGuCbDsBnDgCxPmNlDmC`BaAfAk@lCkAdBk@~Bo@jDo@tBS`BIrBEzC@x@BrALbD\\\\tM`BxCX|I`AdBLjDJlRDxp@?p}@FvIBrZ?pLDlJDzCPxK~@hDPz`@DpGArh@@lC@nCC`ACjBOxC_@r@M`EgAxAc@hDwAnEoBzVaLvt@e\\\\jr@e[`j@iV`CcAfBk@|C}@rBc@hDi@dC]nCUjBI~CEvJ@jVCvfAFzOElHF|m@BbSEzP@tJAlQDzS?xl@@`NC~K@pR?t]HtG?`\\\\Hjd@Ifq@C~_A?xBBvDGnCKtAIzDa@rASzAYzA]~DeAfBm@~@_@~DeBlDmBv@e@re@_^fe@w]|JwH|m@wd@pi@ka@fKsH|MgKfSgOfAu@|A}@bB}@fBy@bCeAdDkA`HyBlGmBtHiC|L{DjNsE|g@kPzQeGbJqCtNwE`MgEnxB_s@t|@gYbMaEpr@{TdwAwd@lEkAvDg@vc@[zg@g@|ZWrJGtJDtG\\\\lARrE`AlExAdLtGlCxBnDzEfFdG`GbHz^hd@nKzM`F|FpHrJdTvWbClClEpF`L|LpB|BjHjIxFxFlGlHzHtI~RvU`IxJzAdB`BxAnAz@hAn@`An@zAp@fBn@zBn@lCZ`BJjBDbF@bUSbJAlB@pMMpDBpIb@pRr@nDVnI`@dG@hDItDUpKu@nGk@nKu@nKw@l]uAdO]jk@mA``@Sph@Q`LKvAAlO?vH`@|HdBbIlDfAr@jB~A~DdDjOtTvAnBlS|XxE~GbOhTtE|GnAtBhDpGjD`HlKnOrMjRrIrLfUp\\\\jHtKzChFtd@feA~_@l}@fSle@ls@haBhHzP|FrMbJvOzEbH~D|FzJhNxDlEtBxAdAf@`GfBtEn@p@@lIJpa@?vERpCf@bChAvDlBfCnCdAfAtCdDpGnH`EjFrGlHhExC|AfAdHvCvDlAjBZ`F`@pZNbdA?pWD|e@E`nCLbt@@pGBrZAt_@Qj^@hfAFtsBQbZKxU?fLBbKFne@@xU?|]Frk@Fp_ACvtAAx^AtKCxBCxAAdEEnTDbHFnO?xkAGpLKvFe@vHkBzEwBvFuDvDoDhJaL|HmJlOyRfByBl@u@tBgCdBsApDsAhCUxKB~RDdYGfDCpM?xCAnEB|JEnEOfCWtBY|Cq@pA_@bBm@dIiDnBu@tDkAvBe@`B]`Fq@~DYbAE|ACp{AQvz@?t]?v^Ely@Gh`BCtP?vA@fBDbADfAN~Bd@dB`@jCr@bFlB~B`AbNtFlCbAfA^vDbAlCl@fBVzCXvCTbBHfBDjP@~H?zR?xAGhBMvAQlAQfAWjA[zAg@jAe@dEuBrAq@v@a@nBu@jCs@~Bc@nFa@bMAxLAbCHvCPbKlA~BRnFTlA@~BBzDFvF@|JJfDEzCGvAQnBYfASdAW~Ai@zJwBnEeApD}@tLqC|Bi@hDy@t@QzCe@zD_@rAItEKlB?|C@fOG~a@GzB?hSGpYCpSIbB?xBD|BNxBXjCb@dDZlCLvC@j]GbD?z^IpBIjBSf@IvAMvEw@`AKnBIp\\\\MpDA`ME`GIxJCjBBrGCxGIpX]bEC|B@bE^fBR|B^tCz@v@T`Bn@hAh@vC~A~@n@`CjBjFpEv\\\\xXnCvB`DzCnBtAbB~@rAh@zA\\\\vC^t@Dj@@xBAnBQ`MuAnEe@d[iD~AOlCYxCi@rCm@vBk@t@WlG_C??dAU~Am@`A]xBeAzIyEl@YvB}@t@U`AO|AI??l@RNRLXAvADzA??FrB@|@Cv@UzCIrB??u@pHc@rFIlECvB@fE@p`@?zD@\\\\BzJBnbAAl^DvCFdBLdBr@tEd@lBl@jBt@fB|@`B|ElI|JlQvPd[tIjPrWvg@zDdJjD~HtCjHjDxGbE~G~BpDfB~ChA~AbOdVlCbFvHrNhKbRdDzGfBhE`FbMlBxEdDxHrAnCz@~Ab@x@nB~CbBrCdF`IzEtHbJnMrGfKxEdJhEbIbElIzAnDzE~NnBnF~DdIpEhIbFhI??|\\\\dm@fEfIxBtDbHzMvQv]nAfC`DzFpBxDpDdHzJnRtCtFjBzD|BlE~J`Rt\\\\no@jA~B^~@Xj@fPrVjDhF~BrDbDtDxBzB`CpB~CtBfE`CvFvB~RtGrMlEtDjBlDdCrCdCfCtCdCrDxBzD`CxGrAjEt@xBzC~IjAbFz@vG^vE\\\\pQZxZFz@DhAt@tGvBlLjArG^hBj@|Bf@fBpBjFl@lAnYfj@~IzPrEhJbBxChHhNdc@zy@|Ttb@`GlLtKvS~BrExOzYhGpLbGtLbCdEp@rAtAlCdu@fwAdN`X~h@hdAxPv[~Sr`@|g@vaArF~Jh\\\\xn@vIlPjUlc@`BlCbArAt@|@~@`AhAbAjOjLzWfSfOfLvBpAZNXCtCvAlAr@|AfApDrCtDtC`FpDfCjBnCzBlCpCJ`@j@n@nArAnBbBda@xZxc@x\\\\zi@`b@r[`VvDzBdD|A`NtFnHpCfHtC`KbE|X~KzFxBbm@bVvj@xTxd@zQd^tNjH~CnBv@lBb@`EdBfQ`HdFrBbJnDjChA~ZbMvTvIrb@tPzu@nZryAjl@nyAbl@dzAll@vIlDh^tNdp@rWlTvIfS|HbFrBfO`G`LrEdK`ElVtJnW`KvJbEfK~Df|@t]~n@zVrTtItb@|PdA\\\\bBj@|@XnB`@t@LpCT~DHjIJvCFpEBvAA`DGl@Eb@KdGClE@tEB|BCpA@rBOxANhB?bB?tD@V?f@?L?b@?D?X?t@?`C?rBAjA?b@AZ?T@R@ZFFB^J\\\\`@VD~AfAf@P^Fb@BnC?|ECvEAhE?nE?v@Fj@Jz@Xj@ZXTVV`BvBb@D??\\\\p@`BlBbAdAzUbXdBfBrFdGnArB~CnF|CrF`DlFlAlBrAxAnDtGDd@~EfIhC`E|AxBtAxAvAlAfC~AjCxAnAv@`@\\\\|B|BfArAzRfWtCzDpE|Fn@|@fAlBf@bAl@xA`ExK\\\\x@n@rAvAhCxFxHxJfMvEjGvn@by@fVd[jMtPhQbUnLrOrDpEzElGdRnVjG`IxBrChs@x~@dc@|j@v{@~hAvI`LbLjNjA|Aja@rh@~q@~|@hRlV`q@b|@jF`Hp[pa@jb@hj@hQxTtG|HxE~E~AdBXH~ApBV\\\\hDbEV\\\\X\\\\vCtDdKxMxBtCNb@tBvCxG`KlAlBlHjKn{@lhArUrZjaBhvBzOrSdg@ro@jCpDdm@`w@|NhR~AjBjVj[|G`JnHfJj]~c@dP|StHrJt~@dlAbC|CXXnAhAbBhAxBfArAh@T@zAr@zAx@`Ax@Z^l@x@V^j@nAZbA^|APfBFfB?nHBrBFtAHt@RnAVdA\\\\dAj@hAT\\\\fArAZXhAv@rAp@xFdCvBbAjAx@x@t@j@n@~@lAva@bi@fBhC~C|Et@jAbCvDzF`J~EtGxEfGvCrDtCpDjA|AfAvApCrDvEfGz@fAfCbD`LxNnEzFjGbInPdTrIzKnJzLHXhBdCbEtGvBxC`ItJpDjEdRlUfS`Vzy@rbAbNnPfPlRrp@|w@|Yx]rMjOzVvZ`j@dp@fDpC|CpBfEbBrFrApBd@vCPjCJrmAI~OH`[@bm@IhMBrp@CpKGrAApJBxg@GvRGn]Lrc@Kju@A`VEhUDrl@CZAvTL`V@xd@KvF?bSDfBBvbAGn@?jE?`E?fj@Cx`@AfB?xCLpAPpA\\\\`Bh@`GhBfCp@`Ch@t@Pf@CvJpClEtApEvA`EnAPFnDhA`@LnEtAfAZzAXl@FfAHfA@zIChGAdGAhGGpEA??ArF@xHAzD?~CCxACbAKxBCn@e@xFq@vFcAlFiAxFy@~DuEpTcBtHoGt[If@_FtVe@jBg@|D}@bE_A`IKfDEbFFv`AHxb@A~^FjaAStw@?tJHlf@DhjBChkBE~iB?djB@~X?hjCAhN?f`@Hnw@Czr@GjpAFvL?fg@B~HCvPYhLYjOU|IA~EBbyBBrnBBnLIjJ[jK_Ax]oAve@_F||AgBlp@VtXz@fv@v@ru@r@vd@n@xn@JhO?~_ACrp@Fvu@Fp\\\\Bv~AAdc@AlU@fEDd[BvMJ~G`@~SR|I`@dSj@~YRzTNhQJfLRlUHdJRnUH`IJnJDdBJpBH|@ZjCPbAf@`Cx@rCdAlCbAtBfAjBv@dAnAzA`A`A`T~Q~FbFjHrGrJnItFxE|EjEfDrCdA~@f@b@nAfAtN~LjEvDjPrNfB|AVPR?\\\\XpAhAfHjGlC|BzFbF|DhD|BnB`Ax@f@d@Z`@n@~@r@~A`@lANt@ATJ~@H`B?vB@xF?z@D\\\\@xCAvF?rF?xF?vFAxF?vF?vF?vF?tFA`F?RAdA@~K@vFAjF?nF@j^?pCAjBAjEBd\\\\AvH?hN?rU?rT?rF?|Q?f@?zGKl@?pG?pA?dBCjR?LPlAE~nA@bECfc@?nC?fLA|r@?^?V?|D??K\\\\E^A~^E~{@M~xC?rFEti@?jICxb@???p@Cbe@?lb@Era@AnM@hSIna@Xn}EA`KB`vARv}BAdZFxEPdFVzCZdDd@dDz@dFx@xDhA|DzAnEdBbFpEjMhFtO`Kn[nDlKlNda@la@fkAfSpk@`dAtwCzm@jfBdn@dgBlKnZpg@rxA|Wtu@dCjHfDvJtNda@dA~CpJjXb]xaA`_@bfA|]rbAz_@vgAlDnJjD`Kn@vBrIzZbc@t}Ad@dBbb@d{A`C`Jdo@b}Bxj@tqBjn@|zBfMfd@r\\\\nlAfB`HxBrJbiA|xFdc@|xBvN|s@hAbFpBtHdB`Gb@dBjQho@jJz[rHbXnAzElAfEhg@lhBt@dE~@dGf@jETvDRhF^~PdAtb@f@zT`DbtAb@fQfDpwAnAlf@hClfAd@lTvDv~Ar@jZVtFp@pM|HbyAbPt|CvDxr@nAhVlB|]^jHHnCFtDCdDOpGYlFwTzbC_BjRsMjxAcHpv@{OpfBuJffAg@pGQxFC|FFtETjG^vEd@lEt@rEj@tChAtEhArDbAnC|qAx~CxKpWzQdc@t@fBnB`EpBpDhT`\\\\x{BbiDlRjYhF~H|s@~fAdQxWb\\\\rf@pOtUfSnZjF~H`Ynb@lMnRtJbOlEtG~I~M~AdCh[be@fDrFhAjBbC`FjCfHd@xAxBlGtDvKnGfRdBdF`K~YbGbQrDrKlFtOvI`WpCdIlRlj@tGlRtM|_@zIfWlBxFxAdEdA|Cr@xBZfARx@RnARhBDx@FvABrA?`BAlC?j@?\\\\CnG?D?J@fC@`C?bCA|BAdC?rBFR??P?vC@b@@h@?lA@~@?\\\\?~@?jFB`JQ`GMpBK|AQbAOjB]`B_@zAc@fAc@dAc@h@[bAk@P[\\\\Uf@[lAeA~BcChHqIn@k@pA{@vAo@x@WvPuDdYgGjGuAnCk@pAY~Bg@JCVDxEu@dD]tAGjAB`AFx@LNBxAd@xAt@ZRh@XPJP?zCfB~HxEpGvDxJ~FnC~AfAp@lDtBjAp@h@ZxHnE`DlB~D`Cr@b@JFj@\\\\d@VdBdAh@ZdJpF~BvAbB`AhHjEz@f@B@lAt@hAp@xIhFhWlO~@h@HDLJh@ZJFjYzPlBjA`DlBtGxDfL~G`CtAjp@n`@`@TlVzNfAn@HPrBnAdJfGj^jTt@d@fCpAzEtB~s@nYrEhBf_Ad_@~\\\\`Ntn@zVhEbBxB|@dJpDnKpDpBv@bNjFxEnBpVtJlTzIzw@f[nIhDnIfDrd@vQzIpDzYhLfUdJpLzErLrEnOfG|KrEnBz@pNpF`ZpLfE~Aht@vYtKlEhVlJdI~CjElBzBz@zOxG~Bt@`DpA|CvAzDxBbDzBjA|@pAfAlAjAnArAlArAjAzAvPhUbClDlJ`MdA~A`FtG|P|UjOnSbB`ChDjEn^`g@nFjHlL~OhB`ClAhBvGvIxC`EtB`Dp[tb@pC~Dz@pA~BbErAxCp@hB~@pCj@nBbArE^pB^hCNjAr@lIbAhMHbAv@tIRhCLhA`@xB\\\\xAt@fCDJn@dBTf@hAzBt@jAv@bArA~An@l@rBfBnFjDZTjBhAbFbDvAx@hKxGjAr@rLlH`C~A~PvKdOhJfLlHtBnA|BzAfCxArCfBrQfLjJ`GxBxApIdF`HlEdFdDlDtBzB|AhAn@`_@nUvEzC~MpItBnAlCdBtD`CfNxIvSlMlJbGzCnBpC`B`BjAtBnAnFlDvCbBnHtExE`DxAv@~EbDtEnC|GhExCnB~MpIvKzGxCpBhBdAtAbAP?zK`HrK`HlM`IhCdBfCxApBrAtSlMdM`IvNzIdC`Bj\\\\tS|@l@lN~ItN|I^VjCbBfNrIlAz@lBnAjNtIrEzCrHvEx@l@nS~L`JzFD@hMdIlC~AhG|D`W|OpRxL~GdEfIlF|IlFvClBdIbFhIdF`ElCdKpGpLhH`HnEhDrBlInF`DnBpm@p_@nInFvFrDbV`O`NpIvRvLdAv@~AtAhAhA~@jAjA`BfAnBjAfCl@`Bj@pBt@lDfIzc@zAdJ~F|[|^vqBnHva@L^DXrAnH`ArF~Fp[bs@f|D~DrOxa@hpAl_@fiAlGnUlDtO`[vhCrE|b@pFxd@hp@x}FHl@h@tDh@tC^fB^vAv@nCl@dBl@xAlBrE|P|[tTnb@`J~PzB~DxA|B~ArBf@p@\" \n }\n */\n $distance = $mqResult->{\"route\"}->{\"distance\"};\n if($distance > 0){\n $newLeg = new TripLeg();\n $newLeg->id =$lastid+10;\n $newLeg->distance = $distance;\n $newLeg->startLatLong = $lastLatLong;\n $newLeg->endLatLong = $newLatLong;\n $newLeg->MQencodedPath = $mqResult->{\"route\"}->{\"shape\"}->{\"shapePoints\"};\n\n //echo json_encode($newLeg);\n\n //Push the leg to the end of the $tripPaths->{$trip}\n array_push($tripPaths->{$trip},$newLeg);\n //var_dump($tripPaths);\n\n if($newTripsRoute = fopen($jsonRouteFilePath,\"w\")){\n fwrite($newTripsRoute, json_encode($tripPaths));\n fclose($newTripsRoute);\n $result = TRUE;\n }else{\n //error using fopen.\n $error_msg = \"Could not open file.\";\n $result = FALSE;\n }\n }else{\n //No distance between provided point and last point. Likely the same point was provided.\n $error_msg = \"No distance travelled\";\n $result = FALSE;\n }\n }else{\n $error_msg = \"No MapQuest result given. Could not add Leg to trip.\";\n $result = FALSE;\n }\n if(!empty($error_msg)){echo $error_msg;}\n return $result;\n}", "public static function path(string ...$_ids): string\n {\n return \\implode(self::PATH_DELIMITER, $_ids);\n }", "private function getPath() {\n return '%2F' . urlencode($this->source) . '%2F' . urlencode($this->campaign) .'%2F' . urlencode($this->content);\n }", "public function path(/* array */$id) {\n $key = strrev(sprintf('%04d', $id));\n $k1 = substr($key, 0, 2);\n $k2 = substr($key, 2, 2);\n return sprintf('%s/%02d/%02d/%d.torrent', self::STORAGE, $k1, $k2, $id);\n }", "public function getPath():string\n {\n $retUrl = self::API_PATH_SPACES;\n if ($this->spaceId != \"\") {\n $retUrl = str_replace(\"{spaceId}\", $this->spaceId, $this->uri);\n }\n $queryParams = $this->queryString();\n if ($queryParams !== \"\") {\n $retUrl = $retUrl . $queryParams;\n }\n return $retUrl;\n }", "public function path();", "function get_route($my_location){\n $route_start = $my_location[0];\n $route_end = $my_location[1];\n\n $loc_api_key = AIzaSyBFuL6yafR8BuhdbzupDAcorVH4sAO2YpE;\n //$route_url = \"https://maps.googleapis.com/maps/api/directions/json?origin=\".$route_start.\"&destination=\".$route_end.\"&key=\".$loc_api_key.\"&alternatives=true\"; this is for detours\n $route_url = \"https://maps.googleapis.com/maps/api/directions/json?origin=\".$route_start.\"&destination=\".$route_end.\"&key=\".$loc_api_key;\n\n if (!function_exists('curl_init')){\n die('Can\\'t find cURL module'); \n }\n\n $chRD = curl_init(); //RD = Route Directions\n\n if (!$chRD){\n die('Couldn\\'t initialize a cURL module'); \n }\n\n curl_setopt($chRD, CURLOPT_URL, $route_url);\n curl_setopt($chRD, CURLOPT_RETURNTRANSFER, TRUE);\n \n $dataRD = curl_exec($chRD);\n curl_close($chRD);\n\n $routes = json_decode($dataRD);\n\n return $routes;\n}", "public function path(): string\n {\n return str_replace('?', '', \"/{$this->route->uri()}\");\n }", "public function get_location_path($p_obj_id)\n {\n $l_loc_popup = new isys_popup_browser_location();\n\n return $l_loc_popup->format_selection($p_obj_id);\n }", "protected function _evalPath($id = 0){\n\t\t$db = new DB_WE();\n\t\t$path = '';\n\t\tif($id == 0){\n\t\t\t$id = $this->ParentID;\n\t\t\t$path = $this->Text;\n\t\t}\n\n\t\t$result = getHash('SELECT Text,ParentID FROM ' . $this->_table . ' WHERE ' . $this->_primaryKey . '=' . intval($id), $db);\n\t\t$path = '/' . (isset($result['Text']) ? $result['Text'] : '') . $path;\n\t\t$pid = isset($result['ParentID']) ? intval($result['ParentID']) : 0;\n\t\twhile($pid > 0){\n\t\t\t$result = getHash('SELECT Text,ParentID FROM ' . $this->_table . ' WHERE ' . $this->_primaryKey . '=' . $pid, $db);\n\t\t\t$path = '/' . $result['Text'] . $path;\n\t\t\t$pid = intval($result['ParentID']);\n\t\t}\n\t\treturn $path;\n\t}", "function getPath(): string;", "public static function personal_folder_path($user_id) {\n\n\n $user = Backend_User::find($user_id);\n\n $slash = Config::get('portal.back_slash');\n\n\n if($user) {\n\n $route = '';\n\n if ($user->user_type == 0 || $user->user_type == 1) {\n\n //get first and last name \n $details = Backend_User_Details::where('user_id','=',$user->id)->get(array('first_name','last_name'));\n\n\n\n $details = $details[0];\n\n //form route\n $route .= 'users'. $slash .$details->last_name.'-'.$details->first_name.'-'.$user->id;\n\n }//if user or admin \n else {\n\n //get client's details\n $client_details = Backend_Client::infos($user->id);\n\n $client_details = $client_details[0];\n\n\n if($client_details->client_type_id == 1 ) {\n\n $route .= 'clients'. $slash.'individual'.$slash.str_replace(' ', '-', $client_details->last_name).'-'.str_replace(' ', '-',$client_details->first_name).'-'.$user->id;\n \n }//if individual\n else{\n\n $folder = Backend_Client_Type::get_name_by_client_type_id($client_details->client_type_id);\n\n $route .= 'clients'. $slash.strtolower($folder). $slash .str_replace(' ', '-',$client_details->name).'-'.$user->id;\n\n }//if corporate\n\n\n }//if client\n\n return $route;\n\n }//if the user exsists\n\n return false;\n\n }", "public static function getPath()\n {\n }", "public function getPath($path, $entity_id);", "public function getPath();", "public function getPath();", "public function getPath();", "public function getPath();", "public function getPath();", "public function getPath();", "public function getPath();", "public function getPath();", "public function getPath();", "public function getPath();", "public function getPath();", "public function getPath();", "public function getPath();", "public function getPath();", "public function getPath() {\n if (empty($this->uriParts['path'])) {\n return '';\n }\n return implode('/', array_map(\"rawurlencode\", explode('/', $this->uriParts['path'])));\n }", "function getPath() {\n $ruta = realpath(dirname(__FILE__));\n if ( strtoupper(substr(PHP_OS, 0, 3)) === 'WIN' )\n $separator = '\\\\';\n else\n $separator = '/';\n $aRuta = explode($separator,$ruta);\n $ruta = '';\n foreach($aRuta as $index => $value)\n if ( $index < count($aRuta) - 1 ) $ruta .= $value.$separator;\n return $ruta;\n}", "public function retornaCaminhoDoDiretorioPeloId($id) {\n\t\treturn (string) implode(DIRECTORY_SEPARATOR, str_split($id));\n\t}", "public function getPathId()\n {\n return $this->pathId;\n }", "public function toString() {\n return url::buildPath($this->toArray());\n }", "public static function GetPath($id){\n\t\treturn Yii::getPathOfAlias('application.GBlocks.'.$id);\n\t}", "function tep_get_path($current_category_id = '') {\n\tglobal $cPath_array, $obj_categories;\n\tif (tep_not_null($current_category_id)) {\n\t\t$cp_size = sizeof($cPath_array);\n\t\tif ($cp_size == 0) {\n\t\t\t$cPath_new = $current_category_id;\n\t\t} else {\n\t\t\t$cPath_new = '';\n\n\t\t\t$last_category_parent_id = $obj_categories->get_parent_id((int)$cPath_array[($cp_size-1)]);\n\t\t $current_category_parent_id = $obj_categories->get_parent_id((int)$current_category_id);\n\n\t\t\tif ($last_category_parent_id == $current_category_parent_id) {\n\t\t\t\tfor ($i=0; $i<($cp_size-1); $i++) {\n\t\t\t\t\t$cPath_new .= '_' . $cPath_array[$i];\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tfor ($i=0; $i<$cp_size; $i++) {\n\t\t\t\t\t$cPath_new .= '_' . $cPath_array[$i];\n\t\t\t\t}\n\t\t\t}\n\t\t\t$cPath_new .= '_' . $current_category_id;\n\t\t\tif (substr($cPath_new, 0, 1) == '_') {\n\t\t\t\t$cPath_new = substr($cPath_new, 1);\n\t\t\t}\n\t\t}\n\t} else {\n\t\t$cPath_new = implode('_', $cPath_array);\n\t}\n\treturn 'cPath=' . $cPath_new;\n}", "function cot_pfs_folderpath($folderid, $fullpath='')\n{\n\tglobal $db, $db_pfs_folders, $cfg;\n\n\tif($fullpath==='') $fullpath = $cfg['pfs']['pfsuserfolder'];\n\n\tif($fullpath && $folderid>0)\n\t{\n\t\t// TODO Clean up this mess and fix pff_path\n\t\t$sql = $db->query(\"SELECT pff_path FROM $db_pfs_folders WHERE pff_id=\".(int)$folderid);\n\t\tif($sql->rowCount()==0)\n\t\t{\n\t\t\treturn FALSE;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn $sql->fetchColumn().'/';\n\t\t}\n\t}\n\telse\n\t{\n\t\treturn '';\n\t}\n}", "public function getPath(int $id): string\n {\n $section_url = '';\n $section = (new NewsSection())->find($id);\n if ($section !== null) {\n $path = [\n $section->code,\n ];\n $parent = $section->parentSection;\n while ($parent !== null) {\n $path[] = $parent->code;\n $parent = $parent->parentSection;\n }\n krsort($path);\n\n $section_url = implode('/', $path);\n }\n\n return $section_url;\n }", "function buildPath($path, $options = array()) {\n return url($path, $options);\n }", "protected function getFileRelativePath(string $contextId, string $id, string $path, array $meta): string\n {\n return trim($path, '/');\n }", "function url($location) {\n\techo getAbsolutePath() . $location;\n}", "public function getURL($lng_id)\r\n\t{\r\n\t\tglobal $myPT;\r\n\t\treturn $myPT->url_for_page($this->id,null,$lng_id);\r\n\t}", "function timetracking_uri(timetracking $timetracking){\n return array(\n 'path' => 'timetracking/' . $timetracking->timetracking_id,\n );\n}", "public function get_directions();", "public function getPath(string ...$arguments) : string\n {\n if ($arguments) {\n return $this->router->fillPlaceholders($this->path, ...$arguments);\n }\n return $this->path;\n }", "function url($id)\r\n\t{\r\n\t\treturn '';\r\n\t}", "public function getPathTranslated() {\n\t\t\n\t}", "public function findPath($id)\n {\n $entry = $this->find($id, ['path']);\n return $entry ? $entry->getRawOriginal('path') : '';\n }", "private function _makepath() {\n $params = func_get_args();\n $path = '';\n\n foreach ($params as $value) {\n $path .= $value;\n\n if (!empty($value)) $path .= PS;\n }\n\n return $path;\n }", "public static function url(string $id, array $args = [], int $type = self::ABSOLUTE_PATH): string\n {\n if ($type === self::RELATIVE_PATH) {\n Log::debug('Requested relative path which is not an absolute path... just saying...');\n }\n return self::$router->generate($id, $args, $type);\n }", "protected abstract function getPath();", "protected static function makePath(...$path_components): string { // phpcs:ignore\n return self::gluePartsTogether($path_components, '/');\n }", "private static function getPath() : string {\n return getBasePath() . '/miaus';\n }", "abstract protected function getPath();", "function getTextPath($id = \"0\", $urlPrefix = '') {\n if($id == \"\") { $id = \"0\"; }\n $treeRecord = $this->getTreeRecord($id);\n\n if($treeRecord != null) {\n if($treeRecord->belongs_to == \"0\") {\n return \"/ \".$treeRecord->title;\n } else {\n $path = $this->getTextPath($treeRecord->belongs_to, $urlPrefix);\n return $path . \" / \" . $treeRecord->title;\n }\n } else {\n return \"/ \";\n }\n }", "public function getRoute();", "public function getApiRoute(): string;", "public function fetch_path()\n\t{\n\t\treturn $this->route_stack[self::SEG_PATH];\n\t}", "function getEmailPath($id = \"0\", $urlPrefix = '') {\n if($id == \"\") { $id = \"0\"; }\n $treeRecord = $this->getTreeRecord($id);\n if($treeRecord != null) {\n if($treeRecord->belongs_to == \"0\") {\n return \"/ <a href=\\\"\" . $urlPrefix . \"index.php?id=\".$treeRecord->id.\"\\\">\".$treeRecord->title.\"</a>\";\n } else {\n $path = $this->getEmailPath($treeRecord->belongs_to, $urlPrefix);\n return $path . \" / <a href=\\\"\" . $urlPrefix . \"index.php?id=\".$treeRecord->id.\"\\\">\" . $treeRecord->title.\"</a>\";\n }\n } else {\n return \"/ \";\n }\n }", "public function getPath() {}", "public function getPath() {}", "public function getPath() {}", "public function getPath() {}", "public function getPath() {}", "public function getPath() {}", "public function getPathEncoded();", "private function get_category_tree_path($id)\n {\n if ($id === 0)\n {\n $category = Element::get($this->modx, 'modCategory', $id);\n $path = $category->get_property('name');\n }\n\n while ($id !== 0)\n {\n $category = Element::get($this->modx, 'modCategory', $id);\n $path = (isset($path) ? $category->get_property('name') . '/' . $path : $category->get_property('name') . '/');\n $id = $category->get_property('parent');\n }\n\n return $path;\n }", "public function getPath(): string;", "public function getPath(): string;", "public function getPath(): string;", "public function getPath(): string;", "public function getPath(): string;", "public function getPath(): string;", "public function getPath(): string;" ]
[ "0.7236587", "0.69467646", "0.6846566", "0.66312003", "0.65743107", "0.6504569", "0.63473", "0.6314242", "0.6307196", "0.6271322", "0.62691057", "0.62445956", "0.6150931", "0.6120914", "0.60790056", "0.5985809", "0.58399475", "0.5808222", "0.5808192", "0.57738644", "0.5770922", "0.5728508", "0.57074964", "0.56949604", "0.5652162", "0.5630582", "0.5629285", "0.56241035", "0.5623702", "0.5618113", "0.56071883", "0.55825007", "0.5545426", "0.55282235", "0.5523674", "0.5509341", "0.5492439", "0.5485718", "0.5452781", "0.5449562", "0.5449532", "0.54257196", "0.54257196", "0.54257196", "0.54257196", "0.54257196", "0.54257196", "0.54257196", "0.54257196", "0.54257196", "0.54257196", "0.54257196", "0.54257196", "0.54257196", "0.54257196", "0.54211897", "0.54210234", "0.5408776", "0.5400846", "0.5400342", "0.53857416", "0.53797024", "0.5370619", "0.53656226", "0.5363838", "0.5348324", "0.53474975", "0.53309023", "0.532701", "0.53113437", "0.530599", "0.52992743", "0.5289484", "0.528737", "0.5286068", "0.5285634", "0.5274289", "0.52703476", "0.5269877", "0.5258533", "0.5255291", "0.52506655", "0.5242974", "0.52393633", "0.5238539", "0.5237719", "0.5236213", "0.5236213", "0.5236213", "0.5236213", "0.52362096", "0.5232849", "0.5231299", "0.5225103", "0.5225103", "0.5225103", "0.5225103", "0.5225103", "0.5225103", "0.5225103" ]
0.8041021
0
API Function to setup a map with two points
function getdirections_locations_bylatlon($fromlocs, $fromlatlon, $tolocs, $tolatlon, $width='', $height='') { return getdirections_locations($fromlocs, $fromlatlon, $tolocs, $tolatlon, $width, $height); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function init($x1, $y1, $x2, $y2) {}", "function map(string $docuri) {\n $map = [\n 'title'=> 'carte '.$this->title,\n 'view'=> ['latlon'=> [47, 3], 'zoom'=> 6],\n ];\n $map['bases'] = [\n 'cartes'=> [\n 'title'=> \"Cartes IGN\",\n 'type'=> 'TileLayer',\n 'url'=> 'https://igngp.geoapi.fr/tile.php/cartes/{z}/{x}/{y}.jpg',\n 'options'=> [ 'minZoom'=> 0, 'maxZoom'=> 18, 'attribution'=> 'ign' ],\n ],\n 'orthos'=> [\n 'title'=> \"Ortho-images\",\n 'type'=> 'TileLayer',\n 'url'=> 'https://igngp.geoapi.fr/tile.php/orthos/{z}/{x}/{y}.jpg',\n 'options'=> [ 'minZoom'=> 0, 'maxZoom'=> 18, 'attribution'=> 'ign' ],\n ],\n 'whiteimg'=> [\n 'title'=> \"Fond blanc\",\n 'type'=> 'TileLayer',\n 'url'=> 'https://visu.gexplor.fr/utilityserver.php/whiteimg/{z}/{x}/{y}.jpg',\n 'options'=> [ 'minZoom'=> 0, 'maxZoom'=> 21 ],\n ],\n ];\n $map['defaultLayers'] = ['whiteimg'];\n \n $request_scheme = isset($_SERVER['REQUEST_SCHEME']) ? $_SERVER['REQUEST_SCHEME']\n : ((isset($_SERVER['HTTPS']) && ($_SERVER['HTTPS']=='on')) ? 'https' : 'http');\n foreach ($this->layers as $lyrid => $layer) {\n $overlay = [\n 'title'=> $layer['title'],\n 'type'=> 'UGeoJSONLayer',\n 'endpoint'=> \"$request_scheme://$_SERVER[SERVER_NAME]$_SERVER[SCRIPT_NAME]/$docuri/$lyrid\",\n ];\n foreach (['pointToLayer','style','minZoom','maxZoom'] as $key)\n if (isset($layer[$key]))\n $overlay[$key] = $layer[$key];\n elseif ($this->$key !== null)\n $overlay[$key] = $this->$key;\n\n $map['overlays'][$lyrid] = $overlay;\n if (isset($layer['displayedByDefault']))\n $map['defaultLayers'][] = $lyrid;\n }\n \n return new Map($map, \"$docuri/map\");\n }", "public function setPointCoordinates($latA, $lonA, $latB, $lonB);", "public function map()\n\t{\n\t\t$map = 'http://maps.googleapis.com/maps/api/staticmap?zoom=12&format=png&maptype=roadmap&style=element:geometry|color:0xf5f5f5&style=element:labels.icon|visibility:off&style=element:labels.text.fill|color:0x616161&style=element:labels.text.stroke|color:0xf5f5f5&style=feature:administrative.land_parcel|element:labels.text.fill|color:0xbdbdbd&style=feature:poi|element:geometry|color:0xeeeeee&style=feature:poi|element:labels.text.fill|color:0x757575&style=feature:poi.business|visibility:off&style=feature:poi.park|element:geometry|color:0xe5e5e5&style=feature:poi.park|element:labels.text|visibility:off&style=feature:poi.park|element:labels.text.fill|color:0x9e9e9e&style=feature:road|element:geometry|color:0xffffff&style=feature:road.arterial|element:labels|visibility:off&style=feature:road.arterial|element:labels.text.fill|color:0x757575&style=feature:road.highway|element:geometry|color:0xdadada&style=feature:road.highway|element:labels|visibility:off&style=feature:road.highway|element:labels.text.fill|color:0x616161&style=feature:road.local|visibility:off&style=feature:road.local|element:labels.text.fill|color:0x9e9e9e&style=feature:transit.line|element:geometry|color:0xe5e5e5&style=feature:transit.station|element:geometry|color:0xeeeeee&style=feature:water|element:geometry|color:0xc9c9c9&style=feature:water|element:labels.text.fill|color:0x9e9e9e&size=640x250&scale=4&center='.urlencode(trim(preg_replace('/\\s\\s+/', ' ', $this->cfg->address)));\n\t\t$con = curl_init($map);\n\t\tcurl_setopt($con, CURLOPT_FOLLOWLOCATION, 1);\n\t\tcurl_setopt($con, CURLOPT_HEADER, 0);\n\t\tcurl_setopt($con, CURLOPT_RETURNTRANSFER, 1);\n\t\treturn response(curl_exec($con))->header('Content-Type', 'image/png');\n\t}", "function create_Map($coordsTmp,$name) {\n\t\t\n\t\t\t\t// default atts\n\t\t\t\t\t$attr = shortcode_atts(array(\t\n\t\t\t\t\t\t\t\t\t'lat' => '57.700662', \n\t\t\t\t\t\t\t\t\t'lon' => '11.972609',\n\t\t\t\t\t\t\t\t\t'id' => 'map',\n\t\t\t\t\t\t\t\t\t'z' => '14',\n\t\t\t\t\t\t\t\t\t'w' => '530',\n\t\t\t\t\t\t\t\t\t'h' => '450',\n\t\t\t\t\t\t\t\t\t'maptype' => 'ROADMAP',\n\t\t\t\t\t\t\t\t\t'marker' => $coordsTmp\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t), $attr);\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t$map = '\n\t\t\t\t<div id=\"map\" style=\"width:530px;height:450px;border:1px solid gray;\"></div><br>\n\t\t\t\t\n\t\t\t\t<script type=\"text/javascript\">\n\t\t\t\tvar infowindow = null;\n\t\t\t\tvar latlng=new google.maps.LatLng(57.700662,11.972609);\n\t\t\t\t\tvar latlngw = new google.maps.LatLng(' . $attr['lat'] . ', ' . $attr['lon'] . ');\n\t\t\t\t\tvar myOptions = {\n\t\t\t\t\t\tzoom: 13,\n\t\t\t\t\t\tcenter: latlng,\n\t\t\t\t\t\tmapTypeId: google.maps.MapTypeId.' . $attr['maptype'] . '\n\t\t\t\t\t};\n\t\t\t\t\tvar map = new google.maps.Map(document.getElementById(\"map\"),myOptions);';\n\t\t\n\t\t\t\t $map .=' var sites = [';\n\t\t\t\t\t\t//marker: show if address is not specified\n\t\t\t\t\t\tif ($attr['marker'] != ''){\n\t\t\t\t\t\t\t$markers = explode(\"|\",$attr['marker']);\n\t\t\t\t\t\t\tfor($i = 0;$i < count($markers);$i ++){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t$markerTmp=$markers[$i];\n\t\t\t\t\t\t\t\t$marker= explode(\",\",$markerTmp);\n\t\t\t\t\t\t\t\t\tif (count($marker)>3) { \n\t\t\t\t\t\t\t\t\t$markerTmp2 .='['.$marker[0].',' .$marker[1].',\\'' . $marker[2] . '\\',\\'' . $marker[3] . '\\'],';\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t$markerTmp2 .='['.$marker[0].',' .$marker[1].',\\'' . $marker[2] . '\\',null],';\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t }\n\t \n\t\t\t\t\t $markerTmp2=substr ($markerTmp2,0,strlen ( $markerTmp2 )-1);\n\t\t\t\t\t $map .=$markerTmp2;\n\t\t\t\t\t $map .='];';\n\t\t\t\t\t $map .='';\n\t\t\t\t\t $map .=' for (var i = 0; i < sites.length; i++) {';\n\t\t\t\t\t $map .=' var site = sites[i];';\n\t\t\t\t\t $map .=' var siteLatLng = new google.maps.LatLng(site[0], site[1]);';\t\n\t\t\t\t\t $map .=' var markerimage = site[3];';\n\t\t\t\t\t \n\t\t\t\t\t $map .=' var marker = new google.maps.Marker({';\n\t\t\t\t\t $map .=' position: siteLatLng, ';\n\t\t\t\t\t $map .=' map: map,title:\"'.$addr.'\",';\n\t\t\t\t\t $map .=' icon: markerimage,';\n\t\t\t\t\t $map .=' html: \"Hello dude\" }); \n\t\t\t\t\t \n\t\t\t\t\t var infowindow = new google.maps.InfoWindow({\n\t\t\t\t\t\t\tcontent: \"Hello dude\"\n\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\tvar marker3 = new google.maps.Marker({\n\t\t\t\t\t\t\t\tposition: latlng,\n\t\t\t\t\t\t\t\tmap: map,\n\t\t\t\t\t\t\t\ttitle:\"Uluru (Ayers Rock)\"\n\t\t\t\t\t\t});\n\n\t\t\t\t\t \n\t\t\t\t\t\t\t\tgoogle.maps.event.addListener(marker3, \"click\", function () {\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tinfowindow.open(map,marker3);\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t;}\n\t\t\t\t\t\t\t\t</script>';\n\t\t\t\t\t\treturn $map;\n\t\t\t\t\t}", "function addPoint($x, $y, $name)\n {\n $this->_mapPoints[$name] = array('X' => $x, 'Y' => $y);\n }", "function autocreate_map ($post_id, $lat, $lon, $add) {\r\n\t\t$opts = get_option('agm_google_maps');\r\n\t\t$do_associate = @$opts['custom_fields_options']['associate_map'];\r\n\r\n\t\tif (!$lat || !$lon) {\r\n\t\t\t$geo = $this->_address_to_marker($add);\r\n\t\t} else {\r\n\t\t\t$geo = $this->_position_to_marker($lat, $lon);\r\n\t\t}\r\n\r\n\t\tif (!$geo) return false; // Geolocation failed\r\n\r\n\t\t$map = $this->get_map_defaults();\r\n\t\t$map['title'] = $geo['title'];\r\n\t\t$map['show_map'] = 1;\r\n\t\t$map['show_markers'] = 1;\r\n\t\t$map['markers'] = array($geo);\r\n\t\tif ($do_associate) $map['post_ids'] = array($post_id);\r\n\r\n\t\t$map_id = $this->save_map($map);\r\n\r\n\t\tif (!$map_id) return false;\r\n\t\tupdate_post_meta($post_id, 'agm_map_created', $map_id);\r\n\t\treturn $map_id;\r\n\t}", "function img2map($width, $height, $point, $ext){\n\tif ($point->x && $point->y){\n\t\t$dpp_x = ($ext->maxx -$ext->minx)/$width;\n\t\t$dpp_y = ($ext->maxy -$ext->miny)/$height;\n\t\t$p[0] = $ext->minx + $dpp_x*$point->x;\n\t\t$p[1] = $ext->maxy - $dpp_y*$point->y;\n\t}\n\treturn $p;\n}", "public function wktGenerateMultipolygon();", "public function test_make_coordinates_2()\n {\n $coord = \"-120,\";\n $dd = \\SimpleMappr\\Mappr::makeCoordinates($coord);\n $this->assertEquals($dd[0], null);\n $this->assertEquals($dd[1], null);\n }", "abstract protected function defineMapping();", "public function buildMap($x, $y)\n\t{\n\n\t\t$warehouse = $this->buildWarehouse();\n\n\t\t$map = new WarehouseRouteMap();\n\n\t\tif(! $warehouse->isPassable($x, $y)) {\n\t\t\tthrow new \\RuntimeException(sprintf('%s() cannot start from location %s, %s', __METHOD__, $x, $y));\n\t\t}\n\n\t\t$this->updateCost($warehouse, $map, $x, $y, self::ORIGIN_COST);\n\n\t\treturn $map;\n\n\t}", "function display($map,$longeur,$largeur)\n{\n for($x_x = 0 ; $x_x < $largeur ; $x_x++)\n {\n for($y_y = 0 ; $y_y < $longeur ; $y_y++)\n {\n echo \"&nbsp;&nbsp;\".$map[$x_x][$y_y].\"&nbsp;&nbsp;\";//affichage de la valeur\n }\n echo \"<br>\";\n }\n}", "function set_map(){\r\n //setta chiave api nella composizione dell'url\r\n echo \"\r\n <script src=\\\"http://maps.google.com/maps?file=api&v=2&key=\". $this->apikey .\"&sensor=false\\\" type=\\\"text/javascript\\\">\r\n </script>\r\n \";\r\n \r\n //assegna il contenuto alla variabile JScenterMap la quale permette di geolocalizzare un punto sulla mappa tramite indirizzo\r\n \r\n if($this->indirizzo!=\"\"){\r\n \t$JScenterMap = \"\r\n \tvar geocoder = new GClientGeocoder();\r\n \tgeocoder.getLatLng('\".$this->indirizzo.\"',function(point) {\r\n if (!point) {\r\n alert('\".$this->indirizzo.\"' + \\\" not found\\\");\r\n } else {\r\n map.setCenter(point, 13);\r\n var marker = createMarker(point, 'Ciao');\r\n map.addOverlay(marker); \r\n }\r\n });\r\n \t\";\r\n\t } else {\r\n \t\t$JScenterMap = \"map.setCenter(new GLatLng(\".$this->latitudine.\", \".$this->longitudine.\"), 11);\";\r\n /*\r\n $creamarker = \"var marker1 = createMarker(new GLatLng(\".$this->latitudini[$i].\", \".$this->longitudine[$i].\"), '\" .$this->nomi[$i] .\"');\r\n map.addOverlay(marker1);\";*/\r\n \r\n }\r\n \r\n\t \r\n //inizializza il punto sulla mappa in base al contenuto della variabile JScenterMap\r\n //window.onload permette di richiamare il metodo initialize e Gunload (per svuotare la memoria) direttamente da qui senza specificarlo nel body\r\n echo \"\r\n <script type=\\\"text/javascript\\\">\r\n \r\n \t function createMarker(point,html) {\r\n\t\t\t\tvar marker = new GMarker(point);\r\n\t\t\t\tGEvent.addListener(marker, \\\"mouseover\\\", function() { marker.openInfoWindowHtml(html); });\r\n\t\t\t\treturn marker;\r\n\t\t\t }\r\n \r\n \t window.onload = initialize; \r\n window.onunload = GUnload;\r\n function initialize() {\r\n if (GBrowserIsCompatible()) {\r\n var map = new GMap2(document.getElementById(\\\"map_canvas\\\")); \";\r\n echo $JScenterMap; \r\n //CREAZIONE MARKER DINAMICAMENTE\r\n //alert(\\\"ciao\\\" + $i);\r\n for ($i=0;$i<10;$i++){\r\n echo \"\r\n var marker1 = createMarker(new GLatLng(\".$this->latitudini[$i].\", \".$this->longitudini[$i].\"), '\" .$this->nomi[$i] .\"');\r\n \t\t\tmap.addOverlay(marker1); \";\r\n \t\t } \r\n echo \"map.setUIToDefault();\r\n }\r\n }\r\n </script>\r\n \";\r\n\t}", "function Box($start_point, $end_point) {\n if ($start_point == $end_point) {\n $top = $start_point->lat;\n $bottom = $top;\n $left = $start_point->lng;\n $right = $left;\n return;\n }\n #echo \"Box Constructor<br/>\";\n #echo \"P1={\" . $start_point->lat . \",\" . $start_point->lng . \"}<br/>\"; \n #echo \"P2={\" . $end_point->lat . \",\" . $end_point->lng . \"}<br/>\";\n $midpoint = $this->findMidpoint($start_point, $end_point);\n #echo \"P3={\" . $midpoint->lat . \",\" . $midpoint->lng . \"}<br/>\";\n $slope = $this->findSlope($start_point, $end_point);\n #echo \"getting distance<br/>\";\n $distance = $midpoint->getDistanceMiles($start_point);\n #echo \"new distance is $distance<br/>\";\n //$p1 = $this->findP1($slope, $midpoint, $distance/4);\n $miles_per_degree_latitude = 69.023;\n #echo \"slope = \" . $slope . \"<br/>\";\n $p1 = new Point($midpoint->lng,$distance/$miles_per_degree_latitude);\n $p2 = new Point($midpoint->lng,$distance/$miles_per_degree_latitude);\n if ($slope != \"vertical\") {\n $p1 = $this->gP1($slope, $start_point, $end_point);\n $p2 = $this->gP2($slope, $start_point, $end_point);\n }\n #echo \"P4={\" . $p1->lat . \",\" . $p1->lng . \"}<br/>\";\n //$p2 = $this->findP2($slope, $midpoint, $distance/4);\n #echo \"P5={\" . $p2->lat . \",\" . $p2->lng . \"}<br/>\";\n $y = array($start_point->lat, $end_point->lat, $p1->lat, $p2->lat);\n $x = array($start_point->lng, $end_point->lng, $p1->lng, $p2->lng);\n $this->top = max($y);\n $this->bottom = min($y);\n $this->left = min($x);\n $this->right = max($x);\n }", "function guifi_get_map_info($node) {\n $map_info = array();\n \n // Obtenim les variables de retall del mapa. \n // - (X,Y) ó (UTMx, UTMy) ó (Lon,Lat)\n $map_info['datum'] = 5;\n $map_info['zone'] = 31;\n $map_info['nord'] = 1;\n $map_info['xPixel'] = isset($_GET[\"xPixel\"]) ? $_GET[\"xPixel\"] : $_POST[\"xPixel\"];\n $map_info['yPixel'] = isset($_GET[\"yPixel\"]) ? $_GET[\"yPixel\"] : $_POST[\"yPixel\"];\n $map_info['xUTM'] = isset($_GET[\"xUTM\"]) ? $_GET[\"xUTM\"] : $_POST[\"xUTM\"];\n $map_info['yUTM'] = isset($_GET[\"yUTM\"]) ? $_GET[\"yUTM\"] : $_POST[\"yUTM\"];\n $map_info['londec'] = isset($_GET[\"londec\"]) ? $_GET[\"londec\"] : $_POST[\"londec\"];\n $map_info['latdec'] = isset($_GET[\"latdec\"]) ? $_GET[\"latdec\"] : $_POST[\"latdec\"];\n $map_info['lon'] = isset($_GET[\"lon\"]) ? $_GET[\"lon\"] : $_POST[\"lon\"];\n $map_info['lat'] = isset($_GET[\"lat\"]) ? $_GET[\"lat\"] : $_POST[\"lat\"];\n // - Zoom ó Dist\n $map_info['zoom'] = isset($_GET[\"zoom\"]) ? $_GET[\"zoom\"] : $_POST[\"zoom\"];\n $map_info['dist'] = isset($_GET[\"dist\"]) ? $_GET[\"dist\"] : $_POST[\"dist\"];\n if ( !isset($map_info['xPixel']) || !isset($map_info['yPixel'])) {\n $map_info['xPixel'] = 0;\n $map_info['yPixel'] = 0;\n }\n if ( !isset($map_info['zoom']) )\n $map_info['zoom'] = 0;\n\n \n // Comprovem les dades i les transformem en X, Y, S\n $map_info['width'] = $map_info['height'] = 500; // This variables will are in drupal\n $map_info['quadrants'] = 3; // This variables will are in drupal\n $image_info = guifi_get_image_info ( guifi_get_file_map_zone($node) );\n \n // Find max scale of de map to draw from zoom of this view\n $map_info['maxRel'] = $image_info['width'] / $map_info['width'];\n if ( $map_info['maxRel'] < $image_info['height'] / $map_info['height'] )\n $map_info['maxRel'] = $image_info['height'] / $map_info['height'];\n $map_info['maxScale'] = guifi_get_scale_relation ( $map_info['maxRel'] );\n if ( $node->valid ) {\n // Calcule dist of original map and his relation\n $point_zero = guifi_pixel2UTM ($node->coord, 0, 0);\n $point_right = guifi_pixel2UTM ($node->coord, $image_info['width']-1, 0);\n $point_bottom = guifi_pixel2UTM ($node->coord, 0, $image_info['height']-1);\n \n $map_info['distX'] = guifi_get_dist_UTM($point_zero[0], $point_zero[1], $point_right[0], $point_right[1]);\n $map_info['distY'] = guifi_get_dist_UTM($point_zero[0], $point_zero[1], $point_bottom[0], $point_bottom[1]);\n }\n\n // Find de scale to draw the map\n if ( $node->valid && isset($map_info['dist']) && is_numeric($map_info['dist']) ) {\n // Find scale of de map to draw from dist of this view\n $map_info['maxRel'] = ( $image_info['width'] * $map_info['dist'] ) / ( $map_info['distX'] * $map_info['width'] );\n if ( $map_info['maxRel'] < ( $image_info['height'] * $map_info['dist'] ) / ( $map_info['distY'] * $map_info['height'] ) )\n $map_info['maxRel'] = ( $image_info['height'] * $map_info['dist'] ) / ( $map_info['distY'] * $map_info['height'] );\n \n $map_info['scale'] = guifi_get_scale_relation ( $map_info['maxRel'] );\n if ( $map_info['scale'] > $map_info['maxScale'] ) \n $map_info['scale'] = $map_info['maxScale'];\n $map_info['zoom'] = $map_info['maxScale'] - $map_info['scale'];\n }\n if ( isset($map_info['zoom']) ) {\n // Recalcule de zoom to a correct zoom\n if ( $map_info['zoom'] > $map_info['maxScale'] )\n $map_info['zoom'] = $map_info['maxScale'];\n $map_info['scale'] = $map_info['maxScale'] - $map_info['zoom'];\n }\n \n if ( $node->valid ) {\n if ( isset($map_info['lon']) && isset($map_info['lat']) ) {\n // Transform Geo's corrdinates to UTM Coordinates\n $map_info['londec'] = text2Coord($map_info['lon']);\n $map_info['latdec'] = text2Coord($map_info['lat']);\n }\n if ( isset($map_info['londec']) && isset($map_info['latdec']) ) {\n // Transform Geo's corrdinates to UTM Coordinates\n $point = guifi_WG842UTM ($map_info['londec'], $map_info['latdec'], $map_info['datum'], $map_info['zone'], $map_info['nord']);\n $map_info['xUTM'] = $point[0];\n $map_info['yUTM'] = $point[1];\n }\n if ( isset($map_info['xUTM']) && isset($map_info['yUTM']) ) {\n // Transform UTM's corrdinates to Pixel Coordinates\n $point = guifi_UTM2pixel ($node->coord, $map_info['xUTM'], $map_info['yUTM']);\n $map_info['xPixel'] = $point[0];\n $map_info['yPixel'] = $point[1];\n }\n }\n\n // Find quadrants of de map scaled.\n $map_info['width_quadrant'] = $map_info['width'] / $map_info['quadrants'] ;\n $map_info['height_quadrant'] = $map_info['height'] / $map_info['quadrants'] ;\n $quadrantsX = ceil (( $image_info['width'] / guifi_get_rel_scale( $map_info['scale'] ) ) / $map_info['width_quadrant'] );\n $quadrantsY = ceil (( $image_info['height'] / guifi_get_rel_scale( $map_info['scale'] ) ) / $map_info['height_quadrant'] );\n\n // Find de quadrant center of de map scaled from pixel x,y in center.\n $quadCentX = floor (( $map_info['xPixel'] / guifi_get_rel_scale( $map_info['scale'] ) ) / $map_info['width_quadrant'] );\n $quadCentY = floor (( $map_info['yPixel'] / guifi_get_rel_scale( $map_info['scale'] ) ) / $map_info['height_quadrant'] );\n \n // Find de quadrant top-left of de map scaled from pixel x,y in center.\n $map_info['quadX'] = $quadCentX - floor( $map_info['quadrants'] / 2 );\n $map_info['quadY'] = $quadCentY - floor( $map_info['quadrants'] / 2 );\n if ( $map_info['quadX'] > $quadrantsX - $map_info['quadrants'] )\n $map_info['quadX'] = $quadrantsX - $map_info['quadrants'];\n if ( $map_info['quadY'] > $quadrantsY - $map_info['quadrants'] )\n $map_info['quadY'] = $quadrantsY - $map_info['quadrants'];\n if ( $map_info['quadX'] < 0 ) $map_info['quadX'] = 0;\n if ( $map_info['quadY'] < 0 ) $map_info['quadY'] = 0;\n\n // Recalcule the width and heigth of scaled image\n if ( $map_info['quadX'] >= $quadrantsX - $map_info['quadrants'] ) \n $map_info['width'] = floor( ($image_info['width'] / guifi_get_rel_scale( $map_info['scale'] )) - ( $map_info['quadX'] * $map_info['width_quadrant'] ));\n if ( $map_info['quadY'] >= $quadrantsY - $map_info['quadrants'] ) \n $map_info['height'] = floor( ($image_info['height'] / guifi_get_rel_scale( $map_info['scale'] )) - ( $map_info['quadY'] * $map_info['height_quadrant'] ));\n\n // Calculem la distància de la màxima de la imatge\n if ( $node->valid ) {\n if ( $map_info['width'] < $map_info['height'] )\n $map_info['dist'] = floor($map_info['distX'] * ( $map_info['width'] * guifi_get_rel_scale( $map_info['scale'] ) ) / $image_info['width']);\n else\n $map_info['dist'] = floor($map_info['distY'] * ( $map_info['height'] * guifi_get_rel_scale( $map_info['scale'] ) ) / $image_info['height']);\n }\n \n/*\n echo \"<br />quadrantsX: \".$quadrantsX;\n echo \"<br />quadrantsY: \".$quadrantsY;\n echo \"<br />map_width: \".$image_info['width'];\n echo \"<br />map_height: \".$image_info['height'];\n*/ \n/*\n echo \"<br />datum: \".$map_info['datum'];\n echo \"<br />zone: \".$map_info['zone'];\n echo \"<br />nord: \".$map_info['nord'];\n echo \"<br />zoom: \".$map_info['zoom'];\n echo \"<br />dist: \".$map_info['dist'];\n echo \"<br />scale: \".$map_info['scale'];\n echo \"<br />xPixel: \".$map_info['xPixel'];\n echo \"<br />yPixel: \".$map_info['yPixel'];\n echo \"<br />xUTM: \".$map_info['xUTM'];\n echo \"<br />yUTM: \".$map_info['yUTM'];\n echo \"<br />lon: \".$map_info['londec'];\n echo \"<br />lan: \".$map_info['latdec'];\n\n echo \"<br />quadX: \".$map_info['quadX'];\n echo \"<br />quadY: \".$map_info['quadY'];\n echo \"<br />width: \".$map_info['width'];\n echo \"<br />height: \".$map_info['height'];\n*/ \n\n return $map_info;\n}", "function addPoint()\r\n{\r\n\t// --------- GLOBALIZE ---------\r\n\tglobal $db;\r\n\t// The 1st alias\r\n\t$name = GET_INC('name');\r\n\t// City? Lng? Lat?\r\n\t$city = GET_INC('city');\r\n\t$lng = GET_INC('lng');\r\n\t$lat = GET_INC('lat');\r\n\t// We need user ID\r\n\t$uid = GET_INC('uid');\r\n\t// Query?\r\n\t// Looks simple...\r\n\t$db->connDB();\r\n\t// insert into db\r\n\t$db->insert('bus_station', \"NULL,{$city},{$lng},{$lat}\");\r\n\t// get ID\r\n\t$db->query('SELECT MAX(id) FROM bus_station;');\r\n\t$res = $db->fetch_array();\r\n\t// insert 1st alias\r\n\t$db->insert('bus_sname', \"{$res[0]},{$name}\");\r\n\t// close db\r\n\t$db->closeDB();\r\n}", "abstract protected function buildMap();", "public function initMap()\n\t{\n\t\t$params =array();\n\t\t$this->add_VcMap($params);\n\t}", "function add_mappoint() {\n\tif(isset($_POST['addpoint'])){\n\t\tglobal $wpdb;\n\t\t$data_top = $_POST['data-top'];\n\t\t$data_left = $_POST['data-left'];\n\t\t$point_tile = $_POST['map_point_title'];\n\t\t$point_content = $_POST['mappoint_content'];\n\n\n\t\t$post_id = wp_insert_post(array (\n\t\t\t'post_type' => 'map-point',\n\t\t\t'post_title' => $point_tile,\n\t\t\t'post_content' => $point_content,\n\t\t\t'post_status' => 'publish',\n\t\t\t'comment_status' => 'closed', // if you prefer\n\t\t\t'ping_status' => 'closed', // if you prefer\n\t\t));\n\n\t\tif ($post_id) {\n\t\t\t// insert post meta\n\t\t\tadd_post_meta($post_id, '_data-top', $data_top);\n\t\t\tadd_post_meta($post_id, '_data-left', $data_left);\n\n\t\t}\n\n\t}\n}", "public function main()\n {\n $config = Div::getConfig();\n $config['id'] = 'map';\n $config['layer'] = 1;\n $config['mouse_navigation'] = true;\n $config['show_pan_zoom'] = 1;\n\n $field = Div::getTableConfig($this->P['table']);\n\n $this->connectionPool = GeneralUtility::makeInstance(ConnectionPool::class);\n $connection = $this->connectionPool->getConnectionForTable($this->P['table']);\n\n switch ($this->P['table']) {\n case 'tt_content':\n $res = $connection->executeQuery(\n 'SELECT ' .\n 'ExtractValue(pi_flexform,\\'/T3FlexForms[1]/data[1]/sheet[@index=\"sDEF\"]/language[@index=\"lDEF\"]/field[@index=\"' . $field['lon'] . '\"]/value[@index=\"vDEF\"]\\') AS lon, ' .\n 'ExtractValue(pi_flexform,\\'/T3FlexForms[1]/data[1]/sheet[@index=\"sDEF\"]/language[@index=\"lDEF\"]/field[@index=\"' . $field['lat'] . '\"]/value[@index=\"vDEF\"]\\') AS lat ' .\n 'FROM ' . $this->P['table'] . ' ' .\n 'WHERE uid = ' . intval($this->P['uid'])\n );\n $row = $res->fetch(FetchMode::ASSOCIATIVE);\n $js = 'function setBEcoordinates(lon,lat) {\n\t\t\t\t\t' . $this->getJSsetField($this->P, 'lon') . '\n\t\t\t\t\t' . $this->getJSsetField($this->P, 'lat', array($field['lon'] => $field['lat'])) . '\n\t\t\t\t\tclose();\n\t\t\t\t}';\n break;\n case 'tx_odsosm_vector':\n $res = $connection->executeQuery(\n 'SELECT ' .\n '(max_lon+min_lon)/2 AS lon, ' .\n '(max_lat+min_lat)/2 AS lat ' .\n 'FROM ' . $this->P['table'] . ' ' .\n 'WHERE uid = ' . intval($this->P['uid'])\n );\n $row = $res->fetch(FetchMode::ASSOCIATIVE);\n $js = 'function setBEfield(data) {\n\t\t\t\t\t' . $this->getJSsetField($this->P, 'data') . '\n\t\t\t\t\tclose();\n\t\t\t\t}';\n break;\n default:\n $res = $connection->select(\n [\n $field['lon'] . ' AS lon',\n $field['lat'] . ' AS lat'\n ],\n $this->P['table'],\n ['uid' => intval($this->P['uid'])]\n );\n $row = $res->fetch(FetchMode::ASSOCIATIVE);\n $js = 'function setBEcoordinates(lon,lat) {\n\t\t\t\t\t' . $this->getJSsetField($this->P, 'lon') . '\n\t\t\t\t\t' . $this->getJSsetField($this->P, 'lat', array($field['lon'] => $field['lat'])) . '\n\t\t\t\t\tclose();\n\t\t\t\t}';\n break;\n }\n\n $row['zoom'] = 15;\n\n if (floatval($row['lon']) == 0) {\n $row['lon'] = $config['default_lon'];\n $row['lat'] = $config['default_lat'];\n $row['zoom'] = $config['default_zoom'];\n }\n\n // Library\n $library = GeneralUtility::makeInstance(Openlayers::class);\n $library->init($config);\n $library->doc = $this->doc;\n $library->P = $this->P;\n\n // Layer\n $connection = $this->connectionPool->getConnectionForTable('tx_odsosm_layer');\n $layers = $connection->executeQuery('SELECT * FROM tx_odsosm_layer WHERE uid IN (' . $config['layer'] . ')');\n\n $this->doc->JScode .= '\n\t\t\t<script type=\"text/javascript\">\n\t\t\t\t' . $library->getMapBE($layers, $this->P['params']['mode'], $row['lat'], $row['lon'], $row['zoom'], $this->doc) . '\n\t\t\t\t' . $js . '\n\t\t\t</script>\n\t\t';\n\n $this->content .= '<div style=\"position:absolute;width:100%;height:100%;\" id=\"map\"></div><script type=\"text/javascript\">map();</script>';\n }", "abstract public function coordinates();", "public function setMap(array $map);", "private function getAllMap()\n {\n\n $args = array('burn_project_id'=>null,'agency_id'=>$_SESSION['user']['agency_id']);\n extract(merge_args(func_get_args(), $args));\n\n $status_icons = $this->status_icons;\n $user_id = $_SESSION['user']['id'];\n\n global $map_center;\n\n if (isset($agency_id)) {\n $markers = fetch_assoc(\"SELECT b.burn_id, b.status_id, b.location, CONCAT(bp.project_number, ': ', b.start_date, ' to ', b.end_date) as name, b.added_by FROM burns b JOIN burn_projects bp ON(b.burn_project_id = bp.burn_project_id) WHERE b.burn_project_id IN(SELECT burn_project_id FROM burn_projects WHERE agency_id = $agency_id);\");\n $zoom_to_fit = false;\n } elseif (isset($burn_project_id)) {\n $burn = fetch_row(\"SELECT burn_project_id, status_id, location FROM burn_projects WHERE burn_project_id = $burn_project_id;\");\n $markers = fetch_assoc(\"SELECT burn_id, status_id, location, added_by FROM burns WHERE burn_project_id = $burn_project_id;\");\n $zoom_to_fit = true;\n }\n\n if ($zoom_to_fit == true) {\n $zoom = \"map.fitBounds(bounds);\";\n } else {\n $zoom = \"\";\n }\n\n if ($burn['error'] == false && !empty($burn)) {\n $center = \"zoom: 6,\n center: new google.maps.LatLng($map_center),\";\n $latlng = explode(' ', str_replace(array(\"(\", \")\", \",\"), \"\", $burn['location']));\n $json_str = \"{ne:{lat:\".$latlng[2].\",lon:\".$latlng[3].\"},sw:{lat:\".$latlng[0].\",lon:\".$latlng[1].\"}}\";\n\n $bounds = \"\n // extend it using my two points\n var latlng = $json_str\n\n var bounds = new google.maps.LatLngBounds(\n new google.maps.LatLng(latlng.sw.lat,latlng.sw.lon),\n new google.maps.LatLng(latlng.ne.lat,latlng.ne.lon)\n );\n\n var rectangle = new google.maps.Rectangle({\n strokeColor: '#000',\n strokeOpacity: 0.4,\n strokeWeight: 2,\n fillColor: '#000',\n fillOpacity: 0.1,\n bounds: bounds,\n });\n\n rectangle.setMap(map);\";\n\n } else {\n $center = \"zoom: 6,\n center: new google.maps.LatLng({$map_center}),\";\n $bounds = \"\";\n }\n\n if ($markers['error'] == false) {\n // Construct the Marker array.\n $marker_arr = \"var Burns = [\\n \";\n $marker_len = count($markers);\n $i = 0;\n\n foreach ($markers as $value) {\n if (++$i === $marker_len) {\n $comma = \"\";\n } else {\n $comma = \",\";\n }\n if ($value['added_by'] == $user_id) {\n $edit = 'true';\n } else {\n $edit = 'false';\n }\n $marker_latlng = explode(' ', str_replace(array(\"(\",\")\",\",\"), \"\", $value['location']));\n $marker_status = $this->retrieveStatus($value['status_id']);\n $marker_arr .= \"[\".$value['burn_id'].\", \".$marker_latlng[0].\", \".$marker_latlng[1].\", '\".$value['name'].\"', '\".$marker_status['color'].\"', \".$edit.\",'\".str_replace(\" \", \"_\", strtolower($marker_status['title'])).\"']$comma\\n \";\n }\n\n $marker_arr .= \"];\\n\";\n\n // Append it to the function.\n $marker = \"\n $marker_arr\n\n function setMarkers(map, markers) {\n for (var i = 0; i < markers.length; i++) {\n var marker = markers[i];\n var myLatLng = new google.maps.LatLng(marker[1], marker[2]);\n\n if (checkLegacy()) {\n var marker = new google.maps.Marker({\n position: myLatLng,\n map: map,\n title: marker[3],\n id: marker[0]\n });\n } else {\n if (!marker[5]) {\n var marker = new google.maps.Marker({\n position: myLatLng,\n map: map,\n icon: {\n url: '/images/ros_' + marker[6] + '.png',\n scale: 0.1\n },\n title: marker[3],\n id: marker[0]\n });\n } else {\n var marker = new google.maps.Marker({\n position: myLatLng,\n map: map,\n icon: {\n path: google.maps.SymbolPath.CIRCLE,\n scale: 6,\n strokeColor: '#333',\n strokeOpacity: 1,\n strokeWeight: 1,\n fillColor: marker[4],\n fillOpacity: 1\n },\n title: marker[3],\n id: marker[0]\n });\n }\n }\n\n bindMarkers(map, marker);\n }\n\n function bindMarkers(map, marker)\n {\n google.maps.event.addListener(marker, 'click', function() {\n window.location='/manager/burn.php?burn=true&id='+marker.id;return false;\n });\n }\n }\n\n\n \";\n }\n\n $html = \"\n <style>\n\n\n .map-canvas {height:348px;}\n\n div.stations2 svg {\n position: absolute;\n }\n </style>\n <div class=\\\"map-canvas\\\" id=\\\"map$id\\\"></div>\n <script>\n\n var map = new google.maps.Map(document.getElementById('map$id'), {\n $center\n mapTypeId: google.maps.MapTypeId.TERRAIN,\n panControl: false,\n zoomControl: true,\n mapTypeControl: false,\n streetViewControl: false,\n scrollwheel: false\n });\n\n google.maps.event.trigger(map,'resize');\n\n $bounds\n\n $marker\n\n $zoom\n\n var Overlay = new Overlay();\n\n setMarkers(map, Burns);\n Overlay.setControls(map);\n\n </script>\n \";\n\n return $html;\n }", "function section__map(){\n return array(\n 'content'=>\"<div style='width:300px; height:300px' style='\n margin-left:auto; margin-right:auto;' id='map'></div>\",\n 'class'=>'main',\n 'label'=>'Map',\n 'order'=>'1'\n );\n }", "private function renderMapMarkerPoints()\n {\n static $arrLabels = array();\n\n $mapMarkers = array();\n $lons = array();\n $lats = array();\n\n // Get category labels\n if ( empty( $arrLabels ) )\n {\n $arrLabels = $this->renderMapMarkerPointsCatLabels();\n }\n // Get category labels\n // #i0118, dwildt, 1-/+\n //$arrCategoriesFlipped = array_flip( $this->arrCategories[ 'labels' ] );\n $arrCategoriesFlipped = array_flip( ( array ) $this->arrCategories[ 'labels' ] );\n\n // LOOP row\n//$this->pObj->dev_var_dump( $this->pObj->rows );\n foreach ( $this->pObj->rows as $row )\n {\n // Get mapMarkers, lats and lons\n $arr_result = $this->renderMapMarkerPointsPoint( $row, $arrLabels, $arrCategoriesFlipped );\n//$this->pObj->dev_var_dump( $arr_result );\n $mapMarkers = array_merge( $mapMarkers, $arr_result[ 'data' ][ 'mapMarkers' ] );\n $lats = array_merge( $lats, $arr_result[ 'data' ][ 'lats' ] );\n $lons = array_merge( $lons, $arr_result[ 'data' ][ 'lons' ] );\n unset( $arr_result );\n // Get mapMarkers, lats and lons\n }\n // LOOP row\n // DRS\n switch ( true )\n {\n case( $mapMarkers == null ):\n case(!is_array( $mapMarkers ) ):\n case( ( is_array( $mapMarkers ) ) && ( count( $mapMarkers ) < 1 ) ):\n if ( $this->pObj->b_drs_error )\n {\n $prompt = 'JSON array is null.';\n t3lib_div :: devLog( '[ERROR/BROWSERMAPS] ' . $prompt, $this->pObj->extKey, 3 );\n $prompt = 'You will get an empty map!';\n t3lib_div :: devLog( '[WARN/BROWSERMAPS] ' . $prompt, $this->pObj->extKey, 2 );\n $prompt = 'Please check the TypoScript Constant Editor > Category [BROWSER - MAP].';\n t3lib_div :: devLog( '[HELP/BROWSERMAPS] ' . $prompt, $this->pObj->extKey, 1 );\n }\n break;\n default:\n if ( $this->pObj->b_drs_map )\n {\n $prompt = 'JSON array seem\\'s to be proper.';\n t3lib_div :: devLog( '[OK/BROWSERMAPS] ' . $prompt, $this->pObj->extKey, -1 );\n $prompt = 'If you have an unexpected effect in your map, please check the JSON array from below!';\n t3lib_div :: devLog( '[HELP/BROWSERMAPS] ' . $prompt, $this->pObj->extKey, 1 );\n }\n break;\n }\n // DRS\n // Return array\n $arr_return = array\n (\n 'data' => array\n (\n 'mapMarkers' => $mapMarkers,\n 'lats' => $lats,\n 'lons' => $lons\n )\n );\n // Return array\n // #65184, 150221, dwildt, +\n $this->marker = $mapMarkers;\n\n return $arr_return;\n }", "public function actionMap()\r\n\t{\r\n\t\t$this->render('map');\r\n\t}", "function gmap_obj($args){\n /*\n $args = array(\n 'id' => \"map-lyra\",\n 'lattitude' => \"43.5414097\",\n 'longitude' => \"1.5165507000000389\",\n 'zoom' => 16,\n 'address' => null,\n 'map_text' => null,\n );*/\n\n $output = \"<script src='https://maps.googleapis.com/maps/api/js?key=&sensor=false&extension=.js'></script>\";\n\n $output .= \"<script>\n google.maps.event.addDomListener(window, 'load', init);\n var map;\n function init() {\n var mapOptions = {\n center: new google.maps.LatLng(\".$args['lattitude'].\",\".$args['longitude'].\"),\n zoom: \".$args['zoom'].\",\n zoomControl: true,\n zoomControlOptions: {\n style: google.maps.ZoomControlStyle.SMALL\n },\n disableDoubleClickZoom: true,\n mapTypeControl: true,\n mapTypeControlOptions: {\n style: google.maps.MapTypeControlStyle.DROPDOWN_MENU\n },\n scaleControl: true,\n scrollwheel: false,\n panControl: true,\n streetViewControl: false,\n draggable : true,\n overviewMapControl: false,\n overviewMapControlOptions: {\n opened: false\n },\n mapTypeId: google.maps.MapTypeId.ROADMAP,\n styles: [{\\\"featureType\\\":\\\"all\\\",\\\"elementType\\\":\\\"all\\\",\\\"stylers\\\":[{\\\"saturation\\\":-100},{\\\"gamma\\\":0.5}]}]\n };\n var mapElement = document.getElementById('\".$args['id'].\"');\n var map = new google.maps.Map(mapElement, mapOptions);\n var locations = [\n ['\".$args['map_text'].\"', '\".$args['address'].\"', 'undefined', 'undefined','undefined', \".$args['lattitude'].\", \".$args['longitude'].\", '\".get_template_directory_uri().\"/img/marker.png']\n ];\n for (i = 0; i < locations.length; i++) {\n if (locations[i][1] =='undefined'){ description ='';} else { description = locations[i][1];}\n if (locations[i][2] =='undefined'){ telephone ='';} else { telephone = locations[i][2];}\n if (locations[i][3] =='undefined'){ email ='';} else { email = locations[i][3];}\n if (locations[i][4] =='undefined'){ web ='';} else { web = locations[i][4];}\n if (locations[i][7] =='undefined'){ markericon ='';} else { markericon = locations[i][7];}\n marker = new google.maps.Marker({\n icon: markericon,\n position: new google.maps.LatLng(locations[i][5], locations[i][6]),\n map: map,\n title: locations[i][0],\n desc: description,\n tel: telephone,\n email: email,\n web: web\n });\n if (web.substring(0, 7) != \\\"http://\\\") {\n link = \\\"http://\\\" + web;\n } else {\n link = web;\n }\n bindInfoWindow(marker, map, locations[i][0], description, telephone, email, web, link);\n }\n function bindInfoWindow(marker, map, title, desc, telephone, email, web, link) {\n var infoWindowVisible = (function () {\n var currentlyVisible = false;\n return function (visible) {\n if (visible !== undefined) {\n currentlyVisible = visible;\n }\n return currentlyVisible;\n };\n }());\n iw = new google.maps.InfoWindow();\n google.maps.event.addListener(marker, 'click', function() {\n if (infoWindowVisible()) {\n iw.close();\n infoWindowVisible(false);\n } else {\n var html= \\\"<div style='color:#000;background-color:#fff;padding:5px;width:90%;'><h4>\\\"+title+\\\"</h4><p>\\\"+desc+\\\"<p><a href='mailto:\\\"+email+\\\"' >\\\"+email+\\\"<a><a href='\\\"+link+\\\"'' >\\\"+web+\\\"<a></div>\\\";\n iw = new google.maps.InfoWindow({content:html});\n iw.open(map,marker);\n infoWindowVisible(true);\n }\n });\n google.maps.event.addListener(iw, 'closeclick', function () {\n infoWindowVisible(false);\n });\n }\n }\n</script>\";\n\n return $output;\n}", "public function test_make_coordinates_1()\n {\n $coord = \"-120\";\n $dd = \\SimpleMappr\\Mappr::makeCoordinates($coord);\n $this->assertEquals($dd[0], null);\n $this->assertEquals($dd[1], null);\n }", "function addMappoint($latitude, $longitude, $name)\n {\n $x = (($longitude + 180) * ($this->_mapSize['X'] / 360));\n $y = ((($latitude * -1) + 90) * ($this->_mapSize['Y'] / 180));\n $this->_mapPoints[$name] = array('X' => $x, 'Y' => $y);\n }", "public static function point();", "function get_map($source)\n{\n // for dest_position, 0/1/2 denotes root/extras/resources.\n $map_json = array(\n 'title' => array('title', 0),\n 'notes' => array('description', 0),\n 'publisher' => array('publisher', 1),\n 'public_access_level' => array('accessLevel', 1),\n 'contact_email' => array('mbox', 1),\n 'contact_name' => array('person', 1),\n 'unique_id' => array('identifier', 1),\n 'tags' => array('keyword', 0),\n 'tag_string' => array('keyword', 0),\n 'data_dictionary' => array('dataDictionary', 1),\n 'license_title' => array('license', 0),\n 'category' => array('theme', 1),\n 'spatial' => array('spatial', 1),\n 'temporal' => array('temporal', 1),\n 'release_date' => array('issued', 1),\n 'accrual_periodicity' => array('accrualPeriodicity', 1),\n 'related_documents' => array('references', 1),\n 'language' => array('language', 1),\n 'data_quality' => array('dataQuality', 1),\n 'homepage_url' => array('landingPage', 1),\n 'system_of_records' => array('systemOfRecords', 1),\n 'url' => array('accessURL', 2),\n 'format' => array('format', 2),\n );\n\n // 'dest_key' => array('source_key', dest_position)\n // for dest_position, 0/1/2 denotes root/extras/resources.\n $map_datajson = array(\n 'title' => array('title', 0),\n 'notes' => array('description', 0),\n 'publisher' => array('publisher', 1),\n 'public_access_level' => array('accessLevel', 1),\n 'contact_email' => array('mbox', 1),\n 'contact_name' => array('contactPoint', 1),\n 'unique_id' => array('identifier', 1),\n 'tags' => array('keyword', 0),\n 'tag_string' => array('keyword', 0),\n 'data_dictionary' => array('dataDictionary', 1),\n 'license_title' => array('license', 0),\n 'category' => array('theme', 1),\n 'spatial' => array('spatial', 1),\n 'temporal' => array('temporal', 1),\n 'release_date' => array('issued', 1),\n 'accrual_periodicity' => array('accrualPeriodicity', 1),\n 'related_documents' => array('references', 1),\n 'bureau_code' => array('bureauCode', 1),\n 'program_code' => array('programCode', 1),\n 'language' => array('language', 1),\n 'data_quality' => array('dataQuality', 1),\n 'homepage_url' => array('landingPage', 1),\n //'system_of_records' => array('systemOfRecords', 1),\n 'url' => array('accessURL', 2),\n 'format' => array('format', 2),\n );\n\n // 'dest_key' => array('source_key', dest_position)\n // for dest_position, 0/1/2 denotes root/extras/resources.\n $map_socratajson = array(\n 'title' => array('title', 0),\n 'notes' => array('description', 0),\n 'publisher' => array('publisher', 1),\n 'public_access_level' => array('accessLevel', 1),\n 'contact_email' => array('mbox', 1),\n 'contact_name' => array('contactPoint', 1),\n 'unique_id' => array('identifier', 1),\n 'tags' => array('keyword', 0),\n 'tag_string' => array('keyword', 0),\n 'data_dictionary' => array('dataDictionary', 1),\n 'license_title' => array('license', 0),\n 'category' => array('theme', 1),\n 'spatial' => array('spatial', 1),\n 'temporal' => array('temporal', 1),\n 'release_date' => array('issued', 1),\n 'accrual_periodicity' => array('accrualPeriodicity', 1),\n 'related_documents' => array('references', 1),\n 'bureau_code' => array('bureauCode', 1),\n 'program_code' => array('programCode', 1),\n 'language' => array('language', 1),\n 'data_quality' => array('dataQuality', 1),\n 'homepage_url' => array('landingPage', 1),\n //'system_of_records' => array('systemOfRecords', 1),\n 'upload' => array('upload', 2),\n 'format' => array('format', 2),\n 'name' => array('name', 2),\n 'modified' => array('modified',1),\n );\n\n // 'dest_key' => array('source_key', dest_position, source_position)\n // 0/1/2 denotes root/extras/resources.\n $map_ckan = array(\n 'title' => array('title', 0, 0),\n 'notes' => array('notes', 0, 0),\n // hard-code publisher to orgnization.title in ckan_map for now.\n // todo: change this map structure.\n 'publisher' => array('place-holder', 1, 1),\n 'public_access_level' => array('access-level', 1, 1),\n 'contact_email' => array('contact-email', 1, 1),\n 'contact_name' => array('person', 1, 1),\n 'unique_id' => array('id', 1, 0),\n 'tags' => array('tags', 0, 1),\n 'tag_string' => array('keyword', 0),\n 'data_dictionary' => array('data-dictiionary', 1, 1), // there is a typo.\n 'license_title' => array('license_title', 0, 0),\n 'spatial' => array('spatial-text', 1, 1),\n 'temporal' => array('dataset-reference-date', 1, 1),\n 'release_date' => array('issued', 1, 1),\n 'accrual_periodicity' => array('frequency-of-update', 1, 1),\n 'related_documents' => array('references', 1, 1),\n 'language' => array('metadata-language', 1, 1),\n 'homepage_url' => array('url', 1, 0),\n 'url' => array('url', 2, 2),\n 'name' => array('name', 2, 2),\n 'format' => array('format', 2, 2),\n );\n\n $ret_map = \"map_$source\";\n return isset($$ret_map) ? $$ret_map : null;\n}", "public function __construct($map = null) {\n // check if map is not set\n if (!$map) {\n // default to a standard-sized Tetris map\n $map = new Map(10, 18);\n }\n\n // remember the map\n $this->map = $map;\n }", "public function __construct($map= []) {\n $this->map= $map;\n }", "public function CreateMap($data){\n $this->name = htmlentities(ucwords(strtolower($data->name)));\n $this->description = htmlentities($data->description);\n $this->lat = htmlentities($data->lat);\n $this->long = htmlentities($data->long);\n $this->type = htmlentities(ucwords($data->type));\n $this->email = htmlentities(strtolower($data->email));\n $this->website = filter_var(strtolower($data->website), FILTER_SANITIZE_URL);\n $this->phone_number = htmlentities(str_replace(\" \", \"\", $data->phone_number));\n\n }", "function __construct() {\n $this->map = array();\n }", "private function initBingMaps()\n {\n if(is_array($this->type) && array_key_exists(0, $this->type) && $this->type[0] == self::TYPE_BINGMAPS) {\n if(!array_key_exists('apiKey', $this->type) && OpenLayersComponent::getProperty('bingMapsKey') === null) {\n throw new InvalidConfigException(\"If you use Bing Map type, you need to set api key!\");\n } elseif(!array_key_exists('apiKey', $this->type)) {\n $this->type['apiKey'] = OpenLayersComponent::getProperty('bingMapsKey');\n }\n \n if(!array_key_exists('mapType', $this->type)) {\n $this->type['mapType'] = 'AerialWithLabels';\n }\n }\n \n if($this->type == self::TYPE_BINGMAPS) {\n \n if(OpenLayersComponent::getProperty('bingMapsKey') === null) {\n throw new InvalidConfigException(\"If you use Bing Map type, you need to set api key!\");\n }\n \n $this->type = [\n self::TYPE_BINGMAPS,\n 'mapType' => 'AerialWithLabels',\n 'apiKey' => OpenLayersComponent::getProperty('bingMapsKey'),\n ];\n }\n }", "function cs_pb_map($die = 0){\n\tglobal $cs_node, $count_node, $post;\n\tif ( isset($_POST['action']) ) {\n\t\t$name = $_POST['action'];\n\t\t$counter = $_POST['counter'];\n\t\t$map_element_size = '25';\n\t\t$map_title = '';\n\t\t$map_height = '';\n\t\t$map_lat = '';\n\t\t$map_lon = '';\n\t\t$map_zoom = '';\n\t\t$map_type = '';\n\t\t$map_info = '';\n\t\t$map_info_width = '';\n\t\t$map_info_height = '';\n\t\t$map_marker_icon = '';\n\t\t$map_show_marker = '';\n\t\t$map_controls = '';\n\t\t$map_draggable = '';\n\t\t$map_scrollwheel = '';\n\t\t$map_view= '';\n\t}\n\telse {\n\t\t$name = $cs_node->getName();\n\t\t\t$count_node++;\n\t\t\t$map_element_size = $cs_node->map_element_size;\n\t\t\t$map_title \t= $cs_node->map_title;\n\t\t\t$map_height = $cs_node->map_height;\n\t\t\t$map_lat \t= $cs_node->map_lat;\n\t\t\t$map_lon \t= $cs_node->map_lon;\n\t\t\t$map_zoom \t= $cs_node->map_zoom;\n\t\t\t$map_type = $cs_node->map_type;\n\t\t\t$map_info = $cs_node->map_info;\n\t\t\t$map_info_width = $cs_node->map_info_width;\n\t\t\t$map_info_height = $cs_node->map_info_height;\n\t\t\t$map_marker_icon = $cs_node->map_marker_icon;\n\t\t\t$map_show_marker = $cs_node->map_show_marker;\n\t\t\t$map_controls = $cs_node->map_controls;\n\t\t\t$map_draggable = $cs_node->map_draggable;\n\t\t\t$map_scrollwheel = $cs_node->map_scrollwheel;\n\t\t\t$map_view \t= $cs_node->map_view;\n\t\t\t$counter \t= $post->ID.$count_node;\n}\n?> \n\t<div id=\"<?php echo $name.$counter?>_del\" class=\"column parentdelete column_<?php echo $map_element_size?>\" item=\"map\" data=\"<?php echo element_size_data_array_index($map_element_size)?>\" >\n \t<div class=\"column-in\">\n <h5><?php echo ucfirst(str_replace(\"cs_pb_\",\"\",$name))?></h5>\n <input type=\"hidden\" name=\"map_element_size[]\" class=\"item\" value=\"<?php echo $map_element_size?>\" >\n <a href=\"javascript:hide_all('<?php echo $name.$counter?>')\" class=\"options\">Options</a> &nbsp; \n <a href=\"#\" class=\"delete-it btndeleteit\">Del</a> &nbsp; \n <a class=\"decrement\" onclick=\"javascript:decrement(this)\">Dec</a> &nbsp; \n <a class=\"increment\" onclick=\"javascript:increment(this)\">Inc</a>\n\t\t</div>\n \t<div class=\"poped-up\" id=\"<?php echo $name.$counter?>\" style=\"border:none; background:#f8f8f8;\" >\n <div class=\"opt-head\">\n <h5>Edit Map Options</h5>\n <a href=\"javascript:show_all('<?php echo $name.$counter?>')\" class=\"closeit\">&nbsp;</a>\n </div>\n <div class=\"opt-conts\">\n \t<ul class=\"form-elements\">\n <li class=\"to-label\"><label>Title</label></li>\n <li class=\"to-field\"><input type=\"text\" name=\"map_title[]\" class=\"txtfield\" value=\"<?php echo $map_title?>\" /></li>\n </ul>\n\t\t\t\t<ul class=\"form-elements\">\n <li class=\"to-label\"><label>Map Height</label></li>\n <li class=\"to-field\">\n \t<input type=\"text\" name=\"map_height[]\" class=\"txtfield\" value=\"<?php echo $map_height?>\" />\n <p>Info Max Height in PX (Default is 200)</p>\n </li>\n </ul>\n <ul class=\"form-elements\">\n <li class=\"to-label\"><label>Latitude</label></li>\n <li class=\"to-field\">\n \t<input type=\"text\" name=\"map_lat[]\" class=\"txtfield\" value=\"<?php echo $map_lat?>\" />\n <p>Put Latitude (Default is 0)</p>\n </li>\n </ul>\n <ul class=\"form-elements\">\n <li class=\"to-label\"><label>Longitude</label></li>\n <li class=\"to-field\">\n \t<input type=\"text\" name=\"map_lon[]\" class=\"txtfield\" value=\"<?php echo $map_lon?>\" />\n <p>Put Longitude (Default is 0)</p>\n </li>\n </ul>\n <ul class=\"form-elements\">\n <li class=\"to-label\"><label>Zoom</label></li>\n <li class=\"to-field\">\n \t<input type=\"text\" name=\"map_zoom[]\" class=\"txtfield\" value=\"<?php echo $map_zoom?>\" />\n <p>Put Zoom Level (Default is 11)</p>\n </li>\n </ul>\n <ul class=\"form-elements\">\n <li class=\"to-label\"><label>Map Types</label></li>\n <li class=\"to-field\">\n <select name=\"map_type[]\" class=\"dropdown\" >\n <option <?php if($map_type==\"ROADMAP\")echo \"selected\";?> >ROADMAP</option>\n <option <?php if($map_type==\"HYBRID\")echo \"selected\";?> >HYBRID</option>\n <option <?php if($map_type==\"SATELLITE\")echo \"selected\";?> >SATELLITE</option>\n <option <?php if($map_type==\"TERRAIN\")echo \"selected\";?> >TERRAIN</option>\n </select>\n </li>\n </ul>\n <ul class=\"form-elements\">\n <li class=\"to-label\"><label>Info Text</label></li>\n <li class=\"to-field\"><input type=\"text\" name=\"map_info[]\" class=\"txtfield\" value=\"<?php echo $map_info?>\" /></li>\n </ul>\n <ul class=\"form-elements\">\n <li class=\"to-label\"><label>Info Max Width</label></li>\n <li class=\"to-field\">\n \t<input type=\"text\" name=\"map_info_width[]\" class=\"txtfield\" value=\"<?php echo $map_info_width?>\" />\n <p>Info Max Width in PX (Default is 200)</p>\n </li>\n </ul>\n <ul class=\"form-elements\">\n <li class=\"to-label\"><label>Info Max Height</label></li>\n <li class=\"to-field\">\n \t<input type=\"text\" name=\"map_info_height[]\" class=\"txtfield\" value=\"<?php echo $map_info_height?>\" />\n <p>Info Max Height in PX (Default is 100)</p>\n </li>\n </ul>\n <ul class=\"form-elements\">\n <li class=\"to-label\"><label>Marker Icon Path</label></li>\n <li class=\"to-field\">\n \t<input type=\"text\" name=\"map_marker_icon[]\" class=\"txtfield\" value=\"<?php echo $map_marker_icon?>\" />\n <p>e.g. http://yourdomain.com/logo.png</p>\n </li>\n </ul>\n <ul class=\"form-elements\">\n <li class=\"to-label\"><label>Show Marker</label></li>\n <li class=\"to-field\">\n <select name=\"map_show_marker[]\" class=\"dropdown\" >\n <option value=\"true\" <?php if($map_show_marker==\"true\")echo \"selected\";?> >On</option>\n <option value=\"false\" <?php if($map_show_marker==\"false\")echo \"selected\";?> >Off</option>\n </select>\n </li>\n </ul>\n <ul class=\"form-elements\">\n <li class=\"to-label\"><label>Disable Map Controls</label></li>\n <li class=\"to-field\">\n <select name=\"map_controls[]\" class=\"dropdown\" >\n <option value=\"false\" <?php if($map_controls==\"false\")echo \"selected\";?> >Off</option>\n <option value=\"true\" <?php if($map_controls==\"true\")echo \"selected\";?> >On</option>\n </select>\n </li>\n </ul>\n <ul class=\"form-elements\">\n <li class=\"to-label\"><label>Draggable</label></li>\n <li class=\"to-field\">\n <select name=\"map_draggable[]\" class=\"dropdown\" >\n <option value=\"true\" <?php if($map_draggable==\"true\")echo \"selected\";?> >On</option>\n <option value=\"false\" <?php if($map_draggable==\"false\")echo \"selected\";?> >Off</option>\n </select>\n </li>\n </ul>\n <ul class=\"form-elements\">\n <li class=\"to-label\"><label>Scroll Wheel</label></li>\n <li class=\"to-field\">\n\n <select name=\"map_scrollwheel[]\" class=\"dropdown\" >\n <option value=\"true\" <?php if($map_scrollwheel==\"true\")echo \"selected\";?> >On</option>\n <option value=\"false\" <?php if($map_scrollwheel==\"false\")echo \"selected\";?> >Off</option>\n </select>\n </li>\n </ul>\n <ul class=\"form-elements\">\n <li class=\"to-label\"><label>Map View</label></li>\n <li class=\"to-field\">\n <select name=\"map_view[]\" class=\"dropdown\" >\n <option <?php if($map_view==\"content\")echo \"selected\";?> >content</option>\n <option <?php if($map_view==\"header\")echo \"selected\";?> >header</option>\n </select>\n </li>\n </ul>\n <ul class=\"form-elements noborder\">\n <li class=\"to-label\"></li>\n <li class=\"to-field\">\n \t<input type=\"hidden\" name=\"cs_orderby[]\" value=\"map\" />\n <input type=\"button\" value=\"Save\" style=\"margin-right:10px;\" onclick=\"javascript:show_all('<?php echo $name.$counter?>')\" />\n </li>\n </ul>\n </div>\n\n </div>\n </div>\n<?php\n\tif ( $die <> 1 ) die();\n}", "function findMidpoint ($p1, $p2) {\n return new Point(($p1->lat + $p2->lat)/2, ($p1->lng + $p2->lng)/2);\n }", "function download_map($realm, $sx, $sy)\n{\n // \"Constants\"\n $border_size = 35;\n $room_size = 90;\n $roomnameclip = 15;\n\n // Get realm mins/maxs/size\n $x_min = $GLOBALS['SITE_DB']->query_select_value('w_rooms', 'MIN(location_x)', array('location_realm' => $realm));\n $y_min = $GLOBALS['SITE_DB']->query_select_value('w_rooms', 'MIN(location_y)', array('location_realm' => $realm));\n $x_max = $GLOBALS['SITE_DB']->query_select_value('w_rooms', 'MAX(location_x)', array('location_realm' => $realm));\n $y_max = $GLOBALS['SITE_DB']->query_select_value('w_rooms', 'MAX(location_y)', array('location_realm' => $realm));\n $x_rooms = $x_max - $x_min + 1;\n $y_rooms = $y_max - $y_min + 1;\n\n // Create image\n $width = $border_size * 2 + $room_size * $x_rooms;\n $height = $border_size * 2 + $room_size * $y_rooms;\n $my_img = imagecreate($width, $height);\n $bgcolor = imagecolorallocate($my_img, 0xff, 0xff, 0xff); // Map background colour\n $cucolor = imagecolorallocate($my_img, 0x00, 0xff, 0x00); // Current Room colour\n $rmcolor = imagecolorallocate($my_img, 0xdd, 0xdd, 0xdd); // Room colour\n $txcolor = imagecolorallocate($my_img, 0x00, 0x00, 0xff); // Text colour\n $wlcolor = imagecolorallocate($my_img, 0xff, 0x00, 0x00); // Wall colour\n imagefill($my_img, 0, 0, $bgcolor);\n\n // Load font\n $my_font = 0;\n\n $member_id = get_member();\n\n // Draw rooms\n for ($x = $x_min; $x <= $x_max; $x++) {\n for ($y = $y_min; $y <= $y_max; $y++) {\n // Check the room exists\n $rooms = $GLOBALS['SITE_DB']->query_select('w_rooms', array('*'), array('location_x' => $x, 'location_y' => $y, 'location_realm' => $realm), '', 1);\n if (!array_key_exists(0, $rooms)) {\n continue;\n }\n $room = $rooms[0];\n $name = $room['name'];\n\n $portal = ($room['allow_portal'] == 1) ? do_lang('W_PORTAL_SPOT') : '';\n\n // Check user has been in room, to see if we perhaps need to mask the room name\n $yes = $GLOBALS['SITE_DB']->query_select_value_if_there('w_travelhistory', 'member_id', array('x' => $x, 'y' => $y, 'realm' => $realm, 'member_id' => $member_id));\n if (!isset($yes)) {\n $name = do_lang('W_UNKNOWN_ROOM_NAME');\n }\n\n // Room surrounding ordinates\n $_x = $x - $x_min;\n $_y = $y - $y_min;\n $ax = $_x * $room_size + $border_size + 1;\n $ay = $_y * $room_size + $border_size + 1;\n $bx = $_x * $room_size + $border_size + $room_size - 1;\n $by = $_y * $room_size + $border_size + $room_size - 1;\n\n $owner = $GLOBALS['FORUM_DRIVER']->get_username($room['owner']);\n if (is_null($owner)) {\n $owner = do_lang('UNKNOWN');\n }\n\n // Draw room\n if (($x == $sx) && ($y == $sy)) {\n imagerectangle($my_img, $ax + 3, $ay + 3, $bx - 3, $by - 3, $cucolor);\n }\n imagerectangle($my_img, $ax, $ay, $bx, $by, $rmcolor);\n\n // Draw room borders if the walls are locked (solid/no-door)\n if ($room['locked_left'] == 1) {\n imageline($my_img, $ax, $ay, $ax, $by, $wlcolor);\n }\n if ($room['locked_right'] == 1) {\n imageline($my_img, $bx, $ay, $bx, $by, $wlcolor);\n }\n if ($room['locked_up'] == 1) {\n imageline($my_img, $ax, $ay, $bx, $ay, $wlcolor);\n }\n if ($room['locked_down'] == 1) {\n imageline($my_img, $ax, $by, $bx, $by, $wlcolor);\n }\n\n // Draw room name and coordinate\n $room_name1 = substr($name, 0, $roomnameclip);\n $room_name2 = substr($name, $roomnameclip, $roomnameclip);\n $room_name3 = substr($name, $roomnameclip * 2, $roomnameclip);\n $room_name4 = substr($name, $roomnameclip * 3);\n imagestring($my_img, $my_font, $ax + 2, $ay + 2 + (imagefontheight($my_font) + 2) * 0, $room_name1, $txcolor);\n imagestring($my_img, $my_font, $ax + 2, $ay + 2 + (imagefontheight($my_font) + 2) * 1, $room_name2, $txcolor);\n imagestring($my_img, $my_font, $ax + 2, $ay + 2 + (imagefontheight($my_font) + 2) * 2, $room_name3, $txcolor);\n imagestring($my_img, $my_font, $ax + 2, $ay + 2 + (imagefontheight($my_font) + 2) * 3, $room_name4, $txcolor);\n imagestring($my_img, $my_font, $ax + 2, $ay + 2 + (imagefontheight($my_font) + 2) * 4, $portal, $txcolor);\n imagestring($my_img, $my_font, $ax + 2, $ay + 2 + (imagefontheight($my_font) + 2) * 6, \":$x:$y\", $txcolor);\n imagestring($my_img, $my_font, $ax + 2, $ay + 2 + (imagefontheight($my_font) + 2) * 7, \"$owner\", $txcolor);\n }\n }\n\n // Output to browser\n header('Content-Type: image/png');\n header('Content-Disposition: inline; filename=realm' . strval($realm) . '_map.png');\n if (cms_srv('REQUEST_METHOD') == 'HEAD') {\n return;\n }\n imagepng($my_img);\n}", "private function renderMapMarkerPointsPoint( $row, $arrLabels, $arrCategoriesFlipped )\n {\n $mapMarkers = array();\n $lons = array();\n $lats = array();\n\n $dontHandle00 = $this->confMap[ 'configuration.' ][ '00Coordinates.' ][ 'dontHandle' ];\n\n // Get category properties\n $catValues = $this->renderMapMarkerPointsPointProperties( $row );\n//$this->pObj->dev_var_dump( $row, $catValues, $arrLabels );\n // FOREACH category title\n foreach ( $catValues[ 'catTitles' ] as $key => $catTitle )\n {\n // Add cObj->data\n $this->renderMapMarkerPointsPointCobjDataAdd( $row, $arrLabels, $catValues, $key );\n\n // Get the longitude and latitude\n $lon = $this->renderMapMarkerVariablesSystemItem( 'longitude' );\n $lat = $this->renderMapMarkerVariablesSystemItem( 'latitude' );\n//$this->pObj->dev_var_dump( 'lat: ' . $lat . ', lon: ' . $lon );\n // SWITCH logitude and latitude\n switch ( true )\n {\n case( $lon . $lat == '' ):\n // CONTINUE: longitude and latitude are empty\n if ( $this->pObj->b_drs_warn )\n {\n $prompt = 'lon and lat are empty. Record won\\'t handled!';\n t3lib_div :: devLog( '[WARN/BROWSERMAPS] ' . $prompt, $this->pObj->extKey, 2 );\n }\n continue 2;\n case( $dontHandle00 && $lon == 0 && $lat == 0 ):\n // CONTINUE: longitude and latitude are 0 and 0,0 shouldn't handled\n if ( $this->pObj->b_drs_warn )\n {\n $prompt = 'lon and lat are 0. And 0 should not handled. Record won\\'t handled!';\n t3lib_div :: devLog( '[WARN/BROWSERMAPS] ' . $prompt, $this->pObj->extKey, 2 );\n }\n continue 2;\n }\n // SWITCH logitude and latitude\n // Get the longitude and latitude\n // Get the category label\n //$catTitleWoSpc = str_replace( ' ', null, $catTitle );\n $catTitleWoSpc = $this->zz_properFormLabel( $catTitle );\n\n // Get the description\n $description = $this->renderMapMarkerVariablesSystemItem( 'description' );\n if ( empty( $description ) )\n {\n $description = 'Content is empty!<br />' . PHP_EOL\n . 'Please take care of a proper configuration '\n . 'of the TypoScript property marker.mapMarker.description!'\n ;\n }\n\n // #i0019, 130717, dwildt, 1+\n $description = str_replace( $this->catDevider, $this->pObj->objTyposcript->str_sqlDeviderDisplay, $description );\n // #i0018, 130901, dwildt, 1+\n $description = str_replace( \"'\", null, $description );\n // Get the description\n // Get the url\n////$lastItem = count( $this->pObj->cObj->data ) - 1;\n////$this->pObj->dev_var_dump( $this->pObj->cObj->data[ $lastItem ] );\n//$this->pObj->dev_var_dump( $this->pObj->cObj->data );\n $url = $this->renderMapMarkerVariablesSystemItem( 'url' );\n //var_dump( __METHOD__, __LINE__, $this->pObj->cObj->data['mapLinkToSingle'], $url );\n // Get the number\n $number = $this->renderMapMarkerVariablesSystemItem( 'number' );\n\n $arrReturn = $this->renderMapMarkerPointsPointIcon( $arrCategoriesFlipped, $catTitle );\n $catIconMap = $arrReturn[ 'path' ];\n $iconKey = $arrReturn[ 'key' ];\n $iconOffsetX = $arrReturn[ 'offsetX' ];\n $iconOffsetY = $arrReturn[ 'offsetY' ];\n // Get the icon properties\n // Get markerTable and markerUid\n switch ( true )\n {\n case( $row[ 'markerTable' ] ):\n $markerTable = $row[ 'markerTable' ];\n $routeLabel = $row[ 'routeLabel' ];\n $type = 'route';\n break;\n case( $catValues[ 'markerTable' ] ):\n default:\n $markerTable = $catValues[ 'markerTable' ];\n $routeLabel = null;\n $type = 'category';\n break;\n }\n $markerUid = $catValues[ 'markerUid' ];\n // 130612, dwildt, 4+\n if ( empty( $markerUid ) )\n {\n $markerUid = 'uid';\n }\n // Get markerTable and markerUid\n//$this->pObj->dev_var_dump( $row, $catValues );\n // Set mapMarker\n $mapMarker = array\n (\n 'cat' => $catTitleWoSpc,\n 'desc' => $description,\n 'number' => $number,\n 'lon' => ( double ) $lon,\n 'lat' => ( double ) $lat,\n 'url' => $url,\n 'catIconMap' => $catIconMap,\n 'iconKey' => $iconKey,\n 'iconOffsetX' => $iconOffsetX,\n 'iconOffsetY' => $iconOffsetY,\n 'markerUid' => $markerUid,\n 'markerTable' => $markerTable,\n 'routeLabel' => $routeLabel,\n 'type' => $type\n );\n // Set mapMarker\n // Unset some mapMarker elements, if they are empty\n $keysForCleanup = array( 'catIconMap', 'number', 'url' );\n foreach ( $keysForCleanup as $keyForCleanup )\n {\n if ( !empty( $mapMarker[ $keyForCleanup ] ) )\n {\n continue;\n }\n // UNSET : mapMarker element is empty\n unset( $mapMarker[ $keyForCleanup ] );\n }\n // Unset some mapMarker elements, if they are empty\n // Save each mapMarker\n $mapMarkers[] = $mapMarker;\n // Save each longitude\n $lons[] = $mapMarker[ 'lon' ];\n // Save each latitude\n $lats[] = $mapMarker[ 'lat' ];\n\n // Remove the current row from cObj->data\n $this->renderMapMarkerPointsPointCobjDataRemove( $row, $arrLabels );\n }\n // FOREACH category title\n\n unset( $dontHandle00 );\n unset( $arrLabels );\n\n $arr_return = array\n (\n 'data' => array\n (\n 'mapMarkers' => $mapMarkers,\n 'lats' => $lats,\n 'lons' => $lons\n )\n );\n\n return $arr_return;\n }", "function buildMainMap()\r\n{\r\n\r\n // Add an image first for debug and change asap\r\n //$final_map = \"\r\n//<img class=\\\"main_map\\\" src=\\\"images/heatmapapi.png\\\" />\" ;\r\n\r\n $final_map = \"\r\n<div id=\\\"map\\\"></div>\" ;\r\n\r\n return $final_map ;\r\n}", "function map_over_data($value,$scad){\r\n $s=WEB_ROOT;\r\n $map_over_data_html='<div class=\"row\">\r\n <div class=\"col-md-4\">\r\n <div class=\"sch-profile-pic\">\r\n <img src=\"'.$s.'assets/frontend/img/sch-profpic1.png\" style=\"width: 114px;height: 114px;\">\r\n </div>\r\n </div>\r\n <div class=\"col-md-8\">\r\n <div class=\"sch-profile-details\">\r\n <h4>'.$value[\"name\"].'</h4>\r\n <h5>Light Goods Vehicle</h5>\r\n <h6>'.$value[\"address\"].'</h6>\r\n </div>\r\n </div>\r\n </div>';\r\n $lat_lng = $scad->getLnt($value[\"zip\"]);\r\n $map_over_data_lat = $lat_lng['lat'];\r\n $map_over_data_lng = $lat_lng['lng'];\r\n $map_over_data_img = $s.'assets/frontend/img/01.png';\r\n\r\n return $map_over_data = [$map_over_data_html,$map_over_data_lat,$map_over_data_lng,$map_over_data_img];\r\n\r\n }", "protected function _createCidToGidMap() {}", "function __construct($map_file = \"\", $locaplic = \"\", $tema = \"\", $template = \"\")\n {\n include (dirname(__FILE__) . \"/../ms_configura.php\");\n $this->postgis_mapa = $postgis_mapa;\n include_once (dirname(__FILE__) . \"/funcoes_gerais.php\");\n include_once (dirname(__FILE__) . \"/classe_vermultilayer.php\");\n $this->v = versao();\n $this->v = $this->v[\"principal\"];\n $this->localaplicacao = $locaplic;\n if ($map_file == \"\") {\n return;\n }\n $this->mapa = ms_newMapObj($map_file);\n substituiConObj($this->mapa, $postgis_mapa);\n $this->arquivo = str_replace(\".map\", \"\", $map_file) . \".map\";\n\n if ($tema != \"\" && @$this->mapa->getlayerbyname($tema)) {\n $this->layer = $this->mapa->getlayerbyname($tema);\n $this->nome = $tema;\n $vermultilayer = new vermultilayer();\n $vermultilayer->verifica($map_file, $tema);\n if ($vermultilayer->resultado == 1) // o tema e multi layer\n {\n $ls = $vermultilayer->temas;\n $this->visiveis = $vermultilayer->temasvisiveis;\n } else {\n $ls[] = $tema;\n $this->visiveis = array(\n $tema\n );\n }\n $this->grupo = $ls;\n foreach ($ls as $l) {\n $t = $this->mapa->getlayerbyname($l);\n $this->indices[] = $t->index;\n }\n }\n if ($template == \"\") {\n $template = \"legenda.htm\";\n }\n if (file_exists($template)) {\n $this->templateleg = $template;\n return;\n }\n if (strtoupper(substr(PHP_OS, 0, 3) == 'WIN')) {\n $this->templateleg = $locaplic . \"\\\\aplicmap\\\\\" . $template;\n } else {\n $this->templateleg = $locaplic . \"/aplicmap/\" . $template;\n }\n }", "private function map($value, $low1, $high1, $low2, $high2) {\n // https://github.com/processing/p5.js/blob/master/src/math/calculation.js#L463\n return ($value - $low1) / ($high1 - $low1) * ($high2 - $low2) + $low2;\n }", "public function wktGenerateMultipoint();", "function bb_locatie($arguments = array()) {\n\t\t$address = $this->parseArray(array('[/locatie]'), array());\n\t\t$map = $this->maps(htmlspecialchars($address), $arguments);\n\t\treturn '<span class=\"hoverIntent\"><a href=\"https://maps.google.nl/maps?q=' . htmlspecialchars($address) . '\">' . $address . ' <img src=\"/plaetjes/famfamfam/map.png\" alt=\"map\" title=\"Kaart\" /></a><div class=\"hoverIntentContent\">' . $map . '</div></span>';\n\t}", "function gP2 ($slope, $p1, $p2) {\n $x1 = $p1->lng;\n $y1 = $p1->lat;\n $x2 = $p2->lng;\n $y2 = $p2->lat;\n $d = (pow($x2-$x1,2)+pow($y2-$y1,2));\n $c0 = 1/4*(((pow($slope,2) + 1)/pow($slope,2))*(pow($x2-$x1,2))-$d);\n $c = pow($slope,2)/(pow($slope,2)+1)*$c0;\n $x4 = (($x2 - $x1) - sqrt(pow($x2-$x1,2)-4*$c))/2 + $x1;\n $xm=($x1+$x2)/2;\n $ym=($y1+$y2)/2;\n $y4 = $ym - sqrt(($d/4)-pow($x4-$xm,2));\n return new Point($y4,$x4);\n }", "function ju_map_kr($a1, $a2):array {return ju_map($a1, $a2, [], [], JU_BEFORE, true);}", "function addLayer($map, $layerID) {\n\t\tforeach (yieldXY(0, 0, 4, 4, true) as $x => $y) {\n\t\t\t$map[$layerID][$y][$x] = '.';\n\t\t}\n\t\t$map[$layerID][2][2] = '?';\n\t\treturn $map;\n\t}", "public function setMap($map) {\n $map = \n $this->map = $map;\n }", "function __construct() {\n\t\t$this->map_data = array();\n\t}", "public function coordenadasOrigen($x,$y){\r\n\t\t$this->x_punto_origen=$x;\r\n\t\t$this->y_punto_origen=$y;\r\n\t}", "public function coordenadasOrigen($x,$y){\r\n\t\t$this->x_punto_origen=$x;\r\n\t\t$this->y_punto_origen=$y;\r\n\t}", "function receiveMap($zipcode){\n\t//assigning variables to lat and long\n\t//schools\n\t$schools=receiveSchool($zipcode);\n\t$slat1=$schools[0]['latitude'];\n\t$slon1=$schools[0]['longitude'];\n\t$slat2=$schools[1]['latitude'];\n $slon2=$schools[1]['longitude'];\n $slat3=$schools[2]['latitude'];\n $slon3=$schools[2]['longitude'];\n $slat4=$schools[3]['latitude'];\n $slon4=$schools[3]['longitude'];\n\t$saddr1=\"&markers=color:blue%7Clabel:1%7C\".$slat1.','.$slon1;\n $saddr2=\"&markers=color:blue%7Clabel:2%7C\".$slat2.','.$slon2;\n $saddr3=\"&markers=color:blue%7Clabel:3%7C\".$slat3.','.$slon3;\n\t$saddr4=\"&markers=color:blue%7Clabel:4%7C\".$slat4.','.$slon4;\n\t$saddrTotal=$saddr1.$saddr2.$saddr3.$saddr4;\n \t//houses\n\t$address=receiveCurl($zipcode);\n\t$lat1=$address[0]['latitude'];\n\t$lon1=$address[0]['longitude'];\n\t$lat2=$address[1]['latitude'];\n\t$lon2=$address[1]['longitude'];\n\t$lat3=$address[2]['latitude'];\n\t$lon3=$address[2]['longitude'];\n\t$lat4=$address[3]['latitude'];\n\t$lon4=$address[3]['longitude'];\n\t$lat5=$address[4]['latitude'];\n\t$lon5=$address[4]['longitude'];\n\t//formatting for google maps url\n\t$addr1=\"&markers=label:1%7C\".$lat1.\",\".$lon1;\n\t$addr2=\"&markers=label:2%7C\".$lat2.\",\".$lon2;\n\t$addr3=\"&markers=label:3%7C\".$lat3.\",\".$lon3;\n\t$addr4=\"&markers=label:4%7C\".$lat4.\",\".$lon4;\n\t$addr5=\"&markers=label:5%7C\".$lat5.\",\".$lon5;\n\t$api_key='AIzaSyB4hMVNgMIg8-mXh2gbO5BggD39n0Y0c4I';\n\t//url code that combines att addresses\n\t$url =\"https://maps.googleapis.com/maps/api/staticmap?size=640x640\".$saddrTotal.$addr1.$addr2.$addr3.$addr4.$addr5.\"&key=\".$api_key;\n\t//downloading url to png locally\n\t$dest='googleMap.png';\n\t$download=file_put_contents($dest, file_get_contents($url));\n\t//encoding to send to rmq *incomplete*\n\t$image=file_get_contents(\"googleMap.png\");\n\t$data=base64_encode($image);\n\t$json=json_encode($data);\n\treturn $json;\n}", "function getminimap($worldx, $worldy, $newplayerspot=0) {\r\n // Grabs the content of the minimap for the given world coordinates, or if it doesn't exist, generates some\r\n // worldx, worldy = coordinates on the world map that this player is at\r\n // newplayerspot = set to 1 if this is a new player location, which then requires an existing campfire\r\n \r\n // This function will need to be modified later to account for actual new players being added; we will probably\r\n \r\n // I realize that in most game setups, minimap refers to a pixel-based map in the corner for tracking things, but I didn't know what else to call the sub-map layer\r\n // when I started coding them. \r\n \r\n $mapspotquery = danquery(\"SELECT * FROM map WHERE x = 0 AND y = 0;\",\r\n 'include/mapmanager.php->getminimap()->get map location');\r\n $mapspot = mysqli_fetch_assoc($mapspotquery);\r\n if($mapspot) {\r\n $minimapquery = danquery(\"SELECT * FROM minimap WHERE mapid=\". $mapspot['id'] .\" ORDER BY y,x\",\r\n 'include/mapmanager.php->getminimap()->load existing minimap');\r\n return $minimapquery;\r\n }else{\r\n $source = imagecreatefrompng(\"img/2layermap.png\");\r\n if(!$source) die(\"fail - source image not found\");\r\n $width = imagesx($source); \r\n $height = imagesy($source);\r\n $startx = -floor($width/2); // These values may end up smaller than the actual image, but we're not concerned with\r\n $endx = floor($width/2); // including the edges, only that the zero line is included correctly.\r\n $starty = -floor($height/2);\r\n $endy = floor($height/2);\r\n $translatex = $startx;\r\n $translatey = $starty;\r\n \r\n $color = imagecolorat($source, $translatex, $translatey);\r\n $r = ($color >> 16) & 0xFF;\r\n $g = ($color >> 8) & 0xFF;\r\n $b = $color & 0xFF;\r\n \r\n // structures list\r\n // 0 - nothing built here\r\n // 1 - campfire. Usually a plains block is selected for this\r\n \r\n $newid = 0;\r\n $b = array();\r\n if(aboutEqual($r,255,5)) {\r\n // this block is red. Mark it as forest\r\n danquery(\"INSERT INTO map (x,y,owner,biome,ugresource,ugamount) VALUES (0,0,0,1, FLOOR(RAND()*4), (RAND()*1.5)+0.5);\",\r\n 'index.php->no block found->add forest block');\r\n $newid = mysqli_insert_id($db);\r\n \r\n // Now, we need to generate a 8x8 grid with a specific number of block types. Later, we'll add ranges to what is added\r\n $b = array(3,3,3,2,2,2,4,4,4); // 3 stone blocks, 3 dirt blocks, 3 water blocks\r\n for($i=0;$i<10;$i++) { array_push($b, 0); } // 10 plains\r\n for($i=0;$i<45;$i++) { array_push($b, 1); } // The rest is forest blocks\r\n }else{\r\n // This block is not red. Mark it as plains\r\n danquery(\"INSERT INTO map (x,y,owner,biome,ugresource,ugamount) VALUES (0,0,0,0, FLOOR(RAND()*4), (RAND()*1.5)+0.5);\",\r\n 'index.php->no block found->add plains block');\r\n $newid = mysqli_insert_id($db);\r\n \r\n // Like before, generate an 8x8 grid with specific number of block types, scattered about\r\n $b = array(3,3,3,2,2,2,4,4,4); // 3 stone blocks, 3 dirt blocks, 3 water blocks\r\n for($i=0;$i<10;$i++) { array_push($b, 1); } // 10 forest blocks\r\n for($i=0;$i<45;$i++) { array_push($b, 0); } // The rest is plains blocks\r\n }\r\n shuffle($b); // Randomize the ordering of the array\r\n // Now, generate a series of MySQL insertion instances for this\r\n $a = '';\r\n for($i=0;$i<64;$i++) {\r\n $a .= '('. $newid .','. ($i%8) .','. floor($i/8.0) .','. $b[$i] .'),';\r\n }\r\n $a = substr($a, 0, strlen($a)-1); // Trims off the last comma, to not break the sql statement\r\n \r\n danquery(\"INSERT INTO minimap (mapid, x, y, landtype) VALUES \". $a .\";\",\r\n 'index.php->fill new minimap');\r\n // With this built now, we still need to select a spot for the campfire. Let's update a record within this set at random.\r\n danquery(\"UPDATE minimap SET structure=1 WHERE mapid=\". $newid .\" AND landtype=0 ORDER BY RAND() LIMIT 1;\",\r\n 'index.php->add campfire to new minimap');\r\n \r\n // Now that we know the minimap portion has been built, let's load it in... in order.\r\n $minimapquery = danquery(\"SELECT * FROM minimap WHERE mapid=\". $newid .\" ORDER BY y,x;\",\r\n 'index.php->read minimap when building');\r\n return $minimapquery;\r\n }\r\n }", "private function _setMapExtent()\n {\n $ext = explode(',', $this->bbox_map);\n if (isset($this->projection) && $this->projection != $this->projection_map) {\n $origProjObj = ms_newProjectionObj(self::getProjection($this->projection_map));\n $newProjObj = ms_newProjectionObj(self::getProjection($this->default_projection));\n\n $poPoint1 = ms_newPointObj();\n $poPoint1->setXY($ext[0], $ext[1]);\n\n $poPoint2 = ms_newPointObj();\n $poPoint2->setXY($ext[2], $ext[3]);\n\n $poPoint1->project($origProjObj, $newProjObj);\n $poPoint2->project($origProjObj, $newProjObj);\n\n $ext[0] = $poPoint1->x;\n $ext[1] = $poPoint1->y;\n $ext[2] = $poPoint2->x;\n $ext[3] = $poPoint2->y;\n\n if ($poPoint1->x < $this->max_extent[0]\n || $poPoint1->y < $this->max_extent[1]\n || $poPoint2->x > $this->max_extent[2]\n || $poPoint2->y > $this->max_extent[3]\n || $poPoint1->x > $poPoint2->x\n || $poPoint1->y > $poPoint2->y\n ) {\n $ext[0] = $this->max_extent[0];\n $ext[1] = $this->max_extent[1];\n $ext[2] = $this->max_extent[2];\n $ext[3] = $this->max_extent[3];\n }\n }\n\n $ext0 = (min($ext[0], $ext[2]) == $ext[0]) ? $ext[0] : $ext[2];\n $ext2 = (max($ext[0], $ext[2]) == $ext[2]) ? $ext[2] : $ext[0];\n $ext1 = (min($ext[1], $ext[3]) == $ext[1]) ? $ext[1] : $ext[3];\n $ext3 = (max($ext[1], $ext[3]) == $ext[3]) ? $ext[3] : $ext[1];\n\n // Set the padding correction factors because final extent produced after draw() is off from setExtent\n $cellsize = max(($ext2 - $ext0)/($this->image_size[0]-1), ($ext3 - $ext1)/($this->image_size[1]-1));\n\n if ($cellsize > 0) {\n $ox = max((($this->image_size[0]-1) - ($ext2 - $ext0)/$cellsize)/2, 0);\n $oy = max((($this->image_size[1]-1) - ($ext3 - $ext1)/$cellsize)/2, 0);\n $this->ox_pad = $ox*$cellsize;\n $this->oy_pad = $oy*$cellsize;\n }\n\n $this->map_obj->setExtent($ext0, $ext1, $ext2, $ext3);\n }", "function get_address(){\t\t\n\t\t\t\t\tmysql_connect(get_option('dbhost'), get_option('dbuser'), get_option('dbpwd')) or\n\t\t\t\t\t\tdie(\"Could not connect: \" . mysql_error());\n\t\t\t\t\t\t\tmysql_select_db(get_option('dbname'));\n\t\t\t\t\t\t\t$result = mysql_query(\"SELECT Address,name FROM wp_terms where term_group = '1'\");\n\t\t\t\t\t$colum = \"\";\n\t\t\t\t\t$addr = \"\";\t\t\n\t\t\t\t\t\twhile ($row = mysql_fetch_array($result, MYSQL_NUM)) {\n\t\t\t\t\t\t\t$addr = $row[0];\n\t\t\t\t\t\t\t$name = $row[1];\n\t\t\t\t\t$colum .= getCoordinates($addr);\n\t\t\t\t\t\t\t//printf(\"%s\", $addr);\n\t\t\t\t\t\t\t//\tprintf(\"%s\", $colum); \n\t\t\t\t\t\t\t\t}\t\n\t\t\t\t\t\t\t\tmysql_free_result($result);\n\t\t\t\t\t\t\t\t$coords = $colum;\n\t\t\t\t\t\t\t//\t$coords = implode(\"|\", $colum);\n\t\t\t\t\t\t\t\t//\t\tprintf(\"%s\", $coords); \n\t\t\t\t\t\t\t\t$coords = explode(\",\",$colum);\n\t\t\t\t\t\t\t\t\t$coordsTmp = \"\";\n\t\t\t\t\t\t\t\t\t\tfor($i = 0;$i < count($coords);$i++){\n\t\t\t\t\t\t\t\t\t\t\t$coordsTmp .='|'.$coords[$i].','.$coords[$i+1].' ';\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\techo $name;\t\t\t\t\t\n\t\t\t\t\t$map4 = create_Map($coordsTmp,$addr);\n\t\t\treturn $map4;\n\t\t}", "function Display_google_map($Nom, $Adresse) {\n\n\n}", "function init_map($longeur,$largeur)\n{\n $wordl = array();//init tableau\n for($x = 0 ; $x < $largeur ; $x++)\n {\n for($y = 0 ; $y < $longeur ; $y++)\n { \n \n $wordl[$x][$y] =\" . \";//ajout valeur par défaut & &nbsp; = espace vide\n }\n }\n return $wordl; //important le return de la map\n}", "function __construct($from_lines, $to_lines, $mapped_from_lines, $mapped_to_lines)\n {\n }", "protected function coordinates_match($a, $b)\n {\n }", "public function generateMap() {\n\t\tfor($y = 0; $y < static::MAP_Y; $y++) {\n\t\t\tfor($x = 0; $x < static::MAP_X; $x++) {\n\t\t\t\t$this->map[$y][$x] = 0;\n\t\t\t}\n\t\t}\n\n\t\treturn $this;\n\t}", "public function wktGeneratePoint(array $point = NULL);", "public function test_admin_set_next_map()\n {\n $this->assertTrue($this->btwServer->adminSetNextMap('Al Basrah AAS v1'));\n }", "protected function _initMap()\n {\n // admin >> system settings >> cron & urls >> map database fields\n\n $this->_tableMap['sl_candidate']['sl_candidatepk'] = array('controls' => array('is_key(%) || is_null(%)'));\n $this->_tableMap['sl_candidate']['date_created'] = array('controls'=>array('is_datetime(%)'),'type'=>'datetime');\n $this->_tableMap['sl_candidate']['created_by'] = array('controls'=>array('is_integer(%)'),'type'=>'int');\n $this->_tableMap['sl_candidate']['statusfk'] = array('controls'=>array('is_integer(%)'),'type'=>'int');\n $this->_tableMap['sl_candidate']['sex'] = array('controls'=> array('is_integer(%)'),'type'=>'int');\n $this->_tableMap['sl_candidate']['firstname'] = array('controls'=> array('!empty(%)'));\n $this->_tableMap['sl_candidate']['lastname'] = array('controls'=> array('!empty(%)'));\n $this->_tableMap['sl_candidate']['nationalityfk'] = array('controls'=>array('is_integer(%)'),'type'=>'int');\n $this->_tableMap['sl_candidate']['languagefk'] = array('controls'=>array('is_integer(%)'),'type'=>'int');\n $this->_tableMap['sl_candidate']['locationfk'] = array('controls'=>array('is_integer(%)'),'type'=>'int');\n $this->_tableMap['sl_candidate']['play_date'] = array('controls'=>array('empty(%) || is_datetime(%)'),'type'=>'datetime');\n $this->_tableMap['sl_candidate']['play_for'] = array('controls'=>array('is_null(%) || is_integer(%)'),'type'=>'int');\n $this->_tableMap['sl_candidate']['rating'] = array('controls'=>array('is_numeric(%)'),'type'=>'float');\n $this->_tableMap['sl_candidate']['date_birth'] = array('controls'=>array('(% == \"NULL\") || is_date(%)'),'type'=>'date');\n $this->_tableMap['sl_candidate']['is_birth_estimation'] = array('controls'=>array('is_integer(%)'),'type'=>'int');\n $this->_tableMap['sl_candidate']['is_client'] = array('controls'=>array('is_integer(%)'),'type'=>'int');\n $this->_tableMap['sl_candidate']['cpa'] = array('controls'=>array('is_integer(%)'),'type'=>'int');\n $this->_tableMap['sl_candidate']['mba'] = array('controls'=>array('is_integer(%)'),'type'=>'int');\n $this->_tableMap['sl_candidate']['skill_ag'] = array('controls'=>array(),'type'=>'int');\n $this->_tableMap['sl_candidate']['skill_ap'] = array('controls'=>array(),'type'=>'int');\n $this->_tableMap['sl_candidate']['skill_am'] = array('controls'=>array(),'type'=>'int');\n $this->_tableMap['sl_candidate']['skill_mp'] = array('controls'=>array(),'type'=>'int');\n $this->_tableMap['sl_candidate']['skill_in'] = array('controls'=>array(),'type'=>'int');\n $this->_tableMap['sl_candidate']['skill_ex'] = array('controls'=>array(),'type'=>'int');\n $this->_tableMap['sl_candidate']['skill_fx'] = array('controls'=>array(),'type'=>'int');\n $this->_tableMap['sl_candidate']['skill_ch'] = array('controls'=>array(),'type'=>'int');\n $this->_tableMap['sl_candidate']['skill_ed'] = array('controls'=>array(),'type'=>'int');\n $this->_tableMap['sl_candidate']['skill_pl'] = array('controls'=>array(),'type'=>'int');\n $this->_tableMap['sl_candidate']['skill_e'] = array('controls'=>array(),'type'=>'int');\n //sys fields\n $this->_tableMap['sl_candidate']['_sys_status'] = array('controls'=>array('is_integer(%)'),'type'=>'int');\n $this->_tableMap['sl_candidate']['_sys_redirect'] = array('controls'=>array('is_key(%) || is_null(%)'),'type'=>'int');\n\n\n $this->_tableMap['sl_candidate_profile']['sl_candidate_profilepk'] = array('controls'=>array('is_key(%)'),'type'=>'int','index' => 'pk');\n $this->_tableMap['sl_candidate_profile']['candidatefk'] = array('controls'=>array('is_integer(%)'),'type'=>'int');\n $this->_tableMap['sl_candidate_profile']['companyfk'] = array('controls'=>array('is_integer(%)'),'type'=>'int');\n $this->_tableMap['sl_candidate_profile']['date_created'] = array('controls'=>array('is_datetime(%)'),'type'=>'datetime');\n $this->_tableMap['sl_candidate_profile']['created_by'] = array('controls'=>array('is_integer(%)'),'type'=>'int');\n $this->_tableMap['sl_candidate_profile']['date_updated'] = array('controls'=>array('is_datetime(%)'),'type'=>'datetime');\n $this->_tableMap['sl_candidate_profile']['updated_by'] = array('controls'=>array('is_integer(%)'),'type'=>'int');\n $this->_tableMap['sl_candidate_profile']['managerfk'] = array('controls'=>array('is_integer(%)'),'type'=>'int');\n $this->_tableMap['sl_candidate_profile']['industryfk'] = array('controls'=>array('is_integer(%)'),'type'=>'int');\n $this->_tableMap['sl_candidate_profile']['occupationfk'] = array('controls'=>array('is_integer(%)'),'type'=>'int');\n $this->_tableMap['sl_candidate_profile']['title'] = array('controls' => array());\n $this->_tableMap['sl_candidate_profile']['department'] = array('controls' => array());\n $this->_tableMap['sl_candidate_profile']['keyword'] = array('controls' => array());\n $this->_tableMap['sl_candidate_profile']['grade'] = array('controls'=>array('is_integer(%)'),'type'=>'int');\n $this->_tableMap['sl_candidate_profile']['salary'] = array('controls'=>array('is_numeric(%) '),'type'=>'float');\n $this->_tableMap['sl_candidate_profile']['bonus'] = array('controls'=>array('is_numeric(%)'),'type'=>'float');\n $this->_tableMap['sl_candidate_profile']['profile_rating'] = array('controls'=>array('is_numeric(%)'),'type'=>'float');\n $this->_tableMap['sl_candidate_profile']['currency'] = array('controls' => array());\n $this->_tableMap['sl_candidate_profile']['currency_rate'] = array('controls'=>array('is_numeric(%)'),'type'=>'float');\n $this->_tableMap['sl_candidate_profile']['salary_search'] = array('controls'=>array('is_integer(%)'),'type'=>'int');\n $this->_tableMap['sl_candidate_profile']['target_low'] = array('controls'=>array('is_numeric(%)'),'type'=>'float');\n $this->_tableMap['sl_candidate_profile']['target_high'] = array('controls'=>array('is_numeric(%)'),'type'=>'float');\n\n $this->_tableMap['sl_candidate_profile']['_has_doc'] = array('controls'=>array());\n $this->_tableMap['sl_candidate_profile']['_in_play'] = array('controls'=>array());\n $this->_tableMap['sl_candidate_profile']['_pos_status'] = array('controls'=>array());\n $this->_tableMap['sl_candidate_profile']['uid'] = array('controls'=>array('!empty(%)'));\n $this->_tableMap['sl_candidate_profile']['_date_updated'] = array('controls'=>array());\n\n\n\n $this->_tableMap['sl_candidate_rm']['sl_candidate_rmpk'] = array('controls' => array('is_key(%) || is_null(%)'));\n $this->_tableMap['sl_candidate_rm']['loginfk'] = array('controls' => array('is_key(%)'));\n $this->_tableMap['sl_candidate_rm']['candidatefk'] = array('controls' => array('is_key(%)'));\n $this->_tableMap['sl_candidate_rm']['date_started'] = array('controls' => array('is_datetime(%)'));\n $this->_tableMap['sl_candidate_rm']['date_ended'] = array('controls' => array('is_datetime(%)'));\n $this->_tableMap['sl_candidate_rm']['date_expired'] = array('controls' => array('is_null(%) || is_datetime(%)'));\n $this->_tableMap['sl_candidate_rm']['nb_extended'] = array('controls' => array());\n\n\n\n\n $this->_tableMap['sl_company_rss']['sl_company_rsspk'] = array('controls' => array('is_key(%) || is_null(%)'));\n $this->_tableMap['sl_company_rss']['companyfk'] = array('controls' => array('is_key(%)'));\n $this->_tableMap['sl_company_rss']['date_created'] = array('controls' => array('is_datetime(%)'));\n $this->_tableMap['sl_company_rss']['nb_news'] = array('controls' => array());\n $this->_tableMap['sl_company_rss']['url'] = array('controls' => array());\n $this->_tableMap['sl_company_rss']['content'] = array('controls' => array());\n\n\n $this->_tableMap['sl_contact']['sl_contactpk'] = array('controls' => array());\n $this->_tableMap['sl_contact']['type'] = array('controls' => array('is_key(%)'));\n $this->_tableMap['sl_contact']['item_type'] = array('controls' => array('!empty(%)'));\n $this->_tableMap['sl_contact']['itemfk'] = array('controls' => array('is_key(%)'));\n $this->_tableMap['sl_contact']['date_create'] = array('controls' => array('is_null(%) || is_datetime(%)'));\n $this->_tableMap['sl_contact']['date_update'] = array('controls' => array('is_null(%) || is_datetime(%)'));\n $this->_tableMap['sl_contact']['loginfk'] = array('controls' => array('is_key(%)'));\n $this->_tableMap['sl_contact']['updated_by'] = array('controls' => array('is_null(%) || is_key(%)'));\n $this->_tableMap['sl_contact']['value'] = array('controls' => array('!empty(%)'));\n $this->_tableMap['sl_contact']['description'] = array('controls' => array());\n $this->_tableMap['sl_contact']['visibility'] = array('controls' => array('is_key(%)'));\n $this->_tableMap['sl_contact']['groupfk'] = array('controls' => array('is_integer(%)'));\n\n\n $this->_tableMap['sl_contact_visibility']['sl_contact_visibilitypk'] = array('controls' => array());\n $this->_tableMap['sl_contact_visibility']['sl_contactfk'] = array('controls' => array('is_integer(%)'));\n $this->_tableMap['sl_contact_visibility']['loginfk'] = array('controls' => array('is_integer(%)'));\n\n $this->_tableMap['sl_meeting']['sl_meetingpk'] = array('controls' => array());\n $this->_tableMap['sl_meeting']['date_created'] = array('controls' => array('is_datetime(%)'));\n $this->_tableMap['sl_meeting']['date_updated'] = array('controls' => array('is_null(%) || is_datetime(%)'));\n $this->_tableMap['sl_meeting']['date_meeting'] = array('controls' => array('is_datetime(%)'));\n $this->_tableMap['sl_meeting']['created_by'] = array('controls' => array('is_key(%)'));\n $this->_tableMap['sl_meeting']['candidatefk'] = array('controls' => array('is_key(%)'));\n $this->_tableMap['sl_meeting']['attendeefk'] = array('controls' => array('is_key(%)'));\n $this->_tableMap['sl_meeting']['type'] = array('controls' => array('is_key(%)'));\n $this->_tableMap['sl_meeting']['location'] = array('controls' => array());\n $this->_tableMap['sl_meeting']['description'] = array('controls' => array());\n $this->_tableMap['sl_meeting']['date_reminder1'] = array('controls' => array('is_null(%) || is_datetime(%)'));\n $this->_tableMap['sl_meeting']['date_reminder2'] = array('controls' => array('is_null(%) || is_datetime(%)'));\n $this->_tableMap['sl_meeting']['reminder_update'] = array('controls' => array('is_null(%) || is_datetime(%)'));\n $this->_tableMap['sl_meeting']['meeting_done'] = array('controls' => array('is_integer(%)'));\n $this->_tableMap['sl_meeting']['date_met'] = array('controls' => array());\n\n\n $this->_tableMap['sl_company']['sl_companypk'] = array('controls' => array());\n $this->_tableMap['sl_company']['date_created'] = array('controls' => array());\n $this->_tableMap['sl_company']['created_by'] = array('controls' => array());\n $this->_tableMap['sl_company']['company_owner'] = array('controls' => array());\n $this->_tableMap['sl_company']['date_updated'] = array('controls' => array());\n $this->_tableMap['sl_company']['updated_by'] = array('controls' => array());\n\n $this->_tableMap['sl_company']['level'] = array('controls' => array());\n $this->_tableMap['sl_company']['name'] = array('controls' => array());\n $this->_tableMap['sl_company']['corporate_name'] = array('controls' => array());\n $this->_tableMap['sl_company']['description'] = array('controls' => array());\n $this->_tableMap['sl_company']['address'] = array('controls' => array());\n $this->_tableMap['sl_company']['phone'] = array('controls' => array());\n $this->_tableMap['sl_company']['fax'] = array('controls' => array());\n $this->_tableMap['sl_company']['email'] = array('controls' => array());\n $this->_tableMap['sl_company']['website'] = array('controls' => array());\n\n $this->_tableMap['sl_company']['is_client'] = array('controls' => array());\n $this->_tableMap['sl_company']['is_nc_ok'] = array('controls' => array());\n $this->_tableMap['sl_company']['num_employee'] = array('controls' => array());\n\n $this->_tableMap['sl_company']['num_employee_japan'] = array('controls' => array());\n $this->_tableMap['sl_company']['num_employee_world'] = array('controls' => array());\n $this->_tableMap['sl_company']['num_branch_japan'] = array('controls' => array());\n $this->_tableMap['sl_company']['num_branch_world'] = array('controls' => array());\n $this->_tableMap['sl_company']['revenue'] = array('controls' => array());\n $this->_tableMap['sl_company']['hq'] = array('controls' => array());\n $this->_tableMap['sl_company']['hq_japan'] = array('controls' => array());\n\n\n $this->_tableMap['sl_attribute']['sl_attributepk'] = array('controls' => array());\n $this->_tableMap['sl_attribute']['type'] = array('controls' => array('!empty(%)'));\n $this->_tableMap['sl_attribute']['itemfk'] = array('controls' => array('is_key(%)'));\n $this->_tableMap['sl_attribute']['attributefk'] = array('controls' => array('is_key(%)'));\n $this->_tableMap['sl_attribute']['loginfk'] = array('controls' => array('is_key(%)'));\n $this->_tableMap['sl_attribute']['date_created'] = array('controls' => array('is_datetime(%)'));\n\n\n return true;\n }", "function __construct() {\r\n\t\tfor($x=1; $x <= $this->map['width']; $x++):\r\n\t\t\tfor($y=1; $y <= $this->map['height']; $y++):\r\n\t\t\t\t$this->map['tiles'][$x][$y]['init'] = true;\r\n\t\t\tendfor;\r\n\t\tendfor;\t\t\r\n\t}", "function generate_map_file(){\n\t\t$map = ms_newMapObj($this->default_map_file);\n\t\t$n_layers = count($this->viewable_layers);\n\t\t// go through and create new \n\t\t// layer objects for those layers\n\t\t// that have their display property set\n\t\t// to true, adding them to the\n\t\t// map object\n\t\tfor($i = 0; $i < $n_layers; $i++){\n\t\t\tif($this->viewable_layers[$i]->display == \"true\"){\n\t\t\t\t$layer = ms_newLayerObj($map);\n\t\t\t\t$layer->set(\"name\", $this->viewable_layers[$i]->layer_name);\n\t\t\t\t$layer->set(\"status\", MS_OFF);\n\t\t\t\t$layer->set(\"template\", \"nepas.html\");\n\t\t\t\t$this->set_ms_layer_type($layer, $this->viewable_layers[$i]);\n\t\t\t\t$layer->set(\"connectiontype\", MS_POSTGIS);\n\t\t\t\t$layer->set(\"connection\", $this->dbconn->mapserver_conn_str);\n\t\t\t\t$this->set_ms_data_string($layer, $this->viewable_layers[$i]);\n\t\t\t\t$layer->setProjection($this->viewable_layers[$i]->layer_proj);\n\t\t\t\t// added to allow getfeatureinfo requests on\n\t\t\t\t// this layer via WMS\n\t\t\t\t$layer->setMetaData(\"WMS_INCLUDE_ITEMS\", \"all\");\n\t\t\t\t// generate a CLASSITEM directive \n\t\t\t\tif($this->viewable_layers[$i]->layer_ms_classitem != \"\")\n\t\t\t\t\t$layer->set(\"classitem\", $this->viewable_layers[$i]->layer_ms_classitem);\n\n\t\t\t\t// generate classes that this\n\t\t\t\t// layer contains\n\t\t\t\t$n_classes = count($this->viewable_layers[$i]->layer_classes);\n\t\t\t\tfor($j = 0; $j < $n_classes; $j++){\n\t\t\t\t\t$ms_class_obj = ms_newClassObj($layer);\n\t\t\t\t\t$ms_class_obj->set(\"name\", $this->viewable_layers[$i]->layer_classes[$j]->name);\n\t\t\t\t\t$ms_class_obj->setExpression($this->viewable_layers[$i]->layer_classes[$j]->expression);\n\t\t\t\t\tforeach($this->viewable_layers[$i]->layer_classes[$j]->styles as $style){\n\t\t\t\t\t\t$ms_style_obj = ms_newStyleObj($ms_class_obj);\n\t\t\t\t\t\t$ms_style_obj->color->setRGB($style->color_r,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$style->color_g,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$style->color_b);\n\t\t\t\t\t\t// set bg color\n\t\t\t\t\t\t$ms_style_obj->backgroundcolor->setRGB($style->bgcolor_r,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$style->bgcolor_g,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$style->bgcolor_b);\n\t\t\t\t\t\t// set outline color\n\t\t\t\t\t\t$ms_style_obj->outlinecolor->setRGB($style->outlinecolor_r,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$style->outlinecolor_g,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$style->outlinecolor_b);\n\t\t\t\t\t\tif($style->symbol_name != \"\"){\n\t\t\t\t\t\t\t$ms_style_obj->set(\"symbolname\", $style->symbol_name);\n\t\t\t\t\t\t\t// check for valid size\n\t\t\t\t\t\t\tif($style->symbol_size != \"\")\n\t\t\t\t\t\t\t\t$ms_style_obj->set(\"size\", $style->symbol_size);\n\t\t\t\t\t\t\t// check for valid angle\n\t\t\t\t\t\t\tif($style->angle != \"\")\n\t\t\t\t\t\t\t\t$ms_style_obj->set(\"angle\", $style->angle);\n\t\t\t\t\t\t\t// check for valid width\n\t\t\t\t\t\t\tif($style->width != \"\")\n\t\t\t\t\t\t\t\t$ms_style_obj->set(\"width\", $style->width);\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}\n\t\t}\n\t\t\n\t\tif($map->save($this->output_mapfile) == MS_FAILURE){\n\t\t\techo \"mapfile could not be saved\";\n\t\t\treturn NULL;\n\t\t}\n\t\t\n\t\treturn $this->output_mapfile;\t\n\t}", "function form_map($name, $value, $parameters, $cp) {\n\n if (!$value)\n $value = get_setting('website_address');\n\n Layout::addJavascript(\"\n\n var map, stepDisplay, marker, old_position, old_address = '\" . $value . \"';\n\n function initMap(){\n\n $('#map_canvas').css('height', '500px');\n $('#reset_map').show();\n\n var myOptions = { zoom: 13, mapTypeId: google.maps.MapTypeId.ROADMAP, };\n map = new google.maps.Map(document.getElementById('map_canvas'), myOptions );\n\n address = $('#addr').val()\n geocoder = new google.maps.Geocoder();\n geocoder.geocode( { 'address': address}, function(results, status) {\n var location = results[0].geometry.location\n old_position = location\n map.setCenter( location );\n addMarker( location )\n });\n\n }\n\n function resetLocation(){\n $('#addr').val( old_address )\n address = old_address\n geocoder = new google.maps.Geocoder();\n geocoder.geocode( { 'address': address}, function(results, status) {\n var location = results[0].geometry.location\n old_position = location\n map.setCenter( location );\n addMarker( location )\n });\n }\n\n function addMarker( location ){\n if( marker )\n marker.setMap(null)\n marker = new google.maps.Marker({ position: location, map: map, draggable: true });\n\n google.maps.event.addListener(marker, 'dragstart', function() {\n //map.closeInfoWindow();\n });\n\n google.maps.event.addListener(marker, 'dragend', function(event) {\n updateLocation( event.latLng )\n });\n }\n\n function updateLocation(location){\n var p = location.toString()\n var latlngStr = p.split(',');\n var lat = latlngStr[0].substr(1)\n var lng = latlngStr[1].substr(0,latlngStr[1].length-1)\n\n $('#location').val(lat + ',' + lng);\n\n geocoder.geocode({'latLng': location}, function(results, status) {\n if (status == google.maps.GeocoderStatus.OK)\n if (results[0]){\n\n var address = results[0].formatted_address\n var address_components = new Array();\n for( var i in results[0].address_components )\n address_components[results[0].address_components[i].types] = results[0].address_components[i].long_name\n\n $('#addr').val(results[0].formatted_address)\n }\n\n });\n\n }\n\n \");\n\n $html = '<script type=\"text/javascript\" src=\"http://maps.google.com/maps/api/js?sensor=false\"></script>';\n $html .= '<div id=\"map_canvas\"><a href=\"javascript:initMap();\">Click to init the map</a></div>';\n $html .= '<input type=\"hidden\" id=\"location\" name=\"extra3\"/><br>address <input type=\"text\" name=\"extra2\" style=\"width:76%;\" id=\"addr\" value=\"' . $value . '\" onchange=\"initMap()\"/> <a href=\"javascript:initMap();\">Refresh</a>';\n $html .= '<div id=\"reset_map\" style=\"display:none;\"><br><a href=\"javascript:resetLocation();\">Reset Address</a><br></div>';\n return $html;\n }", "function tradeoff_map($definition)\n {\n return app(Models\\Resolution\\Map\\Map::class)->setData($definition);\n }", "function get_snapped_point ($lat, $lng)\n{\n $options = array(\n 'http' => array(\n 'header' => \"Content-type: application/json\",\n 'method' => 'GET' \n )\n );\n \n //ATTENTION :Replace your own api_key\n $api_key=\"key\";\n $url_arr = array(\"https://roads.googleapis.com/v1/nearestRoads?points=$lat,$lng&key=\".$api_key,\n \"https://roads.googleapis.com/v1/snapToRoads?path=$lat,$lng&key=\".$api_key);\n\n $url= $url_arr[array_rand($url_arr)];\n $context = stream_context_create($options);\n\n $result = file_get_contents($url, false, $context);\n $result_arr=json_decode($result,true);\n\n \n return ($result_arr[\"snappedPoints\"][0][\"location\"]);\n}", "public function setCalloutLine($x1OrPoints, $y1 = null, $x2 = null, $y2 = null, $x3 = null, $y3 = null) {}", "public function addCoordinates()\n {\n $this->bad_points = array();\n if (isset($this->coords) && $this->coords) {\n //do this in reverse order because the legend will otherwise be presented in reverse order\n for ($j=count($this->coords)-1; $j>=0; $j--) {\n\n //clear out previous loop's selection\n $size = \"\";\n $shape = \"\";\n $color = array();\n\n $title = ($this->coords[$j]['title']) ? stripslashes($this->coords[$j]['title']) : \"\";\n $size = ($this->coords[$j]['size']) ? $this->coords[$j]['size'] : 8;\n if ($this->_isResize() && $this->_download_factor > 1) {\n $size = $this->_download_factor*$size;\n }\n $shape = ($this->coords[$j]['shape']) ? $this->coords[$j]['shape'] : 'circle';\n if ($this->coords[$j]['color']) {\n $color = explode(\" \", $this->coords[$j]['color']);\n if (count($color) != 3) {\n $color = array();\n }\n }\n\n $data = trim($this->coords[$j]['data']);\n\n if ($data) {\n $this->_legend_required = true;\n $layer = ms_newLayerObj($this->map_obj);\n $layer->set(\"name\", \"layer_\".$j);\n $layer->set(\"status\", MS_ON);\n $layer->set(\"type\", MS_LAYER_POINT);\n $layer->set(\"tolerance\", 5);\n $layer->set(\"toleranceunits\", 6);\n $layer->setProjection(self::getProjection($this->default_projection));\n\n $class = ms_newClassObj($layer);\n if ($title != \"\") {\n $class->set(\"name\", $title);\n }\n\n $style = ms_newStyleObj($class);\n $style->set(\"symbolname\", $shape);\n $style->set(\"size\", $size);\n\n if (!empty($color)) {\n if (substr($shape, 0, 4) == 'open') {\n $style->color->setRGB($color[0], $color[1], $color[2]);\n } else {\n $style->color->setRGB($color[0], $color[1], $color[2]);\n $style->outlinecolor->setRGB(85, 85, 85);\n }\n } else {\n $style->outlinecolor->setRGB(0, 0, 0);\n }\n\n $style->set(\"width\", $this->_determineWidth());\n\n $new_shape = ms_newShapeObj(MS_SHAPE_POINT);\n $new_line = ms_newLineObj();\n\n $rows = explode(\"\\n\", self::removeEmptyLines($data)); //split the lines that have data\n $points = array(); //create an array to hold unique locations\n\n foreach ($rows as $row) {\n $coord_array = self::makeCoordinates($row);\n $coord = new \\stdClass();\n $coord->x = ($coord_array[1]) ? self::cleanCoord($coord_array[1]) : null;\n $coord->y = ($coord_array[0]) ? self::cleanCoord($coord_array[0]) : null;\n //only add point when data are good & a title\n if (self::checkOnEarth($coord) && !empty($title)) {\n if (!array_key_exists($coord->x.$coord->y, $points)) { //unique locations\n $new_point = ms_newPointObj();\n $new_point->setXY($coord->x, $coord->y);\n $new_line->add($new_point);\n $points[$coord->x.$coord->y] = array();\n }\n } else {\n $this->bad_points[] = stripslashes($this->coords[$j]['title'] . ' : ' . $row);\n }\n unset($coord);\n }\n\n unset($points);\n $new_shape->add($new_line);\n $layer->addFeature($new_shape);\n }\n }\n }\n }", "function Draw($im, &$map)\n\t{\n\t\t$x1=$map->nodes[$this->a->name]->x;\n\t\t$y1=$map->nodes[$this->a->name]->y;\n\n\t\t$x2=$map->nodes[$this->b->name]->x;\n\t\t$y2=$map->nodes[$this->b->name]->y;\n\t\t\n\t\tif(is_null($x1)) { wm_warn(\"LINK \".$this->name.\" uses a NODE with no POSITION! [WMWARN35]\\n\"); return; }\n\t\tif(is_null($y1)) { wm_warn(\"LINK \".$this->name.\" uses a NODE with no POSITION! [WMWARN35]\\n\"); return; }\n\t\tif(is_null($x2)) { wm_warn(\"LINK \".$this->name.\" uses a NODE with no POSITION! [WMWARN35]\\n\"); return; }\n\t\tif(is_null($y2)) { wm_warn(\"LINK \".$this->name.\" uses a NODE with no POSITION! [WMWARN35]\\n\"); return; }\n\t\t\n\t\t\n\t\tif( ($this->linkstyle=='twoway') && ($this->labeloffset_in < $this->labeloffset_out) && (intval($map->get_hint(\"nowarn_bwlabelpos\"))==0) )\n\t\t{\n\t\t\twm_warn(\"LINK \".$this->name.\" probably has it's BWLABELPOSs the wrong way around [WMWARN50]\\n\");\n\t\t}\n\t\t\n\t\tlist($dx, $dy)=calc_offset($this->a_offset, $map->nodes[$this->a->name]->width, $map->nodes[$this->a->name]->height);\n\t\t$x1+=$dx;\n\t\t$y1+=$dy;\n\n\t\tlist($dx, $dy)=calc_offset($this->b_offset, $map->nodes[$this->b->name]->width, $map->nodes[$this->b->name]->height);\n\t\t$x2+=$dx;\n\t\t$y2+=$dy;\n\n\t\tif( ($x1==$x2) && ($y1==$y2) && sizeof($this->vialist)==0)\n\t\t{\n\t\t\twm_warn(\"Zero-length link \".$this->name.\" skipped. [WMWARN45]\");\n\t\t\treturn;\n\t\t}\n\n\t\t\n\t\t$outlinecol = new Colour($this->outlinecolour);\n\t\t$commentcol = new Colour($this->commentfontcolour);\n\t\t\n\t\t$outline_colour = $outlinecol->gdallocate($im);\n\t\t\t\t\n\t\t$xpoints = array ( );\n\t\t$ypoints = array ( );\n\n\t\t$xpoints[]=$x1;\n\t\t$ypoints[]=$y1;\n\n\t\t# warn(\"There are VIAs.\\n\");\n\t\tforeach ($this->vialist as $via)\n\t\t{\n\t\t\t# imagearc($im, $via[0],$via[1],20,20,0,360,$map->selected);\n\t\t\tif(isset($via[2]))\n\t\t\t{\n\t\t\t\t$xpoints[]=$map->nodes[$via[2]]->x + $via[0];\n\t\t\t\t$ypoints[]=$map->nodes[$via[2]]->y + $via[1];\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$xpoints[]=$via[0];\n\t\t\t\t$ypoints[]=$via[1];\n\t\t\t}\n\t\t}\n\n\t\t$xpoints[]=$x2;\n\t\t$ypoints[]=$y2;\n\n\t\t# list($link_in_colour,$link_in_scalekey, $link_in_scaletag) = $map->NewColourFromPercent($this->inpercent,$this->usescale,$this->name);\n\t\t# list($link_out_colour,$link_out_scalekey, $link_out_scaletag) = $map->NewColourFromPercent($this->outpercent,$this->usescale,$this->name);\n\t\t\n\t\t$link_in_colour = $this->colours[IN];\n\t\t$link_out_colour = $this->colours[OUT];\n\t\t\n\t\t$gd_in_colour = $link_in_colour->gdallocate($im);\n\t\t$gd_out_colour = $link_out_colour->gdallocate($im);\n\t\t\n\t//\t$map->links[$this->name]->inscalekey = $link_in_scalekey;\n\t//\t$map->links[$this->name]->outscalekey = $link_out_scalekey;\n\t\t\n\t\t$link_width=$this->width;\n\t\t// these will replace the one above, ultimately.\n\t\t$link_in_width=$this->width;\n\t\t$link_out_width=$this->width;\n\t\t\t\n\t\t// for bulging animations\n\t\tif ( ($map->widthmod) || ($map->get_hint('link_bulge') == 1))\n\t\t{\n\t\t\t// a few 0.1s and +1s to fix div-by-zero, and invisible links\n\t\t\t$link_width = (($link_width * $this->inpercent * 1.5 + 0.1) / 100) + 1;\n\t\t\t// these too\n\t\t\t$link_in_width = (($link_in_width * $this->inpercent * 1.5 + 0.1) / 100) + 1;\n\t\t\t$link_out_width = (($link_out_width * $this->outpercent * 1.5 + 0.1) / 100) + 1;\n\t\t}\n\n\t\t// If there are no vias, treat this as a 2-point angled link, not curved\n\t\tif( sizeof($this->vialist)==0 || $this->viastyle=='angled') {\n\t\t\t// Calculate the spine points - the actual not a curve really, but we\n\t\t\t// need to create the array, and calculate the distance bits, otherwise\n\t\t\t// things like bwlabels won't know where to go.\n\t\t\t\n\t\t\t$this->curvepoints = calc_straight($xpoints, $ypoints);\n\t\t\t\t\t\t\t\n\t\t\t// then draw the \"curve\" itself\n\t\t\tdraw_straight($im, $this->curvepoints,\n\t\t\t\tarray($link_in_width,$link_out_width), $outline_colour, array($gd_in_colour, $gd_out_colour),\n\t\t\t\t$this->name, $map, $this->splitpos, ($this->linkstyle=='oneway'?TRUE:FALSE) );\n\t\t}\n\t\telseif($this->viastyle=='curved')\n\t\t{\n\t\t\t// Calculate the spine points - the actual curve\t\n\t\t\t$this->curvepoints = calc_curve($xpoints, $ypoints);\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t// then draw the curve itself\n\t\t\tdraw_curve($im, $this->curvepoints,\n\t\t\t\tarray($link_in_width,$link_out_width), $outline_colour, array($gd_in_colour, $gd_out_colour),\n\t\t\t\t$this->name, $map, $this->splitpos, ($this->linkstyle=='oneway'?TRUE:FALSE) );\n\t\t}\n\n\t\t\n\t\tif ( !$commentcol->is_none() )\n\t\t{\t\t\t\n\t\t\tif($commentcol->is_contrast())\n\t\t\t{\n\t\t\t\t$commentcol_in = $link_in_colour->contrast();\n\t\t\t\t$commentcol_out = $link_out_colour->contrast();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$commentcol_in = $commentcol;\n\t\t\t\t$commentcol_out = $commentcol;\n\t\t\t}\n\t\t\n\t\t\t$comment_colour_in = $commentcol_in->gdallocate($im);\n\t\t\t$comment_colour_out = $commentcol_out->gdallocate($im);\n\t\t\t\n\t\t\t$this->DrawComments($im,array($comment_colour_in, $comment_colour_out),array($link_in_width*1.1,$link_out_width*1.1));\n\t\t}\n\n\t\t$curvelength = $this->curvepoints[count($this->curvepoints)-1][2];\n\t\t// figure out where the labels should be, and what the angle of the curve is at that point\n\t\tlist($q1_x,$q1_y,$junk,$q1_angle) = find_distance_coords_angle($this->curvepoints,($this->labeloffset_out/100)*$curvelength);\n\t\tlist($q3_x,$q3_y,$junk,$q3_angle) = find_distance_coords_angle($this->curvepoints,($this->labeloffset_in/100)*$curvelength);\n\n\t\t# imageline($im, $q1_x+20*cos(deg2rad($q1_angle)),$q1_y-20*sin(deg2rad($q1_angle)), $q1_x-20*cos(deg2rad($q1_angle)), $q1_y+20*sin(deg2rad($q1_angle)), $this->owner->selected );\n\t\t# imageline($im, $q3_x+20*cos(deg2rad($q3_angle)),$q3_y-20*sin(deg2rad($q3_angle)), $q3_x-20*cos(deg2rad($q3_angle)), $q3_y+20*sin(deg2rad($q3_angle)), $this->owner->selected );\n\n\t\t# warn(\"$q1_angle $q3_angle\\n\");\n\n\t\tif (!is_null($q1_x))\n\t\t{\n\t\t\t$outbound=array\n\t\t\t\t(\n\t\t\t\t\t$q1_x,\n\t\t\t\t\t$q1_y,\n\t\t\t\t\t0,\n\t\t\t\t\t0,\n\t\t\t\t\t$this->outpercent,\n\t\t\t\t\t$this->bandwidth_out,\n\t\t\t\t\t$q1_angle,\n\t\t\t\t\tOUT\n\t\t\t\t);\n\n\t\t\t$inbound=array\n\t\t\t\t(\n\t\t\t\t\t$q3_x,\n\t\t\t\t\t$q3_y,\n\t\t\t\t\t0,\n\t\t\t\t\t0,\n\t\t\t\t\t$this->inpercent,\n\t\t\t\t\t$this->bandwidth_in,\n\t\t\t\t\t$q3_angle,\n\t\t\t\t\tIN\n\t\t\t\t);\n\n\t\t\tif ($map->sizedebug)\n\t\t\t{\n\t\t\t\t$outbound[5]=$this->max_bandwidth_out;\n\t\t\t\t$inbound[5]=$this->max_bandwidth_in;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tif($this->linkstyle=='oneway')\n\t\t\t{\n\t\t\t\t$tasks = array($outbound);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$tasks = array($inbound,$outbound);\n\t\t\t}\n\n\t\t\tforeach ($tasks as $task)\n\t\t\t{\n\t\t\t\t$thelabel=\"\";\n\t\t\t\t\n\t\t\t\t$thelabel = $map->ProcessString($this->bwlabelformats[$task[7]],$this);\n\t\n\t\t\t\tif ($thelabel != '')\n\t\t\t\t{\n\t\t\t\t\twm_debug(\"Bandwidth for label is \".$task[5].\"\\n\");\n\t\t\t\t\t\n\t\t\t\t\t$padding = intval($this->get_hint('bwlabel_padding'));\t\t\n\t\t\t\t\t\n\t\t\t\t\t// if screenshot_mode is enabled, wipe any letters to X and wipe any IP address to 127.0.0.1\n\t\t\t\t\t// hopefully that will preserve enough information to show cool stuff without leaking info\n\t\t\t\t\tif($map->get_hint('screenshot_mode')==1) $thelabel = screenshotify($thelabel);\n\n\t\t\t\t\tif($this->labelboxstyle == 'angled')\n\t\t\t\t\t{\n\t\t\t\t\t\t$angle = $task[6];\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$angle = 0;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t$map->DrawLabelRotated($im, $task[0], $task[1],$angle, $thelabel, $this->bwfont, $padding,\n\t\t\t\t\t\t\t$this->name, $this->bwfontcolour, $this->bwboxcolour, $this->bwoutlinecolour,$map, $task[7]);\n\t\t\t\t\t\n\t\t\t\t\t// imagearc($im, $task[0], $task[1], 10,10,0,360,$map->selected);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "function __construct($Latitude, $Longitude, $Miles) {\n global $maxLat, $minLat, $maxLong, $minLong;\n $EQUATOR_LAT_MILE = 69.172; // in MIles\n $maxLat = $Latitude + $Miles / $EQUATOR_LAT_MILE;\n $minLat = $Latitude - ($maxLat - $Latitude);\n $maxLong = $Longitude + $Miles / (cos($minLat * M_PI / 180) * $EQUATOR_LAT_MILE);\n $minLong = $Longitude - ($maxLong - $Longitude);\n }", "protected function initLocations(){}", "function new_geo_info(){\n\t\tadd_meta_box( \n\t\t\t'geo_info_section',\n\t\t\t'geo_info',\n\t\t\t'geo_custom_box',\n\t\t\t'post'\n\t\t);\n\t}", "public function output_map() {\n\n\t\tif ( $this->lat && $this->lng ) {\n\n\t\t\t$this->generate_map_lat_lng();\n\n\t\t} else {\n\n\t\t\t$this->generate_map_address();\n\t\t}\n\n\t\t?>\n\n\t\t<script src=\"https://maps.googleapis.com/maps/api/js?callback=initMap\"\n\t\t async defer></script>\n\n\t\t<div class=\"google-map-outer-wrapper\">\n\n\t\t\t<div id=\"map\"></div>\n\n\t\t</div>\n\n\t<?php }", "function getDistance2pts($coord1, $coord2){\n\t$r = 6366;\n\n\t$coord1[0] = deg2rad($coord1[0]);\n\t$coord1[1] = deg2rad($coord1[1]);\n\t$coord2[0] = deg2rad($coord2[0]);\n\t$coord2[1] = deg2rad($coord2[1]);\n\t\n\t$ds= acos(sin($coord1[0])*sin($coord2[0])+cos($coord1[0])*cos($coord2[0])*cos($coord1[1]-$coord2[1]));\n\t\n\t$dpr = $ds * $r;\n\t\n\treturn $dpr * 0.54;\t// return une distance en nm\t\n}", "function changementPositionCarte($X, $Y) {\n echo \"<script>var coordsup = new OpenLayers.LonLat($X,$Y);coordsup.transform(projSpherique,projCarte);var markersup = new OpenLayers.Marker(coordsup);calqueMarkers.addMarker(markersup);</script>\";\n echo \"<script>window.onload=function(){start($X, $Y);}</script>\";\n}", "public function run()\n {\n $cs = Yii::app()->getClientScript();\n\n $predefinedLatitude = $this->defaultLatitude;\n $predefinedLongitude = $this->defaultLongitude;\n\n\n if ($this->defaultLatitude == 'null') {\n $predefinedLatitude = self::DEFAULT_LATITUDE;\n }\n\n if ($this->defaultLongitude == 'null') {\n $predefinedLongitude = self::DEFAULT_LONGITUDE;\n }\n\n /* $cs->registerCoreScript('jquery');*/\n //Assign server side value to script\n $cs->registerScript('prepareMapData', \"\n var defaultLatitude = $this->defaultLatitude;\n var defaultLongitude = $this->defaultLongitude;\n var predefinedLatitude = $predefinedLatitude;\n var predefinedLongitude = $predefinedLongitude;\n var zoomLevel = $this->zoomLevel;\n var latitudeInputId = '$this->latitudeInputId';\n var longitudeInputId = '$this->longitudeInputId';\n \", CClientScript::POS_BEGIN);\n\n //Register js and css\n $cs->registerScriptFile(\"https://maps.googleapis.com/maps/api/js?key=\" . $this->apiKey, CClientScript::POS_BEGIN);\n $cs->registerScriptFile($this->assetsDir . '/map.js', CClientScript::POS_END);\n $cs->registerCssFile($this->assetsDir . '/map.css');\n\n $this->render('map', ['displayMode' => $this->displayMode]);\n }", "function getGoogleRoute($point1, $point2){\n //Reference: https://developers.google.com/maps/documentation/roads/snap\n \n $apiKey = getenv(\"GOOGLE_ROADS_API\");\n $pointStr = \"{$point1[0]},{$point1[1]}|{$point2[0]},{$point2[1]}\";\n $url = \"https://roads.googleapis.com/v1/snapToRoads?path={$pointStr}&interpolate=true&key={$apiKey}\";\n \n $result = file_get_contents($url);\n if ($result === FALSE || empty($result)) { \n echo \"Nothing returned from Google Roads API\";\n $result = FALSE;\n }\n //echo $result;\n return $result;\n}", "public function init()\n\t{\n\t\tparent::init();\n\n\t\tif(empty($this->id)) $this->id=\"map-canvas\";\n\n\t\tif(empty($this->container)) $this->container=\"div\";\n\n\t\tif(empty($this->markerIcon)) $this->markerIcon=\"\";\n\n\t\tif(empty($this->fitBound)) $this->fitBound=FALSE;\n\n\t\tif(empty($this->isCluster)) $this->isCluster=FALSE;\n\n\t\tif(!empty($this->style))\n\t\t{\n\t\t\tif(!is_array($this->style))\n\t\t\t{\n\t\t\t\t$this->inline_style=\" style=\\\"\".$this->style.\"\\\"\";\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$this->inline_style=\" style=\\\"\";\n\t\t\t\tforeach($this->style as $attribute=>$value)\n\t\t\t\t{\n\t\t\t\t\t$this->line_style .= $attribute.':'.$value.\";\";\n\t\t\t\t}\n\t\t\t\t$this->inline_style.=\"\\\"\";\n\t\t\t}\n\n\t\t}\n\n\t\tif(!empty($this->address))\n\t\t{\n\t\t\tif(!is_array($this->address))\n\t\t\t{\n\t\t\t\t$address=$this->getGeo($this->address);\n\t\t\t\tif($address!=FALSE) array_push($this->markers, $address);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tforeach($this->address as $adr)\n\t\t\t\t{\n\t\t\t\t\t$address=$this->getGeo($adr);\n\t\t\t\t\tif($address!=FALSE) array_push($this->markers, $address);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}", "function unit_map_function(&$data, $maps) {\n // idia symbash/paradoxh me to attendance_gradebook_activities_map_function()\n // des to ekei comment gia ta spasmena FKs\n list($document_map, $link_category_map, $link_map, $ebook_map, $section_map, $subsection_map, $video_map, $videolink_map, $video_category_map, $lp_learnPath_map, $wiki_map, $assignments_map, $exercise_map, $forum_map, $forum_topic_map, $poll_map) = $maps;\n if ($data['type'] == 'videolinks') {\n $data['type'] == 'videolink';\n }\n if (isset($data['course_weekly_view_id'])) {\n $data['unit_id'] = $data['course_weekly_view_id'];\n unset($data['unit_id']);\n }\n $type = $data['type'];\n if ($type == 'doc') {\n $data['res_id'] = @$document_map[$data['res_id']];\n } elseif ($type == 'linkcategory') {\n $data['res_id'] = @$link_category_map[$data['res_id']];\n } elseif ($type == 'link') {\n $data['res_id'] = @$link_map[$data['res_id']];\n } elseif ($type == 'ebook') {\n $data['res_id'] = @$ebook_map[$data['res_id']];\n } elseif ($type == 'section') {\n $data['res_id'] = @$section_map[$data['res_id']];\n } elseif ($type == 'subsection') {\n $data['res_id'] = @$subsection_map[$data['res_id']];\n } elseif ($type == 'description') {\n $data['res_id'] = intval($data['res_id']);\n } elseif ($type == 'video') {\n $data['res_id'] = @$video_map[$data['res_id']];\n } elseif ($type == 'videolink') {\n $data['res_id'] = @$videolink_map[$data['res_id']];\n } elseif ($type == 'videolinkcategory') {\n $data['res_id'] = @$video_category_map[$data['res_id']];\n } elseif ($type == 'lp') {\n $data['res_id'] = @$lp_learnPath_map[$data['res_id']];\n } elseif ($type == 'wiki') {\n $data['res_id'] = @$wiki_map[$data['res_id']];\n } elseif ($type == 'work') {\n if (isset($assignments_map[$data['res_id']])) {\n $data['res_id'] = @$assignments_map[$data['res_id']];\n } else {\n $data['res_id'] = $assignments_map[0];\n }\n } elseif ($type == 'exercise') {\n if (isset($exercise_map[$data['res_id']])) {\n $data['res_id'] = @$exercise_map[$data['res_id']];\n } else {\n $data['res_id'] = $exercise_map[0];\n }\n } elseif ($type == 'forum') {\n $data['res_id'] = @$forum_map[$data['res_id']];\n } elseif ($type == 'topic') {\n $data['res_id'] = @$forum_topic_map[$data['res_id']];\n } elseif ($type == 'poll') {\n $data['res_id'] = @$poll_map[$data['res_id']];\n }\n return true;\n}", "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}", "public function getMap($burn_id)\n {\n\n $zoom_to_fit = true;\n $control_title = \"Zoom to Burn Request\";\n\n $burn = $this->get($burn_id);\n $marker = $burn['location'];\n $day_iso = json_decode($burn['day_iso'], true);\n $night_iso = json_decode($burn['night_iso'], true);\n $burn_status = $this->retrieveStatus($burn['status_id']);\n\n global $map_center;\n\n $center_control = \"\n function centerControl(controlDiv, map) {\n // Control Div CSS\n controlDiv.style.padding = '5px';\n\n // Control Border CSS\n var controlUI = document.createElement('div');\n controlUI.style.backgroundColor = 'white';\n controlUI.style.borderStyle = 'solid';\n controlUI.style.borderWidth = '1px';\n controlUI.style.borderColor = '#999999';\n controlUI.style.borderOpacity = '0.7';\n controlUI.style.borderRadius = '2px';\n controlUI.style.cursor = 'pointer';\n controlUI.style.textAlign = 'center';\n controlUI.title = 'Click to return to the boundary';\n controlDiv.appendChild(controlUI);\n\n // Set CSS for the control interior\n var controlText = document.createElement('div');\n controlText.style.fontFamily = '\\\"Helvetica Neue\\\",Helvetica,Arial,sans-serif';\n controlText.style.fontSize = '12px';\n controlText.style.paddingLeft = '6px';\n controlText.style.paddingRight = '6px';\n controlText.innerHTML = '<b>$control_title</b>';\n controlUI.appendChild(controlText);\n\n google.maps.event.addDomListener(controlUI, 'click', function() {\n map.setZoom(11);\n map.panTo(marker.position);\n });\n\n }\";\n\n if ($zoom_to_fit == true) {\n $zoom = \"map.setZoom(11);\n map.panTo(marker.position);\";\n } else {\n $zoom = \"\";\n }\n\n if (!empty($boundary)) {\n $center = \"zoom: 6,\n center: new google.maps.LatLng($map_center),\";\n $latlng = explode(' ', str_replace(array(\"(\", \")\", \",\"), \"\", $boundary));\n $json_str = \"{ne:{lat:\".$latlng[2].\",lon:\".$latlng[3].\"},sw:{lat:\".$latlng[0].\",lon:\".$latlng[1].\"}}\";\n\n $bounds = \"\n // extend it using my two points\n var latlng = $json_str\n\n var bounds = new google.maps.LatLngBounds(\n new google.maps.LatLng(latlng.sw.lat,latlng.sw.lon),\n new google.maps.LatLng(latlng.ne.lat,latlng.ne.lon)\n );\n\n var rectangle = new google.maps.Rectangle({\n strokeColor: '#000',\n strokeOpacity: 0.4,\n strokeWeight: 2,\n fillColor: '#000',\n fillOpacity: 0.1,\n bounds: bounds,\n });\n\n rectangle.setMap(map);\";\n\n } else {\n $center = \"zoom: 10,\n center: new google.maps.LatLng($map_center),\";\n $bounds = \"\";\n }\n\n if (!empty($marker)) {\n $marker_latlng = explode(' ', str_replace(array(\"(\",\")\",\",\"), \"\", $marker));\n $marker_json_str = \"{lat:\".$marker_latlng[0].\",lon:\".$marker_latlng[1].\"}\";\n\n $marker = \"\n var marker_latlng = $marker_json_str\n\n var marker_center = new google.maps.LatLng(marker_latlng.lat, marker_latlng.lon);\n\n if (checkLegacy()) {\n var marker = new google.maps.Marker({\n position: marker_center,\n });\n } else {\n var marker = new google.maps.Marker({\n position: marker_center,\n icon: {\n path: google.maps.SymbolPath.CIRCLE,\n scale: 6,\n strokeColor: '#333',\n strokeOpacity: 1,\n strokeWeight: 1,\n fillColor: '\".$burn_status['color'].\"',\n fillOpacity: 1\n },\n });\n }\n\n marker.setMap(map)\n \";\n } else {\n $center = \"zoom: 10,\n center: new google.maps.LatLng(34.4,-111.8),\";\n $marker = \"\n var marker_center = bounds.getCenter();\n\n var marker = new google.maps.Marker({\n position: marker_center,\n draggable: true,\n });\n\n marker.setMap(map)\n \";\n }\n\n if (!empty($day_iso)) {\n $color = $this->day_iso_color;\n $day_iso = \"var day_iso = new isosceles(map, marker, {$day_iso['initDeg']}, {$day_iso['finalDeg']}, {$day_iso['amplitude']}, '{$color}')\";\n }\n\n if (!empty($night_iso)) {\n $color = $this->night_iso_color;\n $night_iso = \"var day_iso = new isosceles(map, marker, {$night_iso['initDeg']}, {$night_iso['finalDeg']}, {$night_iso['amplitude']}, '{$color}')\";\n }\n\n $html = \"\n <style>\n #map$id {\n $style\n }\n\n .map-canvas {height:348px;}\n\n div.stations2 svg {\n position: absolute;\n }\n </style>\n <div class=\\\"map-canvas\\\" id=\\\"map$id\\\"></div>\n <script>\n\n $center_control\n\n var map = new google.maps.Map(document.getElementById('map$id'), {\n $center\n mapTypeId: google.maps.MapTypeId.TERRAIN,\n panControl: false,\n zoomControl: true,\n mapTypeControl: false,\n streetViewControl: false,\n scrollwheel: false\n });\n\n var homeControlDiv = document.createElement('div');\n var homeControl = new centerControl(homeControlDiv, map);\n\n homeControlDiv.index = 1;\n map.controls[google.maps.ControlPosition.TOP_RIGHT].push(homeControlDiv);\n\n google.maps.event.trigger(map,'resize');\n\n $bounds\n\n $marker\n\n $zoom\n\n $day_iso\n\n $night_iso\n\n var Overlay = new Overlay();\n Overlay.setControls(map);\n\n </script>\n \";\n\n return $html;\n }", "function rh_gmw_friends_pass_map_data( $post_id, $post ) {\n if ( !function_exists( 'gmw_get_member_info_from_db' ) ) \n return;\n if ( !defined( 'GMW_PT_PATH' ) ) \n return;\n \n $user_id = $post->post_author;\n $member_info = gmw_get_member_info_from_db( $user_id );\n\n if(!empty($member_info)){\n include_once( GMW_PT_PATH .'/includes/gmw-pt-update-location.php' );\n if ( function_exists( 'gmw_pt_update_location' ) ) {\n $args = array(\n 'post_id' => $post_id,\n 'address' => $member_info->address,\n 'map_icon' => $member_info->map_icon,\n );\n gmw_pt_update_location( $args );\n } \n }\n}", "function getMQroute($point1, $point2){\n \n $apiKey = getenv(\"MQ_API\");\n //echo \"API key: \".$apiKey;\n $url = \"http://open.mapquestapi.com/directions/v2/route?key=$apiKey\";\n //$data = array('key1' => 'value1', 'key2' => 'value2');\n\n //For json format see https://developer.mapquest.com/documentation/open/directions-api/route/post/\n $jsonData = \n \"{\n 'locations' : [\n {'latLng': {\n 'lat': $point1[0],\n 'lng': $point1[1]\n }},\n {'latLng': {\n 'lat': $point2[0],\n 'lng': $point2[1]\n }}\n ],\n 'options' : {\n 'narrativeType' : 'none',\n 'shapeFormat' : 'cmp',\n 'generalize' : 0,\n 'timeType' : 1,\n 'highwayEfficiency' : 16.0\n }\n }\";\n \n $options = array(\n 'http' => array(\n 'header' => \"Content-Type: application/json\",\n 'method' => 'POST',\n 'content' => $jsonData\n )\n );\n $context = stream_context_create($options);\n //temp time limit\n set_time_limit(60);\n $result = file_get_contents($url, false, $context);\n if ($result === FALSE || empty($result)) { \n //echo \"Nothing returned from map quest\";\n $result = FALSE;\n }\n //echo $result;\n return $result;\n}", "public function Bali_map()\n\t{\n\t\t$this->template = view::factory('templates/Gmap')\n\t\t\t->set('lang', url::lang())\n\t\t\t->set('website_name', Kohana::lang('website.name'))\n\t\t\t->set('website_slogan', Kohana::lang('website.slogan'))\n\t\t\t->set('webpage_title', Kohana::lang('nav.'.str_replace('_', ' ', url::current())))\n\t\t\t->set('map_options', Kohana::config('Gmap.maps.Bali'))\n\t\t\t->set('map_markers', Kohana::config('Gmap.markers.Bali'))\n\t\t\t->set('map_icon_path', url::base().skin::config('images.Gmap.path'));\n\t}", "private function _setWebConfig()\n {\n $this->map_obj->set(\"name\", \"simplemappr\");\n $this->map_obj->setFontSet($this->font_file);\n $this->map_obj->web->set(\"template\", \"template.html\");\n $this->map_obj->web->set(\"imagepath\", $this->tmp_path);\n $this->map_obj->web->set(\"imageurl\", $this->tmp_url);\n }", "public function wktBuildPoint(array $point);", "public function addRangeMapping($src1, $src2, $dst, $size) {}", "function locations_init(&$options, $memberInfo, &$args){\n\n\t\treturn TRUE;\n\t}", "abstract public function setCurrentPoint(int $x, int $y);", "public function render() {\n\n $pointfinder_center_lat = PFSAIssetControl('setup5_mapsettings_lat','','33.87212589943945');\n $pointfinder_center_lng = PFSAIssetControl('setup5_mapsettings_lng','','-118.19297790527344');\n $pointfinder_google_map_zoom = PFSAIssetControl('setup5_mapsettings_zoom','','6');\n\n $pfitemid = get_the_id();\n if (isset($pfitemid)) {\n if (PFcheck_postmeta_exist('webbupointfinder_item_featuredmarker',$pfitemid)) {\n $pfcoordinates = explode( ',', esc_attr(get_post_meta( $pfitemid, 'webbupointfinder_items_location', true )) );\n }\n }\n\n if (isset($pfcoordinates[0])) {\n if (empty($pfcoordinates[0])) {\n $pfcoordinates = '';\n }\n }\n if (!empty($pfcoordinates)) {\n if (!is_array($pfcoordinates)) {\n $pfcoordinates = array($pointfinder_center_lat,$pointfinder_center_lng,$pointfinder_google_map_zoom);\n }else{\n if (isset($pfcoordinates[2]) == false) {\n $pfcoordinates[2] = $pointfinder_google_map_zoom;\n }\n }\n }else{\n $pfcoordinates = array($pointfinder_center_lat,$pointfinder_center_lng,$pointfinder_google_map_zoom);\n }\n \n \n echo '<div id=\"pfitempagestreetviewMap\" data-pfitemid=\"' . $this->field['id'] . '\" data-pfcoordinateslat=\"'.$pfcoordinates[0].'\" data-pfcoordinateslng=\"'.$pfcoordinates[1].'\" data-pfzoom = \"'.$pfcoordinates[2].'\"></div>';\n echo '<input id=\"' . $this->field['id'] . '-heading\" name=\"' . $this->field['name'] . '[heading]' . $this->field['name_suffix'] . '\" value=\"' . $this->value['heading'] . '\" type=\"hidden\" />';\n echo '<input id=\"' . $this->field['id'] . '-pitch\" name=\"' . $this->field['name'] . '[pitch]' . $this->field['name_suffix'] . '\" value=\"' . $this->value['pitch'] . '\" type=\"hidden\" />';\n echo '<input id=\"' . $this->field['id'] . '-zoom\" name=\"' . $this->field['name'] . '[zoom]' . $this->field['name_suffix'] . '\" value=\"' . $this->value['zoom'] . '\" type=\"hidden\" />';\n\n }", "public function __construct($map) {\n $this->loadMap($map);\n $this->loadAlgorithm(\"Astar\");\n }", "abstract protected function getMapping();", "abstract protected function getMapping();", "public function set_chain_store_coordinates() \n {\n // get all chain stores\n $chain_stores = $this->admin_model->get_all(CHAIN_STORE_TABLE);\n \n foreach ($chain_stores as $store) \n {\n if($store->longitude == 0 && $store->latitude == 0)\n {\n $data = array(\"longitude\" => 0, \"latitude\" => 0, \"id\" => $store->id);\n $coordinates = $this->geo->get_coordinates($store->city, $store->address, $store->state, $store->country);\n if($coordinates)\n {\n $data[\"longitude\"] = $coordinates[\"long\"];\n $data[\"latitude\"] = $coordinates[\"lat\"];\n }\n\n $this->admin_model->create(CHAIN_STORE_TABLE, $data);\n }\n \n }\n }", "public function get_map( $template )\n {\n//$this->pObj->dev_var_dump( $this->pObj->rows );\n $this->rowsBackup();\n\n // init the map\n $this->init();\n\n // RETURN: map isn't enabled\n switch ( true )\n {\n case( $this->mapLLleafletIsEnabled()):\n // Follow the workflow\n break;\n case( empty( $this->enabled ) ):\n case( $this->enabled == 'disabled'):\n if ( $this->pObj->b_drs_map )\n {\n $prompt = 'RETURN. Map is disabled.';\n t3lib_div :: devLog( '[INFO/BROWSERMAPS] ' . $prompt, $this->pObj->extKey, 0 );\n }\n $this->rowsReset();\n return $template;\n default:\n // Follow the workflow\n break;\n } // RETURN: map isn't enabled\n // DRS\n if ( $this->pObj->b_drs_warn )\n {\n $prompt = 'The map module uses a JSON array. If you get any unexpected result, ' .\n 'please remove config.xhtml_cleaning and/or page.config.xhtml_cleaning ' .\n 'in your TypoScript configuration of the current page.';\n t3lib_div :: devLog( '[WARN/BROWSERMAPS] ' . $prompt, $this->pObj->extKey, 2 );\n $prompt = 'The map module causes some conflicts with AJAX. Please disable AJAX in the ' .\n 'plugin/flexform of the browser.';\n t3lib_div :: devLog( '[WARN/BROWSERMAPS] ' . $prompt, $this->pObj->extKey, 2 );\n }\n // DRS\n//$this->pObj->dev_var_dump( $this->pObj->rows[ 0 ] );\n\n if ( $this->enabled == 'Map +Routes' )\n {\n $arr_result = $this->renderMapRoute();\n //$this->pObj->dev_var_dump( $arr_result );\n switch ( true )\n {\n case( empty( $arr_result[ 'marker' ] ) ):\n if ( $this->pObj->b_drs_warn )\n {\n $prompt = 'There isn\\'t any marker row!';\n t3lib_div :: devLog( '[WARN/BROWSERMAPS] ' . $prompt, $this->pObj->extKey, 3 );\n }\n break;\n case(!empty( $arr_result[ 'marker' ] ) ):\n default:\n // #i0020, 130718, dwildt\n $this->pObj->rows = $arr_result[ 'marker' ];\n break;\n }\n $jsonRoutes = $arr_result[ 'jsonRoutes' ];\n unset( $arr_result );\n } // if Map +Routes is enabled\n\n $template = $this->initMapMarker( $template ); // add map marker, if marker is missing\n\n $template = $this->renderMap( $template );\n\n // RETURN map (without Routes)\n if ( $this->enabled != 'Map +Routes' )\n {\n // RETURN the template\n $this->rowsReset();\n return $template;\n } // RETURN map (without Routes)\n\n $mode = $this->confMap[ 'compatibility.' ][ 'mode' ];\n if ( $mode != 'oxMap (deprecated)' )\n {\n if ( $this->pObj->b_drs_warn )\n {\n $prompt = 'map mode isn\\'t ' . $mode . '. Map +Routes will not handled.';\n t3lib_div :: devLog( '[WARN/BROWSERMAPS] ' . $prompt, $this->pObj->extKey, 3 );\n }\n $this->rowsReset();\n return $template;\n } // RETURN map (without Routes)\n\n switch ( true )\n {\n case( empty( $jsonRoutes ) ):\n if ( $this->pObj->b_drs_warn )\n {\n $prompt = 'JSON array for the variable routes is empty!';\n t3lib_div :: devLog( '[WARN/BROWSERMAPS] ' . $prompt, $this->pObj->extKey, 3 );\n }\n break;\n case(!empty( $jsonRoutes ) ):\n default:\n $template = str_replace( \"'###ROUTES###'\", $jsonRoutes, $template );\n break;\n }\n\n // RETURN map (with Routes)\n $this->rowsReset();\n return $template;\n }" ]
[ "0.6178358", "0.59508914", "0.5788489", "0.56822544", "0.554278", "0.5519679", "0.5507731", "0.5440751", "0.5418437", "0.53905624", "0.5362328", "0.5344105", "0.52645737", "0.52640826", "0.52540594", "0.5242742", "0.52311367", "0.5222009", "0.5221249", "0.5212175", "0.5195487", "0.5180524", "0.5164916", "0.51544917", "0.51496136", "0.5146119", "0.51363975", "0.51360965", "0.5106493", "0.5103353", "0.51002204", "0.50913864", "0.508474", "0.50799036", "0.5061424", "0.5039233", "0.5028481", "0.50259304", "0.50155115", "0.50089425", "0.50060964", "0.50022113", "0.4974915", "0.4954388", "0.49502385", "0.49442288", "0.49369714", "0.4931186", "0.4920528", "0.49112448", "0.49099314", "0.49061257", "0.4891166", "0.4882364", "0.4882364", "0.48786455", "0.48721206", "0.48704693", "0.4869322", "0.48665187", "0.485227", "0.4851416", "0.4839144", "0.48320642", "0.48123103", "0.47966442", "0.47924373", "0.47918674", "0.47817194", "0.4778584", "0.4773921", "0.47712192", "0.47681123", "0.47666487", "0.4759598", "0.47389254", "0.47378984", "0.4724283", "0.47079188", "0.46985185", "0.4693272", "0.46893242", "0.46884283", "0.46834522", "0.46826035", "0.468083", "0.46699432", "0.46692282", "0.46658027", "0.466507", "0.4653315", "0.46529794", "0.46492493", "0.4646043", "0.46377873", "0.46272087", "0.46259707", "0.46258992", "0.46258992", "0.4625681", "0.46250322" ]
0.0
-1
Display a listing of the resource.
public function index() { $units=Unit::select()->orderBy('id')->paginate(); return view('pages.admin.unit.index',compact('units')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function indexAction()\n {\n $limit = $this->Request()->getParam('limit', 1000);\n $offset = $this->Request()->getParam('start', 0);\n $sort = $this->Request()->getParam('sort', array());\n $filter = $this->Request()->getParam('filter', array());\n\n $result = $this->resource->getList($offset, $limit, $filter, $sort);\n\n $this->View()->assign($result);\n $this->View()->assign('success', true);\n }", "public function listing();", "function index() {\n\t\t$this->show_list();\n\t}", "public function actionList() {\n $this->_getList();\n }", "public function listAction()\n {\n $model = $this->_getPhotoModel();\n $entries = $model->fetchEntries($this->_getParam('page', 1));\n\n $this->view->url = 'http://' . $this->_request->getHttpHost() . $this->_request->getBaseUrl(); \n $this->view->paginator = $entries;\n }", "public function index()\n {\n $items = Item::all();\n return ItemForShowResource::collection($items);\n }", "public function index()\n {\n return Resource::collection(($this->getModel())::paginate(10));\n }", "function index()\n\t{\n\t\t$this->_list();\n\t\t$this->display();\n\t}", "public function listingAction(){\n if (!LoginHelper::isAdmin()){\n Router::redirect('home', '<p class=\"alert alert-danger\">Unauthorized</p>');\n }\n $this->view->render('patient/list', Patient::all());\n }", "public function index()\n {\n //\n $list = $this->obj->all();\n\n return $this->render('index', compact('list'));\n }", "public function action_index()\n\t{\n\t\t$this->template->title = 'Resources';\n\t\t$this->view = View::factory('admin/resource/index');\n\t\t$this->template->scripts[] = 'media/js/jquery.tablesorter.min.js';\n\t\t$this->template->scripts[] = 'media/js/admin/resource.js';\n\t\t\n\t\t$resources = Sprig::factory('resource')->load(NULL, FALSE);\n\t\tif (!empty($resources))\n\t\t{\n\t\t\t$this->view->resources = $resources->as_array();\n\t\t}\n\t}", "function listing()\n\t\t{\n\t\t// en $this->_view->_listado para poder acceder a el desde la vista.\n\t\t\t$this->_view->_listado = $listado = $this->_instrumentoModel->getInstrumento();\n\t\t\t$this->_view->render('listing', '', '',$this->_sidebar_menu);\n\t\t}", "public function listAction()\n {\n $em = $this->getDoctrine()->getManager();\n \n $todos = $em->getRepository(Todo::class)->findAll();\n \n return $this->render('todo/index.html.twig', array(\n 'todos' => $todos,\n ));\n }", "public function index()\n\t{\n $this->authorize('list', Instance::class);\n\n\t\treturn $this->ok($this->repo->paginate($this->request->all()));\n\t}", "public function actionRestList() {\n\t $this->doRestList();\n\t}", "public function listing()\n\t{\n\t\t$hospitalID = $this->request->getSession()->read(\"hospital_id\") ? $this->request->getSession()->read(\"hospital_id\") : \"\";\n\t\t\n\t\t$patientMonitored = 1;\n\t\t$patientActive = 1;\n\t\t\n\t\t//GET ALL PATIENTS\n\t\t$patientsData = $this->Patients->allPatients($hospitalID,$patientMonitored,$patientActive);\n\t\t//GET ALL PATIENTS\n\t\t\n\t\t//echo \"<pre>\"; print_r($patientsData);die;\n\t\t$this->set(compact(\"patientsData\"));\n\t}", "public function listAction()\n {\n $htmlpage = '<!DOCTYPE html>\n<html>\n <head>\n <meta charset=\"UTF-8\">\n <title>todos list!</title>\n </head>\n <body>\n <h1>todos list</h1>\n <p>Here are all your todos:</p>\n <ul>';\n \n $em = $this->getDoctrine()->getManager();\n $todos = $em->getRepository(Todo::class)->findAll();\n foreach($todos as $todo) {\n $htmlpage .= '<li>\n <a href=\"/todo/'.$todo->getid().'\">'.$todo->getTitle().'</a></li>';\n }\n $htmlpage .= '</ul>';\n\n $htmlpage .= '</body></html>';\n \n return new Response(\n $htmlpage,\n Response::HTTP_OK,\n array('content-type' => 'text/html')\n );\n }", "public function index()\n {\n // Get Persons\n $person = Person::paginate(10);\n\n //Return collection of person as a resource\n return PersonResource::collection($person);\n }", "public function listAction() {\n\t\t$this->view->title = $this->translator->translate(\"Invoice list\");\n\t\t$this->view->description = $this->translator->translate(\"Here you can see all the invoices.\");\n\t\t$this->view->buttons = array(array(\"url\" => \"/admin/invoices/new/\", \"label\" => $this->translator->translate('New'), \"params\" => array('css' => null)));\r\n\t\t$this->datagrid->setConfig ( Invoices::grid() )->datagrid ();\n\t}", "public function listAll()\n\t{\n\t\t$this->render(self::PATH_VIEWS . '/list', [\n\t\t\t'pages' => $this->pagesDb->findAll('id', 'DESC'),\n\t\t]);\n\t}", "public function list()\n {\n // récupérer les données : toutes les catégories enregistrées\n $productList = Product::findAll();\n\n $this->show('product/list', [\n 'productList' => $productList\n ]);\n }", "public function index()\n {\n // CRUD -> Retrieve --> List\n // BREAD -> Browse Read Edit Add Delete\n // return Item::all();\n return view('list_items',compact('items'));\n }", "public function index()\n {\n // Get manufacturers\n $manufacturers = Manufacturer::orderBy('created_at', 'desc')->paginate(15);\n\n // Return collection of manufacturers as a resource\n return ManufacturerResource::collection($manufacturers);\n }", "public function index()\n {\n return ArtistResource::collection(Artist::orderBy('created_at', 'desc')->get());\n }", "public function indexAction() {\n\t\t$page = intval($this->getInput('page'));\n\t\t$perpage = $this->perpage;\n\t\t\n\t\tlist(,$files) = Lock_Service_FileType::getAllFileType();\n\t\t$data = array();\n\t\tforeach ($files as $key=>$value) {\n\t\t\t$data[$key]['id'] = $value['id'];\n\t\t\t$data[$key]['title'] = $value['name'];\n\t\t}\n\t\tlist($total, $filetype) = Lock_Service_FileType::getList($page, $perpage);\n\t\t$this->assign('filetype', $filetype);\n\t\t$this->assign('pager', Common::getPages($total, $page, $perpage, $this->actions['listUrl'].'/?'));\n\t\t$this->assign('data', json_encode($data));\n\t}", "public function listAction()\n {\n $qb = $this->getRepository()->queryAll();\n\n $view = new ImportListView;\n $view->imports = $qb->getQuery()->execute();\n\n return $this->templating->renderResponse('InfiniteImportBundle:Import:list.html.twig', array(\n 'data' => $view\n ));\n }", "public function index()\n\t{\n\t\t//Return model all()\n\t\t$instances = $this->decorator->getListingModels();\n\n\t\treturn View::make($this->listingView, array(\n\t\t\t'instances' => $instances,\n\t\t\t'controller' => get_class($this), \n\t\t\t'modelName' => class_basename(get_class($this->decorator->getModel())),\n\t\t\t'columns' => $this->getColumnsForInstances($instances),\n\t\t\t'editable' => $this->editable\n\t\t));\n\t}", "public function index()\n {\n return InfografiResources::collection(\n Infografi::orderBy('date', 'desc')->get()\n );\n }", "public function listAction()\n\t {\n\t\t\t$this->_forward('index');\n \n\t\t}", "public function index()\n {\n $this->list_view();\n }", "public function index()\n {\n $this->list_view();\n }", "public function index()\n {\n $this->list_view();\n }", "public function listAction()\n {\n $defaults = array(\n 'page' => null,\n 'order' => null,\n 'limit' => null,\n 'offset' => null,\n 'filter' => array(),\n );\n $body = $this->getRequest()->getBody();\n $options = $body + $defaults;\n\n // Process the options\n if (is_string($options['order'])) {\n $options['order'] = array_map('trim', explode(',', $options['order']));\n }\n if (is_string($options['page'])) {\n $options['page'] = (int)$options['page'];\n }\n if (is_string($options['limit'])) {\n $options['limit'] = (int)$options['limit'];\n }\n if (is_string($options['offset'])) {\n $options['offset'] = (int)$options['offset'];\n }\n $filter = $options['filter'];\n unset($options['filter']);\n\n $options = array_filter($options);\n\n return $this->getBinding()->find($filter, $options);\n }", "public function index()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Get the resources from the model */\n $resources = $this->resourcesList($this->model);\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.index\")) {\n $view = \"admin.{$this->name}.index\";\n } else {\n $view = 'admin.includes.actions.index';\n }\n\n /* Display a listing of the resources */\n return view($view)\n ->with('resources', $resources)\n ->with('module', $this->module);\n }", "public function index()\n\t{\n\t\t$data['lists'] = $this->mdl_student->get_all();\n\t\t$this->template->set('title', 'Student Hostel List');\n\t\t$this->template->load('template', 'contents', 'student_hostel/student_hostel_list', $data);\n\t}", "public function index()\n {\n $modules = Module::all();\n return Resource::collection($modules);\n }", "public function index()\n {\n // List all resources from user entity\n $users = User::all();\n\n return $this->showAll($users);\n }", "public function index()\n {\n // Get todos\n $todos = Todo::orderBy('created_at', 'desc')->paginate(3);\n\n // Return collection of articles as a resource\n return TodoResource::collection($todos);\n }", "public function index()\n {\n return Resources::collection(Checking::paginate());\n }", "public function index()\n {\n return CourseListResource::collection(\n Course::query()->withoutGlobalScope('publish')\n ->latest()->paginate()\n );\n }", "public function index()\n {\n $cars = Car::paginate(15);\n return CarResource::collection($cars);\n }", "public function index()\n {\n // Get articles\n $articles = Article::orderBy('created_at', 'desc')->paginate(5);\n\n // Return collection of articles as a resource\n return ArticleResource::collection($articles);\n }", "public function index()\n {\n $authors = Author::paginate(10);\n\n return AuthorResource::collection($authors);\n }", "public function index()\n {\n //Get Books\n $books = Book::paginate(10);\n \n if ($books) {\n return (BookResource::collection($books))->additional([\n 'status_code' => 200,\n 'status' => 'success',\n ]);\n } else {\n return (BookResource::collection([]))->additional([\n 'status_code' => 200,\n 'status' => 'success',\n ]);\n }\n return view('index')->with('data', $books);\n }", "public function view(){\n\t\t$this->buildListing();\n\t}", "public function index()\n {\n $books = Book::latest()\n ->paginate(20);\n\n return BookResource::collection($books);\n }", "public function index()\n {\n $listing = Listing::orderBy('id', 'desc')->paginate(10);\n return view('listings.index')->withListings($listing);\n }", "public function listAction()\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 }", "public function index()\n {\n $services = $this->serviceRepository->paginate();\n\n return ServiceResource::collection($services);\n }", "public function index()\n {\n $resources = ResourceManagement::paginate(5);\n $users = User::get();\n\n return view('resources-mgmt/index', ['resources' => $resources, 'users' => $users]);\n }", "public function index()\n {\n $catalogs = Catalog::where('status', '=', Catalog::PUBLICADO)\n ->orderBy('id', 'DESC')->get();\n \n $data = CatalogResource::collection($catalogs);\n\n return [\n 'items' => $data,\n 'mensaje' => ''\n ];\n }", "public function listAction(){\n // In a controller this can be:\n // $this->request->getQuery('page', 'int'); // GET\n $currentPage = $this->request->getPost('pageindex', 'int'); // POST\n $pageNum = ($currentPage == null) ? 1 : $currentPage;\n\n // The data set to paginate\n $message = new Notice();\n $results = $message->getMsg4Admin();\n\n // Create a Model paginator, show 10 rows by page starting from $currentPage\n $paginator = new PaginatorArray(\n array(\n \"data\" => $results,\n \"limit\" => 10,\n \"page\" => $pageNum\n )\n );\n\n // Get the paginated results\n $page = $paginator->getPaginate();\n\n return $this->response->setJsonContent($page);\n\n }", "public function list()\n {\n try {\n return $this->success($this->service->list());\n } catch (\\Exception $exception) {\n return $this->error($exception->getMessage());\n }\n }", "public function index()\n {\n return $this->sendResponse(CrisisResource::collection(Crisis::paginate(10)), 'Data fetched successfully');\n }", "public function index()\n\t{\n\t\t$%Alias = new %Model();\n\t\t$params = array();\n\t\t\n\t\t$Paginator = new Paginator( $%Alias->findSize( $params ), $this->getLimit(), $this->getPage() );\n\t\t$this->getView()->set( '%Aliass', $%Alias->findList( $params, 'Id desc', $this->getOffset(), $this->getLimit() ) );\n\t\t$this->getView()->set( 'Paginator', $Paginator );\n\t\treturn $this->getView()->render();\n\t}", "public function listAction() {}", "public function index()\n {\n\n return RecipeResource::collection(Recipe::all());\n }", "public function index()\n {\n $this->indexPage('list-product', 'List Product');\n }", "public function listAction()\n {\t\n\t\t$this->removeSession();\n\t\t$this->verifySessionRights();\n\t\t$this->setActivity(\"List view\");\n $em = $this->getDoctrine()->getManager();\n $oRepClient = $em->getRepository('BoAdminBundle:Client');\n\t\t$nb_tc = $oRepClient->getTotal();\n\t\t//get page\n\t\t$page = $this->get('session')->get('page');\n\t\tif($page==null){\n\t\t\t$page=1;\n\t\t\t$this->get('session')->set('page',1);\n\t\t}\n\t\t//get number line per page\n\t\t$nb_cpp = $em->getRepository('BoAdminBundle:Param')->getParam(\"display_list_page_number\",1);\n\t\t$nb_pages = ceil($nb_tc/$nb_cpp);\n\t\t$offset = $page>0?($page-1) * $nb_cpp:0;\n\t\t$clients = $em->getRepository('BoAdminBundle:Client')->findBy(array(),array('id' => 'desc'),$nb_cpp,$offset);\n $form = $this->createForm('Bo\\AdminBundle\\Form\\ClientType', new Client());\n return $this->render('client/index.html.twig', array(\n 'clients' => $clients,\n\t\t\t'page' => $page, // forward current page to view,\n\t\t\t'nb_pages' => $nb_pages, //total number page,\n 'form' => $form->createView(),\n\t\t\t'total'=>$nb_tc, // record number.\n\t\t\t'nb_cpp' => $nb_cpp,// line's number to display\n\t\t\t'pm'=>\"contracts\",\n\t\t\t'sm'=>\"client\",\n ));\n }", "public function index()\n {\n return AcResource::collection(Ac::latest()->paginate()); //\n }", "public function executeList()\n {\n $this->setTemplate('list');\n }", "public function indexAction()\n {\n $books = Book::getAll();\n\n View::renderTemplate('Books/index.html', [\n 'books' => $books\n ]);\n }", "function listing() {\r\n\r\n }", "public function listar() {\n $rs = $this->model->listar();\n\n echo $this->toJson($rs);\n }", "public function index()\n {\n return BookResource::collection(Book::orderby('id')->get());\n }", "public function doRestList()\n {\n $this->outputHelper( \n 'Records Retrieved Successfully', \n $this->getModel()->with($this->nestedRelations)->filter($this->restFilter)->orderBy($this->restSort)->limit($this->restLimit)->offset($this->restOffset)->findAll(),\n $this->getModel()->with($this->nestedRelations)->filter($this->restFilter)->count()\n );\n\t}", "public function index()\n {\n $client = Client::paginate();\n return ClientResource::collection($client);\n }", "public function index()\n {\n return TagResource::collection(\n Tag::orderBy('name', 'ASC')->paginate(request('per_page', 10))\n );\n }", "public function _index(){\n\t $this->_list();\n\t}", "public function index()\n\t{\n\t\t$data['lists'] = $this->gallery_mdl->get_all();\n\t\t$this->template->set('title', 'Gallery');\n\t\t$this->template->render('template', 'list', $data);\n\t}", "function drush_restapi_list() {\n\n $resources = restapi_get_resources();\n $last_module = NULL;\n $rows = [\n [dt('Module'), dt('Path'), dt('Class')],\n ];\n\n foreach($resources as $resource) {\n if ($last_module != $resource->getModule()) {\n $module = $last_module = $resource->getModule();\n }\n else {\n $module = '';\n }\n $rows[] = [$module, $resource->getPath(), $resource->getClass()];\n }\n\n drush_print_table($rows, TRUE);\n drush_log(dt('Displaying !count total resources', [\n '!count' => count($resources),\n ]), 'ok');\n\n}", "public function index()\n {\n $this->booklist();\n }", "public function index()\n {\n //\n $accounts = accounts::paginate(15);\n\n //return the collection of employees as a resource\n return accountResource::collection($accounts);\n\n\n }", "public function index()\n {\n $items = Item::all();\n return view('items::list_items',compact('items'));\n }", "public function index()\n {\n // Get houses\n $houses = House::orderBy('created_at', 'desc')->paginate(self::PAGINATE);\n \n // Return collection of houses\n \n return HouseResource::collection($houses);\n }", "public function index()\n {\n $products = Product::paginate(6);\n return ProductResource::collection($products);\n }", "public function index() {\n $this->template->allFoundItems = Found::showAll();\n $this->template->display( 'index.html.php' );\n }", "public function indexAction() {\n $this->_forward('list');\n }", "public function index()\n {\n $data = Productcategory::paginate(10);\n\t\treturn ProductcategoryResource::Collection($data);\n }", "public function index()\n {\n return SongResource::collection(\\App\\Song::orderBy('created_at', 'desc')->get());\n }", "public function ListView()\n\t{\n\t\t\n\t\t// Requer permissão de acesso\n\t\t$this->RequirePermission(Usuario::$P_ADMIN,\n\t\t\t\t'SecureExample.LoginForm',\n\t\t\t\t'Autentique-se para acessar esta página',\n\t\t\t\t'Você não possui permissão para acessar essa página ou sua sessão expirou');\n\t\t\n\t\t//$usuario = Controller::GetCurrentUser();\n\t\t//$this->Assign('usuario',$usuario);\n\t\t$this->Render();\n\t}", "public function index () {\n permiss ( 'role.list' );\n\n $data = $this->entity\n ->orderBy('created_at', 'desc')->get();\n\n return new ModelResource($data);\n }", "public function showResources()\n {\n $resources = Resource::get();\n return view('resources', compact('resources'));\n }", "public function index()\n {\n //get articless\n $articles = Article::paginate(15);\n\n //Return collection of article has a resource\n return ArticleResource::collection($articles);\n\n }", "public function actionList() {\n header(\"Content-type: application/json\");\n $verb = $_SERVER[\"REQUEST_METHOD\"];\n\n if ($verb === 'GET') {\n echo \"{\\\"data\\\":\" . CJSON::encode(Donneur::model()->findAll()) . \"}\";\n } else if ($verb == 'POST') {\n if (Donneur::model()->exists('id' === $_POST['id'])) {\n $this->actionListUpdate($_POST);\n } else {\n $this->actionListPost();\n }\n } else if ($verb == 'DELETE') {\n $this->actionListDelete();\n }\n }", "public function list()\n {\n return $this->http->request(HttpMethods::GET, $this->endpoint);\n }", "public function indexAction(){\n $data = array(\n 'collection' => $this->model->getCollection(),\n \n ); \t\n return $this->getView($data);\n }", "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $entities = $em->getRepository('DiverPriceLisrBundle:Items')->findAll();\n\n return $this->render('DiverPriceLisrBundle:Items:index.html.twig', array(\n 'entities' => $entities,\n ));\n }", "public function actionIndex()\n {\n $dataProvider = new ActiveDataProvider([\n 'query' => Slaves::find(),\n ]);\n\n return $this->render('index', [\n 'dataProvider' => $dataProvider,\n ]);\n }", "public function listAction() {\n\t\t// Recogemos el repositorio\n\t\t$repository = $this->getDoctrine() ->getRepository('AppBundle:Product');\n\t\n\t\t// Recuperamos todos los productos.\n\t\t$products = $repository->findAll();\n\t\t// Pasamos a la plantilla el aray products\n\t\treturn $this->render('product/listActionProduct.html.twig', array( 'products' => $products));\n\t\n\t}", "public function listAction()\n\t {\n\t\t$model = $this->_getModel();\n\t\t$result = $model->getLayouts();\t\n\t\t$page = (int)($this->_request->getParam('page')); \n\t\tif(count($result) > 0)\n\t\t{ \n\t\t\tGlobals::doPaging($result, $page, $this->view);\n\t\t}\n\t\t\t\t\n\t\t$this->view->page = $page;\n\t }", "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 $model->u_cms_album_id = $_GET['album'];\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 // datas\n $datas = $dataProvider->getData();\n\n // related datas\n $relatedDatas = $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 $filtersDatas = array();\n if (isset($_GET[$this->_model])) {\n $filtersDatas[$this->_model] = $_GET[$this->_model];\n }\n if (isset($_GET[$sort->sortVar])) {\n $filtersDatas[$sort->sortVar] = $_GET[$sort->sortVar];\n }\n\n $jsonParams = array(\n 'filters' => http_build_query($filtersDatas)\n );\n }\n\n $this->dynamicRender(\n $template,\n array(\n 'dataView' => new $this->crudComponents['listDataView'](\n $datas, $relatedDatas, $model, $sort, $pagination, $this\n )\n ),\n $jsonParams\n );\n }", "public function index()\n {\n return view('listings.index')->with('listings', Listing::all());\n }", "public function get_index()\n\t{\n\t\t$pages = Page::recent_available()->paginate(30);\n\t\t$table = Cello\\Presenter\\Page::table($pages);\n\t\t$data = array(\n\t\t\t'eloquent' => $pages,\n\t\t\t'table' => $table,\n\t\t);\n\n\t\tSite::set('title', __('cello::title.pages.list'));\n\n\t\treturn View::make('cello::api.resources.index', $data);\n\t}", "public function index()\n {\n return ProductResource::collection(Product::latest()->paginate(10));\n }", "public function index()\n {\n $category = GalleryCategory::paginate(15);\n\n // return collection of category as a resource.\n return Resource::collection($category);\n }", "public function index()\n {\n //\n $news = News::latest()->paginate(18);\n\n return NewsResource::collection($news);\n }", "public function indexAction() {\n\t\t$list_info = Zend_Registry::get('list_info');\n if (!Engine_Api::_()->core()->hasSubject('list_listing')) {\n return $this->setNoRender();\n }\n \n $this->view->expiry_setting = Engine_Api::_()->list()->expirySettings();\n\n //GET SUBJECT\n $this->view->list = $list = Engine_Api::_()->core()->getSubject('list_listing');\n\n\t\t//GET CATEGORY TABLE\n\t\t$this->view->tableCategory = Engine_Api::_()->getDbTable('categories', 'list');\n\n //GET CATEGORIES NAME\n\t\t$this->view->category_name = $this->view->subcategory_name = $this->view->subsubcategory_name = '';\n\n\t\tif(!empty($list->category_id)) {\n\t\t\tif($this->view->tableCategory->getCategory($list->category_id))\n\t\t\t$this->view->category_name = $this->view->tableCategory->getCategory($list->category_id)->category_name;\n\n\t\t\tif(!empty($list->subcategory_id)) {\n\t\t\t\tif($this->view->tableCategory->getCategory($list->subcategory_id))\n\t\t\t\t$this->view->subcategory_name = $this->view->tableCategory->getCategory($list->subcategory_id)->category_name;\n\n\t\t\t\tif(!empty($list->subsubcategory_id)) {\n\t\t\t\t\tif($this->view->tableCategory->getCategory($list->subsubcategory_id))\n\t\t\t\t\t$this->view->subsubcategory_name = $this->view->tableCategory->getCategory($list->subsubcategory_id)->category_name;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n //GET LISTING TAGS\n $this->view->listTags = $list->tags()->getTagMaps();\n\n\t\t//GET OTHER DETAILS\n\t\t$this->view->list_description = Zend_Registry::get('list_descriptions');\n $this->view->addHelperPath(APPLICATION_PATH . '/application/modules/Fields/View/Helper', 'Fields_View_Helper');\n $this->view->fieldStructure = Engine_Api::_()->fields()->getFieldsStructurePartial($list);\n\t\tif(empty($list_info)){ return $this->setNoRender(); }\n }", "public function index()\n {\n return $this->service->fetchResources(Author::class, 'authors');\n }", "public function index()\n {\n return view('admin.resources.index');\n }", "public function doRestList() {\n\t\t$this->outputHelper ( 'Collections Retrieved Successfully', $this->getModel ()->with ( $this->nestedRelations )->filter ( $this->restFilter )->orderBy ( $this->restSort )->limit ( $this->restLimit )->offset ( $this->restOffset )->findAll (), $this->getModel ()->with ( $this->nestedRelations )->filter ( $this->restFilter )->count () );\n\t}" ]
[ "0.7446777", "0.736227", "0.73005503", "0.72478926", "0.71631265", "0.71489686", "0.7131636", "0.7105969", "0.71029514", "0.7101372", "0.70508176", "0.6995128", "0.69890636", "0.6934895", "0.6900203", "0.6899281", "0.6891734", "0.6887235", "0.68670005", "0.6849741", "0.6830523", "0.6802689", "0.6797", "0.67957735", "0.67871135", "0.6760129", "0.67427456", "0.6730486", "0.67272323", "0.67255723", "0.67255723", "0.67255723", "0.67177945", "0.6707866", "0.6706713", "0.6704375", "0.6664782", "0.6662871", "0.6660302", "0.6659404", "0.6656656", "0.6653517", "0.6647965", "0.6620322", "0.66185474", "0.6618499", "0.6606105", "0.6600617", "0.65996987", "0.6594775", "0.6587389", "0.6585109", "0.6581641", "0.6581017", "0.6577157", "0.65747666", "0.6572513", "0.65721947", "0.6570553", "0.65646994", "0.6563556", "0.6554194", "0.65529937", "0.65460825", "0.65368485", "0.653429", "0.65328294", "0.6526759", "0.6526695", "0.6526284", "0.65191334", "0.65183175", "0.65174305", "0.651703", "0.65141153", "0.6507088", "0.65061647", "0.6504046", "0.64942145", "0.6491893", "0.64883405", "0.6486392", "0.6485077", "0.64846045", "0.6478858", "0.64756656", "0.64726377", "0.6471126", "0.64701074", "0.6467418", "0.6462195", "0.64618355", "0.6459199", "0.6457831", "0.6454631", "0.64533997", "0.6451915", "0.6450861", "0.6449301", "0.64492667", "0.64469045" ]
0.0
-1
Show the form for creating a new resource.
public function create() { return view('pages.admin.unit.create'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return view('admin.resources.create');\n }", "public function create(){\n\n return view('resource.create');\n }", "public function create()\n\t{\n\t\treturn $this->showForm('create');\n\t}", "public function create()\n {\n return \"Display a form for creating a new catalogue\";\n }", "public function newAction()\n {\n $entity = new Resource();\n $current = $this->get('security.context')->getToken()->getUser();\n $entity->setMember($current);\n $form = $this->createCreateForm($entity);\n\n return array(\n 'nav_active'=>'admin_resource',\n 'entity' => $entity,\n 'form' => $form->createView(),\n );\n }", "public function create()\n {\n return view ('forms.create');\n }", "public function create ()\n {\n return view('forms.create');\n }", "public function create()\n\t{\n\t\treturn view('faith.form');\n\t}", "public function create(NebulaResource $resource): View\n {\n $this->authorize('create', $resource->model());\n\n return view('nebula::resources.create', [\n 'resource' => $resource,\n ]);\n }", "public function create()\n {\n return view(\"request_form.form\");\n }", "public function create()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.create\")) {\n $view = \"admin.{$this->name}.create\";\n } else {\n $view = 'admin.includes.actions.create';\n }\n\n /* Show the form for creating a new resource. */\n return view($view)\n ->with('name', $this->name);\n }", "public function newAction()\n\t{\n\t\t$this->render( View::make( 'schools/form' , array(\n\t\t\t'title' => 'Ajouter une nouvelle &eacute;cole'\n\t\t) ) );\n\t}", "public function create()\n {\n return view($this->forms . '.create');\n }", "public function create()\n {\n return view('restful.add');\n }", "public function create()\n {\n $resource = (new AclResource())->AclResource;\n\n //dd($resource);\n return view('Admin.acl.role.form', [\n 'resource' => $resource\n ]);\n }", "public function create()\n {\n return view('admin.createform');\n }", "public function create()\n {\n return view('admin.forms.create');\n }", "public function create()\n {\n return view('backend.student.form');\n }", "public function newAction()\n {\n $breadcrumbs = $this->get(\"white_october_breadcrumbs\");\n $breadcrumbs->addItem('Inicio', $this->get('router')->generate('admin.homepage'));\n $breadcrumbs->addItem($this->entityDescription, $this->get(\"router\")->generate(\"admin.$this->entityName.index\"));\n $breadcrumbs->addItem('Nuevo');\n\n $entity = $this->getManager()->create();\n $form = $this->getForm($entity);\n\n return $this->render('AdminBundle:Default:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'metadata' => $this->getMetadata()\n ));\n }", "public function create()\n {\n return view('client.form');\n }", "public function create()\n {\n // Nos regresa la vista del formulario\n return view('project.form');\n }", "public function create()\n {\n return view('Form');\n }", "public function newAction(){\n \n $entity = new Resourceperson();\n $form = $this->createAddForm($entity);\n\n \n return $this->render('ABCRspBundle:rsp:add.html.twig',array('entity'=>$entity,'form'=> $form->createView()));\n }", "public function createForm()\n\t{\n\t\treturn view('post.new');\n\t}", "public function create()\n {\n return view('admin.form.create', ['form' => new Form]);\n }", "public function create()\n {\n return view('form');\n }", "public function create()\n {\n return view('form');\n }", "public function create()\n {\n return view('form');\n }", "public function create()\n {\n $title = $this->title;\n $subtitle = \"Adicionar cliente\";\n\n return view('admin.clients.form', compact('title', 'subtitle'));\n }", "public function create()\n {\n return view('backend.schoolboard.addform');\n }", "public function create()\n\t{\n\t\treturn view('info.forms.createInfo');\n\t}", "public function create()\n {\n //\n return view('form');\n }", "public function create()\n {\n return view('rests.create');\n }", "public function create()\n {\n return $this->showForm();\n }", "public function create()\n {\n return $this->showForm();\n }", "public function create()\n {\n return view(\"Add\");\n }", "public function create(){\n return view('form.create');\n }", "public function create()\n {\n // Show the page\n return view('admin.producer.create_edit');\n }", "public function create()\n {\n\n return view('control panel.student.add');\n\n }", "public function newAction() {\n\t\t\n\t\t$this->view->form = $this->getForm ( \"/admin/invoices/process\" );\n\t\t$this->view->title = $this->translator->translate(\"New Invoice\");\n\t\t$this->view->description = $this->translator->translate(\"Create a new invoice using this form.\");\n\t\t$this->view->buttons = array(array(\"url\" => \"#\", \"label\" => $this->translator->translate('Save'), \"params\" => array('css' => null,'id' => 'submit')),\r\n\t\t\t\t\t\t\t array(\"url\" => \"/admin/invoices/list\", \"label\" => $this->translator->translate('List'), \"params\" => array('css' => null)));\n\t\t$this->render ( 'applicantform' );\n\t}", "public function create()\n {\n $data['action'] = 'pengiriman.store';\n return view('pengiriman.form', $data);\n }", "public function create()\n {\n return $this->cView(\"form\");\n }", "public function newAction()\n {\n // Création de l'entité et du formulaire.\n $client = new Client();\n $formulaire = $this->createForm(new ClientType(), $client);\n \n \n \n // Génération de la vue.\n return $this->render('KemistraMainBundle:Client:new.html.twig',\n array('formulaire' => $formulaire->createView()));\n }", "public function create()\n {\n return view(\"dresses.form\");\n }", "public function create()\n\t{\n\t\treturn View::make('new_entry');\n\t}", "public function createAction()\n {\n// $this->view->form = $form;\n }", "public function create()\n {\n return view('bank_account.form', ['mode' => 'create']);\n }", "public function create()\n {\n return view('fish.form');\n }", "public function create()\n {\n return view('users.forms.create');\n }", "public function create()\n {\n $this->setFormFields($this->getCreateFormFields());\n $form = $this->getCreateForm();\n\n return view($this->getViewName('create'), [\n 'crudSlug' => $this->slug,\n 'form' => $form,\n ]);\n }", "public function create()\n\t{\n\t\treturn view('admin.estadoflete.new');\n\t}", "public function create()\n {\n $person = new Person;\n return view('contents.personform')->with(compact('person') );\n }", "public function createAction(){\n \t$this->view->placeholder('title')->set('Create');\n \t$this->_forward('form');\n }", "public function create()\n {\n Gate::authorize('app.products.create');\n\n return view('backend.products.form');\n }", "public function create()\n {\n return view('essentials::create');\n }", "public function create()\n {\n return view('student.add');\n }", "public function create()\n\t{\n\t\treturn view('loisier/create');\n\t}", "public function create()\n {\n return view('url.form');\n }", "public function newAction()\n {\n $entity = new Facture();\n $factureType = new FactureType();\n\t\t$factureType->setUser($this->get('security.context')->getToken()->getUser());\n $form = $this->createForm($factureType, $entity);\n\n return $this->render('chevPensionBundle:Facture:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function newAction()\n {\n $entity = new Chofer();\n $form = $this->createForm(new ChoferType(), $entity, ['user' => $this->getUser()]);\n\n return $this->render('ChoferesBundle:Chofer:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'css_active' => 'chofer',\n ));\n }", "public function create()\n\t{\n\t\treturn View::make('crebos.create');\n\t}", "public function create() : View\n {\n $fieldset = $this->menuFieldset();\n\n return $this->view('create', [\n 'title' => trans('addons.Aardwolf::titles.create'),\n 'data' => [],\n 'fieldset' => $fieldset->toPublishArray(),\n 'suggestions' => [],\n 'submitUrl' => route('aardwolf.postCreate')\n ]);\n }", "public function create()\n {\n return view('libro.create');\n }", "public function create()\n {\n return view('libro.create');\n }", "public function newAction()\n {\n $entity = new Species();\n $form = $this->createForm(new SpeciesType(), $entity);\n\n return $this->render('InfectBackendBundle:Species:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function create()\n {\n return view('crud/add'); }", "public function create()\n\t{\n\t\treturn View::make('supplier.create');\n\t}", "public function newAction()\n {\n $entity = new Company();\n $form = $this->createForm(new CompanyType(), $entity);\n\n return $this->render('SiteSavalizeBundle:Company:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function create()\n {\n return view(\"List.form\");\n }", "public function index_onCreateForm()\n\t{\n\t\tparent::create();\n\t\treturn $this->makePartial('create');\n\t}", "public function create()\n {\n //load create form\n return view('products.create');\n }", "public function create()\n {\n return view('article.addform');\n }", "public function create()\n {\n // Mengarahkan ke halaman form\n return view('buku.form');\n }", "public function create()\n\t{\n\t\t// load the create form (app/views/material/create.blade.php)\n\t\t$this->layout->content = View::make('material.create');\n\t}", "public function create()\n {\n return view('saldo.form');\n }", "public function create()\n\t\t{\n\t\t\treturn view('kuesioner.create');\n\t\t}", "public function view_create_questioner_form() {\n \t// show all questioner\n \t// send questioner to form\n \treturn view(\"create_questioner\");\n }", "public function newAction() {\n $entity = new Question();\n $form = $this->createCreateForm($entity);\n\n return $this->render('CdlrcodeBundle:Question:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function create()\n {\n $data['companies'] = Company::select('id', 'name')->where('status', 1)->orderBy('id', 'desc')->get();\n return view('admin.outlet.outlet_form', $data);\n }", "public function create()\n {\n return view('admin.inverty.add');\n }", "public function create()\n {\n return view('Libro.create');\n }", "public function create()\n {\n $title = trans('entry_mode.new');\n return view('layouts.create', compact('title'));\n }", "public function create()\n {\n $breadcrumb='car.create';\n return view('admin.partials.cars.form', compact('breadcrumb'));\n }", "public function create()\n {\n return view(\"familiasPrograma.create\");\n }", "public function create()\n {\n return view('admin.car.create');\n }", "public function create()\n {\n return view('admin.car.create');\n }", "public function create()\n\t{\n\t\treturn View::make('perusahaans.create');\n\t}", "public function create()\n {\n return view(\"create\");\n }", "public function create()\n\t{\n //echo 'show form';\n\t\treturn View::make('gaans.create');\n\t}", "public function create()\n {\n $title = trans('dormitorybed.new');\n $this->generateParams();\n\n return view('layouts.create', compact('title'));\n }", "public function create()\n {\n return view('forming');\n }", "public function formNew() {\n $this->data->options = array(\n 'RJ' => 'Rio de Janeiro',\n 'MG' => 'Minas Gerais',\n 'SP' => 'São Paulo',\n 'ES' => 'Espírito Santo',\n 'BA' => 'Bahia',\n 'RS' => 'Rio Grande do Sul'\n );\n $this->data->action = \"@exemplos/pessoa/save\";\n $this->render();\n }", "public function create()\n {\n \t\n \treturn view('supplies.create');\n\n }", "public function createAction()\n {\n if ($form = $this->processForm()) {\n $this->setPageTitle(sprintf($this->_('New %s...'), $this->getTopic()));\n $this->html[] = $form;\n }\n }", "public function create()\n {\n $page_title = \"Add New\";\n return view($this->path.'create', compact('page_title'));\n }", "public function create()\n {\n // not sure what to do with the form since im\n // using ame partial for both create and edit\n return view('plants.create')->with('plant', new Plant);\n }", "public function create() {\n\t\t$title = 'Create | Show';\n\n\t\treturn view('admin.show.create', compact('title'));\n\t}", "public function create()\n {\n return view('student::students.student.create');\n }", "public function newAction(){\n\t\t$entity = new Reserva();\n\t\t$form = $this->createCreateForm($entity);\n\n\t\treturn $this->render('LIHotelBundle:Reserva:new.html.twig', array(\n\t\t\t'entity' => $entity,\n\t\t\t'form' => $form->createView(),\n\t\t));\n\t}" ]
[ "0.75948673", "0.75948673", "0.75863165", "0.7577412", "0.75727344", "0.7500887", "0.7434847", "0.7433956", "0.73892003", "0.73531085", "0.73364776", "0.73125", "0.7296102", "0.7281891", "0.72741455", "0.72424185", "0.7229325", "0.7226713", "0.7187349", "0.7179176", "0.7174283", "0.7150356", "0.71444064", "0.71442676", "0.713498", "0.71283126", "0.7123691", "0.71158516", "0.71158516", "0.71158516", "0.7112176", "0.7094388", "0.7085711", "0.708025", "0.70800644", "0.70571953", "0.70571953", "0.70556754", "0.70396435", "0.7039549", "0.7036275", "0.703468", "0.70305896", "0.7027638", "0.70265305", "0.70199823", "0.7018007", "0.7004984", "0.7003889", "0.7000935", "0.69973785", "0.6994679", "0.6993764", "0.6989918", "0.6986989", "0.6966502", "0.69656384", "0.69564354", "0.69518244", "0.6951109", "0.6947306", "0.69444615", "0.69423944", "0.6941156", "0.6937871", "0.6937871", "0.6936686", "0.69345254", "0.69318026", "0.692827", "0.69263744", "0.69242257", "0.6918349", "0.6915889", "0.6912884", "0.691146", "0.69103104", "0.69085974", "0.69040126", "0.69014287", "0.69012105", "0.6900397", "0.68951064", "0.6893521", "0.68932164", "0.6891899", "0.6891616", "0.6891616", "0.6889246", "0.68880934", "0.6887128", "0.6884732", "0.68822503", "0.68809193", "0.6875949", "0.68739206", "0.68739134", "0.6870358", "0.6869779", "0.68696856", "0.686877" ]
0.0
-1
Store a newly created resource in storage.
public function store(Request $request) { $this->validate($request,[ 'unit'=> 'required|unique:units' ]); Unit::create($request->all()); Brian2694Toastr::success('Unit Created Successfully', 'Success'); return redirect()->route('admin.unit.index'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store($data, Resource $resource);", "public function store()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'storeValidations')) {\n $this->request->validate($this->storeValidations());\n }\n\n /* Create a new resource */\n $resource = $this->model::create(Input::all());\n\n /* Redirect to newly created resource page */\n return redirect()\n ->route($this->name . '.edit', $resource->id)\n ->with(\n 'success',\n Lang::has($this->name . '.resource-created') ?\n $this->name . '.resource-created' :\n 'messages.alert.resource-created'\n );\n }", "public function store(CreateStorageRequest $request)\n {\n $this->storage->create($request->all());\n\n return redirect()->route('admin.product.storage.index')\n ->withSuccess(trans('core::core.messages.resource created', ['name' => trans('product::storages.title.storages')]));\n }", "public function createStorage();", "public function store(StoreStorage $request)\n {\n $storage = Storage::create($request->all());\n $request->session()->flash('alert-success', 'Запись успешно добавлена!');\n return redirect()->route('storage.index');\n }", "public function saveShopifyResource() {\n if (is_null($this->getShopifyId())) { // if there is no id...\n $this->createShopifyResource(); // create a new resource\n } else { // if there is an id...\n $this->updateShopifyResource(); // update the resource\n }\n }", "public function store(Request $request, NebulaResource $resource): RedirectResponse\n {\n $this->authorize('create', $resource->model());\n\n $validated = $request->validate($resource->rules(\n $resource->createFields()\n ));\n\n $resource->storeQuery($resource->model(), $validated);\n\n $this->toast(__(':Resource created', [\n 'resource' => $resource->singularName(),\n ]));\n\n return redirect()->back();\n }", "function storeAndNew() {\n $this->store();\n }", "public function store(Request $request)\n {\n $currentUser = JWTAuth::parseToken()->authenticate();\n $validator = Validator::make($request->all(), [\n 'content' => 'required|string',\n 'image_link' => 'sometimes|url',\n ]);\n\n if ($validator->fails()) {\n return APIHandler::response(0, $validator->errors(), [], 400);\n }\n\n $resource = new Resource;\n $resource->user_id = $currentUser['id'];\n $resource->title = $request->get('title');\n $resource->content = $request->get('content');\n $resource->image_link = $request->get('imageLink');\n $resource->video_link = $request->get('videoLink');\n $resource->file_link = $request->get('fileLink');\n $resource->audio_link = $request->get('audioLink');\n $resource->tags = collect($request->get('tags'))->implode('text', ',');\n $resource->is_public = 0;\n $resource->save();\n $data['resource'] = $resource;\n\n if ($request->get('programId')) {\n $this->addToProgram($resource, $request->programId);\n // event(new NewLearningPathResourcePublished($resource, $invitee));\n }\n\n User::find($currentUser['id'])->increment('points', 2);\n\n return APIHandler::response(1, \"New resource has been created\", $data, 201);\n }", "public function store()\n {\n if (!$this->id) { // Insert\n $this->insertObject();\n } else { // Update\n $this->updateObject();\n }\n }", "public function store()\n\t{\n\t\t\n\t\t//\n\t}", "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}" ]
[ "0.72865677", "0.7145327", "0.71325725", "0.6640912", "0.66209733", "0.65685713", "0.652643", "0.65095705", "0.64490104", "0.637569", "0.63736665", "0.63657933", "0.63657933", "0.63657933", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437" ]
0.0
-1
Display the specified resource.
public function show($id) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show(Resource $resource)\n {\n // not available for now\n }", "public function show(Resource $resource)\n {\n //\n }", "function Display($resource_name, $cache_id = null, $compile_id = null)\n {\n $this->_smarty->display($resource_name, $cache_id, $compile_id);\n }", "private function showResourceable($resourceable)\n {\n save_resource_url();\n\n return $this->view('resources.create_edit')\n ->with('resource', $resourceable)\n ->with('photos', $resourceable->photos)\n ->with('videos', $resourceable->videos)\n ->with('documents', $resourceable->documents);\n }", "function display($resource_name, $cache_id = null, $compile_id = null) {\n\t\t$this->_getResourceInfo($resource_name); // Saves resource info to a Smarty class var for debugging\n\t\t$_t3_fetch_result = $this->fetch($resource_name, tx_smarty_div::getCacheID($cache_id), $compile_id);\n if ($this->debugging) { // Debugging will have been evaluated in fetch\n require_once(SMARTY_CORE_DIR . 'core.display_debug_console.php');\n $_t3_fetch_result .= smarty_core_display_debug_console(array(), $this);\n }\n\t\treturn $_t3_fetch_result;\n\t}", "public function show(ResourceSubject $resourceSubject)\n {\n //\n }", "public function show(ResourceManagement $resourcesManagement)\n {\n //\n }", "public function viewEditResources()\n {\n $database = new Database();\n $id = $this->_params['id'];\n\n $resource = $database->getResourceById($id);\n\n $availableResource = new Resource($resource['ResourceID'], $resource['ResourceName'], $resource['Description']\n , $resource['ContactName'] , $resource['ContactEmail'] , $resource['ContactPhone'] ,\n $resource['Link'], $resource['active']);\n $this->_f3->set('Resource', $availableResource);\n\n echo Template::instance()->render('view/include/head.php');\n echo Template::instance()->render('view/include/top-nav.php');\n echo Template::instance()->render('view/edit-resources.php');\n echo Template::instance()->render('view/include/footer.php');\n }", "public function retrieve(Resource $resource);", "public function showResource($resouceable, $id)\n {\n $model_name = str_replace('-', ' ',ucwords($resouceable));\n $model_name = str_replace(' ', '',ucwords($model_name));\n\n $resource_type = 'App\\Models\\\\'.$model_name;\n $model = app($resource_type);\n $model = $model->find($id);\n\n return $this->showResourceable($model);\n }", "public function showAction(Ressource $ressource)\n {\n $deleteForm = $this->createDeleteForm($ressource);\n\n return $this->render('ressource/show.html.twig', array(\n 'ressource' => $ressource,\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function show(Dispenser $dispenser)\n {\n //\n }", "public function show($id)\n {\n $resource = Resource::find($id);\n dd($resource);\n }", "public function displayAction() {\n\t\tif(is_numeric($this->req_id)) {\n\t\t\tAPI::DEBUG(\"[DefaultController::displayAction()] Getting \" . $this->req_id, 1);\n\t\t\t$this->_view->data['info'] = $this->_model->get($this->req_id);\n\t\t\t$this->_view->data['action'] = 'edit';\n\n\t\t} else {\n\t\t\t$this->_view->data['action'] = 'new';\n\t\t}\n\t\t// auto call the hooks for this module/action\n\t\terror_log(\"Should Call: \" . $this->module .\"/\".$this->action.\"/\".\"controller.php\");\n\t\tAPI::callHooks($this->module, $this->action, 'controller', $this);\n\n\t\t$this->addModuleTemplate($this->module, 'display');\n\n\t}", "public function show(NebulaResource $resource, $item): View\n {\n $this->authorize('view', $item);\n\n return view('nebula::resources.show', [\n 'resource' => $resource,\n 'item' => $item,\n ]);\n }", "public function resource(string $resource, string $controller): void\n {\n $base = $this->plural($resource);\n $entity = '/{'.$resource.'}';\n\n $this->app->get($base, $controller.'@index');\n $this->app->post($base, $controller.'@store');\n $this->app->get($base.$entity, $controller.'@show');\n $this->app->patch($base.$entity, $controller.'@update');\n $this->app->delete($base.$entity, $controller.'@destroy');\n }", "function displayCustom($resource_name, $cache_id = null, $compile_id = null)\n\t{\n\t return $this->display(DotbAutoLoader::existingCustomOne($resource_name), $cache_id, $compile_id);\n\t}", "public function show($id)\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Get the specified resource */\n $resource = $this->model::findOrFail($id);\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.show\")) {\n $view = \"admin.{$this->name}.show\";\n } else {\n $view = 'admin.includes.actions.show';\n }\n\n /* Displays the specified resource page */\n return view($view)\n ->with('resource', $resource)\n ->with('name', $this->name);\n }", "public function show($id)\n {\n $currentUser = JWTAuth::parseToken()->authenticate();\n $rules = [\n 'id' => 'required|integer'\n ];\n\n $validator = Validator::make(['id' => $id], $rules);\n if ($validator->fails()) {\n return APIHandler::response(0, $validator->errors(), 400);\n }\n $resource = $this->resourceRepository->fetchResource($id);\n $this->resourceRepository->storeView($id, $currentUser['id']);\n\n $data = [\n 'resource' => $resource,\n 'related_resources' => $this->resourceRepository->getResourcesRelatedTo($resource->id, $resource->mentoring_area_id)\n ];\n\n return APIHandler::response(1, \"Show Resource\", $data);\n }", "public function get(Resource $resource);", "public function showAction()\n {\n $model = $this->_getPhotoModel();\n $photo = $model->fetchEntry($this->getRequest()->getParam('id'));\n\n if (null === $photo) {\n return $this->_forward('notfound', 'error');\n }\n\n $this->view->auth = Zend_Auth::getInstance();\n $this->view->title = $photo->title;\n $this->view->photo = $photo;\n }", "public function show($id)\n {\n //\n $data=Resource::find($id);\n return view('resourceDetails',compact('data'));\n }", "function display() {\n\t\t$view = &$this->getView();\n\t\t$view->display();\n\t}", "public function show(ShowResourceRequest $request, $id)\n {\n // TODO: Implement show() method.\n }", "function show( $resource ){\n\n $where = \"reservation_status <> 'Pending' AND id = {$resource}\";\n $reservation = where( 'reservations', $where );\n $reservation = $reservation[0];\n\n return view('admin/reservation/preview_reservation', compact( 'reservation' ));\n}", "public function show()\n {\n if ($this->twig !== false) {\n $this->twigDefaultContext();\n if ($this->controller) {\n $this->controller->display($this->data);\n }\n echo $this->twig->render($this->twig_template, $this->data);\n } else {\n $filename = $this->findTemplatePath($this->template);\n require($filename);\n }\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function show(rc $rc)\n {\n //\n }", "public function show(Resolucion $resolucion)\n {\n //\n }", "public function showAction(furTexture $furTexture)\n {\n\n return $this->render('furtexture/show.html.twig', array(\n 'furTexture' => $furTexture,\n ));\n }", "public function show()\n\t{\n\t\t//\n\t}", "public function show()\n\t{\n\t\t//\n\t}", "public function show()\n\t{\n\t\t//\n\t}", "public function show(Resena $resena)\n {\n }", "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }", "public function showAction() {\n $docId = $this->getParam('id');\n\n // TODO verify parameter\n\n $document = new Opus_Document($docId);\n\n $this->_helper->layout()->disableLayout();\n\n $this->view->doc = $document;\n $this->view->document = new Application_Util_DocumentAdapter($this->view, $document);\n }", "public function action_display()\r\n\t{\r\n\t\t$event = ORM::factory('event', array('id' => $this->request->param('id')));\r\n\t\r\n\t\tif ( ! $event->loaded())\r\n\t\t{\r\n\t\t\tNotices::error('event.view.not_found');\r\n\t\t\t$this->request->redirect(Route::url('event'));\r\n\t\t}\r\n\t\t\r\n\t\t// Can user view this event?\r\n\t\tif ( ! $this->user->can('event_view', array('event' => $event)))\r\n\t\t{\r\n\t\t\t// Error notification\r\n\t\t\tNotices::error('event.view.not_allowed');\r\n\t\t\t$this->request->redirect(Route::url('event'));\r\n\t\t}\r\n\t\t\r\n\t\t// Pass event data to the view class\r\n\t\t$this->view->event_data = $event;\r\n\t\t$this->view->user = $this->user;\r\n\t}", "public function execute()\n {\n // HTTP Request Get\n if ($this->type == \"resource\") {\n $action = $this->getResourceAction();\n switch ($action) {\n case \"show\":\n $this->show();\n break;\n case \"create\":\n $this->create();\n break;\n case \"edit\":\n $this->edit();\n break;\n case \"destroy\":\n $this->destroy();\n break;\n default:\n echo $this->render();\n break;\n }\n } else {\n $action = $this->Request->action;\n switch ($action) {\n case \"show\":\n $this->show();\n break;\n case \"create\":\n $this->create();\n break;\n case \"edit\":\n $this->edit();\n break;\n case \"destroy\":\n $this->destroy();\n break;\n default:\n echo $this->render();\n break;\n }\n }\n }", "public function show(Resident $resident)\n {\n $this->authorize('admin.resident.show', $resident);\n\n // TODO your code goes here\n }", "public function display()\n {\n echo $this->getDisplay();\n $this->isDisplayed(true);\n }", "public function display()\n\t{\n\t\tparent::display();\n\t}", "public function get_resource();", "public function show()\n\t{\n\t\t\n\t}", "function display() {\n\n\t\t// Check authorization, abort if negative\n\t\t$this->isAuthorized() or $this->abortUnauthorized();\n\n\t\t// Get the view\n\t\t$view = $this->getDefaultView();\n\n\t\tif ($view == NULL) {\n\t\t\tthrow new Exception('Display task called, but there is no view assigned to that controller. Check method getDefaultView.');\n\t\t}\n\n\t\t$view->listing = true;\n\n\t\t// Wrap the output of the views depending on the way the stuff should be shown\n\t\t$this->wrapViewAndDisplay($view);\n\n\t}", "public function viewResources()\n {\n $database = new Database();\n\n $resources = $database->getAllActiveResourcesNoLimit();\n\n\n $resourceArray = array();\n $i = 1;\n\n foreach ($resources as $resource) {\n $availableResource = new Resource($resource['ResourceID'], $resource['ResourceName'], $resource['Description']\n , $resource['ContactName'] , $resource['ContactEmail'] , $resource['ContactPhone'] ,\n $resource['Link'], $resource['active']);\n array_push($resourceArray, $availableResource);\n $i += 1;\n }\n $resourceSize = sizeof($resourceArray);\n $this->_f3->set('resourcesByActive', $resourceArray);\n $this->_f3->set('resourcesSize', $resourceSize);\n echo Template::instance()->render('view/include/head.php');\n echo Template::instance()->render('view/include/top-nav.php');\n echo Template::instance()->render('view/resources.php');\n echo Template::instance()->render('view/include/footer.php');\n }", "public function show($id)\n {\n $this->title .= ' show';\n $this->one($id);\n }", "public function display($title = null)\n {\n echo $this->fetch($title);\n }", "public function display(){}", "public function show($id)\n\t{\n\t\t//\n\t\t//\n\t\n\t}", "public function viewAction()\n\t{\n\t\t//get Id param from request\n\t\tif (!$id = $this->_getParam('id')) {\n\t\t\t$this->getFlashMessenger()->addMessage('Product ID was not specified');\n\t\t\t$this->getRedirector()->gotoSimple('list');\n\t\t}\n\n\t\t//fetch requested ProductID from DB\n\t\tif (!$this->_model->fetch($id)) {\n\t\t\t$this->render('not-found');\n\t\t} else {\n\t\t\t$this->view->model = $this->_model;\n\t\t}\n\t}", "public function show($id)\n {\n // Get single person\n $person = Person::findOrFail($id);\n\n // Return single person as a resource\n return '<h1>Person Number '.$id.'</h1><br>'.json_encode(new PersonResource($person));\n }", "#[TODO] use self object?\n\tprotected function GET(ResourceObject $resource) {\n#[TODO]\t\tif ($resource->getMTime())\n#[TODO]\t\t\t$this->response->headers->set('Last-modified', gmdate('D, d M Y H:i:s ', $resource->getMTime()) . 'GMT');\n#[TODO]\t\tif ($resource->getCTime())\n#[TODO]\t\t\t$this->response->headers->set('Date', gmdate('D, d M Y H:i:s ', $resource->getCTime()) . 'GMT');\n\n\n#[TODO] handle file streams\n\t\t// get ranges\n#\t\t$ranges = WebDAV::getRanges($this->request, $this->response);\n\n\t\t// set the content of the response\n\t\tif ($resource instanceof ResourceDocument) {\n\t\t\t$this->response->content->set($resource->getContents());\n\t\t\t$this->response->content->setType($resource->getMIMEType());\n\t\t\t$this->response->content->encodeOnSubmit(true);\n\t\t}\n\t}", "public function display() {\n echo $this->render();\n }", "public function show($id)\n\t{\n\t//\n\t}", "public function show($id)\n\t{\n\t//\n\t}", "function Fetch($resource_name, $cache_id = null, $compile_id = null, $display = false)\n {\n return $this->_smarty->fetch($resource_name, $cache_id, $compile_id, $display);\n }", "public function show($id)\n {\n //\n $this->_show($id);\n }", "public function show()\n\t{\n\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {}", "static public function showCallback(O_Dao_Renderer_Show_Params $params) {\r\n\t\t/* @var $r R_Mdl_Resource */\r\n\t\t$r = $params->record();\r\n\t\t// Setting layout title\r\n\t\t$params->layout()->setTitle($r->getPageTitle());\r\n\r\n?><h1><?=$r->title?></h1><div id=\"resource\"><?\r\n\t\tif($r->getContent()) {\r\n\t\t\t// page has its own content -- show it\r\n\t\t\t$r->getContent()->show($params->layout(), \"content\");\r\n\t\t} else {\r\n\t\t\t// It is a post unit, show all childs\r\n\t\t\tif($r->is_unit == 1) {\r\n\t\t\t\t$r->addQueryAccessChecks($r->getChilds(1))->show($params->layout(), \"content\");\r\n\r\n\t\t\t// It is a folder with several units, show paginator\r\n\t\t\t} elseif($r->show_def == \"last-units\") {\r\n\t\t\t\tlist($type, $perpage) = explode(\":\", $r->show_def_params);\r\n\t\t\t\t/* @var $p O_Dao_Paginator */\r\n\t\t\t\t$p = $r->addQueryAccessChecks($r->getChilds())->test(\"is_unit\", 1)->getPaginator(array($r, \"getPageUrl\"), $perpage);\r\n\t\t\t\t$p->show($params->layout(), $type);\r\n\t\t\t// It is a folder with subfolders, boxes, contents. Show one childs level\r\n\t\t\t} else {\r\n\t\t\t\t$r->addQueryAccessChecks($r->getChilds(1))->show($params->layout(), \"on-parent-page\");\r\n\t\t\t}\r\n\r\n\t\t}\r\n?></div><?\r\n\t}", "public function show($id)\r\n\t{\r\n\t\t//\r\n\r\n\r\n\r\n\t}", "public function show($resourceId, $eventId)\n {\n $routes = $this->routes;\n\n $eventable = $this->getEventableRepository()->model()->findOrFail($resourceId);\n\n if (method_exists($eventable, 'events')) {\n $event = $eventable->events()->find($eventId);\n\n if ($event) {\n $apiObject = $this->event->findApiObject($event->api_id);\n\n return view('events.eventables.show', compact('routes', 'eventable', 'event', 'apiObject'));\n }\n }\n\n abort(404);\n }", "public abstract function display();", "abstract public function resource($resource);", "public function show($id)\r\r\n\t{\r\r\n\t\t//\r\r\n\t}", "public function show( $id ) {\n\t\t//\n\t}", "public function show( $id ) {\n\t\t//\n\t}", "public function show(Response $response)\n {\n //\n }", "public function show()\n {\n return auth()->user()->getResource();\n }", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}" ]
[ "0.8233718", "0.8190437", "0.6828712", "0.64986944", "0.6495974", "0.6469629", "0.6462615", "0.6363665", "0.6311607", "0.62817234", "0.6218966", "0.6189695", "0.61804265", "0.6171014", "0.61371076", "0.61207956", "0.61067593", "0.6105954", "0.6094066", "0.6082806", "0.6045245", "0.60389996", "0.6016584", "0.598783", "0.5961788", "0.59606946", "0.5954321", "0.59295714", "0.59182066", "0.5904556", "0.59036547", "0.59036547", "0.59036547", "0.5891874", "0.58688277", "0.5868107", "0.58676815", "0.5851883", "0.58144855", "0.58124036", "0.58112013", "0.5803467", "0.58012545", "0.5791527", "0.57901084", "0.5781528", "0.5779676", "0.5757105", "0.5756208", "0.57561266", "0.57453394", "0.57435393", "0.57422745", "0.5736634", "0.5736634", "0.5730559", "0.57259274", "0.5724891", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5718969", "0.5713412", "0.57091093", "0.5706405", "0.57057405", "0.5704541", "0.5704152", "0.57026845", "0.57026845", "0.56981397", "0.5693083", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962" ]
0.0
-1
Show the form for editing the specified resource.
public function edit(Unit $unit) { return view('pages.admin.unit.edit',compact('unit')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function edit($id)\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Get the specified resource */\n $resource = $this->model::findOrFail($id);\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.edit\")) {\n $view = \"admin.{$this->name}.edit\";\n } else {\n $view = 'admin.includes.actions.edit';\n }\n\n /* Displays the edit resource page */\n return view($view)\n ->with('resource', $resource)\n ->with('name', $this->name);\n }", "public function edit(NebulaResource $resource, $item): View\n {\n $this->authorize('update', $item);\n\n return view('nebula::resources.edit', [\n 'resource' => $resource,\n 'item' => $item,\n ]);\n }", "public function edit() {\r\n $id = $this->api->getParam('id');\r\n\r\n if ($id) {\r\n $this->model->id = $id;\r\n $this->checkOwner();\r\n }\r\n $object = $this->model->find_by_id($id);\r\n\r\n $this->api->loadView('contact-form', array('row' => $object));\r\n }", "public function viewEditResources()\n {\n $database = new Database();\n $id = $this->_params['id'];\n\n $resource = $database->getResourceById($id);\n\n $availableResource = new Resource($resource['ResourceID'], $resource['ResourceName'], $resource['Description']\n , $resource['ContactName'] , $resource['ContactEmail'] , $resource['ContactPhone'] ,\n $resource['Link'], $resource['active']);\n $this->_f3->set('Resource', $availableResource);\n\n echo Template::instance()->render('view/include/head.php');\n echo Template::instance()->render('view/include/top-nav.php');\n echo Template::instance()->render('view/edit-resources.php');\n echo Template::instance()->render('view/include/footer.php');\n }", "public function edit()\n {\n return view('hirmvc::edit');\n }", "public function editformAction(){\n\t\t$this->loadLayout();\n $this->renderLayout();\n\t}", "public function edit() {\n $id = $this->parent->urlPathParts[2];\n // pass name and id to view\n $data = $this->parent->getModel(\"fruits\")->select(\"select * from fruit_table where id = :id\", array(\":id\"=>$id));\n $this->getView(\"header\", array(\"pagename\"=>\"about\"));\n $this->getView(\"editForm\", $data);\n $this->getView(\"footer\");\n }", "public function edit($id)\n\t{\n\t\treturn $this->showForm('update', $id);\n\t}", "public function edit($id)\n {\n $model = $this->modelObj;\n $formObj = $model::findOrFail($id);\n $data['formObj'] = $formObj;\n return view($this->veiw_base . '.edit', $data);\n }", "public function createEditForm(Resourceperson $entity){\n \n $form = $this->createForm(new ResourcepersonType(), $entity, array(\n 'action' => $this->generateUrl('rsp_update', array('id' => $entity->getRpId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Update','attr'=> array(\n 'class'=>'btn btn primary'\n )));\n\n return $form;\n }", "private function createEditForm(Resource $entity)\n {\n $form = $this->createForm(new ResourceType(), $entity, array(\n 'action' => $this->generateUrl('social_admin_resource_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => '保存','attr'=>[\n 'class'=>'btn btn-primary'\n ]));\n\n return $form;\n }", "public function edit($id)\n {\n return $this->showForm('update', $id);\n }", "public function edit($id)\n {\n return $this->showForm('update', $id);\n }", "public function editAction()\n {\n if ($form = $this->processForm()) {\n if ($this->useTabbedForms && method_exists($this, 'getSubject')) {\n $data = $this->getModel()->loadFirst();\n $subject = $this->getSubject($data);\n $this->setPageTitle(sprintf($this->_('Edit %s %s'), $this->getTopic(1), $subject));\n } else {\n $this->setPageTitle(sprintf($this->_('Edit %s'), $this->getTopic(1)));\n }\n $this->html[] = $form;\n }\n }", "public function edit($id)\n {\n $this->data['entity'] = GS_Form::where('id', $id)->firstOrFail();\n return view('admin.pages.forms.edit', $this->data);\n }", "public function edit($id)\n\t{\n\t\t// get the fbf_presenca\n\t\t$fbf_presenca = FbfPresenca::find($id);\n\n\t\t\n\t\t// show the edit form and pass the fbf_presenca\n\t\t$this->layout->content = View::make('fbf_presenca.edit')\n->with('fbf_presenca', $fbf_presenca);\n\t}", "public function edit($id)\n {\n $data = $this->model->find($id);\n\n return view('admin.backends.employee.form.edit',compact('data'));\n }", "public function edit($model, $form);", "function edit() {\n\t\tglobal $tpl;\n\n\t\t$form = $this->initForm();\n\t\t$tpl->setContent($form->getHTML());\n\t}", "public function edit($id)\n\t{\n\t\t$faith = Faith::find($id);\n \n return view('faith.form')->with('faith', $faith);\n\n\t}", "public function edit()\n { \n return view('admin.control.edit');\n }", "public function edit(Form $form)\n {\n //\n }", "public function edit()\n {\n return view('common::edit');\n }", "public function edit($id)\n {\n $resource = (new AclResource())->AclResource;\n $roleResource = AclRole::where('role', $id)->get(['resource'])->toArray();\n $roleResource = Arr::pluck($roleResource, 'resource');\n return view('Admin.acl.role.form', [\n 'role' => $id,\n 'resource' => $resource,\n 'roleResource' => $roleResource,\n ]);\n }", "public function edit()\n {\n return view('admin::edit');\n }", "public function edit()\n {\n return view('admin::edit');\n }", "public function edit()\r\n {\r\n return view('petro::edit');\r\n }", "public function edit($id)\n {\n // show form edit user info\n }", "public function edit()\n {\n return view('escrow::edit');\n }", "public function edit($id)\n {\n $resource = ResourceManagement::find($id);\n\n $users = User::get();\n // Redirect to user list if updating user wasn't existed\n if ($resource == null || $resource->count() == 0) {\n return redirect()->intended('/resource-management');\n }\n\n return view('resources-mgmt/edit', ['resource' => $resource, 'users' => $users]);\n }", "public function edit()\n {\n return view('commonmodule::edit');\n }", "public function editAction()\n\t{\n\t\t$params = $this->data->getParams();\n\t\t$params = $this->valid->clearDataArr($params);\n\t\tif (isset($params['id']))\n\t\t{\n\t\t\t$this->employee->setFlag(true);\n\t\t}\n\t\tif (isset($_POST['submit']))\n\t\t{\n\t\t\t$action = $this->valid->clearDataArr($_POST);\n\t\t\t$this->employee->setDataArray($action);\n\t\t\theader('Location: ' . PATH . 'Employee/index/', true, 303);\n\t\t}\n\t\t$employee = $this->employee->setAction('edit');\n\t\t$this->view->addToReplace($employee);\n\t\t$this->listEmployee();\n\t\t$this->arrayToPrint();\n\t}", "public function edit()\n {\n return view('catalog::edit');\n }", "public function edit()\n {\n return view('catalog::edit');\n }", "public function edit(form $form)\n {\n //\n }", "public function actionEdit($id) { }", "public function edit()\n {\n return view('admincp::edit');\n }", "public function edit()\n {\n return view('scaffold::edit');\n }", "public function edit($id)\n {\n $header = \"Edit\";\n\t\t$data = Penerbit::findOrFail($id);\n\t\treturn view('admin.penerbit.form', compact('data','header'));\n }", "public function edit()\n {\n return view('Person.edit');\n }", "public function edit($id)\n {\n $data = Form::find($id);\n return view('form.edit', compact('data'));\n }", "public function edit($id)\n\t{\n\t\t$career = $this->careers->findById($id);\n\t\treturn View::make('careers._form', array('career' => $career, 'exists' => true));\n\t}", "public function edit(Flight $exercise, FlightResource $resource)\n {\n return $this->viewMake('adm.smartcars.exercise-resources.edit')\n ->with('flight', $exercise)\n ->with('resource', $resource);\n }", "public function edit($id)\n\t{\n\t\t// get the material\n\t\t$material = Material::find($id);\n\n\t\t// show the edit form and pass the material\n\t\t$this->layout->content = View::make('material.edit')\n\t\t\t->with('material', $material);\n\t}", "public function edit($id, Request $request)\n {\n $formObj = $this->modelObj->find($id);\n\n if(!$formObj)\n {\n abort(404);\n } \n\n $data = array();\n $data['formObj'] = $formObj;\n $data['page_title'] = \"Edit \".$this->module;\n $data['buttonText'] = \"Update\";\n\n $data['action_url'] = $this->moduleRouteText.\".update\";\n $data['action_params'] = $formObj->id;\n $data['method'] = \"PUT\"; \n\n return view($this->moduleViewName.'.add', $data);\n }", "public function edit()\n {\n $id = $this->getId();\n return view('panel.user.form', [\n 'user' => $this->userRepository->findById($id),\n 'method' => 'PUT',\n 'routePrefix' => 'profile',\n 'route' => 'profile.update',\n 'parameters' => [$id],\n 'breadcrumbs' => $this->getBreadcrumb('Editar')\n ]);\n }", "public function edit()\r\n {\r\n return view('mpcs::edit');\r\n }", "function edit()\n\t{\n\t\t// hien thi form sua san pham\n\t\t$id = getParameter('id');\n\t\t$product = $this->model->product->find_by_id($id);\n\t\t$this->layout->set('auth_layout');\n\t\t$this->view->load('product/edit', [\n\t\t\t'product' => $product\n\t\t]);\n\t}", "public function edit($id)\n {\n //\n $data = Diskon::find($id);\n\n $form = $this->form;\n $edit = $this->edit;\n $field = $this->field;\n $page = $this->page;\n $id = $id;\n $title = $this->title;\n return view('admin/page/'.$this->page.'/edit',compact('form','edit','data','field','page','id','title'));\n }", "public function edit($id)\n {\n return $this->showForm($id);\n }", "public function edit($id)\n {\n return $this->showForm($id);\n }", "protected function _edit(){\n\t\treturn $this->_editForm();\n\t}", "public function editAction()\n {\n $robot = Robots::findFirst($this->session->get(\"robot-id\"));\n if ($this->request->isGet()) {\n $this->tag->prependTitle(\"Редактировать робота :: \");\n $user = $this->session->get(\"auth-id\");\n if (!$robot) {\n $this->flashSession->error(\n \"Робот не найден\"\n );\n return $this->response->redirect(\"users/usershow/$user->name\");\n }\n\n }\n\n $this->view->form = new RobotForm(\n $robot,\n [\n \"edit\" => true,\n ]\n );\n }", "public function editAction()\n {\n $form = new $this->form();\n\n $request = $this->getRequest();\n $param = $this->params()->fromRoute('id', 0);\n\n $repository = $this->getEm()->getRepository($this->entity);\n $entity = $repository->find($param);\n\n if ($entity) {\n\n $form->setData($entity->toArray());\n\n if ( $request->isPost() ) {\n\n $form->setData($request->getPost());\n\n if ( $form->isValid() ) {\n\n $service = $this->getServiceLocator()->get($this->service);\n $service->update($request->getPost()->toArray());\n\n return $this->redirect()->toRoute($this->route, array('controller' => $this->controller));\n }\n }\n } else {\n return $this->redirect()->toRoute($this->route, array('controller' => $this->controller));\n }\n\n return new ViewModel(array('form' => $form, 'id' => $param));\n\n }", "public function edit($id)\n\t{\n\t\t$SysApplication = \\Javan\\Dynaflow\\Domain\\Model\\SysApplication::find($id);\n\t\t$form = \\FormBuilder::create('Javan\\Dynaflow\\FormBuilder\\SysApplicationForm', [\n \t'method' => 'POST',\n \t'url' => 'sysapplication/update/'.$id,\n \t'model' => $SysApplication,\n \t'data' => [ 'flow_id' => $SysApplication->flow_id]\n \t]);\n\t\treturn View::make('dynaflow::sysapplication.form', compact('form', 'SysApplication'));\n\t}", "public function editAction() {\n\t\t$id = (int) $this->_getParam('id');\n\t\t$modelName = $this->_getParam('model');\n\t\t\n\t\t$model = Marcel_Backoffice_Model::factory($modelName);\n\t\t$item = $model->find($id)->current();\n\t\tif (!$item) {\n\t\t\t$item = $model->createRow();\n\t\t}\n\t\t$form = $item->getForm();\n\t\tif ($this->_request->isPost()) {\n\t\t\t$newId = $form->populate($this->_request->getPost())->save();\n\t\t\tif ($newId) {\n\t\t\t\t$this->_helper->flashMessenger('Saved successfully!');\n\t\t\t\t$this->_helper->redirector('edit', null, null, array('id' => $newId, 'model' => $modelName));\n\t\t\t}\n\t\t}\n\t\t$this->view->form = $form;\n\t\t$this->view->messages = $this->_helper->flashMessenger->getMessages();\n\t}", "public function edit($id)\n {\n return view('models::edit');\n }", "public function edit()\n {\n return view('home::edit');\n }", "public function editAction()\n {\n $id = $this->params()->fromRoute('id');\n $entity = $this->entityManager->find(Entity\\CourtClosing::class, $id);\n if (! $entity) {\n // to do: deal with it\n }\n $form = $this->getForm('update');\n $form->bind($entity);\n if ($this->getRequest()->isPost()) {\n return $this->post();\n }\n\n return new ViewModel(['form' => $form]);\n }", "public function editAction($id)\n {\n $entity = $this->getManager()->find($id);\n\n $breadcrumbs = $this->get(\"white_october_breadcrumbs\");\n $breadcrumbs->addItem('Inicio', $this->get('router')->generate('admin.homepage'));\n $breadcrumbs->addItem($this->entityDescription, $this->get(\"router\")->generate(\"admin.$this->entityName.index\"));\n $breadcrumbs->addItem('Editar');\n\n if (!$entity) {\n throw $this->createNotFoundException('No se ha encontrado el elemento');\n }\n\n $form = $this->getForm($entity);\n\n return $this->render('AdminBundle:Default:edit.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'metadata' => $this->getMetadata()\n ));\n }", "public function edit()\n {\n return view('user::edit');\n }", "public function edit()\n {\n return view('user::edit');\n }", "public function edit(Form $form)\n {\n return view('admin.forms.edit', compact('form'));\n }", "public function editAction()\n {\n $form = MediaForm::create($this->get('form.context'), 'media');\n $media = $this->get('media_manager.manager')->findOneById($this->get('request')->get('media_id'));\n \n $form->bind($this->get('request'), $media);\n \n return $this->render('MediaManagerBundle:Admin:form.html.twig', array('form' => $form, 'media' => $media));\n }", "public function editAction($id) {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('CdlrcodeBundle:Question')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Question entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('CdlrcodeBundle:Question:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function edit($id)\n {\n return view('consultas::edit');\n }", "public function edit(DirectorFormBuilder $form, $id)\n {\n return $form->render($id);\n }", "public function edit()\n {\n return view('dashboard::edit');\n }", "public function edit($id){\n $rfid = Rfid::find($id);\n\n //load form view\n return view('rfids.edit', ['rfid' => $rfid]);\n }", "public function edit($id)\n {\n\n // retrieve provider\n $provider = Provider::findOrFail($id);\n\n // return form with provider\n return view('backend.providers.form')->with('provider', $provider);\n }", "public function edit(Question $question)\n {\n $this->employeePermission('application' , 'edit');\n $question->chooses;\n $action = 'edit';\n return view('admin.setting.question_form', compact('action' , 'question'));\n }", "public function edit() {\n return view('routes::edit');\n }", "public function edit($id)\n {\n $this->data['product'] = Product::find($id);\n $this->data['category'] = Category::arrForSelect();\n $this->data['title'] = \" Update Prouct Details\";\n $this->data['mode'] = \"edit\";\n\n return view('product.form', $this->data);\n }", "public function edit(ClueEnFormBuilder $form, $id): Response\n {\n return $form->render($id);\n }", "public function editAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('BaseBundle:Feriado')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Feriado entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('BaseBundle:Feriado:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function edit($id)\n {\n return view('cataloguemodule::edit');\n }", "public function edit($articulo_id)\n {\n $titulo = \"Editar\";\n return View(\"articulos.formulario\",compact('titulo','articulo_id'));\n }", "public function edit($id)\n {\n $resources = User::find(session('usuario_id'))->resources;\n $languages = Language::pluck('name', 'id');\n $types = Type::pluck('name', 'id');\n $method = 'PATCH';\n\n $recurso = Resource::find($id);\n $url = \"/resource/$recurso->id\";\n\n return view('resources.resources', compact('resources', 'languages', 'types', 'method', 'url', 'recurso'));\n }", "public function edit(Question $question)\n {\n $edit = TRUE;\n return view('questionForm', ['question' => $question, 'edit' => $edit]);\n }", "public function displayEditForm(Employee $employee){\n return view('employee.displayEditForm',['employee'=>$employee]);\n }", "public function edit()\n {\n return view('website::edit');\n }", "public function edit()\n {\n return view('inventory::edit');\n }", "public function edit()\n {\n return view('initializer::edit');\n }", "public function editAction()\n {\n View::renderTemplate('Profile/edit.html', [\n 'user' => $this->user\n ]);\n }", "public function edit($id)\n {\n return view('backend::edit');\n }", "public function edit($id)\n {\n //dd($id);\n $familiaPrograma= FamiliaPrograma::findOrFail($id);\n return view('familiasPrograma.edit', compact('familiaPrograma'));\n }", "public function edit($id)\n {\n return view('crm::edit');\n }", "public function edit($id)\n {\n return view('crm::edit');\n }", "public function edit($id)\n {\n $user = User::where('id', $id)->first();\n\n\n return view('users.forms.update', compact('user'));\n }", "public function editAction($id)\n\t{\n\t\t$school = School::find( $id );\n\t\t$this->render( View::make( 'schools/form' , array(\n\t\t\t'title' => sprintf( 'Modifier \"%s\"', $school->name ),\n\t\t\t'entity' => $school\n\t\t) ) );\n\t}", "public function edit(Question $question)\n {\n $edit = TRUE;\n return view('questionForm', ['question' => $question, 'edit' => $edit ]);\n }", "public function edit(Person $person) {\n\t\t$viewModel = new PersonFormViewModel();\n\t\treturn view('person.form', $viewModel);\n\t}", "public function edit($id)\n {\n \t$product = Product::find($id);\n \treturn view('admin.products.edit')->with(compact('product')); // formulario de actualizacion de datos del producto\n }", "public function edit_person($person_id){\n \t$person = Person::find($person_id);\n \treturn view('resource_detail._basic_info.edit',compact('person'));\n }", "public function edit($id)\n {\n $professor = $this->repository->find($id);\n return view('admin.professores.edit',compact('professor'));\n }", "public function edit($id)\n {\n $data = Restful::find($id);\n return view('restful.edit', compact('data'));\n }", "public function editAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('MedecinIBundle:Fichepatient')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Fichepatient entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('MedecinIBundle:Fichepatient:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function edit($id)\n {\n return $this->form->render('mconsole::personal.form', [\n 'item' => $this->person->query()->with('uploads')->findOrFail($id),\n ]);\n }", "public function edit($id)\n\t{\n\t\t // get the project\n $project = Project::find($id);\n\n // show the edit form and pass the project\n return View::make('logicViews.projects.edit')->with('project', $project);\n\t}" ]
[ "0.78550774", "0.7692893", "0.7273195", "0.7242132", "0.7170847", "0.70622855", "0.7053459", "0.6982539", "0.69467914", "0.6945275", "0.6941114", "0.6928077", "0.69019294", "0.68976134", "0.68976134", "0.6877213", "0.68636996", "0.68592185", "0.68566656", "0.6844697", "0.68336326", "0.6811471", "0.68060875", "0.68047357", "0.68018645", "0.6795623", "0.6791791", "0.6791791", "0.6787701", "0.67837197", "0.67791027", "0.677645", "0.6768301", "0.6760122", "0.67458534", "0.67458534", "0.67443407", "0.67425704", "0.6739898", "0.6735328", "0.6725465", "0.6712817", "0.6693891", "0.6692419", "0.6688581", "0.66879624", "0.6687282", "0.6684741", "0.6682786", "0.6668777", "0.6668427", "0.6665287", "0.6665287", "0.66610634", "0.6660843", "0.66589665", "0.66567147", "0.66545695", "0.66527975", "0.6642529", "0.6633056", "0.6630304", "0.6627662", "0.6627662", "0.66192114", "0.6619003", "0.66153085", "0.6614968", "0.6609744", "0.66086483", "0.66060555", "0.6596137", "0.65950733", "0.6594648", "0.65902114", "0.6589043", "0.6587102", "0.65799844", "0.65799403", "0.65799177", "0.657708", "0.65760696", "0.65739626", "0.656931", "0.6567826", "0.65663105", "0.65660435", "0.65615267", "0.6561447", "0.6561447", "0.65576506", "0.655686", "0.6556527", "0.6555543", "0.6555445", "0.65552044", "0.65543956", "0.65543705", "0.6548264", "0.65475875", "0.65447706" ]
0.0
-1
Update the specified resource in storage.
public function update(Request $request, Unit $unit) { $this->validate($request,[ 'unit'=> 'required' ]); $unit->update($request->all()); Brian2694Toastr::success('Unit Updated Successfully', 'Success'); return redirect()->route('admin.unit.index'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateShopifyResource() {\n $this->saving();\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'PUT',\n 'DATA' => [\n static::getResourceSingularName() => $this->shopifyData\n ]\n ]);\n }", "public function update(Request $request, Resource $resource)\n {\n $request->validate([\n 'name' => 'required',\n 'description' => 'required|string',\n 'file' => 'required|mimes:jpg,jpeg,png,doc,docx,pdf,ppt,txt',\n ]);\n\n $resource->update($request->all());\n\n if ( $request->hasFile('file') ) {\n $resource = 'resource-'.time().'.'.$request->file('file')->extension();\n $request->file->storeAs('resources', $resource,'public');\n $resource->file = $resource;\n }\n\n if ( $resource->save() ) {\n return redirect()->route('admin.resources.index')->with('success', 'Resource updated');\n } else {\n return redirect()->route('admin.resources.index')->with('error', 'Something went wrong');\n }\n }", "public function update(Request $request, Resource $resource)\n {\n //\n }", "public function updateStream($resource);", "public function update(Request $request, Storage $storage)\n {\n $storage->product_id = $request->product_id;\n $storage->amount = $request->amount;\n\n $storage->save();\n\n return redirect()->route('storages.index');\n }", "protected function updateImageResource($fileName, $imageId, $storage)\n {\n //Get image name and storage location for image\n $image = Image::where('id', '=', $imageId)->first();\n\n //Delete old image\n $this->deleteResource($image->name, $image->storage);\n\n //Store the new image\n $image->name = $fileName;\n $image->storage = $storage;\n\n $image->save();\n }", "public function update(Storage $storage, UpdateStorageRequest $request)\n {\n $this->storage->update($storage, $request->all());\n\n return redirect()->route('admin.product.storage.index')\n ->withSuccess(trans('core::core.messages.resource updated', ['name' => trans('product::storages.title.storages')]));\n }", "public function update(StoreStorage $request, Storage $storage)\n {\n $storage->fill($request->all())->save();\n $request->session()->flash('alert-success', 'Запись успешно обновлена!');\n return redirect()->route('storage.index');\n }", "public function update_asset($id, Request $request){\n \t\tif(!Auth::user()){\n\t\t\treturn redirect('/');\n\t\t}\n \t\t$asset = Storage::find($id);\n \t\t$asset->name = $request->name;\n \t\t$asset->quantity = $request->quantity;\n \t\t$asset->category_id = $request->category;\n \t\tif($request->file('image') != null){\n\t\t\t$image = $request->file('image');\n\t\t\t$image_name = time(). \".\" . $image->getClientOriginalExtension();\n\t\t\t$destination = \"images/\";\n\t\t\t$image->move($destination, $image_name);\n\t\t\t$asset->image_url = $destination.$image_name;\n\t\t} \n\t\t$asset->save();\n\t\tsession()->flash('success_message', 'Item Updated successfully');\n\t\treturn redirect(\"/storage\");\n \t}", "public function update(Request $request, Flight $exercise, FlightResource $resource)\n {\n $request->validate([\n 'display_name' => 'required|string|max:100',\n 'file' => 'nullable|file|max:10240|mimes:pdf',\n 'uri' => 'nullable|url|max:255',\n ]);\n\n if ($resource->type === 'file' && $request->file('file')) {\n Storage::drive('public')->delete($resource->resource);\n $resource->resource = $request->file('file')->store('smartcars/exercises/resources', ['disk' => 'public']);\n } elseif ($resource->type === 'uri' && $request->input('uri')) {\n $resource->resource = $request->input('uri');\n }\n\n $resource->save();\n\n return redirect()->route('adm.smartcars.exercises.resources.index', $exercise)\n ->with('success', 'Resource edited successfully.');\n }", "public function update(Request $request, $id)\n {\n $validator = Validator::make($request->all(), [\n 'title' => 'required|string',\n 'content' => 'required|string',\n 'mentoring_area_id' => 'required|integer',\n 'featured_image_uri' => 'string',\n ]);\n\n if ($validator->fails()) {\n return APIHandler::response(0, $validator->errors(), 400);\n }\n \n $resource = Resource::find($id);\n $resource->title = $request->get('title');\n $resource->content = $request->get('content');\n $resource->featured_image_uri = $request->get('featured_image_uri');\n $resource->updated_at = \\Carbon\\Carbon::now();\n $resource->mentoring_area_id = $request->get('mentoring_area_id');\n $resource->save();\n $data['resource'] = $resource;\n return APIHandler::response(1, \"Resource has been updated\");\n }", "protected function updateVideoResource($fileName, $videoId, $storage, $premium=1)\n {\n //Get video name and storage location for video\n $video = Video::where('id', '=', $videoId)->first();\n\n //Check the storage medium\n if($storage == 'vimeo' || $storage == 'youtube')\n {\n $video->name = $fileName;\n $video->storage = $storage;\n $video->premium = $premium;\n $video->save();\n }\n else\n {\n if($video['storage'] == 'local' || $video['storage'] == 's3')\n {\n //Delete old video\n $this->deleteResource($video->name, $video->storage);\n }\n \n //Store the new video\n $video->name = $fileName;\n $video->storage = $storage;\n $video->premium = $premium;\n $video->save();\n }\n }", "public function put($resource, $with=[]){\n return $this->fetch($resource, self::PUT, $with);\n }", "public function update($id, $resource) {\n SCA::$logger->log(\"update resource\");\n return $this->orders_service->update($id, $resource);\n }", "public function update($path);", "public function update($id, $resource)\n {\n SCA::$logger->log(\"Entering update()\");\n //check whether it is an sdo or an xml string.\n if ($resource instanceof SDO_DataObjectImpl) {\n //if the thing received is an sdo convert it to xml\n if ($this->xml_das !== null) {\n $xml = SCA_Helper::sdoToXml($this->xml_das, $resource);\n } else {\n throw new SCA_RuntimeException(\n 'Trying to update a resource with SDO but ' .\n 'no types specified for reference'\n );\n }\n } else {\n $xml = $resource;\n }\n\n $slash_if_needed = ('/' === $this->target_url[strlen($this->target_url)-1])?'':'/';\n\n $handle = curl_init($this->target_url.$slash_if_needed.\"$id\");\n curl_setopt($handle, CURLOPT_HEADER, false);\n curl_setopt($handle, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($handle, CURLOPT_CUSTOMREQUEST, \"PUT\");\n curl_setopt($handle, CURLOPT_POSTFIELDS, $xml);\n\n //replace with Content-Type: atom whatever\n $headers = array(\"User-Agent: SCA\",\n \"Content-Type: text/xml;\",\n \"Accept: text/plain\");\n curl_setopt($handle, CURLOPT_HTTPHEADER, $headers);\n\n $result = curl_exec($handle);\n\n $response_http_code = curl_getinfo($handle, CURLINFO_HTTP_CODE);\n\n curl_close($handle);\n\n $response_exception = $this->buildResponseException($response_http_code, '200');\n\n if ($response_exception != null) {\n throw $response_exception;\n } else {\n //update does not return anything in the body\n return true;\n }\n }", "public function update(Request $request, $id)\n {\n $this->validate($request, [\n 'name' => 'required',\n 'link' => 'required',\n 'description' => 'required'\n ]);\n\n $resource = Resource::find($id);\n $resource->name = $request->name;\n $resource->type_id = $request->type_id;\n $resource->has_cost = ($request->has('has_cost')) ? 1 : 0;\n $resource->language_id = $request->language_id;\n $resource->link = $request->link;\n $resource->description = $request->description;\n $resource->tags = '';\n\n $resource->save();\n //return back()->with('success', 'Recurso actualizado satisfactoriamente');\n return redirect('/resource')->with('success', 'Recurso actualizado satisfactoriamente');\n }", "public function update(Request $request, $id)\n {\n $oldProduct = Product::findOrFail($id);\n $data = $request->all();\n if(isset($data['img'])){\n // $file = $request->file('photo');\n // return $file;\n $imgName = time().'.'.$request->img->extension();\n $data['img'] = $imgName;\n // Storage::putFile('spares', $file);\n $path = $request->img->storeAs('public/uploads', $imgName); //in Storage\n\n //delete old file\n if($oldProduct->img != 'product-default.png'){\n Storage::delete(\"public/uploads/\".$oldProduct->img);\n // return 'deleted';\n }\n \n }else{\n $data['img'] = $oldProduct->img;\n }\n $oldProduct->update($data);\n return redirect()->route('product.index'); \n\n }", "public function update($request, $id) {\n\t\t\t$image = $request['photo'];\n\t\t\tif($image !== null) {\n\t\t\t\t$name = time().'.' . explode('/', explode(':', substr($image, 0, strpos($image, ';')))[1])[1];\n\t\t\t\t\\Image::make($request['photo'])->save(public_path('storage/products/').$name);\n\t\t\t\t$request['photo'] = $name;\n\t\t\t} else {\n\t\t\t\t$currenPhoto = Product::all()->where('id', $id)->first();\n\t\t\t\t$request['photo'] = $currenPhoto->photo;\n\t\t\t}\n return $this->product->update($id, $request);\n\t}", "public function updateStream($path, $resource, Config $config)\n {\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function updateResourceIndex(&$resource) {\n if ($this->connector != null) {\n\n // STEP 1: Update or insert this resource as a node:\n $this->logger->addDebug(\"Updating/Inserting Node into Neo4J database\");\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id} }) SET a.title = {title}, a.version = {version}, a.href = {href}\n return a;\",\n [\n 'id' => $resource->getID(),\n 'version' => $resource->getVersion(),\n 'title' => $resource->getTitle(),\n 'href' => $resource->getLink()\n ]\n );\n\n // Check to see if anything was added\n $records = $result->getRecords();\n if (empty($records)) {\n // Must create this record instead\n $result = $this->connector->run(\"CREATE (n:Resource) SET n += {infos};\",\n [\n \"infos\" => [\n 'id' => $resource->getID(),\n 'version' => $resource->getVersion(),\n 'title' => $resource->getTitle(),\n 'href' => $resource->getLink()\n ]\n ]\n );\n }\n\n // STEP 2: Update or insert the resource's link to holding repository\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id} })-[r:HIRELATION]->()\n return r;\",\n [\n 'id' => $resource->getID(),\n ]\n );\n $records = $result->getRecords();\n if (!empty($records)) {\n // delete the one there so that we can add the correct one (just in case)\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id}})-[r:HIRELATION]->() delete r;\",\n [\n 'id' => $resource->getID()\n ]\n );\n\n }\n\n // If resource has a repository, then add a link\n if ($resource->getRepository() != null && $resource->getRepository()->getID() != null) {\n $this->connector->run(\"MATCH (a:Identity {id: {id1} }) MATCH (b:Resource {id: {id2} }) CREATE (b)-[r:HIRELATION]->(a);\",\n [\n 'id1' => (string) $resource->getRepository()->getID(),\n 'id2' => $resource->getID()\n ]);\n }\n }\n }", "public function update($data) {}", "public function update($data) {}", "public function putStream($resource);", "public function update(Request $request, NebulaResource $resource, $item): RedirectResponse\n {\n $this->authorize('update', $item);\n\n $validated = $request->validate($resource->rules(\n $resource->editFields()\n ));\n\n $resource->updateQuery($item, $validated);\n\n $this->toast(__(':Resource updated', [\n 'resource' => $resource->singularName(),\n ]));\n\n return redirect()->back();\n }", "public function saveShopifyResource() {\n if (is_null($this->getShopifyId())) { // if there is no id...\n $this->createShopifyResource(); // create a new resource\n } else { // if there is an id...\n $this->updateShopifyResource(); // update the resource\n }\n }", "public function update($entity);", "public function update($entity);", "public function setResource($resource);", "public function updateStream($path, $resource, Config $config)\n {\n return $this->upload($path, $resource, $config);\n }", "public function isUpdateResource();", "public function update(Request $request, $id)\n {\n $device = Device::findOrFail($id);\n $device->fill($request->all());\n if ($request->hasFile('icon')) {\n if ($device->hasMedia('icon')) {\n $device->deleteMedia($device->getFirstMedia('icon'));\n }\n $device->addMediaFromRequest('icon')->toMediaCollection('icon');\n }\n $device->save();\n return new DeviceResource($device);\n }", "public function update(Request $request, $id)\n {\n //\n $product = Product::findOrFail($id);\n \n $product->update($request->all());\n \n $file = $request->file('url_image')->move('upload', $request->file('url_image')->getClientOriginalName());\n\n Product::where('id',$id)->update(['url_image'=>$file]);\n \n \\Session::flash('flash_message', 'Edit product successfully.'); \n \n //cũ : return redirect('articles');\n return redirect()->route('products.index');\n }", "public function store($data, Resource $resource);", "public function update(Request $request, $id)\n {\n \n $product = Product::find($id);\n\n\n $product->fill($request->all())->save();\n\n //Verificamos que tenemos una imagen\n if($request->file('photo_1')){\n\n\n //En caso de tenerla la guardamos en la clase Storage en la carpeta public en la carpeta image.\n $path = Storage::disk('public')->put('photo_1',$request->file('photo_1'));\n\n //Actualizamos el Post que acabamos de crear\n $product->fill(['photo_1' => asset($path)])->save();\n\n }\n\n\n return redirect()->route('products.index')->with('info', 'Producto actualizado exitosamente!');\n }", "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n\n if (\\Input::hasFile('image')) {\n $this->imgsave($request, $product);\n }\n\n\n if (!empty($request->input('tags'))) {\n $product->tags()->sync($request->input('tags'));\n } else {\n $product->tags()->detach();\n }\n\n $product->update($request->all());\n\n return redirect()->to('dashboard/product')->with('message', 'update success');\n }", "public function put($resource_path, array $variables = array()) {\n return $this->call($resource_path, $variables, 'PUT');\n }", "public function update($id)\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'updateValidations')) {\n $this->request->validate($this->updateValidations());\n }\n\n /* Get the specified resource */\n $resource = $this->model::findOrFail($id);\n\n /* Update the specified resource */\n $resource->update(Input::all());\n\n /* Redirect back */\n return redirect()->back()\n ->with(\n 'info',\n Lang::has($this->name . '.resource-updated') ?\n $this->name . '.resource-updated' :\n 'messages.alert.resource-updated'\n );\n }", "public function putResponse($request)\n {\n $idSearched = $this->searcher->searchResourceIndex(\n $request, \n $this->db[$request['resource']]\n );\n if ($idSearched) {\n $resource = $this->db[$request['resource']][$idSearched];\n $bodyInput = json_decode($this->standardInput, true);\n $resource = BodyRequest::canApplyBody($bodyInput);\n $resource['id'] = (int)$request['param'];\n foreach($resource as $key => $value) {\n $this->db[$request['resource']][$idSearched][$key] = $value;\n }\n file_put_contents(DB_PATH, json_encode($this->db));\n }\n }", "public function update(Storedataset $request, dataset $dataset){\n $dataset->title = $request->input('title');\n $dataset->caption = $request->input('caption');\n $dataset->file_url = $request->input('file_url');\n $dataset->type = $request->input('type');\n $dataset->status = $request->input('status');\n $dataset->publication_id = $request->input('publication_id');\n\n $dataset->save();\n\n return redirect()->route('datasets.show', ['dataset' => $dataset]);\n }", "public function update(Request $request, $id)\n\n {\n ResourceManagement::findOrFail($id);\n $constraints = [\n 'title' => 'required|max:100',\n 'url'=> 'required|max:191',\n 'content' => 'required'\n ];\n\n $input = [\n 'title' => $request['title'],\n 'url' => $request['url'],\n 'content' => $request['content'],\n 'type' => $request['type'],\n 'level' => $request['level'],\n 'user_id' => $request['user']\n ];\n// $this->validate($input, $constraints);\n ResourceManagement::where('id', $id)\n ->update($input);\n\n return redirect()->intended('/resource-management');\n }", "public function update(Request $request, $id)\n {\n $this->validate($request, [\n 'title' => 'required',\n 'description' => 'required|string',\n 'price' => 'required|numeric',\n 'reference'=>'required'\n ]);\n \n $product = Product::find($id);\n $product->update($request->all());\n \n $im = $request->file('picture');\n \n if (!empty($im)) {\n \n $link = $request->file('picture')->store('images');\n \n \n $product->update([\n 'url_image' => $link,\n ]);\n } \n //dump($request->all());\n return redirect()->route('product.index')->with('message', 'Article modifié avec succès');\n }", "public function update(StoreOrUpdateAsset $request, Asset $asset)\n {\n if (Storage::exists($asset->path) && !Storage::delete($asset->path)) {\n abort(500);\n }\n\n $file = $request->file('file');\n $path = $file->store('assets');\n\n if (!$path) {\n abort(500);\n }\n\n // We wonder if we should delete the old file or not...\n\n $asset->name = $file->getClientOriginalName();\n $asset->size = $file->getSize();\n $asset->type = $file->getMimeType();\n $asset->path = $path;\n\n if ($asset->save()) {\n flash('The asset has been saved.')->success();\n } else {\n abort(500);\n }\n\n return redirect('/admin/assets');\n }", "public function update(FoodRecipeRequest $request, $id)\n {\n $foodRecipe = FoodRecipe::with('ingredients','cookingProcesses')->findOrFail($id);\n if ($request->input('name')!= null)\n $foodRecipe->name = $request->input('name');\n if ($request->input('detail')!= null)\n $foodRecipe->detail = $request->input('detail');\n if($request->file('photo') != null) {\n $old_file = $foodRecipe->photo;\n if($old_file != null){\n $path = public_path().'/storage/'.$old_file;\n File::delete($path);\n }\n $file = $request->file('photo');\n $name = '/foodRecipe/' . Carbon::now()->format(\"dnY-Hisu\") . \".\" . $file->extension();\n $file->storePubliclyAs('public', $name);\n $foodRecipe->photo = $name;\n }\n $foodRecipe->save();\n return new FoodRecipeResource($foodRecipe);\n }", "public function update(StorageTypeRequest $request, $id)\n {\n try {\n $this->service->updateStorageType($request, $id);\n return $this->NoContent();\n } catch (EntityNotFoundException $e) {\n \\Log::error($e->getMessage());\n return $this->NotFound($e->getMessage());\n } catch(\\QueryException $e) {\n \\Log::error($e->getMessage());\n return $this->ServerError();\n } catch(Exception $e) {\n \\Log::error($e->getMessage());\n return $this->ServerError();\n }\n }", "public function update(Request $request, $id)\n {\n //validation\n $this->validate(request(),[\n 'image' => 'image'\n ]);\n\n $slider = HomeSliders::find($id);\n \n $slider->link = request('link');\n\n //get old image to delete if updated\n $oldImage = request('oldImage');\n //get the new image\n $NewImage=$request->file('image');\n\n if($NewImage)\n {\n $filenameToStore= helpers::updatePhoto('image','homeSliders',$request);\n $slider->image=$filenameToStore;\n\n Storage::delete('public/Images/homeSliders/'.$oldImage);\n }\n\n $slider->save();\n\n Alert::success(config('app.name'), trans('messages.Updated Successfully') );\n return redirect()->route('admin.homeSlider',$slider->type);\n }", "public function update(Qstore $request, $id)\n {\n //\n }", "public function update(IEntity $entity);", "protected function performUpdate(): bool\n {\n // Abort if resource does not support update operations\n if (!$this->isUpdatable()) {\n throw new UnsupportedOperation(sprintf('API does not support update operation for %s resources', $this->resourceNameSingular()));\n }\n\n $id = $this->id();\n $prepared = $this->prepareBeforeUpdate($this->toArray());\n\n $payload = [\n $this->resourceNameSingular() => $prepared\n ];\n\n $response = $this\n ->request()\n ->put($this->endpoint($id), $payload);\n\n // Extract and (re)populate resource (if possible)\n // Note: Unlike the \"create\" method, Redmine does NOT\n // appear to send back a full resource when it has been\n // successfully updated.\n $this->fill(\n $this->decodeSingle($response)\n );\n\n return true;\n }", "public function update($request, $id);", "function put($resource, $data = null) {\r\n\t\t\r\n\t\tif(isset($data)) {\r\n\t\t\t$this->request_body = $data;\r\n\t\t}\r\n\r\n\t\t// make the call chief\r\n\t\t$this->exec ( \"PUT\", '/' . $resource );\r\n\r\n\t\t// check the request status\r\n\t\tif($this->status_code != 200){\r\n\t\t\t$this->Logger->error(\r\n\t\t\t\tsprintf(\r\n\t\t\t\t\t'GET Call for resource \\'%s\\' Failed.\r\n\t\t\t\t\tStatus: %d,\r\n\t\t\t\t\tRequest: %s\r\n\t\t\t\t\tAPI Error Message: \r\n\t\t\t\t\t%s',\r\n\t\t\t\t\t$resource,\r\n\t\t\t\t\t$this->status_code,\r\n\t\t\t\t\t$this->request_body_raw,\r\n\t\t\t\t\t$this->response_body\r\n\t\t\t\t)\r\n\t\t\t);\r\n\t\t\tthrow new Exception($this->response_body);\r\n\t\t} else {\r\n\t\t\treturn $this->response_parsed;\r\n\t\t}\r\n\t}", "public function updateEntities($resource)\n {\n $json = [\n 'resource' => $resource,\n ];\n $request = $this->createRequest('PUT', '/entities', ['json' => $json]);\n $response = $this->send($request);\n return $response;\n }", "public function updateStream($path, $resource, Config $config)\n {\n return $this->writeStream($path, $resource, $config);\n }", "public function update(Request $request, $id)\n {\n\n $product = Product::findOrFail($id);\n $product->name = $request['name'];\n $product->price = $request['price'];\n $product->stock = $request['stock'];\n $product->description = $request['description'];\n\n $file = $request->file('image');\n $fileName = $file->getClientOriginalName();\n if($fileName != $product->image){\n $request->file('image')->move('images/',$fileName);\n $product->image = $fileName;\n }\n\n $product->save();\n\n return redirect()->route('products.show',\n $product->id)->with('flash_message',\n 'Article, '. $product->name.' updated');\n }", "protected function handleUpdate()\n {\n $resource = $this->argument('resource');\n $action = $this->option('action');\n $startPage = (int)$this->option('startPage');\n $perPage = (int)$this->option('perPage');\n\n try {\n $harvest = Harvest::where('resource', $resource)->where('action', $action)->firstOrFail();\n } catch (\\Exception $e) {\n $this->info('There is no existing action for updating ' . ucwords($action) . ' ' . ucwords($resource) . '.');\n exit('Nothing was updated.');\n }\n\n $options = [\n 'startPage' => $startPage,\n 'perPage' => $perPage,\n 'lastRun' => $harvest->last_run_at\n ];\n\n // If a lastRun was given use that\n // OR if this has never been run before use 2001-01-01\n if (!empty($this->option('lastRun'))) {\n $options['lastRun'] = new Carbon($this->option('lastRun'));\n } elseif (is_null($options['lastRun'])) {\n $options['lastRun'] = new Carbon('2001-01-01');\n }\n\n $job = new UpdateResourceJob(\n $harvest,\n $options\n );\n\n $message = 'Updating ' . $action . ' ' . $resource . ' ' . $perPage . ' at a time';\n if (isset($lastRun)) {\n $message .= ' with entries updated since ' . $lastRun->format('r');\n }\n $this->info($message);\n $this->dispatch($job);\n }", "abstract public function put($data);", "public function update($id, $data);", "public function update($id, $data);", "public function update($id, $data);", "public function update($id, $data);", "public function update($id, $data);", "public function testUpdateSupplierUsingPUT()\n {\n }", "public function update(Request $request, $id)\n {\n $storageplace = Storageplace::findOrFail($id);\n $storageplace->update($request->only(['storageplace']));\n return $storageplace;\n }", "public function updateRelatedImage(Request $request, $id)\n {\n // Delete display image in Storage\n Validator::make($request->all(), ['photos' => \"required|file|image|mimes:jpg,png,jpeg|max:5000\"])->validate();\n\n\n if ($request->hasFile(\"photos\")) {\n\n $photo = ProductsPhoto::find($id);\n $imageName = $photo->photos;\n $exists = Storage::disk('local')->exists(\"public/product_images/\" . $photo->photos);\n\n //delete old image\n if ($exists) {\n Storage::delete('public/product_images/' . $imageName);\n }\n\n //upload new image\n $ext = $request->file('photos')->getClientOriginalExtension(); //jpg\n\n $request->photos->storeAs(\"public/product_images/\", $imageName);\n\n $arrayToUpdate = array('photos' => $imageName);\n DB::table('products_photos')->where('id', $id)->update($arrayToUpdate);\n\n return redirect()->route(\"adminDisplayRelatedImageForm\", ['id' => $photo->product_id]);\n } else {\n\n $error = \"NO Image was Selected\";\n return $error;\n }\n }", "public function update(Request $request, $id)\n {\n $skill = Skill::findOrFail($id);\n\n $skill->skill = $request->skill;\n\n if ($request->hasFile('image')) {\n \\Cloudder::upload($request->file('image'));\n $c=\\Cloudder::getResult();\n // $image = $request->file('image');\n // $filename = time() . '.' . $image->getClientOriginalExtension();\n // $location = public_path('images/' . $filename);\n // Image::make($image)->save($location);\n\n $skill->image = $c['url'];\n }\n\n $skill->save();\n\n Session::flash('success', 'Successsfully updated your skill!');\n return redirect()->route('skills.index');\n }", "public function updateStream($path, $resource, Config $config = null)\n {\n $contents = stream_get_contents($resource);\n\n return $this->write($path, $contents, $config);\n }", "public abstract function update($object);", "public static function update($id, $file)\n {\n Image::delete($id);\n\n Image::save($file);\n }", "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n $image = $product->image;\n if($request->hasFile('image')){\n $image = $request->file('image')->store('files');\n \\Storage::delete($product->image);\n } \n $product->name = $request->get('name');\n $product->price = $request->get('price');\n $product->description = $request->get('description');\n $product->additional_info = $request->get('additional_info');\n $product->category_id = $request->get('category');\n $product->subcategory_id = $request->get('subcategory');\n $product->image = $image;\n $product->save();\n return redirect()->back();\n }", "public function update(Request $request, $id)\n {\n $sli=Slider::find($id);\n $sli->sort_order=$request->input('sort_order');\n $image = $request->file('slider');\n if($image == ''){\n $image = $sli->slider;\n }else{\n $image = base64_encode(file_get_contents($request->file('slider')));\n }\n $sli->slider = $image;\n $sli->save();\n return redirect()->back();\n }", "public function update(ProductRequest $request, $id)\n {\n $input = Product::find($id);\n $data = $request->all();\n if ($file = $request->file('product_photo')){\n $name = time().$file->getClientOriginalName();\n $file->move('product_image',$name);\n $data['product_photo']=$name;\n// $input->update($data);\n }\n $input->update($data);\n return redirect('admin/products/');\n }", "public function update(Request $request, $id)\n {\n $volume = $this->findVolume($id);\n\n if(count($volume) > 0) {\n $volume->str_volume_name = $request->str_volume_name;\n\n $volume->save();\n }\n\n return response()\n ->json(\n array(\n 'message' => 'Volume is successfully updated.',\n 'volume' => $volume\n ),\n 201\n );\n }", "public function update(Request $request, $id)\n {\n $product = ProductModel::find($id);\n $product->name = $request->name;\n $product->description = $request->description;\n $product->price = $request->price;\n $product->stock = $request->stock;\n\n if($request->image!=null){\n $imageName = time().'.'.$request->image->extension();\n $request->image->move(public_path('images'), $imageName);\n $product->image = \"/images/\".$imageName;\n }\n $product->save();\n return redirect(\"/products/index\")->with('success','Product has been updated');\n }", "public function update()\n {\n $accessory = Accessories::find(request('id'));\n\n if ($accessory == null) {\n return response()->json([\"error\" => \"aksesuaras nerastas\"], 404);\n }\n\n $this->validateData();\n $path = $accessory->src;\n\n if (request()->hasFile('src')) {\n\n if (Storage::disk('public')->exists($accessory->src)) {\n Storage::disk('public')->delete($accessory->src);\n }\n $path = request()->file('src')->store('accessoriesImages', 'public');\n }\n\n $accessory->update(array_merge($this->validateData(), ['src' => $path]));\n\n return response()->json([\"data\" => $accessory], 200);\n }", "public function update(ProductStoreRequest $request,$id)\n {\n $data = $request->validated();\n $product = Product::where('id',$id);\n $product->update($data);\n return response(\"Producto actualizado con éxito\",200);\n }", "public function update($entity)\n {\n \n }", "public function updateStream($path, $resource, Config $config)\n {\n return $this->write($path,stream_get_contents($resource),$config);\n }", "public function update($id, Request $request)\n {\n date_default_timezone_set('Asia/Taipei');\n $data = $request->all();\n $dbData = Product::find($id);\n $myfile = Storage::disk('local');\n if ($request->hasFile('img')) {\n $file = $request->file('img');\n $path = $myfile->putFile('public', $file);\n $data['img'] = $myfile->url($path);\n File::delete(public_path($dbData->img));\n }\n $dbData->update($data);\n\n if ($request->hasFile('imgs')) {\n // $this->fetchDestroyByProdId($id);\n $localS = Storage::disk('local');\n\n $fileS = $request->file('imgs');\n $imgs = [];\n foreach ($fileS as $i) {\n $pathS = $localS->putFile('public', $i);\n $imgs[] = $localS->url($pathS);\n }\n foreach ($imgs as $img) {\n ProductImg::create([\n 'product_id' => $id,\n 'img' => $img\n ]);\n }\n }\n\n return redirect()->route('admin');\n }", "public function update(Request $request, Product $product)\n { $remfile= $product->image;\n if($request->filep){\n $product->image=$request->filep;\n File::delete(storage_path('app/public/products/'.$remfile));\n }else{\n $product->image=$remfile;\n }\n //rmdir(storage_path('app/public/products/'.$remfile));\n $product->name = $request->name;\n $product->description = $request->description;\n $product->price = $request->price;\n $product->save();\n sleep(3);\n toast('Details updated successfully','info');\n return redirect('/products');\n }", "public function update($id, $input);", "public function update(ProductRequest $request,int $id): ProductResource\n {\n $attributes = $request->only('supplier_id', 'name', 'warehouses');\n\n return new ProductResource($this->productRepository->update($id, $attributes)); }", "public function update(Request $request, $id)\n {\n $slider=new Slider;\n $slider=$slider::find($id);\n \n \n if($file =$request->file('slider')){\n if(Storage::delete('public/slider/'.$slider->slider)){\n\n //Get file original name//\n \n$original_name=$file->getClientOriginalName();\n\n //Get just the file name\n$filename=pathinfo($original_name,PATHINFO_FILENAME);\n\n//Create new file name\n$name=$filename.'_'.time().'.'.$file->getClientOriginalExtension();\n\n $destination='public/slider';\n $path=$request->slider->storeAs($destination,$name);\n $slider->slider=$name;\n $slider->save();\n return redirect('Admin/slider');\n\n }\n }\n}", "public function update(Request $request, $id)\n {/* dd($request->all()); */\n $acheivePic = $this->acheiveRepo->find($id);\n $acheive = $request->except('_method', '_token', 'photo', 'ar', 'en');\n $acheiveTrans = $request->only('ar', 'en');\n\n if ($request->hasFile('icon')) {\n // Delete old image first.\n $oldPic = public_path() . '/images/acheives/' . $acheivePic->icon;\n File::delete($oldPic);\n\n // Save the new one.\n $image = $request->file('icon');\n $imageName = $this->upload($image, 'acheives');\n $acheive['icon'] = $imageName;\n }\n\n $this->acheiveRepo->update($id, $acheive, $acheiveTrans);\n\n return redirect('admin-panel/widgets/acheive')->with('updated', 'updated');\n }", "public function update(Request $request, $id)\n {\n $data = $request->all();\n extract($data);\n\n $productVarient = new ProductVariant();\n $productVarient = $productVarient->find($id);\n $productVarient->vendor_id = auth()->user()->id;\n $productVarient->description = $prod_desc;\n $productVarient->price = $price;\n\n if(request()->hasFile('photo')){\n $image = request()->file('photo')->getClientOriginalName();\n $imageNewName = auth()->user()->id.'-'.$image;\n $file = request()->file('photo');\n $file->storeAs('images/product',$imageNewName, ['disk' => 'public']);\n $productVarient->image = $imageNewName;\n }\n \n $productVarient->save();\n\n return back()->withStatus(__('Product successfully updated.'));\n }", "public function update(Request $request, $id)\n {\n //if upload new image, delete old image\n $myfile=$request->old_photo;\n if($request->hasfile('photo'))\n {\n $imageName=time().'.'.$request->photo->extension();\n $name=$request->old_photo;\n\n if(file_exists(public_path($name))){\n unlink(public_path($name));\n $request->photo->move(public_path('backendtemplate/truefalseimg'),$imageName);\n $myfile='backendtemplate/truefalseimg/'.$imageName;\n }\n }\n //Update Data\n $truefalsequestion=TrueFalseQuestion::find($id);\n $truefalsequestion->name=$request->name;\n $truefalsequestion->photo=$myfile;\n $truefalsequestion->answer = $request->answer;\n $truefalsequestion->question_id = $request->question;\n $truefalsequestion->save();\n\n //Redirect\n return redirect()->route('truefalsequestions.index'); \n }", "public function update($id);", "public function update($id);", "private function update()\n {\n $this->data = $this->updateData($this->data, $this->actions);\n $this->actions = [];\n }", "public function put($path, $data = null);", "public function update(Request $request, $id)\n {\n $request->validate([\n 'path_image'=>'image',\n 'status'=>'required|in:0,1'\n ]);\n $slider=Slider::whereId($id)->first();\n if (is_null($slider)){\n return redirect()->route('sliders.index')->with('error','Slider does not exist');\n }\n try {\n if ($request->hasFile('path_image')){\n $file = $request->file('path_image');\n\n $image_path= $file->store('/sliders',[\n 'disk'=>'uploads'\n ]);\n Storage::disk('uploads')->delete($slider->image);\n\n $request->merge([\n 'image'=>$image_path,\n ]);\n }\n\n $slider->update( $request->only(['status','image']));\n return redirect()->route('sliders.index')->with('success','Updated successful');\n }catch (\\Exception $exception){\n return redirect()->route('sliders.index')->with(['error'=>'Something error try again']);\n\n }\n }", "public function update() {\n $this->accessory->update($this->accessory_params());\n\n if ($this->accessory->is_valid()) {\n $this->update_accessory_image($this->accessory);\n redirect('/backend/accessories', ['notice' => 'Successfully updated.']);\n } else {\n redirect(\n '/backend/accessories/edit',\n ['error' => $this->accessory->errors_as_string()],\n ['id' => $this->accessory->id]\n );\n }\n }", "public function update(Entity $entity);", "public function update(Request $request, $id)\n {\n $icon = SliderIcon::find($id);\n $data = $request->all();\n $data['active'] = $request->has('active') ? 1 : 0;\n if ($request->hasFile('img')) {\n if (Storage::disk('public')->exists(str_replace('storage', '', $icon->img))){\n Storage::disk('public')->delete(str_replace('storage', '', $icon->img));\n }\n $image = $request->file('img');\n $fileName = time().'_'.Str::lower(Str::random(5)).'.'.$image->getClientOriginalExtension();\n $path_to = '/upload/images/'.getfolderName();\n $image->storeAs('public'.$path_to, $fileName);\n $data['img'] = 'storage'.$path_to.'/'.$fileName;\n }\n $icon->update($data);\n return redirect()->route('slider_icons.index')->with('success', 'Данные преимущества обнавлены');\n }", "public function update() {\n\t $this->layout = false;\n\t \n\t //set default response\n\t $response = array('status'=>'failed', 'message'=>'HTTP method not allowed');\n\t \n\t //check if HTTP method is PUT\n\t if($this->request->is('put')){\n\t //get data from request object\n\t $data = $this->request->input('json_decode', true);\n\t if (empty($data)) {\n\t $data = $this->request->data;\n\t }\n\t \n\t //check if product ID was provided\n\t if (!empty($data['id'])) {\n\t \n\t //set the product ID to update\n\t $this->Player->id = $data['id'];\n\t if ($this->Player->save($data)) {\n\t $response = array('status'=>'success','message'=>'Product successfully updated');\n\t } else {\n\t $response['message'] = \"Failed to update product\";\n\t }\n\t } else {\n\t $response['message'] = 'Please provide product ID';\n\t }\n\t }\n\t \n\t $this->response->type('application/json');\n\t $this->response->body(json_encode($response));\n\n\t return $this->response->send();\n\t}", "public function update(Request $request, $id)\n {\n //validate incoming request\n $request->validate([\n 'name' => 'string|max:100|nullable',\n 'picture' => 'max:2000|mimes:jpeg,jpg,png,svg|nullable', //max size 2mb,\n 'total' => 'integer|min:0|nullable', //value must be > 0\n 'selling_price' => 'numeric|min:0|nullable',\n 'cost_price' => 'numeric|min:0|nullable',\n 'category_id' => 'integer|nullable'\n ]);\n\n try {\n $product = Auth::user()->store->product()->findorFail($id);\n } catch (ModelNotFoundException $e) {\n return response()->json([\n \"message\" => \"Forbidden\"\n ], 403);\n }\n\n //if category id isnt null\n if ($category_id = $request->category_id) {\n if (!$this->isCategoryIdValid($category_id))\n return response()->json([\n \"message\" => \"Category Id is not valid\"\n ], 422);\n else\n $product->category_id = $request->category_id;\n }\n\n //if uploaded file exist\n if ($picture = $request->file(\"picture\")) {\n //if product already has logo\n if ($product->picture)\n Storage::delete(Product::$PICTURE_PATH . \"/\" . $product->picture);\n\n $picture_path = $picture->store(Product::$PICTURE_PATH);\n //remove folder name from path\n $product->picture = str_replace(Product::$PICTURE_PATH . \"/\", '', $picture_path);\n }\n\n $this->renewProduct($product, $request);\n $product->save();\n return response()->json(new ProductResource($product), 200);\n }", "public function update(Request $request, $id)\n {\n $request->validate([\n 'name' => 'required | min:3 | string',\n 'type' => 'required',\n 'producer' => 'required',\n 'image' => 'image | mimes:png,jpg,jpeg',\n 'price_input' => 'required | numeric | min:0 | max:300000000',\n 'promotion_price' => 'required | numeric | max:300000000',\n 'description' => 'required | string',\n\n ]);\n $product = Product::withTrashed()->findOrfail($id);\n $product->name = $request->name;\n $product->id_type = $request->type;\n $product->id_producer = $request->producer;\n\n $product->amount = $request->amount;\n if (request('image')) {\n $product->image = base64_encode(file_get_contents($request->file('image')->getRealPath()));\n }\n\n $product->price_input = $request->price_input;\n\n if ( $request->promotion_price >= 0 && $request->promotion_price < $product->price_input) {\n $product->promotion_price = $request->promotion_price;\n }else{\n return back()->with('error', '\n Do not enter a negative number');\n }\n $product->new = $request->new;\n\n $product->description = $request->description;\n\n $product->save();\n $product->size()->sync(request('size'));\n\n return redirect()->route('product.index')->with('success', 'Product Updated successfully');\n }", "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n\n $product->name = $request->input('name');\n $product->description = $request->input('description');\n $product->lastPrice = $product->price !== $request->input('price') ? $product->price : NULL;\n $product->price = $request->input('price');\n\n if ($request->hasFile('image')) { \n $currentImg = $product->image;\n if ($currentImg) {\n Storage::delete('/public/' . $currentImg);\n }\n $image = $request->file('image'); \n $path = $image->store('images','public');\n $product->image = $path;\n };\n\n $product->save(); \n\n $product_promotions = $request->input('promotion');\n\n $product->promotions()->sync($product_promotions);\n\n return redirect()->route('admin.modify');\n }", "public static function updateImage($fileName, $imageId, $storage)\n {\n //Get image name and storage location for image\n $image = Image::where('id', '=', $imageId)->first();\n\n //Delete old image\n ResourceHandler::delete($image->name, $image->storage);\n\n //Store the new image\n $image->name = $fileName;\n $image->storage = $storage;\n\n $image->save();\n }", "public function update($request, $id)\n {\n $this->checkExits($id);\n $data = $request->except(['_method','_token','photo']);\n\n if($request->photo)\n {\n try {\n $this->UploadFile($request);\n } catch (\\Exception $e) {\n //if has exception , don't has action\n }\n if ($this->img !== '') {\n $data['img'] = $this->img;\n }\n }\n\n $this->object->update($data);\n\n }", "public function updateProduct($request, $product)\n {\n $product->update($request->except(['_token', '_method', 'image']));\n if ($request->hasFile('image')) {\n $image = $request->file('image');\n $imageName = time() . '.' . $request->file('image')->extension();\n // $img = Image::make('public/foo.jpg');\n\n $image_resize = Image::make($image->getRealPath());\n $image_resize->resize(500, 500);\n $image_resize->save(public_path('images/') . $imageName, 100);\n $product->gallery = $imageName;\n $product->save();\n }\n $product->getTags()->sync($request->input('tags'));\n }" ]
[ "0.7425105", "0.70612276", "0.70558053", "0.6896673", "0.6582159", "0.64491373", "0.6346954", "0.62114537", "0.6145042", "0.6119944", "0.61128503", "0.6099993", "0.6087866", "0.6052593", "0.6018941", "0.60060275", "0.59715486", "0.5946516", "0.59400934", "0.59377414", "0.5890722", "0.5860816", "0.5855127", "0.5855127", "0.58513457", "0.5815068", "0.5806887", "0.57525045", "0.57525045", "0.57337505", "0.5723295", "0.5714311", "0.5694472", "0.5691319", "0.56879413", "0.5669989", "0.56565005", "0.56505877", "0.5646085", "0.5636683", "0.5633498", "0.5633378", "0.5632906", "0.5628826", "0.56196684", "0.5609126", "0.5601397", "0.55944353", "0.5582592", "0.5581908", "0.55813426", "0.5575312", "0.55717176", "0.55661047", "0.55624634", "0.55614686", "0.55608666", "0.55599797", "0.55599797", "0.55599797", "0.55599797", "0.55599797", "0.55573726", "0.5556878", "0.5554201", "0.5553069", "0.55530256", "0.5543788", "0.55435944", "0.55412996", "0.55393505", "0.55368495", "0.5535236", "0.5534954", "0.55237365", "0.5520468", "0.55163723", "0.55125296", "0.5511168", "0.5508345", "0.55072427", "0.5502385", "0.5502337", "0.5501029", "0.54995877", "0.54979175", "0.54949397", "0.54949397", "0.54946727", "0.5494196", "0.54941916", "0.54925025", "0.5491807", "0.5483321", "0.5479606", "0.5479408", "0.5478678", "0.54667485", "0.5463411", "0.5460588", "0.5458525" ]
0.0
-1
Remove the specified resource from storage.
public function destroy($id) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete($resource){\n return $this->fetch($resource, self::DELETE);\n }", "public function destroy(Resource $resource)\n {\n //\n }", "public function removeResource($resourceID)\n\t\t{\n\t\t}", "public function unpublishResource(PersistentResource $resource)\n {\n $client = $this->getClient($this->name, $this->options);\n try {\n $client->delete(Path::fromString($this->getRelativePublicationPathAndFilename($resource)));\n } catch (FileDoesNotExistsException $exception) {\n }\n }", "public function deleteResource(&$resource) {\n\n if ($this->connector != null) {\n $this->logger->addDebug(\"Deleting Resource Node from Neo4J database\");\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id}}) detach delete a;\",\n [\n 'id' => $resource->getID()\n ]\n );\n $this->logger->addDebug(\"Updated neo4j to remove resource\");\n }\n\n }", "public function deleteShopifyResource() {\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'DELETE',\n ]);\n }", "public function deleteResource()\n {\n $database = new Database();\n $id = $this->_params['id'];\n $database->deleteResource($id);\n $this->_f3->reroute('/Admin');\n }", "protected function deleteResource($fileName, $storage)\n {\n if (Storage::disk($storage)->exists($fileName)) \n {\n return Storage::disk($storage)->delete($fileName);\n }\n }", "public function delete()\n {\n persistableCollection::getInstance($this->resourceName)->deleteObject($this);\n }", "public function remove()\n {\n $this->_getBackend()->remove($this->_id);\n }", "public function remove()\n {\n if (! ftruncate($this->fileHandle, 0)) {\n throw new StorageException(\"Could not truncate $this->path\");\n }\n if (! unlink($this->path)) {\n throw new StorageException(\"Could not delete $this->path\");\n }\n }", "public function delete()\n\t{\n\t\t$s3 = AWS::createClient('s3');\n $s3->deleteObject(\n array(\n 'Bucket' => $this->bucket,\n 'Key' => $this->location\n )\n );\n\t\tif($this->local_file && file_exists($this->local_file)) {\n\t\t\tunlink($this->local_file);\n\t\t}\n $this->local_file = null;\n\t}", "public function delete()\n\t{\n\t\tsfCore::db->query(\"DELETE FROM `swoosh_file_storage` WHERE `id`='%i';\", $this->id);\n\t\t$this->fFile->delete();\n\t}", "public function delete(): void\n {\n unlink($this->getPath());\n }", "public function delete()\n {\n if($this->exists())\n unlink($this->getPath());\n }", "public function remove($path);", "function deleteFileFromStorage($path)\n{\n unlink(public_path($path));\n}", "public function delete(): void\n {\n unlink($this->path);\n }", "private function destroyResource(DrydockResource $resource) {\n $blueprint = $resource->getBlueprint();\n $blueprint->destroyResource($resource);\n\n $resource\n ->setStatus(DrydockResourceStatus::STATUS_DESTROYED)\n ->save();\n }", "public static function delete($fileName, $storage)\n {\n if (Storage::disk($storage)->exists($fileName)) \n {\n return Storage::disk($storage)->delete($fileName);\n }\n }", "public function remove() {}", "public function remove() {}", "public function remove();", "public function remove();", "public function remove();", "public function remove();", "function delete_resource($resource_id, $page)\n\t{\n\t\t//get resource data\n\t\t$table = \"resource\";\n\t\t$where = \"resource_id = \".$resource_id;\n\t\t\n\t\t$this->db->where($where);\n\t\t$resource_query = $this->db->get($table);\n\t\t$resource_row = $resource_query->row();\n\t\t$resource_path = $this->resource_path;\n\t\t\n\t\t$image_name = $resource_row->resource_image_name;\n\t\t\n\t\t//delete any other uploaded image\n\t\t$this->file_model->delete_file($resource_path.\"\\\\\".$image_name, $this->resource_path);\n\t\t\n\t\t//delete any other uploaded thumbnail\n\t\t$this->file_model->delete_file($resource_path.\"\\\\thumbnail_\".$image_name, $this->resource_path);\n\t\t\n\t\tif($this->resource_model->delete_resource($resource_id))\n\t\t{\n\t\t\t$this->session->set_userdata('success_message', 'resource has been deleted');\n\t\t}\n\t\t\n\t\telse\n\t\t{\n\t\t\t$this->session->set_userdata('error_message', 'resource could not be deleted');\n\t\t}\n\t\tredirect('resource/'.$page);\n\t}", "public function deleteImage(){\n\n\n Storage::delete($this->image);\n }", "public function del(string $resource): bool|string\n {\n $json = false;\n $fs = unserialize($_SESSION['rfe'][$this->getRoot()], ['allowed_classes' => false]);\n if (array_key_exists($resource, $fs)) {\n // if $item has children, delete all children too\n if (array_key_exists('dir', $fs[$resource])) {\n foreach ($fs as $key => $file) {\n if (isset($file['parId']) && $file['parId'] == $resource) {\n unset($fs[$key]);\n }\n }\n }\n unset($fs[$resource]);\n $_SESSION['rfe'][$this->getRoot()] = serialize($fs);\n $json = '[{\"msg\": \"item deleted\"}]';\n }\n return $json;\n }", "public function destroy()\n\t{\n\t\treturn unlink(self::filepath($this->name));\n\t}", "public function destroy($id) {\n $book = Book::find($id);\n // return unlink(storage_path(\"public/featured_images/\".$book->featured_image));\n Storage::delete(\"public/featured_images/\" . $book->featured_image);\n if ($book->delete()) {\n return $book;\n }\n\n }", "public function destroy($id)\n {\n Storageplace::findOrFail($id)->delete();\n }", "public function destroyResourceImage(): void\n\t{\n\t\tif (isset($this->image)) {\n\t\t\t@imagedestroy($this->image->getImageResource());\n\t\t}\n\t}", "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 }", "public function deleteImage(){\n \tStorage::delete($this->image);\n }", "public function destroy()\n {\n $file=public_path(config('larapages.media.folder')).Input::all()['folder'].'/'.Input::all()['file'];\n if (!file_exists($file)) die('File not found '.$file);\n unlink($file);\n }", "public function delete() \r\n {\r\n if($this->exists())\r\n {\r\n unlink($this->fullName());\r\n }\r\n }", "public function destroy($id)\n {\n Myfile::find($id)->delete();\n }", "public function destroy($delete = false)\n {\n if (null !== $this->resource) {\n $this->resource->clear();\n $this->resource->destroy();\n }\n\n $this->resource = null;\n clearstatcache();\n\n // If the $delete flag is passed, delete the image file.\n if (($delete) && file_exists($this->name)) {\n unlink($this->name);\n }\n }", "public static function delete($path){\r\n $currentDir = getcwd();\r\n $storageSubPath = \"/../../\".STORAGE_PATH;\r\n $file = $currentDir . $storageSubPath . '/' . $path;\r\n\r\n unlink($file);\r\n }", "public function destroy(Storage $storage)\n {\n return redirect()->route('storages.index');\n }", "public function remove() {\n //Check if there are thumbs and delete files and db\n foreach ($this->thumbs()->get() as $thumb) {\n $thumb->remove();\n } \n //Delete the attachable itself only if is not default\n if (strpos($this->url, '/defaults/') === false) {\n Storage::disk('public')->delete($this->getPath());\n }\n parent::delete(); //Remove db record\n }", "public function removeFile($uri){\n return Storage::disk('public')->delete($uri);\n }", "public function destroy(Resource $resource)\n {\n if( $resource->delete() ){\n return Response(['status'=>'success','message'=>'Resource deleted']); \n } else {\n return Response(['status'=>'error', 'message'=>'Something went wrong']);\n }\n }", "public function delete($path);", "public function delete($path);", "public function destroy($id)\n { \n File::find($id)->remove();\n \n return redirect()->route('files.index');\n }", "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 }", "public function destroy($id)\n {\n $student = Student::where('id', $id)->first();\n // $path = $student->image;\n unlink($student->image);\n Student::findOrFail($id)->delete();\n return response('Deleted!');\n }", "public function destroy($id)\n {\n $icon = SliderIcon::find($id);\n if (Storage::disk('public')->exists(str_replace('storage', '', $icon->img))){\n Storage::disk('public')->delete(str_replace('storage', '', $icon->img));\n }\n $icon->delete();\n return redirect()->route('slider_icons.index')->with('success', 'Данные преимущества удалёны');\n }", "public function delete($path, $data = null);", "public function destroy($id)\n {\n $items=Items::find($id);\n // delete old file\n if ($items->photo) {\n $str=$items->photo;\n $pos = strpos($str,'/',1);\n $str = substr($str, $pos);\n $oldFile = storage_path('app\\public').$str;\n File::Delete($oldFile); \n }\n $items->delete();\n return redirect()->route('items.index');\n }", "public function destroy($id)\n {\n $carousel = Carousel::find($id);\n $image = $carousel->image;\n\n $basename ='img/carousel/' . basename($image);\n //Delete the file from disk\n if(file_exists($basename)){\n unlink($basename);\n }\n //With softDeletes, this is the way to permanently delete a record\n $carousel->delete();\n Session::flash('success','Product deleted permanently');\n return redirect()->back();\n }", "public function remove()\n {\n $fs = new Filesystem();\n $fs->remove($this->dir());\n }", "public static function destroy(int $resource_id)\n {\n try {\n $image_data = ListingImage::where('id', $resource_id)->first();\n self::delete_image($image_data->name);\n $delete = ListingImage::where('id', $resource_id)->delete();\n\n // activity()\n // ->causedBy(Auth::user()->id)\n // ->performedOn($delete)\n // ->withProperties(['id' => $delete->id])\n // ->log('listing image deleted');\n return response()->json(['status'=> 'ok', 'msg'=> 'Data deleted successfully']);\n } catch (Exception $e) {\n $e->getMessage();\n }\n }", "public function destroy(Storage $storage)\n {\n $this->storage->destroy($storage);\n\n return redirect()->route('admin.product.storage.index')\n ->withSuccess(trans('core::core.messages.resource deleted', ['name' => trans('product::storages.title.storages')]));\n }", "public function del($path){\n\t\treturn $this->remove($path);\n\t}", "public function destroy($id)\n {\n //\n $product = Product::findOrFail($id);\n $product->delete();\n if($product->img != 'product-default.png'){\n Storage::delete(\"public/uploads/\".$product->img);\n // return 'deleted';\n }\n return redirect()->route('product.index'); \n }", "public function removeUpload()\n{\n if ($file = $this->getAbsolutePath()) {\n unlink($file); \n }\n}", "public function destroy($id)\n {\n $image = Images::withTrashed()->find($id);\n\n Storage::disk('uploads')->delete(\"social-media/$image->filename\");\n\n $image->tags()->detach();\n $image->detachMedia(config('constants.media_tags'));\n $image->forceDelete();\n\n return redirect()->back()->with('success', 'The image was successfully deleted');\n }", "public function destroyByResourceId($resource_id)\n {\n// $online_party = $this->onlinetrack->where('resource_id', $resource_id)->get()->first();\n// $online_party->status = \"offline\";\n// $online_party->save();\n// return $online_party;\n return $this->onlinetrack->where('resource_id', $resource_id)->delete();\n }", "public function revoke($resource, $permission = null);", "public function destroy($id)\n {\n $data=Image::find($id);\n $image = $data->img;\n\n\n $filepath= public_path('images/');\n $imagepath = $filepath.$image;\n\n //dd($old_image);\n if (file_exists($imagepath)) {\n @unlink($imagepath);\n }\n\n\n $data->delete();\n\n return redirect()->route('image.index');\n }", "function delete($path);", "public function removeItem(int $id)\n\t{\n\t\t$this->storage->remove($id);\n\t}", "public function destroy(File $file)\n {\n //\n $v = Storage::delete($file->path);\n \n }", "public function destroyResource($resource)\n {\n if (!is_object($resource)) {\n return false;\n }\n\n $resource_type = get_class($resource);\n $resource_id = $resource->getKey();\n\n return Role::where('resource_type', $resource_type)\n ->where('resource_id', $resource_id)\n ->delete();\n }", "public function remove($filePath){\n return Storage::delete($filePath);\n }", "public function remove(): void\n {\n $file = $this->getAbsolutePath();\n if (!is_file($file) || !file_exists($file)) {\n return;\n }\n\n unlink($file);\n }", "public function destroy(Request $request, Storage $storage)\n {\n $storage->delete();\n $request->session()->flash('alert-success', 'Запись успешно удалена!');\n return redirect()->route('storage.index');\n }", "public function remove(Storable $entity): Storable\n {\n $this->getRepository(get_class($entity))->remove($entity);\n $this->detach($entity);\n\n return $entity;\n }", "public function processDeletedResource(EntityResource $resource)\n {\n /** @var AuthorizationRepository $repository */\n $repository = $this->entityManager->getRepository('Edweld\\AclBundle\\Entity\\Authorization');\n\n $repository->removeAuthorizationsForResource($resource);\n }", "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 }", "public function remove($id);", "public function remove($id);", "public function deleted(Storage $storage)\n {\n //\n }", "public function destroy($id)\n {\n $data = Product::findOrFail($id);\n\n if(file_exists('uploads/product/'.$data->image1)){\n unlink('uploads/product/'.$data->image1);\n }\n\n if(file_exists('uploads/product/'.$data->image2)){\n unlink('uploads/product/'.$data->image2);\n }\n\n if(file_exists('uploads/product/'.$data->image3)){\n unlink('uploads/product/'.$data->image3);\n }\n $data->delete();\n }", "public function removeUpload()\n {\n $file = $this->getAbsolutePath();\n if ($file) {\n unlink($file);\n }\n }", "public function resources_delete($resource_id, Request $request) {\n if ($resource_id) {\n $resp = Resources::where('id', '=', $resource_id)->delete();\n if($resp){\n $msg = 'Resource has been deleted successfully.';\n $request->session()->flash('message', $msg);\n }\n }\n //return redirect()->route('admin-factor-list');\n return redirect()->to($_SERVER['HTTP_REFERER']);\n }", "public function delete()\n {\n try\n {\n $thumbnail = $this->getThumbnail();\n if($thumbnail)\n {\n $thumbnail->delete();\n }\n }\n catch(sfException $e){}\n \n // delete current file\n parent::delete();\n }", "function deleteResource($uuid){\n $data = callAPI(\"DELETE\",\"/urest/v1/resource/\".$uuid);\n return $data;\n}", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function remove_resource($idproject){\n\t\t\n\t\t// Load model and try to get project data\n\t\t$this->load->model('Projects_model', 'projects');\n\t\t\n\t\t// Update\n\t\t$this->projects->save_project(array(\"ext\" => \"\", \"vzaar_idvideo\" => \"0\", \"vzaar_processed\" => \"0\"), $idproject);\n\t}", "public function destroy($id){\n $file_data = Slider::findOrFail($id);\n File::delete(public_path('../storage/app/public/sliders/'.$file_data->path));\n $slider = Slider::destroy($id);\n return response()->json(null, 204);\n }", "public function delete()\n\t{\n\t\t@unlink($this->get_filepath());\n\t\t@unlink($this->get_filepath(true));\n\t\tparent::delete();\n\t}", "public function delete($resource_path, array $variables = array()) {\n return $this->call($resource_path, $variables, 'DELETE');\n }", "public function destroy($id)\n {\n //Find Slider With Id\n $slider = Slider::findOrFail($id);\n // Check If The Image Exist\n if(file_exists('uploads/slider/'.$slider->image)){\n\n unlink( 'uploads/slider/'.$slider->image);\n }\n $slider->delete();\n return redirect()->back()->with('success','Slider Successfully Deleted');\n }" ]
[ "0.6672584", "0.6659381", "0.6635911", "0.6632799", "0.6626075", "0.65424126", "0.65416265", "0.64648265", "0.62882507", "0.6175931", "0.6129922", "0.60893893", "0.6054415", "0.60428125", "0.60064924", "0.59337646", "0.5930772", "0.59199584", "0.5919811", "0.5904504", "0.5897263", "0.58962846", "0.58951396", "0.58951396", "0.58951396", "0.58951396", "0.5880124", "0.58690923", "0.5863659", "0.5809161", "0.57735413", "0.5760811", "0.5753559", "0.57492644", "0.5741712", "0.57334286", "0.5726379", "0.57144034", "0.57096", "0.5707689", "0.5705895", "0.5705634", "0.5703902", "0.5696585", "0.5684331", "0.5684331", "0.56780374", "0.5677111", "0.5657287", "0.5648262", "0.5648085", "0.5648012", "0.5640759", "0.5637738", "0.5629985", "0.5619264", "0.56167465", "0.5606877", "0.56021434", "0.5601949", "0.55992156", "0.5598557", "0.55897516", "0.5581397", "0.5566926", "0.5566796", "0.55642897", "0.55641", "0.5556583", "0.5556536", "0.5550097", "0.5543172", "0.55422723", "0.5540013", "0.5540013", "0.55371785", "0.55365825", "0.55300397", "0.552969", "0.55275744", "0.55272335", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.5525997", "0.5525624", "0.5523911", "0.5521122", "0.5517412" ]
0.0
-1
Reset quantity to all of departments of supplier what were not given to the method
public function resetQuantityNotIn(array $departments, Supplier $supplier, Shop $shop): int { $qb = $this->createQueryBuilder('d'); $IdsNotInExpr = $qb->expr()->notIn('d.id', ':departmentIds'); return (int) $qb->update() ->set('d.quantity', 0) ->where($IdsNotInExpr) ->andWhere('d.supplier = :supplier') ->andWhere('d.shop = :shop') ->setParameters( [ 'departmentIds' => $departments, 'supplier' => $supplier, 'shop' => $shop, ] ) ->getQuery() ->execute(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function reset()\n {\n $this->values[self::EQUIPMENTING_ITEM] = array();\n $this->values[self::HAVING_ITEM] = array();\n }", "public function recalc(){\n\t\tforeach($_SESSION['panier'] as $product_id => $quantity){\n\t\t\tif(isset($_POST['panier']['quantity'][$product_id])){\t\t\t\n\t\t\t\t$_SESSION['panier'][$product_id] = $_POST['panier']['quantity'][$product_id];\n\t\t\t}\n\t\t}\n\t}", "public function reset()\n {\n $this->values[self::_PER] = null;\n $this->values[self::_ITEMS] = array();\n }", "public function reset()\n {\n $this->values[self::_EXP] = null;\n $this->values[self::_MONEY] = null;\n $this->values[self::_ITEMS] = array();\n }", "public function reset()\n {\n $this->values[self::_AMOUNT] = null;\n $this->values[self::_REWARDS] = array();\n $this->values[self::_DAILYJOB] = null;\n }", "public function reset()\n {\n $this->values[self::_ITEMS] = array();\n $this->values[self::_GOLD] = null;\n $this->values[self::_SKILL_POINT] = null;\n }", "public function setEmptyProducts(){\n foreach ($this->products as $i => $product) {\n $counts = $product->variant->maxCounts;\n //print_R($product);\n $allCount=0;\n foreach ($counts as $count){\n $allCount = $allCount+$count->count;\n }\n if($allCount<=0 || $product->variant->status==0 || $product->product->status==0 ){\n $product->status=0;\n $product->save(true);\n }\n if($product->count > $allCount){\n $product->count = $allCount;\n $product->save(true);\n }\n if($product->count==0){\n\n //unset($this->products[$i]);\n //$product->status=0;\n //$product->save(true);\n $this->removeProduct($product->id);\n }\n }\n foreach ($this->emptyProducts as $i => $emptyProduct) {\n $emptyCounts = $emptyProduct->variant->maxCounts;\n $emptyAllCount=0;\n foreach ($emptyCounts as $emptyCount){\n $emptyAllCount = $emptyAllCount+$emptyCount->count;\n }\n if($emptyAllCount>0 && $emptyProduct->variant->status==1 && $emptyProduct->product->status==1){\n $emptyProduct->status=1;\n $emptyProduct->save(true);\n }\n }\n }", "public function reset()\n {\n $this->cartItems = [];\n }", "public static function __clearSetArray(){\r\n self::$_units = array();\r\n self::$_totalGrade = array();\r\n self::$_totalUnitsFail = array();\r\n self::$_totalUnitsPass = array();\r\n self::$_remarks = array();\r\n }", "public function reset()\n {\n $this->values[self::_ITEMS] = array();\n $this->values[self::_RAID_ID] = null;\n $this->values[self::_APPLY_ITEM_ID] = null;\n $this->values[self::_RANK] = null;\n }", "public function reset()\n {\n $this->values[self::product_id] = null;\n $this->values[self::product_num] = null;\n $this->values[self::deal_price] = null;\n $this->values[self::new_user_price] = null;\n }", "public function reset()\n {\n $this->values[self::sku_arr] = array();\n $this->values[self::pagination] = null;\n }", "public function reset()\n {\n $this->values[self::_ITEM_IDS] = array();\n $this->values[self::_NEW_HEROES] = array();\n $this->values[self::_SMASH_IDX] = array();\n }", "public function reset()\n {\n $this->values[self::_MONEY] = null;\n $this->values[self::_RMB] = null;\n $this->values[self::_HEROES] = array();\n $this->values[self::_ITEMS] = array();\n }", "public function refactorBasedonItems()\n {\n foreach ($this->quote->cabinets AS $cabinet)\n {\n if ($cabinet->wood_xml)\n {\n $woods = self::returnWoodArray($cabinet);\n foreach ($woods AS $wood)\n {\n $this->cabItems += $wood['qty'];\n $this->instItems += $wood['qty'];\n }\n }\n }\n\n /*\n if ($this->cabItems < 30)\n {\n $this->cabItems = 30;\n }\n\n if ($this->instItems < 30 && $this->quote->type != 'Cabinet Small Job')\n {\n $this->instItems = 30;\n }\n\n\n if ($this->instItems > 35 && $this->instItems < 40)\n {\n $this->instItems = 40;\n }\n\n // Start Staging Price Blocks.\n if ($this->cabItems > 30 && $this->cabItems < 40)\n {\n $this->cabItems = 40;\n }\n */\n\n // For Designer\n if ($this->quote->type == 'Full Kitchen' || $this->quote->type == 'Cabinet and Install')\n {\n if ($this->cabItems <= 35)\n {\n $this->forDesigner = $this->getSetting('dL35');\n }\n else\n {\n if ($this->cabItems > 35 && $this->cabItems <= 55)\n {\n $this->forDesigner = $this->getSetting('dG35L55');\n }\n else\n {\n if ($this->cabItems > 55 && $this->cabItems <= 65)\n {\n $this->forDesigner = $this->getSetting('dG55L65');\n }\n else\n {\n if ($this->cabItems > 65 && $this->cabItems <= 75)\n {\n $this->forDesigner = $this->getSetting('dG65L75');\n }\n else\n {\n if ($this->cabItems > 75 && $this->cabItems <= 85)\n {\n $this->forDesigner = $this->getSetting('dG75L85');\n }\n else\n {\n if ($this->cabItems > 85 && $this->cabItems <= 94)\n {\n $this->forDesigner = $this->getSetting('dG85L94');\n }\n else\n {\n if ($this->cabItems > 94 && $this->cabItems <= 110)\n {\n $this->forDesigner = $this->getSetting('dG94L110');\n }\n else\n {\n if ($this->cabItems > 110)\n {\n $this->forDesigner = $this->getSetting('dG110');\n }\n }\n }\n }\n }\n }\n }\n }\n\n }\n else\n {\n if ($this->quote->type == 'Cabinet Small Job' || $this->quote->type == 'Builder')\n {\n $this->forDesigner = 250;\n }\n }\n\n // ----------------------- Quote Type Specific values\n\n // For Frugal + on Quote and remove plumber and electrician rates.\n if ($this->quote->type == 'Cabinet Only')\n {\n foreach ($this->quote->cabinets AS $cabinet)\n {\n if (!$cabinet->cabinet || !$cabinet->cabinet->vendor)\n {\n echo \\BS::alert(\"danger\", \"Unable To Determine Cabinets\",\n \"Cabinet type has not been selected! Unable to figure multiplier.\");\n return;\n }\n $add = ($cabinet->price * $cabinet->cabinet->vendor->multiplier) * .40;\n $this->forFrugal += $add; // Frugal gets 40% of the cabprice\n $this->setDebug(\"40% of {$cabinet->cabinet->frugal_name} to Frugal\", $add);\n $amt = ($cabinet->measure) ? 500 : 250;\n $this->forDesigner += $amt;\n $this->setDebug(\"Field Measure for Designer (Y=500/N=250)\", $amt);\n $this->forFrugal += 250; // for cabinet buildup.\n $this->setDebug(\"Frugal got $250 for Buildup\", 250);\n switch ($cabinet->location)\n {\n case 'North':\n $this->forFrugal += 300;\n $this->setDebug(\"Delivery North\", 300);\n break;\n case 'South':\n $this->forFrugal += 200;\n $this->setDebug(\"Delivery South\", 200);\n break;\n default:\n $this->forFrugal += 500;\n $this->setDebug(\"Further than 50m\", 500);\n break;\n }\n } // fe\n }\n else\n {\n if ($this->quote->type == 'Granite Only')\n {\n $this->forInstaller = 0;\n $this->forPlumber = 350;\n $this->forElectrician = 0;\n //$this->appElectrician = 0 ;\n //$this->forDesigner = 0;\n }\n else\n {\n if ($this->quote->type == \"Cabinet and Install\" || $this->quote->type == 'Builder')\n {\n if ($this->quote->type == 'Cabinet and Install')\n {\n foreach ($this->quote->cabinets AS $cabinet)\n {\n $add = ($cabinet->price * $cabinet->cabinet->vendor->multiplier) * .40;\n $this->forFrugal += $add; // Frugal gets 40% of the cabprice\n $this->setDebug(\"40% of {$cabinet->cabinet->frugal_name} to Frugal\", $add);\n }\n\n $this->forInstaller += $this->instItems * 20; // get 20 per installable item not attach\n $this->forFrugal += 250; // For delivery\n $this->forFrugal += 250; // for cabinet buildup.\n $this->forFrugal += $this->instItems * 10; // Cabinet + Install gets $10 for frugal.\n $this->forFrugal += $this->attCount * 30; // Attachment Count.\n } // If it's cabinet install\n else\n {\n if ($this->instItems < 40)\n {\n $this->forInstaller += 500;\n }\n else\n {\n $remainder = $this->instItems - 40;\n $this->forInstaller += 500;\n $this->forInstaller += $remainder * 10;\n } // more than 40\n } // If builder\n } // if cabinet and install or builder\n else\n {\n if ($this->cabItems <= 35)\n {\n $this->forFrugal += $this->getSetting('fL35');\n }\n else\n {\n if ($this->cabItems > 35 && $this->cabItems <= 55)\n {\n $this->forFrugal += $this->getSetting('fG35L55');\n }\n else\n {\n if ($this->cabItems > 55 && $this->cabItems <= 65)\n {\n $this->forFrugal += $this->getSetting('fG55L65');\n }\n else\n {\n if ($this->cabItems > 65 && $this->cabItems <= 75)\n {\n $this->forFrugal += $this->getSetting('fG65L75');\n }\n else\n {\n if ($this->cabItems > 75 && $this->cabItems <= 85)\n {\n $this->forFrugal += $this->getSetting('fG75L85');\n }\n else\n {\n if ($this->cabItems > 85 && $this->cabItems <= 94)\n {\n $this->forFrugal += $this->getSetting('fG85L94');\n }\n else\n {\n if ($this->cabItems > 94 && $this->cabItems <= 110)\n {\n $this->forFrugal += $this->getSetting('fG94L110');\n }\n else\n {\n if ($this->cabItems > 110)\n {\n $this->forFrugal += $this->getSetting('fG110');\n }\n }\n }\n }\n }\n }\n }\n }\n\n $this->forFrugal += ($this->attCount * 20);\n $this->setDebug(\"Frugal gets Attachment count * 20\", $this->attCount * 20);\n $this->forInstaller += ($this->instItems * 20);\n $this->setDebug(\"Installer gets Cabinet Installable ($this->instItems * 20)\",\n $this->instItems * 20);\n }\n }\n }\n\n $this->forElectrician += $this->appElectrician;\n $this->forPlumber += $this->appPlumber;\n $this->forInstaller += $this->accInstaller;\n $this->forFrugal += $this->accFrugal;\n // Additional - LED Lighting let's add this.\n $this->forDesigner += $this->designerLED;\n $this->forFrugal += $this->frugalLED;\n $this->forElectrician += $this->electricianLED;\n\n // No electrician or plumber if cabinet + install\n // For Frugal + on Quote and remove plumber and electrician rates.\n if ($this->quote->type == 'Cabinet and Install' || $this->quote->type == 'Cabinet Only')\n {\n $this->forPlumber = 0;\n $this->forElectrician = 0;\n }\n if ($this->quote->type == 'Cabinet Only')\n {\n $this->forInstaller = 0;\n }\n\n if ($this->quote->type == 'Granite Only')\n {\n $this->forElectrician = 0;\n }\n /*\n if ($this->quote->type == 'Cabinet Small Job')\n {\n if (!isset($this->gPrice))\n {\n $this->gPrice = 0;\n }\n\n $gMarkup = $this->gPrice * .2;\n $this->forFrugal += $gMarkup;\n\n $this->setDebug(\"Small Job Marks up Granite 20%\", $gMarkup);\n $sTotal = 0;\n if (isset($this->meta['sinks']))\n {\n foreach ($this->meta['sinks'] AS $sink)\n {\n if (!$sink)\n {\n continue;\n }\n $sink = Sink::find($sink);\n $sTotal += $sink->price;\n }\n $sMarkup = $sTotal * .2;\n $this->setDebug(\"Small Job Marks up Sink Costs 20%\", $sMarkup);\n $this->forFrugal += $sMarkup;\n }\n }\n */\n if ($this->quote->type == 'Cabinet Small Job')\n {\n $markup = $this->total * .4;\n $this->setDebug(\"Applying 40% Markup to Frugal for Cabinet Small Job\", $markup);\n $this->forFrugal = $markup;\n }\n\n // Add for installer to total\n $this->total += $this->forInstaller;\n $this->setDebug(\"Applying Installer Payouts to Quote\", $this->forInstaller);\n $this->total += $this->forElectrician;\n $this->setDebug(\"Applying Electrician Payouts to Quote\", $this->forElectrician);\n $this->total += $this->forPlumber;\n $this->setDebug(\"Applying Plumber Payouts to Quote\", $this->forPlumber);\n if ($this->quote->type != 'Builder')\n {\n $this->total += $this->forFrugal;\n $this->setDebug(\"Applying Frugal Payouts to Quote\", $this->forFrugal);\n }\n $this->total += $this->forDesigner;\n $this->setDebug(\"Applying Designer Payouts to Quote\", $this->forDesigner);\n if ($this->quote->type == 'Builder')\n {\n if ($this->quote->markup == 0)\n {\n $this->quote->markup = 30;\n $this->quote->save();\n }\n\n $perc = $this->quote->markup / 100;\n $markup = $this->total * $perc;\n $this->total += $markup;\n $this->setDebug(\"Applying {$this->quote->markup}% to Total For Builder Markup\", $markup);\n $this->forFrugal = $markup;\n }\n\n }", "public function reset()\n {\n $this->values[self::_ID] = null;\n $this->values[self::_AMOUNT] = null;\n $this->values[self::_TYPE] = null;\n $this->values[self::_PRICE] = null;\n $this->values[self::_IS_SALE] = null;\n }", "public function setQty($qty);", "public function reset()\n {\n $this->values[self::_MONEY] = null;\n $this->values[self::_DIAMOND] = null;\n $this->values[self::_ITEMS] = array();\n $this->values[self::_HEROES] = array();\n $this->values[self::_MONTH_CARD] = null;\n }", "public function prepareForValidation(): void\n {\n $products = [];\n foreach ($this->products as $key => $product) {\n $products['products'][$key] = [\n 'id' => $product['id'],\n 'qty' => $product['qty'],\n 'product' => Product::find($product['id']),\n ];\n }\n\n $this->merge($products);\n }", "public function update(Request $request)\n {\n $this->validate($request, [\n\n 'supplier_id' => 'required',\n 'req_branch' => 'required',\n 'del_branch' => 'required',\n 'requested_by'=> 'required',\n \n ]);\n \n $po_number = $request->input('po_number');\n \n $order_quantity_old = $request->input('quantity_old');\n $order_product_id_array = $request->input('product_name');\n $order_quantity_array = $request->input('quantity');\n $order_price_min_array = $request->input('price_min');\n $order_price_max_array = $request->input('price_max');\n \n\n $form_data = array(\n 'supplier_id' => $request->supplier_id,\n 'req_branch' => $request->req_branch,\n 'del_branch' => $request->del_branch\n\n ); \n\n Purchase::whereId($po_number)->update($form_data);\n \n for($i = 0; $i < count($order_product_id_array); $i++){\n\n \n $form_order = array(\n 'product_id' => $order->product_id = $order_product_id_array[$i],\n 'quantity' => $order->quantity = $order_quantity_array[$i] \n );\n\n $order->quantity_old = $order_quantity_old[$i];\n $order->quantity = $order_quantity_array[$i];\n\n Order::where('po_number', $po_number)->where('product_id', $order_product_id_array[$i])->update($form_order);\n\n DB::table('products')->where('id', $order_product_id_array[$i])->increment('quantity', $order->quantity_old);\n DB::table('products')->where('id', $order_product_id_array[$i])->decrement('quantity', $order->quantity);\n }\n\n \n $data['suppliers'] = Supplier::all();\n $data['branches'] = Branch::all();\n $data['purchases'] = Purchase::orderBy('id', 'DESC')->get();\n return view('purchase.index', $data);\n }", "public function reset()\n {\n $this->values[self::_COMP] = array();\n }", "public function reset()\n {\n $this->values[self::_ITEM_ID] = null;\n $this->values[self::_NUM] = null;\n $this->values[self::_STATE] = null;\n $this->values[self::_APPLY_NUM] = null;\n $this->values[self::_ABLE_APP_COUNT] = null;\n }", "public function update(Request $request, $id)\n {\n $rules = [\n 'supplierId' => 'required',\n 'product' => 'required',\n 'qty.*' => 'required|integer|between:0,10000',\n ];\n $messages = [\n 'unique' => ':attribute already exists.',\n 'required' => 'The :attribute field is required.',\n 'max' => 'The :attribute field must be no longer than :max characters.',\n ];\n $niceNames = [\n 'supplierId' => 'Supplier',\n 'product' => 'Product',\n 'qty.*' => 'Quantity'\n ];\n $validator = Validator::make($request->all(),$rules,$messages);\n $validator->setAttributeNames($niceNames); \n if ($validator->fails()) {\n return Redirect::back()->withErrors($validator)->withInput();\n }\n else{\n try{\n DB::beginTransaction();\n $delivery = DeliveryHeader::findOrFail($id);\n $created = explode('/',$request->date); // MM[0] DD[1] YYYY[2] \n $finalCreated = \"$created[2]-$created[0]-$created[1]\";\n $delivery->update([\n 'supplierId' => $request->supplierId,\n 'dateMake' => $finalCreated\n ]);\n $products = $request->product;\n $qtys = $request->qty;\n $orders = $request->order;\n sort($orders);\n foreach($products as $key=>$product){\n $inventory = Inventory::where('productId',$product)->first();\n $detail = DeliveryDetail::where('deliveryId',$delivery->id)->where('productId',$product)->first();\n $inventory->decrement('quantity',$detail->quantity);\n $detail->update([\n 'deliveryId' => $delivery->id,\n 'productId' => $product,\n 'quantity' => $qtys[$key],\n ]);\n $inventory->increment('quantity', $qtys[$key]);\n if($inventory->quantity<0){\n $request->session()->flash('error', 'Insufficient inventory resources. Check your inventory status.');\n return Redirect::back()->withInput();\n }\n }\n foreach($orders as $order){\n foreach($products as $key=>$product){\n $detail = PurchaseDetail::where('purchaseId',''.$order)->where('productId',$product)->where('isActive',1)->first();\n $detail->update([\n 'delivered' => 0\n ]);\n if(!empty($detail)){\n $qty = $detail->quantity;\n $delivered = $detail->delivered;\n if($qty != $delivered){\n while($qty!=$delivered && $qtys[$key]!=0){\n $delivered++;\n $qtys[$key]--;\n }\n $detail->update([\n 'delivered' => $delivered\n ]);\n }\n }\n }\n $details = PurchaseDetail::where('purchaseId',''.$order)->where('isActive',1)->get();\n foreach($details as $detail){\n if($detail->quantity!=$detail->delivered){\n $delivery = false;\n }\n }\n if($delivery){\n PurchaseHeader::where('id',''.$order)->update(['isDelivered'=>1]);\n }\n }\n Audit::create([\n 'userId' => Auth::id(),\n 'name' => \"Update Delivery\",\n 'json' => json_encode($request->all())\n ]);\n DB::commit();\n }catch(\\Illuminate\\Database\\QueryException $e){\n DB::rollBack();\n $errMess = $e->getMessage();\n return Redirect::back()->withErrors($errMess);\n }\n $request->session()->flash('success', 'Successfully updated.');\n return Redirect('delivery');\n }\n }", "public function dept_renew_empl_dept(){\n $uid = isset($_REQUEST['uid'])?$_REQUEST['uid']:null;\n $uid = intval($uid);\n $one_info = D('TbHrCard')->findOneByEmplId($uid);\n $tmpData = D('TbHrEmpl')->fmtDeptByEmpl($one_info);\n $tmp_dept_id = null;\n $tmp_dept_id = $tmp_dept_id?$tmp_dept_id:(empty($tmpData['format_DEPT_GROUP_id'])?null:$tmpData['format_DEPT_GROUP_id']);\n $tmp_dept_id = $tmp_dept_id?$tmp_dept_id:(empty($tmpData['format_DEPT_NAME_id'])?null:$tmpData['format_DEPT_NAME_id']);\n // keep\n $tmp = D('TbHrDept')->addEmployeeToDepartment($uid,$tmp_dept_id);\n $data['uid'] = $uid;\n $data['dept_id'] = $tmp_dept_id;\n $data['status'] = $tmp;\n $outputs = array();\n $outputs['code'] = 200;\n $outputs['data'] = $data;\n echo json_encode($outputs);\n die();\n }", "public function reset() {\n $this->values[self::TOTAL] = null;\n $this->values[self::COUNT] = null;\n $this->values[self::TOTAL_BUSLINE_NUM] = null;\n $this->values[self::AREAID] = null;\n }", "public function fillTableDepartments(): void\n {\n $listOfDepartments = $this->department->getList();\n for ($i = 0; $i < $this->department->getCount(); $i++) {\n $query = $this->connection->prepare('INSERT INTO departments (name) VALUES ( :listOfDepartments )');\n $query->bindParam(':listOfDepartments', $listOfDepartments[$i], PDO::PARAM_STR, 55);\n $query->execute();\n }\n }", "public function reset()\n {\n $this->values[self::_VITALITY] = null;\n }", "public function store (Request $request){\n $supplier_id = DB::table('supplier')\n ->where('supplier_name', $request->supplier_name)\n ->get();\n foreach ($supplier_id as $id) {\n $current_supplier = $id->supplier_id;\n }\n $data = array();\n $data['supplier_id'] = $current_supplier;\n $data['code'] = $request->supplier_code;\n $data['purchase_date'] = $request->purchase_date;\n $data['purchase_no'] = $request->purchase_no;\n $lastId = DB::table('purchases')->insertGetId(['purchase_date'=>$request->purchase_date,'supplier_id'=>$current_supplier,'purchase_no'=>$request->purchase_no]);\n \n $itemsid = $request->id;\n $itemscode = $request->code;\n $quantities = $request->quantity;\n $units = $request->unit;\n\n foreach($itemsid as $index => $id){\n $result = DB::table('items')\n ->where('item_id',$id)\n ->first();\n }\n\n $baseUnit = array();\n foreach($units as $index => $unit_id ){\n if( $unit_id == $result->unit_id){\n $baseUnit[$index] = $quantities[$index];\n }\n else{\n $baseUnit[$index] = $quantities[$index]/$result->to_unit;\n \n }\n }\n\n $numbers = count( $quantities);\n if($lastId){\n if($numbers>0){\n for($i=0; $i<$numbers; $i++){\n $purchasesData = array(\n array('id' => $lastId,\n 'item_id' => $itemsid[$i],\n 'code'=>$itemscode[$i],\n 'quantity' => $quantities[$i],\n 'unit' => $units[$i])\n );\n DB::table('purchases_item')->insert( $purchasesData );\n }\n }\n }\n Session::put('success','purchase added succefully');\n return Redirect::to('/add-purchase');\n }", "function deleteSupplier()\n {\n }", "public function reset()\n {\n $this->values[self::ITEM] = null;\n $this->values[self::COUNT] = null;\n $this->values[self::USE_TYPE] = null;\n $this->values[self::TARGET] = null;\n $this->values[self::NAME] = null;\n $this->values[self::PARAMS_INT] = array();\n }", "public function remove_meal_deals() {\n \n foreach($this->category_price as $category_prices) {\n \n if($category_prices['category'] == 'sandwich' AND $this->sandwich_counter <= $this->meal_deal_count) {\n $this->sandwich_counter += 1;\n }\n elseif($category_prices['category'] == 'snack' AND $this->snack_counter <= $this->meal_deal_count){\n $this->snack_counter += 1;\n }\n elseif($category_prices['category'] == 'drink' AND $this->drink_counter <= $this->meal_deal_count){\n $this->drink_counter += 1;\n }\n else {\n \n $this->remaining_category_price[$this->qty_counter] = $category_prices;\n $this->qty_counter += 1;\n \n }\n } \n }", "public function clear()\n {\n if (null !== $this->aTblEra) {\n $this->aTblEra->removeTblProdInfo($this);\n }\n if (null !== $this->aTblGeneral) {\n $this->aTblGeneral->removeTblProdInfo($this);\n }\n if (null !== $this->aTblMenus) {\n $this->aTblMenus->removeTblProdInfo($this);\n }\n if (null !== $this->aTblProdPhotos) {\n $this->aTblProdPhotos->removeTblProdInfo($this);\n }\n if (null !== $this->aTblProdPrices) {\n $this->aTblProdPrices->removeTblProdInfo($this);\n }\n if (null !== $this->aTblProdPricing) {\n $this->aTblProdPricing->removeTblProdInfo($this);\n }\n if (null !== $this->aTblProdSmaller) {\n $this->aTblProdSmaller->removeTblProdInfo($this);\n }\n if (null !== $this->aTblShippingCategories) {\n $this->aTblShippingCategories->removeTblProdInfo($this);\n }\n $this->prod_id = null;\n $this->prod_price_id = null;\n $this->prod_name = null;\n $this->prod_alt1 = null;\n $this->prod_alt2 = null;\n $this->prod_alt3 = null;\n $this->prod_alt4 = null;\n $this->prod_code = null;\n $this->prod_category = null;\n $this->prod_category_shipping = null;\n $this->prod_writeup = null;\n $this->prod_length = null;\n $this->prod_wingspan = null;\n $this->prod_height = null;\n $this->prod_scale = null;\n $this->prod_links = null;\n $this->prod_linkdescription = null;\n $this->prod_front = null;\n $this->prod_keywords = null;\n $this->prod_keywords_writeup = null;\n $this->prod_title = null;\n $this->prod_description = null;\n $this->prod_general = null;\n $this->prod_era = null;\n $this->prod_company = null;\n $this->prod_related = null;\n $this->prod_related_pa = null;\n $this->prod_related_m3 = null;\n $this->prod_related2 = null;\n $this->prod_saveas = null;\n $this->prod_aircraftreg = null;\n $this->mb = null;\n $this->pa = null;\n $this->m3 = null;\n $this->alreadyInSave = false;\n $this->clearAllReferences();\n $this->resetModified();\n $this->setNew(true);\n $this->setDeleted(false);\n }", "private function resetInputFields(){\n $this->nom = '';\n $this->departements_id = '';\n $this->arrondissement_id = '';\n }", "public function reset()\n {\n $this->values[self::_LOOT] = array();\n $this->values[self::_ITEMS] = array();\n $this->values[self::_SHOP] = null;\n $this->values[self::_SSHOP] = null;\n }", "public function clearPesquisas()\n\t{\n\t\t$this->collPesquisas = null; // important to set this to NULL since that means it is uninitialized\n\t}", "public function clearOrderHasArticless()\n {\n $this->collOrderHasArticless = null; // important to set this to NULL since that means it is uninitialized\n }", "public function reset()\n {\n $this->values[self::_GUILDS] = array();\n $this->values[self::_RESULT] = null;\n $this->values[self::_CREATE_COST] = null;\n }", "abstract protected function reset_values();", "public function update(Request $request, $id)\n {\n $purchases = Purchase::findOrFail($id);\n $this->validate($request, [\n 'supplier_name' => 'required',\n 'payment_status' => 'required',\n 'net_loading_in_litres' => 'required',\n 'total_cost' => 'required|numeric',\n 'amount_paid' => 'required|numeric',\n 'balance' => 'required|numeric',\n 'payment_mode' => 'required',\n 'transaction_code' => 'required',\n 'transaction_date' => 'required'\n ]);\n $input=$request->all();\n \n $supplierName = Inventory::where(\"supplier_number\", \"=\", $request->supplier_name_from_inventory)->get();\n\n $supplierName=\"\";\n $transRefNo = \"SupplierPayment-\" . $id;\n $transaction = \\App\\Transaction::where('trn_ref_no', '=', $transRefNo)\n ->get();\n $trans= $transaction->toArray();\n $transaction = Transaction::findOrFail($trans[0]['id']);\n $transaction->delete();\n\n $transRefNo = \"SupplierPayment-(\" . $id.\")\";\n $transaction = \\App\\Transaction::where('trn_ref_no', '=', $transRefNo)\n ->get();\n $trans = $transaction->toArray();\n $transaction = Transaction::findOrFail($trans[0]['id']);\n $transaction->delete();\n\n\n $transaction = new Transaction();\n $transaction->trn_ref_no = \"SupplierPayment\" . \"-\" . $id;\n $transaction->transaction_date = $request->transaction_date;\n $transaction->product_type = $request->product_type;\n $transaction->liters = 0;\n $transaction->total_cost = 0;\n $transaction->amount_paid = $request->amount_paid;\n $transaction->balance = $request->balance;\n $transaction->narration = \"Payment to supplier\";\n\n $transaction->transaction_code = $request->transaction_code;\n $transaction->customer_name = \"\";\n $transaction->payment_status = $request->payment_status;\n $transaction->shortages = $request->shortages_in_litres;\n $transaction->unit_price = $request->price_per_litre;\n $transaction->posted_from = \"SupplierPayment\";\n $supplier = \"\";\n $transaction->supplier_name = $supplierName;\n $transaction->payment_mode = $request->payment_mode;\n $transaction->bank_name = $request->bank_name;\n $transaction->cheque_number = $request->cheque_number;\n $transaction->payment_status = $request->payment_status;\n $transaction->account_number = $request->account_number;\n $transaction->save();\n\n\n $transaction = new Transaction();\n $transaction->trn_ref_no = \"SupplierPayment\" . \"-(\" . $id . \")\";\n $transaction->transaction_date = $request->transaction_date;\n $transaction->product_type = $request->product_type;\n $transaction->liters = 0;\n $transaction->total_cost = 0;\n $transaction->amount_paid = $request->total_shortage;\n $transaction->balance = 0;\n $transaction->narration = \"shortage\";\n $transaction->supplier_rate = $request->unit_price;\n $transaction->shortages = $request->shortages_in_litres;\n $transaction->transaction_code = $request->transaction_code;\n $transaction->customer_name = \"\";\n $transaction->payment_status = $request->payment_status;\n $transaction->shortages = $request->shortages_in_litres;\n $transaction->unit_price = $request->price_per_litre;\n $transaction->posted_from = \"SupplierPayment\";\n $supplier = \"\";\n $transaction->supplier_name = $supplierName;\n $transaction->payment_mode = $request->payment_mode;\n $transaction->bank_name = $request->bank_name;\n $transaction->cheque_number = $request->cheque_number;\n $transaction->payment_status = $request->payment_status;\n $transaction->account_number = $request->account_number;\n $transaction->save();\n\n\n \n $purchases->update($input);\n\n\n \n Session::flash('flash_message', 'Record successfully Updated!');\n\n return redirect()->back();\n }", "public function _updateOnHoldAndAvailableQty($product_id,$qtyShipped){\n\t\t$warehouseOr = Mage::getModel('inventoryplus/warehouse_order')->getCollection()\n ->addFieldToFilter('order_id', $this->_orderOb->getId())\n ->addFieldToFilter('product_id', $product_id)\n\t\t\t\t\t\t\t->setPageSize(1)\n\t\t\t\t\t\t\t->setCurPage(1)\n ->getFirstItem();\n\t\tif($warehouseOr->getId()){\t\t\t\t\t\n\t\t\t$OnHoldQty = $warehouseOr->getQty() - $qtyShipped;\n\t\t\t$warehouseId = $warehouseOr->getWarehouseId();\n\t\t\tif ($OnHoldQty >= 0) {\n\t\t\t\t$warehouseOr->setQty($OnHoldQty)\n\t\t\t\t\t\t->save();\n\t\t\t} else {\n\t\t\t\t$warehouseOr->setQty(0)\n\t\t\t\t\t\t->save();\n\t\t\t}\n\t\t\t$warehousePr = Mage::getModel('inventoryplus/warehouse_product')->getCollection()\n ->addFieldToFilter('warehouse_id', $warehouseId)\n ->addFieldToFilter('product_id', $product_id)\n\t\t\t\t\t\t\t->setPageSize(1)\n\t\t\t\t\t\t\t->setCurPage(1)\n ->getFirstItem();\n\t\t\tif($warehousePr->getId()){\n\t\t\t\t$newAvailQty = $warehousePr->getAvailableQty()\t+ $qtyShipped;\n\t\t\t\t$warehousePr->setAvailableQty($newAvailQty);\n\t\t\t\t$warehousePr->save();\n\t\t\t}\n\t\t}\n\t}", "public function calculateQtyToShip();", "public function dept_renew_empl_dept_old(){\n $outputs = array();\n $maxid = isset($_REQUEST['maxid'])?$_REQUEST['maxid']:null;\n $maxid = intval($maxid);\n $max = 10000;\n $i = 0;\n if($maxid>0){\n while($maxid>0){\n $uid = intval($maxid);\n $one_info = D('TbHrCard')->findOneByEmplId($uid);\n $tmpData = D('TbHrEmpl')->fmtDeptByEmpl($one_info);\n $tmp_dept_id = null;\n $tmp_dept_id = $tmp_dept_id?$tmp_dept_id:(empty($tmpData['format_DEPT_GROUP_id'])?null:$tmpData['format_DEPT_GROUP_id']);\n $tmp_dept_id = $tmp_dept_id?$tmp_dept_id:(empty($tmpData['format_DEPT_NAME_id'])?null:$tmpData['format_DEPT_NAME_id']);\n // keep\n $tmp = D('TbHrDept')->addEmployeeToDepartment($uid,$tmp_dept_id);\n $data['uid'] = $uid;\n $data['dept_id'] = $tmp_dept_id;\n $data['status'] = $tmp;\n\n $outputs['data'][] = $data;\n\n $maxid--;\n $outputs['i'] = $i;\n // check max\n ++$i;\n if($i>$max){\n break(1);\n }\n }\n }\n return ($outputs);\n }", "public function reset()\n {\n foreach (self::AvailableCoins as $aCoin) {\n \t $sProperty = $aCoin['name'];\n $this->$sProperty = 0;\n }\n }", "public function reset_tableaux() {\n\t\treturn $this->setArbreMoniteurs ( array () )\n\t\t\t->setArbreGroupes ( array () )\n\t\t\t->setArbreMachines ( array () )\n\t\t\t->setDependance ( array () )\n\t\t\t->setGroupeNumbers ( array () );\n\t}", "public function reset()\n {\n $this->values[self::_TYPE] = null;\n $this->values[self::_ID] = null;\n $this->values[self::_AMOUNT] = null;\n }", "public function reset()\n {\n $this->values[self::_TYPE] = null;\n $this->values[self::_ID] = null;\n $this->values[self::_AMOUNT] = null;\n }", "public function reset()\n {\n $this->values[self::_TYPE] = null;\n $this->values[self::_AMOUNT] = null;\n $this->values[self::_STONE_ID] = null;\n $this->values[self::_STONE_AMOUNT] = null;\n }", "public function dept_move_default_in_charge(){\n $m_empl_dept = M('hr_empl_dept', 'tb_');\n $list = $m_empl_dept->field ('*')\n ->where(array('TYPE'=>TbHrDeptModel::Type_ed_incharge,'TYPE_LEVEL'=>TbHrDeptModel::Type_level_0,))\n ->order(array('ID'=>'desc',))\n ->select();\n $count_all = count($list);\n $count_del = 0;\n $count_edit = 0;\n\n foreach($list as $key=>$val){\n $empl_id = $val['ID2'];\n $dept_id = $val['ID1'];\n // check exist\n $one = $m_empl_dept->where(\n array(\n 'ID2'=>$empl_id,\n 'ID1'=>$dept_id,\n 'TYPE'=>TbHrDeptModel::Type_ed_incharge,\n 'TYPE_LEVEL'=>TbHrDeptModel::Type_level_2,\n )\n )->find();\n\n // del or edit\n if($one){\n // del - del old data\n $where_data = array(\n 'ID'=>$val['ID'],\n );\n $status = DataMain::dbDelByNameData($m_empl_dept,$where_data);\n ++$count_del;\n }else{\n // edit - update 0 to 2\n $edit_data = array(\n 'TYPE_LEVEL'=>TbHrDeptModel::Type_level_2,\n );\n $status = $m_empl_dept->where(array('ID'=>$val['ID']))->data($edit_data)->save();\n ++$count_edit;\n }\n // var_dump($val,$one,$status); die();\n // die();\n }\n $ret = array();\n $ret['count_all'] = $count_all;\n $ret['count_del'] = $count_del;\n $ret['count_edit'] = $count_edit;\n return $ret;\n }", "public function reset()\n {\n $this->values[self::_RESULT] = null;\n $this->values[self::_ITEMS] = array();\n $this->values[self::_HERO] = array();\n $this->values[self::_DIAMOND] = null;\n }", "public function reset()\n {\n $this->values[self::_SUMMARY] = null;\n $this->values[self::_MEMBERS] = array();\n $this->values[self::_APPLIERS] = array();\n $this->values[self::_VITALITY] = null;\n $this->values[self::_SELF_VITALITY] = null;\n $this->values[self::_LEFT_DISTRIBUTE_TIME] = null;\n }", "public function reset() {\n $this->values[self::FROM_TIME] = null;\n $this->values[self::PRICE] = array();\n $this->values[self::MILEAGE] = null;\n $this->values[self::GEO] = null;\n }", "public function tearDown(){\n unset($this->user);\n unset($this->household);\n unset($this->unit);\n unset($this->qty);\n unset($this->category);\n unset($this->food);\n unset($this->ingredient);\n unset($this->recipe);\n unset($this->meal);\n unset($this->groceryItem);\n\n unset($this->userFty);\n unset($this->householdFty);\n unset($this->unitFty);\n unset($this->qtyFty);\n unset($this->categoryFty);\n unset($this->foodFty);\n unset($this->ingredientFty);\n unset($this->recipeFty);\n unset($this->mealFty);\n unset($this->groceryItemFty);\n }", "public function reset()\n {\n $this->values[self::_RAID_ID] = null;\n $this->values[self::_DPS_LIST] = array();\n $this->values[self::_ITEM_INFO] = array();\n }", "public function updateProductAdvance(Request $request){\n $productId = $request->productId;\n if (isset($productId)) {\n $product = Product::find($productId);\n $proSection = ProductSections::where('productId',$productId)->first();\n\n if ($request->section) {\n $section = implode(',', $request->section);\n $product->update( [\n 'productSection' => @$section,\n \n ]);\n }\n\n if (@$proSection->productId) {\n $productSection = ProductSections::find($proSection->id);\n\n if ($request->related_product) {\n $allproduct = implode(',', $request->related_product);\n $productSection->update( [\n 'related_product' => $allproduct,\n ]);\n }\n\n if ($request->customerGroupId != '') {\n $customerGroupId = implode(',', @$request->customerGroupId); \n }\n $productSection->update( [\n 'free_shipping' => $request->free_shipping,\n 'pre_order' => $request->pre_order,\n 'pre_orderDuration' => $request->pre_orderDuration, \n 'customerGroupId' => @$customerGroupId, \n 'customerGroupPrice' => @$request->customerGroupPrice, \n ]);\n \n if ($request->hotDeal && $request->hotDiscount && $request->hotDate) {\n $productSection->update( [\n 'hotDiscount' => $request->hotDiscount,\n 'hotDate' => $request->hotDate,\n /* 'specialDiscount' => '',\n 'specialDate' => '',*/\n ]);\n }else{\n $productSection->update( [\n 'hotDiscount' => '',\n 'hotDate' => '',\n \n ]);\n }\n\n if ($request->specialDeal && $request->specialDiscount && $request->specialDate) {\n $productSection->update( [\n /* 'hotDiscount' => '',\n 'hotDate' => '',*/\n 'specialDiscount' => $request->specialDiscount,\n 'specialDate' => $request->specialDate,\n\n ]);\n\n }else{\n $productSection->update( [\n 'specialDiscount' => '',\n 'specialDate' => '',\n\n ]);\n }\n\n $countGroup = count($request->customerGroupPrice);\n DB::table('customer_group_sections')->where('productId', $productId)->delete();\n if($request->customerGroupPrice){\n $postData = [];\n for ($i=0; $i <$countGroup ; $i++) { \n $postData[] = [\n 'productId' => $productId,\n 'customerGroupId' => $request->customerGroupId[$i], \n 'customerGroupPrice' => $request->customerGroupPrice[$i]\n ];\n }\n \n CustomerGroupSections::insert($postData);\n }\n\n return redirect(route('product.edit',$productId))->with('msg','Advance Information Save Successfully')->withInput();\n }else{\n if ($request->related_product) {\n $allproduct = implode(',', $request->related_product);\n }\n $productSections = ProductSections::create( [\n 'productId' => $productId,\n 'hotDiscount' => $request->hotDiscount,\n 'hotDate' => $request->hotDate,\n 'specialDiscount' => $request->specialDiscount,\n 'specialDate' => $request->specialDate,\n 'related_product' => @$allproduct,\n ]);\n \n return redirect(route('product.edit',$productId))->with('msg','Advance Information Save Successfully')->withInput();\n }\n }else{\n return redirect(route('product.edit',$productId))->with('error_msg','Please Complete Basic Information ')->withInput(); \n } \n }", "protected function buildQtyItemsFields(): void\n {\n //====================================================================//\n // Order Line Quantity\n $this->fieldsFactory()->create(SPL_T_INT)\n ->identifier(\"quantity\")\n ->inList(\"lines\")\n ->name(\"[L] Quantity\")\n ->description(\"[L] Absolute Ordered Quantity\")\n ->group(\"Items\")\n ->microData(\n \"http://schema.org/QuantitativeValue\",\n $this->connector->hasLogisticMode() ? \"toShip\" : \"value\"\n )\n ->association(\"title@lines\", \"quantity@lines\", \"price@lines\")\n ->isReadOnly()\n ;\n //====================================================================//\n // Order Line Quantity with Refunds\n $this->fieldsFactory()->create(SPL_T_INT)\n ->identifier(\"quantity_with_refunds\")\n ->inList(\"lines\")\n ->name(\"[L] Qty with refunds\")\n ->description(\"[L] Ordered Quantity minus Refunded Quantities\")\n ->group(\"Items\")\n ->microData(\n \"http://schema.org/QuantitativeValue\",\n $this->connector->hasLogisticMode() ? \"value\" : \"toShip\"\n )\n ->association(\"title@lines\", \"quantity@lines\", \"price@lines\")\n ->isReadOnly()\n ;\n //====================================================================//\n // Order Line Refunded Quantity\n $this->fieldsFactory()->create(SPL_T_INT)\n ->identifier(\"quantity_refunded\")\n ->inList(\"lines\")\n ->name(\"[L] Refunded Qty\")\n ->description(\"[L] Refunded/Returned Quantities\")\n ->group(\"Items\")\n ->microData(\"http://schema.org/QuantitativeValue\", \"refunded\")\n ->association(\"title@lines\", \"quantity@lines\", \"price@lines\")\n ->isReadOnly()\n ;\n }", "public function reset()\n {\n $this->values[self::_MEMBERS] = array();\n $this->values[self::_ITEMS] = array();\n }", "public function check_product_items(){\n\t\t$arr = $this->arr_product_items;\n\t\t//taxper\n\t\tif(isset($arr['taxper']))\n\t\t\t$this->arr_product_items['taxper'] = (float)$arr['taxper'];\n\t\telse\n\t\t\t$this->arr_product_items['taxper'] = 0;\n\t\t//sizew_unit\n\t\tif(!isset($arr['sizew_unit']) || $arr['sizew_unit']=='')\n\t\t\t$this->arr_product_items['sizew_unit'] = 'in';\n\t\t//sizeh_unit\n\t\tif(!isset($arr['sizeh_unit']) || $arr['sizeh_unit']=='')\n\t\t\t$this->arr_product_items['sizeh_unit'] = 'in';\n\t\t//sizew\n\t\tif(isset($arr['sizew']))\n\t\t\t$this->arr_product_items['sizew'] = (float)$arr['sizew'];\n\t\telse\n\t\t\t$this->arr_product_items['sizew'] = 0;\n\t\t//sizeh\n\t\tif(isset($arr['sizeh']))\n\t\t\t$this->arr_product_items['sizeh'] = (float)$arr['sizeh'];\n\t\telse\n\t\t\t$this->arr_product_items['sizeh'] = 0;\n\t\t//quantity\n\t\tif(isset($arr['quantity']))\n\t\t\t$this->arr_product_items['quantity'] = (float)$arr['quantity'];\n\t\telse\n\t\t\t$this->arr_product_items['quantity'] = 0;\n\n\t\t//adj_qty\n\t\t$this->arr_product_items['adj_qty'] = 0;\n\n\t\t//oum\n\t\tif(!isset($arr['oum']))\n\t\t\t$this->arr_product_items['oum'] = 'unit';\n\n\t\t//oum_depend\n\t\tif(!isset($arr['oum_depend']))\n\t\t\t$this->arr_product_items['oum_depend'] = 'unit';\n\t\tif(isset($arr['oum_depend']) && $arr['oum_depend']=='Sq. ft.')\n\t\t\t$this->arr_product_items['oum_depend'] = 'Sq.ft.';\n\n\t\t//sell_price\n\t\tif(isset($arr['sell_price']))\n\t\t\t$this->arr_product_items['sell_price'] = (float)$arr['sell_price'];\n\t\telse\n\t\t\t$this->arr_product_items['sell_price'] = 0;\n\n\t\t//plus_sell_price\n\t\tif(isset($arr['plus_sell_price']))\n\t\t\t$this->arr_product_items['plus_sell_price'] = (float)$arr['plus_sell_price'];\n\t\telse\n\t\t\t$this->arr_product_items['plus_sell_price'] = 0;\n\n\t\t//plus_price\n\t\tif(isset($arr['plus_unit_price']))\n\t\t\t$this->arr_product_items['plus_unit_price'] = (float)$arr['plus_unit_price'];\n\t\telse\n\t\t\t$this->arr_product_items['plus_unit_price'] = 0;\n\n\t\t//reset unit_price\n\t\t\t$this->arr_product_items['unit_price'] = 0;\n\t\t//reset sub_total\n\t\t\t$this->arr_product_items['sub_total'] = 0;\n\t\t//reset tax\n\t\t\t$this->arr_product_items['tax'] = 0;\n\t\t//reset amount\n\t\t\t$this->arr_product_items['amount'] = 0;\n\n\t}", "public function vider(): void\n {\n $this->preparation = null;\n $this->stockage = null;\n }", "public function delete_supplier()\n\t\t{\n\t\t\t$url = '';\n\t\t\t$supplier_ids = $this->request->post['selected'];\n\t\t\t$this->load->model('purchase/supplier');\n\t\t\tif(count($supplier_ids) == 0)\n\t\t\t{\n\t\t\t\t$this->response->redirect($this->url->link('purchase/supplier', 'token=' . $this->session->data['token'] . $url, true));\n\t\t\t}\n\t\t\t$deleted = $this->model_purchase_supplier->delete_supplier($supplier_ids);\n\t\t\tif($deleted)\n\t\t\t{\n\t\t\t\t$_SESSION['delete_success_message'] = \"Success!! Supplier Successfully Deleted\";\n\t\t\t\t$this->response->redirect($this->url->link('purchase/supplier', 'token=' . $this->session->data['token'] . $url, true));\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$_SESSION['delete_unsuccess_message'] = \"Warning: This supplier cannot be deleted as it is currently assigned to products! \";\n\t\t\t\t$this->response->redirect($this->url->link('purchase/supplier', 'token=' . $this->session->data['token'] . $url, true));\n\t\t\t}\n\t\t}", "public function reset()\n {\n $this->values[self::_GUILDS] = null;\n $this->values[self::_RESULT] = null;\n $this->values[self::_CREATE_COST] = null;\n }", "public function fillIngredients()\n {\n $ingredients_data = $this->_db()->select('select id_ingredient, base_quantity from product_ingredients where id_product=?d', $this->id);\n foreach ($ingredients_data as $ing)\n {\n $this->ingredients[$ing['id_ingredient']] = new Model_Product($ing['id_ingredient']);\n $this->ingredients[$ing['id_ingredient']]->base_quantity = $ing['base_quantity'];\n $this->ingredients[$ing['id_ingredient']]->fillIngredients();\n }\n }", "public function reset()\n {\n $this->values[self::_SUMMARY] = array();\n $this->values[self::_TIMEOUT] = null;\n $this->values[self::_ITEM_COUNT] = null;\n $this->values[self::_RANK] = null;\n $this->values[self::_ITEM_ID] = null;\n $this->values[self::_JUMP_TIMES] = null;\n $this->values[self::_COST_MONEY] = null;\n }", "public function store(Request $request)\n {\n //dd($request->all());\n $this->validate($request,[\n\n 'supplier_id'=>'required',\n 'payment_type'=>'required',\n 'total'=>'required',\n 'payment'=>'required'\n \n ]);\n \n $receivingItems = RecevingTemp::all();\n // dd($receivingItems);\n if(empty($receivingItems->toArray())) {\n notify()->error(\"Please Add some Items to create purchase!\",\"Error\");\n return back();\n }\n \n $receiving = new Receving;\n $receiving->supplier_id = $request->supplier_id;\n $receiving->user_id = Auth::user()->id;\n $receiving->payment_type = $request->payment_type;\n $payment = $receiving->payment = $request->payment;\n $total = $receiving->total = $request->total;\n $dues = $receiving->dues = $total - $payment;\n $receiving->comments = $request->comments;\n\n if ($dues > 0) {\n $receiving->status = 0;\n } else {\n $receiving->status = 1;\n }\n $receiving->save();\n \n $supplier = Supplier::findOrFail($receiving->supplier_id);\n $supplier->prev_balance = $supplier->prev_balance + $dues;\n $supplier->update();\n if ($request->payment > 0) {\n $payment = new RecevingPayment;\n $paid = $payment->payment = $request->payment;\n $payment->dues = $total - $paid;\n $payment->payment_type = $request->payment;\n $payment->comments = $request->comments;\n $payment->receiving_id = $receiving->id;\n $payment->user_id = Auth::user()->id;\n $payment->save();\n }\n \n $receivingItemsData=[];\n foreach ($receivingItems as $value) {\n $receivingItemsData = new RecevingItem;\n $receivingItemsData->receiving_id = $receiving->id;\n $receivingItemsData->product_id = $value->product_id;\n $receivingItemsData->cost_price = $value->cost_price;\n $receivingItemsData->quantity = $value->quantity;\n $receivingItemsData->total_cost = $value->total_cost;\n $receivingItemsData->save();\n //process inventory\n $products = Product::find($value->product_id);\n if ($products->type == 1) {\n $inventories = new Inventory;\n $inventories->product_id = $value->product_id;\n $inventories->user_id = Auth::user()->id;\n $inventories->in_out_qty = -($value->quantity);\n $inventories->remarks = 'PURCHASE' . $receiving->id;\n $inventories->save();\n //process product quantity\n $products->quantity = $products->quantity - $value->quantity;\n $products->save();\n } \n }\n \n //delete all data on SaleTemp model\n RecevingTemp::truncate();\n $itemsreceiving = RecevingItem::where('receiving_id', $receivingItemsData->receiving_id)->get();\n notify()->success(\"You have successfully added Purchases!\",\"Success\");\n return view('receiving.complete')\n ->with('receiving', $receiving)\n ->with('receivingItemsData', $receivingItemsData)\n ->with('receivingItems', $itemsreceiving);\n }", "public function reset()\n {\n $this->values[self::_TYPE] = null;\n $this->values[self::_MONEY] = null;\n }", "public function reset()\n {\n $this->values[self::_RESULT] = null;\n $this->values[self::_SHOP] = null;\n }", "function initializeSubProduct($pid) {\n checkService('sublimation', $pid);\n if (is_null(get_sub_product($pid)) || count(get_sub_product($pid)) == 0 || empty($_SESSION['cart']['sublimation'][$pid])) {\n unset($_SESSION['cart']['sublimation'][$pid]);\n return;\n }\n $dlt_count = 0;\n foreach ($_SESSION['cart']['sublimation'][$pid] as $key=>$prod) {\n if (!array_key_exists('quantity', $prod) || $prod['quantity'] == -1) {\n if (array_key_exists('quantity', $prod))\n unlink(url_to_path($prod['url']));\n array_splice($_SESSION['cart']['sublimation'][$pid], $key- $dlt_count, 1);\n $dlt_count++;\n }\n }\n}", "public function testUpdateSupplierGroup()\n {\n }", "private function reset_totals() {\n\t\t$this->totals = $this->default_totals;\n\t\t$this->fees_api->remove_all_fees();\n\t\tdo_action( 'woocommerce_cart_reset', $this, false );\n\t}", "abstract public function getOriginalQty();", "protected function _prepareCollection() {\n $collection = Mage::helper('ProductReturn/SupplierReturn')->getProductsPending();\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }", "public function reset()\n {\n $this->values[self::_INDEX] = null;\n $this->values[self::_ITEM_ID] = null;\n $this->values[self::_EXP] = null;\n }", "public function reset()\n {\n $this->values[self::_RESULT] = null;\n $this->values[self::_BUY_TIMES] = null;\n }", "public function test_it_resolves_correct_free_item_qtys()\n {\n $adType = AdType::inRandomOrder()->first();\n\n //3 for the price of 2\n $rule = new XForThePriceOfYRule;\n $rule->setThresholdQty(3);\n $rule->setCalculatedQty(2);\n $rule->setAdType($adType);\n\n //3 eligible items in checkout, should return 1\n $checkoutItems = $this->generateCheckoutItems($adType, 3, $qtyOfDiffTypes = rand(6, 10));\n $this->assertEquals(1, $rule->totalBonusQty($checkoutItems->all()));\n\n //4 eligible items in checkout, should return 1\n $checkoutItems = $this->generateCheckoutItems($adType, 4, $qtyOfDiffTypes = rand(6, 10));\n $this->assertEquals(1, $rule->totalBonusQty($checkoutItems->all()));\n\n //5 eligible items in checkout, should return 1\n $checkoutItems = $this->generateCheckoutItems($adType, 5, $qtyOfDiffTypes = rand(6, 10));\n $this->assertEquals(1, $rule->totalBonusQty($checkoutItems->all()));\n\n //6 eligible items in checkout, should return 2\n $checkoutItems = $this->generateCheckoutItems($adType, 6, $qtyOfDiffTypes = rand(6, 10));\n $this->assertEquals(2, $rule->totalBonusQty($checkoutItems->all()));\n\n //5 for the price of 4\n $rule = new XForThePriceOfYRule;\n $rule->setThresholdQty(5);\n $rule->setCalculatedQty(4);\n $rule->setAdType($adType);\n\n //3 eligible items in checkout, should return 0\n $checkoutItems = $this->generateCheckoutItems($adType, 3, $qtyOfDiffTypes = rand(6, 10));\n $this->assertEquals(0, $rule->totalBonusQty($checkoutItems->all()));\n\n //5 eligible items in checkout, should return 1\n $checkoutItems = $this->generateCheckoutItems($adType, 5, $qtyOfDiffTypes = rand(6, 10));\n $this->assertEquals(1, $rule->totalBonusQty($checkoutItems->all()));\n\n //6 eligible items in checkout, should return 1\n $checkoutItems = $this->generateCheckoutItems($adType, 6, $qtyOfDiffTypes = rand(6, 10));\n $this->assertEquals(1, $rule->totalBonusQty($checkoutItems->all()));\n\n //10 eligible items in checkout, should return 2\n $checkoutItems = $this->generateCheckoutItems($adType, 10, $qtyOfDiffTypes = rand(6, 10));\n $this->assertEquals(2, $rule->totalBonusQty($checkoutItems->all()));\n }", "public function store(Request $request)\n {\n $rules = [\n 'supplierId' => 'required',\n 'product' => 'required',\n 'qty.*' => 'required|integer|between:0,10000',\n ];\n $messages = [\n 'unique' => ':attribute already exists.',\n 'required' => 'The :attribute field is required.',\n 'max' => 'The :attribute field must be no longer than :max characters.',\n ];\n $niceNames = [\n 'supplierId' => 'Supplier',\n 'product' => 'Product',\n 'qty.*' => 'Quantity'\n ];\n $validator = Validator::make($request->all(),$rules,$messages);\n $validator->setAttributeNames($niceNames); \n if ($validator->fails()) {\n return Redirect::back()->withErrors($validator)->withInput();\n }\n else{\n try{\n DB::beginTransaction();\n $id = DeliveryHeader::all()->count() + 1;\n $id = 'DELIVERY'.str_pad($id, 5, '0', STR_PAD_LEFT); \n $created = explode('/',$request->date); // MM[0] DD[1] YYYY[2] \n $finalCreated = \"$created[2]-$created[0]-$created[1]\";\n $delivery = DeliveryHeader::create([\n 'id' => $id,\n 'supplierId' => $request->supplierId,\n 'dateMake' => $finalCreated\n ]);\n $products = $request->product;\n $qtys = $request->qty;\n $orders = $request->order;\n sort($orders);\n foreach($products as $key=>$product){\n if($qtys[$key]!=0){\n DeliveryDetail::create([\n 'deliveryId' => $delivery->id,\n 'productId' => $product,\n 'quantity' => $qtys[$key],\n ]);\n $inventory = Inventory::where('productId',$product)->first();\n $inventory->increment('quantity', $qtys[$key]);\n }\n }\n foreach($orders as $order){\n DeliveryOrder::create([\n 'purchaseId' => $order,\n 'deliveryId' => $id\n ]);\n foreach($products as $key=>$product){\n if($qtys[$key]!=0){\n $detail = PurchaseDetail::where('purchaseId',''.$order)->where('productId',$product)->where('isActive',1)->first();\n if(!empty($detail)){\n $qty = $detail->quantity;\n $delivered = $detail->delivered;\n if($qty != $delivered){\n while($qty!=$delivered && $qtys[$key]!=0){\n $delivered++;\n $qtys[$key]--;\n }\n $detail->update([\n 'delivered' => $delivered\n ]);\n }\n }\n }\n }\n $details = PurchaseDetail::where('purchaseId',''.$order)->where('isActive',1)->get();\n foreach($details as $detail){\n if($detail->quantity!=$detail->delivered){\n $delivery = false;\n }\n }\n if($delivery){\n PurchaseHeader::where('id',''.$order)->update(['isDelivered'=>1]);\n }\n }\n Audit::create([\n 'userId' => Auth::id(),\n 'name' => \"Receive Delivery\",\n 'json' => json_encode($request->all())\n ]);\n DB::commit();\n }catch(\\Illuminate\\Database\\QueryException $e){\n DB::rollBack();\n $errMess = $e->getMessage();\n return Redirect::back()->withErrors($errMess);\n }\n $request->session()->flash('success', 'Successfully added.');\n return Redirect('delivery');\n }\n }", "public function reset()\n {\n $this->values[self::_RESULT] = null;\n $this->values[self::_HERO] = null;\n $this->values[self::_ITEMS] = array();\n }", "public function setNoMultiShipping(){\n $emptyCache = false;\n $db = JFactory::getDBO();\n if (JeproshopSettingModelSetting::getValue('allow_multi_shipping')){\n // Upgrading quantities\n $query = \"SELECT sum(\" . $db->quoteName('quantity') . \") AS quantity, product_id, product_attribute_id, count(*) as count FROM \";\n $query .= $db->quoteName('#__jeproshop_cart_product') . \" WHERE \" . $db->quoteName('cart_id') . \" = \" . (int)$this->cart_id . \" AND \" ;\n $query .= $db->quoteName('shop_id') . \" = \" . (int)$this->shop_id . \" GROUP BY product_id, product_attribute_id HAVING count > 1\";\n\n $db->setQuery($query);\n $products = $db->loadObjectList();\n\n foreach ($products as $product){\n $query = \"UPDATE \" . $db->quoteName('#__jeproshop_cart_product') . \" SET \" . $db->quoteName('quantity') . \" = \" . $product->quantity;\n $query .= \"\tWHERE \" . $db->quoteName('cart_id') . \" = \".(int)$this->cart_id . \" AND \" . $db->quoteName('shop_id') . \" = \" . (int)$this->shop_id ;\n $query .= \" AND product_id = \" . $product->product_id . \" AND product_attribute_id = \" . $product->product_attribute_id;\n $db->setQuery($query);\n if ($db->query())\n $emptyCache = true;\n }\n\n // Merging multiple lines\n $query = \"DELETE cart_product_1 FROM \" . $db->quoteName('#__jeproshop_cart_product') . \" AS cart_product_1 INNER JOIN \";\n $query .= $db->quoteName('#__jeproshop_cart_product') . \" AS cart_product_2 ON ((cart_product_1.cart_id = cart_product_2.\";\n $query .= \"cart_id) AND (cart_product_1.product_id = cart_product_2.product_id) AND (cart_product_1.product_attribute_id = \";\n $query .= \"cart_product_2.product_attribute_id) AND (cart_product_1.address_delivery_id <> cart_product_2.address_delivery_id) \";\n $query .= \" AND (cart_product_1.date_add > cart_product_2.date_add) )\";\n $db->setQuery($query);\n $db->query();\n }\n\n // Update delivery address for each product line\n $query = \"UPDATE \" . $db->quoteName('#__jeproshop_cart_product') . \" SET \" . $db->quoteName('address_delivery_id') . \" = ( SELECT \";\n $query .= $db->quoteName('address_delivery_id') . \" FROM \" . $db->quoteName('#__jeproshop_cart') . \" WHERE \" . $db->quoteName('cart_id');\n $query .= \" = \" . (int)$this->cart_id . \" AND \" . $db->quoteName('shop_id') . \" = \" . (int)$this->shop_id . \") WHERE \" . $db->quoteName('cart_id');\n $query .= \" = \" . (int)$this->cart_id . (JeproshopSettingModelSetting::getValue('allow_multi_shipping') ? \" AND \" . $db->quoteName('shop_id') . \" = \" .(int)$this->shop_id : \"\");\n\n $db->setQuery($query);\n\n $cache_id = 'jeproshop_cart_set_no_multi_shipping'.(int)$this->cart_id.'_'.(int)$this->shop_id .((isset($this->address_delivery_id) && $this->address_delivery_id) ? '-'.(int)$this->address_delivery_id : '');\n if (!JeproshopCache::isStored($cache_id)){\n $db->setQuery($query);\n if ($result = (bool)$db->query())\n $emptyCache = true;\n JeproshopCache::store($cache_id, $result);\n }\n\n if (JeproshopCustomization::isFeaturePublished()){\n //Db::getInstance()->execute(\n\t\t\t$query = \" UPDATE \" . $db->quoteName('#__jeproshop_customization') . \" SET \" . $db->quoteName('address_delivery_id') . \" = ( SELECT \";\n $query .= $db->quoteName('address_delivery_id') . \" FROM \" . $db->quoteName('#__jeproshop_cart') . \" WHERE \" . $db->quoteName('cart_id');\n $query .= \" = \" . (int)$this->cart_id . \" ) WHERE \" . $db->quoteName('cart_id') . \" = \" .(int)$this->cart_id;\n\n $db->setQuery($query);\n $db->query();\n }\n if ($emptyCache){\n $this->_products = null;\n }\n }", "public function removeQuantity()\n\t{\n\t\tif(isset($this->searchFilters[$this->ref_quantity]))\n\t\t{\n\t\t\tunset($this->searchFilters[$this->ref_quantity]);\n\t\t}\n\t}", "public function reset()\n {\n $this->values[self::RMB] = null;\n $this->values[self::CHARGE_SUM] = null;\n $this->values[self::HEROES] = array();\n $this->values[self::RECHARGE_LIMIT] = array();\n $this->values[self::_MONTH_CARD] = array();\n }", "public function reset()\n {\n $this->values[self::contractorstatics] = null;\n $this->values[self::stores] = array();\n $this->values[self::visited] = array();\n $this->values[self::review_info] = array();\n $this->values[self::customer_info] = array();\n $this->values[self::mark_price_info] = array();\n $this->values[self::more_url] = null;\n $this->values[self::order_tracking] = array();\n }", "private function populateItems()\n\t{\n\t\tif ( empty( $this->ingredients ) )\n\t\t\treturn;\n\t\t\n\t\tforeach( $this->ingredients as $ingredient )\n\t\t{\n\t\t\tif ( !( $item = Fridge::getInstance()->getItem( $ingredient[Item::FIELD_NAME] ) ) || $ingredient[Item::FIELD_AMOUNT] > $item->getAmount() )\n\t\t\t{\n\t\t\t\t$this->valid = false;\n\t\t\t\t$this->items = array();\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\n\t\t\t$useBy = $item->getUseBy();\n\t\t\t\n\t\t\t$this->valid = ( $useBy >= REQUEST_TIME )?: false;\n\t\t\t$this->minOutOfDate = ( empty( $this->minOutOfDate ) || $useBy <= $this->minOutOfDate )? $useBy : $this->minOutOfDate;\n\t\t\t\n\t\t\t$this->items[$item->getName()] = $item;\n\t\t}\n\t}", "function evt__4__salida()\n\t{\n\t\tunset($this->pant_sel_temp);\n\t\t$this->get_entidad()->tabla('pantallas')->resetear_cursor();\n\t}", "public function change_purse( $request ) {\n $params = $request->get_params();\n\n $customer_orders = get_posts( array(\n 'numberposts' => 1,\n 'meta_key' => '_customer_user',\n 'meta_value' => get_current_user_id(),\n 'post_type' => wc_get_order_types(),\n 'post_status' => 'wc-processing',\n 'order' => 'DESC'\n ) );\n\n if (!isset($customer_orders[0])) {\n return new WP_REST_Response([\n 'message' => 'No order with \"processing\" status found',\n 'status' => '400'\n ], 400);\n }\n\n $post_order = $customer_orders[0];\n $order = new WC_Order($post_order->ID);\n $items = $order->get_items();\n $product = null;\n\n foreach ($items as $item) {\n $data = $item->get_data();\n $product = wc_get_product($data['product_id']);\n $product_type = $product->get_type();\n\n if ($product_type == 'variable') {\n $variation = wc_get_product($data['variation_id']);\n $order->remove_item($item->get_id());\n $order->save(); // reduce_order_stock reduce stock from order saved in memory\n $new_product = wc_get_product($params['id']);\n $order->add_product($new_product);\n $order->reduce_order_stock();\n $order->save();\n\n wc_update_product_stock($variation->get_id(), $variation->get_stock_quantity() + 1);\n $variation->save();\n break;\n }\n $product = null;\n }\n\n if (!$product) {\n $new_product = wc_get_product($params['id']);\n $order->add_product($new_product);\n $order->reduce_order_stock();\n $order->save();\n }\n\n $product_data = $new_product->get_data();\n $product_attributes = $new_product->get_variation_attributes();\n\n return new WP_REST_Response([\n 'id' => $new_product->get_id(),\n 'price' => $product_data['price'],\n 'name' => $product_data['name'],\n 'short_description' => $product_data['short_description'],\n 'sku' => $product_data['sku'],\n 'images' => $this->get_images($new_product),\n 'colors' => isset($product_attributes['pa_colors']) ? $product_attributes['pa_colors'] : false,\n 'sizes' => isset($product_attributes['pa_sizes']) ? $product_attributes['pa_sizes'] : false,\n ], 200);\n\n }", "public function createPurchaseOrder(Request $request)\n {\n $data = $request->input();\n\n $suppliers = array();\n\n foreach ($data as $key => $value) {\n $bestSupplier = ProductSuppliers::getBestSupplierForProduct($key);\n\n if(array_key_exists($bestSupplier['entity'], $suppliers))\n array_push($suppliers[$bestSupplier['entity']], $bestSupplier);\n else\n $suppliers[$bestSupplier['entity']] = [$bestSupplier];\n }\n\n foreach($suppliers as $supplier) {\n $documentLines = [];\n\n for($i = 0; $i < count($supplier); $i++) {\n $product = [\n 'description' => $supplier[$i]['description'],\n 'quantity' => $data[$supplier[$i]['product']],\n 'unitPrice' => number_format(floatval($supplier[$i]['price']), 2),\n 'deliveryDate' => date(\"Y-m-d\", mktime(0, 0, 0, date(\"m\") , date(\"d\")+1, date(\"Y\"))),\n 'unit' => 'UN',\n 'itemTaxSchema' => 'ISENTO',\n 'purchasesItem' => $supplier[$i]['product'],\n 'documentLineStatus' => 'OPEN'\n ];\n\n array_push($documentLines, $product);\n }\n\n try {\n $result = JasminConnect::callJasmin('/purchases/orders', '', 'GET');\n } catch (Exception $e) {\n return $e->getMessage();\n }\n\n $seriesNumber = count(json_decode($result->getBody(), true)) + 1;\n\n try {\n $body = [\n 'documentType' => 'ECF',\n 'company' => 'TP-INDUSTRIES',\n 'serie' => '2019',\n 'seriesNumber' => $seriesNumber,\n 'documentDate' => date(\"Y-m-d\", mktime(0, 0, 0, date(\"m\") , date(\"d\"), date(\"Y\"))),\n 'postingDate' => date(\"Y-m-d\", mktime(0, 0, 0, date(\"m\") , date(\"d\"), date(\"Y\"))),\n 'SellerSupplierParty' => $supplier[0]['entity'],\n 'SellerSupplierPartyName' => $supplier[0]['name'],\n 'accountingParty' => $supplier[0]['entity'],\n 'exchangeRate' => 1,\n 'discount' => 0,\n 'loadingCountry' => $supplier[0]['country'],\n 'unloadingCountry' => 'PT',\n 'currency' => 'EUR',\n 'paymentMethod' => 'NUM',\n 'paymentTerm' => '01',\n 'documentLines' => $documentLines\n ];\n\n JasminConnect::callJasmin('/purchases/orders', '', 'POST', $body);\n } catch (Exception $e) {\n return $e->getMessage();\n }\n }\n\n return $data;\n }", "private function clear_variable()\n\t\t{\n\t\t\t$this->count_item_found = 'none';\t\t\t\t\t\t\t\t\t// No item found\n\t\t\t$this->fulllistexpand = Array();\t\t\t\t\t\t\t\t\t// No item list to expand\n\t\t\t$this->sqllistinvolved = '';\t\t\t\t\t\t\t\t\t\t// ??? TODO\n\t\t\t$this->listinvolved = Array();\n\t\t\t$this->html_result = '';\n\t\t}", "public function setQty($prod_id, $newQty)\n {\n // if the item already exists\n if (array_key_exists($prod_id, $this->items)) {\n $this->items[$prod_id] = $newQty;\n } else {\n $this->items = $this->items + array($prod_id => $newQty);\n }\n\n if ($this->items[$prod_id] <= 0) {\n unset($this->items[$prod_id]);\n }\n $this->calcTotal();\n }", "private function clearTotals()\n {\n $this->totalAmount = 0;\n $this->frequentRenterPoints = 0;\n }", "function removeFromInventory($userid, $ingredient, $qty, $units){\n\t\t if((userid != NULL) && ($ingredient != NULL) && ($qty != NULL)&& ($units != NULL))\n\t\t { \n\t\t if($qty <= 0)\n\t\t return;\n\t\t $amt = mysql_query(\"SELECT Quantity as Quantity FROM Inventory WHERE (UserID = '$userid' AND IngredientName = '$ingredient' AND Units ='$units')\");\n\t\t $amtdata = mysql_fetch_assoc($amt);\n if($amtdata['Quantity'] > $qty)\n\t\t\t @mysql_query(\"UPDATE Inventory SET Quantity = Quantity - '$qty' WHERE (UserID = '$userid' AND IngredientName = '$ingredient' AND Units ='$units')\");\n\t\t else\n\t\t @mysql_query(\"DELETE FROM Inventory WHERE (UserID = '$userid' AND IngredientName = '$ingredient' AND Units ='$units')\");\n\t }\n\t}", "private function reset()\n {\n $this->senderId = $this->factory->uuid;\n $this->amount = $this->factory->numberBetween(1, 10000);\n $this->recipientId = $this->factory->uuid;\n }", "public function resetItems()\n {\n Yii::$app->session->set('cart', []);\n }", "function set_deputados() {\n\n\t\ttry {\n\n\t\t\t$dadosAbertosClient = new dadosAbertosClient;\n\n\t\t\t// legislatura de valor 18 foi definida pois eh o periodo onde estao os deputados vigentes no ano de 2017\n\t\t\t$listaDeputados = $dadosAbertosClient->listaDeputadosPorLegislatura(18);\n\n\t\t\tforeach ($listaDeputados as $deputado) {\n\n\t\t\t\t$deputado = Deputado::findByIdDeputado($deputado['id']);\t\n\n\t\t\t\tif($deputado)\n\t\t\t\t\tcontinue;\n\n\t\t\t\t$deputadoData = [\n\t\t\t\t\t'id_deputado' => $deputado->id,\n\t\t\t\t\t'nome' => $deputado->nome,\n\t\t\t\t\t'partido' => $deputado->partido,\n\t\t\t\t\t'tag_localizacao' => $deputado->tagLocalizacao\n\t\t\t\t];\n\n\t\t\t\tDeputado::create($deputadoData);\n\t\t\t}\n\n\t\t} catch (Exception $e) {\n\t\t\techo $e->getMessage();\n\t\t}\n\n\t}", "public function clearItems();", "public function updateCart() {\n if (func_num_args() > 0):\n $userid = func_get_arg(0);\n $productid = func_get_arg(1);\n $quantity = func_get_arg(2);\n $cost = func_get_arg(3);\n $hotelid = func_get_arg(4);\n $select = $this->select()\n ->from($this)\n ->where('user_id = ?', $userid)\n ->where('product_id = ?', $productid)\n ->where('hotel_id = ?', $hotelid);\n $res = $this->getAdapter()->fetchRow($select);\n\n $value = 1;\n if ($quantity['quantity'] === 'increase') {\n $data = array('quantity' => new Zend_Db_Expr('quantity + ' . $value),\n 'cost' => new Zend_Db_Expr('cost + ' . $cost));\n } else if ($quantity['quantity'] === 'decrease' && $res['quantity'] > 1) {\n $data = array('quantity' => new Zend_Db_Expr('quantity - ' . $value),\n 'cost' => new Zend_Db_Expr('cost - ' . $cost));\n } else {\n $value = 0;\n $cost = 0;\n $data = array('quantity' => new Zend_Db_Expr('quantity + ' . $value),\n 'cost' => new Zend_Db_Expr('cost + ' . $cost));\n }\n try {\n $where[] = $this->getAdapter()->quoteInto('user_id = ?', $userid);\n $where[] = $this->getAdapter()->quoteInto('product_id = ?', $productid);\n $where[] = $this->getAdapter()->quoteInto('hotel_id = ?', $hotelid);\n $result = $this->update($data, $where);\n if ($result) {\n try {\n $select = $this->select()\n ->from($this)\n ->where('user_id = ?', $userid)\n ->where('product_id = ?', $productid)\n ->where('hotel_id = ?', $hotelid);\n $response = $this->getAdapter()->fetchRow($select);\n if ($response) {\n $select = $this->select()\n ->from($this, array(\"totalcost\" => \"SUM(cost)\"))\n ->where('user_id = ?', $userid)\n ->where('hotel_id = ?', $hotelid);\n $res = $this->getAdapter()->fetchRow($select);\n $response['total'] = $res['totalcost'];\n if ($response) {\n return $response;\n } else {\n return null;\n }\n } else {\n return null;\n }\n } catch (Exception $ex) {\n \n }\n } else {\n return null;\n }\n } catch (Exception $exc) {\n echo $exc->getTraceAsString();\n }\n else:\n throw new Exception(\"Argument not passed\");\n endif;\n }", "public function reset()\n {\n $this->values[self::_SUMMARY] = array();\n $this->values[self::_SELF_RANKING] = null;\n $this->values[self::_SELF_SUMMARY] = null;\n }", "public function continue_checkout($Recipt,$ShoppingCart,$discount)\n {\n $Recipt->update([\n 'is_init_for_card_payment' => null\n ]);\n\n Recipt::where('member_id',$Recipt->member_id)->where('is_init_for_card_payment','1')->delete();\n\n $ReciptProducts = [];\n //--for create Recipt Products--\n foreach ($ShoppingCart as $key => $Cart)\n {\n $this_product = Product::find($Cart->product_id);\n if( $this_product->quantity > 0 || !$this_product)\n {\n //check if selected quantity is not bigger than the stock quantity\n $required_quantity = ($Cart->quantity < $this_product->quantity) ? $Cart->quantity : $this_product->quantity;\n $produ = null;\n $produ = [\n 'recipt_id' => $Recipt->id,\n 'quantity' => $required_quantity ,\n 'product_name_en' => $this_product->name_en ,\n 'product_name_ar' => $this_product->name_ar,\n 'product_id' => $this_product->id ,\n 'cheese_type' => $Cart->cheese_type,\n 'cheese_weight' => $Cart->cheese_weight,\n 'bundle_products_ids' => $this_product->bundle_products_ids,\n 'single_price' => $this_product->price,\n 'total_price' => $this_product->price * $Cart->quantity\n ];\n array_push($ReciptProducts, $produ);\n\n //---decrease the quantity from the product---\n $this_product->update([\n 'quantity' => $this_product->quantity - $required_quantity\n ]);\n }//End if\n }//End foreach\n ReciptProducts::insert($ReciptProducts);\n ShoppingCart::where( 'member_id',$Recipt->member_id )->delete();\n if($discount)\n {\n $myPromo = MemberPromo::where( 'member_id',$Recipt->member_id )->where('is_used',0)->first();\n $myPromo->update([\n 'is_used' => 1,\n 'used_date' => \\Carbon\\Carbon::now()\n ]);\n }\n\n $member = \\App\\Member::find($Recipt->member_id);\n\n $member->update([\n // 'reward_points' => ( $member->reward_points + ceil($Recipt->total_price / 20) ) - $Recipt->points_deduction_price\n 'reward_points' => $member->reward_points - $Recipt->points_deduction_price\n ]);\n\n if($Recipt->payment_method == 'creadit_card')\n {\n $Recipt->update([\n 'payment_method' => 'creadit_card' ,\n 'is_piad' => 1 ,\n ]);\n\n try {\n \\Mail::to($member->email)\n ->send(new \\App\\Mail\\ConfirmOrder($Recipt,$member));\n } catch (\\Exception $e) {\n\n }\n }\n else {\n try {\n \\Mail::to($member->email)\n ->send(new \\App\\Mail\\ConfirmOrder($Recipt,$member));\n }catch (\\Exception $e) {\n\n }\n }\n return response()->json([\n 'status' => 'success',\n 'status_message' => __('page.Thank you for purchasing from us'),\n ]);\n }", "public function unassignDepartment() {\n if($this->department)\n $this->department()->delete();\n }", "public function update(Request $request, $id)\n {\n // dd($request->itemdetail);\n $order = $this->model->find($id);\n\n foreach ($order->orderDetails as $key => $orderDetail) {\n $detail = ItemDetail::with('ingredients')->withTrashed()->findOrFail($orderDetail->item_detail_id);\n // dd($detail);\n foreach ($detail->ingredients as $key => $ingredient) {\n $usedIngredient = Ingredient::find($ingredient->id);\n $stock = $ingredient->stock;\n $used = $ingredient->pivot->amount_ingredient * $orderDetail->qty;\n $nowStock = $stock + $used;\n $usedIngredient->update(['stock' => $nowStock]);\n // dd($usedIngredient);\n };\n // dd($orderDetail->qty);\n };\n\n // dd($order->orderDetails->first()->item_detail_id);\n // dd(Ingredient::find(1)->stock);\n\n $order->orderDetails()->delete();\n\n $this->validate($request, [\n 'customer' => 'required',\n 'total' => 'required',\n 'itemdetail.*' => 'required',\n 'qty.*' => 'required',\n ]);\n\n $order->update([\n 'user_id' => auth()->user()->id,\n 'customer' => $request->customer,\n 'total' => $request->total,\n ]);\n\n for ($i = 0; $i < count($request->itemdetail); $i++) {\n $order->orderDetails()->create([\n 'item_detail_id' => $request->itemdetail[$i],\n 'qty' => $request->qty[$i],\n 'sub_total' => $request->subtotal[$i],\n ]);\n $detail = ItemDetail::with('ingredients')->find($request->itemdetail[$i]);\n foreach ($detail->ingredients as $key => $ingredient) {\n $usedIngredient = Ingredient::find($ingredient->id);\n $stock = $ingredient->stock;\n $used = $ingredient->pivot->amount_ingredient * $request->qty[$i];\n $nowStock = $stock - $used;\n $usedIngredient->update(['stock' => $nowStock]);\n // dd($ingredient->stock);\n };\n };\n\n return redirect($this->redirect);\n }", "public function testReplaceQuantities()\n {\n $pinch = new Unit('pinch', 'p');\n $origan = new Ingredient('origan');\n $this->recipe->replaceQuantities([\n new Quantity(0.9, $this->kg, $this->tomato),\n new Quantity(1, $pinch, $origan),\n new Quantity(0.3, $this->kg, $this->salt)\n ]); \n $this->assertCount(3, $this->recipe->getQuantities());\n $qtyTomato = $this->recipe->fetchQuantityOf('tomato');\n $this->assertEquals(0.9, $qtyTomato->getAmount());\n $this->assertEquals('kg', $qtyTomato->getUnit()->getSymbol());\n $qtySalt = $this->recipe->fetchQuantityOf('salt');\n $this->assertEquals(0.3, $qtySalt->getAmount());\n $this->assertEquals('kg', $qtySalt->getUnit()->getSymbol());\n $qtyOrigan = $this->recipe->fetchQuantityOf('origan');\n $this->assertEquals(1, $qtyOrigan->getAmount());\n $this->assertEquals('p', $qtyOrigan->getUnit()->getSymbol());\n }", "function placeOrder() {\n\n\tif (isset($_POST['quantity_requested']))\n\t\t$selected_quantities = $_POST['quantity_requested'];\n\t\n\t// sets the admin_id already set in the Database\n\t$admin_id_query = \"SELECT user_id FROM USERS WHERE aflag = '1'\";\n $admin_id_query_res = pg_query($GLOBALS['dbconn'], $admin_id_query);\n\tif (!$admin_id_query_res) {\n\t\techo \"An error occurred.\\n\";\n\t} else {\n\t\t$admin_id_query_row = pg_fetch_row($admin_id_query_res);\n\t\t$admin_id_str = (int) $admin_id_query_row[0];\n\t}\n\t\n\tif (empty($selected_quantities)) { \n echo \"You didn't select anything.\";\n } else {\n\t\t\n\t\t// Create a FRIDGE_ORDER\n\t\t$N = count($selected_quantities);\n\t\t\n\t\t// Get list of depleted ingredients again\n\t\t// $N = # of rows\n\t\t$no_ing_query = \"SELECT * FROM INGREDIENTS WHERE Count = '0'\";\n\t\t$no_ing_query_res = pg_query($GLOBALS['dbconn'], $no_ing_query);\n\n\t\tfor ($i = 0; $i < $N; $i++) {\t\t\t\n\t\t\t// Fetch current depleted ingredient row\n\t\t\t$row = pg_fetch_row($no_ing_query_res);\n\n\t\t\tif (is_numeric($selected_quantities[$i]) && $selected_quantities[$i] > 0) {\n\t\t\t$ing_order_query = \"INSERT INTO FRIDGE_ORDER(Ing_id, Count, Admin_id, Approved) VALUES (\" . $row[0] . \",\" . $selected_quantities[$i] . \",\" . $admin_id_str . \", false);\";\n\t\t\t\n\t\t\t\t$ing_order_query_res = pg_query($GLOBALS['dbconn'], $ing_order_query);\n\t\t\t\n\t\t\t\tif (!$ing_order_query_res) {\n echo \"An error occurred.\\n\";\n\t\t\t\t} \n\t\t\t} \n\t\t}\n\t\techo \"Successfully created fridge order!\";\n\t}\n}", "function evt__5__salida()\n\t{\n\t\tunset($this->pant_sel_temp);\n\t\t$this->get_entidad()->tabla('pantallas')->resetear_cursor();\n\t}", "public function magicMethod(){\n $cart = $this->_getCart();\n $quoteArrayFreeProducts = array();\n $quoteArrayNonFreeProducts = array();\n $AddThisInCart = array();\n $finalAdd = array();\n\n // finding both free and non free products and saving them in array\n $quote = Mage::getSingleton('checkout/session')->getQuote();\n foreach($quote->getAllVisibleItems() as $item) {\n if($item->getData('price') == 0){\n $quoteArrayFreeProducts['item_id'][] = $item->getData('product_id');\n $quoteArrayFreeProducts['qty'][] = $item->getData('qty');\n }else{\n $quoteArrayNonFreeProducts['item_id'][] = $item->getData('product_id');\n $quoteArrayNonFreeProducts['qty'][] = $item->getData('qty');\n }\n }\n \n // print_r($quoteArrayFreeProducts);die;\n // finding free associatied produts and adding them in another array\n for($i = 0; $i < count($quoteArrayNonFreeProducts['item_id']) ;$i++){\n $product = Mage::getModel('catalog/product')->load($quoteArrayNonFreeProducts['item_id'][$i]);\n // print_r($product->getAttributeText('buyxgety'));die;\n if($product->getAttributeText('buyxgety') == 'Enable'){\n $Buyxgety_xqty = $product->getBuyxgety_xqty();\n $Buyxgety_ysku = $product->getBuyxgety_ysku();\n $Buyxgety_yqty = $product->getBuyxgety_yqty();\n\n // $Buyxgety_ydiscount = $product->getBuyxgety_ydiscount();\n if(!empty($Buyxgety_xqty) && !empty($Buyxgety_ysku) && !empty($Buyxgety_yqty) ){\n // die($Buyxgety_ysku);\n $AddThisInCart['item_id'][] = Mage::getModel('catalog/product')->getIdBySku($Buyxgety_ysku);\n $AddThisInCart['qty'][] = (int)($quoteArrayNonFreeProducts['qty'][$i]/$Buyxgety_xqty)*$Buyxgety_yqty;\n }\n }\n }\n for($i = 0; $i < count($AddThisInCart['item_id']) ;$i++){\n if(isset($quoteArrayFreeProducts['item_id'])){\n for($j = 0; $j < count($quoteArrayFreeProducts['item_id']) ;$j++){\n if($AddThisInCart['item_id'][$i] == $quoteArrayFreeProducts['item_id'][$j]){\n $finalAdd['item_id'][] = $AddThisInCart['item_id'][$i];\n $finalAdd['qty'][] = $AddThisInCart['qty'][$i] - $quoteArrayFreeProducts['qty'][$j];\n }else{\n $finalAdd['item_id'][] = $AddThisInCart['item_id'][$i];\n $finalAdd['qty'][] = $AddThisInCart['qty'][$i];\n }\n }\n }else{\n $finalAdd['item_id'][] = $AddThisInCart['item_id'][$i];\n $finalAdd['qty'][] = $AddThisInCart['qty'][$i];\n }\n }\n\n for($i = 0; $i < count($finalAdd['item_id']) ;$i++){\n for($j = 0; $j < count($quoteArrayNonFreeProducts['item_id']); $j++){\n if($finalAdd['item_id'][$i] == $quoteArrayNonFreeProducts['item_id'][$j]){\n foreach ($quoteArrayFreeProducts['item_id'] as $value) {\n if($value == $finalAdd['item_id'][$i]){\n $flag = 1;\n }else{\n $flag = 0;\n }\n }\n if($flag == 1){\n $finalAdd['new_row'][] = 0;\n }else{\n $finalAdd['new_row'][] = 1;\n }\n }\n }\n if(!empty($quoteArrayFreeProducts['item_id'])){\n for($j = 0; $j < count($quoteArrayFreeProducts['item_id']); $j++){\n if($finalAdd['item_id'][$i] == $quoteArrayFreeProducts['item_id'][$j]){\n $finalAdd['new_row'][] = 0;\n }else{\n $finalAdd['new_row'][] = 1;\n }\n }\n }else{\n $finalAdd['new_row'][] = 1;\n } \n }\n\n // print_r($finalAdd);die;\n\n if(isset($finalAdd['item_id'])){\n for($i = 0; $i < count($finalAdd['item_id']) ;$i++){\n if($finalAdd['qty'][$i] > 0){\n Mage::getSingleton('core/session')->setMultilineAddingObserver($finalAdd['new_row'][$i]);\n Mage::getSingleton('core/session')->setZeroSettingObserver(1);\n if($finalAdd['new_row'][$i] == 0){\n $cartHelper = Mage::helper('checkout/cart');\n $items = $cartHelper->getCart()->getItems(); \n foreach ($items as $item) \n {\n $itemId = $item->getItemId();\n if($item->getProductId() == $finalAdd['item_id'][$i] && $item->getPrice() == 0){\n $cartHelper->getCart()->removeItem($itemId)->save();\n $this->magicMethod();\n }\n }\n }else{\n $productToAdd = $product->load($finalAdd['item_id'][$i]);\n $params['qty'] = $finalAdd['qty'][$i];\n $params['product'] = $finalAdd['item_id'][$i];\n $cart->addProduct($productToAdd, $params);\n $cart->save();\n }\n }else if($finalAdd['qty'][$i] < 0){\n $cartHelper = Mage::helper('checkout/cart');\n $items = $cartHelper->getCart()->getItems(); \n foreach ($items as $item) \n {\n $itemId = $item->getItemId();\n if($item->getProductId() == $finalAdd['item_id'][$i] && $item->getPrice() == 0){\n $cartHelper->getCart()->removeItem($itemId)->save();\n $this->_updateShoppingCart();\n }\n } \n }\n }\n }\n }" ]
[ "0.62331516", "0.58163726", "0.5627147", "0.55655825", "0.55271214", "0.5480329", "0.5449461", "0.5436912", "0.54091483", "0.53984547", "0.53947747", "0.5388323", "0.5374788", "0.53488964", "0.53362155", "0.5335734", "0.5328582", "0.53280795", "0.5323695", "0.53133184", "0.5273131", "0.5235873", "0.52266276", "0.52232724", "0.5221644", "0.5202018", "0.51864094", "0.5184776", "0.51496136", "0.51361984", "0.51284665", "0.5125358", "0.51214975", "0.51036453", "0.5084915", "0.50848275", "0.5082845", "0.508084", "0.50774825", "0.5068884", "0.5067921", "0.5051337", "0.5041158", "0.5040305", "0.5038664", "0.5038664", "0.50361246", "0.5032846", "0.50296104", "0.5026124", "0.5025286", "0.5018595", "0.5015174", "0.5009843", "0.50031704", "0.49842498", "0.4979029", "0.4972111", "0.49615857", "0.49505624", "0.4944824", "0.49399754", "0.4939389", "0.49387136", "0.4938506", "0.49365407", "0.49346274", "0.49345988", "0.49271536", "0.49214315", "0.49207556", "0.49194694", "0.49183792", "0.49096835", "0.4908156", "0.489458", "0.48927552", "0.4891904", "0.48851514", "0.48846185", "0.48818594", "0.48771665", "0.48737127", "0.48726967", "0.48683935", "0.48669875", "0.48661467", "0.4865811", "0.4862894", "0.48608223", "0.48569277", "0.48547855", "0.48541299", "0.48536822", "0.48532733", "0.4851997", "0.48490295", "0.48464116", "0.48449227", "0.4834919" ]
0.6489516
0
Find Product Variants by priority within variant in departments
public function findVariantStockByVariantPriority(ProductVariant $productVariant): array { try { $maxPriority = (int) $this->queryMaxPriorityWithinVariant($productVariant)->getSingleScalarResult(); } catch (NoResultException $exception) { $maxPriority = 0; } return $this ->queryVariantStockByPriority($productVariant, $maxPriority) ->getSingleResult(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_variant_options_selected($id_product, $variant_options=array())\n{\n\tglobal $mysqli, $id_cart_discount;\n\t\t\n\t$output='';\n\t\t\n\t$groups=get_variant_groups($id_product);\n\t\n\t// build sql \n\t// get all groups for this product\n\tif (sizeof($groups)) {\t\n\t\t$id_product_variant_group = key($groups);\n\t\t\n\t\t$stop = 0;\n\t\t$i=1;\n\t\tforeach ($groups as $id_product_variant_group => $row_group) {\t\t\t\n\t\t\t$joins = array();\t\n\t\t\t$where = array();\t\t\n\t\t\t$group_by = array();\t\n\t\t\t\n\t\t\t$i=1;\n\t\t\tforeach ($groups as $id_product_variant_group2 => $row_group2) {\t\n\t\t\t\t$where_str = array();\n\t\t\t\t\n\t\t\t\t$joins[] = 'INNER JOIN\n\t\t\t\t(product_variant_option AS pvo'.$i.' CROSS JOIN product_variant_group_option AS pvgo'.$i.' CROSS JOIN product_variant_group_option_description AS pvo'.$i.'_desc)\n\t\t\t\tON\n\t\t\t\t(product_variant.id = pvo'.$i.'.id_product_variant AND pvo'.$i.'.id_product_variant_group_option = pvgo'.$i.'.id AND pvgo'.$i.'.id = pvo'.$i.'_desc.id_product_variant_group_option AND pvo'.$i.'_desc.language_code = \"'.$mysqli->escape_string($_SESSION['customer']['language']).'\")';\n\t\t\t\n\t\t\t\t$where_str[] = 'pvo'.$i.'.id_product_variant_group = \"'.$mysqli->escape_string($id_product_variant_group2).'\"';\n\t\t\t\t\n\t\t\t\t$stop=0;\n\t\t\t\tif ($id_product_variant_group != $id_product_variant_group2 && isset($variant_options[$id_product_variant_group2]) && $variant_options[$id_product_variant_group2]) {\n\t\t\t\t\t$id_product_variant_group_option = $variant_options[$id_product_variant_group2];\n\t\t\t\t\t\n\t\t\t\t\t$where_str[] = 'pvo'.$i.'.id_product_variant_group_option = \"'.$mysqli->escape_string($id_product_variant_group_option).'\"';\n\t\t\t\t} else { \n\t\t\t\t\t$stop=1;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\tif ($id_cart_discount) {\n\t\t\t\t\t$joins[] = 'LEFT JOIN\n\t\t\t\t\t(rebate_coupon_product AS rcp'.$i.' CROSS JOIN rebate_coupon AS rcpr'.$i.' CROSS JOIN cart_discount AS rcd'.$i.') \n\t\t\t\t\tON\n\t\t\t\t\t(product_variant.id_product = rcp'.$i.'.id_product AND rcp'.$i.'.id_rebate_coupon = rcpr'.$i.'.id ANd rcpr'.$i.'.id = rcd'.$i.'.id_rebate_coupon AND rcd'.$i.'.id = \"'.$mysqli->escape_string($id_cart_discount).'\")';\n\t\t\t\t\t\n\t\t\t\t\t$joins[] = 'LEFT JOIN\n\t\t\t\t\t(product_category AS pc'.$i.' CROSS JOIN rebate_coupon_category AS rcc'.$i.' CROSS JOIN rebate_coupon AS rccr'.$i.' CROSS JOIN cart_discount AS rccd'.$i.') \n\t\t\t\t\tON\n\t\t\t\t\t(product_variant.id_product = pc'.$i.'.id_product AND pc'.$i.'.id_category = rcc'.$i.'.id_category AND rcc'.$i.'.id_rebate_coupon = rccr'.$i.'.id ANd rccr'.$i.'.id = rcd'.$i.'.id_rebate_coupon AND rcd'.$i.'.id = \"'.$mysqli->escape_string($id_cart_discount).'\")';\n\t\t\t\t\t\n\t\t\t\t\t$where_str[] = '(rcp'.$i.'.id_rebate_coupon IS NOT NULL OR rcc'.$i.'.id_rebate_coupon IS NOT NULL)';\n\t\t\t\t}*/\n\t\t\t\t\n\t\t\t\t$select = 'pvo'.$i.'.id_product_variant_group_option,\n\t\t\t\tpvo'.$i.'.id_product_variant_group,\n\t\t\t\tpvo'.$i.'_desc.name,\n\t\t\t\tpvgo'.$i.'.swatch_type,\n\t\t\t\tpvgo'.$i.'.color,\n\t\t\t\tpvgo'.$i.'.color2,\n\t\t\t\tpvgo'.$i.'.color3,\n\t\t\t\tpvgo'.$i.'.filename';\n\t\t\t\t\n\t\t\t\t$where[] = implode(' AND ',$where_str);\n\t\t\t\t\n\t\t\t\t$group_by[] = 'pvo'.$i.'.id_product_variant_group_option';\n\t\t\t\t\n\t\t\t\t$order_by = 'pvgo'.$i.'.sort_order ASC';\n\t\t\t\t\n\t\t\t\t$i++;\n\t\t\t\t\n\t\t\t\tif ($stop) break;\n\t\t\t}\n\t\t\t\n\t\t\t$joins = implode(\"\\r\\n\",$joins);\n\t\t\t$where = implode(' AND ',$where);\n\t\t\t$group_by = implode(',',$group_by);\n\t\t\n\t\t\n\t\t\t// we need to list all main group options\n\t\t\tif ($result_group_option = $mysqli->query('SELECT\n\t\t\t'.$select.'\n\t\t\tFROM\n\t\t\tproduct_variant\n\t\t\t\n\t\t\t'.$joins.'\n\t\t\t\n\t\t\tWHERE\n\t\t\tproduct_variant.active = 1\n\t\t\tAND\n\t\t\tproduct_variant.id_product = \"'.$mysqli->escape_string($id_product).'\"\n\t\t\tAND\n\t\t\t'.$where.'\n\t\t\tGROUP BY '.\n\t\t\t$group_by.'\n\t\t\tORDER BY '.\n\t\t\t$order_by)) {\n\t\t\t\tif ($result_group_option->num_rows) {\n\t\t\t\t\t$input_type = $groups[$id_product_variant_group]['input_type'];\n\t\t\t\t\t\n\t\t\t\t\t$output .= '<div style=\"margin-top:10px; margin-bottom:10px;\" id=\"variant_group_'.$id_product_variant_group.'\">\n\t\t\t\t\t<div style=\"margin-bottom:5px;\"><strong>'.$row_group['name'].'</strong></div>';\n\t\t\n\t\t\t\t\tif (!$input_type) {\n\t\t\t\t\t\t$output .= '<select name=\"variant_options['.$id_product_variant_group.']\">\n\t\t\t\t\t\t<option value=\"\">--</option>';\n\t\t\t\t\t}\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t$current_selected = isset($variant_options[$id_product_variant_group]) ? $variant_options[$id_product_variant_group]:0;\n\t\t\t\t\t\n\t\t\t\t\t$i=0;\n\t\t\t\t\twhile ($row_group_option = $result_group_option->fetch_assoc()) {\n\t\t\t\t\t\t$id_product_variant_group_option = $row_group_option['id_product_variant_group_option'];\n\t\t\t\t\t\t\n\t\t\t\t\t\tswitch ($input_type) {\n\t\t\t\t\t\t\t// dropdown\n\t\t\t\t\t\t\tcase 0:\n\t\t\t\t\t\t\t\t$output .= '<option value=\"'.$id_product_variant_group_option.'\" '.(($current_selected == $id_product_variant_group_option) ? 'selected=\"selected\"':'').'>'.$row_group_option['name'].'</option>';\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t// radio\n\t\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\t\t$output .= '<div>\n\t\t\t\t\t\t\t\t<input type=\"radio\" name=\"variant_options['.$id_product_variant_group.']\" id=\"product_variant_'.$id_product_variant_group.'_'.$id_product_variant_group_option.'\" value=\"'.$id_product_variant_group_option.'\" '.(($current_selected == $id_product_variant_group_option) ? 'checked=\"checked\"':'').'>&nbsp;<label for=\"product_variant_'.$id_product_variant_group.'_'.$id_product_variant_group_option.'\">'.$row_group_option['name'].'</label>\n\t\t\t\t\t\t\t\t</div>';\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t// swatch\n\t\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\t\t$swatch_type = $row_group_option['swatch_type'];\n\t\t\t\t\t\t\t\t$color = $row_group_option['color'];\n\t\t\t\t\t\t\t\t$color2 = $row_group_option['color2'];\n\t\t\t\t\t\t\t\t$color3 = $row_group_option['color3'];\n\t\t\t\t\t\t\t\t$filename = $row_group_option['filename'];\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif ($i==8) { $output .= '<div class=\"cb\"></div>'; $i=0; }\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tswitch ($swatch_type) {\n\t\t\t\t\t\t\t\t\t// 1 color\n\t\t\t\t\t\t\t\t\tcase 0:\n\t\t\t\t\t\t\t\t\t\t$output .= '<a href=\"javascript:void(0);\" class=\"fl variant_color_outer_border '.(($current_selected == $id_product_variant_group_option) ? 'selected':'').'\">\n\t\t\t\t\t\t\t\t\t\t<input type=\"radio\" id=\"variant_color_'.$id_product_variant_group.'_'.$id_product_variant_group_option.'\" name=\"variant_options['.$id_product_variant_group.']\" value=\"'.$id_product_variant_group_option.'\" '.(($current_selected == $id_product_variant_group_option) ? 'checked=\"checked\"':'').' />\n\t\t\t\t\t\t\t\t\t\t<div class=\"variant_color_inner_border\">\n\t\t\t\t\t\t\t\t\t\t<div style=\"background-color: '.$color.';\" class=\"variant_color\"></div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t</a>';\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t// 2 color\n\t\t\t\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\t\t\t\t$output .= '<a href=\"javascript:void(0);\" class=\"fl variant_color_outer_border '.(($current_selected == $id_product_variant_group_option) ? 'selected':'').'\">\n\t\t\t\t\t\t\t\t\t\t<input type=\"radio\" id=\"variant_color_'.$id_product_variant_group.'_'.$id_product_variant_group_option.'\" name=\"variant_options['.$id_product_variant_group.']\" value=\"'.$id_product_variant_group_option.'\" '.(($current_selected == $id_product_variant_group_option) ? 'checked=\"checked\"':'').' />\n\t\t\t\t\t\t\t\t\t\t<div class=\"variant_color_inner_border\"><div class=\"variant_color\">\n\t\t\t\t\t\t\t\t\t\t<div class=\"fl\" style=\"width:10px; height:20px; background-color: '.$color.';\"></div>\n\t\t\t\t\t\t\t\t\t\t<div class=\"fl\" style=\"width:10px; height:20px; background-color: '.$color2.';\"></div>\t\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\t<div class=\"cb\"></div>\n\t\t\t\t\t\t\t\t\t\t</div></div>\n\t\t\t\t\t\t\t\t\t\t</a>';\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t// 3 color\n\t\t\t\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\t\t\t\t$output .= '<a href=\"javascript:void(0);\" class=\"fl variant_color_outer_border '.(($current_selected == $id_product_variant_group_option) ? 'selected':'').'\">\n\t\t\t\t\t\t\t\t\t\t<input type=\"radio\" id=\"variant_color_'.$id_product_variant_group.'_'.$id_product_variant_group_option.'\" name=\"variant_options['.$id_product_variant_group.']\" value=\"'.$id_product_variant_group_option.'\" '.(($current_selected == $id_product_variant_group_option) ? 'checked=\"checked\"':'').' />\t\n\t\t\t\t\t\t\t\t\t\t<div class=\"variant_color_inner_border\"><div class=\"variant_color\">\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\t<div class=\"fl\" style=\"width:7px; height:20px; background-color: '.$color.';\"></div>\n\t\t\t\t\t\t\t\t\t\t<div class=\"fl\" style=\"width:6px; height:20px; background-color: '.$color2.';\"></div>\n\t\t\t\t\t\t\t\t\t\t<div class=\"fl\" style=\"width:7px; height:20px; background-color: '.$color3.';\"></div>\n\t\t\t\t\t\t\t\t\t\t<div class=\"cb\"></div>\n\t\t\t\t\t\t\t\t\t\t</div></div>\n\t\t\t\t\t\t\t\t\t\t</a>';\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t// file\n\t\t\t\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\t\t\t\t$output .= '<a href=\"javascript:void(0);\" class=\"fl variant_color_outer_border '.(($current_selected == $id_product_variant_group_option) ? 'selected':'').'\">\n\t\t\t\t\t\t\t\t\t\t<input type=\"radio\" id=\"variant_color_'.$id_product_variant_group.'_'.$id_product_variant_group_option.'\" name=\"variant_options['.$id_product_variant_group.']\" value=\"'.$id_product_variant_group_option.'\" '.(($current_selected == $id_product_variant_group_option) ? 'checked=\"checked\"':'').' />\t\n\t\t\t\t\t\t\t\t\t\t<div class=\"variant_color_inner_border\"><div class=\"variant_color\">\t\t\n\t\t\t\t\t\t\t\t\t\t<img src=\"/images/products/swatch/'.$filename.'\" width=\"20\" height=\"20\" border=\"0\" hspace=\"0\" vspace=\"0\" />\n\t\t\t\t\t\t\t\t\t\t</div></div>\n\t\t\t\t\t\t\t\t\t\t</a>';\n\t\t\t\t\t\t\t\t\t\tbreak;\t\t\t\t\t\t\t\t\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\t\t\t}\t\t\t\t\n\t\t\t\n\t\t\t\t\t\t\t\t++$i;\t\t\t\t\t\n\t\t\t\t\t\t\t\tbreak;\t\n\t\t\t\t\t\t}\t\n\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\tswitch ($input_type) {\n\t\t\t\t\t\t// dropdown\n\t\t\t\t\t\tcase 0:\n\t\t\t\t\t\t\t$output .= '</select>\n\t\t\t\t\t\t\t<script type=\"text/javascript\">\n\t\t\t\t\t\t\t/* <![CDATA[ */\n\t\t\n\t\t\n\t\t\t\t\t\t\tjQuery(function(){\n\t\t\t\t\t\t\t\tjQuery(\"select[name=\\'variant_options['.$id_product_variant_group.']\\']\").change(function(){\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t// get values\n\t\t\t\t\t\t\t\t\t// ajax query to get new variants\n\t\t\t\t\t\t\t\t\tload_variant('.$id_product_variant_group.', jQuery(this).val());\n\t\t\t\t\t\t\t\t\tif (jQuery(\"#display_error\").css(\"display\") == \"block\"){\njQuery(\"#display_error\").hide(\"blind\", { direction: \"vertical\" }, 1000);\n}\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\t/* ]]> */\n\t\t\t\t\t\t\t</script>';\t\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t// radio\n\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\t$output .= '<script type=\"text/javascript\">\n\t\t\t\t\t\t\t/* <![CDATA[ */\n\t\t\n\t\t\t\t\t\t\tjQuery(function(){\n\t\t\t\t\t\t\t\tjQuery(\"input[name=\\'variant_options['.$id_product_variant_group.']\\']\").change(function(){\n\t\t\n\t\t\t\t\t\t\t\t\t// get values\n\t\t\t\t\t\t\t\t\t// ajax query to get new variants\n\t\t\t\t\t\t\t\t\tload_variant('.$id_product_variant_group.', jQuery(this).val());\n\t\t\t\t\t\t\t\t\tif (jQuery(\"#display_error\").css(\"display\") == \"block\"){\njQuery(\"#display_error\").hide(\"blind\", { direction: \"vertical\" }, 1000);\n}\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\t</script>';\t\t\t\t\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t// swatch\n\t\t\t\t\t\tcase 2:\t\t\t\t\n\t\t\t\t\t\t\t$output .= '<script type=\"text/javascript\">\n\t\t\t\t\t\t\t/* <![CDATA[ */\n\t\t\n\t\t\t\t\t\t\tjQuery(function(){\n\t\t\t\t\t\t\t\tjQuery(\"a.variant_color_outer_border\").click(function(){\n\t\t\t\t\t\t\t\t\tif (!jQuery(\"input[id^=\\'variant_color_\\']:checked\",this).length) { \n\t\t\t\t\t\t\t\t\t\tjQuery(\"input[id^=\\'variant_color_\\']\",this).attr(\"checked\",true);\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tjQuery(\"a.variant_color_outer_border\").removeClass(\"selected\");\n\t\t\t\t\t\t\t\t\t\tjQuery(this).addClass(\"selected\");\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t// get values\n\t\t\t\t\t\t\t\t\t\t// ajax query to get new variants\n\t\t\t\t\t\t\t\t\t\tload_variant('.$id_product_variant_group.', jQuery(\"input[id^=\\'variant_color_\\']\",this).val());\t\n\t\t\t\t\t\t\t\t\t\tif (jQuery(\"#display_error\").css(\"display\") == \"block\"){\njQuery(\"#display_error\").hide(\"blind\", { direction: \"vertical\" }, 1000);\n}\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/* ]]> */\n\t\t\t\t\t\t\t</script>';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t$output .= '<div class=\"cb\"></div></div>';\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$result_group_option->free();\n\t\t\t} else {\n\t\t\t\tthrow new Exception('An error occured while trying to get variant group options.'.\"\\r\\n\\r\\n\".$mysqli->error);\t\t\n\t\t\t}\n\t\t\t\n\t\t\tif (isset($variant_options[$id_product_variant_group]) && $variant_options[$id_product_variant_group] == 0) break;\n\t\t}\t\n\t}\n\t\n\treturn $output;\t\n}", "function get_variant_options($id_product, $variant_options=array())\n{\n\tglobal $mysqli, $id_cart_discount;\n\t\n\t$output='';\n\t\n\t$groups=get_variant_groups($id_product);\n\t\n\t// build sql \n\t// get all groups for this product\n\tif (sizeof($groups)) {\t\t\n\t\tend($groups); \n\t\t$id_product_variant_group = key($groups); \n\t\n\t\tif (isset($variant_options[$id_product_variant_group]) && $variant_options[$id_product_variant_group]) return false;\n\t\n\t\t$joins = array();\t\n\t\t$where = array();\t\t\n\t\t$group_by = array();\t\n\t\t\n\t\t$i=1;\n\t\tforeach ($groups as $id_product_variant_group => $row_group) {\t\n\t\t\t$where_str = array();\n\t\t\t\n\t\t\t$joins[] = 'INNER JOIN\n\t\t\t(product_variant_option AS pvo'.$i.' CROSS JOIN product_variant_group_option AS pvgo'.$i.' CROSS JOIN product_variant_group_option_description AS pvo'.$i.'_desc)\n\t\t\tON\n\t\t\t(product_variant.id = pvo'.$i.'.id_product_variant AND pvo'.$i.'.id_product_variant_group_option = pvgo'.$i.'.id AND pvgo'.$i.'.id = pvo'.$i.'_desc.id_product_variant_group_option AND pvo'.$i.'_desc.language_code = \"'.$mysqli->escape_string($_SESSION['customer']['language']).'\")';\n\t\t\n\t\t\t$where_str[] = 'pvo'.$i.'.id_product_variant_group = \"'.$mysqli->escape_string($id_product_variant_group).'\"';\n\t\t\t\n\t\t\t$stop=0;\n\t\t\tif (isset($variant_options[$id_product_variant_group]) && $variant_options[$id_product_variant_group]) {\n\t\t\t\t$id_product_variant_group_option = $variant_options[$id_product_variant_group];\n\t\t\t\t\n\t\t\t\t$where_str[] = 'pvo'.$i.'.id_product_variant_group_option = \"'.$mysqli->escape_string($id_product_variant_group_option).'\"';\n\t\t\t} else { \n\t\t\t\t$stop=1;\n\t\t\t}\n\t\t\t\n\t\t\tif ($id_cart_discount) {\n\t\t\t\t$joins[] = 'LEFT JOIN\n\t\t\t\t(rebate_coupon_product AS rcp'.$i.' CROSS JOIN rebate_coupon AS rcpr'.$i.' CROSS JOIN cart_discount AS rcd'.$i.') \n\t\t\t\tON\n\t\t\t\t(product_variant.id_product = rcp'.$i.'.id_product AND rcp'.$i.'.id_rebate_coupon = rcpr'.$i.'.id ANd rcpr'.$i.'.id = rcd'.$i.'.id_rebate_coupon AND rcd'.$i.'.id = \"'.$mysqli->escape_string($id_cart_discount).'\")';\n\t\t\t\t\n\t\t\t\t$joins[] = 'LEFT JOIN\n\t\t\t\t(product_category AS pc'.$i.' CROSS JOIN rebate_coupon_category AS rcc'.$i.' CROSS JOIN rebate_coupon AS rccr'.$i.' CROSS JOIN cart_discount AS rccd'.$i.') \n\t\t\t\tON\n\t\t\t\t(product_variant.id_product = pc'.$i.'.id_product AND pc'.$i.'.id_category = rcc'.$i.'.id_category AND rcc'.$i.'.id_rebate_coupon = rccr'.$i.'.id ANd rccr'.$i.'.id = rcd'.$i.'.id_rebate_coupon AND rcd'.$i.'.id = \"'.$mysqli->escape_string($id_cart_discount).'\")';\n\t\t\t\t\n\t\t\t\t$where_str[] = '(rcp'.$i.'.id_rebate_coupon IS NOT NULL OR rcc'.$i.'.id_rebate_coupon IS NOT NULL)';\n\t\t\t}\t\t\t\n\t\t\t\n\t\t\t$select = 'pvo'.$i.'.id_product_variant_group_option,\n\t\t\tpvo'.$i.'.id_product_variant_group,\n\t\t\tpvo'.$i.'_desc.name,\n\t\t\tpvgo'.$i.'.swatch_type,\n\t\t\tpvgo'.$i.'.color,\n\t\t\tpvgo'.$i.'.color2,\n\t\t\tpvgo'.$i.'.color3,\n\t\t\tpvgo'.$i.'.filename';\n\t\t\t\n\t\t\t$where[] = implode(' AND ',$where_str);\n\t\t\t\n\t\t\t$group_by[] = 'pvo'.$i.'.id_product_variant_group_option';\n\t\t\t\n\t\t\t$order_by = 'pvgo'.$i.'.sort_order ASC';\n\t\t\t\n\t\t\t$i++;\n\t\t\t\n\t\t\tif ($stop) break;\n\t\t}\n\t\t\n\t\t$joins = implode(\"\\r\\n\",$joins);\n\t\t$where = implode(' AND ',$where);\n\t\t$group_by = implode(',',$group_by);\n\t\t\t\t\t\n\t\tif ($result_options = $mysqli->query('SELECT\n\t\t'.$select.'\n\t\tFROM\t\t\n\t\tproduct_variant\n\t\t\n\t\t'.$joins.'\n\t\t\n\t\tWHERE\n\t\tproduct_variant.active = 1 \n\t\tAND\n\t\tproduct_variant.id_product = \"'.$mysqli->escape_string($id_product).'\"\n\t\tAND\n\t\t'.$where.'\n\t\tGROUP BY '.\n\t\t$group_by.'\n\t\tORDER BY '.\n\t\t$order_by)) {\t\t\t\n\t\t\tif ($result_options->num_rows) {\n\t\t\t\t$input_type = $groups[$id_product_variant_group]['input_type'];\n\t\n\t\t\t\t$output .= '<div style=\"margin-top:10px; margin-bottom:10px;\" id=\"variant_group_'.$id_product_variant_group.'\">\n\t\t\t\t<div style=\"margin-bottom:5px;\"><strong>'.$groups[$id_product_variant_group]['name'].'</strong></div>';\n\t\n\t\t\t\tif (!$input_type) {\n\t\t\t\t\t$output .= '<select name=\"variant_options['.$id_product_variant_group.']\">\n\t\t\t\t\t<option value=\"0\">--</option>';\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$i=0;\n\t\t\t\twhile ($row_option = $result_options->fetch_assoc()) {\n\t\t\t\t\t$id_product_variant_group_option = $row_option['id_product_variant_group_option'];\n\t\t\t\t\t\n\t\t\t\t\tswitch ($input_type) {\n\t\t\t\t\t\t// dropdown\n\t\t\t\t\t\tcase 0:\n\t\t\t\t\t\t\t$output .= '<option value=\"'.$id_product_variant_group_option.'\">'.$row_option['name'].'</option>';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t// radio\n\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\t$output .= '<div><input type=\"radio\" name=\"variant_options['.$id_product_variant_group.']\" id=\"product_variant_'.$id_product_variant_group.'_'.$id_product_variant_group_option.'\" value=\"'.$id_product_variant_group_option.'\">&nbsp;<label for=\"product_variant_'.$id_product_variant_group.'_'.$id_product_variant_group_option.'\">'.$row_option['name'].'</label></div>';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t// swatch\n\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\t$swatch_type = $row_option['swatch_type'];\n\t\t\t\t\t\t\t$color = $row_option['color'];\n\t\t\t\t\t\t\t$color2 = $row_option['color2'];\n\t\t\t\t\t\t\t$color3 = $row_option['color3'];\n\t\t\t\t\t\t\t$filename = $row_option['filename'];\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif ($i==8) { $output .= '<div class=\"cb\"></div>'; $i=0; }\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tswitch ($swatch_type) {\n\t\t\t\t\t\t\t\t// 1 color\n\t\t\t\t\t\t\t\tcase 0:\n\t\t\t\t\t\t\t\t\t$output .= '<a href=\"javascript:void(0);\" class=\"fl variant_color_outer_border\"><input type=\"radio\" id=\"variant_color_'.$id_product_variant_group.'_'.$id_product_variant_group_option.'\" name=\"variant_options['.$id_product_variant_group.']\" value=\"'.$id_product_variant_group_option.'\" /><div class=\"variant_color_inner_border\"><div style=\"background-color: '.$color.';\" class=\"variant_color\"></div></div></a>';\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t// 2 color\n\t\t\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\t\t\t$output .= '<a href=\"javascript:void(0);\" class=\"fl variant_color_outer_border\">\n\t\t\t\t\t\t\t\t\t<input type=\"radio\" id=\"variant_color_'.$id_product_variant_group.'_'.$id_product_variant_group_option.'\" name=\"variant_options['.$id_product_variant_group.']\" value=\"'.$id_product_variant_group_option.'\" />\n\t\t\t\t\t\t\t\t\t<div class=\"variant_color_inner_border\"><div class=\"variant_color\">\n\t\t\t\t\t\t\t\t\t<div class=\"fl\" style=\"width:10px; height:20px; background-color: '.$color.';\"></div>\n\t\t\t\t\t\t\t\t\t<div class=\"fl\" style=\"width:10px; height:20px; background-color: '.$color2.';\"></div>\t\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<div class=\"cb\"></div>\n\t\t\t\t\t\t\t\t\t</div></div>\n\t\t\t\t\t\t\t\t\t</a>';\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t// 3 color\n\t\t\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\t\t\t$output .= '<a href=\"javascript:void(0);\" class=\"fl variant_color_outer_border\">\n\t\t\t\t\t\t\t\t\t<input type=\"radio\" id=\"variant_color_'.$id_product_variant_group.'_'.$id_product_variant_group_option.'\" name=\"variant_options['.$id_product_variant_group.']\" value=\"'.$id_product_variant_group_option.'\" />\t\n\t\t\t\t\t\t\t\t\t<div class=\"variant_color_inner_border\"><div class=\"variant_color\">\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<div class=\"fl\" style=\"width:7px; height:20px; background-color: '.$color.';\"></div>\n\t\t\t\t\t\t\t\t\t<div class=\"fl\" style=\"width:6px; height:20px; background-color: '.$color2.';\"></div>\n\t\t\t\t\t\t\t\t\t<div class=\"fl\" style=\"width:7px; height:20px; background-color: '.$color3.';\"></div>\n\t\t\t\t\t\t\t\t\t<div class=\"cb\"></div>\n\t\t\t\t\t\t\t\t\t</div></div>\n\t\t\t\t\t\t\t\t\t</a>';\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t// file\n\t\t\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\t\t\t$output .= '<a href=\"javascript:void(0);\" class=\"fl variant_color_outer_border\">\n\t\t\t\t\t\t\t\t\t<input type=\"radio\" id=\"variant_color_'.$id_product_variant_group.'_'.$id_product_variant_group_option.'\" name=\"variant_options['.$id_product_variant_group.']\" value=\"'.$id_product_variant_group_option.'\" />\t\n\t\t\t\t\t\t\t\t\t<div class=\"variant_color_inner_border\"><div class=\"variant_color\">\t\t\n\t\t\t\t\t\t\t\t\t<img src=\"/images/products/swatch/'.$filename.'\" width=\"20\" height=\"20\" border=\"0\" hspace=\"0\" vspace=\"0\" />\n\t\t\t\t\t\t\t\t\t</div></div>\n\t\t\t\t\t\t\t\t\t</a>';\n\t\t\t\t\t\t\t\t\tbreak;\t\t\t\t\t\t\t\t\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\t\t}\t\t\t\t\n\t\t\n\t\t\t\t\t\t\t++$i;\t\t\t\t\t\n\t\t\t\t\t\t\tbreak;\t\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tswitch ($input_type) {\n\t\t\t\t\t// dropdown\n\t\t\t\t\tcase 0:\n\t\t\t\t\t\t$output .= '</select>\n\t\t\t\t\t\t<script type=\"text/javascript\">\n\t\t\t\t\t\t/* <![CDATA[ */\n\t\n\t\n\t\t\t\t\t\tjQuery(function(){\n\t\t\t\t\t\t\tjQuery(\"select[name=\\'variant_options['.$id_product_variant_group.']\\']\").change(function(){\n\t\t\t\t\t\t\t\t// get values\n\t\t\t\t\t\t\t\t// ajax query to get new variants\n\t\t\t\t\t\t\t\tload_variant('.$id_product_variant_group.', jQuery(this).val());\n\t\t\t\t\t\t\t\tif (jQuery(\"#display_error\").css(\"display\") == \"block\"){\njQuery(\"#display_error\").hide(\"blind\", { direction: \"vertical\" }, 1000);\n}\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\t/* ]]> */\n\t\t\t\t\t\t</script>';\t\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t// radio\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\t$output .= '<script type=\"text/javascript\">\n\t\t\t\t\t\t/* <![CDATA[ */\n\t\n\t\t\t\t\t\tjQuery(function(){\n\t\t\t\t\t\t\tjQuery(\"input[name=\\'variant_options['.$id_product_variant_group.']\\']\").change(function(){\n\t\n\t\t\t\t\t\t\t\t// get values\n\t\t\t\t\t\t\t\t// ajax query to get new variants\n\t\t\t\t\t\t\t\tload_variant('.$id_product_variant_group.', jQuery(this).val());\n\t\t\t\t\t\t\t\tif (jQuery(\"#display_error\").css(\"display\") == \"block\"){\njQuery(\"#display_error\").hide(\"blind\", { direction: \"vertical\" }, 1000);\n}\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\t</script>';\t\t\t\t\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t// swatch\n\t\t\t\t\tcase 2:\t\t\t\t\n\t\t\t\t\t\t$output .= '<script type=\"text/javascript\">\n\t\t\t\t\t\t/* <![CDATA[ */\n\t\n\t\t\t\t\t\tjQuery(function(){\n\t\t\t\t\t\t\tjQuery(\"a.variant_color_outer_border\").click(function(){\n\t\t\t\t\t\t\t\tif (!jQuery(\"input[id^=\\'variant_color_\\']:checked\",this).length) { \n\t\t\t\t\t\t\t\t\tjQuery(\"input[id^=\\'variant_color_\\']\",this).attr(\"checked\",true);\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tjQuery(\"a.variant_color_outer_border\").removeClass(\"selected\");\n\t\t\t\t\t\t\t\t\tjQuery(this).addClass(\"selected\");\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t// get values\n\t\t\t\t\t\t\t\t\t// ajax query to get new variants\n\t\t\t\t\t\t\t\t\tload_variant('.$id_product_variant_group.', jQuery(\"input[id^=\\'variant_color_\\']\",this).val());\n\t\t\t\t\t\t\t\t\tif (jQuery(\"#display_error\").css(\"display\") == \"block\"){\njQuery(\"#display_error\").hide(\"blind\", { direction: \"vertical\" }, 1000);\n}\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\t/* ]]> */\n\t\t\t\t\t\t</script>';\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$output .= '<div class=\"cb\"></div></div>';\n\t\t\t} else {\n\t\t\t\t$output .= 'No options found.';\n\t\t\t}\n\t\t} else {\n\t\t\tthrow new Exception('An error occured while trying to get variant group options.'.\"\\r\\n\\r\\n\".$mysqli->error);\t\t\n\t\t}\n\t}\n\t\n\treturn $output;\n}", "public function getAvailChildProds($parentProdId, $fromDate, $toDate, $extendedDays, $defaultFilterArr,$orderedProdsArr=array(),$selectedFilter = 0)\n {\n// echo $parentProdId.'---'.$extendedDays.'<br />';\n// dd($defaultFilterArr);\n $availableProdsArr = array();\n $getChildProdsArr = $this->getChildProducts($parentProdId);\n\n if (!empty($getChildProdsArr)) {\n /*For handicap*/\n if (empty($defaultFilterArr)) {\n $defaultFilterArr = (!empty(session()->get('defaultFilterArr')) ? session()->get('defaultFilterArr') : Config::get('constants.Default_Filter'));\n }\n /*if($selectedFilter == 60 && $defaultFilterArr[0] == 60){\n $defaultFilterArr[1] = 55;\n $defaultFilterArr[2] = 27;\n $defaultFilterArr[3] = 58;\n $defaultFilterArr[4] = 0;\n }*/\n// $HandicapAttribArr = $this->getProdIDByAttributes($defaultFilterArr[4]);\n\n $FlexAttribArr = $this->getProdIDByAttributes($defaultFilterArr[3]);\n\n $HandAttribArr = $this->getProdIDByAttributes($defaultFilterArr[1]);\n\n $ShaftAttribArr = $this->getProdIDByAttributes($defaultFilterArr[2]);\n\n $GenderAttribArr = $this->getProdIDByAttributes($defaultFilterArr[0]);\n $addedProdArr = array();\n if(count($orderedProdsArr)>0){\n foreach ($orderedProdsArr as $orderedProds){\n array_push($addedProdArr, $orderedProds->product_id);\n }\n }\n// in_array($childArr->id, $HandicapAttribArr)&&\n foreach ($getChildProdsArr as $childArr) {\n if (in_array($childArr->id, $FlexAttribArr) && in_array($childArr->id, $HandAttribArr) && in_array($childArr->id, $ShaftAttribArr) && in_array($childArr->id, $GenderAttribArr) && !in_array($childArr->id, $addedProdArr)) {\n\n $CheckProdArr = $this->checkChildForBooking($childArr->id, $fromDate, $toDate, $extendedDays);\n /*if($parentProdId == '123'){\n echo $childArr->id.' --- '.$fromDate.' ---- '.$toDate.' ---- '.$extendedDays;\n echo '<br />';\n print_r($CheckProdArr);\n echo '<br />';\n }*/\n if (empty($CheckProdArr[0])) {\n $ArrtibSetArr = $this->getProdAttribsByProdId($childArr->id);\n if(count($ArrtibSetArr)>0){\n foreach ($ArrtibSetArr as $attrib){\n if($attrib->attrib_name == 'Handicap'){\n $childArr->handicap = $attrib->value;\n }\n }\n }\n array_push($availableProdsArr, $childArr);\n }\n }\n }\n }\n\n return $availableProdsArr;\n }", "function fn_product_variations_get_variation_by_selected_options($product, $product_options, $selected_options, $index = 0)\n{\n /** @var ProductManager $product_manager */\n $product_manager = Tygh::$app['addons.product_variations.product.manager'];\n\n $name_part = array($product['product']);\n $variation_code = $product_manager->getVariationCode($product['product_id'], $selected_options);\n $options = array();\n\n foreach ($selected_options as $option_id => $variant_id) {\n $option_id = (int) $option_id;\n $variant_id = (int) $variant_id;\n\n $option = $product_options[$option_id];\n $option['value'] = $variant_id;\n\n $variant = $product_options[$option_id]['variants'][$variant_id];\n\n $name_part[] = $option['option_name'] . ': ' .$variant['variant_name'];\n $options[$option_id] = $option;\n }\n\n $combination = array(\n 'name' => implode(', ', $name_part),\n 'price' => $product['price'],\n 'list_price' => $product['list_price'],\n 'weight' => $product['weight'],\n 'amount' => empty($product['amount']) ? 1 : $product['amount'],\n 'code' => !empty($product['product_code']) ? $product['product_code'] . $index : '',\n 'options' => $options,\n 'selected_options' => $selected_options,\n 'variation' => $variation_code\n );\n\n return $combination;\n}", "function fn_look_through_variants($product_id, $amount, $options, $variants)\n{\n\t\n\n\t$position = 0;\n\t$hashes = array();\n\t$combinations = fn_get_options_combinations($options, $variants);\n\n\tif (!empty($combinations)) {\n\t\tforeach ($combinations as $combination) {\n\n\t\t\t$_data = array();\n\t\t\t$_data['product_id'] = $product_id;\n\n\t\t\t$_data['combination_hash'] = fn_generate_cart_id($product_id, array('product_options' => $combination));\n\n\t\t\tif (array_search($_data['combination_hash'], $hashes) === false) {\n\t\t\t\t$hashes[] = $_data['combination_hash'];\n\t\t\t\t$_data['combination'] = fn_get_options_combination($combination);\n\t\t\t\t$_data['position'] = $position++;\n\n\t\t\t\t$old_data = db_get_row(\n\t\t\t\t\t\"SELECT combination_hash, amount, product_code \"\n\t\t\t\t\t. \"FROM ?:product_options_inventory \"\n\t\t\t\t\t. \"WHERE product_id = ?i AND combination_hash = ?i AND temp = 'Y'\", \n\t\t\t\t\t$product_id, $_data['combination_hash']\n\t\t\t\t);\n\n\t\t\t\t$_data['amount'] = isset($old_data['amount']) ? $old_data['amount'] : $amount;\n\t\t\t\t$_data['product_code'] = isset($old_data['product_code']) ? $old_data['product_code'] : '';\n\n\t\t\t\tdb_query(\"REPLACE INTO ?:product_options_inventory ?e\", $_data);\n\t\t\t\t$combinations[] = $combination;\n\t\t\t}\n\t\t\techo str_repeat('. ', count($combination));\n\t\t}\n\t}\n\t\n\t\n\n\treturn $combinations;\n}", "public function testProductGetVariants()\n {\n $product = $this->find('product', 1);\n \n $variants = $product->getVariants();\n \n $productColor = $this->find('productColor', 1);\n $productSize = $this->find('productSize', 1);\n \n $this->assertTrue(\n $variants[$productSize->getId()][$productColor->getId()]\n );\n }", "function getAllProductVariantOptions(Request $request) {\n $collectionName = $request->query->get('collectionName');\n $arr = [];\n $em = $this->getDoctrine()->getManager();\n $products = [];\n if(strpos($collectionName, ';') !== false) {\n $collectionArray = explode(';', $collectionName);\n foreach ($collectionArray as $collectionName) {\n $collection = $em->getRepository('App:ProductTypes')->findOneBy(['name' => $collectionName]);\n $products[] = $em->getRepository('App:Products')->findBy(['type' => $collection]);\n }\n } else {\n $collection = $em->getRepository('App:ProductTypes')->findOneBy(['name' => $collectionName]);\n $products = $em->getRepository('App:Products')->findBy(['type' => $collection]);\n\n if (!$collection) {\n $brand = $em->getRepository('App:Brands')->findOneBy(['name' => $collectionName]);\n $products = $em->getRepository('App:Products')->findBy(['brand' => $brand]);\n }\n }\n\n $colorsArr = [];\n $sizeArr = [];\n $brandArr = [];\n\n foreach ($products as $product) {\n if(is_array($product)) {\n foreach ($product as $item) {\n if ($item->getSize()) {\n $sizeArr[] = $item->getSize()->getSize();\n }\n\n if($item->getColor()) {\n $colorsArr[] = $item->getColor()->getName();\n }\n\n if ($item->getBrand()) {\n $brandArr[] = $item->getBrand()->getName();\n }\n }\n } else {\n if ($product->getSize()) {\n $sizeArr[] = $product->getSize()->getSize();\n }\n\n if($product->getColor()) {\n $colorsArr[] = $product->getColor()->getName();\n }\n\n if ($product->getBrand()) {\n $brandArr[] = $product->getBrand()->getName();\n }\n }\n }\n\n $arr['colors'] = array_unique($colorsArr);\n $arr['sizes'] = array_unique($sizeArr);\n $arr['brands'] = array_unique($brandArr);\n\n return new JsonResponse($arr);\n }", "public function run()\n {\n $productVariants = [\n \t1 => [\n \t\t'product_id' => 1,\n \t\t'variant_type' => 2,\n \t\t'product_type_id' => 1,\n \t\t'name' => 'Everything Seasoning',\n \t\t'internal_sku' => '811207024269',\n \t\t'sku' => '804879447856',\n \t\t'upc' => '811207024269',\n 'download_link' => '', \t\n \t\t'free_product_tier_id' => 0,\n \t\t'quantity' => 1,\n \t\t'hide_options_from_display_name' => 0,\n \t\t'customer_service_can_add' => 1, \t\t\n \t\t'enabled' => 1 \n ],\n 2 => [\n 'product_id' => 1,\n 'variant_type' => 3,\n 'product_type_id' => 1,\n 'name' => 'Everything Seasoning - 3 Bottles',\n 'internal_sku' => '813327020398-3B',\n 'sku' => '804879447856-3B',\n 'upc' => '813327020398',\n 'download_link' => '', \n 'free_product_tier_id' => 0,\n 'quantity' => 1,\n 'hide_options_from_display_name' => 1,\n 'customer_service_can_add' => 1, \n 'enabled' => 1 \n ],\n 3 => [\n 'product_id' => 2,\n 'variant_type' => 2,\n 'product_type_id' => 1,\n 'name' => 'Spicy Everything Seasoning',\n 'internal_sku' => '811207024320',\n 'sku' => '804879447863',\n 'upc' => '811207024320',\n 'download_link' => '', \n 'free_product_tier_id' => 0,\n 'quantity' => 1,\n 'hide_options_from_display_name' => 1,\n 'customer_service_can_add' => 1, \n 'enabled' => 1 \n ],\n 4 => [\n 'product_id' => 2,\n 'variant_type' => 3,\n 'product_type_id' => 1,\n 'name' => 'Spicy Everything Seasoning - 3 Bottles',\n 'internal_sku' => '813327020374-3B',\n 'sku' => '804879447863-3B',\n 'upc' => '813327020374',\n 'download_link' => '', \n 'free_product_tier_id' => 0,\n 'quantity' => 1,\n 'hide_options_from_display_name' => 1,\n 'customer_service_can_add' => 1, \n 'enabled' => 1 \n ],\n 5 => [\n 'product_id' => 3,\n 'variant_type' => 2,\n 'product_type_id' => 1,\n 'name' => 'Garlic Lover\\'s Seasoning',\n 'internal_sku' => '811207024306',\n 'sku' => '804879389859',\n 'upc' => '811207024306', \n 'download_link' => '', \n 'free_product_tier_id' => 1,\n 'quantity' => 1,\n 'hide_options_from_display_name' => 1,\n 'customer_service_can_add' => 1, \n 'enabled' => 1 \n ],\n 6 => [\n 'product_id' => 3,\n 'variant_type' => 3,\n 'product_type_id' => 1,\n 'name' => 'Garlic Lover\\'s Seasoning - 3 Bottles',\n 'internal_sku' => '811207024306-3B',\n 'sku' => '804879389859-3B',\n 'upc' => '811207024306', \n 'download_link' => '', \n 'free_product_tier_id' => 0,\n 'quantity' => 1,\n 'hide_options_from_display_name' => 1,\n 'customer_service_can_add' => 1, \n 'enabled' => 1 \n ],\n 7 => [\n 'product_id' => 4,\n 'variant_type' => 2,\n 'product_type_id' => 1,\n 'name' => 'Lemon & Garlic Seasoning',\n 'internal_sku' => '811207024283',\n 'sku' => '804879153375',\n 'upc' => '811207024283',\n 'download_link' => '', \n 'free_product_tier_id' => 0,\n 'quantity' => 1,\n 'hide_options_from_display_name' => 1,\n 'customer_service_can_add' => 1, \n 'enabled' => 1,\n \n ],\n 8 => [\n 'product_id' => 4,\n 'variant_type' => 3,\n 'product_type_id' => 1,\n 'name' => 'Lemon & Garlic Seasoning - 3 Bottles',\n 'internal_sku' => '811207024283-3B',\n 'sku' => '804879153375-3B',\n 'upc' => '811207024283',\n 'download_link' => '', \n 'free_product_tier_id' => 0,\n 'quantity' => 1,\n 'hide_options_from_display_name' => 1,\n 'customer_service_can_add' => 1, \n 'enabled' => 1,\n \n ],\n 9 => [\n 'product_id' => 5,\n 'variant_type' => 2,\n 'product_type_id' => 1,\n 'name' => 'Chipotle Seasoning',\n 'internal_sku' => '811207026720',\n 'sku' => '811207026720', \n 'upc' => '811207026720', \n 'download_link' => '', \n 'free_product_tier_id' => 0,\n 'quantity' => 1,\n 'hide_options_from_display_name' => 1,\n 'customer_service_can_add' => 1,\n 'enabled' => 1 \n ],\n 10 => [\n 'product_id' => 5,\n 'variant_type' => 3,\n 'product_type_id' => 1,\n 'name' => 'Chipotle Seasoning - 3 Bottles',\n 'internal_sku' => '',\n 'sku' => '811207026720-3B', \n 'upc' => '811207026720',\n 'download_link' => '', \n 'free_product_tier_id' => 0,\n 'quantity' => 1,\n 'hide_options_from_display_name' => 1,\n 'customer_service_can_add' => 0,\n 'enabled' => 1 \n ],\n 11 => [\n 'product_id' => 6,\n 'variant_type' => 3,\n 'product_type_id' => 1,\n 'name' => 'Pizza Seasoning',\n 'internal_sku' => '813327020299',\n 'sku' => '813327020299', \n 'upc' => '813327020299',\n 'download_link' => '', \n 'free_product_tier_id' => 0,\n 'quantity' => 1,\n 'hide_options_from_display_name' => 1,\n 'customer_service_can_add' => 1,\n 'enabled' => 1 \n ],\n 12 => [\n 'product_id' => 6,\n 'variant_type' => 3,\n 'product_type_id' => 1,\n 'name' => 'Pizza Seasoning - 3 Bottles',\n 'internal_sku' => '',\n 'sku' => '813327020299-3B', \n 'upc' => '813327020299',\n 'download_link' => '', \n 'free_product_tier_id' => 0,\n 'quantity' => 1,\n 'hide_options_from_display_name' => 1,\n 'customer_service_can_add' => 1, \n 'enabled' => 1\n \n ],\n 13 => [\n 'product_id' => 6,\n 'variant_type' => 2,\n 'product_type_id' => 1,\n 'name' => 'Pizza Seasoning',\n 'internal_sku' => 'PZA',\n 'sku' => 'PZA', \n 'upc' => '813327020299',\n 'download_link' => '', \n 'free_product_tier_id' => 0,\n 'quantity' => 1,\n 'hide_options_from_display_name' => 1,\n 'customer_service_can_add' => 0, \n 'enabled' => 0\n \n ],\n 14 => [\n 'product_id' => 7,\n 'variant_type' => 4,\n 'product_type_id' => 4,\n 'name' => 'Flavor God Paleo Recipe Book',\n 'internal_sku' => '',\n 'sku' => 'FG-RECIPE01',\n 'upc' => '', \n 'download_link' => 'http://download.flavorgod.com/flavorpurchase/flavorgodpaleoandglutenfreerecipebook.pdf', \n 'free_product_tier_id' => 0,\n 'quantity' => 1,\n 'hide_options_from_display_name' => 1,\n 'customer_service_can_add' => 1, \n 'enabled' => 1\n \n ],\n 15 => [\n 'product_id' => 8,\n 'variant_type' => 3,\n 'product_type_id' => 1,\n 'name' => 'Classic Combo Set',\n 'internal_sku' => '811207024245',\n 'sku' => 'COMBOPACK',\n 'upc' => '811207024245', \n 'download_link' => '', \n 'free_product_tier_id' => 0,\n 'quantity' => 1,\n 'hide_options_from_display_name' => 1,\n 'customer_service_can_add' => 1, \n 'enabled' => 1\n \n ],\n 16 => [\n 'product_id' => 8,\n 'variant_type' => 3,\n 'product_type_id' => 1,\n 'name' => 'Classic Combo Set w/ Flavor God Paleo Recipe Book',\n 'internal_sku' => '813327020244',\n 'sku' => 'FGCOMBOBOOK-1',\n 'upc' => '813327020244', \n 'download_link' => '', \n 'free_product_tier_id' => 0,\n 'quantity' => 1,\n 'hide_options_from_display_name' => 1,\n 'customer_service_can_add' => 1, \n 'enabled' => 1\n \n ],\n 17 => [\n 'product_id' => 8,\n 'variant_type' => 3,\n 'product_type_id' => 5,\n 'name' => 'Classic Combo Set w/ Apron (Grey) - 50% OFF',\n 'internal_sku' => 'CLSCMB-GRAP-50',\n 'sku' => 'CLSCMB-GRAP-50',\n 'upc' => 'CLSCMB-GRAP-50', \n 'download_link' => '', \n 'free_product_tier_id' => 0,\n 'quantity' => 1,\n 'hide_options_from_display_name' => 1,\n 'customer_service_can_add' => 1, \n 'enabled' => 1\n \n ],\n 18 => [\n 'product_id' => 9,\n 'variant_type' => 3,\n 'product_type_id' => 1,\n 'name' => 'Chipotle Combo Set',\n 'internal_sku' => '811207026713',\n 'sku' => 'COMBO-CHIP',\n 'upc' => '811207026713', \n 'download_link' => '', \n 'free_product_tier_id' => 0,\n 'quantity' => 1,\n 'hide_options_from_display_name' => 1,\n 'customer_service_can_add' => 0, \n 'enabled' => 0\n \n ],\n 19 => [\n 'product_id' => 9,\n 'variant_type' => 3,\n 'product_type_id' => 1,\n 'name' => 'Chipotle Combo Set w/ Flavor God Paleo Recipe Book',\n 'internal_sku' => '811207026706',\n 'sku' => 'COMBO-CHIP-EB',\n 'upc' => '811207026706', \n 'download_link' => '', \n 'free_product_tier_id' => 0,\n 'quantity' => 1,\n 'hide_options_from_display_name' => 1,\n 'customer_service_can_add' => 0, \n 'enabled' => 0 \n ],\n 20 => [\n 'product_id' => 10,\n 'variant_type' => 3,\n 'product_type_id' => 1,\n 'name' => 'Pizza Combo Set',\n 'internal_sku' => '813327020176',\n 'sku' => 'COMBO-PZA',\n 'upc' => '813327020176', \n 'download_link' => '', \n 'free_product_tier_id' => 0,\n 'quantity' => 1,\n 'hide_options_from_display_name' => 0,\n 'customer_service_can_add' => 0, \n 'enabled' => 0 \n ],\n 21 => [\n 'product_id' => 10,\n 'variant_type' => 3,\n 'product_type_id' => 1,\n 'name' => 'Pizza Combo Set w/ Flavor God Paleo Recipe Book',\n 'internal_sku' => '813327020145',\n 'sku' => 'COMBO-PZA-EB',\n 'upc' => '813327020145', \n 'download_link' => '', \n 'free_product_tier_id' => 0,\n 'quantity' => 1,\n 'hide_options_from_display_name' => 1,\n 'customer_service_can_add' => 0, \n 'enabled' => 0 \n ]\n];\n \n foreach ($productVariants as $key => $value) {\n \\DB::insert('insert into product_variants(product_id, variant_type, product_type_id, name, internal_sku, sku,\n upc, download_link, free_product_tier_id, quantity, hide_options_from_display_name, customer_service_can_add, enabled)values(\n ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)', [\n $value['product_id'], \n $value['variant_type'],\n $value['product_type_id'],\n $value['name'],\n $value['internal_sku'],\n $value['sku'],\n $value['upc'],\n $value['download_link'],\n $value['free_product_tier_id'],\n $value['quantity'],\n $value['hide_options_from_display_name'],\n $value['customer_service_can_add'], \n $value['enabled']\n ]);\n }\n }", "public function getVariants(): Collection\n {\n return $this->paginate([\n 'query' => 'query getVariants($cursor: String) {\n results: productVariants(first:250, after:$cursor) {\n edges {\n node {\n title\n sku\n product {\n title\n handle\n status\n publishedOnCurrentPublication\n }\n }\n }\n pageInfo {\n hasNextPage\n endCursor\n }\n }\n }'\n ])\n\n // Remove variants that are missing a sku\n ->filter(function($variant) {\n return !empty($variant['sku']);\n })\n\n // Remove variants that weren't published to the Sales Channel of the\n // Custom App whose credentials are being used to query the API. This\n // can be used to filter out products not intended for the public store,\n // like wholesale only products.\n ->when(!$this->disablePublishedCheck, function($variants) {\n return $variants->filter(function($variant) {\n return $variant['product']['publishedOnCurrentPublication'];\n });\n })\n\n // Dedupe by SKU, prefering active variants. Shopify allows you to\n // re-use SKUs between multiple product variants but this is used in\n // Feed Me as the unique identifier for importing.\n ->reduce(function($variants, $variant) {\n\n // Check if this variant has already been added\n $existingIndex = $variants->search(\n function($existing) use ($variant) {\n return $existing['sku'] == $variant['sku'];\n }\n );\n\n // If this sku is already in the list, replace it if the previous\n // instance was not an active product\n // https://shopify.dev/api/admin-graphql/2022-04/enums/ProductStatus\n if ($existingIndex !== false) {\n $existing = $variants->get($existingIndex);\n if ($existing['product']['status'] != 'ACTIVE') {\n $variants = $variants->replace([\n $existingIndex => $variant\n ]);\n }\n\n // ... else the variant didn't exist, so add it\n } else $variants->push($variant);\n\n // Keep working...\n return $variants;\n }, new Collection)\n\n // Make a title that is more useful for displaying in the CMS.\n ->map(function($variant) {\n $variant['dashboardTitle'] = $variant['product']['title']\n .' - '.$variant['title']\n .(($sku = $variant['sku']) ? ' ('.$sku.')' : null);\n return $variant;\n })\n\n // Remove fields that we're used to pre-filter\n ->map(function($variant) {\n unset(\n $variant['product']['status'],\n $variant['product']['publishedOnCurrentPublication']\n );\n return $variant;\n })\n\n // Use integer keys\n ->values();\n }", "public function AlternativesPerProduct()\n {\n $dos = ArrayList::create();\n $altCount = Config::inst()->get('RepeatOrderForm', 'number_of_product_alternatives');\n for ($i = 1; $i <= $altCount; $i++) {\n $alternativeField = \"Alternative\".$i.\"ID\";\n if ($this->$alternativeField) {\n $product = Product::get()->filter(['ID' => $this->$alternativeField])->first();\n if ($product) {\n $dos->push($product);\n }\n }\n }\n if ($dos && $dos->count()) {\n return $dos;\n }\n return null;\n }", "function sfgov_utilities_deploy_10_dept_part_of() {\n try {\n $deptNodes = Utility::getNodes('department');\n\n foreach($deptNodes as $dept) {\n $deptId = $dept->id();\n\n // get part of values\n $partOf = $dept->get('field_parent_department')->getValue();\n\n if (!empty($partOf)) {\n $partOfRefId = $partOf[0]['target_id'];\n $langcode = $dept->get('langcode')->value;\n\n // load tagged parent\n $parentDept = Node::load($partOfRefId);\n\n if ($parentDept->hasTranslation($langcode)) { // check translation\n $parentDeptTranslation = $parentDept->getTranslation($langcode);\n $parentDivisions = $parentDeptTranslation->get('field_divisions')->getValue();\n\n // check that this dept isn't already added as a division on the parent dept\n $found = false;\n foreach ($parentDivisions as $parentDivision) {\n if ($deptId == $parentDivision[\"target_id\"]) {\n $found = true;\n break;\n }\n }\n \n if ($found == false) {\n $parentDivisions[] = [\n 'target_id' => $deptId\n ];\n $parentDeptTranslation->set('field_divisions', $parentDivisions);\n $parentDeptTranslation->save();\n }\n }\n }\n }\n } catch (\\Exception $e) {\n error_log($e->getMessage());\n }\n}", "public function findVariantStockByProductPriority(ProductVariant $productVariant): array\n {\n try {\n $maxPriority = (int) $this\n ->queryMaxPriorityWithinProduct($productVariant->getProduct())\n ->getSingleScalarResult();\n } catch (NoResultException $exception) {\n $maxPriority = 0;\n }\n\n return $this\n ->queryVariantStockByPriority($productVariant, $maxPriority)\n ->getSingleResult();\n }", "public function build_product_variations_selector($_class, $_active = \"\", $_prod_id = 0) { error_log(\"Active : \". $_active); \t\r\n \t$html = \"\";\r\n \t// for variation product list\r\n \t$ptypes = wcff()->dao->load_variable_products();\r\n \t\r\n \tif ($_prod_id == 0 && $_active != \"\") {\r\n \t /* Find out the parent product id */\r\n \t $variable_product = wc_get_product(absint($_active));\r\n \t $_prod_id = $variable_product->get_parent_id();\r\n \t}\r\n \t\r\n \t$html .= '<select class=\"variation_product_list\">';\r\n \t$html .= '<option value=\"0\">'. __(\"All Products\", \"wc-fields-factory\") .'</option>';\r\n \tif (count($ptypes) > 0) {\r\n \t\tforeach ($ptypes as $ptype) {\r\n \t\t\t$selected = ($ptype[\"id\"] == $_prod_id) ? 'selected=\"selected\"' : '';\r\n \t\t\t$html .= '<option value=\"' . esc_attr($ptype[\"id\"]) . '\" ' . $selected . '>' . esc_html($ptype[\"title\"]) . '</option>';\r\n \t\t}\r\n \t}\r\n \t$html .= '</select>';\r\n \t// for variation list\r\n \t$ptypes = wcff()->dao->load_product_variations($_prod_id);\r\n \t$html .= '<select class=\"' . esc_attr($_class) . ' select\">';\r\n \t$html .= '<option value=\"-1\">'. __(\"All Variations\", \"wc-fields-factory\") .'</option>';\r\n \tif (count($ptypes) > 0) {\r\n \t\tforeach ($ptypes as $ptype) {\r\n \t\t\t$selected = ($ptype[\"id\"] == $_active) ? 'selected=\"selected\"' : '';\r\n \t\t\t$html .= '<option value=\"' . esc_attr($ptype[\"id\"]) . '\" ' . $selected . '>' . esc_html($ptype[\"title\"]) . '</option>';\r\n \t\t}\r\n \t}\r\n \t$html .= '</select>';\r\n \treturn $html;\r\n }", "protected function get_detected_products () {\n if ( $this->type == 'theme' ) {\n return $this->get_detected_theme();\n } elseif ( $this->type == 'plugin' ) {\n return $this->get_detected_plugins();\n } else {\n return array();\n }\n }", "public static function getVariants($_pID) {\n global $lC_Database, $lC_Language;\n \n $Qvariant = $lC_Database->query('select pvg.id as group_id, pvg.title as group_title, pvg.module, pvv.id as value_id, pvv.title as value_title from :table_products_variants pv, :table_products_variants_values pvv, :table_products_variants_groups pvg where pv.products_id = :products_id and pv.products_variants_values_id = pvv.id and pvv.languages_id = :languages_id and pvv.products_variants_groups_id = pvg.id and pvg.languages_id = :languages_id');\n $Qvariant->bindTable(':table_products_variants', TABLE_PRODUCTS_VARIANTS);\n $Qvariant->bindTable(':table_products_variants_values', TABLE_PRODUCTS_VARIANTS_VALUES);\n $Qvariant->bindTable(':table_products_variants_groups', TABLE_PRODUCTS_VARIANTS_GROUPS);\n $Qvariant->bindInt(':products_id', $_pID);\n $Qvariant->bindInt(':languages_id', $lC_Language->getID());\n $Qvariant->bindInt(':languages_id', $lC_Language->getID());\n $Qvariant->execute();\n \n if ( $Qvariant->numberOfRows() > 0 ) {\n while ( $Qvariant->next() ) {\n $variants_array[] = array('group_id' => $Qvariant->valueInt('group_id'),\n 'value_id' => $Qvariant->valueInt('value_id'),\n 'group_title' => $Qvariant->value('group_title'),\n 'value_title' => $Qvariant->value('value_title'));\n }\n }\n \n $vArray = $variants_array;\n\n $Qvariant->freeResult();\n \n return $vArray;\n }", "function fn_product_variations_convert_to_configurable_product($product_id)\n{\n $auth = array();\n\n $product = fn_get_product_data($product_id, $auth);\n $languages = Languages::getAll();\n $product_options = fn_get_product_options($product_id, CART_LANGUAGE, true);\n $product_row = db_get_row('SELECT * FROM ?:products WHERE product_id = ?i', $product_id);\n $product_variation_ids = db_get_fields('SELECT product_id FROM ?:products WHERE parent_product_id = ?i', $product_id);\n $product_exceptions = fn_get_product_exceptions($product_id);\n\n foreach ($product_variation_ids as $product_variation_id) {\n fn_delete_product($product_variation_id);\n }\n\n $options_ids = array();\n $inventory_combinations = db_get_array('SELECT * FROM ?:product_options_inventory WHERE product_id = ?i', $product_id);\n $index = 0;\n\n foreach ($inventory_combinations as $item) {\n $index++;\n $selected_options = array();\n $parts = array_chunk(explode('_', $item['combination']), 2);\n\n foreach ($parts as $part) {\n $selected_options[$part[0]] = $part[1];\n }\n\n $combination = fn_product_variations_get_variation_by_selected_options(\n $product,\n $product_options,\n $selected_options,\n $index\n );\n\n if (!empty($item['product_code'])) {\n $combination['code'] = $item['product_code'];\n }\n\n if (!empty($item['amount'])) {\n $combination['amount'] = $item['amount'];\n }\n\n $is_allow = true;\n\n if ($product_row['exceptions_type'] == 'F') {\n foreach ($product_exceptions as $exception) {\n\n foreach ($exception['combination'] as $option_id => &$variant_id) {\n if ($variant_id == OPTION_EXCEPTION_VARIANT_ANY || $variant_id == OPTION_EXCEPTION_VARIANT_NOTHING) {\n $variant_id = isset($combination['selected_options'][$option_id]) ? $combination['selected_options'][$option_id] : null;\n }\n }\n unset($variant_id);\n\n if ($exception['combination'] == $combination['selected_options']) {\n $is_allow = false;\n break;\n }\n }\n } elseif ($product_row['exceptions_type'] == 'A') {\n $is_allow = false;\n\n foreach ($product_exceptions as $exception) {\n\n foreach ($exception['combination'] as $option_id => &$variant_id) {\n if ($variant_id == OPTION_EXCEPTION_VARIANT_ANY) {\n $variant_id = isset($combination['selected_options'][$option_id]) ? $combination['selected_options'][$option_id] : null;\n }\n }\n unset($variant_id);\n\n if ($exception['combination'] == $combination['selected_options']) {\n $is_allow = true;\n break;\n }\n }\n }\n\n if (!$is_allow) {\n continue;\n }\n\n $variation_id = fn_product_variations_save_variation($product_row, $combination, $languages);\n\n $image = fn_get_image_pairs($item['combination_hash'], 'product_option', 'M', true, true);\n\n if ($image) {\n $detailed = $icons = array();\n $pair_data = array(\n 'type' => 'M'\n );\n\n if (!empty($image['icon'])) {\n $tmp_name = fn_create_temp_file();\n Storage::instance('images')->export($image['icon']['relative_path'], $tmp_name);\n $name = fn_basename($image['icon']['image_path']);\n\n $icons[$image['pair_id']] = array(\n 'path' => $tmp_name,\n 'size' => filesize($tmp_name),\n 'error' => 0,\n 'name' => $name\n );\n\n $pair_data['image_alt'] = empty($image['icon']['alt']) ? '' : $image['icon']['alt'];\n }\n\n if (!empty($image['detailed'])) {\n $tmp_name = fn_create_temp_file();\n Storage::instance('images')->export($image['detailed']['relative_path'], $tmp_name);\n $name = fn_basename($image['detailed']['image_path']);\n\n $detailed[$image['pair_id']] = array(\n 'path' => $tmp_name,\n 'size' => filesize($tmp_name),\n 'error' => 0,\n 'name' => $name\n );\n\n $pair_data['detailed_alt'] = empty($image['detailed']['alt']) ? '' : $image['detailed']['alt'];\n }\n\n $pairs_data = array(\n $image['pair_id'] => $pair_data\n );\n\n fn_update_image_pairs($icons, $detailed, $pairs_data, $variation_id, 'product');\n }\n }\n\n if (!empty($selected_options)) {\n $options_ids = array_keys($selected_options);\n }\n\n db_query(\n 'UPDATE ?:products SET product_type = ?s, variation_options = ?s WHERE product_id = ?i',\n ProductManager::PRODUCT_TYPE_CONFIGURABLE, json_encode(array_values($options_ids)), $product_id\n );\n\n fn_delete_product_option_combinations($product_id);\n db_query('DELETE FROM ?:product_options_exceptions WHERE product_id = ?i', $product_id);\n}", "public function testFindsVariantForInactiveProduct(): void\n {\n $inactiveProduct = $this->createVisibleTestProduct([\n 'active' => false\n ]);\n\n $this->createVisibleTestProduct([\n 'id' => Uuid::randomHex(),\n 'productNumber' => 'FINDOLOGIC001.1',\n 'name' => 'FINDOLOGIC VARIANT',\n 'stock' => 10,\n 'active' => true,\n 'parentId' => $inactiveProduct->getId(),\n 'tax' => ['name' => '9%', 'taxRate' => 9],\n 'price' => [['currencyId' => Defaults::CURRENCY, 'gross' => 15, 'net' => 10, 'linked' => false]]\n ]);\n\n $products = $this->defaultProductService->searchVisibleProducts(20, 0);\n $product = $products->first();\n\n $this->assertSame('FINDOLOGIC VARIANT', $product->getName());\n }", "public function getVariantOptions()\n\t{\n\t\tif (!$this->hasVariants())\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\tif (!is_array($this->arrVariantOptions))\n\t\t{\n\t\t\t$time = time();\n\t\t\t$this->arrVariantOptions = array('current'=>array());\n\n\t\t\t// Find all possible variant options\n\t\t\t$objVariant = clone $this;\n\t\t\t$objVariants = $this->Database->execute(IsotopeProduct::getSelectStatement() . \" WHERE p1.pid={$this->arrData['id']} AND p1.language=''\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t. (BE_USER_LOGGED_IN === true ? '' : \" AND p1.published='1' AND (p1.start='' OR p1.start<$time) AND (p1.stop='' OR p1.stop>$time)\"));\n\n\t\t\twhile ($objVariants->next())\n\t\t\t{\n\t\t\t\t$objVariant->loadVariantData($objVariants->row(), false);\n\n\t\t\t\tif ($objVariant->isAvailable())\n\t\t\t\t{\n\t\t\t\t\t$arrVariantOptions = $objVariant->getOptions(true);\n\n\t\t\t\t\t$this->arrVariantOptions['ids'][] = $objVariant->id;\n\t\t\t\t\t$this->arrVariantOptions['options'][$objVariant->id] = $arrVariantOptions;\n\t\t\t\t\t$this->arrVariantOptions['variants'][$objVariant->id] = $objVariants->row();\n\n\t\t\t\t\tforeach ($arrVariantOptions as $attribute => $value)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (!in_array((string) $value, (array) $this->arrVariantOptions['attributes'][$attribute], true))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$this->arrVariantOptions['attributes'][$attribute][] = (string) $value;\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 $this->arrVariantOptions;\n\t}", "public function variants()\n {\n return $this->hasMany(Variant::class, 'product_id', 'id');\n }", "function particularvariant($id)\n\t{\n\t\t$getvariant=\"SELECT * from product_variant where ptdvar_id = $id\";\n\t\t$getvariantdata = $this->get_results( $getvariant );\n\n\t\t$getvariant1=\"SELECT * from product_variant_cost where ptdvar_id = $id\";\n\t\t$getvariantdata1 = $this->get_results( $getvariant1 );\n\n\t\t$c = array('variant' => $getvariantdata,'variantcost' => $getvariantdata1);\n\t\treturn $c;\n\n\t}", "function get_product_availability_by_warehouse($post_id) {\n global $wpdb;\n\n // First let's get the SKU for the product so we can look up its availability\n $sku = get_post_meta($post_id, '_sku', true);\n\n // We will use this array as 'CA' => true if it's available and 'CA' => false if it's unavailable\n $availability_by_warehouse = array();\n\n // Pull in the list of warehouses\n $warehouse_ids = get_warehouse_ids();\n\n // Set all warehouse_ids as 0 before continuing\n foreach ($warehouse_ids as $warehouse_id) {\n $availability_by_warehouse[$warehouse_id] = 0;\n }\n\n // Make sure we have an actual sku here\n if (!empty($sku)) {\n\n\n // Query up the inventory\n $inventory_array = $wpdb->get_results(\n $wpdb->prepare(\n \"SELECT item, warehouse, qty\n FROM randys_InventoryByWarehouse\n WHERE item = %s\",\n array($sku)\n )\n );\n\n // Loop through the inventories, marking them as available or not\n foreach ($inventory_array as $inventory) {\n if ($inventory->qty !== '0') {\n $availability_by_warehouse[$inventory->warehouse] = (int)$inventory->qty;\n }\n }\n }\n\n return $availability_by_warehouse;\n}", "public function getEnabledVariations(ProductInterface $product);", "function ppt_resources_get_target_accounts_products($data)\n{\n global $user;\n if (!isset($data['accounts']) || empty($data['accounts'])) {\n $countries = get_user_countries($user);\n $accounts = ppt_resources_get_role_accounts($user, $countries);\n } else {\n $accounts = $data['accounts'];\n }\n if (!is_array($accounts)) {\n $accounts = [$accounts];\n }\n\n $reps = array();\n if (isset($data['reps']) && !empty($data['reps'])) {\n $reps = $data['reps'];\n }\n\n if (empty($reps)) {\n $query = new EntityFieldQuery();\n $query->entityCondition('entity_type', 'node')\n ->entityCondition('bundle', 'account')\n ->propertyCondition('nid', $accounts, 'IN')\n ->addMetaData('account', user_load(1));\n\n $accounts = $query->execute();\n if (!isset($accounts['node'])) {\n return array();\n }\n $accounts = entity_load(\"node\", array_keys($accounts['node']));\n } else {\n $reps = entity_load(\"user\", $reps);\n\n $accounts = array();\n foreach ($reps as $rep) {\n if (isset($rep->field_account_product_date[LANGUAGE_NONE])) {\n foreach ($rep->field_account_product_date[LANGUAGE_NONE] as $item) {\n $fc = entity_load('field_collection_item', array($item['value']));\n $accountId = $fc[$item['value']]->field_account[LANGUAGE_NONE][0]['target_id'];\n if (!isset($accounts[$accountId])) {\n $accounts[$accountId] = $accountId;\n }\n }\n }\n }\n\n $accounts = entity_load(\"node\", array_keys($accounts));\n }\n\n $products = array();\n\n foreach ($accounts as $account) {\n if (isset($account->field_products[LANGUAGE_NONE])) {\n foreach ($account->field_products[LANGUAGE_NONE] as $item) {\n $parents = taxonomy_get_parents($item['target_id']);\n // This is a parent.\n if (empty($parents)) {\n $term = taxonomy_term_load($item['target_id']);\n if (!isset($products[$term->tid]) && !empty($term->tid)) {\n $products[$term->tid] = array(\n \"id\" => $term->tid,\n \"name\" => $term->name,\n \"terms\" => array(),\n );\n }\n $children = taxonomy_get_children($item['target_id']);\n foreach ($children as $child) {\n if (!isset($products[$term->tid]['terms'][$child->tid])) {\n $products[$term->tid]['terms'][$child->tid] = array(\"id\" => $child->tid, \"name\" => $child->name);\n }\n }\n }\n // This is a child.\n else {\n foreach ($parents as $key => $parent) {\n if (!isset($products[$key])) {\n $products[$key] = array(\n \"id\" => $parent->tid,\n \"name\" => $parent->name,\n \"terms\" => array(),\n );\n }\n $term = taxonomy_term_load($item['target_id']);\n if (!isset($products[$key]['terms'][$term->tid])) {\n $products[$key]['terms'][$term->tid] = array(\"id\" => $term->tid, \"name\" => $term->name);\n }\n }\n }\n }\n }\n }\n return $products;\n}", "function getProdutosByOptions($option, $startwith=null, $order='titulo', $userProducts=false)\n{\n global $conn, $hashids;\n\n $whr = null;\n if (is_array($option))\n foreach ($option as $optkey=>$optval) {\n if (!empty($optval))\n $whr .= \" AND pro_{$optkey}=\\\"{$optval}\\\"\";\n }\n\n if ($userProducts===true)\n $sql = \"SELECT * FROM (\n SELECT\n upr_id,\n COALESCE(NULLIF(pro_titulo,''), upr_nomeProduto) `produto`,\n upr_valor\n FROM \".TP.\"_usuario_produto\n INNER JOIN \".TP.\"_usuario\n ON upr_usr_id=usr_id\n AND usr_status=1\n LEFT JOIN \".TP.\"_produto\n ON pro_id=upr_pro_id\n AND pro_status=1\n WHERE upr_status=1\n {$whr}\n ) as `tmp`\n GROUP BY `produto`\n ORDER BY `produto`;\";\n else\n $sql = \"SELECT * FROM (\n SELECT\n pro_id,\n COALESCE(NULLIF(pro_titulo,''), upr_nomeProduto) `produto`,\n pro_valor\n FROM \".TP.\"_produto\n WHERE pro_status=1\n {$whr}\n GROUP BY pro_id\n ) as `tmp`\n ORDER BY `produto`;\";\n\n $lst = array();\n if(!$qry = $conn->prepare($sql))\n echo divAlert($conn->error, 'error');\n\n else {\n\n $qry->execute();\n $qry->bind_result($id, $titulo, $valor);\n\n if (!empty($startwith))\n $lst[0] = array('id'=>0, 'titulo'=>$startwith);\n\n $i=1;\n while ($qry->fetch()) {\n // $lst[$i]['id'] = $id;\n $lst[$i]['id'] = mb_strtolower(urlencode($titulo), 'utf8');\n $lst[$i]['titulo'] = mb_strtoupper($titulo, 'utf8');\n $lst[$i]['valor'] = 'R$ '.Moeda($valor);\n $lst[$i]['valor_decimal'] = $valor;\n $i++;\n }\n\n $qry->close();\n\n return $lst;\n }\n\n}", "public function index(Request $request) {\n\n $variantArr = Variant::join('product_variants', 'product_variants.variant_id', 'variants.id')\n ->select('variants.title', 'product_variants.variant', 'variants.id')\n ->distinct('product_variants.variant')\n ->get();\n\n $variantListArr = array();\n foreach ($variantArr as $variant) {\n $variantListArr[$variant->id][] = $variant->variant;\n }\n\n $variantNameArr = Variant::pluck('title', 'id')->toArray();\n\n\n $varianPIdArr = $rangePIdArr = [];\n if (!empty($request->variant_id)) {\n $varianPIdArr = ProductVariant::where('variant', $request->variant_id)->pluck('product_id', 'id')->toArray();\n }\n if (!empty($request->price_from) && !empty($request->price_to)) {\n $rangePIdArr = ProductVariantPrice::whereBetween('price', [$request->price_from, $request->price_to])\n ->pluck('product_id')->toArray();\n }\n\n\n // get product Query \n $targetArr = Product::select('products.*');\n $targetArr = $targetArr->with(['ProductVariantPrice' => function($q) use($request, $varianPIdArr) {\n $q->join('products', 'products.id', 'product_variant_prices.product_id');\n $q->leftJoin('product_variants as one', 'one.id', 'product_variant_prices.product_variant_one');\n $q->leftJoin('product_variants as two', 'two.id', 'product_variant_prices.product_variant_two');\n $q->leftJoin('product_variants as three', 'three.id', 'product_variant_prices.product_variant_three');\n\n if (!empty($request->from) && !empty($request->to)) {\n $q = $q->whereBetween('product_variant_prices.price', [$request->from, $request->to]);\n }\n if (!empty($varianPIdArr)) {\n $q = $q->where(function ($query) use ($request, $varianPIdArr) {\n $query->whereIn('product_variant_prices.product_variant_one', array_keys($varianPIdArr));\n $query->orWhereIn('product_variant_prices.product_variant_two', array_keys($varianPIdArr));\n $query->orWhereIn('product_variant_prices.product_variant_three', array_keys($varianPIdArr));\n });\n }\n\n $q = $q->select('product_variant_prices.*', 'one.variant as one_variant', 'two.variant as two_variant'\n , 'three.variant as three_variant');\n }\n ]);\n\n // end Product Query \n // get vaiant wise query \n if (!empty($request->variant_id)) {\n $targetArr = $targetArr->whereIn('products.id', $varianPIdArr);\n }\n // end variant wise query \n if (!empty($request->price_from) && !empty($request->price_to)) {\n $targetArr = $targetArr->whereIn('products.id', $rangePIdArr);\n }\n\n $searchText = $request->title;\n if (!empty($searchText)) {\n $targetArr = $targetArr->where(function ($query) use ($searchText) {\n $query->where('products.title', 'LIKE', '%' . $searchText . '%');\n });\n }\n\n if (!empty($request->date)) {\n $targetArr = $targetArr->whereDate('products.created_at', '=', $request->date);\n }\n\n\n\n $targetArr = $targetArr->paginate(3);\n\n// $targetArr = $targetArr->get();\n// echo '<pre>';\n// print_r($targetArr->toArray());\n// exit;\n\n return view('products.index', compact('targetArr', 'variantListArr', 'variantNameArr'));\n }", "function insertOrdersProductPreProc(&$params, &$reference) {\n\n error_log(\"insertOrdersProductPreProc - begin\");\n\n $order_id = $params['insertArray']['orders_id'];\n $cart_product_item = $params['value'];\n $product_id = $cart_product_item['products_id'];\n $variant_id = $cart_product_item['variant_id'];\n\n\n // Get variant's details from the db\n $qry_res = $GLOBALS['TYPO3_DB']->exec_SELECTquery(\n 'v.variant_price, v.variant_sku',\n 'tx_msvariants_domain_model_variants v',\n 'v.variant_id='.$variant_id.' and v.product_id='.$product_id\n );\n\n if ($GLOBALS['TYPO3_DB']->sql_num_rows($qry_res) != 1) {\n // TODO this should never happen - raise exception?\n return;\n }\n\n $variant_data = $GLOBALS ['TYPO3_DB']->sql_fetch_assoc($qry_res);\n\n // Insert variant details about the order into the db\n $insert_array = array(\n 'order_id' => $order_id,\n 'product_id' => $product_id,\n 'variant_id' => $variant_id,\n 'price' => $variant_data['variant_price'],\n 'quantity' => $cart_product_item['qty'],\n 'sku' => $variant_data['variant_sku']\n );\n\n // TODO should we insert here the following logic:\n // - check if after the order the variants gets out of stock\n // - if such is the case, notify adming about this event\n // - and disable product variant! (ohh... that's new - we should do this in product detail script)\n $this->updateQtyInVariant($variant_id, $cart_product_item['qty']);\n\n $res = $GLOBALS['TYPO3_DB']->exec_INSERTquery(\n 'tx_msvariants_domain_model_variantsorders', $insert_array\n );\n\n // Insert variant attributes details about the order into the db\n $qry_res = $GLOBALS['TYPO3_DB']->exec_SELECTquery(\n 'va.attribute_id, va.option_id, va.option_value_id',\n 'tx_msvariants_domain_model_variantsattributes va',\n 'va.variant_id='.$variant_id.' and va.product_id='.$product_id\n );\n\n if ($GLOBALS['TYPO3_DB']->sql_num_rows($qry_res) <= 0) {\n // TODO this should never happen - raise exception?\n return;\n }\n\n while (($row = $GLOBALS ['TYPO3_DB']->sql_fetch_assoc($qry_res)) != false) {\n\n $row['option_name'] = mslib_fe::getRealNameOptions($row['option_id']);\n $row['option_value_name'] = mslib_fe::getNameOptions($row['option_value_id']);\n\n $insert_array = array(\n 'order_id' => $order_id,\n 'product_id' => $product_id,\n 'variant_id' => $variant_id,\n 'attribute_id' => $row['attribute_id'],\n 'option_id' => $row['option_id'],\n 'option_value_id' => $row['option_value_id'],\n 'option_name' => $row['option_name'],\n 'option_value_name' => $row['option_value_name']\n );\n\n $res = $GLOBALS['TYPO3_DB']->exec_INSERTquery(\n 'tx_msvariants_domain_model_variantsattributesorders', $insert_array\n );\n\n } // while\n\n error_log(\"insertOrdersProductPreProc - end\");\n\n\n }", "public function getProductOptions($pId)\n\t{\n\t\t// Get all SKUs' options and option groups\n\t\t$sql = \"\tSELECT\n\t\t\t\t\ts.`sId` AS skuId,\n\t\t\t\t\tso.`oId` AS skusOptionId,\n\t\t\t\t\ts.`sPrice`,\n\t\t\t\t\ts.`sAllowMultiple`,\n\t\t\t\t\ts.`sInventory`,\n\t\t\t\t\ts.`sTrackInventory`,\n\t\t\t\t\ts.`sRestricted`,\n\t\t\t\t\tog.`ogId`,\n\t\t\t\t\t`oName`,\n\t\t\t\t\t`ogName`\";\n\t\tif ($this->userScope)\n\t\t{\n\t\t\t$sql .= \" \t, pr.`uId`\";\n\t\t}\n\t\t$sql .= \"\tFROM `#__storefront_skus` s\n\t\t\t\t\tLEFT JOIN `#__storefront_sku_options` so ON s.`sId` = so.`sId`\n\t\t\t\t\tLEFT JOIN `#__storefront_options` o ON so.`oId` = o.`oId`\n\t\t\t\t\tLEFT JOIN `#__storefront_option_groups` og ON o.`ogId` = og.`ogId`\";\n\n\t\t// check user scope if needed\n\t\tif ($this->userScope)\n\t\t{\n\t\t\t$sql .= \" LEFT JOIN #__storefront_permissions pr ON (pr.`scope_id` = s.sId AND pr.scope = 'sku' AND pr.uId = '{$this->userScope}')\";\n\t\t}\n\n\t\t$sql .= \"\tWHERE s.`pId` = {$pId} AND s.`sActive` = 1\";\n\t\t$sql .= \" \tAND (s.`publish_up` IS NULL OR s.`publish_up` <= NOW())\";\n\t\t$sql .= \" \tAND (s.`publish_down` IS NULL OR s.`publish_down` = '0000-00-00 00:00:00' OR s.`publish_down` > NOW())\";\n\t\t$sql .= \"\tORDER BY og.`ogId`, o.`oId`\";\n\n\t\t$this->_db->setQuery($sql);\n\t\t$this->_db->query();\n\n\t\t// check some values to figure out what to return\n\t\t$returnObject = new \\stdClass();\n\t\t$returnObject->status = 'ok';\n\n\t\tif (!$this->_db->getNumRows())\n\t\t{\n\t\t\t$returnObject->status = 'error';\n\t\t\t$returnObject->msg = 'not found';\n\t\t\treturn $returnObject;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$results = $this->_db->loadObjectList();\n\t\t\t$res = $results;\n\n\t\t\t// Go through each SKU and do the checks to determine what needs to be returned\n\t\t\t// default value\n\t\t\t$permissionsRestricted = false;\n\n\t\t\trequire_once dirname(__DIR__) . DS . 'admin' . DS . 'helpers' . DS . 'restrictions.php';\n\n\t\t\tforeach ($res as $k => $line)\n\t\t\t{\n\t\t\t\t// see if the user is whitelisted for this SKU\n\t\t\t\t$skuWhitelisted = false;\n\t\t\t\tif ($this->userWhitelistedSkus && in_array($line->skuId, $this->userWhitelistedSkus))\n\t\t\t\t{\n\t\t\t\t\t$skuWhitelisted = true;\n\t\t\t\t}\n\n\t\t\t\tif (!$skuWhitelisted && $line->sRestricted && (!$this->userScope || $line->uId != $this->userScope))\n\t\t\t\t{\n\t\t\t\t\t// Sku is restricted and not available\n\t\t\t\t\t$permissionsRestricted = true;\n\t\t\t\t\t// remove it\n\t\t\t\t\tunset($res[$k]);\n\n\t\t\t\t}\n\t\t\t\telseif ($this->userCannotAccessProduct && !$skuWhitelisted)\n\t\t\t\t{\n\t\t\t\t\t// Sku is restricted and not available\n\t\t\t\t\t$permissionsRestricted = true;\n\t\t\t\t\t// remove it\n\t\t\t\t\tunset($res[$k]);\n\t\t\t\t}\n\n\t\t\t\tif ($line->sTrackInventory && $line->sInventory < 1)\n\t\t\t\t{\n\t\t\t\t\t// remove it\n\t\t\t\t\tunset($res[$k]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (count($res) < 1)\n\t\t\t{\n\t\t\t\t$returnObject->status = 'error';\n\t\t\t\t$returnObject->msg = 'out of stock';\n\t\t\t\t// If at least one SKU is restricted, we cannot return 'out of stock'\n\t\t\t\tif ($permissionsRestricted)\n\t\t\t\t{\n\t\t\t\t\t$returnObject->msg = 'restricted';\n\t\t\t\t}\n\t\t\t\treturn $returnObject;\n\t\t\t}\n\t\t}\n\n\t\t// Initialize array for option groups\n\t\t$options = array();\n\t\t// Array for SKUs\n\t\t$skus = array();\n\n\t\t// Parse result and populate $options with option groups and corresponding options\n\t\t$currentOgId = false;\n\t\tforeach ($res as $line)\n\t\t{\n\t\t\t// Populate options\n\t\t\tif ($line->ogId)\n\t\t\t{\n\t\t\t\t// Keep track of option groups and do not do anything if no options\n\t\t\t\tif ($currentOgId != $line->ogId)\n\t\t\t\t{\n\t\t\t\t\t$currentOgId = $line->ogId;\n\n\t\t\t\t\t$ogInfo = new \\stdClass();\n\t\t\t\t\t$ogInfo->ogId = $line->ogId;\n\t\t\t\t\t$ogInfo->ogName = $line->ogName;\n\n\t\t\t\t\t$options[$currentOgId]['info'] = $ogInfo;\n\t\t\t\t\tunset($ogInfo);\n\t\t\t\t}\n\n\t\t\t\t$oInfo = new \\stdClass();\n\t\t\t\t$oInfo->oId = $line->skusOptionId;\n\t\t\t\t$oInfo->oName = $line->oName;\n\t\t\t\t$options[$currentOgId]['options'][$line->skusOptionId] = $oInfo;\n\t\t\t\tunset($oInfo);\n\t\t\t}\n\n\t\t\t// populate SKUs for JS\n\t\t\t$skusInfo = new \\stdClass();\n\t\t\t$skusInfo->sId = $line->skuId;\n\t\t\t$skusInfo->sPrice = $line->sPrice;\n\t\t\t$skusInfo->sAllowMultiple = $line->sAllowMultiple;\n\t\t\t$skusInfo->sTrackInventory = $line->sTrackInventory;\n\t\t\t$skusInfo->sInventory = $line->sInventory;\n\n\t\t\t$skus[$line->skuId]['info'] = $skusInfo;\n\t\t\t$skus[$line->skuId]['options'][] = $line->skusOptionId;\n\t\t\tunset($skusInfo);\n\n\t\t}\n\n\t\t$ret = new \\stdClass();\n\t\t$ret->options = $options;\n\t\t$ret->skus = $skus;\n\n\t\t$returnObject->options = $ret;\n\t\treturn $returnObject;\n\t}", "public function designProfit(){\n\t\treturn $this->campaigns()\n\t\t\t->join('order_detail', 'product_campaign.id', 'order_detail.campaign_id')\n\t\t\t->join('order', 'order_detail.order_id', 'order.id')\n\t\t\t->join('order_status', 'order.id', 'order_status.order_id')\n\t\t\t->where('order_status.value', 4)\n\t\t\t->sum('product_quantity') * 25000;\n\t}", "protected function get_item_configurations( $item, $configurations ) {\n // echo '<pre>'; var_dump( $item ); echo '</pre>';\n // echo '<pre>'; var_dump( wp_get_object_terms( $item['product_id'], 'product_cat' ) ); echo '</pre>';\n // echo '<pre>'; var_dump( wp_get_object_terms( $item['variation_id'], 'product_cat' ) ); echo '</pre>'; \n\n $categories = wp_get_object_terms( $item['product_id'], 'product_cat' );\n $shipping_classes = $item['data']->get_shipping_class_id();\n $shipping_classes = is_array( $shipping_classes ) ? $shipping_classes : array( $shipping_classes );\n\n // echo '<pre>'; var_dump( $shipping_classes ); echo '</pre>';\n // die;\n\n $applicable_configurations = array(); \n\n foreach ( $configurations as $i => $configuration ) {\n\n $secondary_priority = 2;\n\n $applicable = false;\n if ( $configuration['category'] == 'all' ) {\n $applicable = true;\n } \n else {\n foreach ( $categories as $category ) {\n if ( $category->term_id == $configuration['category'] ) {\n $applicable = true;\n $secondary_priority--;\n }\n } \n }\n\n if ( $applicable === true ) {\n if ( $configuration['shipping_class'] == 'all' ) {\n $configuration['secondary_priority'] = $secondary_priority;\n $applicable_configurations[] = $configuration;\n } \n else { \n foreach ( $shipping_classes as $shipping_class ) {\n if ( $shipping_class == $configuration['shipping_class'] ) {\n $secondary_priority--;\n $configuration['secondary_priority'] = $secondary_priority;\n $applicable_configurations[] = $configuration;\n }\n } \n }\n } \n }\n\n return $applicable_configurations;\n }", "public function loadVariantInformation()\n {\n if ($this->_aVariantList === null) {\n $oProduct = $this->getProduct();\n\n //if we are child and do not have any variants then let's load all parent variants as ours\n if ($oParent = $oProduct->getParentArticle()) {\n $myConfig = $this->getConfig();\n\n $oParent->setNoVariantLoading(false);\n $this->_aVariantList = $oParent->getFullVariants(false);\n\n //lets additionally add parent article if it is sellable\n if (count($this->_aVariantList) && $myConfig->getConfigParam('blVariantParentBuyable')) {\n //#1104S if parent is buyable load select lists too\n $oParent->enablePriceLoad();\n $oParent->aSelectlist = $oParent->getSelectLists();\n $this->_aVariantList = array_merge(array($oParent), $this->_aVariantList->getArray());\n }\n } else {\n //loading full list of variants\n $this->_aVariantList = $oProduct->getFullVariants(false);\n }\n\n // setting link type for variants ..\n foreach ($this->_aVariantList as $oVariant) {\n $this->_processProduct($oVariant);\n }\n\n }\n\n return $this->_aVariantList;\n }", "function ppt_resources_get_delivered_planned_orders($data)\n{\n global $user;\n $months = array(\n \"01\" => 'December',\n \"02\" => 'January',\n \"03\" => 'February',\n \"04\" => 'March',\n \"05\" => 'April',\n \"06\" => 'May',\n \"07\" => 'June',\n \"08\" => 'July',\n \"09\" => 'August',\n \"10\" => 'September',\n \"11\" => 'October',\n \"12\" => 'November',\n );\n\n if (!isset($data['year'])) {\n return services_error('Year is not defined!', 500);\n }\n\n if (empty($data['accounts'])) {\n return services_error('Accounts is not defined!', 500);\n }\n\n if (empty($data['products'])) {\n return services_error('Products is not defined!', 500);\n }\n\n $year = $data['year'];\n $accounts = $data['accounts'];\n $products = $data['products'];\n $dates = get_year_dates($year);\n $start_date = $dates['start_date'];\n $end_date = $dates['end_date'];\n\n $query = new EntityFieldQuery();\n $query->entityCondition('entity_type', 'node')\n ->entityCondition('bundle', 'planned_order')\n ->fieldCondition('field_planned_account', 'target_id', $accounts, 'IN')\n ->fieldCondition('field_planned_product', 'target_id', $products, 'IN')\n ->fieldCondition('field_planned_actual_period', 'value', $start_date, '>=')\n ->fieldCondition('field_planned_actual_period', 'value', $end_date, '<=')\n ->addMetaData('account', user_load(1));\n\n $records = $query->execute();\n $final_arr = [];\n\n if (isset($records['node'])) {\n $nodes_ids = array_keys($records['node']);\n $nodes = node_load_multiple($nodes_ids);\n\n foreach ($nodes as $node) {\n // Get node planned product name.\n $planned_product_tid = $node->field_planned_product['und'][0]['target_id'];\n $planned_product = taxonomy_term_load($planned_product_tid);\n $planned_product_name = $planned_product->name;\n\n // Get node date for product (planned).\n if (isset($node->field_planned_actual_period['und'])) {\n $node_date = $node->field_planned_actual_period['und'][0]['value'];\n $delivered_month = date(\"F\", strtotime($node_date));\n }\n\n // Get node values for planned quantity.\n $delivered_quantity = 0;\n if (isset($node->field_planned_delivered_quantity['und'])) {\n $delivered_quantity = $node->field_planned_delivered_quantity['und'][0]['value'];\n }\n\n // If product already exists, update its values for node months.\n if (isset($final_arr['delivered'][$planned_product_name])) {\n if (isset($final_arr['delivered'][$planned_product_name][$delivered_month])) {\n $final_arr['delivered'][$planned_product_name][$delivered_month][0] += (int) $delivered_quantity;\n } else {\n $final_arr['delivered'][$planned_product_name][$delivered_month][0] = [(int) $delivered_quantity];\n }\n } else {\n // Initialze product array with 0 for all months, then update it with current node data.\n $final_arr['delivered'][$planned_product_name] = [];\n for ($i = 1; $i <= 12; $i++) {\n $month = $months[sprintf('%02d', $i)];\n $final_arr['delivered'][$planned_product_name][$month] = [0];\n }\n $final_arr['delivered'][$planned_product_name][$delivered_month] = [(int) $delivered_quantity];\n }\n }\n }\n return $final_arr;\n}", "public function getProductCollection()\n {\n $this->_basketProducts = $this->_getCartProductIds();\n $products = $this->_complementaryEngine->sendQuery($this->_basketProducts);\n\n if ($products['rules']) {\n return $this->_getPredictedProducts($products['rules']);\n }\n\n return false;\n }", "public function searchProfessionals($pCriteria){\n\t\t// \t-> get();\n\n\t// \t return $this -> professional -> join('pros_specs', 'professionals.ID', '=', 'pros_specs.professionalID')\n\t// \t\t -> join('specializations', 'specializations.ID', '=', 'pros_specs.specializationID')\n\t// \t\t-> join('pros_creativefields', 'professionals.ID', '=', 'pros_creativefields.ProfessionalID')\n\t// \t\t-> join('creativefields', 'pros_creativefields.CreativeFieldID', '=', 'creativefields.ID')\n\t// \t\t-> join('pros_platforms', 'professionals.ID', '=', 'pros_platforms.ProfessionalID')\n\t// \t\t-> join('platforms', 'platforms.ID', '=', 'pros_platforms.PlatformID')\n\t// \t\t-> join('cities', 'professionals.CityID', '=', 'Cities.ID')\n\t// \t\t-> where('CompanyName', 'LIKE', '%' . $pCriteria['pCompanyName'] . '%')\n\t// \t\t-> whereIn('specializations.ID', $pCriteria['pSpecializations'])\n\t// \t\t-> whereIn('creativefields.ID', $pCriteria['pCreativeFields'])\n\t// \t\t-> whereIn('platforms.ID', $pCriteria['pPlatforms'])\n\t// \t\t-> whereIn('cities.ID', $pCriteria['pCities']) \n\t// \t\t-> groupBy('professionals.ID')\n\t// \t\t-> distinct() -> get();\n\t// }\n\n\t\t$searchQuery = $this -> professional -> queryJoiningTables();\n\n\t\tif(!is_null($pCriteria['pCompanyName'])){\n\t\t\t$searchQuery = $searchQuery -> queryCompanyName($pCriteria['pCompanyName']);\n\t\t}\n\n\t\tif(!is_null($pCriteria['pSpecializations'])){\n\t\t\t$searchQuery = $searchQuery -> querySpecializations($pCriteria['pSpecializations']);\n\t\t}\n\n\t\tif(!is_null($pCriteria['pCreativeFields'])){\n\t\t\t$searchQuery = $searchQuery -> queryCreativeFields($pCriteria['pCreativeFields']);\n\t\t}\n\n\t\tif(!is_null($pCriteria['pPlatforms'])){\n\t\t\t$searchQuery = $searchQuery -> queryPlatforms($pCriteria['pPlatforms']);\n\t\t}\n\n\t\tif(!is_null($pCriteria['pCities'])){\n\t\t\t$searchQuery = $searchQuery -> queryCities($pCriteria['pCities']);\n\t\t}\n\n\n\n\t\treturn $searchQuery -> groupBy('professionals.ID') \n\t\t\t-> distinct() -> get(array('Professionals.*'));\n\t}", "public function getProductSelections();", "public function resolveVariants()\n {\n $removed = array();\n foreach ($this->disabledVariants as $n => $true) {\n if ($this->hasVariant($n)) {\n $this->removeVariant($n);\n $removed[] = $n;\n }\n }\n\n return $removed;\n }", "public function getProductTextAdv($product,$adv_type='Inline') {\n $product_id=$product->getId();\n $child_ids=array();\n if ($product->isConfigurable()){\n $associatedProducts = $product->getTypeInstance()->getConfigurableAttributesAsArray($product); \n foreach ($product->getTypeInstance()->getUsedProducts() as $childProduct) {\n $child_ids[]=$childProduct->getId();\n }\n }\n \n switch ($adv_type){\n case \"Bottom\":\n $display_zone=$this->product_bottom_advertisment_name;\n break;\n case \"Top\":\n $display_zone=$this->product_top_advertisment_name;\n break;\n case \"Inline\":\n default :\n $display_zone=$this->product_inline_advertisment_name;\n break;\n }\n\n $condition_2 = $this->_getReadAdapter()->quoteInto('bi.banner_id=b.banner_id','');\n $condition_3 = $this->_getReadAdapter()->quoteInto('bi.promotion_reference=pt.yourref', ''); // and bi.promotion_reference != \\'\\','');\n $condition_4 = $this->_getReadAdapter()->quoteInto(\"qphp.promotion_id=pt.promotion_id \",'');\n\n $where = \"b.status > 0 and \";\n $where .= \"(pt.promotion_text is null or pt.promotion_text!='' or bi.filename!='') and \";\n $where .= \"b.display_zone like '%\" . $display_zone . \"%' and \";\n $where .= \"(qphp.promotion_id is null or (\";\n if (count($child_ids))\n {\n $where .= \" ((qphp.parent_product_id='\" . (int)$product_id . \"' and \";\n $where .= \"qphp.product_id in (\" . join(\",\",$child_ids) . \")) or \";\n $where .= \"(qphp.product_id='\" . (int)$product_id.\"' and \";\n $where .= \"qphp.parent_product_id=0) )\";\n }\n else\n {\n $where .= \" qphp.product_id='\" . (int)$product_id . \"' and qphp.parent_product_id=0\";\n }\n $where .= \"))\";\n \n $select = $this->_getReadAdapter()->select()->from(array('b'=>$this->getTable('qixol/banner')))\n ->join(array('bi'=>$this->getTable('qixol/bannerimage')), $condition_2)\n ->joinLeft(array('pt'=>$this->getTable('promotions')), $condition_3)\n ->joinLeft(array('qphp'=>$this->getTable('promotionhasproduct')), $condition_4)\n ->where($where)\n ->group(array(\"bi.banner_id\",\"bi.banner_image_id\"))\n ->order('bi.sort_order')\n ->reset('columns')\n ->columns(array('bi.comment','bi.filename',\"bi.url\"));\n\n $data=$this->_getReadAdapter()->fetchAll($select);\n\n if (count($data)) return $data;\n return false;\n }", "public function variations()\n {\n return $this->hasMany(ProductVariation::class);\n }", "function get_product_id_query($diffID = null, $parentID = null, $category = null) {\n global $wpdb;\n\n if( isset($_GET[\"another-make\"]) ) {\n $product_results = $wpdb->get_results(\n $wpdb->prepare(\n \"SELECT DISTINCT post_id\n FROM wp_postmeta\n WHERE meta_key = %s\n AND meta_value\n IN (SELECT ProductID FROM randys_advancedsearch WHERE DiffID = %s)\",\n array('_randy_productid', $diffID)\n )\n );\n } elseif (isset($diffID) && isset($parentID) && isset($category) ) {\n $product_results = $wpdb->get_results(\n $wpdb->prepare(\n \"SELECT post_id\n FROM wp_postmeta\n WHERE meta_key = %s\n AND meta_value\n IN (SELECT ProductID FROM randys_advancedsearch WHERE DiffID = %s AND ParentID = %d AND Category = %s )\",\n array('_randy_productid', $diffID, $parentID, $category)\n )\n );\n } elseif(isset($diffID) && !isset($parentID) && !isset($category) ) {\n $item = '';\n $value = array('_randy_productid', $diffID);\n\n if( isset($_GET['diffyear']) ) {\n $item .= 'AND startyear <= %d AND endyear >= %d ';\n array_push($value, $_GET[\"diffyear\"], $_GET[\"diffyear\"]);\n }\n\n if( isset($_GET['make']) ) {\n $item .= 'AND make = %s ';\n array_push($value, $_GET['make']);\n }\n\n if( isset($_GET['model']) ) {\n $item .= 'AND model = %s ';\n array_push($value, $_GET['model']);\n }\n\n if( isset($_GET['drivetype']) ) {\n $split_drivetype = explode(\" Diff - \", $_GET['drivetype']);\n\n $item .= 'AND drivetype = %s AND side = %s';\n array_push($value, $split_drivetype[1], $split_drivetype[0]);\n }\n\n $product_results = $wpdb->get_results($wpdb->prepare(\"SELECT DISTINCT post_id FROM wp_postmeta WHERE meta_key = %s AND meta_value IN (SELECT ProductID FROM randys_advancedsearch WHERE DiffID = %s \" . $item . \")\", $value)); // WPCS: unprepared SQL OK\n\n } else {\n $category_where = '';\n $category_data = '';\n if( isset($category) ) {\n $category_where = 'AND Category = %s';\n $category_data = $category;\n }\n $query = $wpdb->prepare(\"SELECT post_id FROM wp_postmeta WHERE meta_key = %s AND meta_value IN (SELECT ProductID FROM randys_advancedsearch WHERE DiffID = %s \" . $category_where . \" )\", array('_randy_productid', $diffID, $category_data)); // WPCS: unprepared SQL OK\n $product_results = $wpdb->get_results($query); // WPCS: unprepared SQL OK\n }\n return $product_results;\n}", "private function updateProductVariants($params)\n {\n if ($params['variants']) {\n foreach ($params['variants'] as $productParams) {\n $product = Product::find($productParams['id']);\n $product->update($productParams);\n\n $product->status = $params['status'];\n $product->save();\n\n ProductInventory::updateOrCreate(['product_id' => $product->id], ['qty' => $productParams['qty']]);\n }\n }\n }", "public function generateFacet(\n FacetInterface $facet,\n Criteria $criteria,\n Struct\\ShopContextInterface $context\n ) {\n $activeOptions = array();\n\n $productVariantCondition = $criteria->getCondition('swag-variant-filter-product-variant');\n\n if ($productVariantCondition && $productVariantCondition instanceof ProductVariantCondition) {\n $activeOptions = $productVariantCondition->getProductVariantIds(ProductVariantCondition::FORMAT_FLAT);\n }\n\n $queryCriteria = clone $criteria;\n $queryCriteria->resetConditions();\n\n $query = $this->queryBuilderFactory->createQuery($queryCriteria, $context);\n $query->select('configuratorOptionRelations.option_id')\n ->innerJoin(\n 'product',\n 's_articles_details',\n 'variantFilterDetails',\n 'variantFilterDetails.articleID = product.id'\n )\n ->innerJoin(\n 'variantFilterDetails',\n 's_article_configurator_option_relations',\n 'configuratorOptionRelations',\n 'configuratorOptionRelations.article_id = variantFilterDetails.id'\n )\n ->groupBy('configuratorOptionRelations.option_id');\n\n $ids = (array) $query->execute()->fetchAll(\\PDO::FETCH_COLUMN);\n\n $filterConditions = $this->productVariantService->getFilterConditions($ids, $activeOptions);\n\n if (!$filterConditions) {\n return null;\n }\n\n return new ProductVariantFacetResult(\n $filterConditions,\n $this->snippetNamespace->get('FilterHeadlineVariants', 'Variantfilter')\n );\n }", "function getCommonProvisions();", "public function GetVariants()\r\n\t{\r\n\t\treturn $this->variant_model->GetAllBy(array(\"test_id\"=>$this->id));\r\n\t}", "public function get_prod_options_by_search()\n {\n $keyword = $this->input->get('keyword'); \n\n $result = $this->products_model->get_prod_by_search($keyword); \n\n $prod_options = '';\n\n if(!empty($result))\n {\n foreach($result as $row)\n { \n\t\t\t\t$prod = '['.$row['prod_id'].'] '.$row['prod_name'].' '.$row['prod_color']; \n\n\t\t\t\tpreg_match('/\\\\[(.+?)\\\\]/', $prod, $match); \n\n\t\t\t\t$pid = $match[1]; \n\n\t\t\t\t/* $prod .= \" - \".$pid; */\n\t\t\t\t\n\n $prod_options .= '<option value=\"'.$prod.'\"></option>';\n\t\t\t}\t\n }\n\t\t\n\t\techo $prod_options; \n\t}", "public function getVariation()\n {\n return $this->db->get($this->product_variant);\n }", "function ppt_resources_get_planned_delivered($data)\n{\n $year = date('Y');\n $dates = get_year_dates($year);\n $start_date = $dates['start_date'];\n $end_date = $dates['end_date'];\n if (isset($data['uid'])) {\n $uid = $data['uid'];\n } else {\n global $user;\n $uid = $user->uid;\n }\n $user = user_load($uid);\n if (isset($data['countries'])) {\n $countries = $data['countries'];\n } else {\n $countries = get_user_countries($user);\n }\n // Check if user selected accounts.\n if (isset($data['accounts'])) {\n $accounts = $data['accounts'];\n } else {\n $accounts = ppt_resources_get_role_accounts($user, $countries, FALSE);\n }\n $products = [];\n // Check if user selected products.\n if (isset($data['products'])) {\n $products = $data['products'];\n } else {\n // If the user is rep.\n if (is_rep($user)) {\n $products = get_products_for_current_user($uid, FALSE, FALSE);\n } else {\n $products = get_target_products_for_accounts($accounts);\n }\n }\n\n $nodes = get_planned_orders_for_acconuts_per_year($year, $accounts);\n\n // Initialze empty months.\n $months = array(\n \"01\" => 'December',\n \"02\" => 'January',\n \"03\" => 'February',\n \"04\" => 'March',\n \"05\" => 'April',\n \"06\" => 'May',\n \"07\" => 'June',\n \"08\" => 'July',\n \"09\" => 'August',\n \"10\" => 'September',\n \"11\" => 'October',\n \"12\" => 'November',\n );\n $final_arr = [];\n if (isset($nodes)) {\n // Consider a product exists with mutiple accounts.\n foreach ($nodes as $nid => $item) {\n $node = node_load($nid);\n $planned_product_tid = $node->field_planned_product[\"und\"][0][\"target_id\"];\n if (in_array($planned_product_tid, $products)) {\n $planned_product = taxonomy_term_load($planned_product_tid);\n $planned_product_name = $planned_product->name;\n // Get node values for product (planned and delivered).\n if (isset($node->field_planned_period[\"und\"])) {\n $node_date = $node->field_planned_period[\"und\"][0]['value'];\n $planned_month = date(\"F\", strtotime($node_date));\n }\n $planned_quantity = 0;\n if (isset($node->field_planned_quantity[\"und\"])) {\n $planned_quantity = $node->field_planned_quantity[\"und\"][0][\"value\"];\n }\n if (isset($node->field_planned_actual_period[\"und\"])) {\n $node_date = $node->field_planned_actual_period[\"und\"][0]['value'];\n $delivery_month = date(\"F\", strtotime($node_date));\n }\n $delivered_quantity = 0;\n if (isset($node->field_planned_delivered_quantity[\"und\"])) {\n $delivered_quantity = $node->field_planned_delivered_quantity[\"und\"][0][\"value\"];\n }\n // If product already exists, update its values for node months.\n if (isset($final_arr[$planned_product_name])) {\n if (isset($final_arr[$planned_product_name][\"Planned\"][$planned_month])) {\n $final_arr[$planned_product_name][\"Planned\"][$planned_month][0] += (int) $planned_quantity;\n } else {\n $final_arr[$planned_product_name][\"Planned\"][$planned_month][0] = [(int) $planned_quantity];\n }\n if (isset($final_arr[$planned_product_name][\"Actual\"][$delivery_month])) {\n $final_arr[$planned_product_name][\"Actual\"][$delivery_month][0] += (int) $delivered_quantity;\n } else {\n $final_arr[$planned_product_name][\"Actual\"][$delivery_month] = [(int) $delivered_quantity];\n }\n } else {\n // Initialze product array with 0 for all months, then update it with current node data.\n $final_arr[$planned_product_name] = [\"Actual\" => [], \"Planned\" => []];\n for ($i = 1; $i <= 12; $i++) {\n $month = $months[sprintf('%02d', $i)];\n $final_arr[$planned_product_name][\"Actual\"][$month] = [0];\n $final_arr[$planned_product_name][\"Planned\"][$month] = [0];\n }\n $final_arr[$planned_product_name][\"Actual\"][$delivery_month] = [(int) $delivered_quantity];\n $final_arr[$planned_product_name][\"Planned\"][$planned_month] = [(int) $planned_quantity];\n }\n }\n }\n }\n // [product => [actual => [months], target => [months]]]\n return $final_arr;\n}", "function relatedProductsSearch($product_type_id, $product_id)\n\t\t\t\t{\n\t\t\t\t$sql= 'SELECT product. *\n\t\t\t\tFROM product\n\t\t\t\tWHERE product.product_type_id = '.$product_type_id.'\n\t\t\t\tAND product.product_id != '.$product_id.'\n\t\t\t\tORDER BY product.product_id DESC';\n\t\t\t\t\n\t\t\t\t$Q = $this-> db-> query($sql);\n\t\t\t\tforeach ($Q-> result_array() as $row){\n\t\t\t\t}\n\t\t\t\treturn $Q;\n\t\t\t\t}", "public function productsSortedByFastest()\n {\n $products = $this->p();\n usort($products, [$this, 'sortByFastest']);\n return $products;\n }", "function ppt_resources_get_products_all($data)\n{\n $report = ppt_resources_get_products($data);\n if (!isset($data['products']) || empty($data['products'])) {\n return $report;\n }\n\n foreach ($data['products'] as $productId) {\n $children = taxonomy_get_children($productId);\n if (!empty($children)) {\n // $dosage = taxonomy_term_load($productId);\n // $report[$dosage->name] = $report[$dosage->name];.\n $product = taxonomy_term_load($productId);\n $sumDosages = array();\n $childrenIds = array_keys($children);\n $newData = $data;\n $newData['products'] = $childrenIds;\n $oneProductReport = ppt_resources_get_products($newData);\n if (!empty($oneProductReport)) {\n foreach ($oneProductReport as $dosageReport) {\n foreach ($dosageReport as $monthName => $monthReport) {\n if (isset($sumDosages[$monthName])) {\n $sumDosages[$monthName][0] += $monthReport[0];\n $sumDosages[$monthName][1] += $monthReport[1];\n $sumDosages[$monthName][2] += $monthReport[2];\n } else {\n $sumDosages[$monthName] = $monthReport;\n }\n }\n }\n\n $report[$product->name] = $sumDosages;\n }\n }\n }\n return $report;\n}", "public function items($product, $protype='amount', $profit=0, $profit_child=0, $profit_baby=0)\n {\n if ($product['type'] != 2 || $product['payment'] != 'prepay') return $product;\n\n // type = 1 only hotel + auto product\n $sql = \"SELECT a.`id`, a.`name`, a.`objtype` AS `type`, a.`source`, a.`target`, a.`objpid`, a.`objid`, a.`ext`, a.`ext2`, a.`intro`, a.`childstd`, a.`babystd`, a.`default`,\n b.`profit` AS `profit`, b.`child` AS `profit_child`, b.`baby` AS `profit_baby`, b.`type` AS `protype`\n FROM `ptc_product_item` AS a\n LEFT JOIN `ptc_org_profit` AS b ON b.`org` = :org AND b.`payment` = 'prepay' AND b.`objtype` = 'item' AND b.`objid` = a.`id`\n WHERE a.`pid`=:pid\n ORDER BY a.`objtype` DESC, a.`seq` ASC;\";\n $db = db(config('db'));\n $items = $db -> prepare($sql) -> execute(array(':pid'=>$product['id'], ':org'=>api::$org));\n\n $hmax = $fmax = 0;\n $hmin = $fmin = 9999999;\n foreach ($items as $k => $v)\n {\n $sql = \"SELECT a.`id` AS `city`, a.`name` AS `cityname`, a.`pid` AS `country`, b.`name` AS `countryname`, a.`lng`, a.`lat`\n FROM `ptc_district` AS a\n LEFT JOIN `ptc_district` AS b ON a.pid = b.id\n WHERE a.`id`=:id\";\n\n if ($v['source'])\n {\n $source = $db -> prepare($sql) -> execute(array(':id' => $v['source']));\n $items[$k]['source'] = $source[0];\n }\n else\n {\n $items[$k]['source'] = null;\n }\n\n $target = $db -> prepare($sql) -> execute(array(':id' => $v['target']));\n $items[$k]['target'] = $target[0];\n\n if ($v['type'] == 'room')\n {\n $items[$k]['hotel'] = $v['objpid'];\n $items[$k]['room'] = $v['objid'];\n $items[$k]['night'] = $v['ext'];\n\n $sql = \"SELECT p.`key` AS `code`, p.`date`, p.`price`, p.`allot`-`sold` AS `allot`, p.`filled`, p.`standby`\n FROM `ptc_hotel_price_date` AS p\n WHERE p.`supply`='EBK' AND p.`supplyid`=:sup AND p.`hotel`=:hotel AND p.`room`=:room AND p.`close`=0\";\n $condition = array(':sup'=>$product['id'], ':hotel'=>$v['objpid'], ':room'=>$v['id']);\n\n $date = $db -> prepare($sql) -> execute($condition);\n }\n else\n {\n $items[$k]['auto'] = $v['objpid'];\n\n $sql = \"SELECT p.`key` AS `code`, p.`date`, p.`price`, p.`child`, p.`baby`, p.`allot`-p.`sold` AS `allot`, p.`filled`\n FROM `ptc_auto_price_date` AS p\n WHERE `auto`=:auto AND `close`=0\";\n $condition = array(':auto'=>$v['objpid']);\n\n $date = $db -> prepare($sql) -> execute($condition);\n }\n\n if ($v['protype'])\n {\n $_protype = $v['protype'];\n $_profit = $v['profit'];\n $_profit_child = $v['profit_child'];\n $_profit_baby = $v['profit_baby'];\n }\n else\n {\n $_protype = $protype;\n $_profit = $profit;\n $_profit_child = $profit_child;\n $_profit_baby = $profit_baby;\n }\n\n unset($items[$k]['protype'], $items[$k]['profit'], $items[$k]['profit_child'], $items[$k]['profit_baby']);\n\n $items[$k]['dates'] = array();\n foreach ($date as $d)\n {\n $d['code'] = key_encryption($d['code'].'_auto'.$product['id'].'.'.$v['id'].'_product2');\n $d['date'] = date('Y-m-d', $d['date']);\n $d['price'] = $d['price'] + round($_protype == 'amount' ? $_profit : ($d['price'] * $_profit / 100));\n $d['allot'] = $d['filled'] || $d['allot'] < 0 ? 0 : $d['allot'];\n if (isset($d['standby']))\n {\n $standby = json_decode($d['standby'], true);\n $d['child'] = $standby['child'] ? $standby['child'] + round($_protype == 'amount' ? $_profit_child : ($standby['child'] * $_profit_child / 100)) : 0;\n $d['baby'] = $standby['baby'] ? $standby['baby'] + round($_protype == 'amount' ? $_profit_baby : ($standby['baby'] * $_profit_baby / 100)) : 0;\n }\n else\n {\n $d['child'] = $d['child'] ? $d['child'] + round($_protype == 'amount' ? $_profit_child : ($d['child'] * $_profit_child / 100)) : 0;\n $d['baby'] = $d['baby'] ? $d['baby'] + round($_protype == 'amount' ? $_profit_baby : ($d['baby'] * $_profit_baby / 100)) : 0;\n }\n unset($d['uncombine'], $d['combine'], $d['standby']);\n $items[$k]['dates'][] = $d;\n\n if (!$d['allot']) continue;\n\n if ($v['type'] == 'room')\n {\n $hmin = $hmin > $d['price'] ? $d['price'] : $hmin;\n $hmax = $hmax < $d['price'] ? $d['price'] : $hmax;\n }\n else\n {\n $fmin = $fmin > $d['price'] ? $d['price'] : $fmin;\n $fmax = $fmax < $d['price'] ? $d['price'] : $fmax;\n }\n }\n }\n\n $product['maxprice'] = $hmax + $fmax;\n $product['minprice'] = $hmin + $fmin;\n $product['items'] = $items;\n return $product;\n }", "public function product_is_in_plans( $product_id ) {\n $product = wc_get_product( $product_id );\n if ( !$product )\n return array();\n\n $plan_ids = array();\n\n $restrict_access_plan = get_post_meta( $product_id, '_yith_wcmbs_restrict_access_plan', true );\n if ( !empty( $restrict_access_plan ) ) {\n $plan_ids = $restrict_access_plan;\n }\n\n $prod_cats_plans_array = array();\n $prod_tags_plans_array = array();\n $plans_info = YITH_WCMBS_Manager()->get_plans_info_array();;\n extract( $plans_info );\n\n // FILTER PRODUCT CATS AND TAGS IN PLANS\n if ( !empty( $prod_cats_plans_array ) ) {\n //$this_product_cats = wp_get_post_terms( $product_id, 'product_cat', array( 'fields' => 'ids' ) );\n $this_product_cats = yith_wcmbs_get_post_term_ids( $product_id, 'product_cat', array(), true );\n foreach ( $prod_cats_plans_array as $cat_id => $c_plan_ids ) {\n if ( !empty( $c_plan_ids ) && in_array( $cat_id, (array) $this_product_cats ) ) {\n $plan_ids = array_merge( $plan_ids, $c_plan_ids );\n }\n }\n }\n if ( !empty( $prod_tags_plans_array ) ) {\n $this_product_tags = wp_get_post_terms( $product_id, 'product_tag', array( 'fields' => 'ids' ) );\n foreach ( $prod_tags_plans_array as $tag_id => $t_plan_ids ) {\n if ( !empty( $t_plan_ids ) && in_array( $tag_id, (array) $this_product_tags ) ) {\n $plan_ids = array_merge( $plan_ids, $t_plan_ids );\n }\n }\n }\n\n foreach ( $plan_ids as $key => $plan_id ) {\n $allowed = YITH_WCMBS_Manager()->exclude_hidden_items( array( $product_id ), $plan_id );\n $is_hidden_in_plan = empty( $allowed );\n if ( $is_hidden_in_plan )\n unset( $plan_ids[ $key ] );\n }\n\n return array_unique( $plan_ids );\n }", "public static function get_product_variants($product_db, &$results)\n {\n $product = $product_db->get_metadata();\n\n // Get a dictionary of images (will be necessary for mapping variant images\n $images = array_combine(array_column($product['images'], 'id'), $product['images']);\n $default_image = $product['image'];\n $vendor = $product['vendor'];\n $name = $product['title'];\n\n // Flatten all variants as if they were individual products\n foreach ($product['variants'] as $variant) {\n $variant_id = $variant['id'];\n $variant_name = $variant['title'];\n $price = $variant['price'];\n if (!is_null($variant['image_id']))\n $image = $images[$variant['image_id']]['src'];\n else\n $image = $default_image['src'];\n\n $metadata = [\n 'id' => $product['id'],\n 'product_id' => $product['id'],\n 'variant_id' => $variant_id,\n 'vendor' => $vendor,\n 'name' => $name,\n 'variant_name' => $variant_name,\n 'price' => $price,\n 'image' => $image\n ];\n\n self::get_product_variant_from_db($product_db, $product['id'], $variant_id, $metadata, $image, $price);\n\n $results[] = $metadata;\n }\n }", "abstract protected function getExistingVendorProduct(int $vendorProductId);", "public function listProductsRelated($params)\n{\n $type = $this->db->real_escape_string($params['type']);\n $prdId = $this->db->real_escape_string($params['prdId']);\n\n if ($type == 'K'){\n $qry = \"SELECT pr.*, sc.sbc_name, ct.cat_name \n FROM ctt_products AS pr\n INNER JOIN ctt_subcategories AS sc ON sc.sbc_id = pr.sbc_id\n INNER JOIN ctt_categories AS ct ON ct.cat_id = sc.cat_id\n WHERE prd_id = $prdId AND pr.prd_status = 1 AND sc.sbc_status = 1 AND ct.cat_status = 1\n UNION\n SELECT pr.*, sc.sbc_name, ct.cat_name \n FROM ctt_products_packages AS pk\n INNER JOIN ctt_products AS pr ON pr.prd_id = pk.prd_id\n INNER JOIN ctt_subcategories AS sc ON sc.sbc_id = pr.sbc_id\n INNER JOIN ctt_categories AS ct ON ct.cat_id = sc.cat_id\n WHERE pk.prd_parent = $prdId AND pr.prd_status = 1 AND sc.sbc_status = 1 AND ct.cat_status = 1;\";\n return $this->db->query($qry);\n // cambio ac.prd_id por prd_parent\n } else if($type == 'P') {\n $qry = \"SELECT pr.*, sc.sbc_name, ct.cat_name \n FROM ctt_products AS pr\n INNER JOIN ctt_subcategories AS sc ON sc.sbc_id = pr.sbc_id\n INNER JOIN ctt_categories AS ct ON ct.cat_id = sc.cat_id\n WHERE prd_id = $prdId AND pr.prd_status = 1 AND sc.sbc_status = 1 AND ct.cat_status = 1\n UNION\n SELECT pr.*, sc.sbc_name, ct.cat_name \n FROM ctt_accesories AS ac\n INNER JOIN ctt_products AS pr ON pr.prd_id = ac.prd_parent \n INNER JOIN ctt_subcategories AS sc ON sc.sbc_id = pr.sbc_id\n INNER JOIN ctt_categories AS ct ON ct.cat_id = sc.cat_id\n WHERE ac.prd_parent = $prdId AND pr.prd_status = 1 AND sc.sbc_status = 1 AND ct.cat_status = 1;\";\n return $this->db->query($qry);\n\n } else {\n $qry = \"SELECT * FROM ctt_products WHERE prd_id = $prdId\";\n return $this->db->query($qry);\n }\n}", "protected function _findVariants($state, array $query, array $results = array()) {\n\t\tif ($state == 'before') {\n\t\t\t$query = array_merge(array(\n\t\t\t\t'shop_product_variant_id' => null,\n\t\t\t\t'override' => true\n\t\t\t), $query);\n\n\t\t\t$fields = array(\n\t\t\t\t$this->alias . '.' . $this->primaryKey,\n\t\t\t\t$this->alias . '.shop_product_variant_id',\n\n\t\t\t\t$this->ShopOptionValue->ShopOption->alias . '.' . $this->ShopOptionValue->ShopOption->primaryKey,\n\t\t\t\t$this->ShopOptionValue->ShopOption->alias . '.' . $this->ShopOptionValue->ShopOption->displayField,\n\t\t\t\t$this->ShopOptionValue->ShopOption->alias . '.slug',\n\t\t\t\t$this->ShopOptionValue->ShopOption->alias . '.description',\n\t\t\t\t$this->ShopOptionValue->ShopOption->alias . '.required',\n\n\t\t\t\t$this->ShopOptionValue->alias . '.' . $this->ShopOptionValue->primaryKey,\n\t\t\t\t$this->ShopOptionValue->alias . '.' . $this->ShopOptionValue->displayField,\n\t\t\t\t$this->ShopOptionValue->alias . '.description',\n\t\t\t\t$this->ShopOptionValue->alias . '.product_code',\n\t\t\t);\n\t\t\t$query['fields'] = array_merge(\n\t\t\t\t(array)$query['fields'],\n\t\t\t\t$fields,\n\t\t\t\t$this->ShopPrice->findFields(),\n\t\t\t\t$this->ShopSize->findFields(),\n\t\t\t\t$this->ShopPrice->findFields('ShopOptionPrice'),\n\t\t\t\t$this->ShopSize->findFields('ShopOptionSize')\n\t\t\t);\n\n\t\t\t$query['conditions'] = array_merge((array)$query['conditions'], array(\n\t\t\t\t$this->alias . '.shop_product_variant_id' => $query['shop_product_variant_id']\n\t\t\t));\n\n\t\t\t$query['joins'][] = $this->autoJoinModel($this->ShopPrice->fullModelName());\n\t\t\t$query['joins'][] = $this->autoJoinModel($this->ShopSize->fullModelName());\n\t\t\t$query['joins'][] = $this->autoJoinModel($this->ShopOptionValue->fullModelName());\n\t\t\t$query['joins'][] = $this->ShopOptionValue->autoJoinModel($this->ShopOptionValue->ShopOption->fullModelName());\n\t\t\t$query['joins'][] = $this->ShopOptionValue->autoJoinModel(array(\n\t\t\t\t'model' => $this->ShopOptionValue->ShopPrice->fullModelName(),\n\t\t\t\t'alias' => 'ShopOptionPrice'\n\t\t\t));\n\t\t\t$query['joins'][] = $this->ShopOptionValue->autoJoinModel(array(\n\t\t\t\t'model' => $this->ShopOptionValue->ShopSize->fullModelName(),\n\t\t\t\t'alias' => 'ShopOptionSize'\n\t\t\t));\n\t\t\treturn $query;\n\t\t}\n\n\t\tif (empty($results)) {\n\t\t\treturn array();\n\t\t}\n\n\t\tforeach ($results as &$result) {\n\t\t\t$tmp = $result[$this->alias];\n\t\t\tunset($result[$this->alias]);\n\t\t\t$result = array_merge($tmp, $result);\n\n\t\t\t$result[$this->ShopOptionValue->alias][$this->ShopPrice->alias] = $result['ShopOptionPrice'];\n\t\t\t$result[$this->ShopOptionValue->alias][$this->ShopSize->alias] = $result['ShopOptionSize'];\n\n\t\t\tif ($query['override']) {\n\t\t\t\t$this->_override($result);\n\t\t\t}\n\n\t\t\tunset($tmp, $result['ShopOptionPrice'], $result['ShopOptionSize']);\n\t\t}\n\n\t\treturn $results;\n\t}", "public function getComparePrice($productId) {\n $productCollection = Mage::getModel ( static::CAT_PRO )->getCollection ()->addAttributeToSelect ( '*' )->addAttributeToFilter ( 'is_assign_product', array (\n 'eq' => 1 \n ) )->addAttributeToFilter ( static::STATUS, array (\n 'eq' => Mage_Catalog_Model_Product_Status::STATUS_ENABLED \n ) );\n \n $productCollection->addFieldToFilter ( 'assign_product_id', array (\n 'eq' => $productId \n ) );\n $productCollection->setOrder ( 'price', 'ASC' );\n return $productCollection;\n }", "public function getProductOption();", "function basel_get_compared_products_data() {\n\t\t$ids = basel_get_compared_products();\n\n\t\tif ( empty( $ids ) ) {\n\t\t\treturn array();\n\t\t}\n\n\t\t$args = array(\n\t\t\t'include' => $ids,\n\t\t\t'limit' => 100,\n\t\t);\n\n\t\t$products = wc_get_products( $args );\n\n\t\t$products_data = array();\n\n\t\t$fields = basel_get_compare_fields();\n\n\t\t$fields = array_filter(\n\t\t\t$fields,\n\t\t\tfunction( $field ) {\n\t\t\t\treturn 'pa_' === substr( $field, 0, 3 );\n\t\t\t},\n\t\t\tARRAY_FILTER_USE_KEY\n\t\t);\n\n\t\t$divider = '-';\n\n\t\tforeach ( $products as $product ) {\n\t\t\t$rating_count = $product->get_rating_count();\n\t\t\t$average = $product->get_average_rating();\n\n\t\t\t$products_data[ $product->get_id() ] = array(\n\t\t\t\t'basic' => array(\n\t\t\t\t\t'title' => $product->get_title() ? $product->get_title() : $divider,\n\t\t\t\t\t'image' => $product->get_image() ? $product->get_image() : $divider,\n\t\t\t\t\t'rating' => wc_get_rating_html( $average, $rating_count ),\n\t\t\t\t\t'price' => $product->get_price_html() ? $product->get_price_html() : $divider,\n\t\t\t\t\t'add_to_cart' => basel_compare_add_to_cart_html( $product ) ? basel_compare_add_to_cart_html( $product ) : $divider,\n\t\t\t\t),\n\t\t\t\t'id' => $product->get_id(),\n\t\t\t\t'image_id' => $product->get_image_id(),\n\t\t\t\t'permalink' => $product->get_permalink(),\n\t\t\t\t'dimensions' => wc_format_dimensions( $product->get_dimensions( false ) ),\n\t\t\t\t'description' => $product->get_short_description() ? $product->get_short_description() : $divider,\n\t\t\t\t'weight' => $product->get_weight() ? $product->get_weight() : $divider,\n\t\t\t\t'sku' => $product->get_sku() ? $product->get_sku() : $divider,\n\t\t\t\t'availability' => basel_compare_availability_html( $product ),\n\t\t\t);\n\n\t\t\tforeach ( $fields as $field_id => $field_name ) {\n\t\t\t\tif ( taxonomy_exists( $field_id ) ) {\n\t\t\t\t\t$products_data[ $product->get_id() ][ $field_id ] = array();\n\t\t\t\t\t$orderby = wc_attribute_orderby( $field_id ) ? wc_attribute_orderby( $field_id ) : 'name';\n\t\t\t\t\t$terms = wp_get_post_terms( $product->get_id(), $field_id, array(\n\t\t\t\t\t\t'orderby' => $orderby\n\t\t\t\t\t) );\n\t\t\t\t\tif ( ! empty( $terms ) ) {\n\t\t\t\t\t\tforeach ( $terms as $term ) {\n\t\t\t\t\t\t\t$term = sanitize_term( $term, $field_id );\n\t\t\t\t\t\t\t$products_data[ $product->get_id() ][ $field_id ][] = $term->name;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$products_data[ $product->get_id() ][ $field_id ][] = '-';\n\t\t\t\t\t}\n\t\t\t\t\t$products_data[ $product->get_id() ][ $field_id ] = implode( ', ', $products_data[ $product->get_id() ][ $field_id ] );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn $products_data;\n\t}", "function get_variant_images($id_product, $variant_options=array())\n{\n\tglobal $mysqli, $product;\n\t\n\t$groups=get_variant_groups($id_product);\n\t\n\t// build sql \n\t// get all groups for this product\n\tif (sizeof($groups)) {\n\t\t$joins = array();\t\n\t\t$where = array();\t\t\n\t\t$group_by = array();\t\n\t\t\n\t\t$i=1;\n\t\tforeach ($groups as $id_product_variant_group => $row_group) {\t\n\t\t\t$where_str = array();\n\t\t\t\n\t\t\t$joins[] = 'INNER JOIN\n\t\t\t(product_image_variant_option AS pvo'.$i.')\n\t\t\tON\n\t\t\t(product_image_variant.id = pvo'.$i.'.id_product_image_variant)';\n\t\t\n\t\t\t$where_str[] = 'pvo'.$i.'.id_product_variant_group = \"'.$mysqli->escape_string($id_product_variant_group).'\"';\n\t\t\t\n\t\t\t$stop=0;\n\t\t\tif (isset($variant_options[$id_product_variant_group]) && $variant_options[$id_product_variant_group]) {\n\t\t\t\t$id_product_variant_group_option = $variant_options[$id_product_variant_group];\n\t\t\t\t\n\t\t\t\t$where_str[] = 'pvo'.$i.'.id_product_variant_group_option = \"'.$mysqli->escape_string($id_product_variant_group_option).'\"';\n\t\t\t} else { \n\t\t\t\t$where_str[] = 'pvo'.$i.'.id_product_variant_group_option = 0';\n\t\t\t}\n\t\t\t\n\t\t\t$where[] = implode(' AND ',$where_str);\n\t\t\t\n\t\t\t$i++;\n\t\t\t\n\t\t\t//if ($stop) break;\n\t\t}\n\t\t\n\t\t$joins = implode(\"\\r\\n\",$joins);\n\t\t$where = implode(' AND ',$where);\n\t\t$group_by = implode(',',$group_by);\n\t\t\n\t\t$array=array();\n\t\t\t\t\t\t\n\t\tif ($result_options = $mysqli->query('SELECT\n\t\tproduct_image_variant_image.id, \n\t\tproduct_image_variant_image.original, \n\t\tproduct_image_variant_image.filename,\n\t\tproduct_image_variant_image.cover\n\t\tFROM\n\t\tproduct_image_variant\n\t\tINNER JOIN \n\t\tproduct_image_variant_image\n\t\tON\n\t\t(product_image_variant.id = product_image_variant_image.id_product_image_variant)\n\t\t\n\t\t'.$joins.'\n\t\t\n\t\tWHERE\n\t\tproduct_image_variant.id_product = \"'.$mysqli->escape_string($id_product).'\"\n\t\tAND\n\t\t'.$where.'\n\t\tORDER BY \n\t\tIF(product_image_variant_image.cover=1,-1,product_image_variant_image.sort_order) ASC')) {\t\t\n\t\t\t// if we find variant images\n\t\t\tif ($result_options->num_rows) {\n\t\t\t\twhile ($row_option = $result_options->fetch_assoc()) {\n\t\t\t\t\t$array[$row_option['id']] = $row_option;\t\n\t\t\t\t}\n\t\t\t// if no images for specific variant\n\t\t\t} else {\n\t\t\t\t// loop through variant options, remove last until we find images for this variant \n\t\t\t\tdo {\n\t\t\t\t\tif (!sizeof($variant_options)) break;\n\t\t\t\t\tarray_pop($variant_options);\n\t\t\t\t} while (!sizeof($array = get_variant_images($id_product, $variant_options)));\n\t\t\t\t\n\t\t\t\t// if none is found, load default product image\n\t\t\t\tif (!sizeof($array)) return $product['images'];\n\t\t\t}\n\t\t}\n\t}\n\t\n\treturn $array;\n}", "private function generateProductVariants($product, $params) // .. 2\n {\n $configurableAttributes = $this->_attributeRepository->getConfigurableAttributes();\n $variantAttributes = [];\n\n foreach ($configurableAttributes as $attribute) {\n $variantAttributes[$attribute->code] = $params[$attribute->code];\n }\n\n // dd($variantAttributes);\n\n $variants = $this->generateAttributeCombinations($variantAttributes); // .. 3\n\n // echo '<pre>';\n // print_r($variants);\n // exit;\n\n if ($variants) {\n foreach ($variants as $variant) {\n $variantParams = [\n 'parent_id' => $product->id,\n 'user_id' => $params['user_id'],\n 'sku' => $product->sku . '-' . implode('-', array_values($variant)),\n 'type' => 'simple',\n 'name' => $product->name . $this->convertVariantAsName($variant),\n ];\n\n $variantParams['slug'] = Str::slug($variantParams['name']);\n\n $newProductVariant = Product::create($variantParams);\n\n $categoryIds = !empty($params['category_ids']) ? $params['category_ids'] : [];\n $newProductVariant->categories()->sync($categoryIds);\n\n // dd($variantParams);\n\n $this->saveProductAttributeValues($newProductVariant, $variant);\n }\n }\n }", "public function getVariantByProduct($id){\n $this->db->select('*');\n $this->db->where('id_product', $id);\n $this->db->from($this->product_variant); \n return $this->db->get();\n }", "public function getTemplateVariable($items=array()) {\n\t\t\n\t\t$results = array();\n\t\t\n\t\tforeach($items as $key=>$item) {\n\t\t\t$item = (isset($item['CartItem'])) ? $item['CartItem'] : $item;\n\t\t\t$result = array('id' => $item['variant_id'],\n\t\t\t\t\t\n\t\t\t\t\t'price' => $item['product_price'],\n\t\t\t\t\t'line_price' => $item['line_price'],\n\t\t\t\t\t'quantity' => $item['product_quantity'],\n\t\t\t\t\t'requires_shipping' => $item['shipping_required'],\n\t\t\t\t\t'weight' => $item['product_weight'],\n\t\t\t\t\t);\n\t\t\t\n\t\t\t\n\t\t\t$result['product'] = !empty($item['Product']) ? Product::getTemplateVariable($item, false) : array();\n\t\t\t$result['variant'] = !empty($item['CheckedOutVariant']) ? VariantModel::getTemplateVariable($item['CheckedOutVariant'], false) : array();\n\t\t\t\n\t\t\t// we get the latest product and variant title where possible\n\t\t\t// we also collect the sku from variant\n\t\t\t// collect vendor from product\n\t\t\tif (!empty($result['product'])) {\n\t\t\t\t$productTitle = $result['product']['title'] ;\n\t\t\t\t$vendor = $result['product']['vendor'] ;\n\t\t\t} else {\n\t\t\t\t$productTitle = $item['product_title'];\n\t\t\t\t$vendor = '';\n\t\t\t}\n\t\t\t\n\t\t\tif (!empty($result['variant'])) {\n\t\t\t\t$variantTitle = $result['variant']['title'] ;\n\t\t\t\t$variantSKU = $result['variant']['sku'] ;\n\t\t\t} else {\n\t\t\t\t$variantTitle = $item['variant_title'];\n\t\t\t\t$variantSKU = '';\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t/**\n\t\t\t * for the cart item title, if there is 1 variant for the product\n\t\t\t * and the variant title starts with \"default\" case-insensitive\n\t\t\t * we just use ProductTitle\n\t\t\t **/\n\t\t\tApp::uses('StringLib', 'UtilityLib.Lib');\n\t\t\tif (count($result['product']['variants']) == 1) {\n\t\t\t\tif (StringLib::startsWith($variantTitle, 'default', false)) {\n\t\t\t\t\t$result['title'] = $productTitle;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// In all other cases, we use ProductTitle - VariantTitle\n\t\t\tif (!isset($result['title'])) {\n\t\t\t\t$result['title'] = $productTitle . ' - ' . $variantTitle;\n\t\t\t}\n\t\t\t\n\t\t\t// assign the sku\n\t\t\t$result['sku'] = $variantSKU;\n\t\t\t$result['vendor'] = $vendor;\n\t\t\t\n\t\t\t\n\t\t\t$results[] = $result;\n\t\t}\n\t\t\n\t\treturn $results;\n\t}", "function get_woocommerce_product_list() {\n\t$full_product_list = array();\n\t$products = new WP_Query( array(\n\t\t'post_type' => array( 'product', 'product_variation' ),\n\t\t'posts_per_page' => - 1,\n\t\t'product_cat' => 'learn',\n\t) );\n\n\t$products = $products->posts;\n\n\tforeach ( $products as $index => $product ) {\n\t\t$theid = $product->ID;\n\n\t\t// its a variable product\n\t\tif ( $product->post_type == 'product_variation' ) {\n\t\t\t$parent_id = wp_get_post_parent_id( $theid );\n\t\t\t$sku = get_post_meta( $theid, '_sku', true );\n\t\t\t$thetitle = get_the_title( $parent_id );\n\n\t\t\t// ****** Some error checking for product database *******\n\t\t\t// check if variation sku is set\n\t\t\tif ( $sku == '' ) {\n\t\t\t\tif ( $parent_id == 0 ) {\n\t\t\t\t\t// Remove unexpected orphaned variations.. set to auto-draft\n\t\t\t\t} else {\n\t\t\t\t\t// there's no sku for this variation > copy parent sku to variation sku\n\t\t\t\t\t// & remove the parent sku so the parent check below triggers\n\t\t\t\t\t$sku = get_post_meta( $parent_id, '_sku', true );\n\t\t\t\t\tif ( function_exists( 'add_to_debug' ) ) {\n\t\t\t\t\t\tadd_to_debug( 'empty sku id=' . $theid . 'parent=' . $parent_id . 'setting sku to ' . $sku );\n\t\t\t\t\t}\n\t\t\t\t\tupdate_post_meta( $theid, '_sku', $sku );\n\t\t\t\t\tupdate_post_meta( $parent_id, '_sku', '' );\n\t\t\t\t}\n\t\t\t}\n\t\t\t// ****************** end error checking *****************\n\n\t\t\t// its a simple product\n\t\t} else {\n\t\t\t$thetitle = $product->post_title;\n\t\t}\n\t\t// add product to array but don't add the parent of product variations\n\t\t$full_product_list[ $theid ] = $thetitle;\n\t}\n\n\treturn $full_product_list;\n}", "function get_by_gender() {\n return $this->mysqli->query(\"SELECT * FROM `product_variations` JOIN `products` on `product_variations`.`product_id` = `products`.`product_id` WHERE 1 ORDER BY `gender`, `price` ASC\");\n }", "function query() {\n $q = new EntityFieldQuery();\n $q->entityCondition('entity_type', 'commerce_product');\n $q->fieldCondition($this->options['flag_field'], 'value', 1);\n $results = $q->execute();\n\n $product_ids = array();\n foreach (reset($results) as $product) {\n $product_ids[] = (int)$product->product_id;\n }\n // Get the allowed products from the current user.\n $user_product_ids = array();\n $user = user_load($GLOBALS['user']->uid);\n if ($user->uid > 0) {\n // Fetch the ids from the current user.\n $products = field_get_items('user', $user, $this->options['user_authorized_products_field']);\n foreach ($products as $product) {\n $user_product_ids[] = (int)$product['target_id'];\n }\n }\n $exclude_ids = array_diff($product_ids, $user_product_ids);\n if (count($exclude_ids) > 0) {\n $this->query->add_where(2, $this->options['node_products_table'] . '.' . $this->options['node_products_column'], $exclude_ids, 'NOT IN');\n }\n }", "public function getProdRelatedPa()\n {\n return $this->prod_related_pa;\n }", "public function prod($prod);", "public static function select_products_by_options($data)\n {\n \n $query = new Query;\n $products = $query->select(['core_products.*','core_product_images.*'])\n ->from('core_products')\n ->innerJoin('core_product_images', 'core_product_images.product_id=core_products.product_id');\n \n \n //if product type is set i.e., hire, sale or both\n if(isset($_REQUEST['product_type']) && @$_REQUEST['product_type'] != '')\n {\n if($_REQUEST['product_type'] != '')\n {\n $product_type= $_REQUEST['product_type'];\n if($product_type == 'hire') \n $products = $products->where(['core_products.product_type' => [0,2]]);\n else if($product_type == 'sale') \n $products = $products->where(['core_products.product_type' => [1,2]]);\n else if($product_type == 'both') \n $products = $products->where(['core_products.product_type' => [2]]);\n }\n \n }\n //default product type is hire if product type not set to anything\n else\n {\n \n $products = $products->where(\"core_products.product_type = 0\");\n }\n //if user selects the category\n if(isset($_REQUEST['category']))\n {\n \n if($_REQUEST['category'] != '')\n {\n $category_id = $_REQUEST['category'];\n $products = $products->andWhere(\"core_products.category_id = $category_id\");\n }\n }\n //if user selects sub category\n if(isset($_REQUEST['sub_category_id']) && @$_REQUEST['sub_category_id'] != '')\n {\n \n if($_REQUEST['sub_category_id'] != '')\n {\n $sub_category_id = $_REQUEST['sub_category_id'];\n $products = $products->andWhere(\"core_products.sub_category_id = $sub_category_id\");\n }\n }\n //if user sets current location\n if(@$_REQUEST['current_location'] != '')\n {\n \n $products = $products->andFilterWhere(['LIKE', 'core_products.current_location', $_REQUEST['current_location']]);\n }\n //if user sets price type\n if(@$_REQUEST['price_type'] != '')\n {\n $price_type =$_REQUEST['price_type'];\n $products = $products->andWhere(\"core_products.price_type = $price_type\");\n }\n //if user sets capacity range\n if(@$_REQUEST['capacity'] != '')\n {\n \n $capacity =$_REQUEST['capacity'];\n //if user selects between\n if (strpos($capacity, 'and') !== false) {\n $products = $products->andWhere(\"rtrim(substring_index(core_products.capacity, ' ', 1)) between $capacity\");\n }\n //if user selects morethan\n else if (strpos($capacity, '>') !== false) {\n $products = $products->andWhere(\"rtrim(substring_index(core_products.capacity, ' ', 1)) $capacity\");\n }\n }\n \n $products = $products->orderBy([\"core_products.product_id\" => SORT_DESC])\n ->andWhere(\"core_products.product_status = 1\")\n ->andWhere(['>=','core_products.product_expires_on',date(\"Y-m-d H:i:s\")])\n ->groupBy(['core_products.product_id'])\n ->all();\n return $products;\n }", "public function getSearchDepart($gc)\n {\n $row = $gc->prepare(\"SELECT depart FROM nroho__Product WHERE valid = '1'\");\n $row->execute();\n $ville = array();\n $i = 0;\n while ($data = $row->fetch()) {\n if(!in_array($data['depart'], $ville)){\n\t\t$ville[] = $data['depart'];\n }\n $i++;\n }\n asort($ville);\n return array($ville, $i);\n }", "public function findDependedOrderFilters()\n\t{\n\t\t$results = array();\n\t\t\n\t\tforeach($this -> elements as $name => $object)\n\t\t\tif($object -> getType() == \"order\" && $object -> getProperty(\"depend_on_enum\"))\n\t\t\t{\n\t\t\t\t$element = $this -> getElement($object -> getProperty(\"depend_on_enum\"));\n\t\t\t\t\n\t\t\t\tif(is_object($element) && $element -> getType() == \"enum\")\n\t\t\t\t\t$results[$name] = array($object -> getProperty(\"depend_on_enum\"), $element -> getCaption());\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\techo \"</script>\\n</head>\\n\";\n\t\t\t\t\t$message = \"Wrong value of 'depend_on_enum' option in field '\".$name.\"' of model '\".get_class($this).\"'. \";\n\t\t\t\t\t$message .= \"Use a name of enum field of current model.\";\n\t\t\t\t\tDebug :: displayError($message);\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\treturn $results;\n\t}", "public function variation_selector($node,$selected)\n {\n // decode the json for this product\n $vdets=json_decode($node['nvar_json'],true);\n $vsplit=json_decode($node['nvar_json_split'],true);\n\n ksort($vdets);\n $one_val_only=array();\n /*dev_dump($vdets);\n dev_dump($vsplit);*/\n\n // get rid of the values that are not multiples\n foreach ($vsplit as $key=>$value)\n {\n if (count($value)<1)\n {\n unset ($vsplit[$key]);\n }\n else\n {\n if (1==count($value))\n {\n $one_val_only[]=$key;\n }\n sort($vsplit[$key]);\n }\n }\n\n //dev_dump($vsplit);\n $ordered_keys=$this->concat($vsplit);\n //dev_dump($ordered_keys);\n\n if (count($vdets)>1)\n {\n $html=\"<select id='nvar_selector' class='nvar_selector' name='nvar_id' onchange='update_panel_text()' tabindex='10' autofocus>\";\n\n //dev_dump($nvars);\n\n $c=1;\n $count=count($ordered_keys);\n $last_break=0;\n foreach ($ordered_keys as $k)\n {\n if (isset($vdets['#'.$k]))\n {\n $nvar=$vdets['#'.$k];\n // selected\n if ($selected==$nvar['nvar_id'] ? $sel=\" selected='selected' \" : $sel=\" \" );\n\n // stock\n $stock=$this->set_stock_output($nvar);\n\n // price\n $price=$this->set_price_output($nvar);\n\n $html.=\"<option value='\".$nvar['nvar_id'].\"' \".$sel.\" \".$stock['disabled'].\">\";\n foreach ($nvar['vals'] as $k=>$v)\n {\n if (!in_array($k,$one_val_only))\n {\n $html.=str_replace('_',' ',$k).\" \".addslashes(str_replace('_',' ',$v)).\"; \";\n }\n }\n //$stock['append'].\"&nbsp;\".\n $html.=$price;\n $html.=\"</option>\";\n $last_break=0;\n }\n else\n {\n // break\n if ($c<$count &&\n 0==$last_break)\n {\n $html.=\"<option value='0' disabled='disabled'> ------------------------------- </option>\";\n }\n $last_break=1;\n }\n $c++;\n }\n\n $html.=\"</select>\";\n }\n else\n {\n // no selector, only one variation\n if (1==count($vdets))\n {\n foreach ($vdets as $v)\n {\n $html=\"<input id='nvar_selector' type='hidden' name='nvar_id' value='\".$v['nvar_id'].\"'/>\";\n break;\n }\n }\n }\n\n return $html;\n }", "public function variants()\n {\n return $this->hasMany(self::class, 'parent_id');\n }", "public function variants()\n {\n return $this->hasMany(self::class, 'parent_id');\n }", "public function getVariationSpecifics()\n {\n return $this->variationSpecifics;\n }", "function uds_pricing_process_products()\n{\n\tglobal $uds_pricing_column_options;\n\n\tif(!empty($_POST['uds_pricing_products_nonce']) && wp_verify_nonce($_POST['uds_pricing_products_nonce'], 'uds-pricing-products-nonce')) {\n\t\t//d($_POST);\n\t\t$pricing_tables = maybe_unserialize(get_option(UDS_PRICING_OPTION, array()));\n\t\t$table_name = $_GET['uds_pricing_edit'];\n\t\t$pricing_table = $pricing_tables[$table_name];\n\t\t\n\t\tif(empty($pricing_table)) {\n\t\t\treturn new WP_Error(\"uds_pricing_table_nonexistent\", \"This pricing table does not exist!\");\n\t\t}\n\t\t\n\t\t$pricing_table['no-featured'] = $_POST['uds-no-featured'] == 'on' ? true : false ;\n\t\t\n\t\t$products = $pricing_table['products'];\n\t\tif(empty($products)) $products = array();\n\t\t\n\t\t$options = $uds_pricing_column_options;\n\t\tforeach($options as $option_name => $option) {\n\t\t\tif($option_name == 'uds-featured') continue;\n\t\t\tforeach($_POST[$option_name] as $key => $value) {\n\t\t\t\t$products[$key][$option_name] = $value;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// process featured\n\t\tforeach($products as $key => $product) {\n\t\t\tif($key == $_POST['uds-featured']) {\n\t\t\t\t$products[$key][$option_name] = true;\n\t\t\t} else {\n\t\t\t\t$products[$key][$option_name] = false;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//d($products);\n\t\t$purge = array();\n\t\tforeach($pricing_table['properties'] as $name => $type) {\n\t\t\tforeach($products as $key => $product) {\n\t\t\t\tif($product['uds-name'] == \"\") $purge[] = $key;\n\t\t\t\t//$post_name = str_replace(' ', '_', $name);\n\t\t\t\t$post_name = sanitize_title_with_dashes($name);\n\t\t\t\tif(isset($_POST[$post_name][$key])) {\n\t\t\t\t\t$products[$key]['properties'][$name] = $_POST[$post_name][$key];\n\t\t\t\t} else {\n\t\t\t\t\t$products[$key]['properties'][$name] = '';\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tforeach($purge as $key) {\n\t\t\tunset($products[$key]);\n\t\t}\n\t\t\n\t\t//d($products);\n\t\t$pricing_table['products'] = $products;\n\t\t$pricing_tables[$table_name] = $pricing_table;\n\t\tupdate_option(UDS_PRICING_OPTION, maybe_serialize($pricing_tables));\n\t}\n}", "function getQtyAllVariantsForWeekAndDiv($delivery_week, $division_id) {\n return $this->newQuery()->where('division_id', '=', $division_id)\n ->where('delivery_week', '=', $delivery_week)\n ->where('delivery_year', '=', date('Y'))\n ->get('*');\n }", "protected function getVendorOrders() {\n\n\t\t$this->load->model('sale/vdi_order');\n\t\t$data = array();\n\n if (isset($this->request->request['filter_order_status'])) {\n //check input - should be list of integers\n if (1 === preg_match('/^[0-9,\\s]+$/',\n $this->request->request['filter_order_status'])) {\n $data['filter_order_status'] = $this->request->request['filter_order_status'];\n }\n }\n\n $result = array();\n $orderCount = $this->model_sale_vdi_order->getTotalOrders($data);\n $result['total_order_count'] = $orderCount;\n\n if (!isset($this->request->request['metaonly']) ||\n (\"true\" !== $this->request->request['metaonly'])) {\n $orders = $this->model_sale_vdi_order->getOrdersByOrderProductStatus($data);\n $result['orders'] = $orders;\n }\n\n\t\treturn $result;\n\t}", "public function getSimilarProducts($productId, $categoryId, $language, $userTypeId)\n {\n return Product::with([\n 'images' => function ($query) {\n $query->orderByRaw('priority desc');\n },\n 'color' => function ($query) use ($language) {\n $query->select([\n 'colors.id',\n \"colors.name_$language as name\",\n 'colors.slug',\n 'colors.html_code'\n ]);\n },\n 'product_group.products.color' => function ($query) use ($language) {\n $query->select([\n 'id',\n \"name_$language as name\",\n 'slug',\n 'html_code'\n ]);\n },\n 'sizes' => function ($query) use ($language) {\n $query->select([\n 'sizes.id',\n \"sizes.name_$language as name\",\n 'sizes.slug',\n 'sizes.priority'\n ])->orderByRaw('sizes.priority desc');\n },\n 'price' => function ($query) use ($language, $userTypeId) {\n $query->select([\n 'product_prices.id',\n 'product_prices.product_id',\n 'product_prices.user_type_id',\n 'product_prices.price',\n 'product_prices.old_price',\n 'product_prices.discount'\n ])->whereUserTypeId($userTypeId);\n },\n 'product_sizes.stocks' => function ($query) use ($userTypeId) {\n $query->whereUserTypeId($userTypeId);\n },\n 'promotions' => function ($query) {\n $query->orderByRaw('promotions.priority desc');\n },\n 'properties' => function ($query) use ($language) {\n $query->select([\n 'properties.id',\n 'properties.product_id',\n 'properties.property_name_id',\n 'properties.property_value_id',\n 'properties.priority',\n 'property_names.id',\n 'property_values.id',\n 'property_names.slug',\n \"property_names.name_$language as property_name\",\n \"property_values.name_$language as property_value\",\n ]);\n $query->join('property_names', function ($join) {\n $join->on('properties.property_name_id', '=', 'property_names.id');\n });\n $query->join('property_values', function ($join) {\n $join->on('properties.property_value_id', '=', 'property_values.id');\n });\n }\n ])\n ->whereHas('price')\n ->whereCategoryId($categoryId)\n ->whereIsVisible(true)\n ->whereNotIn('id', [$productId])\n ->limit(8)\n ->get([\n 'products.id',\n \"name_$language as name\",\n 'slug',\n 'color_id',\n 'group_id',\n 'category_id',\n 'breadcrumb_category_id',\n \"description_$language as description\",\n 'products.priority',\n 'vendor_code',\n 'rating',\n 'number_of_views',\n 'products.created_at'\n ]);\n }", "public function getBreedeValleySimilarPropertyForSale(){\n\t\t\ttry{\n\t\t\t\t$query = \"SELECT properties.property_id, property_status, property_type, property_desc, price, num_bathrooms, \n\t\t\t\t\t\t street_no, street_name, num_beds, num_garages, property_image_id, image_location, suburbs.suburb_id, \n\t\t\t\t\t\t suburb_name, cities.city_id, city_name, municipalities.municipality_id, municipalities.municipality_name,\n\t\t\t\t\t\t agents.agent_id, firstname, lastname, email, phone, agencies.agency_id, agency_name, logo \n\t\t\t\t\t\t FROM property_images \n\t\t\t\t\t\t LEFT JOIN properties\n\t\t\t\t\t\t ON property_images.property_id = properties.property_id\n\t\t\t\t\t\t LEFT JOIN suburbs\n\t\t\t\t\t\t ON properties.suburb_id = suburbs.suburb_id\n\t\t\t\t\t\t LEFT JOIN cities\n\t\t\t\t\t\t ON suburbs.city_id = cities.city_id\n\t\t\t\t\t\t LEFT JOIN municipalities\n\t\t\t\t\t\t ON cities.municipality_id = municipalities.municipality_id\n\t\t\t\t\t\t LEFT JOIN agents\n\t\t\t\t\t\t ON properties.agent_id = agents.agent_id\n\t\t\t\t\t\t LEFT JOIN agencies\n\t\t\t\t\t\t ON agents.agency_id = agencies.agency_id\n\t\t\t\t\t\t WHERE municipalities.municipality_id = 97\n\t\t\t\t\t\t AND properties.property_status = 'For Sale'\n\t\t\t\t\t\t GROUP BY properties.property_id\n\t\t\t\t\t\t DESC\n\t\t\t\t\t\t LIMIT 3\n\t\t\t\t\t\t \";\n\t\t\t\t$result = $this->conn->query($query);\n\n\t\t\t $properties = array();\n\t\t\t\t\n\t\t\t\tforeach($result as $row){\n\t\t\t\t\t$agency = new Agency();\n\t\t\t\t\t$agency->setAgencyID($row['agency_id']);\n\t\t\t\t\t$agency->setAgencyName($row['agency_name']);\n\t\t\t\t\t$agency->setLogo($row['logo']);\n\t\t\t\t\t\n\t\t\t\t\t$agent = new Agent();\n\t\t\t\t\t$agent->setAgentID($row['agent_id']);\n\t\t\t\t\t$agent->setFirstname($row['firstname']);\n\t\t\t\t\t$agent->setLastname($row['lastname']);\n\t\t\t\t\t$agent->setEmail($row['email']);\n\t\t\t\t\t$agent->setPhone($row['phone']);\n\t\t\t\t\t$agent->setAgency($agency);\n\t\t\t\t\t\n\t\t\t\t\t$munucipality = new Municipality();\n\t\t\t\t\t$munucipality->setMunicipalityID($row['municipality_id']);\n\t\t\t\t\t$munucipality->setMunicipalityName($row['municipality_name']);\n\t\t\t\t\t\n\t\t\t\t\t$city = new City();\n\t\t\t\t\t$city->setCityID($row['city_id']);\n\t\t\t\t\t$city->setCityName($row['city_name']);\n\t\t\t\t\t$city->setMunicipality($munucipality);\n\t\t\t\t\t\n\t\t\t\t\t$suburb = new Suburb();\n\t\t\t\t\t$suburb->setSuburbID($row['suburb_id']);\n\t\t\t\t\t$suburb->setSuburbName($row['suburb_name']);\n\t\t\t\t\t$suburb->setCity($city);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t$property = new Property();\t\t\n\t\t\t\t\t$property->setPropertyID($row['property_id']);\t\t\t\n\t\t\t\t\t$property->setSuburb($suburb);\t\n\t\t\t\t\t$property->setAgent($agent);\n\t\t\t\t\t$property->setNumBathRoom($row['num_bathrooms']);\n\t\t\t\t\t$property->setNumBed($row['num_beds']);\n\t\t\t\t\t$property->setNumGarage($row['num_garages']);\t\n\t\t\t\t\t$property->setStreetNo($row['street_no']);\t\n\t\t\t\t\t$property->setStreetName($row['street_name']);\t\n\t\t\t\t\t$property->setPropertyDescription($row['property_desc']);\t\n\t\t\t\t\t$property->setPropertyType($row['property_type']);\t\t\n\t\t\t\t\t$property->setPrice($row['price']);\t\n\t\t\t\t\t$property->setImageLocation($row['image_location']);\n\t\t\t\t\t$property->setSuburbID($row['suburb_id']);\n\t\t\t\t\t$property->setMunicipalityID($row['municipality_id']);\n\t\t\t\t\t$property->setMunicipalityName($row['municipality_name']);\n\t\t\t\t\t$property->setCityID($row['city_id']);\n\t\t\t\t\t$properties[] = $property;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\treturn $properties;\n\t\t\t\t\n\t\t\t}catch(PDOException $e){\n\t\t\t\techo $e->getMessage();\n\t\t\t}\n\t\t}", "function get_target_products_for_accounts($accounts)\n{\n module_load_include('module', 'ppt_ta_access', 'ppt_ta_access');\n // Looping over each account and load it.\n $products = [];\n if (empty($accounts)) {\n return $products;\n }\n foreach ($accounts as $account) {\n\n $account_wrapper = entity_metadata_wrapper('node', node_load($account));\n $account_products = $account_wrapper->field_products->value();\n\n // Loop over products and add the product if it isn't already in array.\n foreach ($account_products as $account_product) {\n if ($account_product) {\n $parents = taxonomy_get_parents($account_product->tid);\n foreach ($parents as $parent) {\n if (!in_array($parent->tid, $products) && ppt_ta_term_access($parent)) {\n array_push($products, $parent->tid);\n }\n }\n }\n }\n }\n\n return $products;\n}", "public function buildCollection($searchCriteria, $useParent = false)\n {\n $collection = $this->collectionFactory->create();\n $this->extensionAttributesJoinProcessor->process($collection);\n $collection->addAttributeToSelect('*');\n $collection->joinAttribute('status', 'catalog_product/status', 'entity_id', null, 'inner');\n $collection->joinAttribute('visibility', 'catalog_product/visibility', 'entity_id', null, 'inner');\n \n if (!$useParent) {\n $this->collectionProcessor->process($searchCriteria, $collection);\n $this->sortByCategoryPosition($searchCriteria, $collection);\n return $collection;\n }\n \n // Add the parent ID to the collection\n $collection->getSelect()->joinLeft(\n 'catalog_product_super_link',\n 'e.entity_id = catalog_product_super_link.product_id'\n )->group('e.entity_id');\n \n // Apply the search criteria on the child products\n $this->collectionProcessor->process($searchCriteria, $collection);\n \n // Check for sorting by category index position\n $this->sortByCategoryPosition($searchCriteria, $collection);\n \n // Get a list of all the product IDs and use the parent if available\n $productIds = [];\n foreach ($collection->getItems() AS $product)\n $productIds[] = $product->getParentId() ?: $product->getId();\n $productIds = $this->uniqueProducts($productIds, $searchCriteria);\n \n if (count($productIds) == 0)\n return $collection;\n \n // Rebuild the collection using the new list of IDs\n $parentCollection = $this->collectionFactory->create();\n $this->extensionAttributesJoinProcessor->process($parentCollection);\n $parentCollection->addAttributeToSelect('*');\n $parentCollection->joinAttribute('status', 'catalog_product/status', 'entity_id', null, 'inner');\n $parentCollection->joinAttribute('visibility', 'catalog_product/visibility', 'entity_id', null, 'inner'); \n $parentCollection->addAttributeToFilter('entity_id', array('in' => $productIds));\n $parentCollection->addAttributeToFilter('status', \\Magento\\Catalog\\Model\\Product\\Attribute\\Source\\Status::STATUS_ENABLED);\n \n // Maintain the sort order of the child products if sorting by anything other than alphabetical\n if ($nameSort = $this->getSortOrder($searchCriteria, 'name')) $parentCollection->addAttributeToSort('name', $nameSort);\n else $parentCollection->getSelect()->order(new \\Zend_Db_Expr(sprintf('FIELD(e.entity_id,%s)', implode(',',$productIds))));\n \n return $parentCollection;\n }", "public function getVariants()\n {\n return $this->variants;\n }", "private function fusionarProductos($productos) {\n\n $seleccionado = null;\n $modelos = [];\n \n foreach ($productos as $prd) {\n /** Si tiene código */\n $modelos[] = $prd->getModelo();\n \n if ($seleccionado == null) {\n $seleccionado = $prd;\n continue;\n }\n\n if ($prd->hasCode()) {\n if (!$seleccionado->hasCode()) { \n /** Caso 1 */\n $seleccionado = $prd;\n $this->mergeRelations($seleccionado, $prd);\n } else {\n /** Caso 2 */\n $seleccionado->mergeCodes($prd);\n $this->mergeRelations($seleccionado, $prd);\n }\n }\n }\n\n $seleccionado->addModelos();\n\n return $seleccionado;\n }", "public function getProductNameAndPriceInPartnerOrdersByProductId() {\n\n $query = $this->db->prepare(\"SELECT o.order_id, p.product_name, p.product_price FROM orders o JOIN products p ON o.order_product_id = p.ext_product_id AND o.order_partner_id = p.vendor_id ORDER BY o.order_id\");\n\n try {\n\n $query->execute();\n\n $result = $query->fetchAll();\n return $result;\n\n } catch (PDOException $e) {\n die($e->getMessage());\n }\n }", "function getProductsAvailibilityBySomeone($game_id, $round_number){\r\n\t\t\t$ProductsNumber=$this->getNumberOfProducts($game_id);\r\n\t\t\t$products=$this->getProducts($game_id);\r\n\t\t\t$companies=$this->getCompaniesInGame($game_id);\r\n\t\t\tforeach ($companies as $company) {\r\n\t\t\t\tforeach ($products as $product) {\r\n\t\t\t\t\t$availabilty_aux=$this->getProductAvailibility($game_id, $round_number, $company['id'], $product['product_number']);\r\n\t\t\t\t\t//var_dump($availabilty_aux);\r\n\t\t\t\t\tif($availabilty_aux==1){\r\n\t\t\t\t\t\t$availabilty['product_number_'.$product['product_number']]=$availabilty_aux;\r\n\t\t\t\t\t\t//break 1;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t//var_dump($availabilty);\r\n\t\t\treturn $availabilty;\r\n\t\t}", "public function productsSortedByCheapest()\n {\n $products = $this->p();\n usort($products, [$this, 'sortByCheapest']);\n return $products;\n }", "public function getMatchingProduct($request);", "function fn_product_variations_save_variation($parent_product_data, array $combination, $languages)\n{\n $data = array_merge($parent_product_data, array(\n 'product_id' => null,\n 'tracking' => ProductTracking::TRACK_WITHOUT_OPTIONS,\n 'product_type' => ProductManager::PRODUCT_TYPE_VARIATION,\n 'parent_product_id' => $parent_product_data['product_id'],\n 'variation_code' => $combination['variation'],\n 'variation_options' => json_encode($combination['selected_options']),\n 'timestamp' => time(),\n 'list_price' => $combination['list_price'],\n 'weight' => $combination['weight'],\n 'amount' => empty($combination['amount']) ? 1 : $combination['amount'],\n 'product_code' => $combination['code'],\n ));\n\n $product_variation_id = db_query('INSERT INTO ?:products ?e', $data);\n\n fn_update_product_prices($product_variation_id, array(\n 'price' => $combination['price'],\n 'prices' => array()\n ));\n\n foreach ($languages as $lang_code => $lang) {\n $description_data = array(\n 'product_id' => $product_variation_id,\n 'company_id' => $data['company_id'],\n 'lang_code' => $lang_code,\n 'product' => $combination['name']\n );\n\n db_query('INSERT INTO ?:product_descriptions ?e', $description_data);\n }\n\n return $product_variation_id;\n}", "public function dept_choice(){\n $outputs = array();\n $dept_type = (new TbMsCmnCdModel())->getCdKeyY(TbMsCmnCdModel::$department_type_cd_pre);\n $outputs['dept_type'] = $this->arrKeyVal2NewArr($dept_type);\n $dept_status = TbHrDeptModel::getStatusForDept();\n $outputs['dept_status'] = $this->arrKeyVal2NewArr($dept_status);\n $dept_incharge = TbHrDeptModel::getTypeForEDRelation();\n $outputs['dept_incharge'] = $this->arrKeyVal2NewArr($dept_incharge);\n\n return $outputs;\n }", "public function propertsByCategory($category_id = null, $is_combination = false, $branch_id = null)\n {\n $result = [];\n /** @var ShopOptionType[] $core_option_types */\n\n /* $core_option_types = CoreOptionType::find()\n ->all();*/\n\n $core_option_types = $this->core_option_types;\n\n if (!empty($category_id)) {\n\n //$core_category = CoreCategory::findOne($category_id);\n $core_category = $this->core_categories->where('id', $category_id)->first();\n $core_category = $this->toObject(ShopCategory::class, $core_category);\n\n $core_option_type_ids = array_map(function ($a) use ($is_combination) {\n $a = (array)$a;\n if ($is_combination) {\n if (array_key_exists('is_combination', $a)) {\n if ($a['shop_option_type'] !== \"\")\n return $a['shop_option_type'];\n }\n } else {\n if ($a['shop_option_type'] !== \"\")\n return $a['shop_option_type'];\n }\n }, json_decode($core_category->shop_option_type));\n /*\n $core_option_type = collect($core_category->shop_option_type);\n $core_option_type_ids = $core_option_type->map(function ($a) use ($is_combination) {\n if ($is_combination) {\n if (array_key_exists('is_combination', $a)) {\n if ($a['shop_option_type'] !== \"\")\n return $a['shop_option_type'];\n }\n } else {\n if ($a['shop_option_type'] !== \"\")\n return $a['shop_option_type'];\n }\n });*/\n\n\n //vdd($core_option_type_ids);\n\n\n /* $core_option_types = CoreOptionType::find()\n ->where([\n 'id' => $core_option_type_ids\n ])\n ->all();*/\n\n\n $core_option_types = $this->core_option_types\n ->whereIn('id', $core_option_type_ids);\n\n }\n //vdd($core_option_types);\n if ($branch_id !== null)\n\n /* $core_option_types = array_filter($core_option_types, function ($a) use ($branch_id) {\n if ($a->shop_option_branch_id === $branch_id)\n return true;\n else\n return false;\n });*/\n\n $core_option_types = $core_option_types->filter(function ($a) use ($branch_id) {\n if ($a->shop_option_branch_id === $branch_id)\n return true;\n else\n return false;\n });\n\n\n foreach ($core_option_types as $core_option_type) {\n $core_option_type = $this->toObject(ShopOptionType::class, $core_option_type);\n $property_item = new PropertyItem();\n $property_item->name = $core_option_type->name;\n\n //$branch = CoreOptionTypeBranch::findOne($core_option_type->shop_option_branch_id);\n $branch = $this->core_option_type_branches->where('id', $core_option_type->shop_option_branch_id)->first();\n\n $branch = $this->toObject(ShopOptionBranch::class, $branch);\n $property_item->branch = $branch->name;\n\n /*\n $core_option = CoreOption::find()->where([\n 'shop_option_type_id' => $core_option_type->id\n ])->all();*/\n\n\n $core_option = $this->core_options\n ->where('shop_option_type_id', $core_option_type->id);\n\n foreach ($core_option as $option) {\n $option = $this->toObject(ShopOption::class, $option);\n $property_item->items[$option->id] = $option->name;\n\n }\n\n $result[] = $property_item;\n }\n return $result;\n }", "protected function _findRelatedProductTags($productId) {\n $productRelation = Mage::getResourceModel('catalog/product_relation');\n $writeConnection = Mage::getSingleton('core/resource')->getConnection('core_write');\n\n $childIds = array($productId);\n $tags = array(Brim_PageCache_Model_Engine::FPC_TAG . '_PRODUCT_' . $productId);\n do {\n // following product relations up the chain.\n $select = $writeConnection->select()\n ->from($productRelation->getMainTable(), array('parent_id'))\n ->where(\"child_id IN (?)\", $childIds);\n ;\n if (($childIds = $select->query()->fetchAll(Zend_Db::FETCH_COLUMN, 0))) {\n foreach ($childIds as $id) {\n $tags[] = Brim_PageCache_Model_Engine::FPC_TAG . '_PRODUCT_' . $id;\n }\n }\n } while($childIds != null);\n\n return $tags;\n }", "private function processProductDelivery()\n {\n foreach ($this->csvParsed['products'] as $productIndex => $product) {\n $overallCalculatedDistances = $this->processTruckDelivery($product);\n\n //find the shorter distance.\n $shorterDistance = min($overallCalculatedDistances);\n //get the related truck array list index.\n $truckIndex = array_keys($overallCalculatedDistances, min($overallCalculatedDistances))[0];\n\n $this->csvParsed['products'][$productIndex][ProductHelper::AVAILABLE_TRUCK] = $this->csvParsed['trucks'][$truckIndex];\n $this->csvParsed['products'][$productIndex][ProductHelper::TOTAL_DISTANCE] = $shorterDistance;\n\n //remove truck from array list to avoid be selected afterwards.\n unset($this->csvParsed['trucks'][$truckIndex]);\n }\n }", "function get_program_ids_from_selected_venues($venue_var = FALSE){\n\t\n\tforeach($venue_var as $id => $status){\n\t\tif($status == 'on'){\n\t\t\t$post_array[$id] = get_post_ID_by_meta_value($id);\n\t\t}\n\t}\n\t\n\t\n\t//Create array of post objects\n\tforeach($post_array as $id=>$object){\n\t\t$get_posts[$id]=$object[0];//old, broken function (only returned one post)\n\t\tforeach($object as $new_post){//new function, to return many posts\n\t\t\t$true[$new_post->ID]=$new_post;\n\t\t}\n\t\t\n\t}\n\t\n\treturn $true;//new function return.\n\t//return $get_posts;//old return, see above\n}", "public function gets($user, $organization_id, $where=[], $debug=false) {\n\n $results = [];\n $where_order = [];\n\n if(Configure::read('social_market_delivery_id')===false)\n return $results;\n\n if(isset($where['Orders']))\n $where_order = $where['Orders'];\n $where_order = array_merge([$this->getAlias().'.organization_id' => Configure::read('social_market_organization_id')],\n $where_order);\n if($debug) debug($where_order);\n\n $where_delivery = ['Deliveries.organization_id' => Configure::read('social_market_organization_id'),\n 'Deliveries.id' => Configure::read('social_market_delivery_id')];\n\n /*\n * estraggo i produttori attivi del GAS per escluderli\n */\n $suppliersOrganizationsTable = TableRegistry::get('SuppliersOrganizations');\n $suppliersOrganizations = $suppliersOrganizationsTable->find()\n ->select(['id'])\n ->where (['organization_id' => $user->organization->id, 'stato' => 'Y'])\n ->all();//dd($suppliersOrganizations);\n $exclude_ids = [];\n foreach ($suppliersOrganizations as $suppliersOrganization)\n $exclude_ids[$suppliersOrganization->id] = $suppliersOrganization->id;\n\n /*\n * estraggo solo i GAS abilitati\n */\n $socialmarketOrganizationsTable = TableRegistry::get('SocialmarketOrganizations');\n $socialmarketOrganizations = $socialmarketOrganizationsTable->find()\n ->select(['supplier_organization_id'])\n ->where (['organization_id' => $user->organization->id])\n ->all();\n if($socialmarketOrganizations->count()==0)\n return $socialmarketOrganizations;\n\n $include_ids = [];\n foreach ($socialmarketOrganizations as $socialmarketOrganization)\n $include_ids[$socialmarketOrganization->supplier_organization_id] = $socialmarketOrganization->supplier_organization_id;\n\n $where_supplier = [];\n if(!empty($exclude_ids))\n $where_supplier += ['SuppliersOrganizations.id NOT IN ' => $exclude_ids];\n if(!empty($include_ids))\n $where_supplier += ['SuppliersOrganizations.id IN ' => $include_ids];\n\n $results = $this->find()\n ->where($where_order)\n ->contain([\n 'OrderTypes' => ['conditions' => ['code' => 'SOCIALMARKET']],\n 'OrderStateCodes',\n 'SuppliersOrganizations' => [\n 'Suppliers', 'conditions' => $where_supplier\n ],\n 'Deliveries' => ['conditions' => $where_delivery]\n ])\n ->order([$this->getAlias().'.data_inizio'])\n ->all();\n // debug($results);\n\n return $results;\n\n }", "private function _getProductvariantsList($product) {\n\n $productvariantsList = array();\n $linkHelper = new Helper\\HtmlLinkHelper();\n $spanHelper = new Helper\\HtmlSpanHelper();\n\n /* @var $productvariant Entity\\ProductEntity */\n foreach ($product->getChilderen() as $productvariant) {\n\n $categoryId = $productvariant->getProductCategories()->first()->getCategory()->getId();\n\n $name = $productvariant->getCurrentTranslation()->getName();\n\n // render link\n $liString = $linkHelper->getHtml(\n $name,\n $this->url()->fromRoute('home/default', array(\n 'controller' => 'product',\n 'action' => 'form',\n 'param' => 'product',\n 'value' => $productvariant->getId(),\n 'param2' => 'category',\n 'value2' => $categoryId\n )),\n $name,\n 'pane-navi-link productvariant',\n array(\n 'data-pane-title' => '',\n 'data-delete-url' => $this->url()->fromRoute('home/default', array(\n 'controller' => 'product',\n 'action' => 'delete',\n 'param' => 'product',\n 'value' => $productvariant->getId()\n ))\n ),\n null\n );\n\n// $liString .= $spanHelper->getHtml(\n// '',\n// 'edit',\n// array(\n// 'data-form-url' => $this->url()->fromRoute('home/default', array(\n// 'controller' => 'product',\n// 'action' => 'form',\n// 'param' => 'product',\n// 'value' => $productvariant->getId()\n// ))\n// )\n// );\n\n $productvariantsList[] = $liString;\n }\n\n return $productvariantsList;\n }", "public function getActivatedVendors();", "function cb_product_result($items)\r\n\t{\r\n\t\t$ret = array();\r\n\r\n\t\tforeach ($items as $i)\r\n\t\t{\r\n\t\t\t# Create a single copy of this product for return.\r\n\r\n\t\t\tif (empty($ret[$i['prod_id']])) $ret[$i['prod_id']] = $i;\r\n\r\n\t\t\tif (empty($ret[$i['prod_id']]['atrs'][$i['atr_id']]))\r\n\t\t\t\t$ret[$i['prod_id']]['atrs'][$i['atr_id']] = $i;\r\n\r\n\t\t\tif (empty($ret[$i['prod_id']]['atrs'][$i['atr_id']]['opts'][$i['opt_id']]))\r\n\t\t\t\t$ret[$i['prod_id']]['atrs'][$i['atr_id']]['opts'][$i['opt_id']] = $i;\r\n\t\t}\r\n\r\n\t\tforeach ($ret as &$v)\r\n\t\t\t$v = $this->product_props($v);\r\n\r\n\t\treturn $ret;\r\n\t}", "public static function product_by_variant_id($id)\n {\n $products = self::get_products();\n $products = array_combine(array_column($products, 'variant_id'), $products);\n return $products[$id];\n }", "function fn_get_options_combinations($options, $variants)\n{\n $combinations = array();\n\n // Take first option\n $options_key = array_keys($options);\n $variant_number = reset($options_key);\n $option_id = $options[$variant_number];\n\n // Remove current option\n unset($options[$variant_number]);\n\n // Get combinations for other options\n $sub_combinations = !empty($options) ? fn_get_options_combinations($options, $variants) : array();\n\n if (!empty($variants[$variant_number])) {\n // run through variants\n foreach ($variants[$variant_number] as $variant) {\n if (!empty($sub_combinations)) {\n // add current variant to each subcombination\n foreach ($sub_combinations as $sub_combination) {\n $sub_combination[$option_id] = $variant;\n $combinations[] = $sub_combination;\n }\n } else {\n $combinations[] = array(\n $option_id => $variant\n );\n }\n }\n } else {\n $combinations = $sub_combinations;\n }\n\n return $combinations;\n}", "public function variants()\n {\n return $this->hasMany('App\\Variant');\n }", "function get_complementary_items($diffid, $diffyear, $make, $model, $drivetype, $customer_number, $product_number) {\n\n global $wpdb;\n // Get Complementary product items\n $complementary_items = $wpdb->get_results(\n $wpdb->prepare(\n \"SELECT DISTINCT this_addOns.productnumber AS ProductNumber, P.ProductID as ProductID\n FROM (\n SELECT DISTINCT\n tmp_addons.priority,\n C.categoryname,\n C.categoryID,\n P.productline,\n P.ProductID,\n P.productnumber,\n %s AS 'VehicleDiffId',\n %s AS 'VehicleModel',\n %s AS 'VehicleYear',\n %s AS 'VehicleMake',\n %s AS 'VehicleDriveType'\n\n FROM randys_product P\n\n INNER JOIN randys_categoryproduct CP\n ON CP.productID = P.ProductID\n\n INNER JOIN randys_category C\n ON C.categoryID = CP.categoryID\n\n INNER JOIN (-- @bb\n -- GetAlternatesAndAddons\n -- add alternates that are an equal or higher priority than the selected product line.\n\n SELECT\n priority,\n productline,\n 'AlternateProductLines' AS type,\n SubCategoryId\n\n FROM\n randys_aa_alternateproductlines APP\n\n WHERE\n categoryid IN\n (SELECT\n category_1.categoryID\n\n FROM\n -- get the grouping number (called Category) that the selected product/subcategory is in.\n (SELECT\n categoryID\n\n FROM\n randys_aa_scenariocategories\n WHERE CategoryID in (\n SELECT DISTINCT CategoryID FROM randys_aa_alternateproductlines\n\n WHERE ProductLine = (\n SELECT ProductLine FROM randys_product WHERE ProductNumber = %s\n )\n\n AND SubCategoryId = (\n SELECT C.CategoryID from randys_category C\n INNER JOIN randys_categoryproduct CP ON CP.CategoryID = C.CategoryID\n INNER JOIN randys_product P ON P.ProductID = CP.ProductID\n WHERE ProductNumber = %s LIMIT 1\n )\n )\n ) category_1\n )\n\n UNION\n SELECT\n priority,\n productline,\n 'AddOnProductLines' AS type,\n SubCategoryId\n\n FROM randys_aa_addonproductlines\n\n WHERE\n categoryID IN (SELECT\n category_2.categoryID\n\n FROM\n (SELECT DISTINCT\n categoryID\n FROM\n randys_aa_alternateproductlines\n WHERE CategoryID in (\n select DISTINCT CategoryID from randys_aa_alternateproductlines\n\n where ProductLine = (\n select ProductLine from randys_product where ProductNumber = %s\n )\n AND SubCategoryId = (\n select C.CategoryID from randys_category C\n inner join randys_categoryproduct CP ON CP.CategoryID = C.CategoryID\n inner Join randys_product P on P.ProductID = CP.ProductID\n where ProductNumber = %s limit 1\n )\n )\n ) category_2\n )\n UNION SELECT\n priority,\n productline,\n 'CheckoutProductLines' AS type,\n SubCategoryId\n FROM\n randys_aa_checkoutproductlines\n ORDER BY priority\n -- End GetAlternatesAndAddons\n ) tmp_addons -- [tmp_addons] add all Checkout product lines.\n\n ON tmp_addons.productline = P.productline\n AND tmp_addons.SubCategoryId = C.categoryID\n WHERE P.productnumber <> %s\n AND tmp_addons.type = 'AddOnProductLines'\n\n ) this_addOns -- addons end\n\n INNER JOIN randys_advancedsearch A\n ON this_addOns.productnumber = A.productnumber\n AND ( ( A.diffid = this_addOns.VehicleDiffId\n AND A.model = this_addOns.VehicleModel )\n OR A.cattype = 'S' )\n AND this_addOns.categoryID = A.categoryID\n\n INNER JOIN randys_product P\n ON A.productID = P.ProductID\n\n INNER JOIN randys_brands B\n ON B.brandID = A.brandID\n\n LEFT OUTER JOIN randys_brands PB\n ON PB.BannerId = B.BannerID\n WHERE (%d = '0' or A.BrandID IN (select BrandID from randys_customerbrands where customerID = %d))\n\n UNION\n SELECT DISTINCT this_chkOut_1.productnumber AS ProductNumber, P.ProductID as ProductID\n FROM (SELECT DISTINCT\n C.categoryname,\n C.categoryID,\n P.productline,\n P.ProductID,\n P.productnumber,\n %s AS 'VehicleDiffId',\n %s AS 'VehicleModel',\n %s AS 'VehicleYear',\n %s AS 'VehicleMake',\n %s AS 'VehicleDriveType'\n\n FROM randys_product P\n\n INNER JOIN randys_categoryproduct CP\n ON CP.productID = P.ProductID\n\n INNER JOIN randys_category C\n ON C.categoryID = CP.categoryID\n\n INNER JOIN (\n SELECT\n productline,\n priority,\n SubCategoryId\n\n FROM randys_aa_checkoutproductlines\n\n ORDER BY priority\n ) a -- tmp_checkouts Get Checkouts\n WHERE P.productnumber <> %s\n ) this_chkOut_1 -- checkOut\n\n INNER JOIN randys_advancedsearch A\n ON this_chkOut_1.productnumber = A.productnumber\n AND ( ( A.diffid = this_chkOut_1.VehicleDiffId\n AND A.model = this_chkOut_1.VehicleModel )\n OR A.cattype = 'S' )\n AND this_chkOut_1.categoryID = A.categoryID\n\n INNER JOIN randys_product P\n ON A.ProductID = P.ProductID\n\n INNER JOIN randys_brands B\n ON B.brandID = A.brandID\n\n WHERE (%d = '0' or A.BrandID IN (select BrandID from randys_customerbrands where customerID = %d))\n\n -- This gets the RPS Book.\n UNION\n SELECT this_chkOut_2.productnumber AS ProductNumber, P.ProductID as ProductID\n FROM (SELECT DISTINCT\n C.categoryname,\n C.categoryID,\n P.productline,\n P.ProductID,\n P.productnumber,\n %s AS 'VehicleDiffId',\n %s AS 'VehicleModel',\n %s AS 'VehicleYear',\n %s AS 'VehicleMake',\n %s AS 'VehicleDriveType'\n FROM randys_product P\n\n INNER JOIN randys_categoryproduct CP\n ON CP.productID = P.ProductID\n\n INNER JOIN randys_category C\n ON C.categoryID = CP.categoryID\n\n INNER JOIN (\n SELECT\n productline,\n priority,\n SubCategoryId\n FROM randys_aa_checkoutproductlines\n ORDER BY priority\n ) a -- tmp_checkouts Get Checkouts\n WHERE P.productnumber <> %s\n ) this_chkOut_2\n\n INNER JOIN randys_advancedsearch A\n ON this_chkOut_2.productnumber = A.productnumber\n\n INNER JOIN randys_product P\n ON A.productID = P.ProductID\n\n INNER JOIN randys_brands B\n ON B.brandID = A.brandID\n\n WHERE P.productnumber = %s\n ORDER BY productnumber\",\n array(\n $diffid,\n $model,\n $diffyear,\n $make,\n $drivetype,\n $product_number,\n $product_number,\n $product_number,\n $product_number,\n $product_number,\n $customer_number,\n $customer_number,\n $diffid,\n $model,\n $diffyear,\n $make,\n $drivetype,\n $product_number,\n $customer_number,\n $customer_number,\n $diffid,\n $model,\n $diffyear,\n $make,\n $drivetype,\n $product_number,\n 'RPSBOOK-01'\n )\n )\n );\n\n if( $complementary_items ) {\n $comp_output = '<div class=\"products-slider m-t-3\">';\n\n foreach($complementary_items as $key => $complementary) {\n\n $product_post_ID = $wpdb->get_results(\n $wpdb->prepare(\n \"SELECT post_id FROM wp_postmeta WHERE meta_key = %s AND meta_value = %d\",\n array('_randy_productid', $complementary->ProductID)\n )\n );\n $post_id = $product_post_ID[0]->post_id;\n\n ob_start();\n include(locate_template('templates/content-product-list-sm.php', false, false));\n $comp_output .= ob_get_clean();\n }\n $comp_output .= '</div>';\n echo $comp_output;\n }\n\n}" ]
[ "0.560906", "0.5606102", "0.5233823", "0.51275605", "0.50741976", "0.5020709", "0.4924442", "0.48794526", "0.4874101", "0.4851769", "0.4827808", "0.47635135", "0.4763184", "0.47443753", "0.47353664", "0.4714415", "0.47102633", "0.47086537", "0.4682811", "0.46719468", "0.46655855", "0.466254", "0.46445855", "0.4630761", "0.4616987", "0.45996386", "0.45918104", "0.4581395", "0.45725214", "0.456154", "0.45595905", "0.4554309", "0.45525536", "0.45515597", "0.45511574", "0.4547094", "0.4530955", "0.45307696", "0.45274934", "0.45147374", "0.45134053", "0.45068905", "0.4500362", "0.44948614", "0.44946387", "0.44922712", "0.4465188", "0.44619164", "0.44582713", "0.44564444", "0.44527325", "0.44507772", "0.4446465", "0.44407466", "0.44368625", "0.44302467", "0.44284895", "0.4421777", "0.44176516", "0.4415344", "0.44104466", "0.4405407", "0.4394335", "0.43867183", "0.43847987", "0.4375522", "0.4374844", "0.43671414", "0.43669122", "0.43620306", "0.43498448", "0.43498448", "0.43380478", "0.4336532", "0.43353596", "0.43321854", "0.43317094", "0.43256652", "0.4320474", "0.43123862", "0.43084985", "0.4305918", "0.43058053", "0.4303682", "0.43033636", "0.43010277", "0.42905784", "0.42899406", "0.42885157", "0.42872885", "0.4286758", "0.42858827", "0.4285745", "0.42841628", "0.42820138", "0.42795274", "0.42787504", "0.4278208", "0.42738473", "0.42732137" ]
0.48555088
9
Find Product Variants by priority within product in departments
public function findVariantStockByProductPriority(ProductVariant $productVariant): array { try { $maxPriority = (int) $this ->queryMaxPriorityWithinProduct($productVariant->getProduct()) ->getSingleScalarResult(); } catch (NoResultException $exception) { $maxPriority = 0; } return $this ->queryVariantStockByPriority($productVariant, $maxPriority) ->getSingleResult(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_variant_options($id_product, $variant_options=array())\n{\n\tglobal $mysqli, $id_cart_discount;\n\t\n\t$output='';\n\t\n\t$groups=get_variant_groups($id_product);\n\t\n\t// build sql \n\t// get all groups for this product\n\tif (sizeof($groups)) {\t\t\n\t\tend($groups); \n\t\t$id_product_variant_group = key($groups); \n\t\n\t\tif (isset($variant_options[$id_product_variant_group]) && $variant_options[$id_product_variant_group]) return false;\n\t\n\t\t$joins = array();\t\n\t\t$where = array();\t\t\n\t\t$group_by = array();\t\n\t\t\n\t\t$i=1;\n\t\tforeach ($groups as $id_product_variant_group => $row_group) {\t\n\t\t\t$where_str = array();\n\t\t\t\n\t\t\t$joins[] = 'INNER JOIN\n\t\t\t(product_variant_option AS pvo'.$i.' CROSS JOIN product_variant_group_option AS pvgo'.$i.' CROSS JOIN product_variant_group_option_description AS pvo'.$i.'_desc)\n\t\t\tON\n\t\t\t(product_variant.id = pvo'.$i.'.id_product_variant AND pvo'.$i.'.id_product_variant_group_option = pvgo'.$i.'.id AND pvgo'.$i.'.id = pvo'.$i.'_desc.id_product_variant_group_option AND pvo'.$i.'_desc.language_code = \"'.$mysqli->escape_string($_SESSION['customer']['language']).'\")';\n\t\t\n\t\t\t$where_str[] = 'pvo'.$i.'.id_product_variant_group = \"'.$mysqli->escape_string($id_product_variant_group).'\"';\n\t\t\t\n\t\t\t$stop=0;\n\t\t\tif (isset($variant_options[$id_product_variant_group]) && $variant_options[$id_product_variant_group]) {\n\t\t\t\t$id_product_variant_group_option = $variant_options[$id_product_variant_group];\n\t\t\t\t\n\t\t\t\t$where_str[] = 'pvo'.$i.'.id_product_variant_group_option = \"'.$mysqli->escape_string($id_product_variant_group_option).'\"';\n\t\t\t} else { \n\t\t\t\t$stop=1;\n\t\t\t}\n\t\t\t\n\t\t\tif ($id_cart_discount) {\n\t\t\t\t$joins[] = 'LEFT JOIN\n\t\t\t\t(rebate_coupon_product AS rcp'.$i.' CROSS JOIN rebate_coupon AS rcpr'.$i.' CROSS JOIN cart_discount AS rcd'.$i.') \n\t\t\t\tON\n\t\t\t\t(product_variant.id_product = rcp'.$i.'.id_product AND rcp'.$i.'.id_rebate_coupon = rcpr'.$i.'.id ANd rcpr'.$i.'.id = rcd'.$i.'.id_rebate_coupon AND rcd'.$i.'.id = \"'.$mysqli->escape_string($id_cart_discount).'\")';\n\t\t\t\t\n\t\t\t\t$joins[] = 'LEFT JOIN\n\t\t\t\t(product_category AS pc'.$i.' CROSS JOIN rebate_coupon_category AS rcc'.$i.' CROSS JOIN rebate_coupon AS rccr'.$i.' CROSS JOIN cart_discount AS rccd'.$i.') \n\t\t\t\tON\n\t\t\t\t(product_variant.id_product = pc'.$i.'.id_product AND pc'.$i.'.id_category = rcc'.$i.'.id_category AND rcc'.$i.'.id_rebate_coupon = rccr'.$i.'.id ANd rccr'.$i.'.id = rcd'.$i.'.id_rebate_coupon AND rcd'.$i.'.id = \"'.$mysqli->escape_string($id_cart_discount).'\")';\n\t\t\t\t\n\t\t\t\t$where_str[] = '(rcp'.$i.'.id_rebate_coupon IS NOT NULL OR rcc'.$i.'.id_rebate_coupon IS NOT NULL)';\n\t\t\t}\t\t\t\n\t\t\t\n\t\t\t$select = 'pvo'.$i.'.id_product_variant_group_option,\n\t\t\tpvo'.$i.'.id_product_variant_group,\n\t\t\tpvo'.$i.'_desc.name,\n\t\t\tpvgo'.$i.'.swatch_type,\n\t\t\tpvgo'.$i.'.color,\n\t\t\tpvgo'.$i.'.color2,\n\t\t\tpvgo'.$i.'.color3,\n\t\t\tpvgo'.$i.'.filename';\n\t\t\t\n\t\t\t$where[] = implode(' AND ',$where_str);\n\t\t\t\n\t\t\t$group_by[] = 'pvo'.$i.'.id_product_variant_group_option';\n\t\t\t\n\t\t\t$order_by = 'pvgo'.$i.'.sort_order ASC';\n\t\t\t\n\t\t\t$i++;\n\t\t\t\n\t\t\tif ($stop) break;\n\t\t}\n\t\t\n\t\t$joins = implode(\"\\r\\n\",$joins);\n\t\t$where = implode(' AND ',$where);\n\t\t$group_by = implode(',',$group_by);\n\t\t\t\t\t\n\t\tif ($result_options = $mysqli->query('SELECT\n\t\t'.$select.'\n\t\tFROM\t\t\n\t\tproduct_variant\n\t\t\n\t\t'.$joins.'\n\t\t\n\t\tWHERE\n\t\tproduct_variant.active = 1 \n\t\tAND\n\t\tproduct_variant.id_product = \"'.$mysqli->escape_string($id_product).'\"\n\t\tAND\n\t\t'.$where.'\n\t\tGROUP BY '.\n\t\t$group_by.'\n\t\tORDER BY '.\n\t\t$order_by)) {\t\t\t\n\t\t\tif ($result_options->num_rows) {\n\t\t\t\t$input_type = $groups[$id_product_variant_group]['input_type'];\n\t\n\t\t\t\t$output .= '<div style=\"margin-top:10px; margin-bottom:10px;\" id=\"variant_group_'.$id_product_variant_group.'\">\n\t\t\t\t<div style=\"margin-bottom:5px;\"><strong>'.$groups[$id_product_variant_group]['name'].'</strong></div>';\n\t\n\t\t\t\tif (!$input_type) {\n\t\t\t\t\t$output .= '<select name=\"variant_options['.$id_product_variant_group.']\">\n\t\t\t\t\t<option value=\"0\">--</option>';\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$i=0;\n\t\t\t\twhile ($row_option = $result_options->fetch_assoc()) {\n\t\t\t\t\t$id_product_variant_group_option = $row_option['id_product_variant_group_option'];\n\t\t\t\t\t\n\t\t\t\t\tswitch ($input_type) {\n\t\t\t\t\t\t// dropdown\n\t\t\t\t\t\tcase 0:\n\t\t\t\t\t\t\t$output .= '<option value=\"'.$id_product_variant_group_option.'\">'.$row_option['name'].'</option>';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t// radio\n\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\t$output .= '<div><input type=\"radio\" name=\"variant_options['.$id_product_variant_group.']\" id=\"product_variant_'.$id_product_variant_group.'_'.$id_product_variant_group_option.'\" value=\"'.$id_product_variant_group_option.'\">&nbsp;<label for=\"product_variant_'.$id_product_variant_group.'_'.$id_product_variant_group_option.'\">'.$row_option['name'].'</label></div>';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t// swatch\n\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\t$swatch_type = $row_option['swatch_type'];\n\t\t\t\t\t\t\t$color = $row_option['color'];\n\t\t\t\t\t\t\t$color2 = $row_option['color2'];\n\t\t\t\t\t\t\t$color3 = $row_option['color3'];\n\t\t\t\t\t\t\t$filename = $row_option['filename'];\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif ($i==8) { $output .= '<div class=\"cb\"></div>'; $i=0; }\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tswitch ($swatch_type) {\n\t\t\t\t\t\t\t\t// 1 color\n\t\t\t\t\t\t\t\tcase 0:\n\t\t\t\t\t\t\t\t\t$output .= '<a href=\"javascript:void(0);\" class=\"fl variant_color_outer_border\"><input type=\"radio\" id=\"variant_color_'.$id_product_variant_group.'_'.$id_product_variant_group_option.'\" name=\"variant_options['.$id_product_variant_group.']\" value=\"'.$id_product_variant_group_option.'\" /><div class=\"variant_color_inner_border\"><div style=\"background-color: '.$color.';\" class=\"variant_color\"></div></div></a>';\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t// 2 color\n\t\t\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\t\t\t$output .= '<a href=\"javascript:void(0);\" class=\"fl variant_color_outer_border\">\n\t\t\t\t\t\t\t\t\t<input type=\"radio\" id=\"variant_color_'.$id_product_variant_group.'_'.$id_product_variant_group_option.'\" name=\"variant_options['.$id_product_variant_group.']\" value=\"'.$id_product_variant_group_option.'\" />\n\t\t\t\t\t\t\t\t\t<div class=\"variant_color_inner_border\"><div class=\"variant_color\">\n\t\t\t\t\t\t\t\t\t<div class=\"fl\" style=\"width:10px; height:20px; background-color: '.$color.';\"></div>\n\t\t\t\t\t\t\t\t\t<div class=\"fl\" style=\"width:10px; height:20px; background-color: '.$color2.';\"></div>\t\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<div class=\"cb\"></div>\n\t\t\t\t\t\t\t\t\t</div></div>\n\t\t\t\t\t\t\t\t\t</a>';\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t// 3 color\n\t\t\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\t\t\t$output .= '<a href=\"javascript:void(0);\" class=\"fl variant_color_outer_border\">\n\t\t\t\t\t\t\t\t\t<input type=\"radio\" id=\"variant_color_'.$id_product_variant_group.'_'.$id_product_variant_group_option.'\" name=\"variant_options['.$id_product_variant_group.']\" value=\"'.$id_product_variant_group_option.'\" />\t\n\t\t\t\t\t\t\t\t\t<div class=\"variant_color_inner_border\"><div class=\"variant_color\">\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<div class=\"fl\" style=\"width:7px; height:20px; background-color: '.$color.';\"></div>\n\t\t\t\t\t\t\t\t\t<div class=\"fl\" style=\"width:6px; height:20px; background-color: '.$color2.';\"></div>\n\t\t\t\t\t\t\t\t\t<div class=\"fl\" style=\"width:7px; height:20px; background-color: '.$color3.';\"></div>\n\t\t\t\t\t\t\t\t\t<div class=\"cb\"></div>\n\t\t\t\t\t\t\t\t\t</div></div>\n\t\t\t\t\t\t\t\t\t</a>';\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t// file\n\t\t\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\t\t\t$output .= '<a href=\"javascript:void(0);\" class=\"fl variant_color_outer_border\">\n\t\t\t\t\t\t\t\t\t<input type=\"radio\" id=\"variant_color_'.$id_product_variant_group.'_'.$id_product_variant_group_option.'\" name=\"variant_options['.$id_product_variant_group.']\" value=\"'.$id_product_variant_group_option.'\" />\t\n\t\t\t\t\t\t\t\t\t<div class=\"variant_color_inner_border\"><div class=\"variant_color\">\t\t\n\t\t\t\t\t\t\t\t\t<img src=\"/images/products/swatch/'.$filename.'\" width=\"20\" height=\"20\" border=\"0\" hspace=\"0\" vspace=\"0\" />\n\t\t\t\t\t\t\t\t\t</div></div>\n\t\t\t\t\t\t\t\t\t</a>';\n\t\t\t\t\t\t\t\t\tbreak;\t\t\t\t\t\t\t\t\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\t\t}\t\t\t\t\n\t\t\n\t\t\t\t\t\t\t++$i;\t\t\t\t\t\n\t\t\t\t\t\t\tbreak;\t\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tswitch ($input_type) {\n\t\t\t\t\t// dropdown\n\t\t\t\t\tcase 0:\n\t\t\t\t\t\t$output .= '</select>\n\t\t\t\t\t\t<script type=\"text/javascript\">\n\t\t\t\t\t\t/* <![CDATA[ */\n\t\n\t\n\t\t\t\t\t\tjQuery(function(){\n\t\t\t\t\t\t\tjQuery(\"select[name=\\'variant_options['.$id_product_variant_group.']\\']\").change(function(){\n\t\t\t\t\t\t\t\t// get values\n\t\t\t\t\t\t\t\t// ajax query to get new variants\n\t\t\t\t\t\t\t\tload_variant('.$id_product_variant_group.', jQuery(this).val());\n\t\t\t\t\t\t\t\tif (jQuery(\"#display_error\").css(\"display\") == \"block\"){\njQuery(\"#display_error\").hide(\"blind\", { direction: \"vertical\" }, 1000);\n}\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\t/* ]]> */\n\t\t\t\t\t\t</script>';\t\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t// radio\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\t$output .= '<script type=\"text/javascript\">\n\t\t\t\t\t\t/* <![CDATA[ */\n\t\n\t\t\t\t\t\tjQuery(function(){\n\t\t\t\t\t\t\tjQuery(\"input[name=\\'variant_options['.$id_product_variant_group.']\\']\").change(function(){\n\t\n\t\t\t\t\t\t\t\t// get values\n\t\t\t\t\t\t\t\t// ajax query to get new variants\n\t\t\t\t\t\t\t\tload_variant('.$id_product_variant_group.', jQuery(this).val());\n\t\t\t\t\t\t\t\tif (jQuery(\"#display_error\").css(\"display\") == \"block\"){\njQuery(\"#display_error\").hide(\"blind\", { direction: \"vertical\" }, 1000);\n}\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\t</script>';\t\t\t\t\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t// swatch\n\t\t\t\t\tcase 2:\t\t\t\t\n\t\t\t\t\t\t$output .= '<script type=\"text/javascript\">\n\t\t\t\t\t\t/* <![CDATA[ */\n\t\n\t\t\t\t\t\tjQuery(function(){\n\t\t\t\t\t\t\tjQuery(\"a.variant_color_outer_border\").click(function(){\n\t\t\t\t\t\t\t\tif (!jQuery(\"input[id^=\\'variant_color_\\']:checked\",this).length) { \n\t\t\t\t\t\t\t\t\tjQuery(\"input[id^=\\'variant_color_\\']\",this).attr(\"checked\",true);\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tjQuery(\"a.variant_color_outer_border\").removeClass(\"selected\");\n\t\t\t\t\t\t\t\t\tjQuery(this).addClass(\"selected\");\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t// get values\n\t\t\t\t\t\t\t\t\t// ajax query to get new variants\n\t\t\t\t\t\t\t\t\tload_variant('.$id_product_variant_group.', jQuery(\"input[id^=\\'variant_color_\\']\",this).val());\n\t\t\t\t\t\t\t\t\tif (jQuery(\"#display_error\").css(\"display\") == \"block\"){\njQuery(\"#display_error\").hide(\"blind\", { direction: \"vertical\" }, 1000);\n}\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\t/* ]]> */\n\t\t\t\t\t\t</script>';\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$output .= '<div class=\"cb\"></div></div>';\n\t\t\t} else {\n\t\t\t\t$output .= 'No options found.';\n\t\t\t}\n\t\t} else {\n\t\t\tthrow new Exception('An error occured while trying to get variant group options.'.\"\\r\\n\\r\\n\".$mysqli->error);\t\t\n\t\t}\n\t}\n\t\n\treturn $output;\n}", "function get_variant_options_selected($id_product, $variant_options=array())\n{\n\tglobal $mysqli, $id_cart_discount;\n\t\t\n\t$output='';\n\t\t\n\t$groups=get_variant_groups($id_product);\n\t\n\t// build sql \n\t// get all groups for this product\n\tif (sizeof($groups)) {\t\n\t\t$id_product_variant_group = key($groups);\n\t\t\n\t\t$stop = 0;\n\t\t$i=1;\n\t\tforeach ($groups as $id_product_variant_group => $row_group) {\t\t\t\n\t\t\t$joins = array();\t\n\t\t\t$where = array();\t\t\n\t\t\t$group_by = array();\t\n\t\t\t\n\t\t\t$i=1;\n\t\t\tforeach ($groups as $id_product_variant_group2 => $row_group2) {\t\n\t\t\t\t$where_str = array();\n\t\t\t\t\n\t\t\t\t$joins[] = 'INNER JOIN\n\t\t\t\t(product_variant_option AS pvo'.$i.' CROSS JOIN product_variant_group_option AS pvgo'.$i.' CROSS JOIN product_variant_group_option_description AS pvo'.$i.'_desc)\n\t\t\t\tON\n\t\t\t\t(product_variant.id = pvo'.$i.'.id_product_variant AND pvo'.$i.'.id_product_variant_group_option = pvgo'.$i.'.id AND pvgo'.$i.'.id = pvo'.$i.'_desc.id_product_variant_group_option AND pvo'.$i.'_desc.language_code = \"'.$mysqli->escape_string($_SESSION['customer']['language']).'\")';\n\t\t\t\n\t\t\t\t$where_str[] = 'pvo'.$i.'.id_product_variant_group = \"'.$mysqli->escape_string($id_product_variant_group2).'\"';\n\t\t\t\t\n\t\t\t\t$stop=0;\n\t\t\t\tif ($id_product_variant_group != $id_product_variant_group2 && isset($variant_options[$id_product_variant_group2]) && $variant_options[$id_product_variant_group2]) {\n\t\t\t\t\t$id_product_variant_group_option = $variant_options[$id_product_variant_group2];\n\t\t\t\t\t\n\t\t\t\t\t$where_str[] = 'pvo'.$i.'.id_product_variant_group_option = \"'.$mysqli->escape_string($id_product_variant_group_option).'\"';\n\t\t\t\t} else { \n\t\t\t\t\t$stop=1;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\tif ($id_cart_discount) {\n\t\t\t\t\t$joins[] = 'LEFT JOIN\n\t\t\t\t\t(rebate_coupon_product AS rcp'.$i.' CROSS JOIN rebate_coupon AS rcpr'.$i.' CROSS JOIN cart_discount AS rcd'.$i.') \n\t\t\t\t\tON\n\t\t\t\t\t(product_variant.id_product = rcp'.$i.'.id_product AND rcp'.$i.'.id_rebate_coupon = rcpr'.$i.'.id ANd rcpr'.$i.'.id = rcd'.$i.'.id_rebate_coupon AND rcd'.$i.'.id = \"'.$mysqli->escape_string($id_cart_discount).'\")';\n\t\t\t\t\t\n\t\t\t\t\t$joins[] = 'LEFT JOIN\n\t\t\t\t\t(product_category AS pc'.$i.' CROSS JOIN rebate_coupon_category AS rcc'.$i.' CROSS JOIN rebate_coupon AS rccr'.$i.' CROSS JOIN cart_discount AS rccd'.$i.') \n\t\t\t\t\tON\n\t\t\t\t\t(product_variant.id_product = pc'.$i.'.id_product AND pc'.$i.'.id_category = rcc'.$i.'.id_category AND rcc'.$i.'.id_rebate_coupon = rccr'.$i.'.id ANd rccr'.$i.'.id = rcd'.$i.'.id_rebate_coupon AND rcd'.$i.'.id = \"'.$mysqli->escape_string($id_cart_discount).'\")';\n\t\t\t\t\t\n\t\t\t\t\t$where_str[] = '(rcp'.$i.'.id_rebate_coupon IS NOT NULL OR rcc'.$i.'.id_rebate_coupon IS NOT NULL)';\n\t\t\t\t}*/\n\t\t\t\t\n\t\t\t\t$select = 'pvo'.$i.'.id_product_variant_group_option,\n\t\t\t\tpvo'.$i.'.id_product_variant_group,\n\t\t\t\tpvo'.$i.'_desc.name,\n\t\t\t\tpvgo'.$i.'.swatch_type,\n\t\t\t\tpvgo'.$i.'.color,\n\t\t\t\tpvgo'.$i.'.color2,\n\t\t\t\tpvgo'.$i.'.color3,\n\t\t\t\tpvgo'.$i.'.filename';\n\t\t\t\t\n\t\t\t\t$where[] = implode(' AND ',$where_str);\n\t\t\t\t\n\t\t\t\t$group_by[] = 'pvo'.$i.'.id_product_variant_group_option';\n\t\t\t\t\n\t\t\t\t$order_by = 'pvgo'.$i.'.sort_order ASC';\n\t\t\t\t\n\t\t\t\t$i++;\n\t\t\t\t\n\t\t\t\tif ($stop) break;\n\t\t\t}\n\t\t\t\n\t\t\t$joins = implode(\"\\r\\n\",$joins);\n\t\t\t$where = implode(' AND ',$where);\n\t\t\t$group_by = implode(',',$group_by);\n\t\t\n\t\t\n\t\t\t// we need to list all main group options\n\t\t\tif ($result_group_option = $mysqli->query('SELECT\n\t\t\t'.$select.'\n\t\t\tFROM\n\t\t\tproduct_variant\n\t\t\t\n\t\t\t'.$joins.'\n\t\t\t\n\t\t\tWHERE\n\t\t\tproduct_variant.active = 1\n\t\t\tAND\n\t\t\tproduct_variant.id_product = \"'.$mysqli->escape_string($id_product).'\"\n\t\t\tAND\n\t\t\t'.$where.'\n\t\t\tGROUP BY '.\n\t\t\t$group_by.'\n\t\t\tORDER BY '.\n\t\t\t$order_by)) {\n\t\t\t\tif ($result_group_option->num_rows) {\n\t\t\t\t\t$input_type = $groups[$id_product_variant_group]['input_type'];\n\t\t\t\t\t\n\t\t\t\t\t$output .= '<div style=\"margin-top:10px; margin-bottom:10px;\" id=\"variant_group_'.$id_product_variant_group.'\">\n\t\t\t\t\t<div style=\"margin-bottom:5px;\"><strong>'.$row_group['name'].'</strong></div>';\n\t\t\n\t\t\t\t\tif (!$input_type) {\n\t\t\t\t\t\t$output .= '<select name=\"variant_options['.$id_product_variant_group.']\">\n\t\t\t\t\t\t<option value=\"\">--</option>';\n\t\t\t\t\t}\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t$current_selected = isset($variant_options[$id_product_variant_group]) ? $variant_options[$id_product_variant_group]:0;\n\t\t\t\t\t\n\t\t\t\t\t$i=0;\n\t\t\t\t\twhile ($row_group_option = $result_group_option->fetch_assoc()) {\n\t\t\t\t\t\t$id_product_variant_group_option = $row_group_option['id_product_variant_group_option'];\n\t\t\t\t\t\t\n\t\t\t\t\t\tswitch ($input_type) {\n\t\t\t\t\t\t\t// dropdown\n\t\t\t\t\t\t\tcase 0:\n\t\t\t\t\t\t\t\t$output .= '<option value=\"'.$id_product_variant_group_option.'\" '.(($current_selected == $id_product_variant_group_option) ? 'selected=\"selected\"':'').'>'.$row_group_option['name'].'</option>';\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t// radio\n\t\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\t\t$output .= '<div>\n\t\t\t\t\t\t\t\t<input type=\"radio\" name=\"variant_options['.$id_product_variant_group.']\" id=\"product_variant_'.$id_product_variant_group.'_'.$id_product_variant_group_option.'\" value=\"'.$id_product_variant_group_option.'\" '.(($current_selected == $id_product_variant_group_option) ? 'checked=\"checked\"':'').'>&nbsp;<label for=\"product_variant_'.$id_product_variant_group.'_'.$id_product_variant_group_option.'\">'.$row_group_option['name'].'</label>\n\t\t\t\t\t\t\t\t</div>';\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t// swatch\n\t\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\t\t$swatch_type = $row_group_option['swatch_type'];\n\t\t\t\t\t\t\t\t$color = $row_group_option['color'];\n\t\t\t\t\t\t\t\t$color2 = $row_group_option['color2'];\n\t\t\t\t\t\t\t\t$color3 = $row_group_option['color3'];\n\t\t\t\t\t\t\t\t$filename = $row_group_option['filename'];\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif ($i==8) { $output .= '<div class=\"cb\"></div>'; $i=0; }\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tswitch ($swatch_type) {\n\t\t\t\t\t\t\t\t\t// 1 color\n\t\t\t\t\t\t\t\t\tcase 0:\n\t\t\t\t\t\t\t\t\t\t$output .= '<a href=\"javascript:void(0);\" class=\"fl variant_color_outer_border '.(($current_selected == $id_product_variant_group_option) ? 'selected':'').'\">\n\t\t\t\t\t\t\t\t\t\t<input type=\"radio\" id=\"variant_color_'.$id_product_variant_group.'_'.$id_product_variant_group_option.'\" name=\"variant_options['.$id_product_variant_group.']\" value=\"'.$id_product_variant_group_option.'\" '.(($current_selected == $id_product_variant_group_option) ? 'checked=\"checked\"':'').' />\n\t\t\t\t\t\t\t\t\t\t<div class=\"variant_color_inner_border\">\n\t\t\t\t\t\t\t\t\t\t<div style=\"background-color: '.$color.';\" class=\"variant_color\"></div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t</a>';\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t// 2 color\n\t\t\t\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\t\t\t\t$output .= '<a href=\"javascript:void(0);\" class=\"fl variant_color_outer_border '.(($current_selected == $id_product_variant_group_option) ? 'selected':'').'\">\n\t\t\t\t\t\t\t\t\t\t<input type=\"radio\" id=\"variant_color_'.$id_product_variant_group.'_'.$id_product_variant_group_option.'\" name=\"variant_options['.$id_product_variant_group.']\" value=\"'.$id_product_variant_group_option.'\" '.(($current_selected == $id_product_variant_group_option) ? 'checked=\"checked\"':'').' />\n\t\t\t\t\t\t\t\t\t\t<div class=\"variant_color_inner_border\"><div class=\"variant_color\">\n\t\t\t\t\t\t\t\t\t\t<div class=\"fl\" style=\"width:10px; height:20px; background-color: '.$color.';\"></div>\n\t\t\t\t\t\t\t\t\t\t<div class=\"fl\" style=\"width:10px; height:20px; background-color: '.$color2.';\"></div>\t\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\t<div class=\"cb\"></div>\n\t\t\t\t\t\t\t\t\t\t</div></div>\n\t\t\t\t\t\t\t\t\t\t</a>';\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t// 3 color\n\t\t\t\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\t\t\t\t$output .= '<a href=\"javascript:void(0);\" class=\"fl variant_color_outer_border '.(($current_selected == $id_product_variant_group_option) ? 'selected':'').'\">\n\t\t\t\t\t\t\t\t\t\t<input type=\"radio\" id=\"variant_color_'.$id_product_variant_group.'_'.$id_product_variant_group_option.'\" name=\"variant_options['.$id_product_variant_group.']\" value=\"'.$id_product_variant_group_option.'\" '.(($current_selected == $id_product_variant_group_option) ? 'checked=\"checked\"':'').' />\t\n\t\t\t\t\t\t\t\t\t\t<div class=\"variant_color_inner_border\"><div class=\"variant_color\">\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\t<div class=\"fl\" style=\"width:7px; height:20px; background-color: '.$color.';\"></div>\n\t\t\t\t\t\t\t\t\t\t<div class=\"fl\" style=\"width:6px; height:20px; background-color: '.$color2.';\"></div>\n\t\t\t\t\t\t\t\t\t\t<div class=\"fl\" style=\"width:7px; height:20px; background-color: '.$color3.';\"></div>\n\t\t\t\t\t\t\t\t\t\t<div class=\"cb\"></div>\n\t\t\t\t\t\t\t\t\t\t</div></div>\n\t\t\t\t\t\t\t\t\t\t</a>';\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t// file\n\t\t\t\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\t\t\t\t$output .= '<a href=\"javascript:void(0);\" class=\"fl variant_color_outer_border '.(($current_selected == $id_product_variant_group_option) ? 'selected':'').'\">\n\t\t\t\t\t\t\t\t\t\t<input type=\"radio\" id=\"variant_color_'.$id_product_variant_group.'_'.$id_product_variant_group_option.'\" name=\"variant_options['.$id_product_variant_group.']\" value=\"'.$id_product_variant_group_option.'\" '.(($current_selected == $id_product_variant_group_option) ? 'checked=\"checked\"':'').' />\t\n\t\t\t\t\t\t\t\t\t\t<div class=\"variant_color_inner_border\"><div class=\"variant_color\">\t\t\n\t\t\t\t\t\t\t\t\t\t<img src=\"/images/products/swatch/'.$filename.'\" width=\"20\" height=\"20\" border=\"0\" hspace=\"0\" vspace=\"0\" />\n\t\t\t\t\t\t\t\t\t\t</div></div>\n\t\t\t\t\t\t\t\t\t\t</a>';\n\t\t\t\t\t\t\t\t\t\tbreak;\t\t\t\t\t\t\t\t\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\t\t\t}\t\t\t\t\n\t\t\t\n\t\t\t\t\t\t\t\t++$i;\t\t\t\t\t\n\t\t\t\t\t\t\t\tbreak;\t\n\t\t\t\t\t\t}\t\n\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\tswitch ($input_type) {\n\t\t\t\t\t\t// dropdown\n\t\t\t\t\t\tcase 0:\n\t\t\t\t\t\t\t$output .= '</select>\n\t\t\t\t\t\t\t<script type=\"text/javascript\">\n\t\t\t\t\t\t\t/* <![CDATA[ */\n\t\t\n\t\t\n\t\t\t\t\t\t\tjQuery(function(){\n\t\t\t\t\t\t\t\tjQuery(\"select[name=\\'variant_options['.$id_product_variant_group.']\\']\").change(function(){\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t// get values\n\t\t\t\t\t\t\t\t\t// ajax query to get new variants\n\t\t\t\t\t\t\t\t\tload_variant('.$id_product_variant_group.', jQuery(this).val());\n\t\t\t\t\t\t\t\t\tif (jQuery(\"#display_error\").css(\"display\") == \"block\"){\njQuery(\"#display_error\").hide(\"blind\", { direction: \"vertical\" }, 1000);\n}\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\t/* ]]> */\n\t\t\t\t\t\t\t</script>';\t\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t// radio\n\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\t$output .= '<script type=\"text/javascript\">\n\t\t\t\t\t\t\t/* <![CDATA[ */\n\t\t\n\t\t\t\t\t\t\tjQuery(function(){\n\t\t\t\t\t\t\t\tjQuery(\"input[name=\\'variant_options['.$id_product_variant_group.']\\']\").change(function(){\n\t\t\n\t\t\t\t\t\t\t\t\t// get values\n\t\t\t\t\t\t\t\t\t// ajax query to get new variants\n\t\t\t\t\t\t\t\t\tload_variant('.$id_product_variant_group.', jQuery(this).val());\n\t\t\t\t\t\t\t\t\tif (jQuery(\"#display_error\").css(\"display\") == \"block\"){\njQuery(\"#display_error\").hide(\"blind\", { direction: \"vertical\" }, 1000);\n}\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\t</script>';\t\t\t\t\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t// swatch\n\t\t\t\t\t\tcase 2:\t\t\t\t\n\t\t\t\t\t\t\t$output .= '<script type=\"text/javascript\">\n\t\t\t\t\t\t\t/* <![CDATA[ */\n\t\t\n\t\t\t\t\t\t\tjQuery(function(){\n\t\t\t\t\t\t\t\tjQuery(\"a.variant_color_outer_border\").click(function(){\n\t\t\t\t\t\t\t\t\tif (!jQuery(\"input[id^=\\'variant_color_\\']:checked\",this).length) { \n\t\t\t\t\t\t\t\t\t\tjQuery(\"input[id^=\\'variant_color_\\']\",this).attr(\"checked\",true);\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tjQuery(\"a.variant_color_outer_border\").removeClass(\"selected\");\n\t\t\t\t\t\t\t\t\t\tjQuery(this).addClass(\"selected\");\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t// get values\n\t\t\t\t\t\t\t\t\t\t// ajax query to get new variants\n\t\t\t\t\t\t\t\t\t\tload_variant('.$id_product_variant_group.', jQuery(\"input[id^=\\'variant_color_\\']\",this).val());\t\n\t\t\t\t\t\t\t\t\t\tif (jQuery(\"#display_error\").css(\"display\") == \"block\"){\njQuery(\"#display_error\").hide(\"blind\", { direction: \"vertical\" }, 1000);\n}\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/* ]]> */\n\t\t\t\t\t\t\t</script>';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t$output .= '<div class=\"cb\"></div></div>';\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$result_group_option->free();\n\t\t\t} else {\n\t\t\t\tthrow new Exception('An error occured while trying to get variant group options.'.\"\\r\\n\\r\\n\".$mysqli->error);\t\t\n\t\t\t}\n\t\t\t\n\t\t\tif (isset($variant_options[$id_product_variant_group]) && $variant_options[$id_product_variant_group] == 0) break;\n\t\t}\t\n\t}\n\t\n\treturn $output;\t\n}", "public function getAvailChildProds($parentProdId, $fromDate, $toDate, $extendedDays, $defaultFilterArr,$orderedProdsArr=array(),$selectedFilter = 0)\n {\n// echo $parentProdId.'---'.$extendedDays.'<br />';\n// dd($defaultFilterArr);\n $availableProdsArr = array();\n $getChildProdsArr = $this->getChildProducts($parentProdId);\n\n if (!empty($getChildProdsArr)) {\n /*For handicap*/\n if (empty($defaultFilterArr)) {\n $defaultFilterArr = (!empty(session()->get('defaultFilterArr')) ? session()->get('defaultFilterArr') : Config::get('constants.Default_Filter'));\n }\n /*if($selectedFilter == 60 && $defaultFilterArr[0] == 60){\n $defaultFilterArr[1] = 55;\n $defaultFilterArr[2] = 27;\n $defaultFilterArr[3] = 58;\n $defaultFilterArr[4] = 0;\n }*/\n// $HandicapAttribArr = $this->getProdIDByAttributes($defaultFilterArr[4]);\n\n $FlexAttribArr = $this->getProdIDByAttributes($defaultFilterArr[3]);\n\n $HandAttribArr = $this->getProdIDByAttributes($defaultFilterArr[1]);\n\n $ShaftAttribArr = $this->getProdIDByAttributes($defaultFilterArr[2]);\n\n $GenderAttribArr = $this->getProdIDByAttributes($defaultFilterArr[0]);\n $addedProdArr = array();\n if(count($orderedProdsArr)>0){\n foreach ($orderedProdsArr as $orderedProds){\n array_push($addedProdArr, $orderedProds->product_id);\n }\n }\n// in_array($childArr->id, $HandicapAttribArr)&&\n foreach ($getChildProdsArr as $childArr) {\n if (in_array($childArr->id, $FlexAttribArr) && in_array($childArr->id, $HandAttribArr) && in_array($childArr->id, $ShaftAttribArr) && in_array($childArr->id, $GenderAttribArr) && !in_array($childArr->id, $addedProdArr)) {\n\n $CheckProdArr = $this->checkChildForBooking($childArr->id, $fromDate, $toDate, $extendedDays);\n /*if($parentProdId == '123'){\n echo $childArr->id.' --- '.$fromDate.' ---- '.$toDate.' ---- '.$extendedDays;\n echo '<br />';\n print_r($CheckProdArr);\n echo '<br />';\n }*/\n if (empty($CheckProdArr[0])) {\n $ArrtibSetArr = $this->getProdAttribsByProdId($childArr->id);\n if(count($ArrtibSetArr)>0){\n foreach ($ArrtibSetArr as $attrib){\n if($attrib->attrib_name == 'Handicap'){\n $childArr->handicap = $attrib->value;\n }\n }\n }\n array_push($availableProdsArr, $childArr);\n }\n }\n }\n }\n\n return $availableProdsArr;\n }", "function fn_product_variations_get_variation_by_selected_options($product, $product_options, $selected_options, $index = 0)\n{\n /** @var ProductManager $product_manager */\n $product_manager = Tygh::$app['addons.product_variations.product.manager'];\n\n $name_part = array($product['product']);\n $variation_code = $product_manager->getVariationCode($product['product_id'], $selected_options);\n $options = array();\n\n foreach ($selected_options as $option_id => $variant_id) {\n $option_id = (int) $option_id;\n $variant_id = (int) $variant_id;\n\n $option = $product_options[$option_id];\n $option['value'] = $variant_id;\n\n $variant = $product_options[$option_id]['variants'][$variant_id];\n\n $name_part[] = $option['option_name'] . ': ' .$variant['variant_name'];\n $options[$option_id] = $option;\n }\n\n $combination = array(\n 'name' => implode(', ', $name_part),\n 'price' => $product['price'],\n 'list_price' => $product['list_price'],\n 'weight' => $product['weight'],\n 'amount' => empty($product['amount']) ? 1 : $product['amount'],\n 'code' => !empty($product['product_code']) ? $product['product_code'] . $index : '',\n 'options' => $options,\n 'selected_options' => $selected_options,\n 'variation' => $variation_code\n );\n\n return $combination;\n}", "public function testProductGetVariants()\n {\n $product = $this->find('product', 1);\n \n $variants = $product->getVariants();\n \n $productColor = $this->find('productColor', 1);\n $productSize = $this->find('productSize', 1);\n \n $this->assertTrue(\n $variants[$productSize->getId()][$productColor->getId()]\n );\n }", "public function AlternativesPerProduct()\n {\n $dos = ArrayList::create();\n $altCount = Config::inst()->get('RepeatOrderForm', 'number_of_product_alternatives');\n for ($i = 1; $i <= $altCount; $i++) {\n $alternativeField = \"Alternative\".$i.\"ID\";\n if ($this->$alternativeField) {\n $product = Product::get()->filter(['ID' => $this->$alternativeField])->first();\n if ($product) {\n $dos->push($product);\n }\n }\n }\n if ($dos && $dos->count()) {\n return $dos;\n }\n return null;\n }", "function fn_look_through_variants($product_id, $amount, $options, $variants)\n{\n\t\n\n\t$position = 0;\n\t$hashes = array();\n\t$combinations = fn_get_options_combinations($options, $variants);\n\n\tif (!empty($combinations)) {\n\t\tforeach ($combinations as $combination) {\n\n\t\t\t$_data = array();\n\t\t\t$_data['product_id'] = $product_id;\n\n\t\t\t$_data['combination_hash'] = fn_generate_cart_id($product_id, array('product_options' => $combination));\n\n\t\t\tif (array_search($_data['combination_hash'], $hashes) === false) {\n\t\t\t\t$hashes[] = $_data['combination_hash'];\n\t\t\t\t$_data['combination'] = fn_get_options_combination($combination);\n\t\t\t\t$_data['position'] = $position++;\n\n\t\t\t\t$old_data = db_get_row(\n\t\t\t\t\t\"SELECT combination_hash, amount, product_code \"\n\t\t\t\t\t. \"FROM ?:product_options_inventory \"\n\t\t\t\t\t. \"WHERE product_id = ?i AND combination_hash = ?i AND temp = 'Y'\", \n\t\t\t\t\t$product_id, $_data['combination_hash']\n\t\t\t\t);\n\n\t\t\t\t$_data['amount'] = isset($old_data['amount']) ? $old_data['amount'] : $amount;\n\t\t\t\t$_data['product_code'] = isset($old_data['product_code']) ? $old_data['product_code'] : '';\n\n\t\t\t\tdb_query(\"REPLACE INTO ?:product_options_inventory ?e\", $_data);\n\t\t\t\t$combinations[] = $combination;\n\t\t\t}\n\t\t\techo str_repeat('. ', count($combination));\n\t\t}\n\t}\n\t\n\t\n\n\treturn $combinations;\n}", "protected function get_detected_products () {\n if ( $this->type == 'theme' ) {\n return $this->get_detected_theme();\n } elseif ( $this->type == 'plugin' ) {\n return $this->get_detected_plugins();\n } else {\n return array();\n }\n }", "function getAllProductVariantOptions(Request $request) {\n $collectionName = $request->query->get('collectionName');\n $arr = [];\n $em = $this->getDoctrine()->getManager();\n $products = [];\n if(strpos($collectionName, ';') !== false) {\n $collectionArray = explode(';', $collectionName);\n foreach ($collectionArray as $collectionName) {\n $collection = $em->getRepository('App:ProductTypes')->findOneBy(['name' => $collectionName]);\n $products[] = $em->getRepository('App:Products')->findBy(['type' => $collection]);\n }\n } else {\n $collection = $em->getRepository('App:ProductTypes')->findOneBy(['name' => $collectionName]);\n $products = $em->getRepository('App:Products')->findBy(['type' => $collection]);\n\n if (!$collection) {\n $brand = $em->getRepository('App:Brands')->findOneBy(['name' => $collectionName]);\n $products = $em->getRepository('App:Products')->findBy(['brand' => $brand]);\n }\n }\n\n $colorsArr = [];\n $sizeArr = [];\n $brandArr = [];\n\n foreach ($products as $product) {\n if(is_array($product)) {\n foreach ($product as $item) {\n if ($item->getSize()) {\n $sizeArr[] = $item->getSize()->getSize();\n }\n\n if($item->getColor()) {\n $colorsArr[] = $item->getColor()->getName();\n }\n\n if ($item->getBrand()) {\n $brandArr[] = $item->getBrand()->getName();\n }\n }\n } else {\n if ($product->getSize()) {\n $sizeArr[] = $product->getSize()->getSize();\n }\n\n if($product->getColor()) {\n $colorsArr[] = $product->getColor()->getName();\n }\n\n if ($product->getBrand()) {\n $brandArr[] = $product->getBrand()->getName();\n }\n }\n }\n\n $arr['colors'] = array_unique($colorsArr);\n $arr['sizes'] = array_unique($sizeArr);\n $arr['brands'] = array_unique($brandArr);\n\n return new JsonResponse($arr);\n }", "function get_product_availability_by_warehouse($post_id) {\n global $wpdb;\n\n // First let's get the SKU for the product so we can look up its availability\n $sku = get_post_meta($post_id, '_sku', true);\n\n // We will use this array as 'CA' => true if it's available and 'CA' => false if it's unavailable\n $availability_by_warehouse = array();\n\n // Pull in the list of warehouses\n $warehouse_ids = get_warehouse_ids();\n\n // Set all warehouse_ids as 0 before continuing\n foreach ($warehouse_ids as $warehouse_id) {\n $availability_by_warehouse[$warehouse_id] = 0;\n }\n\n // Make sure we have an actual sku here\n if (!empty($sku)) {\n\n\n // Query up the inventory\n $inventory_array = $wpdb->get_results(\n $wpdb->prepare(\n \"SELECT item, warehouse, qty\n FROM randys_InventoryByWarehouse\n WHERE item = %s\",\n array($sku)\n )\n );\n\n // Loop through the inventories, marking them as available or not\n foreach ($inventory_array as $inventory) {\n if ($inventory->qty !== '0') {\n $availability_by_warehouse[$inventory->warehouse] = (int)$inventory->qty;\n }\n }\n }\n\n return $availability_by_warehouse;\n}", "public function run()\n {\n $productVariants = [\n \t1 => [\n \t\t'product_id' => 1,\n \t\t'variant_type' => 2,\n \t\t'product_type_id' => 1,\n \t\t'name' => 'Everything Seasoning',\n \t\t'internal_sku' => '811207024269',\n \t\t'sku' => '804879447856',\n \t\t'upc' => '811207024269',\n 'download_link' => '', \t\n \t\t'free_product_tier_id' => 0,\n \t\t'quantity' => 1,\n \t\t'hide_options_from_display_name' => 0,\n \t\t'customer_service_can_add' => 1, \t\t\n \t\t'enabled' => 1 \n ],\n 2 => [\n 'product_id' => 1,\n 'variant_type' => 3,\n 'product_type_id' => 1,\n 'name' => 'Everything Seasoning - 3 Bottles',\n 'internal_sku' => '813327020398-3B',\n 'sku' => '804879447856-3B',\n 'upc' => '813327020398',\n 'download_link' => '', \n 'free_product_tier_id' => 0,\n 'quantity' => 1,\n 'hide_options_from_display_name' => 1,\n 'customer_service_can_add' => 1, \n 'enabled' => 1 \n ],\n 3 => [\n 'product_id' => 2,\n 'variant_type' => 2,\n 'product_type_id' => 1,\n 'name' => 'Spicy Everything Seasoning',\n 'internal_sku' => '811207024320',\n 'sku' => '804879447863',\n 'upc' => '811207024320',\n 'download_link' => '', \n 'free_product_tier_id' => 0,\n 'quantity' => 1,\n 'hide_options_from_display_name' => 1,\n 'customer_service_can_add' => 1, \n 'enabled' => 1 \n ],\n 4 => [\n 'product_id' => 2,\n 'variant_type' => 3,\n 'product_type_id' => 1,\n 'name' => 'Spicy Everything Seasoning - 3 Bottles',\n 'internal_sku' => '813327020374-3B',\n 'sku' => '804879447863-3B',\n 'upc' => '813327020374',\n 'download_link' => '', \n 'free_product_tier_id' => 0,\n 'quantity' => 1,\n 'hide_options_from_display_name' => 1,\n 'customer_service_can_add' => 1, \n 'enabled' => 1 \n ],\n 5 => [\n 'product_id' => 3,\n 'variant_type' => 2,\n 'product_type_id' => 1,\n 'name' => 'Garlic Lover\\'s Seasoning',\n 'internal_sku' => '811207024306',\n 'sku' => '804879389859',\n 'upc' => '811207024306', \n 'download_link' => '', \n 'free_product_tier_id' => 1,\n 'quantity' => 1,\n 'hide_options_from_display_name' => 1,\n 'customer_service_can_add' => 1, \n 'enabled' => 1 \n ],\n 6 => [\n 'product_id' => 3,\n 'variant_type' => 3,\n 'product_type_id' => 1,\n 'name' => 'Garlic Lover\\'s Seasoning - 3 Bottles',\n 'internal_sku' => '811207024306-3B',\n 'sku' => '804879389859-3B',\n 'upc' => '811207024306', \n 'download_link' => '', \n 'free_product_tier_id' => 0,\n 'quantity' => 1,\n 'hide_options_from_display_name' => 1,\n 'customer_service_can_add' => 1, \n 'enabled' => 1 \n ],\n 7 => [\n 'product_id' => 4,\n 'variant_type' => 2,\n 'product_type_id' => 1,\n 'name' => 'Lemon & Garlic Seasoning',\n 'internal_sku' => '811207024283',\n 'sku' => '804879153375',\n 'upc' => '811207024283',\n 'download_link' => '', \n 'free_product_tier_id' => 0,\n 'quantity' => 1,\n 'hide_options_from_display_name' => 1,\n 'customer_service_can_add' => 1, \n 'enabled' => 1,\n \n ],\n 8 => [\n 'product_id' => 4,\n 'variant_type' => 3,\n 'product_type_id' => 1,\n 'name' => 'Lemon & Garlic Seasoning - 3 Bottles',\n 'internal_sku' => '811207024283-3B',\n 'sku' => '804879153375-3B',\n 'upc' => '811207024283',\n 'download_link' => '', \n 'free_product_tier_id' => 0,\n 'quantity' => 1,\n 'hide_options_from_display_name' => 1,\n 'customer_service_can_add' => 1, \n 'enabled' => 1,\n \n ],\n 9 => [\n 'product_id' => 5,\n 'variant_type' => 2,\n 'product_type_id' => 1,\n 'name' => 'Chipotle Seasoning',\n 'internal_sku' => '811207026720',\n 'sku' => '811207026720', \n 'upc' => '811207026720', \n 'download_link' => '', \n 'free_product_tier_id' => 0,\n 'quantity' => 1,\n 'hide_options_from_display_name' => 1,\n 'customer_service_can_add' => 1,\n 'enabled' => 1 \n ],\n 10 => [\n 'product_id' => 5,\n 'variant_type' => 3,\n 'product_type_id' => 1,\n 'name' => 'Chipotle Seasoning - 3 Bottles',\n 'internal_sku' => '',\n 'sku' => '811207026720-3B', \n 'upc' => '811207026720',\n 'download_link' => '', \n 'free_product_tier_id' => 0,\n 'quantity' => 1,\n 'hide_options_from_display_name' => 1,\n 'customer_service_can_add' => 0,\n 'enabled' => 1 \n ],\n 11 => [\n 'product_id' => 6,\n 'variant_type' => 3,\n 'product_type_id' => 1,\n 'name' => 'Pizza Seasoning',\n 'internal_sku' => '813327020299',\n 'sku' => '813327020299', \n 'upc' => '813327020299',\n 'download_link' => '', \n 'free_product_tier_id' => 0,\n 'quantity' => 1,\n 'hide_options_from_display_name' => 1,\n 'customer_service_can_add' => 1,\n 'enabled' => 1 \n ],\n 12 => [\n 'product_id' => 6,\n 'variant_type' => 3,\n 'product_type_id' => 1,\n 'name' => 'Pizza Seasoning - 3 Bottles',\n 'internal_sku' => '',\n 'sku' => '813327020299-3B', \n 'upc' => '813327020299',\n 'download_link' => '', \n 'free_product_tier_id' => 0,\n 'quantity' => 1,\n 'hide_options_from_display_name' => 1,\n 'customer_service_can_add' => 1, \n 'enabled' => 1\n \n ],\n 13 => [\n 'product_id' => 6,\n 'variant_type' => 2,\n 'product_type_id' => 1,\n 'name' => 'Pizza Seasoning',\n 'internal_sku' => 'PZA',\n 'sku' => 'PZA', \n 'upc' => '813327020299',\n 'download_link' => '', \n 'free_product_tier_id' => 0,\n 'quantity' => 1,\n 'hide_options_from_display_name' => 1,\n 'customer_service_can_add' => 0, \n 'enabled' => 0\n \n ],\n 14 => [\n 'product_id' => 7,\n 'variant_type' => 4,\n 'product_type_id' => 4,\n 'name' => 'Flavor God Paleo Recipe Book',\n 'internal_sku' => '',\n 'sku' => 'FG-RECIPE01',\n 'upc' => '', \n 'download_link' => 'http://download.flavorgod.com/flavorpurchase/flavorgodpaleoandglutenfreerecipebook.pdf', \n 'free_product_tier_id' => 0,\n 'quantity' => 1,\n 'hide_options_from_display_name' => 1,\n 'customer_service_can_add' => 1, \n 'enabled' => 1\n \n ],\n 15 => [\n 'product_id' => 8,\n 'variant_type' => 3,\n 'product_type_id' => 1,\n 'name' => 'Classic Combo Set',\n 'internal_sku' => '811207024245',\n 'sku' => 'COMBOPACK',\n 'upc' => '811207024245', \n 'download_link' => '', \n 'free_product_tier_id' => 0,\n 'quantity' => 1,\n 'hide_options_from_display_name' => 1,\n 'customer_service_can_add' => 1, \n 'enabled' => 1\n \n ],\n 16 => [\n 'product_id' => 8,\n 'variant_type' => 3,\n 'product_type_id' => 1,\n 'name' => 'Classic Combo Set w/ Flavor God Paleo Recipe Book',\n 'internal_sku' => '813327020244',\n 'sku' => 'FGCOMBOBOOK-1',\n 'upc' => '813327020244', \n 'download_link' => '', \n 'free_product_tier_id' => 0,\n 'quantity' => 1,\n 'hide_options_from_display_name' => 1,\n 'customer_service_can_add' => 1, \n 'enabled' => 1\n \n ],\n 17 => [\n 'product_id' => 8,\n 'variant_type' => 3,\n 'product_type_id' => 5,\n 'name' => 'Classic Combo Set w/ Apron (Grey) - 50% OFF',\n 'internal_sku' => 'CLSCMB-GRAP-50',\n 'sku' => 'CLSCMB-GRAP-50',\n 'upc' => 'CLSCMB-GRAP-50', \n 'download_link' => '', \n 'free_product_tier_id' => 0,\n 'quantity' => 1,\n 'hide_options_from_display_name' => 1,\n 'customer_service_can_add' => 1, \n 'enabled' => 1\n \n ],\n 18 => [\n 'product_id' => 9,\n 'variant_type' => 3,\n 'product_type_id' => 1,\n 'name' => 'Chipotle Combo Set',\n 'internal_sku' => '811207026713',\n 'sku' => 'COMBO-CHIP',\n 'upc' => '811207026713', \n 'download_link' => '', \n 'free_product_tier_id' => 0,\n 'quantity' => 1,\n 'hide_options_from_display_name' => 1,\n 'customer_service_can_add' => 0, \n 'enabled' => 0\n \n ],\n 19 => [\n 'product_id' => 9,\n 'variant_type' => 3,\n 'product_type_id' => 1,\n 'name' => 'Chipotle Combo Set w/ Flavor God Paleo Recipe Book',\n 'internal_sku' => '811207026706',\n 'sku' => 'COMBO-CHIP-EB',\n 'upc' => '811207026706', \n 'download_link' => '', \n 'free_product_tier_id' => 0,\n 'quantity' => 1,\n 'hide_options_from_display_name' => 1,\n 'customer_service_can_add' => 0, \n 'enabled' => 0 \n ],\n 20 => [\n 'product_id' => 10,\n 'variant_type' => 3,\n 'product_type_id' => 1,\n 'name' => 'Pizza Combo Set',\n 'internal_sku' => '813327020176',\n 'sku' => 'COMBO-PZA',\n 'upc' => '813327020176', \n 'download_link' => '', \n 'free_product_tier_id' => 0,\n 'quantity' => 1,\n 'hide_options_from_display_name' => 0,\n 'customer_service_can_add' => 0, \n 'enabled' => 0 \n ],\n 21 => [\n 'product_id' => 10,\n 'variant_type' => 3,\n 'product_type_id' => 1,\n 'name' => 'Pizza Combo Set w/ Flavor God Paleo Recipe Book',\n 'internal_sku' => '813327020145',\n 'sku' => 'COMBO-PZA-EB',\n 'upc' => '813327020145', \n 'download_link' => '', \n 'free_product_tier_id' => 0,\n 'quantity' => 1,\n 'hide_options_from_display_name' => 1,\n 'customer_service_can_add' => 0, \n 'enabled' => 0 \n ]\n];\n \n foreach ($productVariants as $key => $value) {\n \\DB::insert('insert into product_variants(product_id, variant_type, product_type_id, name, internal_sku, sku,\n upc, download_link, free_product_tier_id, quantity, hide_options_from_display_name, customer_service_can_add, enabled)values(\n ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)', [\n $value['product_id'], \n $value['variant_type'],\n $value['product_type_id'],\n $value['name'],\n $value['internal_sku'],\n $value['sku'],\n $value['upc'],\n $value['download_link'],\n $value['free_product_tier_id'],\n $value['quantity'],\n $value['hide_options_from_display_name'],\n $value['customer_service_can_add'], \n $value['enabled']\n ]);\n }\n }", "public function getEnabledVariations(ProductInterface $product);", "public function getProductCollection()\n {\n $this->_basketProducts = $this->_getCartProductIds();\n $products = $this->_complementaryEngine->sendQuery($this->_basketProducts);\n\n if ($products['rules']) {\n return $this->_getPredictedProducts($products['rules']);\n }\n\n return false;\n }", "function fn_product_variations_convert_to_configurable_product($product_id)\n{\n $auth = array();\n\n $product = fn_get_product_data($product_id, $auth);\n $languages = Languages::getAll();\n $product_options = fn_get_product_options($product_id, CART_LANGUAGE, true);\n $product_row = db_get_row('SELECT * FROM ?:products WHERE product_id = ?i', $product_id);\n $product_variation_ids = db_get_fields('SELECT product_id FROM ?:products WHERE parent_product_id = ?i', $product_id);\n $product_exceptions = fn_get_product_exceptions($product_id);\n\n foreach ($product_variation_ids as $product_variation_id) {\n fn_delete_product($product_variation_id);\n }\n\n $options_ids = array();\n $inventory_combinations = db_get_array('SELECT * FROM ?:product_options_inventory WHERE product_id = ?i', $product_id);\n $index = 0;\n\n foreach ($inventory_combinations as $item) {\n $index++;\n $selected_options = array();\n $parts = array_chunk(explode('_', $item['combination']), 2);\n\n foreach ($parts as $part) {\n $selected_options[$part[0]] = $part[1];\n }\n\n $combination = fn_product_variations_get_variation_by_selected_options(\n $product,\n $product_options,\n $selected_options,\n $index\n );\n\n if (!empty($item['product_code'])) {\n $combination['code'] = $item['product_code'];\n }\n\n if (!empty($item['amount'])) {\n $combination['amount'] = $item['amount'];\n }\n\n $is_allow = true;\n\n if ($product_row['exceptions_type'] == 'F') {\n foreach ($product_exceptions as $exception) {\n\n foreach ($exception['combination'] as $option_id => &$variant_id) {\n if ($variant_id == OPTION_EXCEPTION_VARIANT_ANY || $variant_id == OPTION_EXCEPTION_VARIANT_NOTHING) {\n $variant_id = isset($combination['selected_options'][$option_id]) ? $combination['selected_options'][$option_id] : null;\n }\n }\n unset($variant_id);\n\n if ($exception['combination'] == $combination['selected_options']) {\n $is_allow = false;\n break;\n }\n }\n } elseif ($product_row['exceptions_type'] == 'A') {\n $is_allow = false;\n\n foreach ($product_exceptions as $exception) {\n\n foreach ($exception['combination'] as $option_id => &$variant_id) {\n if ($variant_id == OPTION_EXCEPTION_VARIANT_ANY) {\n $variant_id = isset($combination['selected_options'][$option_id]) ? $combination['selected_options'][$option_id] : null;\n }\n }\n unset($variant_id);\n\n if ($exception['combination'] == $combination['selected_options']) {\n $is_allow = true;\n break;\n }\n }\n }\n\n if (!$is_allow) {\n continue;\n }\n\n $variation_id = fn_product_variations_save_variation($product_row, $combination, $languages);\n\n $image = fn_get_image_pairs($item['combination_hash'], 'product_option', 'M', true, true);\n\n if ($image) {\n $detailed = $icons = array();\n $pair_data = array(\n 'type' => 'M'\n );\n\n if (!empty($image['icon'])) {\n $tmp_name = fn_create_temp_file();\n Storage::instance('images')->export($image['icon']['relative_path'], $tmp_name);\n $name = fn_basename($image['icon']['image_path']);\n\n $icons[$image['pair_id']] = array(\n 'path' => $tmp_name,\n 'size' => filesize($tmp_name),\n 'error' => 0,\n 'name' => $name\n );\n\n $pair_data['image_alt'] = empty($image['icon']['alt']) ? '' : $image['icon']['alt'];\n }\n\n if (!empty($image['detailed'])) {\n $tmp_name = fn_create_temp_file();\n Storage::instance('images')->export($image['detailed']['relative_path'], $tmp_name);\n $name = fn_basename($image['detailed']['image_path']);\n\n $detailed[$image['pair_id']] = array(\n 'path' => $tmp_name,\n 'size' => filesize($tmp_name),\n 'error' => 0,\n 'name' => $name\n );\n\n $pair_data['detailed_alt'] = empty($image['detailed']['alt']) ? '' : $image['detailed']['alt'];\n }\n\n $pairs_data = array(\n $image['pair_id'] => $pair_data\n );\n\n fn_update_image_pairs($icons, $detailed, $pairs_data, $variation_id, 'product');\n }\n }\n\n if (!empty($selected_options)) {\n $options_ids = array_keys($selected_options);\n }\n\n db_query(\n 'UPDATE ?:products SET product_type = ?s, variation_options = ?s WHERE product_id = ?i',\n ProductManager::PRODUCT_TYPE_CONFIGURABLE, json_encode(array_values($options_ids)), $product_id\n );\n\n fn_delete_product_option_combinations($product_id);\n db_query('DELETE FROM ?:product_options_exceptions WHERE product_id = ?i', $product_id);\n}", "public function testFindsVariantForInactiveProduct(): void\n {\n $inactiveProduct = $this->createVisibleTestProduct([\n 'active' => false\n ]);\n\n $this->createVisibleTestProduct([\n 'id' => Uuid::randomHex(),\n 'productNumber' => 'FINDOLOGIC001.1',\n 'name' => 'FINDOLOGIC VARIANT',\n 'stock' => 10,\n 'active' => true,\n 'parentId' => $inactiveProduct->getId(),\n 'tax' => ['name' => '9%', 'taxRate' => 9],\n 'price' => [['currencyId' => Defaults::CURRENCY, 'gross' => 15, 'net' => 10, 'linked' => false]]\n ]);\n\n $products = $this->defaultProductService->searchVisibleProducts(20, 0);\n $product = $products->first();\n\n $this->assertSame('FINDOLOGIC VARIANT', $product->getName());\n }", "public function items($product, $protype='amount', $profit=0, $profit_child=0, $profit_baby=0)\n {\n if ($product['type'] != 2 || $product['payment'] != 'prepay') return $product;\n\n // type = 1 only hotel + auto product\n $sql = \"SELECT a.`id`, a.`name`, a.`objtype` AS `type`, a.`source`, a.`target`, a.`objpid`, a.`objid`, a.`ext`, a.`ext2`, a.`intro`, a.`childstd`, a.`babystd`, a.`default`,\n b.`profit` AS `profit`, b.`child` AS `profit_child`, b.`baby` AS `profit_baby`, b.`type` AS `protype`\n FROM `ptc_product_item` AS a\n LEFT JOIN `ptc_org_profit` AS b ON b.`org` = :org AND b.`payment` = 'prepay' AND b.`objtype` = 'item' AND b.`objid` = a.`id`\n WHERE a.`pid`=:pid\n ORDER BY a.`objtype` DESC, a.`seq` ASC;\";\n $db = db(config('db'));\n $items = $db -> prepare($sql) -> execute(array(':pid'=>$product['id'], ':org'=>api::$org));\n\n $hmax = $fmax = 0;\n $hmin = $fmin = 9999999;\n foreach ($items as $k => $v)\n {\n $sql = \"SELECT a.`id` AS `city`, a.`name` AS `cityname`, a.`pid` AS `country`, b.`name` AS `countryname`, a.`lng`, a.`lat`\n FROM `ptc_district` AS a\n LEFT JOIN `ptc_district` AS b ON a.pid = b.id\n WHERE a.`id`=:id\";\n\n if ($v['source'])\n {\n $source = $db -> prepare($sql) -> execute(array(':id' => $v['source']));\n $items[$k]['source'] = $source[0];\n }\n else\n {\n $items[$k]['source'] = null;\n }\n\n $target = $db -> prepare($sql) -> execute(array(':id' => $v['target']));\n $items[$k]['target'] = $target[0];\n\n if ($v['type'] == 'room')\n {\n $items[$k]['hotel'] = $v['objpid'];\n $items[$k]['room'] = $v['objid'];\n $items[$k]['night'] = $v['ext'];\n\n $sql = \"SELECT p.`key` AS `code`, p.`date`, p.`price`, p.`allot`-`sold` AS `allot`, p.`filled`, p.`standby`\n FROM `ptc_hotel_price_date` AS p\n WHERE p.`supply`='EBK' AND p.`supplyid`=:sup AND p.`hotel`=:hotel AND p.`room`=:room AND p.`close`=0\";\n $condition = array(':sup'=>$product['id'], ':hotel'=>$v['objpid'], ':room'=>$v['id']);\n\n $date = $db -> prepare($sql) -> execute($condition);\n }\n else\n {\n $items[$k]['auto'] = $v['objpid'];\n\n $sql = \"SELECT p.`key` AS `code`, p.`date`, p.`price`, p.`child`, p.`baby`, p.`allot`-p.`sold` AS `allot`, p.`filled`\n FROM `ptc_auto_price_date` AS p\n WHERE `auto`=:auto AND `close`=0\";\n $condition = array(':auto'=>$v['objpid']);\n\n $date = $db -> prepare($sql) -> execute($condition);\n }\n\n if ($v['protype'])\n {\n $_protype = $v['protype'];\n $_profit = $v['profit'];\n $_profit_child = $v['profit_child'];\n $_profit_baby = $v['profit_baby'];\n }\n else\n {\n $_protype = $protype;\n $_profit = $profit;\n $_profit_child = $profit_child;\n $_profit_baby = $profit_baby;\n }\n\n unset($items[$k]['protype'], $items[$k]['profit'], $items[$k]['profit_child'], $items[$k]['profit_baby']);\n\n $items[$k]['dates'] = array();\n foreach ($date as $d)\n {\n $d['code'] = key_encryption($d['code'].'_auto'.$product['id'].'.'.$v['id'].'_product2');\n $d['date'] = date('Y-m-d', $d['date']);\n $d['price'] = $d['price'] + round($_protype == 'amount' ? $_profit : ($d['price'] * $_profit / 100));\n $d['allot'] = $d['filled'] || $d['allot'] < 0 ? 0 : $d['allot'];\n if (isset($d['standby']))\n {\n $standby = json_decode($d['standby'], true);\n $d['child'] = $standby['child'] ? $standby['child'] + round($_protype == 'amount' ? $_profit_child : ($standby['child'] * $_profit_child / 100)) : 0;\n $d['baby'] = $standby['baby'] ? $standby['baby'] + round($_protype == 'amount' ? $_profit_baby : ($standby['baby'] * $_profit_baby / 100)) : 0;\n }\n else\n {\n $d['child'] = $d['child'] ? $d['child'] + round($_protype == 'amount' ? $_profit_child : ($d['child'] * $_profit_child / 100)) : 0;\n $d['baby'] = $d['baby'] ? $d['baby'] + round($_protype == 'amount' ? $_profit_baby : ($d['baby'] * $_profit_baby / 100)) : 0;\n }\n unset($d['uncombine'], $d['combine'], $d['standby']);\n $items[$k]['dates'][] = $d;\n\n if (!$d['allot']) continue;\n\n if ($v['type'] == 'room')\n {\n $hmin = $hmin > $d['price'] ? $d['price'] : $hmin;\n $hmax = $hmax < $d['price'] ? $d['price'] : $hmax;\n }\n else\n {\n $fmin = $fmin > $d['price'] ? $d['price'] : $fmin;\n $fmax = $fmax < $d['price'] ? $d['price'] : $fmax;\n }\n }\n }\n\n $product['maxprice'] = $hmax + $fmax;\n $product['minprice'] = $hmin + $fmin;\n $product['items'] = $items;\n return $product;\n }", "public function getComparePrice($productId) {\n $productCollection = Mage::getModel ( static::CAT_PRO )->getCollection ()->addAttributeToSelect ( '*' )->addAttributeToFilter ( 'is_assign_product', array (\n 'eq' => 1 \n ) )->addAttributeToFilter ( static::STATUS, array (\n 'eq' => Mage_Catalog_Model_Product_Status::STATUS_ENABLED \n ) );\n \n $productCollection->addFieldToFilter ( 'assign_product_id', array (\n 'eq' => $productId \n ) );\n $productCollection->setOrder ( 'price', 'ASC' );\n return $productCollection;\n }", "public function designProfit(){\n\t\treturn $this->campaigns()\n\t\t\t->join('order_detail', 'product_campaign.id', 'order_detail.campaign_id')\n\t\t\t->join('order', 'order_detail.order_id', 'order.id')\n\t\t\t->join('order_status', 'order.id', 'order_status.order_id')\n\t\t\t->where('order_status.value', 4)\n\t\t\t->sum('product_quantity') * 25000;\n\t}", "public function product_is_in_plans( $product_id ) {\n $product = wc_get_product( $product_id );\n if ( !$product )\n return array();\n\n $plan_ids = array();\n\n $restrict_access_plan = get_post_meta( $product_id, '_yith_wcmbs_restrict_access_plan', true );\n if ( !empty( $restrict_access_plan ) ) {\n $plan_ids = $restrict_access_plan;\n }\n\n $prod_cats_plans_array = array();\n $prod_tags_plans_array = array();\n $plans_info = YITH_WCMBS_Manager()->get_plans_info_array();;\n extract( $plans_info );\n\n // FILTER PRODUCT CATS AND TAGS IN PLANS\n if ( !empty( $prod_cats_plans_array ) ) {\n //$this_product_cats = wp_get_post_terms( $product_id, 'product_cat', array( 'fields' => 'ids' ) );\n $this_product_cats = yith_wcmbs_get_post_term_ids( $product_id, 'product_cat', array(), true );\n foreach ( $prod_cats_plans_array as $cat_id => $c_plan_ids ) {\n if ( !empty( $c_plan_ids ) && in_array( $cat_id, (array) $this_product_cats ) ) {\n $plan_ids = array_merge( $plan_ids, $c_plan_ids );\n }\n }\n }\n if ( !empty( $prod_tags_plans_array ) ) {\n $this_product_tags = wp_get_post_terms( $product_id, 'product_tag', array( 'fields' => 'ids' ) );\n foreach ( $prod_tags_plans_array as $tag_id => $t_plan_ids ) {\n if ( !empty( $t_plan_ids ) && in_array( $tag_id, (array) $this_product_tags ) ) {\n $plan_ids = array_merge( $plan_ids, $t_plan_ids );\n }\n }\n }\n\n foreach ( $plan_ids as $key => $plan_id ) {\n $allowed = YITH_WCMBS_Manager()->exclude_hidden_items( array( $product_id ), $plan_id );\n $is_hidden_in_plan = empty( $allowed );\n if ( $is_hidden_in_plan )\n unset( $plan_ids[ $key ] );\n }\n\n return array_unique( $plan_ids );\n }", "public function getProductSelections();", "function ppt_resources_get_target_accounts_products($data)\n{\n global $user;\n if (!isset($data['accounts']) || empty($data['accounts'])) {\n $countries = get_user_countries($user);\n $accounts = ppt_resources_get_role_accounts($user, $countries);\n } else {\n $accounts = $data['accounts'];\n }\n if (!is_array($accounts)) {\n $accounts = [$accounts];\n }\n\n $reps = array();\n if (isset($data['reps']) && !empty($data['reps'])) {\n $reps = $data['reps'];\n }\n\n if (empty($reps)) {\n $query = new EntityFieldQuery();\n $query->entityCondition('entity_type', 'node')\n ->entityCondition('bundle', 'account')\n ->propertyCondition('nid', $accounts, 'IN')\n ->addMetaData('account', user_load(1));\n\n $accounts = $query->execute();\n if (!isset($accounts['node'])) {\n return array();\n }\n $accounts = entity_load(\"node\", array_keys($accounts['node']));\n } else {\n $reps = entity_load(\"user\", $reps);\n\n $accounts = array();\n foreach ($reps as $rep) {\n if (isset($rep->field_account_product_date[LANGUAGE_NONE])) {\n foreach ($rep->field_account_product_date[LANGUAGE_NONE] as $item) {\n $fc = entity_load('field_collection_item', array($item['value']));\n $accountId = $fc[$item['value']]->field_account[LANGUAGE_NONE][0]['target_id'];\n if (!isset($accounts[$accountId])) {\n $accounts[$accountId] = $accountId;\n }\n }\n }\n }\n\n $accounts = entity_load(\"node\", array_keys($accounts));\n }\n\n $products = array();\n\n foreach ($accounts as $account) {\n if (isset($account->field_products[LANGUAGE_NONE])) {\n foreach ($account->field_products[LANGUAGE_NONE] as $item) {\n $parents = taxonomy_get_parents($item['target_id']);\n // This is a parent.\n if (empty($parents)) {\n $term = taxonomy_term_load($item['target_id']);\n if (!isset($products[$term->tid]) && !empty($term->tid)) {\n $products[$term->tid] = array(\n \"id\" => $term->tid,\n \"name\" => $term->name,\n \"terms\" => array(),\n );\n }\n $children = taxonomy_get_children($item['target_id']);\n foreach ($children as $child) {\n if (!isset($products[$term->tid]['terms'][$child->tid])) {\n $products[$term->tid]['terms'][$child->tid] = array(\"id\" => $child->tid, \"name\" => $child->name);\n }\n }\n }\n // This is a child.\n else {\n foreach ($parents as $key => $parent) {\n if (!isset($products[$key])) {\n $products[$key] = array(\n \"id\" => $parent->tid,\n \"name\" => $parent->name,\n \"terms\" => array(),\n );\n }\n $term = taxonomy_term_load($item['target_id']);\n if (!isset($products[$key]['terms'][$term->tid])) {\n $products[$key]['terms'][$term->tid] = array(\"id\" => $term->tid, \"name\" => $term->name);\n }\n }\n }\n }\n }\n }\n return $products;\n}", "public function getVariants(): Collection\n {\n return $this->paginate([\n 'query' => 'query getVariants($cursor: String) {\n results: productVariants(first:250, after:$cursor) {\n edges {\n node {\n title\n sku\n product {\n title\n handle\n status\n publishedOnCurrentPublication\n }\n }\n }\n pageInfo {\n hasNextPage\n endCursor\n }\n }\n }'\n ])\n\n // Remove variants that are missing a sku\n ->filter(function($variant) {\n return !empty($variant['sku']);\n })\n\n // Remove variants that weren't published to the Sales Channel of the\n // Custom App whose credentials are being used to query the API. This\n // can be used to filter out products not intended for the public store,\n // like wholesale only products.\n ->when(!$this->disablePublishedCheck, function($variants) {\n return $variants->filter(function($variant) {\n return $variant['product']['publishedOnCurrentPublication'];\n });\n })\n\n // Dedupe by SKU, prefering active variants. Shopify allows you to\n // re-use SKUs between multiple product variants but this is used in\n // Feed Me as the unique identifier for importing.\n ->reduce(function($variants, $variant) {\n\n // Check if this variant has already been added\n $existingIndex = $variants->search(\n function($existing) use ($variant) {\n return $existing['sku'] == $variant['sku'];\n }\n );\n\n // If this sku is already in the list, replace it if the previous\n // instance was not an active product\n // https://shopify.dev/api/admin-graphql/2022-04/enums/ProductStatus\n if ($existingIndex !== false) {\n $existing = $variants->get($existingIndex);\n if ($existing['product']['status'] != 'ACTIVE') {\n $variants = $variants->replace([\n $existingIndex => $variant\n ]);\n }\n\n // ... else the variant didn't exist, so add it\n } else $variants->push($variant);\n\n // Keep working...\n return $variants;\n }, new Collection)\n\n // Make a title that is more useful for displaying in the CMS.\n ->map(function($variant) {\n $variant['dashboardTitle'] = $variant['product']['title']\n .' - '.$variant['title']\n .(($sku = $variant['sku']) ? ' ('.$sku.')' : null);\n return $variant;\n })\n\n // Remove fields that we're used to pre-filter\n ->map(function($variant) {\n unset(\n $variant['product']['status'],\n $variant['product']['publishedOnCurrentPublication']\n );\n return $variant;\n })\n\n // Use integer keys\n ->values();\n }", "public function getProductOptions($pId)\n\t{\n\t\t// Get all SKUs' options and option groups\n\t\t$sql = \"\tSELECT\n\t\t\t\t\ts.`sId` AS skuId,\n\t\t\t\t\tso.`oId` AS skusOptionId,\n\t\t\t\t\ts.`sPrice`,\n\t\t\t\t\ts.`sAllowMultiple`,\n\t\t\t\t\ts.`sInventory`,\n\t\t\t\t\ts.`sTrackInventory`,\n\t\t\t\t\ts.`sRestricted`,\n\t\t\t\t\tog.`ogId`,\n\t\t\t\t\t`oName`,\n\t\t\t\t\t`ogName`\";\n\t\tif ($this->userScope)\n\t\t{\n\t\t\t$sql .= \" \t, pr.`uId`\";\n\t\t}\n\t\t$sql .= \"\tFROM `#__storefront_skus` s\n\t\t\t\t\tLEFT JOIN `#__storefront_sku_options` so ON s.`sId` = so.`sId`\n\t\t\t\t\tLEFT JOIN `#__storefront_options` o ON so.`oId` = o.`oId`\n\t\t\t\t\tLEFT JOIN `#__storefront_option_groups` og ON o.`ogId` = og.`ogId`\";\n\n\t\t// check user scope if needed\n\t\tif ($this->userScope)\n\t\t{\n\t\t\t$sql .= \" LEFT JOIN #__storefront_permissions pr ON (pr.`scope_id` = s.sId AND pr.scope = 'sku' AND pr.uId = '{$this->userScope}')\";\n\t\t}\n\n\t\t$sql .= \"\tWHERE s.`pId` = {$pId} AND s.`sActive` = 1\";\n\t\t$sql .= \" \tAND (s.`publish_up` IS NULL OR s.`publish_up` <= NOW())\";\n\t\t$sql .= \" \tAND (s.`publish_down` IS NULL OR s.`publish_down` = '0000-00-00 00:00:00' OR s.`publish_down` > NOW())\";\n\t\t$sql .= \"\tORDER BY og.`ogId`, o.`oId`\";\n\n\t\t$this->_db->setQuery($sql);\n\t\t$this->_db->query();\n\n\t\t// check some values to figure out what to return\n\t\t$returnObject = new \\stdClass();\n\t\t$returnObject->status = 'ok';\n\n\t\tif (!$this->_db->getNumRows())\n\t\t{\n\t\t\t$returnObject->status = 'error';\n\t\t\t$returnObject->msg = 'not found';\n\t\t\treturn $returnObject;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$results = $this->_db->loadObjectList();\n\t\t\t$res = $results;\n\n\t\t\t// Go through each SKU and do the checks to determine what needs to be returned\n\t\t\t// default value\n\t\t\t$permissionsRestricted = false;\n\n\t\t\trequire_once dirname(__DIR__) . DS . 'admin' . DS . 'helpers' . DS . 'restrictions.php';\n\n\t\t\tforeach ($res as $k => $line)\n\t\t\t{\n\t\t\t\t// see if the user is whitelisted for this SKU\n\t\t\t\t$skuWhitelisted = false;\n\t\t\t\tif ($this->userWhitelistedSkus && in_array($line->skuId, $this->userWhitelistedSkus))\n\t\t\t\t{\n\t\t\t\t\t$skuWhitelisted = true;\n\t\t\t\t}\n\n\t\t\t\tif (!$skuWhitelisted && $line->sRestricted && (!$this->userScope || $line->uId != $this->userScope))\n\t\t\t\t{\n\t\t\t\t\t// Sku is restricted and not available\n\t\t\t\t\t$permissionsRestricted = true;\n\t\t\t\t\t// remove it\n\t\t\t\t\tunset($res[$k]);\n\n\t\t\t\t}\n\t\t\t\telseif ($this->userCannotAccessProduct && !$skuWhitelisted)\n\t\t\t\t{\n\t\t\t\t\t// Sku is restricted and not available\n\t\t\t\t\t$permissionsRestricted = true;\n\t\t\t\t\t// remove it\n\t\t\t\t\tunset($res[$k]);\n\t\t\t\t}\n\n\t\t\t\tif ($line->sTrackInventory && $line->sInventory < 1)\n\t\t\t\t{\n\t\t\t\t\t// remove it\n\t\t\t\t\tunset($res[$k]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (count($res) < 1)\n\t\t\t{\n\t\t\t\t$returnObject->status = 'error';\n\t\t\t\t$returnObject->msg = 'out of stock';\n\t\t\t\t// If at least one SKU is restricted, we cannot return 'out of stock'\n\t\t\t\tif ($permissionsRestricted)\n\t\t\t\t{\n\t\t\t\t\t$returnObject->msg = 'restricted';\n\t\t\t\t}\n\t\t\t\treturn $returnObject;\n\t\t\t}\n\t\t}\n\n\t\t// Initialize array for option groups\n\t\t$options = array();\n\t\t// Array for SKUs\n\t\t$skus = array();\n\n\t\t// Parse result and populate $options with option groups and corresponding options\n\t\t$currentOgId = false;\n\t\tforeach ($res as $line)\n\t\t{\n\t\t\t// Populate options\n\t\t\tif ($line->ogId)\n\t\t\t{\n\t\t\t\t// Keep track of option groups and do not do anything if no options\n\t\t\t\tif ($currentOgId != $line->ogId)\n\t\t\t\t{\n\t\t\t\t\t$currentOgId = $line->ogId;\n\n\t\t\t\t\t$ogInfo = new \\stdClass();\n\t\t\t\t\t$ogInfo->ogId = $line->ogId;\n\t\t\t\t\t$ogInfo->ogName = $line->ogName;\n\n\t\t\t\t\t$options[$currentOgId]['info'] = $ogInfo;\n\t\t\t\t\tunset($ogInfo);\n\t\t\t\t}\n\n\t\t\t\t$oInfo = new \\stdClass();\n\t\t\t\t$oInfo->oId = $line->skusOptionId;\n\t\t\t\t$oInfo->oName = $line->oName;\n\t\t\t\t$options[$currentOgId]['options'][$line->skusOptionId] = $oInfo;\n\t\t\t\tunset($oInfo);\n\t\t\t}\n\n\t\t\t// populate SKUs for JS\n\t\t\t$skusInfo = new \\stdClass();\n\t\t\t$skusInfo->sId = $line->skuId;\n\t\t\t$skusInfo->sPrice = $line->sPrice;\n\t\t\t$skusInfo->sAllowMultiple = $line->sAllowMultiple;\n\t\t\t$skusInfo->sTrackInventory = $line->sTrackInventory;\n\t\t\t$skusInfo->sInventory = $line->sInventory;\n\n\t\t\t$skus[$line->skuId]['info'] = $skusInfo;\n\t\t\t$skus[$line->skuId]['options'][] = $line->skusOptionId;\n\t\t\tunset($skusInfo);\n\n\t\t}\n\n\t\t$ret = new \\stdClass();\n\t\t$ret->options = $options;\n\t\t$ret->skus = $skus;\n\n\t\t$returnObject->options = $ret;\n\t\treturn $returnObject;\n\t}", "public function findVariantStockByVariantPriority(ProductVariant $productVariant): array\n {\n try {\n $maxPriority = (int) $this->queryMaxPriorityWithinVariant($productVariant)->getSingleScalarResult();\n } catch (NoResultException $exception) {\n $maxPriority = 0;\n }\n\n return $this\n ->queryVariantStockByPriority($productVariant, $maxPriority)\n ->getSingleResult();\n }", "function basel_get_compared_products_data() {\n\t\t$ids = basel_get_compared_products();\n\n\t\tif ( empty( $ids ) ) {\n\t\t\treturn array();\n\t\t}\n\n\t\t$args = array(\n\t\t\t'include' => $ids,\n\t\t\t'limit' => 100,\n\t\t);\n\n\t\t$products = wc_get_products( $args );\n\n\t\t$products_data = array();\n\n\t\t$fields = basel_get_compare_fields();\n\n\t\t$fields = array_filter(\n\t\t\t$fields,\n\t\t\tfunction( $field ) {\n\t\t\t\treturn 'pa_' === substr( $field, 0, 3 );\n\t\t\t},\n\t\t\tARRAY_FILTER_USE_KEY\n\t\t);\n\n\t\t$divider = '-';\n\n\t\tforeach ( $products as $product ) {\n\t\t\t$rating_count = $product->get_rating_count();\n\t\t\t$average = $product->get_average_rating();\n\n\t\t\t$products_data[ $product->get_id() ] = array(\n\t\t\t\t'basic' => array(\n\t\t\t\t\t'title' => $product->get_title() ? $product->get_title() : $divider,\n\t\t\t\t\t'image' => $product->get_image() ? $product->get_image() : $divider,\n\t\t\t\t\t'rating' => wc_get_rating_html( $average, $rating_count ),\n\t\t\t\t\t'price' => $product->get_price_html() ? $product->get_price_html() : $divider,\n\t\t\t\t\t'add_to_cart' => basel_compare_add_to_cart_html( $product ) ? basel_compare_add_to_cart_html( $product ) : $divider,\n\t\t\t\t),\n\t\t\t\t'id' => $product->get_id(),\n\t\t\t\t'image_id' => $product->get_image_id(),\n\t\t\t\t'permalink' => $product->get_permalink(),\n\t\t\t\t'dimensions' => wc_format_dimensions( $product->get_dimensions( false ) ),\n\t\t\t\t'description' => $product->get_short_description() ? $product->get_short_description() : $divider,\n\t\t\t\t'weight' => $product->get_weight() ? $product->get_weight() : $divider,\n\t\t\t\t'sku' => $product->get_sku() ? $product->get_sku() : $divider,\n\t\t\t\t'availability' => basel_compare_availability_html( $product ),\n\t\t\t);\n\n\t\t\tforeach ( $fields as $field_id => $field_name ) {\n\t\t\t\tif ( taxonomy_exists( $field_id ) ) {\n\t\t\t\t\t$products_data[ $product->get_id() ][ $field_id ] = array();\n\t\t\t\t\t$orderby = wc_attribute_orderby( $field_id ) ? wc_attribute_orderby( $field_id ) : 'name';\n\t\t\t\t\t$terms = wp_get_post_terms( $product->get_id(), $field_id, array(\n\t\t\t\t\t\t'orderby' => $orderby\n\t\t\t\t\t) );\n\t\t\t\t\tif ( ! empty( $terms ) ) {\n\t\t\t\t\t\tforeach ( $terms as $term ) {\n\t\t\t\t\t\t\t$term = sanitize_term( $term, $field_id );\n\t\t\t\t\t\t\t$products_data[ $product->get_id() ][ $field_id ][] = $term->name;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$products_data[ $product->get_id() ][ $field_id ][] = '-';\n\t\t\t\t\t}\n\t\t\t\t\t$products_data[ $product->get_id() ][ $field_id ] = implode( ', ', $products_data[ $product->get_id() ][ $field_id ] );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn $products_data;\n\t}", "function query() {\n $q = new EntityFieldQuery();\n $q->entityCondition('entity_type', 'commerce_product');\n $q->fieldCondition($this->options['flag_field'], 'value', 1);\n $results = $q->execute();\n\n $product_ids = array();\n foreach (reset($results) as $product) {\n $product_ids[] = (int)$product->product_id;\n }\n // Get the allowed products from the current user.\n $user_product_ids = array();\n $user = user_load($GLOBALS['user']->uid);\n if ($user->uid > 0) {\n // Fetch the ids from the current user.\n $products = field_get_items('user', $user, $this->options['user_authorized_products_field']);\n foreach ($products as $product) {\n $user_product_ids[] = (int)$product['target_id'];\n }\n }\n $exclude_ids = array_diff($product_ids, $user_product_ids);\n if (count($exclude_ids) > 0) {\n $this->query->add_where(2, $this->options['node_products_table'] . '.' . $this->options['node_products_column'], $exclude_ids, 'NOT IN');\n }\n }", "function ppt_resources_get_delivered_planned_orders($data)\n{\n global $user;\n $months = array(\n \"01\" => 'December',\n \"02\" => 'January',\n \"03\" => 'February',\n \"04\" => 'March',\n \"05\" => 'April',\n \"06\" => 'May',\n \"07\" => 'June',\n \"08\" => 'July',\n \"09\" => 'August',\n \"10\" => 'September',\n \"11\" => 'October',\n \"12\" => 'November',\n );\n\n if (!isset($data['year'])) {\n return services_error('Year is not defined!', 500);\n }\n\n if (empty($data['accounts'])) {\n return services_error('Accounts is not defined!', 500);\n }\n\n if (empty($data['products'])) {\n return services_error('Products is not defined!', 500);\n }\n\n $year = $data['year'];\n $accounts = $data['accounts'];\n $products = $data['products'];\n $dates = get_year_dates($year);\n $start_date = $dates['start_date'];\n $end_date = $dates['end_date'];\n\n $query = new EntityFieldQuery();\n $query->entityCondition('entity_type', 'node')\n ->entityCondition('bundle', 'planned_order')\n ->fieldCondition('field_planned_account', 'target_id', $accounts, 'IN')\n ->fieldCondition('field_planned_product', 'target_id', $products, 'IN')\n ->fieldCondition('field_planned_actual_period', 'value', $start_date, '>=')\n ->fieldCondition('field_planned_actual_period', 'value', $end_date, '<=')\n ->addMetaData('account', user_load(1));\n\n $records = $query->execute();\n $final_arr = [];\n\n if (isset($records['node'])) {\n $nodes_ids = array_keys($records['node']);\n $nodes = node_load_multiple($nodes_ids);\n\n foreach ($nodes as $node) {\n // Get node planned product name.\n $planned_product_tid = $node->field_planned_product['und'][0]['target_id'];\n $planned_product = taxonomy_term_load($planned_product_tid);\n $planned_product_name = $planned_product->name;\n\n // Get node date for product (planned).\n if (isset($node->field_planned_actual_period['und'])) {\n $node_date = $node->field_planned_actual_period['und'][0]['value'];\n $delivered_month = date(\"F\", strtotime($node_date));\n }\n\n // Get node values for planned quantity.\n $delivered_quantity = 0;\n if (isset($node->field_planned_delivered_quantity['und'])) {\n $delivered_quantity = $node->field_planned_delivered_quantity['und'][0]['value'];\n }\n\n // If product already exists, update its values for node months.\n if (isset($final_arr['delivered'][$planned_product_name])) {\n if (isset($final_arr['delivered'][$planned_product_name][$delivered_month])) {\n $final_arr['delivered'][$planned_product_name][$delivered_month][0] += (int) $delivered_quantity;\n } else {\n $final_arr['delivered'][$planned_product_name][$delivered_month][0] = [(int) $delivered_quantity];\n }\n } else {\n // Initialze product array with 0 for all months, then update it with current node data.\n $final_arr['delivered'][$planned_product_name] = [];\n for ($i = 1; $i <= 12; $i++) {\n $month = $months[sprintf('%02d', $i)];\n $final_arr['delivered'][$planned_product_name][$month] = [0];\n }\n $final_arr['delivered'][$planned_product_name][$delivered_month] = [(int) $delivered_quantity];\n }\n }\n }\n return $final_arr;\n}", "public static function getVariants($_pID) {\n global $lC_Database, $lC_Language;\n \n $Qvariant = $lC_Database->query('select pvg.id as group_id, pvg.title as group_title, pvg.module, pvv.id as value_id, pvv.title as value_title from :table_products_variants pv, :table_products_variants_values pvv, :table_products_variants_groups pvg where pv.products_id = :products_id and pv.products_variants_values_id = pvv.id and pvv.languages_id = :languages_id and pvv.products_variants_groups_id = pvg.id and pvg.languages_id = :languages_id');\n $Qvariant->bindTable(':table_products_variants', TABLE_PRODUCTS_VARIANTS);\n $Qvariant->bindTable(':table_products_variants_values', TABLE_PRODUCTS_VARIANTS_VALUES);\n $Qvariant->bindTable(':table_products_variants_groups', TABLE_PRODUCTS_VARIANTS_GROUPS);\n $Qvariant->bindInt(':products_id', $_pID);\n $Qvariant->bindInt(':languages_id', $lC_Language->getID());\n $Qvariant->bindInt(':languages_id', $lC_Language->getID());\n $Qvariant->execute();\n \n if ( $Qvariant->numberOfRows() > 0 ) {\n while ( $Qvariant->next() ) {\n $variants_array[] = array('group_id' => $Qvariant->valueInt('group_id'),\n 'value_id' => $Qvariant->valueInt('value_id'),\n 'group_title' => $Qvariant->value('group_title'),\n 'value_title' => $Qvariant->value('value_title'));\n }\n }\n \n $vArray = $variants_array;\n\n $Qvariant->freeResult();\n \n return $vArray;\n }", "public function build_product_variations_selector($_class, $_active = \"\", $_prod_id = 0) { error_log(\"Active : \". $_active); \t\r\n \t$html = \"\";\r\n \t// for variation product list\r\n \t$ptypes = wcff()->dao->load_variable_products();\r\n \t\r\n \tif ($_prod_id == 0 && $_active != \"\") {\r\n \t /* Find out the parent product id */\r\n \t $variable_product = wc_get_product(absint($_active));\r\n \t $_prod_id = $variable_product->get_parent_id();\r\n \t}\r\n \t\r\n \t$html .= '<select class=\"variation_product_list\">';\r\n \t$html .= '<option value=\"0\">'. __(\"All Products\", \"wc-fields-factory\") .'</option>';\r\n \tif (count($ptypes) > 0) {\r\n \t\tforeach ($ptypes as $ptype) {\r\n \t\t\t$selected = ($ptype[\"id\"] == $_prod_id) ? 'selected=\"selected\"' : '';\r\n \t\t\t$html .= '<option value=\"' . esc_attr($ptype[\"id\"]) . '\" ' . $selected . '>' . esc_html($ptype[\"title\"]) . '</option>';\r\n \t\t}\r\n \t}\r\n \t$html .= '</select>';\r\n \t// for variation list\r\n \t$ptypes = wcff()->dao->load_product_variations($_prod_id);\r\n \t$html .= '<select class=\"' . esc_attr($_class) . ' select\">';\r\n \t$html .= '<option value=\"-1\">'. __(\"All Variations\", \"wc-fields-factory\") .'</option>';\r\n \tif (count($ptypes) > 0) {\r\n \t\tforeach ($ptypes as $ptype) {\r\n \t\t\t$selected = ($ptype[\"id\"] == $_active) ? 'selected=\"selected\"' : '';\r\n \t\t\t$html .= '<option value=\"' . esc_attr($ptype[\"id\"]) . '\" ' . $selected . '>' . esc_html($ptype[\"title\"]) . '</option>';\r\n \t\t}\r\n \t}\r\n \t$html .= '</select>';\r\n \treturn $html;\r\n }", "function getProdutosByOptions($option, $startwith=null, $order='titulo', $userProducts=false)\n{\n global $conn, $hashids;\n\n $whr = null;\n if (is_array($option))\n foreach ($option as $optkey=>$optval) {\n if (!empty($optval))\n $whr .= \" AND pro_{$optkey}=\\\"{$optval}\\\"\";\n }\n\n if ($userProducts===true)\n $sql = \"SELECT * FROM (\n SELECT\n upr_id,\n COALESCE(NULLIF(pro_titulo,''), upr_nomeProduto) `produto`,\n upr_valor\n FROM \".TP.\"_usuario_produto\n INNER JOIN \".TP.\"_usuario\n ON upr_usr_id=usr_id\n AND usr_status=1\n LEFT JOIN \".TP.\"_produto\n ON pro_id=upr_pro_id\n AND pro_status=1\n WHERE upr_status=1\n {$whr}\n ) as `tmp`\n GROUP BY `produto`\n ORDER BY `produto`;\";\n else\n $sql = \"SELECT * FROM (\n SELECT\n pro_id,\n COALESCE(NULLIF(pro_titulo,''), upr_nomeProduto) `produto`,\n pro_valor\n FROM \".TP.\"_produto\n WHERE pro_status=1\n {$whr}\n GROUP BY pro_id\n ) as `tmp`\n ORDER BY `produto`;\";\n\n $lst = array();\n if(!$qry = $conn->prepare($sql))\n echo divAlert($conn->error, 'error');\n\n else {\n\n $qry->execute();\n $qry->bind_result($id, $titulo, $valor);\n\n if (!empty($startwith))\n $lst[0] = array('id'=>0, 'titulo'=>$startwith);\n\n $i=1;\n while ($qry->fetch()) {\n // $lst[$i]['id'] = $id;\n $lst[$i]['id'] = mb_strtolower(urlencode($titulo), 'utf8');\n $lst[$i]['titulo'] = mb_strtoupper($titulo, 'utf8');\n $lst[$i]['valor'] = 'R$ '.Moeda($valor);\n $lst[$i]['valor_decimal'] = $valor;\n $i++;\n }\n\n $qry->close();\n\n return $lst;\n }\n\n}", "function getProducts()\n {\n $db = $this->getPearDb();\n\n // The query is big, but it does use indexes. Anyway, the involved\n // tables almost never change, so we utilize MySQL's query cache\n $sql = \"(\n # User permissions\n SELECT DISTINCT pe_u.parameterValue AS productId\n FROM user u\n JOIN permission pe_u\n ON pe_u.doerId = u.id\n AND pe_u.allowed = '1'\n AND pe_u.actionId = 6 # 6 = use_product\n WHERE u.customerId = \" . $this->id . \"\n\n ) UNION (\n\n # Customer permissions\n SELECT DISTINCT pe_c.parameterValue AS productId\n FROM permission pe_c\n WHERE pe_c.doerId = \" . $this->id . \"\n AND pe_c.allowed = '1'\n AND pe_c.actionId = 6 # 6 = use_product\n\n ) UNION (\n\n SELECT productId\n FROM site s\n WHERE s.customerId = \" . $this->id . \"\n\n ) UNION (\n\n # Kollage is always on\n SELECT 1\n\n )\";\n $productIds = $db->getCol($sql);\n $productIds = array_filter(array_unique($productIds), 'intval');\n\n $product = new Vip_Product;\n $product->columnIn('id', $productIds);\n // Customer-specific products are only enabled for that customer.\n $product->addWhereSql('customerId IN (0, ' . $this->id . ')');\n $product->setOrderBySql('sortOrder,title');\n $products = $product->findAll();\n foreach ($products as $product) {\n $product->setCustomer($this);\n }\n\n return $products;\n }", "function get_product_id_query($diffID = null, $parentID = null, $category = null) {\n global $wpdb;\n\n if( isset($_GET[\"another-make\"]) ) {\n $product_results = $wpdb->get_results(\n $wpdb->prepare(\n \"SELECT DISTINCT post_id\n FROM wp_postmeta\n WHERE meta_key = %s\n AND meta_value\n IN (SELECT ProductID FROM randys_advancedsearch WHERE DiffID = %s)\",\n array('_randy_productid', $diffID)\n )\n );\n } elseif (isset($diffID) && isset($parentID) && isset($category) ) {\n $product_results = $wpdb->get_results(\n $wpdb->prepare(\n \"SELECT post_id\n FROM wp_postmeta\n WHERE meta_key = %s\n AND meta_value\n IN (SELECT ProductID FROM randys_advancedsearch WHERE DiffID = %s AND ParentID = %d AND Category = %s )\",\n array('_randy_productid', $diffID, $parentID, $category)\n )\n );\n } elseif(isset($diffID) && !isset($parentID) && !isset($category) ) {\n $item = '';\n $value = array('_randy_productid', $diffID);\n\n if( isset($_GET['diffyear']) ) {\n $item .= 'AND startyear <= %d AND endyear >= %d ';\n array_push($value, $_GET[\"diffyear\"], $_GET[\"diffyear\"]);\n }\n\n if( isset($_GET['make']) ) {\n $item .= 'AND make = %s ';\n array_push($value, $_GET['make']);\n }\n\n if( isset($_GET['model']) ) {\n $item .= 'AND model = %s ';\n array_push($value, $_GET['model']);\n }\n\n if( isset($_GET['drivetype']) ) {\n $split_drivetype = explode(\" Diff - \", $_GET['drivetype']);\n\n $item .= 'AND drivetype = %s AND side = %s';\n array_push($value, $split_drivetype[1], $split_drivetype[0]);\n }\n\n $product_results = $wpdb->get_results($wpdb->prepare(\"SELECT DISTINCT post_id FROM wp_postmeta WHERE meta_key = %s AND meta_value IN (SELECT ProductID FROM randys_advancedsearch WHERE DiffID = %s \" . $item . \")\", $value)); // WPCS: unprepared SQL OK\n\n } else {\n $category_where = '';\n $category_data = '';\n if( isset($category) ) {\n $category_where = 'AND Category = %s';\n $category_data = $category;\n }\n $query = $wpdb->prepare(\"SELECT post_id FROM wp_postmeta WHERE meta_key = %s AND meta_value IN (SELECT ProductID FROM randys_advancedsearch WHERE DiffID = %s \" . $category_where . \" )\", array('_randy_productid', $diffID, $category_data)); // WPCS: unprepared SQL OK\n $product_results = $wpdb->get_results($query); // WPCS: unprepared SQL OK\n }\n return $product_results;\n}", "public function getProductOption();", "function ppt_resources_get_products_all($data)\n{\n $report = ppt_resources_get_products($data);\n if (!isset($data['products']) || empty($data['products'])) {\n return $report;\n }\n\n foreach ($data['products'] as $productId) {\n $children = taxonomy_get_children($productId);\n if (!empty($children)) {\n // $dosage = taxonomy_term_load($productId);\n // $report[$dosage->name] = $report[$dosage->name];.\n $product = taxonomy_term_load($productId);\n $sumDosages = array();\n $childrenIds = array_keys($children);\n $newData = $data;\n $newData['products'] = $childrenIds;\n $oneProductReport = ppt_resources_get_products($newData);\n if (!empty($oneProductReport)) {\n foreach ($oneProductReport as $dosageReport) {\n foreach ($dosageReport as $monthName => $monthReport) {\n if (isset($sumDosages[$monthName])) {\n $sumDosages[$monthName][0] += $monthReport[0];\n $sumDosages[$monthName][1] += $monthReport[1];\n $sumDosages[$monthName][2] += $monthReport[2];\n } else {\n $sumDosages[$monthName] = $monthReport;\n }\n }\n }\n\n $report[$product->name] = $sumDosages;\n }\n }\n }\n return $report;\n}", "public function productsSortedByFastest()\n {\n $products = $this->p();\n usort($products, [$this, 'sortByFastest']);\n return $products;\n }", "public function getProductTextAdv($product,$adv_type='Inline') {\n $product_id=$product->getId();\n $child_ids=array();\n if ($product->isConfigurable()){\n $associatedProducts = $product->getTypeInstance()->getConfigurableAttributesAsArray($product); \n foreach ($product->getTypeInstance()->getUsedProducts() as $childProduct) {\n $child_ids[]=$childProduct->getId();\n }\n }\n \n switch ($adv_type){\n case \"Bottom\":\n $display_zone=$this->product_bottom_advertisment_name;\n break;\n case \"Top\":\n $display_zone=$this->product_top_advertisment_name;\n break;\n case \"Inline\":\n default :\n $display_zone=$this->product_inline_advertisment_name;\n break;\n }\n\n $condition_2 = $this->_getReadAdapter()->quoteInto('bi.banner_id=b.banner_id','');\n $condition_3 = $this->_getReadAdapter()->quoteInto('bi.promotion_reference=pt.yourref', ''); // and bi.promotion_reference != \\'\\','');\n $condition_4 = $this->_getReadAdapter()->quoteInto(\"qphp.promotion_id=pt.promotion_id \",'');\n\n $where = \"b.status > 0 and \";\n $where .= \"(pt.promotion_text is null or pt.promotion_text!='' or bi.filename!='') and \";\n $where .= \"b.display_zone like '%\" . $display_zone . \"%' and \";\n $where .= \"(qphp.promotion_id is null or (\";\n if (count($child_ids))\n {\n $where .= \" ((qphp.parent_product_id='\" . (int)$product_id . \"' and \";\n $where .= \"qphp.product_id in (\" . join(\",\",$child_ids) . \")) or \";\n $where .= \"(qphp.product_id='\" . (int)$product_id.\"' and \";\n $where .= \"qphp.parent_product_id=0) )\";\n }\n else\n {\n $where .= \" qphp.product_id='\" . (int)$product_id . \"' and qphp.parent_product_id=0\";\n }\n $where .= \"))\";\n \n $select = $this->_getReadAdapter()->select()->from(array('b'=>$this->getTable('qixol/banner')))\n ->join(array('bi'=>$this->getTable('qixol/bannerimage')), $condition_2)\n ->joinLeft(array('pt'=>$this->getTable('promotions')), $condition_3)\n ->joinLeft(array('qphp'=>$this->getTable('promotionhasproduct')), $condition_4)\n ->where($where)\n ->group(array(\"bi.banner_id\",\"bi.banner_image_id\"))\n ->order('bi.sort_order')\n ->reset('columns')\n ->columns(array('bi.comment','bi.filename',\"bi.url\"));\n\n $data=$this->_getReadAdapter()->fetchAll($select);\n\n if (count($data)) return $data;\n return false;\n }", "function ppt_resources_get_planned_delivered($data)\n{\n $year = date('Y');\n $dates = get_year_dates($year);\n $start_date = $dates['start_date'];\n $end_date = $dates['end_date'];\n if (isset($data['uid'])) {\n $uid = $data['uid'];\n } else {\n global $user;\n $uid = $user->uid;\n }\n $user = user_load($uid);\n if (isset($data['countries'])) {\n $countries = $data['countries'];\n } else {\n $countries = get_user_countries($user);\n }\n // Check if user selected accounts.\n if (isset($data['accounts'])) {\n $accounts = $data['accounts'];\n } else {\n $accounts = ppt_resources_get_role_accounts($user, $countries, FALSE);\n }\n $products = [];\n // Check if user selected products.\n if (isset($data['products'])) {\n $products = $data['products'];\n } else {\n // If the user is rep.\n if (is_rep($user)) {\n $products = get_products_for_current_user($uid, FALSE, FALSE);\n } else {\n $products = get_target_products_for_accounts($accounts);\n }\n }\n\n $nodes = get_planned_orders_for_acconuts_per_year($year, $accounts);\n\n // Initialze empty months.\n $months = array(\n \"01\" => 'December',\n \"02\" => 'January',\n \"03\" => 'February',\n \"04\" => 'March',\n \"05\" => 'April',\n \"06\" => 'May',\n \"07\" => 'June',\n \"08\" => 'July',\n \"09\" => 'August',\n \"10\" => 'September',\n \"11\" => 'October',\n \"12\" => 'November',\n );\n $final_arr = [];\n if (isset($nodes)) {\n // Consider a product exists with mutiple accounts.\n foreach ($nodes as $nid => $item) {\n $node = node_load($nid);\n $planned_product_tid = $node->field_planned_product[\"und\"][0][\"target_id\"];\n if (in_array($planned_product_tid, $products)) {\n $planned_product = taxonomy_term_load($planned_product_tid);\n $planned_product_name = $planned_product->name;\n // Get node values for product (planned and delivered).\n if (isset($node->field_planned_period[\"und\"])) {\n $node_date = $node->field_planned_period[\"und\"][0]['value'];\n $planned_month = date(\"F\", strtotime($node_date));\n }\n $planned_quantity = 0;\n if (isset($node->field_planned_quantity[\"und\"])) {\n $planned_quantity = $node->field_planned_quantity[\"und\"][0][\"value\"];\n }\n if (isset($node->field_planned_actual_period[\"und\"])) {\n $node_date = $node->field_planned_actual_period[\"und\"][0]['value'];\n $delivery_month = date(\"F\", strtotime($node_date));\n }\n $delivered_quantity = 0;\n if (isset($node->field_planned_delivered_quantity[\"und\"])) {\n $delivered_quantity = $node->field_planned_delivered_quantity[\"und\"][0][\"value\"];\n }\n // If product already exists, update its values for node months.\n if (isset($final_arr[$planned_product_name])) {\n if (isset($final_arr[$planned_product_name][\"Planned\"][$planned_month])) {\n $final_arr[$planned_product_name][\"Planned\"][$planned_month][0] += (int) $planned_quantity;\n } else {\n $final_arr[$planned_product_name][\"Planned\"][$planned_month][0] = [(int) $planned_quantity];\n }\n if (isset($final_arr[$planned_product_name][\"Actual\"][$delivery_month])) {\n $final_arr[$planned_product_name][\"Actual\"][$delivery_month][0] += (int) $delivered_quantity;\n } else {\n $final_arr[$planned_product_name][\"Actual\"][$delivery_month] = [(int) $delivered_quantity];\n }\n } else {\n // Initialze product array with 0 for all months, then update it with current node data.\n $final_arr[$planned_product_name] = [\"Actual\" => [], \"Planned\" => []];\n for ($i = 1; $i <= 12; $i++) {\n $month = $months[sprintf('%02d', $i)];\n $final_arr[$planned_product_name][\"Actual\"][$month] = [0];\n $final_arr[$planned_product_name][\"Planned\"][$month] = [0];\n }\n $final_arr[$planned_product_name][\"Actual\"][$delivery_month] = [(int) $delivered_quantity];\n $final_arr[$planned_product_name][\"Planned\"][$planned_month] = [(int) $planned_quantity];\n }\n }\n }\n }\n // [product => [actual => [months], target => [months]]]\n return $final_arr;\n}", "public function index(Request $request) {\n\n $variantArr = Variant::join('product_variants', 'product_variants.variant_id', 'variants.id')\n ->select('variants.title', 'product_variants.variant', 'variants.id')\n ->distinct('product_variants.variant')\n ->get();\n\n $variantListArr = array();\n foreach ($variantArr as $variant) {\n $variantListArr[$variant->id][] = $variant->variant;\n }\n\n $variantNameArr = Variant::pluck('title', 'id')->toArray();\n\n\n $varianPIdArr = $rangePIdArr = [];\n if (!empty($request->variant_id)) {\n $varianPIdArr = ProductVariant::where('variant', $request->variant_id)->pluck('product_id', 'id')->toArray();\n }\n if (!empty($request->price_from) && !empty($request->price_to)) {\n $rangePIdArr = ProductVariantPrice::whereBetween('price', [$request->price_from, $request->price_to])\n ->pluck('product_id')->toArray();\n }\n\n\n // get product Query \n $targetArr = Product::select('products.*');\n $targetArr = $targetArr->with(['ProductVariantPrice' => function($q) use($request, $varianPIdArr) {\n $q->join('products', 'products.id', 'product_variant_prices.product_id');\n $q->leftJoin('product_variants as one', 'one.id', 'product_variant_prices.product_variant_one');\n $q->leftJoin('product_variants as two', 'two.id', 'product_variant_prices.product_variant_two');\n $q->leftJoin('product_variants as three', 'three.id', 'product_variant_prices.product_variant_three');\n\n if (!empty($request->from) && !empty($request->to)) {\n $q = $q->whereBetween('product_variant_prices.price', [$request->from, $request->to]);\n }\n if (!empty($varianPIdArr)) {\n $q = $q->where(function ($query) use ($request, $varianPIdArr) {\n $query->whereIn('product_variant_prices.product_variant_one', array_keys($varianPIdArr));\n $query->orWhereIn('product_variant_prices.product_variant_two', array_keys($varianPIdArr));\n $query->orWhereIn('product_variant_prices.product_variant_three', array_keys($varianPIdArr));\n });\n }\n\n $q = $q->select('product_variant_prices.*', 'one.variant as one_variant', 'two.variant as two_variant'\n , 'three.variant as three_variant');\n }\n ]);\n\n // end Product Query \n // get vaiant wise query \n if (!empty($request->variant_id)) {\n $targetArr = $targetArr->whereIn('products.id', $varianPIdArr);\n }\n // end variant wise query \n if (!empty($request->price_from) && !empty($request->price_to)) {\n $targetArr = $targetArr->whereIn('products.id', $rangePIdArr);\n }\n\n $searchText = $request->title;\n if (!empty($searchText)) {\n $targetArr = $targetArr->where(function ($query) use ($searchText) {\n $query->where('products.title', 'LIKE', '%' . $searchText . '%');\n });\n }\n\n if (!empty($request->date)) {\n $targetArr = $targetArr->whereDate('products.created_at', '=', $request->date);\n }\n\n\n\n $targetArr = $targetArr->paginate(3);\n\n// $targetArr = $targetArr->get();\n// echo '<pre>';\n// print_r($targetArr->toArray());\n// exit;\n\n return view('products.index', compact('targetArr', 'variantListArr', 'variantNameArr'));\n }", "public function prod($prod);", "public static function select_products_by_options($data)\n {\n \n $query = new Query;\n $products = $query->select(['core_products.*','core_product_images.*'])\n ->from('core_products')\n ->innerJoin('core_product_images', 'core_product_images.product_id=core_products.product_id');\n \n \n //if product type is set i.e., hire, sale or both\n if(isset($_REQUEST['product_type']) && @$_REQUEST['product_type'] != '')\n {\n if($_REQUEST['product_type'] != '')\n {\n $product_type= $_REQUEST['product_type'];\n if($product_type == 'hire') \n $products = $products->where(['core_products.product_type' => [0,2]]);\n else if($product_type == 'sale') \n $products = $products->where(['core_products.product_type' => [1,2]]);\n else if($product_type == 'both') \n $products = $products->where(['core_products.product_type' => [2]]);\n }\n \n }\n //default product type is hire if product type not set to anything\n else\n {\n \n $products = $products->where(\"core_products.product_type = 0\");\n }\n //if user selects the category\n if(isset($_REQUEST['category']))\n {\n \n if($_REQUEST['category'] != '')\n {\n $category_id = $_REQUEST['category'];\n $products = $products->andWhere(\"core_products.category_id = $category_id\");\n }\n }\n //if user selects sub category\n if(isset($_REQUEST['sub_category_id']) && @$_REQUEST['sub_category_id'] != '')\n {\n \n if($_REQUEST['sub_category_id'] != '')\n {\n $sub_category_id = $_REQUEST['sub_category_id'];\n $products = $products->andWhere(\"core_products.sub_category_id = $sub_category_id\");\n }\n }\n //if user sets current location\n if(@$_REQUEST['current_location'] != '')\n {\n \n $products = $products->andFilterWhere(['LIKE', 'core_products.current_location', $_REQUEST['current_location']]);\n }\n //if user sets price type\n if(@$_REQUEST['price_type'] != '')\n {\n $price_type =$_REQUEST['price_type'];\n $products = $products->andWhere(\"core_products.price_type = $price_type\");\n }\n //if user sets capacity range\n if(@$_REQUEST['capacity'] != '')\n {\n \n $capacity =$_REQUEST['capacity'];\n //if user selects between\n if (strpos($capacity, 'and') !== false) {\n $products = $products->andWhere(\"rtrim(substring_index(core_products.capacity, ' ', 1)) between $capacity\");\n }\n //if user selects morethan\n else if (strpos($capacity, '>') !== false) {\n $products = $products->andWhere(\"rtrim(substring_index(core_products.capacity, ' ', 1)) $capacity\");\n }\n }\n \n $products = $products->orderBy([\"core_products.product_id\" => SORT_DESC])\n ->andWhere(\"core_products.product_status = 1\")\n ->andWhere(['>=','core_products.product_expires_on',date(\"Y-m-d H:i:s\")])\n ->groupBy(['core_products.product_id'])\n ->all();\n return $products;\n }", "public function getMatchingProduct($request);", "function relatedProductsSearch($product_type_id, $product_id)\n\t\t\t\t{\n\t\t\t\t$sql= 'SELECT product. *\n\t\t\t\tFROM product\n\t\t\t\tWHERE product.product_type_id = '.$product_type_id.'\n\t\t\t\tAND product.product_id != '.$product_id.'\n\t\t\t\tORDER BY product.product_id DESC';\n\t\t\t\t\n\t\t\t\t$Q = $this-> db-> query($sql);\n\t\t\t\tforeach ($Q-> result_array() as $row){\n\t\t\t\t}\n\t\t\t\treturn $Q;\n\t\t\t\t}", "public function variants()\n {\n return $this->hasMany(Variant::class, 'product_id', 'id');\n }", "function insertOrdersProductPreProc(&$params, &$reference) {\n\n error_log(\"insertOrdersProductPreProc - begin\");\n\n $order_id = $params['insertArray']['orders_id'];\n $cart_product_item = $params['value'];\n $product_id = $cart_product_item['products_id'];\n $variant_id = $cart_product_item['variant_id'];\n\n\n // Get variant's details from the db\n $qry_res = $GLOBALS['TYPO3_DB']->exec_SELECTquery(\n 'v.variant_price, v.variant_sku',\n 'tx_msvariants_domain_model_variants v',\n 'v.variant_id='.$variant_id.' and v.product_id='.$product_id\n );\n\n if ($GLOBALS['TYPO3_DB']->sql_num_rows($qry_res) != 1) {\n // TODO this should never happen - raise exception?\n return;\n }\n\n $variant_data = $GLOBALS ['TYPO3_DB']->sql_fetch_assoc($qry_res);\n\n // Insert variant details about the order into the db\n $insert_array = array(\n 'order_id' => $order_id,\n 'product_id' => $product_id,\n 'variant_id' => $variant_id,\n 'price' => $variant_data['variant_price'],\n 'quantity' => $cart_product_item['qty'],\n 'sku' => $variant_data['variant_sku']\n );\n\n // TODO should we insert here the following logic:\n // - check if after the order the variants gets out of stock\n // - if such is the case, notify adming about this event\n // - and disable product variant! (ohh... that's new - we should do this in product detail script)\n $this->updateQtyInVariant($variant_id, $cart_product_item['qty']);\n\n $res = $GLOBALS['TYPO3_DB']->exec_INSERTquery(\n 'tx_msvariants_domain_model_variantsorders', $insert_array\n );\n\n // Insert variant attributes details about the order into the db\n $qry_res = $GLOBALS['TYPO3_DB']->exec_SELECTquery(\n 'va.attribute_id, va.option_id, va.option_value_id',\n 'tx_msvariants_domain_model_variantsattributes va',\n 'va.variant_id='.$variant_id.' and va.product_id='.$product_id\n );\n\n if ($GLOBALS['TYPO3_DB']->sql_num_rows($qry_res) <= 0) {\n // TODO this should never happen - raise exception?\n return;\n }\n\n while (($row = $GLOBALS ['TYPO3_DB']->sql_fetch_assoc($qry_res)) != false) {\n\n $row['option_name'] = mslib_fe::getRealNameOptions($row['option_id']);\n $row['option_value_name'] = mslib_fe::getNameOptions($row['option_value_id']);\n\n $insert_array = array(\n 'order_id' => $order_id,\n 'product_id' => $product_id,\n 'variant_id' => $variant_id,\n 'attribute_id' => $row['attribute_id'],\n 'option_id' => $row['option_id'],\n 'option_value_id' => $row['option_value_id'],\n 'option_name' => $row['option_name'],\n 'option_value_name' => $row['option_value_name']\n );\n\n $res = $GLOBALS['TYPO3_DB']->exec_INSERTquery(\n 'tx_msvariants_domain_model_variantsattributesorders', $insert_array\n );\n\n } // while\n\n error_log(\"insertOrdersProductPreProc - end\");\n\n\n }", "abstract protected function getExistingVendorProduct(int $vendorProductId);", "public function getSimilarProducts($productId, $categoryId, $language, $userTypeId)\n {\n return Product::with([\n 'images' => function ($query) {\n $query->orderByRaw('priority desc');\n },\n 'color' => function ($query) use ($language) {\n $query->select([\n 'colors.id',\n \"colors.name_$language as name\",\n 'colors.slug',\n 'colors.html_code'\n ]);\n },\n 'product_group.products.color' => function ($query) use ($language) {\n $query->select([\n 'id',\n \"name_$language as name\",\n 'slug',\n 'html_code'\n ]);\n },\n 'sizes' => function ($query) use ($language) {\n $query->select([\n 'sizes.id',\n \"sizes.name_$language as name\",\n 'sizes.slug',\n 'sizes.priority'\n ])->orderByRaw('sizes.priority desc');\n },\n 'price' => function ($query) use ($language, $userTypeId) {\n $query->select([\n 'product_prices.id',\n 'product_prices.product_id',\n 'product_prices.user_type_id',\n 'product_prices.price',\n 'product_prices.old_price',\n 'product_prices.discount'\n ])->whereUserTypeId($userTypeId);\n },\n 'product_sizes.stocks' => function ($query) use ($userTypeId) {\n $query->whereUserTypeId($userTypeId);\n },\n 'promotions' => function ($query) {\n $query->orderByRaw('promotions.priority desc');\n },\n 'properties' => function ($query) use ($language) {\n $query->select([\n 'properties.id',\n 'properties.product_id',\n 'properties.property_name_id',\n 'properties.property_value_id',\n 'properties.priority',\n 'property_names.id',\n 'property_values.id',\n 'property_names.slug',\n \"property_names.name_$language as property_name\",\n \"property_values.name_$language as property_value\",\n ]);\n $query->join('property_names', function ($join) {\n $join->on('properties.property_name_id', '=', 'property_names.id');\n });\n $query->join('property_values', function ($join) {\n $join->on('properties.property_value_id', '=', 'property_values.id');\n });\n }\n ])\n ->whereHas('price')\n ->whereCategoryId($categoryId)\n ->whereIsVisible(true)\n ->whereNotIn('id', [$productId])\n ->limit(8)\n ->get([\n 'products.id',\n \"name_$language as name\",\n 'slug',\n 'color_id',\n 'group_id',\n 'category_id',\n 'breadcrumb_category_id',\n \"description_$language as description\",\n 'products.priority',\n 'vendor_code',\n 'rating',\n 'number_of_views',\n 'products.created_at'\n ]);\n }", "function sfgov_utilities_deploy_10_dept_part_of() {\n try {\n $deptNodes = Utility::getNodes('department');\n\n foreach($deptNodes as $dept) {\n $deptId = $dept->id();\n\n // get part of values\n $partOf = $dept->get('field_parent_department')->getValue();\n\n if (!empty($partOf)) {\n $partOfRefId = $partOf[0]['target_id'];\n $langcode = $dept->get('langcode')->value;\n\n // load tagged parent\n $parentDept = Node::load($partOfRefId);\n\n if ($parentDept->hasTranslation($langcode)) { // check translation\n $parentDeptTranslation = $parentDept->getTranslation($langcode);\n $parentDivisions = $parentDeptTranslation->get('field_divisions')->getValue();\n\n // check that this dept isn't already added as a division on the parent dept\n $found = false;\n foreach ($parentDivisions as $parentDivision) {\n if ($deptId == $parentDivision[\"target_id\"]) {\n $found = true;\n break;\n }\n }\n \n if ($found == false) {\n $parentDivisions[] = [\n 'target_id' => $deptId\n ];\n $parentDeptTranslation->set('field_divisions', $parentDivisions);\n $parentDeptTranslation->save();\n }\n }\n }\n }\n } catch (\\Exception $e) {\n error_log($e->getMessage());\n }\n}", "public static function getProductOptions()\n {\n return self::get('product') ?: [];\n }", "private function processProductDelivery()\n {\n foreach ($this->csvParsed['products'] as $productIndex => $product) {\n $overallCalculatedDistances = $this->processTruckDelivery($product);\n\n //find the shorter distance.\n $shorterDistance = min($overallCalculatedDistances);\n //get the related truck array list index.\n $truckIndex = array_keys($overallCalculatedDistances, min($overallCalculatedDistances))[0];\n\n $this->csvParsed['products'][$productIndex][ProductHelper::AVAILABLE_TRUCK] = $this->csvParsed['trucks'][$truckIndex];\n $this->csvParsed['products'][$productIndex][ProductHelper::TOTAL_DISTANCE] = $shorterDistance;\n\n //remove truck from array list to avoid be selected afterwards.\n unset($this->csvParsed['trucks'][$truckIndex]);\n }\n }", "public function getProductNameAndPriceInPartnerOrdersByProductId() {\n\n $query = $this->db->prepare(\"SELECT o.order_id, p.product_name, p.product_price FROM orders o JOIN products p ON o.order_product_id = p.ext_product_id AND o.order_partner_id = p.vendor_id ORDER BY o.order_id\");\n\n try {\n\n $query->execute();\n\n $result = $query->fetchAll();\n return $result;\n\n } catch (PDOException $e) {\n die($e->getMessage());\n }\n }", "public function get_prod_options_by_search()\n {\n $keyword = $this->input->get('keyword'); \n\n $result = $this->products_model->get_prod_by_search($keyword); \n\n $prod_options = '';\n\n if(!empty($result))\n {\n foreach($result as $row)\n { \n\t\t\t\t$prod = '['.$row['prod_id'].'] '.$row['prod_name'].' '.$row['prod_color']; \n\n\t\t\t\tpreg_match('/\\\\[(.+?)\\\\]/', $prod, $match); \n\n\t\t\t\t$pid = $match[1]; \n\n\t\t\t\t/* $prod .= \" - \".$pid; */\n\t\t\t\t\n\n $prod_options .= '<option value=\"'.$prod.'\"></option>';\n\t\t\t}\t\n }\n\t\t\n\t\techo $prod_options; \n\t}", "public function getVariantOptions()\n\t{\n\t\tif (!$this->hasVariants())\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\tif (!is_array($this->arrVariantOptions))\n\t\t{\n\t\t\t$time = time();\n\t\t\t$this->arrVariantOptions = array('current'=>array());\n\n\t\t\t// Find all possible variant options\n\t\t\t$objVariant = clone $this;\n\t\t\t$objVariants = $this->Database->execute(IsotopeProduct::getSelectStatement() . \" WHERE p1.pid={$this->arrData['id']} AND p1.language=''\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t. (BE_USER_LOGGED_IN === true ? '' : \" AND p1.published='1' AND (p1.start='' OR p1.start<$time) AND (p1.stop='' OR p1.stop>$time)\"));\n\n\t\t\twhile ($objVariants->next())\n\t\t\t{\n\t\t\t\t$objVariant->loadVariantData($objVariants->row(), false);\n\n\t\t\t\tif ($objVariant->isAvailable())\n\t\t\t\t{\n\t\t\t\t\t$arrVariantOptions = $objVariant->getOptions(true);\n\n\t\t\t\t\t$this->arrVariantOptions['ids'][] = $objVariant->id;\n\t\t\t\t\t$this->arrVariantOptions['options'][$objVariant->id] = $arrVariantOptions;\n\t\t\t\t\t$this->arrVariantOptions['variants'][$objVariant->id] = $objVariants->row();\n\n\t\t\t\t\tforeach ($arrVariantOptions as $attribute => $value)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (!in_array((string) $value, (array) $this->arrVariantOptions['attributes'][$attribute], true))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$this->arrVariantOptions['attributes'][$attribute][] = (string) $value;\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 $this->arrVariantOptions;\n\t}", "function get_woocommerce_product_list() {\n\t$full_product_list = array();\n\t$products = new WP_Query( array(\n\t\t'post_type' => array( 'product', 'product_variation' ),\n\t\t'posts_per_page' => - 1,\n\t\t'product_cat' => 'learn',\n\t) );\n\n\t$products = $products->posts;\n\n\tforeach ( $products as $index => $product ) {\n\t\t$theid = $product->ID;\n\n\t\t// its a variable product\n\t\tif ( $product->post_type == 'product_variation' ) {\n\t\t\t$parent_id = wp_get_post_parent_id( $theid );\n\t\t\t$sku = get_post_meta( $theid, '_sku', true );\n\t\t\t$thetitle = get_the_title( $parent_id );\n\n\t\t\t// ****** Some error checking for product database *******\n\t\t\t// check if variation sku is set\n\t\t\tif ( $sku == '' ) {\n\t\t\t\tif ( $parent_id == 0 ) {\n\t\t\t\t\t// Remove unexpected orphaned variations.. set to auto-draft\n\t\t\t\t} else {\n\t\t\t\t\t// there's no sku for this variation > copy parent sku to variation sku\n\t\t\t\t\t// & remove the parent sku so the parent check below triggers\n\t\t\t\t\t$sku = get_post_meta( $parent_id, '_sku', true );\n\t\t\t\t\tif ( function_exists( 'add_to_debug' ) ) {\n\t\t\t\t\t\tadd_to_debug( 'empty sku id=' . $theid . 'parent=' . $parent_id . 'setting sku to ' . $sku );\n\t\t\t\t\t}\n\t\t\t\t\tupdate_post_meta( $theid, '_sku', $sku );\n\t\t\t\t\tupdate_post_meta( $parent_id, '_sku', '' );\n\t\t\t\t}\n\t\t\t}\n\t\t\t// ****************** end error checking *****************\n\n\t\t\t// its a simple product\n\t\t} else {\n\t\t\t$thetitle = $product->post_title;\n\t\t}\n\t\t// add product to array but don't add the parent of product variations\n\t\t$full_product_list[ $theid ] = $thetitle;\n\t}\n\n\treturn $full_product_list;\n}", "public function getVariation()\n {\n return $this->db->get($this->product_variant);\n }", "function uds_pricing_process_products()\n{\n\tglobal $uds_pricing_column_options;\n\n\tif(!empty($_POST['uds_pricing_products_nonce']) && wp_verify_nonce($_POST['uds_pricing_products_nonce'], 'uds-pricing-products-nonce')) {\n\t\t//d($_POST);\n\t\t$pricing_tables = maybe_unserialize(get_option(UDS_PRICING_OPTION, array()));\n\t\t$table_name = $_GET['uds_pricing_edit'];\n\t\t$pricing_table = $pricing_tables[$table_name];\n\t\t\n\t\tif(empty($pricing_table)) {\n\t\t\treturn new WP_Error(\"uds_pricing_table_nonexistent\", \"This pricing table does not exist!\");\n\t\t}\n\t\t\n\t\t$pricing_table['no-featured'] = $_POST['uds-no-featured'] == 'on' ? true : false ;\n\t\t\n\t\t$products = $pricing_table['products'];\n\t\tif(empty($products)) $products = array();\n\t\t\n\t\t$options = $uds_pricing_column_options;\n\t\tforeach($options as $option_name => $option) {\n\t\t\tif($option_name == 'uds-featured') continue;\n\t\t\tforeach($_POST[$option_name] as $key => $value) {\n\t\t\t\t$products[$key][$option_name] = $value;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// process featured\n\t\tforeach($products as $key => $product) {\n\t\t\tif($key == $_POST['uds-featured']) {\n\t\t\t\t$products[$key][$option_name] = true;\n\t\t\t} else {\n\t\t\t\t$products[$key][$option_name] = false;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//d($products);\n\t\t$purge = array();\n\t\tforeach($pricing_table['properties'] as $name => $type) {\n\t\t\tforeach($products as $key => $product) {\n\t\t\t\tif($product['uds-name'] == \"\") $purge[] = $key;\n\t\t\t\t//$post_name = str_replace(' ', '_', $name);\n\t\t\t\t$post_name = sanitize_title_with_dashes($name);\n\t\t\t\tif(isset($_POST[$post_name][$key])) {\n\t\t\t\t\t$products[$key]['properties'][$name] = $_POST[$post_name][$key];\n\t\t\t\t} else {\n\t\t\t\t\t$products[$key]['properties'][$name] = '';\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tforeach($purge as $key) {\n\t\t\tunset($products[$key]);\n\t\t}\n\t\t\n\t\t//d($products);\n\t\t$pricing_table['products'] = $products;\n\t\t$pricing_tables[$table_name] = $pricing_table;\n\t\tupdate_option(UDS_PRICING_OPTION, maybe_serialize($pricing_tables));\n\t}\n}", "public static function get_product_variants($product_db, &$results)\n {\n $product = $product_db->get_metadata();\n\n // Get a dictionary of images (will be necessary for mapping variant images\n $images = array_combine(array_column($product['images'], 'id'), $product['images']);\n $default_image = $product['image'];\n $vendor = $product['vendor'];\n $name = $product['title'];\n\n // Flatten all variants as if they were individual products\n foreach ($product['variants'] as $variant) {\n $variant_id = $variant['id'];\n $variant_name = $variant['title'];\n $price = $variant['price'];\n if (!is_null($variant['image_id']))\n $image = $images[$variant['image_id']]['src'];\n else\n $image = $default_image['src'];\n\n $metadata = [\n 'id' => $product['id'],\n 'product_id' => $product['id'],\n 'variant_id' => $variant_id,\n 'vendor' => $vendor,\n 'name' => $name,\n 'variant_name' => $variant_name,\n 'price' => $price,\n 'image' => $image\n ];\n\n self::get_product_variant_from_db($product_db, $product['id'], $variant_id, $metadata, $image, $price);\n\n $results[] = $metadata;\n }\n }", "public function variations()\n {\n return $this->hasMany(ProductVariation::class);\n }", "public function getProdRelatedPa()\n {\n return $this->prod_related_pa;\n }", "public function get_products_in_purchase_of_costumer() {\n $query = $this->db->query(\"select products_in_order_of_costumers.order_number_fk, products_in_order_of_costumers.product_code_fk, products_in_order_of_costumers.quantity, products_in_order_of_costumers.price_per_unit, products.image, products.model from products inner join products_in_order_of_costumers on products_in_order_of_costumers.product_code_fk = products.product_code ORDER BY(products_in_order_of_costumers.order_number_fk)\");\n if ($query) {\n return $query->result_array();\n }\n return false;\n }", "public function productsSortedByCheapest()\n {\n $products = $this->p();\n usort($products, [$this, 'sortByCheapest']);\n return $products;\n }", "public function testSearchForProductByAttributeType()\n {\n // full results flag returns the full data set for the product\n }", "protected function get_item_configurations( $item, $configurations ) {\n // echo '<pre>'; var_dump( $item ); echo '</pre>';\n // echo '<pre>'; var_dump( wp_get_object_terms( $item['product_id'], 'product_cat' ) ); echo '</pre>';\n // echo '<pre>'; var_dump( wp_get_object_terms( $item['variation_id'], 'product_cat' ) ); echo '</pre>'; \n\n $categories = wp_get_object_terms( $item['product_id'], 'product_cat' );\n $shipping_classes = $item['data']->get_shipping_class_id();\n $shipping_classes = is_array( $shipping_classes ) ? $shipping_classes : array( $shipping_classes );\n\n // echo '<pre>'; var_dump( $shipping_classes ); echo '</pre>';\n // die;\n\n $applicable_configurations = array(); \n\n foreach ( $configurations as $i => $configuration ) {\n\n $secondary_priority = 2;\n\n $applicable = false;\n if ( $configuration['category'] == 'all' ) {\n $applicable = true;\n } \n else {\n foreach ( $categories as $category ) {\n if ( $category->term_id == $configuration['category'] ) {\n $applicable = true;\n $secondary_priority--;\n }\n } \n }\n\n if ( $applicable === true ) {\n if ( $configuration['shipping_class'] == 'all' ) {\n $configuration['secondary_priority'] = $secondary_priority;\n $applicable_configurations[] = $configuration;\n } \n else { \n foreach ( $shipping_classes as $shipping_class ) {\n if ( $shipping_class == $configuration['shipping_class'] ) {\n $secondary_priority--;\n $configuration['secondary_priority'] = $secondary_priority;\n $applicable_configurations[] = $configuration;\n }\n } \n }\n } \n }\n\n return $applicable_configurations;\n }", "function cb_product_result($items)\r\n\t{\r\n\t\t$ret = array();\r\n\r\n\t\tforeach ($items as $i)\r\n\t\t{\r\n\t\t\t# Create a single copy of this product for return.\r\n\r\n\t\t\tif (empty($ret[$i['prod_id']])) $ret[$i['prod_id']] = $i;\r\n\r\n\t\t\tif (empty($ret[$i['prod_id']]['atrs'][$i['atr_id']]))\r\n\t\t\t\t$ret[$i['prod_id']]['atrs'][$i['atr_id']] = $i;\r\n\r\n\t\t\tif (empty($ret[$i['prod_id']]['atrs'][$i['atr_id']]['opts'][$i['opt_id']]))\r\n\t\t\t\t$ret[$i['prod_id']]['atrs'][$i['atr_id']]['opts'][$i['opt_id']] = $i;\r\n\t\t}\r\n\r\n\t\tforeach ($ret as &$v)\r\n\t\t\t$v = $this->product_props($v);\r\n\r\n\t\treturn $ret;\r\n\t}", "protected function _findRelatedProductTags($productId) {\n $productRelation = Mage::getResourceModel('catalog/product_relation');\n $writeConnection = Mage::getSingleton('core/resource')->getConnection('core_write');\n\n $childIds = array($productId);\n $tags = array(Brim_PageCache_Model_Engine::FPC_TAG . '_PRODUCT_' . $productId);\n do {\n // following product relations up the chain.\n $select = $writeConnection->select()\n ->from($productRelation->getMainTable(), array('parent_id'))\n ->where(\"child_id IN (?)\", $childIds);\n ;\n if (($childIds = $select->query()->fetchAll(Zend_Db::FETCH_COLUMN, 0))) {\n foreach ($childIds as $id) {\n $tags[] = Brim_PageCache_Model_Engine::FPC_TAG . '_PRODUCT_' . $id;\n }\n }\n } while($childIds != null);\n\n return $tags;\n }", "private function generateProductVariants($product, $params) // .. 2\n {\n $configurableAttributes = $this->_attributeRepository->getConfigurableAttributes();\n $variantAttributes = [];\n\n foreach ($configurableAttributes as $attribute) {\n $variantAttributes[$attribute->code] = $params[$attribute->code];\n }\n\n // dd($variantAttributes);\n\n $variants = $this->generateAttributeCombinations($variantAttributes); // .. 3\n\n // echo '<pre>';\n // print_r($variants);\n // exit;\n\n if ($variants) {\n foreach ($variants as $variant) {\n $variantParams = [\n 'parent_id' => $product->id,\n 'user_id' => $params['user_id'],\n 'sku' => $product->sku . '-' . implode('-', array_values($variant)),\n 'type' => 'simple',\n 'name' => $product->name . $this->convertVariantAsName($variant),\n ];\n\n $variantParams['slug'] = Str::slug($variantParams['name']);\n\n $newProductVariant = Product::create($variantParams);\n\n $categoryIds = !empty($params['category_ids']) ? $params['category_ids'] : [];\n $newProductVariant->categories()->sync($categoryIds);\n\n // dd($variantParams);\n\n $this->saveProductAttributeValues($newProductVariant, $variant);\n }\n }\n }", "function sortOrderProducts(order_products $orderProducts);", "public function filterProducts(Request $request)\n {\n $AddedProdsArr = array();\n if (Auth::guest()) {\n $ParentProdsArr = $this->getParentHireProduct();\n $AllAvailProdsArr = array();\n session()->put('defaultFilterArr', $request->filterArr);\n $defaultFilterArr = session()->get('defaultFilterArr');\n $servicingDays = Config::get('constants.stateServicingDays');\n $extendedDays = $servicingDays[session()->get('states')];\n if(isset($_COOKIE['order_reference_id'])){\n $AddedProdsArr = $this->preOrderProdMapDetails($_COOKIE['order_reference_id']);\n }\n if (!empty($ParentProdsArr)) {\n foreach ($ParentProdsArr as $Parentprod) {\n $AvailProdArr = $this->getAvailChildProds($Parentprod->id, $request->fromDate, $request->toDate, $extendedDays, $defaultFilterArr,$AddedProdsArr,$request->attribOptId);\n\n if (!empty($AvailProdArr)) {\n $ParentProdDetailArr['parent-prod-id'] = $Parentprod->id;\n $ParentProdDetailArr['parent-prod-name'] = $Parentprod->name;\n $ParentProdDetailArr['parent-prod-description'] = $Parentprod->description;\n $ParentProdDetailArr['parent-prod-feat_img'] = $Parentprod->feat_img;\n $ParentProdDetailArr['parent-prod-sku'] = $Parentprod->sku;\n $ParentProdDetailArr['parent-prod-quantity'] = count($AvailProdArr);\n $ParentProdDetailArr['parent-prod-price'] = $Parentprod->price;\n $ParentProdDetailArr['parent-prod-category'] = $Parentprod->category;\n $ParentProdDetailArr['parent-prod-product_type'] = $Parentprod->product_type;\n $ParentProdDetailArr['parent-prod-is_upsell_product'] = $Parentprod->is_upsell_product;\n $ParentProdDetailArr['parent-prod-sale'] = $Parentprod->sale;\n $ParentProdDetailArr['parent-prod-sale_price '] = $Parentprod->sale_price;\n $ParentProdDetailArr['parent-prod-rent'] = $Parentprod->rent;\n $ParentProdDetailArr['parent-prod-rent_price'] = $Parentprod->rent_price;\n $ParentProdDetailArr['parent-prod-prod_video'] = $Parentprod->prod_video;\n $ParentProdDetailArr['parent-prod-attrib-handicap'] = $AvailProdArr[0]->handicap;\n array_push($AvailProdArr, $ParentProdDetailArr);\n array_push($AllAvailProdsArr, $AvailProdArr);\n }\n\n }\n }\n\n return $AllAvailProdsArr;\n } else {\n return redirect('/dashboard');\n }\n }", "public function listProductsRelated($params)\n{\n $type = $this->db->real_escape_string($params['type']);\n $prdId = $this->db->real_escape_string($params['prdId']);\n\n if ($type == 'K'){\n $qry = \"SELECT pr.*, sc.sbc_name, ct.cat_name \n FROM ctt_products AS pr\n INNER JOIN ctt_subcategories AS sc ON sc.sbc_id = pr.sbc_id\n INNER JOIN ctt_categories AS ct ON ct.cat_id = sc.cat_id\n WHERE prd_id = $prdId AND pr.prd_status = 1 AND sc.sbc_status = 1 AND ct.cat_status = 1\n UNION\n SELECT pr.*, sc.sbc_name, ct.cat_name \n FROM ctt_products_packages AS pk\n INNER JOIN ctt_products AS pr ON pr.prd_id = pk.prd_id\n INNER JOIN ctt_subcategories AS sc ON sc.sbc_id = pr.sbc_id\n INNER JOIN ctt_categories AS ct ON ct.cat_id = sc.cat_id\n WHERE pk.prd_parent = $prdId AND pr.prd_status = 1 AND sc.sbc_status = 1 AND ct.cat_status = 1;\";\n return $this->db->query($qry);\n // cambio ac.prd_id por prd_parent\n } else if($type == 'P') {\n $qry = \"SELECT pr.*, sc.sbc_name, ct.cat_name \n FROM ctt_products AS pr\n INNER JOIN ctt_subcategories AS sc ON sc.sbc_id = pr.sbc_id\n INNER JOIN ctt_categories AS ct ON ct.cat_id = sc.cat_id\n WHERE prd_id = $prdId AND pr.prd_status = 1 AND sc.sbc_status = 1 AND ct.cat_status = 1\n UNION\n SELECT pr.*, sc.sbc_name, ct.cat_name \n FROM ctt_accesories AS ac\n INNER JOIN ctt_products AS pr ON pr.prd_id = ac.prd_parent \n INNER JOIN ctt_subcategories AS sc ON sc.sbc_id = pr.sbc_id\n INNER JOIN ctt_categories AS ct ON ct.cat_id = sc.cat_id\n WHERE ac.prd_parent = $prdId AND pr.prd_status = 1 AND sc.sbc_status = 1 AND ct.cat_status = 1;\";\n return $this->db->query($qry);\n\n } else {\n $qry = \"SELECT * FROM ctt_products WHERE prd_id = $prdId\";\n return $this->db->query($qry);\n }\n}", "public function loadVariantInformation()\n {\n if ($this->_aVariantList === null) {\n $oProduct = $this->getProduct();\n\n //if we are child and do not have any variants then let's load all parent variants as ours\n if ($oParent = $oProduct->getParentArticle()) {\n $myConfig = $this->getConfig();\n\n $oParent->setNoVariantLoading(false);\n $this->_aVariantList = $oParent->getFullVariants(false);\n\n //lets additionally add parent article if it is sellable\n if (count($this->_aVariantList) && $myConfig->getConfigParam('blVariantParentBuyable')) {\n //#1104S if parent is buyable load select lists too\n $oParent->enablePriceLoad();\n $oParent->aSelectlist = $oParent->getSelectLists();\n $this->_aVariantList = array_merge(array($oParent), $this->_aVariantList->getArray());\n }\n } else {\n //loading full list of variants\n $this->_aVariantList = $oProduct->getFullVariants(false);\n }\n\n // setting link type for variants ..\n foreach ($this->_aVariantList as $oVariant) {\n $this->_processProduct($oVariant);\n }\n\n }\n\n return $this->_aVariantList;\n }", "public function getSelectedProducts()\n {\n if (!empty($this->object->products)) {\n $productsIds = explode('|', $this->object->products);\n $sql = 'SELECT p.`id_product`, p.`reference`, pl.`name`\n\t\t\t\tFROM `' . _DB_PREFIX_ . 'product` p\n\t\t\t\t' . Shop::addSqlAssociation('product', 'p') . '\n\t\t\t\tLEFT JOIN `' . _DB_PREFIX_ . 'product_lang` pl \n\t\t\t\t ON (p.`id_product` = pl.`id_product` ' . Shop::addSqlRestrictionOnLang('pl') . ')\n\t\t\t\tWHERE pl.`id_lang` = ' . (int)$this->context->language->id . '\n\t\t\t\tAND p.`id_product` IN (' . implode(',', $productsIds) . ')\n\t\t\t\tORDER BY FIELD(p.`id_product`, '.implode(',', $productsIds).')';\n\n return Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS($sql);\n }\n\n return array();\n }", "function getProductByCategory(){\n $return = array(); \n $pids = array();\n \n $products = Mage::getResourceModel ( 'catalog/product_collection' );\n \n foreach ($products->getItems() as $key => $_product){\n $arr_categoryids[$key] = $_product->getCategoryIds();\n \n if($this->_config['catsid']){ \n if(stristr($this->_config['catsid'], ',') === FALSE) {\n $arr_catsid[$key] = array(0 => $this->_config['catsid']);\n }else{\n $arr_catsid[$key] = explode(\",\", $this->_config['catsid']);\n }\n \n $return[$key] = $this->inArray($arr_catsid[$key], $arr_categoryids[$key]);\n }\n }\n \n foreach ($return as $k => $v){ \n if($v==1) $pids[] = $k;\n } \n \n return $pids; \n }", "private function _getProductvariantsList($product) {\n\n $productvariantsList = array();\n $linkHelper = new Helper\\HtmlLinkHelper();\n $spanHelper = new Helper\\HtmlSpanHelper();\n\n /* @var $productvariant Entity\\ProductEntity */\n foreach ($product->getChilderen() as $productvariant) {\n\n $categoryId = $productvariant->getProductCategories()->first()->getCategory()->getId();\n\n $name = $productvariant->getCurrentTranslation()->getName();\n\n // render link\n $liString = $linkHelper->getHtml(\n $name,\n $this->url()->fromRoute('home/default', array(\n 'controller' => 'product',\n 'action' => 'form',\n 'param' => 'product',\n 'value' => $productvariant->getId(),\n 'param2' => 'category',\n 'value2' => $categoryId\n )),\n $name,\n 'pane-navi-link productvariant',\n array(\n 'data-pane-title' => '',\n 'data-delete-url' => $this->url()->fromRoute('home/default', array(\n 'controller' => 'product',\n 'action' => 'delete',\n 'param' => 'product',\n 'value' => $productvariant->getId()\n ))\n ),\n null\n );\n\n// $liString .= $spanHelper->getHtml(\n// '',\n// 'edit',\n// array(\n// 'data-form-url' => $this->url()->fromRoute('home/default', array(\n// 'controller' => 'product',\n// 'action' => 'form',\n// 'param' => 'product',\n// 'value' => $productvariant->getId()\n// ))\n// )\n// );\n\n $productvariantsList[] = $liString;\n }\n\n return $productvariantsList;\n }", "private function updateProductVariants($params)\n {\n if ($params['variants']) {\n foreach ($params['variants'] as $productParams) {\n $product = Product::find($productParams['id']);\n $product->update($productParams);\n\n $product->status = $params['status'];\n $product->save();\n\n ProductInventory::updateOrCreate(['product_id' => $product->id], ['qty' => $productParams['qty']]);\n }\n }\n }", "function relatedProducts($people_cat_id, $product_type_id, $product_id)\n\t\t\t\t{\n\t\t\t\t\t\t\n\t\t\t\t$sql= 'SELECT product. *\n\t\t\t\tFROM product\n\t\t\t\tJOIN product_people ON product_people.product_id = product.product_id\n\t\t\t\tWHERE product.product_type_id = '.$people_cat_id.'\n\t\t\t\tAND product_people.people_cat_id = '.$product_type_id.'\n\t\t\t\tAND product.product_id != '.$product_id.'\n\t\t\t\tORDER BY product.product_id DESC';\n\t\t\t\t\n\t\t\t\t$Q = $this-> db-> query($sql);\n\t\t\t\tforeach ($Q-> result_array() as $row){\n\t\t\t\t}\n\t\t\t\treturn $Q;\n\t\t\t\t\n\t\t\t\t}", "function searchProduct($type,$input)\n {\n $products;\n switch($type)\n {\n case 0:\n $products=Product::search($input);\n break;\n case 1:\n $products=Product::searchByName($input);\n break;\n case 2:\n $products=Product::searchByGroup($input);\n break;\n case 3:\n $products=Product::searchBySupplier($input);\n break;\n case 4:\n $products=Product::searchByTag($input);\n break;\n case 5: $products=Product::searchByDescription($input);\n break;\n default:\n break;\n }\n if(!empty($products))\n {\n return $products;\n }else {\n return false;\n }\n }", "public function get_products() {\n $product_ids = array();\n\n\t\tforeach ( $this->get_conditions() as $condition ) {\n\t\t\tif ( isset( $condition['product_ids'] ) && is_array( $condition['product_ids'] ) ) {\n\t\t\t\t$product_ids = array_merge( $product_ids, $condition['product_ids'] );\n\t\t\t}\n\t\t}\n\n\t\t$products = array();\n\t\tforeach ( $product_ids as $product_id ) {\n\t\t\t$product = wc_get_product( $product_id );\n\t\t\tif ( $product ) {\n\t\t\t\t$products[$product_id] = wp_kses_post( $product->get_formatted_name() );\n\t\t\t}\n\t\t}\n\n\t\treturn $products;\n }", "public function getVariantByProduct($id){\n $this->db->select('*');\n $this->db->where('id_product', $id);\n $this->db->from($this->product_variant); \n return $this->db->get();\n }", "private function fusionarProductos($productos) {\n\n $seleccionado = null;\n $modelos = [];\n \n foreach ($productos as $prd) {\n /** Si tiene código */\n $modelos[] = $prd->getModelo();\n \n if ($seleccionado == null) {\n $seleccionado = $prd;\n continue;\n }\n\n if ($prd->hasCode()) {\n if (!$seleccionado->hasCode()) { \n /** Caso 1 */\n $seleccionado = $prd;\n $this->mergeRelations($seleccionado, $prd);\n } else {\n /** Caso 2 */\n $seleccionado->mergeCodes($prd);\n $this->mergeRelations($seleccionado, $prd);\n }\n }\n }\n\n $seleccionado->addModelos();\n\n return $seleccionado;\n }", "function particularvariant($id)\n\t{\n\t\t$getvariant=\"SELECT * from product_variant where ptdvar_id = $id\";\n\t\t$getvariantdata = $this->get_results( $getvariant );\n\n\t\t$getvariant1=\"SELECT * from product_variant_cost where ptdvar_id = $id\";\n\t\t$getvariantdata1 = $this->get_results( $getvariant1 );\n\n\t\t$c = array('variant' => $getvariantdata,'variantcost' => $getvariantdata1);\n\t\treturn $c;\n\n\t}", "function get_by_gender() {\n return $this->mysqli->query(\"SELECT * FROM `product_variations` JOIN `products` on `product_variations`.`product_id` = `products`.`product_id` WHERE 1 ORDER BY `gender`, `price` ASC\");\n }", "public function getActualActionProducts()\n {\n $actionGroupIds = $this->getActionGroupIds();\n $actionCategoriesIds = $this->getActionCategoryIds();\n $actionProductIds = $this->getActionProductIds();\n\n $query = Product::find()\n ->andWhere(['{{%sales_products}}.enabled' => true])\n ->orderBy(['{{%sales_products}}.title' => SORT_ASC]);\n\n if ($this->has_products) {\n // $query->andWhere(['{{%sales_products}}.is_show_in_catalog' => true]);\n } else {\n $dummyCategory = Category::findOne(['name' => Category::DUMMY_PLAN_CATEGORY_NAME]);\n $actionCategoriesIds[] = $dummyCategory->id;\n }\n\n if ($actionGroupIds) {\n $query->andWhere(['IN', 'group_id', $actionGroupIds]);\n }\n\n if ($actionCategoriesIds) {\n $query->andWhere(['IN', 'category_id', $actionCategoriesIds]);\n }\n\n if ($actionProductIds) {\n $query->andWhere(['IN', 'id', $actionProductIds]);\n }\n\n return $query;\n }", "public function getBreedeValleySimilarPropertyForSale(){\n\t\t\ttry{\n\t\t\t\t$query = \"SELECT properties.property_id, property_status, property_type, property_desc, price, num_bathrooms, \n\t\t\t\t\t\t street_no, street_name, num_beds, num_garages, property_image_id, image_location, suburbs.suburb_id, \n\t\t\t\t\t\t suburb_name, cities.city_id, city_name, municipalities.municipality_id, municipalities.municipality_name,\n\t\t\t\t\t\t agents.agent_id, firstname, lastname, email, phone, agencies.agency_id, agency_name, logo \n\t\t\t\t\t\t FROM property_images \n\t\t\t\t\t\t LEFT JOIN properties\n\t\t\t\t\t\t ON property_images.property_id = properties.property_id\n\t\t\t\t\t\t LEFT JOIN suburbs\n\t\t\t\t\t\t ON properties.suburb_id = suburbs.suburb_id\n\t\t\t\t\t\t LEFT JOIN cities\n\t\t\t\t\t\t ON suburbs.city_id = cities.city_id\n\t\t\t\t\t\t LEFT JOIN municipalities\n\t\t\t\t\t\t ON cities.municipality_id = municipalities.municipality_id\n\t\t\t\t\t\t LEFT JOIN agents\n\t\t\t\t\t\t ON properties.agent_id = agents.agent_id\n\t\t\t\t\t\t LEFT JOIN agencies\n\t\t\t\t\t\t ON agents.agency_id = agencies.agency_id\n\t\t\t\t\t\t WHERE municipalities.municipality_id = 97\n\t\t\t\t\t\t AND properties.property_status = 'For Sale'\n\t\t\t\t\t\t GROUP BY properties.property_id\n\t\t\t\t\t\t DESC\n\t\t\t\t\t\t LIMIT 3\n\t\t\t\t\t\t \";\n\t\t\t\t$result = $this->conn->query($query);\n\n\t\t\t $properties = array();\n\t\t\t\t\n\t\t\t\tforeach($result as $row){\n\t\t\t\t\t$agency = new Agency();\n\t\t\t\t\t$agency->setAgencyID($row['agency_id']);\n\t\t\t\t\t$agency->setAgencyName($row['agency_name']);\n\t\t\t\t\t$agency->setLogo($row['logo']);\n\t\t\t\t\t\n\t\t\t\t\t$agent = new Agent();\n\t\t\t\t\t$agent->setAgentID($row['agent_id']);\n\t\t\t\t\t$agent->setFirstname($row['firstname']);\n\t\t\t\t\t$agent->setLastname($row['lastname']);\n\t\t\t\t\t$agent->setEmail($row['email']);\n\t\t\t\t\t$agent->setPhone($row['phone']);\n\t\t\t\t\t$agent->setAgency($agency);\n\t\t\t\t\t\n\t\t\t\t\t$munucipality = new Municipality();\n\t\t\t\t\t$munucipality->setMunicipalityID($row['municipality_id']);\n\t\t\t\t\t$munucipality->setMunicipalityName($row['municipality_name']);\n\t\t\t\t\t\n\t\t\t\t\t$city = new City();\n\t\t\t\t\t$city->setCityID($row['city_id']);\n\t\t\t\t\t$city->setCityName($row['city_name']);\n\t\t\t\t\t$city->setMunicipality($munucipality);\n\t\t\t\t\t\n\t\t\t\t\t$suburb = new Suburb();\n\t\t\t\t\t$suburb->setSuburbID($row['suburb_id']);\n\t\t\t\t\t$suburb->setSuburbName($row['suburb_name']);\n\t\t\t\t\t$suburb->setCity($city);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t$property = new Property();\t\t\n\t\t\t\t\t$property->setPropertyID($row['property_id']);\t\t\t\n\t\t\t\t\t$property->setSuburb($suburb);\t\n\t\t\t\t\t$property->setAgent($agent);\n\t\t\t\t\t$property->setNumBathRoom($row['num_bathrooms']);\n\t\t\t\t\t$property->setNumBed($row['num_beds']);\n\t\t\t\t\t$property->setNumGarage($row['num_garages']);\t\n\t\t\t\t\t$property->setStreetNo($row['street_no']);\t\n\t\t\t\t\t$property->setStreetName($row['street_name']);\t\n\t\t\t\t\t$property->setPropertyDescription($row['property_desc']);\t\n\t\t\t\t\t$property->setPropertyType($row['property_type']);\t\t\n\t\t\t\t\t$property->setPrice($row['price']);\t\n\t\t\t\t\t$property->setImageLocation($row['image_location']);\n\t\t\t\t\t$property->setSuburbID($row['suburb_id']);\n\t\t\t\t\t$property->setMunicipalityID($row['municipality_id']);\n\t\t\t\t\t$property->setMunicipalityName($row['municipality_name']);\n\t\t\t\t\t$property->setCityID($row['city_id']);\n\t\t\t\t\t$properties[] = $property;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\treturn $properties;\n\t\t\t\t\n\t\t\t}catch(PDOException $e){\n\t\t\t\techo $e->getMessage();\n\t\t\t}\n\t\t}", "public function test_quantity_by_product()\n {\n $order1 = \\App\\Order::find(1);\n $product5 = \\App\\Product::find(5);\n $product7 = \\App\\Product::find(7);\n $product8 = \\App\\Product::find(8);\n $product20 = \\App\\Product::find(20);\n\n $this->assertEquals(4, $this->orders_service->getQuantityByProduct($order1, $product5));\n $this->assertEquals(2, $this->orders_service->getQuantityByProduct($order1, $product7));\n $this->assertEquals(2, $this->orders_service->getQuantityByProduct($order1, $product8));\n $this->assertEquals(1, $this->orders_service->getQuantityByProduct($order1, $product20));\n }", "public function searchProfessionals($pCriteria){\n\t\t// \t-> get();\n\n\t// \t return $this -> professional -> join('pros_specs', 'professionals.ID', '=', 'pros_specs.professionalID')\n\t// \t\t -> join('specializations', 'specializations.ID', '=', 'pros_specs.specializationID')\n\t// \t\t-> join('pros_creativefields', 'professionals.ID', '=', 'pros_creativefields.ProfessionalID')\n\t// \t\t-> join('creativefields', 'pros_creativefields.CreativeFieldID', '=', 'creativefields.ID')\n\t// \t\t-> join('pros_platforms', 'professionals.ID', '=', 'pros_platforms.ProfessionalID')\n\t// \t\t-> join('platforms', 'platforms.ID', '=', 'pros_platforms.PlatformID')\n\t// \t\t-> join('cities', 'professionals.CityID', '=', 'Cities.ID')\n\t// \t\t-> where('CompanyName', 'LIKE', '%' . $pCriteria['pCompanyName'] . '%')\n\t// \t\t-> whereIn('specializations.ID', $pCriteria['pSpecializations'])\n\t// \t\t-> whereIn('creativefields.ID', $pCriteria['pCreativeFields'])\n\t// \t\t-> whereIn('platforms.ID', $pCriteria['pPlatforms'])\n\t// \t\t-> whereIn('cities.ID', $pCriteria['pCities']) \n\t// \t\t-> groupBy('professionals.ID')\n\t// \t\t-> distinct() -> get();\n\t// }\n\n\t\t$searchQuery = $this -> professional -> queryJoiningTables();\n\n\t\tif(!is_null($pCriteria['pCompanyName'])){\n\t\t\t$searchQuery = $searchQuery -> queryCompanyName($pCriteria['pCompanyName']);\n\t\t}\n\n\t\tif(!is_null($pCriteria['pSpecializations'])){\n\t\t\t$searchQuery = $searchQuery -> querySpecializations($pCriteria['pSpecializations']);\n\t\t}\n\n\t\tif(!is_null($pCriteria['pCreativeFields'])){\n\t\t\t$searchQuery = $searchQuery -> queryCreativeFields($pCriteria['pCreativeFields']);\n\t\t}\n\n\t\tif(!is_null($pCriteria['pPlatforms'])){\n\t\t\t$searchQuery = $searchQuery -> queryPlatforms($pCriteria['pPlatforms']);\n\t\t}\n\n\t\tif(!is_null($pCriteria['pCities'])){\n\t\t\t$searchQuery = $searchQuery -> queryCities($pCriteria['pCities']);\n\t\t}\n\n\n\n\t\treturn $searchQuery -> groupBy('professionals.ID') \n\t\t\t-> distinct() -> get(array('Professionals.*'));\n\t}", "public static function getProductsOptions()\n {\n return self::get('products') ?: [];\n }", "public static function findByStateAvailable()\n {\n // realiza la busqueda de todos los identificadores de productos que \n // cumplan la condicion de no estar en estado pendiente\n $ids = \\database\\DAOFactory::getDAO(\"product\")->query(\n \"SELECT idProducto FROM PRODUCTO WHERE estado != ?\",\n \"pendiente\");\n if (!$ids || !is_array($ids)) return array();\n\n // genera un array de objetos Product creandolos con los \n // identificadores anteriores y llamando a fill() para recuperar todos \n // sus datos\n $found = array();\n foreach ($ids as $id) {\n $product = new Product($id[\"idProducto\"]);\n if (!$product->fill()) break;\n $found[ ] = $product;\n }\n\n return $found;\n }", "function get_complementary_items($diffid, $diffyear, $make, $model, $drivetype, $customer_number, $product_number) {\n\n global $wpdb;\n // Get Complementary product items\n $complementary_items = $wpdb->get_results(\n $wpdb->prepare(\n \"SELECT DISTINCT this_addOns.productnumber AS ProductNumber, P.ProductID as ProductID\n FROM (\n SELECT DISTINCT\n tmp_addons.priority,\n C.categoryname,\n C.categoryID,\n P.productline,\n P.ProductID,\n P.productnumber,\n %s AS 'VehicleDiffId',\n %s AS 'VehicleModel',\n %s AS 'VehicleYear',\n %s AS 'VehicleMake',\n %s AS 'VehicleDriveType'\n\n FROM randys_product P\n\n INNER JOIN randys_categoryproduct CP\n ON CP.productID = P.ProductID\n\n INNER JOIN randys_category C\n ON C.categoryID = CP.categoryID\n\n INNER JOIN (-- @bb\n -- GetAlternatesAndAddons\n -- add alternates that are an equal or higher priority than the selected product line.\n\n SELECT\n priority,\n productline,\n 'AlternateProductLines' AS type,\n SubCategoryId\n\n FROM\n randys_aa_alternateproductlines APP\n\n WHERE\n categoryid IN\n (SELECT\n category_1.categoryID\n\n FROM\n -- get the grouping number (called Category) that the selected product/subcategory is in.\n (SELECT\n categoryID\n\n FROM\n randys_aa_scenariocategories\n WHERE CategoryID in (\n SELECT DISTINCT CategoryID FROM randys_aa_alternateproductlines\n\n WHERE ProductLine = (\n SELECT ProductLine FROM randys_product WHERE ProductNumber = %s\n )\n\n AND SubCategoryId = (\n SELECT C.CategoryID from randys_category C\n INNER JOIN randys_categoryproduct CP ON CP.CategoryID = C.CategoryID\n INNER JOIN randys_product P ON P.ProductID = CP.ProductID\n WHERE ProductNumber = %s LIMIT 1\n )\n )\n ) category_1\n )\n\n UNION\n SELECT\n priority,\n productline,\n 'AddOnProductLines' AS type,\n SubCategoryId\n\n FROM randys_aa_addonproductlines\n\n WHERE\n categoryID IN (SELECT\n category_2.categoryID\n\n FROM\n (SELECT DISTINCT\n categoryID\n FROM\n randys_aa_alternateproductlines\n WHERE CategoryID in (\n select DISTINCT CategoryID from randys_aa_alternateproductlines\n\n where ProductLine = (\n select ProductLine from randys_product where ProductNumber = %s\n )\n AND SubCategoryId = (\n select C.CategoryID from randys_category C\n inner join randys_categoryproduct CP ON CP.CategoryID = C.CategoryID\n inner Join randys_product P on P.ProductID = CP.ProductID\n where ProductNumber = %s limit 1\n )\n )\n ) category_2\n )\n UNION SELECT\n priority,\n productline,\n 'CheckoutProductLines' AS type,\n SubCategoryId\n FROM\n randys_aa_checkoutproductlines\n ORDER BY priority\n -- End GetAlternatesAndAddons\n ) tmp_addons -- [tmp_addons] add all Checkout product lines.\n\n ON tmp_addons.productline = P.productline\n AND tmp_addons.SubCategoryId = C.categoryID\n WHERE P.productnumber <> %s\n AND tmp_addons.type = 'AddOnProductLines'\n\n ) this_addOns -- addons end\n\n INNER JOIN randys_advancedsearch A\n ON this_addOns.productnumber = A.productnumber\n AND ( ( A.diffid = this_addOns.VehicleDiffId\n AND A.model = this_addOns.VehicleModel )\n OR A.cattype = 'S' )\n AND this_addOns.categoryID = A.categoryID\n\n INNER JOIN randys_product P\n ON A.productID = P.ProductID\n\n INNER JOIN randys_brands B\n ON B.brandID = A.brandID\n\n LEFT OUTER JOIN randys_brands PB\n ON PB.BannerId = B.BannerID\n WHERE (%d = '0' or A.BrandID IN (select BrandID from randys_customerbrands where customerID = %d))\n\n UNION\n SELECT DISTINCT this_chkOut_1.productnumber AS ProductNumber, P.ProductID as ProductID\n FROM (SELECT DISTINCT\n C.categoryname,\n C.categoryID,\n P.productline,\n P.ProductID,\n P.productnumber,\n %s AS 'VehicleDiffId',\n %s AS 'VehicleModel',\n %s AS 'VehicleYear',\n %s AS 'VehicleMake',\n %s AS 'VehicleDriveType'\n\n FROM randys_product P\n\n INNER JOIN randys_categoryproduct CP\n ON CP.productID = P.ProductID\n\n INNER JOIN randys_category C\n ON C.categoryID = CP.categoryID\n\n INNER JOIN (\n SELECT\n productline,\n priority,\n SubCategoryId\n\n FROM randys_aa_checkoutproductlines\n\n ORDER BY priority\n ) a -- tmp_checkouts Get Checkouts\n WHERE P.productnumber <> %s\n ) this_chkOut_1 -- checkOut\n\n INNER JOIN randys_advancedsearch A\n ON this_chkOut_1.productnumber = A.productnumber\n AND ( ( A.diffid = this_chkOut_1.VehicleDiffId\n AND A.model = this_chkOut_1.VehicleModel )\n OR A.cattype = 'S' )\n AND this_chkOut_1.categoryID = A.categoryID\n\n INNER JOIN randys_product P\n ON A.ProductID = P.ProductID\n\n INNER JOIN randys_brands B\n ON B.brandID = A.brandID\n\n WHERE (%d = '0' or A.BrandID IN (select BrandID from randys_customerbrands where customerID = %d))\n\n -- This gets the RPS Book.\n UNION\n SELECT this_chkOut_2.productnumber AS ProductNumber, P.ProductID as ProductID\n FROM (SELECT DISTINCT\n C.categoryname,\n C.categoryID,\n P.productline,\n P.ProductID,\n P.productnumber,\n %s AS 'VehicleDiffId',\n %s AS 'VehicleModel',\n %s AS 'VehicleYear',\n %s AS 'VehicleMake',\n %s AS 'VehicleDriveType'\n FROM randys_product P\n\n INNER JOIN randys_categoryproduct CP\n ON CP.productID = P.ProductID\n\n INNER JOIN randys_category C\n ON C.categoryID = CP.categoryID\n\n INNER JOIN (\n SELECT\n productline,\n priority,\n SubCategoryId\n FROM randys_aa_checkoutproductlines\n ORDER BY priority\n ) a -- tmp_checkouts Get Checkouts\n WHERE P.productnumber <> %s\n ) this_chkOut_2\n\n INNER JOIN randys_advancedsearch A\n ON this_chkOut_2.productnumber = A.productnumber\n\n INNER JOIN randys_product P\n ON A.productID = P.ProductID\n\n INNER JOIN randys_brands B\n ON B.brandID = A.brandID\n\n WHERE P.productnumber = %s\n ORDER BY productnumber\",\n array(\n $diffid,\n $model,\n $diffyear,\n $make,\n $drivetype,\n $product_number,\n $product_number,\n $product_number,\n $product_number,\n $product_number,\n $customer_number,\n $customer_number,\n $diffid,\n $model,\n $diffyear,\n $make,\n $drivetype,\n $product_number,\n $customer_number,\n $customer_number,\n $diffid,\n $model,\n $diffyear,\n $make,\n $drivetype,\n $product_number,\n 'RPSBOOK-01'\n )\n )\n );\n\n if( $complementary_items ) {\n $comp_output = '<div class=\"products-slider m-t-3\">';\n\n foreach($complementary_items as $key => $complementary) {\n\n $product_post_ID = $wpdb->get_results(\n $wpdb->prepare(\n \"SELECT post_id FROM wp_postmeta WHERE meta_key = %s AND meta_value = %d\",\n array('_randy_productid', $complementary->ProductID)\n )\n );\n $post_id = $product_post_ID[0]->post_id;\n\n ob_start();\n include(locate_template('templates/content-product-list-sm.php', false, false));\n $comp_output .= ob_get_clean();\n }\n $comp_output .= '</div>';\n echo $comp_output;\n }\n\n}", "function getprodproclist($bid)\r\n\t{\r\n\t\t$sql = \"select p.product_name as product,p.product_id,(pl.qty*o.quantity) as qty \r\nfrom proforma_invoices i \r\njoin king_orders o on o.id=i.order_id \r\njoin m_product_deal_link pl on pl.itemid=o.itemid \r\njoin m_product_info p on p.product_id=pl.product_id \r\njoin (select distinct p_invoice_no from shipment_batch_process_invoice_link where batch_id = ? and packed=0) as h on h.p_invoice_no = i.p_invoice_no\r\nwhere i.invoice_status=1 \r\norder by p.product_name asc \r\n\t\t\";\r\n\t\t$raw=$this->db->query($sql,$bid)->result_array();\r\n\t\t$prods=array();\r\n\t\t$pids=array();\r\n\t\tforeach($raw as $r)\r\n\t\t{\r\n\t\t\tif(!isset($prods[$r['product_id']]))\r\n\t\t\t\t$prods[$r['product_id']]=array(\"product_id\"=>$r['product_id'],\"product\"=>$r['product'],\"qty\"=>0,\"location\"=>\"\");\r\n\t\t\t$prods[$r['product_id']]['qty']+=$r['qty'];\r\n\t\t\t$pids[]=$r['product_id'];\r\n\t\t}\r\n\t\t$pids=array_unique($pids);\r\n\t\t$raw_locs=$this->db->query(\"select s.mrp,s.product_id,rb.rack_name,rb.bin_name from t_stock_info s join m_rack_bin_info rb on rb.id=s.rack_bin_id where s.product_id in ('\".implode(\"','\",$pids).\"') order by s.stock_id asc\")->result_array();\r\n\t\t$ret=array();\r\n\t\tforeach($prods as $i=>$p)\r\n\t\t{\r\n\t\t\t$q=$p['qty'];\r\n\t\t\t$locations=array();\r\n\t\t\t$mrps=array();\r\n\t\t\tforeach($raw_locs as $s)\r\n\t\t\t{\r\n\t\t\t\tif($s['product_id']!=$i)\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t$q-=$s['available_qty'];\r\n\t\t\t\t$locations[]=$s['rack_name'].$s['bin_name'];\r\n\t\t\t\t$mrps[]=\"Rs \".$s['mrp'];\r\n\t\t\t\tif($q<=0)\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t$prods[$i]['location']=$loc=implode(\", \",array_unique($locations));\r\n\t\t\t$prods[$i]['mrp']=implode(\", \",array_unique($mrps));\r\n\t\t\t$assoc_loc=$loc.substr($p['product'],0,10).rand(110,9999);\r\n\t\t\t$ret[$assoc_loc]=$prods[$i];\r\n\t\t}\r\n\t\tksort($ret);\r\n\t\treturn $ret;\r\n\t}", "function get_target_products_for_accounts($accounts)\n{\n module_load_include('module', 'ppt_ta_access', 'ppt_ta_access');\n // Looping over each account and load it.\n $products = [];\n if (empty($accounts)) {\n return $products;\n }\n foreach ($accounts as $account) {\n\n $account_wrapper = entity_metadata_wrapper('node', node_load($account));\n $account_products = $account_wrapper->field_products->value();\n\n // Loop over products and add the product if it isn't already in array.\n foreach ($account_products as $account_product) {\n if ($account_product) {\n $parents = taxonomy_get_parents($account_product->tid);\n foreach ($parents as $parent) {\n if (!in_array($parent->tid, $products) && ppt_ta_term_access($parent)) {\n array_push($products, $parent->tid);\n }\n }\n }\n }\n }\n\n return $products;\n}", "public function getOrdersProducts($productIds, $language, $userTypeId)\n {\n return Product::with([\n 'images' => function ($query) {\n $query->orderByRaw('priority desc');\n },\n 'color' => function ($query) use ($language) {\n $query->select([\n 'colors.id',\n \"colors.name_$language as name\",\n 'colors.slug',\n 'colors.html_code'\n ]);\n },\n 'product_group.products.color' => function ($query) use ($language) {\n $query->select([\n 'colors.id',\n \"colors.name_$language as name\",\n 'colors.slug',\n 'colors.html_code'\n ]);\n },\n 'sizes' => function ($query) use ($language) {\n $query->select([\n 'sizes.id',\n \"sizes.name_$language as name\",\n 'sizes.slug',\n 'sizes.priority'\n ])->orderByRaw('sizes.priority desc');\n },\n 'price' => function ($query) use ($language, $userTypeId) {\n $query->select([\n 'product_prices.id',\n 'product_prices.product_id',\n 'product_prices.user_type_id',\n 'product_prices.price',\n 'product_prices.old_price',\n 'product_prices.discount'\n ])->whereUserTypeId($userTypeId);\n },\n 'promotions' => function ($query) {\n $query->orderByRaw('promotions.priority desc');\n },\n ])->whereIsVisible(true)\n ->whereIn('id', $productIds)\n ->get([\n 'id',\n \"name_$language as name\",\n 'slug',\n 'color_id',\n 'group_id',\n 'category_id',\n 'breadcrumb_category_id',\n \"description_$language as description\",\n 'priority',\n 'vendor_code',\n 'rating',\n 'number_of_views'\n ]);\n }", "function getProducts()\n {\n $ret = array();\n foreach ($this->getItems() as $item)\n if ($item->item_type == 'product')\n if ($pr = $item->tryLoadProduct())\n $ret[] = $pr;\n return $ret;\n }", "public function preProcess()\r\n\t{\t\t\r\n\t\tif(!Module::isInstalled('agilesearchbyzipcode'))return parent::preProcess();\r\n\t\tif(Tools::getValue('is_zipcode_search') != 1)return parent::preProcess();\r\n\r\n\t\t$this->productSort();\r\n\t\t$this->n = abs((int)(Tools::getValue('n', Configuration::get('PS_PRODUCTS_PER_PAGE'))));\r\n\t\t$this->p = abs((int)(Tools::getValue('p', 1)));\r\n \r\n $centerLat = Tools::getValue('asbz_centerLat');\r\n $centerLng = Tools::getValue('asbz_centerLng');\r\n $search_scope = Configuration::get('ASBZ_SEARCH_SCOPE');\r\n \r\n include_once(dirname(__FILE__) . \"/../../modules/agilesearchbyzipcode/ProdLocation.php\");\r\n $products = ProdLocation::searchProducts(self::$cookie->id_lang,$centerLat,$centerLng,$search_scope,Tools::getValue('orderby'),Tools::getValue('orderway'));\r\n\t\t$nbProducts = count($products);\r\n\t\t$this->pagination($nbProducts);\r\n\t\tself::$smarty->assign(array(\r\n\t\t'search_products' => $products,\r\n\t\t'nbProducts' => $nbProducts,\r\n\t\t'search_tag' => '',\r\n\t\t'search_query' => Tools::getValue('asbz_zipcode'),\r\n\t\t'ref' =>'',\r\n\t\t'search_zipcode' => Tools::getValue('asbz_zipcode'),\r\n\t\t'homeSize' => Image::getSize('home')));\r\n\t\tself::$smarty->assign('add_prod_display', Configuration::get('PS_ATTRIBUTE_CATEGORY_DISPLAY'));\r\n\t}", "protected function process()\n {\n\n // query whether or not we've found a configurable product\n if ($this->getValue(ColumnKeys::PRODUCT_TYPE) !== ProductTypes::CONFIGURABLE) {\n return;\n }\n\n // query whether or not, we've configurables\n if ($configurableVariations = $this->getValue(ColumnKeys::CONFIGURABLE_VARIATIONS)) {\n // load the variation labels, if available\n $configurableVariationLabels = $this->getValue(ColumnKeys::CONFIGURABLE_VARIATION_LABELS);\n\n // create an array with the variation labels (attribute code as key)\n $varLabels = array();\n\n // explode the variations labels\n if ($variationLabels = $this->explode($configurableVariationLabels)) {\n foreach ($variationLabels as $variationLabel) {\n if (strstr($variationLabel, '=')) {\n list ($key, $value) = $this->explode($variationLabel, '=');\n $varLabels[$key] = $value;\n }\n }\n }\n\n // load the variation positions, if available\n $configurableVariationsPosition = $this->getValue(ColumnKeys::CONFIGURABLE_VARIATIONS_POSITION);\n\n // create an array with the variation labels (attribute code as key)\n $varPositions = array();\n\n // explode the variations labels\n if ($variationPositions = $this->explode($configurableVariationsPosition)) {\n foreach ($variationPositions as $variationPosition) {\n if (strstr($variationPosition, '=')) {\n list ($key, $value) = $this->explode($variationPosition, '=');\n $varPositions[$key] = $value;\n }\n }\n }\n\n // intialize the array for the variations\n $artefacts = array();\n\n // load the parent SKU, the store view code and the attribute set code from the row\n $parentSku = $this->getValue(ColumnKeys::SKU);\n $storeViewCode = $this->getValue(ColumnKeys::STORE_VIEW_CODE);\n $attributeSetCode = $this->getValue(ColumnKeys::ATTRIBUTE_SET_CODE);\n\n // iterate over all variations and import them, e. g. the complete value will look like\n // sku=sku-0-black-55 cm,color=Black,size=55 cm| \\\n // sku=sku-01-black-xs,color=Black,size=XS| \\\n // sku=sku-02-blue-xs,color=Blue,size=XS| \\\n // sku=02-blue-55 cm,color=Blue,size=55 cm\n foreach ($this->explode($configurableVariations, '|') as $variation) {\n // explode the SKU and the configurable attribute values, e. g.\n // sku=sku-0-black-55 cm,color=Black,size=55 cm\n $explodedVariation = $this->explode($variation);\n\n // explode the variations child SKU\n list (, $childSku) = $this->explode(array_shift($explodedVariation), '=');\n\n // iterate over the configurable attribute configuration\n foreach ($explodedVariation as $option) {\n // explode the attributes option code and value\n list ($optionCode, $optionValue) = $this->explode($option, '=');\n\n // load the apropriate variation label\n $varLabel = '';\n if (isset($varLabels[$optionCode])) {\n $varLabel = $varLabels[$optionCode];\n }\n\n // load the apropriate variation position\n $varPosition = null;\n if (isset($varPositions[$optionCode])) {\n $varPosition = $varPositions[$optionCode];\n }\n\n // initialize the product variation itself\n $variation = $this->newArtefact(\n array(\n ColumnKeys::STORE_VIEW_CODE => $storeViewCode,\n ColumnKeys::ATTRIBUTE_SET_CODE => $attributeSetCode,\n ColumnKeys::VARIANT_PARENT_SKU => $parentSku,\n ColumnKeys::VARIANT_CHILD_SKU => $childSku,\n ColumnKeys::VARIANT_ATTRIBUTE_CODE => $optionCode,\n ColumnKeys::VARIANT_OPTION_VALUE => $optionValue,\n ColumnKeys::VARIANT_VARIATION_LABEL => $varLabel,\n ColumnKeys::VARIANT_VARIATION_POSITION => $varPosition\n ),\n array(\n ColumnKeys::STORE_VIEW_CODE => ColumnKeys::STORE_VIEW_CODE,\n ColumnKeys::ATTRIBUTE_SET_CODE => ColumnKeys::ATTRIBUTE_SET_CODE,\n ColumnKeys::VARIANT_PARENT_SKU => ColumnKeys::SKU,\n ColumnKeys::VARIANT_CHILD_SKU => ColumnKeys::CONFIGURABLE_VARIATIONS,\n ColumnKeys::VARIANT_ATTRIBUTE_CODE => ColumnKeys::CONFIGURABLE_VARIATIONS,\n ColumnKeys::VARIANT_OPTION_VALUE => ColumnKeys::CONFIGURABLE_VARIATIONS,\n ColumnKeys::VARIANT_VARIATION_LABEL => ColumnKeys::CONFIGURABLE_VARIATION_LABELS,\n ColumnKeys::VARIANT_VARIATION_POSITION => ColumnKeys::CONFIGURABLE_VARIATIONS_POSITION\n )\n );\n\n // append the product variation\n $artefacts[] = $variation;\n }\n }\n\n // append the variations to the subject\n $this->addArtefacts($artefacts);\n }\n }", "public function getTemplateVariable($items=array()) {\n\t\t\n\t\t$results = array();\n\t\t\n\t\tforeach($items as $key=>$item) {\n\t\t\t$item = (isset($item['CartItem'])) ? $item['CartItem'] : $item;\n\t\t\t$result = array('id' => $item['variant_id'],\n\t\t\t\t\t\n\t\t\t\t\t'price' => $item['product_price'],\n\t\t\t\t\t'line_price' => $item['line_price'],\n\t\t\t\t\t'quantity' => $item['product_quantity'],\n\t\t\t\t\t'requires_shipping' => $item['shipping_required'],\n\t\t\t\t\t'weight' => $item['product_weight'],\n\t\t\t\t\t);\n\t\t\t\n\t\t\t\n\t\t\t$result['product'] = !empty($item['Product']) ? Product::getTemplateVariable($item, false) : array();\n\t\t\t$result['variant'] = !empty($item['CheckedOutVariant']) ? VariantModel::getTemplateVariable($item['CheckedOutVariant'], false) : array();\n\t\t\t\n\t\t\t// we get the latest product and variant title where possible\n\t\t\t// we also collect the sku from variant\n\t\t\t// collect vendor from product\n\t\t\tif (!empty($result['product'])) {\n\t\t\t\t$productTitle = $result['product']['title'] ;\n\t\t\t\t$vendor = $result['product']['vendor'] ;\n\t\t\t} else {\n\t\t\t\t$productTitle = $item['product_title'];\n\t\t\t\t$vendor = '';\n\t\t\t}\n\t\t\t\n\t\t\tif (!empty($result['variant'])) {\n\t\t\t\t$variantTitle = $result['variant']['title'] ;\n\t\t\t\t$variantSKU = $result['variant']['sku'] ;\n\t\t\t} else {\n\t\t\t\t$variantTitle = $item['variant_title'];\n\t\t\t\t$variantSKU = '';\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t/**\n\t\t\t * for the cart item title, if there is 1 variant for the product\n\t\t\t * and the variant title starts with \"default\" case-insensitive\n\t\t\t * we just use ProductTitle\n\t\t\t **/\n\t\t\tApp::uses('StringLib', 'UtilityLib.Lib');\n\t\t\tif (count($result['product']['variants']) == 1) {\n\t\t\t\tif (StringLib::startsWith($variantTitle, 'default', false)) {\n\t\t\t\t\t$result['title'] = $productTitle;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// In all other cases, we use ProductTitle - VariantTitle\n\t\t\tif (!isset($result['title'])) {\n\t\t\t\t$result['title'] = $productTitle . ' - ' . $variantTitle;\n\t\t\t}\n\t\t\t\n\t\t\t// assign the sku\n\t\t\t$result['sku'] = $variantSKU;\n\t\t\t$result['vendor'] = $vendor;\n\t\t\t\n\t\t\t\n\t\t\t$results[] = $result;\n\t\t}\n\t\t\n\t\treturn $results;\n\t}", "public function getProdRelated()\n {\n return $this->prod_related;\n }", "public static function findByProductAndCollection(IsotopeProduct $objProduct, IsotopeProductCollection $objCollection, array $arrOptions = array())\n {\n $t = static::$strTable;\n\n $arrOptions['column'] = array();\n $arrOptions['value'] = array();\n\n if ($objProduct->hasAdvancedPrices()) {\n\n $time = Date::floorToMinute($objCollection->getLastModification());\n $arrGroups = static::getMemberGroups($objCollection->getRelated('member'));\n\n $arrOptions['column'][] = \"$t.config_id IN (\" . (int) $objCollection->config_id . \",0)\";\n $arrOptions['column'][] = \"$t.member_group IN(\" . implode(',', $arrGroups) . \")\";\n $arrOptions['column'][] = \"($t.start='' OR $t.start<'$time')\";\n $arrOptions['column'][] = \"($t.stop='' OR $t.stop>'\" . ($time + 60) . \"')\";\n\n $arrOptions['order'] = \"$t.config_id DESC, \" . Database::getInstance()->findInSet('member_group', $arrGroups) . \", $t.start DESC, $t.stop DESC\";\n\n } else {\n\n $arrOptions['column'][] = \"$t.config_id=0\";\n $arrOptions['column'][] = \"$t.member_group=0\";\n $arrOptions['column'][] = \"$t.start=''\";\n $arrOptions['column'][] = \"$t.stop=''\";\n }\n\n if ($objProduct->hasVariantPrices() && !$objProduct->isVariant()) {\n $arrIds = $objProduct->getVariantIds() ?: array(0);\n $arrOptions['column'][] = \"$t.pid IN (\" . implode(',', $arrIds) . \")\";\n } else {\n $arrOptions['column'][] = \"$t.pid=\" . ($objProduct->hasVariantPrices() ? $objProduct->getId() : $objProduct->getProductId());\n }\n\n /** @var ProductPriceCollection $objResult */\n $objResult = static::find($arrOptions);\n\n return (null === $objResult) ? null : $objResult->filterDuplicatesBy('pid');\n }", "public function get_other_reseller_vendors( $product_id ) {\n global $wpdb;\n\n if ( ! $product_id ) {\n return false;\n }\n\n $has_multivendor = get_post_meta( $product_id, '_has_multi_vendor', true );\n\n if ( empty( $has_multivendor ) ) {\n return false;\n }\n\n $sql = $wpdb->prepare(\n \"SELECT `product_id` FROM `{$wpdb->prefix}dokan_product_map` WHERE `map_id`= %d AND `product_id` != %d AND `is_trash` = 0\",\n $has_multivendor,\n $product_id\n );\n $results = $wpdb->get_results( $sql );\n\n if ( $results ) {\n return $results;\n }\n\n return false;\n }", "public function getProduct();", "function get_best_sales_info($a) {\n\n $op = new product();\n \n for( $i = 0; $i < BEST_SALES; $i++ ) {\n $op->get_best_sale($a[$i], $i);\n }\n \n return $op;\n \n}", "public function getSpecific()\n {\n $qb = $this->em->createQueryBuilder();\n $results = $qb->select('p')\n ->from('Plugin\\DoctrineExample\\Entity\\Product', 'p')\n ->orderBy('p.title', 'ASC')->getQuery()->execute();\n return $results;\n }" ]
[ "0.5606432", "0.5581592", "0.5373764", "0.5250884", "0.52380586", "0.5196821", "0.51117235", "0.5053214", "0.50324804", "0.50180066", "0.5006739", "0.49829084", "0.4967952", "0.493087", "0.49162418", "0.49032164", "0.48989975", "0.4893921", "0.489023", "0.48861215", "0.48816454", "0.48810655", "0.48735127", "0.48688388", "0.48601475", "0.4837549", "0.48199162", "0.48173892", "0.4816775", "0.4813547", "0.48080003", "0.48078206", "0.48069942", "0.4804862", "0.47963294", "0.47794878", "0.47765648", "0.47570312", "0.47523397", "0.47425118", "0.47332364", "0.47290725", "0.472136", "0.47210068", "0.4715976", "0.47026187", "0.4685328", "0.4678678", "0.46744612", "0.46689457", "0.46672618", "0.46586475", "0.46491712", "0.4646841", "0.46466246", "0.4635819", "0.46338215", "0.46256968", "0.46111506", "0.46066183", "0.46035272", "0.4599572", "0.45967847", "0.45965013", "0.4591998", "0.45900577", "0.45892915", "0.45828223", "0.45758533", "0.45748073", "0.45734498", "0.45719633", "0.45694256", "0.45667213", "0.45620993", "0.45587313", "0.45587096", "0.45565152", "0.45504925", "0.45490503", "0.4545406", "0.4544696", "0.45364946", "0.45294905", "0.45294276", "0.45294043", "0.45277387", "0.45163265", "0.45143604", "0.45091146", "0.4505602", "0.45037362", "0.45023558", "0.4501454", "0.45006812", "0.44955963", "0.44941413", "0.44938782", "0.44936562", "0.44874847" ]
0.4819661
27
Query to find max value of priority in Departments within ProductVariant Use to update stocks by priority within ProductVariant
public function queryMaxPriorityWithinVariant(ProductVariant $productVariant): Query { $qb = $this->createQueryBuilder('d'); return $qb ->select($qb->expr()->max('d.priority')) ->where('d.productVariant = :productVariant') ->setParameter('productVariant', $productVariant) ->groupBy('d.productVariant') ->getQuery(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function queryMaxPriorityWithinProduct(Product $product): Query\n {\n $qb = $this->createQueryBuilder('d');\n\n return $qb\n ->select($qb->expr()->max('d.priority'))\n ->innerJoin('d.productVariant', 'pv')\n ->where('pv.product = :product')\n ->setParameter('product', $product)\n ->groupBy('pv.product')\n ->getQuery();\n }", "public function get_max_product_price()\n\t{\n\t\t$this->db->select('MAX(product_selling_price) AS price')->from('product')->where(\"product_status = 1\");\n\t\t$query = $this->db->get();\n\t\t$result = $query->row();\n\t\t\n\t\treturn $result->price;\n\t}", "function getPriceMax($game_id, $round_number, $product_number, $region_number, $channel_number){\r\n\t\t\t$prices=new Model_DbTable_Decisions_Mk_Prices();\r\n\t\t\t$max=0;\r\n\t\t\t$companies=$this->getCompaniesInGame($game_id);\r\n\t\t\tforeach ($companies as $company) {\r\n\t\t\t\t$result=$prices->getDecision($game_id, $company['id'], $round_number);\r\n\t\t\t\t$result_product=$result['product_'.$product_number];\r\n\t\t\t\t$result_channel=$result_product['channel_'.$channel_number];\r\n\t\t\t\t$result_region=$result_channel['region_'.$region_number];\r\n\t\t\t\t$price=$result_region;\r\n\t\t\t\tif ($price>$max){\r\n\t\t\t\t\t$max=$price;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn $max;\r\n\t\t}", "public function setBestPrice($product_id) {\n $query = \"SELECT * FROM wp_pwgb_postmeta WHERE post_id=:product_id;\";\n $stm = $this->db->prepare($query);\n $stm->bindValue(\":product_id\", $product_id, PDO::PARAM_INT);\n $stm->execute();\n\n $response = $stm->fetchAll(PDO::FETCH_ASSOC);\n $tag_prices = $this->productPrice();\n $theBest = ['price' => 0];\n $otherPrices = [];\n $hasChanged = false;\n\n // Obtiene el mejor precio anterior\n foreach ($response as $metadata) {\n // Mejor precio\n if (isset($metadata['meta_key']) && $metadata['meta_key'] == 'price_best') {\n $theBest['price'] = $metadata['meta_value'];\n }\n\n // Mejor tienda\n if (isset($metadata['meta_key']) && $metadata['meta_key'] == 'best_shop') {\n $theBest['shop'] = $metadata['meta_value'];\n }\n\n // Obtiene el precio de otras tiendas\n foreach ($tag_prices as $price) {\n if (isset($metadata['meta_key']) && $metadata['meta_key'] == $price) {\n $otherPrices[$price] = (int) $metadata['meta_value'];\n }\n }\n }\n\n $oldPrice = $theBest['price'];\n // Obtiene el nuevo mejor precio\n foreach ($otherPrices as $store => $price) {\n if (($price > 0) && ($price < $theBest['price'])) {\n $theBest['price'] = $price;\n $theBest['shop'] = $store;\n $hasChanged = true;\n }\n }\n\n // Si el mejor precio cambio, lo actualiza y lo guarda en el historial\n if ($hasChanged) {\n $query = \"INSERT INTO dw_historial (product_id, price_old, price_new, created_at) VALUES \n (:product_id, :price_old, :price_new, NOW());\";\n $stm2 = $this->db->prepare($query);\n $stm2->bindValue(\":product_id\", $product_id, PDO::PARAM_INT);\n $stm2->bindValue(\":price_old\", $oldPrice, PDO::PARAM_INT);\n $stm2->bindValue(\":price_new\", $theBest['price'], PDO::PARAM_INT);\n $stm2->execute();\n\n $query = \"UPDATE wp_pwgb_postmeta SET meta_value=:price_new WHERE post_id=:product_id AND meta_key='price_best';\";\n $stm3 = $this->db->prepare($query);\n $stm3->bindValue(\":product_id\", $product_id, PDO::PARAM_INT);\n $stm3->bindValue(\":price_new\", $theBest['price'], PDO::PARAM_INT);\n $stm3->execute();\n\n $query = \"UPDATE wp_pwgb_postmeta SET meta_value=:best_shop WHERE post_id=:product_id AND meta_key='best_shop';\";\n $stm4 = $this->db->prepare($query);\n $stm4->bindValue(\":product_id\", $product_id, PDO::PARAM_INT);\n $stm4->bindValue(\":best_shop\", $theBest['shop'], PDO::PARAM_STR);\n $stm4->execute();\n }\n }", "private function getLastPriority(EnumValueRepository $repo): int\n {\n return (int) $repo->createQueryBuilder('e')\n ->select('MAX(e.priority)')\n ->setMaxResults(1)\n ->getQuery()\n ->getOneOrNullResult(AbstractQuery::HYDRATE_SINGLE_SCALAR);\n }", "public function findVariantStockByVariantPriority(ProductVariant $productVariant): array\n {\n try {\n $maxPriority = (int) $this->queryMaxPriorityWithinVariant($productVariant)->getSingleScalarResult();\n } catch (NoResultException $exception) {\n $maxPriority = 0;\n }\n\n return $this\n ->queryVariantStockByPriority($productVariant, $maxPriority)\n ->getSingleResult();\n }", "public function getMaxPrice();", "private function getMaxAvailableVersion()\n {\n echo \"Getting the max available version: \";\n\n $maxAvailableVersion = 0;\n\n foreach ($this->getDeltas() as $deltaNum => $delta) {\n if ($maxAvailableVersion < $deltaNum) {\n $maxAvailableVersion = $deltaNum;\n }\n }\n\n echo \"$maxAvailableVersion.\\n\";\n\n return $maxAvailableVersion;\n }", "public function getMaxPrice() {\n return $this->get(self::MAXPRICE);\n }", "function updatePriceLevel($siteDb)\n{\n global $db, $conf;\n\n if (!empty($conf->global->PRODUIT_MULTIPRICES) && $siteDb->price_level > 0 && $siteDb->price_level <= intval($conf->global->PRODUIT_MULTIPRICES_LIMIT)) {\n $sql = 'SELECT p.rowid';\n $sql.= ' FROM ' . MAIN_DB_PREFIX . 'product as p';\n $sql.= ' LEFT JOIN ' . MAIN_DB_PREFIX . \"categorie_product as cp ON p.rowid = cp.fk_product\";\n $sql.= ' WHERE p.entity IN (' . getEntity('product', 1) . ')';\n $sql.= ' AND cp.fk_categorie = ' . $siteDb->fk_cat_product;\n $sql.= ' GROUP BY p.rowid';\n\n $db->begin();\n\n dol_syslog(\"updatePriceLevel sql=\" . $sql);\n $resql = $db->query($sql);\n if ($resql) {\n $product = new Product($db);\n $eCommerceProduct = new eCommerceProduct($db);\n\n while ($obj = $db->fetch_object($resql)) {\n $product->fetch($obj->rowid);\n $eCommerceProduct->fetchByProductId($obj->rowid, $siteDb->id);\n\n if ($eCommerceProduct->remote_id > 0) {\n $eCommerceSynchro = new eCommerceSynchro($db, $siteDb);\n $eCommerceSynchro->connect();\n if (count($eCommerceSynchro->errors)) {\n dol_syslog(\"updatePriceLevel eCommerceSynchro->connect() \".$eCommerceSynchro->error, LOG_ERR);\n setEventMessages($eCommerceSynchro->error, $eCommerceSynchro->errors, 'errors');\n\n $db->rollback();\n return -1;\n }\n\n $product->price = $product->multiprices[$siteDb->price_level];\n\n $result = $eCommerceSynchro->eCommerceRemoteAccess->updateRemoteProduct($eCommerceProduct->remote_id, $product);\n if (!$result) {\n dol_syslog(\"updatePriceLevel eCommerceSynchro->eCommerceRemoteAccess->updateRemoteProduct() \".$eCommerceSynchro->eCommerceRemoteAccess->error, LOG_ERR);\n setEventMessages($eCommerceSynchro->eCommerceRemoteAccess->error, $eCommerceSynchro->eCommerceRemoteAccess->errors, 'errors');\n\n $db->rollback();\n return -2;\n }\n } else {\n dol_syslog(\"updatePriceLevel Product with id \" . $product->id . \" is not linked to an ecommerce record but has category flag to push on eCommerce. So we push it\");\n // TODO\n //$result = $eCommerceSynchro->eCommerceRemoteAccess->updateRemoteProduct($eCommerceProduct->remote_id);\n }\n }\n }\n\n $db->commit();\n }\n\n return 1;\n}", "function get_maxordqty_pid($fid,$pid)\r\n\t{\r\n\t\treturn $this->db->query(\"select (sum(max_allowed_qty)-sum(qty)) as allowed_qty \r\n\t\t\t\t\t\t\t\tfrom \r\n\t\t\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\t\t\t(select 0 as max_allowed_qty,ifnull(sum(a.quantity),0) as qty \r\n\t\t\t\t\t\t\t\t\t\tfrom king_orders a \r\n\t\t\t\t\t\t\t\t\t\tjoin king_dealitems b on a.itemid = b.id \r\n\t\t\t\t\t\t\t\t\t\tjoin king_transactions c on c.transid = a.transid \r\n\t\t\t\t\t\t\t\t\t\twhere b.pnh_id = ? and a.status !=3 and franchise_id = ? and date(from_unixtime(c.init)) = curdate() \r\n\t\t\t\t\t\t\t\t\t) \r\n\t\t\t\t\t\t\t\t\tunion \r\n\t\t\t\t\t\t\t\t\t(select max_allowed_qty,0 from king_dealitems where pnh_id = ? and max_allowed_qty > 0 ) \r\n\t\t\t\t\t\t\t\t) as g\",array($pid,$fid,$pid))->row()->allowed_qty*1;\r\n\r\n\t}", "function twentynineteen_child_wc_qty_input_args( $args, $product ) {\n\n $product_id = $product->get_parent_id() ? $product->get_parent_id() : $product->get_id();\n\n $product_min = twentynineteen_child_wc_min_limit( $product_id );\n if ( ! empty( $product_min ) ) {\n // min is empty\n if ( false !== $product_min ) {\n $args['min_value'] = $product_min;\n }\n }\n\n if ( $product->managing_stock() && ! $product->backorders_allowed() ) {\n $stock = $product->get_stock_quantity();\n $args['max_value'] = min( $stock, $args['max_value'] );\t\n }\n return $args;\n }", "public function max_sale(){\n\n global $database;\n $sql = \"SELECT product_id, SUM(product_quaty) FROM orders_index GROUP by product_id ORDER BY SUM(product_quaty) DESC LIMIT 1\";\n $result_set = $database->query($sql);\n $row = mysqli_fetch_array($result_set);\n $result = array_shift($row);\n return $result;\n }", "public function getProductsMaxPrice()\n {\n return $this->filterData['max'] ?? '';\n }", "public function findVariantStockByProductPriority(ProductVariant $productVariant): array\n {\n try {\n $maxPriority = (int) $this\n ->queryMaxPriorityWithinProduct($productVariant->getProduct())\n ->getSingleScalarResult();\n } catch (NoResultException $exception) {\n $maxPriority = 0;\n }\n\n return $this\n ->queryVariantStockByPriority($productVariant, $maxPriority)\n ->getSingleResult();\n }", "protected function max_value() {\n $max = 0;\n foreach ($this->data_collections as $data_collection) {\n foreach ($data_collection->get_items() as $item) {\n if ($max < $item->get_value()) {\n $max = $item->get_value();\n }\n }\n }\n return $max;\n }", "public function max(): Option;", "public function synchronizePrestashopToGestimum(){\n\t\t$products = $this->getProductsFromPrestashop();\n\t\t\n\t\t// stored procedure fields.\n\t\t$idProduct = 'NULL';\n\t\t$idSupplier = 'NULL';\n\t\t$idManufacturer = 'NULL';\n\t\t$idManufacturer = 'NULL';\n\t\t$idCategoryDefault = '0';\n\t\t$idShopDefault = 'NULL';\n\t\t$idTaxRulesGroup = 'NULL';\n\t\t$onSale = 'NULL';\n\t\t$onlineOnly = 'NULL';\n\t\t$ean13 = 'NULL';\n\t\t$upc = 'NULL';\n\t\t$ecotax = 'NULL';\n\t\t$quantity = 'NULL';\n\t\t$minimalQuantit = '0';\n\t\t$price = 'NULL';\n\t\t$wholesalePrice = 'NULL';\n\t\t$unity = 'NULL';\n\t\t$unitPriceRatio = 'NULL';\n\t\t$additionalShippingCost = 'NULL';\n\t\t$reference;\n\t\t$supplierReference = 'NULL';\n\t\t$location = 'NULL';\n\t\t$width = '0';\n\t\t$height = '0';\n\t\t$depth = 'NULL';\n\t\t$weight = '0';\n\t\t$outOfStock = 'NULL';\n\t\t$quantityDiscount = 'NULL';\n\t\t$customizable = 'NULL';\n\t\t$uploadableFiles = 'NULL';\n\t\t$textFields = 'NULL';\n\t\t$active = 'NULL';\n\t\t$availableForOrder = 'NULL';\n\t\t$availableDate = 'NULL';\n\t\t$condition = 'NULL';\n\t\t$showPrice = 'NULL';\n\t\t$indexed = 'NULL';\n\t\t$visibility = 'NULL';\n\t\t$cacheIsPack = 'NULL';\n\t\t$cacheHasAttachments = 'NULL';\n\t\t$isVirtual = 'NULL';\n\t\t$cacheDefaultAttribute = 'NULL';\n\t\t$dateAdd = 'NULL';\n\t\t$dateUpd = NULL;\n\t\t$advancedStockManagement = 'NULL';\n\t\t$productOptionValues = array();\n\t\t$categories = 'NULL';\n\n\t\tforeach ($products as $idProduct => $productArray) {\n\t\t\tforeach ($productArray as $attribute => $value) {\n\t\t\t\tswitch ($attribute) {\n\t\t\t\t\tcase 'id':\n\t\t\t\t\t\t$idProduct = $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'id_supplier':\n\t\t\t\t\t\tif($value) $idSupplier = $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'id_manufacturer':\n\t\t\t\t\t\tif ($value) $idManufacturer = $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'id_category_default':\n\t\t\t\t\t\tif( $value) $idCategoryDefault = $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'id_shop_default':\n\t\t\t\t\t\t$idShopDefault = $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'id_tax_rules_group':\n\t\t\t\t\t\t$idTaxRulesGroup = $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'on_sale':\n\t\t\t\t\t\t$onSale = (int) $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'online_only':\n\t\t\t\t\t\t$onlineOnly = (int) $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'ean13':\n\t\t\t\t\t\tif($value) $ean13 = (string) $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'upc':\n\t\t\t\t\t\tif($value) $upc = (string) $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'ecotax':\n\t\t\t\t\t\t$ecotax = $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'quantity':\n\t\t\t\t\t\t$quantity = $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'minimal_quantity':\n\t\t\t\t\t\t$minimalQuantity = $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'price':\n\t\t\t\t\t\t$price = (int)$value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'wholesale_price':\n\t\t\t\t\t\t$wholesalePrice = $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'unity':\n\t\t\t\t\t\tif($value) $unity= (string) $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'unit_price_ratio':\n\t\t\t\t\t\t$unitPriceRatio = $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'additional_shipping_cost':\n\t\t\t\t\t\tif($value) $additionalShippingCost = $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'reference':\n\t\t\t\t\t\t$reference = (string) $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'supplier_reference':\n\t\t\t\t\t\tif($value) $supplierReference = $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'location':\n\t\t\t\t\t\tif($value) $location = (string) $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'width':\n\t\t\t\t\t\t$width = $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'height':\n\t\t\t\t\t\t$height = $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'depth':\n\t\t\t\t\t\t$depth = $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'weight':\n\t\t\t\t\t\t$weight = $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'out_of_stock':\n\t\t\t\t\t\t$outOfStock = $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'quantity_discount':\n\t\t\t\t\t\t$quantityDiscount = (int) $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'customizable':\n\t\t\t\t\t\t$customizable = (int) $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'uploadable_files':\n\t\t\t\t\t\t$uploadableFiles = (int) $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'text_fields':\n\t\t\t\t\t\t$textFields = (int) $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'active':\n\t\t\t\t\t\t$active = (int) $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'available_for_order':\n\t\t\t\t\t\t$availableForOrder = (int) $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'available_date':\n\t\t\t\t\t\t$availableDate = (string) $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'condition':\n\t\t\t\t\t\t$condition = (string) $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'show_price':\n\t\t\t\t\t\t$showPrice = (int) $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'indexed':\n\t\t\t\t\t\t$indexed = (int) $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'visibility':\n\t\t\t\t\t\t$visibility = (string) $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'cache_is_pack':\n\t\t\t\t\t\t$cacheIsPack = (int) $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'cache_has_attachments':\n\t\t\t\t\t\t$cacheHasAttachments = (int) $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'is_virtual':\n\t\t\t\t\t\t$isVirtual = (int) $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'cache_default_attribute':\n\t\t\t\t\t\tif($value) $cacheDefaultAttribute = $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'date_add':\n\t\t\t\t\t\t$dateAdd = (string) $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'date_upd':\n\t\t\t\t\t\t$dateUpd = (string) $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'advanced_stock_management':\n\t\t\t\t\t\t$advancedStockManagement = (int) $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'product_option_values':\n\t\t\t\t\t\t$productOptionValues = $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'categories':\n\t\t\t\t\t\t$categories = $value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($reference == '') {\n\t\t\t\tthrow new ProductWithoutReferenceException(\"Merci de donner une référence valide à votre produit\", 1);\n\t\t\t}\n\n\t\t\tif(sizeof($productOptionValues) == 0){\n\t\t\t\t// The product has no declension (option value)\n\t\t\t\t$productOptionValues[] = '';\n\t\t\t}\n\t\t\t$originInt = (int) $this->origin;\n\t\t\t\n\t\t\t$dateUpd = new DateTime($dateUpd);\n\t\t\t$dateUpd = $dateUpd->format('Y-m-d H:i:s');\n\n\t\t\tforeach ($productOptionValues as $key => $declension) {\n\n\t\t\t\t$IdDeclinaison = substr(strtoupper(str_replace(' ','',$key)),-5);\n\t\t\t\t$CodeArticle = $reference . $IdDeclinaison;\n\n\t\t\t\tif (Constants::existsInDB(\n\t\t\t\t\tProductsConstants::getSelectARTCODEString($this->origin, $idProduct, $IdDeclinaison),\n\t\t\t\t\t$this->sqlServerConnection\n\t\t\t\t\t)){\n\t\t\t\t\t$updateProductSqlQuery = ProductsConstants::getProductUpdatingString(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$productArray['name'],\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$declension,\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$minimalQuantit,\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$weight,\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$width,\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$height,\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$dateUpd,\n\t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$IdDeclinaison,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t$CodeArticle,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t$this->origin,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t$idProduct,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t$categories);\n\t\t\t\t\todbc_exec($this->sqlServerConnection, $updateProductSqlQuery) or die (\"<p>\" . odbc_errormsg() . \"</p>\");\t\n\t\t\t\t}\n\t\t\t\telseif (Constants::existsInDB(\n\t\t\t\t\tProductsConstants::getSelectArticleByPrestashopReference($reference),\n\t\t\t\t\t$this->sqlServerConnection\n\t\t\t\t\t)) {\n\t\t\t\t\t$updateProductSqlQuery = ProductsConstants::getProductUpdatingByReferenceString($productArray['name'],\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$declension,\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$minimalQuantit,\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$weight,\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$width,\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$height,\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$dateUpd,\n\t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$IdDeclinaison,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t$CodeArticle,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t$this->origin,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t$idProduct,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t$categories,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t$reference);\n\t\t\t\todbc_exec($this->sqlServerConnection, $updateProductSqlQuery) or die (\"<p>\" . odbc_errormsg() . \"</p>\");\n\t\t\t\t}else{\n\t\t\t\t\t$insertProductQuery = ProductsConstants::getProductInsertingString(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$CodeArticle,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$productArray['name'],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$declension,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$reference,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$minimalQuantit,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$weight,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$width,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$height,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$dateUpd,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$idCategoryDefault,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$idProduct,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$IdDeclinaison,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$this->origin,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$categories);\n\t\t\t\t\todbc_exec($this->sqlServerConnection, $insertProductQuery) or die (\"<p>\" . odbc_errormsg() . \"</p>\");\n\t\t\t\t} \n\t\t\t}\n\t\t}\n\t}", "public function manualUpdatePriority($value, $id)\n {\n $where = sprintf(\n '%s IN (%s)',\n DbTable_Product::COL_PRODUCT_ID,\n $this->_dao->getAdapter()->quote($id)\n );\n $params = array(DbTable_Product::COL_PRODUCT_PRIORITY => intval($value));\n Application_Cache_Default::getInstance()->resetHomeProduct();\n Application_Cache_Default::getInstance()->cleanTags(array(Application_Constant_Global::KEY_COMPONENT_PRODUCT));\n return $this->_dao->update($params, $where);\n }", "public function getHighestAvailableVersion()\n {\n if (array_key_exists(\"highestAvailableVersion\", $this->_propDict)) {\n return $this->_propDict[\"highestAvailableVersion\"];\n } else {\n return null;\n }\n }", "public function getMaxPrice()\n\n {\n\n return $this->maxPrice;\n }", "public function getMaximumQuantity()\n {\n return $this->maximumQuantity;\n }", "public function high_post_test(){\n\t\t$query = \"\n\t\tSELECT Max(`B`.`PROSCR_VALUE`) AS 'max_post_test', `c`.`MEMBER_NAME`, `c`.`MEMBER_EMAIL`, `B`.`PROSCR_PROTEST_TYPE`,\n\t\t`c`.`PROPAR_PROGRAM_ID` \n\t\tFROM\n\t\t`t_program_testing` AS `A` INNER JOIN `t_program_score` AS `B` ON `A`.`PROTEST_PROGRAM_ID` = `B`.`PROSCR_PROPAR_ID`\n\t\tINNER JOIN `V_PROGRAM_PARTICIPANT` AS `c` ON `B`.`PROSCR_PROPAR_ID` = `c`.`PROPAR_PROGRAM_ID`\n\t\tWHERE\n\t\t`B`.`PROSCR_PROTEST_TYPE` = 2 \";\n\t\treturn $this->db->query($query);\n\t}", "function do_get_max_s_id() {\n\t# Dim some Vars\n\t\tglobal $_CCFG, $_DBCFG, $db_coin;\n\t\t$max_s_id = $_CCFG['BASE_SUPPLIER_ID'];\n\n\t# Set Query and select for max field value.\n\t\t$query\t= 'SELECT max(s_id) FROM '.$_DBCFG['suppliers'];\n\t\t$result\t= $db_coin->db_query_execute($query);\n\t\tIF ($db_coin->db_query_numrows($result) ) {\n\n\t\t# Get Max Value\n\t\t\twhile(list($_max_id) = $db_coin->db_fetch_row($result)) {$max_s_id = $_max_id;}\n\t\t}\n\n\t# Check / Set Value for return\n\t\treturn $max_s_id;\n}", "public abstract function max(callable|Comparator $cmp = null): Optional;", "function set_priority($ID, $dir, /*optional from here */ $whereFilter='', $absolute=0,$options=array()){\n\tglobal $set_priority, $qr, $qx, $fl, $ln;\n\t//reset\n\t$set_priority=array();\n\textract($options);\n\tif(!$priorityTable)$priorityTable='finan_items';\n\tif(!$priorityField)$priorityField='Priority';\n\tif(!$whereFilter)$whereFilter=1;\n\tif(!$cnx)$cnx=$qx['defCnxMethod'];\n\t//better query\n\t$data=q(\"SELECT COUNT(DISTINCT Priority) AS 'Distinct', COUNT(*) AS Count, MIN($priorityField) AS min, MAX($priorityField) AS max FROM $priorityTable WHERE $whereFilter\", O_ROW);\n\tif($debug)prn($qr);\n\textract($data);\n\tif($Distinct==$max && $Count==$max && $min==1){\n\t\t//sequence is clean\n\t\t//echo 'ok';\n\t}else{\n\t\t//clean sequence\n\t\t$ids=q(\"SELECT ID FROM $priorityTable WHERE $whereFilter ORDER BY $priorityField\", O_COL);\n\t\tif($debug)prn($qr);\n\t\tforeach($ids as $v){\n\t\t\t$e++;\n\t\t\tq(\"UPDATE $priorityTable SET $priorityField=$e WHERE ID='$v'\");\n\t\t\tif($debug)prn($qr);\n\t\t}\n\t\t$max=$e;\n\t}\n\tif($thispriority=q(\"SELECT $priorityField FROM $priorityTable WHERE ID='$ID'\", O_VALUE)){\n\t\tif($debug)prn($qr);\n\t\tif($dir==1 && $thispriority>1){\n\t\t\t//i.e. move product up\n\t\t\tif($absolute){\n\t\t\t\tq(\"UPDATE $priorityTable SET $priorityField=$priorityField+1 WHERE $whereFilter AND $priorityField<$thispriority\", $cnx);\n\t\t\t\tif($debug)prn($qr);\n\t\t\t\tq(\"UPDATE $priorityTable SET $priorityField=1 WHERE ID=$ID\", $cnx);\n\t\t\t\tif($debug)prn($qr);\n\t\t\t}else{\n\t\t\t\t//swap\n\t\t\t\tq(\"UPDATE $priorityTable SET $priorityField=$priorityField+1 WHERE $whereFilter AND $priorityField+1=$thispriority\", $cnx);\n\t\t\t\tif($debug)prn($qr);\n\t\t\t\tq(\"UPDATE $priorityTable SET $priorityField=$thispriority-1 WHERE ID=$ID\", $cnx);\n\t\t\t\tif($debug)prn($qr);\n\t\t\t}\n\t\t}else if($dir==-1 && $thispriority<$max){\n\t\t\t//move product down\n\t\t\tif($absolute){\n\t\t\t\tq(\"UPDATE $priorityTable SET $priorityField=$priorityField-1 WHERE $whereFilter AND $priorityField>$thispriority\", $cnx);\n\t\t\t\tif($debug)prn($qr);\n\t\t\t\tq(\"UPDATE $priorityTable SET $priorityField=$max WHERE ID=$ID\", $cnx);\n\t\t\t\tif($debug)prn($qr);\n\t\t\t}else{\n\t\t\t\t//swap\n\t\t\t\tq(\"UPDATE $priorityTable SET $priorityField=$priorityField-1 WHERE $whereFilter AND $priorityField-1=$thispriority\", $cnx);\n\t\t\t\tif($debug)prn($qr);\n\t\t\t\tq(\"UPDATE $priorityTable SET $priorityField=$priorityField+1 WHERE ID=$ID\", $cnx);\n\t\t\t\tif($debug)prn($qr);\n\t\t\t}\n\t\t}else{\n\t\t\t$set_priority['notice']='no move needed';\n\t\t}\n\t}else{\n\t\t$set_priority['error']='id of target record not found in group';\n\t}\n\tif($debug)prn($set_priority);\n}", "public function getBestPrice() {\n\t\ttry {\n\t\t\treturn Mage::getSingleton ( 'meinpaket/service_productData_requestService' )->requestBestPrices ();\n\t\t} catch ( Exception $e ) {\n\t\t\tMage::logException ( $e );\n\t\t}\n\t\treturn null;\n\t}", "function bestTimeToBuyAndSellStock($arr) {\n $len = count($arr);\n $minPrice = 999;\n $maxPro = 0;\n for ($i=0; $i<$len; $i++) {\n $minPrice = min($minPrice, $arr[$i]);\n $maxPro = max($maxPro, $arr[$i] - $minPrice);\n }\n return $maxPro;\n}", "public function maxPurchaseProvider()\n {\n yield 'should use configured max purchase' => [10, false, 25, 1, 10, 100];\n yield 'less stock, but not closeout' => [10, false, 1, 1, 10, 100];\n yield 'not configured, fallback to config' => [20, false, 5, 1, null, 20];\n yield 'closeout with less stock' => [2, true, 2, 1, 10, 100];\n yield 'use configured max purchase for closeout with stock' => [10, true, 30, 1, 10, 50];\n yield 'not configured, use stock because closeout' => [2, true, 2, 1, null, 50];\n yield 'next step would be higher than available' => [7, true, 9, 6, 20, 20];\n yield 'second step would be higher than available' => [13, true, 13, 6, 20, 20];\n yield 'max config is not in steps' => [13, true, 100, 12, 22, 22];\n yield 'max config is last step' => [15, false, 100, 2, 15, 15];\n }", "private function selectProductLowStock(){\n\t\t$data = $this->connection->createCommand('select id, sku, name, minimum_quantity, quantity from product where minimum_quantity is not null and quantity <= minimum_quantity and product_type_id = 2 and tenant_id = '. $this->tenant)->queryAll();\n\t\tforeach($data as $key => $value){\t\n\t\t\t$sqlBalance = 'select * from stock_balance where product_id = '. $value['id'];\n\t\t\t$sqlBalance = $this->connection->createCommand($sqlBalance)->queryOne();\n\t\t\tif(!empty($sqlBalance['warehouse_id'])){\n\t\t\t\t$sqlBalance['warehouse_id'] = $this->connection->createCommand('select id,name from warehouse where id = '. $sqlBalance['warehouse_id'])->queryOne();\n\t\t\t\t$data[$key]['balance'] = $sqlBalance;\n\t\t\t}\n\t\t}\n\t\treturn $data;\n\t}", "public function getSliderMaxPrice()\n {\n if (!$this->getPriceRange()['max']) {\n return $this->getProductsMaxPrice();\n }\n return $this->getPriceRange()['max'];\n }", "public function usedVO2maxValue()\n {\n if (Configuration::VO2max()->useElevationCorrection()) {\n if ($this->Activity->vo2maxWithElevation() > 0) {\n return $this->Activity->vo2maxWithElevation();\n }\n }\n\n return $this->Activity->vo2maxByHeartRate();\n }", "public function MaxOrdering()\n\t{\n\t\t$query = \"SELECT (max(ordering)+1) FROM #__extensions where folder='redshop_shipping'\";\n\t\t$this->_db->setQuery($query);\n\n\t\treturn $this->_db->loadResult();\n\t}", "function _upd_product_stock($prod_id=0,$mrp=0,$bc='',$loc_id=0,$rb_id=0,$p_stk_id=0,$qty=0,$update_by=0,$stk_movtype=0,$update_by_refid=0,$mrp_change_updated=-1,$msg='')\r\n {\r\n $user = $this->erpm->auth();\r\n\r\n if(!$prod_id)\r\n show_error(\"Invalid product 0 given\");\r\n\r\n if(!$p_stk_id)\r\n {\r\n // check if product stock entry is availble\r\n if(!$this->db->query(\"select count(*) as t from t_stock_info where product_id = ? and available_qty >= 0 \",$prod_id)->row()->t)\r\n {\r\n // create stock entry and update log for new insertion\r\n $p_stk_id = $this->_create_stock_entry($prod_id,$mrp,$bc,$loc_id,$rb_id);\r\n }else\r\n {\r\n\r\n // process stock info to get most relavent stock entry by barcode,mrp,location\r\n $stk_det_res = $this->db->query(\"select stock_id,product_id,mrp,product_barcode,bc_match,\r\n length(product_barcode) as bc_len,length(?) as i_bc_len,\r\n location_id,rack_bin_id,available_qty,sum(mrp_match+bc_match) as r from (\r\n select a.stock_id,a.product_id,mrp,if(mrp=?,1,0) as mrp_match,\r\n product_barcode,if(product_barcode=?,1,0) as bc_match,\r\n location_id,rack_bin_id,available_qty\r\n from t_stock_info a\r\n where product_id = ? and available_qty >= 0 and location_id=? and rack_bin_id= ?\r\n having mrp_match and if(length(?),(length(product_barcode) = 0 or bc_match = 1),1)\r\n order by mrp_match desc,bc_match desc ) as g\r\n group by stock_id\r\n order by r desc\",array($bc,$mrp,$bc,$prod_id,$loc_id,$rb_id,$bc));\r\n// echo $this->db->last_query();die();\r\n \r\n // if no data found create new stock entry Considering mrp for the product is not found\r\n if(!$stk_det_res->num_rows())\r\n {\r\n $this->_create_stock_entry($prod_id,$mrp,$bc,$loc_id,$rb_id);\r\n }\r\n else\r\n {\r\n // Product stock relavent data fetched which has matching mrp with stock mrp\r\n $stk_det = $stk_det_res->row_array();\r\n\r\n // update stock with the requested qty where best match stock id is known\r\n $p_stk_id = $stk_det['stock_id'];\r\n\r\n if(strlen($bc) > 0 && $stk_det['bc_length'] == 0)\r\n {\r\n // update product stock with the given barcode for suggestion.\r\n $this->db->query(\"update t_stock_info set product_barcode = ?,modified_by=?,modified_on=now() where stock_id = ? \",array($bc,$user['userid'],$p_stk_id));\r\n }\r\n\r\n }\r\n }\r\n }\r\n\r\n // update product stock available qty by stock id\r\n // update stock log\r\n\r\n if(!$qty)\r\n return $p_stk_id;\r\n\r\n $this->db->query(\"update t_stock_info set available_qty=available_qty\".($stk_movtype==1?\"+\":\"-\").\"?,modified_by=?,modified_on=now() where stock_id = ? and available_qty >= 0 \",array($qty,$user['userid'],$p_stk_id));\r\n\r\n // if by grn\r\n $ins_data = array();\r\n $ins_data['product_id'] = $prod_id;\r\n $ins_data['update_type'] = $stk_movtype;\r\n\r\n if($update_by == 1)\r\n $ins_data['p_invoice_id'] = $update_by_refid; // stock update by proforma invoice\r\n else if($update_by == 2)\r\n $ins_data['corp_invoice_id'] = $update_by_refid; // stock update by corp invoicing\r\n else if($update_by == 3)\r\n $ins_data['invoice_id'] = $update_by_refid; // stock update by invoice cancel\r\n else if($update_by == 4)\r\n $ins_data['grn_id'] = $update_by_refid; // stock update by stock intake\r\n else if($update_by == 5)\r\n $ins_data['voucher_book_slno'] = $update_by_refid; // stock update by voucher book\r\n else if($update_by == 6)\r\n $ins_data['return_prod_id'] = $update_by_refid; // stock update by product return ref id\r\n\r\n $ins_data['qty'] = $qty;\r\n $ins_data['current_stock'] = $this->_get_product_stock($prod_id);\r\n $ins_data['msg'] = $msg;\r\n $ins_data['mrp_change_updated'] = $mrp_change_updated;\r\n $ins_data['stock_info_id'] = $p_stk_id;\r\n $ins_data['stock_qty'] = $this->_get_product_stock_bystkid($p_stk_id);\r\n $ins_data['created_on'] = cur_datetime();\r\n $ins_data['created_by'] = $user['userid'];\r\n\r\n $this->db->insert(\"t_stock_update_log\",$ins_data);\r\n if($this->db->affected_rows() == 1)\r\n return true;\r\n\r\n return false;\r\n\r\n }", "public function update_product_inventory()\n\t{\n\t\t/* Prepare statement */\n\t\tif (!$stmt_product_info = $this->mysqli->prepare('SELECT \n\t\tproduct.out_of_stock,\n\t\tproduct.out_of_stock_enabled,\n\t\tIF(product_variant.id IS NOT NULL,product_variant.qty,product.qty) AS qty\n\t\tFROM\n\t\tproduct \n\t\tLEFT JOIN\n\t\tproduct_variant\n\t\tON\n\t\t(product.id = product_variant.id_product AND product_variant.id = ?)\n\t\tWHERE\n\t\tproduct.id = ?\t\t\n\t\tAND\n\t\tproduct.track_inventory=1\n\t\tLIMIT 1')) throw new Exception('An error occured while trying to prepare get product track inventory info statement.'.\"\\r\\n\\r\\n\".$this->mysqli->error);\t\n\t\t\n\t\t/* Prepare statement */\n\t\tif (!$stmt_upd_product_variant = $this->mysqli->prepare('UPDATE \n\t\tproduct_variant \n\t\tSET\n\t\tqty = ?,\n\t\tactive = ?\n\t\tWHERE\n\t\tid = ?')) throw new Exception('An error occured while trying to prepare update product variant qty statement.'.\"\\r\\n\\r\\n\".$this->mysqli->error);\n\t\t\n\t\t/* Prepare statement */\n\t\tif (!$stmt_upd_product = $this->mysqli->prepare('UPDATE \n\t\tproduct\n\t\tSET\n\t\tqty = ?,\n\t\tactive = ?\n\t\tWHERE\n\t\tid = ?')) throw new Exception('An error occured while trying to prepare update product qty statement.'.\"\\r\\n\\r\\n\".$this->mysqli->error);\t\t\n\t\t\n\t\t/* Prepare statement */\n\t\tif (!$stmt_option_info = $this->mysqli->prepare('SELECT \n\t\tout_of_stock\n\t\tFROM\n\t\toptions\n\t\tWHERE\n\t\tid = ?\n\t\tAND\n\t\ttrack_inventory=1\n\t\tLIMIT 1')) throw new Exception('An error occured while trying to prepare get options track inventory info.'.\"\\r\\n\\r\\n\".$this->mysqli->error);\t\t\n\t\t\n\t\t/* Prepare statement */\n\t\tif (!$stmt_upd_option = $this->mysqli->prepare('UPDATE \n\t\toptions\n\t\tSET\n\t\tqty = IF(qty <= ?,0,qty - ?)\n\t\tWHERE\n\t\tid = ?')) throw new Exception('An error occured while trying to prepare update options qty statement.'.\"\\r\\n\\r\\n\".$this->mysqli->error);\n\t\t\n\t\t$products = $this->get_products();\t\t\t\t\n foreach ($products as $row_product) {\n // Update Sub_product ELSE Update Product\n\t\t\tif (sizeof($row_product['sub_products'])) {\n foreach ($row_product['sub_products'] as $row_sub_product) {\n\t\t\t\t\t// sub product qty multipled by parent product qty\n\t\t\t\t\t$qty = $row_product['qty']*$row_sub_product['qty'];\n\t\t\t\t\t\n\t\t\t\t\tif (!$stmt_product_info->bind_param(\"ii\",$row_sub_product['id_product_variant'], $row_sub_product['id_product'])) throw new Exception('An error occured while trying to bind params to get product info statement.'.\"\\r\\n\\r\\n\".$this->mysqli->error);\n\n\t\t\t\t\t/* Execute the statement */\n\t\t\t\t\t$stmt_product_info->execute();\n\t\t\t\t\t\n\t\t\t\t\t/* store result */\n\t\t\t\t\t$stmt_product_info->store_result();\t\t\n\t\t\t\t\t\n\t\t\t\t\tif ($stmt_product_info->num_rows) {\t\t\t\t\n\t\t\t\t\t\t/* bind result variables */\n\t\t\t\t\t\t$stmt_product_info->bind_result($out_of_stock,$out_of_stock_enabled,$qty_remaining);\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t$stmt_product_info->fetch();\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t$qty_in_stock = $qty_remaining-$qty;\n\t\t\t\t\t\tif ($qty_in_stock < 0) $qty_in_stock = 0;\n\t\t\t\t\t\t\n\t\t\t\t\t\t$active = $out_of_stock_enabled && $qty_in_stock == $out_of_stock ? 0:1;\n\t\t\t\t\t\t\n\t\t\t\t\t\tif($row_sub_product['id_product_variant']){\n\t\t\t\t\t\t\tif (!$stmt_upd_product_variant->bind_param(\"iii\", $qty_in_stock, $active,$row_sub_product['id_product_variant'])) throw new Exception('An error occured while trying to bind params to update product variant qty statement.'.\"\\r\\n\\r\\n\".$this->mysqli->error);\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t/* Execute the statement */\n\t\t\t\t\t\t\tif (!$stmt_upd_product_variant->execute()) throw new Exception('An error occured while trying to update product variant qty.'.\"\\r\\n\\r\\n\".$this->mysqli->error);\t\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tif (!$stmt_upd_product->bind_param(\"iii\", $qty_in_stock, $active,$row_sub_product['id_product'])) throw new Exception('An error occured while trying to bind params to update product qty statement.'.\"\\r\\n\\r\\n\".$this->mysqli->error);\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t/* Execute the statement */\n\t\t\t\t\t\t\tif (!$stmt_upd_product->execute()) throw new Exception('An error occured while trying to update product qty.'.\"\\r\\n\\r\\n\".$this->mysqli->error);\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n }\n }else{\n\t\t\t\t// product qty\n\t\t\t\t$qty = $row_product['qty'];\n\t\t\t\t\n\t\t\t\tif (!$stmt_product_info->bind_param(\"ii\", $row_product['id_product_variant'], $row_product['id_product'])) throw new Exception('An error occured while trying to bind params to get product info statement.'.\"\\r\\n\\r\\n\".$this->mysqli->error);\n\n\t\t\t\t/* Execute the statement */\n\t\t\t\t$stmt_product_info->execute();\n\t\t\t\t\n\t\t\t\t/* store result */\n\t\t\t\t$stmt_product_info->store_result();\t\t\n\t\t\t\t\n\t\t\t\tif ($stmt_product_info->num_rows) {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\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/* bind result variables */\n\t\t\t\t\t$stmt_product_info->bind_result($out_of_stock,$out_of_stock_enabled, $qty_remaining);\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t$stmt_product_info->fetch();\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t$qty_in_stock = $qty_remaining-$qty;\n\t\t\t\t\tif ($qty_in_stock < 0) $qty_in_stock = 0;\n\t\t\t\t\t\n\t\t\t\t\t$active = $out_of_stock_enabled && $qty_in_stock == $out_of_stock ? 0:1;\n\t\t\t\t\t\n\t\t\t\t\tif($row_product['id_product_variant']){\n\t\t\t\t\t\tif (!$stmt_upd_product_variant->bind_param(\"iii\", $qty_in_stock, $active,$row_product['id_product_variant'])) throw new Exception('An error occured while trying to bind params to update product variant qty statement.'.\"\\r\\n\\r\\n\".$this->mysqli->error);\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t/* Execute the statement */\n\t\t\t\t\t\tif (!$stmt_upd_product_variant->execute()) throw new Exception('An error occured while trying to update product variant qty.'.\"\\r\\n\\r\\n\".$this->mysqli->error);\t\n\t\t\t\t\t}else{\n\t\t\t\t\t\tif (!$stmt_upd_product->bind_param(\"iii\",$qty_in_stock, $active,$row_product['id_product'])) throw new Exception('An error occured while trying to bind params to update product qty statement.'.\"\\r\\n\\r\\n\".$this->mysqli->error);\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t/* Execute the statement */\n\t\t\t\t\t\tif (!$stmt_upd_product->execute()) throw new Exception('An error occured while trying to update product qty.'.\"\\r\\n\\r\\n\".$this->mysqli->error);\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\t\n // Update Options\n\t\t\tif(sizeof($this->get_product_options($row_product['id']))){\n $options = $this->get_product_options($row_product['id']);\n foreach ($options as $row_product_option_group) { \n foreach ($row_product_option_group['options'] as $row_product_option) {\n\t\t\t\t\t\t// sub product qty multipled by parent product qty\n\t\t\t\t\t\t$qty = $row_product['qty']*$row_product_option['qty'];\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (!$stmt_option_info->bind_param(\"i\", $row_product_option['id_options'])) throw new Exception('An error occured while trying to bind params to get option info statement.'.\"\\r\\n\\r\\n\".$this->mysqli->error);\n\t\t\n\t\t\t\t\t\t/* Execute the statement */\n\t\t\t\t\t\t$stmt_option_info->execute();\n\t\t\t\t\t\t\n\t\t\t\t\t\t/* store result */\n\t\t\t\t\t\t$stmt_option_info->store_result();\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tif ($stmt_option_info->num_rows) {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\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\t\t/* bind result variables */\n\t\t\t\t\t\t\t$stmt_option_info->bind_result($out_of_stock);\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$stmt_option_info->fetch();\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (!$stmt_upd_option->bind_param(\"iii\", $qty, $qty,$row_product_option['id_options'])) throw new Exception('An error occured while trying to bind params to update option qty statement.'.\"\\r\\n\\r\\n\".$this->mysqli->error);\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t/* Execute the statement */\n\t\t\t\t\t\t\tif (!$stmt_upd_option->execute()) throw new Exception('An error occured while trying to update option qty.'.\"\\r\\n\\r\\n\".$this->mysqli->error);\t\n\t\t\t\t\t\t}\t\n\t\t\t\t\t}\n }\n }\n \t}\n\t\t\n\t\t$stmt_product_info->close();\n\t\t$stmt_upd_product_variant->close();\n\t\t$stmt_upd_product->close();\n\t\t$stmt_option_info->close();\n\t\t$stmt_upd_option->close();\n\t\t\t\t\t\t\t\t\t\t\t\n\t}", "public function getPriority(): int;", "public function getPriority(): int;", "public function getHighestPriority()\n {\n return max(array_keys($this->_mappersByPriority));\n }", "public function isHighestPriority(): bool;", "function getMax() { return $this->readMaxValue(); }", "public function priority()\n {\n return 'high';\n }", "private function sort_multi_quantity_data( $d ){\n\t\t\t$bvars = $this->calc->get_bvars();\n\t\t\tif ( array_key_exists( 'pa_multi_quantity', $bvars ) || array_key_exists( 'pa_master_multi_quantity', $bvars ) ) {\n\t\t\t\t//$pa_multi_quantity = $bvars['pa_multi_quantity'];\n\t\t\t\t$access_level = $this->credentials['access_level'];\t\n\t\t\t\t\n\t\t\t\tif ( $access_level > 0 ) {\n\t\t\t\t\tforeach ( $d['d'] as $key => $value ) {\n\t\t\t\t\t\tif ( $value->total['name'] == 'pa_multi_quantity' || $value->total['name'] == 'pa_master_multi_quantity' ) {\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$d['tmq'] = $value;\n\t\t\t\t\t\t\tunset( $d['d'][ $key ] );\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\treturn $d;\n\t\t}", "function _get_product_stock($product_id = 0)\r\n {\r\n return @$this->db->query(\"select sum(available_qty) as t from t_stock_info where product_id = ? and available_qty >= 0 \",$product_id)->row()->t;\r\n }", "public function updateQuality()\n {\n foreach ($this->items as $item) {\n if ($item->name != 'Aged Brie' and $item->name != 'Backstage passes to a TAFKAL80ETC concert') {\n if ($item->quality > 0) {\n if ($item->name != 'Sulfuras, Hand of Ragnaros') {\n $item->quality = $item->quality - 1;\n }\n }\n } else {\n if ($item->quality < 50) {\n $item->quality = $item->quality + 1;\n if ($item->name == 'Backstage passes to a TAFKAL80ETC concert') {\n if ($item->sellIn < 11) {\n if ($item->quality < 50) {\n $item->quality = $item->quality + 1;\n }\n }\n if ($item->sellIn < 6) {\n if ($item->quality < 50) {\n $item->quality = $item->quality + 1;\n }\n }\n }\n }\n }\n \n if ($item->name != 'Sulfuras, Hand of Ragnaros') {\n $item->sellIn = $item->sellIn - 1;\n }\n \n if ($item->sellIn < 0) {\n if ($item->name != 'Aged Brie') {\n if ($item->name != 'Backstage passes to a TAFKAL80ETC concert') {\n if ($item->quality > 0) {\n if ($item->name != 'Sulfuras, Hand of Ragnaros') {\n $item->quality = $item->quality - 1;\n }\n }\n } else {\n $item->quality = $item->quality - $item->quality;\n }\n } else {\n if ($item->quality < 50) {\n $item->quality = $item->quality + 1;\n }\n }\n }\n }\n }", "public function getMaximalPrice()\n {\n if (!$this->maximalPrice) {\n $maximalPrice = $this->product->getMaximalPrice();\n if ($maximalPrice === null) {\n $maximalPrice = $this->getValue();\n } else {\n $maximalPrice = $this->priceCurrency->convertAndRound($maximalPrice);\n }\n $this->maximalPrice = $this->calculator->getAmount($maximalPrice, $this->product);\n }\n return $this->maximalPrice;\n }", "public function fastestProduct()\n {\n return $this->productsSortedByFastest()[0] ?? null;\n }", "public function getMaxID(){\n\t\t try{\n\t\t\t$conn = DBConnection::GetConnection();\t\n\t\t\t$queryForGetMaxId=\"SELECT MAX(product_id) AS max_value FROM product\";\n\t\t\t$max_result=$conn->prepare($queryForGetMaxId);\n\t\t\t$max_result->execute();\n\t\t\t$maxId = $max_result->fetch(PDO::FETCH_ASSOC); \n\t\t\t$pId=$maxId['max_value']; \n\t\t\t$incrementPid=$pId+1;\n\t\t\treturn $incrementPid;\n\t\t}catch(PDOException $e){\n\t\t\techo 'Fail to connect';\n\t\t\techo $e->getMessage();\n\t\t}\t\n }", "public function getShippingPrice($shippingMethod = null)\n {\n if (!$shippingMethod) {\n $shippingMethod = $this->shipping_method;\n }\n\n // separate variants by grous,\n // find the biggest full price for country\n $biggestFullPrice = Money::i()->parse(0);\n $biggestFullPriceVariant = null;\n $allShippingGroups = [];\n $variantsByShippingGroup = [];\n foreach($this->variants as $variant) {\n if (\n $variant->model\n && $variant->model->template\n && $variant->model->template->shippingGroups\n && !$variant->model->template->shippingGroups->isEmpty()\n ) {\n $shippingGroups = $variant->model->template->shippingGroups;\n foreach($shippingGroups as $shippingGroup) {\n $allShippingGroups[$shippingGroup->id] = $shippingGroup;\n $variantsByShippingGroup[$shippingGroup->id][] = $variant;\n\n // choose biggest price\n if ($this->shipsToUS()) {\n $currentFullPrice = $shippingGroup->fullPriceUS($shippingMethod);\n }\n else if ($this->shipsToCanada()) {\n $currentFullPrice = $shippingGroup->fullPriceCanada($shippingMethod);\n }\n else {\n $currentFullPrice = $shippingGroup->fullPriceIntl($shippingMethod);\n }\n\n if ($biggestFullPrice->lessThan($currentFullPrice)) {\n $biggestFullPrice = $currentFullPrice;\n $biggestFullPriceVariant = $variant;\n }\n }\n }\n }\n\n $shippingCost = Money::i()->parse(0);\n $shippingCost = $shippingCost->add($biggestFullPrice);\n\n // add additional price\n if ($variantsByShippingGroup) {\n foreach($variantsByShippingGroup as $shippingGroupId => $variants) {\n $qty = 0;\n\n if (!empty($variants)) {\n foreach($variants as $variant) {\n $qty += $variant->quantity();\n\n // skip the only one first biggest price variant\n if (\n $biggestFullPriceVariant\n && $variant->id == $biggestFullPriceVariant->id\n ) {\n $biggestFullPriceVariant = null;\n $qty -= 1;\n }\n }\n }\n\n if ($this->shipsToUS()) {\n $currentAdditionalPrice = $allShippingGroups[$shippingGroupId]\n ->additionalPriceUS($shippingMethod);\n }\n else if ($this->shipsToCanada()) {\n $currentAdditionalPrice = $allShippingGroups[$shippingGroupId]\n ->additionalPriceCanada($shippingMethod);\n }\n else {\n $currentAdditionalPrice = $allShippingGroups[$shippingGroupId]\n ->additionalPriceIntl($shippingMethod);\n }\n\n if ($qty > 0) {\n $currentAdditionalPrice = $currentAdditionalPrice->multiply($qty);\n\n $shippingCost = $shippingCost->add($currentAdditionalPrice);\n }\n }\n\t\t\t}\n\n return $shippingCost;\n }", "function max() { return $this->max; }", "public function maybe_limit_max_quantity($args, $product)\n {\n\n // Check if subscriptions are limited\n if (!RP_SUB_Settings::is('subscription_limit', 'no_limit')) {\n\n // Check if product is a subscription product\n if (subscriptio_is_subscription_product($product)) {\n\n // Product variation hook\n if (current_filter() === 'woocommerce_available_variation') {\n $args['max_qty'] = 1;\n }\n // Simple product hook\n else {\n $args['max_value'] = 1;\n }\n }\n }\n\n return $args;\n }", "public function getHighestOrderNumber()\n {\n return ((int) self::max($this->determineOrderColumnName())) + 1;\n }", "public function getMax()\n {\n return $this->_fields['Max']['FieldValue'];\n }", "public function getMaxValue()\n {\n return $this->get('MaxValue');\n }", "public function getLastPrice($produit) {\r\r\n// $query = \"SELECT bap.prix as prix\r\r\n// FROM BonVenteProduit bap\r\r\n// inner JOIN Produit p\r\r\n// on bap.produit = p.reference\r\r\n// inner Join BonVente ba\r\r\n// on ba.id = bap.bon\r\r\n// where p.reference = ?\r\r\n// ORDER BY ba.date DESC\r\r\n// LIMIT 1;\";\r\r\n\r\r\n $query = \"select MAX(bap.prix)*2 as prix from BonAchatProduit bap where bap.produit = ?\";\r\r\n $req = $this->connexion->getConnexion()->prepare($query);\r\r\n\r\r\n $req->execute(array($produit));\r\r\n\r\r\n $res = $req->fetch(PDO::FETCH_OBJ);\r\r\n\r\r\n return $res;\r\r\n }", "public function bestProduct() {\n $bestProducts = Producer::join(\"users\", \"producers.user_id\", \"=\", \"users.id\")\n ->join(\"products\", \"producers.product_id\", \"=\", \"products.id\")\n ->where(\"quantity\", \">\", \"0\")\n ->orderBy(\"amountSell\", \"desc\")\n ->limit(5)\n ->get();\n return ProducerResource::collection($bestProducts);\n }", "public function high_pre_test(){\n\t\t$query = \"\n\t\tSELECT Max(`B`.`PROSCR_VALUE`) AS 'max_pre_test', `c`.`MEMBER_NAME`, `c`.`MEMBER_EMAIL`, `B`.`PROSCR_PROTEST_TYPE`,\n\t\t`c`.`PROPAR_PROGRAM_ID` \n\t\tFROM\n\t\t`t_program_testing` AS `A` INNER JOIN `t_program_score` AS `B` ON `A`.`PROTEST_PROGRAM_ID` = `B`.`PROSCR_PROPAR_ID`\n\t\tINNER JOIN `V_PROGRAM_PARTICIPANT` AS `c` ON `B`.`PROSCR_PROPAR_ID` = `c`.`PROPAR_PROGRAM_ID`\n\t\tWHERE\n\t\t`B`.`PROSCR_PROTEST_TYPE` = 1 \";\n\t\treturn $this->db->query($query);\n\t}", "public function getMaxOrderTotal();", "private function get_max_price() : float {\n\t\tpreg_match( '/runParams\\.maxPrice=\"(.*?)\";/s', $this->request, $matches );\n\t\tif ( empty( $matches[1] ) ) {\n\t\t\treturn 0.0;\n\t\t}\n\t\treturn floatval( $matches[1] );\n\t}", "public function getPriority() {}", "public function getPriority() {}", "public function getPriority() {}", "public function getPriority() {}", "public function getPriority() {}", "public function getPriority() {}", "public function getPriority() {}", "public function getPriority() {}", "public function getPriority() {}", "public function getPriority() {}", "public function getPriority() {}", "public function getPriority() {}", "public function getPriority() {}", "public function getPriority() {}", "public function getPriority() {}", "public function getPriority() {}", "public function getPriority() {}", "public function getPriority() {}", "public function getPriority() {}", "static function getSiteMaxPrice() {\n return self::getMetaValueRange(PostProperty::META_PRICE, false, 1000000000);\n }", "public function getPriority(): int\n {\n return 56;\n }", "function ppom_get_cart_item_max_quantity( $cart_item ) {\n\t\n\t$max_quantity = null;\n\tif( isset($cart_item['ppom']['ppom_pricematrix']) ) {\n\t\t$matrix \t= json_decode( stripslashes($cart_item['ppom']['ppom_pricematrix']) );\n\t\t$last_range = end($matrix);\n\t\t$qty_ranges = explode('-', $last_range->raw);\n\t\t$max_quantity\t= $qty_ranges[1];\n\t}\n\t\n\treturn $max_quantity;\n}", "public function setHighestAvailableVersion($val)\n {\n $this->_propDict[\"highestAvailableVersion\"] = $val;\n return $this;\n }", "public function getProductPriceX()\n {\n return $this->_scopeConfig->getValue('splitprice/split_price_config/maximum_splits', \\Magento\\Store\\Model\\ScopeInterface::SCOPE_STORE);\n }", "function update_most_popular_item_3($p_setting_value){\n global $db;\n $query = \"UPDATE settings\n SET setting_value = '$p_setting_value'\n WHERE setting_name = 'most_popular_item_3'\n \";\n \n mysqli_query($db, $query);\n mysqli_commit($db);\n return TRUE;\n }", "public function getProductCondition() {\n //return the value product condition\n return $this->ProductCondition;\n }", "public function setMaximumOrderAmount()\n {\n $oBasket = $this->getBasket();\n $oRequest = $this->getPayPalRequest();\n\n $oRequest->setParameter(\"MAXAMT\", $this->_formatFloat(($oBasket->getPrice()->getBruttoPrice() + $oBasket->getDiscountSumPayPalBasket() + $this->getMaxDeliveryAmount() + 1)));\n }", "public function getMaxVersions()\r\n {\r\n return $this->maxVersions;\r\n }", "public function getMax();", "protected function maxCompare()\n {\n if(! $this->isEmpty()) {\n\n if(is_null($this->maxComparator)) {\n $this->maxComparator = $this->first();\n }\n\n foreach($this->items as $comparator) {\n if($comparator->getPoints() > $this->maxComparator->getPoints()) {\n $this->maxComparator = $comparator;\n }\n }\n\n return $this->maxComparator;\n }\n }", "public function getProductPriceX()\n {\n return Mage::getStoreConfig('splitprice/split_price_config/maximum_splits');\n }", "public function getPriority(): int\n {\n return 98;\n }", "function set_most_sold($id) {\n\t\t$subtree_categories = $this->subtree_ids($id);\n\t\t//\tnajdu nejvice prodavane aktivni produkty za posledni mesic\n\t\t$from = date('Y-m-d', strtotime('-3 months'));\n\t\t$to = date('Y-m-d');\n\t\t$products = $this->CategoriesProduct->find('all', array(\n\t\t\t'conditions' => array(\n\t\t\t\t'CategoriesProduct.category_id' => $subtree_categories,\n\t\t\t\t'NOT' => array('OrderedProduct.product_quantity' => null),\n\t\t\t\t'Product.active' => true,\n\t\t\t\t'DATE(Order.created) >=' => $from,\n\t\t\t\t'DATE(Order.created) <=' => $to\n\t\t\t),\n\t\t\t'contain' => array('Product'),\n\t\t\t'joins' => array(\n\t\t\t\tarray(\n\t\t\t\t\t'table' => 'ordered_products',\n\t\t\t\t\t'alias' => 'OrderedProduct',\n\t\t\t\t\t'type' => 'LEFT',\n\t\t\t\t\t'conditions' => array('OrderedProduct.product_id = CategoriesProduct.product_id')\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'table' => 'orders',\n\t\t\t\t\t'alias' => 'Order',\n\t\t\t\t\t'type' => 'LEFT',\n\t\t\t\t\t'conditions' => array('Order.id = OrderedProduct.order_id')\n\t\t\t\t)\n\t\t\t),\n\t\t\t'fields' => array('CategoriesProduct.product_id', 'CategoriesProduct.quantity'),\n\t\t\t'group' => 'CategoriesProduct.id',\n\t\t\t'limit' => $this->CategoriesMostSoldProduct->count,\n\t\t\t'order' => array('CategoriesProduct.quantity' => 'desc')\n\t\t));\n\n\t\t// zapamatuju si je v db\n\t\tforeach ($products as $product) {\n\t\t\t$save = array(\n\t\t\t\t'CategoriesMostSoldProduct' => array(\n\t\t\t\t\t'category_id' => $id,\n\t\t\t\t\t'product_id' => $product['CategoriesProduct']['product_id']\n\t\t\t\t)\n\t\t\t);\n\t\n\t\t\t$this->CategoriesMostSoldProduct->create();\n\t\t\tif (!$this->CategoriesMostSoldProduct->save($save)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public function orderProduct($qty, $updateRealStock = false) {\n \n $stockQuantity = $this->quantity;\n \n if ($stockQuantity >= $qty) {\n // stock is ok\n $stockQuantity -= $qty;\n }\n else {\n // stock is lower\n if ($this->when_out_of_stock == 1) {\n // allow order with 0 stock\n $stockQuantity = 0;\n $this->save();\n return $qty;\n }\n elseif ($stockQuantity > 0) {\n // allow max when i have\n $qty = ((int)($stockQuantity / $this->minimum_quantity)) * $this->minimum_quantity;\n $stockQuantity = $stockQuantity - $qty;\n }\n else {\n $qty = 0;\n }\n }\n \n if ($updateRealStock) {\n $this->quantity = $stockQuantity;\n $this->save();\n }\n \n return $qty;\n }", "function get_version_max() {\n return $this->version_max;\n }", "public function getPriority() : int;", "public function getProductDefaultValue() {\n //initialize dummy value.. no content header.pure html\n $sql = null;\n $productId = null;\n if ($this->getVendor() == self::MYSQL) {\n $sql = \"\n SELECT `productId`\n FROM `product`\n WHERE `isActive` = 1\n AND `companyId` = '\" . $this->getCompanyId() . \"'\n AND \t `isDefault` =\t 1\n LIMIT 1\";\n } else {\n if ($this->getVendor() == self::MSSQL) {\n $sql = \"\n SELECT TOP 1 [productId],\n FROM [product]\n WHERE [isActive] = 1\n AND [companyId] = '\" . $this->getCompanyId() . \"'\n AND \t [isDefault] = 1\";\n } else {\n if ($this->getVendor() == self::ORACLE) {\n $sql = \"\n SELECT PRODUCTID AS \\\"productId\\\",\n FROM PRODUCT\n WHERE ISACTIVE = 1\n AND COMPANYID = '\" . $this->getCompanyId() . \"'\n AND \t ISDEFAULT\t =\t 1\n AND \t\t ROWNUM\t =\t 1\";\n } else {\n header('Content-Type:application/json; charset=utf-8');\n echo json_encode(array(\"success\" => false, \"message\" => $this->t['databaseNotFoundMessageLabel']));\n exit();\n }\n }\n }\n try {\n $result = $this->q->fast($sql);\n } catch (\\Exception $e) {\n echo json_encode(array(\"success\" => false, \"message\" => $e->getMessage()));\n exit();\n }\n if ($result) {\n $row = $this->q->fetchArray($result);\n $productId = $row['productId'];\n }\n return $productId;\n }", "function getPriority() {\n\t\treturn $this->data_array['priority'];\n\t}", "function update_most_popular_item_2($p_setting_value){\n global $db;\n $query = \"UPDATE settings\n SET setting_value = '$p_setting_value'\n WHERE setting_name = 'most_popular_item_2'\n \";\n \n mysqli_query($db, $query);\n mysqli_commit($db);\n return TRUE;\n }", "function wpseo_metabox_prio( $priority )\n {\n return 'low';\n }", "public function getMax(): float;", "public function ultimoProduto()\n {\n //$conexao = $c->conexao();\n\n $query = \"SELECT max(id)id FROM tbproduto c;\";\n $query = $this->conexao->query($query);\n $row = $query->fetch_assoc();\n\n return $row;\n }" ]
[ "0.5611845", "0.55634594", "0.55188906", "0.54221916", "0.52013373", "0.51861286", "0.51384854", "0.5124619", "0.5112244", "0.5099469", "0.5098224", "0.5093825", "0.50820506", "0.5073577", "0.5049986", "0.5008345", "0.4957796", "0.49454227", "0.49358344", "0.49246818", "0.4916702", "0.49162447", "0.4914957", "0.49140835", "0.49136224", "0.49108437", "0.48773548", "0.48692623", "0.48579162", "0.4845989", "0.48404214", "0.48234537", "0.48151973", "0.48149937", "0.48026446", "0.4783419", "0.4783419", "0.4765686", "0.47567388", "0.47544488", "0.47478577", "0.4742448", "0.4736711", "0.47341007", "0.47143483", "0.4714071", "0.47121808", "0.47041473", "0.4697159", "0.46950382", "0.46730706", "0.46701902", "0.46615794", "0.46579385", "0.46502092", "0.46501622", "0.4646816", "0.46381837", "0.46370173", "0.46370173", "0.46370173", "0.46370173", "0.46370173", "0.46362197", "0.46362197", "0.46362197", "0.46362197", "0.46362197", "0.46362197", "0.46361154", "0.46361154", "0.46361154", "0.46353683", "0.46353683", "0.46353683", "0.46353683", "0.46353683", "0.4629631", "0.46269974", "0.4625983", "0.46205822", "0.46171978", "0.46152878", "0.4611184", "0.46038136", "0.45998716", "0.45973668", "0.45964578", "0.45946068", "0.4593888", "0.45932892", "0.4583437", "0.45829293", "0.45805898", "0.45761418", "0.45752674", "0.45638925", "0.4560007", "0.45564654", "0.45555043" ]
0.60450184
0
Query to find max value of priority in Departments within Product Use to update stocks by priority within Product
public function queryMaxPriorityWithinProduct(Product $product): Query { $qb = $this->createQueryBuilder('d'); return $qb ->select($qb->expr()->max('d.priority')) ->innerJoin('d.productVariant', 'pv') ->where('pv.product = :product') ->setParameter('product', $product) ->groupBy('pv.product') ->getQuery(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_max_product_price()\n\t{\n\t\t$this->db->select('MAX(product_selling_price) AS price')->from('product')->where(\"product_status = 1\");\n\t\t$query = $this->db->get();\n\t\t$result = $query->row();\n\t\t\n\t\treturn $result->price;\n\t}", "function getPriceMax($game_id, $round_number, $product_number, $region_number, $channel_number){\r\n\t\t\t$prices=new Model_DbTable_Decisions_Mk_Prices();\r\n\t\t\t$max=0;\r\n\t\t\t$companies=$this->getCompaniesInGame($game_id);\r\n\t\t\tforeach ($companies as $company) {\r\n\t\t\t\t$result=$prices->getDecision($game_id, $company['id'], $round_number);\r\n\t\t\t\t$result_product=$result['product_'.$product_number];\r\n\t\t\t\t$result_channel=$result_product['channel_'.$channel_number];\r\n\t\t\t\t$result_region=$result_channel['region_'.$region_number];\r\n\t\t\t\t$price=$result_region;\r\n\t\t\t\tif ($price>$max){\r\n\t\t\t\t\t$max=$price;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn $max;\r\n\t\t}", "public function setBestPrice($product_id) {\n $query = \"SELECT * FROM wp_pwgb_postmeta WHERE post_id=:product_id;\";\n $stm = $this->db->prepare($query);\n $stm->bindValue(\":product_id\", $product_id, PDO::PARAM_INT);\n $stm->execute();\n\n $response = $stm->fetchAll(PDO::FETCH_ASSOC);\n $tag_prices = $this->productPrice();\n $theBest = ['price' => 0];\n $otherPrices = [];\n $hasChanged = false;\n\n // Obtiene el mejor precio anterior\n foreach ($response as $metadata) {\n // Mejor precio\n if (isset($metadata['meta_key']) && $metadata['meta_key'] == 'price_best') {\n $theBest['price'] = $metadata['meta_value'];\n }\n\n // Mejor tienda\n if (isset($metadata['meta_key']) && $metadata['meta_key'] == 'best_shop') {\n $theBest['shop'] = $metadata['meta_value'];\n }\n\n // Obtiene el precio de otras tiendas\n foreach ($tag_prices as $price) {\n if (isset($metadata['meta_key']) && $metadata['meta_key'] == $price) {\n $otherPrices[$price] = (int) $metadata['meta_value'];\n }\n }\n }\n\n $oldPrice = $theBest['price'];\n // Obtiene el nuevo mejor precio\n foreach ($otherPrices as $store => $price) {\n if (($price > 0) && ($price < $theBest['price'])) {\n $theBest['price'] = $price;\n $theBest['shop'] = $store;\n $hasChanged = true;\n }\n }\n\n // Si el mejor precio cambio, lo actualiza y lo guarda en el historial\n if ($hasChanged) {\n $query = \"INSERT INTO dw_historial (product_id, price_old, price_new, created_at) VALUES \n (:product_id, :price_old, :price_new, NOW());\";\n $stm2 = $this->db->prepare($query);\n $stm2->bindValue(\":product_id\", $product_id, PDO::PARAM_INT);\n $stm2->bindValue(\":price_old\", $oldPrice, PDO::PARAM_INT);\n $stm2->bindValue(\":price_new\", $theBest['price'], PDO::PARAM_INT);\n $stm2->execute();\n\n $query = \"UPDATE wp_pwgb_postmeta SET meta_value=:price_new WHERE post_id=:product_id AND meta_key='price_best';\";\n $stm3 = $this->db->prepare($query);\n $stm3->bindValue(\":product_id\", $product_id, PDO::PARAM_INT);\n $stm3->bindValue(\":price_new\", $theBest['price'], PDO::PARAM_INT);\n $stm3->execute();\n\n $query = \"UPDATE wp_pwgb_postmeta SET meta_value=:best_shop WHERE post_id=:product_id AND meta_key='best_shop';\";\n $stm4 = $this->db->prepare($query);\n $stm4->bindValue(\":product_id\", $product_id, PDO::PARAM_INT);\n $stm4->bindValue(\":best_shop\", $theBest['shop'], PDO::PARAM_STR);\n $stm4->execute();\n }\n }", "public function getMaxPrice();", "public function getMaxPrice() {\n return $this->get(self::MAXPRICE);\n }", "private function getLastPriority(EnumValueRepository $repo): int\n {\n return (int) $repo->createQueryBuilder('e')\n ->select('MAX(e.priority)')\n ->setMaxResults(1)\n ->getQuery()\n ->getOneOrNullResult(AbstractQuery::HYDRATE_SINGLE_SCALAR);\n }", "public function getPriority(): int;", "public function getPriority(): int;", "public function getBestPrice() {\n\t\ttry {\n\t\t\treturn Mage::getSingleton ( 'meinpaket/service_productData_requestService' )->requestBestPrices ();\n\t\t} catch ( Exception $e ) {\n\t\t\tMage::logException ( $e );\n\t\t}\n\t\treturn null;\n\t}", "public function getHighestPriority()\n {\n return max(array_keys($this->_mappersByPriority));\n }", "public function getProductsMaxPrice()\n {\n return $this->filterData['max'] ?? '';\n }", "function get_maxordqty_pid($fid,$pid)\r\n\t{\r\n\t\treturn $this->db->query(\"select (sum(max_allowed_qty)-sum(qty)) as allowed_qty \r\n\t\t\t\t\t\t\t\tfrom \r\n\t\t\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\t\t\t(select 0 as max_allowed_qty,ifnull(sum(a.quantity),0) as qty \r\n\t\t\t\t\t\t\t\t\t\tfrom king_orders a \r\n\t\t\t\t\t\t\t\t\t\tjoin king_dealitems b on a.itemid = b.id \r\n\t\t\t\t\t\t\t\t\t\tjoin king_transactions c on c.transid = a.transid \r\n\t\t\t\t\t\t\t\t\t\twhere b.pnh_id = ? and a.status !=3 and franchise_id = ? and date(from_unixtime(c.init)) = curdate() \r\n\t\t\t\t\t\t\t\t\t) \r\n\t\t\t\t\t\t\t\t\tunion \r\n\t\t\t\t\t\t\t\t\t(select max_allowed_qty,0 from king_dealitems where pnh_id = ? and max_allowed_qty > 0 ) \r\n\t\t\t\t\t\t\t\t) as g\",array($pid,$fid,$pid))->row()->allowed_qty*1;\r\n\r\n\t}", "public function max_sale(){\n\n global $database;\n $sql = \"SELECT product_id, SUM(product_quaty) FROM orders_index GROUP by product_id ORDER BY SUM(product_quaty) DESC LIMIT 1\";\n $result_set = $database->query($sql);\n $row = mysqli_fetch_array($result_set);\n $result = array_shift($row);\n return $result;\n }", "public function getPriority() {}", "public function getPriority() {}", "public function getPriority() {}", "public function getPriority() {}", "public function getPriority() {}", "public function getPriority() {}", "public function getPriority() {}", "public function getPriority() {}", "public function getPriority() {}", "public function getPriority() {}", "public function getPriority() {}", "public function getPriority() {}", "public function getPriority() {}", "public function getPriority() {}", "public function getPriority() {}", "public function getPriority() {}", "public function getPriority() {}", "public function getPriority() {}", "public function getPriority() {}", "function bestTimeToBuyAndSellStock($arr) {\n $len = count($arr);\n $minPrice = 999;\n $maxPro = 0;\n for ($i=0; $i<$len; $i++) {\n $minPrice = min($minPrice, $arr[$i]);\n $maxPro = max($maxPro, $arr[$i] - $minPrice);\n }\n return $maxPro;\n}", "public function priority()\n {\n return 'high';\n }", "public function manualUpdatePriority($value, $id)\n {\n $where = sprintf(\n '%s IN (%s)',\n DbTable_Product::COL_PRODUCT_ID,\n $this->_dao->getAdapter()->quote($id)\n );\n $params = array(DbTable_Product::COL_PRODUCT_PRIORITY => intval($value));\n Application_Cache_Default::getInstance()->resetHomeProduct();\n Application_Cache_Default::getInstance()->cleanTags(array(Application_Constant_Global::KEY_COMPONENT_PRODUCT));\n return $this->_dao->update($params, $where);\n }", "public function getHighestOrderNumber()\n {\n return ((int) self::max($this->determineOrderColumnName())) + 1;\n }", "public function getPriority(): int\n {\n return 98;\n }", "public function getMaximumQuantity()\n {\n return $this->maximumQuantity;\n }", "public abstract function max(callable|Comparator $cmp = null): Optional;", "public function getPriority(): int\n {\n return 56;\n }", "public function MaxOrdering()\n\t{\n\t\t$query = \"SELECT (max(ordering)+1) FROM #__extensions where folder='redshop_shipping'\";\n\t\t$this->_db->setQuery($query);\n\n\t\treturn $this->_db->loadResult();\n\t}", "public function getPriority() : int;", "public function getMaxPrice()\n\n {\n\n return $this->maxPrice;\n }", "public function isHighestPriority(): bool;", "function twentynineteen_child_wc_qty_input_args( $args, $product ) {\n\n $product_id = $product->get_parent_id() ? $product->get_parent_id() : $product->get_id();\n\n $product_min = twentynineteen_child_wc_min_limit( $product_id );\n if ( ! empty( $product_min ) ) {\n // min is empty\n if ( false !== $product_min ) {\n $args['min_value'] = $product_min;\n }\n }\n\n if ( $product->managing_stock() && ! $product->backorders_allowed() ) {\n $stock = $product->get_stock_quantity();\n $args['max_value'] = min( $stock, $args['max_value'] );\t\n }\n return $args;\n }", "public function getPriority();", "public function getPriority();", "public function getPriority();", "public function getPriority();", "public function getPriority();", "public function getPriority();", "public function getPriority();", "function set_priority($ID, $dir, /*optional from here */ $whereFilter='', $absolute=0,$options=array()){\n\tglobal $set_priority, $qr, $qx, $fl, $ln;\n\t//reset\n\t$set_priority=array();\n\textract($options);\n\tif(!$priorityTable)$priorityTable='finan_items';\n\tif(!$priorityField)$priorityField='Priority';\n\tif(!$whereFilter)$whereFilter=1;\n\tif(!$cnx)$cnx=$qx['defCnxMethod'];\n\t//better query\n\t$data=q(\"SELECT COUNT(DISTINCT Priority) AS 'Distinct', COUNT(*) AS Count, MIN($priorityField) AS min, MAX($priorityField) AS max FROM $priorityTable WHERE $whereFilter\", O_ROW);\n\tif($debug)prn($qr);\n\textract($data);\n\tif($Distinct==$max && $Count==$max && $min==1){\n\t\t//sequence is clean\n\t\t//echo 'ok';\n\t}else{\n\t\t//clean sequence\n\t\t$ids=q(\"SELECT ID FROM $priorityTable WHERE $whereFilter ORDER BY $priorityField\", O_COL);\n\t\tif($debug)prn($qr);\n\t\tforeach($ids as $v){\n\t\t\t$e++;\n\t\t\tq(\"UPDATE $priorityTable SET $priorityField=$e WHERE ID='$v'\");\n\t\t\tif($debug)prn($qr);\n\t\t}\n\t\t$max=$e;\n\t}\n\tif($thispriority=q(\"SELECT $priorityField FROM $priorityTable WHERE ID='$ID'\", O_VALUE)){\n\t\tif($debug)prn($qr);\n\t\tif($dir==1 && $thispriority>1){\n\t\t\t//i.e. move product up\n\t\t\tif($absolute){\n\t\t\t\tq(\"UPDATE $priorityTable SET $priorityField=$priorityField+1 WHERE $whereFilter AND $priorityField<$thispriority\", $cnx);\n\t\t\t\tif($debug)prn($qr);\n\t\t\t\tq(\"UPDATE $priorityTable SET $priorityField=1 WHERE ID=$ID\", $cnx);\n\t\t\t\tif($debug)prn($qr);\n\t\t\t}else{\n\t\t\t\t//swap\n\t\t\t\tq(\"UPDATE $priorityTable SET $priorityField=$priorityField+1 WHERE $whereFilter AND $priorityField+1=$thispriority\", $cnx);\n\t\t\t\tif($debug)prn($qr);\n\t\t\t\tq(\"UPDATE $priorityTable SET $priorityField=$thispriority-1 WHERE ID=$ID\", $cnx);\n\t\t\t\tif($debug)prn($qr);\n\t\t\t}\n\t\t}else if($dir==-1 && $thispriority<$max){\n\t\t\t//move product down\n\t\t\tif($absolute){\n\t\t\t\tq(\"UPDATE $priorityTable SET $priorityField=$priorityField-1 WHERE $whereFilter AND $priorityField>$thispriority\", $cnx);\n\t\t\t\tif($debug)prn($qr);\n\t\t\t\tq(\"UPDATE $priorityTable SET $priorityField=$max WHERE ID=$ID\", $cnx);\n\t\t\t\tif($debug)prn($qr);\n\t\t\t}else{\n\t\t\t\t//swap\n\t\t\t\tq(\"UPDATE $priorityTable SET $priorityField=$priorityField-1 WHERE $whereFilter AND $priorityField-1=$thispriority\", $cnx);\n\t\t\t\tif($debug)prn($qr);\n\t\t\t\tq(\"UPDATE $priorityTable SET $priorityField=$priorityField+1 WHERE ID=$ID\", $cnx);\n\t\t\t\tif($debug)prn($qr);\n\t\t\t}\n\t\t}else{\n\t\t\t$set_priority['notice']='no move needed';\n\t\t}\n\t}else{\n\t\t$set_priority['error']='id of target record not found in group';\n\t}\n\tif($debug)prn($set_priority);\n}", "public function getMaxID(){\n\t\t try{\n\t\t\t$conn = DBConnection::GetConnection();\t\n\t\t\t$queryForGetMaxId=\"SELECT MAX(product_id) AS max_value FROM product\";\n\t\t\t$max_result=$conn->prepare($queryForGetMaxId);\n\t\t\t$max_result->execute();\n\t\t\t$maxId = $max_result->fetch(PDO::FETCH_ASSOC); \n\t\t\t$pId=$maxId['max_value']; \n\t\t\t$incrementPid=$pId+1;\n\t\t\treturn $incrementPid;\n\t\t}catch(PDOException $e){\n\t\t\techo 'Fail to connect';\n\t\t\techo $e->getMessage();\n\t\t}\t\n }", "public function current_priority()\n {\n }", "public function getPriority(): int\n {\n return -1;\n }", "function getPriority() {\n\t\treturn $this->data_array['priority'];\n\t}", "function getPriority() ;", "function getPriority() ;", "function getPriority() ;", "function getPriority() ;", "function getPriority() ;", "function getPriority() ;", "function getPriority() ;", "public function getPriority(): int\n {\n return max(1, min(100, $this->priority));\n }", "private function getMaxAvailableVersion()\n {\n echo \"Getting the max available version: \";\n\n $maxAvailableVersion = 0;\n\n foreach ($this->getDeltas() as $deltaNum => $delta) {\n if ($maxAvailableVersion < $deltaNum) {\n $maxAvailableVersion = $deltaNum;\n }\n }\n\n echo \"$maxAvailableVersion.\\n\";\n\n return $maxAvailableVersion;\n }", "public function high_post_test(){\n\t\t$query = \"\n\t\tSELECT Max(`B`.`PROSCR_VALUE`) AS 'max_post_test', `c`.`MEMBER_NAME`, `c`.`MEMBER_EMAIL`, `B`.`PROSCR_PROTEST_TYPE`,\n\t\t`c`.`PROPAR_PROGRAM_ID` \n\t\tFROM\n\t\t`t_program_testing` AS `A` INNER JOIN `t_program_score` AS `B` ON `A`.`PROTEST_PROGRAM_ID` = `B`.`PROSCR_PROPAR_ID`\n\t\tINNER JOIN `V_PROGRAM_PARTICIPANT` AS `c` ON `B`.`PROSCR_PROPAR_ID` = `c`.`PROPAR_PROGRAM_ID`\n\t\tWHERE\n\t\t`B`.`PROSCR_PROTEST_TYPE` = 2 \";\n\t\treturn $this->db->query($query);\n\t}", "public function queryMaxPriorityWithinVariant(ProductVariant $productVariant): Query\n {\n $qb = $this->createQueryBuilder('d');\n\n return $qb\n ->select($qb->expr()->max('d.priority'))\n ->where('d.productVariant = :productVariant')\n ->setParameter('productVariant', $productVariant)\n ->groupBy('d.productVariant')\n ->getQuery();\n }", "public function getPriority(): int\n {\n }", "function _get_product_stock($product_id = 0)\r\n {\r\n return @$this->db->query(\"select sum(available_qty) as t from t_stock_info where product_id = ? and available_qty >= 0 \",$product_id)->row()->t;\r\n }", "function getHighestPriorityRecord() {\n $count = sizeOf($this->records);\n for ($i = 0; $i < $count; $i++) {\n if ($this->records[$i]->getCol() != -1) {\n return $i;\n }\n }\n return -1;\n }", "public function bestProduct() {\n $bestProducts = Producer::join(\"users\", \"producers.user_id\", \"=\", \"users.id\")\n ->join(\"products\", \"producers.product_id\", \"=\", \"products.id\")\n ->where(\"quantity\", \">\", \"0\")\n ->orderBy(\"amountSell\", \"desc\")\n ->limit(5)\n ->get();\n return ProducerResource::collection($bestProducts);\n }", "public function getPriority(): int\n {\n return 4;\n }", "function updatePriceLevel($siteDb)\n{\n global $db, $conf;\n\n if (!empty($conf->global->PRODUIT_MULTIPRICES) && $siteDb->price_level > 0 && $siteDb->price_level <= intval($conf->global->PRODUIT_MULTIPRICES_LIMIT)) {\n $sql = 'SELECT p.rowid';\n $sql.= ' FROM ' . MAIN_DB_PREFIX . 'product as p';\n $sql.= ' LEFT JOIN ' . MAIN_DB_PREFIX . \"categorie_product as cp ON p.rowid = cp.fk_product\";\n $sql.= ' WHERE p.entity IN (' . getEntity('product', 1) . ')';\n $sql.= ' AND cp.fk_categorie = ' . $siteDb->fk_cat_product;\n $sql.= ' GROUP BY p.rowid';\n\n $db->begin();\n\n dol_syslog(\"updatePriceLevel sql=\" . $sql);\n $resql = $db->query($sql);\n if ($resql) {\n $product = new Product($db);\n $eCommerceProduct = new eCommerceProduct($db);\n\n while ($obj = $db->fetch_object($resql)) {\n $product->fetch($obj->rowid);\n $eCommerceProduct->fetchByProductId($obj->rowid, $siteDb->id);\n\n if ($eCommerceProduct->remote_id > 0) {\n $eCommerceSynchro = new eCommerceSynchro($db, $siteDb);\n $eCommerceSynchro->connect();\n if (count($eCommerceSynchro->errors)) {\n dol_syslog(\"updatePriceLevel eCommerceSynchro->connect() \".$eCommerceSynchro->error, LOG_ERR);\n setEventMessages($eCommerceSynchro->error, $eCommerceSynchro->errors, 'errors');\n\n $db->rollback();\n return -1;\n }\n\n $product->price = $product->multiprices[$siteDb->price_level];\n\n $result = $eCommerceSynchro->eCommerceRemoteAccess->updateRemoteProduct($eCommerceProduct->remote_id, $product);\n if (!$result) {\n dol_syslog(\"updatePriceLevel eCommerceSynchro->eCommerceRemoteAccess->updateRemoteProduct() \".$eCommerceSynchro->eCommerceRemoteAccess->error, LOG_ERR);\n setEventMessages($eCommerceSynchro->eCommerceRemoteAccess->error, $eCommerceSynchro->eCommerceRemoteAccess->errors, 'errors');\n\n $db->rollback();\n return -2;\n }\n } else {\n dol_syslog(\"updatePriceLevel Product with id \" . $product->id . \" is not linked to an ecommerce record but has category flag to push on eCommerce. So we push it\");\n // TODO\n //$result = $eCommerceSynchro->eCommerceRemoteAccess->updateRemoteProduct($eCommerceProduct->remote_id);\n }\n }\n }\n\n $db->commit();\n }\n\n return 1;\n}", "public function max(): Option;", "public function ultimoProduto()\n {\n //$conexao = $c->conexao();\n\n $query = \"SELECT max(id)id FROM tbproduto c;\";\n $query = $this->conexao->query($query);\n $row = $query->fetch_assoc();\n\n return $row;\n }", "protected function max_value() {\n $max = 0;\n foreach ($this->data_collections as $data_collection) {\n foreach ($data_collection->get_items() as $item) {\n if ($max < $item->get_value()) {\n $max = $item->get_value();\n }\n }\n }\n return $max;\n }", "public function getPriority()\r\n {\r\n return $this->priority;\r\n }", "function _upd_product_stock($prod_id=0,$mrp=0,$bc='',$loc_id=0,$rb_id=0,$p_stk_id=0,$qty=0,$update_by=0,$stk_movtype=0,$update_by_refid=0,$mrp_change_updated=-1,$msg='')\r\n {\r\n $user = $this->erpm->auth();\r\n\r\n if(!$prod_id)\r\n show_error(\"Invalid product 0 given\");\r\n\r\n if(!$p_stk_id)\r\n {\r\n // check if product stock entry is availble\r\n if(!$this->db->query(\"select count(*) as t from t_stock_info where product_id = ? and available_qty >= 0 \",$prod_id)->row()->t)\r\n {\r\n // create stock entry and update log for new insertion\r\n $p_stk_id = $this->_create_stock_entry($prod_id,$mrp,$bc,$loc_id,$rb_id);\r\n }else\r\n {\r\n\r\n // process stock info to get most relavent stock entry by barcode,mrp,location\r\n $stk_det_res = $this->db->query(\"select stock_id,product_id,mrp,product_barcode,bc_match,\r\n length(product_barcode) as bc_len,length(?) as i_bc_len,\r\n location_id,rack_bin_id,available_qty,sum(mrp_match+bc_match) as r from (\r\n select a.stock_id,a.product_id,mrp,if(mrp=?,1,0) as mrp_match,\r\n product_barcode,if(product_barcode=?,1,0) as bc_match,\r\n location_id,rack_bin_id,available_qty\r\n from t_stock_info a\r\n where product_id = ? and available_qty >= 0 and location_id=? and rack_bin_id= ?\r\n having mrp_match and if(length(?),(length(product_barcode) = 0 or bc_match = 1),1)\r\n order by mrp_match desc,bc_match desc ) as g\r\n group by stock_id\r\n order by r desc\",array($bc,$mrp,$bc,$prod_id,$loc_id,$rb_id,$bc));\r\n// echo $this->db->last_query();die();\r\n \r\n // if no data found create new stock entry Considering mrp for the product is not found\r\n if(!$stk_det_res->num_rows())\r\n {\r\n $this->_create_stock_entry($prod_id,$mrp,$bc,$loc_id,$rb_id);\r\n }\r\n else\r\n {\r\n // Product stock relavent data fetched which has matching mrp with stock mrp\r\n $stk_det = $stk_det_res->row_array();\r\n\r\n // update stock with the requested qty where best match stock id is known\r\n $p_stk_id = $stk_det['stock_id'];\r\n\r\n if(strlen($bc) > 0 && $stk_det['bc_length'] == 0)\r\n {\r\n // update product stock with the given barcode for suggestion.\r\n $this->db->query(\"update t_stock_info set product_barcode = ?,modified_by=?,modified_on=now() where stock_id = ? \",array($bc,$user['userid'],$p_stk_id));\r\n }\r\n\r\n }\r\n }\r\n }\r\n\r\n // update product stock available qty by stock id\r\n // update stock log\r\n\r\n if(!$qty)\r\n return $p_stk_id;\r\n\r\n $this->db->query(\"update t_stock_info set available_qty=available_qty\".($stk_movtype==1?\"+\":\"-\").\"?,modified_by=?,modified_on=now() where stock_id = ? and available_qty >= 0 \",array($qty,$user['userid'],$p_stk_id));\r\n\r\n // if by grn\r\n $ins_data = array();\r\n $ins_data['product_id'] = $prod_id;\r\n $ins_data['update_type'] = $stk_movtype;\r\n\r\n if($update_by == 1)\r\n $ins_data['p_invoice_id'] = $update_by_refid; // stock update by proforma invoice\r\n else if($update_by == 2)\r\n $ins_data['corp_invoice_id'] = $update_by_refid; // stock update by corp invoicing\r\n else if($update_by == 3)\r\n $ins_data['invoice_id'] = $update_by_refid; // stock update by invoice cancel\r\n else if($update_by == 4)\r\n $ins_data['grn_id'] = $update_by_refid; // stock update by stock intake\r\n else if($update_by == 5)\r\n $ins_data['voucher_book_slno'] = $update_by_refid; // stock update by voucher book\r\n else if($update_by == 6)\r\n $ins_data['return_prod_id'] = $update_by_refid; // stock update by product return ref id\r\n\r\n $ins_data['qty'] = $qty;\r\n $ins_data['current_stock'] = $this->_get_product_stock($prod_id);\r\n $ins_data['msg'] = $msg;\r\n $ins_data['mrp_change_updated'] = $mrp_change_updated;\r\n $ins_data['stock_info_id'] = $p_stk_id;\r\n $ins_data['stock_qty'] = $this->_get_product_stock_bystkid($p_stk_id);\r\n $ins_data['created_on'] = cur_datetime();\r\n $ins_data['created_by'] = $user['userid'];\r\n\r\n $this->db->insert(\"t_stock_update_log\",$ins_data);\r\n if($this->db->affected_rows() == 1)\r\n return true;\r\n\r\n return false;\r\n\r\n }", "private function selectProductLowStock(){\n\t\t$data = $this->connection->createCommand('select id, sku, name, minimum_quantity, quantity from product where minimum_quantity is not null and quantity <= minimum_quantity and product_type_id = 2 and tenant_id = '. $this->tenant)->queryAll();\n\t\tforeach($data as $key => $value){\t\n\t\t\t$sqlBalance = 'select * from stock_balance where product_id = '. $value['id'];\n\t\t\t$sqlBalance = $this->connection->createCommand($sqlBalance)->queryOne();\n\t\t\tif(!empty($sqlBalance['warehouse_id'])){\n\t\t\t\t$sqlBalance['warehouse_id'] = $this->connection->createCommand('select id,name from warehouse where id = '. $sqlBalance['warehouse_id'])->queryOne();\n\t\t\t\t$data[$key]['balance'] = $sqlBalance;\n\t\t\t}\n\t\t}\n\t\treturn $data;\n\t}", "public function getMaximalPrice()\n {\n if (!$this->maximalPrice) {\n $maximalPrice = $this->product->getMaximalPrice();\n if ($maximalPrice === null) {\n $maximalPrice = $this->getValue();\n } else {\n $maximalPrice = $this->priceCurrency->convertAndRound($maximalPrice);\n }\n $this->maximalPrice = $this->calculator->getAmount($maximalPrice, $this->product);\n }\n return $this->maximalPrice;\n }", "function do_get_max_s_id() {\n\t# Dim some Vars\n\t\tglobal $_CCFG, $_DBCFG, $db_coin;\n\t\t$max_s_id = $_CCFG['BASE_SUPPLIER_ID'];\n\n\t# Set Query and select for max field value.\n\t\t$query\t= 'SELECT max(s_id) FROM '.$_DBCFG['suppliers'];\n\t\t$result\t= $db_coin->db_query_execute($query);\n\t\tIF ($db_coin->db_query_numrows($result) ) {\n\n\t\t# Get Max Value\n\t\t\twhile(list($_max_id) = $db_coin->db_fetch_row($result)) {$max_s_id = $_max_id;}\n\t\t}\n\n\t# Check / Set Value for return\n\t\treturn $max_s_id;\n}", "function getMaxprice(){\r\n $q = \"SELECT * FROM maximum\";\r\n $result = $this->query($q);\r\n return $result;\r\n }", "public function getMaxOrderTotal();", "public function fastestProduct()\n {\n return $this->productsSortedByFastest()[0] ?? null;\n }", "protected function maxCompare()\n {\n if(! $this->isEmpty()) {\n\n if(is_null($this->maxComparator)) {\n $this->maxComparator = $this->first();\n }\n\n foreach($this->items as $comparator) {\n if($comparator->getPoints() > $this->maxComparator->getPoints()) {\n $this->maxComparator = $comparator;\n }\n }\n\n return $this->maxComparator;\n }\n }", "public function getHighestAvailableVersion()\n {\n if (array_key_exists(\"highestAvailableVersion\", $this->_propDict)) {\n return $this->_propDict[\"highestAvailableVersion\"];\n } else {\n return null;\n }\n }", "function getPriority() {\t\t\n\t\tif(!$this->owner->getField('Priority')) {\n\t\t\t$parentStack = $this->owner->parentStack();\n\t\t\t$numParents = is_array($parentStack) ? count($parentStack) - 1: 0;\n\t\t\treturn max(0.1, 1.0 - ($numParents / 10));\n\t\t} elseif($this->owner->getField('Priority') == -1) {\n\t\t\treturn 0;\n\t\t} else {\n\t\t\treturn $this->owner->getField('Priority');\n\t\t}\n\t}", "public function getLastPrice($produit) {\r\r\n// $query = \"SELECT bap.prix as prix\r\r\n// FROM BonVenteProduit bap\r\r\n// inner JOIN Produit p\r\r\n// on bap.produit = p.reference\r\r\n// inner Join BonVente ba\r\r\n// on ba.id = bap.bon\r\r\n// where p.reference = ?\r\r\n// ORDER BY ba.date DESC\r\r\n// LIMIT 1;\";\r\r\n\r\r\n $query = \"select MAX(bap.prix)*2 as prix from BonAchatProduit bap where bap.produit = ?\";\r\r\n $req = $this->connexion->getConnexion()->prepare($query);\r\r\n\r\r\n $req->execute(array($produit));\r\r\n\r\r\n $res = $req->fetch(PDO::FETCH_OBJ);\r\r\n\r\r\n return $res;\r\r\n }", "public function getPriority()\n {\n return $this->priority;\n }", "public function getPriority()\n {\n return $this->priority;\n }", "public function getPriority()\n {\n return $this->priority;\n }", "public function getPriority()\n {\n return $this->priority;\n }", "public function getPriority()\n {\n return $this->priority;\n }", "public function getPriority()\n {\n return $this->priority;\n }", "public function getPriority()\n {\n return $this->priority;\n }", "public function priority() : int;", "public function getPriority(): int\n {\n return 0;\n }", "function getPriority()\n {\n return $this->instance->getPriority();\n }", "function getMax() { return $this->readMaxValue(); }" ]
[ "0.5953132", "0.5499873", "0.54741406", "0.54511863", "0.53981304", "0.5387981", "0.5378861", "0.5378861", "0.53587294", "0.53362715", "0.52937794", "0.5286684", "0.5251708", "0.52501214", "0.52501214", "0.52501214", "0.52501214", "0.52501214", "0.5249447", "0.5249447", "0.5249447", "0.5249447", "0.5249447", "0.5249447", "0.5249199", "0.5249199", "0.5249199", "0.52485764", "0.52485764", "0.52485764", "0.52485764", "0.52485764", "0.5243824", "0.5224679", "0.5213653", "0.5195667", "0.5189972", "0.51895684", "0.5189376", "0.51802", "0.51787066", "0.5169754", "0.51678073", "0.5165169", "0.5157963", "0.51547563", "0.51547563", "0.51547563", "0.51547563", "0.51547563", "0.51547563", "0.51547563", "0.5151906", "0.5124111", "0.5107573", "0.50843143", "0.5075922", "0.5073668", "0.5073668", "0.5073668", "0.50733507", "0.50733507", "0.50733507", "0.5072651", "0.5059366", "0.5056545", "0.5055405", "0.5051384", "0.50304073", "0.5029651", "0.50292766", "0.50258803", "0.50115013", "0.5009523", "0.5009112", "0.5006727", "0.5006611", "0.4993467", "0.4985952", "0.49803165", "0.49798116", "0.496716", "0.4966581", "0.4955572", "0.49537888", "0.4938445", "0.49296156", "0.49272427", "0.49270838", "0.49173307", "0.49173307", "0.49173307", "0.49173307", "0.49173307", "0.49173307", "0.49173307", "0.48971152", "0.48957175", "0.48952332", "0.489408" ]
0.57400274
1
Run the database seeds.
public function run() { $user = new User(); $user->name = 'Amelie'; $user->last_name = 'LaJocande'; $user->email = '[email protected]'; $user->password = 'password'; $user->gender = 'female'; $user->phone = '1122334455'; $user->save(); $user = new User(); $user->name = 'Matthew'; $user->last_name = 'Smith'; $user->email = '[email protected]'; $user->password = 'password'; $user->gender = 'male'; $user->phone = '1122334455'; $user->address = 'some address'; $user->save(); $user = new User(); $user->name = 'Yosri'; $user->last_name = 'Wolf'; $user->email = '[email protected]'; $user->password = 'password'; $user->gender = 'male'; $user->phone = '1122334455'; $user->address = 'some address'; $user->save(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function run()\n {\n // $this->call(UserTableSeeder::class);\n // $this->call(PostTableSeeder::class);\n // $this->call(TagTableSeeder::class);\n // $this->call(PostTagTableSeeder::class);\n\n /*AB - use faker to populate table see file ModelFactory.php */\n factory(App\\Editeur::class, 40) ->create();\n factory(App\\Auteur::class, 40) ->create();\n factory(App\\Livre::class, 80) ->create();\n\n for ($i = 1; $i < 41; $i++) {\n $number = rand(2, 8);\n for ($j = 1; $j <= $number; $j++) {\n DB::table('auteur_livre')->insert([\n 'livre_id' => rand(1, 40),\n 'auteur_id' => $i\n ]);\n }\n }\n }", "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 }", "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 }", "public function run()\n {\n $this->call(RoleTableSeeder::class);\n $this->call(UserTableSeeder::class);\n \n factory('App\\Cat', 5)->create();\n $tags = factory('App\\Tag', 8)->create();\n\n factory(Post::class, 15)->create()->each(function($post) use ($tags){\n $post->comments()->save(factory(Comment::class)->make());\n $post->tags()->attach( $tags->random(mt_rand(1,4))->pluck('id')->toArray() );\n });\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('post')->insert(\n [\n 'title' => 'Test Post1',\n 'desc' => str_random(100).\" post1\",\n 'alias' => 'test1',\n 'keywords' => 'test1',\n ]\n );\n DB::table('post')->insert(\n [\n 'title' => 'Test Post2',\n 'desc' => str_random(100).\" post2\",\n 'alias' => 'test2',\n 'keywords' => 'test2',\n ]\n );\n DB::table('post')->insert(\n [\n 'title' => 'Test Post3',\n 'desc' => str_random(100).\" post3\",\n 'alias' => 'test3',\n 'keywords' => 'test3',\n ]\n );\n }", "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 }", "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 }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n\n factory('App\\User', 10 )->create();\n\n $users= \\App\\User::all();\n $users->each(function($user){ factory('App\\Category', 1)->create(['user_id'=>$user->id]); });\n $users->each(function($user){ factory('App\\Tag', 3)->create(['user_id'=>$user->id]); });\n\n\n $users->each(function($user){\n factory('App\\Post', 10)->create([\n 'user_id'=>$user->id,\n 'category_id'=>rand(1,20)\n ]\n );\n });\n\n $posts= \\App\\Post::all();\n $posts->each(function ($post){\n\n $post->tags()->attach(array_unique([rand(1,20),rand(1,20),rand(1,20)]));\n });\n\n }", "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 }", "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 }", "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 }", "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 }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n UsersLevel::create([\n 'name' => 'Administrator'\n ]);\n\n UsersLevel::create([\n 'name' => 'User'\n ]);\n\n User::create([\n 'username' => 'admin',\n 'password' => bcrypt('admin123'),\n 'level_id' => 1,\n 'fullname' => \"Super Admin\",\n 'email'=> \"[email protected]\"\n ]);\n\n\n \\App\\CategoryPosts::create([\n 'name' =>'Paket Trip'\n ]);\n\n \\App\\CategoryPosts::create([\n 'name' =>'Destinasi Kuliner'\n ]);\n\n \\App\\CategoryPosts::create([\n 'name' => 'Event'\n ]);\n\n \\App\\CategoryPosts::create([\n 'name' => 'Profil'\n ]);\n }", "public function run()\n {\n DB::table('users')->insert([\n 'name' => 'Admin',\n 'email' => '[email protected]',\n 'avatar' => \"avatar\",\n 'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi',\n ]);\n $this->call(CategorySeeder::class);\n // \\App\\Models\\Admin::factory(1)->create();\n \\App\\Models\\User::factory(10)->create();\n // \\App\\Models\\Category::factory(50)->create();\n \\App\\Models\\PetComment::factory(50)->create();\n $pets = \\App\\Models\\Pet::factory(50)->create();\n foreach ($pets as $pet) {\n \\App\\Models\\PetTag::factory(1)->create(['pet_id' => $pet->id]);\n \\App\\Models\\PetPhotoUrl::factory(1)->create(['pet_id' => $pet->id]);\n \\App\\Models\\Order::factory(1)->create(['pet_id' => $pet->id]);\n };\n }", "public function run()\n { \n\n $this->call(RoleSeeder::class);\n \n $this->call(UserSeeder::class);\n\n Storage::deleteDirectory('socials-icon');\n Storage::makeDirectory('socials-icon');\n $socials = Social::factory(7)->create();\n\n Storage::deleteDirectory('countries-flag');\n Storage::deleteDirectory('countries-firm');\n Storage::makeDirectory('countries-flag');\n Storage::makeDirectory('countries-firm');\n $countries = Country::factory(18)->create();\n\n // Se llenan datos de la tabla muchos a muchos - social_country\n foreach ($countries as $country) {\n foreach ($socials as $social) {\n\n $country->socials()->attach($social->id, [\n 'link' => 'https://www.facebook.com/ministeriopalabrayespiritu/'\n ]);\n }\n }\n\n Person::factory(50)->create();\n\n Category::factory(7)->create();\n\n Video::factory(25)->create(); \n\n $this->call(PostSeeder::class);\n\n Storage::deleteDirectory('documents');\n Storage::makeDirectory('documents');\n Document::factory(25)->create();\n\n }", "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 payment method\n */\n DB::table('payment')->insert([\n ['name' => 'Mandiri'],\n ['name' => 'BCA'],\n ['name' => 'BRI'],\n ['name' => 'BNI'],\n ['name' => 'Pos Indonesia'],\n ['name' => 'BTN'],\n ['name' => 'Indomaret'],\n ['name' => 'Alfamart'],\n ['name' => 'OVO'],\n ['name' => 'Cash On Delivery']\n ]);\n }", "public function run()\n {\n DatabaseSeeder::seedLearningStylesProbs();\n DatabaseSeeder::seedCampusProbs();\n DatabaseSeeder::seedGenderProbs();\n DatabaseSeeder::seedTypeStudentProbs();\n DatabaseSeeder::seedTypeProfessorProbs();\n DatabaseSeeder::seedNetworkProbs();\n }", "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n // MyList::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 < 3; $i++) {\n MyList::create([\n 'title' => 'List-'.($i+1),\n 'color' => $faker->sentence,\n 'icon' => $faker->randomDigitNotNull,\n 'index' => $faker->randomDigitNotNull,\n 'user_id' => 1,\n ]);\n }\n }", "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n Products::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few products in our database:\n for ($i = 0; $i < 50; $i++) {\n Products::create([\n 'name' => $faker->word,\n 'sku' => $faker->randomNumber(7, false),\n ]);\n }\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n User::create([\n 'name' => 'Pablo Rosales',\n 'email' => '[email protected]',\n 'password' => bcrypt('admin'),\n 'status' => 1,\n 'role_id' => 1,\n 'movil' => 0\n ]);\n\n User::create([\n 'name' => 'Usuario Movil',\n 'email' => '[email protected]',\n 'password' => bcrypt('secret'),\n 'status' => 1,\n 'role_id' => 3,\n 'movil' => 1\n ]);\n\n Roles::create([\n 'name' => 'Administrador'\n ]);\n Roles::create([\n 'name' => 'Operaciones'\n ]);\n Roles::create([\n 'name' => 'Comercial'\n ]);\n Roles::create([\n 'name' => 'Aseguramiento'\n ]);\n Roles::create([\n 'name' => 'Facturación'\n ]);\n Roles::create([\n 'name' => 'Creditos y Cobros'\n ]);\n\n factory(App\\Customers::class, 100)->create();\n }", "public function run()\n {\n // php artisan db:seed --class=StoreTableSeeder\n\n foreach(range(1,20) as $i){\n $faker = Faker::create();\n Store::create([\n 'name' => $faker->name,\n 'desc' => $faker->text,\n 'tags' => $faker->word,\n 'address' => $faker->address,\n 'longitude' => $faker->longitude($min = -180, $max = 180),\n 'latitude' => $faker->latitude($min = -90, $max = 90),\n 'created_by' => '1'\n ]);\n }\n\n }", "public function run()\n {\n DB::table('users')->insert([\n 'name'=>\"test\",\n 'password' => Hash::make('123'),\n 'email'=>'[email protected]'\n ]);\n DB::table('tags')->insert(['name'=>'tags']);\n $this->call(UserSeed::class);\n $this->call(CategoriesSeed::class);\n $this->call(TopicsSeed::class);\n $this->call(CommentariesSeed::class);\n // $this->call(UsersTableSeeder::class);\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n echo 'seeding permission...', PHP_EOL;\n $permissions = [\n 'role-list',\n 'role-create',\n 'role-edit',\n 'role-delete',\n 'formation-list',\n 'formation-create',\n 'formation-edit',\n 'formation-delete',\n 'user-list',\n 'user-create',\n 'user-edit',\n 'user-delete'\n ];\n foreach ($permissions as $permission) {\n Permission::create(['name' => $permission]);\n }\n echo 'seeding users...', PHP_EOL;\n\n $user= User::create(\n [\n 'name' => 'Mr. admin',\n 'email' => '[email protected]',\n 'password' => bcrypt('admin'),\n 'remember_token' => null,\n ]\n );\n echo 'Create Roles...', PHP_EOL;\n Role::create(['name' => 'former']);\n Role::create(['name' => 'learner']);\n Role::create(['name' => 'admin']);\n Role::create(['name' => 'manager']);\n Role::create(['name' => 'user']);\n\n echo 'seeding Role User...', PHP_EOL;\n $user->assignRole('admin');\n $role = $user->assignRole('admin');\n $role->givepermissionTo(Permission::all());\n\n \\DB::table('languages')->insert(['name' => 'English', 'code' => 'en']);\n \\DB::table('languages')->insert(['name' => 'Français', 'code' => 'fr']);\n }", "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 }", "public function run()\n {\n $this->call([\n UserSeeder::class,\n ]);\n\n User::factory(20)->create();\n Author::factory(20)->create();\n Book::factory(60)->create();\n }", "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 }", "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 }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n factory(User::class)->create([\n 'name' => 'Qwerty',\n 'email' => '[email protected]',\n 'password' => bcrypt('secretpassw'),\n ]);\n\n factory(User::class, 59)->create([\n 'password' => bcrypt('secretpassw'),\n ]);\n\n for ($i = 1; $i < 11; $i++) {\n factory(Category::class)->create([\n 'name' => 'Category ' . $i,\n ]);\n }\n\n for ($i = 1; $i < 101; $i++) {\n factory(Product::class)->create([\n 'name' => 'Product ' . $i,\n ]);\n }\n }", "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 }", "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 }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $faker = \\Faker\\Factory::create();\n\n foreach (range(1,5) as $index) {\n Lista::create([\n 'name' => $faker->sentence(2),\n 'description' => $faker->sentence(10), \n ]);\n } \n\n foreach (range(1,20) as $index) {\n $n = $faker->sentence(2);\n \tTarea::create([\n \t\t'name' => $n,\n \t\t'description' => $faker->sentence(10),\n 'lista_id' => $faker->numberBetween(1,5),\n 'slug' => Str::slug($n),\n \t\t]);\n } \n }", "public function run()\n {\n $faker = Faker::create('lt_LT');\n\n DB::table('users')->insert([\n 'name' => 'user',\n 'email' => '[email protected]',\n 'password' => Hash::make('123')\n ]);\n DB::table('users')->insert([\n 'name' => 'user2',\n 'email' => '[email protected]',\n 'password' => Hash::make('123')\n ]);\n\n foreach (range(1,100) as $val)\n DB::table('authors')->insert([\n 'name' => $faker->firstName(),\n 'surname' => $faker->lastName(),\n \n ]);\n }", "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 }", "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n Flight::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 < 100; $i++) {\n\n\n Flight::create([\n 'flightNumber' => $faker->randomNumber(5),\n 'depAirport' => $faker->city,\n 'destAirport' => $faker->city,\n 'reservedWeight' => $faker->numberBetween(1000 - 10000),\n 'deptTime' => $faker->dateTime('now'),\n 'arrivalTime' => $faker->dateTime('now'),\n 'reservedVolume' => $faker->numberBetween(1000 - 10000),\n 'airlineName' => $faker->colorName,\n ]);\n }\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }", "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 }", "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 }", "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 }", "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 }", "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 }", "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('category')->truncate();\n \\DB::table('photos')->truncate();\n \\DB::table('comments')->truncate();\n \\DB::table('comment_replies')->truncate();\n\n \\App\\Models\\User::factory()->times(10)->hasPosts(1)->create();\n \\App\\Models\\Role::factory()->times(10)->create();\n \\App\\Models\\Category::factory()->times(10)->create();\n \\App\\Models\\Comment::factory()->times(10)->hasReplies(1)->create();\n \\App\\Models\\Photo::factory()->times(10)->create();\n\n \n // \\App\\Models\\User::factory(10)->create([\n // 'role_id'=>2,\n // 'is_active'=>1\n // ]);\n\n // factory(App\\Models\\Post::class, 10)->create();\n // $this->call(UsersTableSeeder::class);\n }", "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 }", "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 }", "public function run()\n {\n $this->call(CategoryTableSeeder::class);\n $this->call(ProductTableSeeder::class);\n\n \t\t\n\t\t\tDB::table('users')->insert([\n 'first_name' => 'Ignacio',\n 'last_name' => 'Garcia',\n 'email' => '[email protected]',\n 'password' => bcrypt('123456'),\n 'role' => '1',\n 'avatar' => 'CGnABxNYYn8N23RWlvTTP6C2nRjOLTf8IJcbLqRP.jpeg',\n ]);\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $this->call(RoleSeeder::class);\n $this->call(UserSeeder::class);\n\n Medicamento::factory(50)->create();\n Reporte::factory(5)->create();\n Cliente::factory(200)->create();\n Asigna_valor::factory(200)->create();\n Carga::factory(200)->create();\n }", "public function run()\n {\n $this->call([\n RoleSeeder::class,\n TicketSeeder::class\n ]);\n\n DB::table('departments')->insert([\n 'abbr' => 'IT',\n 'name' => 'Information Technologies',\n 'created_at' => Carbon::now(),\n 'updated_at' => Carbon::now(),\n ]);\n\n DB::table('users')->insert([\n 'name' => 'admin',\n 'email' => '[email protected]',\n 'email_verified_at' => Carbon::now(),\n 'password' => Hash::make('admin'),\n 'department_id' => 1,\n 'avatar' => 'default.png',\n 'created_at' => Carbon::now(),\n 'updated_at' => Carbon::now(),\n ]);\n\n DB::table('role_user')->insert([\n 'role_id' => 1,\n 'user_id' => 1\n ]);\n }", "public function run()\n {\n \\App\\Models\\Article::factory(20)->create();\n \\App\\Models\\Category::factory(5)->create();\n \\App\\Models\\Comment::factory(40)->create();\n\n \\App\\Models\\User::create([\n \"name\"=>\"Alice\",\n \"email\"=>'[email protected]',\n 'password' => Hash::make('password'),\n ]);\n \\App\\Models\\User::create([\n \"name\"=>\"Bob\",\n \"email\"=>'[email protected]',\n 'password' => Hash::make('password'),\n ]);\n }", "public function run()\n {\n /** \n * Note: You must add these lines to your .env file for this Seeder to work (replace the values, obviously):\n SEEDER_USER_FIRST_NAME = 'Firstname'\n SEEDER_USER_LAST_NAME = 'Lastname'\n\t\tSEEDER_USER_DISPLAY_NAME = 'Firstname Lastname'\n\t\tSEEDER_USER_EMAIL = [email protected]\n SEEDER_USER_PASSWORD = yourpassword\n */\n\t\tDB::table('users')->insert([\n 'user_first_name' => env('SEEDER_USER_FIRST_NAME'),\n 'user_last_name' => env('SEEDER_USER_LAST_NAME'),\n 'user_name' => env('SEEDER_USER_DISPLAY_NAME'),\n\t\t\t'user_email' => env('SEEDER_USER_EMAIL'),\n 'user_status' => 1,\n \t'password' => Hash::make((env('SEEDER_USER_PASSWORD'))),\n 'permission_fk' => 1,\n 'created_at' => Carbon::now()->format('Y-m-d H:i:s'),\n 'updated_at' => Carbon::now()->format('Y-m-d H:i:s')\n ]);\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(App\\User::class,3)->create()->each(\n \tfunction($user)\n \t{\n \t\t$user->questions()\n \t\t->saveMany(\n \t\t\tfactory(App\\Question::class, rand(2,6))->make()\n \t\t)\n ->each(function ($q) {\n $q->answers()->saveMany(factory(App\\Answer::class, rand(1,5))->make());\n })\n \t}\n );\n }\n}", "public function run()\n {\n $faker = Faker::create();\n\n // $this->call(UsersTableSeeder::class);\n\n DB::table('posts')->insert([\n 'id'=>str_random(1),\n 'user_id'=> str_random(1),\n 'title' => $faker->name,\n 'body' => $faker->safeEmail,\n 'created_at' => date('Y-m-d H:i:s'),\n 'updated_at' => date('Y-m-d H:i:s'),\n ]);\n }", "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}", "public function run()\n\t{\n\t\tDB::table('libros')->truncate();\n\n\t\t$faker = Faker\\Factory::create();\n\n\t\tfor ($i=0; $i < 10; $i++) { \n\t\t\tLibro::create([\n\n\t\t\t\t'titulo'\t\t=> $faker->text(40),\n\t\t\t\t'isbn'\t\t\t=> $faker->numberBetween(100,999),\n\t\t\t\t'precio'\t\t=> $faker->randomFloat(2,3,150),\n\t\t\t\t'publicado'\t\t=> $faker->numberBetween(0,1),\n\t\t\t\t'descripcion'\t=> $faker->text(400),\n\t\t\t\t'autor_id'\t\t=> $faker->numberBetween(1,3),\n\t\t\t\t'categoria_id'\t=> $faker->numberBetween(1,3)\n\n\t\t\t]);\n\t\t}\n\n\t\t// Uncomment the below to run the seeder\n\t\t// DB::table('libros')->insert($libros);\n\t}", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(App\\User::class, 10)->create()->each(function ($user) {\n // Seed the relation with 5 purchases\n // $videos = factory(App\\Video::class, 5)->make();\n // $user->videos()->saveMany($videos);\n // $user->videos()->each(function ($video){\n // \t$video->videometa()->save(factory(App\\VideoMeta::class)->make());\n // \t// :( \n // });\n factory(App\\User::class, 10)->create()->each(function ($user) {\n\t\t\t factory(App\\Video::class, 5)->create(['user_id' => $user->id])->each(function ($video) {\n\t\t\t \tfactory(App\\VideoMeta::class, 1)->create(['video_id' => $video->id]);\n\t\t\t // $video->videometa()->save(factory(App\\VideoMeta::class)->create(['video_id' => $video->id]));\n\t\t\t });\n\t\t\t});\n\n });\n }", "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 }", "public function run()\n {\n $this->call([\n CountryTableSeeder::class,\n ProvinceTableSeeder::class,\n TagTableSeeder::class\n ]);\n\n User::factory()->count(10)->create();\n Category::factory()->count(5)->create();\n Product::factory()->count(20)->create();\n Section::factory()->count(5)->create();\n Bundle::factory()->count(20)->create();\n\n $bundles = Bundle::all();\n // populate bundle-product table (morph many-to-many)\n Product::all()->each(function ($product) use ($bundles) {\n $product->bundles()->attach(\n $bundles->random(2)->pluck('id')->toArray(),\n ['default_quantity' => rand(1, 10)]\n );\n });\n // populate bundle-tags table (morph many-to-many)\n Tag::all()->each(function ($tag) use ($bundles) {\n $tag->bundles()->attach(\n $bundles->random(2)->pluck('id')->toArray()\n );\n });\n }", "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 }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $faker=Faker\\Factory::create();\n\n for($i=0;$i<100;$i++){\n \tApp\\Blog::create([\n \t\t'title' => $faker->catchPhrase,\n 'description' => $faker->text,\n 'showns' =>true\n \t\t]);\n }\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::statement('SET FOREIGN_KEY_CHECKS = 0'); // TO PREVENT CHECKS FOR foreien key in seeding\n\n User::truncate();\n Category::truncate();\n Product::truncate();\n Transaction::truncate();\n\n DB::table('category_product')->truncate();\n\n User::flushEventListeners();\n Category::flushEventListeners();\n Product::flushEventListeners();\n Transaction::flushEventListeners();\n\n $usersQuantities = 1000;\n $categoriesQuantities = 30;\n $productsQuantities = 1000;\n $transactionsQuantities = 1000;\n\n factory(User::class, $usersQuantities)->create();\n factory(Category::class, $categoriesQuantities)->create();\n\n factory(Product::class, $productsQuantities)->create()->each(\n function ($product) {\n $categories = Category::all()->random(mt_rand(1, 5))->pluck('id');\n $product->categories()->attach($categories);\n });\n\n factory(Transaction::class, $transactionsQuantities)->create();\n }", "public function run()\n {\n // $this->call(UserSeeder::class);\n $this->call(PermissionsTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n\n $this->call(BusinessTableSeeder::class);\n $this->call(PrinterTableSeeder::class);\n factory(App\\Tag::class,10)->create();\n factory(App\\Category::class,10)->create();\n factory(App\\Subcategory::class,50)->create();\n factory(App\\Provider::class,10)->create();\n factory(App\\Product::class,24)->create()->each(function($product){\n\n $product->images()->saveMany(factory(App\\Image::class, 4)->make());\n\n });\n\n\n factory(App\\Client::class,10)->create();\n }", "public function run()\n {\n 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 < 50; $i++) {\n Article::create([\n 'name' => $faker->sentence,\n 'sku' => $faker->paragraph,\n 'price' => $faker->number,\n ]);\n }\n }", "public function run()\n {\n Storage::deleteDirectory('public/products');\n Storage::makeDirectory('public/products');\n\n $this->call(UserSeeder::class);\n Category::factory(4)->create();\n $this->call(ProductSeeder::class);\n Order::factory(4)->create();\n Order_Detail::factory(4)->create();\n Size::factory(100)->create();\n }", "public function run()\n {\n $this->call(RolSeeder::class);\n\n $this->call(UserSeeder::class);\n Category::factory(4)->create();\n Doctor::factory(25)->create();\n Patient::factory(50)->create();\n Status::factory(3)->create();\n Appointment::factory(100)->create();\n }", "public function run()\n\t{\n\t\t\n\t\tDB::statement('SET FOREIGN_KEY_CHECKS = 0');\n\n\t\t$faker = \\Faker\\Factory::create();\n\n\t\tTodolist::truncate();\n\n\t\tforeach(range(1, 50) as $index)\n\t\t{\n\n\t\t\t$user = User::create([\n\t\t\t\t'name' => $faker->name,\n\t\t\t\t'email' => $faker->email,\n\t\t\t\t'password' => 'password',\n\t\t\t\t'confirmation_code' => mt_rand(0, 9),\n\t\t\t\t'confirmation' => rand(0,1) == 1\n\t\t\t]);\n\n\t\t\t$list = Todolist::create([\n\t\t\t\t'name' => $faker->sentence(2),\n\t\t\t\t'description' => $faker->sentence(4),\n\t\t\t]);\n\n\t\t\t// BUILD SOME TASKS FOR EACH LIST ITEM\n\t\t\tforeach(range(1, 10) as $index) \n\t\t\t{\n\t\t\t\t$task = new Task;\n\t\t\t\t$task->name = $faker->sentence(2);\n\t\t\t\t$task->description = $faker->sentence(4);\n\t\t\t\t$list->tasks()->save($task);\n\t\t\t}\n\n\t\t}\n\n\t\tDB::statement('SET FOREIGN_KEY_CHECKS = 1'); \n\n\t}", "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 }", "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 }", "public function run()\n {\n // $this->call(UserTableSeeder::class);\n \\App\\User::create([\n 'name'=>'PAPE SAMBA NDOUR',\n 'email'=>'[email protected]',\n 'password'=>bcrypt('Admin1122'),\n ]);\n\n $faker = Faker::create();\n\n for ($i = 0; $i < 100 ; $i++)\n {\n $firstName = $faker->firstName;\n $lastName = $faker->lastName;\n $niveau = \\App\\Niveau::inRandomOrder()->first();\n \\App\\Etudiant::create([\n 'prenom'=>$firstName,\n 'nom'=>$lastName,\n 'niveau_id'=>$niveau->id\n ]);\n }\n\n\n }", "public function run()\n {\n //\n DB::table('foods')->delete();\n\n Foods::create(array(\n 'name' => 'Chicken Wing',\n 'author' => 'Bambang',\n 'overview' => 'a deep-fried chicken wing, not in spicy sauce'\n ));\n\n Foods::create(array(\n 'name' => 'Beef ribs',\n 'author' => 'Frank',\n 'overview' => 'Slow baked beef ribs rubbed in spices'\n ));\n\n Foods::create(array(\n 'name' => 'Ice cream',\n 'author' => 'Lou',\n 'overview' => ' A sweetened frozen food typically eaten as a snack or dessert.'\n ));\n\n }", "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 }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(App\\User::class, 3)->create();\n factory(App\\Models\\Category::class, 3)\n ->create()\n ->each(function ($u) {\n $u->courses()->saveMany(factory(App\\Models\\Course::class,3)->make())->each(function ($c){\n $c->exams()->saveMany(factory(\\App\\Models\\Exam::class,3)->make())->each(function ($e){\n $e->questions()->saveMany(factory(\\App\\Models\\Question::class,4)->make())->each(function ($q){\n $q->answers()->saveMany(factory(\\App\\Models\\Answer::class,4)->make())->each(function ($a){\n $a->correctAnswer()->save(factory(\\App\\Models\\Correct_answer::class)->make());\n });\n });\n });\n });\n\n });\n\n }", "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 }", "public function run()\n {\n\n DB::table('clients')->delete();\n DB::table('trips')->delete();\n error_log('empty tables done.');\n\n $random_cities = City::inRandomOrder()->select('ar_name')->limit(5)->get();\n $GLOBALS[\"random_cities\"] = $random_cities->pluck('ar_name')->toArray();\n\n $random_airlines = Airline::inRandomOrder()->select('code')->limit(5)->get();\n $GLOBALS[\"random_airlines\"] = $random_airlines->pluck('code')->toArray();\n\n factory(App\\Client::class, 5)->create();\n error_log('Client seed done.');\n\n\n factory(App\\Trip::class, 50)->create();\n error_log('Trip seed done.');\n\n\n factory(App\\Quicksearch::class, 10)->create();\n error_log('Quicksearch seed done.');\n }", "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 }", "public function run()\n {\n $this->call([\n RoleSeeder::class,\n UserSeeder::class,\n ]);\n\n \\App\\Models\\Category::factory(4)->create();\n \\App\\Models\\View::factory(6)->create();\n \\App\\Models\\Room::factory(8)->create();\n \n $rooms = \\App\\Models\\Room::all();\n // \\App\\Models\\User::all()->each(function ($user) use ($rooms) { \n // $user->rooms()->attach(\n // $rooms->random(rand(1, \\App\\Models\\Room::max('id')))->pluck('id')->toArray()\n // ); \n // });\n }", "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 }", "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 }", "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 }", "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 }", "public function run()\n {\n \n User::factory(1)->create([\n 'rol'=>'EPS'\n ]);\n Person::factory(10)->create();\n $this->call(EPSSeeder::class);\n $this->call(OfficialSeeder::class);\n $this->call(VVCSeeder::class);\n $this->call(VaccineSeeder::class);\n }", "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 }", "public function run()\n {\n $this->call([\n LanguagesTableSeeder::class,\n ListingAvailabilitiesTableSeeder::class,\n ListingTypesTableSeeder::class,\n RoomTypesTableSeeder::class,\n AmenitiesTableSeeder::class,\n UsersTableSeeder::class,\n UserLanguagesTableSeeder::class,\n ListingsTableSeeder::class,\n WishlistsTableSeeder::class,\n StaysTableSeeder::class,\n GuestsTableSeeder::class,\n TripsTableSeeder::class,\n ReviewsTableSeeder::class,\n RatingsTableSeeder::class,\n PopularDestinationsTableSeeder::class,\n ImagesTableSeeder::class,\n ]);\n\n // factory(App\\User::class, 5)->states('host')->create();\n // factory(App\\User::class, 10)->states('hostee')->create();\n\n // factory(App\\User::class, 10)->create();\n // factory(App\\Models\\Listing::class, 30)->create();\n }", "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 }", "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 }", "public function run()\n {\n\n $this->call(UserSeeder::class);\n factory(Empresa::class,10)->create();\n factory(Empleado::class,50)->create();\n }", "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 }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(User::class)->create([\n 'email' => '[email protected]',\n 'name' => 'Russell'\n ]);\n\n factory(User::class)->create([\n 'email' => '[email protected]',\n 'name' => 'Bitfumes'\n ]);\n\n factory(User::class)->create([\n 'email' => '[email protected]',\n 'name' => 'Paul'\n ]);\n }", "public function run()\n {\n $user_ids = [1,2,3];\n $faker = app(\\Faker\\Generator::class);\n $posts = factory(\\App\\Post::class)->times(50)->make()->each(function($post) use ($user_ids,$faker){\n $post->user_id = $faker->randomElement($user_ids);\n });\n \\App\\Post::insert($posts->toArray());\n }", "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 }", "public function run()\n\t{\n\t\t$this->call(ProductsTableSeeder::class);\n\t\t$this->call(CategoriesTableSeeder::class);\n\t\t$this->call(BrandsTableSeeder::class);\n\t\t$this->call(ColorsTableSeeder::class);\n\n\t\t$products = \\App\\Product::all();\n \t$categories = \\App\\Category::all();\n \t$brands = \\App\\Brand::all();\n \t$colors = \\App\\Color::all();\n\n\t\tforeach ($products as $product) {\n\t\t\t$product->colors()->sync($colors->random(3));\n\n\t\t\t$product->category()->associate($categories->random(1)->first());\n\t\t\t$product->brand()->associate($brands->random(1)->first());\n\n\t\t\t$product->save();\n\t\t}\n\n\t\t// for ($i = 0; $i < count($products); $i++) {\n\t\t// \t$cat = $categories[rand(0,5)];\n\t\t// \t$bra = $brands[rand(0,7)];\n\t\t// \t$cat->products()->save($products[$i]);\n\t\t// \t$bra->products()->save($products[$i]);\n\t\t// }\n\n\t\t// $products = factory(App\\Product::class)->times(20)->create();\n\t\t// $categories = factory(App\\Category::class)->times(6)->create();\n\t\t// $brands = factory(App\\Brand::class)->times(8)->create();\n\t\t// $colors = factory(App\\Color::class)->times(15)->create();\n\t}", "public function run()\n {\n /*$this->call(UsersTableSeeder::class);\n $this->call(GroupsTableSeeder::class);\n $this->call(TopicsTableSeeder::class);\n $this->call(CommentsTableSeeder::class);*/\n DB::table('users')->insert([\n 'name' => 'pkw',\n 'email' => '[email protected]',\n 'password' => bcrypt('secret'),\n 'type' => '1'\n ]);\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $faker = Faker::create();\n foreach (range(1,200) as $index) {\n DB::table('users')->insert([\n 'name' => $faker->name,\n 'email' => $faker->email,\n 'phone' => $faker->randomDigitNotNull,\n 'address'=> $faker->streetAddress,\n 'password' => bcrypt('secret'),\n ]);\n }\n }", "public function run()\n {\n $this->call(UsersSeeder::class);\n User::factory(2)->create();\n Company::factory(2)->create();\n\n }", "public function run()\n {\n echo PHP_EOL , 'seeding roles...';\n\n Role::create(\n [\n 'name' => 'Admin',\n 'deletable' => false,\n ]\n );\n Role::create(\n [\n 'name' => 'Principal',\n 'deletable' => false,\n ]\n );\n Role::create(\n [\n 'name' => 'Teacher',\n 'deletable' => false,\n ]\n );\n\n Role::create(\n [\n 'name' => 'Student',\n 'deletable' => false,\n ]\n );\n Role::create(\n [\n 'name' => 'Parents',\n 'deletable' => false,\n ]\n );\n Role::create(\n [\n 'name' => 'Accountant',\n 'deletable' => false,\n ]\n );\n Role::create(\n [\n 'name' => 'Librarian',\n 'deletable' => false,\n ]\n );\n Role::create(\n [\n 'name' => 'Receptionist',\n 'deletable' => false,\n ]\n );\n\n\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // $this->call(QuestionTableSeed::class);\n\n $this->call([\n QuestionTableSeed::class,\n AlternativeTableSeed::class,\n ScheduleActionTableSeeder::class,\n UserTableSeeder::class,\n CompanyClassificationTableSeed::class,\n ]);\n // DB::table('clients')->insert([\n // 'name' => 'Empresa-02',\n // 'email' => '[email protected]',\n // 'password' => bcrypt('07.052.477/0001-60'),\n // ]);\n }", "public function run()\n {\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 5; $i++) {\n Runner::create([\n 'external_id' => $faker->uuid,\n 'name' => $faker->name,\n 'race_id' =>rand(1,5),\n 'age' => rand(30, 45),\n 'sex' => $faker->randomElement(['male', 'female']),\n 'color' => $faker->randomElement(['#ecbcb4', '#d1a3a4']),\n ]);\n }\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n\n User::factory()->create([\n 'name' => 'Carlos',\n 'email' => '[email protected]',\n 'email_verified_at' => now(),\n 'password' => bcrypt('123456'), // password\n 'remember_token' => Str::random(10),\n ]);\n \n $this->call([PostsTableSeeder::class]);\n $this->call([TagTableSeeder::class]);\n\n }", "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 }", "public function run()\n {\n Eloquent::unguard();\n\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n\n // $this->call([\n // CountriesTableSeeder::class,\n // ]);\n\n factory(App\\User::class, 100)->create();\n factory(App\\Type::class, 10)->create();\n factory(App\\Item::class, 100)->create();\n factory(App\\Order::class, 1000)->create();\n\n $items = App\\Item::all();\n\n App\\Order::all()->each(function($order) use ($items) {\n\n $n = rand(1, 10);\n\n $order->items()->attach(\n $items->random($n)->pluck('id')->toArray()\n , ['quantity' => $n]);\n\n $order->total = $order->items->sum(function($item) {\n return $item->price * $item->pivot->quantity;\n });\n\n $order->save();\n\n });\n\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n factory(User::class)->create(\n [\n 'email'=>'[email protected]',\n 'name'=>'izzanni',\n \n ]\n );\n factory(User::class)->create(\n [\n 'email'=>'[email protected]',\n 'name'=>'aina',\n\n ]\n );\n factory(User::class)->create(\n [\n 'email'=>'[email protected]',\n 'name'=>'sab',\n\n ]\n );\n }", "public function run()\n {\n\n factory('App\\Models\\Pessoa', 60)->create();\n factory('App\\Models\\Profissional', 10)->create();\n factory('App\\Models\\Paciente', 50)->create();\n $this->call(UsersTableSeeder::class);\n $this->call(ProcedimentoTableSeeder::class);\n // $this->call(PessoaTableSeeder::class);\n // $this->call(ProfissionalTableSeeder::class);\n // $this->call(PacienteTableSeeder::class);\n // $this->call(AgendaProfissionalTableSeeder::class);\n }", "public function run()\n {\n //Acá se define lo que el seeder va a hacer.\n //insert() para insertar datos.\n //Array asociativo. La llave es el nombre de la columna.\n// DB::table('users')->insert([\n// //Para un solo usuario.\n// 'name' => 'Pedrito Perez',\n// 'email' => '[email protected]',\n// 'password' => bcrypt('123456')\n// ]);//Se indica el nombre de la tabla.\n\n //Crea 50 usuarios (sin probar)\n// factory(App\\User::class, 50)->create()->each(function($u) {\n// $u->posts()->save(factory(App\\Post::class)->make());\n// });\n\n factory(App\\User::class, 10)->create(); //Así se ejecuta el model factory creado en ModelFactory.php\n\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n //nhập liệu mẫu cho bảng users\n DB::table('users')->insert([\n \t['id'=>'1001', 'name'=>'Phan Thị Hiền', 'email'=>'[email protected]', 'password'=>'123456', 'isadmin'=>1],\n \t['id'=>'1002', 'name'=>'Phan Thị Hà', 'email'=>'[email protected]', 'password'=>'111111', 'isadmin'=>0]\n ]);\n\n\n //nhập liệu mẫu cho bảng suppliers\n DB::table('suppliers')->insert([\n \t['name'=>'FPT', 'address'=>'151 Hùng Vương, TP. Đà Nẵng', 'phonenum'=>'0971455395'],\n \t['name'=>'Điện Máy Xanh', 'address'=>'169 Phan Châu Trinh, TP. Đà Nẵng', 'phonenum'=>'0379456011']\n ]);\n\n\n //Bảng phiếu bảo hành\n }", "public function run()\n {\n \t// DB::table('categories')->truncate();\n // factory(App\\Models\\Category::class, 10)->create();\n Schema::disableForeignKeyConstraints();\n Category::truncate();\n $faker = Faker\\Factory::create();\n\n $categories = ['SAMSUNG','NOKIA','APPLE','BLACK BERRY'];\n foreach ($categories as $key => $value) {\n Category::create([\n 'name'=>$value,\n 'description'=> 'This is '.$value,\n 'markup'=> rand(10,100),\n 'category_id'=> null,\n 'UUID' => $faker->uuid,\n ]);\n }\n }" ]
[ "0.8013876", "0.79804534", "0.7976992", "0.79542726", "0.79511505", "0.7949612", "0.794459", "0.7942486", "0.7938189", "0.79368967", "0.79337025", "0.78924936", "0.78811055", "0.78790957", "0.78787595", "0.787547", "0.7871811", "0.78701615", "0.7851422", "0.7850352", "0.7841468", "0.7834583", "0.7827792", "0.7819104", "0.78088796", "0.7802872", "0.7802348", "0.78006834", "0.77989215", "0.7795819", "0.77903426", "0.77884805", "0.77862066", "0.7778816", "0.7777486", "0.7765202", "0.7762492", "0.77623445", "0.77621746", "0.7761383", "0.77606887", "0.77596676", "0.7757001", "0.7753607", "0.7749522", "0.7749292", "0.77466977", "0.7729947", "0.77289546", "0.772796", "0.77167094", "0.7714503", "0.77140456", "0.77132195", "0.771243", "0.77122366", "0.7711113", "0.77109736", "0.7710777", "0.7710086", "0.7705484", "0.770464", "0.7704354", "0.7704061", "0.77027386", "0.77020216", "0.77008796", "0.7698617", "0.76985973", "0.76973504", "0.7696405", "0.7694293", "0.7692694", "0.7691264", "0.7690576", "0.76882726", "0.7687433", "0.7686844", "0.7686498", "0.7685065", "0.7683827", "0.7679184", "0.7678287", "0.76776296", "0.76767945", "0.76726556", "0.76708084", "0.76690495", "0.766872", "0.76686716", "0.7666299", "0.76625943", "0.7662227", "0.76613766", "0.7659881", "0.7656644", "0.76539344", "0.76535016", "0.7652375", "0.7652313", "0.7652022" ]
0.0
-1
/ Auto Update Major on New Installs and default for all other with a setting section to customize.
function mm_auto_update_make_bool( $value, $default = true ) { if ( 'false' === $value ) { $value = false; } if ( 'true' === $value ) { $value = true; } if ( true !== $value && false !== $value ) { $value = $default; } return $value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function core_auto_updates_settings()\n {\n }", "public function autoupdate() {\n\t\t$options = $this->get_option();\n\t\t$update_successful = true;\n\n\t\tif (version_compare($options['version'], '2.0', '<')) {\n\t\t\tglobal $wpdb;\n\n\t\t\t$sql = \"\n\t\t\t\tUPDATE $wpdb->postmeta\n\t\t\t\tSET meta_key='im8_additional_css_file'\n\t\t\t\tWHERE meta_key='additional_css_file'\";\n\t\t\t$update_successful &= $wpdb->query($sql) != -1;\n\n\t\t\t$sql = \"\n\t\t\t\tUPDATE $wpdb->postmeta\n\t\t\t\tSET meta_key='im8_additional_css'\n\t\t\t\tWHERE meta_key='additional_css'\";\n\t\t\t$update_successful &= $wpdb->query($sql) != -1;\n\n\t\t\t$options['version'] = '2.0';\n\t\t\tif ($update_successful)\n\t\t\t\tupdate_option($this->option_name, $options);\n\t\t}\n\n\t\tif ($update_successful) {\n\t\t\t$options['version'] = $this->version;\n\t\t\tupdate_option($this->option_name, $options);\n\t\t}\n\t}", "function sitemgr_upgrade1_4_002()\n{\n\treturn $GLOBALS['setup_info']['sitemgr']['currentver'] = '1.5.001';\n}", "function setAppVersion($major,$minor,$build,$codename=\"\",$nc_salt=false)\n{\n\t$major = intval($major);\n\t$minor = intval($minor);\n\t$build = intval($build);\n\t$GLOBALS['APP_VERSION'] = compact('major','minor','build','codename');\n\t$GLOBALS['APP_VERSION']['string'] = \"$major.$minor.$build\";\n\tif( $codename )\n\t\t$GLOBALS['APP_VERSION']['string'] .= \" ($codename)\";\n\t$GLOBALS['APP_VERSION']['nc'] = 'nc'.substr(preg_replace('/[^0-9]/', '', md5($GLOBALS['APP_VERSION']['string'].$nc_salt)), 0, 8);\n}", "function moduleCompleteClientInstallation() {\n\tsetDefaultOverrideOptions();\n\t\n\tsetBuildUpdateConfigFlag($_POST['SERIALNO'], 'yes', 'build');\n}", "function find_core_auto_update()\n {\n }", "protected function getInstalledMajorVersion() {}", "function update_v10_to_v11() {\n\n // add default issue tooltips\n $customField_type = Config::getInstance()->getValue(Config::id_customField_type);\n $backlogField = Config::getInstance()->getValue(Config::id_customField_backlog);\n $fieldList = array('project_id', 'category_id', 'custom_'.$customField_type,\n 'codevtt_elapsed', 'custom_'.$backlogField, 'codevtt_drift');\n $serialized = serialize($fieldList);\n Config::setValue('issue_tooltip_fields', $serialized, Config::configType_string, 'fields to be displayed in issue tooltip');\n\n $query = \"UPDATE `codev_config_table` SET `value`='11' WHERE `config_id`='database_version';\";\n $result = execQuery($query);\n\n}", "function update_v10_to_v11() {\n\n // add default issue tooltips\n $customField_type = Config::getInstance()->getValue(Config::id_customField_type);\n $backlogField = Config::getInstance()->getValue(Config::id_customField_backlog);\n $fieldList = array('project_id', 'category_id', 'custom_'.$customField_type,\n 'codevtt_elapsed', 'custom_'.$backlogField, 'codevtt_drift');\n $serialized = serialize($fieldList);\n Config::setValue('issue_tooltip_fields', $serialized, Config::configType_string, 'fields to be displayed in issue tooltip');\n\n $query = \"UPDATE `codev_config_table` SET `value`='11' WHERE `config_id`='database_version';\";\n $result = execQuery($query);\n\n}", "public function install(){\n\n\t\t$model = Advertikon::getCurrentModel();\n\n\t\ttry {\n\t\t\t$this->_checkCompatibility();\n\t\t}\n\t\tcatch( Exception\\Transport $e ) {\n\t\t\t$this->errorPage( $e->getData() , 424 , 'Failed Dependency' );\n\t\t}\n\n\t\t$this->_install();\n\n\t\t$config = Advertikon::getXmlConfig();\n\t\t$settingsModel = Advertikon::getExtendedModel( 'setting_setting' );\n\t\t$settings = $model->stripPrefix( $settingsModel->getSetting() );\n\t\t$model->merge( $settings , $config->getValues( '/' ) );\n\t\t$settingsModel->editSetting( $settings );\n\n\t\t//mark the extension as installed\n\t\tAdvertikon::getExtendedModel( 'setting_setting' )->setSettingValue( 'installed' , 1 );\n\t}", "function setupAutoUpdate() {\n try {\n DB::execute('INSERT INTO ' . TABLE_PREFIX . \"config_options (name, module, value) VALUES ('new_modules_available', 'system', 'b:0;')\");\n DB::execute(\"INSERT INTO \" . TABLE_PREFIX . \"config_options (name, module, value) VALUES ('update_archive_url', 'system', 'N;')\");\n DB::execute('INSERT INTO ' . TABLE_PREFIX . \"config_options (name, module, value) VALUES ('update_download_progress', 'system', 'i:0;')\");\n } catch(Exception $e) {\n return $e->getMessage();\n } // try\n\n return true;\n }", "public function wd_se_activate() {\n\t\t$install_date = get_option( 'wd_se_install_date', time() );\n\n\t\tif( ! $install_date ) {\n\t\t\tupdate_option( 'version', WD_SE_RELEASE_NUMBER );\n\t\t}\n\t}", "function GroupPress_update() {\n\t// no PHP timeout for running updates\n\tset_time_limit( 0 );\n\n\tglobal $GroupPress;\n\n\t// this is the current database schema version number\n\t$current_db_ver = get_option( 'GroupPress_db_ver' );\n\n\t// this is the target version that we need to reach\n\t$target_db_ver = GroupPress::DB_VER;\n\n\t// run update routines one by one until the current version number\n\t// reaches the target version number\n\twhile ( $current_db_ver < $target_db_ver ) {\n\t\t// increment the current db_ver by one\n\t\t$current_db_ver ++;\n\n\t\t// each db version will require a separate update function\n\t\t// for example, for db_ver 3, the function name should be solis_update_routine_3\n\t\t$func = \"GroupPress_update_routine_{$current_db_ver}\";\n\t\t\tif ( function_exists( $func ) ) {\n\t\t\t\tcall_user_func( $func );\n\t\t\t}\n\n\t\t//update the option in the database, so that this process can always\n\t\t// pick up where it left off\n\t\tupdate_option( 'GroupPress_db_ver', $current_db_ver );\n\t}\n}", "function _maybe_update_core()\n {\n }", "public function install() {\n\n\t\trequire_once( $this->get_plugin_path() . '/includes/admin/class-wc-cog-admin.php' );\n\n\t\t// install default settings\n\t\tforeach ( WC_COG_Admin::get_global_settings() as $setting ) {\n\n\t\t\tif ( isset( $setting['default'] ) ) {\n\t\t\t\tupdate_option( $setting['id'], $setting['default'] );\n\t\t\t}\n\t\t}\n\t}", "function av5_kirki_update_default( $set = false ) {\r\n\t\t$fields\t\t = Kirki::$fields;\r\n\t\t$config_mods = get_theme_mods();\r\n\t\tforeach ( $fields as $field ) {\r\n\t\t\tif ( ! array_key_exists( $field['settings'], $config_mods ) && array_key_exists( 'type', $field ) && array_key_exists( 'default', $field ) ) {\r\n\t\t\t\tif ( 'custom' === $field['type'] || 'kirki-custom' === $field['type'] ) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t$config_mods[ $field['settings'] ] = $field['default'];\r\n\t\t\t\t$set\t\t\t\t\t\t\t\t = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\t$config_mods = apply_filters( 'av5_customize_default', $config_mods );\r\n\t\tif ( $set ) {\r\n\t\t\tforeach ( $config_mods as $settings => $default ) {\r\n\t\t\t\tset_theme_mod( $settings, $default );\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn $config_mods;\r\n\t}", "public function install() {\r\n\t\tadd_option(ShoppWholesale::OPTION_NAME, $this->defaults);\r\n\t}", "public function update_version_number(){\n $plugin_settings = nf_get_settings();\n\n if ( !isset ( $plugin_settings['version'] ) OR ( NF_PLUGIN_VERSION != $plugin_settings['version'] ) ) {\n $plugin_settings['version'] = NF_PLUGIN_VERSION;\n update_option( 'ninja_forms_settings', $plugin_settings );\n }\n }", "protected function update_site_to_1_3_0() {\n\n\t\t$this->update_points_type_settings_to_1_3_0();\n\t}", "function top10_install() {\r\n/* Creates new database field */\r\n//add_option('omekafeedpull_omekaroot', '/omeka', '', 'yes');\r\n}", "protected function install() {\n\n\t\t// include settings so we can install defaults\n\t\t$settings = $this->load_class( '/includes/admin/class-wc-avatax-settings.php', 'WC_AvaTax_Settings' );\n\n\t\t// install default settings for each section\n\t\tforeach ( $settings->get_settings() as $setting ) {\n\n\t\t\tif ( isset( $setting['default'] ) ) {\n\n\t\t\t\tupdate_option( $setting['id'], $setting['default'] );\n\t\t\t}\n\t\t}\n\n\t\t$this->maybe_migrate();\n\t}", "public function runDefaultUpdates()\n {\n }", "function updateSettingsVersion() {\n\t\t$this->_settings->set('settingsversion', SPOTWEB_SETTINGS_VERSION);\n\t}", "function instant_ide_manager_update() {\n\t\n\t// Initialize the update sequence.\n\tinstant_ide_manager_activate_pre();\n\t\n\t// Don't do anything if we're on the latest version.\n\tif ( version_compare( get_option( 'instant_ide_manager_version_number' ), IIDEM_VERSION, '>=' ) )\n\t\treturn;\n\n\t// Update to Instant IDE Manager 1.0.1\n\tif ( version_compare( get_option( 'instant_ide_manager_version_number' ), '1.0.1', '<' ) )\n\t\tupdate_option( 'instant_ide_manager_version_number', '1.0.1' );\n\t\t\n\t// Update to Instant IDE Manager 1.0.2\n\tif ( version_compare( get_option( 'instant_ide_manager_version_number' ), '1.0.2', '<' ) )\n\t\tupdate_option( 'instant_ide_manager_version_number', '1.0.2' );\n\t\t\n\t// Update to Instant IDE Manager 1.0.3\n\tif ( version_compare( get_option( 'instant_ide_manager_version_number' ), '1.0.3', '<' ) ) {\n\t\t\n\t\t// \"tmp\" was used to backup htaccess but no longer needed since backup location moved.\n\t\tif ( file_exists( IIDEM_IDE_DIR . '/tmp/' ) )\n\t\t\tinstant_ide_manager_delete_dir( IIDEM_IDE_DIR . '/tmp/' );\n\t\t\n\t\tupdate_option( 'instant_ide_manager_version_number', '1.0.3' );\n\t\t\n\t}\n\t\n\t// Update to Instant IDE Manager 1.0.4\n\tif ( version_compare( get_option( 'instant_ide_manager_version_number' ), '1.0.4', '<' ) )\n\t\tupdate_option( 'instant_ide_manager_version_number', '1.0.4' );\n\t\t\n\t// Update to Instant IDE Manager 1.1.0\n\tif ( version_compare( get_option( 'instant_ide_manager_version_number' ), '1.1.0', '<' ) )\n\t\tupdate_option( 'instant_ide_manager_version_number', '1.1.0' );\n\t\t\n\t// Update to Instant IDE Manager 1.1.1\n\tif ( version_compare( get_option( 'instant_ide_manager_version_number' ), '1.1.1', '<' ) )\n\t\tupdate_option( 'instant_ide_manager_version_number', '1.1.1' );\n\t\t\n\t// Update to Instant IDE Manager 1.1.2\n\tif ( version_compare( get_option( 'instant_ide_manager_version_number' ), '1.1.2', '<' ) )\n\t\tupdate_option( 'instant_ide_manager_version_number', '1.1.2' );\n\t\t\n\t// Update to Instant IDE Manager 1.1.3\n\tif ( version_compare( get_option( 'instant_ide_manager_version_number' ), '1.1.3', '<' ) )\n\t\tupdate_option( 'instant_ide_manager_version_number', '1.1.3' );\n\t\t\n\t// Update to Instant IDE Manager 1.1.4\n\tif ( version_compare( get_option( 'instant_ide_manager_version_number' ), '1.1.4', '<' ) )\n\t\tupdate_option( 'instant_ide_manager_version_number', '1.1.4' );\n\t\t\n\t// Update to Instant IDE Manager 1.1.5\n\tif ( version_compare( get_option( 'instant_ide_manager_version_number' ), '1.1.5', '<' ) )\n\t\tupdate_option( 'instant_ide_manager_version_number', '1.1.5' );\n\t\t\n\t// Update to Instant IDE Manager 1.1.6\n\tif ( version_compare( get_option( 'instant_ide_manager_version_number' ), '1.1.6', '<' ) )\n\t\tupdate_option( 'instant_ide_manager_version_number', '1.1.6' );\n\t\t\n\t// Update to Instant IDE Manager 1.1.7\n\tif ( version_compare( get_option( 'instant_ide_manager_version_number' ), '1.1.7', '<' ) )\n\t\tupdate_option( 'instant_ide_manager_version_number', '1.1.7' );\n\t\n\t// Finalize the update sequence.\n\tinstant_ide_manager_activate_post();\n\t\n}", "function deployment_admin_init() {\n\n\t// What is the current version of this plugin?\n\t$deployment_version = 3;\n\n\t// What is the current version in the db\n\t$db_version = get_option( 'deployment_version', 0 );\n\n\t// Is the db out of date?\n\tif ( $db_version < $deployment_version ) {\n\n\t\t// If so, loop over all subsequent version numbers and attempt to run corresponding deployment_update_N functions\n\t\tfor ( $version = $db_version + 1; $version <= $deployment_version; $version ++ ) {\n\t\t\tif ( function_exists( 'deployment_update_' . $version ) ) {\n\t\t\t\t$success = call_user_func( 'deployment_update_' . $version );\n\n\t\t\t\t// If the function returns a boolean false, log an error and bail out. Subsequent updates may rely on this update\n\t\t\t\t// so we shouldn't proceed any further.\n\t\t\t\tif ( $success === FALSE ) {\n\t\t\t\t\t// @TODO: log error here\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// If we've reached this far without error, update the db version\n\t\t\tupdate_option( 'deployment_version', $version );\n\t\t}\n\n\t\t// @TODO: output update summary on success\n\t}\n}", "function sitemgr_upgrade1_2()\n{\n\t$GLOBALS['egw_setup']->db->update('egw_sitemgr_modules',array('module_name' => 'news_admin'),array('module_name' => 'news'),__LINE__,__FILE__);\n\n\t$GLOBALS['setup_info']['sitemgr']['currentver'] = '1.3.001';\n\treturn $GLOBALS['setup_info']['sitemgr']['currentver'];\n}", "function preflight( $type, $parent ) {\n\t\t$jversion = new JVersion();\n\n\t\t// Installing component manifest file version\n\t\t$this->release = $parent->get( \"manifest\" )->version;\n\t\t\n\t\t// Manifest file minimum Joomla version\n\t\t$this->minimum_joomla_release = $parent->get( \"manifest\" )->attributes()->version; \n/*\n\t\t// Show the essential information at the install/update back-end\n\t\techo '<p>Installing component manifest file version = ' . $this->release;\n\t\techo '<br />Current manifest cache commponent version = ' . $this->getParam('version');\n\t\techo '<br />Installing component manifest file minimum Joomla version = ' . $this->minimum_joomla_release;\n\t\techo '<br />Current Joomla version = ' . $jversion->getShortVersion();\n\t\techo '<br />$type = ' . $type;\n*/\n\t\t// abort if the current Joomla release is older\n\t\tif( version_compare( $jversion->getShortVersion(), $this->minimum_joomla_release, 'lt' ) ) {\n\t\t\tJerror::raiseWarning(null, 'Cannot install com_democompupdate in a Joomla release prior to '.$this->minimum_joomla_release);\n\t\t\treturn false;\n\t\t}\n \n\t\t// abort if the component being installed is not newer than the currently installed version\n\t\tif ( $type == 'update' ) {\n\t\t\t$oldRelease = $this->getParam('version');\n\t\t\t$rel = $oldRelease . ' to ' . $this->release;\n\t\t\tif ( version_compare( $this->release, $oldRelease, 'le' ) ) {\n\t\t\t\tJerror::raiseWarning(null, 'Incorrect version sequence. Cannot upgrade ' . $rel);\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\telse { $rel = $this->release; }\n // $parent is the class calling this method\n // $type is the type of change (install, update or discover_install)\n\t\n\t}", "function setSyncProdWeight()\n {\n }", "private function _update_package_to_version_110()\n {\n $this->EE->load->dbforge();\n\n $this->EE->dbforge->add_column(\n 'omnilog_entries',\n array('admin_emails' => array('type' => 'MEDIUMTEXT'))\n );\n }", "function wp_install_defaults( int $user_id ) {\n global $wpdb, $wp_rewrite, $current_site, $table_prefix;\n\n /**\n * Time zone: Get the one from docker TZ variable\n *\n * @see wp-admin/options-general.php\n */\n update_option( 'timezone_string', env('TZ') );\n\n /**\n * Before a comment appears a comment must be manually approved: true\n *\n * @see wp-admin/options-discussion.php\n */\n update_option( 'comment_moderation', 1 );\n\n /** Before a comment appears the comment author must have a previously approved comment: false */\n update_option( 'comment_whitelist', 0 );\n\n /** Allow people to post comments on new articles (this setting may be overridden for individual articles): false */\n update_option( 'default_comment_status', 0 );\n\n /** Allow link notifications from other blogs: false */\n update_option( 'default_ping_status', 0 );\n\n /** Attempt to notify any blogs linked to from the article: false */\n update_option( 'default_pingback_flag', 0 );\n\n /**\n * Organize my uploads into month- and year-based folders: true\n *\n * @see wp-admin/options-media.php\n */\n update_option( 'uploads_use_yearmonth_folders', 1 );\n\n /**\n * Permalink custom structure: /%postname%\n *\n * @see wp-admin/options-permalink.php\n */\n update_option( 'permalink_structure', '/%postname%/' );\n\n // Default category.\n $cat_name = __('Uncategorized');\n /* translators: Default category slug */\n $cat_slug = sanitize_title( _x('Uncategorized', 'Default category slug') );\n\n if ( global_terms_enabled() ) {\n $cat_id = $wpdb->get_var( $wpdb->prepare( \"SELECT cat_ID FROM {$wpdb->sitecategories} WHERE category_nicename = %s\", $cat_slug ) );\n if ( null == $cat_id ) {\n $wpdb->insert( $wpdb->sitecategories, array( 'cat_ID' => 0, 'cat_name' => $cat_name, 'category_nicename' => $cat_slug, 'last_updated' => current_time('mysql', true) ) );\n $cat_id = $wpdb->insert_id;\n }\n update_option('default_category', $cat_id);\n } else {\n $cat_id = 1;\n }\n\n $wpdb->insert( $wpdb->terms, array( 'term_id' => $cat_id, 'name' => $cat_name, 'slug' => $cat_slug, 'term_group' => 0 ) );\n $wpdb->insert( $wpdb->term_taxonomy, array( 'term_id' => $cat_id, 'taxonomy' => 'category', 'description' => '', 'parent' => 0, 'count' => 1 ) );\n $cat_tt_id = $wpdb->insert_id;\n\n // First post\n $now = current_time( 'mysql' );\n $now_gmt = current_time( 'mysql', 1 );\n $first_post_guid = get_option( 'home' ) . '/?p=1';\n\n if ( is_multisite() ) {\n $first_post = get_site_option( 'first_post' );\n\n if ( ! $first_post ) {\n /* translators: %s: site link */\n $first_post = __( 'Welcome to %s. This is your first post. Edit or delete it, then start blogging!' );\n }\n\n $first_post = sprintf( $first_post,\n sprintf( '<a href=\"%s\">%s</a>', esc_url( network_home_url() ), get_current_site()->site_name )\n );\n\n // Back-compat for pre-4.4\n $first_post = str_replace( 'SITE_URL', esc_url( network_home_url() ), $first_post );\n $first_post = str_replace( 'SITE_NAME', get_current_site()->site_name, $first_post );\n } else {\n $first_post = '<span>New is always better</span></br>\n <small>- <a href=\"https://www.youtube.com/watch?v=rxBvgCyERkw\">Barney Stinson</small>';\n }\n\n $wpdb->insert( $wpdb->posts, array(\n 'post_author' => $user_id,\n 'post_date' => $now,\n 'post_date_gmt' => $now_gmt,\n 'post_content' => $first_post,\n 'post_excerpt' => '',\n 'post_title' => __('Hello WordPress!'),\n /* translators: Default post slug */\n 'post_name' => sanitize_title( _x('hello-wordpress', 'Default post slug') ),\n 'post_modified' => $now,\n 'post_modified_gmt' => $now_gmt,\n 'guid' => $first_post_guid,\n 'comment_count' => 0,\n 'to_ping' => '',\n 'pinged' => '',\n 'post_content_filtered' => '',\n ));\n $wpdb->insert( $wpdb->term_relationships, array( 'term_taxonomy_id' => $cat_tt_id, 'object_id' => 1 ) );\n\n // First Page\n $first_page = sprintf( __( \"This is an example page. It's different from a blog post because it will stay in one place and will show up in your site navigation (in most themes). Most people start with an About page that introduces them to potential site visitors. It might say something like this:\n\n<blockquote>Hi there! I'm a bike messenger by day, aspiring actor by night, and this is my website. I live in Los Angeles, have a great dog named Jack, and I like pi&#241;a coladas. (And gettin' caught in the rain.)</blockquote>\n\n...or something like this:\n\n<blockquote>The XYZ Doohickey Company was founded in 1971, and has been providing quality doohickeys to the public ever since. Located in Gotham City, XYZ employs over 2,000 people and does all kinds of awesome things for the Gotham community.</blockquote>\n\nAs a new WordPress user, you should go to <a href=\\\"%s\\\">your dashboard</a> to delete this page and create new pages for your content. Have fun!\" ), admin_url() );\n\n if ( is_multisite() ) {\n $first_page = get_site_option( 'first_page', $first_page );\n }\n $first_post_guid = get_option('home') . '/?page_id=2';\n $wpdb->insert( $wpdb->posts, array(\n 'post_author' => $user_id,\n 'post_date' => $now,\n 'post_date_gmt' => $now_gmt,\n 'post_content' => $first_page,\n 'post_excerpt' => '',\n 'comment_status' => 'closed',\n 'post_title' => __( 'Sample Page' ),\n /* translators: Default page slug */\n 'post_name' => __( 'sample-page' ),\n 'post_modified' => $now,\n 'post_modified_gmt' => $now_gmt,\n 'guid' => $first_post_guid,\n 'post_type' => 'page',\n 'to_ping' => '',\n 'pinged' => '',\n 'post_content_filtered' => '',\n ));\n $wpdb->insert( $wpdb->postmeta, array( 'post_id' => 2, 'meta_key' => '_wp_page_template', 'meta_value' => 'default' ) );\n\n // Set up default widgets for default theme.\n update_option( 'widget_search', array( 2 => array( 'title' => '' ), '_multiwidget' => 1 ) );\n update_option( 'widget_recent-posts', array( 2 => array( 'title' => '', 'number' => 5 ), '_multiwidget' => 1 ) );\n update_option( 'widget_recent-comments', array( 2 => array( 'title' => '', 'number' => 5 ), '_multiwidget' => 1 ) );\n update_option( 'widget_archives', array( 2 => array( 'title' => '', 'count' => 0, 'dropdown' => 0 ), '_multiwidget' => 1 ) );\n update_option( 'widget_categories', array( 2 => array( 'title' => '', 'count' => 0, 'hierarchical' => 0, 'dropdown' => 0 ), '_multiwidget' => 1 ) );\n update_option( 'widget_meta', array( 2 => array( 'title' => '' ), '_multiwidget' => 1 ) );\n update_option( 'sidebars_widgets', array( 'wp_inactive_widgets' => array(), 'sidebar-1' => array( 0 => 'search-2', 1 => 'recent-posts-2', 2 => 'recent-comments-2', 3 => 'archives-2', 4 => 'categories-2', 5 => 'meta-2' ), 'array_version' => 3 ) );\n\n if ( ! is_multisite() ) {\n update_user_meta( $user_id, 'show_welcome_panel', 1 );\n } elseif ( ! is_super_admin( $user_id ) && ! metadata_exists( 'user', $user_id, 'show_welcome_panel' ) ) {\n update_user_meta( $user_id, 'show_welcome_panel', 2 );\n }\n\n if ( is_multisite() ) {\n // Flush rules to pick up the new page.\n $wp_rewrite->init();\n $wp_rewrite->flush_rules();\n\n $user = new WP_User($user_id);\n $wpdb->update( $wpdb->options, array( 'option_value' => $user->user_email ), array( 'option_name' => 'admin_email' ) );\n\n // Remove all perms except for the login user.\n $wpdb->query( $wpdb->prepare(\"DELETE FROM $wpdb->usermeta WHERE user_id != %d AND meta_key = %s\", $user_id, $table_prefix.'user_level') );\n $wpdb->query( $wpdb->prepare(\"DELETE FROM $wpdb->usermeta WHERE user_id != %d AND meta_key = %s\", $user_id, $table_prefix.'capabilities') );\n\n // Delete any caps that snuck into the previously active blog. (Hardcoded to blog 1 for now.) TODO: Get previous_blog_id.\n if ( ! is_super_admin( $user_id ) && 1 != $user_id ) {\n $wpdb->delete( $wpdb->usermeta, array( 'user_id' => $user_id, 'meta_key' => $wpdb->base_prefix.'1_capabilities' ) );\n }\n }\n\n /**\n * Show welcome panel: false\n *\n * @see wp-admin/includes/screen.php\n */\n update_user_meta( $user_id, 'show_welcome_panel', 0 );\n}", "function set_sections()\n\t{\n\t\t$EE =& get_instance();\n\t\t$versions = FALSE;\n\n\t\tif($feeds = $this->_updateFeeds())\n\t\t{\n\t\t\tforeach ($feeds as $addon_id => $feed)\n\t\t\t{\n\t\t\t\t$namespaces = $feed->getNameSpaces(true);\n\t\t\t\t$latest_version = 0;\n\n\t\t\t\tinclude PATH_THIRD . '/' . $addon_id . '/config.php';\n\n\t\t\t\tforeach ($feed->channel->item as $version)\n\t\t\t\t{\n\t\t\t\t\t$ee_addon = $version->children($namespaces['ee_addon']);\n\t\t\t\t\t$version_number = (string)$ee_addon->version;\n\n\t\t\t\t\tif(version_compare($version_number, $config['version'], '>') && version_compare($version_number, $latest_version, '>') )\n\t\t\t\t\t{\n\t\t\t\t\t\t$versions[$addon_id] = array(\n\t\t\t\t\t\t\t'addon_name' \t\t=> $config['name'],\n\t\t\t\t\t\t\t'installed_version' => $config['version'],\n\t\t\t\t\t\t\t'title' \t\t\t=> (string)$version->title,\n\t\t\t\t\t\t\t'latest_version' \t=> $version_number,\n\t\t\t\t\t\t\t'notes' \t\t\t=> (string)$version->description,\n\t\t\t\t\t\t\t'docs_url' \t\t\t=> (string)$version->link,\n\t\t\t\t\t\t\t'download' \t\t\t=> FALSE,\n\t\t\t\t\t\t\t'created_at'\t\t=> $version->pubDate,\n\t\t\t\t\t\t\t'extension_class' \t=> $addon_id\n\t\t\t\t\t\t);\n\n\t\t\t\t\t\tif($version->enclosure)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$versions[$addon_id]['download'] = array(\n\t\t\t\t\t\t\t\t'url' => (string)$version->enclosure['url'],\n\t\t\t\t\t\t\t\t'type' => (string)$version->enclosure['type'],\n\t\t\t\t\t\t\t\t'size' => (string)$version->enclosure['length']\n\t\t\t\t\t\t\t);\n\n\t\t\t\t\t\t\tif(isset($config['nsm_addon_updater']['custom_download_url']))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$versions[$addon_id]['download']['url'] = call_user_func($config['nsm_addon_updater']['custom_download_url'], $versions[$addon_id]);\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$EE->cp->load_package_js(\"accessory_tab\");\n\t\t$EE->cp->load_package_css(\"accessory_tab\");\n\n\t\t$this->sections['Available Updates'] = $EE->load->view(\"/accessory/updates\", array('versions' => $versions), TRUE); \n\t}", "function sitemgr_upgrade0_9_13_001()\n{\n\tglobal $setup_info;\n\t$setup_info['sitemgr']['currentver'] = '0.9.14.001';\n\n\t$GLOBALS['egw_setup']->oProc->AddColumn('phpgw_sitemgr_pages',\n\t\t'sort_order',array('type'=>int, 'precision'=>4));\n\t$GLOBALS['egw_setup']->oProc->AddColumn('phpgw_sitemgr_categories',\n\t\t'sort_order',array('type'=>int, 'precision'=>4));\n\n\treturn $setup_info['sitemgr']['currentver'];\n}", "public function add_version() {\n $installed = get_option( 'wd_academy_installed' );\n if ( $installed ) {\n update_option( 'wd_academy_installed', time() );\n }\n update_option( 'wd_academy_version', WD_ACADEMY_VERSION );\n }", "function install_single_pages($pkg)\n {\n // $directoryDefault->update(array('cName' => t('Sample Package'), 'cDescription' => t('Sample Package')));\n }", "function crepInstallation() {\r\n\t// Check to see if it has already been installed\r\n\tif(get_option('crep-installed') != '1') {\r\n\t\tcrepInsertDefaultOptions();\r\n\t}\r\n}", "public function getMajorVersion() {}", "private function maybe_install() {\n\t\tglobal $woocommerce;\n\n\t\t$installed_version = get_option( 'wc_pre_orders_version' );\n\n\t\t// install\n\t\tif ( ! $installed_version ) {\n\n\t\t\t// add 'pre-order' shop order status term\n\t\t\t$woocommerce->init_taxonomy();\n\t\t\tif ( ! get_term_by( 'slug', 'pre-ordered', 'shop_order_status' ) )\n\t\t\t\twp_insert_term( 'pre-ordered', 'shop_order_status' );\n\n\t\t\t// install default settings\n\t\t\tforeach ( $this->get_settings() as $setting ) {\n\n\t\t\t\tif ( isset( $setting['default'] ) )\n\t\t\t\t\tupdate_option( $setting['id'], $setting['default'] );\n\t\t\t}\n\t\t}\n\n\t\t// upgrade - installed version lower than plugin version?\n\t\tif ( -1 === version_compare( $installed_version, WC_Pre_Orders::VERSION ) ) {\n\n\t\t\t$this->upgrade( $installed_version );\n\n\t\t\t// new version number\n\t\t\tupdate_option( 'wc_pre_orders_version', WC_Pre_Orders::VERSION );\n\t\t}\n\t}", "function wp_update_core($current, $feedback = '')\n {\n }", "public function admin_init() {\n\n\t\tif ( $this->cahnrs_units_schema_version !== get_option( 'cahnrs_units_schema_version', false ) ) {\n\t\t\t$this->load_units();\n\t\t\tupdate_option( 'cahnrs_units_schema_version', $this->cahnrs_units_schema_version );\n\t\t}\n\t\t\n\t\tif ( $this->cahnrs_topics_schema_version !== get_option( 'cahnrs_topics_schema_version', false ) ) {\n\t\t\t$this->load_topics();\n\t\t\tupdate_option( 'cahnrs_topics_schema_version', $this->cahnrs_topics_schema_version );\n\t\t}\n\n\t}", "function do_undismiss_core_update()\n {\n }", "protected function assignVersion()\n {\n\n }", "public static function activate() {\n self::version_compare();\n update_option(self::version_option_name, self::version);\n }", "private static function setup(){\r\n\t\tif(get_option(\"gf_constantcontact_version\") != self::$version)\r\n GFConstantContactData::update_table();\r\n\r\n update_option(\"gf_constantcontact_version\", self::$version);\r\n }", "function deployment_update_2() {\n\n\trequire_once ABSPATH . '/wp-admin/includes/plugin.php';\n\n\t// Magic Number: update page 55\n\t$registration_page = array(\n\t\t'ID' => 55,\n\t\t'post_content' => '[theme-my-login register_template=\"theme-my-login/register-form.php\"]',\n\t);\n\twp_update_post( $registration_page );\n\n\t// Magic Number: update the username specifications of page 55 to match what's seen on production\n\tupdate_post_meta( 55, 'username_specifics', ' ' );\n\n\t// Magic Number: update page 53\n\t$login_page = array(\n\t\t'ID' => 53,\n\t\t'post_content' => '[theme-my-login login_template=\"theme-my-login/login-form.php\"]',\n\t);\n\twp_update_post( $login_page );\n\n}", "public function addCheckingForUpdate() {\n global $laterpay_version;\n\n if ( get_option('laterpay_version') != $laterpay_version ) {\n $this->activate();\n }\n }", "function cv_upgrade($nom_meta_base_version, $version_cible){\n\t$maj = array();\n\t\n\t// Première installation\n\t$maj['create'] = array(\n\t\tarray('cv_configuration_base',true),\n\t\tarray('cv_creer_rubriques',true)\n\t);\n\t\n\tinclude_spip('base/upgrade');\n\tmaj_plugin($nom_meta_base_version, $version_cible, $maj);\n}", "function update_extension($current='')\n\t{\n\t\tglobal $DB;\n\n\t\tif ($current == '' OR $current == $this->version)\n\t\t\treturn FALSE;\n\n\t\t// Integrated LG Addon Updater\n\t\t// Removed control_panel_homepage hook\n\t\t// Added lg_addon_update_register_source hook + method\n\t\t// Added lg_addon_update_register_addon hook + method\n\t\tif($current < '1.2.0')\n\t\t{\n\t\t\t$settings = $this->_get_settings(TRUE, TRUE);\n\n\t\t\tforeach ($settings as $site_id => $site_settings)\n\t\t\t{\n\t\t\t\t$settings[$site_id]['show_time'] = 'n';\n\t\t\t}\n\n\t\t\t$sql[] = \"DELETE FROM `exp_extensions` WHERE `class` = '\".get_class($this).\"' AND `hook` = 'control_panel_home_page'\";\n\t\t\t$hooks = array(\n\t\t\t\t'lg_addon_update_register_source'\t=> 'lg_addon_update_register_source',\n\t\t\t\t'lg_addon_update_register_addon'\t=> 'lg_addon_update_register_addon'\n\t\t\t);\n\n\t\t\tforeach ($hooks as $hook => $method)\n\t\t\t{\n\t\t\t\t$sql[] = $DB->insert_string( 'exp_extensions', \n\t\t\t\t\t\t\t\t\t\t\t\tarray('extension_id' \t=> '',\n\t\t\t\t\t\t\t\t\t\t\t\t\t'class'\t\t\t=> get_class($this),\n\t\t\t\t\t\t\t\t\t\t\t\t\t'method'\t\t=> $method,\n\t\t\t\t\t\t\t\t\t\t\t\t\t'hook'\t\t\t=> $hook,\n\t\t\t\t\t\t\t\t\t\t\t\t\t'settings'\t\t=> addslashes(serialize($settings)),\n\t\t\t\t\t\t\t\t\t\t\t\t\t'priority'\t\t=> 10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t'version'\t\t=> $this->version,\n\t\t\t\t\t\t\t\t\t\t\t\t\t'enabled'\t\t=> \"y\"\n\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\t);\n\t\t\t}\n\t\t\t\n\t\t\t$this->settings = $settngs[$PREFS->core_ini['site_id']];\n\t\t\t\n\t\t}\n\n\t\t// Added header additions and footer additions\n\t\t// Now it's out of our hands\n\t\t// Best of luck site admins, boo ha ha ha aha ha, cough, ha\n\t\tif($current < '1.3.0')\n\t\t{\n\t\t\t$settings = $this->_get_settings(TRUE, TRUE);\n\n\t\t\tforeach ($settings as $site_id => $site_settings)\n\t\t\t{\n\t\t\t\t$settings[$site_id]['head_additions'] = '';\n\t\t\t\t$settings[$site_id]['body_additions'] = '';\n\t\t\t\t$settings[$site_id]['foot_additions'] = '';\n\t\t\t}\n\n\t\t\tforeach ($hooks as $hook => $method)\n\t\t\t{\n\t\t\t\t$sql[] = $DB->update_string( 'exp_extensions',\n\t\t\t\t\t\t\t\t\t\t\t array(\n\t\t\t\t\t\t\t\t\t\t\t\t'settings' => addslashes(serialize($settings)),\n\t\t\t\t\t\t\t\t\t\t\t\t'priority' => 1\n\t\t\t\t\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t\t\t\t\t \"class = '\".get_class($this).\"'\"\n\t\t\t\t\t\t\t\t\t\t\t);\n\t\t\t}\n\n\t\t\t$this->settings = $settngs[$PREFS->core_ini['site_id']];\n\n\t\t}\n\n\t\t// update the version\n\t\t$sql[] = \"UPDATE exp_extensions SET version = '\" . $DB->escape_str($this->version) . \"' WHERE class = '\" . get_class($this) . \"'\";\n\n\t\t// run all sql queries\n\t\tforeach ($sql as $query)\n\t\t{\n\t\t\t$DB->query($query);\n\t\t}\n\n\t\treturn TRUE;\n\t}", "public function options_update() {\n\t\tregister_setting( $this->plugin_name, $this->plugin_name, array($this, 'validate', 'default' => array( \"url_nerd_instance\" => \"\", \"category_weight\" => \"0.04\", \"entity_weight\" => \"0.7\" ) ) );\n\t}", "function wp_maybe_auto_update()\n {\n }", "function plugin_autoinstall_nexcontent($pi_name)\r\n{\r\n global $CONF_SE,$_CONF;\r\n @require ($_CONF['path'] . 'plugins/nexcontent/nexcontent.php');\r\n\r\n $pi_name = $CONF_SE['pi_name'];\r\n $pi_display_name = $CONF_SE['pi_display_name'];\r\n $pi_admin = $pi_display_name . ' Admin';\r\n\r\n $info = array(\r\n 'pi_name' => $pi_name,\r\n 'pi_display_name' => $pi_display_name,\r\n 'pi_version' => $CONF_SE['version'],\r\n 'pi_gl_version' => $CONF_SE['gl_version'],\r\n 'pi_homepage' => 'http://www.nextide.ca/'\r\n );\r\n\r\n $groups = array(\r\n $pi_admin => 'Has full access to ' . $pi_display_name . ' features'\r\n );\r\n\r\n $features = array(\r\n $pi_name . '.edit' => 'Plugin Admin',\r\n $pi_name . '.user' => 'Plugin User'\r\n );\r\n\r\n $mappings = array(\r\n $pi_name . '.edit' => array($pi_admin),\r\n $pi_name . '.user' => array($pi_admin),\r\n );\r\n\r\n $tables = array(\r\n 'nxcontent',\r\n 'nxcontent_pages',\r\n 'nxcontent_images'\r\n );\r\n\r\n $inst_parms = array(\r\n 'info' => $info,\r\n 'groups' => $groups,\r\n 'features' => $features,\r\n 'mappings' => $mappings,\r\n 'tables' => $tables\r\n );\r\n\r\n return $inst_parms;\r\n}", "function jigoshop_upgrade_111() {\n\n\t// Add default setting for shop redirection page\n\t$shop_page = get_option('jigoshop_shop_page_id');\n\tupdate_option( 'jigoshop_shop_redirect_page_id' , $shop_page );\n\tupdate_option( 'jigoshop_enable_related_products' , 'yes' );\n\n}", "protected function update_single_to_1_3_0() {\n\n\t\t$this->update_points_type_settings_to_1_3_0();\n\t}", "function oinkmaster_conf($id, $if_real, $iface_uuid)\n{\n\tglobal $config, $g, $snort_md5_check_ok, $emerg_md5_check_ok, $pfsense_md5_check_ok;\n\n\t@unlink(\"/usr/local/etc/snort/snort_{$iface_uuid}_{$if_real}/oinkmaster_{$iface_uuid}_{$if_real}.conf\");\n\n\t/* enable disable setting will carry over with updates */\n\t/* TODO carry signature changes with the updates */\n\tif ($snort_md5_check_ok != 'on' || $emerg_md5_check_ok != 'on' || $pfsense_md5_check_ok != 'on') {\n\n\t\t$selected_sid_on_section = \"\";\n\t\t$selected_sid_off_sections = \"\";\n\n\t\tif (!empty($config['installedpackages']['snortglobal']['rule'][$id]['rule_sid_on'])) {\n\t\t\t$enabled_sid_on = trim($config['installedpackages']['snortglobal']['rule'][$id]['rule_sid_on']);\n\t\t\t$enabled_sid_on_array = split('\\|\\|', $enabled_sid_on);\n\t\t\tforeach($enabled_sid_on_array as $enabled_item_on)\n\t\t\t\t$selected_sid_on_sections .= \"$enabled_item_on\\n\";\n\t\t}\n\n\t\tif (!empty($config['installedpackages']['snortglobal']['rule'][$id]['rule_sid_off'])) {\n\t\t\t$enabled_sid_off = trim($config['installedpackages']['snortglobal']['rule'][$id]['rule_sid_off']);\n\t\t\t$enabled_sid_off_array = split('\\|\\|', $enabled_sid_off);\n\t\t\tforeach($enabled_sid_off_array as $enabled_item_off)\n\t\t\t\t$selected_sid_off_sections .= \"$enabled_item_off\\n\";\n\t\t}\n\n\t\tif (!empty($selected_sid_off_sections) || !empty($selected_sid_on_section)) {\n\t\t\t$snort_sid_text = <<<EOD\n\n###########################################\n# #\n# this is auto generated on snort updates #\n# #\n###########################################\n\npath = /bin:/usr/bin:/usr/local/bin\n\nupdate_files = \\.rules$|\\.config$|\\.conf$|\\.txt$|\\.map$\n\nurl = dir:///usr/local/etc/snort/rules\n\n$selected_sid_on_sections\n\n$selected_sid_off_sections\n\nEOD;\n\n\t\t\t/* open snort's oinkmaster.conf for writing */\n\t\t\t@file_put_contents(\"/usr/local/etc/snort/snort_{$iface_uuid}_{$if_real}/oinkmaster_{$iface_uuid}_{$if_real}.conf\", $snort_sid_text);\n\t\t}\n\t}\n}", "function phpgwapi_upgrade0_9_99_026()\n\t{\n\t\t$GLOBALS['phpgw_setup']->oProc->UpdateSequence('phpgw_categories','cat_id');\n\t\t$GLOBALS['phpgw_setup']->oProc->UpdateSequence('phpgw_applications','app_id');\n\t\t$GLOBALS['phpgw_setup']->oProc->UpdateSequence('phpgw_history_log','history_id');\n\t\t$GLOBALS['phpgw_setup']->oProc->UpdateSequence('phpgw_vfs','file_id');\n\t\t$GLOBALS['phpgw_setup']->oProc->UpdateSequence('phpgw_addressbook','id');\n\t\t\n\t\t$GLOBALS['setup_info']['phpgwapi']['currentver'] = '1.0.0';\n\t\treturn $GLOBALS['setup_info']['phpgwapi']['currentver'];\n\t}", "function plugin_version_satisfactionsmiley() {\n return ['name' => 'SatisfactionSmiley',\n 'shortname' => 'satisfactionsmiley',\n 'version' => PLUGIN_SATISFACTIONSMILEY_VERSION,\n 'license' => 'AGPLv3+',\n 'author' => '<a href=\"mailto:[email protected]\">David DURIEUX</a>',\n 'homepage' => 'https://github.com/',\n 'requirements' => [\n 'glpi' => [\n 'min' => '9.5',\n 'max' => '9.6',\n 'dev' => '9.5+1.0' == 0\n ],\n ]\n ];\n}", "function sync_jetpack_options() {\n\t\tif ( class_exists( 'Jetpack_Sync' ) && method_exists( 'Jetpack_Sync', 'sync_options' ) && defined( 'JETPACK__VERSION' ) && version_compare( JETPACK__VERSION, '4.1', '<' ) ) {\n\t\t\tJetpack_Sync::sync_options( __FILE__, $this->auto_register_option, $this->option_name );\n\t\t}\n\t}", "function get_preferred_from_update_core()\n {\n }", "protected function _preupdate() {\n }", "function setSyncProdName()\n {\n }", "public static function setDefaultVersion($id)\n {\n static::where('default', true)->update(['default' => false]);\n static::find($id)->update(['default' => true]);\n }", "function wp_theme_auto_update_setting_template()\n {\n }", "function jigoshop_upgrade_110() {\n\n\tglobal $wpdb;\n\n\t// Add setting to show or hide stock\n\tupdate_option( 'jigoshop_show_stock' , 'yes' );\n\n\t// New settings for guest control\n\tupdate_option( 'jigoshop_enable_guest_login' , 'yes' );\n\tupdate_option( 'jigoshop_enable_signup_form' , 'yes' );\n\n\t// Add attribute label column to allow non-ascii characters\n\t$sql = 'ALTER TABLE '. $wpdb->prefix . 'jigoshop_attribute_taxonomies' . ' ADD COLUMN attribute_label longtext NULL';\n\t$wpdb->query($sql);\n\n}", "public function onInstall() {\n\t\tglobal $conf;\n\n\t\treturn true;\n\n\t}", "public function update($initialVersion) {\n\n $this->skip('0.0.0', '1.0.0');\n\n //Updater files are deprecated. Please use migrations.\n //See: https://github.com/oat-sa/generis/wiki/Tao-Update-Process\n $this->setVersion($this->getExtension()->getManifest()->getVersion());\n }", "protected function setDefaultValueExtra()\n {\n $this->default_data['address'] = 'xxx.atlassian.net';\n $this->default_data['rest_api_resource'] = '/rest/api/latest/';\n $this->default_data['timeout'] = 60;\n\n $this->default_data['clones']['mappingTicket'] = array(\n array(\n 'Arg' => self::ARG_SUMMARY,\n 'Value' => 'Issue {include file=\"file:$centreon_open_tickets_path/providers/' .\n 'Abstract/templates/display_title.ihtml\"}'\n ),\n array('Arg' => self::ARG_DESCRIPTION, 'Value' => '{$body}'),\n array('Arg' => self::ARG_PROJECT, 'Value' => '{$select.jira_project.id}'),\n array('Arg' => self::ARG_ASSIGNEE, 'Value' => '{$select.jira_assignee.id}'),\n array('Arg' => self::ARG_PRIORITY, 'Value' => '{$select.jira_priority.id}'),\n array('Arg' => self::ARG_ISSUETYPE, 'Value' => '{$select.jira_issuetype.id}'),\n );\n }", "public function addCoreUpdateVersion($updates){\n global $wp_version;\n\n if($updates === false){\n return;\n }\n\n $newVersion = get_option('svc_upgrade_version');\n\n //no version was set so don't attempt to change to custom version\n if($newVersion < 1) {\n return $updates;\n }\n\n //we don't need to add a new version if they match\n if (version_compare( $wp_version, $newVersion ) == 0) {\n return $updates;\n }\n\n $url = \"https://downloads.wordpress.org/release/en_GB/wordpress-{$newVersion}.zip\";\n\n $updates->updates[0]->download = $url;\n $updates->updates[0]->packages->full = $url;\n $updates->updates[0]->packages->no_content = '';\n $updates->updates[0]->packages->new_bundled = '';\n $updates->updates[0]->current = $newVersion;\n\n return $updates;\n }", "public function afterUpdate()\n {\n ((Settings::get('use_plugin') == FALSE)? $this->update_plugin_versions(TRUE) : $this->update_plugin_versions(FALSE));\n }", "function install($data='') {\n\tparent::install();\n\t\n\t@include_once(ROOT.'languages/'.$this->name.'_'.SETTINGS_SITE_LANGUAGE.'.php'); //локализация\n @include_once(ROOT.'languages/'.$this->name.'_default'.'.php');\n\tSQLExec(\"UPDATE project_modules SET TITLE='\".LANG_YE_APP_TITLE.\"' WHERE NAME='\".$this->name.\"'\"); \n\t\n addClass('Yeelight');\n\taddClassMethod('Yeelight', 'on_off',\"require(DIR_MODULES.'Yeelight/Yeelight_on_off.php');\");\n\taddClassMethod('Yeelight', 'set_bright',\"require(DIR_MODULES.'Yeelight/Yeelight_set_bright.php');\");\n\taddClassMethod('Yeelight', 'set_name',\"require(DIR_MODULES.'Yeelight/Yeelight_set_name.php');\");\n\taddClassMethod('Yeelight', 'set_rgb',\"require(DIR_MODULES.'Yeelight/Yeelight_set_rgb.php');\");\n\taddClassMethod('Yeelight', 'set_ct',\"require(DIR_MODULES.'Yeelight/Yeelight_set_ct.php');\");\n\taddClassMethod('Yeelight', 'set_hsv',\"require(DIR_MODULES.'Yeelight/Yeelight_set_hsv.php');\");\n\n\t$prop_id=addClassProperty('Yeelight', 'status', 0);\n\t\t\t\t if ($prop_id) {\n\t\t\t\t\t $property=SQLSelectOne(\"SELECT * FROM properties WHERE ID=\".$prop_id);\n\t\t\t\t\t $property['ONCHANGE']='on_off';\n\t\t\t\t\t SQLUpdate('properties',$property);\n\t\t\t\t } \n\n\t$prop_id=addClassProperty('Yeelight', 'bright', 0);\n\t\t\t\t if ($prop_id) {\n\t\t\t\t\t $property=SQLSelectOne(\"SELECT * FROM properties WHERE ID=\".$prop_id);\n\t\t\t\t\t $property['ONCHANGE']='set_bright';\n\t\t\t\t\t SQLUpdate('properties',$property);\n\t\t\t\t } \n\n\n\t$prop_id=addClassProperty('Yeelight', 'name', 0);\n\t\t\t\t if ($prop_id) {\n\t\t\t\t\t $property=SQLSelectOne(\"SELECT * FROM properties WHERE ID=\".$prop_id);\n\t\t\t\t\t $property['ONCHANGE']='set_name';\n\t\t\t\t\t SQLUpdate('properties',$property);\n\t\t\t\t }\n\t$prop_id=addClassProperty('Yeelight', 'rgb', 0);\n\t\t\t\t if ($prop_id) {\n\t\t\t\t\t $property=SQLSelectOne(\"SELECT * FROM properties WHERE ID=\".$prop_id);\n\t\t\t\t\t $property['ONCHANGE']='set_rgb';\n\t\t\t\t\t SQLUpdate('properties',$property);\n\t\t\t\t }\n\t$prop_id=addClassProperty('Yeelight', 'hue', 0);\n\t\t\t\t if ($prop_id) {\n\t\t\t\t\t $property=SQLSelectOne(\"SELECT * FROM properties WHERE ID=\".$prop_id);\n\t\t\t\t\t $property['ONCHANGE']='set_hsv';\n\t\t\t\t\t SQLUpdate('properties',$property);\n\t\t\t\t }\n\n\t$prop_id=addClassProperty('Yeelight', 'sat', 0);\n\t\t\t\t if ($prop_id) {\n\t\t\t\t\t $property=SQLSelectOne(\"SELECT * FROM properties WHERE ID=\".$prop_id);\n\t\t\t\t\t $property['ONCHANGE']='set_hsv';\n\t\t\t\t\t SQLUpdate('properties',$property);\n\t\t\t\t }\n\t$prop_id=addClassProperty('Yeelight', 'ct', 0);\n\t\t\t\t if ($prop_id) {\n\t\t\t\t\t $property=SQLSelectOne(\"SELECT * FROM properties WHERE ID=\".$prop_id);\n\t\t\t\t\t $property['ONCHANGE']='set_ct';\n\t\t\t\t\t SQLUpdate('properties',$property);\n\t\t\t\t }\t\t\t\t \n\taddClassProperty('Yeelight', 'id', 0); //Создаёт свойство класса и указывает, что необходимо хранить историю значений 0 дней\n\taddClassProperty('Yeelight', 'model', 0);\n\taddClassProperty('Yeelight', 'Location', 0);\t\t\t\t \n\taddClassProperty('Yeelight', 'support', 0);\n//=======================================\n//Создание объектов класса\n// Поиск устройств\n$client = new YeelightClient();\n$bulbList_prop = $client->search_prop();\nforeach ($bulbList_prop as $bulb) {\n //получаем из массива bulbList_prop характеристики устройств\n $id = trim($bulb[id]);\n $Location = trim($bulb[Location]);\n $model = trim($bulb[model]); \n $name = trim($bulb[name]); \n $COLOR_MODE = trim($bulb[color_mode]);\n $powerTXT = $bulb[power];\n if ($powerTXT == \"on\") { $power = 1; }\n if ($powerTXT = \"off\") { $power = 0; }\n $bright = trim($bulb[bright]);\n $ct = trim($bulb[ct]);\n $rgb = dechex($bulb[rgb]);\n $hue = trim($bulb[hue]);\n $sat = trim($bulb[sat]);\n $support = trim($bulb[support]); \n \n //получаем список объектов класса\n $objects=getObjectsByClass(\"Yeelight\");\n $searhID = 0;\n foreach($objects as $obj) {\n if ((gg($obj['TITLE'].\".id\")) == $id){\n $searhID += 1; \n } \n }\n if (!$searhID){ \n if ($name) {\n $objName = $name;\n } \nelse {\n\t$objName = $model.\"_\".$id;\n //$objName = $model.\"_\".$id.rand();\n if($model ==\"stripe\" OR $model ==\"strip\" OR $model ==\"stripe1\" OR $model ==\"strip1\"){\n\t\t$objDescription = array('Светодиодная лента');\n\t\t$rec = SQLSelectOne(\"SELECT ID FROM classes WHERE TITLE LIKE '\" . DBSafe(\"Yeelight\") . \"'\");\n\t\tif (!$rec['ID']) {\n $rec = array();\n $rec['TITLE'] = $objName;\n $rec['DESCRIPTION'] = $objDescription;\n $rec['ID'] = SQLInsert('classes', $rec);\n\t\t}\n\t\tfor ($i = 0; $i < count($objName); $i++) {\n $obj_rec = SQLSelectOne(\"SELECT ID FROM objects WHERE CLASS_ID='\" . $rec['ID'] . \"' AND TITLE LIKE '\" . DBSafe($objName) . \"'\");\n if (!$obj_rec['ID']) {\n $obj_rec = array();\n $obj_rec['CLASS_ID'] = $rec['ID'];\n $obj_rec['TITLE'] = $objName;\n $obj_rec['DESCRIPTION'] = $objDescription[$i];\n $obj_rec['ID'] = SQLInsert('objects', $obj_rec);\n }\n\t\t}\n\t}\n\t\n\tif($model==\"color\" || $model==\"color1\") {$objDescription = array('Цветная лампочка');\n\t $rec = SQLSelectOne(\"SELECT ID FROM classes WHERE TITLE LIKE '\" . DBSafe(\"Yeelight\") . \"'\");\n\t\tif (!$rec['ID']) {\n\t\t\t$rec = array();\n\t\t\t$rec['TITLE'] = $objName;\n\t\t\t$rec['DESCRIPTION'] = $objDescription;\n\t\t\t$rec['ID'] = SQLInsert('classes', $rec);\n\t\t}\n\t\tfor ($i = 0; $i < count($objName); $i++) {\n\t\t\t$obj_rec = SQLSelectOne(\"SELECT ID FROM objects WHERE CLASS_ID='\" . $rec['ID'] . \"' AND TITLE LIKE '\" . DBSafe($objName) . \"'\");\n\t\t\tif (!$obj_rec['ID']) {\n\t\t\t\t$obj_rec = array();\n\t\t\t\t$obj_rec['CLASS_ID'] = $rec['ID'];\n\t\t\t\t$obj_rec['TITLE'] = $objName;\n\t\t\t\t$obj_rec['DESCRIPTION'] = $objDescription[$i];\n\t\t\t\t$obj_rec['ID'] = SQLInsert('objects', $obj_rec);\n\t\t\t}\n\t\t}\n\t}\n\tif($model==\"mono\" || $model==\"mono1\") {$objDescription = array('Белая лампочка');\n\t $rec = SQLSelectOne(\"SELECT ID FROM classes WHERE TITLE LIKE '\" . DBSafe(\"Yeelight\") . \"'\");\n\t\tif (!$rec['ID']) {\n\t\t\t$rec = array();\n\t\t\t$rec['TITLE'] = $objName;\n\t\t\t$rec['DESCRIPTION'] = $objDescription;\n\t\t\t$rec['ID'] = SQLInsert('classes', $rec);\n\t\t}\n\t\tfor ($i = 0; $i < count($objName); $i++) {\n\t\t\t$obj_rec = SQLSelectOne(\"SELECT ID FROM objects WHERE CLASS_ID='\" . $rec['ID'] . \"' AND TITLE LIKE '\" . DBSafe($objName) . \"'\");\n\t\t\tif (!$obj_rec['ID']) {\n\t\t\t\t$obj_rec = array();\n\t\t\t\t$obj_rec['CLASS_ID'] = $rec['ID'];\n\t\t\t\t$obj_rec['TITLE'] = $objName;\n\t\t\t\t$obj_rec['DESCRIPTION'] = $objDescription[$i];\n\t\t\t\t$obj_rec['ID'] = SQLInsert('objects', $obj_rec);\n\t\t\t}\n\t\t}\n\t}\n \n if($model==\"ceiling\" || $model == \"ceiling1\" || $model == \"ceiling2\" || $model == \"ceiling3\" || $model == \"ceiling4\") {\n\t$objDescription = array('Потолочный светильник');\n\t$rec = SQLSelectOne(\"SELECT ID FROM classes WHERE TITLE LIKE '\" . DBSafe(\"Yeelight\") . \"'\");\n\t\tif (!$rec['ID']) {\n\t\t\t$rec = array();\n\t\t\t$rec['TITLE'] = $objName;\n\t\t\t$rec['DESCRIPTION'] = $objDescription;\n\t\t\t$rec['ID'] = SQLInsert('classes', $rec);\n\t\t}\n\t\tfor ($i = 0; $i < count($objName); $i++) {\n\t\t\t$obj_rec = SQLSelectOne(\"SELECT ID FROM objects WHERE CLASS_ID='\" . $rec['ID'] . \"' AND TITLE LIKE '\" . DBSafe($objName) . \"'\");\n\t\t\tif (!$obj_rec['ID']) {\n\t\t\t\t$obj_rec = array();\n\t\t\t\t$obj_rec['CLASS_ID'] = $rec['ID'];\n\t\t\t\t$obj_rec['TITLE'] = $objName;\n\t\t\t\t$obj_rec['DESCRIPTION'] = $objDescription[$i];\n\t\t\t\t$obj_rec['ID'] = SQLInsert('objects', $obj_rec);\n\t\t\t}\n\t\t}\n\t}\n \n if($model==\"bslamp\" || $model==\"bslamp1\") {\n\t$objDescription = array('Прикроватный ночник');\n\t$rec = SQLSelectOne(\"SELECT ID FROM classes WHERE TITLE LIKE '\" . DBSafe(\"Yeelight\") . \"'\");\n\t\tif (!$rec['ID']) {\n\t\t\t$rec = array();\n\t\t\t$rec['TITLE'] = $objName;\n\t\t\t$rec['DESCRIPTION'] = $objDescription;\n\t\t\t$rec['ID'] = SQLInsert('classes', $rec);\n\t\t}\n\t\tfor ($i = 0; $i < count($objName); $i++) {\n\t\t\t$obj_rec = SQLSelectOne(\"SELECT ID FROM objects WHERE CLASS_ID='\" . $rec['ID'] . \"' AND TITLE LIKE '\" . DBSafe($objName) . \"'\");\n\t\t\tif (!$obj_rec['ID']) {\n\t\t\t\t$obj_rec = array();\n\t\t\t\t$obj_rec['CLASS_ID'] = $rec['ID'];\n\t\t\t\t$obj_rec['TITLE'] = $objName;\n\t\t\t\t$obj_rec['DESCRIPTION'] = $objDescription[$i];\n\t\t\t\t$obj_rec['ID'] = SQLInsert('objects', $obj_rec);\n\t\t\t}\n\t\t}\n\t}\n \n if($model==\"lamp\" || $model==\"lamp1\") {\n\t$objDescription = array('Настольная лампа');\n\t$rec = SQLSelectOne(\"SELECT ID FROM classes WHERE TITLE LIKE '\" . DBSafe(\"Yeelight\") . \"'\");\n\t\tif (!$rec['ID']) {\n\t\t\t$rec = array();\n\t\t\t$rec['TITLE'] = $objName;\n\t\t\t$rec['DESCRIPTION'] = $objDescription;\n\t\t\t$rec['ID'] = SQLInsert('classes', $rec);\n\t\t}\n\t\tfor ($i = 0; $i < count($objName); $i++) {\n\t\t\t$obj_rec = SQLSelectOne(\"SELECT ID FROM objects WHERE CLASS_ID='\" . $rec['ID'] . \"' AND TITLE LIKE '\" . DBSafe($objName) . \"'\");\n\t\t\tif (!$obj_rec['ID']) {\n\t\t\t\t$obj_rec = array();\n\t\t\t\t$obj_rec['CLASS_ID'] = $rec['ID'];\n\t\t\t\t$obj_rec['TITLE'] = $objName;\n\t\t\t\t$obj_rec['DESCRIPTION'] = $objDescription[$i];\n\t\t\t\t$obj_rec['ID'] = SQLInsert('objects', $obj_rec);\n\t\t\t}\n\t\t}\n\t}\n \n}\n //addClassObject('Yeelight', $objName); //создаем объект с новым id\n //заполняем классовые свойства объекта\n setGlobal($objName.\".id\",$id);\n setGlobal($objName.\".model\",$model);\n setGlobal($objName.\".status\",$power);\n setGlobal($objName.\".bright\",$bright);\n setGlobal($objName.\".Location\",$Location);\n setGlobal($objName.\".name\",$name);\n setGlobal($objName.\".support\",$support);\n \n //создаем свойства объекта с учетом специфики ламп\n if ($model ==\"stripe\" OR $model ==\"strip\" OR $model ==\"stripe1\" OR $model ==\"strip1\") { \n $result = strpos ($support, 'set_rgb');\n if ($result) { \n setGlobal($objName.\".rgb\",$rgb);\n }\n \n $result = strpos ($support, 'set_ct_abx');\n if ($result) {\n setGlobal($objName.\".ct\",$ct);\n }\n \n $result = strpos ($support, 'set_hsv');\n if ($result) {\n setGlobal($objName.\".hue\",$hue);\n setGlobal($objName.\".sat\",$sat);\n }\n } elseif ($model ==\"mono\") { } \n }\n}\n\n}", "public function install() {\n\t\t$api_key = String::generate_key();\n\t\t$get_existing_key = get_option( $this->api_key_option_name );\n\t\tif ( false == $get_existing_key ) {\n\t\t\tupdate_option( $this->api_key_option_name, $api_key );\n\t\t}\n\t}", "function setSyncProdDesc()\n {\n }", "public static function updateLatestVersion()\n {\n// \n// \n// // move this check in the model maybe\n// if (!$data) {\n// $data = new \\Hotaru\\Models\\Miscdata();\n// $data->miscdata_key = 'hotaru_latest_version';\n// }\n// \n// $data->miscdata_value = $info['version_string'];\n// $data->save();\n }", "public static function install()\n\t{\n\t\tmanpower_create_page_with_slug(MANPOWER_DEFAULT_CATALOG_SLUG);\n\t\tupdate_option('mp_catalog_slug', MANPOWER_DEFAULT_CATALOG_SLUG);\n\t\tupdate_option('mp_worker_slug', MANPOWER_DEFAULT_WORKER_SLUG);\t\t\n\t}", "public function beforeInstall()\n\t{}", "function setDefaultOverrideOptions() {\n\tglobal $fm_module_options;\n\t\n\t$config = null;\n\t$server_os_distro = isDebianSystem($_POST['server_os_distro']) ? 'debian' : strtolower($_POST['server_os_distro']);\n\t\n\tswitch ($server_os_distro) {\n\t\tcase 'debian':\n\t\t\t$config = array(\n\t\t\t\t\t\t\tarray('cfg_type' => 'global', 'server_serial_no' => $_POST['SERIALNO'], 'cfg_name' => 'pid-file', 'cfg_data' => '/var/run/named/named.pid')\n\t\t\t\t\t\t);\n\t}\n\t\n\tif (is_array($config)) {\n\t\tif (!isset($fm_module_options)) include(ABSPATH . 'fm-modules/' . $_SESSION['module'] . '/classes/class_options.php');\n\t\t\n\t\tforeach ($config as $config_data) {\n\t\t\t$fm_module_options->add($config_data);\n\t\t}\n\t}\n}", "function checkAutomaticUpdates() {\n $settings = $this->getSettings();\n if ($settings && $settings->purchaseCode != \"\") {\n require_once('plugin_update_check.php');\n $updateChecker = new PluginUpdateChecker_2_0(\n 'https://kernl.us/api/v1/updates/56b8bc85201012a97c245f16/', $this->parent->file, 'vcht', 1\n );\n $updateChecker->purchaseCode = $settings->purchaseCode;\n }\n }", "function make_compatible() {\n\t\t\tif ( $this->iscompat == true ) { \n\t\t\t\treturn;\n\t\t\t}\n\t\t\t$options = get_option($this->adminOptionsName);\t\t\t\n\t\t\tif ( !empty($options) ) {\n\t\t\t\tif ( !isset($options['db_plugin_version']) || $options['db_plugin_version'] != $this->version_of_plugin ) {\n\t\t\t\t\t$options = $this->getAdminOptions(); // does the compatibiliy\n\t\t\t\t}\n\t\t\t}\n\t\t\t$this->theSettings = $options;\n\t\t\t$this->iscompat = true;\n\t\t\treturn;\n\t\t}", "function changeMasterSettings($a_omit_init = false)\n\t{\n\t\t$this->tpl->addBlockFile(\"CONTENT\",\"content\",\"tpl.std_layout.html\", \"setup\");\n\t\t$this->tpl->setVariable(\"TXT_HEADER\", $this->lng->txt(\"basic_settings\"));\n\t\t$this->tpl->setVariable(\"TXT_INFO\", $this->lng->txt(\"info_text_pathes\"));\n\n\t\t$this->btn_next_on = true;\n\t\t$this->btn_next_lng = $this->lng->txt(\"create_new_client\").\"...\";\n\t\t$this->btn_next_cmd = \"newclient\";\n\n\t\tif (!$a_omit_init)\n\t\t{\n\t\t\t$this->initBasicSettingsForm();\n\t\t\t$this->getBasicSettingsValues();\n\t\t}\n\t\t$this->tpl->setVariable(\"SETUP_CONTENT\", \"<br>\".$this->form->getHTML().\"<br>\");\n\t}", "function onInit(&$man) {\r\n\t\t$config = $man->getConfig();\r\n\r\n\t\t// Override option\r\n\t\t$config['somegroup.someoption'] = true;\r\n\r\n\t\treturn true;\r\n\t}", "public function do_updates() {\n\t\tif ( ! current_user_can( 'update_plugins' ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$installed_version = get_option( $this->option_name );\n\n\t\t// Maybe it's the first install.\n\t\tif ( ! $installed_version ) {\n\t\t\t$this->save_version();\n\t\t\treturn false;\n\t\t}\n\n\t\tif ( version_compare( $installed_version, $this->version, '<' ) ) {\n\t\t\t$this->perform_updates();\n\t\t}\n\t}", "private function _log_version_number () {\n\t\tupdate_option( $this->_token . '_version', $this->_version );\n\t}", "function install( $parent ) {\n\n\t\t// echo JText::_('COM_MAPYANDEX_INSTALL');\n\t\t// You can have the backend jump directly to the newly installed component configuration page\n\t\t// $parent->getParent()->setRedirectURL('index.php?option=com_democompupdate');\n\t}", "function pm_release_recommended(&$project) {\n if (isset($project['recommended'])) {\n $project['candidate_version'] = $project['recommended'];\n $project['updateable'] = TRUE;\n }\n // If installed version is dev and the candidate version is older, choose\n // latest dev as candidate.\n if (($project['install_type'] == 'dev') && isset($project['candidate_version'])) {\n if ($project['releases'][$project['candidate_version']]['date'] < $project['info']['datestamp']) {\n $project['candidate_version'] = $project['latest_dev'];\n if ($project['releases'][$project['candidate_version']]['date'] <= $project['info']['datestamp']) {\n $project['candidate_version'] = $project['existing_version'];\n $project['updateable'] = FALSE;\n }\n }\n }\n}", "public function install () {\n\t\t$this->_log_version_number();\n\t}", "function wp_booking_calendar_process_update(){\n\tglobal $wpdb;\n\t\n\t\n\t$current_version = get_option('wbc_version');\n\tif($current_version == '') {\n\t\t$current_version = \"1.0.0\";\n\t}\n\tswitch($current_version) {\n\t\tcase '1.0.0':\n\t\t\tupdate_option('wbc_show_text_update_admin','1');\n\t\t\tupdate_option('wbc_show_text_update_public','1');\n\t\t\twp_booking_multisite_update();\n\t\t\t\n\t\t\tupdate_option('wbc_version','4.1.6');\n\t\t\t\n\t\t\tbreak;\n\t\tcase '2.0.0':\n\t\t\tupdate_option('wbc_show_text_update_admin','1');\n\t\t\tupdate_option('wbc_show_text_update_public','1');\n\t\t\twp_booking_multisite_update();\n\t\t\tupdate_option('wbc_version','4.1.6');\n\t\t\t\n\t\t\tbreak;\n\t\tcase '2.0.1':\n\t\t\tupdate_option('wbc_show_text_update_admin','1');\n\t\t\tupdate_option('wbc_show_text_update_public','1');\n\t\t\twp_booking_multisite_update();\n\t\t\tupdate_option('wbc_version','4.1.6');\n\t\t\t\n\t\t\tbreak;\n\t\tcase '2.0.2':\n\t\t\tupdate_option('wbc_show_text_update_admin','1');\n\t\t\tupdate_option('wbc_show_text_update_public','1');\n\t\t\twp_booking_multisite_update();\n\t\t\tupdate_option('wbc_version','4.1.6');\n\t\t\t\n\t\t\tbreak;\n\t\tcase '2.0.3':\n\t\t\tupdate_option('wbc_show_text_update_admin','1');\n\t\t\tupdate_option('wbc_show_text_update_public','1');\n\t\t\twp_booking_multisite_update();\n\t\t\tupdate_option('wbc_version','4.1.6');\n\t\t\t\n\t\t\tbreak;\n\t\tcase '2.0.4':\n\t\t\tupdate_option('wbc_show_text_update_admin','1');\n\t\t\tupdate_option('wbc_show_text_update_public','1');\n\t\t\twp_booking_multisite_update();\n\t\t\tupdate_option('wbc_version','4.1.6');\n\t\t\t\n\t\t\tbreak;\n\t\tcase '2.0.5':\n\t\t\tupdate_option('wbc_show_text_update_admin','1');\n\t\t\tupdate_option('wbc_show_text_update_public','1');\n\t\t\twp_booking_multisite_update();\n\t\t\tupdate_option('wbc_version','4.1.6');\n\t\t\t\n\t\t\tbreak;\n\t\tcase '2.0.6':\n\t\t\t\n\t\t\tupdate_option('wbc_version','4.1.6');\n\t\t\twp_booking_multisite_update();\n\t\t\tbreak;\n\t\tcase '2.0.7':\n\t\t\t\n\t\t\tupdate_option('wbc_version','4.1.6');\n\t\t\twp_booking_multisite_update();\n\t\t\tbreak;\n\t\tcase '3.0.0':\n\t\t\t\n\t\t\tupdate_option('wbc_version','4.1.6');\n\t\t\twp_booking_multisite_update();\n\t\t\t\n\t\t\tbreak;\n\t\tcase '3.0.1':\n\t\t\t\n\t\t\tupdate_option('wbc_version','4.1.6');\n\t\t\twp_booking_multisite_update();\n\t\t\tbreak;\n\t\tcase '3.0.2':\n\t\t\t\n\t\t\tupdate_option('wbc_version','4.1.6');\n\t\t\twp_booking_multisite_update();\n\t\t\tbreak;\n\t\tcase '3.0.3':\n\t\t\tupdate_option('wbc_version','4.1.6');\n\t\t\twp_booking_multisite_update();\n\t\t\tbreak;\n\t\tcase '3.0.4':\n\t\t\tupdate_option('wbc_version','4.1.6');\n\t\t\twp_booking_multisite_update();\n\t\t\tbreak;\n\t\tcase '3.0.5':\n\t\t\tupdate_option('wbc_version','4.1.6');\n\t\t\twp_booking_multisite_update();\n\t\t\tbreak;\n\t\tcase '3.0.6':\n\t\t\tupdate_option('wbc_version','4.1.6');\n\t\t\twp_booking_multisite_update();\n\t\t\tbreak;\n\t\tcase '3.0.7':\n\t\t\tupdate_option('wbc_version','4.1.6');\n\t\t\twp_booking_multisite_update();\n\t\t\tbreak;\n\t\tcase '4.0.0':\n\t\t\tupdate_option('wbc_version','4.1.6');\n\t\t\twp_booking_multisite_update();\n\t\t\tbreak;\n\t\tcase '4.0.1':\n\t\t\tupdate_option('wbc_version','4.1.6');\n\t\t\twp_booking_multisite_update();\n\t\t\tbreak;\n\t\tcase '4.0.2':\n\t\t\tupdate_option('wbc_version','4.1.6');\n\t\t\twp_booking_multisite_update();\n\t\t\tbreak;\n\t\tcase '4.0.3':\n\t\t\tupdate_option('wbc_version','4.1.6');\n\t\t\twp_booking_multisite_update();\n\t\t\tbreak;\n\t\tcase '4.0.4':\n\t\t\tupdate_option('wbc_version','4.1.6');\n\t\t\twp_booking_multisite_update();\n\t\t\tbreak;\n\t\tcase '4.0.5':\n\t\t\tupdate_option('wbc_version','4.1.6');\n\t\t\twp_booking_multisite_update();\n\t\t\tbreak;\n\t\tcase '4.0.6':\n\t\t\tupdate_option('wbc_version','4.1.6');\n\t\t\twp_booking_multisite_update();\n\t\t\tbreak;\n\t\tcase '4.0.7':\n\t\t\tupdate_option('wbc_version','4.1.6');\n\t\t\twp_booking_multisite_update();\n\t\t\tbreak;\n\t\tcase '4.0.8':\n\t\t\tupdate_option('wbc_version','4.1.6');\n\t\t\twp_booking_multisite_update();\n\t\t\tbreak;\n\t\tcase '4.0.9':\n\t\t\tupdate_option('wbc_version','4.1.6');\n\t\t\twp_booking_multisite_update();\n\t\t\tbreak;\n\t\tcase '4.1.0':\n\t\t\tupdate_option('wbc_version','4.1.6');\n\t\t\twp_booking_multisite_update();\n\t\t\tbreak;\n\t\tcase '4.1.1':\n\t\t\tupdate_option('wbc_version','4.1.6');\n\t\t\twp_booking_multisite_update();\n\t\t\tbreak;\n\t\tcase '4.1.2':\n\t\t\tupdate_option('wbc_version','4.1.6');\n\t\t\twp_booking_multisite_update();\n\t\t\tbreak;\n\t\tcase '4.1.3':\n\t\t\tupdate_option('wbc_version','4.1.6');\n\t\t\twp_booking_multisite_update();\n\t\t\tbreak;\n\t\tcase '4.1.4':\n\t\t\tupdate_option('wbc_version','4.1.6');\n\t\t\twp_booking_multisite_update();\n\t\t\tbreak;\n\t\tcase '4.1.5':\n\t\t\tupdate_option('wbc_version','4.1.6');\n\t\t\twp_booking_multisite_update();\n\t\t\tbreak;\n\t\t\n\t\t\n\t\t\n\t\t\t\n\t\t\n\t}\n\t//wp_booking_multisite_update(); ///FOR TESTING PURPOSE; REMOVE\n\t\n\t\n\t\n\t\n}", "public function check_for_updates() {\n $current_version = get_option( 'laterpay_version' );\n if ( version_compare( $current_version, $this->config->version, '!=' ) ) {\n $this->install();\n }\n }", "public static function setInstallMode(string $newInstallMode): void\n {\n self::writeConfiguration(['installMode' => $newInstallMode]);\n }", "private function _log_version_number () {\n update_option( $this->_token . '_version', $this->_version );\n }", "protected function whenNewVersionWasRequested()\n {\n }", "function do_core_upgrade($reinstall = \\false)\n {\n }", "public function setMajor($major) {\n $this->major = $major;\n\n return $this;\n }", "public function onPrePatchApply(PatchEvent $event) {\n $package = $event->getPackage();\n if ($package->getName() == 'drupal/core' && $event->getInstallPath() == 'docroot/core') {\n $event->setInstallPath('docroot');\n if ($this->io->isVerbose()) {\n $this->io->write(sprintf(\"'%s [id: %s]' installation path has been altered for patching.\", $package->getName(), $package->getId()));\n }\n }\n }", "public function update(/*ComponentAdapter $parent*/): void\n {\n try {\n // The autoloader should have been set by the preflight method.\n // The config class will start updating itself as soon as the\n // configVersion key has been set.\n if (empty($this->container->getConfig()->get(Config::VersionKey))) {\n $values = [Config::VersionKey => $this->currentVersion];\n $this->container->getConfig()->save($values);\n }\n JFactory::getApplication()->enqueueMessage(\"The Acumulus component has been updated to version $this->newVersion.\", 'message');\n } catch (Throwable $e) {\n Installer::getInstance()->abort($e->getMessage());\n }\n }", "protected static function defaultLockVersion()\n {\n return 1;\n }", "function pre_update_option($value, $option, $old_value)\n {\n }", "public function getMajorOptions() {\n\t\treturn array(\n\t\t\t\"Urban Planing\" => \"Urban Planing\",\n\t\t\t\"Urban Design\" => \"Urban Design\",\n \"Architecture\" => \"Architecture\",\n \"Landscape Architecture\" => \"Landscape Architecture\",\n );\n }", "public function updateVersionMatrix() {}", "public function updateVersionMatrix() {}", "function monitor_upgrade($nom_meta_base_version, $version_cible) {\n\t\n\t$maj = array();\n\n\t$maj['create'] = array(\n\t\tarray('maj_tables', array('spip_monitor', 'spip_monitor_log', 'spip_syndic', 'spip_monitor_stats', 'spip_monitor_stats_plugins', 'spip_monitor_evenements'))\n\t);\n\n\t$maj['1.1'] = array(\n\t\t// Ajout de champs dans spip_syndic\n\t\tarray('maj_tables', array('spip_syndic'))\n\t);\n\n\t$maj['1.2'] = array(\n\t\t// Ajout du champs alert\n\t\tarray('sql_alter', 'TABLE spip_monitor ADD alert int(11) DEFAULT 0 NOT NULL AFTER id_syndic'));\n\n\t$maj['1.3'] = array(\n\t\t// Ajout de la table spip_monitor_stats, spip_monitor_stats_plugins\n\t\tarray('maj_tables', array('spip_syndic', 'spip_monitor_stats', 'spip_monitor_stats_plugins'))\n\t);\n\n\t$maj['1.4'] = array(\n\t\t// Ajout de la table spip_monitor_stats, spip_monitor_stats_plugins\n\t\tarray('maj_tables', array('spip_monitor_stats'))\n\t);\n\n\t$maj['1.5'] = array(\n\t\t// Ajouter un index à la table spip_shortcut_urls_logs\n\t\tarray('sql_alter', 'TABLE spip_monitor ADD INDEX (id_syndic)'));\n\n\t$maj['1.7'] = array(\n\t\t// Ajouter un index à la table spip_monitor_log\n\t\tarray('sql_alter', 'TABLE spip_monitor_log ADD INDEX (valeur)'));\n\n\t$maj['1.8'] = array(\n\t\t// Ajout de champs dans spip_monitor_evenements\n\t\tarray('maj_tables', array('spip_monitor_evenements'))\n\t);\n\n\t$maj['1.9'] = array(\n\t\t// Ajout du champs monitor_evenements dans spip_syndic\n\t\tarray('maj_tables', array('spip_syndic'))\n\t);\n\n\t$maj['2.0'] = array(\n\t\t// Ajouter un index à la table spip_monitor_log\n\t\tarray('sql_alter', 'TABLE spip_monitor_log MODIFY valeur DECIMAL(50,14)'));\n\n\t$maj['2.1'] = array(\n\t\t// Ajout du champs ping_courant et poids_courant dans spip_monitor\n\t\tarray('maj_tables', array('spip_monitor'))\n\t);\n\n\t$maj['2.2'] = array(\n\t\t// Suppression de unsigned et auto incremente pour compat sqlite\n\t\tarray('sql_alter', 'TABLE spip_monitor MODIFY id_monitor BIGINT(21) NOT NULL AUTO_INCREMENT'),\n\t\tarray('sql_alter', 'TABLE spip_monitor_log MODIFY id_monitor_log BIGINT(21) NOT NULL AUTO_INCREMENT'),\n\t\tarray('sql_alter', 'TABLE spip_monitor_stats MODIFY id_monitor_stats BIGINT(21) NOT NULL AUTO_INCREMENT'),\n\t\tarray('sql_alter', 'TABLE spip_monitor_evenements MODIFY id_monitor_evenemnts BIGINT(21) NOT NULL AUTO_INCREMENT')\n\t);\n\n\tinclude_spip('base/upgrade');\n\tmaj_plugin($nom_meta_base_version, $version_cible, $maj);\n}", "function sitemgr_upgrade0_9_15_006()\n{\n\t$GLOBALS['egw_setup']->oProc->AddColumn('phpgw_sitemgr_categories_state','index_page_id',array(\n\t\t'type' => 'int',\n\t\t'precision' => '4',\n\t\t'default' => '0'\n\t));\n\n\t$GLOBALS['setup_info']['sitemgr']['currentver'] = '0.9.15.007';\n\treturn $GLOBALS['setup_info']['sitemgr']['currentver'];\n}", "function hello_world_install() {\nadd_option(\"ernaehrungsnews_anzahl\", '3', '', 'yes');\nadd_option(\"ernaehrungsnews_trimmer\", '100', '', 'yes');\nadd_option(\"ernaehrungsnews_kategorieId\", '3', '', 'yes');\n\n\n\n}", "function install_core_config() {\n $db = DB::getInstance();\n $site_config = array(\n 'name' => Sanitize::checkPlain($_POST['name']),\n 'slogan' => Sanitize::checkPlain($_POST['slogan']),\n 'lang' => Session::get('lang'),\n 'theme' => 'core'\n );\n $sql = \"INSERT INTO `config` (`property`, `contents`) VALUES \"\n . \"('?', '?'),\"\n . \"('?', '?'),\"\n . \"('?', '?'),\"\n . \"('?', '?'),\";\n if(!$db->query($sql, array('site_name', $site_config['name'], 'site_slogan', $site_config['slogan'], 'site_language', $site_config['lang'], 'site_theme', $site_config['theme']))->error()) {\n return true;\n }\n else {\n //Return error\n System::addMessage('error', rt('The website could not be configured. Please make sure that you have entered all the information correctly and that you have supplied a database username and password with sufficient permissions to make changes in the database'));\n }\n return false;\n}" ]
[ "0.6609055", "0.63501275", "0.6070087", "0.60391474", "0.59907746", "0.5892149", "0.580209", "0.57587403", "0.57587403", "0.5744665", "0.5701212", "0.56874806", "0.5643235", "0.5626332", "0.5625544", "0.5619536", "0.5616154", "0.5601051", "0.55810654", "0.557101", "0.5567582", "0.55667233", "0.55061615", "0.5505656", "0.5483634", "0.54824626", "0.54393744", "0.54138523", "0.53874224", "0.53777117", "0.5373543", "0.5361975", "0.53548133", "0.5344419", "0.53413767", "0.53348684", "0.53326774", "0.53287154", "0.5321583", "0.5319926", "0.5315268", "0.53128403", "0.5300675", "0.527955", "0.52788955", "0.52757853", "0.52743214", "0.52664304", "0.526451", "0.5252265", "0.5247464", "0.5225008", "0.52218723", "0.521784", "0.5211267", "0.5210597", "0.5206982", "0.5202718", "0.5189188", "0.51884437", "0.5183281", "0.5179885", "0.517526", "0.51752573", "0.51697093", "0.51657844", "0.51588595", "0.5158472", "0.51541734", "0.5142311", "0.5134671", "0.5132523", "0.5132244", "0.5132142", "0.5122466", "0.51191264", "0.51110834", "0.5102972", "0.509571", "0.5094999", "0.50901353", "0.50846505", "0.5083422", "0.5082492", "0.50791574", "0.506508", "0.5061426", "0.5061245", "0.5055957", "0.5053366", "0.5052399", "0.5048262", "0.504504", "0.50300527", "0.5027231", "0.5026208", "0.5025805", "0.50195354", "0.50022715", "0.5001249", "0.50004864" ]
0.0
-1
Required. A list of requirements for the `AccessLevel` to be granted. Generated from protobuf field repeated .google.identity.accesscontextmanager.v1.Condition conditions = 1;
public function getConditions() { return $this->conditions; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setConditions($var)\n {\n $arr = GPBUtil::checkRepeatedField($var, \\Google\\Protobuf\\Internal\\GPBType::MESSAGE, \\Google\\Identity\\AccessContextManager\\V1\\Condition::class);\n $this->conditions = $arr;\n\n return $this;\n }", "public function getConditions()\n {\n if (array_key_exists(\"conditions\", $this->_propDict)) {\n if (is_a($this->_propDict[\"conditions\"], \"\\Microsoft\\Graph\\Model\\ConditionalAccessConditionSet\") || is_null($this->_propDict[\"conditions\"])) {\n return $this->_propDict[\"conditions\"];\n } else {\n $this->_propDict[\"conditions\"] = new ConditionalAccessConditionSet($this->_propDict[\"conditions\"]);\n return $this->_propDict[\"conditions\"];\n }\n }\n return null;\n }", "public function setConditions($var)\n {\n $arr = GPBUtil::checkRepeatedField($var, \\Google\\Protobuf\\Internal\\GPBType::MESSAGE, \\Google\\Cloud\\Run\\V2\\Condition::class);\n $this->conditions = $arr;\n\n return $this;\n }", "public function getConditionTypeAllowableValues()\n {\n return [\n self::CONDITION_TYPE_NEW_NEW,\n self::CONDITION_TYPE_NEW_OPEN_BOX,\n self::CONDITION_TYPE_NEW_OEM,\n self::CONDITION_TYPE_REFURBISHED_REFURBISHED,\n self::CONDITION_TYPE_USED_LIKE_NEW,\n self::CONDITION_TYPE_USED_VERY_GOOD,\n self::CONDITION_TYPE_USED_GOOD,\n self::CONDITION_TYPE_USED_ACCEPTABLE,\n self::CONDITION_TYPE_COLLECTIBLE_LIKE_NEW,\n self::CONDITION_TYPE_COLLECTIBLE_VERY_GOOD,\n self::CONDITION_TYPE_COLLECTIBLE_GOOD,\n self::CONDITION_TYPE_COLLECTIBLE_ACCEPTABLE,\n self::CONDITION_TYPE_CLUB_CLUB,\n ];\n }", "public function getAccessAllowableValues()\n {\n return [\n self::ACCESS_MAILBOX,\nself::ACCESS_ACCOUNT,\nself::ACCESS_PUB,\nself::ACCESS_OFFICIAL,\nself::ACCESS_SHARED, ];\n }", "public function getAccessRestrictions()\n {\n return $this->getFieldArray('506');\n }", "public function getConditions()\n {\n if (array_key_exists(\"conditions\", $this->_propDict)) {\n if (is_a($this->_propDict[\"conditions\"], \"\\Beta\\Microsoft\\Graph\\Model\\AuthenticationConditions\") || is_null($this->_propDict[\"conditions\"])) {\n return $this->_propDict[\"conditions\"];\n } else {\n $this->_propDict[\"conditions\"] = new AuthenticationConditions($this->_propDict[\"conditions\"]);\n return $this->_propDict[\"conditions\"];\n }\n }\n return null;\n }", "public function getConditions()\n\t{\n\t\treturn $this->conditions;\n\t}", "public function getConditions()\n\t{\n\t\treturn $this->conditions;\n\t}", "public function setConditions($var)\n {\n $arr = GPBUtil::checkRepeatedField($var, \\Google\\Protobuf\\Internal\\GPBType::STRING);\n $this->conditions = $arr;\n\n return $this;\n }", "public function getCareLevelStateAllowableValues()\n {\n return [\n self::CARE_LEVEL_STATE_JA,\n self::CARE_LEVEL_STATE_NEIN,\n self::CARE_LEVEL_STATE_BEANTRAGT,\n self::CARE_LEVEL_STATE_UNBEKANNT,\n ];\n }", "public function getConditions(): array\n\t{\n\t\treturn $this->conditions;\n\t}", "public function getSourceAccessConditions()\n {\n return $this->sourceAccessConditions;\n }", "public function getConditions();", "public function getConditions();", "public function getConditions();", "public function getPermitsAwarded()\n {\n if (!$this->isUnderConsideration()) {\n throw new ForbiddenException(\n 'This application is not in the correct state to return permits awarded ('.$this->status->getId().')'\n );\n }\n\n $irhpPermitApplication = $this->getFirstIrhpPermitApplication();\n return $irhpPermitApplication->countPermitsAwarded();\n }", "public function accessRules()\n {\n $acl = $this->acl;\n\n return [\n ['allow', // allow all users to perform 'index' and 'view' actions\n 'actions' => ['index', 'view'],\n 'users' => ['@'],\n ],\n ['allow', // allow authenticated user to perform 'create' and 'update' actions\n 'actions' => ['create', 'getLoadingAddressList'],\n 'expression' => function() use ($acl) {\n return $acl->canCreateOrder();\n },\n ],\n ['allow', // allow to perform 'accomplish' action\n 'actions' => ['update'],\n 'expression' => function() use ($acl) {\n return $acl->canUpdateOrder();\n },\n ],\n ['allow', // allow to perform 'accomplish' action\n 'actions' => ['withdraw'],\n 'expression' => function() use ($acl) {\n return $acl->canWithdrawOrder();\n },\n ],\n ['allow', // allow to perform 'accomplish' action\n 'actions' => ['restore'],\n 'expression' => function() use ($acl) {\n return $acl->canRestoreOrder();\n },\n ],\n ['allow', // allow to perform 'accomplish' action\n 'actions' => ['accomplish'],\n 'expression' => function() use ($acl) {\n return $acl->canAccomplishOrder();\n },\n ],\n ['allow', // allow to perform 'accomplish' action\n 'actions' => ['reopen'],\n 'expression' => function() use ($acl) {\n return $acl->canReopenOrder();\n },\n ],\n ['allow', // allow to perform 'loadCargo' action\n 'actions' => ['loadCargo'],\n 'expression' => function() use ($acl) {\n return $acl->canAccessLoadCargo();\n },\n ],\n ['allow', // allow to perform 'delete' action\n 'actions' => ['delete', 'softDelete'],\n 'expression' => function() use ($acl) {\n return $acl->canDeleteOrder();\n },\n ],\n ['allow', // allow admin user to perform 'admin' action\n 'actions' => ['admin'],\n 'expression' => function() use ($acl) {\n return $acl->getUser()->isAdmin();\n },\n ],\n ['deny', // deny all users\n 'users' => ['*'],\n ],\n ];\n }", "public function setConditions(array $conditions);", "public function accessRules()\n\t{\n\t\treturn array(\n\t\t\tarray('allow', // allow admins only\n\t\t\t\t'users'=>Yii::app()->getModule('user')->getAdmins(),\n\t\t\t),\n\t\t\tarray('allow',\n\t\t\t\t\t\t/*'users' => array(\"?\"),*/\n 'expression' => array($this,'isLogedInOrHasKey'),\n ),\n\t\t\tarray('deny', // deny all users\n\t\t\t\t'users'=>array('*'),\n\t\t\t),\n\t\t);\n\t}", "public function accessRules() {\n // en este array colocar solo los action de consulta\n return array(\n array('allow',\n 'actions' => array(),\n 'pbac' => array('write', 'admin'),\n ),\n array('allow',\n 'actions' => array(),\n 'pbac' => array('read'),\n ),\n // este array siempre va asì para delimitar el acceso a todos los usuarios que no tienen permisologia de read o write sobre el modulo\n array('deny', // deny all users\n 'users' => array('*'),\n ),\n );\n }", "public function get_user_content_access_conditions() {\n\t\tglobal $wpdb;\n\n\t\tif ( empty( $this->user_content_access_conditions ) ) {\n\n\t\t\t// prevent infinite loops\n\t\t\tremove_filter( 'pre_get_posts', array( $this->get_posts_restrictions_instance(), 'exclude_restricted_posts' ), 999 );\n\n\t\t\t$rules = wc_memberships()->get_rules_instance()->get_rules( array( 'rule_type' => array( 'content_restriction', 'product_restriction' ), ) );\n\t\t\t$restricted = $granted = array(\n\t\t\t\t'posts' => array(),\n\t\t\t\t'post_types' => array(),\n\t\t\t\t'terms' => array(),\n\t\t\t\t'taxonomies' => array(),\n\t\t\t);\n\n\t\t\t$conditions = array(\n\t\t\t\t'restricted' => $restricted,\n\t\t\t\t'granted' => $granted,\n\t\t\t);\n\n\t\t\t// shop managers/admins can access everything\n\t\t\tif ( is_user_logged_in() && current_user_can( 'wc_memberships_access_all_restricted_content' ) ) {\n\n\t\t\t\t$this->user_content_access_conditions = $conditions;\n\n\t\t\t} else {\n\n\t\t\t\t// get all the content that is either restricted or granted for the user\n\t\t\t\tif ( ! empty( $rules ) ) {\n\n\t\t\t\t\t$user_id = get_current_user_id();\n\n\t\t\t\t\tforeach ( $rules as $rule ) {\n\n\t\t\t\t\t\t// skip rule if the plan is not published\n\t\t\t\t\t\tif ( 'publish' !== get_post_status( $rule->get_membership_plan_id() ) ) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// skip non-view product restriction rules\n\t\t\t\t\t\tif ( 'product_restriction' === $rule->get_rule_type() && 'view' !== $rule->get_access_type() ) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// check if user is an active member of the plan\n\t\t\t\t\t\t$plan_id = $rule->get_membership_plan_id();\n\t\t\t\t\t\t$is_active_member = $user_id > 0 && wc_memberships_is_user_active_member( $user_id, $plan_id );\n\t\t\t\t\t\t$has_access = false;\n\n\t\t\t\t\t\t// check if user has scheduled access to the content\n\t\t\t\t\t\tif ( $is_active_member && ( $user_membership = wc_memberships()->get_user_memberships_instance()->get_user_membership( $user_id, $plan_id ) ) ) {\n\n\t\t\t\t\t\t\t/** this filter is documented in includes/class-wc-memberships-capabilities.php **/\n\t\t\t\t\t\t\t$from_time = apply_filters( 'wc_memberships_access_from_time', $user_membership->get_start_date( 'timestamp' ), $rule, $user_membership );\n\n\t\t\t\t\t\t\t// sanity check: bail out if there's no valid set start date\n\t\t\t\t\t\t\tif ( ! $from_time || ! is_numeric( $from_time ) ) {\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t$inactive_time = $user_membership->get_total_inactive_time();\n\t\t\t\t\t\t\t$current_time = current_time( 'timestamp', true );\n\t\t\t\t\t\t\t$rule_access_time = $rule->get_access_start_time( $from_time );\n\n\t\t\t\t\t\t\t$has_access = $rule_access_time + $inactive_time <= $current_time;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t$condition = $has_access ? 'granted' : 'restricted';\n\n\t\t\t\t\t\t// find posts that are either restricted or granted access to\n\t\t\t\t\t\tif ( 'post_type' === $rule->get_content_type() ) {\n\n\t\t\t\t\t\t\tif ( $rule->has_objects() ) {\n\n\t\t\t\t\t\t\t\t$post_type = $rule->get_content_type_name();\n\t\t\t\t\t\t\t\t$post_ids = array();\n\t\t\t\t\t\t\t\t$object_ids = $rule->get_object_ids();\n\n\t\t\t\t\t\t\t\t// leave out posts that have restrictions disabled\n\t\t\t\t\t\t\t\tif ( is_array( $object_ids ) ) {\n\t\t\t\t\t\t\t\t\tforeach ( $rule->get_object_ids() as $post_id ) {\n\t\t\t\t\t\t\t\t\t\tif ( 'yes' !== wc_memberships_get_content_meta( $post_id, '_wc_memberships_force_public', true ) ) {\n\t\t\t\t\t\t\t\t\t\t\t$post_ids[] = $post_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\n\t\t\t\t\t\t\t\t// if there are no posts left, continue to next rule\n\t\t\t\t\t\t\t\tif ( empty( $post_ids ) ) {\n\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tif ( ! isset( $conditions[ $condition ]['posts'][ $post_type ] ) ) {\n\t\t\t\t\t\t\t\t\t$conditions[ $condition ]['posts'][ $post_type ] = array();\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t$conditions[ $condition ]['posts'][ $post_type ] = array_unique( array_merge( $conditions[ $condition ][ 'posts' ][ $post_type ], $post_ids ) );\n\n\t\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t\t// find post types that are either restricted or granted access to\n\t\t\t\t\t\t\t\t$conditions[ $condition ]['post_types'] = array_unique( array_merge( $conditions[ $condition ][ 'post_types' ], (array) $rule->get_content_type_name() ) );\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t} elseif ( 'taxonomy' === $rule->get_content_type() ) {\n\n\t\t\t\t\t\t\tif ( $rule->has_objects() ) {\n\n\t\t\t\t\t\t\t\t// find taxonomy terms that are either restricted or granted access to\n\t\t\t\t\t\t\t\t$taxonomy = $rule->get_content_type_name();\n\n\t\t\t\t\t\t\t\tif ( ! isset( $conditions[ $condition ][ 'terms' ][ $taxonomy ] ) ) {\n\t\t\t\t\t\t\t\t\t$conditions[ $condition ]['terms'][ $taxonomy ] = array();\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t$object_ids = $rule->get_object_ids();\n\n\n\t\t\t\t\t\t\t\t$conditions[ $condition ]['terms'][ $taxonomy ] = array_unique( array_merge( $conditions[ $condition ][ 'terms' ][ $taxonomy ], $object_ids ) );\n\n\t\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t\t$conditions[ $condition ]['taxonomies'] = array_unique( array_merge( $conditions[ $condition ][ 'taxonomies' ], (array) $rule->get_content_type_name() ) );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// loop over granted content and check if the user has access to delayed content\n\t\t\t\tforeach ( $conditions['granted'] as $content_type => $values ) {\n\n\t\t\t\t\tif ( empty( $values ) || ! is_array( $values ) ) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\tforeach ( $values as $key => $value ) {\n\n\t\t\t\t\t\tswitch ( $content_type ) {\n\n\t\t\t\t\t\t\tcase 'posts':\n\t\t\t\t\t\t\t\tif ( is_array( $value ) ) {\n\t\t\t\t\t\t\t\t\tforeach ( $value as $post_key => $post_id ) {\n\t\t\t\t\t\t\t\t\t\tif ( ! current_user_can( 'wc_memberships_view_delayed_post_content', $post_id ) ) {\n\t\t\t\t\t\t\t\t\t\t\tunset( $conditions['granted'][ $content_type ][ $key ][ $post_key ] );\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\tbreak;\n\n\t\t\t\t\t\t\tcase 'post_types':\n\t\t\t\t\t\t\t\tif ( ! current_user_can( 'wc_memberships_view_delayed_post_type', $value ) ) {\n\t\t\t\t\t\t\t\t\tunset( $conditions['granted'][ $content_type ][ $key ] );\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\tcase 'taxonomies':\n\t\t\t\t\t\t\t\tif ( ! current_user_can( 'wc_memberships_view_delayed_taxonomy', $value ) ) {\n\t\t\t\t\t\t\t\t\tunset( $conditions['granted'][ $content_type ][ $key ] );\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\tcase 'terms':\n\t\t\t\t\t\t\t\tif ( is_array( $value ) ) {\n\t\t\t\t\t\t\t\t\tforeach ( $value as $term_key => $term ) {\n\t\t\t\t\t\t\t\t\t\tif ( ! current_user_can( 'wc_memberships_view_delayed_taxonomy_term', $key, $term ) ) {\n\t\t\t\t\t\t\t\t\t\t\tunset( $conditions['granted'][ $content_type ][ $key ][ $term_key ] );\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\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// remove restricted items that should be granted for the current user\n\t\t\t\t// content types are high-level restriction items - posts, post_types, terms, and taxonomies\n\t\t\t\tforeach ( $conditions['restricted'] as $content_type => $object_types ) {\n\n\t\t\t\t\tif ( empty( $conditions['granted'][ $content_type ] ) || empty( $object_types ) ) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\t// object types are child elements of a content type,\n\t\t\t\t\t// e.g. for the posts content type, object types are post_types( post and product)\n\t\t\t\t\t// for a term content type, object types are taxonomy names (e.g. category)\n\t\t\t\t\tforeach ( $object_types as $object_type_name => $object_ids ) {\n\n\t\t\t\t\t\tif ( empty( $conditions['granted'][ $content_type ][ $object_type_name ] ) || empty( $object_ids ) ) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif ( is_array( $object_ids ) ) {\n\t\t\t\t\t\t\t// if the restricted object ID is also granted, remove it from restrictions\n\t\t\t\t\t\t\tforeach ( $object_ids as $object_id_index => $object_id ) {\n\n\t\t\t\t\t\t\t\tif ( in_array( $object_id, $conditions['granted'][ $content_type ][ $object_type_name ], false ) ) {\n\t\t\t\t\t\t\t\t\tunset( $conditions['restricted'][ $content_type ][ $object_type_name ][ $object_id_index ] );\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 {\n\t\t\t\t\t\t\t// post type handling\n\t\t\t\t\t\t\tif ( in_array( $object_ids, $conditions['granted'][ $content_type ], false ) ) {\n\t\t\t\t\t\t\t\tunset( $conditions['restricted'][ $content_type ][ array_search( $object_ids, $conditions['restricted'][ $content_type ], false ) ] );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// grant access to posts that have restrictions disabled\n\t\t\t\t$public_posts = $wpdb->get_results( \"\n\t\t\t\t\tSELECT p.ID, p.post_type FROM $wpdb->posts p\n\t\t\t\t\tLEFT JOIN $wpdb->postmeta pm\n\t\t\t\t\tON p.ID = pm.post_id\n\t\t\t\t\tWHERE pm.meta_key = '_wc_memberships_force_public'\n\t\t\t\t\tAND pm.meta_value = 'yes'\n\t\t\t\t\" );\n\n\t\t\t\tif ( ! empty( $public_posts ) ) {\n\t\t\t\t\tforeach ( $public_posts as $post ) {\n\n\t\t\t\t\t\tif ( ! isset( $conditions['granted']['posts'][ $post->post_type ] ) ) {\n\t\t\t\t\t\t\t$conditions['granted']['posts'][ $post->post_type ] = array();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t$conditions['granted']['posts'][ $post->post_type ][] = $post->ID;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$this->user_content_access_conditions = $conditions;\n\n\t\t\tadd_filter( 'pre_get_posts', array( $this->get_posts_restrictions_instance(), 'exclude_restricted_posts' ), 999 );\n\t\t}\n\n\t\treturn $this->user_content_access_conditions;\n\t}", "public function accessRules()\r\n\t{\r\n\t\treturn array(\r\n\t\t\tarray('allow', \r\n\t\t\t\t'actions'=>array(\r\n 'admin',\r\n\r\n //Users\r\n\r\n 'users',\r\n 'checkstatus',\r\n 'activate',\r\n\r\n //Drivers\r\n 'drivers',\r\n 'loaddriverform',\r\n 'validatedriver',\r\n 'driverstatus',\r\n 'savedriverstatus',\r\n\r\n //Cars\r\n 'cars',\r\n 'loadcarform',\r\n 'validatecar',\r\n 'carstatus',\r\n 'savecarstatus',\r\n 'repairlogform',\r\n 'saverepairlog',\r\n ),\r\n\t\t\t\t'roles'=>array('rxAdmin'),\r\n\t\t\t),\r\n\r\n\t\t\tarray('deny', \r\n\t\t\t\t'actions'=>array(\r\n 'admin',\r\n 'users',\r\n 'checkstatus',\r\n 'activate',\r\n 'drivers',\r\n 'loaddriverform',\r\n 'validatedriver',\r\n 'driverstatus',\r\n 'savedriverstatus',\r\n 'cars',\r\n 'loadcarform',\r\n 'validatecar',\r\n 'carstatus',\r\n 'savecarstatus',\r\n 'repairlogform',\r\n 'saverepairlog',\r\n ),\r\n\t\t\t\t'roles'=>array('rxClient'),\r\n\t\t\t),\r\n \r\n array('allow', \r\n\t\t\t\t'actions'=>array(\r\n ),\r\n\t\t\t\t'roles'=>array('rxClient'),\r\n\t\t\t),\r\n\t\t\t\r\n\t\t\tarray('deny', // deny all other users\r\n\t\t\t\t'users'=>array('*'),\r\n\t\t\t),\r\n\t\t\t\r\n\t\t);\r\n\t}", "public function get_conditions()\n {\n return $this->conditions;\n }", "public function accessRules()\n {\n return array(\n array(\n 'allow',\n 'actions' => array('create'),\n 'roles' => array(Rbac::OP_QA_QUESTION_CREATE),\n ),\n array(\n 'deny',\n 'actions' => array('create'),\n ),\n array(\n 'allow',\n 'actions' => array('update'),\n 'roles' => array(Rbac::OP_QA_QUESTION_UPDATE),\n ),\n array(\n 'deny',\n 'actions' => array('update'),\n ),\n array(\n 'allow',\n 'actions' => array('saveAnswer'),\n 'roles' => array(Rbac::OP_QA_ANSWER_CREATE),\n ),\n array(\n 'deny',\n 'actions' => array('saveAnswer'),\n ),\n );\n }", "public function &getConditions() {\n return $this->conditions;\n }", "public function accessRules()\n\t{\n\t\treturn array(\n\t\t\tarray('allow',\n 'actions'=>array('admin','view'),\n 'roles'=>array('reader', 'writer')\n ),\n array('allow',\n\t\t\t\t'actions'=>array('create', 'update', 'delete'),\n 'roles'=>array('writer')\n\t\t\t),\n\t\t\tarray('deny', // deny all users\n\t\t\t\t'users'=>array('*'),\n\t\t\t),\n\t\t);\n\t}", "public function getRequiredPermissions()\r\n\t{\r\n\t\treturn array();\r\n\t}", "public function allowedPermissions()\n {\n return $this->permissions()->wherePivot('has_access', true)->orderBy('name');\n }", "public function getAccessPolicyTypeAllowableValues()\n {\n return [\n self::ACCESS_POLICY_TYPE__8021X,\n self::ACCESS_POLICY_TYPE_MAC_AUTHENTICATION_BYPASS,\n self::ACCESS_POLICY_TYPE_HYBRID_AUTHENTICATION,\n ];\n }", "public function getRequiredPermissions()\n\t{\n\t\treturn array();\n\t}", "public function accessRules() \r\n\t{\r\n\t\treturn array(\r\n\t\t\tarray('allow', // allow all users to perform 'index' and 'view' actions\r\n\t\t\t\t'actions'=>array('index'),\r\n\t\t\t\t'users'=>array('*'),\r\n\t\t\t),\r\n\t\t\tarray('allow', // allow authenticated user to perform 'create' and 'update' actions\r\n\t\t\t\t'actions'=>array('suggest'),\r\n\t\t\t\t'users'=>array('@'),\r\n\t\t\t\t'expression'=>'isset(Yii::app()->user->level)',\r\n\t\t\t\t//'expression'=>'isset(Yii::app()->user->level) && (Yii::app()->user->level != 1)',\r\n\t\t\t),\r\n\t\t\tarray('allow', // allow authenticated user to perform 'create' and 'update' actions\r\n\t\t\t\t'actions'=>array('manage','add','delete','status'),\r\n\t\t\t\t'users'=>array('@'),\r\n\t\t\t\t'expression'=>'isset(Yii::app()->user->level) && in_array(Yii::app()->user->level, array(1,2))',\r\n\t\t\t),\r\n\t\t\tarray('allow', // allow admin user to perform 'admin' and 'delete' actions\r\n\t\t\t\t'actions'=>array(),\r\n\t\t\t\t'users'=>array('admin'),\r\n\t\t\t),\r\n\t\t\tarray('deny', // deny all users\r\n\t\t\t\t'users'=>array('*'),\r\n\t\t\t),\r\n\t\t);\r\n\t}", "public function getLevelAllowableValues()\n {\n return [\n self::LEVEL_QM,\n self::LEVEL_EF,\n self::LEVEL_QF,\n self::LEVEL_SF,\n self::LEVEL_F,\n ];\n }", "public function getConditions(): ConditionList\n {\n return new ConditionList($this->conditions->toArray());\n }", "protected function setRequiredAccessLevelsForPost() {\n $this->post_required_access_levels = array(\"owner\",\"admin\",\"collaborator\");\n }", "public function accessRules()\n\t{\n\t\treturn array(\n\t\t\tarray('allow', // Allow superusers to access Rights\n\t\t\t\t'actions'=>array(\n\t\t\t\t\t'permissions',\n\t\t\t\t\t'operations',\n\t\t\t\t\t'tasks',\n\t\t\t\t\t'roles',\n\t\t\t\t\t'generate',\n\t\t\t\t\t'create',\n\t\t\t\t\t'update',\n\t\t\t\t\t'delete',\n\t\t\t\t\t'removeChild',\n\t\t\t\t\t'assign',\n\t\t\t\t\t'revoke',\n\t\t\t\t\t'sortable',\n\t\t\t\t),\n\t\t\t\t'users'=>$this->_authorizer->getSuperusers(),\n\t\t\t),\n\t\t\tarray('deny', // Deny all users\n\t\t\t\t'users'=>array('*'),\n\t\t\t),\n\t\t);\n\t}", "public static function impliedPermissions() {\n return [\n self::PERMISSION_READ => [self::PERMISSION_WRITE, self::PERMISSION_ADMIN],\n self::PERMISSION_WRITE => [self::PERMISSION_ADMIN],\n ];\n }", "public function getScopeAllowableValues()\n {\n return [\n self::SCOPE_NONE,\n self::SCOPE_TEST_RUN,\n self::SCOPE_TEST_RESULT,\n self::SCOPE_SYSTEM,\n self::SCOPE_ALL,\n ];\n }", "public function getConditionsDescription()\n {\n return $this->conditionsDescription;\n }", "public function get_conditions() {\n $conditions = get_post_meta( $this->post_id, '_wcs_conditions', true );\n\n if ( ! $conditions ) {\n return array();\n }\n\n return (array) $conditions;\n }", "public function get(): array\n {\n return $this->criterions;\n }", "public function accessRules() {\n return array(\n array(\n 'deny',\n 'actions' => array('oauthadmin'),\n ),\n );\n }", "public function accessRules() {\n return array(\n array('allow',\n 'actions' => array(\n 'popup',\n 'gridView',\n 'excel',\n ),\n 'roles' => array('admin', 'super_admin', 'operations_admin', 'limited_admin')\n ),\n array('allow',\n 'actions' => array(\n 'updateStatus',\n 'list',\n 'update',\n 'delete',\n 'count',\n 'excelSummary',\n ),\n 'users' => array('@')\n ),\n array('deny',\n 'users' => array('*')\n )\n );\n }", "public function accessRules()\n {\n \treturn array (\n \t\t\tarray (\n \t\t\t\t\t'allow',\n \t\t\t\t\t//'actions' => array ('*'),\n \t\t\t\t\t'roles' => array ('admin')\n \t\t\t),\n \t\t\tarray (\n \t\t\t\t\t'deny', // deny all users\n \t\t\t\t\t'users' => array ('*')\n \t\t\t)\n \t);\n }", "public function accessRules()\n\t{\n\t\treturn array(\n\t\t\tarray('allow', // allow authenticated user to perform 'create' and 'update' actions\n\t\t\t\t'actions'=>array('system','create','update','index','backupDatabase'),\n\t\t\t\t'expression' => '$user->isAdmin()',\n\t\t\t),\t\t\t\n\t\t\t\n\t\t\tarray('deny', // deny all users\n\t\t\t\t'users'=>array('*'),\n\t\t\t),\n\t\t);\n\t}", "public function getStatusAllowableValues()\n {\n return [\n self::STATUS_LOCKED,\nself::STATUS_AVAILABLE, ];\n }", "public function get_available_rights();", "public function accessRules()\n\t{\n\t\treturn array(\n\t\t\tarray('allow', // allow admin user to perform 'admin' and 'delete' actions\n\t\t\t\t'expression'=>'helpers::isadmin()',\n\t\t\t),\n\t\t\tarray('deny', // deny all users\n\t\t\t\t'users'=>array('*'),\n\t\t\t),\n\t\t);\n\t}", "public function accessRules()\n\t{\n\t\treturn array(\n\t\t\tarray('allow', // allow authenticated user to perform 'create' and 'update' actions\n\t\t 'actions'=>array('global', 'backup'),\n\t\t\t\t'users'=>array('@'),\n\t\t\t\t'expression'=>'Yii::app()->user->isAdmin'\n\t\t\t),\n\t\t\tarray('deny', // deny all users\n\t\t\t\t'users'=>array('*'),\n\t\t\t),\n\t\t);\n\t}", "public function getWinnerCriteriaAllowableValues()\n {\n return [\n self::WINNER_CRITERIA_OPEN,\n self::WINNER_CRITERIA_CLICK,\n ];\n }", "public function getGrantControls()\n {\n if (array_key_exists(\"grantControls\", $this->_propDict)) {\n if (is_a($this->_propDict[\"grantControls\"], \"\\Microsoft\\Graph\\Model\\ConditionalAccessGrantControls\") || is_null($this->_propDict[\"grantControls\"])) {\n return $this->_propDict[\"grantControls\"];\n } else {\n $this->_propDict[\"grantControls\"] = new ConditionalAccessGrantControls($this->_propDict[\"grantControls\"]);\n return $this->_propDict[\"grantControls\"];\n }\n }\n return null;\n }", "public function accessRules()\n\t{\n\t\treturn array(\n\t\t\tarray('allow',\n\t\t\t\t'actions'=>array('create','update','index','delete', 'setIsShow', 'setIsAvailable', 'setIsNew'),\n\t\t\t\t'users'=>array('admin'),\n\t\t\t),\n\t\t\tarray('deny', // deny all users\n\t\t\t\t'users'=>array('*'),\n\t\t\t),\n\t\t);\n\t}", "public function setConditions($var)\n\t{\n\t\tGPBUtil::checkMessage($var, \\Gobgpapi\\Conditions::class);\n\t\t$this->conditions = $var;\n\n\t\treturn $this;\n\t}", "public function getAccessLevels() : array {\n return [\n 'B-SP' => \"Bronze - Service Provider\",\n 'B-EP' => \"Bronze - Education Provider\",\n 'S-SP' => \"Silver - Service Provider\",\n 'S-EP' => \"Silver - Education Provider\",\n 'S-SP-EB' => \"Silver - Service Provider Early Bird\",\n 'S-EP-EB' => \"Silver - Education Provider Early Bird\",\n 'G-SP-EB' => \"Gold - Service Provider Early Bird\",\n 'G-EP-EB' => \"Gold - Education Provider Early Bird\",\n 'G-SP' => \"Gold - Service Provider\",\n 'G-EP' => \"Gold - Education Provider\",\n ];\n }", "public function getRequiredPermissions()\n {\n return $this->requiredPermissions;\n }", "public function accessRules()\n\t{\n\t\treturn array(\n\t\t\tarray('allow', // allow admin user to perform 'admin' and 'delete' actions\n\t\t\t\t'actions'=>array('index'),\n\t\t\t\t'roles'=>array('admin','management','technical_support','customer_services','customer'),\n\t\t\t),\n\t\t\tarray('allow', // allow admin user to perform 'admin' and 'delete' actions\n\t\t\t\t'actions'=>array('view'),\n\t\t\t\t'roles'=>array('admin','management','technical_support','customer'),\n\t\t\t),\n\t\t\t\n\t\t\tarray('allow', // allow admin user to perform 'admin' and 'delete' actions\n\t\t\t\t'actions'=>array('create'),\n\t\t\t\t'roles'=>array('admin','customer'),\n\t\t\t),\n\t\t\t\n\t\t\tarray('deny', // deny all users\n\t\t\t\t'users'=>array('*'),\n\t\t\t),\n\t\t);\n\t}", "public function accessRules()\n\t{\n\t\treturn array(\n\t\t\tarray('allow', // allow admin user to perform 'create', 'update', 'admin' and 'delete' actions\n\t\t\t\t'actions'=>array('admin','delete'),\n\t\t\t\t'users'=>Yii::app()->user->getAdmins(),\n\t\t\t),\n\t\t\tarray('deny', // deny all users\n\t\t\t\t'users'=>array('*'),\n\t\t\t),\n\t\t);\n\t}", "public function accessRules() {\n return array(\n array('allow',\n 'actions' => array('bind', 'merge', 'index'),\n 'users' => array('@'),\n ),\n array('allow',\n 'actions' => array('list'),\n 'expression' => array(__CLASS__, 'allowListOwnAccessRule'),\n 'users' => array('@'),\n ),\n array('allow',\n 'actions' => array('delete', 'edit'),\n 'expression' => array(__CLASS__, 'allowModifyOwnAccessRule'),\n ),\n array('allow',\n 'actions' => array('list', 'delete', 'index', 'edit'),\n 'roles' => array('admin'),\n 'users' => array('@'),\n ),\n array('deny',\n 'actions' => array('bind', 'delete', 'index', 'list', 'merge'),\n ),\n );\n }", "protected function _getPermissionCondition($accessLevel, $userId)\n\t{\n\t\t$read = $this->_getReadAdapter();\n\t\t$permissionCondition = array();\n\t\t$permissionCondition[]= rm_quote_into($this->_versionTableAlias . '.user_id = ? ', $userId);\n\t\tif (is_array($accessLevel) && !empty($accessLevel)) {\n\t\t\t$permissionCondition[]= rm_quote_into($this->_versionTableAlias . '.access_level in (?)', $accessLevel);\n\t\t} else if ($accessLevel) {\n\t\t\t$permissionCondition[]= rm_quote_into($this->_versionTableAlias . '.access_level = ?', $accessLevel);\n\t\t} else {\n\t\t\t$permissionCondition[]= $this->_versionTableAlias . '.access_level = \"\"';\n\t\t}\n\t\treturn '(' . implode(' OR ', $permissionCondition) . ')';\n\t}", "public static function getAllowableEnumValues()\n {\n return [\n self::PENDING,\n self::PENDING_SENT,\n self::PENDING_DOCUMENT_SENT,\n self::PENDING_PROGRESS,\n self::PENDING_UPDATE,\n self::PENDING_SENT_UPDATE,\n self::TIMEOUT,\n self::ACCEPT,\n self::DECLINE,\n self::INVALID_NAME,\n self::FAILED,\n self::CANCEL,\n self::AUTO_CANCEL,\n self::ACTIVE,\n self::SENT,\n self::OPEN,\n self::TMCH_CLAIM,\n self::TMCH_CLAIM_CONFIRMED,\n self::TMCH_CLAIM_REJECTED,\n self::TMCH_CLAIM_EXPIRED,\n self::TMCH_CLAIM_PENDING,\n self::TMCH_CLAIM_FAILED,\n self::FAILED_REF,\n ];\n }", "public function accessRules()\n\t{\n\n $admins = CatNivelAcceso::getAdmins();\n\t\treturn array(\n\t\t\tarray('allow', // allow authenticated user to perform 'create' and 'update' actions\n\t\t\t\t'actions'=>array('view','create','update','delete','getDetalle','exportToPdf','exportarExcel',\n 'index','autocompleteCatPuesto'),\n\t\t\t\t'users'=>array('@')\n\t\t\t),\n\t\t\tarray('deny', // deny all users\n\t\t\t\t'users'=>array('*')\n\t\t\t)\n\t\t);\n\t}", "public function allowedContexts() {}", "public function getRequestStateAllowableValues()\n {\n return [\n self::REQUEST_STATE_OPEN,\n self::REQUEST_STATE_ACCEPTED,\n self::REQUEST_STATE_REJECTED,\n ];\n }", "public function accessRules()\n\t{\n\t\treturn array(\n\t\t\tarray('allow', // admins only\n 'actions' => array('index', 'job', 'client', 'details', 'view'),\n 'users' => array('admin')\n ),\n\t\t\tarray('deny', // deny all users\n\t\t\t\t'users'=>array('*'),\n\t\t\t),\n\t\t);\n\t}", "public function allowedScopes()\n {\n return [];\n }", "public function can($permissions);", "public static function getAllowableEnumValues()\n {\n return [\n self::FIRE_DETECTION_SYSTEM_CONNECTED_TO_COMMUNICATIONS_ROOM,\n self::PRIVATE_PARKING,\n self::ELEVATOR,\n self::SWIMMING_POOL,\n self::OUTDOOR_SPACE,\n self::DAY_NURSERY,\n self::OUT_OF_SCHOOL_CARE,\n ];\n }", "public function accessRules() {\n\n // en este array colocar solo los action de consulta\n return array(\n array('allow',\n 'actions' => array('index', 'EstadisticoDirectoresDiario','ReporteDetalladoDirectoresDiario'),\n 'pbac' => array( 'write','admin'),\n ),\n array('allow',\n 'actions' => array('index', 'EstadisticoDirectoresDiario','ReporteDetalladoDirectoresDiario'),\n 'pbac' => array('read'),\n ),\n // este array siempre va asì para delimitar el acceso a todos los usuarios que no tienen permisologia de read o write sobre el modulo\n array('deny', // deny all users\n 'users' => array('*'),\n ),\n );\n }", "public function getStatusAllowableValues()\n {\n return [\n self::STATUS_REQUESTED,\n self::STATUS_RESERVED,\n self::STATUS_IN_HOUSE,\n self::STATUS_CANCELLED,\n self::STATUS_CHECKED_OUT,\n self::STATUS_NO_SHOW,\n self::STATUS_WAIT_LIST,\n self::STATUS_UNKNOWN,\n ];\n }", "public function getRestrictions()\n {\n return $this->restrictions;\n }", "public function getRestrictions()\n {\n return $this->restrictions;\n }", "public function accessRules()\n {\n return array(\n array('allow',\n 'actions'=>array('edit','draft','save','down','fileupload','fileRemove'),\n 'expression'=>array('SignContractController','allowReadWrite'),\n ),\n array('allow',\n 'actions'=>array('delete'),\n 'expression'=>array('SignContractController','allowDelete'),\n ),\n array('allow',\n 'actions'=>array('index','view','fileDownload'),\n 'expression'=>array('SignContractController','allowReadOnly'),\n ),\n array('deny', // deny all users\n 'users'=>array('*'),\n ),\n );\n }", "public function accessRules() {\n\t\treturn array(\n\t\t\tarray(\n\t\t\t\t'allow', 'roles' => array($this->getModule()->getName())\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'deny', 'users'=>array('*'),\n\t\t\t),\n\t\t);\n\t}", "public function accessRules()\n\t{\n\t\treturn array(\n\t\tarray('allow', // allow admin user to perform 'admin' and 'delete' actions\n\t\t\t\t'users'=>array('*'),\n\t\t\t),\n\t\t\tarray('allow', // allow admin user to perform 'admin' and 'delete' actions\n\t\t\t\t'actions'=>array('manage','delete','view','status','gallery'),\n\t\t\t\t'expression'=>'helpers::isadmin()',\n\t\t\t),\n\t\t\tarray('deny', // deny all users\n\t\t\t\t'users'=>array('*'),\n\t\t\t),\n\t\t);\n\t}", "public function rules()\n {\n $rules = [];\n $this->request = json_decode($this->content);\n $content = $this->request;\n\n foreach($content->conditions as $key => $val)\n {\n $rules['conditions.'.$key.'.id'] = 'required|integer';\n $rules['conditions.'.$key.'.disease_model_id'] = 'required|integer';\n $rules['conditions.'.$key.'.clsf_weather_parameter'] = 'required|integer';\n $rules['conditions.'.$key.'.date_range'] = 'required|boolean';\n\n if (isset($val->date_range))\n if ($val->date_range) {\n $rules['conditions.'.$key.'.start_range'] = 'required|numeric';\n $rules['conditions.'.$key.'.end_range'] = 'required|numeric';\n } else {\n $rules['conditions.'.$key.'.constant'] = 'required|numeric';\n $rules['conditions.'.$key.'.operator'] = 'required|boolean';\n }\n\n $rules['conditions.'.$key.'.time'] = 'required|integer';\n }\n return $rules;\n }", "public function accessRules()\n\t{\n\t\treturn array(\n array('allow', // allow admin user to perform 'admin' and 'delete' actions\n \t'actions' => array('BatchCreate', 'router', 'MensajeFinal'),\n \t'expression' => 'Yii::app()->user->checkAccess(\"Cliente\")',\n \t),\n array('allow', // allow admin user to perform 'admin' and 'delete' actions\n \t'actions' => array('BatchCreate', 'index', 'view', 'update', 'admin', 'delete', 'router', 'MensajeFinal'),\n \t'expression' => 'Yii::app()->user->checkAccess(\"Admin1\")',\n \t),\n array('deny', // deny all users\n \t'users' => array('*'),\n \t),\n );\n\t}", "static public function getRequiredPermissions(): array\n {\n return static::$required_permissions;\n }", "public function accessRules()\n\t{\n\t\treturn array(\n\t\t\tarray('allow', \n\t\t\t\t'actions'=>array('new','edit','delete','save','submit','request','cancel','fileupload','fileremove'),\n\t\t\t\t'expression'=>array('PayreqController','allowReadWrite'),\n\t\t\t),\n\t\t\tarray('allow', \n\t\t\t\t'actions'=>array('index','view','check','filedownload','void','listtax','Listfile'),\n\t\t\t\t'expression'=>array('PayreqController','allowReadOnly'),\n\t\t\t),\n\t\t\tarray('deny', // deny all users\n\t\t\t\t'users'=>array('*'),\n\t\t\t),\n\t\t);\n\t}", "public function accessRules()\n {\n return array(\n array('allow',\n 'actions' => array(\n \t'login', 'registration', 'captcha', \n \t'verify', 'forget'\n ),\n 'users' => array('*'),// для всех\n ),\n array('allow',\n 'actions' => array(\n \t'index', 'range', 'logout', \n \t'file', 'commercial', 'data', \n \t'view', 'payRequest', 'offers',\n 'onOffer', 'offOffer', 'changeOffer', 'change',\n ),\n 'roles' => array('user'),// для авторизованных\n ),\n array('deny', // deny all users\n 'users' => array('*'),\n ),\n );\n }", "public function accessRules() {\n return array(\n array('allow',\n 'actions' => array('morecomments', 'approve', 'dashboard', 'create', 'list', 'update', 'delete', 'deleteall', 'index', 'view', 'replay', 'message.msg'),\n 'expression' => '$user->isAdministrator()',\n ),\n array('deny',\n 'users' => array('*'),\n )\n// array('allow', // allow all users to perform 'index' and 'view' actions\n// 'actions' => array('index', 'view'),\n// 'users' => array('*'),\n// ),\n// array('allow', // allow authenticated user to perform 'create' and 'update' actions\n// 'actions' => array('create', 'update'),\n// 'users' => array('@'),\n// ),\n// array('allow', // allow dashboard user to perform 'dashboard' and 'delete' actions\n// 'actions' => array('dashboard', 'delete'),\n// 'users' => array('dashboard'),\n// ),\n// array('deny', // deny all users\n// 'users' => array('*'),\n// ),\n );\n }", "public function accessRules()\n\t{\n\t\treturn array(\n\t\t\tarray('allow',\n\t\t\t\t'actions'=>array('index','view','create','update', 'delete', 'changeposition'),\n\t\t\t\t'roles'=>array(\n\t\t\t\t\tUser::ROLE_ADMIN,\n\t\t\t\t\tUser::ROLE_SENIORMODERATOR,\n\t\t\t\t\tUser::ROLE_POWERADMIN\n\t\t\t\t),\n\t\t\t),\n\t\t\tarray('deny', // deny all users\n\t\t\t\t'users'=>array('*'),\n\t\t\t),\n\t\t);\n\t}", "public function accessRules()\n\t{\n\t\treturn array(\n\t\t\t\n\t\t\tarray('allow', // allow all users to perform 'index' and 'view' actions\n\t\t\t\t'actions'=>array('marketSegmentFilter','marketSegmentFilter2','categoryFilter','officerFilter','decisionFilter','subCategoryFilter'),\n\t\t\t\t'users'=>array('@'),\n\t\t\t),\n\t\t\t\n\t\t\t/*array('allow', \n\t\t\t\t'users'=>array('@'),\n\t\t\t\t//'expression'=>'Yii::app()->user->permission',\n\t\t\t),*/\n\t\t\tarray('allow', \n\t\t\t\t'users'=>array('@'),\n\t\t\t\t'actions'=>array('approvalList','approval'),\n\t\t\t\t'expression'=>'Yii::app()->user->getPermission(\"licenceApplicationApproval\")',\n\t\t\t),\n\t\t\tarray('allow', \n\t\t\t\t'users'=>array('@'),\n\t\t\t\t'actions'=>array('editList','edit','editCommunication','editContent','editCourier','editInstallation','editImportation','editVsat'),\n\t\t\t\t'expression'=>'Yii::app()->user->getPermission(\"licenceApplicationEdit\")',\n\t\t\t),\n\t\t\tarray('allow', \n\t\t\t\t'users'=>array('@'),\n\t\t\t\t'actions'=>array('evaluationList','evaluation','businessPlan','checkResources'),\n\t\t\t\t'expression'=>'Yii::app()->user->getPermission(\"licenceApplicationEvaluation\")',\n\t\t\t),\n\t\t\tarray('allow', \n\t\t\t\t'users'=>array('@'),\n\t\t\t\t'actions'=>array('printList','print'),\n\t\t\t\t'expression'=>'Yii::app()->user->getPermission(\"licenceApplicationPrint\")',\n\t\t\t),\n\t\t\tarray('allow', \n\t\t\t\t'users'=>array('@'),\n\t\t\t\t'actions'=>array('prepareList','prepare'),\n\t\t\t\t'expression'=>'Yii::app()->user->getPermission(\"licenceApplicationPrepare\")',\n\t\t\t),\n\t\t\tarray('allow', \n\t\t\t\t'users'=>array('@'),\n\t\t\t\t'actions'=>array('issueList','issue'),\n\t\t\t\t'expression'=>'Yii::app()->user->getPermission(\"licenceApplicationIssue\")',\n\t\t\t),\n\t\t\tarray('allow', \n\t\t\t\t'users'=>array('@'),\n\t\t\t\t'actions'=>array('viewList','view'),\n\t\t\t\t'expression'=>'Yii::app()->user->getPermission(\"licenceApplicationView\")',\n\t\t\t),\n\t\t\tarray('allow', \n\t\t\t\t'users'=>array('@'),\n\t\t\t\t'actions'=>array('licenceList','licenceeList','licenceView','licenceeView'),\n\t\t\t\t'expression'=>'Yii::app()->user->getPermission(\"licenceView\")',\n\t\t\t),\n\t\t\tarray('allow', \n\t\t\t\t'users'=>array('@'),\n\t\t\t\t'actions'=>array('cancelView','cancelList'),\n\t\t\t\t'expression'=>'Yii::app()->user->getPermission(\"licenceCancel\")',\n\t\t\t),\n\t\t\tarray('allow', \n\t\t\t\t'users'=>array('@'),\n\t\t\t\t'actions'=>array('admin','renewList','renewView','annualFeeList','annualFeeView'),\n\t\t\t),\n\t\t\tarray('allow', \n\t\t\t\t'users'=>array('@'),\n\t\t\t\t'actions'=>array('new','newCommunication','newContent','newCourier','newInstallation','newImportation','newDistribution','editDistribution','newSelling','editSelling','newVsat','editVsat'),\n\t\t\t\t'expression'=>'Yii::app()->user->getPermission(\"licenceApplicationNew\")',\n\t\t\t),\n\t\t\tarray('deny', // deny all users\n\t\t\t\t'users'=>array('*'),\n\t\t\t),\n\t\t);\n\t}", "public function accessRules() {\n return VAuth::getAccessRules('package', array('getCity', 'clear', 'export', 'entry', 'input', 'childUpdate', 'index'));\n }", "public function &havingConditions();", "public function setCondition(array $condition = [])\n {\n $this->condition = [];\n if ([] === $condition) {\n return $this;\n }\n foreach($condition as $v) {\n if ($v instanceof FHIRCoding) {\n $this->addCondition($v);\n } else {\n $this->addCondition(new FHIRCoding($v));\n }\n }\n return $this;\n }", "public function accessRules()\n\t{\n\t\treturn array(\n array('allow',\n 'actions'=>array('login','error','logout'),\n 'users'=>array('*'),\n ),\n\t\t\tarray('allow', // allow authenticated user to perform 'create' and 'update' actions\n\t\t\t\t'actions'=>array('index','delivery','settings'),\n\t\t\t\t'users'=>array('@'),\n 'expression'=>'AdmAccess::model()->accessAdmin()'\n\t\t\t),\n\t\t\tarray('deny', // deny all users\n\t\t\t\t'users'=>array('*'),\n\t\t\t),\n\t\t);\n\t}", "public function hasAccessRestrictions() {\n\t\tif (!is_array($this->accessRoles) || empty($this->accessRoles)) {\n\t\t\treturn FALSE;\n\t\t}\n\t\tif (count($this->accessRoles) === 1 && in_array('TYPO3.Flow:Everybody', $this->accessRoles)) {\n\t\t\treturn FALSE;\n\t\t}\n\t\treturn TRUE;\n\t}", "public function getConditions()\n {\n return new CartConditionCollection($this->session->get($this->sessionKeyCartConditions));\n }", "public function accessRules() {\n\t\treturn array();\n\t}", "public function getCriteria()\n {\n $this->assertEquals(array(), $this->denyValidator->getCriteria());\n }", "function isAuthorized() {\n $roles = $this->Role->calculateCMRoles();\n \n // Construct the permission set for this user, which will also be passed to the view.\n $p = array();\n \n // Determine what operations this user can perform\n \n // Add a new Match Server Attribute?\n $p['add'] = ($roles['cmadmin'] || $roles['coadmin']);\n \n // Delete an existing Match Server Attribute?\n $p['delete'] = ($roles['cmadmin'] || $roles['coadmin']);\n \n // Edit an existing Match Server Attribute?\n $p['edit'] = ($roles['cmadmin'] || $roles['coadmin']);\n\n // View all existing Match Server Attributes?\n $p['index'] = ($roles['cmadmin'] || $roles['coadmin']);\n \n // View an existing Match Server Attribute?\n $p['view'] = ($roles['cmadmin'] || $roles['coadmin']);\n\n $this->set('permissions', $p);\n return $p[$this->action];\n }", "public function accessRules()\n {\n return array(\n array('allow',\n 'expression' => 'Yii::app()->user->isAdmin()',\n ),\n array('deny', // deny all users\n 'users' => array('*'),\n ),\n );\n }", "public function accessRules()\n {\n return array(\n array('allow',\n 'expression' => 'Yii::app()->user->isAdmin()',\n ),\n array('deny', // deny all users\n 'users' => array('*'),\n ),\n );\n }", "public function accessRules()\r\n\t{\r\n\t\treturn array(\r\n\t\t\tarray('allow', // allow authenticated admins to perform any action\r\n\t\t\t\t'users'=>array('@'),\r\n\t\t\t\t'expression'=>'Yii::app()->user->role>=5'\r\n\t\t\t),\r\n\t\t\tarray('deny', // deny all users\r\n\t\t\t\t'users'=>array('*'),\r\n\t\t\t\t'deniedCallback' => array($this, 'actionError')\r\n\t\t\t),\r\n\t\t);\r\n\t}", "public function accessRules()\n {\n return array(\n array('allow', // @代表有角色的\n 'actions'=>array('view','change','see'),\n 'users'=>array('@'),\n ),\n array('allow', // allow admin user to perform 'admin' and 'delete' actions\n 'actions'=>array('create','see','update','delete'),\n 'expression'=>'$user->getState(\"info\")->authority >= 1',//,array($this,\"isSuperUser\"),\n ),\n array('deny', // *代表所有的用户\n 'users'=>array('*'),\n ),\n );\n }", "public function getConditions()\n {\n if (empty($this->_conditions)) {\n $this->_resetConditions();\n }\n\n // Load rule conditions if it is applicable\n if ($this->hasConditionsSerialized()) {\n $conditions = $this->getConditionsSerialized();\n if (!empty($conditions)) {\n $conditions = Mage::helper('core/unserializeArray')->unserialize($conditions);\n if (is_array($conditions) && !empty($conditions)) {\n $this->_conditions->loadArray($conditions);\n }\n }\n $this->unsConditionsSerialized();\n }\n\n return $this->_conditions;\n }", "public function getAuthAllowableValues()\n {\n return [\n self::AUTH_INTERNAL,\n self::AUTH_EXTERNAL,\n ];\n }" ]
[ "0.71522456", "0.57535446", "0.56325233", "0.54550606", "0.538453", "0.5242028", "0.51978713", "0.51710004", "0.51710004", "0.5136562", "0.51305324", "0.5112856", "0.5081591", "0.4996603", "0.4996603", "0.4996603", "0.49954885", "0.49875125", "0.49646667", "0.49311426", "0.49178374", "0.49081057", "0.4877822", "0.4858062", "0.48466316", "0.4841629", "0.48391217", "0.48379073", "0.481856", "0.48096883", "0.47768056", "0.4773831", "0.47687805", "0.47623533", "0.472894", "0.4724687", "0.47215232", "0.47199893", "0.47141415", "0.47085643", "0.4707971", "0.47058833", "0.46940422", "0.4683427", "0.46814063", "0.46757627", "0.4675501", "0.4672007", "0.46710923", "0.4669526", "0.4667984", "0.46663922", "0.4644647", "0.4644645", "0.4641051", "0.46387717", "0.46358892", "0.46341363", "0.46316797", "0.4621725", "0.46196797", "0.46155083", "0.4610338", "0.46001658", "0.4599714", "0.45996198", "0.45957705", "0.45912012", "0.45901522", "0.4586628", "0.4586628", "0.45654", "0.4564947", "0.45614752", "0.45613834", "0.45575458", "0.4556801", "0.45544982", "0.4554393", "0.4552171", "0.45516688", "0.45480183", "0.45476413", "0.45463246", "0.45402357", "0.45378608", "0.45267943", "0.45242807", "0.45232683", "0.452026", "0.45147485", "0.45146248", "0.45146248", "0.45104015", "0.45099035", "0.45079485", "0.4507106" ]
0.5157987
12
Required. A list of requirements for the `AccessLevel` to be granted. Generated from protobuf field repeated .google.identity.accesscontextmanager.v1.Condition conditions = 1;
public function setConditions($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Identity\AccessContextManager\V1\Condition::class); $this->conditions = $arr; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getConditions()\n {\n if (array_key_exists(\"conditions\", $this->_propDict)) {\n if (is_a($this->_propDict[\"conditions\"], \"\\Microsoft\\Graph\\Model\\ConditionalAccessConditionSet\") || is_null($this->_propDict[\"conditions\"])) {\n return $this->_propDict[\"conditions\"];\n } else {\n $this->_propDict[\"conditions\"] = new ConditionalAccessConditionSet($this->_propDict[\"conditions\"]);\n return $this->_propDict[\"conditions\"];\n }\n }\n return null;\n }", "public function setConditions($var)\n {\n $arr = GPBUtil::checkRepeatedField($var, \\Google\\Protobuf\\Internal\\GPBType::MESSAGE, \\Google\\Cloud\\Run\\V2\\Condition::class);\n $this->conditions = $arr;\n\n return $this;\n }", "public function getConditionTypeAllowableValues()\n {\n return [\n self::CONDITION_TYPE_NEW_NEW,\n self::CONDITION_TYPE_NEW_OPEN_BOX,\n self::CONDITION_TYPE_NEW_OEM,\n self::CONDITION_TYPE_REFURBISHED_REFURBISHED,\n self::CONDITION_TYPE_USED_LIKE_NEW,\n self::CONDITION_TYPE_USED_VERY_GOOD,\n self::CONDITION_TYPE_USED_GOOD,\n self::CONDITION_TYPE_USED_ACCEPTABLE,\n self::CONDITION_TYPE_COLLECTIBLE_LIKE_NEW,\n self::CONDITION_TYPE_COLLECTIBLE_VERY_GOOD,\n self::CONDITION_TYPE_COLLECTIBLE_GOOD,\n self::CONDITION_TYPE_COLLECTIBLE_ACCEPTABLE,\n self::CONDITION_TYPE_CLUB_CLUB,\n ];\n }", "public function getAccessAllowableValues()\n {\n return [\n self::ACCESS_MAILBOX,\nself::ACCESS_ACCOUNT,\nself::ACCESS_PUB,\nself::ACCESS_OFFICIAL,\nself::ACCESS_SHARED, ];\n }", "public function getAccessRestrictions()\n {\n return $this->getFieldArray('506');\n }", "public function getConditions()\n {\n if (array_key_exists(\"conditions\", $this->_propDict)) {\n if (is_a($this->_propDict[\"conditions\"], \"\\Beta\\Microsoft\\Graph\\Model\\AuthenticationConditions\") || is_null($this->_propDict[\"conditions\"])) {\n return $this->_propDict[\"conditions\"];\n } else {\n $this->_propDict[\"conditions\"] = new AuthenticationConditions($this->_propDict[\"conditions\"]);\n return $this->_propDict[\"conditions\"];\n }\n }\n return null;\n }", "public function getConditions()\n\t{\n\t\treturn $this->conditions;\n\t}", "public function getConditions()\n\t{\n\t\treturn $this->conditions;\n\t}", "public function getConditions()\n {\n return $this->conditions;\n }", "public function getConditions()\n {\n return $this->conditions;\n }", "public function getConditions()\n {\n return $this->conditions;\n }", "public function getConditions()\n {\n return $this->conditions;\n }", "public function setConditions($var)\n {\n $arr = GPBUtil::checkRepeatedField($var, \\Google\\Protobuf\\Internal\\GPBType::STRING);\n $this->conditions = $arr;\n\n return $this;\n }", "public function getCareLevelStateAllowableValues()\n {\n return [\n self::CARE_LEVEL_STATE_JA,\n self::CARE_LEVEL_STATE_NEIN,\n self::CARE_LEVEL_STATE_BEANTRAGT,\n self::CARE_LEVEL_STATE_UNBEKANNT,\n ];\n }", "public function getConditions(): array\n\t{\n\t\treturn $this->conditions;\n\t}", "public function getSourceAccessConditions()\n {\n return $this->sourceAccessConditions;\n }", "public function getPermitsAwarded()\n {\n if (!$this->isUnderConsideration()) {\n throw new ForbiddenException(\n 'This application is not in the correct state to return permits awarded ('.$this->status->getId().')'\n );\n }\n\n $irhpPermitApplication = $this->getFirstIrhpPermitApplication();\n return $irhpPermitApplication->countPermitsAwarded();\n }", "public function getConditions();", "public function getConditions();", "public function getConditions();", "public function accessRules()\n {\n $acl = $this->acl;\n\n return [\n ['allow', // allow all users to perform 'index' and 'view' actions\n 'actions' => ['index', 'view'],\n 'users' => ['@'],\n ],\n ['allow', // allow authenticated user to perform 'create' and 'update' actions\n 'actions' => ['create', 'getLoadingAddressList'],\n 'expression' => function() use ($acl) {\n return $acl->canCreateOrder();\n },\n ],\n ['allow', // allow to perform 'accomplish' action\n 'actions' => ['update'],\n 'expression' => function() use ($acl) {\n return $acl->canUpdateOrder();\n },\n ],\n ['allow', // allow to perform 'accomplish' action\n 'actions' => ['withdraw'],\n 'expression' => function() use ($acl) {\n return $acl->canWithdrawOrder();\n },\n ],\n ['allow', // allow to perform 'accomplish' action\n 'actions' => ['restore'],\n 'expression' => function() use ($acl) {\n return $acl->canRestoreOrder();\n },\n ],\n ['allow', // allow to perform 'accomplish' action\n 'actions' => ['accomplish'],\n 'expression' => function() use ($acl) {\n return $acl->canAccomplishOrder();\n },\n ],\n ['allow', // allow to perform 'accomplish' action\n 'actions' => ['reopen'],\n 'expression' => function() use ($acl) {\n return $acl->canReopenOrder();\n },\n ],\n ['allow', // allow to perform 'loadCargo' action\n 'actions' => ['loadCargo'],\n 'expression' => function() use ($acl) {\n return $acl->canAccessLoadCargo();\n },\n ],\n ['allow', // allow to perform 'delete' action\n 'actions' => ['delete', 'softDelete'],\n 'expression' => function() use ($acl) {\n return $acl->canDeleteOrder();\n },\n ],\n ['allow', // allow admin user to perform 'admin' action\n 'actions' => ['admin'],\n 'expression' => function() use ($acl) {\n return $acl->getUser()->isAdmin();\n },\n ],\n ['deny', // deny all users\n 'users' => ['*'],\n ],\n ];\n }", "public function setConditions(array $conditions);", "public function accessRules()\n\t{\n\t\treturn array(\n\t\t\tarray('allow', // allow admins only\n\t\t\t\t'users'=>Yii::app()->getModule('user')->getAdmins(),\n\t\t\t),\n\t\t\tarray('allow',\n\t\t\t\t\t\t/*'users' => array(\"?\"),*/\n 'expression' => array($this,'isLogedInOrHasKey'),\n ),\n\t\t\tarray('deny', // deny all users\n\t\t\t\t'users'=>array('*'),\n\t\t\t),\n\t\t);\n\t}", "public function accessRules() {\n // en este array colocar solo los action de consulta\n return array(\n array('allow',\n 'actions' => array(),\n 'pbac' => array('write', 'admin'),\n ),\n array('allow',\n 'actions' => array(),\n 'pbac' => array('read'),\n ),\n // este array siempre va asì para delimitar el acceso a todos los usuarios que no tienen permisologia de read o write sobre el modulo\n array('deny', // deny all users\n 'users' => array('*'),\n ),\n );\n }", "public function get_user_content_access_conditions() {\n\t\tglobal $wpdb;\n\n\t\tif ( empty( $this->user_content_access_conditions ) ) {\n\n\t\t\t// prevent infinite loops\n\t\t\tremove_filter( 'pre_get_posts', array( $this->get_posts_restrictions_instance(), 'exclude_restricted_posts' ), 999 );\n\n\t\t\t$rules = wc_memberships()->get_rules_instance()->get_rules( array( 'rule_type' => array( 'content_restriction', 'product_restriction' ), ) );\n\t\t\t$restricted = $granted = array(\n\t\t\t\t'posts' => array(),\n\t\t\t\t'post_types' => array(),\n\t\t\t\t'terms' => array(),\n\t\t\t\t'taxonomies' => array(),\n\t\t\t);\n\n\t\t\t$conditions = array(\n\t\t\t\t'restricted' => $restricted,\n\t\t\t\t'granted' => $granted,\n\t\t\t);\n\n\t\t\t// shop managers/admins can access everything\n\t\t\tif ( is_user_logged_in() && current_user_can( 'wc_memberships_access_all_restricted_content' ) ) {\n\n\t\t\t\t$this->user_content_access_conditions = $conditions;\n\n\t\t\t} else {\n\n\t\t\t\t// get all the content that is either restricted or granted for the user\n\t\t\t\tif ( ! empty( $rules ) ) {\n\n\t\t\t\t\t$user_id = get_current_user_id();\n\n\t\t\t\t\tforeach ( $rules as $rule ) {\n\n\t\t\t\t\t\t// skip rule if the plan is not published\n\t\t\t\t\t\tif ( 'publish' !== get_post_status( $rule->get_membership_plan_id() ) ) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// skip non-view product restriction rules\n\t\t\t\t\t\tif ( 'product_restriction' === $rule->get_rule_type() && 'view' !== $rule->get_access_type() ) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// check if user is an active member of the plan\n\t\t\t\t\t\t$plan_id = $rule->get_membership_plan_id();\n\t\t\t\t\t\t$is_active_member = $user_id > 0 && wc_memberships_is_user_active_member( $user_id, $plan_id );\n\t\t\t\t\t\t$has_access = false;\n\n\t\t\t\t\t\t// check if user has scheduled access to the content\n\t\t\t\t\t\tif ( $is_active_member && ( $user_membership = wc_memberships()->get_user_memberships_instance()->get_user_membership( $user_id, $plan_id ) ) ) {\n\n\t\t\t\t\t\t\t/** this filter is documented in includes/class-wc-memberships-capabilities.php **/\n\t\t\t\t\t\t\t$from_time = apply_filters( 'wc_memberships_access_from_time', $user_membership->get_start_date( 'timestamp' ), $rule, $user_membership );\n\n\t\t\t\t\t\t\t// sanity check: bail out if there's no valid set start date\n\t\t\t\t\t\t\tif ( ! $from_time || ! is_numeric( $from_time ) ) {\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t$inactive_time = $user_membership->get_total_inactive_time();\n\t\t\t\t\t\t\t$current_time = current_time( 'timestamp', true );\n\t\t\t\t\t\t\t$rule_access_time = $rule->get_access_start_time( $from_time );\n\n\t\t\t\t\t\t\t$has_access = $rule_access_time + $inactive_time <= $current_time;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t$condition = $has_access ? 'granted' : 'restricted';\n\n\t\t\t\t\t\t// find posts that are either restricted or granted access to\n\t\t\t\t\t\tif ( 'post_type' === $rule->get_content_type() ) {\n\n\t\t\t\t\t\t\tif ( $rule->has_objects() ) {\n\n\t\t\t\t\t\t\t\t$post_type = $rule->get_content_type_name();\n\t\t\t\t\t\t\t\t$post_ids = array();\n\t\t\t\t\t\t\t\t$object_ids = $rule->get_object_ids();\n\n\t\t\t\t\t\t\t\t// leave out posts that have restrictions disabled\n\t\t\t\t\t\t\t\tif ( is_array( $object_ids ) ) {\n\t\t\t\t\t\t\t\t\tforeach ( $rule->get_object_ids() as $post_id ) {\n\t\t\t\t\t\t\t\t\t\tif ( 'yes' !== wc_memberships_get_content_meta( $post_id, '_wc_memberships_force_public', true ) ) {\n\t\t\t\t\t\t\t\t\t\t\t$post_ids[] = $post_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\n\t\t\t\t\t\t\t\t// if there are no posts left, continue to next rule\n\t\t\t\t\t\t\t\tif ( empty( $post_ids ) ) {\n\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tif ( ! isset( $conditions[ $condition ]['posts'][ $post_type ] ) ) {\n\t\t\t\t\t\t\t\t\t$conditions[ $condition ]['posts'][ $post_type ] = array();\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t$conditions[ $condition ]['posts'][ $post_type ] = array_unique( array_merge( $conditions[ $condition ][ 'posts' ][ $post_type ], $post_ids ) );\n\n\t\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t\t// find post types that are either restricted or granted access to\n\t\t\t\t\t\t\t\t$conditions[ $condition ]['post_types'] = array_unique( array_merge( $conditions[ $condition ][ 'post_types' ], (array) $rule->get_content_type_name() ) );\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t} elseif ( 'taxonomy' === $rule->get_content_type() ) {\n\n\t\t\t\t\t\t\tif ( $rule->has_objects() ) {\n\n\t\t\t\t\t\t\t\t// find taxonomy terms that are either restricted or granted access to\n\t\t\t\t\t\t\t\t$taxonomy = $rule->get_content_type_name();\n\n\t\t\t\t\t\t\t\tif ( ! isset( $conditions[ $condition ][ 'terms' ][ $taxonomy ] ) ) {\n\t\t\t\t\t\t\t\t\t$conditions[ $condition ]['terms'][ $taxonomy ] = array();\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t$object_ids = $rule->get_object_ids();\n\n\n\t\t\t\t\t\t\t\t$conditions[ $condition ]['terms'][ $taxonomy ] = array_unique( array_merge( $conditions[ $condition ][ 'terms' ][ $taxonomy ], $object_ids ) );\n\n\t\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t\t$conditions[ $condition ]['taxonomies'] = array_unique( array_merge( $conditions[ $condition ][ 'taxonomies' ], (array) $rule->get_content_type_name() ) );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// loop over granted content and check if the user has access to delayed content\n\t\t\t\tforeach ( $conditions['granted'] as $content_type => $values ) {\n\n\t\t\t\t\tif ( empty( $values ) || ! is_array( $values ) ) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\tforeach ( $values as $key => $value ) {\n\n\t\t\t\t\t\tswitch ( $content_type ) {\n\n\t\t\t\t\t\t\tcase 'posts':\n\t\t\t\t\t\t\t\tif ( is_array( $value ) ) {\n\t\t\t\t\t\t\t\t\tforeach ( $value as $post_key => $post_id ) {\n\t\t\t\t\t\t\t\t\t\tif ( ! current_user_can( 'wc_memberships_view_delayed_post_content', $post_id ) ) {\n\t\t\t\t\t\t\t\t\t\t\tunset( $conditions['granted'][ $content_type ][ $key ][ $post_key ] );\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\tbreak;\n\n\t\t\t\t\t\t\tcase 'post_types':\n\t\t\t\t\t\t\t\tif ( ! current_user_can( 'wc_memberships_view_delayed_post_type', $value ) ) {\n\t\t\t\t\t\t\t\t\tunset( $conditions['granted'][ $content_type ][ $key ] );\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\tcase 'taxonomies':\n\t\t\t\t\t\t\t\tif ( ! current_user_can( 'wc_memberships_view_delayed_taxonomy', $value ) ) {\n\t\t\t\t\t\t\t\t\tunset( $conditions['granted'][ $content_type ][ $key ] );\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\tcase 'terms':\n\t\t\t\t\t\t\t\tif ( is_array( $value ) ) {\n\t\t\t\t\t\t\t\t\tforeach ( $value as $term_key => $term ) {\n\t\t\t\t\t\t\t\t\t\tif ( ! current_user_can( 'wc_memberships_view_delayed_taxonomy_term', $key, $term ) ) {\n\t\t\t\t\t\t\t\t\t\t\tunset( $conditions['granted'][ $content_type ][ $key ][ $term_key ] );\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\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// remove restricted items that should be granted for the current user\n\t\t\t\t// content types are high-level restriction items - posts, post_types, terms, and taxonomies\n\t\t\t\tforeach ( $conditions['restricted'] as $content_type => $object_types ) {\n\n\t\t\t\t\tif ( empty( $conditions['granted'][ $content_type ] ) || empty( $object_types ) ) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\t// object types are child elements of a content type,\n\t\t\t\t\t// e.g. for the posts content type, object types are post_types( post and product)\n\t\t\t\t\t// for a term content type, object types are taxonomy names (e.g. category)\n\t\t\t\t\tforeach ( $object_types as $object_type_name => $object_ids ) {\n\n\t\t\t\t\t\tif ( empty( $conditions['granted'][ $content_type ][ $object_type_name ] ) || empty( $object_ids ) ) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif ( is_array( $object_ids ) ) {\n\t\t\t\t\t\t\t// if the restricted object ID is also granted, remove it from restrictions\n\t\t\t\t\t\t\tforeach ( $object_ids as $object_id_index => $object_id ) {\n\n\t\t\t\t\t\t\t\tif ( in_array( $object_id, $conditions['granted'][ $content_type ][ $object_type_name ], false ) ) {\n\t\t\t\t\t\t\t\t\tunset( $conditions['restricted'][ $content_type ][ $object_type_name ][ $object_id_index ] );\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 {\n\t\t\t\t\t\t\t// post type handling\n\t\t\t\t\t\t\tif ( in_array( $object_ids, $conditions['granted'][ $content_type ], false ) ) {\n\t\t\t\t\t\t\t\tunset( $conditions['restricted'][ $content_type ][ array_search( $object_ids, $conditions['restricted'][ $content_type ], false ) ] );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// grant access to posts that have restrictions disabled\n\t\t\t\t$public_posts = $wpdb->get_results( \"\n\t\t\t\t\tSELECT p.ID, p.post_type FROM $wpdb->posts p\n\t\t\t\t\tLEFT JOIN $wpdb->postmeta pm\n\t\t\t\t\tON p.ID = pm.post_id\n\t\t\t\t\tWHERE pm.meta_key = '_wc_memberships_force_public'\n\t\t\t\t\tAND pm.meta_value = 'yes'\n\t\t\t\t\" );\n\n\t\t\t\tif ( ! empty( $public_posts ) ) {\n\t\t\t\t\tforeach ( $public_posts as $post ) {\n\n\t\t\t\t\t\tif ( ! isset( $conditions['granted']['posts'][ $post->post_type ] ) ) {\n\t\t\t\t\t\t\t$conditions['granted']['posts'][ $post->post_type ] = array();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t$conditions['granted']['posts'][ $post->post_type ][] = $post->ID;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$this->user_content_access_conditions = $conditions;\n\n\t\t\tadd_filter( 'pre_get_posts', array( $this->get_posts_restrictions_instance(), 'exclude_restricted_posts' ), 999 );\n\t\t}\n\n\t\treturn $this->user_content_access_conditions;\n\t}", "public function accessRules()\r\n\t{\r\n\t\treturn array(\r\n\t\t\tarray('allow', \r\n\t\t\t\t'actions'=>array(\r\n 'admin',\r\n\r\n //Users\r\n\r\n 'users',\r\n 'checkstatus',\r\n 'activate',\r\n\r\n //Drivers\r\n 'drivers',\r\n 'loaddriverform',\r\n 'validatedriver',\r\n 'driverstatus',\r\n 'savedriverstatus',\r\n\r\n //Cars\r\n 'cars',\r\n 'loadcarform',\r\n 'validatecar',\r\n 'carstatus',\r\n 'savecarstatus',\r\n 'repairlogform',\r\n 'saverepairlog',\r\n ),\r\n\t\t\t\t'roles'=>array('rxAdmin'),\r\n\t\t\t),\r\n\r\n\t\t\tarray('deny', \r\n\t\t\t\t'actions'=>array(\r\n 'admin',\r\n 'users',\r\n 'checkstatus',\r\n 'activate',\r\n 'drivers',\r\n 'loaddriverform',\r\n 'validatedriver',\r\n 'driverstatus',\r\n 'savedriverstatus',\r\n 'cars',\r\n 'loadcarform',\r\n 'validatecar',\r\n 'carstatus',\r\n 'savecarstatus',\r\n 'repairlogform',\r\n 'saverepairlog',\r\n ),\r\n\t\t\t\t'roles'=>array('rxClient'),\r\n\t\t\t),\r\n \r\n array('allow', \r\n\t\t\t\t'actions'=>array(\r\n ),\r\n\t\t\t\t'roles'=>array('rxClient'),\r\n\t\t\t),\r\n\t\t\t\r\n\t\t\tarray('deny', // deny all other users\r\n\t\t\t\t'users'=>array('*'),\r\n\t\t\t),\r\n\t\t\t\r\n\t\t);\r\n\t}", "public function get_conditions()\n {\n return $this->conditions;\n }", "public function accessRules()\n {\n return array(\n array(\n 'allow',\n 'actions' => array('create'),\n 'roles' => array(Rbac::OP_QA_QUESTION_CREATE),\n ),\n array(\n 'deny',\n 'actions' => array('create'),\n ),\n array(\n 'allow',\n 'actions' => array('update'),\n 'roles' => array(Rbac::OP_QA_QUESTION_UPDATE),\n ),\n array(\n 'deny',\n 'actions' => array('update'),\n ),\n array(\n 'allow',\n 'actions' => array('saveAnswer'),\n 'roles' => array(Rbac::OP_QA_ANSWER_CREATE),\n ),\n array(\n 'deny',\n 'actions' => array('saveAnswer'),\n ),\n );\n }", "public function &getConditions() {\n return $this->conditions;\n }", "public function accessRules()\n\t{\n\t\treturn array(\n\t\t\tarray('allow',\n 'actions'=>array('admin','view'),\n 'roles'=>array('reader', 'writer')\n ),\n array('allow',\n\t\t\t\t'actions'=>array('create', 'update', 'delete'),\n 'roles'=>array('writer')\n\t\t\t),\n\t\t\tarray('deny', // deny all users\n\t\t\t\t'users'=>array('*'),\n\t\t\t),\n\t\t);\n\t}", "public function getRequiredPermissions()\r\n\t{\r\n\t\treturn array();\r\n\t}", "public function allowedPermissions()\n {\n return $this->permissions()->wherePivot('has_access', true)->orderBy('name');\n }", "public function getAccessPolicyTypeAllowableValues()\n {\n return [\n self::ACCESS_POLICY_TYPE__8021X,\n self::ACCESS_POLICY_TYPE_MAC_AUTHENTICATION_BYPASS,\n self::ACCESS_POLICY_TYPE_HYBRID_AUTHENTICATION,\n ];\n }", "public function getRequiredPermissions()\n\t{\n\t\treturn array();\n\t}", "public function accessRules() \r\n\t{\r\n\t\treturn array(\r\n\t\t\tarray('allow', // allow all users to perform 'index' and 'view' actions\r\n\t\t\t\t'actions'=>array('index'),\r\n\t\t\t\t'users'=>array('*'),\r\n\t\t\t),\r\n\t\t\tarray('allow', // allow authenticated user to perform 'create' and 'update' actions\r\n\t\t\t\t'actions'=>array('suggest'),\r\n\t\t\t\t'users'=>array('@'),\r\n\t\t\t\t'expression'=>'isset(Yii::app()->user->level)',\r\n\t\t\t\t//'expression'=>'isset(Yii::app()->user->level) && (Yii::app()->user->level != 1)',\r\n\t\t\t),\r\n\t\t\tarray('allow', // allow authenticated user to perform 'create' and 'update' actions\r\n\t\t\t\t'actions'=>array('manage','add','delete','status'),\r\n\t\t\t\t'users'=>array('@'),\r\n\t\t\t\t'expression'=>'isset(Yii::app()->user->level) && in_array(Yii::app()->user->level, array(1,2))',\r\n\t\t\t),\r\n\t\t\tarray('allow', // allow admin user to perform 'admin' and 'delete' actions\r\n\t\t\t\t'actions'=>array(),\r\n\t\t\t\t'users'=>array('admin'),\r\n\t\t\t),\r\n\t\t\tarray('deny', // deny all users\r\n\t\t\t\t'users'=>array('*'),\r\n\t\t\t),\r\n\t\t);\r\n\t}", "public function getLevelAllowableValues()\n {\n return [\n self::LEVEL_QM,\n self::LEVEL_EF,\n self::LEVEL_QF,\n self::LEVEL_SF,\n self::LEVEL_F,\n ];\n }", "public function getConditions(): ConditionList\n {\n return new ConditionList($this->conditions->toArray());\n }", "protected function setRequiredAccessLevelsForPost() {\n $this->post_required_access_levels = array(\"owner\",\"admin\",\"collaborator\");\n }", "public function accessRules()\n\t{\n\t\treturn array(\n\t\t\tarray('allow', // Allow superusers to access Rights\n\t\t\t\t'actions'=>array(\n\t\t\t\t\t'permissions',\n\t\t\t\t\t'operations',\n\t\t\t\t\t'tasks',\n\t\t\t\t\t'roles',\n\t\t\t\t\t'generate',\n\t\t\t\t\t'create',\n\t\t\t\t\t'update',\n\t\t\t\t\t'delete',\n\t\t\t\t\t'removeChild',\n\t\t\t\t\t'assign',\n\t\t\t\t\t'revoke',\n\t\t\t\t\t'sortable',\n\t\t\t\t),\n\t\t\t\t'users'=>$this->_authorizer->getSuperusers(),\n\t\t\t),\n\t\t\tarray('deny', // Deny all users\n\t\t\t\t'users'=>array('*'),\n\t\t\t),\n\t\t);\n\t}", "public static function impliedPermissions() {\n return [\n self::PERMISSION_READ => [self::PERMISSION_WRITE, self::PERMISSION_ADMIN],\n self::PERMISSION_WRITE => [self::PERMISSION_ADMIN],\n ];\n }", "public function getScopeAllowableValues()\n {\n return [\n self::SCOPE_NONE,\n self::SCOPE_TEST_RUN,\n self::SCOPE_TEST_RESULT,\n self::SCOPE_SYSTEM,\n self::SCOPE_ALL,\n ];\n }", "public function getConditionsDescription()\n {\n return $this->conditionsDescription;\n }", "public function get(): array\n {\n return $this->criterions;\n }", "public function get_conditions() {\n $conditions = get_post_meta( $this->post_id, '_wcs_conditions', true );\n\n if ( ! $conditions ) {\n return array();\n }\n\n return (array) $conditions;\n }", "public function accessRules() {\n return array(\n array(\n 'deny',\n 'actions' => array('oauthadmin'),\n ),\n );\n }", "public function accessRules() {\n return array(\n array('allow',\n 'actions' => array(\n 'popup',\n 'gridView',\n 'excel',\n ),\n 'roles' => array('admin', 'super_admin', 'operations_admin', 'limited_admin')\n ),\n array('allow',\n 'actions' => array(\n 'updateStatus',\n 'list',\n 'update',\n 'delete',\n 'count',\n 'excelSummary',\n ),\n 'users' => array('@')\n ),\n array('deny',\n 'users' => array('*')\n )\n );\n }", "public function accessRules()\n {\n \treturn array (\n \t\t\tarray (\n \t\t\t\t\t'allow',\n \t\t\t\t\t//'actions' => array ('*'),\n \t\t\t\t\t'roles' => array ('admin')\n \t\t\t),\n \t\t\tarray (\n \t\t\t\t\t'deny', // deny all users\n \t\t\t\t\t'users' => array ('*')\n \t\t\t)\n \t);\n }", "public function accessRules()\n\t{\n\t\treturn array(\n\t\t\tarray('allow', // allow authenticated user to perform 'create' and 'update' actions\n\t\t\t\t'actions'=>array('system','create','update','index','backupDatabase'),\n\t\t\t\t'expression' => '$user->isAdmin()',\n\t\t\t),\t\t\t\n\t\t\t\n\t\t\tarray('deny', // deny all users\n\t\t\t\t'users'=>array('*'),\n\t\t\t),\n\t\t);\n\t}", "public function get_available_rights();", "public function getStatusAllowableValues()\n {\n return [\n self::STATUS_LOCKED,\nself::STATUS_AVAILABLE, ];\n }", "public function accessRules()\n\t{\n\t\treturn array(\n\t\t\tarray('allow', // allow admin user to perform 'admin' and 'delete' actions\n\t\t\t\t'expression'=>'helpers::isadmin()',\n\t\t\t),\n\t\t\tarray('deny', // deny all users\n\t\t\t\t'users'=>array('*'),\n\t\t\t),\n\t\t);\n\t}", "public function accessRules()\n\t{\n\t\treturn array(\n\t\t\tarray('allow', // allow authenticated user to perform 'create' and 'update' actions\n\t\t 'actions'=>array('global', 'backup'),\n\t\t\t\t'users'=>array('@'),\n\t\t\t\t'expression'=>'Yii::app()->user->isAdmin'\n\t\t\t),\n\t\t\tarray('deny', // deny all users\n\t\t\t\t'users'=>array('*'),\n\t\t\t),\n\t\t);\n\t}", "public function getWinnerCriteriaAllowableValues()\n {\n return [\n self::WINNER_CRITERIA_OPEN,\n self::WINNER_CRITERIA_CLICK,\n ];\n }", "public function getGrantControls()\n {\n if (array_key_exists(\"grantControls\", $this->_propDict)) {\n if (is_a($this->_propDict[\"grantControls\"], \"\\Microsoft\\Graph\\Model\\ConditionalAccessGrantControls\") || is_null($this->_propDict[\"grantControls\"])) {\n return $this->_propDict[\"grantControls\"];\n } else {\n $this->_propDict[\"grantControls\"] = new ConditionalAccessGrantControls($this->_propDict[\"grantControls\"]);\n return $this->_propDict[\"grantControls\"];\n }\n }\n return null;\n }", "public function accessRules()\n\t{\n\t\treturn array(\n\t\t\tarray('allow',\n\t\t\t\t'actions'=>array('create','update','index','delete', 'setIsShow', 'setIsAvailable', 'setIsNew'),\n\t\t\t\t'users'=>array('admin'),\n\t\t\t),\n\t\t\tarray('deny', // deny all users\n\t\t\t\t'users'=>array('*'),\n\t\t\t),\n\t\t);\n\t}", "public function getAccessLevels() : array {\n return [\n 'B-SP' => \"Bronze - Service Provider\",\n 'B-EP' => \"Bronze - Education Provider\",\n 'S-SP' => \"Silver - Service Provider\",\n 'S-EP' => \"Silver - Education Provider\",\n 'S-SP-EB' => \"Silver - Service Provider Early Bird\",\n 'S-EP-EB' => \"Silver - Education Provider Early Bird\",\n 'G-SP-EB' => \"Gold - Service Provider Early Bird\",\n 'G-EP-EB' => \"Gold - Education Provider Early Bird\",\n 'G-SP' => \"Gold - Service Provider\",\n 'G-EP' => \"Gold - Education Provider\",\n ];\n }", "public function getRequiredPermissions()\n {\n return $this->requiredPermissions;\n }", "public function setConditions($var)\n\t{\n\t\tGPBUtil::checkMessage($var, \\Gobgpapi\\Conditions::class);\n\t\t$this->conditions = $var;\n\n\t\treturn $this;\n\t}", "public function accessRules()\n\t{\n\t\treturn array(\n\t\t\tarray('allow', // allow admin user to perform 'admin' and 'delete' actions\n\t\t\t\t'actions'=>array('index'),\n\t\t\t\t'roles'=>array('admin','management','technical_support','customer_services','customer'),\n\t\t\t),\n\t\t\tarray('allow', // allow admin user to perform 'admin' and 'delete' actions\n\t\t\t\t'actions'=>array('view'),\n\t\t\t\t'roles'=>array('admin','management','technical_support','customer'),\n\t\t\t),\n\t\t\t\n\t\t\tarray('allow', // allow admin user to perform 'admin' and 'delete' actions\n\t\t\t\t'actions'=>array('create'),\n\t\t\t\t'roles'=>array('admin','customer'),\n\t\t\t),\n\t\t\t\n\t\t\tarray('deny', // deny all users\n\t\t\t\t'users'=>array('*'),\n\t\t\t),\n\t\t);\n\t}", "public function accessRules()\n\t{\n\t\treturn array(\n\t\t\tarray('allow', // allow admin user to perform 'create', 'update', 'admin' and 'delete' actions\n\t\t\t\t'actions'=>array('admin','delete'),\n\t\t\t\t'users'=>Yii::app()->user->getAdmins(),\n\t\t\t),\n\t\t\tarray('deny', // deny all users\n\t\t\t\t'users'=>array('*'),\n\t\t\t),\n\t\t);\n\t}", "public function accessRules() {\n return array(\n array('allow',\n 'actions' => array('bind', 'merge', 'index'),\n 'users' => array('@'),\n ),\n array('allow',\n 'actions' => array('list'),\n 'expression' => array(__CLASS__, 'allowListOwnAccessRule'),\n 'users' => array('@'),\n ),\n array('allow',\n 'actions' => array('delete', 'edit'),\n 'expression' => array(__CLASS__, 'allowModifyOwnAccessRule'),\n ),\n array('allow',\n 'actions' => array('list', 'delete', 'index', 'edit'),\n 'roles' => array('admin'),\n 'users' => array('@'),\n ),\n array('deny',\n 'actions' => array('bind', 'delete', 'index', 'list', 'merge'),\n ),\n );\n }", "protected function _getPermissionCondition($accessLevel, $userId)\n\t{\n\t\t$read = $this->_getReadAdapter();\n\t\t$permissionCondition = array();\n\t\t$permissionCondition[]= rm_quote_into($this->_versionTableAlias . '.user_id = ? ', $userId);\n\t\tif (is_array($accessLevel) && !empty($accessLevel)) {\n\t\t\t$permissionCondition[]= rm_quote_into($this->_versionTableAlias . '.access_level in (?)', $accessLevel);\n\t\t} else if ($accessLevel) {\n\t\t\t$permissionCondition[]= rm_quote_into($this->_versionTableAlias . '.access_level = ?', $accessLevel);\n\t\t} else {\n\t\t\t$permissionCondition[]= $this->_versionTableAlias . '.access_level = \"\"';\n\t\t}\n\t\treturn '(' . implode(' OR ', $permissionCondition) . ')';\n\t}", "public static function getAllowableEnumValues()\n {\n return [\n self::PENDING,\n self::PENDING_SENT,\n self::PENDING_DOCUMENT_SENT,\n self::PENDING_PROGRESS,\n self::PENDING_UPDATE,\n self::PENDING_SENT_UPDATE,\n self::TIMEOUT,\n self::ACCEPT,\n self::DECLINE,\n self::INVALID_NAME,\n self::FAILED,\n self::CANCEL,\n self::AUTO_CANCEL,\n self::ACTIVE,\n self::SENT,\n self::OPEN,\n self::TMCH_CLAIM,\n self::TMCH_CLAIM_CONFIRMED,\n self::TMCH_CLAIM_REJECTED,\n self::TMCH_CLAIM_EXPIRED,\n self::TMCH_CLAIM_PENDING,\n self::TMCH_CLAIM_FAILED,\n self::FAILED_REF,\n ];\n }", "public function accessRules()\n\t{\n\n $admins = CatNivelAcceso::getAdmins();\n\t\treturn array(\n\t\t\tarray('allow', // allow authenticated user to perform 'create' and 'update' actions\n\t\t\t\t'actions'=>array('view','create','update','delete','getDetalle','exportToPdf','exportarExcel',\n 'index','autocompleteCatPuesto'),\n\t\t\t\t'users'=>array('@')\n\t\t\t),\n\t\t\tarray('deny', // deny all users\n\t\t\t\t'users'=>array('*')\n\t\t\t)\n\t\t);\n\t}", "public function allowedContexts() {}", "public function getRequestStateAllowableValues()\n {\n return [\n self::REQUEST_STATE_OPEN,\n self::REQUEST_STATE_ACCEPTED,\n self::REQUEST_STATE_REJECTED,\n ];\n }", "public function can($permissions);", "public function accessRules()\n\t{\n\t\treturn array(\n\t\t\tarray('allow', // admins only\n 'actions' => array('index', 'job', 'client', 'details', 'view'),\n 'users' => array('admin')\n ),\n\t\t\tarray('deny', // deny all users\n\t\t\t\t'users'=>array('*'),\n\t\t\t),\n\t\t);\n\t}", "public function allowedScopes()\n {\n return [];\n }", "public static function getAllowableEnumValues()\n {\n return [\n self::FIRE_DETECTION_SYSTEM_CONNECTED_TO_COMMUNICATIONS_ROOM,\n self::PRIVATE_PARKING,\n self::ELEVATOR,\n self::SWIMMING_POOL,\n self::OUTDOOR_SPACE,\n self::DAY_NURSERY,\n self::OUT_OF_SCHOOL_CARE,\n ];\n }", "public function accessRules() {\n\n // en este array colocar solo los action de consulta\n return array(\n array('allow',\n 'actions' => array('index', 'EstadisticoDirectoresDiario','ReporteDetalladoDirectoresDiario'),\n 'pbac' => array( 'write','admin'),\n ),\n array('allow',\n 'actions' => array('index', 'EstadisticoDirectoresDiario','ReporteDetalladoDirectoresDiario'),\n 'pbac' => array('read'),\n ),\n // este array siempre va asì para delimitar el acceso a todos los usuarios que no tienen permisologia de read o write sobre el modulo\n array('deny', // deny all users\n 'users' => array('*'),\n ),\n );\n }", "public function getStatusAllowableValues()\n {\n return [\n self::STATUS_REQUESTED,\n self::STATUS_RESERVED,\n self::STATUS_IN_HOUSE,\n self::STATUS_CANCELLED,\n self::STATUS_CHECKED_OUT,\n self::STATUS_NO_SHOW,\n self::STATUS_WAIT_LIST,\n self::STATUS_UNKNOWN,\n ];\n }", "public function getRestrictions()\n {\n return $this->restrictions;\n }", "public function getRestrictions()\n {\n return $this->restrictions;\n }", "public function accessRules()\n {\n return array(\n array('allow',\n 'actions'=>array('edit','draft','save','down','fileupload','fileRemove'),\n 'expression'=>array('SignContractController','allowReadWrite'),\n ),\n array('allow',\n 'actions'=>array('delete'),\n 'expression'=>array('SignContractController','allowDelete'),\n ),\n array('allow',\n 'actions'=>array('index','view','fileDownload'),\n 'expression'=>array('SignContractController','allowReadOnly'),\n ),\n array('deny', // deny all users\n 'users'=>array('*'),\n ),\n );\n }", "public function accessRules() {\n\t\treturn array(\n\t\t\tarray(\n\t\t\t\t'allow', 'roles' => array($this->getModule()->getName())\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'deny', 'users'=>array('*'),\n\t\t\t),\n\t\t);\n\t}", "public function accessRules()\n\t{\n\t\treturn array(\n\t\tarray('allow', // allow admin user to perform 'admin' and 'delete' actions\n\t\t\t\t'users'=>array('*'),\n\t\t\t),\n\t\t\tarray('allow', // allow admin user to perform 'admin' and 'delete' actions\n\t\t\t\t'actions'=>array('manage','delete','view','status','gallery'),\n\t\t\t\t'expression'=>'helpers::isadmin()',\n\t\t\t),\n\t\t\tarray('deny', // deny all users\n\t\t\t\t'users'=>array('*'),\n\t\t\t),\n\t\t);\n\t}", "public function rules()\n {\n $rules = [];\n $this->request = json_decode($this->content);\n $content = $this->request;\n\n foreach($content->conditions as $key => $val)\n {\n $rules['conditions.'.$key.'.id'] = 'required|integer';\n $rules['conditions.'.$key.'.disease_model_id'] = 'required|integer';\n $rules['conditions.'.$key.'.clsf_weather_parameter'] = 'required|integer';\n $rules['conditions.'.$key.'.date_range'] = 'required|boolean';\n\n if (isset($val->date_range))\n if ($val->date_range) {\n $rules['conditions.'.$key.'.start_range'] = 'required|numeric';\n $rules['conditions.'.$key.'.end_range'] = 'required|numeric';\n } else {\n $rules['conditions.'.$key.'.constant'] = 'required|numeric';\n $rules['conditions.'.$key.'.operator'] = 'required|boolean';\n }\n\n $rules['conditions.'.$key.'.time'] = 'required|integer';\n }\n return $rules;\n }", "public function accessRules()\n\t{\n\t\treturn array(\n array('allow', // allow admin user to perform 'admin' and 'delete' actions\n \t'actions' => array('BatchCreate', 'router', 'MensajeFinal'),\n \t'expression' => 'Yii::app()->user->checkAccess(\"Cliente\")',\n \t),\n array('allow', // allow admin user to perform 'admin' and 'delete' actions\n \t'actions' => array('BatchCreate', 'index', 'view', 'update', 'admin', 'delete', 'router', 'MensajeFinal'),\n \t'expression' => 'Yii::app()->user->checkAccess(\"Admin1\")',\n \t),\n array('deny', // deny all users\n \t'users' => array('*'),\n \t),\n );\n\t}", "static public function getRequiredPermissions(): array\n {\n return static::$required_permissions;\n }", "public function accessRules()\n\t{\n\t\treturn array(\n\t\t\tarray('allow', \n\t\t\t\t'actions'=>array('new','edit','delete','save','submit','request','cancel','fileupload','fileremove'),\n\t\t\t\t'expression'=>array('PayreqController','allowReadWrite'),\n\t\t\t),\n\t\t\tarray('allow', \n\t\t\t\t'actions'=>array('index','view','check','filedownload','void','listtax','Listfile'),\n\t\t\t\t'expression'=>array('PayreqController','allowReadOnly'),\n\t\t\t),\n\t\t\tarray('deny', // deny all users\n\t\t\t\t'users'=>array('*'),\n\t\t\t),\n\t\t);\n\t}", "public function accessRules()\n {\n return array(\n array('allow',\n 'actions' => array(\n \t'login', 'registration', 'captcha', \n \t'verify', 'forget'\n ),\n 'users' => array('*'),// для всех\n ),\n array('allow',\n 'actions' => array(\n \t'index', 'range', 'logout', \n \t'file', 'commercial', 'data', \n \t'view', 'payRequest', 'offers',\n 'onOffer', 'offOffer', 'changeOffer', 'change',\n ),\n 'roles' => array('user'),// для авторизованных\n ),\n array('deny', // deny all users\n 'users' => array('*'),\n ),\n );\n }", "public function accessRules() {\n return array(\n array('allow',\n 'actions' => array('morecomments', 'approve', 'dashboard', 'create', 'list', 'update', 'delete', 'deleteall', 'index', 'view', 'replay', 'message.msg'),\n 'expression' => '$user->isAdministrator()',\n ),\n array('deny',\n 'users' => array('*'),\n )\n// array('allow', // allow all users to perform 'index' and 'view' actions\n// 'actions' => array('index', 'view'),\n// 'users' => array('*'),\n// ),\n// array('allow', // allow authenticated user to perform 'create' and 'update' actions\n// 'actions' => array('create', 'update'),\n// 'users' => array('@'),\n// ),\n// array('allow', // allow dashboard user to perform 'dashboard' and 'delete' actions\n// 'actions' => array('dashboard', 'delete'),\n// 'users' => array('dashboard'),\n// ),\n// array('deny', // deny all users\n// 'users' => array('*'),\n// ),\n );\n }", "public function accessRules()\n\t{\n\t\treturn array(\n\t\t\tarray('allow',\n\t\t\t\t'actions'=>array('index','view','create','update', 'delete', 'changeposition'),\n\t\t\t\t'roles'=>array(\n\t\t\t\t\tUser::ROLE_ADMIN,\n\t\t\t\t\tUser::ROLE_SENIORMODERATOR,\n\t\t\t\t\tUser::ROLE_POWERADMIN\n\t\t\t\t),\n\t\t\t),\n\t\t\tarray('deny', // deny all users\n\t\t\t\t'users'=>array('*'),\n\t\t\t),\n\t\t);\n\t}", "public function accessRules()\n\t{\n\t\treturn array(\n\t\t\t\n\t\t\tarray('allow', // allow all users to perform 'index' and 'view' actions\n\t\t\t\t'actions'=>array('marketSegmentFilter','marketSegmentFilter2','categoryFilter','officerFilter','decisionFilter','subCategoryFilter'),\n\t\t\t\t'users'=>array('@'),\n\t\t\t),\n\t\t\t\n\t\t\t/*array('allow', \n\t\t\t\t'users'=>array('@'),\n\t\t\t\t//'expression'=>'Yii::app()->user->permission',\n\t\t\t),*/\n\t\t\tarray('allow', \n\t\t\t\t'users'=>array('@'),\n\t\t\t\t'actions'=>array('approvalList','approval'),\n\t\t\t\t'expression'=>'Yii::app()->user->getPermission(\"licenceApplicationApproval\")',\n\t\t\t),\n\t\t\tarray('allow', \n\t\t\t\t'users'=>array('@'),\n\t\t\t\t'actions'=>array('editList','edit','editCommunication','editContent','editCourier','editInstallation','editImportation','editVsat'),\n\t\t\t\t'expression'=>'Yii::app()->user->getPermission(\"licenceApplicationEdit\")',\n\t\t\t),\n\t\t\tarray('allow', \n\t\t\t\t'users'=>array('@'),\n\t\t\t\t'actions'=>array('evaluationList','evaluation','businessPlan','checkResources'),\n\t\t\t\t'expression'=>'Yii::app()->user->getPermission(\"licenceApplicationEvaluation\")',\n\t\t\t),\n\t\t\tarray('allow', \n\t\t\t\t'users'=>array('@'),\n\t\t\t\t'actions'=>array('printList','print'),\n\t\t\t\t'expression'=>'Yii::app()->user->getPermission(\"licenceApplicationPrint\")',\n\t\t\t),\n\t\t\tarray('allow', \n\t\t\t\t'users'=>array('@'),\n\t\t\t\t'actions'=>array('prepareList','prepare'),\n\t\t\t\t'expression'=>'Yii::app()->user->getPermission(\"licenceApplicationPrepare\")',\n\t\t\t),\n\t\t\tarray('allow', \n\t\t\t\t'users'=>array('@'),\n\t\t\t\t'actions'=>array('issueList','issue'),\n\t\t\t\t'expression'=>'Yii::app()->user->getPermission(\"licenceApplicationIssue\")',\n\t\t\t),\n\t\t\tarray('allow', \n\t\t\t\t'users'=>array('@'),\n\t\t\t\t'actions'=>array('viewList','view'),\n\t\t\t\t'expression'=>'Yii::app()->user->getPermission(\"licenceApplicationView\")',\n\t\t\t),\n\t\t\tarray('allow', \n\t\t\t\t'users'=>array('@'),\n\t\t\t\t'actions'=>array('licenceList','licenceeList','licenceView','licenceeView'),\n\t\t\t\t'expression'=>'Yii::app()->user->getPermission(\"licenceView\")',\n\t\t\t),\n\t\t\tarray('allow', \n\t\t\t\t'users'=>array('@'),\n\t\t\t\t'actions'=>array('cancelView','cancelList'),\n\t\t\t\t'expression'=>'Yii::app()->user->getPermission(\"licenceCancel\")',\n\t\t\t),\n\t\t\tarray('allow', \n\t\t\t\t'users'=>array('@'),\n\t\t\t\t'actions'=>array('admin','renewList','renewView','annualFeeList','annualFeeView'),\n\t\t\t),\n\t\t\tarray('allow', \n\t\t\t\t'users'=>array('@'),\n\t\t\t\t'actions'=>array('new','newCommunication','newContent','newCourier','newInstallation','newImportation','newDistribution','editDistribution','newSelling','editSelling','newVsat','editVsat'),\n\t\t\t\t'expression'=>'Yii::app()->user->getPermission(\"licenceApplicationNew\")',\n\t\t\t),\n\t\t\tarray('deny', // deny all users\n\t\t\t\t'users'=>array('*'),\n\t\t\t),\n\t\t);\n\t}", "public function accessRules() {\n return VAuth::getAccessRules('package', array('getCity', 'clear', 'export', 'entry', 'input', 'childUpdate', 'index'));\n }", "public function &havingConditions();", "public function accessRules()\n\t{\n\t\treturn array(\n array('allow',\n 'actions'=>array('login','error','logout'),\n 'users'=>array('*'),\n ),\n\t\t\tarray('allow', // allow authenticated user to perform 'create' and 'update' actions\n\t\t\t\t'actions'=>array('index','delivery','settings'),\n\t\t\t\t'users'=>array('@'),\n 'expression'=>'AdmAccess::model()->accessAdmin()'\n\t\t\t),\n\t\t\tarray('deny', // deny all users\n\t\t\t\t'users'=>array('*'),\n\t\t\t),\n\t\t);\n\t}", "public function setCondition(array $condition = [])\n {\n $this->condition = [];\n if ([] === $condition) {\n return $this;\n }\n foreach($condition as $v) {\n if ($v instanceof FHIRCoding) {\n $this->addCondition($v);\n } else {\n $this->addCondition(new FHIRCoding($v));\n }\n }\n return $this;\n }", "public function hasAccessRestrictions() {\n\t\tif (!is_array($this->accessRoles) || empty($this->accessRoles)) {\n\t\t\treturn FALSE;\n\t\t}\n\t\tif (count($this->accessRoles) === 1 && in_array('TYPO3.Flow:Everybody', $this->accessRoles)) {\n\t\t\treturn FALSE;\n\t\t}\n\t\treturn TRUE;\n\t}", "public function accessRules() {\n\t\treturn array();\n\t}", "public function getConditions()\n {\n return new CartConditionCollection($this->session->get($this->sessionKeyCartConditions));\n }", "public function getCriteria()\n {\n $this->assertEquals(array(), $this->denyValidator->getCriteria());\n }", "public function accessRules()\n {\n return array(\n array('allow',\n 'expression' => 'Yii::app()->user->isAdmin()',\n ),\n array('deny', // deny all users\n 'users' => array('*'),\n ),\n );\n }", "public function accessRules()\n {\n return array(\n array('allow',\n 'expression' => 'Yii::app()->user->isAdmin()',\n ),\n array('deny', // deny all users\n 'users' => array('*'),\n ),\n );\n }", "function isAuthorized() {\n $roles = $this->Role->calculateCMRoles();\n \n // Construct the permission set for this user, which will also be passed to the view.\n $p = array();\n \n // Determine what operations this user can perform\n \n // Add a new Match Server Attribute?\n $p['add'] = ($roles['cmadmin'] || $roles['coadmin']);\n \n // Delete an existing Match Server Attribute?\n $p['delete'] = ($roles['cmadmin'] || $roles['coadmin']);\n \n // Edit an existing Match Server Attribute?\n $p['edit'] = ($roles['cmadmin'] || $roles['coadmin']);\n\n // View all existing Match Server Attributes?\n $p['index'] = ($roles['cmadmin'] || $roles['coadmin']);\n \n // View an existing Match Server Attribute?\n $p['view'] = ($roles['cmadmin'] || $roles['coadmin']);\n\n $this->set('permissions', $p);\n return $p[$this->action];\n }", "public function accessRules()\r\n\t{\r\n\t\treturn array(\r\n\t\t\tarray('allow', // allow authenticated admins to perform any action\r\n\t\t\t\t'users'=>array('@'),\r\n\t\t\t\t'expression'=>'Yii::app()->user->role>=5'\r\n\t\t\t),\r\n\t\t\tarray('deny', // deny all users\r\n\t\t\t\t'users'=>array('*'),\r\n\t\t\t\t'deniedCallback' => array($this, 'actionError')\r\n\t\t\t),\r\n\t\t);\r\n\t}", "public function accessRules()\n {\n return array(\n array('allow', // @代表有角色的\n 'actions'=>array('view','change','see'),\n 'users'=>array('@'),\n ),\n array('allow', // allow admin user to perform 'admin' and 'delete' actions\n 'actions'=>array('create','see','update','delete'),\n 'expression'=>'$user->getState(\"info\")->authority >= 1',//,array($this,\"isSuperUser\"),\n ),\n array('deny', // *代表所有的用户\n 'users'=>array('*'),\n ),\n );\n }", "public function getAuthAllowableValues()\n {\n return [\n self::AUTH_INTERNAL,\n self::AUTH_EXTERNAL,\n ];\n }", "public function getQuotationStatusAllowableValues()\n {\n return [\n self::QUOTATION_STATUS_UNSUBMITTED,\n self::QUOTATION_STATUS_SUBMITTED,\n ];\n }" ]
[ "0.5751854", "0.56286883", "0.5454148", "0.5385327", "0.52432436", "0.5196044", "0.5168579", "0.5168579", "0.515552", "0.515552", "0.515552", "0.515552", "0.5132552", "0.5130318", "0.511078", "0.50810605", "0.49957433", "0.49949503", "0.49949503", "0.49949503", "0.49879435", "0.49629655", "0.49316365", "0.49180552", "0.49074423", "0.48777968", "0.4856092", "0.48470378", "0.48398125", "0.48391938", "0.48390472", "0.48188537", "0.4810692", "0.47780156", "0.47741714", "0.4769355", "0.47608098", "0.47295853", "0.4724835", "0.4722576", "0.4719873", "0.47120836", "0.47075242", "0.47072935", "0.4706566", "0.46945748", "0.46839705", "0.46813822", "0.46770513", "0.46759558", "0.4671913", "0.46710095", "0.46698338", "0.46672648", "0.46667218", "0.46454668", "0.4641624", "0.4641201", "0.46387643", "0.46358448", "0.4634734", "0.46315408", "0.46216133", "0.4619832", "0.4615647", "0.4609943", "0.4600549", "0.4600424", "0.46001112", "0.45956033", "0.45912722", "0.4590126", "0.45867434", "0.45867434", "0.4565714", "0.45657024", "0.45613864", "0.4560553", "0.4557339", "0.45572585", "0.45547765", "0.4554728", "0.45522648", "0.45516148", "0.4548857", "0.45481", "0.4546461", "0.45382014", "0.45381087", "0.45277286", "0.45243338", "0.45212045", "0.4520394", "0.45149764", "0.45149764", "0.45144814", "0.45102587", "0.45102274", "0.45073077", "0.45068645" ]
0.71494347
0
How the `conditions` list should be combined to determine if a request is granted this `AccessLevel`. If AND is used, each `Condition` in `conditions` must be satisfied for the `AccessLevel` to be applied. If OR is used, at least one `Condition` in `conditions` must be satisfied for the `AccessLevel` to be applied. Default behavior is AND. Generated from protobuf field .google.identity.accesscontextmanager.v1.BasicLevel.ConditionCombiningFunction combining_function = 2;
public function getCombiningFunction() { return $this->combining_function; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setCombiningFunction($var)\n {\n GPBUtil::checkEnum($var, \\Google\\Identity\\AccessContextManager\\V1\\BasicLevel\\ConditionCombiningFunction::class);\n $this->combining_function = $var;\n\n return $this;\n }", "public function setConditions($var)\n {\n $arr = GPBUtil::checkRepeatedField($var, \\Google\\Protobuf\\Internal\\GPBType::MESSAGE, \\Google\\Identity\\AccessContextManager\\V1\\Condition::class);\n $this->conditions = $arr;\n\n return $this;\n }", "protected function buildFilter($conditions)\n {\n if (\\Sledgehammer\\is_closure($conditions)) {\n return $conditions;\n }\n if (is_array($conditions)) {\n // Create filter that checks all conditions\n $logicalOperator = \\Sledgehammer\\extract_logical_operator($conditions);\n if ($logicalOperator === false) {\n if (count($conditions) > 1) {\n \\Sledgehammer\\notice('Conditions with multiple conditions require a logical operator.', \"Example: array('AND', 'x' => 1, 'y' => 5)\");\n }\n $logicalOperator = 'AND';\n } else {\n unset($conditions[0]);\n }\n $operators = [];\n foreach ($conditions as $path => $expectation) {\n if (preg_match('/^(.*) (' . \\Sledgehammer\\COMPARE_OPERATORS . ')$/', $path, $matches)) {\n unset($conditions[$path]);\n $conditions[$matches[1]] = $expectation;\n $operators[$matches[1]] = $matches[2];\n } else {\n $operators[$path] = false;\n }\n }\n // @todo Build an optimized closure for when a single conditions is given.\n if ($logicalOperator === 'AND') {\n return function ($item) use ($conditions, $operators) {\n foreach ($conditions as $path => $expectation) {\n $actual = PropertyPath::get($path, $item);\n $operator = $operators[$path];\n if ($operator) {\n if (\\Sledgehammer\\compare($actual, $operator, $expectation) === false) {\n return false;\n }\n } elseif (\\Sledgehammer\\equals($actual, $expectation) === false) {\n return false;\n }\n }\n\n return true; // All conditions are met.\n };\n } elseif ($logicalOperator === 'OR') {\n return function ($item) use ($conditions, $operators) {\n foreach ($conditions as $path => $expectation) {\n $actual = PropertyPath::get($path, $item);\n $operator = $operators[$path];\n if ($operator) {\n if (\\Sledgehammer\\compare($actual, $operator, $expectation) !== false) {\n return true;\n }\n } elseif (\\Sledgehammer\\equals($actual, $expectation) !== false) {\n return true;\n }\n }\n\n return false; // None of conditions are met.\n };\n } else {\n throw new Exception('Unsupported logical operator \"' . $logicalOperator . '\", expecting \"AND\" or \"OR\"');\n }\n }\n //'<= 5' or '10'\n // Compare the item directly with value given as $condition.\n if (is_string($conditions) && preg_match('/^(' . \\Sledgehammer\\COMPARE_OPERATORS . ') (.*)$/', $conditions, $matches)) {\n $operator = $matches[1];\n $expectation = $matches[2];\n } else {\n $expectation = $conditions;\n $operator = '==';\n }\n\n return function ($value) use ($expectation, $operator) {\n return \\Sledgehammer\\compare($value, $operator, $expectation);\n };\n }", "protected static function logicalOR(){\n\t\t$values = func_get_args();\n\t\tif(is_array($values[0])){\n\t\t\t$values = $values[0];\n\t\t}\n\t\treturn self::junction('OR', $values);\n\t}", "public function processOrCombination($collection, $conditions)\n {\n $fieldsConditions = [];\n $multiFieldsConditions = [];\n foreach ($conditions as $condition) {\n $attribute = $condition['attribute'];\n $cond = $condition['conditions'];\n $value = $condition['cvalue'];\n\n //ignore condition if value is null or empty\n if ($value == '' || $value == null) {\n continue;\n }\n\n if ($this->ruleType == self::REVIEW && isset($this->attributeMapForQuote[$attribute])) {\n $attribute = $this->attributeMapForOrder[$attribute];\n } elseif ($this->ruleType == self::ABANDONED && isset($this->attributeMapForOrder[$attribute])) {\n $attribute = $this->attributeMapForQuote[$attribute];\n } else {\n $this->productAttribute[] = $condition;\n continue;\n }\n\n if ($cond == 'null') {\n if ($value == '1') {\n if (isset($fieldsConditions[$attribute])) {\n $multiFieldsConditions[$attribute][]\n = ['notnull' => true];\n continue;\n }\n $fieldsConditions[$attribute] = ['notnull' => true];\n } elseif ($value == '0') {\n if (isset($fieldsConditions[$attribute])) {\n $multiFieldsConditions[$attribute][]\n = [$cond => true];\n continue;\n }\n $fieldsConditions[$attribute] = [$cond => true];\n }\n } else {\n if ($cond == 'like' || $cond == 'nlike') {\n $value = '%' . $value . '%';\n }\n if (isset($fieldsConditions[$attribute])) {\n $multiFieldsConditions[$attribute][]\n = [$this->conditionMap[$cond] => $value];\n continue;\n }\n $fieldsConditions[$attribute]\n = [$this->conditionMap[$cond] => $value];\n }\n }\n /**\n * All rule conditions are combined into an array to yield an OR when passed\n * to `addFieldToFilter`. The exception is any 'like' or 'nlike' conditions,\n * which must be added as separate filters in order to have the AND logic.\n */\n if (!empty($fieldsConditions)) {\n $column = $cond = [];\n foreach ($fieldsConditions as $key => $fieldsCondition) {\n $type = key($fieldsCondition);\n if ($type == 'like' || $type == 'nlike') {\n $collection->addFieldToFilter(\n (string) $key,\n $fieldsCondition\n );\n } else {\n $column[] = (string) $key;\n $cond[] = $fieldsCondition;\n }\n if (!empty($multiFieldsConditions[$key])) {\n foreach ($multiFieldsConditions[$key] as $multiFieldsCondition) {\n $type = key($multiFieldsCondition);\n if ($type == 'like' || $type == 'nlike') {\n $collection->addFieldToFilter(\n (string) $key,\n $multiFieldsCondition\n );\n } else {\n $column[] = (string) $key;\n $cond[] = $multiFieldsCondition;\n }\n }\n }\n }\n if (!empty($column) && !empty($cond)) {\n $collection->addFieldToFilter(\n $column,\n $cond\n );\n }\n }\n return $this->processProductAttributes($collection);\n }", "public function conditionalOrExpression(){\n try {\n // Sparql11query.g:382:3: ( conditionalAndExpression ( OR conditionalAndExpression )* ) \n // Sparql11query.g:383:3: conditionalAndExpression ( OR conditionalAndExpression )* \n {\n $this->pushFollow(self::$FOLLOW_conditionalAndExpression_in_conditionalOrExpression1301);\n $this->conditionalAndExpression();\n\n $this->state->_fsp--;\n\n // Sparql11query.g:383:28: ( OR conditionalAndExpression )* \n //loop48:\n do {\n $alt48=2;\n $LA48_0 = $this->input->LA(1);\n\n if ( ($LA48_0==$this->getToken('OR')) ) {\n $alt48=1;\n }\n\n\n switch ($alt48) {\n \tcase 1 :\n \t // Sparql11query.g:383:29: OR conditionalAndExpression \n \t {\n \t $this->match($this->input,$this->getToken('OR'),self::$FOLLOW_OR_in_conditionalOrExpression1304); \n \t $this->pushFollow(self::$FOLLOW_conditionalAndExpression_in_conditionalOrExpression1306);\n \t $this->conditionalAndExpression();\n\n \t $this->state->_fsp--;\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break 2;//loop48;\n }\n } while (true);\n\n\n }\n\n }\n catch (RecognitionException $re) {\n $this->reportError($re);\n $this->recover($this->input,$re);\n }\n catch(Exception $e) {\n throw $e;\n }\n \n return ;\n }", "public function andWhere($conditions);", "public function orWhereComplex()\n {\n return $this->addComplexCondition('or', $this->conditions);\n }", "protected static function logicalAND(){\n\t\t$values = func_get_args();\n\t\tif(is_array($values[0])){\n\t\t\t$values = $values[0];\n\t\t}\n\t\treturn self::junction('AND', $values);\n\t}", "public function getConditions()\n {\n if (array_key_exists(\"conditions\", $this->_propDict)) {\n if (is_a($this->_propDict[\"conditions\"], \"\\Microsoft\\Graph\\Model\\ConditionalAccessConditionSet\") || is_null($this->_propDict[\"conditions\"])) {\n return $this->_propDict[\"conditions\"];\n } else {\n $this->_propDict[\"conditions\"] = new ConditionalAccessConditionSet($this->_propDict[\"conditions\"]);\n return $this->_propDict[\"conditions\"];\n }\n }\n return null;\n }", "function get_condition()\r\n {\r\n $owner = $this->owner;\r\n\r\n $conds = array();\r\n $parent = $this->parent;\r\n $category = $parent->get_parameter(WeblcmsManager :: PARAM_CATEGORY);\r\n $category = $category ? $category : 0;\r\n $conds[] = new EqualityCondition(ContentObjectPublication :: PROPERTY_CATEGORY_ID, $category, ContentObjectPublication :: get_table_name());\r\n\r\n $type_cond = array();\r\n $types = array(Assessment :: get_type_name(), Survey :: get_type_name(), Hotpotatoes :: get_type_name());\r\n foreach ($types as $type)\r\n {\r\n $type_cond[] = new EqualityCondition(ContentObject :: PROPERTY_TYPE, $type);\r\n }\r\n $conds[] = new OrCondition($type_cond);\r\n $c = Utilities :: query_to_condition($this->query);\r\n if (! is_null($c))\r\n {\r\n $conds[] = $c;\r\n }\r\n return new AndCondition($conds);\r\n }", "public function combine($conditions, $operator = 'and', $namedCondition = null)\r\n {\r\n $addMethod = 'add'.ucfirst(strtolower(trim($operator)));\r\n if(!is_array($conditions))\r\n {\r\n $conditions = array($conditions);\r\n }\r\n \r\n $pattern = '(';\r\n $args = array();\r\n $isFirst = true;\r\n foreach($conditions as $condition)\r\n {\r\n if(!$isFirst)\r\n {\r\n $pattern .= ' ' . $operator . ' ';\r\n }\r\n $pattern .= $this->namedPatterns[$condition];\r\n $args = array_merge($args, $this->namedArgs[$condition]);\r\n unset($this->namedPatterns[$condition]);\r\n unset($this->namedArgs[$condition]);\r\n $isFirst = false;\r\n }\r\n $pattern .= ')';\r\n \r\n if($namedCondition)\r\n {\r\n $this->namedPatterns[$namedCondition] = $pattern;\r\n $this->namedArgs[$namedCondition] = $args;\r\n }\r\n else\r\n {\r\n $cond = $this->queryPattern ? 'and' : '';\r\n $this->queryPattern .= sprintf(' %s %s', $cond, $pattern);\r\n $this->queryArgs = array_merge($this->queryArgs, $args);\r\n }\r\n \r\n return $this;\r\n }", "protected function _getPermissionCondition($accessLevel, $userId)\n\t{\n\t\t$read = $this->_getReadAdapter();\n\t\t$permissionCondition = array();\n\t\t$permissionCondition[]= rm_quote_into($this->_versionTableAlias . '.user_id = ? ', $userId);\n\t\tif (is_array($accessLevel) && !empty($accessLevel)) {\n\t\t\t$permissionCondition[]= rm_quote_into($this->_versionTableAlias . '.access_level in (?)', $accessLevel);\n\t\t} else if ($accessLevel) {\n\t\t\t$permissionCondition[]= rm_quote_into($this->_versionTableAlias . '.access_level = ?', $accessLevel);\n\t\t} else {\n\t\t\t$permissionCondition[]= $this->_versionTableAlias . '.access_level = \"\"';\n\t\t}\n\t\treturn '(' . implode(' OR ', $permissionCondition) . ')';\n\t}", "public function buildConditions(array $conditions, bool $usePlaceholders = true): string\n {\n $this->usePlaceholders = $usePlaceholders;\n $c = [];\n $joiner = \"AND\";\n\n $i = 0;\n\n foreach ($conditions as $key => $condition) {\n if ($i === 0 && $key === 0) {\n // it's an AND/OR\n $joiner = strtoupper($condition);\n continue;\n } elseif (is_numeric($key)) {\n $c[] = $this->buildConditions($condition, $usePlaceholders);\n } else {\n $c[] = $this->buildCondition($key, $condition, $usePlaceholders);\n }\n\n $i++;\n }\n\n return \"(\" . implode(\" $joiner \", $c) . \")\";\n }", "protected function parseConditions(array $conditions): string\n {\n // define string\n $sql = '';\n\n if (isset($conditions['or'])) {\n $i = 0;\n foreach ($conditions['or'] as $column => $value) {\n // reset\n $appended = false;\n\n // append OR\n $sql .= ($i != 0 ? ' OR ' : '');\n\n if (is_string($column) && is_string($value)) {\n // normal OR condition\n $sql .= $column . $this->parseValue($value);\n } else if (is_int($column) && is_array($value)) {\n // injected AND condition\n $sql .= $this->parseAndConditions($value, true);\n } else if (is_string($column) && is_array($value)) {\n // multiple OR conditions on one column\n $ii = 0;\n foreach ($value as $val) {\n $sql .= ($ii != 0 ? ' OR ' : '') . $column . $this->parseValue($val);\n\n // append all AND conditions if any defined\n if (isset($conditions['and'])) {\n $sql .= $this->parseAndConditions($conditions['and'], false);\n $appended = true;\n }\n\n $ii++;\n }\n }\n\n // append all AND conditions if any defined\n if (isset($conditions['and']) && $appended === false) {\n $sql .= $this->parseAndConditions($conditions['and'], false);\n }\n\n $i++;\n }\n } else if (isset($conditions['and'])) {\n $sql .= $this->parseAndConditions($conditions['and']);\n } else {\n // no conditions defined: throw warning\n $this->log(new ConnectionException('No conditions found.'), Environment::E_LEVEL_WARNING);\n }\n\n // return string\n return $sql;\n }", "public function makeConditions($attributes, $values)\n {\n if (!$attributes) return '';\n $parts = preg_split('/(And|Or)/i', $attributes, NULL, PREG_SPLIT_DELIM_CAPTURE);\n $condition = '';\n\n $j = 0;\n foreach($parts as $part) {\n if ($part == 'And') {\n $condition .= ' AND ';\n } elseif ($part == 'Or') {\n $condition .= ' OR ';\n } else {\n $part = strtolower($part);\n if (($j < count($values)) && (!is_null($values[$j]))) {\n $bind = is_array($values[$j]) ? ' IN(?)' : '=?';\n } else {\n $bind = ' IS NULL';\n }\n $condition .= self::quote($part) . $bind;\n $j++;\n }\n }\n return $condition;\n }", "protected function _formatConditions($conditions = array(), $condition = 'OR') {\n\t\t\t$operators = array('>', '>=', '<', '<=', '=', '!=', 'LIKE');\n\n\t\t\tforeach ($conditions as $key => $value) {\n\t\t\t\t$condition = !empty($key) && (in_array($key, array('AND', 'OR'))) ? $key : $condition;\n\n\t\t\t\tif (\n\t\t\t\t\tis_array($value) &&\n\t\t\t\t\tcount($value) != count($value, COUNT_RECURSIVE)\n\t\t\t\t) {\n\t\t\t\t\t$conditions[$key] = implode(' ' . $condition . ' ', $this->_formatConditions($value, $condition)) ;\n\t\t\t\t} else {\n\t\t\t\t\tif (is_array($value)) {\n\t\t\t\t\t\tarray_walk($value, function(&$fieldValue, $fieldKey) use ($key, $operators) {\n\t\t\t\t\t\t\t$key = (strlen($fieldKey) > 1 && is_string($fieldKey) ? $fieldKey : $key);\n\t\t\t\t\t\t\t$fieldValue = (is_null($fieldValue) ? $key . ' IS NULL' : trim(in_array($operator = trim(substr($key, strpos($key, ' '))), $operators) ? $key : $key . ' =') . ' ' . $this->_prepareValue($fieldValue));\n\t\t\t\t\t\t});\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$value = array((is_null($value) ? $key . ' IS NULL' : trim(in_array($operator = trim(substr($key, strpos($key, ' '))), $operators) ? $key : $key . ' =') . ' ' . $this->_prepareValue($value)));\n\t\t\t\t\t}\n\n\t\t\t\t\t$conditions[$key] = implode(' ' . (strpos($key, '!=') !== false ? 'AND' : $condition) . ' ', $value);\n\t\t\t\t}\n\n\t\t\t\t$conditions[$key] = ($key === 'NOT' ? 'NOT' : null) . ($conditions[$key] ? '(' . $conditions[$key] . ')' : $conditions[$key]);\n\t\t\t}\n\n\t\t\t$response = $conditions;\n\t\t\treturn $response;\n\t\t}", "public static function orX(Condition ...$conditions): Condition\n {\n $self = new Condition();\n $count = count($conditions);\n foreach ($conditions as $index => $condition) {\n $self->condition($condition);\n if ($index < $count - 1) {\n $self->or();\n }\n }\n\n return $self;\n }", "static function logicalOr()\n {\n try {\n return call_user_func_array('PHPUnit_Framework_Assert::logicalOr', func_get_args());\n } catch (\\Exception $e) {\n self::callSlack($e, debug_backtrace()[1]);\n }\n }", "function criteria(array $criteria) {\n\t\tif ((list($left, $right) = each($criteria))) {\n\t\t\t$this->write(\"(\");\n\t\t\tif (is_array($right)) {\n\t\t\t\t$this->criteria($right);\n\t\t\t} else {\n\t\t\t\t$this->write(\"(\", $left, $this->param($right), \")\");\n\t\t\t}\n\t\t\twhile ((list($left, $right) = each($criteria))) {\n\t\t\t\t$this->write(is_int($left) && is_array($right) ? \"OR\" : \"AND\");\n\t\t\t\tif (is_array($right)) {\n\t\t\t\t\t$this->criteria($right);\n\t\t\t\t} else {\n\t\t\t\t\t$this->write(\"(\", $left, $this->param($right), \")\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t$this->write(\")\");\n\t\t}\n\t\treturn $this;\n\t}", "public function buildWhereClause()\n {\n $criterias = $this->bean->ownCriteria;\n if (empty($criterias)) {\n return '1';\n }// find all because there are no criterias\n $where = array();\n $this->filter_values = array();\n //$mask = \" %s %s %s\"; // login, field, op (with masked value)\n $n = 0;\n foreach ($criterias as $id=>$criteria) {\n if (! $criteria->op) {\n continue;\n } // skip all entries that say any!\n if ($criteria->value === null || $criteria->value === '') {\n continue;\n } // skip all empty\n $n++;\n $logic = 'AND ';//$criteria->logic;\n if ($n == 1) {\n $logic = '';\n }\n $where[] = $logic.$criteria->makeWherePart($this);\n }\n\n if (empty($where)) {\n return '1';\n }// find all because there was no active criteria\n\n $where = implode(' ', $where);\n return $where;\n }", "function combineSQLCriteria($arrElements, $and = true)\n{\n\t$ret=\"\";\n\t$union = $and ? \" AND \" : \" OR \";\n\tforeach($arrElements as $e)\n\t{\n\t\tif(strlen($e))\n\t\t{\n\t\t\tif(!strlen($ret))\n\t\t\t{\n\t\t\t\t$ret = \"(\".$e.\")\";\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$ret .= $union.\"(\".$e.\")\";\n\t\t\t}\n\t\t}\n\t}\n\treturn $ret;\n}", "public function whereComplex()\n {\n return $this->addComplexCondition('and', $this->conditions);\n }", "public function orConditions($data = array()) {\r\n $filter = $data['filter'];\r\n $condition = array(\r\n 'OR' => array(\r\n $this->alias . '.title LIKE' => '%' . $filter . '%',\r\n $this->alias . '.body LIKE' => '%' . $filter . '%',\r\n )\r\n );\r\n return $condition;\r\n }", "protected function allowedLogicalOperators(): array\n {\n return [\n FieldCriteria::AND,\n FieldCriteria::OR,\n ];\n }", "public function getCondition($conditions) {\n $where = array();\n foreach($conditions as $condition => $value) {\n if(is_numeric($condition)) {\n $where[] = $value;\n } else if(is_string($condition)) {\n $list = explode(' ', $condition);\n $field = $list[0];\n unset($list[0]);\n $operator = implode(' ',$list);\n if(empty($operator)) {\n $operator = '=';\n }\n if(is_null($value)) {\n $where[] = $field . ' ' . $operator . ' NULL';\n } else {\n if(is_numeric($value)) {\n $where[] = $field . ' ' . $operator . ' \\'' . $value . '\\'';\n } else if(is_string($value)) {\n $where[] = $field . ' ' . $operator . ' \\'' . $value . '\\'';\n } else if(is_array($value)) {\n $where[] = $field . ' ' . ' (\\'' . implode(\"','\",$value) . '\\')';\n }\n }\n }\n }\n if(!empty($where)) {\n return static::baseQuery() . ' WHERE ' . implode(' AND ',$where);\n } else {\n return static::baseQuery();\n }\n }", "private function addRightsClauseFilter() {\r\n\t\t\t// Add rights clause\r\n\t\t$this->addRightsFilter('rights', '');\r\n\r\n\t\t\t// Add status filter\r\n\t\tif( ! TodoyuAuth::isAdmin() ) {\r\n\t\t\t$statusIDs\t= TodoyuProjectProjectStatusManager::getStatusIDs();\r\n\t\t\tif( sizeof($statusIDs) > 0 ) {\r\n\t\t\t\t$statusList = implode(',', $statusIDs);\r\n\t\t\t\t$this->addRightsFilter('status', $statusList);\r\n\t\t\t} else {\r\n\t\t\t\t$this->addRightsFilter('Not', 0);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public function orWhereAcf(...$args)\n {\n $this->addAcfCondition('or', $args, $this->conditions);\n return $this;\n }", "public function &havingConditions();", "function addConditionalsToQuery($query, $filledFormFields) {\n\t// Testing if we have to fill the conditional of our SQL statement\n\tif(count($filledFormFields) > 0) {\n\t\t$query .= \" WHERE \";\n\n\n\t\t// Adding the conditionals to the query\n\t\t$i = 0;\n\t\tforeach($filledFormFields as $fieldKey => $fieldValue) {\n\t\t\t// Appending the new conditional\n\t\t\t$queryAppendage = $fieldKey . \" LIKE :\" . $fieldKey . \" \";\n\n\t\t\t$query .= $queryAppendage;\n\t\t\t\n\t\t\t// If there's more conditionals after this, append an \"AND\" as well.\n\t\t\tif($i < count($filledFormFields) - 1) \n\t\t\t\t$query .= \" AND \";\n\n\t\t\t$i++;\n\t\t}\n\t}\n\n\treturn $query;\n}", "public function conditions($conditions = null) {\n\t\tif (!$conditions) {\n\t\t\treturn $this->_config['conditions'] ?: $this->_entityConditions();\n\t\t}\n\t\t$this->_config['conditions'] = array_merge(\n\t\t\t(array) $this->_config['conditions'], (array) $conditions\n\t\t);\n\t\treturn $this;\n\t}", "protected function _conditions($conditions, $context, array $options = [])\n\t{\n\t\t$defaults = ['prepend' => false];\n//\t\t$ops = $this->_operators;\n\t\t$options += $defaults;\n\n\t\tswitch (true) {\n\t\t\tcase empty($conditions):\n\t\t\t\treturn '';\n\t\t\tcase is_string($conditions):\n\t\t\t\treturn $options['prepend'] ? $options['prepend'] . \" {$conditions}\" : $conditions;\n\t\t\tcase !is_array($conditions):\n\t\t\t\treturn '';\n\t\t}\n\t\t$result = [];\n\n\t\tforeach ($conditions as $key => $value) {\n\t\t\t$return = $this->_processConditions($key, $value, $context);\n\n\t\t\tif ($return) {\n\t\t\t\t$result[] = $return;\n\t\t\t}\n\t\t}\n\t\t$result = join(\" AND \", $result);\n\t\treturn ($options['prepend'] && $result) ? $options['prepend'] . \" {$result}\" : $result;\n\t}", "public function conditionalAndExpression(){\n try {\n // Sparql11query.g:389:3: ( valueLogical ( AND valueLogical )* ) \n // Sparql11query.g:390:3: valueLogical ( AND valueLogical )* \n {\n $this->pushFollow(self::$FOLLOW_valueLogical_in_conditionalAndExpression1326);\n $this->valueLogical();\n\n $this->state->_fsp--;\n\n // Sparql11query.g:390:16: ( AND valueLogical )* \n //loop49:\n do {\n $alt49=2;\n $LA49_0 = $this->input->LA(1);\n\n if ( ($LA49_0==$this->getToken('AND')) ) {\n $alt49=1;\n }\n\n\n switch ($alt49) {\n \tcase 1 :\n \t // Sparql11query.g:390:17: AND valueLogical \n \t {\n \t $this->match($this->input,$this->getToken('AND'),self::$FOLLOW_AND_in_conditionalAndExpression1329); \n \t $this->pushFollow(self::$FOLLOW_valueLogical_in_conditionalAndExpression1331);\n \t $this->valueLogical();\n\n \t $this->state->_fsp--;\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break 2;//loop49;\n }\n } while (true);\n\n\n }\n\n }\n catch (RecognitionException $re) {\n $this->reportError($re);\n $this->recover($this->input,$re);\n }\n catch(Exception $e) {\n throw $e;\n }\n \n return ;\n }", "public static function buildOr(array $criteria)\n {\n return new LogicalOr($criteria);\n }", "function conditions( $conds = array())\n\t{\n\t\t// if condition is empty, return true\n\t\tif ( empty( $conds )) return true;\n\t}", "public function or_where(array $conditions): self\n\t{\n\t\tif (isset($conditions) && !empty($conditions))\n\t\t{\n\t\t\t$this->create_where_field('$or');\n\t\t\t\n\t\t\tforeach ($conditions as $field => $value)\n\t\t\t{\n\t\t\t\tif (is_string($field) && $field != '')\n\t\t\t\t{\n\t\t\t\t\t$this->wheres['$or'][] = [$field => $value];\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$this->error('Each field name in list must not be an empty string', __METHOD__);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->error('One required non empty array argument should be passed to method', __METHOD__);\n\t\t}\n\n\t\treturn $this;\n\t}", "protected function formConditions(&$builder, $filters = null)\n {\n if (empty($filters)) { $filters = $this->filters; }\n $param_count = 0;\n foreach ($filters as $filter){\n $param_id = \"p_$param_count\";\n\n $actual_field = $filter[self::FILTER_PARAM_FIELD];\n $actual_field_arr = explode('.', $filter[self::FILTER_PARAM_FIELD]);\n $count_parts = count($actual_field_arr);\n if ($count_parts > 2){\n $actual_field = $actual_field_arr[$count_parts - 2] . '.' . $actual_field_arr[$count_parts - 1];\n }\n\n if (is_array($filter[self::FILTER_PARAM_VALUE])){\n switch ($filter[self::FILTER_PARAM_COMPARATOR]){\n case self::CMP_NOT:\n $builder->notInWhere($actual_field, $filter[self::FILTER_PARAM_VALUE]);\n break;\n default:\n $builder->inWhere($actual_field, $filter[self::FILTER_PARAM_VALUE]);\n break;\n }\n } else {\n //build conditions\n $condition = null;\n switch ($filter[self::FILTER_PARAM_COMPARATOR]){\n case self::CMP_IS:\n $condition = \"{$actual_field} IS :$param_id:\";\n break;\n case self::CMP_IS_NOT:\n $condition = \"NOT {$actual_field} IS :$param_id:\";\n break;\n case self::CMP_LIKE:\n $condition = \"{$actual_field} LIKE :$param_id:\";\n break;\n default:\n $condition = \"{$actual_field} {$filter[self::FILTER_PARAM_COMPARATOR]} :$param_id:\";\n break;\n }\n\n //determine joining operators\n switch ($filter[self::FILTER_PARAM_CONDITION]){\n case self::COND_OR:\n $builder->orWhere($condition, [$param_id => $filter[self::FILTER_PARAM_VALUE]]);\n break;\n default:\n $builder->andWhere($condition, [$param_id => $filter[self::FILTER_PARAM_VALUE]]);\n break;\n }\n }\n $param_count++;\n }\n }", "public function testBuildWhereWithOrComplex()\n {\n $query = $this->getQuery()\n ->table('table1')\n ->where('id', 100)\n ->whereOr(\n $this->getQuery()\n ->where('is_admin', 1)\n ->where(\n $this->getQuery()\n ->where('is_super_admin', 1)\n ->where('can_be_super_admin', 1)\n )\n )\n ;\n\n $this->assertSame(\n \"WHERE table1.id = '100' AND (is_admin = '1' OR (is_super_admin = '1' AND can_be_super_admin = '1'))\",\n $query->buildWhere()\n );\n }", "public function orWhere()\n {\n list($field, $value) = $this->extractQueryToFieldAndValue(func_get_args());\n return $this->addOrWhereStack([$field => $value]);\n }", "public static function andX(Condition ...$conditions): Condition\n {\n $self = new Condition();\n $count = count($conditions);\n foreach ($conditions as $index => $condition) {\n $self->condition($condition);\n if ($index < $count - 1) {\n $self->and();\n }\n }\n\n return $self;\n }", "public function getConditions()\n {\n if (array_key_exists(\"conditions\", $this->_propDict)) {\n if (is_a($this->_propDict[\"conditions\"], \"\\Beta\\Microsoft\\Graph\\Model\\AuthenticationConditions\") || is_null($this->_propDict[\"conditions\"])) {\n return $this->_propDict[\"conditions\"];\n } else {\n $this->_propDict[\"conditions\"] = new AuthenticationConditions($this->_propDict[\"conditions\"]);\n return $this->_propDict[\"conditions\"];\n }\n }\n return null;\n }", "public function setConditions($var)\n {\n $arr = GPBUtil::checkRepeatedField($var, \\Google\\Protobuf\\Internal\\GPBType::MESSAGE, \\Google\\Cloud\\Run\\V2\\Condition::class);\n $this->conditions = $arr;\n\n return $this;\n }", "public function orWhere(...$conditions)\n {\n $this->where(...$conditions);\n return $this;\n }", "final public static function or($field = '', $operator = '', $value = '', bool $valueIsFunction = false)\n {\n //add the condition\n if ($field == '' || $operator == '' || $value == '') {\n self::$query .= ' OR ';\n } else {\n if (!$valueIsFunction)\n self::$bindParams[] = [$field => $value];\n\n self::$query .= ' OR ' . $field . ' ' . $operator . ' ' . ($valueIsFunction ? $value : self::prepareBind([$field], true));\n }\n return (new static);\n }", "public function getConditionOperator();", "public function setConditions($var)\n {\n $arr = GPBUtil::checkRepeatedField($var, \\Google\\Protobuf\\Internal\\GPBType::STRING);\n $this->conditions = $arr;\n\n return $this;\n }", "public function getConditions();", "public function getConditions();", "public function getConditions();", "public function orWhere(Array $restraints){\r\n $subclause = $this->where->addClause(\"or\");\r\n foreach($restraints as $rest){\r\n $this->__where_restraint($rest, $subclause);\r\n }\r\n return $this;\r\n }", "private function _getMultipleOptionFilterConditions($params, $field_name, $other_value, $table_name='Rental')\n\t{\n\t\t$safe_field_name = $this->_getSafeFieldName($field_name);\n\t\t$conditions = array();\n\t\t$possibleValues = json_decode($params[$safe_field_name]);\n\t\tif (count($possibleValues) === 0)\n\t\t\treturn null;\n\n\t\t$conditions['OR'] = array(array($table_name . '.' . $field_name => $possibleValues));\n\n\t\tif (in_array($other_value, $possibleValues))\n\t\t\tarray_push($conditions['OR'], array(\n\t\t\t\t$table_name . '.' . $field_name . ' >=' => $other_value\n\t\t\t));\n\n\t\treturn $conditions;\n\t}", "protected function parseAndConditions(array $conditions, bool $skipFirstAnd = true): string\n {\n // define string\n $sql = '';\n\n $i = 0;\n foreach ($conditions as $column => $value) {\n // append AND\n $sql .= ($i == 0 && $skipFirstAnd ? '' : ' AND ');\n\n if (is_array($value)) {\n // multiple conditions on a column\n $ii = 0;\n foreach ($value as $val) {\n // append AND\n $sql .= ($ii != 0 ? ' AND ' : '');\n\n // write condition\n $sql .= $column . $this->parseValue($val);\n\n // count up\n $ii++;\n }\n } else {\n // one condition on a column\n $sql .= $column . $this->parseValue($value);\n }\n\n $i++;\n }\n\n // return string\n return $sql;\n }", "function where_and($conditions = array())\n {\n return $this->object->_where($conditions, 'AND');\n }", "public function has_access($condition, Array $entity)\n\t{\n\t\t$group = \\Auth::group()->get_level();\n\t\t\n\t\t// parse conditions, area and rights in question\n\t\t$condition = static::_parse_conditions($condition);\n\t\t\n\t\tif ( ! is_array($condition) || empty($group))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t$area = $condition[0];\n\t\t$rights = (array) $condition[1];\n\n\t\tif (empty($rights))\n\t\t{\n\t\t\t$rights = array('read');\t\t// default to read\n\t\t}\n\t\t\n\t\t$area_rights = \\DB::select()->from($this->table_name)\n\t\t\t->where('app', '=', $area)\n\t\t\t->and_where('level', '=', $group)\n\t\t\t->execute();\n\n\t\t// var_dump('',$area_rights);\n\n\t\tif (count($area_rights) <= 0)\n\t\t{\n\t\t\treturn false;\t// given area and level has no defined rights\n\t\t}\n\t\t\n\t\t// check user's group has access right to the given area\n\t\tforeach ($rights as $r)\n\t\t{\n\t\t\tif ($area_rights->get($r) == 'N')\n\t\t\t{\n\t\t\t\treturn false;\t// one of the right does not exist, return false immediately\n\t\t\t}\n\t\t}\n\t\t\n\t\t// all the rights were found, return true\n\t\treturn true;\n\t}", "public function postConditions($data = array(), $op = null, $bool = 'AND', $exclusive = false) {\n\t\tunset($data['_Token']);\n\t\t$registered = ClassRegistry::keys();\n\t\t$bools = array('and', 'or', 'not', 'and not', 'or not', 'xor', '||', '&&');\n\t\t$cond = array();\n\n\t\tif ($op === null) {\n\t\t\t$op = '';\n\t\t}\n\n\t\t$arrayOp = is_array($op);\n\t\tforeach ($data as $model => $fields) {\n\t\t\tif (is_array($fields)) {\n\t\t\t\tforeach ($fields as $field => $value) {\n\t\t\t\t\tif (is_array($value) && in_array(strtolower($field), $registered)) {\n\t\t\t\t\t\t$cond += (array)self::postConditions(array($field=>$value), $op, $bool, $exclusive);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// check for boolean keys\n\t\t\t\t\t\tif (in_array(strtolower($model), $bools)) {\n\t\t\t\t\t\t\t$key = $field;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$key = $model.'.'.$field;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// check for habtm [Publication][Publication][0] = 1\n\t\t\t\t\t\tif ($model == $field) {\n\t\t\t\t\t\t\t// should get PK\n\t\t\t\t\t\t\t$key = $model.'.id';\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t$fieldOp = $op;\n\n\t\t\t\t\t\tif ($arrayOp) {\n\t\t\t\t\t\t\tif (array_key_exists($key, $op)) {\n\t\t\t\t\t\t\t\t$fieldOp = $op[$key];\n\t\t\t\t\t\t\t} elseif (array_key_exists($field, $op)) {\n\t\t\t\t\t\t\t\t$fieldOp = $op[$field];\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t$fieldOp = false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif ($exclusive && $fieldOp === false) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$fieldOp = strtoupper(trim($fieldOp));\n\t\t\t\t\t\tif (is_array($value) || is_numeric($value)) {\n\t\t\t\t\t\t\t$fieldOp = '=';\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif ($fieldOp === 'LIKE') {\n\t\t\t\t\t\t\t$key = $key.' LIKE';\n\t\t\t\t\t\t\t$value = '%'.$value.'%';\n\t\t\t\t\t\t} elseif ($fieldOp && $fieldOp != '=') {\n\t\t\t\t\t\t\t$key = $key.' '.$fieldOp;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif ($value !== '%%') {\n\t\t\t\t\t\t\t$cond[$key] = $value;\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\tif ($bool != null && strtoupper($bool) != 'AND') {\n\t\t\t$cond = array($bool => $cond);\n\t\t}\n\n\t\treturn $cond;\n\t}", "public function matchByCondition($condition)\n\t{\n\t\t// Input must be an array\n\t\tif(!is_array($condition))\n\t\t\treturn false;\n\t\t\t\n\t\t$valid = false;\n\t\t\n\t\t// Walk every condition\n\t\t$counter = 0;\n\t\tforeach($condition as $conditionAttr => $conditionNeedle)\n\t\t{\n\t\t\t++$counter;\n\t\t\t// Check the operator (there must be an operator between every condition)\n\t\t\tif(!($counter & 1))\n\t\t\t{\n\t\t\t\t// Implement the OR operator\n\t\t\t\tif((strtolower($conditionNeedle) === 'and' && $valid === false) || (strtolower($conditionNeedle) === 'or' && $valid === true))\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t$attrName = trim($conditionAttr);\n\t\t\t$attrLength = strlen($attrName);\n\t\t\t\n\t\t\t// Sub condition\n\t\t\tif(is_array($conditionNeedle))\n\t\t\t{\n\t\t\t\t$valid = $this->matchByCondition($conditionNeedle);\n\t\t\t}\n\t\t\t// Condition with the '>' comparison operator\n\t\t\telse if($attrName{($attrLength - 1)} == '>' && isset($this->{$attrNameFinal = rtrim(substr($attrName, 0, $attrLength - 1))}) && $this->$attrNameFinal > $conditionNeedle)\n\t\t\t{\n\t\t\t\t$valid = true;\n\t\t\t}\n\t\t\t// Condition with the '<' comparison operator\n\t\t\telse if($attrName{($attrLength - 1)} == '<' && isset($this->{$attrNameFinal = rtrim(substr($attrName, 0, $attrLength - 1))}) && $this->$attrNameFinal < $conditionNeedle)\n\t\t\t{\n\t\t\t\t$valid = true;\n\t\t\t}\n\t\t\t// Condition with the '>=' comparison operator \n\t\t\telse if($attrName{($attrLength - 2)} == '>' && $attrName{($attrLength - 1)} == '=' && isset($this->{$attrNameFinal = rtrim(substr($attrName, 0, $attrLength - 2))}) && $this->$attrNameFinal >= $conditionNeedle)\n\t\t\t{\n\t\t\t\t$valid = true;\n\t\t\t}\n\t\t\t// Condition with the '<=' comparison operator\n\t\t\telse if($attrName{($attrLength - 2)} == '<' && $attrName{($attrLength - 1)} == '=' && isset($this->{$attrNameFinal = rtrim(substr($attrName, 0, $attrLength - 2))}) && $this->$attrNameFinal <= $conditionNeedle)\n\t\t\t{\n\t\t\t\t$valid = true;\n\t\t\t}\n\t\t\t// Condition with the '=' comparison operator\n\t\t\telse if($attrName{($attrLength - 1)} == '=' && isset($this->{$attrNameFinal = rtrim(substr($attrName, 0, $attrLength - 1))}) && $this->$attrNameFinal == $conditionNeedle)\n\t\t\t{\n\t\t\t\t$valid = true;\n\t\t\t}\n\t\t\t// Condition with the '==' comparison operator\n\t\t\telse if($attrName{($attrLength - 2)} == '=' && $attrName{($attrLength - 1)} == '=' && isset($this->{$attrNameFinal = rtrim(substr($attrName, 0, $attrLength - 2))}) && $this->$attrNameFinal == $conditionNeedle)\n\t\t\t{\n\t\t\t\t$valid = true;\n\t\t\t}\n\t\t\t// Condition with the '!=' comparison operator\n\t\t\telse if($attrName{($attrLength - 2)} == '!' && $attrName{($attrLength - 1)} == '=' && isset($this->{$attrNameFinal = rtrim(substr($attrName, 0, $attrLength - 2))}) && $this->$attrNameFinal != $conditionNeedle)\n\t\t\t{\n\t\t\t\t$valid = true;\n\t\t\t}\n\t\t\t// Condition with the '===' comparison operator\n\t\t\telse if($attrName{($attrLength - 3)} == '=' && $attrName{($attrLength - 2)} == '=' && $attrName{($attrLength - 1)} == '=' && $this->{$attrNameFinal = rtrim(substr($attrName, 0, $attrLength - 3))} === $conditionNeedle)\n\t\t\t{\n\t\t\t\t$valid = true;\n\t\t\t}\n\t\t\t// Condition with the '!==' comparison operator\n\t\t\telse if($attrName{($attrLength - 3)} == '!' && $attrName{($attrLength - 2)} == '=' && $attrName{($attrLength - 1)} == '=' && $this->{$attrNameFinal = rtrim(substr($attrName, 0, $attrLength - 3))} !== $conditionNeedle)\n\t\t\t{\n\t\t\t\t$valid = true;\n\t\t\t}\n\t\t\t// Condition with the '!=' comparison operator\n\t\t\telse if($attrName{($attrLength - 2)} == '!' && $attrName{($attrLength - 1)} == '=' && isset($this->{$attrNameFinal = rtrim(substr($attrName, 0, $attrLength - 2))}) && $this->$attrNameFinal != $conditionNeedle)\n\t\t\t{\n\t\t\t\t$valid = true;\n\t\t\t}\n\t\t\t// Condition with the '%' comparison operator to check if the string contains another string\n\t\t\telse if($attrName{($attrLength - 1)} == '%' && isset($this->{$attrNameFinal = rtrim(substr($attrName, 0, $attrLength - 1))}) && ($conditionNeedle == '' || strpos(strtolower($this->$attrNameFinal), strtolower($conditionNeedle)) !== false))\n\t\t\t{\n\t\t\t\t$valid = true;\n\t\t\t}\n\t\t\t// Condition with the '!%' comparison operator to check if the string not contains another string\n\t\t\telse if($attrName{($attrLength - 2)} == '!' && $attrName{($attrLength - 1)} == '%' && isset($this->{$attrNameFinal = rtrim(substr($attrName, 0, $attrLength - 2))}) && ($conditionNeedle == '' || strpos(strtolower($this->$attrNameFinal), strtolower($conditionNeedle)) === false))\n\t\t\t{\n\t\t\t\t$valid = true;\n\t\t\t}\n\t\t\t// Check for an exact match\n\t\t\telse if(isset($this->$attrName) && $this->$attrName == $conditionNeedle)\n\t\t\t{\n\t\t\t\t$valid = true;\n\t\t\t}\n\t\t\t// Not matched :-(\n\t\t\telse\n\t\t\t{\n\t\t\t\t$valid = false;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $valid;\n\t}\n\t\n\t/**\n\t* Gets the data out of the data array file and cache it for later use. This function \n\t* can be accessed in public so that the raw data can be obtained.\n\t* \n\t* @return array Data\n\t*/\n public function getData()\n {\n $class = get_class($this);\n if(!isset(self::$_data[$class]))\n {\n $file = Yii::getPathOfAlias($this->fileName()).'.php';\n if(is_file($file))\n self::$_data[$class] = require($file);\n\n if(empty(self::$_data[$class]) || !is_array(self::$_data[$class]))\n self::$_data[$class] = array();\n }\n\n return self::$_data[$class];\n }\n\t\n\t/**\n\t* Saves the input data array to the data file (and creates a nice \n\t* looking data file with comments and tabs). The data saved by this function will also \n\t* be cached and will be used as the new data provider for the current ArrayModel.\n\t* \n\t* This function can also be used in public to save a whole bunch of data in one time.\n\t* \n\t* @param array $data\n\t* @return boolean true on success and false on failure\n\t*/\n\tpublic function setData($data)\n\t{\n\t\t$class = get_class($this);\n\t\t\n\t\t$content = \"<?php\\r\\n/**\\r\\n* Data file generated by \" . get_class($this) . \" (\" . get_parent_class($this) . \")\\r\\n* Date: \" . date(\"F j, Y, g:i a\") . \"\\r\\n*\\r\\n* Allowed data structure:\\r\\n* \" . str_replace(\"\\r\\n\", \"\\r\\n* \", $this->arrayExport($this->arrayStructure(), 0, ' ')) . \"\\r\\n*/\\r\\nreturn \" . $this->arrayExport($data) . \";\\r\\n\";\n\t\t\n\t\t// Write the content to the data file and put it in cache again\n\t\tif(file_put_contents(Yii::getPathOfAlias($this->fileName()).'.php', $content))\n\t\t{\n\t\t\tself::$_data[$class] = $data;\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t}\n\n\t/**\n\t* Returns if the current data row is new.\n\t* \n\t* @return boolean whether the data row is new and should be inserted when calling {@link save()}.\n\t* Defaults to false, but it will be set to true if the instance is created using the new operator.\n\t*/\n\tpublic function getIsNewRecord()\n\t{\n\t\treturn $this->_new;\n\t}\n\n\t/**\n\t* Sets if the data row is new.\n\t* \n\t* @param boolean $value whether the data row is new and should be inserted when calling {@link save()}.\n\t* @see getIsNewRecord\n\t*/\n\tpublic function setIsNewRecord($value)\n\t{\n\t\t$this->_new = $value;\n\t}\n\n\t/**\n\t* This event is raised before the data row is saved.\n\t* By setting {@link CModelEvent::isValid} to be false, the normal {@link save()} process will be stopped.\n\t* \n\t* @param CModelEvent $event the event parameter\n\t*/\n\tpublic function onBeforeSave($event)\n\t{\n\t\t$this->raiseEvent('onBeforeSave',$event);\n\t}\n\n\t/**\n\t* This event is raised after the data row is saved.\n\t* \n\t* @param CEvent $event the event parameter\n\t*/\n\tpublic function onAfterSave($event)\n\t{\n\t\t$this->raiseEvent('onAfterSave',$event);\n\t}\n\n\t/**\n\t* This event is raised before the data row is deleted.\n\t* By setting {@link CModelEvent::isValid} to be false, the normal {@link delete()} process will be stopped.\n\t* \n\t* @param CModelEvent $event the event parameter\n\t*/\n\tpublic function onBeforeDelete($event)\n\t{\n\t\t$this->raiseEvent('onBeforeDelete',$event);\n\t}\n\n\t/**\n\t* This event is raised after the data row is deleted.\n\t* \n\t* @param CEvent $event the event parameter\n\t*/\n\tpublic function onAfterDelete($event)\n\t{\n\t\t$this->raiseEvent('onAfterDelete',$event);\n\t}\n\n\t/**\n\t* This event is raised before an finder performs a find call.\n\t* \n\t* @param CModelEvent $event the event parameter\n\t* @see beforeFind\n\t*/\n\tpublic function onBeforeFind($event)\n\t{\n\t\t$this->raiseEvent('onBeforeFind',$event);\n\t}\n\n\t/**\n\t* This event is raised after the data row is instantiated by a find method.\n\t* \n\t* @param CEvent $event the event parameter\n\t*/\n\tpublic function onAfterFind($event)\n\t{\n\t\t$this->raiseEvent('onAfterFind',$event);\n\t}\n\n\t/**\n\t* This method is invoked before saving a data row (after validation, if any).\n\t* The default implementation raises the {@link onBeforeSave} event.\n\t* You may override this method to do any preparation work for data row saving.\n\t* Use {@link isNew} to determine whether the saving is\n\t* for inserting or updating record.\n\t* Make sure you call the parent implementation so that the event is raised properly.\n\t* \n\t* @return boolean whether the saving should be executed. Defaults to true.\n\t*/\n\tprotected function beforeSave()\n\t{\n\t\tif($this->hasEventHandler('onBeforeSave'))\n\t\t{\n\t\t\t$event = new CModelEvent($this);\n\t\t\t$this->onBeforeSave($event);\n\t\t\treturn $event->isValid;\n\t\t}\n\t\telse\n\t\t\treturn true;\n\t}\n\n\t/**\n\t* This method is invoked after saving a data row successfully.\n\t* The default implementation raises the {@link onAfterSave} event.\n\t* You may override this method to do postprocessing after data row saving.\n\t* Make sure you call the parent implementation so that the event is raised properly.\n\t*/\n\tprotected function afterSave()\n\t{\n\t\tif($this->hasEventHandler('onAfterSave'))\n\t\t\t$this->onAfterSave(new CEvent($this));\n\t}\n\n\t/**\n\t* This method is invoked before deleting a data row.\n\t* The default implementation raises the {@link onBeforeDelete} event.\n\t* You may override this method to do any preparation work for data row deletion.\n\t* Make sure you call the parent implementation so that the event is raised properly.\n\t* \n\t* @return boolean whether the record should be deleted. Defaults to true.\n\t*/\n\tprotected function beforeDelete()\n\t{\n\t\tif($this->hasEventHandler('onBeforeDelete'))\n\t\t{\n\t\t\t$event = new CModelEvent($this);\n\t\t\t$this->onBeforeDelete($event);\n\t\t\treturn $event->isValid;\n\t\t}\n\t\telse\n\t\t\treturn true;\n\t}\n\n\t/**\n\t* This method is invoked after deleting a data row.\n\t* The default implementation raises the {@link onAfterDelete} event.\n\t* You may override this method to do postprocessing after the data row is deleted.\n\t* Make sure you call the parent implementation so that the event is raised properly.\n\t*/\n\tprotected function afterDelete()\n\t{\n\t\tif($this->hasEventHandler('onAfterDelete'))\n\t\t\t$this->onAfterDelete(new CEvent($this));\n\t}\n\n\t/**\n\t* This method is invoked before a finder executes a find call.\n\t* The find calls include {@link find}, {@link findAll} and {@link findById}.\n\t* The default implementation raises the {@link onBeforeFind} event.\n\t* If you override this method, make sure you call the parent implementation\n\t* so that the event is raised properly.\n\t*/\n\tprotected function beforeFind()\n\t{\n\t\tif($this->hasEventHandler('onBeforeFind'))\n\t\t{\n\t\t\t$event = new CModelEvent($this);\n\t\t\t$this->onBeforeFind($event);\n\t\t}\n\t}\n\n\t/**\n\t* This method is invoked after each data row is instantiated by a find method.\n\t* The default implementation raises the {@link onAfterFind} event.\n\t* You may override this method to do postprocessing after each newly found record is instantiated.\n\t* Make sure you call the parent implementation so that the event is raised properly.\n\t*/\n\tprotected function afterFind()\n\t{\n\t\tif($this->hasEventHandler('onAfterFind'))\n\t\t\t$this->onAfterFind(new CEvent($this));\n\t}\n\t\n\t/**\n\t* Converts the raw input data into a ArrayModel by using the structure defined in {@link arrayStructure()}. \n\t* It will not add the identifier.\n\t* \n\t* @param array $data RawData\n\t* @return ArrayModel\n\t*/\n\tprivate function dataToModel($data)\n\t{\n\t\t$model = $this->instantiate();\n\t\t\n\t\tif(is_array($data))\n\t\t{\n\t\t\t$attributesData = $this->dataToAttributes($this->arrayStructure(), $data);\n\t\t\t\n\t\t\t// Walk the data and assign the values to the attributes in the model\n\t\t\tforeach($attributesData as $key => $value)\n\t\t\t{\n\t\t\t\t$model->$key = $value;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $model;\n\t}\n\t\n\t/**\n\t* Converts the given ArrayModel to raw data by using the structure defined in {@link arrayStructure()}.\n\t* \n\t* @param ArrayModel $model\n\t* @param array $attributes list of attributes that need to be converted. Defaults to null,\n\t* meaning all attributes will be converted.\n\t* @return array Raw data\n\t*/\n\tprivate function modelToData($model, $attributes = null)\n\t{\n\t\t$attributesData = array();\n\t\t\n\t\t// Specific attributes used?\n\t\tif(!is_array($attributes))\n\t\t{\n\t\t\t$attributes = $this->attributeNames();\n\t\t}\n\t\t\n\t\t// Walk the data and assign the values to the attributes in the model\n\t\tforeach($this->attributeNames() as $name)\n\t\t{\n\t\t\t$attributesData[$name] = $model->$name;\n\t\t}\n\t\t\n\t\t$data = $this->attributesToData($this->arrayStructure(), $attributesData);\n\t\t\n\t\treturn $data;\n\t}\n\t\n\t/**\n\t* Converts the attribute data to the raw data format\n\t* \n\t* @param array $structure\n\t* @param array $attributeData AttributeData\n\t* @return array RawData\n\t*/\n\tprivate function attributesToData($structure, $attributeData)\n\t{\n\t\t$data = array();\n\t\tif(!is_array($structure))\n\t\t{\n\t\t\treturn $data;\n\t\t}\n\t\t\n\t\t// Walk the complete structure\n\t\tforeach($structure as $key => $attribute)\n\t\t{\n\t\t\t// There is a deeper structure?\n\t\t\tif(is_array($attribute))\n\t\t\t{\n\t\t\t\t$data[$key] = $this->attributesToData($structure[$key], $attributeData);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// Use single data if the data is not an array while it must be (as defined in the structure)\n\t\t\t\tif(is_array($data))\n\t\t\t\t{\n\t\t\t\t\t$data[$key] = $attributeData[$attribute];\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$data[$key] = $attributeData;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $data;\n\t}\n\t\n\t/**\n\t* Converts the raw data to attribute data\n\t* \n\t* @param array $structure\n\t* @param array $data RawData\n\t* @return array AttributeData\n\t*/\n\tprivate function dataToAttributes($structure, $data)\n\t{\n\t\t$attributeData = array();\n\t\tif(!is_array($structure))\n\t\t{\n\t\t\treturn $attributeData;\n\t\t}\n\t\t\n\t\t// Walk the complete structure\n\t\tforeach($structure as $key => $attribute)\n\t\t{\n\t\t\t// There is a deeper structure?\n\t\t\tif(is_array($attribute))\n\t\t\t{\n\t\t\t\t$attributeData = array_merge($attributeData, $this->dataToAttributes($structure[$key], $data[$key]));\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// Use single data if the data is not an array while it must be (as defined in the structure)\n\t\t\t\tif(is_array($data))\n\t\t\t\t{\n\t\t\t\t if(isset($data[$key])) //added by Joe Blocher\n $attributeData[$attribute] = $data[$key];\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$attributeData[$attribute] = $data;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $attributeData;\n\t}\n\t\n\t/**\n\t* Gets all the attribute names out of a structure array\n\t* \n\t* @param array $structure\n\t* @return array\n\t*/\n\tprivate function getNames($structure)\n\t{\n\t\t$attributeList = array();\n\t\tforeach($structure as $attribute)\n\t\t{\n\t\t\tif(is_array($attribute))\n\t\t\t{\n\t\t\t\t$attributeList = array_merge($attributeList, $this->getNames($attribute));\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$attributeList[] = $attribute;\n\t\t\t}\n\t\t}\n\t\treturn $attributeList;\n\t}\n\t\n\t/**\n\t* Exports the input array to a nice and clean string output. This function is used \n\t* by the {@link setData()} function and will be used to create a nice output data file.\n\t* \n\t* @param array $array\n\t* @param integer $level\n\t* @param mixed $levelChar\n\t* @return string output of array export\n\t*/\n\tprivate function arrayExport($array = array(), $level = 0, $levelChar = \"\\t\")\n\t{\n\t\t$arrayFields = 0;\n\t\t\n\t\t$output = \"array(\\r\\n\";\n\t\tforeach($array as $key => $value)\n\t\t{\n\t\t\t// Skip empty values and array keys\n\t\t\tif(is_array($key) || $value === null)\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\t// Generate the value output\n\t\t\t$valueOutput = is_array($value) ? $this->arrayExport($value, $level + 1, $levelChar) : var_export($value, true);\n\t\t\t\n\t\t\t// Check if the value is an empty array\n\t\t\tif($level > 0 && $valueOutput === 'array()')\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\t++$arrayFields;\n\t\t\t\n\t\t\t$output .= str_repeat($levelChar, $level + 1) . var_export($key, true) . \" => \" . $valueOutput . \",\\r\\n\";\n\t\t}\n\t\t$output .= str_repeat($levelChar, $level) . \")\";\n\t\t\n\t\t// Reformat if an array is empty, just to make it neat\n\t\tif($arrayFields == 0)\n\t\t{\n\t\t\t$output = 'array()';\n\t\t}\n\t\t\t\n\t\treturn $output;\n\t}\n}", "public function toString(): string\n {\n $conditions = \\array_map(static function (ConditionInterface $condition): string {\n return $condition->toString();\n }, $this->conditions);\n\n return \\sprintf('( %s )', \\implode(' OR ', $conditions));\n }", "public function where($conditions){\n\t\t\t$string = self::WHERE;\n\t\t\t\n\t\t\tforeach($conditions as $val){\n\t\t\t\t$typeR = gettype($val['right']);\n\n\t\t\t\t$string .= ' ' . ((isset($val['link']) && !empty($val['link'])) ? $val['link'] . ' ' : '');\n\n\t\t\t\tif(isset($val['paranthesis']) && isset($val['paranthesis']['open']))\n\t\t\t\t\t$string .= '(';\n\t\t\t\t$string .= $val['left'] . ' ' . $val['operator'] . ' ' . ($typeR == \"string\" ? \"'\" . $val['right'] . \"'\" : $val['right']);\n\n\t\t\t\tif(isset($val['paranthesis']) && isset($val['paranthesis']['close']))\n\t\t\t\t\t$string .= ')';\n\t\t\t}\n\t\t\t$this->_query .= $string . ' ';\n\t\t\treturn $this->_returnObject ? $this : $string;\n\t\t}", "public function isAllowOtherConditions() {\n return $this->allow_other_conditions;\n }", "public function accessRules()\n\t{\n\t\treturn array(\n\t\t\t\n\t\t\tarray('allow', // allow all users to perform 'index' and 'view' actions\n\t\t\t\t'actions'=>array('marketSegmentFilter','marketSegmentFilter2','categoryFilter','officerFilter','decisionFilter','subCategoryFilter'),\n\t\t\t\t'users'=>array('@'),\n\t\t\t),\n\t\t\t\n\t\t\t/*array('allow', \n\t\t\t\t'users'=>array('@'),\n\t\t\t\t//'expression'=>'Yii::app()->user->permission',\n\t\t\t),*/\n\t\t\tarray('allow', \n\t\t\t\t'users'=>array('@'),\n\t\t\t\t'actions'=>array('approvalList','approval'),\n\t\t\t\t'expression'=>'Yii::app()->user->getPermission(\"licenceApplicationApproval\")',\n\t\t\t),\n\t\t\tarray('allow', \n\t\t\t\t'users'=>array('@'),\n\t\t\t\t'actions'=>array('editList','edit','editCommunication','editContent','editCourier','editInstallation','editImportation','editVsat'),\n\t\t\t\t'expression'=>'Yii::app()->user->getPermission(\"licenceApplicationEdit\")',\n\t\t\t),\n\t\t\tarray('allow', \n\t\t\t\t'users'=>array('@'),\n\t\t\t\t'actions'=>array('evaluationList','evaluation','businessPlan','checkResources'),\n\t\t\t\t'expression'=>'Yii::app()->user->getPermission(\"licenceApplicationEvaluation\")',\n\t\t\t),\n\t\t\tarray('allow', \n\t\t\t\t'users'=>array('@'),\n\t\t\t\t'actions'=>array('printList','print'),\n\t\t\t\t'expression'=>'Yii::app()->user->getPermission(\"licenceApplicationPrint\")',\n\t\t\t),\n\t\t\tarray('allow', \n\t\t\t\t'users'=>array('@'),\n\t\t\t\t'actions'=>array('prepareList','prepare'),\n\t\t\t\t'expression'=>'Yii::app()->user->getPermission(\"licenceApplicationPrepare\")',\n\t\t\t),\n\t\t\tarray('allow', \n\t\t\t\t'users'=>array('@'),\n\t\t\t\t'actions'=>array('issueList','issue'),\n\t\t\t\t'expression'=>'Yii::app()->user->getPermission(\"licenceApplicationIssue\")',\n\t\t\t),\n\t\t\tarray('allow', \n\t\t\t\t'users'=>array('@'),\n\t\t\t\t'actions'=>array('viewList','view'),\n\t\t\t\t'expression'=>'Yii::app()->user->getPermission(\"licenceApplicationView\")',\n\t\t\t),\n\t\t\tarray('allow', \n\t\t\t\t'users'=>array('@'),\n\t\t\t\t'actions'=>array('licenceList','licenceeList','licenceView','licenceeView'),\n\t\t\t\t'expression'=>'Yii::app()->user->getPermission(\"licenceView\")',\n\t\t\t),\n\t\t\tarray('allow', \n\t\t\t\t'users'=>array('@'),\n\t\t\t\t'actions'=>array('cancelView','cancelList'),\n\t\t\t\t'expression'=>'Yii::app()->user->getPermission(\"licenceCancel\")',\n\t\t\t),\n\t\t\tarray('allow', \n\t\t\t\t'users'=>array('@'),\n\t\t\t\t'actions'=>array('admin','renewList','renewView','annualFeeList','annualFeeView'),\n\t\t\t),\n\t\t\tarray('allow', \n\t\t\t\t'users'=>array('@'),\n\t\t\t\t'actions'=>array('new','newCommunication','newContent','newCourier','newInstallation','newImportation','newDistribution','editDistribution','newSelling','editSelling','newVsat','editVsat'),\n\t\t\t\t'expression'=>'Yii::app()->user->getPermission(\"licenceApplicationNew\")',\n\t\t\t),\n\t\t\tarray('deny', // deny all users\n\t\t\t\t'users'=>array('*'),\n\t\t\t),\n\t\t);\n\t}", "public function orOnWhere($joined, $variousA = null, $variousB = null, $variousC = null)\n {\n $this->whereToken(\n 'AND', func_get_args(), $this->joinTokens[$this->activeJoin]['on'],\n $this->whereWrapper()\n );\n\n return $this;\n }", "public function orWhere()\n {\n if ( func_num_args() == 2 )\n {\n list($field, $value) = func_get_args();\n $op = '=';\n }\n else\n {\n list($field, $op, $value) = func_get_args();\n }\n $this->appendWhere('OR', $field, $op, $value); \n return $this;\n }", "protected function merge_conditions() {\n $args = func_get_args();\n $conditions = array_shift($args);\n foreach ($args as $otherconditions) {\n foreach ($otherconditions as $pageid => $pageconditions) {\n if (array_key_exists($pageid, $conditions)) {\n $conditions[$pageid] = array_merge($conditions[$pageid], $pageconditions);\n } else {\n $conditions[$pageid] = $pageconditions;\n }\n }\n }\n return $conditions;\n }", "static function logicalAnd()\n {\n try {\n return call_user_func_array('PHPUnit_Framework_Assert::logicalAnd', func_get_args());\n } catch (\\Exception $e) {\n self::callSlack($e, debug_backtrace()[1]);\n }\n }", "public function addConditions(array $conditions);", "public function\r\n add_conditions_to_where_clause(\r\n $conditions\r\n );", "private function constructCondStringStatic(&$tablesUsed, $conds)\n {\n $groupStrings = array();\n $andGroupStrings = array();\n\n foreach ($conds as $group => $conditions) {\n foreach ($conditions as &$condition) {\n $column = $this->canonicalizeColumn($condition[COND_COLUMN], false, $tablesUsed);\n $before = $after = '';\n if ($condition[COND_OPERATOR] == 'LIKE') {\n $before = '%';\n $after = '%';\n } elseif ($condition[COND_OPERATOR] == 'STARTSWITH') {\n $condition[COND_OPERATOR] = 'LIKE';\n $after = '%';\n }\n\n $condition = $column . ' ' . $condition[COND_OPERATOR] . \" '\" .\n $before . $this->connObj->escapeString($condition[1]) . $after . \"'\";\n }\n\n if ($group === 0) {\n $groupStrings[$group] = implode(' AND ', $conditions);\n } elseif (is_string($group) && substr($group, 0, 3) === 'AND') {\n // 'AND1', 'AND2' are a special type of groups\n $andGroupStrings[$group] = '(' . implode(' AND ', $conditions) . ')';\n } else {\n $groupStrings[$group] = '(' . implode(' OR ', $conditions) . ')';\n }\n }\n\n if (!empty($andGroupStrings)) {\n $groupStrings[] = '(' . implode(' OR ', $andGroupStrings) . ')';\n }\n\n $groupStrings = array_merge($groupStrings, $this->constructJoinString($tablesUsed));\n\n return implode(' AND ', $groupStrings);\n }", "public function orWhere() {\r\n\t\t$args = func_get_args();\r\n\t\tif (count($this->_wheres)) {\r\n\t\t\t$criteria = call_user_func_array(array($this->_wheres[count($this->_wheres)- 1], 'orWhere'), $args);\r\n\t\t} else {\r\n\t\t\t$statement = array_shift($args);\r\n\t\t\t$criteria = new Dbi_Sql_Criteria($this, new Dbi_Sql_Expression($statement, $args));\r\n\t\t\t$this->_wheres[] = $criteria;\r\n\t\t}\r\n\t\treturn $criteria;\r\n\t}", "function tbsAccessCond($trig,$condOn,$cond)\n{\n\n\t$ab_Dusa = $_SESSION[\"AB_DUSA\"]; // Dimension and user Security and access\n\t\n\t$condList = explode(\",\",$cond);\n\t\n\twhile (strpos($trig,\"[=COND:\"))\n\t{\n\t\t$wcp = strpos($trig,\"[=COND:\");\n\t\t$wtb = substr($trig,$wcp+7);\n\t\t$wtb = substr($wtb,0,strpos($wtb,\"=]\"));\n\t\t\n\t\t$wCond = \"\";\n\t\t$occ = 0;\n\t\twhile ($occ < count($condList) && $condOn)\n\t\t{\t\n\t\t\tif ($ab_Dusa[$wtb][$condList[$occ]])\n\t\t\t{\n\t\t\t\t$wCond .= \" AND \" . $ab_Dusa[$wtb][$condList[$occ]] . \" \";\n\t\t\t}\n\t\t\n\t\t\t$occ += 1;\n\t\t}\n\t\n\t\t$trig = substr($trig,0,$wcp) . $wCond . substr($trig,$wcp+9+strlen($wtb));\n\n\t}\t\n\n\treturn $trig;\n\n}", "public function getConditions()\n {\n return $this->conditions;\n }", "public function getConditions()\n {\n return $this->conditions;\n }", "public function getConditions()\n {\n return $this->conditions;\n }", "public function getConditions()\n {\n return $this->conditions;\n }", "protected function _filters_to_conditions($request_data = null){\n \n $conditions = array();\n //user has to have an active account\n $conditions['User.active'] = 1;\n \n if(empty($request_data)){\n return $conditions;\n }\n \n if(!empty($request_data['motive_id'])){\n $conditions['Experience.motive_id'] = $request_data['motive_id'];\n }\n if(!empty($request_data['department_id'])){\n $conditions['User.department_id'] = $request_data['department_id'];\n }\n if(!empty($request_data['school_id'])){\n $conditions['User.school_id'] = $request_data['school_id'];\n }\n if(!empty($request_data['key_word'])){\n $conditions['Experience.description LIKE'] = '%'.$request_data['key_word'].'%';\n }\n //now\n if(!empty($request_data['date_min']) && !empty($request_data['date_max']) && ($request_data['date_min'] === $request_data['date_max'])){\n $conditions['AND'] = array('Experience.dateEnd >=' => $request_data['date_min'],\n 'Experience.dateStart <=' => $request_data['date_max']);\n }\n else{\n //futur\n if(!empty($request_data['date_min'])){\n $conditions['Experience.dateStart >='] = $request_data['date_min'];\n }\n //past\n if(!empty($request_data['date_max'])){\n $conditions['Experience.dateStart <='] = $request_data['date_max'];\n }\n }\n if(!empty($request_data['city_id'])){\n $conditions['Experience.city_id'] = $request_data['city_id'];\n }\n if(!empty($request_data['city_name'])){\n $conditions['City.name'] = $request_data['city_name'];\n }\n if(!empty($request_data['country_id'])){\n $conditions['City.country_id'] = $request_data['country_id'];\n }\n if(!empty($request_data['user_name'])){\n //extracts first and last names\n $names = explode(' ',$request_data['user_name']);\n if(count($names) > 1){\n $conditions['AND']['User.firstname LIKE'] = '%'.$names[0].'%';\n $conditions['AND']['User.lastname LIKE'] = '%'.$names[1].'%';\n }\n //if only last or first name was entered\n else{\n $conditions['OR'] = array('User.firstname LIKE' => '%'.$request_data['user_name'].'%',\n 'User.lastname LIKE' => '%'.$request_data['user_name'].'%');\n }\n }\n return $conditions;\n }", "public static function static_logicalOr($a = null, $b = null)\n {\n throw new NotImplementedException(__METHOD__);\n }", "public function isAnd();", "public function getConditions()\n\t{\n\t\treturn $this->conditions;\n\t}", "public function getConditions()\n\t{\n\t\treturn $this->conditions;\n\t}", "function _prepareConditions($conditions, $pExtendingModuleID = null)\n{\n $debug_prefix = debug_indent(\"Module-_prepareConditions() {$this->ModuleID}:\");\n print \"$debug_prefix\\n\";\n $parentRecordConditions = array();\n $whereConditions = array();\n $protectJoinAliases = array();\n $SQL = '';\n\n $use_parent = true;\n if(empty($parentModuleID)){\n if(empty($this->parentModuleID)){\n $use_parent = false;\n } else {\n $parentModuleID = $this->parentModuleID;\n }\n }\n\n if($use_parent){\n $parentModule =& GetModule($parentModuleID);\n $parentPK = end($parentModule->PKFields);\n }\n\n if(! empty($pExtendingModuleID )){\n print \"extending module conditions: $pExtendingModuleID, {$this->ModuleID}\\n\";\n $extendingModule = GetModule($pExtendingModuleID);\n if(!empty( $extendingModule->extendsModuleFilterField )){\n $conditions[$extendingModule->extendsModuleFilterField] = $extendingModule->extendsModuleFilterValue;\n print \"added extended condition:\\n\";\n print_r($conditions);\n }\n }\n\n if(count($conditions) > 0){\n foreach($conditions as $conditionField => $conditionValue){\n print \"$debug_prefix Condition $conditionField => $conditionValue\\n\";\n\n $conditionModuleField = $this->ModuleFields[$conditionField];\n if(empty($conditionModuleField)){\n die(\"field {$this->ModuleID}.$conditionModuleField is empty\\n\");\n }\n $qualConditionField = $conditionModuleField->getQualifiedName($this->ModuleID);\n $conditionJoins = $conditionModuleField->makeJoinDef($this->ModuleID);\n if(count($conditionJoins) > 0){\n foreach(array_keys($conditionJoins) as $conditionJoinAlias){\n $protectJoinAliases[] = $conditionJoinAlias;\n }\n }\n\n if($use_parent){\n if(preg_match('/\\[\\*([\\w]+)\\*\\]/', $conditionValue, $match[1])){\n if($match[1][1] == $parentPK){\n $whereConditions[$qualConditionField] = '/**RecordID**/';\n } else {\n print \"SM found match $match[1][0]\\n\";\n $parentRecordConditions[$qualConditionField] = $match[1][1];\n }\n } else {\n $whereConditions[$qualConditionField] = $conditionValue;\n }\n } else {\n $whereConditions[$qualConditionField] = $conditionValue;\n }\n }\n }\n\n if($use_parent){\n $needParentSubselect = false;\n if(count($parentRecordConditions) > 0){\n foreach($parentRecordConditions as $localConditionField => $parentConditionField){\n $parentModuleField = $parentModule->ModuleFields[$parentConditionField];\n if(empty($parentModuleField)){\n die(\"field {$this->parentModuleID}.$parentConditionField is empty\\n\");\n }\n if(strtolower(get_class($parentModuleField)) != 'tablefield'){\n $needParentSubselect = true;\n }\n }\n if($needParentSubselect){\n $parentJoins = array();\n $parentSelects = array();\n foreach($parentRecordConditions as $localConditionField => $parentConditionField){\n $parentModuleField = $parentModule->ModuleFields[$parentConditionField];\n $parentSelects[] = $parentModuleField->makeSelectDef('iparent');\n $parentJoins = array_merge($parentJoins, $parentModuleField->makeJoinDef('iparent'));\n }\n\n $subSQL = 'SELECT ';\n $subSQL .= implode(\",\\n\", $parentSelects);\n $subSQL .= \"\\nFROM `{$this->parentModuleID}` AS `iparent`\\n\";\n $parentJoins = SortJoins($parentJoins);\n $subSQL .= implode(\"\\n \", $parentJoins);\n $subSQL .= \"\\nWHERE `iparent`.$parentPK = '/**RecordID**/' \\n\";\n\n $SQL = \"\\n INNER JOIN ($subSQL) AS `parent` ON (\\n\";\n $parentConditionStrings = array();\n foreach($parentRecordConditions as $localConditionField => $parentConditionField){\n $parentConditionStrings[] = \"`parent`.$parentConditionField = $localConditionField\";\n }\n $SQL .= implode(\"\\n AND \", $parentConditionStrings);\n $SQL .= \")\\n\";\n } else {\n $SQL = \"\\n INNER JOIN `{$this->parentModuleID}` AS `parent` ON (\\n\";\n $parentConditionStrings = array();\n foreach($parentRecordConditions as $localConditionField => $parentConditionField){\n $parentModuleField = $parentModule->ModuleFields[$parentConditionField];\n $qualParentConditionField = $parentModuleField->getQualifiedName('parent');\n $parentConditionStrings[] = \"$localConditionField = $qualParentConditionField\";;\n }\n $SQL .= implode(\"\\n AND \", $parentConditionStrings);\n $SQL .= \")\\n\";\n\n $whereConditions[\"`parent`.$parentPK\"] = '/**RecordID**/';\n }\n\n }\n }\n\n debug_unindent();\n return array(\n 'parentJoinSQL' => $SQL,\n 'whereConditions' => $whereConditions,\n 'protectJoinAliases' => $protectJoinAliases\n );\n}", "public function orWhere()\r\n {\r\n $arguments = func_get_args();\r\n $columnName = array_shift($arguments);\r\n $column = $this->getColName($columnName);\r\n list($value, $comparison) = self::getValueAndComparisonFromArguments($arguments);\r\n $this->addCondition('or', $column, $comparison, $value);\r\n \r\n return $this;\r\n }", "public function orOn($joined = null, $operator = null, $outer = null)\n {\n $this->whereToken(\n 'AND', func_get_args(), $this->joinTokens[$this->activeJoin]['on'], $this->onWrapper()\n );\n\n return $this;\n }", "public function getConditionForCollection($collection)\n {\n $conditions = [];\n $aggregator = $this->getAggregator() == 'all' ? ' AND ' : ' OR ';\n $operator = $this->getValue() ? '' : 'NOT';\n\n foreach ($this->getConditions() as $condition) {\n if ($condition instanceof Combine) {\n $subCondition = $condition->getConditionForCollection($collection);\n } else {\n $subCondition = $this->conditionSqlBuilder->generateWhereClause($condition);\n }\n if ($subCondition) {\n $conditions[] = sprintf('%s %s', $operator, $subCondition);\n }\n }\n\n if ($conditions) {\n return new \\Zend_Db_Expr(sprintf('(%s)', join($aggregator, $conditions)));\n }\n\n return false;\n }", "public function get_additional_conditions()\n {\n $l_type = (int) $_GET[C__GET__ID];\n\n if ($l_type > 0)\n {\n return ' AND cat_rel.isys_catg_its_type_list__isys_its_type__id = ' . $this->convert_sql_id($l_type) . ' ';\n } // if\n\n return '';\n }", "protected function _compile_conditions(array $conditions)\n {\n $last_condition = NULL;\n\n $sql = '';\n foreach ($conditions as $group)\n {\n // Process groups of conditions\n foreach ($group as $logic => $condition)\n {\n if ($condition === '(')\n {\n if ( ! empty($sql) AND $last_condition !== '(')\n {\n // Include logic operator\n $sql .= ' '.$logic.' ';\n }\n\n $sql .= '(';\n }\n elseif ($condition === ')')\n {\n $sql .= ')';\n }\n else\n {\n if ( ! empty($sql) AND $last_condition !== '(')\n {\n // Add the logic operator\n $sql .= ' '.$logic.' ';\n }\n\n // Split the condition\n list($column, $op, $value) = $condition;\n // Support db::expr() as where clause\n if ($column instanceOf db_expression and $op === null and $value === null)\n {\n $sql .= (string) $column;\n }\n else\n {\n if ($value === NULL)\n {\n if ($op === '=')\n {\n // Convert \"val = NULL\" to \"val IS NULL\"\n $op = 'IS';\n }\n elseif ($op === '!=')\n {\n // Convert \"val != NULL\" to \"valu IS NOT NULL\"\n $op = 'IS NOT';\n }\n }\n\n // Database operators are always uppercase\n $op = strtoupper($op);\n if (($op === 'BETWEEN' OR $op === 'NOT BETWEEN') AND is_array($value))\n {\n // BETWEEN always has exactly two arguments\n list($min, $max) = $value;\n\n if (is_string($min) AND array_key_exists($min, $this->_parameters))\n {\n // Set the parameter as the minimum\n $min = $this->_parameters[$min];\n }\n\n if (is_string($max) AND array_key_exists($max, $this->_parameters))\n {\n // Set the parameter as the maximum\n $max = $this->_parameters[$max];\n }\n\n // Quote the min and max value\n $value = $this->quote($min).' AND '.$this->quote($max);\n }\n elseif ($op === 'FIND_IN_SET' || strstr($column, '->') )\n {\n }\n else\n {\n if (is_string($value) AND array_key_exists($value, $this->_parameters))\n {\n // Set the parameter as the value\n $value = $this->_parameters[$value];\n }\n\n // Quote the entire value normally\n $value = $this->quote($value);\n \n }\n\n //json字段查询\n if ( strstr($column, '->') ) \n {\n $value = is_string($value) ? $this->quote($value) : $value;\n list($column, $json_field) = explode('->', $column, 2);\n\n $column = $this->quote_field($column, false);\n $sql .= $column.'->\\'$.' . $json_field . '\\' '.$op.' '.$value;\n }\n else\n {\n // Append the statement to the query\n $column = $this->quote_field($column, false);\n if ($op === 'FIND_IN_SET') \n {\n $sql .= $op.\"( '{$value}', {$column} )\";\n }\n else \n {\n $sql .= $column.' '.$op.' '.$value;\n }\n }\n }\n }\n\n $last_condition = $condition;\n }\n }\n\n return $sql;\n }", "public function orWhere($data, $conditional = 'AND') {\n\n\t \t$fields = count($data);\n\t\t\t$i = 0;\n\n\t\t\tif(is_null($this->_where)) {\n\t\t\t\t$this->_where = ' WHERE ';\n\t\t\t} else {\n\t\t\t\t$this->_where .= \" $conditional \";\n\t\t\t}\n\n\t\t\tif($fields < 2) {\n\t\t\t\tthrow new Exception('Para utlizar o metodo orWhere é necessário pelo menos 2 clausulas');\n\t\t\t}\n\n\t\t\tforeach ($data as $key => $value) {\n\t\t\t\t$newKey = ':'.$key;\n\t\t\t\t$this->_params[$newKey] = $value;\n\t\t\t\tif($i == 0) {\n\t\t\t\t\t$this->_where .= '(' . $key . ' = ' . $newKey . ' OR ';\n\t\t\t\t} else if ( $i+1 == $fields) {\n\t\t\t\t\t$this->_where .= $key . ' = ' . $newKey . ')';\n\t\t\t\t} else {\n\t\t\t\t\t$this->_where .= $key . ' = ' . $newKey . ' OR ';\n\t\t\t\t}\n\t\t\t\t$i++;\n\t\t\t}\n\n\t\t\treturn $this;\n\t }", "public function accessRules() {\n // en este array colocar solo los action de consulta\n return array(\n array('allow',\n 'actions' => array(),\n 'pbac' => array('write', 'admin'),\n ),\n array('allow',\n 'actions' => array(),\n 'pbac' => array('read'),\n ),\n // este array siempre va asì para delimitar el acceso a todos los usuarios que no tienen permisologia de read o write sobre el modulo\n array('deny', // deny all users\n 'users' => array('*'),\n ),\n );\n }", "public static function buildAnd(array $criteria)\n {\n return new LogicalAnd($criteria);\n }", "public function buildExpression(array $queriedTables, ExpressionBuilder $expressionBuilder): CompositeExpression\n {\n $constraints = [];\n foreach ($this->restrictions as $name => $restriction) {\n $constraints[] = $restriction->buildExpression(\n $this->filterApplicableTableAliases($queriedTables, $name),\n $expressionBuilder\n );\n }\n return $expressionBuilder->andX(...$constraints);\n }", "public function testBuildWhereWithOr()\n {\n $query = $this->getQuery()\n ->table('table1')\n ->where('id', 100)\n ->whereOr(\n $this->getQuery()\n ->where('is_admin', 1)\n ->where('is_super_admin', 1)\n )\n ;\n\n $this->assertSame(\n \"WHERE table1.id = '100' AND (is_admin = '1' OR is_super_admin = '1')\",\n $query->buildWhere()\n );\n }", "public function or_on($c1, $op, $c2)\n {\n $joins = $this->_join;\n // 将内部指针指向数组中的最后一个元素\n end($joins);\n // 返回数组内部指针当前指向元素的键名\n $key = key($joins);\n\n $this->_on[$key][] = array($c1, $op, $c2, 'OR');\n return $this;\n }", "public function getCondition() {\n\n \t$condition = array();\n \t$this->getQueryString(\"keyword\", $condition);\n \t$this->getQueryString(\"activityId\", $condition);\n \t$this->getQueryString(\"activityIds\", $condition);\n \t$this->getQueryString(\"activityType\", $condition);\n $this->getQueryString(\"state\", $condition);\n $this->getQueryString(\"orderDateStart\", $condition);\n $this->getQueryString(\"orderDateEnd\", $condition);\n $this->getQueryString(\"deliveryDateStart\", $condition);\n $this->getQueryString(\"deliveryDateEnd\", $condition);\n $this->getQueryString(\"serial\", $condition);\n $this->getQueryString(\"consumerId\", $condition);\n $this->getQueryString(\"payDateTimeStart\", $condition);\n $this->getQueryString(\"payDateTimeEnd\", $condition);\n $this->getQueryString(\"productId\", $condition);\n $this->getQueryString(\"deliveryId\", $condition);\n $this->getQueryString(\"productArray\", $condition);\n \n \treturn $condition;\n }", "public function accessRules()\n {\n $acl = $this->acl;\n\n return [\n ['allow', // allow all users to perform 'index' and 'view' actions\n 'actions' => ['index', 'view'],\n 'users' => ['@'],\n ],\n ['allow', // allow authenticated user to perform 'create' and 'update' actions\n 'actions' => ['create', 'getLoadingAddressList'],\n 'expression' => function() use ($acl) {\n return $acl->canCreateOrder();\n },\n ],\n ['allow', // allow to perform 'accomplish' action\n 'actions' => ['update'],\n 'expression' => function() use ($acl) {\n return $acl->canUpdateOrder();\n },\n ],\n ['allow', // allow to perform 'accomplish' action\n 'actions' => ['withdraw'],\n 'expression' => function() use ($acl) {\n return $acl->canWithdrawOrder();\n },\n ],\n ['allow', // allow to perform 'accomplish' action\n 'actions' => ['restore'],\n 'expression' => function() use ($acl) {\n return $acl->canRestoreOrder();\n },\n ],\n ['allow', // allow to perform 'accomplish' action\n 'actions' => ['accomplish'],\n 'expression' => function() use ($acl) {\n return $acl->canAccomplishOrder();\n },\n ],\n ['allow', // allow to perform 'accomplish' action\n 'actions' => ['reopen'],\n 'expression' => function() use ($acl) {\n return $acl->canReopenOrder();\n },\n ],\n ['allow', // allow to perform 'loadCargo' action\n 'actions' => ['loadCargo'],\n 'expression' => function() use ($acl) {\n return $acl->canAccessLoadCargo();\n },\n ],\n ['allow', // allow to perform 'delete' action\n 'actions' => ['delete', 'softDelete'],\n 'expression' => function() use ($acl) {\n return $acl->canDeleteOrder();\n },\n ],\n ['allow', // allow admin user to perform 'admin' action\n 'actions' => ['admin'],\n 'expression' => function() use ($acl) {\n return $acl->getUser()->isAdmin();\n },\n ],\n ['deny', // deny all users\n 'users' => ['*'],\n ],\n ];\n }", "public function condition()\n {\n $op = $this->getDefaultOperator();\n $params = func_get_args();\n \n switch (count($params)) {\n case 1:\n if (is_string($params[0])) {\n $this->addCondition('literal', [$params[0]]);\n } elseif (is_array($params[0])) {\n $combination = $this->getDefaultOperator();\n \n /**\n * The code within the foreach is an extraction of Zend\\Db\\Sql\\Select::where()\n */\n foreach ($params[0] as $pkey => $pvalue) {\n if (is_string($pkey) && strpos($pkey, '?') !== false) {\n # ['id = ?' => 1]\n # ['id IN (?, ?, ?)' => [1, 3, 4]]\n $predicate = new ZfPredicate\\Expression($pkey, $pvalue);\n } elseif (is_string($pkey)) {\n if ($pvalue === null) {\n # ['name' => null] -> \"ISNULL(name)\"\n $predicate = new ZfPredicate\\IsNull($pkey, $pvalue);\n } elseif (is_array($pvalue)) {\n # ['id' => [1, 2, 3]] -> \"id IN (1, 2, 3)\"\n $predicate = new ZfPredicate\\In($pkey, $pvalue);\n } else {\n # ['id' => $id] -> \"id = 15\"\n $predicate = new ZfPredicate\\Operator($pkey, ZfPredicate\\Operator::OP_EQ, $pvalue);\n }\n } elseif ($pvalue instanceof ZfPredicate\\PredicateInterface) {\n $predicate = $pvalue;\n } else {\n # ['id = ?'] -> \"id = ''\"\n # ['id = 1'] -> literal.\n $predicate = (strpos($pvalue, Expression::PLACEHOLDER) !== false)\n ? new ZfPredicate\\Expression($pvalue) : new ZfPredicate\\Literal($pvalue);\n }\n $this->getCurrentPredicate()->addPredicate($predicate, $combination);\n }\n }\n break;\n \n case 2:\n # $rel->where('foo = ? AND id IN (?) AND bar = ?', [true, [1, 2, 3], false]);\n # If passing a non-array value:\n # $rel->where('foo = ?', 1);\n # But if an array is to be passed, must be inside another array\n # $rel->where('id IN (?)', [[1, 2, 3]]);\n if (!is_array($params[1])) {\n $params[1] = [$params[1]];\n }\n $this->expandPlaceholders($params[0], $params[1]);\n $this->addCondition('expression', [$params[0], $params[1]]);\n break;\n \n case 3:\n # $rel->where('id', '>', 2);\n $this->getCurrentPredicate()->addPredicate(\n new ZfPredicate\\Operator($params[0], $params[1], $params[2])\n );\n break;\n \n default:\n throw new Exception\\BadMethodCallException(\n sprintf(\n \"One to three arguments are expected, %s passed\",\n count($params)\n )\n );\n }\n \n return $this;\n }", "public function setConditions($var)\n\t{\n\t\tGPBUtil::checkMessage($var, \\Gobgpapi\\Conditions::class);\n\t\t$this->conditions = $var;\n\n\t\treturn $this;\n\t}", "protected abstract function getWhereClause(array $conditions);", "protected function hasConditions($element)\n {\n $conditionals = ArrayHelper::get($element, 'settings.conditional_logics');\n\n if (isset($conditionals['status']) && $conditionals['status']) {\n return array_filter($conditionals['conditions'], function ($item) {\n return $item['field'] && $item['operator'];\n });\n }\n }", "function custom_conds( $conds = array()) {\n\n\t}", "protected function setConditions() {\r\n if( count($this->sqlConditions) ) {\r\n $this->sql .= ' WHERE ' . $this->sqlStrConditions;\r\n }\r\n }", "public function processAndCombination($collection, $ruleConditions)\n {\n foreach ($ruleConditions as $condition) {\n $attribute = $condition['attribute'];\n $operator = $condition['conditions'];\n $value = $condition['cvalue'];\n\n //ignore condition if value is null or empty\n if ($value == '' || $value == null) {\n continue;\n }\n\n //ignore conditions for already used attribute\n if (in_array($attribute, $this->used)) {\n continue;\n }\n //set used to check later\n $this->used[] = $attribute;\n\n //product review\n if ($this->ruleType == self::REVIEW && isset($this->attributeMapForQuote[$attribute])) {\n $attribute = $this->attributeMapForOrder[$attribute];\n //abandoned cart\n } elseif ($this->ruleType == self::ABANDONED && isset($this->attributeMapForOrder[$attribute])) {\n $attribute = $this->attributeMapForQuote[$attribute];\n } else {\n $this->productAttribute[] = $condition;\n continue;\n }\n\n $collection = $this->processAndCombinationCondition($collection, $operator, $value, $attribute);\n }\n\n return $this->processProductAttributes($collection);\n }", "public function orWhere(...$args)\n {\n $this->addCondition('or', $args, $this->conditions);\n return $this;\n }", "protected function WhereClause($conditions = array(), $type = 0) {\n\n $conditionsStr = \"\";\n\n if (count($conditions)) {\n\n $counter = 0;\n\n foreach ($conditions as $condkey => $condvalue) {\n\n $notType = false;\n\n $condvalue['operatortype'] = isset($condvalue['operatortype']) ? $condvalue['operatortype'] : 'AND';\n\n $condvalue['operatortype'] = strtoupper($condvalue['operatortype']);\n\n if (!in_array($condvalue['operatortype'], array('AND', 'OR'))) {\n\n $condvalue['operatortype'] = \"AND\";\n }\n\n if (isset($condvalue['notoperator']) &&\n $condvalue['notoperator']) {\n\n $notType = true;\n }\n\n if ($counter == 0) {\n\n switch ($type) {\n case 1: {\n $condvalue['operatortype'] = \"ON\";\n break;\n }\n case 2: {\n $condvalue['operatortype'] = \"HAVING\";\n break;\n }\n default: {\n $condvalue['operatortype'] = \"WHERE\";\n }\n }\n }\n\n $conditionsStr .= \" \" . $condvalue['operatortype'];\n\n if ($notType) {\n\n $conditionsStr .= \" NOT\";\n }\n\n if (isset($condvalue['startbrackets'])) {\n\n $condvalue['startbrackets'] = preg_replace(\"/[^(\\(|\\))]/\", \"\", $condvalue['startbrackets']);\n\n $conditionsStr .= \" \" . $condvalue['startbrackets'];\n }\n\n $noCondition = true;\n\n if (!(isset($condvalue['column']) &&\n $condvalue['column']) &&\n isset($condvalue['subquery']) &&\n $condvalue['subquery'] instanceof \\FluitoPHP\\Database\\DBQueryHelper &&\n $condvalue['subquery']->\n IsSelect()) {\n\n $condvalue['column'] = '(' . rtrim($condvalue['subquery']->\n Generate(), ';') . ')';\n\n $noCondition = false;\n } else if (isset($condvalue['column'])) {\n\n $condvalue['column'] = \"{$condvalue['column']}\";\n\n $noCondition = false;\n }\n\n if (!(isset($condvalue['column']) &&\n $condvalue['column']) &&\n isset($condvalue['value']) &&\n $condvalue['value']) {\n\n $condvalue['value'] = $this->\n connection->\n GetConn()->\n real_escape_string($condvalue['value']);\n $condvalue['column'] = \"'{$condvalue['value']}'\";\n\n $noCondition = false;\n }\n\n if (!(isset($condvalue['rightcolumn']) &&\n $condvalue['rightcolumn']) &&\n isset($condvalue['rightsubquery']) &&\n $condvalue['rightsubquery'] instanceof \\FluitoPHP\\Database\\DBQueryHelper &&\n $condvalue['rightsubquery']->\n IsSelect()) {\n\n $condvalue['rightcolumn'] = '(' . rtrim($condvalue['rightsubquery']->\n Generate(), ';') . ')';\n\n $noCondition = false;\n } else if (isset($condvalue['rightcolumn'])) {\n\n $condvalue['rightcolumn'] = \"{$condvalue['rightcolumn']}\";\n\n $noCondition = false;\n }\n\n if (!(isset($condvalue['rightcolumn']) &&\n $condvalue['rightcolumn']) &&\n isset($condvalue['rightvalue']) &&\n $condvalue['rightvalue']) {\n\n $condvalue['rightvalue'] = $this->\n connection->\n GetConn()->\n real_escape_string($condvalue['rightvalue']);\n $condvalue['rightcolumn'] = \"'{$condvalue['rightvalue']}'\";\n\n $noCondition = false;\n }\n\n if (!$noCondition) {\n\n if (!isset($condvalue['operator']) ||\n !$condvalue['operator']) {\n\n $condvalue['operator'] = \"=\";\n }\n\n $conditionsStr .= \" {$condvalue['column']} {$condvalue['operator']} {$condvalue['rightcolumn']}\";\n }\n\n if (isset($condvalue['endbrackets'])) {\n\n $condvalue['endbrackets'] = preg_replace(\"/[^(\\(|\\))]/\", \"\", $condvalue['endbrackets']);\n\n $conditionsStr .= \" \" . $condvalue['endbrackets'];\n }\n\n $counter++;\n }\n }\n\n return $conditionsStr;\n }" ]
[ "0.66343427", "0.5844398", "0.5750732", "0.5552922", "0.5443589", "0.5408362", "0.53123116", "0.5230698", "0.520804", "0.5097882", "0.50930136", "0.5060989", "0.49871585", "0.49624908", "0.49483702", "0.4875082", "0.48714745", "0.48488906", "0.4842293", "0.4817427", "0.47709736", "0.4749151", "0.46949396", "0.46902308", "0.46887296", "0.46850652", "0.46785977", "0.46636865", "0.46576938", "0.4645658", "0.46378705", "0.463348", "0.46098745", "0.46056965", "0.4602557", "0.4597078", "0.45968962", "0.4589801", "0.45796552", "0.45793292", "0.4575901", "0.45678902", "0.454486", "0.4543266", "0.45331752", "0.45201015", "0.45100588", "0.45100588", "0.45100588", "0.4507739", "0.45024827", "0.45008382", "0.44871375", "0.44776875", "0.4470438", "0.44606128", "0.44427586", "0.44420618", "0.44358432", "0.44292307", "0.44213283", "0.4418999", "0.4407994", "0.43808648", "0.43796682", "0.43784422", "0.4368875", "0.43652418", "0.43601075", "0.43531448", "0.43531448", "0.43531448", "0.43531448", "0.43530706", "0.4348736", "0.43479788", "0.43452877", "0.43452877", "0.43309373", "0.43308586", "0.43242764", "0.43146798", "0.43079448", "0.43018773", "0.42960736", "0.42934462", "0.42866564", "0.42857334", "0.42729628", "0.42487273", "0.42450234", "0.42431888", "0.4242873", "0.42322415", "0.42238975", "0.4217794", "0.4213999", "0.42081645", "0.4205366", "0.4200536", "0.4197353" ]
0.0
-1
How the `conditions` list should be combined to determine if a request is granted this `AccessLevel`. If AND is used, each `Condition` in `conditions` must be satisfied for the `AccessLevel` to be applied. If OR is used, at least one `Condition` in `conditions` must be satisfied for the `AccessLevel` to be applied. Default behavior is AND. Generated from protobuf field .google.identity.accesscontextmanager.v1.BasicLevel.ConditionCombiningFunction combining_function = 2;
public function setCombiningFunction($var) { GPBUtil::checkEnum($var, \Google\Identity\AccessContextManager\V1\BasicLevel\ConditionCombiningFunction::class); $this->combining_function = $var; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setConditions($var)\n {\n $arr = GPBUtil::checkRepeatedField($var, \\Google\\Protobuf\\Internal\\GPBType::MESSAGE, \\Google\\Identity\\AccessContextManager\\V1\\Condition::class);\n $this->conditions = $arr;\n\n return $this;\n }", "protected function buildFilter($conditions)\n {\n if (\\Sledgehammer\\is_closure($conditions)) {\n return $conditions;\n }\n if (is_array($conditions)) {\n // Create filter that checks all conditions\n $logicalOperator = \\Sledgehammer\\extract_logical_operator($conditions);\n if ($logicalOperator === false) {\n if (count($conditions) > 1) {\n \\Sledgehammer\\notice('Conditions with multiple conditions require a logical operator.', \"Example: array('AND', 'x' => 1, 'y' => 5)\");\n }\n $logicalOperator = 'AND';\n } else {\n unset($conditions[0]);\n }\n $operators = [];\n foreach ($conditions as $path => $expectation) {\n if (preg_match('/^(.*) (' . \\Sledgehammer\\COMPARE_OPERATORS . ')$/', $path, $matches)) {\n unset($conditions[$path]);\n $conditions[$matches[1]] = $expectation;\n $operators[$matches[1]] = $matches[2];\n } else {\n $operators[$path] = false;\n }\n }\n // @todo Build an optimized closure for when a single conditions is given.\n if ($logicalOperator === 'AND') {\n return function ($item) use ($conditions, $operators) {\n foreach ($conditions as $path => $expectation) {\n $actual = PropertyPath::get($path, $item);\n $operator = $operators[$path];\n if ($operator) {\n if (\\Sledgehammer\\compare($actual, $operator, $expectation) === false) {\n return false;\n }\n } elseif (\\Sledgehammer\\equals($actual, $expectation) === false) {\n return false;\n }\n }\n\n return true; // All conditions are met.\n };\n } elseif ($logicalOperator === 'OR') {\n return function ($item) use ($conditions, $operators) {\n foreach ($conditions as $path => $expectation) {\n $actual = PropertyPath::get($path, $item);\n $operator = $operators[$path];\n if ($operator) {\n if (\\Sledgehammer\\compare($actual, $operator, $expectation) !== false) {\n return true;\n }\n } elseif (\\Sledgehammer\\equals($actual, $expectation) !== false) {\n return true;\n }\n }\n\n return false; // None of conditions are met.\n };\n } else {\n throw new Exception('Unsupported logical operator \"' . $logicalOperator . '\", expecting \"AND\" or \"OR\"');\n }\n }\n //'<= 5' or '10'\n // Compare the item directly with value given as $condition.\n if (is_string($conditions) && preg_match('/^(' . \\Sledgehammer\\COMPARE_OPERATORS . ') (.*)$/', $conditions, $matches)) {\n $operator = $matches[1];\n $expectation = $matches[2];\n } else {\n $expectation = $conditions;\n $operator = '==';\n }\n\n return function ($value) use ($expectation, $operator) {\n return \\Sledgehammer\\compare($value, $operator, $expectation);\n };\n }", "protected static function logicalOR(){\n\t\t$values = func_get_args();\n\t\tif(is_array($values[0])){\n\t\t\t$values = $values[0];\n\t\t}\n\t\treturn self::junction('OR', $values);\n\t}", "public function processOrCombination($collection, $conditions)\n {\n $fieldsConditions = [];\n $multiFieldsConditions = [];\n foreach ($conditions as $condition) {\n $attribute = $condition['attribute'];\n $cond = $condition['conditions'];\n $value = $condition['cvalue'];\n\n //ignore condition if value is null or empty\n if ($value == '' || $value == null) {\n continue;\n }\n\n if ($this->ruleType == self::REVIEW && isset($this->attributeMapForQuote[$attribute])) {\n $attribute = $this->attributeMapForOrder[$attribute];\n } elseif ($this->ruleType == self::ABANDONED && isset($this->attributeMapForOrder[$attribute])) {\n $attribute = $this->attributeMapForQuote[$attribute];\n } else {\n $this->productAttribute[] = $condition;\n continue;\n }\n\n if ($cond == 'null') {\n if ($value == '1') {\n if (isset($fieldsConditions[$attribute])) {\n $multiFieldsConditions[$attribute][]\n = ['notnull' => true];\n continue;\n }\n $fieldsConditions[$attribute] = ['notnull' => true];\n } elseif ($value == '0') {\n if (isset($fieldsConditions[$attribute])) {\n $multiFieldsConditions[$attribute][]\n = [$cond => true];\n continue;\n }\n $fieldsConditions[$attribute] = [$cond => true];\n }\n } else {\n if ($cond == 'like' || $cond == 'nlike') {\n $value = '%' . $value . '%';\n }\n if (isset($fieldsConditions[$attribute])) {\n $multiFieldsConditions[$attribute][]\n = [$this->conditionMap[$cond] => $value];\n continue;\n }\n $fieldsConditions[$attribute]\n = [$this->conditionMap[$cond] => $value];\n }\n }\n /**\n * All rule conditions are combined into an array to yield an OR when passed\n * to `addFieldToFilter`. The exception is any 'like' or 'nlike' conditions,\n * which must be added as separate filters in order to have the AND logic.\n */\n if (!empty($fieldsConditions)) {\n $column = $cond = [];\n foreach ($fieldsConditions as $key => $fieldsCondition) {\n $type = key($fieldsCondition);\n if ($type == 'like' || $type == 'nlike') {\n $collection->addFieldToFilter(\n (string) $key,\n $fieldsCondition\n );\n } else {\n $column[] = (string) $key;\n $cond[] = $fieldsCondition;\n }\n if (!empty($multiFieldsConditions[$key])) {\n foreach ($multiFieldsConditions[$key] as $multiFieldsCondition) {\n $type = key($multiFieldsCondition);\n if ($type == 'like' || $type == 'nlike') {\n $collection->addFieldToFilter(\n (string) $key,\n $multiFieldsCondition\n );\n } else {\n $column[] = (string) $key;\n $cond[] = $multiFieldsCondition;\n }\n }\n }\n }\n if (!empty($column) && !empty($cond)) {\n $collection->addFieldToFilter(\n $column,\n $cond\n );\n }\n }\n return $this->processProductAttributes($collection);\n }", "public function conditionalOrExpression(){\n try {\n // Sparql11query.g:382:3: ( conditionalAndExpression ( OR conditionalAndExpression )* ) \n // Sparql11query.g:383:3: conditionalAndExpression ( OR conditionalAndExpression )* \n {\n $this->pushFollow(self::$FOLLOW_conditionalAndExpression_in_conditionalOrExpression1301);\n $this->conditionalAndExpression();\n\n $this->state->_fsp--;\n\n // Sparql11query.g:383:28: ( OR conditionalAndExpression )* \n //loop48:\n do {\n $alt48=2;\n $LA48_0 = $this->input->LA(1);\n\n if ( ($LA48_0==$this->getToken('OR')) ) {\n $alt48=1;\n }\n\n\n switch ($alt48) {\n \tcase 1 :\n \t // Sparql11query.g:383:29: OR conditionalAndExpression \n \t {\n \t $this->match($this->input,$this->getToken('OR'),self::$FOLLOW_OR_in_conditionalOrExpression1304); \n \t $this->pushFollow(self::$FOLLOW_conditionalAndExpression_in_conditionalOrExpression1306);\n \t $this->conditionalAndExpression();\n\n \t $this->state->_fsp--;\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break 2;//loop48;\n }\n } while (true);\n\n\n }\n\n }\n catch (RecognitionException $re) {\n $this->reportError($re);\n $this->recover($this->input,$re);\n }\n catch(Exception $e) {\n throw $e;\n }\n \n return ;\n }", "public function andWhere($conditions);", "public function orWhereComplex()\n {\n return $this->addComplexCondition('or', $this->conditions);\n }", "protected static function logicalAND(){\n\t\t$values = func_get_args();\n\t\tif(is_array($values[0])){\n\t\t\t$values = $values[0];\n\t\t}\n\t\treturn self::junction('AND', $values);\n\t}", "public function getConditions()\n {\n if (array_key_exists(\"conditions\", $this->_propDict)) {\n if (is_a($this->_propDict[\"conditions\"], \"\\Microsoft\\Graph\\Model\\ConditionalAccessConditionSet\") || is_null($this->_propDict[\"conditions\"])) {\n return $this->_propDict[\"conditions\"];\n } else {\n $this->_propDict[\"conditions\"] = new ConditionalAccessConditionSet($this->_propDict[\"conditions\"]);\n return $this->_propDict[\"conditions\"];\n }\n }\n return null;\n }", "function get_condition()\r\n {\r\n $owner = $this->owner;\r\n\r\n $conds = array();\r\n $parent = $this->parent;\r\n $category = $parent->get_parameter(WeblcmsManager :: PARAM_CATEGORY);\r\n $category = $category ? $category : 0;\r\n $conds[] = new EqualityCondition(ContentObjectPublication :: PROPERTY_CATEGORY_ID, $category, ContentObjectPublication :: get_table_name());\r\n\r\n $type_cond = array();\r\n $types = array(Assessment :: get_type_name(), Survey :: get_type_name(), Hotpotatoes :: get_type_name());\r\n foreach ($types as $type)\r\n {\r\n $type_cond[] = new EqualityCondition(ContentObject :: PROPERTY_TYPE, $type);\r\n }\r\n $conds[] = new OrCondition($type_cond);\r\n $c = Utilities :: query_to_condition($this->query);\r\n if (! is_null($c))\r\n {\r\n $conds[] = $c;\r\n }\r\n return new AndCondition($conds);\r\n }", "public function combine($conditions, $operator = 'and', $namedCondition = null)\r\n {\r\n $addMethod = 'add'.ucfirst(strtolower(trim($operator)));\r\n if(!is_array($conditions))\r\n {\r\n $conditions = array($conditions);\r\n }\r\n \r\n $pattern = '(';\r\n $args = array();\r\n $isFirst = true;\r\n foreach($conditions as $condition)\r\n {\r\n if(!$isFirst)\r\n {\r\n $pattern .= ' ' . $operator . ' ';\r\n }\r\n $pattern .= $this->namedPatterns[$condition];\r\n $args = array_merge($args, $this->namedArgs[$condition]);\r\n unset($this->namedPatterns[$condition]);\r\n unset($this->namedArgs[$condition]);\r\n $isFirst = false;\r\n }\r\n $pattern .= ')';\r\n \r\n if($namedCondition)\r\n {\r\n $this->namedPatterns[$namedCondition] = $pattern;\r\n $this->namedArgs[$namedCondition] = $args;\r\n }\r\n else\r\n {\r\n $cond = $this->queryPattern ? 'and' : '';\r\n $this->queryPattern .= sprintf(' %s %s', $cond, $pattern);\r\n $this->queryArgs = array_merge($this->queryArgs, $args);\r\n }\r\n \r\n return $this;\r\n }", "protected function _getPermissionCondition($accessLevel, $userId)\n\t{\n\t\t$read = $this->_getReadAdapter();\n\t\t$permissionCondition = array();\n\t\t$permissionCondition[]= rm_quote_into($this->_versionTableAlias . '.user_id = ? ', $userId);\n\t\tif (is_array($accessLevel) && !empty($accessLevel)) {\n\t\t\t$permissionCondition[]= rm_quote_into($this->_versionTableAlias . '.access_level in (?)', $accessLevel);\n\t\t} else if ($accessLevel) {\n\t\t\t$permissionCondition[]= rm_quote_into($this->_versionTableAlias . '.access_level = ?', $accessLevel);\n\t\t} else {\n\t\t\t$permissionCondition[]= $this->_versionTableAlias . '.access_level = \"\"';\n\t\t}\n\t\treturn '(' . implode(' OR ', $permissionCondition) . ')';\n\t}", "public function buildConditions(array $conditions, bool $usePlaceholders = true): string\n {\n $this->usePlaceholders = $usePlaceholders;\n $c = [];\n $joiner = \"AND\";\n\n $i = 0;\n\n foreach ($conditions as $key => $condition) {\n if ($i === 0 && $key === 0) {\n // it's an AND/OR\n $joiner = strtoupper($condition);\n continue;\n } elseif (is_numeric($key)) {\n $c[] = $this->buildConditions($condition, $usePlaceholders);\n } else {\n $c[] = $this->buildCondition($key, $condition, $usePlaceholders);\n }\n\n $i++;\n }\n\n return \"(\" . implode(\" $joiner \", $c) . \")\";\n }", "protected function parseConditions(array $conditions): string\n {\n // define string\n $sql = '';\n\n if (isset($conditions['or'])) {\n $i = 0;\n foreach ($conditions['or'] as $column => $value) {\n // reset\n $appended = false;\n\n // append OR\n $sql .= ($i != 0 ? ' OR ' : '');\n\n if (is_string($column) && is_string($value)) {\n // normal OR condition\n $sql .= $column . $this->parseValue($value);\n } else if (is_int($column) && is_array($value)) {\n // injected AND condition\n $sql .= $this->parseAndConditions($value, true);\n } else if (is_string($column) && is_array($value)) {\n // multiple OR conditions on one column\n $ii = 0;\n foreach ($value as $val) {\n $sql .= ($ii != 0 ? ' OR ' : '') . $column . $this->parseValue($val);\n\n // append all AND conditions if any defined\n if (isset($conditions['and'])) {\n $sql .= $this->parseAndConditions($conditions['and'], false);\n $appended = true;\n }\n\n $ii++;\n }\n }\n\n // append all AND conditions if any defined\n if (isset($conditions['and']) && $appended === false) {\n $sql .= $this->parseAndConditions($conditions['and'], false);\n }\n\n $i++;\n }\n } else if (isset($conditions['and'])) {\n $sql .= $this->parseAndConditions($conditions['and']);\n } else {\n // no conditions defined: throw warning\n $this->log(new ConnectionException('No conditions found.'), Environment::E_LEVEL_WARNING);\n }\n\n // return string\n return $sql;\n }", "public function makeConditions($attributes, $values)\n {\n if (!$attributes) return '';\n $parts = preg_split('/(And|Or)/i', $attributes, NULL, PREG_SPLIT_DELIM_CAPTURE);\n $condition = '';\n\n $j = 0;\n foreach($parts as $part) {\n if ($part == 'And') {\n $condition .= ' AND ';\n } elseif ($part == 'Or') {\n $condition .= ' OR ';\n } else {\n $part = strtolower($part);\n if (($j < count($values)) && (!is_null($values[$j]))) {\n $bind = is_array($values[$j]) ? ' IN(?)' : '=?';\n } else {\n $bind = ' IS NULL';\n }\n $condition .= self::quote($part) . $bind;\n $j++;\n }\n }\n return $condition;\n }", "protected function _formatConditions($conditions = array(), $condition = 'OR') {\n\t\t\t$operators = array('>', '>=', '<', '<=', '=', '!=', 'LIKE');\n\n\t\t\tforeach ($conditions as $key => $value) {\n\t\t\t\t$condition = !empty($key) && (in_array($key, array('AND', 'OR'))) ? $key : $condition;\n\n\t\t\t\tif (\n\t\t\t\t\tis_array($value) &&\n\t\t\t\t\tcount($value) != count($value, COUNT_RECURSIVE)\n\t\t\t\t) {\n\t\t\t\t\t$conditions[$key] = implode(' ' . $condition . ' ', $this->_formatConditions($value, $condition)) ;\n\t\t\t\t} else {\n\t\t\t\t\tif (is_array($value)) {\n\t\t\t\t\t\tarray_walk($value, function(&$fieldValue, $fieldKey) use ($key, $operators) {\n\t\t\t\t\t\t\t$key = (strlen($fieldKey) > 1 && is_string($fieldKey) ? $fieldKey : $key);\n\t\t\t\t\t\t\t$fieldValue = (is_null($fieldValue) ? $key . ' IS NULL' : trim(in_array($operator = trim(substr($key, strpos($key, ' '))), $operators) ? $key : $key . ' =') . ' ' . $this->_prepareValue($fieldValue));\n\t\t\t\t\t\t});\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$value = array((is_null($value) ? $key . ' IS NULL' : trim(in_array($operator = trim(substr($key, strpos($key, ' '))), $operators) ? $key : $key . ' =') . ' ' . $this->_prepareValue($value)));\n\t\t\t\t\t}\n\n\t\t\t\t\t$conditions[$key] = implode(' ' . (strpos($key, '!=') !== false ? 'AND' : $condition) . ' ', $value);\n\t\t\t\t}\n\n\t\t\t\t$conditions[$key] = ($key === 'NOT' ? 'NOT' : null) . ($conditions[$key] ? '(' . $conditions[$key] . ')' : $conditions[$key]);\n\t\t\t}\n\n\t\t\t$response = $conditions;\n\t\t\treturn $response;\n\t\t}", "public static function orX(Condition ...$conditions): Condition\n {\n $self = new Condition();\n $count = count($conditions);\n foreach ($conditions as $index => $condition) {\n $self->condition($condition);\n if ($index < $count - 1) {\n $self->or();\n }\n }\n\n return $self;\n }", "static function logicalOr()\n {\n try {\n return call_user_func_array('PHPUnit_Framework_Assert::logicalOr', func_get_args());\n } catch (\\Exception $e) {\n self::callSlack($e, debug_backtrace()[1]);\n }\n }", "function criteria(array $criteria) {\n\t\tif ((list($left, $right) = each($criteria))) {\n\t\t\t$this->write(\"(\");\n\t\t\tif (is_array($right)) {\n\t\t\t\t$this->criteria($right);\n\t\t\t} else {\n\t\t\t\t$this->write(\"(\", $left, $this->param($right), \")\");\n\t\t\t}\n\t\t\twhile ((list($left, $right) = each($criteria))) {\n\t\t\t\t$this->write(is_int($left) && is_array($right) ? \"OR\" : \"AND\");\n\t\t\t\tif (is_array($right)) {\n\t\t\t\t\t$this->criteria($right);\n\t\t\t\t} else {\n\t\t\t\t\t$this->write(\"(\", $left, $this->param($right), \")\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t$this->write(\")\");\n\t\t}\n\t\treturn $this;\n\t}", "public function buildWhereClause()\n {\n $criterias = $this->bean->ownCriteria;\n if (empty($criterias)) {\n return '1';\n }// find all because there are no criterias\n $where = array();\n $this->filter_values = array();\n //$mask = \" %s %s %s\"; // login, field, op (with masked value)\n $n = 0;\n foreach ($criterias as $id=>$criteria) {\n if (! $criteria->op) {\n continue;\n } // skip all entries that say any!\n if ($criteria->value === null || $criteria->value === '') {\n continue;\n } // skip all empty\n $n++;\n $logic = 'AND ';//$criteria->logic;\n if ($n == 1) {\n $logic = '';\n }\n $where[] = $logic.$criteria->makeWherePart($this);\n }\n\n if (empty($where)) {\n return '1';\n }// find all because there was no active criteria\n\n $where = implode(' ', $where);\n return $where;\n }", "function combineSQLCriteria($arrElements, $and = true)\n{\n\t$ret=\"\";\n\t$union = $and ? \" AND \" : \" OR \";\n\tforeach($arrElements as $e)\n\t{\n\t\tif(strlen($e))\n\t\t{\n\t\t\tif(!strlen($ret))\n\t\t\t{\n\t\t\t\t$ret = \"(\".$e.\")\";\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$ret .= $union.\"(\".$e.\")\";\n\t\t\t}\n\t\t}\n\t}\n\treturn $ret;\n}", "public function whereComplex()\n {\n return $this->addComplexCondition('and', $this->conditions);\n }", "public function orConditions($data = array()) {\r\n $filter = $data['filter'];\r\n $condition = array(\r\n 'OR' => array(\r\n $this->alias . '.title LIKE' => '%' . $filter . '%',\r\n $this->alias . '.body LIKE' => '%' . $filter . '%',\r\n )\r\n );\r\n return $condition;\r\n }", "protected function allowedLogicalOperators(): array\n {\n return [\n FieldCriteria::AND,\n FieldCriteria::OR,\n ];\n }", "public function getCondition($conditions) {\n $where = array();\n foreach($conditions as $condition => $value) {\n if(is_numeric($condition)) {\n $where[] = $value;\n } else if(is_string($condition)) {\n $list = explode(' ', $condition);\n $field = $list[0];\n unset($list[0]);\n $operator = implode(' ',$list);\n if(empty($operator)) {\n $operator = '=';\n }\n if(is_null($value)) {\n $where[] = $field . ' ' . $operator . ' NULL';\n } else {\n if(is_numeric($value)) {\n $where[] = $field . ' ' . $operator . ' \\'' . $value . '\\'';\n } else if(is_string($value)) {\n $where[] = $field . ' ' . $operator . ' \\'' . $value . '\\'';\n } else if(is_array($value)) {\n $where[] = $field . ' ' . ' (\\'' . implode(\"','\",$value) . '\\')';\n }\n }\n }\n }\n if(!empty($where)) {\n return static::baseQuery() . ' WHERE ' . implode(' AND ',$where);\n } else {\n return static::baseQuery();\n }\n }", "private function addRightsClauseFilter() {\r\n\t\t\t// Add rights clause\r\n\t\t$this->addRightsFilter('rights', '');\r\n\r\n\t\t\t// Add status filter\r\n\t\tif( ! TodoyuAuth::isAdmin() ) {\r\n\t\t\t$statusIDs\t= TodoyuProjectProjectStatusManager::getStatusIDs();\r\n\t\t\tif( sizeof($statusIDs) > 0 ) {\r\n\t\t\t\t$statusList = implode(',', $statusIDs);\r\n\t\t\t\t$this->addRightsFilter('status', $statusList);\r\n\t\t\t} else {\r\n\t\t\t\t$this->addRightsFilter('Not', 0);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public function orWhereAcf(...$args)\n {\n $this->addAcfCondition('or', $args, $this->conditions);\n return $this;\n }", "public function &havingConditions();", "function addConditionalsToQuery($query, $filledFormFields) {\n\t// Testing if we have to fill the conditional of our SQL statement\n\tif(count($filledFormFields) > 0) {\n\t\t$query .= \" WHERE \";\n\n\n\t\t// Adding the conditionals to the query\n\t\t$i = 0;\n\t\tforeach($filledFormFields as $fieldKey => $fieldValue) {\n\t\t\t// Appending the new conditional\n\t\t\t$queryAppendage = $fieldKey . \" LIKE :\" . $fieldKey . \" \";\n\n\t\t\t$query .= $queryAppendage;\n\t\t\t\n\t\t\t// If there's more conditionals after this, append an \"AND\" as well.\n\t\t\tif($i < count($filledFormFields) - 1) \n\t\t\t\t$query .= \" AND \";\n\n\t\t\t$i++;\n\t\t}\n\t}\n\n\treturn $query;\n}", "public function conditions($conditions = null) {\n\t\tif (!$conditions) {\n\t\t\treturn $this->_config['conditions'] ?: $this->_entityConditions();\n\t\t}\n\t\t$this->_config['conditions'] = array_merge(\n\t\t\t(array) $this->_config['conditions'], (array) $conditions\n\t\t);\n\t\treturn $this;\n\t}", "protected function _conditions($conditions, $context, array $options = [])\n\t{\n\t\t$defaults = ['prepend' => false];\n//\t\t$ops = $this->_operators;\n\t\t$options += $defaults;\n\n\t\tswitch (true) {\n\t\t\tcase empty($conditions):\n\t\t\t\treturn '';\n\t\t\tcase is_string($conditions):\n\t\t\t\treturn $options['prepend'] ? $options['prepend'] . \" {$conditions}\" : $conditions;\n\t\t\tcase !is_array($conditions):\n\t\t\t\treturn '';\n\t\t}\n\t\t$result = [];\n\n\t\tforeach ($conditions as $key => $value) {\n\t\t\t$return = $this->_processConditions($key, $value, $context);\n\n\t\t\tif ($return) {\n\t\t\t\t$result[] = $return;\n\t\t\t}\n\t\t}\n\t\t$result = join(\" AND \", $result);\n\t\treturn ($options['prepend'] && $result) ? $options['prepend'] . \" {$result}\" : $result;\n\t}", "public function conditionalAndExpression(){\n try {\n // Sparql11query.g:389:3: ( valueLogical ( AND valueLogical )* ) \n // Sparql11query.g:390:3: valueLogical ( AND valueLogical )* \n {\n $this->pushFollow(self::$FOLLOW_valueLogical_in_conditionalAndExpression1326);\n $this->valueLogical();\n\n $this->state->_fsp--;\n\n // Sparql11query.g:390:16: ( AND valueLogical )* \n //loop49:\n do {\n $alt49=2;\n $LA49_0 = $this->input->LA(1);\n\n if ( ($LA49_0==$this->getToken('AND')) ) {\n $alt49=1;\n }\n\n\n switch ($alt49) {\n \tcase 1 :\n \t // Sparql11query.g:390:17: AND valueLogical \n \t {\n \t $this->match($this->input,$this->getToken('AND'),self::$FOLLOW_AND_in_conditionalAndExpression1329); \n \t $this->pushFollow(self::$FOLLOW_valueLogical_in_conditionalAndExpression1331);\n \t $this->valueLogical();\n\n \t $this->state->_fsp--;\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break 2;//loop49;\n }\n } while (true);\n\n\n }\n\n }\n catch (RecognitionException $re) {\n $this->reportError($re);\n $this->recover($this->input,$re);\n }\n catch(Exception $e) {\n throw $e;\n }\n \n return ;\n }", "function conditions( $conds = array())\n\t{\n\t\t// if condition is empty, return true\n\t\tif ( empty( $conds )) return true;\n\t}", "public static function buildOr(array $criteria)\n {\n return new LogicalOr($criteria);\n }", "protected function formConditions(&$builder, $filters = null)\n {\n if (empty($filters)) { $filters = $this->filters; }\n $param_count = 0;\n foreach ($filters as $filter){\n $param_id = \"p_$param_count\";\n\n $actual_field = $filter[self::FILTER_PARAM_FIELD];\n $actual_field_arr = explode('.', $filter[self::FILTER_PARAM_FIELD]);\n $count_parts = count($actual_field_arr);\n if ($count_parts > 2){\n $actual_field = $actual_field_arr[$count_parts - 2] . '.' . $actual_field_arr[$count_parts - 1];\n }\n\n if (is_array($filter[self::FILTER_PARAM_VALUE])){\n switch ($filter[self::FILTER_PARAM_COMPARATOR]){\n case self::CMP_NOT:\n $builder->notInWhere($actual_field, $filter[self::FILTER_PARAM_VALUE]);\n break;\n default:\n $builder->inWhere($actual_field, $filter[self::FILTER_PARAM_VALUE]);\n break;\n }\n } else {\n //build conditions\n $condition = null;\n switch ($filter[self::FILTER_PARAM_COMPARATOR]){\n case self::CMP_IS:\n $condition = \"{$actual_field} IS :$param_id:\";\n break;\n case self::CMP_IS_NOT:\n $condition = \"NOT {$actual_field} IS :$param_id:\";\n break;\n case self::CMP_LIKE:\n $condition = \"{$actual_field} LIKE :$param_id:\";\n break;\n default:\n $condition = \"{$actual_field} {$filter[self::FILTER_PARAM_COMPARATOR]} :$param_id:\";\n break;\n }\n\n //determine joining operators\n switch ($filter[self::FILTER_PARAM_CONDITION]){\n case self::COND_OR:\n $builder->orWhere($condition, [$param_id => $filter[self::FILTER_PARAM_VALUE]]);\n break;\n default:\n $builder->andWhere($condition, [$param_id => $filter[self::FILTER_PARAM_VALUE]]);\n break;\n }\n }\n $param_count++;\n }\n }", "public function or_where(array $conditions): self\n\t{\n\t\tif (isset($conditions) && !empty($conditions))\n\t\t{\n\t\t\t$this->create_where_field('$or');\n\t\t\t\n\t\t\tforeach ($conditions as $field => $value)\n\t\t\t{\n\t\t\t\tif (is_string($field) && $field != '')\n\t\t\t\t{\n\t\t\t\t\t$this->wheres['$or'][] = [$field => $value];\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$this->error('Each field name in list must not be an empty string', __METHOD__);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->error('One required non empty array argument should be passed to method', __METHOD__);\n\t\t}\n\n\t\treturn $this;\n\t}", "public function testBuildWhereWithOrComplex()\n {\n $query = $this->getQuery()\n ->table('table1')\n ->where('id', 100)\n ->whereOr(\n $this->getQuery()\n ->where('is_admin', 1)\n ->where(\n $this->getQuery()\n ->where('is_super_admin', 1)\n ->where('can_be_super_admin', 1)\n )\n )\n ;\n\n $this->assertSame(\n \"WHERE table1.id = '100' AND (is_admin = '1' OR (is_super_admin = '1' AND can_be_super_admin = '1'))\",\n $query->buildWhere()\n );\n }", "public static function andX(Condition ...$conditions): Condition\n {\n $self = new Condition();\n $count = count($conditions);\n foreach ($conditions as $index => $condition) {\n $self->condition($condition);\n if ($index < $count - 1) {\n $self->and();\n }\n }\n\n return $self;\n }", "public function getConditions()\n {\n if (array_key_exists(\"conditions\", $this->_propDict)) {\n if (is_a($this->_propDict[\"conditions\"], \"\\Beta\\Microsoft\\Graph\\Model\\AuthenticationConditions\") || is_null($this->_propDict[\"conditions\"])) {\n return $this->_propDict[\"conditions\"];\n } else {\n $this->_propDict[\"conditions\"] = new AuthenticationConditions($this->_propDict[\"conditions\"]);\n return $this->_propDict[\"conditions\"];\n }\n }\n return null;\n }", "public function orWhere()\n {\n list($field, $value) = $this->extractQueryToFieldAndValue(func_get_args());\n return $this->addOrWhereStack([$field => $value]);\n }", "public function setConditions($var)\n {\n $arr = GPBUtil::checkRepeatedField($var, \\Google\\Protobuf\\Internal\\GPBType::MESSAGE, \\Google\\Cloud\\Run\\V2\\Condition::class);\n $this->conditions = $arr;\n\n return $this;\n }", "public function orWhere(...$conditions)\n {\n $this->where(...$conditions);\n return $this;\n }", "final public static function or($field = '', $operator = '', $value = '', bool $valueIsFunction = false)\n {\n //add the condition\n if ($field == '' || $operator == '' || $value == '') {\n self::$query .= ' OR ';\n } else {\n if (!$valueIsFunction)\n self::$bindParams[] = [$field => $value];\n\n self::$query .= ' OR ' . $field . ' ' . $operator . ' ' . ($valueIsFunction ? $value : self::prepareBind([$field], true));\n }\n return (new static);\n }", "public function getConditionOperator();", "public function setConditions($var)\n {\n $arr = GPBUtil::checkRepeatedField($var, \\Google\\Protobuf\\Internal\\GPBType::STRING);\n $this->conditions = $arr;\n\n return $this;\n }", "public function getConditions();", "public function getConditions();", "public function getConditions();", "public function orWhere(Array $restraints){\r\n $subclause = $this->where->addClause(\"or\");\r\n foreach($restraints as $rest){\r\n $this->__where_restraint($rest, $subclause);\r\n }\r\n return $this;\r\n }", "protected function parseAndConditions(array $conditions, bool $skipFirstAnd = true): string\n {\n // define string\n $sql = '';\n\n $i = 0;\n foreach ($conditions as $column => $value) {\n // append AND\n $sql .= ($i == 0 && $skipFirstAnd ? '' : ' AND ');\n\n if (is_array($value)) {\n // multiple conditions on a column\n $ii = 0;\n foreach ($value as $val) {\n // append AND\n $sql .= ($ii != 0 ? ' AND ' : '');\n\n // write condition\n $sql .= $column . $this->parseValue($val);\n\n // count up\n $ii++;\n }\n } else {\n // one condition on a column\n $sql .= $column . $this->parseValue($value);\n }\n\n $i++;\n }\n\n // return string\n return $sql;\n }", "private function _getMultipleOptionFilterConditions($params, $field_name, $other_value, $table_name='Rental')\n\t{\n\t\t$safe_field_name = $this->_getSafeFieldName($field_name);\n\t\t$conditions = array();\n\t\t$possibleValues = json_decode($params[$safe_field_name]);\n\t\tif (count($possibleValues) === 0)\n\t\t\treturn null;\n\n\t\t$conditions['OR'] = array(array($table_name . '.' . $field_name => $possibleValues));\n\n\t\tif (in_array($other_value, $possibleValues))\n\t\t\tarray_push($conditions['OR'], array(\n\t\t\t\t$table_name . '.' . $field_name . ' >=' => $other_value\n\t\t\t));\n\n\t\treturn $conditions;\n\t}", "function where_and($conditions = array())\n {\n return $this->object->_where($conditions, 'AND');\n }", "public function has_access($condition, Array $entity)\n\t{\n\t\t$group = \\Auth::group()->get_level();\n\t\t\n\t\t// parse conditions, area and rights in question\n\t\t$condition = static::_parse_conditions($condition);\n\t\t\n\t\tif ( ! is_array($condition) || empty($group))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t$area = $condition[0];\n\t\t$rights = (array) $condition[1];\n\n\t\tif (empty($rights))\n\t\t{\n\t\t\t$rights = array('read');\t\t// default to read\n\t\t}\n\t\t\n\t\t$area_rights = \\DB::select()->from($this->table_name)\n\t\t\t->where('app', '=', $area)\n\t\t\t->and_where('level', '=', $group)\n\t\t\t->execute();\n\n\t\t// var_dump('',$area_rights);\n\n\t\tif (count($area_rights) <= 0)\n\t\t{\n\t\t\treturn false;\t// given area and level has no defined rights\n\t\t}\n\t\t\n\t\t// check user's group has access right to the given area\n\t\tforeach ($rights as $r)\n\t\t{\n\t\t\tif ($area_rights->get($r) == 'N')\n\t\t\t{\n\t\t\t\treturn false;\t// one of the right does not exist, return false immediately\n\t\t\t}\n\t\t}\n\t\t\n\t\t// all the rights were found, return true\n\t\treturn true;\n\t}", "public function postConditions($data = array(), $op = null, $bool = 'AND', $exclusive = false) {\n\t\tunset($data['_Token']);\n\t\t$registered = ClassRegistry::keys();\n\t\t$bools = array('and', 'or', 'not', 'and not', 'or not', 'xor', '||', '&&');\n\t\t$cond = array();\n\n\t\tif ($op === null) {\n\t\t\t$op = '';\n\t\t}\n\n\t\t$arrayOp = is_array($op);\n\t\tforeach ($data as $model => $fields) {\n\t\t\tif (is_array($fields)) {\n\t\t\t\tforeach ($fields as $field => $value) {\n\t\t\t\t\tif (is_array($value) && in_array(strtolower($field), $registered)) {\n\t\t\t\t\t\t$cond += (array)self::postConditions(array($field=>$value), $op, $bool, $exclusive);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// check for boolean keys\n\t\t\t\t\t\tif (in_array(strtolower($model), $bools)) {\n\t\t\t\t\t\t\t$key = $field;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$key = $model.'.'.$field;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// check for habtm [Publication][Publication][0] = 1\n\t\t\t\t\t\tif ($model == $field) {\n\t\t\t\t\t\t\t// should get PK\n\t\t\t\t\t\t\t$key = $model.'.id';\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t$fieldOp = $op;\n\n\t\t\t\t\t\tif ($arrayOp) {\n\t\t\t\t\t\t\tif (array_key_exists($key, $op)) {\n\t\t\t\t\t\t\t\t$fieldOp = $op[$key];\n\t\t\t\t\t\t\t} elseif (array_key_exists($field, $op)) {\n\t\t\t\t\t\t\t\t$fieldOp = $op[$field];\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t$fieldOp = false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif ($exclusive && $fieldOp === false) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$fieldOp = strtoupper(trim($fieldOp));\n\t\t\t\t\t\tif (is_array($value) || is_numeric($value)) {\n\t\t\t\t\t\t\t$fieldOp = '=';\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif ($fieldOp === 'LIKE') {\n\t\t\t\t\t\t\t$key = $key.' LIKE';\n\t\t\t\t\t\t\t$value = '%'.$value.'%';\n\t\t\t\t\t\t} elseif ($fieldOp && $fieldOp != '=') {\n\t\t\t\t\t\t\t$key = $key.' '.$fieldOp;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif ($value !== '%%') {\n\t\t\t\t\t\t\t$cond[$key] = $value;\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\tif ($bool != null && strtoupper($bool) != 'AND') {\n\t\t\t$cond = array($bool => $cond);\n\t\t}\n\n\t\treturn $cond;\n\t}", "public function matchByCondition($condition)\n\t{\n\t\t// Input must be an array\n\t\tif(!is_array($condition))\n\t\t\treturn false;\n\t\t\t\n\t\t$valid = false;\n\t\t\n\t\t// Walk every condition\n\t\t$counter = 0;\n\t\tforeach($condition as $conditionAttr => $conditionNeedle)\n\t\t{\n\t\t\t++$counter;\n\t\t\t// Check the operator (there must be an operator between every condition)\n\t\t\tif(!($counter & 1))\n\t\t\t{\n\t\t\t\t// Implement the OR operator\n\t\t\t\tif((strtolower($conditionNeedle) === 'and' && $valid === false) || (strtolower($conditionNeedle) === 'or' && $valid === true))\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t$attrName = trim($conditionAttr);\n\t\t\t$attrLength = strlen($attrName);\n\t\t\t\n\t\t\t// Sub condition\n\t\t\tif(is_array($conditionNeedle))\n\t\t\t{\n\t\t\t\t$valid = $this->matchByCondition($conditionNeedle);\n\t\t\t}\n\t\t\t// Condition with the '>' comparison operator\n\t\t\telse if($attrName{($attrLength - 1)} == '>' && isset($this->{$attrNameFinal = rtrim(substr($attrName, 0, $attrLength - 1))}) && $this->$attrNameFinal > $conditionNeedle)\n\t\t\t{\n\t\t\t\t$valid = true;\n\t\t\t}\n\t\t\t// Condition with the '<' comparison operator\n\t\t\telse if($attrName{($attrLength - 1)} == '<' && isset($this->{$attrNameFinal = rtrim(substr($attrName, 0, $attrLength - 1))}) && $this->$attrNameFinal < $conditionNeedle)\n\t\t\t{\n\t\t\t\t$valid = true;\n\t\t\t}\n\t\t\t// Condition with the '>=' comparison operator \n\t\t\telse if($attrName{($attrLength - 2)} == '>' && $attrName{($attrLength - 1)} == '=' && isset($this->{$attrNameFinal = rtrim(substr($attrName, 0, $attrLength - 2))}) && $this->$attrNameFinal >= $conditionNeedle)\n\t\t\t{\n\t\t\t\t$valid = true;\n\t\t\t}\n\t\t\t// Condition with the '<=' comparison operator\n\t\t\telse if($attrName{($attrLength - 2)} == '<' && $attrName{($attrLength - 1)} == '=' && isset($this->{$attrNameFinal = rtrim(substr($attrName, 0, $attrLength - 2))}) && $this->$attrNameFinal <= $conditionNeedle)\n\t\t\t{\n\t\t\t\t$valid = true;\n\t\t\t}\n\t\t\t// Condition with the '=' comparison operator\n\t\t\telse if($attrName{($attrLength - 1)} == '=' && isset($this->{$attrNameFinal = rtrim(substr($attrName, 0, $attrLength - 1))}) && $this->$attrNameFinal == $conditionNeedle)\n\t\t\t{\n\t\t\t\t$valid = true;\n\t\t\t}\n\t\t\t// Condition with the '==' comparison operator\n\t\t\telse if($attrName{($attrLength - 2)} == '=' && $attrName{($attrLength - 1)} == '=' && isset($this->{$attrNameFinal = rtrim(substr($attrName, 0, $attrLength - 2))}) && $this->$attrNameFinal == $conditionNeedle)\n\t\t\t{\n\t\t\t\t$valid = true;\n\t\t\t}\n\t\t\t// Condition with the '!=' comparison operator\n\t\t\telse if($attrName{($attrLength - 2)} == '!' && $attrName{($attrLength - 1)} == '=' && isset($this->{$attrNameFinal = rtrim(substr($attrName, 0, $attrLength - 2))}) && $this->$attrNameFinal != $conditionNeedle)\n\t\t\t{\n\t\t\t\t$valid = true;\n\t\t\t}\n\t\t\t// Condition with the '===' comparison operator\n\t\t\telse if($attrName{($attrLength - 3)} == '=' && $attrName{($attrLength - 2)} == '=' && $attrName{($attrLength - 1)} == '=' && $this->{$attrNameFinal = rtrim(substr($attrName, 0, $attrLength - 3))} === $conditionNeedle)\n\t\t\t{\n\t\t\t\t$valid = true;\n\t\t\t}\n\t\t\t// Condition with the '!==' comparison operator\n\t\t\telse if($attrName{($attrLength - 3)} == '!' && $attrName{($attrLength - 2)} == '=' && $attrName{($attrLength - 1)} == '=' && $this->{$attrNameFinal = rtrim(substr($attrName, 0, $attrLength - 3))} !== $conditionNeedle)\n\t\t\t{\n\t\t\t\t$valid = true;\n\t\t\t}\n\t\t\t// Condition with the '!=' comparison operator\n\t\t\telse if($attrName{($attrLength - 2)} == '!' && $attrName{($attrLength - 1)} == '=' && isset($this->{$attrNameFinal = rtrim(substr($attrName, 0, $attrLength - 2))}) && $this->$attrNameFinal != $conditionNeedle)\n\t\t\t{\n\t\t\t\t$valid = true;\n\t\t\t}\n\t\t\t// Condition with the '%' comparison operator to check if the string contains another string\n\t\t\telse if($attrName{($attrLength - 1)} == '%' && isset($this->{$attrNameFinal = rtrim(substr($attrName, 0, $attrLength - 1))}) && ($conditionNeedle == '' || strpos(strtolower($this->$attrNameFinal), strtolower($conditionNeedle)) !== false))\n\t\t\t{\n\t\t\t\t$valid = true;\n\t\t\t}\n\t\t\t// Condition with the '!%' comparison operator to check if the string not contains another string\n\t\t\telse if($attrName{($attrLength - 2)} == '!' && $attrName{($attrLength - 1)} == '%' && isset($this->{$attrNameFinal = rtrim(substr($attrName, 0, $attrLength - 2))}) && ($conditionNeedle == '' || strpos(strtolower($this->$attrNameFinal), strtolower($conditionNeedle)) === false))\n\t\t\t{\n\t\t\t\t$valid = true;\n\t\t\t}\n\t\t\t// Check for an exact match\n\t\t\telse if(isset($this->$attrName) && $this->$attrName == $conditionNeedle)\n\t\t\t{\n\t\t\t\t$valid = true;\n\t\t\t}\n\t\t\t// Not matched :-(\n\t\t\telse\n\t\t\t{\n\t\t\t\t$valid = false;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $valid;\n\t}\n\t\n\t/**\n\t* Gets the data out of the data array file and cache it for later use. This function \n\t* can be accessed in public so that the raw data can be obtained.\n\t* \n\t* @return array Data\n\t*/\n public function getData()\n {\n $class = get_class($this);\n if(!isset(self::$_data[$class]))\n {\n $file = Yii::getPathOfAlias($this->fileName()).'.php';\n if(is_file($file))\n self::$_data[$class] = require($file);\n\n if(empty(self::$_data[$class]) || !is_array(self::$_data[$class]))\n self::$_data[$class] = array();\n }\n\n return self::$_data[$class];\n }\n\t\n\t/**\n\t* Saves the input data array to the data file (and creates a nice \n\t* looking data file with comments and tabs). The data saved by this function will also \n\t* be cached and will be used as the new data provider for the current ArrayModel.\n\t* \n\t* This function can also be used in public to save a whole bunch of data in one time.\n\t* \n\t* @param array $data\n\t* @return boolean true on success and false on failure\n\t*/\n\tpublic function setData($data)\n\t{\n\t\t$class = get_class($this);\n\t\t\n\t\t$content = \"<?php\\r\\n/**\\r\\n* Data file generated by \" . get_class($this) . \" (\" . get_parent_class($this) . \")\\r\\n* Date: \" . date(\"F j, Y, g:i a\") . \"\\r\\n*\\r\\n* Allowed data structure:\\r\\n* \" . str_replace(\"\\r\\n\", \"\\r\\n* \", $this->arrayExport($this->arrayStructure(), 0, ' ')) . \"\\r\\n*/\\r\\nreturn \" . $this->arrayExport($data) . \";\\r\\n\";\n\t\t\n\t\t// Write the content to the data file and put it in cache again\n\t\tif(file_put_contents(Yii::getPathOfAlias($this->fileName()).'.php', $content))\n\t\t{\n\t\t\tself::$_data[$class] = $data;\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t}\n\n\t/**\n\t* Returns if the current data row is new.\n\t* \n\t* @return boolean whether the data row is new and should be inserted when calling {@link save()}.\n\t* Defaults to false, but it will be set to true if the instance is created using the new operator.\n\t*/\n\tpublic function getIsNewRecord()\n\t{\n\t\treturn $this->_new;\n\t}\n\n\t/**\n\t* Sets if the data row is new.\n\t* \n\t* @param boolean $value whether the data row is new and should be inserted when calling {@link save()}.\n\t* @see getIsNewRecord\n\t*/\n\tpublic function setIsNewRecord($value)\n\t{\n\t\t$this->_new = $value;\n\t}\n\n\t/**\n\t* This event is raised before the data row is saved.\n\t* By setting {@link CModelEvent::isValid} to be false, the normal {@link save()} process will be stopped.\n\t* \n\t* @param CModelEvent $event the event parameter\n\t*/\n\tpublic function onBeforeSave($event)\n\t{\n\t\t$this->raiseEvent('onBeforeSave',$event);\n\t}\n\n\t/**\n\t* This event is raised after the data row is saved.\n\t* \n\t* @param CEvent $event the event parameter\n\t*/\n\tpublic function onAfterSave($event)\n\t{\n\t\t$this->raiseEvent('onAfterSave',$event);\n\t}\n\n\t/**\n\t* This event is raised before the data row is deleted.\n\t* By setting {@link CModelEvent::isValid} to be false, the normal {@link delete()} process will be stopped.\n\t* \n\t* @param CModelEvent $event the event parameter\n\t*/\n\tpublic function onBeforeDelete($event)\n\t{\n\t\t$this->raiseEvent('onBeforeDelete',$event);\n\t}\n\n\t/**\n\t* This event is raised after the data row is deleted.\n\t* \n\t* @param CEvent $event the event parameter\n\t*/\n\tpublic function onAfterDelete($event)\n\t{\n\t\t$this->raiseEvent('onAfterDelete',$event);\n\t}\n\n\t/**\n\t* This event is raised before an finder performs a find call.\n\t* \n\t* @param CModelEvent $event the event parameter\n\t* @see beforeFind\n\t*/\n\tpublic function onBeforeFind($event)\n\t{\n\t\t$this->raiseEvent('onBeforeFind',$event);\n\t}\n\n\t/**\n\t* This event is raised after the data row is instantiated by a find method.\n\t* \n\t* @param CEvent $event the event parameter\n\t*/\n\tpublic function onAfterFind($event)\n\t{\n\t\t$this->raiseEvent('onAfterFind',$event);\n\t}\n\n\t/**\n\t* This method is invoked before saving a data row (after validation, if any).\n\t* The default implementation raises the {@link onBeforeSave} event.\n\t* You may override this method to do any preparation work for data row saving.\n\t* Use {@link isNew} to determine whether the saving is\n\t* for inserting or updating record.\n\t* Make sure you call the parent implementation so that the event is raised properly.\n\t* \n\t* @return boolean whether the saving should be executed. Defaults to true.\n\t*/\n\tprotected function beforeSave()\n\t{\n\t\tif($this->hasEventHandler('onBeforeSave'))\n\t\t{\n\t\t\t$event = new CModelEvent($this);\n\t\t\t$this->onBeforeSave($event);\n\t\t\treturn $event->isValid;\n\t\t}\n\t\telse\n\t\t\treturn true;\n\t}\n\n\t/**\n\t* This method is invoked after saving a data row successfully.\n\t* The default implementation raises the {@link onAfterSave} event.\n\t* You may override this method to do postprocessing after data row saving.\n\t* Make sure you call the parent implementation so that the event is raised properly.\n\t*/\n\tprotected function afterSave()\n\t{\n\t\tif($this->hasEventHandler('onAfterSave'))\n\t\t\t$this->onAfterSave(new CEvent($this));\n\t}\n\n\t/**\n\t* This method is invoked before deleting a data row.\n\t* The default implementation raises the {@link onBeforeDelete} event.\n\t* You may override this method to do any preparation work for data row deletion.\n\t* Make sure you call the parent implementation so that the event is raised properly.\n\t* \n\t* @return boolean whether the record should be deleted. Defaults to true.\n\t*/\n\tprotected function beforeDelete()\n\t{\n\t\tif($this->hasEventHandler('onBeforeDelete'))\n\t\t{\n\t\t\t$event = new CModelEvent($this);\n\t\t\t$this->onBeforeDelete($event);\n\t\t\treturn $event->isValid;\n\t\t}\n\t\telse\n\t\t\treturn true;\n\t}\n\n\t/**\n\t* This method is invoked after deleting a data row.\n\t* The default implementation raises the {@link onAfterDelete} event.\n\t* You may override this method to do postprocessing after the data row is deleted.\n\t* Make sure you call the parent implementation so that the event is raised properly.\n\t*/\n\tprotected function afterDelete()\n\t{\n\t\tif($this->hasEventHandler('onAfterDelete'))\n\t\t\t$this->onAfterDelete(new CEvent($this));\n\t}\n\n\t/**\n\t* This method is invoked before a finder executes a find call.\n\t* The find calls include {@link find}, {@link findAll} and {@link findById}.\n\t* The default implementation raises the {@link onBeforeFind} event.\n\t* If you override this method, make sure you call the parent implementation\n\t* so that the event is raised properly.\n\t*/\n\tprotected function beforeFind()\n\t{\n\t\tif($this->hasEventHandler('onBeforeFind'))\n\t\t{\n\t\t\t$event = new CModelEvent($this);\n\t\t\t$this->onBeforeFind($event);\n\t\t}\n\t}\n\n\t/**\n\t* This method is invoked after each data row is instantiated by a find method.\n\t* The default implementation raises the {@link onAfterFind} event.\n\t* You may override this method to do postprocessing after each newly found record is instantiated.\n\t* Make sure you call the parent implementation so that the event is raised properly.\n\t*/\n\tprotected function afterFind()\n\t{\n\t\tif($this->hasEventHandler('onAfterFind'))\n\t\t\t$this->onAfterFind(new CEvent($this));\n\t}\n\t\n\t/**\n\t* Converts the raw input data into a ArrayModel by using the structure defined in {@link arrayStructure()}. \n\t* It will not add the identifier.\n\t* \n\t* @param array $data RawData\n\t* @return ArrayModel\n\t*/\n\tprivate function dataToModel($data)\n\t{\n\t\t$model = $this->instantiate();\n\t\t\n\t\tif(is_array($data))\n\t\t{\n\t\t\t$attributesData = $this->dataToAttributes($this->arrayStructure(), $data);\n\t\t\t\n\t\t\t// Walk the data and assign the values to the attributes in the model\n\t\t\tforeach($attributesData as $key => $value)\n\t\t\t{\n\t\t\t\t$model->$key = $value;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $model;\n\t}\n\t\n\t/**\n\t* Converts the given ArrayModel to raw data by using the structure defined in {@link arrayStructure()}.\n\t* \n\t* @param ArrayModel $model\n\t* @param array $attributes list of attributes that need to be converted. Defaults to null,\n\t* meaning all attributes will be converted.\n\t* @return array Raw data\n\t*/\n\tprivate function modelToData($model, $attributes = null)\n\t{\n\t\t$attributesData = array();\n\t\t\n\t\t// Specific attributes used?\n\t\tif(!is_array($attributes))\n\t\t{\n\t\t\t$attributes = $this->attributeNames();\n\t\t}\n\t\t\n\t\t// Walk the data and assign the values to the attributes in the model\n\t\tforeach($this->attributeNames() as $name)\n\t\t{\n\t\t\t$attributesData[$name] = $model->$name;\n\t\t}\n\t\t\n\t\t$data = $this->attributesToData($this->arrayStructure(), $attributesData);\n\t\t\n\t\treturn $data;\n\t}\n\t\n\t/**\n\t* Converts the attribute data to the raw data format\n\t* \n\t* @param array $structure\n\t* @param array $attributeData AttributeData\n\t* @return array RawData\n\t*/\n\tprivate function attributesToData($structure, $attributeData)\n\t{\n\t\t$data = array();\n\t\tif(!is_array($structure))\n\t\t{\n\t\t\treturn $data;\n\t\t}\n\t\t\n\t\t// Walk the complete structure\n\t\tforeach($structure as $key => $attribute)\n\t\t{\n\t\t\t// There is a deeper structure?\n\t\t\tif(is_array($attribute))\n\t\t\t{\n\t\t\t\t$data[$key] = $this->attributesToData($structure[$key], $attributeData);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// Use single data if the data is not an array while it must be (as defined in the structure)\n\t\t\t\tif(is_array($data))\n\t\t\t\t{\n\t\t\t\t\t$data[$key] = $attributeData[$attribute];\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$data[$key] = $attributeData;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $data;\n\t}\n\t\n\t/**\n\t* Converts the raw data to attribute data\n\t* \n\t* @param array $structure\n\t* @param array $data RawData\n\t* @return array AttributeData\n\t*/\n\tprivate function dataToAttributes($structure, $data)\n\t{\n\t\t$attributeData = array();\n\t\tif(!is_array($structure))\n\t\t{\n\t\t\treturn $attributeData;\n\t\t}\n\t\t\n\t\t// Walk the complete structure\n\t\tforeach($structure as $key => $attribute)\n\t\t{\n\t\t\t// There is a deeper structure?\n\t\t\tif(is_array($attribute))\n\t\t\t{\n\t\t\t\t$attributeData = array_merge($attributeData, $this->dataToAttributes($structure[$key], $data[$key]));\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// Use single data if the data is not an array while it must be (as defined in the structure)\n\t\t\t\tif(is_array($data))\n\t\t\t\t{\n\t\t\t\t if(isset($data[$key])) //added by Joe Blocher\n $attributeData[$attribute] = $data[$key];\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$attributeData[$attribute] = $data;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $attributeData;\n\t}\n\t\n\t/**\n\t* Gets all the attribute names out of a structure array\n\t* \n\t* @param array $structure\n\t* @return array\n\t*/\n\tprivate function getNames($structure)\n\t{\n\t\t$attributeList = array();\n\t\tforeach($structure as $attribute)\n\t\t{\n\t\t\tif(is_array($attribute))\n\t\t\t{\n\t\t\t\t$attributeList = array_merge($attributeList, $this->getNames($attribute));\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$attributeList[] = $attribute;\n\t\t\t}\n\t\t}\n\t\treturn $attributeList;\n\t}\n\t\n\t/**\n\t* Exports the input array to a nice and clean string output. This function is used \n\t* by the {@link setData()} function and will be used to create a nice output data file.\n\t* \n\t* @param array $array\n\t* @param integer $level\n\t* @param mixed $levelChar\n\t* @return string output of array export\n\t*/\n\tprivate function arrayExport($array = array(), $level = 0, $levelChar = \"\\t\")\n\t{\n\t\t$arrayFields = 0;\n\t\t\n\t\t$output = \"array(\\r\\n\";\n\t\tforeach($array as $key => $value)\n\t\t{\n\t\t\t// Skip empty values and array keys\n\t\t\tif(is_array($key) || $value === null)\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\t// Generate the value output\n\t\t\t$valueOutput = is_array($value) ? $this->arrayExport($value, $level + 1, $levelChar) : var_export($value, true);\n\t\t\t\n\t\t\t// Check if the value is an empty array\n\t\t\tif($level > 0 && $valueOutput === 'array()')\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\t++$arrayFields;\n\t\t\t\n\t\t\t$output .= str_repeat($levelChar, $level + 1) . var_export($key, true) . \" => \" . $valueOutput . \",\\r\\n\";\n\t\t}\n\t\t$output .= str_repeat($levelChar, $level) . \")\";\n\t\t\n\t\t// Reformat if an array is empty, just to make it neat\n\t\tif($arrayFields == 0)\n\t\t{\n\t\t\t$output = 'array()';\n\t\t}\n\t\t\t\n\t\treturn $output;\n\t}\n}", "public function where($conditions){\n\t\t\t$string = self::WHERE;\n\t\t\t\n\t\t\tforeach($conditions as $val){\n\t\t\t\t$typeR = gettype($val['right']);\n\n\t\t\t\t$string .= ' ' . ((isset($val['link']) && !empty($val['link'])) ? $val['link'] . ' ' : '');\n\n\t\t\t\tif(isset($val['paranthesis']) && isset($val['paranthesis']['open']))\n\t\t\t\t\t$string .= '(';\n\t\t\t\t$string .= $val['left'] . ' ' . $val['operator'] . ' ' . ($typeR == \"string\" ? \"'\" . $val['right'] . \"'\" : $val['right']);\n\n\t\t\t\tif(isset($val['paranthesis']) && isset($val['paranthesis']['close']))\n\t\t\t\t\t$string .= ')';\n\t\t\t}\n\t\t\t$this->_query .= $string . ' ';\n\t\t\treturn $this->_returnObject ? $this : $string;\n\t\t}", "public function toString(): string\n {\n $conditions = \\array_map(static function (ConditionInterface $condition): string {\n return $condition->toString();\n }, $this->conditions);\n\n return \\sprintf('( %s )', \\implode(' OR ', $conditions));\n }", "public function isAllowOtherConditions() {\n return $this->allow_other_conditions;\n }", "public function accessRules()\n\t{\n\t\treturn array(\n\t\t\t\n\t\t\tarray('allow', // allow all users to perform 'index' and 'view' actions\n\t\t\t\t'actions'=>array('marketSegmentFilter','marketSegmentFilter2','categoryFilter','officerFilter','decisionFilter','subCategoryFilter'),\n\t\t\t\t'users'=>array('@'),\n\t\t\t),\n\t\t\t\n\t\t\t/*array('allow', \n\t\t\t\t'users'=>array('@'),\n\t\t\t\t//'expression'=>'Yii::app()->user->permission',\n\t\t\t),*/\n\t\t\tarray('allow', \n\t\t\t\t'users'=>array('@'),\n\t\t\t\t'actions'=>array('approvalList','approval'),\n\t\t\t\t'expression'=>'Yii::app()->user->getPermission(\"licenceApplicationApproval\")',\n\t\t\t),\n\t\t\tarray('allow', \n\t\t\t\t'users'=>array('@'),\n\t\t\t\t'actions'=>array('editList','edit','editCommunication','editContent','editCourier','editInstallation','editImportation','editVsat'),\n\t\t\t\t'expression'=>'Yii::app()->user->getPermission(\"licenceApplicationEdit\")',\n\t\t\t),\n\t\t\tarray('allow', \n\t\t\t\t'users'=>array('@'),\n\t\t\t\t'actions'=>array('evaluationList','evaluation','businessPlan','checkResources'),\n\t\t\t\t'expression'=>'Yii::app()->user->getPermission(\"licenceApplicationEvaluation\")',\n\t\t\t),\n\t\t\tarray('allow', \n\t\t\t\t'users'=>array('@'),\n\t\t\t\t'actions'=>array('printList','print'),\n\t\t\t\t'expression'=>'Yii::app()->user->getPermission(\"licenceApplicationPrint\")',\n\t\t\t),\n\t\t\tarray('allow', \n\t\t\t\t'users'=>array('@'),\n\t\t\t\t'actions'=>array('prepareList','prepare'),\n\t\t\t\t'expression'=>'Yii::app()->user->getPermission(\"licenceApplicationPrepare\")',\n\t\t\t),\n\t\t\tarray('allow', \n\t\t\t\t'users'=>array('@'),\n\t\t\t\t'actions'=>array('issueList','issue'),\n\t\t\t\t'expression'=>'Yii::app()->user->getPermission(\"licenceApplicationIssue\")',\n\t\t\t),\n\t\t\tarray('allow', \n\t\t\t\t'users'=>array('@'),\n\t\t\t\t'actions'=>array('viewList','view'),\n\t\t\t\t'expression'=>'Yii::app()->user->getPermission(\"licenceApplicationView\")',\n\t\t\t),\n\t\t\tarray('allow', \n\t\t\t\t'users'=>array('@'),\n\t\t\t\t'actions'=>array('licenceList','licenceeList','licenceView','licenceeView'),\n\t\t\t\t'expression'=>'Yii::app()->user->getPermission(\"licenceView\")',\n\t\t\t),\n\t\t\tarray('allow', \n\t\t\t\t'users'=>array('@'),\n\t\t\t\t'actions'=>array('cancelView','cancelList'),\n\t\t\t\t'expression'=>'Yii::app()->user->getPermission(\"licenceCancel\")',\n\t\t\t),\n\t\t\tarray('allow', \n\t\t\t\t'users'=>array('@'),\n\t\t\t\t'actions'=>array('admin','renewList','renewView','annualFeeList','annualFeeView'),\n\t\t\t),\n\t\t\tarray('allow', \n\t\t\t\t'users'=>array('@'),\n\t\t\t\t'actions'=>array('new','newCommunication','newContent','newCourier','newInstallation','newImportation','newDistribution','editDistribution','newSelling','editSelling','newVsat','editVsat'),\n\t\t\t\t'expression'=>'Yii::app()->user->getPermission(\"licenceApplicationNew\")',\n\t\t\t),\n\t\t\tarray('deny', // deny all users\n\t\t\t\t'users'=>array('*'),\n\t\t\t),\n\t\t);\n\t}", "public function orOnWhere($joined, $variousA = null, $variousB = null, $variousC = null)\n {\n $this->whereToken(\n 'AND', func_get_args(), $this->joinTokens[$this->activeJoin]['on'],\n $this->whereWrapper()\n );\n\n return $this;\n }", "public function orWhere()\n {\n if ( func_num_args() == 2 )\n {\n list($field, $value) = func_get_args();\n $op = '=';\n }\n else\n {\n list($field, $op, $value) = func_get_args();\n }\n $this->appendWhere('OR', $field, $op, $value); \n return $this;\n }", "protected function merge_conditions() {\n $args = func_get_args();\n $conditions = array_shift($args);\n foreach ($args as $otherconditions) {\n foreach ($otherconditions as $pageid => $pageconditions) {\n if (array_key_exists($pageid, $conditions)) {\n $conditions[$pageid] = array_merge($conditions[$pageid], $pageconditions);\n } else {\n $conditions[$pageid] = $pageconditions;\n }\n }\n }\n return $conditions;\n }", "public function addConditions(array $conditions);", "static function logicalAnd()\n {\n try {\n return call_user_func_array('PHPUnit_Framework_Assert::logicalAnd', func_get_args());\n } catch (\\Exception $e) {\n self::callSlack($e, debug_backtrace()[1]);\n }\n }", "public function\r\n add_conditions_to_where_clause(\r\n $conditions\r\n );", "private function constructCondStringStatic(&$tablesUsed, $conds)\n {\n $groupStrings = array();\n $andGroupStrings = array();\n\n foreach ($conds as $group => $conditions) {\n foreach ($conditions as &$condition) {\n $column = $this->canonicalizeColumn($condition[COND_COLUMN], false, $tablesUsed);\n $before = $after = '';\n if ($condition[COND_OPERATOR] == 'LIKE') {\n $before = '%';\n $after = '%';\n } elseif ($condition[COND_OPERATOR] == 'STARTSWITH') {\n $condition[COND_OPERATOR] = 'LIKE';\n $after = '%';\n }\n\n $condition = $column . ' ' . $condition[COND_OPERATOR] . \" '\" .\n $before . $this->connObj->escapeString($condition[1]) . $after . \"'\";\n }\n\n if ($group === 0) {\n $groupStrings[$group] = implode(' AND ', $conditions);\n } elseif (is_string($group) && substr($group, 0, 3) === 'AND') {\n // 'AND1', 'AND2' are a special type of groups\n $andGroupStrings[$group] = '(' . implode(' AND ', $conditions) . ')';\n } else {\n $groupStrings[$group] = '(' . implode(' OR ', $conditions) . ')';\n }\n }\n\n if (!empty($andGroupStrings)) {\n $groupStrings[] = '(' . implode(' OR ', $andGroupStrings) . ')';\n }\n\n $groupStrings = array_merge($groupStrings, $this->constructJoinString($tablesUsed));\n\n return implode(' AND ', $groupStrings);\n }", "public function orWhere() {\r\n\t\t$args = func_get_args();\r\n\t\tif (count($this->_wheres)) {\r\n\t\t\t$criteria = call_user_func_array(array($this->_wheres[count($this->_wheres)- 1], 'orWhere'), $args);\r\n\t\t} else {\r\n\t\t\t$statement = array_shift($args);\r\n\t\t\t$criteria = new Dbi_Sql_Criteria($this, new Dbi_Sql_Expression($statement, $args));\r\n\t\t\t$this->_wheres[] = $criteria;\r\n\t\t}\r\n\t\treturn $criteria;\r\n\t}", "function tbsAccessCond($trig,$condOn,$cond)\n{\n\n\t$ab_Dusa = $_SESSION[\"AB_DUSA\"]; // Dimension and user Security and access\n\t\n\t$condList = explode(\",\",$cond);\n\t\n\twhile (strpos($trig,\"[=COND:\"))\n\t{\n\t\t$wcp = strpos($trig,\"[=COND:\");\n\t\t$wtb = substr($trig,$wcp+7);\n\t\t$wtb = substr($wtb,0,strpos($wtb,\"=]\"));\n\t\t\n\t\t$wCond = \"\";\n\t\t$occ = 0;\n\t\twhile ($occ < count($condList) && $condOn)\n\t\t{\t\n\t\t\tif ($ab_Dusa[$wtb][$condList[$occ]])\n\t\t\t{\n\t\t\t\t$wCond .= \" AND \" . $ab_Dusa[$wtb][$condList[$occ]] . \" \";\n\t\t\t}\n\t\t\n\t\t\t$occ += 1;\n\t\t}\n\t\n\t\t$trig = substr($trig,0,$wcp) . $wCond . substr($trig,$wcp+9+strlen($wtb));\n\n\t}\t\n\n\treturn $trig;\n\n}", "public function getConditions()\n {\n return $this->conditions;\n }", "public function getConditions()\n {\n return $this->conditions;\n }", "public function getConditions()\n {\n return $this->conditions;\n }", "public function getConditions()\n {\n return $this->conditions;\n }", "protected function _filters_to_conditions($request_data = null){\n \n $conditions = array();\n //user has to have an active account\n $conditions['User.active'] = 1;\n \n if(empty($request_data)){\n return $conditions;\n }\n \n if(!empty($request_data['motive_id'])){\n $conditions['Experience.motive_id'] = $request_data['motive_id'];\n }\n if(!empty($request_data['department_id'])){\n $conditions['User.department_id'] = $request_data['department_id'];\n }\n if(!empty($request_data['school_id'])){\n $conditions['User.school_id'] = $request_data['school_id'];\n }\n if(!empty($request_data['key_word'])){\n $conditions['Experience.description LIKE'] = '%'.$request_data['key_word'].'%';\n }\n //now\n if(!empty($request_data['date_min']) && !empty($request_data['date_max']) && ($request_data['date_min'] === $request_data['date_max'])){\n $conditions['AND'] = array('Experience.dateEnd >=' => $request_data['date_min'],\n 'Experience.dateStart <=' => $request_data['date_max']);\n }\n else{\n //futur\n if(!empty($request_data['date_min'])){\n $conditions['Experience.dateStart >='] = $request_data['date_min'];\n }\n //past\n if(!empty($request_data['date_max'])){\n $conditions['Experience.dateStart <='] = $request_data['date_max'];\n }\n }\n if(!empty($request_data['city_id'])){\n $conditions['Experience.city_id'] = $request_data['city_id'];\n }\n if(!empty($request_data['city_name'])){\n $conditions['City.name'] = $request_data['city_name'];\n }\n if(!empty($request_data['country_id'])){\n $conditions['City.country_id'] = $request_data['country_id'];\n }\n if(!empty($request_data['user_name'])){\n //extracts first and last names\n $names = explode(' ',$request_data['user_name']);\n if(count($names) > 1){\n $conditions['AND']['User.firstname LIKE'] = '%'.$names[0].'%';\n $conditions['AND']['User.lastname LIKE'] = '%'.$names[1].'%';\n }\n //if only last or first name was entered\n else{\n $conditions['OR'] = array('User.firstname LIKE' => '%'.$request_data['user_name'].'%',\n 'User.lastname LIKE' => '%'.$request_data['user_name'].'%');\n }\n }\n return $conditions;\n }", "public function isAnd();", "public function getConditions()\n\t{\n\t\treturn $this->conditions;\n\t}", "public function getConditions()\n\t{\n\t\treturn $this->conditions;\n\t}", "public static function static_logicalOr($a = null, $b = null)\n {\n throw new NotImplementedException(__METHOD__);\n }", "function _prepareConditions($conditions, $pExtendingModuleID = null)\n{\n $debug_prefix = debug_indent(\"Module-_prepareConditions() {$this->ModuleID}:\");\n print \"$debug_prefix\\n\";\n $parentRecordConditions = array();\n $whereConditions = array();\n $protectJoinAliases = array();\n $SQL = '';\n\n $use_parent = true;\n if(empty($parentModuleID)){\n if(empty($this->parentModuleID)){\n $use_parent = false;\n } else {\n $parentModuleID = $this->parentModuleID;\n }\n }\n\n if($use_parent){\n $parentModule =& GetModule($parentModuleID);\n $parentPK = end($parentModule->PKFields);\n }\n\n if(! empty($pExtendingModuleID )){\n print \"extending module conditions: $pExtendingModuleID, {$this->ModuleID}\\n\";\n $extendingModule = GetModule($pExtendingModuleID);\n if(!empty( $extendingModule->extendsModuleFilterField )){\n $conditions[$extendingModule->extendsModuleFilterField] = $extendingModule->extendsModuleFilterValue;\n print \"added extended condition:\\n\";\n print_r($conditions);\n }\n }\n\n if(count($conditions) > 0){\n foreach($conditions as $conditionField => $conditionValue){\n print \"$debug_prefix Condition $conditionField => $conditionValue\\n\";\n\n $conditionModuleField = $this->ModuleFields[$conditionField];\n if(empty($conditionModuleField)){\n die(\"field {$this->ModuleID}.$conditionModuleField is empty\\n\");\n }\n $qualConditionField = $conditionModuleField->getQualifiedName($this->ModuleID);\n $conditionJoins = $conditionModuleField->makeJoinDef($this->ModuleID);\n if(count($conditionJoins) > 0){\n foreach(array_keys($conditionJoins) as $conditionJoinAlias){\n $protectJoinAliases[] = $conditionJoinAlias;\n }\n }\n\n if($use_parent){\n if(preg_match('/\\[\\*([\\w]+)\\*\\]/', $conditionValue, $match[1])){\n if($match[1][1] == $parentPK){\n $whereConditions[$qualConditionField] = '/**RecordID**/';\n } else {\n print \"SM found match $match[1][0]\\n\";\n $parentRecordConditions[$qualConditionField] = $match[1][1];\n }\n } else {\n $whereConditions[$qualConditionField] = $conditionValue;\n }\n } else {\n $whereConditions[$qualConditionField] = $conditionValue;\n }\n }\n }\n\n if($use_parent){\n $needParentSubselect = false;\n if(count($parentRecordConditions) > 0){\n foreach($parentRecordConditions as $localConditionField => $parentConditionField){\n $parentModuleField = $parentModule->ModuleFields[$parentConditionField];\n if(empty($parentModuleField)){\n die(\"field {$this->parentModuleID}.$parentConditionField is empty\\n\");\n }\n if(strtolower(get_class($parentModuleField)) != 'tablefield'){\n $needParentSubselect = true;\n }\n }\n if($needParentSubselect){\n $parentJoins = array();\n $parentSelects = array();\n foreach($parentRecordConditions as $localConditionField => $parentConditionField){\n $parentModuleField = $parentModule->ModuleFields[$parentConditionField];\n $parentSelects[] = $parentModuleField->makeSelectDef('iparent');\n $parentJoins = array_merge($parentJoins, $parentModuleField->makeJoinDef('iparent'));\n }\n\n $subSQL = 'SELECT ';\n $subSQL .= implode(\",\\n\", $parentSelects);\n $subSQL .= \"\\nFROM `{$this->parentModuleID}` AS `iparent`\\n\";\n $parentJoins = SortJoins($parentJoins);\n $subSQL .= implode(\"\\n \", $parentJoins);\n $subSQL .= \"\\nWHERE `iparent`.$parentPK = '/**RecordID**/' \\n\";\n\n $SQL = \"\\n INNER JOIN ($subSQL) AS `parent` ON (\\n\";\n $parentConditionStrings = array();\n foreach($parentRecordConditions as $localConditionField => $parentConditionField){\n $parentConditionStrings[] = \"`parent`.$parentConditionField = $localConditionField\";\n }\n $SQL .= implode(\"\\n AND \", $parentConditionStrings);\n $SQL .= \")\\n\";\n } else {\n $SQL = \"\\n INNER JOIN `{$this->parentModuleID}` AS `parent` ON (\\n\";\n $parentConditionStrings = array();\n foreach($parentRecordConditions as $localConditionField => $parentConditionField){\n $parentModuleField = $parentModule->ModuleFields[$parentConditionField];\n $qualParentConditionField = $parentModuleField->getQualifiedName('parent');\n $parentConditionStrings[] = \"$localConditionField = $qualParentConditionField\";;\n }\n $SQL .= implode(\"\\n AND \", $parentConditionStrings);\n $SQL .= \")\\n\";\n\n $whereConditions[\"`parent`.$parentPK\"] = '/**RecordID**/';\n }\n\n }\n }\n\n debug_unindent();\n return array(\n 'parentJoinSQL' => $SQL,\n 'whereConditions' => $whereConditions,\n 'protectJoinAliases' => $protectJoinAliases\n );\n}", "public function orWhere()\r\n {\r\n $arguments = func_get_args();\r\n $columnName = array_shift($arguments);\r\n $column = $this->getColName($columnName);\r\n list($value, $comparison) = self::getValueAndComparisonFromArguments($arguments);\r\n $this->addCondition('or', $column, $comparison, $value);\r\n \r\n return $this;\r\n }", "public function orOn($joined = null, $operator = null, $outer = null)\n {\n $this->whereToken(\n 'AND', func_get_args(), $this->joinTokens[$this->activeJoin]['on'], $this->onWrapper()\n );\n\n return $this;\n }", "public function getConditionForCollection($collection)\n {\n $conditions = [];\n $aggregator = $this->getAggregator() == 'all' ? ' AND ' : ' OR ';\n $operator = $this->getValue() ? '' : 'NOT';\n\n foreach ($this->getConditions() as $condition) {\n if ($condition instanceof Combine) {\n $subCondition = $condition->getConditionForCollection($collection);\n } else {\n $subCondition = $this->conditionSqlBuilder->generateWhereClause($condition);\n }\n if ($subCondition) {\n $conditions[] = sprintf('%s %s', $operator, $subCondition);\n }\n }\n\n if ($conditions) {\n return new \\Zend_Db_Expr(sprintf('(%s)', join($aggregator, $conditions)));\n }\n\n return false;\n }", "public function get_additional_conditions()\n {\n $l_type = (int) $_GET[C__GET__ID];\n\n if ($l_type > 0)\n {\n return ' AND cat_rel.isys_catg_its_type_list__isys_its_type__id = ' . $this->convert_sql_id($l_type) . ' ';\n } // if\n\n return '';\n }", "protected function _compile_conditions(array $conditions)\n {\n $last_condition = NULL;\n\n $sql = '';\n foreach ($conditions as $group)\n {\n // Process groups of conditions\n foreach ($group as $logic => $condition)\n {\n if ($condition === '(')\n {\n if ( ! empty($sql) AND $last_condition !== '(')\n {\n // Include logic operator\n $sql .= ' '.$logic.' ';\n }\n\n $sql .= '(';\n }\n elseif ($condition === ')')\n {\n $sql .= ')';\n }\n else\n {\n if ( ! empty($sql) AND $last_condition !== '(')\n {\n // Add the logic operator\n $sql .= ' '.$logic.' ';\n }\n\n // Split the condition\n list($column, $op, $value) = $condition;\n // Support db::expr() as where clause\n if ($column instanceOf db_expression and $op === null and $value === null)\n {\n $sql .= (string) $column;\n }\n else\n {\n if ($value === NULL)\n {\n if ($op === '=')\n {\n // Convert \"val = NULL\" to \"val IS NULL\"\n $op = 'IS';\n }\n elseif ($op === '!=')\n {\n // Convert \"val != NULL\" to \"valu IS NOT NULL\"\n $op = 'IS NOT';\n }\n }\n\n // Database operators are always uppercase\n $op = strtoupper($op);\n if (($op === 'BETWEEN' OR $op === 'NOT BETWEEN') AND is_array($value))\n {\n // BETWEEN always has exactly two arguments\n list($min, $max) = $value;\n\n if (is_string($min) AND array_key_exists($min, $this->_parameters))\n {\n // Set the parameter as the minimum\n $min = $this->_parameters[$min];\n }\n\n if (is_string($max) AND array_key_exists($max, $this->_parameters))\n {\n // Set the parameter as the maximum\n $max = $this->_parameters[$max];\n }\n\n // Quote the min and max value\n $value = $this->quote($min).' AND '.$this->quote($max);\n }\n elseif ($op === 'FIND_IN_SET' || strstr($column, '->') )\n {\n }\n else\n {\n if (is_string($value) AND array_key_exists($value, $this->_parameters))\n {\n // Set the parameter as the value\n $value = $this->_parameters[$value];\n }\n\n // Quote the entire value normally\n $value = $this->quote($value);\n \n }\n\n //json字段查询\n if ( strstr($column, '->') ) \n {\n $value = is_string($value) ? $this->quote($value) : $value;\n list($column, $json_field) = explode('->', $column, 2);\n\n $column = $this->quote_field($column, false);\n $sql .= $column.'->\\'$.' . $json_field . '\\' '.$op.' '.$value;\n }\n else\n {\n // Append the statement to the query\n $column = $this->quote_field($column, false);\n if ($op === 'FIND_IN_SET') \n {\n $sql .= $op.\"( '{$value}', {$column} )\";\n }\n else \n {\n $sql .= $column.' '.$op.' '.$value;\n }\n }\n }\n }\n\n $last_condition = $condition;\n }\n }\n\n return $sql;\n }", "public function orWhere($data, $conditional = 'AND') {\n\n\t \t$fields = count($data);\n\t\t\t$i = 0;\n\n\t\t\tif(is_null($this->_where)) {\n\t\t\t\t$this->_where = ' WHERE ';\n\t\t\t} else {\n\t\t\t\t$this->_where .= \" $conditional \";\n\t\t\t}\n\n\t\t\tif($fields < 2) {\n\t\t\t\tthrow new Exception('Para utlizar o metodo orWhere é necessário pelo menos 2 clausulas');\n\t\t\t}\n\n\t\t\tforeach ($data as $key => $value) {\n\t\t\t\t$newKey = ':'.$key;\n\t\t\t\t$this->_params[$newKey] = $value;\n\t\t\t\tif($i == 0) {\n\t\t\t\t\t$this->_where .= '(' . $key . ' = ' . $newKey . ' OR ';\n\t\t\t\t} else if ( $i+1 == $fields) {\n\t\t\t\t\t$this->_where .= $key . ' = ' . $newKey . ')';\n\t\t\t\t} else {\n\t\t\t\t\t$this->_where .= $key . ' = ' . $newKey . ' OR ';\n\t\t\t\t}\n\t\t\t\t$i++;\n\t\t\t}\n\n\t\t\treturn $this;\n\t }", "public function accessRules() {\n // en este array colocar solo los action de consulta\n return array(\n array('allow',\n 'actions' => array(),\n 'pbac' => array('write', 'admin'),\n ),\n array('allow',\n 'actions' => array(),\n 'pbac' => array('read'),\n ),\n // este array siempre va asì para delimitar el acceso a todos los usuarios que no tienen permisologia de read o write sobre el modulo\n array('deny', // deny all users\n 'users' => array('*'),\n ),\n );\n }", "public static function buildAnd(array $criteria)\n {\n return new LogicalAnd($criteria);\n }", "public function buildExpression(array $queriedTables, ExpressionBuilder $expressionBuilder): CompositeExpression\n {\n $constraints = [];\n foreach ($this->restrictions as $name => $restriction) {\n $constraints[] = $restriction->buildExpression(\n $this->filterApplicableTableAliases($queriedTables, $name),\n $expressionBuilder\n );\n }\n return $expressionBuilder->andX(...$constraints);\n }", "public function testBuildWhereWithOr()\n {\n $query = $this->getQuery()\n ->table('table1')\n ->where('id', 100)\n ->whereOr(\n $this->getQuery()\n ->where('is_admin', 1)\n ->where('is_super_admin', 1)\n )\n ;\n\n $this->assertSame(\n \"WHERE table1.id = '100' AND (is_admin = '1' OR is_super_admin = '1')\",\n $query->buildWhere()\n );\n }", "public function or_on($c1, $op, $c2)\n {\n $joins = $this->_join;\n // 将内部指针指向数组中的最后一个元素\n end($joins);\n // 返回数组内部指针当前指向元素的键名\n $key = key($joins);\n\n $this->_on[$key][] = array($c1, $op, $c2, 'OR');\n return $this;\n }", "public function getCondition() {\n\n \t$condition = array();\n \t$this->getQueryString(\"keyword\", $condition);\n \t$this->getQueryString(\"activityId\", $condition);\n \t$this->getQueryString(\"activityIds\", $condition);\n \t$this->getQueryString(\"activityType\", $condition);\n $this->getQueryString(\"state\", $condition);\n $this->getQueryString(\"orderDateStart\", $condition);\n $this->getQueryString(\"orderDateEnd\", $condition);\n $this->getQueryString(\"deliveryDateStart\", $condition);\n $this->getQueryString(\"deliveryDateEnd\", $condition);\n $this->getQueryString(\"serial\", $condition);\n $this->getQueryString(\"consumerId\", $condition);\n $this->getQueryString(\"payDateTimeStart\", $condition);\n $this->getQueryString(\"payDateTimeEnd\", $condition);\n $this->getQueryString(\"productId\", $condition);\n $this->getQueryString(\"deliveryId\", $condition);\n $this->getQueryString(\"productArray\", $condition);\n \n \treturn $condition;\n }", "public function condition()\n {\n $op = $this->getDefaultOperator();\n $params = func_get_args();\n \n switch (count($params)) {\n case 1:\n if (is_string($params[0])) {\n $this->addCondition('literal', [$params[0]]);\n } elseif (is_array($params[0])) {\n $combination = $this->getDefaultOperator();\n \n /**\n * The code within the foreach is an extraction of Zend\\Db\\Sql\\Select::where()\n */\n foreach ($params[0] as $pkey => $pvalue) {\n if (is_string($pkey) && strpos($pkey, '?') !== false) {\n # ['id = ?' => 1]\n # ['id IN (?, ?, ?)' => [1, 3, 4]]\n $predicate = new ZfPredicate\\Expression($pkey, $pvalue);\n } elseif (is_string($pkey)) {\n if ($pvalue === null) {\n # ['name' => null] -> \"ISNULL(name)\"\n $predicate = new ZfPredicate\\IsNull($pkey, $pvalue);\n } elseif (is_array($pvalue)) {\n # ['id' => [1, 2, 3]] -> \"id IN (1, 2, 3)\"\n $predicate = new ZfPredicate\\In($pkey, $pvalue);\n } else {\n # ['id' => $id] -> \"id = 15\"\n $predicate = new ZfPredicate\\Operator($pkey, ZfPredicate\\Operator::OP_EQ, $pvalue);\n }\n } elseif ($pvalue instanceof ZfPredicate\\PredicateInterface) {\n $predicate = $pvalue;\n } else {\n # ['id = ?'] -> \"id = ''\"\n # ['id = 1'] -> literal.\n $predicate = (strpos($pvalue, Expression::PLACEHOLDER) !== false)\n ? new ZfPredicate\\Expression($pvalue) : new ZfPredicate\\Literal($pvalue);\n }\n $this->getCurrentPredicate()->addPredicate($predicate, $combination);\n }\n }\n break;\n \n case 2:\n # $rel->where('foo = ? AND id IN (?) AND bar = ?', [true, [1, 2, 3], false]);\n # If passing a non-array value:\n # $rel->where('foo = ?', 1);\n # But if an array is to be passed, must be inside another array\n # $rel->where('id IN (?)', [[1, 2, 3]]);\n if (!is_array($params[1])) {\n $params[1] = [$params[1]];\n }\n $this->expandPlaceholders($params[0], $params[1]);\n $this->addCondition('expression', [$params[0], $params[1]]);\n break;\n \n case 3:\n # $rel->where('id', '>', 2);\n $this->getCurrentPredicate()->addPredicate(\n new ZfPredicate\\Operator($params[0], $params[1], $params[2])\n );\n break;\n \n default:\n throw new Exception\\BadMethodCallException(\n sprintf(\n \"One to three arguments are expected, %s passed\",\n count($params)\n )\n );\n }\n \n return $this;\n }", "public function accessRules()\n {\n $acl = $this->acl;\n\n return [\n ['allow', // allow all users to perform 'index' and 'view' actions\n 'actions' => ['index', 'view'],\n 'users' => ['@'],\n ],\n ['allow', // allow authenticated user to perform 'create' and 'update' actions\n 'actions' => ['create', 'getLoadingAddressList'],\n 'expression' => function() use ($acl) {\n return $acl->canCreateOrder();\n },\n ],\n ['allow', // allow to perform 'accomplish' action\n 'actions' => ['update'],\n 'expression' => function() use ($acl) {\n return $acl->canUpdateOrder();\n },\n ],\n ['allow', // allow to perform 'accomplish' action\n 'actions' => ['withdraw'],\n 'expression' => function() use ($acl) {\n return $acl->canWithdrawOrder();\n },\n ],\n ['allow', // allow to perform 'accomplish' action\n 'actions' => ['restore'],\n 'expression' => function() use ($acl) {\n return $acl->canRestoreOrder();\n },\n ],\n ['allow', // allow to perform 'accomplish' action\n 'actions' => ['accomplish'],\n 'expression' => function() use ($acl) {\n return $acl->canAccomplishOrder();\n },\n ],\n ['allow', // allow to perform 'accomplish' action\n 'actions' => ['reopen'],\n 'expression' => function() use ($acl) {\n return $acl->canReopenOrder();\n },\n ],\n ['allow', // allow to perform 'loadCargo' action\n 'actions' => ['loadCargo'],\n 'expression' => function() use ($acl) {\n return $acl->canAccessLoadCargo();\n },\n ],\n ['allow', // allow to perform 'delete' action\n 'actions' => ['delete', 'softDelete'],\n 'expression' => function() use ($acl) {\n return $acl->canDeleteOrder();\n },\n ],\n ['allow', // allow admin user to perform 'admin' action\n 'actions' => ['admin'],\n 'expression' => function() use ($acl) {\n return $acl->getUser()->isAdmin();\n },\n ],\n ['deny', // deny all users\n 'users' => ['*'],\n ],\n ];\n }", "public function setConditions($var)\n\t{\n\t\tGPBUtil::checkMessage($var, \\Gobgpapi\\Conditions::class);\n\t\t$this->conditions = $var;\n\n\t\treturn $this;\n\t}", "protected abstract function getWhereClause(array $conditions);", "protected function hasConditions($element)\n {\n $conditionals = ArrayHelper::get($element, 'settings.conditional_logics');\n\n if (isset($conditionals['status']) && $conditionals['status']) {\n return array_filter($conditionals['conditions'], function ($item) {\n return $item['field'] && $item['operator'];\n });\n }\n }", "function custom_conds( $conds = array()) {\n\n\t}", "protected function setConditions() {\r\n if( count($this->sqlConditions) ) {\r\n $this->sql .= ' WHERE ' . $this->sqlStrConditions;\r\n }\r\n }", "public function processAndCombination($collection, $ruleConditions)\n {\n foreach ($ruleConditions as $condition) {\n $attribute = $condition['attribute'];\n $operator = $condition['conditions'];\n $value = $condition['cvalue'];\n\n //ignore condition if value is null or empty\n if ($value == '' || $value == null) {\n continue;\n }\n\n //ignore conditions for already used attribute\n if (in_array($attribute, $this->used)) {\n continue;\n }\n //set used to check later\n $this->used[] = $attribute;\n\n //product review\n if ($this->ruleType == self::REVIEW && isset($this->attributeMapForQuote[$attribute])) {\n $attribute = $this->attributeMapForOrder[$attribute];\n //abandoned cart\n } elseif ($this->ruleType == self::ABANDONED && isset($this->attributeMapForOrder[$attribute])) {\n $attribute = $this->attributeMapForQuote[$attribute];\n } else {\n $this->productAttribute[] = $condition;\n continue;\n }\n\n $collection = $this->processAndCombinationCondition($collection, $operator, $value, $attribute);\n }\n\n return $this->processProductAttributes($collection);\n }", "protected function WhereClause($conditions = array(), $type = 0) {\n\n $conditionsStr = \"\";\n\n if (count($conditions)) {\n\n $counter = 0;\n\n foreach ($conditions as $condkey => $condvalue) {\n\n $notType = false;\n\n $condvalue['operatortype'] = isset($condvalue['operatortype']) ? $condvalue['operatortype'] : 'AND';\n\n $condvalue['operatortype'] = strtoupper($condvalue['operatortype']);\n\n if (!in_array($condvalue['operatortype'], array('AND', 'OR'))) {\n\n $condvalue['operatortype'] = \"AND\";\n }\n\n if (isset($condvalue['notoperator']) &&\n $condvalue['notoperator']) {\n\n $notType = true;\n }\n\n if ($counter == 0) {\n\n switch ($type) {\n case 1: {\n $condvalue['operatortype'] = \"ON\";\n break;\n }\n case 2: {\n $condvalue['operatortype'] = \"HAVING\";\n break;\n }\n default: {\n $condvalue['operatortype'] = \"WHERE\";\n }\n }\n }\n\n $conditionsStr .= \" \" . $condvalue['operatortype'];\n\n if ($notType) {\n\n $conditionsStr .= \" NOT\";\n }\n\n if (isset($condvalue['startbrackets'])) {\n\n $condvalue['startbrackets'] = preg_replace(\"/[^(\\(|\\))]/\", \"\", $condvalue['startbrackets']);\n\n $conditionsStr .= \" \" . $condvalue['startbrackets'];\n }\n\n $noCondition = true;\n\n if (!(isset($condvalue['column']) &&\n $condvalue['column']) &&\n isset($condvalue['subquery']) &&\n $condvalue['subquery'] instanceof \\FluitoPHP\\Database\\DBQueryHelper &&\n $condvalue['subquery']->\n IsSelect()) {\n\n $condvalue['column'] = '(' . rtrim($condvalue['subquery']->\n Generate(), ';') . ')';\n\n $noCondition = false;\n } else if (isset($condvalue['column'])) {\n\n $condvalue['column'] = \"{$condvalue['column']}\";\n\n $noCondition = false;\n }\n\n if (!(isset($condvalue['column']) &&\n $condvalue['column']) &&\n isset($condvalue['value']) &&\n $condvalue['value']) {\n\n $condvalue['value'] = $this->\n connection->\n GetConn()->\n real_escape_string($condvalue['value']);\n $condvalue['column'] = \"'{$condvalue['value']}'\";\n\n $noCondition = false;\n }\n\n if (!(isset($condvalue['rightcolumn']) &&\n $condvalue['rightcolumn']) &&\n isset($condvalue['rightsubquery']) &&\n $condvalue['rightsubquery'] instanceof \\FluitoPHP\\Database\\DBQueryHelper &&\n $condvalue['rightsubquery']->\n IsSelect()) {\n\n $condvalue['rightcolumn'] = '(' . rtrim($condvalue['rightsubquery']->\n Generate(), ';') . ')';\n\n $noCondition = false;\n } else if (isset($condvalue['rightcolumn'])) {\n\n $condvalue['rightcolumn'] = \"{$condvalue['rightcolumn']}\";\n\n $noCondition = false;\n }\n\n if (!(isset($condvalue['rightcolumn']) &&\n $condvalue['rightcolumn']) &&\n isset($condvalue['rightvalue']) &&\n $condvalue['rightvalue']) {\n\n $condvalue['rightvalue'] = $this->\n connection->\n GetConn()->\n real_escape_string($condvalue['rightvalue']);\n $condvalue['rightcolumn'] = \"'{$condvalue['rightvalue']}'\";\n\n $noCondition = false;\n }\n\n if (!$noCondition) {\n\n if (!isset($condvalue['operator']) ||\n !$condvalue['operator']) {\n\n $condvalue['operator'] = \"=\";\n }\n\n $conditionsStr .= \" {$condvalue['column']} {$condvalue['operator']} {$condvalue['rightcolumn']}\";\n }\n\n if (isset($condvalue['endbrackets'])) {\n\n $condvalue['endbrackets'] = preg_replace(\"/[^(\\(|\\))]/\", \"\", $condvalue['endbrackets']);\n\n $conditionsStr .= \" \" . $condvalue['endbrackets'];\n }\n\n $counter++;\n }\n }\n\n return $conditionsStr;\n }", "public function orWhere(...$args)\n {\n $this->addCondition('or', $args, $this->conditions);\n return $this;\n }" ]
[ "0.58474684", "0.5752438", "0.5550455", "0.5443324", "0.54081345", "0.53155273", "0.5229609", "0.52095854", "0.5100465", "0.5095311", "0.5061682", "0.49858", "0.49638584", "0.49496084", "0.48771054", "0.48731056", "0.48482183", "0.4838695", "0.48177764", "0.47720337", "0.47484112", "0.469798", "0.46903", "0.46878013", "0.4687395", "0.46775943", "0.4662636", "0.46613324", "0.46473515", "0.46402046", "0.46364772", "0.46130323", "0.4605019", "0.46031514", "0.45976028", "0.45964223", "0.45874473", "0.45814535", "0.45782465", "0.4577047", "0.4571216", "0.45444787", "0.45415747", "0.453475", "0.45234984", "0.45130688", "0.45130688", "0.45130688", "0.4505556", "0.45036966", "0.4502719", "0.44902343", "0.44775587", "0.4471235", "0.44629467", "0.44445026", "0.44430482", "0.44375587", "0.4428196", "0.44205815", "0.44166422", "0.4408648", "0.43821162", "0.43811512", "0.43809155", "0.43701687", "0.43630853", "0.43602622", "0.43565845", "0.43565845", "0.43565845", "0.43565845", "0.4354818", "0.43499213", "0.43487176", "0.43487176", "0.43456355", "0.4333648", "0.43288517", "0.43239757", "0.43158564", "0.4309256", "0.4303266", "0.42954832", "0.42929816", "0.42889795", "0.4284968", "0.42703205", "0.4247577", "0.4247", "0.42456242", "0.42426676", "0.4236691", "0.422588", "0.42219344", "0.42157257", "0.4209259", "0.42060336", "0.41992515", "0.41983813" ]
0.66342574
0
Determine if the user is authorized to make this request.
public function authorize() { return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function authorize()\n {\n if ($this->user() !== null) {\n return true;\n }\n return false;\n }", "public function authorize()\n {\n return $this->user() !== null;\n }", "public function authorize()\n {\n return $this->user() !== null;\n }", "public function authorize()\n {\n return $this->user() != null;\n }", "public function authorize(): bool\n {\n return $this->user() !== null;\n }", "public function authorize(): bool\n {\n return $this->isUserAuthorised();\n }", "public function authorize()\n {\n return !is_null($this->user());\n }", "public function authorize()\n {\n return request()->user() != null;\n }", "public function authorize()\n\t{\n\t\t// if user is updating his profile or a user is an admin\n\t\tif( $this->user()->isSuperAdmin() || !$this->route('user') ){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public function authorize()\n {\n // this was my best guess\n return $this->user()->id === $this->route('user')->id;\n }", "public function isAuthorized()\n {\n return $this->cookieHelper->requestCookieExists('auth');\n }", "public function authorize()\n {\n return !empty(Auth::user()) && ($this->user()->isAnAdmin() || $this->user()->hasRole('user'));\n }", "public function authorize()\n {\n $originAccount = Account::find($this->get('origin_account_id'));\n return $originAccount->user_id == auth()->id();\n }", "public function authorize()\n {\n switch ($this->method()) {\n case 'GET':\n case 'POST':\n case 'PUT':\n case 'PATCH':\n case 'DELETE':\n default:\n return $this->user()->type == 'App\\\\Staff' ? true : false;\n break;\n }\n\n return false;\n }", "public function authorize()\n {\n if($this->user()->role == \"admin\" || $this->user()->id == $this->request->get('author_id')) return true;\n else return false;\n }", "public function authorize()\n {\n if(\\Auth::guest())\n {\n return false;\n } else {\n // Action 1 - Check if authenticated user is a superadmin\n if(\\Auth::User()->hasRole('superadmin'))\n return true;\n\n // Action 2 - Find UUID from request and compare to authenticated user\n $user = User::where('uuid', $this->user_uuid)->firstOrFail();\n if($user->id == \\Auth::User()->id)\n return true;\n\n // Action 3 - Fail request\n return false;\n }\n }", "public function authorize()\n {\n $this->model = $this->route('user');\n\n $this->model = is_null($this->model) ? User::class : $this->model;\n\n return $this->isAuthorized();\n }", "public function isAuthorized(): bool\n {\n // TODO: implement authorization check\n\n return true;\n }", "public function isAuthorized() {}", "public function authorize()\n {\n return request()->loggedin_role === 1;\n }", "public function authorize()\n {\n $this->model = $this->route('user');\n\n if ($this->isEdit() && !is_null($this->model)) {\n if (!user()->hasPermissionTo('Administrations::admin.user') && $this->model->id != user()->id) {\n return false;\n }\n }\n\n $this->model = is_null($this->model) ? User::class : $this->model;\n\n return $this->isAuthorized();\n }", "public function authorize()\n {\n $accessor = $this->user();\n\n return $accessor->isAdmin() || $accessor->hasKey('post-users');\n }", "public function authorize()\n {\n $user = \\Auth::getUser();\n\n return $user->user_type == 1;\n }", "public function authorize()\n {\n return auth()->check() ? true : false;\n }", "public function authorize()\n {\n return auth()->check() ? true : false;\n }", "public function authorize()\n {\n /**\n * @var User $user\n * @var Document $document\n */\n $user = Auth::user();\n $document = $this->route('document');\n\n return (int)$user->id === (int)$document->user_id;\n }", "public function authorize()\n {\n switch (true) {\n case $this->wantsToList():\n case $this->wantsToShow():\n if ($this->hasRoles(['owner', 'administrator'])) {\n return true;\n }\n break;\n case $this->wantsToStore():\n case $this->wantsToUpdate():\n case $this->wantsToDestroy():\n if ($this->hasRoles(['owner'])) {\n return true;\n }\n break;\n }\n\n return false;\n }", "public function authorize()\n {\n $user = JWTAuth::parseToken()->authenticate();\n $organisation = Organization::findOrFail($this->route('organizations'));\n return $organisation->admin_id == $user->id;\n }", "public function authorize()\n {\n if($this->user()->isAdmin())\n return true;\n\n return false;\n }", "function isAuthorized()\n {\n $authorized = parent::isAuthorized();\n return $authorized;\n }", "public function authorize()\n {\n $user = auth('web')->user();\n if ($user && $user->active) {\n return true;\n }\n\n return false;\n }", "public function authorize()\n {\n $this->user = User::query()->find($this->route()->parameter('user'));\n $this->merge(['verified' => $this->get('verified') ? 1 : 0]);\n\n return true;\n }", "public function authorize()\n {\n $user = request()->user('api');\n return $user->isSenior();\n }", "public function authorize()\n {\n return is_client_or_staff();\n }", "public function isAuthorized() {\n\t\treturn true;\n\t}", "public function authorize()\n {\n switch ($this->method()) {\n case 'POST':\n return true;\n case 'GET':\n default:\n {\n return false;\n }\n }\n }", "public function authorize()\n {\n switch ($this->method()) {\n case 'POST':\n return true;\n case 'GET':\n default:\n {\n return false;\n }\n }\n }", "public function authorize()\n {\n //Check if user is authorized to access this page\n if($this->user()->authorizeRoles(['admin'])) {\n return true;\n } else {\n return false;\n }\n }", "public function isAuthorized()\n\t{\n\t\t$sessionVal = Yii::$app->session->get($this->sessionParam);\n\t\treturn (!empty($sessionVal));\n\t}", "public function authorize() {\n\n return auth()->user() && auth()->user()->username === $this->user->username;\n }", "public function authorize()\n {\n return session('storefront_key') || request()->session()->has('api_credential');\n }", "public function authorize()\n {\n if ($this->user()->isAdmin($this->route('organization'))) {\n return true;\n }\n\n return false;\n\n }", "public function authorize()\n {\n return $this->user() && $this->user()->role === Constants::USER_ROLE_ADMIN;\n }", "public function authorized()\n {\n return $this->accepted && ! $this->test_mode;\n }", "public function authorize()\n {\n if (!auth()->check()) {\n return false;\n }\n return true;\n }", "public function hasAuthorized() {\n return $this->_has(1);\n }", "public function authorize()\n {\n $resource = Resource::find($this->route('id'));\n\n if (!$resource) {\n return true;\n }\n\n return $resource && $this->user()->can('access', $resource);\n }", "public function authorize()\n {\n /*\n if ($this->loan_id && is_numeric($this->loan_id) && $loan = Loan::whereId($this->loan_id)->first()) {\n // loan_id belongs to requesting user\n return $loan && $this->user()->id == $loan->user_id;\n }\n */\n return true; // let rules handle it\n }", "public function authorize()\n {\n //TODO Authorice Request (without Controller)\n return auth()->user()->role_id === 1;\n }", "public function authorize(): bool\n {\n return $this->user()->id === $this->article->user->id;\n }", "public function authorize()\n {\n return $this->user()->rol == 'admin' ? true : false;\n }", "public function isAuth()\n {\n return $this->session->hasAuthorisation();\n }", "public function authorize()\n {\n if(Auth::user())\n {\n return true;\n }\n else\n {\n return false;\n }\n }", "public function authorize()\n {\n //Check if user is authorized to access this page\n if($this->user()->authorizeRoles(['admin', 'hrmanager', 'hruser'])) {\n return true;\n } else {\n return false;\n }\n }", "public function authorize()\n {\n return \\Auth::check() ? true : false;\n }", "public function authorize()\n\t{\n\t\treturn true; //no user checking\n\t}", "public function authorize()\n {\n return $this->user()->id === $this->route('report')->user_id;\n }", "public function authorize()\n {\n return $this->user()->id === $this->route('report')->user_id;\n }", "public function authorize()\n {\n return !empty(Auth::user());\n }", "public function authorize()\n {\n return $this->groupHasUser() || $this->hasSeller();\n }", "public function authorize()\n\t{\n\t\t//@todo check with perissions\n\t\treturn (request()->user()->user_type == ADMIN_USER);\n\t}", "public function authorize()\n\t{\n\t\t//@todo check with perissions\n\t\treturn (request()->user()->user_type == ADMIN_USER);\n\t}", "public function isAuthorized() {\n\t\t\n\t}", "public function authorize()\n {\n if(Auth::check())\n {\n return (Auth::user()->has_world_admin_access);\n }\n return false;\n }", "public function authorize()\n {\n if (!\\Auth::guest()) {\n $user = \\Auth::getUser();\n if ($user->type == User::USER_TYPE_ADMIN) {\n return true;\n }\n }\n\n return false;\n }", "public function authorize()\n {\n if (auth()->user()->is_admin) {\n return true;\n }\n return false;\n }", "public function authorize()\n {\n if ($this->user()->is_admin){\n return true;\n }\n else if ($this->method == \"PUT\"){\n if ($this->user()->id == $this->input('id')){\n return true;\n }\n }\n return false;\n }", "public function authorize(): bool\n {\n return parent::authorize() && (int)$this->playList->user_id === auth()->user()->id;\n }", "public function authorize() {\n\t\treturn $this->user()->is_admin;\n\t}", "public function authorize()\n {\n if (Auth::check()) {\n \n return true;\n \n }\n return false;\n }", "public function authorize()\n {\n $user = Auth::user();\n return $user && $user->rol == 'admin';\n }", "public function authorize()\n\t{\n\t\t// Nutzern akzeptiert werden\n\t\tif(Auth::check())\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public function authorize()\n {\n // TODO: Check if has business\n return session()->has('id');\n }", "public function authorize()\n {\n if (auth()->check() && auth()->user()->isAdmin()) {\n return true;\n }\n\n return false;\n }", "public function authorize()\n {\n return $this->auth->check();\n }", "public function authorize() {\n\t\t$user = \\Auth::user();\n\n\t\tif ( $user->isAdmin() ) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "public function authorize()\n {\n if (auth()->user()->isAdmin() || auth()->user()->isCustomer()) {\n return true;\n }\n return false;\n }", "public function authorize()\n {\n return $this->container['auth']->check();\n }", "function isAuthorized($request) {\n return true;\n }", "public function authorize()\n {\n return Auth::guest() || isMember();\n }", "public function authorize()\n {\n return auth()->user() && auth()->user()->isCeo();\n }", "public function authorize(): bool\n {\n $deckId = $this->request->get('deck_id');\n $userId = Deck::whereKey($deckId)->value('user_id');\n\n return $userId === user()->id;\n }", "public function authorize()\n {\n return Auth::check() && Auth::user()->is_contractor;\n }", "public function authorize()\n {\n return TRUE;\n }", "public function authorize()\n {\n $user = User::find($this->id);\n\n if (!$user) {\n $user = User::where('no_ahli', $this->no_ahli)->first();\n }\n if ($user && $user->id == auth()->user()->id) return true;\n if (auth()->user()->is('admin')) return true;\n\n return false;\n }", "public function authorize()\n {\n # if it's false, it will rejected\n return true;\n }", "public function authorize()\n {\n $isValid = auth()->user()->is($this->route('task')->attempt->checklist->owner);\n\n return $isValid;\n }", "public function authorize()\n {\n $user = Auth::user();\n\n return ($user->getRole() == 'admin');\n }", "public function is_authorized() {\n\t\t$authorized = true;\n\t\tif ( $this->is_access_token_expired() ) {\n\t\t\t$authorized = false;\n\t\t}\n\n\t\treturn $authorized;\n\t}", "public function authorize()\n {\n $user = User::findOrFail($this->route('id'));\n\n return $user->hasRole('admin') || $user->hasRole('teacher');\n }", "public function authorize()\n {\n $project = \\App\\Project::find($this->request->get('project'));\n return $project && $project->isManager($this->user()->name);\n }", "public function isAuthorized() {\n\t\treturn (bool)$this->_storage->hasData();\n\t}", "public function authorize()\n {\n $idExpense = $this->input('expense');\n $expense = Expense::find($idExpense);\n\n return $expense && $this->user()->id == $expense->user_id;\n }", "public function authorize()\n {\n // User system not implemented\n return true;\n }", "public function authorize() : bool\n {\n // TODO check request to xhr in middleware\n return true;\n }", "public function authorize()\n {\n $organizationId = (string) $this->route('id');\n\n $this->organization = Organization::findByUuidOrFail($organizationId);\n\n return $this->user()->can('show', [Organization::class, $this->organization]);\n }", "public function authorize()\n {\n $user = $this->findFromUrl('user');\n return $this->user()->can('update', $user);\n }", "public function authorize()\n {\n $user = Auth::user();\n $orderElement = OrderElement::find($this->input(\"order_element_id\"));\n $order = $orderElement->order;\n\n if ($user->id == $order->user_id) {\n return true;\n } else {\n return false;\n }\n }", "public function authorize()\n {\n $current_user = auth()->user();\n $convention = Convention::find($this->route('convention_id'));\n\n // Use ClientPolicy here to authorize before checking the fields\n return $current_user->can('store', Convention::class)\n || $current_user->can('update', $convention);\n }", "public function authorize()\n {\n if (session()->has('user'))\n {\n $participantController = new ParticipantController();\n\n return !$participantController->isParticipating($this->input('id_user'), $this->input('id_event'));\n }\n else\n {\n return false;\n }\n }", "public function authorize()\n {\n return (Auth::user()->allowSuperAdminAccess || Auth::user()->allowAdminAccess);\n }" ]
[ "0.8401071", "0.8377486", "0.8377486", "0.8344406", "0.8253731", "0.824795", "0.8213121", "0.8146598", "0.81115526", "0.8083369", "0.7991986", "0.79907674", "0.79836637", "0.79604936", "0.79516214", "0.79494005", "0.79265946", "0.7915068", "0.79001635", "0.7894822", "0.7891453", "0.7890965", "0.7862504", "0.78414804", "0.78414804", "0.7837965", "0.78248763", "0.7812292", "0.7809632", "0.77928597", "0.7788316", "0.7781619", "0.77815884", "0.7763308", "0.7754035", "0.7717961", "0.7717961", "0.77171147", "0.77138597", "0.7705001", "0.7693082", "0.7692783", "0.76915383", "0.76909506", "0.76733255", "0.7667128", "0.7665592", "0.7656238", "0.7650853", "0.764326", "0.76431626", "0.76431614", "0.7635147", "0.76311624", "0.76294273", "0.7627076", "0.76207024", "0.76207024", "0.76139116", "0.76036394", "0.76035625", "0.76035625", "0.76032084", "0.7602515", "0.76007926", "0.75971127", "0.7588128", "0.7586303", "0.7581912", "0.7563037", "0.7554785", "0.75526226", "0.755171", "0.75436753", "0.75432944", "0.7540682", "0.7538806", "0.75280696", "0.751548", "0.75149626", "0.7501161", "0.74959517", "0.74956346", "0.74911124", "0.7489147", "0.74858016", "0.748033", "0.7478443", "0.7472642", "0.7472576", "0.7465409", "0.7464371", "0.74630046", "0.7462218", "0.7461453", "0.7449168", "0.74399257", "0.74358094", "0.7433247", "0.7432659", "0.74248093" ]
0.0
-1
Get the validation rules that apply to the request.
public function rules() { return [ "cinema" => "required", "name" => "required", "seat" => "required", "couts" => "required", "type" => "required" ]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function rules()\n {\n $commons = [\n\n ];\n return get_request_rules($this, $commons);\n }", "public function getRules()\n {\n return $this->validator->getRules();\n }", "public function getValidationRules()\n {\n $rules = [];\n\n // Get the schema\n $schema = $this->getSchema();\n\n return $schema->getRules($this);\n }", "public function rules()\n {\n return $this->validationRules;\n }", "public function rules()\n {\n $rules = [];\n switch ($this->getMethod()):\n case \"POST\":\n $rules = [\n 'course_id' => 'required|numeric',\n 'questions' => 'required|array',\n ];\n break;\n case \"PUT\":\n $rules = [\n 'id' => 'required|numeric',\n 'course_id' => 'required|numeric',\n 'questions' => 'required|array',\n ];\n break;\n case \"DELETE\":\n $rules = [\n 'id' => 'required|numeric'\n ];\n break;\n endswitch;\n return $rules;\n }", "public static function getRules()\n {\n return (new static)->getValidationRules();\n }", "public function getRules()\n {\n return $this->validation_rules;\n }", "public function getValidationRules()\n {\n return [];\n }", "public function getValidationRules() {\n return [\n 'email' => 'required|email',\n 'name' => 'required|min:3',\n 'password' => 'required',\n ];\n }", "public function rules()\n {\n if($this->isMethod('post')){\n return $this->post_rules();\n }\n if($this->isMethod('put')){\n return $this->put_rules();\n }\n }", "public function rules()\n {\n $rules = [];\n\n // Validation request for stripe keys for stripe if stripe status in active\n if($this->has('stripe_status')){\n $rules[\"api_key\"] = \"required\";\n $rules[\"api_secret\"] = \"required\";\n $rules[\"webhook_key\"] = \"required\";\n }\n\n if($this->has('razorpay_status')){\n $rules[\"razorpay_key\"] = \"required\";\n $rules[\"razorpay_secret\"] = \"required\";\n $rules[\"razorpay_webhook_secret\"] = \"required\";\n }\n\n // Validation request for paypal keys for paypal if paypal status in active\n if($this->has('paypal_status')){\n $rules[\"paypal_client_id\"] = \"required\";\n $rules[\"paypal_secret\"] = \"required\";\n $rules[\"paypal_mode\"] = \"required_if:paypal_status,on|in:sandbox,live\";\n }\n\n\n return $rules;\n }", "protected function getValidationRules()\n {\n $rules = [\n 'title' => 'required|min:3|max:255',\n ];\n\n return $rules;\n }", "public function getRules()\n\t{\n\t\t$rules['user_id'] = ['required', 'exists:' . app()->make(User::class)->getTable() . ',id'];\n\t\t$rules['org_id'] = ['required', 'exists:' . app()->make(Org::class)->getTable() . ',id'];\n\t\t$rules['role'] = ['required', 'string', 'in:' . implode(',', Static::ROLES)];\n\t\t$rules['scopes'] = ['nullable', 'array'];\n\t\t$rules['ended_at'] = ['nullable', 'date'];\n\t\t$rules['photo_url'] = ['nullable', 'string'];\n\n\t\treturn $rules;\n\t}", "public function rules()\n {\n switch ($this->method()) {\n case 'POST':\n return [\n 'username' => 'required|max:255',\n 'user_id' => 'required',\n 'mobile' => 'required|regex:/^1[34578][0-9]{9}$/',\n 'birthday' => 'required',\n 'cycle_id' => 'required',\n 'expired_at' => 'required',\n 'card_price' => 'required',\n ];\n case 'PUT':\n return [\n 'username' => 'required|max:255',\n 'user_id' => 'required',\n 'mobile' => 'required|regex:/^1[34578][0-9]{9}$/',\n 'birthday' => 'required',\n 'cycle_id' => 'required',\n 'expired_at' => 'required',\n 'card_price' => 'required',\n ];\n }\n }", "public function rules()\n {\n\n switch ($this->method()) {\n case 'GET':\n case 'POST':\n $rules = [\n 'name' => 'required|max:255',\n 'email' => 'required|email|max:255|unique:users',\n 'password' => 'required|min:6|confirmed',\n 'password_confirmation' => 'min:6|same:password',\n 'role_id' => 'required'\n ];\n break;\n case 'PUT':\n case 'PATCH':\n $rules = [\n 'name' => 'required|max:255',\n 'email' => 'required|email|max:255|unique:users,email,'.$this->id,\n ];\n break;\n\n default:\n $rules = [\n 'name' => 'required|max:255',\n 'email' => 'required|email|max:255|unique:users,email,'.$this->id,\n ];\n break;\n }\n return $rules;\n }", "public function rules()\n {\n return $this->rules;\n }", "public function rules()\n {\n return $this->rules;\n }", "public function rules()\n {\n return $this->rules;\n }", "public function rules()\n {\n return $this->rules;\n }", "public function rules()\n {\n return $this->rules;\n }", "public function rules()\n {\n return $this->rules;\n }", "public function rules()\n {\n switch($this->method()) {\n case 'GET':\n return [];\n case 'POST':\n return [\n 'name' => 'required|max:50',\n 'company' => 'required|max:100',\n 'position' => 'required|max:50',\n 'email' => 'required|email|max:150',\n 'phone' => 'required|max:25',\n 'description' => 'nullable|max:500',\n ];\n case 'PUT':\n case 'PATCH':\n return [\n 'name' => 'required|max:50',\n 'company' => 'required|max:100',\n 'position' => 'required|max:50',\n 'email' => 'required|email|max:150',\n 'phone' => 'required|max:25',\n 'description' => 'nullable|max:500',\n ];\n case 'DELETE':\n return [];\n default:break;\n }\n \n }", "public function rules($request) {\n $function = explode(\"@\", $request->route()[1]['uses'])[1];\n return $this->getRouteValidateRule($this->rules, $function);\n // // 获取请求验证的函数名\n // // ltrim(strstr($a,'@'),'@')\n // if (count(explode(\"@\", Request::route()->getActionName())) >= 2) {\n // $actionFunctionName = explode(\"@\", Request::route()->getActionName()) [1];\n // }\n\n // // 取配置并返回\n // if (isset($this->rules[$actionFunctionName])) {\n // if (is_array($this->rules[$actionFunctionName])) {\n // return $this->rules[$actionFunctionName];\n // }\n // else {\n // return $this->rules[$this->rules[$actionFunctionName]];\n // }\n // }\n // else {\n // return [];\n // }\n }", "function getValidationRules() {\n\t\treturn array(\n\t\t\t'_MovieID' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_UserID' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_CountryID' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_BroadCastDate' => array(\n\t\t\t\t'dateTime' => array(),\n\t\t\t),\n\t\t\t'_CreatedDate' => array(\n\t\t\t\t'dateTime' => array(),\n\t\t\t),\n\t\t);\n\t}", "public function rules()\n {\n if ($this->method() === 'POST') {\n return $this->rulesForCreating();\n }\n\n return $this->rulesForUpdating();\n }", "public function rules()\n {\n $validation = [];\n if ($this->method() == \"POST\") {\n $validation = [\n 'name' => 'required|unique:users',\n 'email' => 'required|unique:users|email',\n 'password' => 'required|min:6|confirmed',\n 'password_confirmation' => 'required|min:6',\n 'roles' => 'required',\n ];\n } elseif ($this->method() == \"PUT\") {\n $validation = [\n 'name' => 'required|unique:users,name,' . $this->route()->parameter('id') . ',id',\n 'email' => 'required|unique:users,email,' . $this->route()->parameter('id') . ',id|email',\n 'roles' => 'required',\n ];\n\n if ($this->request->get('change_password') == true) {\n $validation['password'] = 'required|min:6|confirmed';\n $validation['password_confirmation'] = 'required|min:6';\n }\n }\n\n return $validation;\n }", "protected function getValidationRules()\n {\n $class = $this->model;\n\n return $class::$rules;\n }", "public function rules()\n {\n $data = $this->request->all();\n $rules['username'] = 'required|email';\n $rules['password'] = 'required'; \n\n return $rules;\n }", "public function rules()\n {\n $rules = $this->rules;\n\n $rules['fee'] = 'required|integer';\n $rules['phone'] = 'required|min:8|max:20';\n $rules['facebook'] = 'required|url';\n $rules['youtube'] = 'required|url';\n $rules['web'] = 'url';\n\n $rules['requestgender'] = 'required';\n $rules['serviceaddress'] = 'required|max:150';\n $rules['servicetime'] = 'required|max:150';\n $rules['language'] = 'required|max:150';\n $rules['bust'] = 'required|max:100|integer';\n $rules['waistline'] = 'required|max:100|integer';\n $rules['hips'] = 'required|max:100|integer';\n $rules['motto'] = 'max:50';\n\n return $rules;\n }", "protected function getValidRules()\n {\n return $this->validRules;\n }", "public function rules()\n {\n switch($this->method())\n {\n case 'GET':\n case 'DELETE':\n {\n return [];\n }\n case 'POST':\n case 'PUT':\n {\n return [\n 'name' => 'required',\n ];\n }\n default:break;\n }\n }", "public function rules()\n {\n switch ($this->method()) {\n case 'GET':\n case 'POST':\n {\n return [\n 'mobile' => ['required','max:11','min:11'],\n 'code' => ['required','max:6','min:6'],\n 'avatar' => ['required'],\n 'wx_oauth' => ['required'],\n 'password' => ['nullable','min:6','max:20']\n ];\n }\n case 'PUT':\n case 'PATCH':\n case 'DELETE':\n default: {\n return [];\n }\n }\n }", "public function rules()\n {\n switch ($this->getRequestMethod()) {\n case 'index':\n return [\n 'full_name' => 'nullable|string',\n 'phone' => 'nullable|string',\n ];\n break;\n case 'store':\n return [\n 'crm_resource_id' => 'required|exists:crm_resources,id',\n 'channel' => 'required|in:' . get_validate_in_string(CrmResourceCallLog::$channel),\n 'call_status' => 'required|in:' . get_validate_in_string(CrmResourceCallLog::$call_statuses),\n ];\n break;\n default:\n return [];\n break;\n }\n }", "public function rules()\n {\n //With password\n if(request('password') || request('password_confirmation')) {\n return array_merge($this->passwordRules(), $this->defaultRules());\n }\n //Without password\n return $this->defaultRules();\n }", "public function rules()\n {\n $rules = [\n '_token' => 'required'\n ];\n\n foreach($this->request->get('emails') as $key => $val) {\n $rules['emails.'.$key] = 'required|email';\n }\n\n return $rules;\n }", "function getValidationRules() {\n\t\treturn array(\n\t\t\t'_ID' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_CoverImageID' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_TrackID' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_Status' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_Rank' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_CreateDate' => array(\n\t\t\t\t'dateTime' => array(),\n\t\t\t),\n\t\t);\n\t}", "public function rules()\n { \n return $this->rules;\n }", "public function getValidationRules()\n {\n if (method_exists($this, 'rules')) {\n return $this->rules();\n }\n\n $table = $this->getTable();\n $cacheKey = 'validate.' . $table;\n\n if (config('validate.cache') && Cache::has($cacheKey)) {\n return Cache::get($cacheKey);\n }\n\n // Get table info for model and generate rules\n $manager = DB::connection()->getDoctrineSchemaManager();\n $details = $manager->listTableDetails($table);\n $foreignKeys = $manager->listTableForeignKeys($table);\n\n $this->generateRules($details, $foreignKeys);\n\n if (config('validate.cache')) {\n Cache::forever($cacheKey, $this->rules);\n }\n\n return $this->rules;\n }", "public function getValidationRules()\n {\n $rules = $this->getBasicValidationRules();\n\n if (in_array($this->type, ['char', 'string', 'text', 'enum'])) {\n $rules[] = 'string';\n if (in_array($this->type, ['char', 'string']) && isset($this->arguments[0])) {\n $rules[] = 'max:' . $this->arguments[0];\n }\n } elseif (in_array($this->type, ['timestamp', 'date', 'dateTime', 'dateTimeTz'])) {\n $rules[] = 'date';\n } elseif (str_contains(strtolower($this->type), 'integer')) {\n $rules[] = 'integer';\n } elseif (str_contains(strtolower($this->type), 'decimal')) {\n $rules[] = 'numeric';\n } elseif (in_array($this->type, ['boolean'])) {\n $rules[] = 'boolean';\n } elseif ($this->type == 'enum' && count($this->arguments)) {\n $rules[] = 'in:' . join(',', $this->arguments);\n }\n\n return [$this->name => join('|', $rules)];\n }", "public function rules()\n {\n $rules = [];\n if ($this->isMethod('post')) {\n $rules = [\n 'vacancy_name' => 'required|string|min:4|max:20',\n 'workers_amount' => 'required|integer|min:1|max:10',\n 'organization_id'=> 'required|integer|exists:organizations,id',\n 'salary' => 'required|integer|min:1|max:10000000',\n ];\n } elseif ($this->isMethod('put')) {\n $rules = [\n 'vacancy_name' => 'required|string|min:4|max:20',\n 'workers_amount' => 'required|integer|min:1|max:10',\n 'organization_id'=> 'required|integer|exists:organizations,id',\n 'salary' => 'required|integer|min:1|max:10000000',\n ];\n }\n return $rules;\n }", "public function validationRules()\n {\n return [];\n }", "public function rules()\n {\n $rules = $this->rules;\n if(Request::isMethod('PATCH')){\n $rules['mg_name'] = 'required|min:2,max:16';\n }\n return $rules;\n }", "function getValidationRules() {\n\t\treturn array(\n\t\t\t'_ID' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_EventID' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_SourceID' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_UserID' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_HasEvent' => array(\n\t\t\t\t'inArray' => array('values' => array(self::HASEVENT_0, self::HASEVENT_1),),\n\t\t\t),\n\t\t);\n\t}", "public function rules()\n {\n $rules = [];\n switch ($this->method()){\n case 'GET':\n $rules['mobile'] = ['required', 'regex:/^1[3456789]\\d{9}$/'];\n break;\n case 'POST':\n if($this->route()->getActionMethod() == 'sms') {\n $rules['area_code'] = ['digits_between:1,6'];\n if(in_array($this->get('type'), ['signup', 'reset_pay_pwd'])) {\n $rules['mobile'] = ['required', 'digits_between:5,20'];\n if($this->get('type') == 'signup' && !$this->get('area_code')) {\n $this->error('请选择区号');\n }\n }\n $rules['type'] = ['required', Rule::in(\\App\\Models\\Captcha::getSmsType())];\n }\n break;\n }\n return $rules;\n }", "public function rules()\n {\n if ($this->isMethod('post')) {\n return $this->createRules();\n } elseif ($this->isMethod('put')) {\n return $this->updateRules();\n }\n }", "public function rules()\n {\n $rules = [\n 'first_name' => ['required'],\n 'birthdate' => ['required', 'date', 'before:today'],\n ];\n\n if (is_international_session()) {\n $rules['email'] = ['required', 'email'];\n }\n\n if (should_collect_international_phone()) {\n $rules['phone'] = ['phone'];\n }\n\n if (is_domestic_session()) {\n $rules['phone'] = ['required', 'phone'];\n }\n\n return $rules;\n }", "public function rules()\n {\n dd($this->request->get('answer'));\n foreach ($this->request->get('answer') as $key => $val)\n {\n $rules['answer.'.$key] = 'required';\n }\n\n return $rules;\n }", "public function rules()\n {\n return static::$rules;\n }", "function getRules() {\n\t\t$fields = $this->getFields();\n\t\t$allRules = array();\n\n\t\tforeach ($fields as $field) {\n\t\t\t$fieldRules = $field->getValidationRules();\n\t\t\t$allRules[$field->getName()] = $fieldRules;\n\t\t}\n\n\t\treturn $allRules;\n\t}", "public static function getValidationRules(): array\n {\n return [\n 'name' => 'required|string|min:1|max:255',\n 'version' => 'required|float',\n 'type' => 'required|string',\n ];\n }", "public function rules()\n {\n $rules = [\n 'name' => 'required',\n 'phone' => 'required|numeric',\n 'subject' => 'required',\n 'message' => 'required',\n 'email' => 'required|email',\n ];\n\n return $rules;\n }", "public function getValidationRules(): array\n {\n return [\n 'email_address' => 'required|email',\n 'email_type' => 'nullable|in:html,text',\n 'status' => 'required|in:subscribed,unsubscribed,cleaned,pending',\n 'merge_fields' => 'nullable|array',\n 'interests' => 'nullable|array',\n 'language' => 'nullable|string',\n 'vip' => 'nullable|boolean',\n 'location' => 'nullable|array',\n 'location.latitude' => ['regex:/^[-]?(([0-8]?[0-9])\\.(\\d+))|(90(\\.0+)?)$/'], \n 'location.longitude' => ['regex:/^[-]?((((1[0-7][0-9])|([0-9]?[0-9]))\\.(\\d+))|180(\\.0+)?)$/'],\n 'marketing_permissions' => 'nullable|array',\n 'tags' => 'nullable|array'\n ];\n }", "protected function getValidationRules()\n {\n return [\n 'first_name' => 'required|max:255',\n 'last_name' => 'required|max:255',\n 'email' => 'required|email|max:255',\n 'new_password' => 'required_with:current_password|confirmed|regex:' . config('security.password_policy'),\n ];\n }", "public function rules()\n {\n // get 直接放行\n if( request()->isMethod('get') ){\n return []; // 规则为空\n }\n\n // 只在post的时候做验证\n return [\n 'username' => 'required|min:2|max:10', \n 'password' => 'required|min:2|max:10', \n 'email' => 'required|min:2|max:10|email', \n 'phoneNumber' => 'required|min:2|max:10', \n\n ];\n }", "public function rules()\n {\n\n $rules = [\n 'id_tecnico_mantenimiento' => 'required',\n 'id_equipo_mantenimiento' => 'required'\n ];\n\n if ($this->request->has('status')) {\n $rules['status'] = 'required';\n }\n\n if ($this->request->has('log_mantenimiento')) {\n $rules['log_mantenimiento'] = 'required';\n }\n\n return $rules;\n }", "public function rules()\n {\n $this->buildRules();\n return $this->rules;\n }", "public function rules()\n {\n $rules = [];\n\n if ($this->isUpdate() || $this->isStore()) {\n $rules = array_merge($rules, [\n 'name' => 'required|string',\n 'email' => 'email',\n 'password' => 'confirmed|min:6',\n\n ]);\n }\n\n if ($this->isStore()) {\n $rules = array_merge($rules, [\n\n ]);\n }\n\n if ($this->isUpdate()) {\n $rules = array_merge($rules, [\n ]);\n }\n\n return $rules;\n }", "public function rules()\n {\n switch (true) {\n case $this->wantsToList():\n $rules = $this->listRules;\n break;\n case $this->wantsToStore():\n $rules = $this->storeRules;\n break;\n case $this->wantsToUpdate():\n $this->storeRules['email'] = 'required|email|between:5,100|unique:users,email,' . $this->route('administrators');\n\n $rules = $this->storeRules;\n break;\n default:\n $rules = [];\n }\n\n return $rules;\n }", "public function rules()\n {\n if($this->isMethod('post')) {\n return $this->storeRules();\n }\n else if($this->isMethod('put') || $this->isMethod('patch')){\n return $this->updateRules();\n }\n }", "abstract protected function getValidationRules();", "public function rules()\n\t{\n\t\treturn ModelHelper::getRules($this);\n\t}", "public function rules()\n {\n switch ($this->method()) {\n case 'POST':\n return $this->getPostRules();\n case 'PUT':\n return $this->getPutRules();\n }\n }", "public function rules()\n {\n $rules = [\n 'name' => 'required|string|min:2',\n 'email' => \"required|email|unique:users,email, {$this->request->get('user_id')}\",\n 'role_id' => 'required|numeric',\n 'group_id' => 'required|numeric',\n ];\n\n if ($this->request->has('password')){\n $rules['password'] = 'required|min:6';\n }\n\n return $rules;\n }", "public function rules()\n {\n if($this->method() == 'POST')\n {\n return [\n 'reason'=>'required',\n 'date_from'=>'required',\n 'date_to'=>'required',\n 'attachment'=>'required',\n ];\n }\n }", "public function rules()\n {\n $method = $this->method();\n if ($this->get('_method', null) !== null) {\n $method = $this->get('_method');\n }\n // $this->offsetUnset('_method');\n switch ($method) {\n case 'DELETE':\n case 'GET':\n break; \n case 'POST':\n $mailRules = \\Config::get('database.default').'.users';\n break;\n case 'PUT':\n $user = $this->authService->authJWTUserForm();\n $mailRules = \\Config::get('database.default').'.users,email,'.$user->getKey();\n break;\n case 'PATCH':\n break;\n default:\n break;\n }\n \n return [\n 'name' => 'required|string|max:256',\n 'email' => 'required|string|email|max:255|unique:'.$mailRules,\n 'password' => 'required|string|min:3',\n ];\n }", "public function rules() {\n $rule = [\n 'value' => 'bail|required',\n ];\n if ($this->getMethod() == 'POST') {\n $rule += ['type' => 'bail|required'];\n }\n return $rule;\n }", "public function rules()\n {\n switch ($this->method()) {\n case 'GET':\n case 'DELETE': {\n return [];\n }\n case 'POST': {\n return [\n 'from' => 'required|max:100',\n 'to' => 'required|max:500',\n 'day' => 'required|max:500',\n ];\n }\n case 'PUT':\n case 'PATCH': {\n return [\n 'from' => 'required|max:100',\n 'to' => 'required|max:500',\n 'day' => 'required|max:500',\n ];\n }\n default:\n break;\n }\n\n return [\n //\n ];\n }", "public function rules()\n {\n switch ($this->method()) {\n case 'GET':\n case 'DELETE': {\n return [];\n }\n case 'POST':\n case 'PUT':\n case 'PATCH': {\n return [\n 'name' => 'required|string|max:255',\n 'iso_code_2' => 'required|string|size:2',\n 'iso_code_3' => 'required|string|size:3',\n ];\n }\n default:\n return [];\n }\n }", "public function rules()\n {\n switch ($this->method()) {\n case 'GET':\n case 'DELETE':\n return [];\n case 'POST':\n return [\n 'name' => 'required|string',\n 'lastName' => 'string',\n 'gender' => 'boolean',\n 'avatar' => 'sometimes|mimes:jpg,png,jpeg|max:3048'\n ];\n case 'PUT':\n case 'PATCH':\n return [\n 'oldPassword' => 'required|string',\n 'newPassword' => 'required|string',\n ];\n default:\n break;\n }\n }", "public function rules()\n {\n switch ($this->method()) {\n case 'GET':\n case 'DELETE':\n {\n return [\n 'validation' => [\n 'accepted'\n ]\n ];\n }\n case 'POST':\n {\n return [\n 'title' => [\n 'required',\n 'string',\n 'min:3',\n 'max:250'\n ],\n 'body' => [\n 'required',\n 'string',\n 'min:3',\n 'max:250000'\n ],\n 'online' => [\n 'required',\n ],\n 'indexable' => [\n 'required',\n ],\n 'published_at' => [\n 'required',\n ],\n 'published_at_time' => [\n 'required',\n ],\n 'unpublished_at' => [\n 'nullable',\n ],\n 'unpublished_time' => [\n 'nullable',\n ],\n ];\n }\n case 'PUT':\n {\n return [\n 'title' => [\n 'required',\n 'string',\n 'min:3',\n 'max:250'\n ],\n 'body' => [\n 'required',\n 'string',\n 'min:3',\n 'max:250000'\n ],\n 'online' => [\n 'required',\n ],\n 'indexable' => [\n 'required',\n ],\n 'published_at' => [\n 'required',\n ],\n 'unpublished_at' => [\n 'nullable',\n ],\n ];\n }\n case 'PATCH':\n {\n return [];\n }\n default:\n break;\n }\n }", "public function rules()\n {\n if (in_array($this->method(), ['PUT', 'PATCH'])) {\n $user = User::findOrFail(\\Request::input('id'))->first();\n\n array_forget($this->rules, 'email');\n $this->rules = array_add($this->rules, 'email', 'required|email|max:255|unique:users,email,' . $user->id);\n }\n\n return $this->rules;\n }", "public function rules()\n {\n $method = explode('@', $this->route()->getActionName())[1];\n return $this->get_rules_arr($method);\n }", "public function rules()\n {\n $rules = parent::rules();\n $extra_rules = [];\n $rules = array_merge($rules, $extra_rules);\n return $rules;\n }", "public function rules()\n {\n\t\tswitch($this->method()) {\n\t\t\tcase 'POST':\n\t\t\t\t{\n\t\t\t\t\treturn [\n\t\t\t\t\t\t'field_id' => 'integer|required',\n\t\t\t\t\t\t'label' => 'string|required',\n\t\t\t\t\t\t'value' => 'alpha_dash|required',\n\t\t\t\t\t\t'selected' => 'boolean',\n\t\t\t\t\t\t'actif' => 'boolean',\n\t\t\t\t\t];\n\t\t\t\t}\n\t\t\tcase 'PUT':\n\t\t\t\t{\n\t\t\t\t\treturn [\n\t\t\t\t\t\t'field_id' => 'integer|required',\n\t\t\t\t\t\t'label' => 'string|required',\n\t\t\t\t\t\t'value' => 'alpha_dash|required',\n\t\t\t\t\t\t'selected' => 'boolean',\n\t\t\t\t\t\t'actif' => 'boolean',\n\t\t\t\t\t];\n\t\t\t\t}\n\t\t\tdefault:break;\n\t\t}\n }", "public function rules()\n {\n $this->sanitize();\n return [\n 'event_id' => 'required',\n 'member_id' => 'required',\n 'guild_pts' => 'required',\n 'position' => 'required',\n 'solo_pts' => 'required',\n 'league_id' => 'required',\n 'solo_rank' => 'required',\n 'global_rank' => 'required',\n ];\n }", "public function rules()\n {\n $this->rules['email'] = ['required', 'min:6', 'max:60', 'email'];\n $this->rules['password'] = ['required', 'min:6', 'max:60'];\n\n return $this->rules;\n }", "public function getValidatorRules()\n {\n if ($validator = $this->getValidator()) {\n return $validator->getRulesForField($this->owner);\n }\n \n return [];\n }", "public function getValidationRules() : array;", "public function rules()\n {\n switch ($this->route()->getActionMethod()) {\n case 'login': {\n if ($this->request->has('access_token')) {\n return [\n 'access_token' => 'required',\n 'driver' => 'required|in:facebook,github,google',\n ];\n }\n return [\n 'email' => 'required|email',\n 'password' => 'required|min:6',\n ];\n }\n case 'register': {\n return [\n 'email' => 'required|email|unique:users,email',\n 'password' => 'required|min:6',\n 'name' => 'required',\n ];\n }\n default: return [];\n }\n }", "public function rules()\n {\n Validator::extend('mail_address_available', function($attribute, $value, $parameters, $validator){\n return MailAddressSpec::isAvailable($value);\n });\n Validator::extend('password_available', function($attribute, $value, $parameters, $validator){\n return PassWordSpec::isAvailable($value);\n });\n\n return [\n 'mail_address' => [\n 'required',\n 'mail_address_available'\n ],\n 'password' => [\n 'required',\n 'password_available',\n ],\n ];\n }", "public function rules()\n {\n switch (strtolower($this->method())) {\n case 'get':\n return $this->getMethodRules();\n case 'post':\n return $this->postMethodRules();\n case 'put':\n return $this->putMethodRules();\n case 'patch':\n return $this->patchMethodRules();\n case 'delete':\n return $this->deleteMethodRules();\n }\n }", "public function rules()\n {\n /**\n * This is the original way, expecting post params for each user value\n */\n return [\n 'firstName' => 'required|min:2|max:255',\n 'lastName' => 'required|min:2|max:255',\n 'phone' => 'min:9|max:25',\n 'gender' => 'in:M,V',\n 'dateOfBirth' => 'before:today|after:1890-01-01',\n 'email' => 'email|min:12|max:255',\n ];\n }", "public function getValidationRules(): array {\n\t\t$result = [];\n\t\t\n\t\tforeach ($this->getSections() as $section) {\n\t\t\t$result = array_merge($result, $section->getValidationRules());\n\t\t}\n\t\t\n\t\treturn $result;\n\t}", "public function rules()\n\t{\n\t\t$rule = [];\n\t\tif(Request::path() == 'api/utility/upload-image'){\n\t\t\t$rule = [\n\t\t\t\t'imagePath' => 'required',\n\t\t\t];\n\t\t}else if(Request::path() == 'api/utility/check-transaction'){\n\t\t\t$rule = [\n\t\t\t\t'countNumber' => 'required',\n\t\t\t];\n\t\t}\n\t\treturn $rule;\n\t}", "public function rules()\n {\n $rules = array();\n return $rules;\n }", "public function rules()\n {\n $this->setValidator($this->operation_type);\n return $this->validator;\n }", "public function rules()\n {\n switch($this->method()){\n case 'POST':\n return [\n 'name' => 'required',\n 'app_id' => 'required',\n 'account_id' => 'required',\n 'start_at' => 'required',\n 'end_at' => 'required',\n 'content' => 'required',\n ];\n break;\n default:\n return [];\n break;\n }\n\n }", "protected function get_validation_rules()\n {\n }", "public function rules()\n {\n $rules = [\n 'users' => 'required|array',\n ];\n\n foreach($this->request->get('users') as $key => $user) {\n $rules['users.'. $key . '.name'] = 'required|string|min:3|max:255';\n $rules['users.'. $key . '.phone'] = 'required|regex:/^[0-9\\+\\s]+$/|min:10|max:17';\n $rules['users.'. $key . '.country'] = 'required|string|min:2:max:3';\n }\n\n return $rules;\n }", "public function rules()\n {\n $rules = [\n 'mail_driver' => 'required',\n 'mail_name' => 'required',\n 'mail_email' => 'required',\n ];\n\n $newRules = [];\n\n if($this->mail_driver == 'smtp') {\n $newRules = [\n 'mail_host' => 'required',\n 'mail_port' => 'required|numeric',\n 'mail_username' => 'required',\n 'mail_password' => 'required',\n 'mail_encryption' => 'required',\n ];\n }\n\n return array_merge($rules, $newRules);\n }", "public function rules()\n {\n $rules['name'] = 'required';\n $rules['poa'] = 'required';\n $rules['background'] = 'required';\n $rules['tester_name'] = 'required';\n $rules['location'] = 'required';\n $rules['end_recruit_date'] = 'required';\n $rules['time_taken'] = 'required';\n $rules['payment'] = 'required';\n $rules['objective'] = 'required';\n $rules['method_desc'] = 'required';\n $rules['health_condition'] = 'required';\n $rules['required_applicant'] = 'required|integer';\n $rules['applicant'] = 'nullable';\n $rules['datetime'] = 'required';\n\n return $rules;\n }", "public function rules()\n {\n switch($this->method()) {\n\n case 'PUT':\n {\n return [\n 'company_name' => 'required',\n 'status' => 'required|integer',\n 'notify_url' => 'required',\n 'name' => 'required'\n ];\n }\n case 'POST':\n {\n return [\n 'company_name' => 'required',\n 'status' => 'required|integer',\n 'notify_url' => 'required',\n 'name' => 'required'\n ];\n }\n default:\n return [];\n }\n\n }", "public function rules()\n {\n $rules['name'] = 'required';\n $rules['poa'] = 'required';\n $rules['background'] = 'required';\n $rules['tester_name'] = 'required';\n\n return $rules;\n }", "public function rules()\n {\n switch(Route::currentRouteName()){\n case 'adminBinding' :\n return [\n 'order_id' => 'required|integer',\n 'money' => 'required|numeric',\n ];\n case 'adminUnbinding' :\n return [\n 'order_id' => 'required|integer',\n 'pivot_id' => 'required|integer',\n ];\n case 'adminReceiptSave' :\n case 'adminReceiptUpdate' :\n return [\n 'customer_id' => 'required',\n 'receiptcorp' => 'required',\n 'account' => 'required',\n 'account_id' => 'required',\n 'bank' => 'required',\n 'currency_id' => 'required',\n 'advance_amount' => 'required|numeric',\n 'picture' => 'required',\n 'business_type' => 'required|in:1,2,3,4,5',\n 'exchange_type' => 'required_unless:currency_id,354|in:1,2',\n 'expected_received_at' => 'required|date_format:Y-m-d',\n ];\n case 'adminReceiptExchange' :\n return [\n 'rate' => 'required|numeric',\n ];\n default :\n return [];\n }\n }", "public function rules()\n {\n $rules = [];\n $method = $this->getMethod();\n switch ($method) {\n case 'GET':\n if (Route::currentRouteName() === 'schoolActivity.getSchoolActivity') {\n $rules = [\n ];\n }\n break;\n }\n return $rules;\n }", "public function rules()\n {\n $rules = new Collection();\n\n if (!$this->user() or !$this->user()->addresses()->count()) {\n $rules = $rules->merge($this->addressRules('billing'));\n if ($this->has('different_shipping_address')) {\n $rules = $rules->merge($this->addressRules('shipping'));\n }\n\n return $rules->toArray();\n }\n\n return $rules->merge([\n 'billing_address_id' => 'required|numeric',\n 'shipping_address_id' => 'required|numeric',\n ])->toArray();\n }", "public function rules(): array\n {\n switch ($this->method()) {\n case 'POST':\n return $this->__rules() + $this->__post();\n case 'PUT':\n return $this->__rules() + $this->__put();\n default:\n return [];\n }\n }", "public function defineValidationRules()\n {\n return [];\n }", "public function rules(Request $request)\n {\n return Qc::$rules;\n }", "public function rules()\n {\n switch ($this->method()) {\n case 'POST':\n return [\n 'user_name' => 'nullable|string',\n 'excel' => 'nullable|file|mimes:xlsx',\n 'category' => 'required|int|in:' . implode(',', array_keys(UserMessage::$categories)),\n 'content' => 'required|string|max:500',\n 'member_status' => 'required|int|in:' . implode(',', array_keys(User::$statuses)),\n ];\n break;\n }\n }", "public function rules()\n {\n return [\n 'lead_id' => [\n 'required', 'string',\n ],\n 'api_version' => [\n 'required', 'string',\n ],\n 'form_id' => [\n 'required', 'int',\n ],\n 'campaign_id' => [\n 'required', 'int',\n ],\n 'google_key' => [\n 'required', 'string', new GoogleKeyRule,\n ],\n ];\n }" ]
[ "0.8342703", "0.80143493", "0.7937251", "0.79264987", "0.79233825", "0.79048395", "0.78603816", "0.7790699", "0.77842164", "0.77628785", "0.7737272", "0.7733618", "0.7710535", "0.7691693", "0.76849866", "0.7683038", "0.7683038", "0.7683038", "0.7683038", "0.7683038", "0.7683038", "0.7675849", "0.76724476", "0.76665044", "0.7657698", "0.7641827", "0.7630892", "0.76293766", "0.7617708", "0.76102096", "0.7607475", "0.7602442", "0.7598732", "0.7597544", "0.75924", "0.75915384", "0.7588146", "0.7581354", "0.7555758", "0.755526", "0.7551423", "0.7546329", "0.7541439", "0.75366044", "0.75363225", "0.7530296", "0.7517988", "0.75155175", "0.7508439", "0.75069886", "0.7505724", "0.749979", "0.7495976", "0.74949056", "0.7492888", "0.7491117", "0.74901396", "0.7489651", "0.7486808", "0.7486108", "0.7479687", "0.7478561", "0.7469412", "0.74635684", "0.74619836", "0.7461325", "0.74591017", "0.7455279", "0.745352", "0.7453257", "0.7449877", "0.74486", "0.7441391", "0.7440429", "0.7435489", "0.7435326", "0.74341524", "0.7430354", "0.7429103", "0.7423808", "0.741936", "0.74152505", "0.7414828", "0.741382", "0.74126065", "0.74105227", "0.740555", "0.7404385", "0.74040926", "0.74015605", "0.73905706", "0.73837525", "0.73732615", "0.7371123", "0.7369176", "0.73619753", "0.73554605", "0.73448825", "0.7344659", "0.73427117", "0.73357755" ]
0.0
-1
Display a listing of the resource.
public function index(ShippingsDatatable $shippings) { return $shippings->render('admin.shippings.index', ['title' => trans('admin.shippings')]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function indexAction()\n {\n $limit = $this->Request()->getParam('limit', 1000);\n $offset = $this->Request()->getParam('start', 0);\n $sort = $this->Request()->getParam('sort', array());\n $filter = $this->Request()->getParam('filter', array());\n\n $result = $this->resource->getList($offset, $limit, $filter, $sort);\n\n $this->View()->assign($result);\n $this->View()->assign('success', true);\n }", "public function listing();", "function index() {\n\t\t$this->show_list();\n\t}", "public function actionList() {\n $this->_getList();\n }", "public function listAction()\n {\n $model = $this->_getPhotoModel();\n $entries = $model->fetchEntries($this->_getParam('page', 1));\n\n $this->view->url = 'http://' . $this->_request->getHttpHost() . $this->_request->getBaseUrl(); \n $this->view->paginator = $entries;\n }", "public function index()\n {\n $items = Item::all();\n return ItemForShowResource::collection($items);\n }", "public function index()\n {\n return Resource::collection(($this->getModel())::paginate(10));\n }", "function index()\n\t{\n\t\t$this->_list();\n\t\t$this->display();\n\t}", "public function listingAction(){\n if (!LoginHelper::isAdmin()){\n Router::redirect('home', '<p class=\"alert alert-danger\">Unauthorized</p>');\n }\n $this->view->render('patient/list', Patient::all());\n }", "public function index()\n {\n //\n $list = $this->obj->all();\n\n return $this->render('index', compact('list'));\n }", "public function action_index()\n\t{\n\t\t$this->template->title = 'Resources';\n\t\t$this->view = View::factory('admin/resource/index');\n\t\t$this->template->scripts[] = 'media/js/jquery.tablesorter.min.js';\n\t\t$this->template->scripts[] = 'media/js/admin/resource.js';\n\t\t\n\t\t$resources = Sprig::factory('resource')->load(NULL, FALSE);\n\t\tif (!empty($resources))\n\t\t{\n\t\t\t$this->view->resources = $resources->as_array();\n\t\t}\n\t}", "function listing()\n\t\t{\n\t\t// en $this->_view->_listado para poder acceder a el desde la vista.\n\t\t\t$this->_view->_listado = $listado = $this->_instrumentoModel->getInstrumento();\n\t\t\t$this->_view->render('listing', '', '',$this->_sidebar_menu);\n\t\t}", "public function listAction()\n {\n $em = $this->getDoctrine()->getManager();\n \n $todos = $em->getRepository(Todo::class)->findAll();\n \n return $this->render('todo/index.html.twig', array(\n 'todos' => $todos,\n ));\n }", "public function index()\n\t{\n $this->authorize('list', Instance::class);\n\n\t\treturn $this->ok($this->repo->paginate($this->request->all()));\n\t}", "public function actionRestList() {\n\t $this->doRestList();\n\t}", "public function listing()\n\t{\n\t\t$hospitalID = $this->request->getSession()->read(\"hospital_id\") ? $this->request->getSession()->read(\"hospital_id\") : \"\";\n\t\t\n\t\t$patientMonitored = 1;\n\t\t$patientActive = 1;\n\t\t\n\t\t//GET ALL PATIENTS\n\t\t$patientsData = $this->Patients->allPatients($hospitalID,$patientMonitored,$patientActive);\n\t\t//GET ALL PATIENTS\n\t\t\n\t\t//echo \"<pre>\"; print_r($patientsData);die;\n\t\t$this->set(compact(\"patientsData\"));\n\t}", "public function listAction()\n {\n $htmlpage = '<!DOCTYPE html>\n<html>\n <head>\n <meta charset=\"UTF-8\">\n <title>todos list!</title>\n </head>\n <body>\n <h1>todos list</h1>\n <p>Here are all your todos:</p>\n <ul>';\n \n $em = $this->getDoctrine()->getManager();\n $todos = $em->getRepository(Todo::class)->findAll();\n foreach($todos as $todo) {\n $htmlpage .= '<li>\n <a href=\"/todo/'.$todo->getid().'\">'.$todo->getTitle().'</a></li>';\n }\n $htmlpage .= '</ul>';\n\n $htmlpage .= '</body></html>';\n \n return new Response(\n $htmlpage,\n Response::HTTP_OK,\n array('content-type' => 'text/html')\n );\n }", "public function index()\n {\n // Get Persons\n $person = Person::paginate(10);\n\n //Return collection of person as a resource\n return PersonResource::collection($person);\n }", "public function listAction() {\n\t\t$this->view->title = $this->translator->translate(\"Invoice list\");\n\t\t$this->view->description = $this->translator->translate(\"Here you can see all the invoices.\");\n\t\t$this->view->buttons = array(array(\"url\" => \"/admin/invoices/new/\", \"label\" => $this->translator->translate('New'), \"params\" => array('css' => null)));\r\n\t\t$this->datagrid->setConfig ( Invoices::grid() )->datagrid ();\n\t}", "public function listAll()\n\t{\n\t\t$this->render(self::PATH_VIEWS . '/list', [\n\t\t\t'pages' => $this->pagesDb->findAll('id', 'DESC'),\n\t\t]);\n\t}", "public function list()\n {\n // récupérer les données : toutes les catégories enregistrées\n $productList = Product::findAll();\n\n $this->show('product/list', [\n 'productList' => $productList\n ]);\n }", "public function index()\n {\n // CRUD -> Retrieve --> List\n // BREAD -> Browse Read Edit Add Delete\n // return Item::all();\n return view('list_items',compact('items'));\n }", "public function index()\n {\n // Get manufacturers\n $manufacturers = Manufacturer::orderBy('created_at', 'desc')->paginate(15);\n\n // Return collection of manufacturers as a resource\n return ManufacturerResource::collection($manufacturers);\n }", "public function index()\n {\n return ArtistResource::collection(Artist::orderBy('created_at', 'desc')->get());\n }", "public function indexAction() {\n\t\t$page = intval($this->getInput('page'));\n\t\t$perpage = $this->perpage;\n\t\t\n\t\tlist(,$files) = Lock_Service_FileType::getAllFileType();\n\t\t$data = array();\n\t\tforeach ($files as $key=>$value) {\n\t\t\t$data[$key]['id'] = $value['id'];\n\t\t\t$data[$key]['title'] = $value['name'];\n\t\t}\n\t\tlist($total, $filetype) = Lock_Service_FileType::getList($page, $perpage);\n\t\t$this->assign('filetype', $filetype);\n\t\t$this->assign('pager', Common::getPages($total, $page, $perpage, $this->actions['listUrl'].'/?'));\n\t\t$this->assign('data', json_encode($data));\n\t}", "public function listAction()\n {\n $qb = $this->getRepository()->queryAll();\n\n $view = new ImportListView;\n $view->imports = $qb->getQuery()->execute();\n\n return $this->templating->renderResponse('InfiniteImportBundle:Import:list.html.twig', array(\n 'data' => $view\n ));\n }", "public function index()\n\t{\n\t\t//Return model all()\n\t\t$instances = $this->decorator->getListingModels();\n\n\t\treturn View::make($this->listingView, array(\n\t\t\t'instances' => $instances,\n\t\t\t'controller' => get_class($this), \n\t\t\t'modelName' => class_basename(get_class($this->decorator->getModel())),\n\t\t\t'columns' => $this->getColumnsForInstances($instances),\n\t\t\t'editable' => $this->editable\n\t\t));\n\t}", "public function index()\n {\n return InfografiResources::collection(\n Infografi::orderBy('date', 'desc')->get()\n );\n }", "public function listAction()\n\t {\n\t\t\t$this->_forward('index');\n \n\t\t}", "public function index()\n {\n $this->list_view();\n }", "public function index()\n {\n $this->list_view();\n }", "public function index()\n {\n $this->list_view();\n }", "public function listAction()\n {\n $defaults = array(\n 'page' => null,\n 'order' => null,\n 'limit' => null,\n 'offset' => null,\n 'filter' => array(),\n );\n $body = $this->getRequest()->getBody();\n $options = $body + $defaults;\n\n // Process the options\n if (is_string($options['order'])) {\n $options['order'] = array_map('trim', explode(',', $options['order']));\n }\n if (is_string($options['page'])) {\n $options['page'] = (int)$options['page'];\n }\n if (is_string($options['limit'])) {\n $options['limit'] = (int)$options['limit'];\n }\n if (is_string($options['offset'])) {\n $options['offset'] = (int)$options['offset'];\n }\n $filter = $options['filter'];\n unset($options['filter']);\n\n $options = array_filter($options);\n\n return $this->getBinding()->find($filter, $options);\n }", "public function index()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Get the resources from the model */\n $resources = $this->resourcesList($this->model);\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.index\")) {\n $view = \"admin.{$this->name}.index\";\n } else {\n $view = 'admin.includes.actions.index';\n }\n\n /* Display a listing of the resources */\n return view($view)\n ->with('resources', $resources)\n ->with('module', $this->module);\n }", "public function index()\n\t{\n\t\t$data['lists'] = $this->mdl_student->get_all();\n\t\t$this->template->set('title', 'Student Hostel List');\n\t\t$this->template->load('template', 'contents', 'student_hostel/student_hostel_list', $data);\n\t}", "public function index()\n {\n $modules = Module::all();\n return Resource::collection($modules);\n }", "public function index()\n {\n // List all resources from user entity\n $users = User::all();\n\n return $this->showAll($users);\n }", "public function index()\n {\n // Get todos\n $todos = Todo::orderBy('created_at', 'desc')->paginate(3);\n\n // Return collection of articles as a resource\n return TodoResource::collection($todos);\n }", "public function index()\n {\n return Resources::collection(Checking::paginate());\n }", "public function index()\n {\n return CourseListResource::collection(\n Course::query()->withoutGlobalScope('publish')\n ->latest()->paginate()\n );\n }", "public function index()\n {\n $cars = Car::paginate(15);\n return CarResource::collection($cars);\n }", "public function index()\n {\n // Get articles\n $articles = Article::orderBy('created_at', 'desc')->paginate(5);\n\n // Return collection of articles as a resource\n return ArticleResource::collection($articles);\n }", "public function index()\n {\n $authors = Author::paginate(10);\n\n return AuthorResource::collection($authors);\n }", "public function index()\n {\n //Get Books\n $books = Book::paginate(10);\n \n if ($books) {\n return (BookResource::collection($books))->additional([\n 'status_code' => 200,\n 'status' => 'success',\n ]);\n } else {\n return (BookResource::collection([]))->additional([\n 'status_code' => 200,\n 'status' => 'success',\n ]);\n }\n return view('index')->with('data', $books);\n }", "public function view(){\n\t\t$this->buildListing();\n\t}", "public function index()\n {\n $books = Book::latest()\n ->paginate(20);\n\n return BookResource::collection($books);\n }", "public function index()\n {\n $listing = Listing::orderBy('id', 'desc')->paginate(10);\n return view('listings.index')->withListings($listing);\n }", "public function listAction()\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 }", "public function index()\n {\n $services = $this->serviceRepository->paginate();\n\n return ServiceResource::collection($services);\n }", "public function index()\n {\n $resources = ResourceManagement::paginate(5);\n $users = User::get();\n\n return view('resources-mgmt/index', ['resources' => $resources, 'users' => $users]);\n }", "public function index()\n {\n $catalogs = Catalog::where('status', '=', Catalog::PUBLICADO)\n ->orderBy('id', 'DESC')->get();\n \n $data = CatalogResource::collection($catalogs);\n\n return [\n 'items' => $data,\n 'mensaje' => ''\n ];\n }", "public function listAction(){\n // In a controller this can be:\n // $this->request->getQuery('page', 'int'); // GET\n $currentPage = $this->request->getPost('pageindex', 'int'); // POST\n $pageNum = ($currentPage == null) ? 1 : $currentPage;\n\n // The data set to paginate\n $message = new Notice();\n $results = $message->getMsg4Admin();\n\n // Create a Model paginator, show 10 rows by page starting from $currentPage\n $paginator = new PaginatorArray(\n array(\n \"data\" => $results,\n \"limit\" => 10,\n \"page\" => $pageNum\n )\n );\n\n // Get the paginated results\n $page = $paginator->getPaginate();\n\n return $this->response->setJsonContent($page);\n\n }", "public function list()\n {\n try {\n return $this->success($this->service->list());\n } catch (\\Exception $exception) {\n return $this->error($exception->getMessage());\n }\n }", "public function index()\n {\n return $this->sendResponse(CrisisResource::collection(Crisis::paginate(10)), 'Data fetched successfully');\n }", "public function index()\n\t{\n\t\t$%Alias = new %Model();\n\t\t$params = array();\n\t\t\n\t\t$Paginator = new Paginator( $%Alias->findSize( $params ), $this->getLimit(), $this->getPage() );\n\t\t$this->getView()->set( '%Aliass', $%Alias->findList( $params, 'Id desc', $this->getOffset(), $this->getLimit() ) );\n\t\t$this->getView()->set( 'Paginator', $Paginator );\n\t\treturn $this->getView()->render();\n\t}", "public function listAction() {}", "public function index()\n {\n\n return RecipeResource::collection(Recipe::all());\n }", "public function index()\n {\n $this->indexPage('list-product', 'List Product');\n }", "public function listAction()\n {\t\n\t\t$this->removeSession();\n\t\t$this->verifySessionRights();\n\t\t$this->setActivity(\"List view\");\n $em = $this->getDoctrine()->getManager();\n $oRepClient = $em->getRepository('BoAdminBundle:Client');\n\t\t$nb_tc = $oRepClient->getTotal();\n\t\t//get page\n\t\t$page = $this->get('session')->get('page');\n\t\tif($page==null){\n\t\t\t$page=1;\n\t\t\t$this->get('session')->set('page',1);\n\t\t}\n\t\t//get number line per page\n\t\t$nb_cpp = $em->getRepository('BoAdminBundle:Param')->getParam(\"display_list_page_number\",1);\n\t\t$nb_pages = ceil($nb_tc/$nb_cpp);\n\t\t$offset = $page>0?($page-1) * $nb_cpp:0;\n\t\t$clients = $em->getRepository('BoAdminBundle:Client')->findBy(array(),array('id' => 'desc'),$nb_cpp,$offset);\n $form = $this->createForm('Bo\\AdminBundle\\Form\\ClientType', new Client());\n return $this->render('client/index.html.twig', array(\n 'clients' => $clients,\n\t\t\t'page' => $page, // forward current page to view,\n\t\t\t'nb_pages' => $nb_pages, //total number page,\n 'form' => $form->createView(),\n\t\t\t'total'=>$nb_tc, // record number.\n\t\t\t'nb_cpp' => $nb_cpp,// line's number to display\n\t\t\t'pm'=>\"contracts\",\n\t\t\t'sm'=>\"client\",\n ));\n }", "public function index()\n {\n return AcResource::collection(Ac::latest()->paginate()); //\n }", "public function executeList()\n {\n $this->setTemplate('list');\n }", "public function indexAction()\n {\n $books = Book::getAll();\n\n View::renderTemplate('Books/index.html', [\n 'books' => $books\n ]);\n }", "function listing() {\r\n\r\n }", "public function listar() {\n $rs = $this->model->listar();\n\n echo $this->toJson($rs);\n }", "public function index()\n {\n return BookResource::collection(Book::orderby('id')->get());\n }", "public function doRestList()\n {\n $this->outputHelper( \n 'Records Retrieved Successfully', \n $this->getModel()->with($this->nestedRelations)->filter($this->restFilter)->orderBy($this->restSort)->limit($this->restLimit)->offset($this->restOffset)->findAll(),\n $this->getModel()->with($this->nestedRelations)->filter($this->restFilter)->count()\n );\n\t}", "public function index()\n {\n $client = Client::paginate();\n return ClientResource::collection($client);\n }", "public function index()\n {\n return TagResource::collection(\n Tag::orderBy('name', 'ASC')->paginate(request('per_page', 10))\n );\n }", "public function _index(){\n\t $this->_list();\n\t}", "public function index()\n\t{\n\t\t$data['lists'] = $this->gallery_mdl->get_all();\n\t\t$this->template->set('title', 'Gallery');\n\t\t$this->template->render('template', 'list', $data);\n\t}", "function drush_restapi_list() {\n\n $resources = restapi_get_resources();\n $last_module = NULL;\n $rows = [\n [dt('Module'), dt('Path'), dt('Class')],\n ];\n\n foreach($resources as $resource) {\n if ($last_module != $resource->getModule()) {\n $module = $last_module = $resource->getModule();\n }\n else {\n $module = '';\n }\n $rows[] = [$module, $resource->getPath(), $resource->getClass()];\n }\n\n drush_print_table($rows, TRUE);\n drush_log(dt('Displaying !count total resources', [\n '!count' => count($resources),\n ]), 'ok');\n\n}", "public function index()\n {\n $this->booklist();\n }", "public function index()\n {\n //\n $accounts = accounts::paginate(15);\n\n //return the collection of employees as a resource\n return accountResource::collection($accounts);\n\n\n }", "public function index()\n {\n $items = Item::all();\n return view('items::list_items',compact('items'));\n }", "public function index()\n {\n // Get houses\n $houses = House::orderBy('created_at', 'desc')->paginate(self::PAGINATE);\n \n // Return collection of houses\n \n return HouseResource::collection($houses);\n }", "public function index()\n {\n $products = Product::paginate(6);\n return ProductResource::collection($products);\n }", "public function index() {\n $this->template->allFoundItems = Found::showAll();\n $this->template->display( 'index.html.php' );\n }", "public function indexAction() {\n $this->_forward('list');\n }", "public function index()\n {\n $data = Productcategory::paginate(10);\n\t\treturn ProductcategoryResource::Collection($data);\n }", "public function index()\n {\n return SongResource::collection(\\App\\Song::orderBy('created_at', 'desc')->get());\n }", "public function ListView()\n\t{\n\t\t\n\t\t// Requer permissão de acesso\n\t\t$this->RequirePermission(Usuario::$P_ADMIN,\n\t\t\t\t'SecureExample.LoginForm',\n\t\t\t\t'Autentique-se para acessar esta página',\n\t\t\t\t'Você não possui permissão para acessar essa página ou sua sessão expirou');\n\t\t\n\t\t//$usuario = Controller::GetCurrentUser();\n\t\t//$this->Assign('usuario',$usuario);\n\t\t$this->Render();\n\t}", "public function index () {\n permiss ( 'role.list' );\n\n $data = $this->entity\n ->orderBy('created_at', 'desc')->get();\n\n return new ModelResource($data);\n }", "public function showResources()\n {\n $resources = Resource::get();\n return view('resources', compact('resources'));\n }", "public function index()\n {\n //get articless\n $articles = Article::paginate(15);\n\n //Return collection of article has a resource\n return ArticleResource::collection($articles);\n\n }", "public function actionList() {\n header(\"Content-type: application/json\");\n $verb = $_SERVER[\"REQUEST_METHOD\"];\n\n if ($verb === 'GET') {\n echo \"{\\\"data\\\":\" . CJSON::encode(Donneur::model()->findAll()) . \"}\";\n } else if ($verb == 'POST') {\n if (Donneur::model()->exists('id' === $_POST['id'])) {\n $this->actionListUpdate($_POST);\n } else {\n $this->actionListPost();\n }\n } else if ($verb == 'DELETE') {\n $this->actionListDelete();\n }\n }", "public function list()\n {\n return $this->http->request(HttpMethods::GET, $this->endpoint);\n }", "public function indexAction(){\n $data = array(\n 'collection' => $this->model->getCollection(),\n \n ); \t\n return $this->getView($data);\n }", "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $entities = $em->getRepository('DiverPriceLisrBundle:Items')->findAll();\n\n return $this->render('DiverPriceLisrBundle:Items:index.html.twig', array(\n 'entities' => $entities,\n ));\n }", "public function actionIndex()\n {\n $dataProvider = new ActiveDataProvider([\n 'query' => Slaves::find(),\n ]);\n\n return $this->render('index', [\n 'dataProvider' => $dataProvider,\n ]);\n }", "public function listAction() {\n\t\t// Recogemos el repositorio\n\t\t$repository = $this->getDoctrine() ->getRepository('AppBundle:Product');\n\t\n\t\t// Recuperamos todos los productos.\n\t\t$products = $repository->findAll();\n\t\t// Pasamos a la plantilla el aray products\n\t\treturn $this->render('product/listActionProduct.html.twig', array( 'products' => $products));\n\t\n\t}", "public function listAction()\n\t {\n\t\t$model = $this->_getModel();\n\t\t$result = $model->getLayouts();\t\n\t\t$page = (int)($this->_request->getParam('page')); \n\t\tif(count($result) > 0)\n\t\t{ \n\t\t\tGlobals::doPaging($result, $page, $this->view);\n\t\t}\n\t\t\t\t\n\t\t$this->view->page = $page;\n\t }", "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 $model->u_cms_album_id = $_GET['album'];\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 // datas\n $datas = $dataProvider->getData();\n\n // related datas\n $relatedDatas = $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 $filtersDatas = array();\n if (isset($_GET[$this->_model])) {\n $filtersDatas[$this->_model] = $_GET[$this->_model];\n }\n if (isset($_GET[$sort->sortVar])) {\n $filtersDatas[$sort->sortVar] = $_GET[$sort->sortVar];\n }\n\n $jsonParams = array(\n 'filters' => http_build_query($filtersDatas)\n );\n }\n\n $this->dynamicRender(\n $template,\n array(\n 'dataView' => new $this->crudComponents['listDataView'](\n $datas, $relatedDatas, $model, $sort, $pagination, $this\n )\n ),\n $jsonParams\n );\n }", "public function index()\n {\n return view('listings.index')->with('listings', Listing::all());\n }", "public function get_index()\n\t{\n\t\t$pages = Page::recent_available()->paginate(30);\n\t\t$table = Cello\\Presenter\\Page::table($pages);\n\t\t$data = array(\n\t\t\t'eloquent' => $pages,\n\t\t\t'table' => $table,\n\t\t);\n\n\t\tSite::set('title', __('cello::title.pages.list'));\n\n\t\treturn View::make('cello::api.resources.index', $data);\n\t}", "public function index()\n {\n return ProductResource::collection(Product::latest()->paginate(10));\n }", "public function index()\n {\n $category = GalleryCategory::paginate(15);\n\n // return collection of category as a resource.\n return Resource::collection($category);\n }", "public function index()\n {\n //\n $news = News::latest()->paginate(18);\n\n return NewsResource::collection($news);\n }", "public function indexAction() {\n\t\t$list_info = Zend_Registry::get('list_info');\n if (!Engine_Api::_()->core()->hasSubject('list_listing')) {\n return $this->setNoRender();\n }\n \n $this->view->expiry_setting = Engine_Api::_()->list()->expirySettings();\n\n //GET SUBJECT\n $this->view->list = $list = Engine_Api::_()->core()->getSubject('list_listing');\n\n\t\t//GET CATEGORY TABLE\n\t\t$this->view->tableCategory = Engine_Api::_()->getDbTable('categories', 'list');\n\n //GET CATEGORIES NAME\n\t\t$this->view->category_name = $this->view->subcategory_name = $this->view->subsubcategory_name = '';\n\n\t\tif(!empty($list->category_id)) {\n\t\t\tif($this->view->tableCategory->getCategory($list->category_id))\n\t\t\t$this->view->category_name = $this->view->tableCategory->getCategory($list->category_id)->category_name;\n\n\t\t\tif(!empty($list->subcategory_id)) {\n\t\t\t\tif($this->view->tableCategory->getCategory($list->subcategory_id))\n\t\t\t\t$this->view->subcategory_name = $this->view->tableCategory->getCategory($list->subcategory_id)->category_name;\n\n\t\t\t\tif(!empty($list->subsubcategory_id)) {\n\t\t\t\t\tif($this->view->tableCategory->getCategory($list->subsubcategory_id))\n\t\t\t\t\t$this->view->subsubcategory_name = $this->view->tableCategory->getCategory($list->subsubcategory_id)->category_name;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n //GET LISTING TAGS\n $this->view->listTags = $list->tags()->getTagMaps();\n\n\t\t//GET OTHER DETAILS\n\t\t$this->view->list_description = Zend_Registry::get('list_descriptions');\n $this->view->addHelperPath(APPLICATION_PATH . '/application/modules/Fields/View/Helper', 'Fields_View_Helper');\n $this->view->fieldStructure = Engine_Api::_()->fields()->getFieldsStructurePartial($list);\n\t\tif(empty($list_info)){ return $this->setNoRender(); }\n }", "public function index()\n {\n return $this->service->fetchResources(Author::class, 'authors');\n }", "public function index()\n {\n return view('admin.resources.index');\n }", "public function doRestList() {\n\t\t$this->outputHelper ( 'Collections Retrieved Successfully', $this->getModel ()->with ( $this->nestedRelations )->filter ( $this->restFilter )->orderBy ( $this->restSort )->limit ( $this->restLimit )->offset ( $this->restOffset )->findAll (), $this->getModel ()->with ( $this->nestedRelations )->filter ( $this->restFilter )->count () );\n\t}" ]
[ "0.7446777", "0.736227", "0.73005503", "0.72478926", "0.71631265", "0.71489686", "0.7131636", "0.7105969", "0.71029514", "0.7101372", "0.70508176", "0.6995128", "0.69890636", "0.6934895", "0.6900203", "0.6899281", "0.6891734", "0.6887235", "0.68670005", "0.6849741", "0.6830523", "0.6802689", "0.6797", "0.67957735", "0.67871135", "0.6760129", "0.67427456", "0.6730486", "0.67272323", "0.67255723", "0.67255723", "0.67255723", "0.67177945", "0.6707866", "0.6706713", "0.6704375", "0.6664782", "0.6662871", "0.6660302", "0.6659404", "0.6656656", "0.6653517", "0.6647965", "0.6620322", "0.66185474", "0.6618499", "0.6606105", "0.6600617", "0.65996987", "0.6594775", "0.6587389", "0.6585109", "0.6581641", "0.6581017", "0.6577157", "0.65747666", "0.6572513", "0.65721947", "0.6570553", "0.65646994", "0.6563556", "0.6554194", "0.65529937", "0.65460825", "0.65368485", "0.653429", "0.65328294", "0.6526759", "0.6526695", "0.6526284", "0.65191334", "0.65183175", "0.65174305", "0.651703", "0.65141153", "0.6507088", "0.65061647", "0.6504046", "0.64942145", "0.6491893", "0.64883405", "0.6486392", "0.6485077", "0.64846045", "0.6478858", "0.64756656", "0.64726377", "0.6471126", "0.64701074", "0.6467418", "0.6462195", "0.64618355", "0.6459199", "0.6457831", "0.6454631", "0.64533997", "0.6451915", "0.6450861", "0.6449301", "0.64492667", "0.64469045" ]
0.0
-1
Show the form for creating a new resource.
public function create() { return view('admin.shippings.create', ['title' => trans('admin.create')]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return view('admin.resources.create');\n }", "public function create(){\n\n return view('resource.create');\n }", "public function create()\n\t{\n\t\treturn $this->showForm('create');\n\t}", "public function create()\n {\n return \"Display a form for creating a new catalogue\";\n }", "public function newAction()\n {\n $entity = new Resource();\n $current = $this->get('security.context')->getToken()->getUser();\n $entity->setMember($current);\n $form = $this->createCreateForm($entity);\n\n return array(\n 'nav_active'=>'admin_resource',\n 'entity' => $entity,\n 'form' => $form->createView(),\n );\n }", "public function create()\n {\n return view ('forms.create');\n }", "public function create ()\n {\n return view('forms.create');\n }", "public function create()\n\t{\n\t\treturn view('faith.form');\n\t}", "public function create(NebulaResource $resource): View\n {\n $this->authorize('create', $resource->model());\n\n return view('nebula::resources.create', [\n 'resource' => $resource,\n ]);\n }", "public function create()\n {\n return view(\"request_form.form\");\n }", "public function create()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.create\")) {\n $view = \"admin.{$this->name}.create\";\n } else {\n $view = 'admin.includes.actions.create';\n }\n\n /* Show the form for creating a new resource. */\n return view($view)\n ->with('name', $this->name);\n }", "public function newAction()\n\t{\n\t\t$this->render( View::make( 'schools/form' , array(\n\t\t\t'title' => 'Ajouter une nouvelle &eacute;cole'\n\t\t) ) );\n\t}", "public function create()\n {\n return view($this->forms . '.create');\n }", "public function create()\n {\n return view('restful.add');\n }", "public function create()\n {\n $resource = (new AclResource())->AclResource;\n\n //dd($resource);\n return view('Admin.acl.role.form', [\n 'resource' => $resource\n ]);\n }", "public function create()\n {\n return view('admin.createform');\n }", "public function create()\n {\n return view('admin.forms.create');\n }", "public function create()\n {\n return view('backend.student.form');\n }", "public function newAction()\n {\n $breadcrumbs = $this->get(\"white_october_breadcrumbs\");\n $breadcrumbs->addItem('Inicio', $this->get('router')->generate('admin.homepage'));\n $breadcrumbs->addItem($this->entityDescription, $this->get(\"router\")->generate(\"admin.$this->entityName.index\"));\n $breadcrumbs->addItem('Nuevo');\n\n $entity = $this->getManager()->create();\n $form = $this->getForm($entity);\n\n return $this->render('AdminBundle:Default:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'metadata' => $this->getMetadata()\n ));\n }", "public function create()\n {\n return view('client.form');\n }", "public function create()\n {\n // Nos regresa la vista del formulario\n return view('project.form');\n }", "public function create()\n {\n return view('Form');\n }", "public function newAction(){\n \n $entity = new Resourceperson();\n $form = $this->createAddForm($entity);\n\n \n return $this->render('ABCRspBundle:rsp:add.html.twig',array('entity'=>$entity,'form'=> $form->createView()));\n }", "public function createForm()\n\t{\n\t\treturn view('post.new');\n\t}", "public function create()\n {\n return view('admin.form.create', ['form' => new Form]);\n }", "public function create()\n {\n return view('form');\n }", "public function create()\n {\n return view('form');\n }", "public function create()\n {\n return view('form');\n }", "public function create()\n {\n $title = $this->title;\n $subtitle = \"Adicionar cliente\";\n\n return view('admin.clients.form', compact('title', 'subtitle'));\n }", "public function create()\n {\n return view('backend.schoolboard.addform');\n }", "public function create()\n\t{\n\t\treturn view('info.forms.createInfo');\n\t}", "public function create()\n {\n //\n return view('form');\n }", "public function create()\n {\n return view('rests.create');\n }", "public function create()\n {\n return $this->showForm();\n }", "public function create()\n {\n return $this->showForm();\n }", "public function create()\n {\n return view(\"Add\");\n }", "public function create(){\n return view('form.create');\n }", "public function create()\n {\n // Show the page\n return view('admin.producer.create_edit');\n }", "public function create()\n {\n\n return view('control panel.student.add');\n\n }", "public function newAction() {\n\t\t\n\t\t$this->view->form = $this->getForm ( \"/admin/invoices/process\" );\n\t\t$this->view->title = $this->translator->translate(\"New Invoice\");\n\t\t$this->view->description = $this->translator->translate(\"Create a new invoice using this form.\");\n\t\t$this->view->buttons = array(array(\"url\" => \"#\", \"label\" => $this->translator->translate('Save'), \"params\" => array('css' => null,'id' => 'submit')),\r\n\t\t\t\t\t\t\t array(\"url\" => \"/admin/invoices/list\", \"label\" => $this->translator->translate('List'), \"params\" => array('css' => null)));\n\t\t$this->render ( 'applicantform' );\n\t}", "public function create()\n {\n $data['action'] = 'pengiriman.store';\n return view('pengiriman.form', $data);\n }", "public function create()\n {\n return $this->cView(\"form\");\n }", "public function newAction()\n {\n // Création de l'entité et du formulaire.\n $client = new Client();\n $formulaire = $this->createForm(new ClientType(), $client);\n \n \n \n // Génération de la vue.\n return $this->render('KemistraMainBundle:Client:new.html.twig',\n array('formulaire' => $formulaire->createView()));\n }", "public function create()\n {\n return view(\"dresses.form\");\n }", "public function create()\n\t{\n\t\treturn View::make('new_entry');\n\t}", "public function createAction()\n {\n// $this->view->form = $form;\n }", "public function create()\n {\n return view('bank_account.form', ['mode' => 'create']);\n }", "public function create()\n {\n return view('fish.form');\n }", "public function create()\n {\n return view('users.forms.create');\n }", "public function create()\n {\n $this->setFormFields($this->getCreateFormFields());\n $form = $this->getCreateForm();\n\n return view($this->getViewName('create'), [\n 'crudSlug' => $this->slug,\n 'form' => $form,\n ]);\n }", "public function create()\n\t{\n\t\treturn view('admin.estadoflete.new');\n\t}", "public function create()\n {\n $person = new Person;\n return view('contents.personform')->with(compact('person') );\n }", "public function createAction(){\n \t$this->view->placeholder('title')->set('Create');\n \t$this->_forward('form');\n }", "public function create()\n {\n Gate::authorize('app.products.create');\n\n return view('backend.products.form');\n }", "public function create()\n {\n return view('essentials::create');\n }", "public function create()\n {\n return view('student.add');\n }", "public function create()\n\t{\n\t\treturn view('loisier/create');\n\t}", "public function create()\n {\n return view('url.form');\n }", "public function newAction()\n {\n $entity = new Facture();\n $factureType = new FactureType();\n\t\t$factureType->setUser($this->get('security.context')->getToken()->getUser());\n $form = $this->createForm($factureType, $entity);\n\n return $this->render('chevPensionBundle:Facture:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function newAction()\n {\n $entity = new Chofer();\n $form = $this->createForm(new ChoferType(), $entity, ['user' => $this->getUser()]);\n\n return $this->render('ChoferesBundle:Chofer:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'css_active' => 'chofer',\n ));\n }", "public function create()\n\t{\n\t\treturn View::make('crebos.create');\n\t}", "public function create() : View\n {\n $fieldset = $this->menuFieldset();\n\n return $this->view('create', [\n 'title' => trans('addons.Aardwolf::titles.create'),\n 'data' => [],\n 'fieldset' => $fieldset->toPublishArray(),\n 'suggestions' => [],\n 'submitUrl' => route('aardwolf.postCreate')\n ]);\n }", "public function create()\n {\n return view('libro.create');\n }", "public function create()\n {\n return view('libro.create');\n }", "public function newAction()\n {\n $entity = new Species();\n $form = $this->createForm(new SpeciesType(), $entity);\n\n return $this->render('InfectBackendBundle:Species:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function create()\n {\n return view('crud/add'); }", "public function create()\n\t{\n\t\treturn View::make('supplier.create');\n\t}", "public function newAction()\n {\n $entity = new Company();\n $form = $this->createForm(new CompanyType(), $entity);\n\n return $this->render('SiteSavalizeBundle:Company:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function create()\n {\n return view(\"List.form\");\n }", "public function index_onCreateForm()\n\t{\n\t\tparent::create();\n\t\treturn $this->makePartial('create');\n\t}", "public function create()\n {\n //load create form\n return view('products.create');\n }", "public function create()\n {\n return view('article.addform');\n }", "public function create()\n {\n // Mengarahkan ke halaman form\n return view('buku.form');\n }", "public function create()\n\t{\n\t\t// load the create form (app/views/material/create.blade.php)\n\t\t$this->layout->content = View::make('material.create');\n\t}", "public function create()\n {\n return view('saldo.form');\n }", "public function create()\n\t\t{\n\t\t\treturn view('kuesioner.create');\n\t\t}", "public function view_create_questioner_form() {\n \t// show all questioner\n \t// send questioner to form\n \treturn view(\"create_questioner\");\n }", "public function newAction() {\n $entity = new Question();\n $form = $this->createCreateForm($entity);\n\n return $this->render('CdlrcodeBundle:Question:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function create()\n {\n $data['companies'] = Company::select('id', 'name')->where('status', 1)->orderBy('id', 'desc')->get();\n return view('admin.outlet.outlet_form', $data);\n }", "public function create()\n {\n return view('admin.inverty.add');\n }", "public function create()\n {\n return view('Libro.create');\n }", "public function create()\n {\n $title = trans('entry_mode.new');\n return view('layouts.create', compact('title'));\n }", "public function create()\n {\n $breadcrumb='car.create';\n return view('admin.partials.cars.form', compact('breadcrumb'));\n }", "public function create()\n {\n return view(\"familiasPrograma.create\");\n }", "public function create()\n {\n return view('admin.car.create');\n }", "public function create()\n {\n return view('admin.car.create');\n }", "public function create()\n\t{\n\t\treturn View::make('perusahaans.create');\n\t}", "public function create()\n {\n return view(\"create\");\n }", "public function create()\n\t{\n //echo 'show form';\n\t\treturn View::make('gaans.create');\n\t}", "public function create()\n {\n $title = trans('dormitorybed.new');\n $this->generateParams();\n\n return view('layouts.create', compact('title'));\n }", "public function create()\n {\n return view('forming');\n }", "public function formNew() {\n $this->data->options = array(\n 'RJ' => 'Rio de Janeiro',\n 'MG' => 'Minas Gerais',\n 'SP' => 'São Paulo',\n 'ES' => 'Espírito Santo',\n 'BA' => 'Bahia',\n 'RS' => 'Rio Grande do Sul'\n );\n $this->data->action = \"@exemplos/pessoa/save\";\n $this->render();\n }", "public function create()\n {\n \t\n \treturn view('supplies.create');\n\n }", "public function createAction()\n {\n if ($form = $this->processForm()) {\n $this->setPageTitle(sprintf($this->_('New %s...'), $this->getTopic()));\n $this->html[] = $form;\n }\n }", "public function create()\n {\n $page_title = \"Add New\";\n return view($this->path.'create', compact('page_title'));\n }", "public function create()\n {\n // not sure what to do with the form since im\n // using ame partial for both create and edit\n return view('plants.create')->with('plant', new Plant);\n }", "public function create() {\n\t\t$title = 'Create | Show';\n\n\t\treturn view('admin.show.create', compact('title'));\n\t}", "public function create()\n {\n return view('student::students.student.create');\n }", "public function newAction(){\n\t\t$entity = new Reserva();\n\t\t$form = $this->createCreateForm($entity);\n\n\t\treturn $this->render('LIHotelBundle:Reserva:new.html.twig', array(\n\t\t\t'entity' => $entity,\n\t\t\t'form' => $form->createView(),\n\t\t));\n\t}" ]
[ "0.75948673", "0.75948673", "0.75863165", "0.7577412", "0.75727344", "0.7500887", "0.7434847", "0.7433956", "0.73892003", "0.73531085", "0.73364776", "0.73125", "0.7296102", "0.7281891", "0.72741455", "0.72424185", "0.7229325", "0.7226713", "0.7187349", "0.7179176", "0.7174283", "0.7150356", "0.71444064", "0.71442676", "0.713498", "0.71283126", "0.7123691", "0.71158516", "0.71158516", "0.71158516", "0.7112176", "0.7094388", "0.7085711", "0.708025", "0.70800644", "0.70571953", "0.70571953", "0.70556754", "0.70396435", "0.7039549", "0.7036275", "0.703468", "0.70305896", "0.7027638", "0.70265305", "0.70199823", "0.7018007", "0.7004984", "0.7003889", "0.7000935", "0.69973785", "0.6994679", "0.6993764", "0.6989918", "0.6986989", "0.6966502", "0.69656384", "0.69564354", "0.69518244", "0.6951109", "0.6947306", "0.69444615", "0.69423944", "0.6941156", "0.6937871", "0.6937871", "0.6936686", "0.69345254", "0.69318026", "0.692827", "0.69263744", "0.69242257", "0.6918349", "0.6915889", "0.6912884", "0.691146", "0.69103104", "0.69085974", "0.69040126", "0.69014287", "0.69012105", "0.6900397", "0.68951064", "0.6893521", "0.68932164", "0.6891899", "0.6891616", "0.6891616", "0.6889246", "0.68880934", "0.6887128", "0.6884732", "0.68822503", "0.68809193", "0.6875949", "0.68739206", "0.68739134", "0.6870358", "0.6869779", "0.68696856", "0.686877" ]
0.0
-1
Store a newly created resource in storage.
public function store() { $data = $this->validate(request(), [ 'name' => 'required', 'user_id' => 'required|numeric', 'lat' => 'sometimes|nullable|numeric', 'lng' => 'sometimes|nullable|numeric', 'logo' => 'sometimes|nullable|'.v_image() ], [], [ 'name' => trans('admin.name'), 'user_id' => trans('admin.user'), 'lat' => trans('admin.lat'), 'lng' => trans('admin.lng'), 'logo' => trans('admin.logo') ] ); if(request()->hasFile('logo')) { $data['logo'] = up()->upload([ 'file' => 'logo', 'path' => 'shippings', 'upload_type' => 'single', 'delete_file' => '' ]); } Shipping::create($data); session()->flash('success', trans('admin.record_added')); return redirect(aurl('shippings')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store($data, Resource $resource);", "public function store()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'storeValidations')) {\n $this->request->validate($this->storeValidations());\n }\n\n /* Create a new resource */\n $resource = $this->model::create(Input::all());\n\n /* Redirect to newly created resource page */\n return redirect()\n ->route($this->name . '.edit', $resource->id)\n ->with(\n 'success',\n Lang::has($this->name . '.resource-created') ?\n $this->name . '.resource-created' :\n 'messages.alert.resource-created'\n );\n }", "public function store(CreateStorageRequest $request)\n {\n $this->storage->create($request->all());\n\n return redirect()->route('admin.product.storage.index')\n ->withSuccess(trans('core::core.messages.resource created', ['name' => trans('product::storages.title.storages')]));\n }", "public function createStorage();", "public function store(StoreStorage $request)\n {\n $storage = Storage::create($request->all());\n $request->session()->flash('alert-success', 'Запись успешно добавлена!');\n return redirect()->route('storage.index');\n }", "public function saveShopifyResource() {\n if (is_null($this->getShopifyId())) { // if there is no id...\n $this->createShopifyResource(); // create a new resource\n } else { // if there is an id...\n $this->updateShopifyResource(); // update the resource\n }\n }", "public function store(Request $request, NebulaResource $resource): RedirectResponse\n {\n $this->authorize('create', $resource->model());\n\n $validated = $request->validate($resource->rules(\n $resource->createFields()\n ));\n\n $resource->storeQuery($resource->model(), $validated);\n\n $this->toast(__(':Resource created', [\n 'resource' => $resource->singularName(),\n ]));\n\n return redirect()->back();\n }", "function storeAndNew() {\n $this->store();\n }", "public function store(Request $request)\n {\n $currentUser = JWTAuth::parseToken()->authenticate();\n $validator = Validator::make($request->all(), [\n 'content' => 'required|string',\n 'image_link' => 'sometimes|url',\n ]);\n\n if ($validator->fails()) {\n return APIHandler::response(0, $validator->errors(), [], 400);\n }\n\n $resource = new Resource;\n $resource->user_id = $currentUser['id'];\n $resource->title = $request->get('title');\n $resource->content = $request->get('content');\n $resource->image_link = $request->get('imageLink');\n $resource->video_link = $request->get('videoLink');\n $resource->file_link = $request->get('fileLink');\n $resource->audio_link = $request->get('audioLink');\n $resource->tags = collect($request->get('tags'))->implode('text', ',');\n $resource->is_public = 0;\n $resource->save();\n $data['resource'] = $resource;\n\n if ($request->get('programId')) {\n $this->addToProgram($resource, $request->programId);\n // event(new NewLearningPathResourcePublished($resource, $invitee));\n }\n\n User::find($currentUser['id'])->increment('points', 2);\n\n return APIHandler::response(1, \"New resource has been created\", $data, 201);\n }", "public function store()\n {\n if (!$this->id) { // Insert\n $this->insertObject();\n } else { // Update\n $this->updateObject();\n }\n }", "public function store()\n\t{\n\t\t\n\t\t//\n\t}", "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}" ]
[ "0.72865677", "0.7145327", "0.71325725", "0.6640912", "0.66209733", "0.65685713", "0.652643", "0.65095705", "0.64490104", "0.637569", "0.63736665", "0.63657933", "0.63657933", "0.63657933", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437" ]
0.0
-1
Display the specified resource.
public function show($id) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show(Resource $resource)\n {\n // not available for now\n }", "public function show(Resource $resource)\n {\n //\n }", "function Display($resource_name, $cache_id = null, $compile_id = null)\n {\n $this->_smarty->display($resource_name, $cache_id, $compile_id);\n }", "private function showResourceable($resourceable)\n {\n save_resource_url();\n\n return $this->view('resources.create_edit')\n ->with('resource', $resourceable)\n ->with('photos', $resourceable->photos)\n ->with('videos', $resourceable->videos)\n ->with('documents', $resourceable->documents);\n }", "function display($resource_name, $cache_id = null, $compile_id = null) {\n\t\t$this->_getResourceInfo($resource_name); // Saves resource info to a Smarty class var for debugging\n\t\t$_t3_fetch_result = $this->fetch($resource_name, tx_smarty_div::getCacheID($cache_id), $compile_id);\n if ($this->debugging) { // Debugging will have been evaluated in fetch\n require_once(SMARTY_CORE_DIR . 'core.display_debug_console.php');\n $_t3_fetch_result .= smarty_core_display_debug_console(array(), $this);\n }\n\t\treturn $_t3_fetch_result;\n\t}", "public function show(ResourceSubject $resourceSubject)\n {\n //\n }", "public function show(ResourceManagement $resourcesManagement)\n {\n //\n }", "public function viewEditResources()\n {\n $database = new Database();\n $id = $this->_params['id'];\n\n $resource = $database->getResourceById($id);\n\n $availableResource = new Resource($resource['ResourceID'], $resource['ResourceName'], $resource['Description']\n , $resource['ContactName'] , $resource['ContactEmail'] , $resource['ContactPhone'] ,\n $resource['Link'], $resource['active']);\n $this->_f3->set('Resource', $availableResource);\n\n echo Template::instance()->render('view/include/head.php');\n echo Template::instance()->render('view/include/top-nav.php');\n echo Template::instance()->render('view/edit-resources.php');\n echo Template::instance()->render('view/include/footer.php');\n }", "public function retrieve(Resource $resource);", "public function showResource($resouceable, $id)\n {\n $model_name = str_replace('-', ' ',ucwords($resouceable));\n $model_name = str_replace(' ', '',ucwords($model_name));\n\n $resource_type = 'App\\Models\\\\'.$model_name;\n $model = app($resource_type);\n $model = $model->find($id);\n\n return $this->showResourceable($model);\n }", "public function showAction(Ressource $ressource)\n {\n $deleteForm = $this->createDeleteForm($ressource);\n\n return $this->render('ressource/show.html.twig', array(\n 'ressource' => $ressource,\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function show(Dispenser $dispenser)\n {\n //\n }", "public function show($id)\n {\n $resource = Resource::find($id);\n dd($resource);\n }", "public function displayAction() {\n\t\tif(is_numeric($this->req_id)) {\n\t\t\tAPI::DEBUG(\"[DefaultController::displayAction()] Getting \" . $this->req_id, 1);\n\t\t\t$this->_view->data['info'] = $this->_model->get($this->req_id);\n\t\t\t$this->_view->data['action'] = 'edit';\n\n\t\t} else {\n\t\t\t$this->_view->data['action'] = 'new';\n\t\t}\n\t\t// auto call the hooks for this module/action\n\t\terror_log(\"Should Call: \" . $this->module .\"/\".$this->action.\"/\".\"controller.php\");\n\t\tAPI::callHooks($this->module, $this->action, 'controller', $this);\n\n\t\t$this->addModuleTemplate($this->module, 'display');\n\n\t}", "public function show(NebulaResource $resource, $item): View\n {\n $this->authorize('view', $item);\n\n return view('nebula::resources.show', [\n 'resource' => $resource,\n 'item' => $item,\n ]);\n }", "public function resource(string $resource, string $controller): void\n {\n $base = $this->plural($resource);\n $entity = '/{'.$resource.'}';\n\n $this->app->get($base, $controller.'@index');\n $this->app->post($base, $controller.'@store');\n $this->app->get($base.$entity, $controller.'@show');\n $this->app->patch($base.$entity, $controller.'@update');\n $this->app->delete($base.$entity, $controller.'@destroy');\n }", "function displayCustom($resource_name, $cache_id = null, $compile_id = null)\n\t{\n\t return $this->display(DotbAutoLoader::existingCustomOne($resource_name), $cache_id, $compile_id);\n\t}", "public function show($id)\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Get the specified resource */\n $resource = $this->model::findOrFail($id);\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.show\")) {\n $view = \"admin.{$this->name}.show\";\n } else {\n $view = 'admin.includes.actions.show';\n }\n\n /* Displays the specified resource page */\n return view($view)\n ->with('resource', $resource)\n ->with('name', $this->name);\n }", "public function show($id)\n {\n $currentUser = JWTAuth::parseToken()->authenticate();\n $rules = [\n 'id' => 'required|integer'\n ];\n\n $validator = Validator::make(['id' => $id], $rules);\n if ($validator->fails()) {\n return APIHandler::response(0, $validator->errors(), 400);\n }\n $resource = $this->resourceRepository->fetchResource($id);\n $this->resourceRepository->storeView($id, $currentUser['id']);\n\n $data = [\n 'resource' => $resource,\n 'related_resources' => $this->resourceRepository->getResourcesRelatedTo($resource->id, $resource->mentoring_area_id)\n ];\n\n return APIHandler::response(1, \"Show Resource\", $data);\n }", "public function get(Resource $resource);", "public function showAction()\n {\n $model = $this->_getPhotoModel();\n $photo = $model->fetchEntry($this->getRequest()->getParam('id'));\n\n if (null === $photo) {\n return $this->_forward('notfound', 'error');\n }\n\n $this->view->auth = Zend_Auth::getInstance();\n $this->view->title = $photo->title;\n $this->view->photo = $photo;\n }", "public function show($id)\n {\n //\n $data=Resource::find($id);\n return view('resourceDetails',compact('data'));\n }", "function display() {\n\t\t$view = &$this->getView();\n\t\t$view->display();\n\t}", "public function show(ShowResourceRequest $request, $id)\n {\n // TODO: Implement show() method.\n }", "function show( $resource ){\n\n $where = \"reservation_status <> 'Pending' AND id = {$resource}\";\n $reservation = where( 'reservations', $where );\n $reservation = $reservation[0];\n\n return view('admin/reservation/preview_reservation', compact( 'reservation' ));\n}", "public function show()\n {\n if ($this->twig !== false) {\n $this->twigDefaultContext();\n if ($this->controller) {\n $this->controller->display($this->data);\n }\n echo $this->twig->render($this->twig_template, $this->data);\n } else {\n $filename = $this->findTemplatePath($this->template);\n require($filename);\n }\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function show(rc $rc)\n {\n //\n }", "public function show(Resolucion $resolucion)\n {\n //\n }", "public function showAction(furTexture $furTexture)\n {\n\n return $this->render('furtexture/show.html.twig', array(\n 'furTexture' => $furTexture,\n ));\n }", "public function show()\n\t{\n\t\t//\n\t}", "public function show()\n\t{\n\t\t//\n\t}", "public function show()\n\t{\n\t\t//\n\t}", "public function show(Resena $resena)\n {\n }", "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }", "public function showAction() {\n $docId = $this->getParam('id');\n\n // TODO verify parameter\n\n $document = new Opus_Document($docId);\n\n $this->_helper->layout()->disableLayout();\n\n $this->view->doc = $document;\n $this->view->document = new Application_Util_DocumentAdapter($this->view, $document);\n }", "public function action_display()\r\n\t{\r\n\t\t$event = ORM::factory('event', array('id' => $this->request->param('id')));\r\n\t\r\n\t\tif ( ! $event->loaded())\r\n\t\t{\r\n\t\t\tNotices::error('event.view.not_found');\r\n\t\t\t$this->request->redirect(Route::url('event'));\r\n\t\t}\r\n\t\t\r\n\t\t// Can user view this event?\r\n\t\tif ( ! $this->user->can('event_view', array('event' => $event)))\r\n\t\t{\r\n\t\t\t// Error notification\r\n\t\t\tNotices::error('event.view.not_allowed');\r\n\t\t\t$this->request->redirect(Route::url('event'));\r\n\t\t}\r\n\t\t\r\n\t\t// Pass event data to the view class\r\n\t\t$this->view->event_data = $event;\r\n\t\t$this->view->user = $this->user;\r\n\t}", "public function execute()\n {\n // HTTP Request Get\n if ($this->type == \"resource\") {\n $action = $this->getResourceAction();\n switch ($action) {\n case \"show\":\n $this->show();\n break;\n case \"create\":\n $this->create();\n break;\n case \"edit\":\n $this->edit();\n break;\n case \"destroy\":\n $this->destroy();\n break;\n default:\n echo $this->render();\n break;\n }\n } else {\n $action = $this->Request->action;\n switch ($action) {\n case \"show\":\n $this->show();\n break;\n case \"create\":\n $this->create();\n break;\n case \"edit\":\n $this->edit();\n break;\n case \"destroy\":\n $this->destroy();\n break;\n default:\n echo $this->render();\n break;\n }\n }\n }", "public function show(Resident $resident)\n {\n $this->authorize('admin.resident.show', $resident);\n\n // TODO your code goes here\n }", "public function display()\n {\n echo $this->getDisplay();\n $this->isDisplayed(true);\n }", "public function display()\n\t{\n\t\tparent::display();\n\t}", "public function get_resource();", "public function show()\n\t{\n\t\t\n\t}", "function display() {\n\n\t\t// Check authorization, abort if negative\n\t\t$this->isAuthorized() or $this->abortUnauthorized();\n\n\t\t// Get the view\n\t\t$view = $this->getDefaultView();\n\n\t\tif ($view == NULL) {\n\t\t\tthrow new Exception('Display task called, but there is no view assigned to that controller. Check method getDefaultView.');\n\t\t}\n\n\t\t$view->listing = true;\n\n\t\t// Wrap the output of the views depending on the way the stuff should be shown\n\t\t$this->wrapViewAndDisplay($view);\n\n\t}", "public function viewResources()\n {\n $database = new Database();\n\n $resources = $database->getAllActiveResourcesNoLimit();\n\n\n $resourceArray = array();\n $i = 1;\n\n foreach ($resources as $resource) {\n $availableResource = new Resource($resource['ResourceID'], $resource['ResourceName'], $resource['Description']\n , $resource['ContactName'] , $resource['ContactEmail'] , $resource['ContactPhone'] ,\n $resource['Link'], $resource['active']);\n array_push($resourceArray, $availableResource);\n $i += 1;\n }\n $resourceSize = sizeof($resourceArray);\n $this->_f3->set('resourcesByActive', $resourceArray);\n $this->_f3->set('resourcesSize', $resourceSize);\n echo Template::instance()->render('view/include/head.php');\n echo Template::instance()->render('view/include/top-nav.php');\n echo Template::instance()->render('view/resources.php');\n echo Template::instance()->render('view/include/footer.php');\n }", "public function show($id)\n {\n $this->title .= ' show';\n $this->one($id);\n }", "public function display($title = null)\n {\n echo $this->fetch($title);\n }", "public function display(){}", "public function show($id)\n\t{\n\t\t//\n\t\t//\n\t\n\t}", "public function viewAction()\n\t{\n\t\t//get Id param from request\n\t\tif (!$id = $this->_getParam('id')) {\n\t\t\t$this->getFlashMessenger()->addMessage('Product ID was not specified');\n\t\t\t$this->getRedirector()->gotoSimple('list');\n\t\t}\n\n\t\t//fetch requested ProductID from DB\n\t\tif (!$this->_model->fetch($id)) {\n\t\t\t$this->render('not-found');\n\t\t} else {\n\t\t\t$this->view->model = $this->_model;\n\t\t}\n\t}", "public function show($id)\n {\n // Get single person\n $person = Person::findOrFail($id);\n\n // Return single person as a resource\n return '<h1>Person Number '.$id.'</h1><br>'.json_encode(new PersonResource($person));\n }", "#[TODO] use self object?\n\tprotected function GET(ResourceObject $resource) {\n#[TODO]\t\tif ($resource->getMTime())\n#[TODO]\t\t\t$this->response->headers->set('Last-modified', gmdate('D, d M Y H:i:s ', $resource->getMTime()) . 'GMT');\n#[TODO]\t\tif ($resource->getCTime())\n#[TODO]\t\t\t$this->response->headers->set('Date', gmdate('D, d M Y H:i:s ', $resource->getCTime()) . 'GMT');\n\n\n#[TODO] handle file streams\n\t\t// get ranges\n#\t\t$ranges = WebDAV::getRanges($this->request, $this->response);\n\n\t\t// set the content of the response\n\t\tif ($resource instanceof ResourceDocument) {\n\t\t\t$this->response->content->set($resource->getContents());\n\t\t\t$this->response->content->setType($resource->getMIMEType());\n\t\t\t$this->response->content->encodeOnSubmit(true);\n\t\t}\n\t}", "public function display() {\n echo $this->render();\n }", "public function show($id)\n\t{\n\t//\n\t}", "public function show($id)\n\t{\n\t//\n\t}", "function Fetch($resource_name, $cache_id = null, $compile_id = null, $display = false)\n {\n return $this->_smarty->fetch($resource_name, $cache_id, $compile_id, $display);\n }", "public function show($id)\n {\n //\n $this->_show($id);\n }", "public function show()\n\t{\n\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {}", "static public function showCallback(O_Dao_Renderer_Show_Params $params) {\r\n\t\t/* @var $r R_Mdl_Resource */\r\n\t\t$r = $params->record();\r\n\t\t// Setting layout title\r\n\t\t$params->layout()->setTitle($r->getPageTitle());\r\n\r\n?><h1><?=$r->title?></h1><div id=\"resource\"><?\r\n\t\tif($r->getContent()) {\r\n\t\t\t// page has its own content -- show it\r\n\t\t\t$r->getContent()->show($params->layout(), \"content\");\r\n\t\t} else {\r\n\t\t\t// It is a post unit, show all childs\r\n\t\t\tif($r->is_unit == 1) {\r\n\t\t\t\t$r->addQueryAccessChecks($r->getChilds(1))->show($params->layout(), \"content\");\r\n\r\n\t\t\t// It is a folder with several units, show paginator\r\n\t\t\t} elseif($r->show_def == \"last-units\") {\r\n\t\t\t\tlist($type, $perpage) = explode(\":\", $r->show_def_params);\r\n\t\t\t\t/* @var $p O_Dao_Paginator */\r\n\t\t\t\t$p = $r->addQueryAccessChecks($r->getChilds())->test(\"is_unit\", 1)->getPaginator(array($r, \"getPageUrl\"), $perpage);\r\n\t\t\t\t$p->show($params->layout(), $type);\r\n\t\t\t// It is a folder with subfolders, boxes, contents. Show one childs level\r\n\t\t\t} else {\r\n\t\t\t\t$r->addQueryAccessChecks($r->getChilds(1))->show($params->layout(), \"on-parent-page\");\r\n\t\t\t}\r\n\r\n\t\t}\r\n?></div><?\r\n\t}", "public function show($id)\r\n\t{\r\n\t\t//\r\n\r\n\r\n\r\n\t}", "public function show($resourceId, $eventId)\n {\n $routes = $this->routes;\n\n $eventable = $this->getEventableRepository()->model()->findOrFail($resourceId);\n\n if (method_exists($eventable, 'events')) {\n $event = $eventable->events()->find($eventId);\n\n if ($event) {\n $apiObject = $this->event->findApiObject($event->api_id);\n\n return view('events.eventables.show', compact('routes', 'eventable', 'event', 'apiObject'));\n }\n }\n\n abort(404);\n }", "public abstract function display();", "abstract public function resource($resource);", "public function show($id)\r\r\n\t{\r\r\n\t\t//\r\r\n\t}", "public function show( $id ) {\n\t\t//\n\t}", "public function show( $id ) {\n\t\t//\n\t}", "public function show(Response $response)\n {\n //\n }", "public function show()\n {\n return auth()->user()->getResource();\n }", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}" ]
[ "0.8233718", "0.8190437", "0.6828712", "0.64986944", "0.6495974", "0.6469629", "0.6462615", "0.6363665", "0.6311607", "0.62817234", "0.6218966", "0.6189695", "0.61804265", "0.6171014", "0.61371076", "0.61207956", "0.61067593", "0.6105954", "0.6094066", "0.6082806", "0.6045245", "0.60389996", "0.6016584", "0.598783", "0.5961788", "0.59606946", "0.5954321", "0.59295714", "0.59182066", "0.5904556", "0.59036547", "0.59036547", "0.59036547", "0.5891874", "0.58688277", "0.5868107", "0.58676815", "0.5851883", "0.58144855", "0.58124036", "0.58112013", "0.5803467", "0.58012545", "0.5791527", "0.57901084", "0.5781528", "0.5779676", "0.5757105", "0.5756208", "0.57561266", "0.57453394", "0.57435393", "0.57422745", "0.5736634", "0.5736634", "0.5730559", "0.57259274", "0.5724891", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5718969", "0.5713412", "0.57091093", "0.5706405", "0.57057405", "0.5704541", "0.5704152", "0.57026845", "0.57026845", "0.56981397", "0.5693083", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962" ]
0.0
-1
Show the form for editing the specified resource.
public function edit($id) { $shipping = Shipping::find($id); return view('admin.shippings.edit', ['title' => trans('admin.edit'), 'shipping' => $shipping]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function edit($id)\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Get the specified resource */\n $resource = $this->model::findOrFail($id);\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.edit\")) {\n $view = \"admin.{$this->name}.edit\";\n } else {\n $view = 'admin.includes.actions.edit';\n }\n\n /* Displays the edit resource page */\n return view($view)\n ->with('resource', $resource)\n ->with('name', $this->name);\n }", "public function edit(NebulaResource $resource, $item): View\n {\n $this->authorize('update', $item);\n\n return view('nebula::resources.edit', [\n 'resource' => $resource,\n 'item' => $item,\n ]);\n }", "public function edit() {\r\n $id = $this->api->getParam('id');\r\n\r\n if ($id) {\r\n $this->model->id = $id;\r\n $this->checkOwner();\r\n }\r\n $object = $this->model->find_by_id($id);\r\n\r\n $this->api->loadView('contact-form', array('row' => $object));\r\n }", "public function viewEditResources()\n {\n $database = new Database();\n $id = $this->_params['id'];\n\n $resource = $database->getResourceById($id);\n\n $availableResource = new Resource($resource['ResourceID'], $resource['ResourceName'], $resource['Description']\n , $resource['ContactName'] , $resource['ContactEmail'] , $resource['ContactPhone'] ,\n $resource['Link'], $resource['active']);\n $this->_f3->set('Resource', $availableResource);\n\n echo Template::instance()->render('view/include/head.php');\n echo Template::instance()->render('view/include/top-nav.php');\n echo Template::instance()->render('view/edit-resources.php');\n echo Template::instance()->render('view/include/footer.php');\n }", "public function edit()\n {\n return view('hirmvc::edit');\n }", "public function editformAction(){\n\t\t$this->loadLayout();\n $this->renderLayout();\n\t}", "public function edit() {\n $id = $this->parent->urlPathParts[2];\n // pass name and id to view\n $data = $this->parent->getModel(\"fruits\")->select(\"select * from fruit_table where id = :id\", array(\":id\"=>$id));\n $this->getView(\"header\", array(\"pagename\"=>\"about\"));\n $this->getView(\"editForm\", $data);\n $this->getView(\"footer\");\n }", "public function edit($id)\n\t{\n\t\treturn $this->showForm('update', $id);\n\t}", "public function edit($id)\n {\n $model = $this->modelObj;\n $formObj = $model::findOrFail($id);\n $data['formObj'] = $formObj;\n return view($this->veiw_base . '.edit', $data);\n }", "public function createEditForm(Resourceperson $entity){\n \n $form = $this->createForm(new ResourcepersonType(), $entity, array(\n 'action' => $this->generateUrl('rsp_update', array('id' => $entity->getRpId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Update','attr'=> array(\n 'class'=>'btn btn primary'\n )));\n\n return $form;\n }", "private function createEditForm(Resource $entity)\n {\n $form = $this->createForm(new ResourceType(), $entity, array(\n 'action' => $this->generateUrl('social_admin_resource_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => '保存','attr'=>[\n 'class'=>'btn btn-primary'\n ]));\n\n return $form;\n }", "public function edit($id)\n {\n return $this->showForm('update', $id);\n }", "public function edit($id)\n {\n return $this->showForm('update', $id);\n }", "public function editAction()\n {\n if ($form = $this->processForm()) {\n if ($this->useTabbedForms && method_exists($this, 'getSubject')) {\n $data = $this->getModel()->loadFirst();\n $subject = $this->getSubject($data);\n $this->setPageTitle(sprintf($this->_('Edit %s %s'), $this->getTopic(1), $subject));\n } else {\n $this->setPageTitle(sprintf($this->_('Edit %s'), $this->getTopic(1)));\n }\n $this->html[] = $form;\n }\n }", "public function edit($id)\n {\n $this->data['entity'] = GS_Form::where('id', $id)->firstOrFail();\n return view('admin.pages.forms.edit', $this->data);\n }", "public function edit($id)\n\t{\n\t\t// get the fbf_presenca\n\t\t$fbf_presenca = FbfPresenca::find($id);\n\n\t\t\n\t\t// show the edit form and pass the fbf_presenca\n\t\t$this->layout->content = View::make('fbf_presenca.edit')\n->with('fbf_presenca', $fbf_presenca);\n\t}", "public function edit($id)\n {\n $data = $this->model->find($id);\n\n return view('admin.backends.employee.form.edit',compact('data'));\n }", "public function edit($model, $form);", "function edit() {\n\t\tglobal $tpl;\n\n\t\t$form = $this->initForm();\n\t\t$tpl->setContent($form->getHTML());\n\t}", "public function edit($id)\n\t{\n\t\t$faith = Faith::find($id);\n \n return view('faith.form')->with('faith', $faith);\n\n\t}", "public function edit()\n { \n return view('admin.control.edit');\n }", "public function edit(Form $form)\n {\n //\n }", "public function edit()\n {\n return view('common::edit');\n }", "public function edit($id)\n {\n $resource = (new AclResource())->AclResource;\n $roleResource = AclRole::where('role', $id)->get(['resource'])->toArray();\n $roleResource = Arr::pluck($roleResource, 'resource');\n return view('Admin.acl.role.form', [\n 'role' => $id,\n 'resource' => $resource,\n 'roleResource' => $roleResource,\n ]);\n }", "public function edit()\n {\n return view('admin::edit');\n }", "public function edit()\n {\n return view('admin::edit');\n }", "public function edit()\r\n {\r\n return view('petro::edit');\r\n }", "public function edit($id)\n {\n // show form edit user info\n }", "public function edit()\n {\n return view('escrow::edit');\n }", "public function edit($id)\n {\n $resource = ResourceManagement::find($id);\n\n $users = User::get();\n // Redirect to user list if updating user wasn't existed\n if ($resource == null || $resource->count() == 0) {\n return redirect()->intended('/resource-management');\n }\n\n return view('resources-mgmt/edit', ['resource' => $resource, 'users' => $users]);\n }", "public function edit()\n {\n return view('commonmodule::edit');\n }", "public function editAction()\n\t{\n\t\t$params = $this->data->getParams();\n\t\t$params = $this->valid->clearDataArr($params);\n\t\tif (isset($params['id']))\n\t\t{\n\t\t\t$this->employee->setFlag(true);\n\t\t}\n\t\tif (isset($_POST['submit']))\n\t\t{\n\t\t\t$action = $this->valid->clearDataArr($_POST);\n\t\t\t$this->employee->setDataArray($action);\n\t\t\theader('Location: ' . PATH . 'Employee/index/', true, 303);\n\t\t}\n\t\t$employee = $this->employee->setAction('edit');\n\t\t$this->view->addToReplace($employee);\n\t\t$this->listEmployee();\n\t\t$this->arrayToPrint();\n\t}", "public function edit()\n {\n return view('catalog::edit');\n }", "public function edit()\n {\n return view('catalog::edit');\n }", "public function edit(form $form)\n {\n //\n }", "public function actionEdit($id) { }", "public function edit()\n {\n return view('admincp::edit');\n }", "public function edit()\n {\n return view('scaffold::edit');\n }", "public function edit($id)\n {\n $header = \"Edit\";\n\t\t$data = Penerbit::findOrFail($id);\n\t\treturn view('admin.penerbit.form', compact('data','header'));\n }", "public function edit()\n {\n return view('Person.edit');\n }", "public function edit($id)\n {\n $data = Form::find($id);\n return view('form.edit', compact('data'));\n }", "public function edit($id)\n\t{\n\t\t$career = $this->careers->findById($id);\n\t\treturn View::make('careers._form', array('career' => $career, 'exists' => true));\n\t}", "public function edit(Flight $exercise, FlightResource $resource)\n {\n return $this->viewMake('adm.smartcars.exercise-resources.edit')\n ->with('flight', $exercise)\n ->with('resource', $resource);\n }", "public function edit($id)\n\t{\n\t\t// get the material\n\t\t$material = Material::find($id);\n\n\t\t// show the edit form and pass the material\n\t\t$this->layout->content = View::make('material.edit')\n\t\t\t->with('material', $material);\n\t}", "public function edit($id, Request $request)\n {\n $formObj = $this->modelObj->find($id);\n\n if(!$formObj)\n {\n abort(404);\n } \n\n $data = array();\n $data['formObj'] = $formObj;\n $data['page_title'] = \"Edit \".$this->module;\n $data['buttonText'] = \"Update\";\n\n $data['action_url'] = $this->moduleRouteText.\".update\";\n $data['action_params'] = $formObj->id;\n $data['method'] = \"PUT\"; \n\n return view($this->moduleViewName.'.add', $data);\n }", "public function edit()\n {\n $id = $this->getId();\n return view('panel.user.form', [\n 'user' => $this->userRepository->findById($id),\n 'method' => 'PUT',\n 'routePrefix' => 'profile',\n 'route' => 'profile.update',\n 'parameters' => [$id],\n 'breadcrumbs' => $this->getBreadcrumb('Editar')\n ]);\n }", "public function edit()\r\n {\r\n return view('mpcs::edit');\r\n }", "function edit()\n\t{\n\t\t// hien thi form sua san pham\n\t\t$id = getParameter('id');\n\t\t$product = $this->model->product->find_by_id($id);\n\t\t$this->layout->set('auth_layout');\n\t\t$this->view->load('product/edit', [\n\t\t\t'product' => $product\n\t\t]);\n\t}", "public function edit($id)\n {\n //\n $data = Diskon::find($id);\n\n $form = $this->form;\n $edit = $this->edit;\n $field = $this->field;\n $page = $this->page;\n $id = $id;\n $title = $this->title;\n return view('admin/page/'.$this->page.'/edit',compact('form','edit','data','field','page','id','title'));\n }", "public function edit($id)\n {\n return $this->showForm($id);\n }", "public function edit($id)\n {\n return $this->showForm($id);\n }", "protected function _edit(){\n\t\treturn $this->_editForm();\n\t}", "public function editAction()\n {\n $robot = Robots::findFirst($this->session->get(\"robot-id\"));\n if ($this->request->isGet()) {\n $this->tag->prependTitle(\"Редактировать робота :: \");\n $user = $this->session->get(\"auth-id\");\n if (!$robot) {\n $this->flashSession->error(\n \"Робот не найден\"\n );\n return $this->response->redirect(\"users/usershow/$user->name\");\n }\n\n }\n\n $this->view->form = new RobotForm(\n $robot,\n [\n \"edit\" => true,\n ]\n );\n }", "public function editAction()\n {\n $form = new $this->form();\n\n $request = $this->getRequest();\n $param = $this->params()->fromRoute('id', 0);\n\n $repository = $this->getEm()->getRepository($this->entity);\n $entity = $repository->find($param);\n\n if ($entity) {\n\n $form->setData($entity->toArray());\n\n if ( $request->isPost() ) {\n\n $form->setData($request->getPost());\n\n if ( $form->isValid() ) {\n\n $service = $this->getServiceLocator()->get($this->service);\n $service->update($request->getPost()->toArray());\n\n return $this->redirect()->toRoute($this->route, array('controller' => $this->controller));\n }\n }\n } else {\n return $this->redirect()->toRoute($this->route, array('controller' => $this->controller));\n }\n\n return new ViewModel(array('form' => $form, 'id' => $param));\n\n }", "public function edit($id)\n\t{\n\t\t$SysApplication = \\Javan\\Dynaflow\\Domain\\Model\\SysApplication::find($id);\n\t\t$form = \\FormBuilder::create('Javan\\Dynaflow\\FormBuilder\\SysApplicationForm', [\n \t'method' => 'POST',\n \t'url' => 'sysapplication/update/'.$id,\n \t'model' => $SysApplication,\n \t'data' => [ 'flow_id' => $SysApplication->flow_id]\n \t]);\n\t\treturn View::make('dynaflow::sysapplication.form', compact('form', 'SysApplication'));\n\t}", "public function editAction() {\n\t\t$id = (int) $this->_getParam('id');\n\t\t$modelName = $this->_getParam('model');\n\t\t\n\t\t$model = Marcel_Backoffice_Model::factory($modelName);\n\t\t$item = $model->find($id)->current();\n\t\tif (!$item) {\n\t\t\t$item = $model->createRow();\n\t\t}\n\t\t$form = $item->getForm();\n\t\tif ($this->_request->isPost()) {\n\t\t\t$newId = $form->populate($this->_request->getPost())->save();\n\t\t\tif ($newId) {\n\t\t\t\t$this->_helper->flashMessenger('Saved successfully!');\n\t\t\t\t$this->_helper->redirector('edit', null, null, array('id' => $newId, 'model' => $modelName));\n\t\t\t}\n\t\t}\n\t\t$this->view->form = $form;\n\t\t$this->view->messages = $this->_helper->flashMessenger->getMessages();\n\t}", "public function edit($id)\n {\n return view('models::edit');\n }", "public function edit()\n {\n return view('home::edit');\n }", "public function editAction()\n {\n $id = $this->params()->fromRoute('id');\n $entity = $this->entityManager->find(Entity\\CourtClosing::class, $id);\n if (! $entity) {\n // to do: deal with it\n }\n $form = $this->getForm('update');\n $form->bind($entity);\n if ($this->getRequest()->isPost()) {\n return $this->post();\n }\n\n return new ViewModel(['form' => $form]);\n }", "public function editAction($id)\n {\n $entity = $this->getManager()->find($id);\n\n $breadcrumbs = $this->get(\"white_october_breadcrumbs\");\n $breadcrumbs->addItem('Inicio', $this->get('router')->generate('admin.homepage'));\n $breadcrumbs->addItem($this->entityDescription, $this->get(\"router\")->generate(\"admin.$this->entityName.index\"));\n $breadcrumbs->addItem('Editar');\n\n if (!$entity) {\n throw $this->createNotFoundException('No se ha encontrado el elemento');\n }\n\n $form = $this->getForm($entity);\n\n return $this->render('AdminBundle:Default:edit.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'metadata' => $this->getMetadata()\n ));\n }", "public function edit()\n {\n return view('user::edit');\n }", "public function edit()\n {\n return view('user::edit');\n }", "public function edit(Form $form)\n {\n return view('admin.forms.edit', compact('form'));\n }", "public function editAction()\n {\n $form = MediaForm::create($this->get('form.context'), 'media');\n $media = $this->get('media_manager.manager')->findOneById($this->get('request')->get('media_id'));\n \n $form->bind($this->get('request'), $media);\n \n return $this->render('MediaManagerBundle:Admin:form.html.twig', array('form' => $form, 'media' => $media));\n }", "public function editAction($id) {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('CdlrcodeBundle:Question')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Question entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('CdlrcodeBundle:Question:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function edit($id)\n {\n return view('consultas::edit');\n }", "public function edit(DirectorFormBuilder $form, $id)\n {\n return $form->render($id);\n }", "public function edit()\n {\n return view('dashboard::edit');\n }", "public function edit($id){\n $rfid = Rfid::find($id);\n\n //load form view\n return view('rfids.edit', ['rfid' => $rfid]);\n }", "public function edit($id)\n {\n\n // retrieve provider\n $provider = Provider::findOrFail($id);\n\n // return form with provider\n return view('backend.providers.form')->with('provider', $provider);\n }", "public function edit(Question $question)\n {\n $this->employeePermission('application' , 'edit');\n $question->chooses;\n $action = 'edit';\n return view('admin.setting.question_form', compact('action' , 'question'));\n }", "public function edit() {\n return view('routes::edit');\n }", "public function edit($id)\n {\n $this->data['product'] = Product::find($id);\n $this->data['category'] = Category::arrForSelect();\n $this->data['title'] = \" Update Prouct Details\";\n $this->data['mode'] = \"edit\";\n\n return view('product.form', $this->data);\n }", "public function edit(ClueEnFormBuilder $form, $id): Response\n {\n return $form->render($id);\n }", "public function editAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('BaseBundle:Feriado')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Feriado entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('BaseBundle:Feriado:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function edit($id)\n {\n return view('cataloguemodule::edit');\n }", "public function edit($articulo_id)\n {\n $titulo = \"Editar\";\n return View(\"articulos.formulario\",compact('titulo','articulo_id'));\n }", "public function edit($id)\n {\n $resources = User::find(session('usuario_id'))->resources;\n $languages = Language::pluck('name', 'id');\n $types = Type::pluck('name', 'id');\n $method = 'PATCH';\n\n $recurso = Resource::find($id);\n $url = \"/resource/$recurso->id\";\n\n return view('resources.resources', compact('resources', 'languages', 'types', 'method', 'url', 'recurso'));\n }", "public function edit(Question $question)\n {\n $edit = TRUE;\n return view('questionForm', ['question' => $question, 'edit' => $edit]);\n }", "public function displayEditForm(Employee $employee){\n return view('employee.displayEditForm',['employee'=>$employee]);\n }", "public function edit()\n {\n return view('website::edit');\n }", "public function edit()\n {\n return view('inventory::edit');\n }", "public function edit()\n {\n return view('initializer::edit');\n }", "public function editAction()\n {\n View::renderTemplate('Profile/edit.html', [\n 'user' => $this->user\n ]);\n }", "public function edit($id)\n {\n return view('backend::edit');\n }", "public function edit($id)\n {\n //dd($id);\n $familiaPrograma= FamiliaPrograma::findOrFail($id);\n return view('familiasPrograma.edit', compact('familiaPrograma'));\n }", "public function edit($id)\n {\n return view('crm::edit');\n }", "public function edit($id)\n {\n return view('crm::edit');\n }", "public function edit($id)\n {\n $user = User::where('id', $id)->first();\n\n\n return view('users.forms.update', compact('user'));\n }", "public function editAction($id)\n\t{\n\t\t$school = School::find( $id );\n\t\t$this->render( View::make( 'schools/form' , array(\n\t\t\t'title' => sprintf( 'Modifier \"%s\"', $school->name ),\n\t\t\t'entity' => $school\n\t\t) ) );\n\t}", "public function edit(Question $question)\n {\n $edit = TRUE;\n return view('questionForm', ['question' => $question, 'edit' => $edit ]);\n }", "public function edit(Person $person) {\n\t\t$viewModel = new PersonFormViewModel();\n\t\treturn view('person.form', $viewModel);\n\t}", "public function edit($id)\n {\n \t$product = Product::find($id);\n \treturn view('admin.products.edit')->with(compact('product')); // formulario de actualizacion de datos del producto\n }", "public function edit_person($person_id){\n \t$person = Person::find($person_id);\n \treturn view('resource_detail._basic_info.edit',compact('person'));\n }", "public function edit($id)\n {\n $professor = $this->repository->find($id);\n return view('admin.professores.edit',compact('professor'));\n }", "public function edit($id)\n {\n $data = Restful::find($id);\n return view('restful.edit', compact('data'));\n }", "public function editAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('MedecinIBundle:Fichepatient')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Fichepatient entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('MedecinIBundle:Fichepatient:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function edit($id)\n {\n return $this->form->render('mconsole::personal.form', [\n 'item' => $this->person->query()->with('uploads')->findOrFail($id),\n ]);\n }", "public function edit($id)\n\t{\n\t\t // get the project\n $project = Project::find($id);\n\n // show the edit form and pass the project\n return View::make('logicViews.projects.edit')->with('project', $project);\n\t}" ]
[ "0.78550774", "0.7692893", "0.7273195", "0.7242132", "0.7170847", "0.70622855", "0.7053459", "0.6982539", "0.69467914", "0.6945275", "0.6941114", "0.6928077", "0.69019294", "0.68976134", "0.68976134", "0.6877213", "0.68636996", "0.68592185", "0.68566656", "0.6844697", "0.68336326", "0.6811471", "0.68060875", "0.68047357", "0.68018645", "0.6795623", "0.6791791", "0.6791791", "0.6787701", "0.67837197", "0.67791027", "0.677645", "0.6768301", "0.6760122", "0.67458534", "0.67458534", "0.67443407", "0.67425704", "0.6739898", "0.6735328", "0.6725465", "0.6712817", "0.6693891", "0.6692419", "0.6688581", "0.66879624", "0.6687282", "0.6684741", "0.6682786", "0.6668777", "0.6668427", "0.6665287", "0.6665287", "0.66610634", "0.6660843", "0.66589665", "0.66567147", "0.66545695", "0.66527975", "0.6642529", "0.6633056", "0.6630304", "0.6627662", "0.6627662", "0.66192114", "0.6619003", "0.66153085", "0.6614968", "0.6609744", "0.66086483", "0.66060555", "0.6596137", "0.65950733", "0.6594648", "0.65902114", "0.6589043", "0.6587102", "0.65799844", "0.65799403", "0.65799177", "0.657708", "0.65760696", "0.65739626", "0.656931", "0.6567826", "0.65663105", "0.65660435", "0.65615267", "0.6561447", "0.6561447", "0.65576506", "0.655686", "0.6556527", "0.6555543", "0.6555445", "0.65552044", "0.65543956", "0.65543705", "0.6548264", "0.65475875", "0.65447706" ]
0.0
-1
Update the specified resource in storage.
public function update(Request $request, $id) { $data = $this->validate(request(), [ 'name' => 'required', 'user_id' => 'required|numeric', 'lat' => 'sometimes|nullable|numeric', 'lng' => 'sometimes|nullable|numeric', 'logo' => 'sometimes|nullable|'.v_image() ], [], [ 'name' => trans('admin.name'), 'user_id' => trans('admin.user'), 'lat' => trans('admin.lat'), 'lng' => trans('admin.lng'), 'logo' => trans('admin.logo') ] ); if(request()->hasFile('logo')) { $data['logo'] = up()->upload([ 'file' => 'logo', 'path' => 'shippings', 'upload_type' => 'single', 'delete_file' => Shipping::find($id)->logo ]); } Shipping::where('id', $id)->update($data); session()->flash('success', trans('admin.record_edited')); return redirect(aurl('shippings')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateShopifyResource() {\n $this->saving();\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'PUT',\n 'DATA' => [\n static::getResourceSingularName() => $this->shopifyData\n ]\n ]);\n }", "public function update(Request $request, Resource $resource)\n {\n $request->validate([\n 'name' => 'required',\n 'description' => 'required|string',\n 'file' => 'required|mimes:jpg,jpeg,png,doc,docx,pdf,ppt,txt',\n ]);\n\n $resource->update($request->all());\n\n if ( $request->hasFile('file') ) {\n $resource = 'resource-'.time().'.'.$request->file('file')->extension();\n $request->file->storeAs('resources', $resource,'public');\n $resource->file = $resource;\n }\n\n if ( $resource->save() ) {\n return redirect()->route('admin.resources.index')->with('success', 'Resource updated');\n } else {\n return redirect()->route('admin.resources.index')->with('error', 'Something went wrong');\n }\n }", "public function update(Request $request, Resource $resource)\n {\n //\n }", "public function updateStream($resource);", "public function update(Request $request, Storage $storage)\n {\n $storage->product_id = $request->product_id;\n $storage->amount = $request->amount;\n\n $storage->save();\n\n return redirect()->route('storages.index');\n }", "protected function updateImageResource($fileName, $imageId, $storage)\n {\n //Get image name and storage location for image\n $image = Image::where('id', '=', $imageId)->first();\n\n //Delete old image\n $this->deleteResource($image->name, $image->storage);\n\n //Store the new image\n $image->name = $fileName;\n $image->storage = $storage;\n\n $image->save();\n }", "public function update(Storage $storage, UpdateStorageRequest $request)\n {\n $this->storage->update($storage, $request->all());\n\n return redirect()->route('admin.product.storage.index')\n ->withSuccess(trans('core::core.messages.resource updated', ['name' => trans('product::storages.title.storages')]));\n }", "public function update(StoreStorage $request, Storage $storage)\n {\n $storage->fill($request->all())->save();\n $request->session()->flash('alert-success', 'Запись успешно обновлена!');\n return redirect()->route('storage.index');\n }", "public function update_asset($id, Request $request){\n \t\tif(!Auth::user()){\n\t\t\treturn redirect('/');\n\t\t}\n \t\t$asset = Storage::find($id);\n \t\t$asset->name = $request->name;\n \t\t$asset->quantity = $request->quantity;\n \t\t$asset->category_id = $request->category;\n \t\tif($request->file('image') != null){\n\t\t\t$image = $request->file('image');\n\t\t\t$image_name = time(). \".\" . $image->getClientOriginalExtension();\n\t\t\t$destination = \"images/\";\n\t\t\t$image->move($destination, $image_name);\n\t\t\t$asset->image_url = $destination.$image_name;\n\t\t} \n\t\t$asset->save();\n\t\tsession()->flash('success_message', 'Item Updated successfully');\n\t\treturn redirect(\"/storage\");\n \t}", "public function update(Request $request, Flight $exercise, FlightResource $resource)\n {\n $request->validate([\n 'display_name' => 'required|string|max:100',\n 'file' => 'nullable|file|max:10240|mimes:pdf',\n 'uri' => 'nullable|url|max:255',\n ]);\n\n if ($resource->type === 'file' && $request->file('file')) {\n Storage::drive('public')->delete($resource->resource);\n $resource->resource = $request->file('file')->store('smartcars/exercises/resources', ['disk' => 'public']);\n } elseif ($resource->type === 'uri' && $request->input('uri')) {\n $resource->resource = $request->input('uri');\n }\n\n $resource->save();\n\n return redirect()->route('adm.smartcars.exercises.resources.index', $exercise)\n ->with('success', 'Resource edited successfully.');\n }", "public function update(Request $request, $id)\n {\n $validator = Validator::make($request->all(), [\n 'title' => 'required|string',\n 'content' => 'required|string',\n 'mentoring_area_id' => 'required|integer',\n 'featured_image_uri' => 'string',\n ]);\n\n if ($validator->fails()) {\n return APIHandler::response(0, $validator->errors(), 400);\n }\n \n $resource = Resource::find($id);\n $resource->title = $request->get('title');\n $resource->content = $request->get('content');\n $resource->featured_image_uri = $request->get('featured_image_uri');\n $resource->updated_at = \\Carbon\\Carbon::now();\n $resource->mentoring_area_id = $request->get('mentoring_area_id');\n $resource->save();\n $data['resource'] = $resource;\n return APIHandler::response(1, \"Resource has been updated\");\n }", "protected function updateVideoResource($fileName, $videoId, $storage, $premium=1)\n {\n //Get video name and storage location for video\n $video = Video::where('id', '=', $videoId)->first();\n\n //Check the storage medium\n if($storage == 'vimeo' || $storage == 'youtube')\n {\n $video->name = $fileName;\n $video->storage = $storage;\n $video->premium = $premium;\n $video->save();\n }\n else\n {\n if($video['storage'] == 'local' || $video['storage'] == 's3')\n {\n //Delete old video\n $this->deleteResource($video->name, $video->storage);\n }\n \n //Store the new video\n $video->name = $fileName;\n $video->storage = $storage;\n $video->premium = $premium;\n $video->save();\n }\n }", "public function put($resource, $with=[]){\n return $this->fetch($resource, self::PUT, $with);\n }", "public function update($id, $resource) {\n SCA::$logger->log(\"update resource\");\n return $this->orders_service->update($id, $resource);\n }", "public function update($path);", "public function update($id, $resource)\n {\n SCA::$logger->log(\"Entering update()\");\n //check whether it is an sdo or an xml string.\n if ($resource instanceof SDO_DataObjectImpl) {\n //if the thing received is an sdo convert it to xml\n if ($this->xml_das !== null) {\n $xml = SCA_Helper::sdoToXml($this->xml_das, $resource);\n } else {\n throw new SCA_RuntimeException(\n 'Trying to update a resource with SDO but ' .\n 'no types specified for reference'\n );\n }\n } else {\n $xml = $resource;\n }\n\n $slash_if_needed = ('/' === $this->target_url[strlen($this->target_url)-1])?'':'/';\n\n $handle = curl_init($this->target_url.$slash_if_needed.\"$id\");\n curl_setopt($handle, CURLOPT_HEADER, false);\n curl_setopt($handle, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($handle, CURLOPT_CUSTOMREQUEST, \"PUT\");\n curl_setopt($handle, CURLOPT_POSTFIELDS, $xml);\n\n //replace with Content-Type: atom whatever\n $headers = array(\"User-Agent: SCA\",\n \"Content-Type: text/xml;\",\n \"Accept: text/plain\");\n curl_setopt($handle, CURLOPT_HTTPHEADER, $headers);\n\n $result = curl_exec($handle);\n\n $response_http_code = curl_getinfo($handle, CURLINFO_HTTP_CODE);\n\n curl_close($handle);\n\n $response_exception = $this->buildResponseException($response_http_code, '200');\n\n if ($response_exception != null) {\n throw $response_exception;\n } else {\n //update does not return anything in the body\n return true;\n }\n }", "public function update(Request $request, $id)\n {\n $this->validate($request, [\n 'name' => 'required',\n 'link' => 'required',\n 'description' => 'required'\n ]);\n\n $resource = Resource::find($id);\n $resource->name = $request->name;\n $resource->type_id = $request->type_id;\n $resource->has_cost = ($request->has('has_cost')) ? 1 : 0;\n $resource->language_id = $request->language_id;\n $resource->link = $request->link;\n $resource->description = $request->description;\n $resource->tags = '';\n\n $resource->save();\n //return back()->with('success', 'Recurso actualizado satisfactoriamente');\n return redirect('/resource')->with('success', 'Recurso actualizado satisfactoriamente');\n }", "public function update(Request $request, $id)\n {\n $oldProduct = Product::findOrFail($id);\n $data = $request->all();\n if(isset($data['img'])){\n // $file = $request->file('photo');\n // return $file;\n $imgName = time().'.'.$request->img->extension();\n $data['img'] = $imgName;\n // Storage::putFile('spares', $file);\n $path = $request->img->storeAs('public/uploads', $imgName); //in Storage\n\n //delete old file\n if($oldProduct->img != 'product-default.png'){\n Storage::delete(\"public/uploads/\".$oldProduct->img);\n // return 'deleted';\n }\n \n }else{\n $data['img'] = $oldProduct->img;\n }\n $oldProduct->update($data);\n return redirect()->route('product.index'); \n\n }", "public function update($request, $id) {\n\t\t\t$image = $request['photo'];\n\t\t\tif($image !== null) {\n\t\t\t\t$name = time().'.' . explode('/', explode(':', substr($image, 0, strpos($image, ';')))[1])[1];\n\t\t\t\t\\Image::make($request['photo'])->save(public_path('storage/products/').$name);\n\t\t\t\t$request['photo'] = $name;\n\t\t\t} else {\n\t\t\t\t$currenPhoto = Product::all()->where('id', $id)->first();\n\t\t\t\t$request['photo'] = $currenPhoto->photo;\n\t\t\t}\n return $this->product->update($id, $request);\n\t}", "public function updateStream($path, $resource, Config $config)\n {\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function updateResourceIndex(&$resource) {\n if ($this->connector != null) {\n\n // STEP 1: Update or insert this resource as a node:\n $this->logger->addDebug(\"Updating/Inserting Node into Neo4J database\");\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id} }) SET a.title = {title}, a.version = {version}, a.href = {href}\n return a;\",\n [\n 'id' => $resource->getID(),\n 'version' => $resource->getVersion(),\n 'title' => $resource->getTitle(),\n 'href' => $resource->getLink()\n ]\n );\n\n // Check to see if anything was added\n $records = $result->getRecords();\n if (empty($records)) {\n // Must create this record instead\n $result = $this->connector->run(\"CREATE (n:Resource) SET n += {infos};\",\n [\n \"infos\" => [\n 'id' => $resource->getID(),\n 'version' => $resource->getVersion(),\n 'title' => $resource->getTitle(),\n 'href' => $resource->getLink()\n ]\n ]\n );\n }\n\n // STEP 2: Update or insert the resource's link to holding repository\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id} })-[r:HIRELATION]->()\n return r;\",\n [\n 'id' => $resource->getID(),\n ]\n );\n $records = $result->getRecords();\n if (!empty($records)) {\n // delete the one there so that we can add the correct one (just in case)\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id}})-[r:HIRELATION]->() delete r;\",\n [\n 'id' => $resource->getID()\n ]\n );\n\n }\n\n // If resource has a repository, then add a link\n if ($resource->getRepository() != null && $resource->getRepository()->getID() != null) {\n $this->connector->run(\"MATCH (a:Identity {id: {id1} }) MATCH (b:Resource {id: {id2} }) CREATE (b)-[r:HIRELATION]->(a);\",\n [\n 'id1' => (string) $resource->getRepository()->getID(),\n 'id2' => $resource->getID()\n ]);\n }\n }\n }", "public function update($data) {}", "public function update($data) {}", "public function putStream($resource);", "public function update(Request $request, NebulaResource $resource, $item): RedirectResponse\n {\n $this->authorize('update', $item);\n\n $validated = $request->validate($resource->rules(\n $resource->editFields()\n ));\n\n $resource->updateQuery($item, $validated);\n\n $this->toast(__(':Resource updated', [\n 'resource' => $resource->singularName(),\n ]));\n\n return redirect()->back();\n }", "public function saveShopifyResource() {\n if (is_null($this->getShopifyId())) { // if there is no id...\n $this->createShopifyResource(); // create a new resource\n } else { // if there is an id...\n $this->updateShopifyResource(); // update the resource\n }\n }", "public function update($entity);", "public function update($entity);", "public function setResource($resource);", "public function updateStream($path, $resource, Config $config)\n {\n return $this->upload($path, $resource, $config);\n }", "public function isUpdateResource();", "public function update(Request $request, $id)\n {\n $device = Device::findOrFail($id);\n $device->fill($request->all());\n if ($request->hasFile('icon')) {\n if ($device->hasMedia('icon')) {\n $device->deleteMedia($device->getFirstMedia('icon'));\n }\n $device->addMediaFromRequest('icon')->toMediaCollection('icon');\n }\n $device->save();\n return new DeviceResource($device);\n }", "public function update(Request $request, $id)\n {\n //\n $product = Product::findOrFail($id);\n \n $product->update($request->all());\n \n $file = $request->file('url_image')->move('upload', $request->file('url_image')->getClientOriginalName());\n\n Product::where('id',$id)->update(['url_image'=>$file]);\n \n \\Session::flash('flash_message', 'Edit product successfully.'); \n \n //cũ : return redirect('articles');\n return redirect()->route('products.index');\n }", "public function store($data, Resource $resource);", "public function update(Request $request, $id)\n {\n \n $product = Product::find($id);\n\n\n $product->fill($request->all())->save();\n\n //Verificamos que tenemos una imagen\n if($request->file('photo_1')){\n\n\n //En caso de tenerla la guardamos en la clase Storage en la carpeta public en la carpeta image.\n $path = Storage::disk('public')->put('photo_1',$request->file('photo_1'));\n\n //Actualizamos el Post que acabamos de crear\n $product->fill(['photo_1' => asset($path)])->save();\n\n }\n\n\n return redirect()->route('products.index')->with('info', 'Producto actualizado exitosamente!');\n }", "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n\n if (\\Input::hasFile('image')) {\n $this->imgsave($request, $product);\n }\n\n\n if (!empty($request->input('tags'))) {\n $product->tags()->sync($request->input('tags'));\n } else {\n $product->tags()->detach();\n }\n\n $product->update($request->all());\n\n return redirect()->to('dashboard/product')->with('message', 'update success');\n }", "public function put($resource_path, array $variables = array()) {\n return $this->call($resource_path, $variables, 'PUT');\n }", "public function update($id)\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'updateValidations')) {\n $this->request->validate($this->updateValidations());\n }\n\n /* Get the specified resource */\n $resource = $this->model::findOrFail($id);\n\n /* Update the specified resource */\n $resource->update(Input::all());\n\n /* Redirect back */\n return redirect()->back()\n ->with(\n 'info',\n Lang::has($this->name . '.resource-updated') ?\n $this->name . '.resource-updated' :\n 'messages.alert.resource-updated'\n );\n }", "public function putResponse($request)\n {\n $idSearched = $this->searcher->searchResourceIndex(\n $request, \n $this->db[$request['resource']]\n );\n if ($idSearched) {\n $resource = $this->db[$request['resource']][$idSearched];\n $bodyInput = json_decode($this->standardInput, true);\n $resource = BodyRequest::canApplyBody($bodyInput);\n $resource['id'] = (int)$request['param'];\n foreach($resource as $key => $value) {\n $this->db[$request['resource']][$idSearched][$key] = $value;\n }\n file_put_contents(DB_PATH, json_encode($this->db));\n }\n }", "public function update(Storedataset $request, dataset $dataset){\n $dataset->title = $request->input('title');\n $dataset->caption = $request->input('caption');\n $dataset->file_url = $request->input('file_url');\n $dataset->type = $request->input('type');\n $dataset->status = $request->input('status');\n $dataset->publication_id = $request->input('publication_id');\n\n $dataset->save();\n\n return redirect()->route('datasets.show', ['dataset' => $dataset]);\n }", "public function update(Request $request, $id)\n\n {\n ResourceManagement::findOrFail($id);\n $constraints = [\n 'title' => 'required|max:100',\n 'url'=> 'required|max:191',\n 'content' => 'required'\n ];\n\n $input = [\n 'title' => $request['title'],\n 'url' => $request['url'],\n 'content' => $request['content'],\n 'type' => $request['type'],\n 'level' => $request['level'],\n 'user_id' => $request['user']\n ];\n// $this->validate($input, $constraints);\n ResourceManagement::where('id', $id)\n ->update($input);\n\n return redirect()->intended('/resource-management');\n }", "public function update(Request $request, $id)\n {\n $this->validate($request, [\n 'title' => 'required',\n 'description' => 'required|string',\n 'price' => 'required|numeric',\n 'reference'=>'required'\n ]);\n \n $product = Product::find($id);\n $product->update($request->all());\n \n $im = $request->file('picture');\n \n if (!empty($im)) {\n \n $link = $request->file('picture')->store('images');\n \n \n $product->update([\n 'url_image' => $link,\n ]);\n } \n //dump($request->all());\n return redirect()->route('product.index')->with('message', 'Article modifié avec succès');\n }", "public function update(StoreOrUpdateAsset $request, Asset $asset)\n {\n if (Storage::exists($asset->path) && !Storage::delete($asset->path)) {\n abort(500);\n }\n\n $file = $request->file('file');\n $path = $file->store('assets');\n\n if (!$path) {\n abort(500);\n }\n\n // We wonder if we should delete the old file or not...\n\n $asset->name = $file->getClientOriginalName();\n $asset->size = $file->getSize();\n $asset->type = $file->getMimeType();\n $asset->path = $path;\n\n if ($asset->save()) {\n flash('The asset has been saved.')->success();\n } else {\n abort(500);\n }\n\n return redirect('/admin/assets');\n }", "public function update(FoodRecipeRequest $request, $id)\n {\n $foodRecipe = FoodRecipe::with('ingredients','cookingProcesses')->findOrFail($id);\n if ($request->input('name')!= null)\n $foodRecipe->name = $request->input('name');\n if ($request->input('detail')!= null)\n $foodRecipe->detail = $request->input('detail');\n if($request->file('photo') != null) {\n $old_file = $foodRecipe->photo;\n if($old_file != null){\n $path = public_path().'/storage/'.$old_file;\n File::delete($path);\n }\n $file = $request->file('photo');\n $name = '/foodRecipe/' . Carbon::now()->format(\"dnY-Hisu\") . \".\" . $file->extension();\n $file->storePubliclyAs('public', $name);\n $foodRecipe->photo = $name;\n }\n $foodRecipe->save();\n return new FoodRecipeResource($foodRecipe);\n }", "public function update(StorageTypeRequest $request, $id)\n {\n try {\n $this->service->updateStorageType($request, $id);\n return $this->NoContent();\n } catch (EntityNotFoundException $e) {\n \\Log::error($e->getMessage());\n return $this->NotFound($e->getMessage());\n } catch(\\QueryException $e) {\n \\Log::error($e->getMessage());\n return $this->ServerError();\n } catch(Exception $e) {\n \\Log::error($e->getMessage());\n return $this->ServerError();\n }\n }", "public function update(Request $request, $id)\n {\n //validation\n $this->validate(request(),[\n 'image' => 'image'\n ]);\n\n $slider = HomeSliders::find($id);\n \n $slider->link = request('link');\n\n //get old image to delete if updated\n $oldImage = request('oldImage');\n //get the new image\n $NewImage=$request->file('image');\n\n if($NewImage)\n {\n $filenameToStore= helpers::updatePhoto('image','homeSliders',$request);\n $slider->image=$filenameToStore;\n\n Storage::delete('public/Images/homeSliders/'.$oldImage);\n }\n\n $slider->save();\n\n Alert::success(config('app.name'), trans('messages.Updated Successfully') );\n return redirect()->route('admin.homeSlider',$slider->type);\n }", "public function update(Qstore $request, $id)\n {\n //\n }", "public function update(IEntity $entity);", "protected function performUpdate(): bool\n {\n // Abort if resource does not support update operations\n if (!$this->isUpdatable()) {\n throw new UnsupportedOperation(sprintf('API does not support update operation for %s resources', $this->resourceNameSingular()));\n }\n\n $id = $this->id();\n $prepared = $this->prepareBeforeUpdate($this->toArray());\n\n $payload = [\n $this->resourceNameSingular() => $prepared\n ];\n\n $response = $this\n ->request()\n ->put($this->endpoint($id), $payload);\n\n // Extract and (re)populate resource (if possible)\n // Note: Unlike the \"create\" method, Redmine does NOT\n // appear to send back a full resource when it has been\n // successfully updated.\n $this->fill(\n $this->decodeSingle($response)\n );\n\n return true;\n }", "public function update($request, $id);", "function put($resource, $data = null) {\r\n\t\t\r\n\t\tif(isset($data)) {\r\n\t\t\t$this->request_body = $data;\r\n\t\t}\r\n\r\n\t\t// make the call chief\r\n\t\t$this->exec ( \"PUT\", '/' . $resource );\r\n\r\n\t\t// check the request status\r\n\t\tif($this->status_code != 200){\r\n\t\t\t$this->Logger->error(\r\n\t\t\t\tsprintf(\r\n\t\t\t\t\t'GET Call for resource \\'%s\\' Failed.\r\n\t\t\t\t\tStatus: %d,\r\n\t\t\t\t\tRequest: %s\r\n\t\t\t\t\tAPI Error Message: \r\n\t\t\t\t\t%s',\r\n\t\t\t\t\t$resource,\r\n\t\t\t\t\t$this->status_code,\r\n\t\t\t\t\t$this->request_body_raw,\r\n\t\t\t\t\t$this->response_body\r\n\t\t\t\t)\r\n\t\t\t);\r\n\t\t\tthrow new Exception($this->response_body);\r\n\t\t} else {\r\n\t\t\treturn $this->response_parsed;\r\n\t\t}\r\n\t}", "public function updateEntities($resource)\n {\n $json = [\n 'resource' => $resource,\n ];\n $request = $this->createRequest('PUT', '/entities', ['json' => $json]);\n $response = $this->send($request);\n return $response;\n }", "public function updateStream($path, $resource, Config $config)\n {\n return $this->writeStream($path, $resource, $config);\n }", "public function update(Request $request, $id)\n {\n\n $product = Product::findOrFail($id);\n $product->name = $request['name'];\n $product->price = $request['price'];\n $product->stock = $request['stock'];\n $product->description = $request['description'];\n\n $file = $request->file('image');\n $fileName = $file->getClientOriginalName();\n if($fileName != $product->image){\n $request->file('image')->move('images/',$fileName);\n $product->image = $fileName;\n }\n\n $product->save();\n\n return redirect()->route('products.show',\n $product->id)->with('flash_message',\n 'Article, '. $product->name.' updated');\n }", "protected function handleUpdate()\n {\n $resource = $this->argument('resource');\n $action = $this->option('action');\n $startPage = (int)$this->option('startPage');\n $perPage = (int)$this->option('perPage');\n\n try {\n $harvest = Harvest::where('resource', $resource)->where('action', $action)->firstOrFail();\n } catch (\\Exception $e) {\n $this->info('There is no existing action for updating ' . ucwords($action) . ' ' . ucwords($resource) . '.');\n exit('Nothing was updated.');\n }\n\n $options = [\n 'startPage' => $startPage,\n 'perPage' => $perPage,\n 'lastRun' => $harvest->last_run_at\n ];\n\n // If a lastRun was given use that\n // OR if this has never been run before use 2001-01-01\n if (!empty($this->option('lastRun'))) {\n $options['lastRun'] = new Carbon($this->option('lastRun'));\n } elseif (is_null($options['lastRun'])) {\n $options['lastRun'] = new Carbon('2001-01-01');\n }\n\n $job = new UpdateResourceJob(\n $harvest,\n $options\n );\n\n $message = 'Updating ' . $action . ' ' . $resource . ' ' . $perPage . ' at a time';\n if (isset($lastRun)) {\n $message .= ' with entries updated since ' . $lastRun->format('r');\n }\n $this->info($message);\n $this->dispatch($job);\n }", "abstract public function put($data);", "public function update($id, $data);", "public function update($id, $data);", "public function update($id, $data);", "public function update($id, $data);", "public function update($id, $data);", "public function testUpdateSupplierUsingPUT()\n {\n }", "public function update(Request $request, $id)\n {\n $storageplace = Storageplace::findOrFail($id);\n $storageplace->update($request->only(['storageplace']));\n return $storageplace;\n }", "public function updateRelatedImage(Request $request, $id)\n {\n // Delete display image in Storage\n Validator::make($request->all(), ['photos' => \"required|file|image|mimes:jpg,png,jpeg|max:5000\"])->validate();\n\n\n if ($request->hasFile(\"photos\")) {\n\n $photo = ProductsPhoto::find($id);\n $imageName = $photo->photos;\n $exists = Storage::disk('local')->exists(\"public/product_images/\" . $photo->photos);\n\n //delete old image\n if ($exists) {\n Storage::delete('public/product_images/' . $imageName);\n }\n\n //upload new image\n $ext = $request->file('photos')->getClientOriginalExtension(); //jpg\n\n $request->photos->storeAs(\"public/product_images/\", $imageName);\n\n $arrayToUpdate = array('photos' => $imageName);\n DB::table('products_photos')->where('id', $id)->update($arrayToUpdate);\n\n return redirect()->route(\"adminDisplayRelatedImageForm\", ['id' => $photo->product_id]);\n } else {\n\n $error = \"NO Image was Selected\";\n return $error;\n }\n }", "public function update(Request $request, $id)\n {\n $skill = Skill::findOrFail($id);\n\n $skill->skill = $request->skill;\n\n if ($request->hasFile('image')) {\n \\Cloudder::upload($request->file('image'));\n $c=\\Cloudder::getResult();\n // $image = $request->file('image');\n // $filename = time() . '.' . $image->getClientOriginalExtension();\n // $location = public_path('images/' . $filename);\n // Image::make($image)->save($location);\n\n $skill->image = $c['url'];\n }\n\n $skill->save();\n\n Session::flash('success', 'Successsfully updated your skill!');\n return redirect()->route('skills.index');\n }", "public function updateStream($path, $resource, Config $config = null)\n {\n $contents = stream_get_contents($resource);\n\n return $this->write($path, $contents, $config);\n }", "public abstract function update($object);", "public static function update($id, $file)\n {\n Image::delete($id);\n\n Image::save($file);\n }", "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n $image = $product->image;\n if($request->hasFile('image')){\n $image = $request->file('image')->store('files');\n \\Storage::delete($product->image);\n } \n $product->name = $request->get('name');\n $product->price = $request->get('price');\n $product->description = $request->get('description');\n $product->additional_info = $request->get('additional_info');\n $product->category_id = $request->get('category');\n $product->subcategory_id = $request->get('subcategory');\n $product->image = $image;\n $product->save();\n return redirect()->back();\n }", "public function update(Request $request, $id)\n {\n $sli=Slider::find($id);\n $sli->sort_order=$request->input('sort_order');\n $image = $request->file('slider');\n if($image == ''){\n $image = $sli->slider;\n }else{\n $image = base64_encode(file_get_contents($request->file('slider')));\n }\n $sli->slider = $image;\n $sli->save();\n return redirect()->back();\n }", "public function update(ProductRequest $request, $id)\n {\n $input = Product::find($id);\n $data = $request->all();\n if ($file = $request->file('product_photo')){\n $name = time().$file->getClientOriginalName();\n $file->move('product_image',$name);\n $data['product_photo']=$name;\n// $input->update($data);\n }\n $input->update($data);\n return redirect('admin/products/');\n }", "public function update(Request $request, $id)\n {\n $volume = $this->findVolume($id);\n\n if(count($volume) > 0) {\n $volume->str_volume_name = $request->str_volume_name;\n\n $volume->save();\n }\n\n return response()\n ->json(\n array(\n 'message' => 'Volume is successfully updated.',\n 'volume' => $volume\n ),\n 201\n );\n }", "public function update(Request $request, $id)\n {\n $product = ProductModel::find($id);\n $product->name = $request->name;\n $product->description = $request->description;\n $product->price = $request->price;\n $product->stock = $request->stock;\n\n if($request->image!=null){\n $imageName = time().'.'.$request->image->extension();\n $request->image->move(public_path('images'), $imageName);\n $product->image = \"/images/\".$imageName;\n }\n $product->save();\n return redirect(\"/products/index\")->with('success','Product has been updated');\n }", "public function update()\n {\n $accessory = Accessories::find(request('id'));\n\n if ($accessory == null) {\n return response()->json([\"error\" => \"aksesuaras nerastas\"], 404);\n }\n\n $this->validateData();\n $path = $accessory->src;\n\n if (request()->hasFile('src')) {\n\n if (Storage::disk('public')->exists($accessory->src)) {\n Storage::disk('public')->delete($accessory->src);\n }\n $path = request()->file('src')->store('accessoriesImages', 'public');\n }\n\n $accessory->update(array_merge($this->validateData(), ['src' => $path]));\n\n return response()->json([\"data\" => $accessory], 200);\n }", "public function update(ProductStoreRequest $request,$id)\n {\n $data = $request->validated();\n $product = Product::where('id',$id);\n $product->update($data);\n return response(\"Producto actualizado con éxito\",200);\n }", "public function update($entity)\n {\n \n }", "public function updateStream($path, $resource, Config $config)\n {\n return $this->write($path,stream_get_contents($resource),$config);\n }", "public function update($id, Request $request)\n {\n date_default_timezone_set('Asia/Taipei');\n $data = $request->all();\n $dbData = Product::find($id);\n $myfile = Storage::disk('local');\n if ($request->hasFile('img')) {\n $file = $request->file('img');\n $path = $myfile->putFile('public', $file);\n $data['img'] = $myfile->url($path);\n File::delete(public_path($dbData->img));\n }\n $dbData->update($data);\n\n if ($request->hasFile('imgs')) {\n // $this->fetchDestroyByProdId($id);\n $localS = Storage::disk('local');\n\n $fileS = $request->file('imgs');\n $imgs = [];\n foreach ($fileS as $i) {\n $pathS = $localS->putFile('public', $i);\n $imgs[] = $localS->url($pathS);\n }\n foreach ($imgs as $img) {\n ProductImg::create([\n 'product_id' => $id,\n 'img' => $img\n ]);\n }\n }\n\n return redirect()->route('admin');\n }", "public function update(Request $request, Product $product)\n { $remfile= $product->image;\n if($request->filep){\n $product->image=$request->filep;\n File::delete(storage_path('app/public/products/'.$remfile));\n }else{\n $product->image=$remfile;\n }\n //rmdir(storage_path('app/public/products/'.$remfile));\n $product->name = $request->name;\n $product->description = $request->description;\n $product->price = $request->price;\n $product->save();\n sleep(3);\n toast('Details updated successfully','info');\n return redirect('/products');\n }", "public function update($id, $input);", "public function update(ProductRequest $request,int $id): ProductResource\n {\n $attributes = $request->only('supplier_id', 'name', 'warehouses');\n\n return new ProductResource($this->productRepository->update($id, $attributes)); }", "public function update(Request $request, $id)\n {\n $slider=new Slider;\n $slider=$slider::find($id);\n \n \n if($file =$request->file('slider')){\n if(Storage::delete('public/slider/'.$slider->slider)){\n\n //Get file original name//\n \n$original_name=$file->getClientOriginalName();\n\n //Get just the file name\n$filename=pathinfo($original_name,PATHINFO_FILENAME);\n\n//Create new file name\n$name=$filename.'_'.time().'.'.$file->getClientOriginalExtension();\n\n $destination='public/slider';\n $path=$request->slider->storeAs($destination,$name);\n $slider->slider=$name;\n $slider->save();\n return redirect('Admin/slider');\n\n }\n }\n}", "public function update(Request $request, $id)\n {/* dd($request->all()); */\n $acheivePic = $this->acheiveRepo->find($id);\n $acheive = $request->except('_method', '_token', 'photo', 'ar', 'en');\n $acheiveTrans = $request->only('ar', 'en');\n\n if ($request->hasFile('icon')) {\n // Delete old image first.\n $oldPic = public_path() . '/images/acheives/' . $acheivePic->icon;\n File::delete($oldPic);\n\n // Save the new one.\n $image = $request->file('icon');\n $imageName = $this->upload($image, 'acheives');\n $acheive['icon'] = $imageName;\n }\n\n $this->acheiveRepo->update($id, $acheive, $acheiveTrans);\n\n return redirect('admin-panel/widgets/acheive')->with('updated', 'updated');\n }", "public function update(Request $request, $id)\n {\n $data = $request->all();\n extract($data);\n\n $productVarient = new ProductVariant();\n $productVarient = $productVarient->find($id);\n $productVarient->vendor_id = auth()->user()->id;\n $productVarient->description = $prod_desc;\n $productVarient->price = $price;\n\n if(request()->hasFile('photo')){\n $image = request()->file('photo')->getClientOriginalName();\n $imageNewName = auth()->user()->id.'-'.$image;\n $file = request()->file('photo');\n $file->storeAs('images/product',$imageNewName, ['disk' => 'public']);\n $productVarient->image = $imageNewName;\n }\n \n $productVarient->save();\n\n return back()->withStatus(__('Product successfully updated.'));\n }", "public function update(Request $request, $id)\n {\n //if upload new image, delete old image\n $myfile=$request->old_photo;\n if($request->hasfile('photo'))\n {\n $imageName=time().'.'.$request->photo->extension();\n $name=$request->old_photo;\n\n if(file_exists(public_path($name))){\n unlink(public_path($name));\n $request->photo->move(public_path('backendtemplate/truefalseimg'),$imageName);\n $myfile='backendtemplate/truefalseimg/'.$imageName;\n }\n }\n //Update Data\n $truefalsequestion=TrueFalseQuestion::find($id);\n $truefalsequestion->name=$request->name;\n $truefalsequestion->photo=$myfile;\n $truefalsequestion->answer = $request->answer;\n $truefalsequestion->question_id = $request->question;\n $truefalsequestion->save();\n\n //Redirect\n return redirect()->route('truefalsequestions.index'); \n }", "public function update($id);", "public function update($id);", "private function update()\n {\n $this->data = $this->updateData($this->data, $this->actions);\n $this->actions = [];\n }", "public function put($path, $data = null);", "public function update(Request $request, $id)\n {\n $request->validate([\n 'path_image'=>'image',\n 'status'=>'required|in:0,1'\n ]);\n $slider=Slider::whereId($id)->first();\n if (is_null($slider)){\n return redirect()->route('sliders.index')->with('error','Slider does not exist');\n }\n try {\n if ($request->hasFile('path_image')){\n $file = $request->file('path_image');\n\n $image_path= $file->store('/sliders',[\n 'disk'=>'uploads'\n ]);\n Storage::disk('uploads')->delete($slider->image);\n\n $request->merge([\n 'image'=>$image_path,\n ]);\n }\n\n $slider->update( $request->only(['status','image']));\n return redirect()->route('sliders.index')->with('success','Updated successful');\n }catch (\\Exception $exception){\n return redirect()->route('sliders.index')->with(['error'=>'Something error try again']);\n\n }\n }", "public function update() {\n $this->accessory->update($this->accessory_params());\n\n if ($this->accessory->is_valid()) {\n $this->update_accessory_image($this->accessory);\n redirect('/backend/accessories', ['notice' => 'Successfully updated.']);\n } else {\n redirect(\n '/backend/accessories/edit',\n ['error' => $this->accessory->errors_as_string()],\n ['id' => $this->accessory->id]\n );\n }\n }", "public function update(Entity $entity);", "public function update(Request $request, $id)\n {\n $icon = SliderIcon::find($id);\n $data = $request->all();\n $data['active'] = $request->has('active') ? 1 : 0;\n if ($request->hasFile('img')) {\n if (Storage::disk('public')->exists(str_replace('storage', '', $icon->img))){\n Storage::disk('public')->delete(str_replace('storage', '', $icon->img));\n }\n $image = $request->file('img');\n $fileName = time().'_'.Str::lower(Str::random(5)).'.'.$image->getClientOriginalExtension();\n $path_to = '/upload/images/'.getfolderName();\n $image->storeAs('public'.$path_to, $fileName);\n $data['img'] = 'storage'.$path_to.'/'.$fileName;\n }\n $icon->update($data);\n return redirect()->route('slider_icons.index')->with('success', 'Данные преимущества обнавлены');\n }", "public function update() {\n\t $this->layout = false;\n\t \n\t //set default response\n\t $response = array('status'=>'failed', 'message'=>'HTTP method not allowed');\n\t \n\t //check if HTTP method is PUT\n\t if($this->request->is('put')){\n\t //get data from request object\n\t $data = $this->request->input('json_decode', true);\n\t if (empty($data)) {\n\t $data = $this->request->data;\n\t }\n\t \n\t //check if product ID was provided\n\t if (!empty($data['id'])) {\n\t \n\t //set the product ID to update\n\t $this->Player->id = $data['id'];\n\t if ($this->Player->save($data)) {\n\t $response = array('status'=>'success','message'=>'Product successfully updated');\n\t } else {\n\t $response['message'] = \"Failed to update product\";\n\t }\n\t } else {\n\t $response['message'] = 'Please provide product ID';\n\t }\n\t }\n\t \n\t $this->response->type('application/json');\n\t $this->response->body(json_encode($response));\n\n\t return $this->response->send();\n\t}", "public function update(Request $request, $id)\n {\n //validate incoming request\n $request->validate([\n 'name' => 'string|max:100|nullable',\n 'picture' => 'max:2000|mimes:jpeg,jpg,png,svg|nullable', //max size 2mb,\n 'total' => 'integer|min:0|nullable', //value must be > 0\n 'selling_price' => 'numeric|min:0|nullable',\n 'cost_price' => 'numeric|min:0|nullable',\n 'category_id' => 'integer|nullable'\n ]);\n\n try {\n $product = Auth::user()->store->product()->findorFail($id);\n } catch (ModelNotFoundException $e) {\n return response()->json([\n \"message\" => \"Forbidden\"\n ], 403);\n }\n\n //if category id isnt null\n if ($category_id = $request->category_id) {\n if (!$this->isCategoryIdValid($category_id))\n return response()->json([\n \"message\" => \"Category Id is not valid\"\n ], 422);\n else\n $product->category_id = $request->category_id;\n }\n\n //if uploaded file exist\n if ($picture = $request->file(\"picture\")) {\n //if product already has logo\n if ($product->picture)\n Storage::delete(Product::$PICTURE_PATH . \"/\" . $product->picture);\n\n $picture_path = $picture->store(Product::$PICTURE_PATH);\n //remove folder name from path\n $product->picture = str_replace(Product::$PICTURE_PATH . \"/\", '', $picture_path);\n }\n\n $this->renewProduct($product, $request);\n $product->save();\n return response()->json(new ProductResource($product), 200);\n }", "public function update(Request $request, $id)\n {\n $request->validate([\n 'name' => 'required | min:3 | string',\n 'type' => 'required',\n 'producer' => 'required',\n 'image' => 'image | mimes:png,jpg,jpeg',\n 'price_input' => 'required | numeric | min:0 | max:300000000',\n 'promotion_price' => 'required | numeric | max:300000000',\n 'description' => 'required | string',\n\n ]);\n $product = Product::withTrashed()->findOrfail($id);\n $product->name = $request->name;\n $product->id_type = $request->type;\n $product->id_producer = $request->producer;\n\n $product->amount = $request->amount;\n if (request('image')) {\n $product->image = base64_encode(file_get_contents($request->file('image')->getRealPath()));\n }\n\n $product->price_input = $request->price_input;\n\n if ( $request->promotion_price >= 0 && $request->promotion_price < $product->price_input) {\n $product->promotion_price = $request->promotion_price;\n }else{\n return back()->with('error', '\n Do not enter a negative number');\n }\n $product->new = $request->new;\n\n $product->description = $request->description;\n\n $product->save();\n $product->size()->sync(request('size'));\n\n return redirect()->route('product.index')->with('success', 'Product Updated successfully');\n }", "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n\n $product->name = $request->input('name');\n $product->description = $request->input('description');\n $product->lastPrice = $product->price !== $request->input('price') ? $product->price : NULL;\n $product->price = $request->input('price');\n\n if ($request->hasFile('image')) { \n $currentImg = $product->image;\n if ($currentImg) {\n Storage::delete('/public/' . $currentImg);\n }\n $image = $request->file('image'); \n $path = $image->store('images','public');\n $product->image = $path;\n };\n\n $product->save(); \n\n $product_promotions = $request->input('promotion');\n\n $product->promotions()->sync($product_promotions);\n\n return redirect()->route('admin.modify');\n }", "public static function updateImage($fileName, $imageId, $storage)\n {\n //Get image name and storage location for image\n $image = Image::where('id', '=', $imageId)->first();\n\n //Delete old image\n ResourceHandler::delete($image->name, $image->storage);\n\n //Store the new image\n $image->name = $fileName;\n $image->storage = $storage;\n\n $image->save();\n }", "public function update($request, $id)\n {\n $this->checkExits($id);\n $data = $request->except(['_method','_token','photo']);\n\n if($request->photo)\n {\n try {\n $this->UploadFile($request);\n } catch (\\Exception $e) {\n //if has exception , don't has action\n }\n if ($this->img !== '') {\n $data['img'] = $this->img;\n }\n }\n\n $this->object->update($data);\n\n }", "public function updateProduct($request, $product)\n {\n $product->update($request->except(['_token', '_method', 'image']));\n if ($request->hasFile('image')) {\n $image = $request->file('image');\n $imageName = time() . '.' . $request->file('image')->extension();\n // $img = Image::make('public/foo.jpg');\n\n $image_resize = Image::make($image->getRealPath());\n $image_resize->resize(500, 500);\n $image_resize->save(public_path('images/') . $imageName, 100);\n $product->gallery = $imageName;\n $product->save();\n }\n $product->getTags()->sync($request->input('tags'));\n }" ]
[ "0.7425105", "0.70612276", "0.70558053", "0.6896673", "0.6582159", "0.64491373", "0.6346954", "0.62114537", "0.6145042", "0.6119944", "0.61128503", "0.6099993", "0.6087866", "0.6052593", "0.6018941", "0.60060275", "0.59715486", "0.5946516", "0.59400934", "0.59377414", "0.5890722", "0.5860816", "0.5855127", "0.5855127", "0.58513457", "0.5815068", "0.5806887", "0.57525045", "0.57525045", "0.57337505", "0.5723295", "0.5714311", "0.5694472", "0.5691319", "0.56879413", "0.5669989", "0.56565005", "0.56505877", "0.5646085", "0.5636683", "0.5633498", "0.5633378", "0.5632906", "0.5628826", "0.56196684", "0.5609126", "0.5601397", "0.55944353", "0.5582592", "0.5581908", "0.55813426", "0.5575312", "0.55717176", "0.55661047", "0.55624634", "0.55614686", "0.55608666", "0.55599797", "0.55599797", "0.55599797", "0.55599797", "0.55599797", "0.55573726", "0.5556878", "0.5554201", "0.5553069", "0.55530256", "0.5543788", "0.55435944", "0.55412996", "0.55393505", "0.55368495", "0.5535236", "0.5534954", "0.55237365", "0.5520468", "0.55163723", "0.55125296", "0.5511168", "0.5508345", "0.55072427", "0.5502385", "0.5502337", "0.5501029", "0.54995877", "0.54979175", "0.54949397", "0.54949397", "0.54946727", "0.5494196", "0.54941916", "0.54925025", "0.5491807", "0.5483321", "0.5479606", "0.5479408", "0.5478678", "0.54667485", "0.5463411", "0.5460588", "0.5458525" ]
0.0
-1
Remove the specified resource from storage.
public function destroy($id) { $shipping = Shipping::find($id); Storage::delete($shipping->logo); $shipping->delete(); session()->flash('success', trans('admin.record_deleted')); return redirect(aurl('shippings')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete($resource){\n return $this->fetch($resource, self::DELETE);\n }", "public function destroy(Resource $resource)\n {\n //\n }", "public function removeResource($resourceID)\n\t\t{\n\t\t}", "public function unpublishResource(PersistentResource $resource)\n {\n $client = $this->getClient($this->name, $this->options);\n try {\n $client->delete(Path::fromString($this->getRelativePublicationPathAndFilename($resource)));\n } catch (FileDoesNotExistsException $exception) {\n }\n }", "public function deleteResource(&$resource) {\n\n if ($this->connector != null) {\n $this->logger->addDebug(\"Deleting Resource Node from Neo4J database\");\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id}}) detach delete a;\",\n [\n 'id' => $resource->getID()\n ]\n );\n $this->logger->addDebug(\"Updated neo4j to remove resource\");\n }\n\n }", "public function deleteShopifyResource() {\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'DELETE',\n ]);\n }", "public function deleteResource()\n {\n $database = new Database();\n $id = $this->_params['id'];\n $database->deleteResource($id);\n $this->_f3->reroute('/Admin');\n }", "protected function deleteResource($fileName, $storage)\n {\n if (Storage::disk($storage)->exists($fileName)) \n {\n return Storage::disk($storage)->delete($fileName);\n }\n }", "public function delete()\n {\n persistableCollection::getInstance($this->resourceName)->deleteObject($this);\n }", "public function remove()\n {\n $this->_getBackend()->remove($this->_id);\n }", "public function remove()\n {\n if (! ftruncate($this->fileHandle, 0)) {\n throw new StorageException(\"Could not truncate $this->path\");\n }\n if (! unlink($this->path)) {\n throw new StorageException(\"Could not delete $this->path\");\n }\n }", "public function delete()\n\t{\n\t\t$s3 = AWS::createClient('s3');\n $s3->deleteObject(\n array(\n 'Bucket' => $this->bucket,\n 'Key' => $this->location\n )\n );\n\t\tif($this->local_file && file_exists($this->local_file)) {\n\t\t\tunlink($this->local_file);\n\t\t}\n $this->local_file = null;\n\t}", "public function delete()\n\t{\n\t\tsfCore::db->query(\"DELETE FROM `swoosh_file_storage` WHERE `id`='%i';\", $this->id);\n\t\t$this->fFile->delete();\n\t}", "public function delete(): void\n {\n unlink($this->getPath());\n }", "public function delete()\n {\n if($this->exists())\n unlink($this->getPath());\n }", "public function remove($path);", "function deleteFileFromStorage($path)\n{\n unlink(public_path($path));\n}", "public function delete(): void\n {\n unlink($this->path);\n }", "private function destroyResource(DrydockResource $resource) {\n $blueprint = $resource->getBlueprint();\n $blueprint->destroyResource($resource);\n\n $resource\n ->setStatus(DrydockResourceStatus::STATUS_DESTROYED)\n ->save();\n }", "public static function delete($fileName, $storage)\n {\n if (Storage::disk($storage)->exists($fileName)) \n {\n return Storage::disk($storage)->delete($fileName);\n }\n }", "public function remove() {}", "public function remove() {}", "public function remove();", "public function remove();", "public function remove();", "public function remove();", "function delete_resource($resource_id, $page)\n\t{\n\t\t//get resource data\n\t\t$table = \"resource\";\n\t\t$where = \"resource_id = \".$resource_id;\n\t\t\n\t\t$this->db->where($where);\n\t\t$resource_query = $this->db->get($table);\n\t\t$resource_row = $resource_query->row();\n\t\t$resource_path = $this->resource_path;\n\t\t\n\t\t$image_name = $resource_row->resource_image_name;\n\t\t\n\t\t//delete any other uploaded image\n\t\t$this->file_model->delete_file($resource_path.\"\\\\\".$image_name, $this->resource_path);\n\t\t\n\t\t//delete any other uploaded thumbnail\n\t\t$this->file_model->delete_file($resource_path.\"\\\\thumbnail_\".$image_name, $this->resource_path);\n\t\t\n\t\tif($this->resource_model->delete_resource($resource_id))\n\t\t{\n\t\t\t$this->session->set_userdata('success_message', 'resource has been deleted');\n\t\t}\n\t\t\n\t\telse\n\t\t{\n\t\t\t$this->session->set_userdata('error_message', 'resource could not be deleted');\n\t\t}\n\t\tredirect('resource/'.$page);\n\t}", "public function deleteImage(){\n\n\n Storage::delete($this->image);\n }", "public function del(string $resource): bool|string\n {\n $json = false;\n $fs = unserialize($_SESSION['rfe'][$this->getRoot()], ['allowed_classes' => false]);\n if (array_key_exists($resource, $fs)) {\n // if $item has children, delete all children too\n if (array_key_exists('dir', $fs[$resource])) {\n foreach ($fs as $key => $file) {\n if (isset($file['parId']) && $file['parId'] == $resource) {\n unset($fs[$key]);\n }\n }\n }\n unset($fs[$resource]);\n $_SESSION['rfe'][$this->getRoot()] = serialize($fs);\n $json = '[{\"msg\": \"item deleted\"}]';\n }\n return $json;\n }", "public function destroy()\n\t{\n\t\treturn unlink(self::filepath($this->name));\n\t}", "public function destroy($id) {\n $book = Book::find($id);\n // return unlink(storage_path(\"public/featured_images/\".$book->featured_image));\n Storage::delete(\"public/featured_images/\" . $book->featured_image);\n if ($book->delete()) {\n return $book;\n }\n\n }", "public function destroy($id)\n {\n Storageplace::findOrFail($id)->delete();\n }", "public function destroyResourceImage(): void\n\t{\n\t\tif (isset($this->image)) {\n\t\t\t@imagedestroy($this->image->getImageResource());\n\t\t}\n\t}", "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 }", "public function deleteImage(){\n \tStorage::delete($this->image);\n }", "public function destroy()\n {\n $file=public_path(config('larapages.media.folder')).Input::all()['folder'].'/'.Input::all()['file'];\n if (!file_exists($file)) die('File not found '.$file);\n unlink($file);\n }", "public function delete() \r\n {\r\n if($this->exists())\r\n {\r\n unlink($this->fullName());\r\n }\r\n }", "public function destroy($id)\n {\n Myfile::find($id)->delete();\n }", "public function destroy($delete = false)\n {\n if (null !== $this->resource) {\n $this->resource->clear();\n $this->resource->destroy();\n }\n\n $this->resource = null;\n clearstatcache();\n\n // If the $delete flag is passed, delete the image file.\n if (($delete) && file_exists($this->name)) {\n unlink($this->name);\n }\n }", "public static function delete($path){\r\n $currentDir = getcwd();\r\n $storageSubPath = \"/../../\".STORAGE_PATH;\r\n $file = $currentDir . $storageSubPath . '/' . $path;\r\n\r\n unlink($file);\r\n }", "public function destroy(Storage $storage)\n {\n return redirect()->route('storages.index');\n }", "public function remove() {\n //Check if there are thumbs and delete files and db\n foreach ($this->thumbs()->get() as $thumb) {\n $thumb->remove();\n } \n //Delete the attachable itself only if is not default\n if (strpos($this->url, '/defaults/') === false) {\n Storage::disk('public')->delete($this->getPath());\n }\n parent::delete(); //Remove db record\n }", "public function removeFile($uri){\n return Storage::disk('public')->delete($uri);\n }", "public function destroy(Resource $resource)\n {\n if( $resource->delete() ){\n return Response(['status'=>'success','message'=>'Resource deleted']); \n } else {\n return Response(['status'=>'error', 'message'=>'Something went wrong']);\n }\n }", "public function delete($path);", "public function delete($path);", "public function destroy($id)\n { \n File::find($id)->remove();\n \n return redirect()->route('files.index');\n }", "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 }", "public function destroy($id)\n {\n $student = Student::where('id', $id)->first();\n // $path = $student->image;\n unlink($student->image);\n Student::findOrFail($id)->delete();\n return response('Deleted!');\n }", "public function destroy($id)\n {\n $icon = SliderIcon::find($id);\n if (Storage::disk('public')->exists(str_replace('storage', '', $icon->img))){\n Storage::disk('public')->delete(str_replace('storage', '', $icon->img));\n }\n $icon->delete();\n return redirect()->route('slider_icons.index')->with('success', 'Данные преимущества удалёны');\n }", "public function delete($path, $data = null);", "public function destroy($id)\n {\n $items=Items::find($id);\n // delete old file\n if ($items->photo) {\n $str=$items->photo;\n $pos = strpos($str,'/',1);\n $str = substr($str, $pos);\n $oldFile = storage_path('app\\public').$str;\n File::Delete($oldFile); \n }\n $items->delete();\n return redirect()->route('items.index');\n }", "public function destroy($id)\n {\n $carousel = Carousel::find($id);\n $image = $carousel->image;\n\n $basename ='img/carousel/' . basename($image);\n //Delete the file from disk\n if(file_exists($basename)){\n unlink($basename);\n }\n //With softDeletes, this is the way to permanently delete a record\n $carousel->delete();\n Session::flash('success','Product deleted permanently');\n return redirect()->back();\n }", "public function remove()\n {\n $fs = new Filesystem();\n $fs->remove($this->dir());\n }", "public static function destroy(int $resource_id)\n {\n try {\n $image_data = ListingImage::where('id', $resource_id)->first();\n self::delete_image($image_data->name);\n $delete = ListingImage::where('id', $resource_id)->delete();\n\n // activity()\n // ->causedBy(Auth::user()->id)\n // ->performedOn($delete)\n // ->withProperties(['id' => $delete->id])\n // ->log('listing image deleted');\n return response()->json(['status'=> 'ok', 'msg'=> 'Data deleted successfully']);\n } catch (Exception $e) {\n $e->getMessage();\n }\n }", "public function destroy(Storage $storage)\n {\n $this->storage->destroy($storage);\n\n return redirect()->route('admin.product.storage.index')\n ->withSuccess(trans('core::core.messages.resource deleted', ['name' => trans('product::storages.title.storages')]));\n }", "public function del($path){\n\t\treturn $this->remove($path);\n\t}", "public function destroy($id)\n {\n //\n $product = Product::findOrFail($id);\n $product->delete();\n if($product->img != 'product-default.png'){\n Storage::delete(\"public/uploads/\".$product->img);\n // return 'deleted';\n }\n return redirect()->route('product.index'); \n }", "public function removeUpload()\n{\n if ($file = $this->getAbsolutePath()) {\n unlink($file); \n }\n}", "public function destroy($id)\n {\n $image = Images::withTrashed()->find($id);\n\n Storage::disk('uploads')->delete(\"social-media/$image->filename\");\n\n $image->tags()->detach();\n $image->detachMedia(config('constants.media_tags'));\n $image->forceDelete();\n\n return redirect()->back()->with('success', 'The image was successfully deleted');\n }", "public function destroyByResourceId($resource_id)\n {\n// $online_party = $this->onlinetrack->where('resource_id', $resource_id)->get()->first();\n// $online_party->status = \"offline\";\n// $online_party->save();\n// return $online_party;\n return $this->onlinetrack->where('resource_id', $resource_id)->delete();\n }", "public function revoke($resource, $permission = null);", "public function destroy($id)\n {\n $data=Image::find($id);\n $image = $data->img;\n\n\n $filepath= public_path('images/');\n $imagepath = $filepath.$image;\n\n //dd($old_image);\n if (file_exists($imagepath)) {\n @unlink($imagepath);\n }\n\n\n $data->delete();\n\n return redirect()->route('image.index');\n }", "function delete($path);", "public function removeItem(int $id)\n\t{\n\t\t$this->storage->remove($id);\n\t}", "public function destroy(File $file)\n {\n //\n $v = Storage::delete($file->path);\n \n }", "public function destroyResource($resource)\n {\n if (!is_object($resource)) {\n return false;\n }\n\n $resource_type = get_class($resource);\n $resource_id = $resource->getKey();\n\n return Role::where('resource_type', $resource_type)\n ->where('resource_id', $resource_id)\n ->delete();\n }", "public function remove($filePath){\n return Storage::delete($filePath);\n }", "public function remove(): void\n {\n $file = $this->getAbsolutePath();\n if (!is_file($file) || !file_exists($file)) {\n return;\n }\n\n unlink($file);\n }", "public function destroy(Request $request, Storage $storage)\n {\n $storage->delete();\n $request->session()->flash('alert-success', 'Запись успешно удалена!');\n return redirect()->route('storage.index');\n }", "public function remove(Storable $entity): Storable\n {\n $this->getRepository(get_class($entity))->remove($entity);\n $this->detach($entity);\n\n return $entity;\n }", "public function processDeletedResource(EntityResource $resource)\n {\n /** @var AuthorizationRepository $repository */\n $repository = $this->entityManager->getRepository('Edweld\\AclBundle\\Entity\\Authorization');\n\n $repository->removeAuthorizationsForResource($resource);\n }", "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 }", "public function remove($id);", "public function remove($id);", "public function deleted(Storage $storage)\n {\n //\n }", "public function destroy($id)\n {\n $data = Product::findOrFail($id);\n\n if(file_exists('uploads/product/'.$data->image1)){\n unlink('uploads/product/'.$data->image1);\n }\n\n if(file_exists('uploads/product/'.$data->image2)){\n unlink('uploads/product/'.$data->image2);\n }\n\n if(file_exists('uploads/product/'.$data->image3)){\n unlink('uploads/product/'.$data->image3);\n }\n $data->delete();\n }", "public function removeUpload()\n {\n $file = $this->getAbsolutePath();\n if ($file) {\n unlink($file);\n }\n }", "public function resources_delete($resource_id, Request $request) {\n if ($resource_id) {\n $resp = Resources::where('id', '=', $resource_id)->delete();\n if($resp){\n $msg = 'Resource has been deleted successfully.';\n $request->session()->flash('message', $msg);\n }\n }\n //return redirect()->route('admin-factor-list');\n return redirect()->to($_SERVER['HTTP_REFERER']);\n }", "public function delete()\n {\n try\n {\n $thumbnail = $this->getThumbnail();\n if($thumbnail)\n {\n $thumbnail->delete();\n }\n }\n catch(sfException $e){}\n \n // delete current file\n parent::delete();\n }", "function deleteResource($uuid){\n $data = callAPI(\"DELETE\",\"/urest/v1/resource/\".$uuid);\n return $data;\n}", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function remove_resource($idproject){\n\t\t\n\t\t// Load model and try to get project data\n\t\t$this->load->model('Projects_model', 'projects');\n\t\t\n\t\t// Update\n\t\t$this->projects->save_project(array(\"ext\" => \"\", \"vzaar_idvideo\" => \"0\", \"vzaar_processed\" => \"0\"), $idproject);\n\t}", "public function destroy($id){\n $file_data = Slider::findOrFail($id);\n File::delete(public_path('../storage/app/public/sliders/'.$file_data->path));\n $slider = Slider::destroy($id);\n return response()->json(null, 204);\n }", "public function delete()\n\t{\n\t\t@unlink($this->get_filepath());\n\t\t@unlink($this->get_filepath(true));\n\t\tparent::delete();\n\t}", "public function delete($resource_path, array $variables = array()) {\n return $this->call($resource_path, $variables, 'DELETE');\n }", "public function destroy($id)\n {\n //Find Slider With Id\n $slider = Slider::findOrFail($id);\n // Check If The Image Exist\n if(file_exists('uploads/slider/'.$slider->image)){\n\n unlink( 'uploads/slider/'.$slider->image);\n }\n $slider->delete();\n return redirect()->back()->with('success','Slider Successfully Deleted');\n }" ]
[ "0.6672584", "0.6659381", "0.6635911", "0.6632799", "0.6626075", "0.65424126", "0.65416265", "0.64648265", "0.62882507", "0.6175931", "0.6129922", "0.60893893", "0.6054415", "0.60428125", "0.60064924", "0.59337646", "0.5930772", "0.59199584", "0.5919811", "0.5904504", "0.5897263", "0.58962846", "0.58951396", "0.58951396", "0.58951396", "0.58951396", "0.5880124", "0.58690923", "0.5863659", "0.5809161", "0.57735413", "0.5760811", "0.5753559", "0.57492644", "0.5741712", "0.57334286", "0.5726379", "0.57144034", "0.57096", "0.5707689", "0.5705895", "0.5705634", "0.5703902", "0.5696585", "0.5684331", "0.5684331", "0.56780374", "0.5677111", "0.5657287", "0.5648262", "0.5648085", "0.5648012", "0.5640759", "0.5637738", "0.5629985", "0.5619264", "0.56167465", "0.5606877", "0.56021434", "0.5601949", "0.55992156", "0.5598557", "0.55897516", "0.5581397", "0.5566926", "0.5566796", "0.55642897", "0.55641", "0.5556583", "0.5556536", "0.5550097", "0.5543172", "0.55422723", "0.5540013", "0.5540013", "0.55371785", "0.55365825", "0.55300397", "0.552969", "0.55275744", "0.55272335", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.5525997", "0.5525624", "0.5523911", "0.5521122", "0.5517412" ]
0.0
-1
Creates a new Patient model.
public function actionCreate() { $model = new PatientDetails(); if ($model->load(Yii::$app->request->post()) && $model->validate()) { $model->image = UploadedFile::getInstance($model,'image'); if($model->image) { $ext = $model->image->getExtension(); $filename = time().".{$ext}"; $model->image->saveAs(Yii::getAlias('@storage').'/patient/'.$filename); $model->image = $filename; } if($model->save()) { Yii::$app->session->setFlash('success', 'Created Successfully.'); return $this->redirect(['create']); } Yii::$app->session->setFlash('success', 'Created Successfully.'); return $this->redirect(['create']); } return $this->render('create', [ 'model' => $model, ]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function actionCreate()\n\t{\n\t\t$model=new Patient;\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['Patient']))\n\t\t{\n\t\t\t$model->attributes=$_POST['Patient'];\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}", "public function actionCreate()\n {\n $model = new Patient();\n $model->StatusId = DictionaryDetail::PATIENT_STATUS_NEW;\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n if (!empty($model->interestPoint)) {\n foreach ($model->interestPoint as $interestPoint) {\n $modelInterestPoint = new InterestPointXPatient();\n $modelInterestPoint->PatientId = $model->Id;\n $modelInterestPoint->InterestPointId = $interestPoint;\n $modelInterestPoint->save();\n }\n }\n return $this->redirect(['view', 'id' => $model->Id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "public function created(Patient $patient)\n {\n\n }", "public function create()\n {\n $title = 'Add New Patients Information';\n $patient = Patient::get();\n\n return view('patient.create', compact('title','patient'));\n }", "public function store(CreatePatientRequest $request)\n {\n\n $request->request->add(['convive_con' => ['']]); //add request\n \n $request->request->add(['estado' => '1']);\n $input = $request->all();\n\n $patient = $this->patientRepository->create($input);\n $patient->patientOther()->create(['patient_id' => $patient->id]);\n $patient->patientInfo()->create(['patient_id' => $patient->id, 'ayuda_soc' => [''], 'tipo_disc' => ['']]);\n\n\n $patient->patientHealth()->create(['patient_id' => $patient->id]);\n\n $today = Carbon::parse($request->fecha_alta_paciente);\n $patient->patientPia()->create([\n 'fecha_limite' => $today->addMonths(3),\n 'fecha_Real' => '',\n 'tipo_pia' => 'Inicial',\n 'url_pia' => '',\n 'obs_pia' => '',\n 'patient_id' => $patient->id,\n ]);\n\n $today = Carbon::parse($request->fecha_alta_paciente);\n $patient->patientPia()->create([\n 'fecha_limite' => $today->addMonths(9),\n 'fecha_Real' => '',\n 'tipo_pia' => 'Seguimiento',\n 'url_pia' => '',\n 'obs_pia' => '',\n 'patient_id' => $patient->id,\n ]);\n\n Flash::success('Persona atendida guardada correctamente.');\n return redirect()->route('patients.edit', $patient->id);\n }", "public function create()\n {\n //\n return view('patients.create');\n }", "public function create ()\n {\n return view('patients.create');\n }", "public function __construct()\n {\n $this->model = Patient::class;\n }", "public function makePatient($patientFields = [])\n {\n /** @var PatientRepository $patientRepo */\n $patientRepo = App::make(PatientRepository::class);\n $theme = $this->fakePatientData($patientFields);\n return $patientRepo->create($theme);\n }", "public function create()\n {\n return view('patients.create');\n }", "public function create()\n {\n return view('patients.create');\n }", "public function create()\n {\n return view('patients.create');\n }", "public function create()\n {\n return view('patients.create');\n }", "public function create()\n {\n return view('patients.create');\n }", "public function create()\n {\n return view('patient.create');\n }", "public function store(Request $request)\n {\n $patient = new Patient;\n $patient->user_id = Auth::user()->id;\n $patient->physician_id = '1';\n $patient->first_name = $request->input('first-name');\n $patient->last_name = $request->input('last-name');\n $patient->dob = $request->input('dob');\n $patient->phone = $request->input('phone');\n $patient->ssn = $request->input('social-security');\n $patient->street_address = $request->input('street-address');\n $patient->apt_ste = $request->input('apt/ste');\n $patient->city = $request->input('city');\n $patient->state = $request->input('state');\n $patient->zip_code = $request->input('zip-code');\n $patient->height = $request->input('height');\n $patient->weight = $request->input('weight');\n $patient->emergency_contact_name = $request->input('emergency-contact-name');\n $patient->emergency_contact_number = $request->input('emergency-contact-number');\n $patient->emergency_contact_email = $request->input('emergency-contact-email');\n $patient->medication = $request->input('medication');\n $patient->health_insurance = $request->input('health-insurance');\n $patient->save();\n $request->session()->flash('message', 'Your account has been created!');\n return redirect( action('PatientsController@show', $patient->id));\n }", "public function patient()\n {\n return $this->hasOne('App\\Patient');\n }", "public function create()\n\t{\n return View::make('patient.create');\n\t}", "public function create()\n {\n return view('admin.patients.create');\n }", "public function create()\n {\n return view('admin.patients.create');\n }", "public function createPatient($p_patient) {\n $stmt = $this->adapter->conn->prepare(\n \"INSERT INTO PATIENT VALUES(\".\n \"?,\".\n \"?,\".\n \"?,\".\n \"?,\".\n \"?,\".\n \"?,\".\n \"?,\".\n \"?,\".\n \"?);\");\n $stmt->bindParam(1,$p_patient['name']);\n $stmt->bindParam(2,$p_patient['patient_id']);\n $stmt->bindParam(3,$p_patient['clinic_id']);\n $stmt->bindParam(4,$p_patient['sex']);\n $stmt->bindParam(5,$p_patient['age']);\n $stmt->bindParam(6,$p_patient['colour']);\n $stmt->bindParam(7,$p_patient['breed']);\n $stmt->bindParam(8,$p_patient['species']);\n $stmt->bindParam(9,$p_patient['isNeutered']);\n $result=null;\n try{\n $result = $this->adapter->executeUpdatePrepared($stmt);\n }catch(PDOException $e){\n return false;\n }\n if($result > 0) {\n return true;\n }\n\n return false;\n }", "public function create()\n {\n /* return view('admin.patients.create');*/\n }", "public function create()\n {\n return view('administrator.patient.create');\n }", "public function getModel()\n\t{\n\t\treturn new PatientsModel();\n\t}", "public function create()\n {\n $title = 'Create patient';\n\n $PatientsData[0] = Species::pluck('species_description', 'species_id');\n $PatientsData[1] = Client::select(DB::raw(\"CONCAT(client_firstname, ' ', client_lastname) AS client_fullname\"),'client_id')->get()->pluck('client_fullname', 'client_id');\n \n\n\n // $collection = collect([\n // ['product_id' => 'prod-100', 'name' => 'Desk'],\n // ['product_id' => 'prod-200', 'name' => 'Chair'],\n // ]);\n \n // $plucked[0] = $collection->pluck('product_id');\n // $plucked[1] = $collection->pluck('name');\n \n // $PatientData->all();\n\n return view('actions.CreatePatient', compact('title'))->with('PatientsData', $PatientsData);\n }", "public function store(PatientRequest $request)\n {\n $password = Str::random(10);\n $user = User::create($request->merge([\n 'password' => Hash::make($password),\n 'active' => 1,\n 'matricStaffId' => ($request->StaffId !== NULL) ? $request->StaffId : $request->matricId\n ])->all());\n\n $user->patientDetail()->create($request->merge([\n 'dob' => Carbon::CreateFromFormat('d/m/Y', $request->dob)->format('Y-m-d H:i:s')\n ])->all());\n\n $user->assignRole('patient');\n\n Mail::to($request->email)->send(new WelcomeMail([\n 'name' => $request->firstName.' '.$request->lastName,\n 'password' => $password\n ]\n\n ));\n\n return redirect()->route('patients.index')->withStatus(__('Patient information successfully created.'));\n\n }", "public function create()\n {\n $tipos_sangre = BloodType::all();\n return view('patients.create', compact('tipos_sangre'));\n }", "public function create()\n {\n return view('layouts.patients.create');\n }", "public function patient()\n {\n return $this->belongsTo('App\\Models\\Patient');\n }", "public function create() //Me manda a la página para crear\n {\n return view('patients.create');\n }", "public function create(array $attributes) : Model;", "public function create()\n\t{\n\n\t\t$genders = Gender::all()->lists(\"name\",\"id\");\n\t\t$countries = Country::all()->lists(\"name\",\"id\");\n\n\t\treturn View::make('patients.create')->with(\"genders\", $genders)->with(\"countries\", $countries);\n\t}", "public function store(PatientsFormRequest $request)\n {\n $patient = new Patient();\n $patient->first_name = $request->first_name;\n $patient->last_name = $request->last_name;\n $patient->address = $request->address;\n $patient->phone = $request->phone;\n $patient->date_birth = $request->date_birth;\n $patient->sex = $request->sex;\n $patient->email = $request->email;\n $patient->blood_types_id = $request->blood_types_id;\n $patient->save();\n\n //return redirect(url('/pacientes'))->with('satisfactorio', \"El paciente $patient->first_name, $patient->last_name se creo correctamente\");\n return redirect('/pacientes')->with('status', 'El paciente se creo correctamente!');\n }", "public function store(Request $request)\n {\n $_birthday = substr($request->birthday, 0, -14);\n\n $patient = new Patient();\n $patient->patient_id = $request->patient_id;\n $patient->name = $request->name;\n $patient->address_line_1 = $request->address_line_1;\n $patient->address_line_2 = $request->address_line_2;\n $patient->address_line_3 = $request->address_line_3;\n $patient->nic = $request->nic;\n $patient->gender = $request->gender;\n $patient->birthday = $_birthday;\n $patient->contact_number = $request->contact_number;\n $patient->guardian_number = $request->guardian_number;\n $patient->save();\n\n return $patient;\n }", "public function actionCreate()\n {\n $model = new Appointment();\n $model->creator_id = Yii::$app->user->identity->id;\n\n if ($model->load(Yii::$app->request->post()) && $model->validate() && $model->save()) {\n DoctorPatientPivot::createNewRecordIfNotExist($model->doctor_id, $model->patient_id);\n NursePatientPivot::createNewRecordIfNotExist($model->nurse_id, $model->patient_id);\n Yii::$app->session->addFlash( 'success', Yii::t('auth', 'You have successfully create Appointment №:'\n . $model->id .' for patient: ' . Patient::findOne($model->patient_id)->name )\n );\n $this->redirect('index');\n } else {\n return $this->render('create', [\n 'model' => $model,\n 'patientsList' => Patient::getPatientsListDropDown(),\n 'doctorsList' => Doctor::getDoctorsListDropDown(),\n 'nursesList' => Nurse::getNursesListDropDown(),\n 'statusesList' => Appointment::STATUSES_ARRAY,\n 'createFromPatient' => false,\n 'createFromDoctor' => false,\n 'createFromNurse' => false\n ]);\n }\n }", "public function patient()\n {\n return $this->belongsTo('App\\Patient');\n }", "public function patient()\n {\n return $this->belongsTo('App\\Patient');\n }", "public function patient()\n {\n return $this->belongsTo('App\\Patient');\n }", "public function create(): Model;", "public function create()\n {\n $doctors = User::role('doctor')->get();\n $types = Type::all();\n return response(view('admin.patient.patients-create',compact('doctors','types')));\n }", "public function patient() {\n return $this->belongsTo('App\\Patient');\n }", "public function store(Request $request)\n {\n $request->validate([\n 'name' => 'bail|required|min:5|max:100|alpha_spaces|string',\n 'last_name' => 'bail|required|min:5|max:100|alpha_spaces|string',\n 'identification' => 'bail|required|digits:10|unique:patients|numeric',\n 'email' => 'bail|nullable|max:255|email|string',\n 'phone' => 'bail|nullable|digits:10|numeric',\n 'address' => 'bail|required|min:5|max:200|string',\n 'birthday' => 'bail|required|after:\"1900-01-01\"|before:today|date',\n 'gender' => 'bail|required|in:M,F',\n 'city_id' => 'bail|required',\n ]);\n $city = City::find($request->city_id);\n $patient = new Patient();\n $patient->fill($request->all());\n $patient->city()->associate($city);\n $patient->save();\n $patient->users()->attach([Auth::id()]);\n return redirect()->route('client.myPatient.index');\n }", "public function store(PatientRequest $request)\n {\n $patient = new Patient;\n $patient->first_name = $request->input('first_name');\n $patient->last_name = $request->input('last_name');\n $patient->phone = $request->input('phone');\n $patient->address = $request->input('address');\n $patient->email = $request->input('email');\n $patient->birth_date = $request->input('birth_date');\n $patient->gender = $request->input('gender');\n $patient->photo = $request->input('photo');\n\n $patient->save();\n\n return redirect()->route('patients.index');\n }", "public function create()\n {\n $cities = City::citiesAndProvinces();\n return view('client.myPatient.create', compact('cities'));\n }", "public function create()\n\t{\n\t\t//\n\t\t$diseases=disease::all();\n\t\treturn view('createPatient',compact('diseases'));\n\t}", "public function create()\n {\n $viewInjection=[\n 'method'=>'POST',\n 'route'=>'patients.store',\n 'routeParameter'=>null,\n 'buttonText'=>'Guardar',\n 'rfcRequired'=>null,\n 'readOnly'=>null,\n ];\n return view('patient.form',$viewInjection);\n }", "public function addPatient(Request $request) {\n\t\t$patient = Patients::find($request->pid);\n\t\tif (is_null($patient)) {\n\t\t\t$message = collect(['status'=>500, 'msg'=>'ไม่พบข้อมูลรหัสนี้ โปรดตรวจสอบ!', 'title'=>'Error!']);\n\t\t\treturn redirect()->route('list-data.index')->with('message', $message);\n\t\t} else {\n\t\t\t/* validation */\n\t\t\t$this->validate($request, [\n\t\t\t\t'titleNameInput' => 'required',\n\t\t\t\t'firstNameInput' => 'required',\n\t\t\t\t'lastNameInput' => 'required',\n\t\t\t\t'hnInput' => 'required',\n\t\t\t\t'sexInput' => 'required',\n\t\t\t\t'hospitalInput' => 'required',\n\t\t\t\t'provinceInput' => 'required',\n\t\t\t\t'districtInput' => 'required',\n\t\t\t\t'subDistrictInput' => 'required',\n\t\t\t\t'patientType' => 'required',\n\t\t\t\t'sickDateInput' => 'required',\n\t\t\t\t'treatDateInput' => 'required'\n\t\t\t],[\n\t\t\t\t'titleNameInput.required' => 'Title name field is required.',\n\t\t\t\t'firstNameInput.required' => 'Firstname field is required',\n\t\t\t\t'lastNameInput.required' => 'Lastname field is required',\n\t\t\t\t'hnInput.required' => 'HN field is required',\n\t\t\t\t'sexInput.required' => 'Gender field is required.',\n\t\t\t\t'hospitalInput.required' => 'Hospital field is require',\n\t\t\t\t'provinceInput.required' => 'Province field is required',\n\t\t\t\t'districtInput.required' => 'District field is required',\n\t\t\t\t'subDistrictInput.required' => 'Sub-district field is required',\n\t\t\t\t'patientType.required' => 'Patient type field is required',\n\t\t\t\t'sickDateInput.required' => 'Sick date field is required',\n\t\t\t\t'treatDateInput.required' => 'Date define field is required'\n\t\t\t]);\n\t\t\t/* General section */\n\t\t\tif ($request->titleNameInput == -6) {\n\t\t\t\t$patient->title_name = 6;\n\t\t\t} else {\n\t\t\t\t$patient->title_name = $request->titleNameInput;\n\t\t\t}\n\t\t\tif (isset($request->otherTitleNameInput) && !empty($request->otherTitleNameInput)) {\n\t\t\t\t$patient->title_name_other = $request->otherTitleNameInput;\n\t\t\t}\n\n\t\t\t$patient->first_name = $request->firstNameInput;\n\t\t\t$patient->last_name = $request->lastNameInput;\n\t\t\t$patient->hn = $request->hnInput;\n\t\t\t$patient->an = $request->anInput;\n\t\t\t$patient->gender = $request->sexInput;\n\t\t\t$patient->date_of_birth = parent::convertDateToMySQL($request->birthDayInput);\n\t\t\t$patient->age_year = $request->ageYearInput;\n\t\t\t$patient->age_month = $request->ageMonthInput;\n\t\t\t$patient->age_day = $request->ageDayInput;\n\t\t\t$patient->nationality = $request->nationalityInput;\n\n\t\t\tif (isset($request->otherNationalityInput) && !empty($request->otherNationalityInput)) {\n\t\t\t\t$patient->nationality_other = $request->otherNationalityInput;\n\t\t\t}\n\n\t\t\t$patient->hospital = $request->hospitalInput;\n\t\t\t$patient->house_no = $request->houseNoInput;\n\t\t\t$patient->village_no = $request->villageNoInput;\n\t\t\t$patient->village = $request->villageInput;\n\t\t\t$patient->lane = $request->laneInput;\n\t\t\t$patient->province = $request->provinceInput;\n\t\t\t$patient->district = $request->districtInput;\n\t\t\t$patient->sub_district = $request->subDistrictInput;\n\t\t\t$patient->occupation = $request->occupationInput;\n\n\t\t\tif (isset($request->occupationOtherInput) && !empty($request->occupationOtherInput)) {\n\t\t\t\t$patient->occupation_other = $request->occupationOtherInput;\n\t\t\t}\n\t\t\t$patient->hosp_status = 'updated';\n\n\t\t\t/* Clinical section */\n\t\t\t$clinical = Clinical::where('ref_pt_id', '=', $request->pid)\n\t\t\t\t->whereNull('deleted_at')\n\t\t\t\t->first();\n\t\t\tif (is_null($clinical)) {\n\t\t\t\t$clinical = new Clinical;\n\t\t\t}\n\t\t\t$clinical->pt_type = $request->patientType;\n\t\t\t$clinical->date_sick = parent::convertDateToMySQL($request->sickDateInput);\n\t\t\t$clinical->date_define = parent::convertDateToMySQL($request->treatDateInput);\n\t\t\t$clinical->date_admit = parent::convertDateToMySQL($request->admitDateInput);\n\t\t\t$clinical->pt_temperature = $request->temperatureInput;\n\t\t\t$clinical->fever_sym = $request->symptom_1_Input;\n\t\t\t$clinical->cough_sym = $request->symptom_2_Input;\n\t\t\t$clinical->sore_throat_sym = $request->symptom_3_Input;\n\t\t\t$clinical->runny_stuffy_sym = $request->symptom_4_Input;\n\t\t\t$clinical->sputum_sym = $request->symptom_5_Input;\n\t\t\t$clinical->headache_sym = $request->symptom_6_Input;\n\t\t\t$clinical->myalgia_sym = $request->symptom_7_Input;\n\t\t\t$clinical->fatigue_sym = $request->symptom_8_Input;\n\t\t\t$clinical->dyspnea_sym = $request->symptom_9_Input;\n\t\t\t$clinical->tachypnea_sym = $request->symptom_10_Input;\n\t\t\t$clinical->wheezing_sym = $request->symptom_11_Input;\n\t\t\t$clinical->conjunctivitis_sym = $request->symptom_12_Input;\n\t\t\t$clinical->vomiting_sym = $request->symptom_13_Input;\n\t\t\t$clinical->diarrhea_sym = $request->symptom_14_Input;\n\t\t\t$clinical->apnea_sym = $request->symptom_15_Input;\n\t\t\t$clinical->sepsis_sym = $request->symptom_16_Input;\n\t\t\t$clinical->encephalitis_sym = $request->symptom_17_Input;\n\t\t\t$clinical->intubation_sym = $request->symptom_18_Input;\n\t\t\t$clinical->pneumonia_sym = $request->symptom_19_Input;\n\t\t\t$clinical->kidney_sym = $request->symptom_20_Input;\n\t\t\t$clinical->other_symptom = $request->symptom_21_Input;\n\t\t\t$clinical->other_symptom_specify = $request->other_symptom_input;\n\t\t\t$clinical->lung = $request->lungXrayInput;\n\t\t\t$clinical->lung_date = parent::convertDateToMySQL($request->xRayDateInput);\n\t\t\t$clinical->lung_result = $request->xRayResultInput;\n\t\t\t$clinical->cbc_date = parent::convertDateToMySQL($request->cbcDateInput);\n\t\t\t$clinical->hb = $request->hbInput;\n\t\t\t$clinical->hct = $request->htcInput;\n\t\t\t$clinical->platelet_count = $request->plateletInput;\n\t\t\t$clinical->wbc = $request->wbcInput;\n\t\t\t$clinical->n = $request->nInput;\n\t\t\t$clinical->l = $request->lInput;\n\t\t\t$clinical->atyp_lymph = $request->atypLymphInput;\n\t\t\t$clinical->mono = $request->monoInput;\n\t\t\t$clinical->baso = $request->basoInput;\n\t\t\t$clinical->eo = $request->eoInput;\n\t\t\t$clinical->band = $request->bandInput;\n\t\t\t$clinical->first_diag = $request->firstDiagnosisInput;\n\t\t\t$clinical->rapid_test = $request->influRapidInput;\n\t\t\t$clinical->rapid_test_name = $request->influRapidtestName;\n\t\t\tif ($request->has('rapidTestResultInput') && count($request->rapidTestResultInput) > 0) {\n\t\t\t\t$clinical->rapid_test_result = parent::arrToStr($request->rapidTestResultInput);\n\t\t\t} else {\n\t\t\t\t$clinical->rapid_test_result = null;\n\t\t\t}\n\t\t\t$clinical->flu_vaccine = $request->influVaccineInput;\n\t\t\t$clinical->flu_vaccine_date = parent::convertDateToMySQL($request->influVaccineDateInput);\n\t\t\t$clinical->antiviral = $request->virusMedicineInput;\n\t\t\t$clinical->antiviral_name = $request->medicineNameInput;\n\t\t\t$clinical->antiviral_date = parent::convertDateToMySQL($request->medicineGiveDateInput);\n\t\t\t$clinical->pregnant_wk = $request->pregnantWeekInput;\n\t\t\t$clinical->pregnant = $request->pregnantInput;\n\t\t\t$clinical->post_pregnant = $request->postPregnantInput;\n\t\t\t$clinical->fat_high = $request->fatHeightInput;\n\t\t\t$clinical->fat_weight = $request->fatWeightInput;\n\t\t\t$clinical->fat = $request->fatInput;\n\t\t\t$clinical->diabetes = $request->diabetesInput;\n\t\t\t$clinical->immune = $request->immuneInput;\n\t\t\t$clinical->immune_specify = $request->immuneSpecifyInput;\n\t\t\t$clinical->early_birth = $request->earlyBirthInput;\n\t\t\t$clinical->early_birth_wk = $request->earlyBirthWeekInput;\n\t\t\t$clinical->malnutrition = $request->malnutritionInput;\n\t\t\t$clinical->copd = $request->copdInput;\n\t\t\t$clinical->asthma = $request->asthmaInput;\n\t\t\t$clinical->heart_disease = $request->heartDiseaseInput;\n\t\t\t$clinical->cerebral = $request->cerebralInput;\n\t\t\t$clinical->kidney_fail = $request->kidneyFailInput;\n\t\t\t$clinical->cancer_specify = $request->cancerSpecifyInput;\n\t\t\t$clinical->cancer = $request->cancerInput;\n\t\t\t$clinical->other_congenital = $request->otherCongenitalInput;\n\t\t\t$clinical->other_congenital_specify = $request->otherCongenitalSpecifyInput;\n\t\t\t$clinical->contact_poultry7 = $request->contactPoultry7Input;\n\t\t\t$clinical->contact_poultry14 = $request->contactPoultry14Input;\n\t\t\t$clinical->contact_poultry14_specify = $request->contactPoultry14SpecifyInput;\n\t\t\t$clinical->stay_poultry14 = $request->stayPoultry14Input;\n\t\t\t$clinical->stay_flu14 = $request->stayFlu14Input;\n\t\t\t$clinical->stay_flu14_place_specify = $request->stayFlu14PlaceSpecifyInput;\n\t\t\t$clinical->contact_flu14 = $request->contactFlu14Input;\n\t\t\t$clinical->visit_flu14 = $request->visitFlu14Input;\n\t\t\t$clinical->health_care_worker = $request->healthcareWorkerInput;\n\t\t\t$clinical->suspect_flu = $request->suspectFluInput;\n\t\t\t$clinical->other_risk = $request->otherRiskInput;\n\t\t\t$clinical->other_risk_specify = $request->otherRiskInputSpecify;\n\t\t\t$clinical->result_cli = $request->resultCliInput;\n\t\t\t$clinical->result_cli_refer = $request->resultCliReferInput;\n\t\t\t$clinical->result_cli_other = $request->resultOtherCliInput;\n\t\t\t$clinical->reported_at = parent::convertDateToMySQL($request->reportDateInput);\n\t\t\t//$clinical->ref_user_id = $request->userIdInput;\n\n\t\t\t/* get specimen ref data from ref_specimen table */\n\t\t\t$specimen_data = parent::specimen()->keyBy('id');\n\n\t\t\t/* chk specimen input or not */\n\t\t\t$chk_specimen_count = 0;\n\t\t\tforeach ($specimen_data as $key=>$val) {\n\t\t\t\tif ($request->has('specimen'.$val->id)) {\n\t\t\t\t\t$chk_specimen_count += 1;\n\t\t\t\t} else {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t/* chk specimen_date_input */\n\t\t\t$chk_specimen_date_input = 0;\n\t\t\tforeach ($specimen_data as $key=>$val) {\n\t\t\t\tif ($request->has('specimen'.$val->id)) {\n\t\t\t\t\t$specimenDateInput = $request->input('specimenDate'.$val->id);\n\t\t\t\t\tif (!empty($specimenDateInput) || !is_null($specimenDateInput)) {\n\t\t\t\t\t\t$chk_specimen_date_input += 1;\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$chk_specimen_date_input += 0;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($chk_specimen_count != $chk_specimen_date_input) {\n\t\t\t\treturn Redirect::back()->withErrors('โปรดกรอกข้อมูลตัวอย่างให้ครบถ้วน');\n\t\t\t\texit;\n\t\t\t} else {\n\t\t\t\tforeach ($specimen_data as $key=>$val) {\n\t\t\t\t\tif ($request->has('specimen'.$val->id)) {\n\t\t\t\t\t\t$params1['ref_pt_id'] = $request->pid;\n\t\t\t\t\t\t$params1['specimen_type_id'] = $request->specimen.$val->id;\n\n\t\t\t\t\t\tif ($request->has('specimenOth'.$val->id)) {\n\t\t\t\t\t\t\t$othStr = 'specimenOth'.$val->id;\n\t\t\t\t\t\t\t$params2['specimen_other'] = $request->$othStr;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$params2['specimen_other'] = NULL;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t$dateStr = 'specimenDate'.$val->id;\n\t\t\t\t\t\t$specimenDate = $request->$dateStr;\n\t\t\t\t\t\tif (!empty($specimenDate)) {\n\t\t\t\t\t\t\t$params2['specimen_date'] = parent::convertDateToMySQL($specimenDate);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$params2['specimen_date'] = NULL;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$params2['ref_user_id'] = $request->userIdInput;\n\t\t\t\t\t\t$specimen_saved = Specimen::updateOrCreate($params1, $params2);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t/* save method */\n\t\t\t\tDB::beginTransaction();\n\t\t\t\ttry {\n\t\t\t\t\t$patient_saved = $this->storePatient($patient);\n\t\t\t\t\t$clinical_saved = $clinical->save();\n\t\t\t\t\tDB::commit();\n\t\t\t\t\tif ($patient_saved == true && $clinical_saved == true) {\n\t\t\t\t\t\t//$message = collect(['status'=>200, 'msg'=>'บันทึกข้อมูลสำเร็จแล้ว', 'title'=>'Flu Right Site']);\n\t\t\t\t\t\tLog::notice('Added or Updated data successfully - uid: '.auth()->user()->id.' - pid: '.$request->pid);\n\t\t\t\t\t\treturn redirect()->back()->with('success', 'บันทึกข้อมูลสำเร็จแล้ว');\n\t\t\t\t\t} else {\n\t\t\t\t\t\tDB::rollback();\n\t\t\t\t\t\t//$message = collect(['status'=>500, 'msg'=>'Internal Server Error! Something Went Wrong!', 'title'=>'Flu Right Site']);\n\t\t\t\t\t\tLog::error('Added or Updated Error - uid: '.auth()->user()->id.' - pid: '.$request->pid);\n\t\t\t\t\t\treturn redirect()->back()->with('error', 'ไม่สามารถบันทึกข้อมูลได้ โปรดตรวจสอบอีกครั้ง');\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception $e) {\n\t\t\t\t\tDB::rollback();\n\t\t\t\t\t//$message = collect(['status'=>500, 'msg'=>'Internal Server Error! Something Went Wrong!', 'title'=>'Flu Right Site']);\n\t\t\t\t\tLog::error('Error - uid: '.auth()->user()->id.' - pid: '.$request->pid.' Message:'.$e->getMessage());\n\t\t\t\t\treturn redirect()->back()->with('error', 'ไม่สามารถบันทึกข้อมูลได้ โปรดตรวจสอบอีกครั้ง');\n\t\t\t\t}\n\t\t\t\t//return redirect()->route('list')->with('message', $message);\n\t\t\t}\n\t\t}\n\t}", "public function create()\n {\n $patients = Patient::all();\n\n return view('medecin/ordonnance/create', compact('patients'));\n }", "public function store(Request $req)\n {\n $patient = new Patient();\n\n //responsable\n $patient->responsable_full_name = $req->input('responsable_full_name');\n $patient->responsable_cin = $req->input('responsable_cin');\n $patient->telephone = $req->input('responsable_telephone');\n $patient->responsable = $req->input('responsable');\n //patient\n $patient->nom = $req->input('nom');\n $patient->prenom = $req->input('prenom');\n $patient->naissance = $req->input('naissance');\n $patient->adresse = $req->input('addresse');\n $patient->sexe = $req->input('sexe');\n //famille\n $patient->rang_famille = $req->input('rang_famille');\n $patient->nbre_fr_sr = $req->input('nbre_fr_sr');\n $patient->garde = $req->input('garde');\n //lettre\n $patient->lettre = $req->input('lettre');\n $patient->save();\n return redirect('patient');\n }", "public function create()\n {\n $patients = Patient::all();\n $now_date = Jalalian::now()->format('%Y/%m/%d');\n return view('admin.bp.create', [\n 'patients' => $patients,\n 'now_date' => $now_date\n ]);\n }", "public function store( PatientAdmissionRequest $request )\n\t{\n\t\treturn DB::transaction(function() use($request)\n\t\t{\n\t\t\t$obj = PatientAdmission::create($request->all());\n\n\t\t\t$bed_info = BedNo::find($obj->bed_id);\n\t\t\t$bed_info->empty_status = 0;\n\t\t\t$bed_info->save();\n\n\t\t\treturn $obj;\n\n\t\t});\n\n\t}", "protected function createPatient(array $data, Request $request)\n {\n\n return User::create([\n 'name' => $data['name'],\n 'email' => $data['email'],\n 'password' => Hash::make($data['password']),\n 'dob' => $data['dob'],\n 'address' => $data['address'],\n 'phone' => $data['phone'],\n ]);\n\n }", "public function store(PatientRequest $request)\n {\n $patient=Patient::create([\n 'name'=>$request->name,\n 'gender'=>$request->gender,\n 'dob'=>$request->dob,\n 'email'=>$request->email,\n 'phone'=>$request->phone,\n 'address'=>$request->address,\n 'code'=>time(),\n ]);\n\n //send notification with the patient code\n send_notification('patient_code',$patient);\n\n session()->flash('success','Patient created successfully');\n\n return redirect()->route('admin.patients.index');\n }", "public function store()\n\t{\n\t\t$input = Input::all();\n\t\t$validation = Validator::make($input, Patient::$rules);\n\n\t\tif ($validation->passes())\n\t\t{\n\t\t\t$this->patient->create($input);\n\n\t\t\treturn Redirect::route('patients.index');\n\t\t}\n\n\t\treturn Redirect::route('patients.create')\n\t\t\t->withInput()\n\t\t\t->withErrors($validation)\n\t\t\t->with('message', 'There were validation errors.');\n\t}", "public function addnewpatient() {\n if (!$this->ACL->hasPermission('ADDPATIENT', $this->UserPermissions)) {\n $this->ControllerView->errorMessage('ADDPATIENTDENIED', 'patients');\n } else {\n if ($_SERVER['REQUEST_METHOD'] == 'POST') {\n //Pass post array into model and get back response.\n //If the record was added then show prompt.\n if ($this->ControllerModel->addPatientRecord($_POST)) {\n $this->ControllerView->prompt('SUCCESSFULRECORDADDED', 'patients');\n } else {\n $this->ControllerView->errorMessage('ERROR', 'patients');\n }\n } else {\n $this->ControllerView->addnewpatient();\n }\n }\n }", "public function create()\n\t{ \n $patients = Patient::lists('name', '_id');\n $medicines = Medicine::lists('name', '_id');\n\t\treturn View::make('consult.create', array('medicines' => $medicines,\n 'patients' => $patients\n ));\n\t}", "public function create(array $attributes): Model\n {\n return $this->model->create($attributes);\n }", "public function store(Request $request)\n {\n //rules\n $rules = [\n 'name' => 'required|unique:patients',\n 'gender' => 'required|in:male,female',\n 'contact' => 'required'\n ];\n\n //validation\n $this->validate($request, $rules);\n\n $patientData = $request->all();\n\n $patient = Patient::create($patientData);\n\n return $this->showOne($patient, 200);\n\n }", "public function store(Request $request)\n {\n $patients = new Patients;\n $patients->first_name = $request->first_name;\n $patients->middle_name = $request->middle_name;\n $patients->last_name = $request->last_name;\n $patients->gender = $request->gender;\n $patients->birthdate = $request->date_of_birth;\n $patients->mobile_number = $request->mobile_number;\n $patients->nextOfKin = $request->nextOfKin;\n $patients->street_name = $request->street;\n $patients->district_name = $request->district;\n $patients->region_name = $request->region;\n $patients->country_name = $request->country;\n $patients->email_address = $request->email;\n $patients->password = $request->passwd;\n $patients->save();\n\n return $patients;\n }", "public function create()\n {\n return 'patient index';\n //\n }", "public function create(patient $patient)\n {\n \n return view('admin.diagnosis.add',['patient' => $patient]);\n }", "public function create() {\n $response = $this->sendRequest(\n 'GET', '/api/v1/persons/create'\n );\n\n return $this->validate($response);\n }", "public function create(Model $model);", "public function fakePatient($patientFields = [])\n {\n return new Patient($this->fakePatientData($patientFields));\n }", "public function actionCreate() {\n\t\t$request = Yii::app()->request;\n $form = new PersonaForm(\"new\");\n if($request->isPostRequest) {\n $form->attributes = $request->getPost('PersonaForm');\n if($form->validate()) {\n PersonaManager::savePersona($form);\n Yii::app()->user->setFlash('general-success', \"$form->nombre $form->apellido ha sido creado.\");\n $this->redirect('admin');\n }\n }\n $this->render('create', array('model'=>$form));\n }", "public function store(Request $request)\n {\n $request->validate([\n 'name'=>'required',\n 'prenom'=>'required',\n 'VilleResidence'=>'required',\n 'telephone'=>'required',\n 'name'=>'required',\n 'password'=>'required',\n 'dateNais'=>'required'\n ]);\n\n Patient::create($request->all());\n \n User::create([\n 'name' => $data['name'],\n 'email' => $data['email'],\n 'password' => Hash::make($data['password']),\n ]);\n\n return redirect()->route('index')\n ->with('success','votre compte Patient est crée avec succes Veillez vous connecter pour contuer ');\n }", "public function create($attributes)\n {\n return $this->model->create($attributes);\n }", "function createPatient($requestData) {\n\n //$this->log(__CLASS__ . \".\" . __FUNCTION__ . \"(), given request data:\" . print_r($requestData, true), LOG_DEBUG);\n\n $NEW_SELF_PATIENT_FIELDS_ORDERED =\n Configure::read('NEW_SELF_PATIENT_FIELDS_ORDERED');\n\n foreach($NEW_SELF_PATIENT_FIELDS_ORDERED as $classAndField => $required){\n if ($required){\n $pieces = explode('.', $classAndField);\n $model = $pieces[0];\n $field = $pieces[1];\n if (empty($requestData[$model][$field])){\n throw new Exception(\"Missing required fields.\");\n }\n }\n }\n\n if (defined('USERNAME_OR_EMAIL') && USERNAME_OR_EMAIL){\n if ((!isset($requestData['User']['email'])\n || empty($requestData['User']['email']))\n &&\n (!isset($requestData['User']['username'])\n || empty($requestData['User']['username']))){\n\n throw new Exception(__(\"Either username or email needs to be entered.\"));\n }\n }\n\n // ensure another patient doesn't clash\n $userConditions = array();\n if (!is_null($PW_RESET_FIELDS_ORDERED = Configure::read('PW_RESET_FIELDS_ORDERED'))){\n foreach($PW_RESET_FIELDS_ORDERED as $classAndField){\n $pieces = explode('.', $classAndField);\n $model = $pieces[0];\n $field = $pieces[1];\n $userConditions[$classAndField] = $requestData[$model][$field];\n }\n $user = $this->User->find('first', array(\n 'conditions' => $userConditions,\n 'recursive' => 1));\n if (!empty($user)) {\n throw new Exception(\"Existing Account Found.\");\n }\n }\n\n // new user - create base objects\n $userSaveResult = $this->User->save($requestData);\n if(!$userSaveResult){\n $msg;\n $errors = $this->User->validationErrors; // eg email clash\n foreach($errors as $error){\n $msg = $error[0] . \" \";\n }\n $this->log(\"save error\" . print_r($msg, true), LOG_DEBUG);\n throw new Exception($msg);\n }\n\n // If this was initiated by PatientController->registerPatient(), password will have been validated. If it's null, the patient is probably being created by the patient having logged in for the first time via an external application (eg True NTH USA portal)\n if (isset($requestData['User']['password'])){\n $this->User->setPassword(\n $this->User->id,\n $requestData['User']['password']); // previously hashed\n }\n\n $id = $this->User->id;\n $requestData['Patient']['id'] = $id;\n $this->save($requestData);\n\n $this->PatientExtension->create();\n if (!isset($requestData['PatientExtension']))\n $requestData['PatientExtension'] = array();\n $requestData['PatientExtension']['patient_id'] = $id;\n $this->PatientExtension->save($requestData);\n\n if (defined('DEFAULT_LOCALE') and DEFAULT_LOCALE != 'en_US') {\n //$this->loadModel('LocaleSelection');\n $this->User->LocaleSelection->save(array(\n 'LocaleSelection' => array(\n 'user_id' => $id,\n 'locale' => DEFAULT_LOCALE,\n 'time' => $this->DhairDateTime->usersCurrentTimeStr(),\n )\n ));\n }\n\n // search for the UserAclLeaf to make sure it doesn't already exist\n $initialPatientRole = 'Patient';\n if (defined('INITIAL_PATIENT_ROLE'))\n $initialPatientRole = INITIAL_PATIENT_ROLE;\n\n $patientAclLeafExists = $this->User->UserAclLeaf->find('count', array('conditions' => array('user_id'=>$id,\n 'acl_alias'=>\n 'acl' . $initialPatientRole)));\n //$this->log(__CLASS__ . \".\" . __FUNCTION__ . \"(...), user $id, for acl$initialPatientRole, patientAclLeafExists : $patientAclLeafExists\", LOG_DEBUG);\n if (!$patientAclLeafExists){\n $this->User->UserAclLeaf->create();\n $this->User->UserAclLeaf->save(array('user_id'=>$id,\n 'acl_alias'=>\n 'acl' . $initialPatientRole));\n }\n //$this->log(__CLASS__ . \".\" . __FUNCTION__ . \"(...), just created UserAclLeaf w/ acl_alias : acl$initialPatientRole\", LOG_DEBUG);\n\n return $id;\n }", "public function createRecord();", "public function store(Request $request) //Método store para guardar la información\n {\n $patients = new Patient(); //Instancia de pacientes \n\n //Guarda en cada columna lo que viene del formulario por el método get la vista es create\n $patients->documento = $request->get('documento');\n $patients->nombre = $request->get('nombre');\n $patients->apellido = $request->get('apellido');\n $patients->sexo = $request->get('sexo');\n $patients->eps = $request->get('eps');\n\n $patients->save(); //Método save guarda todo lo anterior\n\n return redirect('/patients'); //Recarga de nuevo la página para mostrar la info\n }", "public function store(Request $request)\n { \n $this->validateWith([\n 'patient_name' => 'required',\n 'gender' => 'required'\n ]);\n \n $config = [\n 'table' => 'patients',\n 'field' => 'lab_id',\n 'length' => 10,\n 'prefix' => 'DGA-'\n ];\n \n // now use it\n $lab_id = IdGenerator::generate($config);\n\n // $lab_id = 'INX-100009';\n // output: 160001\n\n $pat = new Patient;\n\n $pat->lab_id = ( string ) $lab_id;\n // $pat->lab_id = $lab_id;\n $pat->lab_pw = Str::random(6);\n $pat->test_option = $request->test_option;\n $pat->patient_name = $request->patient_name;\n $pat->patient_age = $request->patient_age;\n $pat->year_or_month = $request->year_or_month;\n $pat->gender = $request->gender;\n $pat->phone = $request->phone;\n $pat->dob = $request->dob;\n $pat->landline = $request->landline;\n $pat->email = $request->email;\n\n if($request->email || $request->email_2){\n $pat->email_1 = $request->email_1;\n $pat->email_2 = $request->email_2;\n }\n $pat->province = $request->province;\n $pat->district = $request->district;\n $pat->municipality = $request->municipality;\n $pat->ward = $request->ward;\n\n $pat->refering_physician = $request->refering_physician;\n $pat->specimen = $request->specimen;\n $pat->specimen_coll_site = $request->specimen_coll_site;\n $pat->specimen_coll_date = $request->specimen_coll_date;\n $pat->specimen_coll_time = $request->specimen_coll_time;\n $pat->reporting_date = $request->reporting_date;\n $pat->reporting_time = $request->reporting_time;\n\n $pat->morbidity = $request->morbidity;\n $pat->temperature = $request->temperature;\n $pat->sputum = $request->sputum;\n $pat->symptoms = $request->symptoms;\n $pat->symptoms_if_any = $request->symptoms_if_any;\n $pat->travel_history = $request->travel_history;\n $pat->country_visited = $request->country_visited;\n $pat->close_contact = $request->close_contact;\n $pat->admit_isolation_ward = $request->admit_isolation_ward;\n\n $pat->passport = $request->passport;\n $pat->reference = $request->reference;\n $pat->remark = $request->remark;\n\n $pat->user_id = Auth::user()->id;\n\n $pat->save();\n\n Session::flash('success', 'Succesfully created Patient Information.');\n return redirect()->back();\n }", "public function create()\n {\n return new PersonData($this);\n }", "public function create()\n\t{\n\t\t$appointment = Appointment::find(Input::get('id'));\n $patient_id = $appointment->patient->id;\n $doctors = Employee::where('role', 'Doctor')->where('status', 'Active')->get();\n $medicines = Medicine::all()->lists('name', 'id');\n\n return View::make('prescriptions.create', compact('medicines', 'appointment', 'patient_id', 'doctors'));\n\t}", "public function patient() {\n return $this->belongsTo(Patient::class, 'patient_id');\n }", "public function createModel()\n {\n }", "public function create()\n {\n $patients = Patient::all();\n $doctors = Doctor::all();\n return view('admin.appointments.create')->with([\n 'doctors' => $doctors,\n 'patients' => $patients\n ]);\n }", "public function actionCreate()\n {\n $model = new TabelAppointment();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id_appointment]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "public function create()\n {\n $allData = UserWeb::all();\n $allCity = City::all();\n return view('site.user.addpatient')->with(['allData' => $allData, 'allCity' => $allCity]);\n }", "public function patient()\n {\n \treturn $this->belongsTo(Patients::class, 'patient_id', 'id');\n }", "public function store()\n\t{\n\t\t$id=Input::get('docidnum');\n\t\t$check=Patient::find($id);\n\t\tif ($check!=null) {\n\t\t\treturn Redirect::to('patients/exists/');\n\t\t} else {\n\t\t\t//\n\t\t\t$e=new Patient;\n\t\t\t$e->patient_id\t=Input::get('docidnum');\n\t\t\t$e->name\t\t=Input::get('name');\n\t\t\t$e->surn\t\t=Input::get('surname');\n\t\t\t$e->gender\t\t=Input::get('gender');\n\t\t\t$e->birthd\t\t=date(\n\t\t\t\t'Y-m-d',mktime(\n\t\t\t\t\t0,0,0,\n\t\t\t\t\tInput::get('month'),\n\t\t\t\t\tInput::get('day'),\n\t\t\t\t\tInput::get('year')\n\t\t\t\t\t)\n\t\t\t)\n\t\t\t;//$birthd\t;\n\t\t\t$e->countrybth\t=Input::get('countrybth');\n\t\t\t$e->citybth\t\t=Input::get('citybth');\n\t\t\t$e->statebth\t=Input::get('statebth');\n\t\t\t$e->digiter_id\t=Auth::user()->email;\n\t\t\t$e->save();\n\n\t\t\treturn Redirect::to(\n\t\t\t\t'patients/patient/'.Input::get('docidnum')\n\t\t\t\t)\n\t\t\t;\n\t\t}\n\t}", "public function create()\n\t{\n\t\treturn View::make(\"patient.index\");\n\t}", "public function create()\n {\n $records = Record::all();\n $doctors = Doctor::all();\n $patients = Patient::all();\n return view('appointments.create', compact('records', 'doctors', 'patients'));\n }", "public function create()\n {\n\n $insurance_companies = InsuranceCompany::all();\n\n return view('admin.patients.create')->with([\n 'insurance_companies' => $insurance_companies,\n ]);\n }", "public function create()\n {\n $physicians = Physician::all();\n $patients = Patient::all();\n $nurses = Nurse::all();\n return view('backend.appointments.create', compact('physicians', 'patients', 'nurses'));\n }", "public static function Create() {\r\n\t\t$cls = get_called_class();\r\n\t\t$model = new $cls();\r\n\t\t$record = new Dbi_Record($model, array());\r\n\t\treturn $record;\r\n\t}", "public function addPatient(Patient $Patient)\n {\n $req = $this->db->prepare('INSERT INTO tbl_patient(FName, LName, Address1, Address2, PostalCode, RoomNb, GradeClassification, Password, PatientImage, NextOfKin)\n VALUE (:FName, :LName, :Address1, :Address2, :PostalCode, :RoomNb, :GradeClassification, :Password, :PatientImage, :NextOfKin)');\n $req->bindValue(':FName', $Patient->getFName());\n $req->bindValue(':LName', $Patient->getLName());\n $req->bindValue(':Address1', $Patient->getAddress1());\n $req->bindValue(':Address2', $Patient->getAddress2());\n $req->bindValue(':PostalCode', $Patient->getPostalCode());\n $req->bindValue(':RoomNb', $Patient->getRoomNo());\n $req->bindValue(':GradeClassification', $Patient->getGradeClassification());\n $req->bindValue(':Password', sha1($Patient->getPassword()));\n $req->bindValue(':PatientImage', $Patient->getPicturePath());\n $req->bindValue(':NextOfKin', $Patient->getNextOfKind());\n $req->execute();\n $req->closeCursor();\n }", "public function create()\n {\n return $this->modelManager->instance($this->model);\n }", "public function create()\n {\n $this->validate();\n Contest::create($this->modelData());\n $this->modalFormVisible = false;\n $this->resetVars();\n }", "public function create()\n {\n $model = new Appointment();\n\n return view('appointment.create', compact('model'));\n }", "public function create($data) : Model\n {\n return $this->getModel()->create($data);\n }", "public function patient(): BelongsTo\n {\n return $this->belongsTo(\"App\\Models\\Patient\");\n }", "protected function createModel()\n {\n $this->call('make:model', array_filter([\n 'name' => $this->getNameInput(),\n '--factory' => $this->option('factory'),\n '--migration' => $this->option('migration'),\n ]));\n }", "public function create(\n string $name, \n string $email, \n string $phone, \n string $id_card\n ) : Model;", "public function create(){}", "public function create($data)\n\t{\n\t\t$model = $this->model->create($data);\n\n\t\treturn $model;\n\t}", "public function createModel()\n\t{\n\t\treturn $this->getModelConfiguration()->createModel();\n\t}", "public function actionCreate() {\n $model = new Bookings();\n\n $model->load(Yii::$app->request->post());\n $query = Bookings::find()\n ->andWhere(['patients_id' => $model->patients_id])\n ->andWhere(['date' => $model->date])->one();\n\n\n if (!empty($query->doctors_id)) {\n Yii::$app->session->setFlash('error', 'You already have an appointment on this date');\n return $this->redirect(['view', 'id' => $query->id]);\n }\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n\n// $model->time = Yii::$app->formatter->\n// asDate($_POST['hours'].$_POST['minutes'], 'HH:mm');\n\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "public function create()\n {\n //TODO\n }", "public static function create(array $attributes = [])\n {\n $model = new static($attributes);\n\n $model->save();\n\n return $model;\n }", "public static function create(array $attributes = [])\n {\n $model = new static($attributes);\n\n $model->save();\n\n return $model;\n }" ]
[ "0.73976547", "0.70742434", "0.6810431", "0.67133874", "0.6711339", "0.6660379", "0.66204035", "0.6578873", "0.65609676", "0.65271187", "0.65271187", "0.65271187", "0.65271187", "0.65271187", "0.6523478", "0.6455385", "0.64486754", "0.6416719", "0.6406007", "0.6406007", "0.6404642", "0.6376729", "0.63551354", "0.6322419", "0.62943405", "0.62559676", "0.62120366", "0.6196249", "0.6162556", "0.61570364", "0.6145013", "0.6143089", "0.61229485", "0.61013335", "0.6084255", "0.6053675", "0.6053675", "0.6053675", "0.60465735", "0.6036694", "0.6033404", "0.60059196", "0.5985884", "0.5977935", "0.5969136", "0.596793", "0.5965588", "0.59635836", "0.5915676", "0.59148324", "0.58956623", "0.589259", "0.58754015", "0.58747816", "0.5865017", "0.58441883", "0.5834461", "0.582296", "0.58189", "0.5810157", "0.5795911", "0.57841134", "0.5772738", "0.5771915", "0.57715374", "0.57628465", "0.57606226", "0.5750292", "0.5739878", "0.5737708", "0.5732766", "0.5727492", "0.57201475", "0.5719872", "0.57060295", "0.5701991", "0.56930983", "0.568462", "0.56802815", "0.56784457", "0.56708694", "0.5667004", "0.5654658", "0.5649455", "0.5649105", "0.5648913", "0.56454223", "0.56387687", "0.56362677", "0.56354415", "0.56295365", "0.56266516", "0.5625756", "0.5619517", "0.56180286", "0.5616941", "0.5616047", "0.56136525", "0.56068814", "0.56068814" ]
0.6514638
15
Create a MundiPagg order
public function create( $orderData, $cart, $paymentMethod, $cardToken = null, $cardId = null, $multiBuyer = null ) { $items = $this->prepareItems($cart->getProducts()); $createAddressRequest = $this->createAddressRequest($orderData); $createCustomerRequest = $this->createCustomerRequest($orderData, $createAddressRequest); $createShippingRequest = $this->createShippingRequest($orderData, $createAddressRequest, $cart); $totalOrderAmount = $orderData['total']; if (!empty($orderData['amountWithInterest'])) { $totalOrderAmount = $orderData['amountWithInterest']; } if (isset($orderData['boletoCreditCard'])) { $this->creditCardAmount = $orderData['creditCardAmount']; $interest = $orderData['amountWithInterest'] - $this->creditCardAmount; $this->boletoAmount = (floatval($orderData['total']) - $this->creditCardAmount); $this->creditCardAmount += $interest; $totalOrderAmount = $this->creditCardAmount + $this->boletoAmount; $orderData['amountWithInterest'] = $totalOrderAmount; } $isAntiFraudEnabled = $this->shouldSendAntiFraud($paymentMethod, $totalOrderAmount); $payments = $this->preparePayments($paymentMethod, $cardToken, $totalOrderAmount, $cardId, $multiBuyer); try { $CreateOrderRequest = $this->createOrderRequest( $items, $createCustomerRequest, $payments, $orderData['order_id'], $this->getMundipaggCustomerId($orderData['customer_id']), $createShippingRequest, $this->generalSettings->getModuleMetaData(), $isAntiFraudEnabled ); } catch (\Exception $e) { Log::create() ->error($e->getMessage(), __METHOD__) ->withOrderId($orderData['order_id']) ->withBackTraceInfo(); } Log::create() ->info(LogMessages::CREATE_ORDER_MUNDIPAGG_REQUEST, __METHOD__) ->withOrderId($orderData['order_id']) ->withRequest(json_encode($CreateOrderRequest, JSON_PRETTY_PRINT)); if (!$CreateOrderRequest->items) { return false; } $order = $this->getOrders()->createOrder($CreateOrderRequest); $this->createOrUpdateCharge($orderData, $order); $this->createCustomerIfNotExists( $orderData['customer_id'], $order->customer->id ); if (!empty($orderData['saveCreditCard'])) { $this->saveCreditCardIfNotExists($order); } Log::create() ->info(LogMessages::CREATE_ORDER_MUNDIPAGG_RESPONSE, __METHOD__) ->withOrderId($orderData['order_id']) ->withResponse(json_encode($order, JSON_PRETTY_PRINT)); return $order; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createCustomOrder()\n {\n AutoEvent::select('custom_order')->increment('custom_order', 1);\n $this->custom_order = 0;\n }", "public function generateOrder();", "public static function createOrder ()\n\t{\n $user=Auth::user();// here to get the user info and store it in the $user variable\n $order=$user->orders()->create([\n 'total'=>Cart::total(),\n 'delivered' =>0\n\n ]);\n // the delivered column will get by default the value zero which means that this order\n // is not delivered yet \n\n $cartItems=cart::content();\n //seek for intels about attach function \n\n foreach($cartItems as $cartItem)\n $order->orderItems()->attach($cartItem->id,[\n 'qty'=>$cartItem->qty ,\n 'total' => $cartItem->qty*$cartItem->price \n ]);\n\n\t}", "private function createOrderTable()\n {\n $this->db->query(\n \"CREATE TABLE IF NOT EXISTS `\". DB_PREFIX .\"mundipagg_order` (\n `opencart_id` INT(11) NOT NULL,\n `mundipagg_id` VARCHAR(30) NOT NULL,\n UNIQUE INDEX `opencart_id` (`opencart_id`),\n UNIQUE INDEX `mundipagg_id` (`mundipagg_id`)\n );\"\n );\n }", "protected function createOrder(){\n $order = Auth::user()->orders()->create(['status' => 'aguardando']);\n\n return $order;\n }", "public function createorderAction()\n {\n\t\ttry{\n\t\t\t// Write your code here\n\t\t\t$sm = $this->getServiceLocator();\n\t\t\t$identity = $sm->get('AuthService')->getIdentity();\n\t\t\t\n\t\t\t$request = $this->getRequest();\n\t\t\tif($request->isPost()){\n\t\t\t\t$posts = $request->getPost()->toArray();\n\t\t\t\t$objOrderTable = $sm->get('Order\\Model\\OrderTable');\n\t\t\t\t\n\t\t\t\t$posts['order_attachment'] = $posts['multipleimagesHidden'];\n\t\t\t\tunset($posts['multipleimagesHidden']);\n\t\t\t\t\n\t\t\t\t/*foreach($posts as $key => $value){\n\t\t\t\t\tif(empty($value))\n\t\t\t\t\t\tunset($posts[$key]);\n\t\t\t\t}*/\n\t\t\t\t\n\t\t\t\tlist($d, $m, $y) = explode('/', $posts['exp_delivery_date']);\n\t\t\t\t$posts['exp_delivery_date'] = \"$y-$m-$d\";\n\t\t\t\t\n\t\t\t\tif(empty($posts['id'])){\n\t\t\t\t\t$posts['created_date'] = date('Y-m-d H:i:s');\n\t\t\t\t\t$posts['created_by'] = $identity['user_id'];\n\t\t\t\t}else{\n\t\t\t\t\t$posts['updated_date'] = date('Y-m-d H:i:s');\n\t\t\t\t\t$posts['updated_by'] = $identity['user_id'];\n\t\t\t\t}\n\t\t\t\tunset($posts['opp_name']);\n\t\t\t\t\n\t\t\t\techo $objOrderTable->createOrder($posts);\n\t\t\t}\n\t\t\texit;\n\t\t}catch(Exception $e){\n\t\t\t\\De\\Log::logApplicationInfo ( \"Caught Exception: \" . $e->getMessage () . ' -- File: ' . __FILE__ . ' Line: ' . __LINE__ );\n\t\t}\n }", "public function create() : Orders;", "public function create(Order $order)\n {\n //\n }", "function createOrder() {\n\t$postData = new Order;\n\n\treturn $postData->getOrderJson();\n}", "public function creating(Order $Order)\n {\n //code...\n }", "public function order_create()\n {\n $this->_checkPartner();\n \n $mod_c = $this->_getConfig();\n if(isset($mod_c['orders_limit']) && $mod_c['orders_limit']) {\n $sql = \"SELECT COUNT(id) FROM client_order WHERE client_id = :cid AND DATE_FORMAT(created_at, '%Y-%m-%d') = :date GROUP BY client_id\";\n $count = R::getCell($sql, array('cid'=>$this->client->id, ':date'=>date('Y-m-d')));\n if($count >= $mod_c['orders_limit']) {\n throw new Box_Exception('Daily orders limit reached. Order today :today out of :limit', array(':today'=>$count, ':limit'=>$mod_c['orders_limit']), 8804);\n }\n }\n \n $partner = $this->service->getPartner($this->client);\n $price = $this->service->getPartnerPrice($this->client);\n \n if(isset($mod_c['check_balance']) && $mod_c['check_balance']) {\n $client = $this->getApiAdmin()->client_get(array('id'=>$this->client->id));\n if($client['balance'] < $price) {\n throw new Box_Exception('Not enough money in balance to create order. You must have at least $:price in your balance', array(':price'=>$price), 8808);\n }\n }\n \n if(!isset($mod_c['lid'])) {\n throw new Box_Exception('Partners program is temporary disabled.',null, 8806);\n }\n \n if($partner->product_id) {\n $product_id = $partner->product_id;\n } else {\n $product_id = $mod_c['lid'];\n }\n \n $odata = array(\n 'client_id' => $this->client->id,\n 'product_id' => $product_id,\n 'price' => $price,\n 'quantity' => 1,\n 'period' => '1M',\n 'activate' => true,\n 'invoice_option' => 'no-invoice',\n 'config' => array(\n 'partner_id' => $this->client->id,\n ),\n );\n \n $order_id = $this->getApiAdmin()->order_create($odata);\n \n $odata = array(\n 'id' => $order_id,\n 'invoice_option'=> 'issue-invoice',\n 'expires_at' => date('Y-m-d', strtotime('+14 days')),\n );\n $this->getApiAdmin()->order_update($odata);\n \n $this->service->addOrderForPartner($this->client, $order_id);\n \n $this->getApiAdmin()->hook_call(array('event'=>'onAfterPartnerOrderCreate', 'params'=>array('client_id'=>$this->client->id, 'order_id'=>$order_id)));\n \n $this->_log('Partner created new order #%s', $order_id);\n return $order_id;\n }", "public function createNewOrderForThisMember($member_id){\n \n $cmd =Yii::app()->db->createCommand();\n $result = $cmd->insert('order',\n array( 'status'=>'open',\n 'order_number'=>$this->generateTheOrderNumberForThisMember($member_id),\n 'order_initiated_by'=>$member_id,\n 'order_initiation_date'=>new CDbExpression('NOW()')\n \n )\n \n );\n \n if($result >0){\n return $this->getTheOpenOrderInitiatedByMember($member_id);\n }else{\n return 0;\n }\n \n }", "public function placeOrder(){\n $sql = \"INSERT INTO `tbl_order`(`o_id`, `u_id`, `p_id`, `date`) VALUES (NULL,'$this->userId','$this->productId','$this->orderDate')\";\n // echo $sql; exit;\n return $this->connect->qry($sql);\n }", "function buildOrder($orders) {\n\t$order = [\n\t\t\"service_uid\" => $orders[0][15],\n\t\t\"points\" => 0,\n\t\t\"invoice_number\" => $orders[0][2],\n\t\t\"purchase_detail\" => [],\n\t\t\"prices\" => [],\n\t\t\"branch_name\" => $orders[0][0],\n\t\t\"createtime\" => date('Y-m-d H:i:s')\n\t];\n\n\t$total = 0;\n\t$discount = 0;\n\tforeach ($orders as $o) {\n\t\t$order['purchase_detail'][] = [\n\t\t\t\"sku\" => $o[3],\n\t\t\t\"product_name\" => $o[4],\n\t\t\t\"category\" => [$o[5], $o[6]],\n\t\t\t\"quantity\" => (int) abs($o[16]),\n\t\t\t\"unit_price\" => (float) $o[17],\n\t\t\t\"variations\" => [\n\t\t\t\t['name' => 'Linea', 'value' => $o[5]],\n\t\t\t\t['name' => 'Color', 'value' => $o[10]],\n\t\t\t\t['name' => 'Talle', 'value' => $o[11]],\n\t\t\t]\n\t\t];\n\n\t\t$total += (int) abs($o[16]) * (float) $o[17];\n\t\t$discount += abs($o[19]);\n\t}\n\n\t$order['prices'] = [\n\t\t\"gross\" => $total,\n\t\t\"discount\" => $discount,\n\t\t\"total\" => $total - $discount\n\t];\n\n\treturn $order;\n}", "public function create_order( $args = array() )\n {\n return $this->_request('createorder', $args);\n }", "private function prepareOrderData($data)\n {\n $order = new Order();\n $order->datumPorucivanja = isset($data->datumPorucivanja) ? $data->datumPorucivanja : \"\";\n $order->datumTransakcije = isset($data->datumTransakcije) ? $data->datumTransakcije : \"\";\n $order->idPorudzbine = isset($data->idPorudzbine) ? $data->idPorudzbine : \"\";\n $order->napomena = isset($data->napomena) ? $data->napomena : \"\";\n $order->idProizvoda = isset($data->idProizvoda) ? $data->idProizvoda : \"\";\n $order->idKlijenta = isset($data->idKlijenta) ? $data->idKlijenta : \"\";\n return $order;\n }", "public function createOrder($cartData,$token,$isApi,$customerId = NULL);", "function createOrder($order,$requester,$numberId){\n $sql='';\n //status==0 mean have to cook and else will finish now status will be send\n $finish_time=$order->status==0 ? '\\'0000-00-00 00:00:00\\'' :'now()';\n $sql = 'INSERT INTO `order` (waiter_id,chef_id, number_id, table_id, product_id,bill_detail_id, count, comments, order_time, finish_time, status, price) VALUES ';\n $sql.= '(\\''.$requester.'\\',\\'\\','.$numberId.', '.$order->table_id.', '.$order->product_id.',-1,'.$order->count.',\\''.$order->comments.'\\', now(), '.$finish_time.', \\''.$order->status.'\\', '.$order->price.');';\n //echo $sql;\n if(isset($this->connection)){\n return $this->queryNotAutoClose($sql);\n }else{\n return $this->query($sql);\n }\n }", "public function createAction() {\n $customer = Mage::getSingleton('customer/customer')->load(Mage::getStoreConfig('testorders/general/customerid'));\n /*empty object for sourceOrder is fine*/\n $sourceOrder = new Varien_Object();\n $sku = $this->getRequest()->getParam('sku');\n\n $messages = array();\n $model = Mage::getModel(\"testorders/simulator\");\n $model->setOrderInfo($sourceOrder, $customer, $sku);\n $order = $model->create();\n\n if ($order && $order->getIncrementId()) {\n echo \"Order #{$order->getIncrementId()} has been created from SKU : {$sku}\";\n }\n else {\n echo \"Test Order creation failed. Please check the module config and make sure selected shipping method and payment method are configured properly\";\n }\n\n exit;\n }", "public function testCreateOrder() {\n $order_item = $this->createEntity('commerce_order_item', [\n 'type' => 'default',\n 'unit_price' => [\n 'number' => '999',\n 'currency_code' => 'USD',\n ],\n ]);\n $order = $this->createEntity('commerce_order', [\n 'type' => 'default',\n 'mail' => $this->loggedInUser->getEmail(),\n 'order_items' => [$order_item],\n 'uid' => $this->loggedInUser,\n 'store_id' => $this->store,\n ]);\n\n $order_exists = (bool) Order::load($order->id());\n $this->assertNotEmpty($order_exists, 'The new order has been created in the database.');\n }", "public function additionOrder()\n {\n global $dbh;\n $sql = $dbh->prepare(\"INSERT INTO `ordero`(`castumerid`, `areaid`, `phoneo`, `areatransid`, `deviceid`, `orderdate`, `timeo`, `timing`, `mdn`, `sn`, `note`, `process`, `idservo`, `idservows`, `idmark`, `poseplt`, `dftime`, `odatews`, `odatefs`, `odatedp`, `timodp`, `timingdp`, `resono`, `deleto`, `employeeid`, `employeeidws`, `employeeiddp`)\n VALUES ('$this->castumerid', '$this->areaid', '$this->phone', '$this->areatransid', '$this->deviceid', '$this->orderdate', '$this->timeo', '$this->timing', '$this->mdn', '$this->sn', '$this->note', '$this->process', '$this->idservo', '$this->idservows', '$this->idmark', '$this->poseplt', '$this->dftime', '$this->odatews', '$this->timodp', '$this->odatedp', '$this->odatedp', '$this->timingdp', '$this->resono', '$this->deleto', '$this->employeeid', '$this->employeeidws', '$this->employeeiddp')\");\n $result = $sql->execute();\n $ido = $dbh->lastInsertId();\n return array ($result,$ido);\n }", "public function actionCreate()\n\t{\n\t\t//inisialisasi model Order\n\t\t\t$order = new Order('search');\n\t $order->unsetAttributes(); // clear any default values\n\t if (isset($_GET['Order']))\n\t $order->attributes = $_GET['Order'];\n\n\t $orderbaru = new Order('baru');\n\t $orderbaru->RESEP = 1;\n\t $orderbaru->orderdetail = new OrderDetail('baru');\n\t\t\t//inisialisasi model OrderDetail\n\t\t\t$order_detail=new OrderDetail;\n\n\t\t\t//inisialisasi model Pelanggan\n\t\t\t$pelanggan = new Pasien('search');\n\t $pelanggan->unsetAttributes(); // clear any default values\n\t if (isset($_GET['Pasien']))\n\t $pelanggan->attributes = $_GET['Pasien'];\n\n\t\t\t$newpl = new Pasien('baru');\n\t\t\t$newpl->ID_LAYANAN = 1;\n\t if (isset($_POST['Pasien'])) {\n\t $newpl->attributes = $_POST['Pasien'];\n\t $newpl->BIAYA_REGISTRASI = 5000;\n\t $newpl->TANGGAL_REGISTRASI = date('Y-m-d H:i:s');\n\t if ($newpl->save()) {\n\t \tYii::app()->user->setFlash('info', MyFormatter::alertSuccess('<strong>Selamat!</strong> Data telah berhasil disimpan.'));\n\t $this->redirect(array('/site'));\n\t }\n\t }\n\n\t if (isset($_POST['Order'])) {\n\t $orderbaru->attributes = $_POST['Order'];\n\t $orderbaru->TANGGAL_ORDER = date('Y-m-d H:i:s');\n \t$orderbaru->USER_PEMBUAT = Yii::app()->user->nama;\n\t if ($orderbaru->validate()) {\n\t $transaction = Yii::app()->db->beginTransaction();\n\t try {\n\t if (!$orderbaru->save())\n\t throw new Exception;\n\n\t $subtotal = 0;\n\t foreach ($_POST['OrderDetail'] as $kd => $detail) {\n\t if (!empty($detail['JUMLAH'])) {\n\t $od = new OrderDetail('baru');\n\t\t $od->ID_ITEM = $kd;\n\t\t $od->KODE_ORDER = $orderbaru->KODE_ORDER;\n\t\t //proses harga by resep\n\t\t $od->HARGA = Item::getHargaByResep($kd, $orderbaru->RESEP);\n\t\t $od->JUMLAH = $detail['JUMLAH'];\n\t\t $od->DISKON = $detail['DISKON'];\n\t\t //$od->DISKON = Barang::getDiskonById($kd);\n\t\t //update stok barang\n\t\t Item::updateStokItem($kd, $detail['JUMLAH']);\n\t\t $subtotal += $od->JUMLAH * $od->HARGA;\n\t if (!$od->save())\n\t throw new Exception;\n\t }\n\t }\n\t \n\t $transaction->commit();\n\t Yii::app()->user->setFlash('info', MyFormatter::alertSuccess('<strong>Selamat!</strong> Data telah berhasil disimpan.'));\n\t $this->redirect(array('/order/view', 'id' => $orderbaru->KODE_ORDER));\n\t } catch (Exception $ex) {\n\t $transaction->rollback();\n\t echo $ex->getMessage(); exit();\n\t }\n\t }\n\t }\n\n\t\t\t// $dataProvider=new CActiveDataProvider('Pasien',array(\n\t\t\t// \t'pagination'=>false,\n\t\t\t// ));\n\t\t\t$this->render('create',array(\n\t\t\t\t//'dataProvider'=>$dataProvider,\n\t\t\t\t'order'=>$order,\n\t\t\t\t'order_detail'=>$order_detail,\n\t\t\t\t'pelanggan'=>$pelanggan,\n\t\t\t\t'pelanggan_baru'=>$newpl,\n\t\t\t\t'orderbaru' => $orderbaru,\n\t\t\t));\n\t}", "public function createNewOrderForThisMember($member_id){\n $model = new Order;\n return $model->createNewOrderForThisMember($member_id);\n \n }", "function get_order()\n{\n\n}", "public function __construct($order)\n {\n $this->order=$order;\n }", "public function postOrderMake() {\n\n /*\n Array\n (\n [12_97d170e1550eee4afc0af065b78cda302a97674c] => 5\n [metrics] => Порода:\n Пол:\n Обхват шеи:\n Обхват груди:\n Длина спины:\n Обхват передней лапы:\n От шеи до передней лапы:\n Между передними лапами:\n\n [name] => фывчфы\n [email] => [email protected]\n [address] => фывфы\n [tel] => фывфы\n [pay_type] => 1\n )\n */\n\n #Helper::ta(Input::all());\n\n /**\n * Получаем корзину\n */\n CatalogCart::getInstance();\n $goods = CatalogCart::get_full();\n #Helper::ta($goods);\n\n /**\n * Формируем массив с продуктами\n */\n $products = [];\n if (count($goods)) {\n foreach ($goods as $good_hash => $good) {\n $products[$good_hash] = [\n 'id' => $good->id,\n 'count' => $good->_amount,\n 'price' => $good->price,\n 'attributes' => (array)$good->_attributes,\n ];\n }\n }\n #Helper::ta($products);\n\n $pay_type = @$this->pay_types[Input::get('pay_type')] ?: NULL;\n\n /**\n * Формируем окончательный массив для создания заказа\n */\n $order_array = [\n 'client_name' => Input::get('name'),\n 'delivery_info' => Input::get('address') . ' ' . Input::get('email') . ' ' . Input::get('tel'),\n 'comment' => $pay_type . \"\\n\\n\" . Input::get('metrics'),\n 'status' => 1, ## Статус заказа, нужно подставлять ID статуса наподобие \"Новый заказ\"\n 'products' => $products,\n ];\n #Helper::tad($order_array);\n\n $order = Catalog::create_order($order_array);\n\n /*\n $json_request = [];\n $json_request['responseText'] = '';\n $json_request['status'] = FALSE;\n\n if (is_object($order) && $order->id)\n $json_request['status'] = TRUE;\n\n\n return Response::json($json_request, 200);\n */\n\n if (is_object($order) && $order->id) {\n\n CatalogCart::clear();\n return Redirect::route('mainpage');\n #return Redirect::route('catalog-order-success');\n\n } else {\n\n return URL::previous();\n }\n }", "private function _createOrder($_cart, $_usr)\n {\n //\t\tTODO We need tablefields for the new values:\n //\t\tShipment:\n //\t\t$_prices['shipmentValue']\t\tw/out tax\n //\t\t$_prices['shipmentTax']\t\t\tTax\n //\t\t$_prices['salesPriceShipment']\tTotal\n //\n //\t\tPayment:\n //\t\t$_prices['paymentValue']\t\tw/out tax\n //\t\t$_prices['paymentTax']\t\t\tTax\n //\t\t$_prices['paymentDiscount']\t\tDiscount\n //\t\t$_prices['salesPricePayment']\tTotal\n\n $_orderData = new stdClass();\n\n $_orderData->virtuemart_order_id = null;\n $oldOrderNumber = '';\n\n $this->deleteOldPendingOrder($_cart);\n\n\n $_orderData->virtuemart_user_id = $_usr->get('id');\n $_orderData->virtuemart_vendor_id = $_cart->vendorId;\n $_orderData->customer_number = $_cart->customer_number;\n $_prices = $_cart->cartPrices;\n //Note as long we do not have an extra table only storing addresses, the virtuemart_userinfo_id is not needed.\n //The virtuemart_userinfo_id is just the id of a stored address and is only necessary in the user maintance view or for choosing addresses.\n //the saved order should be an snapshot with plain data written in it.\n //\t\t$_orderData->virtuemart_userinfo_id = 'TODO'; // $_cart['BT']['virtuemart_userinfo_id']; // TODO; Add it in the cart... but where is this used? Obsolete?\n $_orderData->order_total = $_prices['billTotal'];\n $_orderData->order_salesPrice = $_prices['salesPrice'];\n $_orderData->order_billTaxAmount = $_prices['billTaxAmount'];\n $_orderData->order_billDiscountAmount = $_prices['billDiscountAmount'];\n $_orderData->order_discountAmount = $_prices['discountAmount'];\n $_orderData->order_subtotal = $_prices['priceWithoutTax'];\n $_orderData->order_tax = $_prices['taxAmount'];\n $_orderData->order_shipment = $_prices['shipmentValue'];\n $_orderData->order_shipment_tax = $_prices['shipmentTax'];\n $_orderData->order_payment = $_prices['paymentValue'];\n $_orderData->order_payment_tax = $_prices['paymentTax'];\n\n if (!empty($_cart->cartData['VatTax'])) {\n $taxes = array();\n foreach ($_cart->cartData['VatTax'] as $k => $VatTax) {\n $taxes[$k]['virtuemart_calc_id'] = $k;\n $taxes[$k]['calc_name'] = $VatTax['calc_name'];\n $taxes[$k]['calc_value'] = $VatTax['calc_value'];\n $taxes[$k]['result'] = $VatTax['result'];\n }\n $_orderData->order_billTax = vmJsApi::safe_json_encode($taxes);\n }\n\n if (!empty($_cart->couponCode)) {\n $_orderData->coupon_code = $_cart->couponCode;\n $_orderData->coupon_discount = $_prices['salesPriceCoupon'];\n }\n $_orderData->order_discount = $_prices['discountAmount']; // discount order_items\n\n\n $_orderData->order_status = 'P';\n $_orderData->order_currency = $this->getVendorCurrencyId($_orderData->virtuemart_vendor_id);\n\n if (isset($_cart->pricesCurrency)) {\n $_orderData->user_currency_id = $_cart->pricesCurrency;\n $currency = CurrencyDisplay::getInstance($_orderData->user_currency_id);\n if ($_orderData->user_currency_id != $_orderData->order_currency) {\n $_orderData->user_currency_rate = $currency->convertCurrencyTo($_orderData->user_currency_id, 1.0, false);\n } else {\n $_orderData->user_currency_rate = 1.0;\n }\n }\n\n $shoppergroups = $_cart->user->get('shopper_groups');\n if (!empty($shoppergroups)) {\n $_orderData->user_shoppergroups = implode(',', $shoppergroups);\n }\n\n if (isset($_cart->paymentCurrency)) {\n $_orderData->payment_currency_id = $_cart->paymentCurrency; //$this->getCurrencyIsoCode($_cart->pricesCurrency);\n $currency = CurrencyDisplay::getInstance($_orderData->payment_currency_id);\n if ($_orderData->payment_currency_id != $_orderData->order_currency) {\n $_orderData->payment_currency_rate = $currency->convertCurrencyTo($_orderData->payment_currency_id, 1.0, false);\n } else {\n $_orderData->payment_currency_rate = 1.0;\n }\n }\n\n $_orderData->virtuemart_paymentmethod_id = $_cart->virtuemart_paymentmethod_id;\n $_orderData->virtuemart_shipmentmethod_id = $_cart->virtuemart_shipmentmethod_id;\n\n //Some payment plugins need a new order_number for any try\n $_orderData->order_number = '';\n $_orderData->order_pass = '';\n\n $_orderData->order_language = $_cart->order_language;\n $_orderData->ip_address = ShopFunctions::getClientIP();;\n\n $maskIP = VmConfig::get('maskIP', 'last');\n if ($maskIP == 'last') {\n $rpos = strrpos($_orderData->ip_address, '.');\n $_orderData->ip_address = substr($_orderData->ip_address, 0, ($rpos + 1)) . 'xx';\n }\n\n //lets merge here the userdata from the cart to the order so that it can be used\n if (!empty($_cart->BT)) {\n $continue = array('created_on' => 1, 'created_by' => 1, 'modified_on' => 1, 'modified_by' => 1, 'locked_on' => 1, 'locked_by' => 1);\n foreach ($_cart->BT as $k => $v) {\n if (isset($continue[$k])) continue;\n $_orderData->{$k} = $v;\n }\n }\n $_orderData->STsameAsBT = $_cart->STsameAsBT;\n unset($_orderData->created_on);\n\n JPluginHelper::importPlugin('vmshopper');\n $dispatcher = JDispatcher::getInstance();\n $plg_datas = $dispatcher->trigger('plgVmOnUserOrder', array(&$_orderData));\n\n\n $i = 0;\n while ($oldOrderNumber == $_orderData->order_number) {\n if ($i > 5) {\n $msg = 'Could not generate new unique ordernumber';\n vmError($msg . ', an ordernumber should contain at least one random char', $msg);\n break;\n }\n $_orderData->order_number = $this->genStdOrderNumber($_orderData->virtuemart_vendor_id);\n if (!empty($oldOrderNumber)) vmdebug('Generated new ordernumber ', $oldOrderNumber, $_orderData->order_number);\n $i++;\n }\n if (empty($_orderData->order_pass)) {\n $_orderData->order_pass = $this->genStdOrderPass();\n }\n if (empty($_orderData->order_create_invoice_pass)) {\n $_orderData->order_create_invoice_pass = $this->genStdCreateInvoicePass();\n }\n\n $orderTable = $this->getTable('orders');\n $orderTable->bindChecknStore($_orderData);\n\n if (!empty($_cart->couponCode)) {\n //set the virtuemart_order_id in the Request for 3rd party coupon components (by Seyi and Max)\n vRequest::setVar('virtuemart_order_id', $orderTable->virtuemart_order_id);\n // If a gift coupon was used, remove it now\n CouponHelper::setInUseCoupon($_cart->couponCode, true);\n }\n // the order number is saved into the session to make sure that the correct cart is emptied with the payment notification\n $_cart->order_number = $orderTable->order_number;\n $_cart->order_pass = $_orderData->order_pass;\n $_cart->virtuemart_order_id = $orderTable->virtuemart_order_id;\n $_cart->setCartIntoSession();\n\n return $orderTable->virtuemart_order_id;\n }", "public function created(Order $order)\n {\n //\n }", "function getOrder()\n{\n\n}", "public function createOrders()\n {\n $orderIds = array();\n $this->_validate();\n\n $shippingAddresses = $this->getQuote()->getAllShippingAddresses();\n $orders = array();\n\n if ($this->getQuote()->hasVirtualItems()) {\n $shippingAddresses[] = $this->getQuote()->getBillingAddress();\n }\n\n try {\n $quote = $this->getQuote();\n $quote->unsReservedOrderId();\n $quote->reserveOrderId();\n $incrementid = $quote->getReservedOrderId();\n $index = 1;\n\n // Step 1: Create Bundle Order\n $bundleorder = $this->_createBundleOrder();\n\n foreach ($shippingAddresses as $address) {\n $order = $this->_prepareOrderCustomIncrementId($incrementid.'-'.$index, $address);\n $orders[] = $order;\n Mage::dispatchEvent(\n 'checkout_type_multishipping_create_orders_single',\n array('order'=>$order, 'address'=>$address)\n );\n\n $index++;\n }\n\n // Step 2: Reference Address Order to Bundle Order\n\n // return $this;\n\n foreach ($orders as $order) {\n $order->place();\n $order->save();\n if ($order->getCanSendNewEmailFlag()){\n $order->queueNewOrderEmail();\n }\n $orderIds[$order->getId()] = $order->getIncrementId();\n }\n\n // Step 3: set last order id\n Mage::getSingleton('core/session')->setOrderIds($orderIds);\n // Mage::getSingleton('checkout/session')->setLastQuoteId($this->getQuote()->getId());\n\n // $this->getQuote()\n // ->setIsActive(false)\n // ->save();\n //\n // Mage::dispatchEvent('checkout_submit_all_after', array('orders' => $orders, 'quote' => $this->getQuote()));\n\n return $this;\n } catch (Exception $e) {\n Mage::dispatchEvent('checkout_multishipping_refund_all', array('orders' => $orders));\n throw $e;\n }\n }", "public function __construct($order)\n {\n $this->order = $order;\n }", "public function __construct($order)\n {\n $this->order = $order;\n }", "public function __construct($order)\n {\n $this->order = $order;\n }", "public function __construct($order)\n {\n $this->order = $order;\n }", "public function __construct($order)\n {\n $this->order = $order;\n }", "public function __construct($order)\n {\n $this->order = $order;\n }", "public function __construct($order)\n {\n $this->order = $order;\n }", "public function __construct($order)\n {\n $this->order = $order;\n }", "public function create_only()\n {\n \n // Fetch latest MMS orders from MAX Live DB with status Delivered and customer MEAF and save the first matching order\n $this->pick_order();\n \n // Create the XML files for the order\n $this->create_xml_file();\n }", "public function actionOrder()\n {\n // Получаем номер заказа из $_GET\n $orderId = intval(Yii::app()->request->getQuery('id'));\n\n // Инициализируем модель по номеру заказа\n $order = Orders::model()->find('id=:id AND status=:status', array(':id'=>$orderId,':status'=>'NEW'));\n\n // Если не найдено, выводим ошибку\n if ($order === null)\n {\n Yii::app()->user->setFlash('error', \"<strong>Ошибка!</strong> Заказ с таким номером не найден или у него изменен статус! Для решения проблемы оформите пожалуйста новый заказ!\");\n }\n else\n {\n // Пытаемся найти транзакцию в логах по номеру заказа\n $payment = Logpayment::model()->find('order_id=:order_id',array(':order_id'=>$orderId));\n\n // Если не нашли транзакцию, создаем новый лог\n if ($payment === null)\n {\n $payment = new Logpayment;\n $payment->user_id = $order->user_id;\n $payment->order_id = $order->id;\n $payment->amount = $order['price'];\n $payment->currency = $order['currency'];\n $payment->in_out = 'IN';\n $payment->pay_system = 'YAM';\n $payment->payed_type = 'AUTO';\n $payment->state = 'I';\n $payment->timestamp = new CDbExpression('NOW()');\n $payment->save();\n }\n else\n {\n if(in_array($payment->state,array(\"S\")))\n {\n Yii::app()->user->setFlash('error', \"<strong>Ошибка!</strong> Этот счет уже оплачен. Обратитесь к администратору сайта для решения проблемы (раздел Контакты).\");\n }\n }\n }\n \n // Параметры платежной системы\n $userModel = User::model()->findByPk($order->user_id);\n $uid = '410012058541159'; // Кошелек продавца\n $comment = urlencode ('Оплата заказа #'.$order->id.' от пользователя '.$userModel->email.' в интернет-магазине Gifm.ru'); // Комментарий\n\n $this->render('create',array('order'=>$order,'uid'=>$uid,'comment'=>$comment));\n }", "public function createExpressCheckoutOrder($tid){}", "public function &CreateOrder($id, $date, $name, $value, $status)\n\t\t{\n\t\t\t$order = new DataPushOrder($id, $date, $name, $value, $status);\n\n\t\t\t$this->AddOrder($order);\n\n\t\t\treturn $order;\n\t\t}", "public function createOrder($order)\n {\n $this->notificationRepository->create(['type' => 'order', 'order_id' => $order->id]);\n \n event(new CreateOrderNotification);\n }", "function getOrder();", "public function creating(Order $model)\n {\n//\n// $model->created_user_id = $this->user->id;\n// $model->created_user_name = $this->user->name;\n $model->status = 1;\n $model->user_name = optional($model->user)->name??'';\n $model->amount = ($model->amount==0)?0.01:$model->amount;\n if (empty($model->father_id))\n $model->leader_id = $model->user_id;\n $model->number = date('Ymd') . time();\n if ($model->use_times != 0)\n User::find($model->user_id)->decrement('tour_times',$model->use_times);\n// \\Log::info('orders::'.json_encode($model));\n //判断是否为香榧果订单 统计斤数\n $can = $this->checkOrderCreate($model);\n if ($can == 1)\n $model->fruit_order = 1;\n //$model->address_str = $model->address ? $model->address->location : '';\n // $model->amount = bcmul(constants('PRODUCT_PRICE'), $model->qty, 2);\n }", "public function create()\n {\n if(Auth::check()){\n if (session_status() == PHP_SESSION_NONE) {\n session_start();\n }\n\n if (isset($_SESSION['carrinho'])){\n if (!empty($_SESSION['carrinho'])){\n $user_id = $_SESSION['user']['id'];\n //dd($_SESSION['endereco']);\n $address_id = $_SESSION['endereco'][0]['id'];\n $carrinho = $_SESSION['carrinho'];\n\n //dd($address_id, $user_id,$carrinho);\n\n $order = new Order();\n //Vai receber o id do ultimo PEDIDO.\n\n //Usando uma transação para cadastrar o usuário.\n DB::transaction(function () use ($order, $user_id, $address_id, $carrinho){\n $order->user_id = $user_id;\n $order->address_id = $address_id;\n $order->save();\n //Retornando ID\n $order_id = $order->id;\n\n foreach ($carrinho as $aux){\n //Registrar valor com desconto\n $n = $aux['discount'].'0.0';\n $pctm = floatval($n);\n $valorQuantity = $aux['valueProduct'] * $aux['quantityPurchased'];\n $valorProduto = $valorQuantity - ( $valorQuantity / 100 * $pctm);\n\n DB::table('orders_products')->insert([[\n 'valueUnit' => $valorProduto,\n 'quantityProduct' =>$aux['quantityPurchased'],\n 'order_id' => $order_id,\n 'product_id' => $aux['id']\n ]]);\n }\n\n $this->id_lastWish = $order_id;\n //dd($id_lastWish);\n //Limpando o carrinho\n unset($_SESSION['carrinho']);\n });\n\n $orderProductsRequest = DB::table('products')\n ->join('orders_products', function ($join) {\n $join->on('products.id', '=', 'orders_products.product_id')\n ->where('orders_products.order_id', '=', $this->id_lastWish);\n })\n ->get()->toArray();\n\n //$valueCompra = DB::table('orders_products')->where('order_id','=',$this->id_lastWish)->first();\n\n //dd($orderProductsRequest, $this->id_lastWish);\n //Enviar dados para a View\n return view('makePurchase', [\n 'pedido'=> $orderProductsRequest,\n ]);\n }\n }\n return redirect()->back()->withInput()->withErrors(['Erro ! Compara NÃO REALIZADA.']);\n }\n return redirect()->route('/list-products');\n }", "public function createMovementFromOrderValidated(BcsOrder $p_ordOrder){\n $l_utUtility = new Utility();\n $this->g_omObjectManager = $l_utUtility->resetEntityManager($this->g_omObjectManager);\n $l_tdToday = new \\DateTime();\n $l_tmTypeMovementModel = new BcsTypeMovementModel($this->g_omObjectManager, $this->g_tiTranslator);\n $l_mvtMovementTypeExit = $l_tmTypeMovementModel->getTypeExitMovement();\n $l_mvtMovement = new BcsMovement();\n $l_mvtMovement = $this->generateCodeMovement('EXT', $l_mvtMovement);\n $l_mvtMovement->setMvtOrder($p_ordOrder);\n $l_mvtMovement->setMvtDate($l_tdToday);\n $l_mvtMovement->setMvtComment('Stock exit movement from order '.$p_ordOrder->getOrdCode());\n $l_mvtMovement->setMvtMovementType($l_mvtMovementTypeExit);\n try{\n $this->g_omObjectManager->persist($l_mvtMovement);\n $this->g_omObjectManager->flush();\n// var_dump($l_mvtMovement);die;\n } catch (\\Exception $e) {\n return $e->getMessage();\n }\n $l_odmOrderDetailModel = new BcsOrderDetailModel($this->g_omObjectManager, $this->g_tiTranslator);\n $l_arrOrderDetail = $l_odmOrderDetailModel->getOrderDetailByOrderId($p_ordOrder->getId());\n// $this->g_omObjectManager = $l_utUtility->resetEntityManager($this->g_omObjectManager);\n foreach ( $l_arrOrderDetail as $l_oddOrderDetail ) {\n $l_oddOrderDetail = $l_odmOrderDetailModel->parseOrderDetail($l_oddOrderDetail);\n $l_mvdMovementDetail = new BcsMovementDetail();\n $l_mvdMovementDetail->setMvdMovement($l_mvtMovement);\n $l_mvdMovementDetail->setMvdUnitOfMeasure($l_oddOrderDetail->getOddItem()->getItmUnitOfMeasure());\n $l_mvdMovementDetail->setMvdQuantity($l_oddOrderDetail->getOddQuantity());\n $l_mvdMovementDetail->setMvdItem($l_oddOrderDetail->getOddItem());\n //update reserved quantity\n $l_fReservedQuantity = $l_oddOrderDetail->getOddItem()->getItmReservedQuantity() + $l_oddOrderDetail->getOddQuantity();\n $l_oddOrderDetail->getOddItem()->setItmReservedQuantity($l_fReservedQuantity);\n //update available quantity\n $l_oddOrderDetail->getOddItem()->setItmAvailableQuantity($l_oddOrderDetail->getOddItem()->getItmStockQuantity() - $l_fReservedQuantity);\n //update activity item.. in order to avoid removal of the product\n $l_oddOrderDetail->getOddItem()->setItmIsInActivity(true);\n try{\n $this->g_omObjectManager->persist($l_mvdMovementDetail);\n $this->g_omObjectManager->flush();\n } catch (\\Exception $e) {\n return $e->getMessage();\n }\n unset($l_oddOrderDetail);\n }\n\n return $l_mvtMovement;\n }", "public function createOrder($arr){\n\t\t$start_coordinates = implode(\",\", $arr['origin']);\n\t\t$end_coordinates = implode(\",\", $arr['origin']);\n\t\t$distance = $arr['distance'];\n\t\t$arr = $this->model->create([\n\t\t\t'start_coordinates' => $start_coordinates,\n\t\t\t'end_coordinates' => $end_coordinates,\n\t\t\t'distance' => $distance,\n\t\t\t'status' => 'UNASSIGNED'\n\t\t]);\n\t\treturn $arr;\n\t}", "public function getOrder()\n {\n\n }", "public function insertAdditionnal($page, $order)\n {\n }", "public static function createOrder($data)\r\n\t{\r\n\t\treturn new Order($id);\r\n\t}", "function setOrder($order);", "private function memberAddOrder($data){\n $fields = array(\n 'app_id' => $this->appId,\n 'data' => array(\n 'msg_type' => 'order_add',\n 'order_id' => $data['order_id']\n ),\n 'headings' => [\n 'en' => '你有新的訂單',\n 'zh-Hant' => '你有新的訂單'\n ],\n 'contents' => [\n 'en' => '你有新的訂單待處理',\n 'zh-Hant' => '你有新的訂單待處理'\n ],\n 'small_icon' => 'ic_stat_onesignal_default',\n 'ios_badgeType' => 'Increase',\n 'ios_badgeCount' => 1,\n 'filters' => array(\n array(\n 'field' => 'tag',\n 'key' => 'id',\n 'relation' => '=',\n 'value' => $data['store_id']\n )\n )\n );\n return $fields;\n }", "public function created(Order $Order)\n {\n //code...\n }", "public function newOrder($values)\n\t{\n\t\treturn $this->getRequest('NewOrder', $values);\n\t}", "public function create()\n {\n //\n return view('pages.pengeluaran-order');\n }", "public function run()\n {\n $order=[\n [\n 'Product_Name' => 'Rhino',\n 'Quantity' => '20',\n 'Customer_Name' => 'Mark Dougal',\n ],\n [\n 'Product_Name' => 'Elephant',\n 'Quantity' => '5',\n 'Customer_Name' =>'Teresa Paige',\n ],\n ];\n foreach($order as $key => $value)\n {\n Order::create($value);\n }\n }", "public function actionCreate()\n {\n /** @var Order $model */\n $model = new Order;\n // Load saved draft\n $draftModel = $model->getDraftOrderByUser($this->acl->getUser());\n if ($draftModel) {\n $model = $draftModel;\n }\n\n $event = new OrderCreatedEvent($model, $this);\n $model->onOrderCreated = [$event, 'sendNotification'];\n\n // Get current model scenario\n $scenario = $model->getScenario();\n\n // Uncomment the following line if AJAX validation is needed\n // $this->performAjaxValidation($model);\n\n if (isset($_POST['Order'])) {\n $model->setAttributes($_POST['Order']);\n $model->setAttribute('creator_id', Yii::app()->user->getId());\n $model->orderItems = $_POST['OrderItems'];\n\n if ($model->isDraft()) {\n $redirect = ['index'];\n $scenario = 'saveDraft';\n $model->setScenario($scenario);\n // Order is not created until it is actually posted\n // It is posted when status changed from \"Draft\"\n $model->setAttribute('created', null);\n } else {\n $model->setAttribute('created', date('Y-m-d'));\n $redirect = ['view', 'id' => $model->id];\n }\n\n // Same scenario should apply to related models\n if ($model->saveWithRelated(['orderItems' => ['scenario' => $scenario]])) {\n $this->redirect($redirect);\n }\n }\n\n $this->render('create', [\n 'model' => $model,\n ]);\n }", "private function createOrder()\n {\n $order = $this->getMock(\\OxidEsales\\Eshop\\Application\\Model\\Order::class, array('validateDeliveryAddress', '_sendOrderByEmail'));\n // sending order by email is always successful for tests\n $order->expects($this->any())->method('_sendOrderByEmail')->will($this->returnValue(1));\n //mocked to circumvent delivery address change md5 check from requestParameter\n $order->expects($this->any())->method('validateDeliveryAddress')->will($this->returnValue(0));\n\n $this->testOrderId = substr_replace( oxRegistry::getUtilsObject()->generateUId(), '_', 0, 1 );\n $order->setId($this->testOrderId);\n\n return $order;\n }", "function order($dataOrder){\n\tglobal $conn;\n\n\t$id_user = htmlspecialchars($dataOrder[\"id_user\"]);\n\n\t$nama = htmlspecialchars(base64_decode(base64_decode(base64_decode(base64_decode(base64_decode(base64_decode(base64_decode(base64_decode($dataOrder[\"nama\"])))))))));\n\n\t$no_telp = htmlspecialchars(base64_decode(base64_decode(base64_decode(base64_decode(base64_decode(base64_decode(base64_decode(base64_decode($dataOrder[\"no_telp\"])))))))));\n\n\t$alamat = htmlspecialchars(base64_decode(base64_decode(base64_decode(base64_decode(base64_decode(base64_decode(base64_decode(base64_decode($dataOrder[\"alamat\"])))))))));\n\n\t$jenis = htmlspecialchars(base64_decode(base64_decode(base64_decode(base64_decode(base64_decode(base64_decode(base64_decode(base64_decode($dataOrder[\"jenis\"])))))))));\n\n\t$jumlah_unit = htmlspecialchars(base64_decode(base64_decode(base64_decode(base64_decode(base64_decode(base64_decode(base64_decode(base64_decode($dataOrder[\"jumlah_unit\"])))))))));\n\n\t$tgl_pakai = htmlspecialchars($dataOrder[\"tgl_pakai\"]);\n\n\t$jangka_waktu = htmlspecialchars(base64_decode(base64_decode(base64_decode(base64_decode(base64_decode(base64_decode(base64_decode(base64_decode($dataOrder[\"jangka_waktu\"])))))))));\n\n\t$total = htmlspecialchars(base64_decode(base64_decode(base64_decode(base64_decode(base64_decode(base64_decode(base64_decode(base64_decode($dataOrder[\"total\"])))))))));\n\n\t$status = htmlspecialchars(base64_decode(base64_decode(base64_decode(base64_decode(base64_decode(base64_decode(base64_decode(base64_decode($dataOrder[\"status\"])))))))));\n\n\t$tgl_transaksi = htmlspecialchars(base64_decode(base64_decode(base64_decode(base64_decode(base64_decode(base64_decode(base64_decode(base64_decode($dataOrder[\"tgl_transaksi\"])))))))));\n\n\t$bln_transaksi = htmlspecialchars(base64_decode(base64_decode(base64_decode(base64_decode(base64_decode(base64_decode(base64_decode(base64_decode($dataOrder[\"bln_transaksi\"])))))))));\n\n\t$thn_transaksi = htmlspecialchars(base64_decode(base64_decode(base64_decode(base64_decode(base64_decode(base64_decode(base64_decode(base64_decode($dataOrder[\"thn_transaksi\"])))))))));\n\n\n\t// check empty tgl_transaksi\n\tif( empty($tgl_transaksi) ){\n\t\techo \"\n\t\t<script>\n\t\t\talert('Server Error!');\n\t\t</script>\";\n\t\treturn false;\n\t}\n\n\t// check empty bln_transaksi\n\tif( empty($bln_transaksi) ){\n\t\techo \"\n\t\t<script>\n\t\t\talert('Server Error!');\n\t\t</script>\";\n\t\treturn false;\n\t}\n\n\t// check empty thn_transaksi\n\tif( empty($thn_transaksi) ){\n\t\techo \"\n\t\t<script>\n\t\t\talert('Server Error!');\n\t\t</script>\";\n\t\treturn false;\n\t}\n\n\t// check encode tgl_transaksi\n\tif( !base64_encode(base64_encode(base64_encode(base64_encode(base64_encode(base64_encode(base64_encode(base64_encode($tgl_transaksi)))))))) ){\n\t\techo \"\n\t\t<script>\n\t\t\talert('Server Error!');\n\t\t</script>\";\n\t\treturn false;\n\t}\n\n\t// check encode bln_transaksi\n\tif( !base64_encode(base64_encode(base64_encode(base64_encode(base64_encode(base64_encode(base64_encode(base64_encode($bln_transaksi)))))))) ){\n\t\techo \"\n\t\t<script>\n\t\t\talert('Server Error!');\n\t\t</script>\";\n\t\treturn false;\n\t}\n\n\t// check encode thn_transaksi\n\tif( !base64_encode(base64_encode(base64_encode(base64_encode(base64_encode(base64_encode(base64_encode(base64_encode($thn_transaksi)))))))) ){\n\t\techo \"\n\t\t<script>\n\t\t\talert('Server Error!');\n\t\t</script>\";\n\t\treturn false;\n\t}\n\n\n\n\n\n\t// check encode nama\n\tif( !base64_encode(base64_encode(base64_encode(base64_encode(base64_encode(base64_encode(base64_encode(base64_encode($nama)))))))) ){\n\t\techo \"\n\t\t<script>\n\t\t\talert('Nama tidak sesuai!');\n\t\t</script>\";\n\t\treturn false;\n\t}\n\t// check empty nama\n\tif( empty($nama) ){\n\t\techo \"\n\t\t<script>\n\t\t\talert('Nama tidak sesuai!');\n\t\t</script>\";\n\t\treturn false;\n\t}\n\n\t// check encode no_telp\n\tif( !base64_encode(base64_encode(base64_encode(base64_encode(base64_encode(base64_encode(base64_encode(base64_encode($no_telp)))))))) ){\n\t\techo \"\n\t\t<script>\n\t\t\talert('Nomor telepon tidak sesuai!');\n\t\t</script>\";\n\t\treturn false;\n\t}\n\t// check empty no_telp\n\tif( empty($no_telp) ){\n\t\techo \"\n\t\t<script>\n\t\t\talert('Nomor telepon tidak sesuai!');\n\t\t</script>\";\n\t\treturn false;\n\t}\n\n\t// check encode alamat\n\tif( !base64_encode(base64_encode(base64_encode(base64_encode(base64_encode(base64_encode(base64_encode(base64_encode($alamat)))))))) ){\n\t\techo \"\n\t\t<script>\n\t\t\talert('Alamat tidak sesuai!');\n\t\t</script>\";\n\t\treturn false;\n\t}\n\t// check empty alamat\n\tif( empty($alamat) ){\n\t\techo \"\n\t\t<script>\n\t\t\talert('Alamat tidak sesuai!');\n\t\t</script>\";\n\t\treturn false;\n\t}\n\n\t\t// check encode jenis\n\tif( !base64_encode(base64_encode(base64_encode(base64_encode(base64_encode(base64_encode(base64_encode(base64_encode($jenis)))))))) ){\n\t\techo \"\n\t\t<script>\n\t\t\talert('Server Error!');\n\t\t</script>\";\n\t\treturn false;\n\t}\n\t// check empty jenis\n\tif( empty($jenis) ){\n\t\techo \"\n\t\t<script>\n\t\t\talert('Server Error!');\n\t\t</script>\";\n\t\treturn false;\n\t}\n\n\t// check encode jumlah_unit\n\tif( !base64_encode(base64_encode(base64_encode(base64_encode(base64_encode(base64_encode(base64_encode(base64_encode($jumlah_unit)))))))) ){\n\t\techo \"\n\t\t<script>\n\t\t\talert('Jumlah tidak sesuai!');\n\t\t</script>\";\n\t\treturn false;\n\t}\n\t// check empty jumlah_unit\n\tif( empty($jumlah_unit) ){\n\t\techo \"\n\t\t<script>\n\t\t\talert('Jumlah tidak sesuai!');\n\t\t</script>\";\n\t\treturn false;\n\t}\n\n\t// check encode jangka_waktu\n\tif( !base64_encode(base64_encode(base64_encode(base64_encode(base64_encode(base64_encode(base64_encode(base64_encode($jangka_waktu)))))))) ){\n\t\techo \"\n\t\t<script>\n\t\t\talert('Jangka waktu tidak sesuai!');\n\t\t</script>\";\n\t\treturn false;\n\t}\n\t// check empty jangka_waktu\n\tif( empty($jangka_waktu) ){\n\t\techo \"\n\t\t<script>\n\t\t\talert('Jangka waktu tidak sesuai!');\n\t\t</script>\";\n\t\treturn false;\n\t}\n\n\t// check encode total\n\tif( !base64_encode(base64_encode(base64_encode(base64_encode(base64_encode(base64_encode(base64_encode(base64_encode($total)))))))) ){\n\t\techo \"\n\t\t<script>\n\t\t\talert('Total tidak sesuai!');\n\t\t</script>\";\n\t\treturn false;\n\t}\n\t// check empty total\n\tif( empty($total) ){\n\t\techo \"\n\t\t<script>\n\t\t\talert('Total tidak sesuai!');\n\t\t</script>\";\n\t\treturn false;\n\t}\n\t\n\n\t// query_order\n\t$query_order = \"INSERT INTO tb_order VALUES(null, '$id_user', '$nama', '$no_telp', '$alamat', '$jenis', '$jumlah_unit', '$tgl_pakai', '$jangka_waktu', '$total', '$status', '$tgl_transaksi', '$bln_transaksi', '$thn_transaksi') \";\n\tmysqli_query($conn, $query_order);\n\n\t// query_laporan\n\t$query_laporan = \"INSERT INTO tb_laporan VALUES(null, '$id_user', '$nama', '$no_telp', '$alamat', '$jenis', '$jumlah_unit', '$tgl_pakai', '$jangka_waktu', '$total', '$status', '$tgl_transaksi', '$bln_transaksi', '$thn_transaksi') \";\n\tmysqli_query($conn, $query_laporan);\n\treturn mysqli_affected_rows($conn);\n}", "public function create(array $data): Order\n {\n return Order::create($data);\n }", "function crearPedido($tipoPizza,$tamanoPizza,$masaPizza,$extrasPizza,$numeroPizzas,$precioPedido){\r\n $extras = '';\r\n foreach ($extrasPizza as $key => $value) {\r\n $extras .= $value.' <br>';\r\n }\r\n //creamos el pedido, extras es un array\r\n $pedido = array(\r\n '<tr class='.'precioTr'.'><td class='.\"precioTituloTD\".'>El tipo de pizza es </td><td class='.\"pedidoTD\".'>' =>\r\n $tipoPizza.'</td></tr>',\r\n '<tr class='.'precioTr'.'><td class='.\"precioTituloTD\".'>El tamaño de pizza es </td><td class='.\"pedidoTD\".'>' =>\r\n $tamanoPizza.'</td></tr>',\r\n '<tr class='.'precioTr'.'><td class='.\"precioTituloTD\".'>La masa de la pizza es </td><td class='.\"pedidoTD\".'>' =>\r\n $masaPizza.'</td></tr>',\r\n '<tr class='.'precioTr'.'><td class='.\"precioTituloTD\".'>Extras </td><td class='.\"pedidoTD\".'>' =>\r\n $extras.'</td></tr>',\r\n '<tr class='.'precioTr'.'><td class='.\"precioTituloTD\".'>El número de pizzas de este tipo pedidos </td><td class='.\"pedidoTD\".'>' =>\r\n $numeroPizzas.'</td></tr>',\r\n '<tr class='.'precioTr'.'><td class='.\"precioTituloTD\".'>El precio de este pedido es </td><td class='.\"pedidoTD\".'>' =>\r\n $precioPedido.' euros</td></tr>'\r\n );\r\n return $pedido;\r\n}", "public function createProfileOrder($tid){}", "public function createOrder(Request $request)\n {\n\n $order = Order::create([\n 'room_id' => $request['roomId'],\n 'user_id' => $request['userId'],\n 'guests' => $request['guests'],\n 'check_in' => $request['checkIn'],\n 'check_out' => $request['checkOut'],\n 'total_days' => $request['totalDays'],\n 'message' => $request['message'],\n 'status' => $request['status'],\n ]);\n\n return response()->json([\n \"message\" => \"pesananmu masuk kedalam proses\",\n \"data\" => $order\n ]);\n }", "public function generateCommande()\n {\n $current_month = date(\"F Y\");\n $premiermois = date(\"01/m/Y\");\n $data = [\n ['','','','','','BON DE COMMANDE '.$current_month],\n ['MODE D\\'EMPLOI DU BON DE COMMANDE '],\n ['1) Saisir le code article en colonne A et le nombre de colis en colonne B'],\n ['Nota :'],\n ['Lorsqu\\'un code apparaît dans la colonne C \"article de remplacement\" le ressaisir à la place de l\\'ancien code en colonne A'],\n ['', 'Attention : des articles peuvent être remplacés plusieurs fois.'],\n ['Lorsque \"N/A\" apparaît, cela signifie que l\\'article est supprimé. Voir dans le catalogue pour remplacement éventuel par une autre référence.'],\n [''],\n ['2) Lorsque la saisie de la commande est TERMINEE CLIQUEZ SUR LE BOUTON \"Fin Commande\"'],\n [''],\n ['Zone de saisie de commande', '', '','NE SAISIR AUCUNE DONNEE DANS CES COLONNES'],\n ['Code',\t 'Nombre',\t 'Article de',\t 'DLV indicative',\t'Duré de',\t 'DESIGNATION DES MARCHANDISES',\t'PCB',\t 'Qté',\t'Poids',\t'Volume',\t'Tarif', 'UV',\t'Montant',\t'Poids',\t'Volume',\t'Code',\t 'Gencod',\t'Rang',\t 'Code',\t'Origine'],\n ['Article',\t'de colis',\t'remplacement',\t'Au',\t 'Vie',\t '',\t 'Colis',\t'',\t 'Cde',\t 'Cde',\t '', '',\t '',\t 'Colis',\t'Colis', \t'Douanier',\t '',\t 'Catalogue', \t'Produits'],\n ['',\t '',\t 'à ressaisir',\t$premiermois,\t 'Indicative',\t'',\t '', \t'', '', '', '',\t '', \t'', \t '', '',\t 'Indicatif', '', '', \t 'Dangereux']\n ];\n\n return $data;\n }", "public function setOrder($order);", "public function neworder() {\n\t\tparent::__construct();\n\t\tsession_start();\n\t\tif(isset($_SESSION['uid'])){\n\t\t\t$this->write('orders', array(NULL, $_SESSION['uid'], 1, \"PAID\"));\n\t\t} else {\n\t\t\t$this->write('orders', array(NULL, NULL, 1, \"PAID\"));\n\t\t}\n\t\t$this->orderid = $this->id;\n\t\t\n\t\t//Create new order table and insert cart data\n\t\t$create = $this->conn->prepare(\n\t\t\t'DROP TABLE IF EXISTS order'.$this->orderid.'; '\n\t\t\t.'CREATE TABLE order'.$this->orderid\n\t\t\t.'(itemid INT(7) ZEROFILL NOT NULL, itemname VARCHAR(256) NOT NULL, qnt INT(3) NOT NULL, itemprice DECIMAL(6,2) NOT NULL); '\n\t\t);\n\t\t$create->execute();\n\n\t\t$count = 0;\n\t\tforeach($_SESSION['cart'] as $item){\n\t\t\t//This is redundant but otherwise db insert skips first row - PDO or db class issue?\n\t\t\tif($count == 0){$this->write('order'.$this->orderid, array($item[\"item\"],$item[\"name\"],$item[\"qnt\"],$item[\"price\"]));};\n\t\t\t$count++;\n\t\t\t$this->write('order'.$this->orderid, array($item[\"item\"],$item[\"name\"],$item[\"qnt\"],$item[\"price\"]));\n\t\t}\n\t}", "public function create()\n {\n return view('admin.create_order');\n }", "function getOrder($object) {\n //foreach($answerObject->Orders as $order) {\n //\n // $myOrder = new Bestellung();\n // ....\n // $object->addCollectionEntry($myOrder); \n //}\n \n $bestelldatum = new DateTime(); \n $lieferdatum = new DateTime(); \n $lieferdatum->add(new DateInterval('P4D'));\n\n $myOrder = new Bestellung();\n\n $myOrder->ShopId = 'sampleOrderId_'.rand(1000, 9999);\n $myOrder->Gesammtkosten = 9.37; \n $myOrder->Versandkosten = 4.99; \n $myOrder->VersandDienstleister = 'DHL National';\n $myOrder->Lieferdatum = $lieferdatum->format('Y-m-d H:i:s'); \n $myOrder->Zahlungsart = Zahlungsart::Nachnahme;\n $myOrder->Waehrung = Waehrung::EURO;\n $myOrder->Status = Status::EingegangenUndFreigegeben;\n $myOrder->Rechnungsnummer = 'sampleInvoiceId_'.rand(1000, 9999);\n $myOrder->Kundenbemerkung = 'Please send the products as fast as you can! Thank you, regards, your buyer'; \n $myOrder->Händlerbemerkung = 'We\\'ll send it tomorow! Regards, your merchant'; \n $myOrder->Bestelldatum = $bestelldatum->format('Y-m-d H:i:s'); \n \n $myOrder->Kunde = new Kunde(); \n\n $myOrder->Kunde->Kundennummer = 'sampleClientId_'.rand(1000, 9999);\n $myOrder->Kunde->Firma = 'Die Testfirma GmbH';\n $myOrder->Kunde->FirmenZusatz = 'wir testen das!'; \n $myOrder->Kunde->Titel = 'Prof. Dr.';\n $myOrder->Kunde->Vorname = 'Testina';\n $myOrder->Kunde->Nachname = 'Testerin';\n $myOrder->Kunde->Geschlecht = Geschlecht::Weiblich;\n $myOrder->Kunde->Zhd = 'Hr. Einkäufer (Buchhaltung)'; \n $myOrder->Kunde->UStId = 'DE 123456789';\n $myOrder->Kunde->Email = '[email protected]_'.rand(1000, 9999);\n $myOrder->Kunde->Telefon = '012 / 345 678 - 9';\n $myOrder->Kunde->Fax = '012 / 987 654 - 3';\n $myOrder->Kunde->Geburtstag = '07.07.1977';\n $myOrder->Kunde->Mobil = '0170 123 456';\n \n $myOrder->Kunde->Adresse = new Adresse();\n \n $myOrder->Kunde->Adresse->Straße = 'Am Testgelände';\n $myOrder->Kunde->Adresse->Hausnummer = '12a';\n $myOrder->Kunde->Adresse->Anmerkung = 'Gebäudekomplex \"Anton\"';\n $myOrder->Kunde->Adresse->PLZ = '12345';\n $myOrder->Kunde->Adresse->Ort = 'Testort';\n $myOrder->Kunde->Adresse->Bundesland = 'Nordrhein-Westfalen';\n $myOrder->Kunde->Adresse->Land = Land::DE();\n\n $myOrder->Lieferanschrift = new Anschrift();\n \n $myOrder->Lieferanschrift->Firma = 'Lagerfirma UG';\n $myOrder->Lieferanschrift->FirmenZusatz = 'denn lagern ist Leidenschaft!'; \n $myOrder->Lieferanschrift->Titel = 'Dipl.-Ing.';\n $myOrder->Lieferanschrift->Vorname = 'Ludwig';\n $myOrder->Lieferanschrift->Nachname = 'Lagerist';\n $myOrder->Lieferanschrift->Geschlecht = Geschlecht::Männlich; \n $myOrder->Lieferanschrift->Email = '[email protected]_'.rand(1000, 9999);\n $myOrder->Lieferanschrift->Telefon = '098 / 765 432 - 1';\n $myOrder->Lieferanschrift->Fax = '098 / 123 456 - 7';\n $myOrder->Lieferanschrift->Mobil = '0151 654 321';\n \n $myOrder->Lieferanschrift->Adresse = new Adresse();\n \n $myOrder->Lieferanschrift->Adresse->Straße = 'Lagerstraße';\n $myOrder->Lieferanschrift->Adresse->Hausnummer = '211';\n $myOrder->Lieferanschrift->Adresse->Anmerkung = 'Tor 4';\n $myOrder->Lieferanschrift->Adresse->PLZ = '5432';\n $myOrder->Lieferanschrift->Adresse->Ort = 'Lagerstadt';\n $myOrder->Lieferanschrift->Adresse->Bundesland = 'Tirol';\n $myOrder->Lieferanschrift->Adresse->Land = Land::AT();\n \n $myGutschein = new Gutschein();\n \n $myGutschein->GutscheinNummer = 'sampleCouponId_'.rand(1000, 9999); \n $myGutschein->Rabatt = 9.99; \n $myGutschein->Code = 'sampleCouponCode_'.rand(1000, 9999); \n $myGutschein->Bemerkung = 'unicorn 2 is great - coupon!'; \n \n array_push($myOrder->Gutscheine, $myGutschein);\n \n $myArtikel_1 = new Artikel();\n \n $myArtikel_1->ShopId = 'yourArticleIdOnMarketplace_1'; // the returned articleId from function addArticle($article) \n $myArtikel_1->ArtikelNummer = 'productArtNo_1';\n $myArtikel_1->Name = 'sampleProduct_1';\n $myArtikel_1->Hinweis = 'with gift package'; \n $myArtikel_1->Menge = 2; \n $myArtikel_1->Preis = 2.69; // Brutto (with tax included)\n $myArtikel_1->GesammtPreis = 5.38;\n $myArtikel_1->MwSt = Steuer::MwSt7();\n \n array_push($myOrder->Artikel, $myArtikel_1);\n \n $myArtikel_2 = new Artikel();\n \n $myArtikel_2->ShopId = 'yourArticleIdOnMarketplace_2';\n $myArtikel_2->ArtikelNummer = 'productArtNo_2';\n $myArtikel_2->Name = 'sampleProduct_2 with variations Color: blue Size: XXL';\n $myArtikel_2->Menge = 1; \n $myArtikel_2->Preis = 8.99;\n $myArtikel_2->GesammtPreis = 8.99;\n $myArtikel_2->MwSt = Steuer::MwSt19(); \n \n $myVakoArtikel = new VakoArtikel();\n \n $myVakoArtikel->ShopId = 'yourVariationIdOnMarketplace'; // the returned variantId from function addArticle($article) on adding this explicit variation \n $myVakoArtikel->Aktiv = true;\n \n $myVakoEigenschaftName_1 = new EigenschaftBase();\n $myVakoEigenschaftName_1->Name = 'Color';\n $myVakoWertEigenschaft_1 = new WertEigenschaft();\n \n $myVakoWertEigenschaft_1->Name = 'Color';\n $myVakoWertEigenschaft_1->Wert = new Eigenschaftswert();\n $myVakoWertEigenschaft_1->Wert->Aktiv = true;\n $myVakoWertEigenschaft_1->Wert->Wert = 'blue';\n \n $myVakoEigenschaftName_2 = new EigenschaftBase();\n $myVakoEigenschaftName_2->Name = 'Size'; \n $myVakoWertEigenschaft_2 = new WertEigenschaft();\n\n $myVakoWertEigenschaft_2->Name = 'Size';\n $myVakoWertEigenschaft_2->Wert = new Eigenschaftswert();\n $myVakoWertEigenschaft_2->Wert->Aktiv = true;\n $myVakoWertEigenschaft_2->Wert->Wert = 'XXL';\n \n array_push($myVakoArtikel->Eigenschaften, $myVakoWertEigenschaft_1, $myVakoWertEigenschaft_2);\n \n array_push($myArtikel_2->EigenschaftenNamen, $myVakoEigenschaftName_1, $myVakoEigenschaftName_2);\n \n array_push($myArtikel_2->VakoArtikel, $myVakoArtikel);\n \n array_push($myOrder->Artikel, $myArtikel_2);\n\n $object->addCollectionEntry($myOrder); \n \n $myOrder2 = new Bestellung();\n\n $myOrder2->ShopId = 'sampleOrderId_2_'.rand(1000, 9999);\n $myOrder2->Gesammtkosten = 34.95; \n $myOrder2->Versandkosten = 14.99; \n $myOrder2->VersandDienstleister = 'DPD Kurier';\n $myOrder2->Zahlungsart = Zahlungsart::Vorkasse;\n $myOrder2->Waehrung = Waehrung::EURO;\n $myOrder2->Status = Status::EingegangenUndFreigegeben;\n $myOrder2->Rechnungsnummer = 'sampleInvoiceId_2_'.rand(1000, 9999);\n $myOrder2->Kundenbemerkung = 'Bitte schnellstmöglich versenden, Danke!'; \n $myOrder2->Bestelldatum = $bestelldatum->format('Y-m-d H:i:s'); \n \n $myOrder2->Kunde = new Kunde(); \n\n $myOrder2->Kunde->Kundennummer = 'sampleClientId_2_'.rand(1000, 9999);\n $myOrder2->Kunde->Vorname = 'Arno';\n $myOrder2->Kunde->Nachname = 'Nym';\n $myOrder2->Kunde->Geschlecht = Geschlecht::Männlich; \n $myOrder2->Kunde->Email = '[email protected]_'.rand(1000, 9999);\n \n $myOrder2->Kunde->Adresse = new Adresse();\n \n $myOrder2->Kunde->Adresse->Straße = 'Am geheimen Weg';\n $myOrder2->Kunde->Adresse->Hausnummer = '1';\n $myOrder2->Kunde->Adresse->PLZ = '13373';\n $myOrder2->Kunde->Adresse->Ort = 'Geheim';\n $myOrder2->Kunde->Adresse->Land = Land::DE();\n \n $myOrder2->Lieferanschrift = new Anschrift();\n\n $myOrder2->Lieferanschrift->Vorname = 'Arno';\n $myOrder2->Lieferanschrift->Nachname = 'Nym';\n $myOrder2->Lieferanschrift->Geschlecht = Geschlecht::Männlich; \n $myOrder2->Lieferanschrift->Email = '[email protected]_'.rand(1000, 9999);\n \n $myOrder2->Lieferanschrift->Adresse = new Adresse();\n \n $myOrder2->Lieferanschrift->Adresse->Straße = 'Am geheimen Weg';\n $myOrder2->Lieferanschrift->Adresse->Hausnummer = '1';\n $myOrder2->Lieferanschrift->Adresse->PLZ = '13373';\n $myOrder2->Lieferanschrift->Adresse->Ort = 'Geheim';\n $myOrder2->Lieferanschrift->Adresse->Land = Land::DE();\n \n $myArtikel = new Artikel();\n \n $myArtikel->ShopId = 'yourArticleIdOnMarketplace_1_2';\n $myArtikel->ArtikelNummer = 'productArtNo_1_2';\n $myArtikel->Name = 'sampleProduct_1_2'; \n $myArtikel->Menge = 4; \n $myArtikel->Preis = 4.99;\n $myArtikel->GesammtPreis = 19.96;\n $myArtikel->MwSt = Steuer::MwSt10P7();\n \n array_push($myOrder2->Artikel, $myArtikel);\n\n $object->addCollectionEntry($myOrder2); \n}", "public function makeorder (Request $request) {\n\n $order = new Order;\n $order->pizza_id = $request->pizzaId;\n $order->user_id = Auth::user()->id;\n\n $order->save();\n \n return redirect ('/pizzas');\n }", "public function orderAction()\r\n\t{\r\n\r\n\r\n\r\n\r\n\t\t//Session::delete('cart');\r\n\r\n\t\t$cart = Session::get('cart');\r\n\t\t$motoID = $this->_arrParam['moto_id'];\r\n\t\t$price = $this->_arrParam['price'];\r\n\t\t// $data = $this->_model->infoItem($this->_arrParam);\r\n\t\t// $quantity = $this->_arrParam['quantity'];\r\n\t\t// //$name = $this->_arrParam['name'\t];\r\n\t\tif (empty($cart)) {\r\n\t\t\t$cart['quantity'][$motoID] = 1; // so luong\r\n\t\t\t$cart['price'][$motoID] = $price; //gia tien\r\n\t\t\t// $cart['name'][$motoID] = $data['name'];\r\n\t\t\t// $cart['picture'][$motoID] = $data['picture'];\r\n\t\t\t// $cart['id'][$motoID] = $data['id'];\t\r\n\t\t} else {\r\n\t\t\tif (key_exists($motoID, $cart['quantity'])) { // da ton tai sach can mua\r\n\t\t\t\t$cart['quantity'][$motoID] += 1;\r\n\t\t\t\t$cart['price'][$motoID] = $price * $cart['quantity'][$motoID];\r\n\t\t\t\t// $cart['name'][$motoID] = $data['name'];\r\n\t\t\t\t// $cart['picture'][$motoID] = $data['picture'];\r\n\t\t\t\t// $cart['id'][$motoID] = $data['id'];\r\n\t\t\t} else { // chua ton tai sach can mua\r\n\t\t\t\t$cart['quantity'][$motoID] = 1;\r\n\t\t\t\t$cart['price'][$motoID] = $price;\r\n\t\t\t\t// $cart['name'][$motoID] = $data['name'];\r\n\t\t\t\t// $cart['picture'][$motoID] = $data['picture'];\r\n\t\t\t\t// $cart['id'][$motoID] = $data['id'];\r\n\t\t\t}\r\n\t\t}\r\n\r\n\r\n\t\tSession::set('cart', $cart);\r\n\t\tURL::redirect('frontend', 'moto', 'detail', ['moto_id' => $motoID]);\r\n\t}", "public function getOrder();", "public function getOrder();", "public function getOrder();", "public function getOrder();", "public function getOrder();", "public function getOrder();", "public function created(Order $order)\n\t{\n\t\t//\n\t}", "public function created(Order $order)\n\t{\n\t\t//\n\t}", "public function create( &$order ) {\n\t\t/**\n\t\t * Filter the generated order ID.\n\t\t *\n\t\t * @param string $order_key The uniquely-generated ID for this order.\n\t\t */\n\t\t$order_key = apply_filters( 'woocommerce_generate_order_key', uniqid( 'order_' ) );\n\n\t\t$order->set_order_key( 'wc_' . $order_key );\n\t\t$this->creating = true;\n\n\t\tparent::create( $order );\n\t}", "private function insertOrders(int $num, string $date): void {\n\n\n for ($index = 0; $index < $num; $index++) {\n\n $order = new Order();\n $order_id = $order->insert([\n \"customer_id\" => $this->getRandomCustomer(),\n \"country_id\" => rand(1, 6),\n \"device_id\" => 1,\n \"created_at\" => date('Y-m-d H:i:s', strtotime($date . ' +' . $index . ' day'))\n ]);\n\n $this->insertItems($order_id, rand(1, 10));\n }\n }", "public function createOrder($accessToken){\n $url = \"https://api.sandbox.paypal.com/v2/checkout/orders\";\n \n /* Call Headers */\n $paymentHeaders = array(\"Content-Type: application/json\", \"Authorization: Bearer \".$accessToken);\n \n\t/* Generates Random Invoice Number */\n\t$randNo= (string)rand(10000,20000);\n \n /* Fill payload with transaction info */\n\n\t\t\t$postfields = '{}';\n $postfieldsArr = json_decode($postfields, true);\n $postfieldsArr['intent'] = \"CAPTURE\";\n \t$postfieldsArr['application_context']['shipping_preference'] = \"SET_PROVIDED_ADDRESS\";\n \t$postfieldsArr['application_context']['user_action'] = \"PAY_NOW\";\n \t\n \t$postfieldsArr['purchase_units'][0]['description'] = \"PayPalPizza\";\n \t$postfieldsArr['purchase_units'][0]['invoice_id'] = \"INV-PayPalPizza-\" . $randNo;\n \t$postfieldsArr['purchase_units'][0]['amount']['currency_code'] = $_POST['currency'];\n \t$postfieldsArr['purchase_units'][0]['amount']['value'] = $_POST['total_amt'];\n \t$postfieldsArr['purchase_units'][0]['amount']['breakdown']['item_total']['currency_code'] = $_POST['currency'];\n \t$postfieldsArr['purchase_units'][0]['amount']['breakdown']['item_total']['value'] = $_POST['total_amt'];\n\t\t\t$postfieldsArr['purchase_units'][0]['shipping']['address']['recipient_name']= $_POST['shipping_recipient_name'];\n\t\t\t$postfieldsArr['purchase_units'][0]['shipping']['address']['phone']= $_POST['shipping_phone'];\n $postfieldsArr['purchase_units'][0]['shipping']['address']['address_line_1']= $_POST['shipping_line1'];\n $postfieldsArr['purchase_units'][0]['shipping']['address']['address_line_2']= $_POST['shipping_line2'];\n $postfieldsArr['purchase_units'][0]['shipping']['address']['admin_area_2']= $_POST['shipping_city'];\n $postfieldsArr['purchase_units'][0]['shipping']['address']['admin_area_1']= $_POST['shipping_state'];\n $postfieldsArr['purchase_units'][0]['shipping']['address']['postal_code']= $_POST['shipping_postal_code'];\n $postfieldsArr['purchase_units'][0]['shipping']['address']['country_code']= $_POST['shipping_country_code'];\n \n for($a = 0; $a < $_POST['itemnum']; $a++){\n $postfieldsArr['purchase_units'][0]['items'][$a]['name'] = $_POST[('itemname'. $a )];\n $postfieldsArr['purchase_units'][0]['items'][$a]['description'] = $_POST[('itemname'. $a)]; \n $postfieldsArr['purchase_units'][0]['items'][$a]['sku'] = $_POST[('itemsku'. $a)]; \n $postfieldsArr['purchase_units'][0]['items'][$a]['unit_amount']['currency_code'] = $_POST['currency']; \n $postfieldsArr['purchase_units'][0]['items'][$a]['unit_amount']['value'] = $_POST[('itemprice'. $a)];\n $postfieldsArr['purchase_units'][0]['items'][$a]['quantity'] = $_POST[('itemamount'. $a)];\n $postfieldsArr['purchase_units'][0]['items'][$a]['category'] = \"PHYSICAL_GOODS\";\n }\n \n $postfields = json_encode($postfieldsArr);\n \n/* Call Orders API */\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, $url);\n curl_setopt($ch, CURLOPT_HTTPHEADER, $paymentHeaders);\n curl_setopt($ch, CURLOPT_POSTFIELDS, $postfields);\n curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);\n curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($ch, CURLOPT_VERBOSE, 1);\n curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);\n curl_setopt($ch, CURLOPT_POST, true);\n $run = curl_exec($ch);\n curl_close($ch);\n/* Call Orders API */\n\n echo $run;\n }", "public function createPayment()\n\t{\n\n\t}", "protected function create_transaction_by_order( WC_Order $order ) {\n\t\t$space_id = get_option( WooCommerce_PostFinanceCheckout::CK_SPACE_ID );\n\t\t$create_transaction = new \\PostFinanceCheckout\\Sdk\\Model\\TransactionCreate();\n\t\t$create_transaction->setCustomersPresence( \\PostFinanceCheckout\\Sdk\\Model\\CustomersPresence::VIRTUAL_PRESENT );\n\t\t$space_view_id = get_option( WooCommerce_PostFinanceCheckout::CK_SPACE_VIEW_ID, null );\n\t\tif ( ! empty( $space_view_id ) ) {\n\t\t\t$create_transaction->setSpaceViewId( $space_view_id );\n\t\t}\n\t\t$create_transaction->setAutoConfirmationEnabled( false );\n\t\tif ( isset( $_COOKIE['wc_postfinancecheckout_device_id'] ) ) {\n\t\t\t$create_transaction->setDeviceSessionIdentifier( sanitize_text_field( wp_unslash( $_COOKIE['wc_postfinancecheckout_device_id'] ) ) );\n\t\t}\n\t\t$this->assemble_order_transaction_data( $order, $create_transaction );\n\t\t$create_transaction = apply_filters( 'wc_postfinancecheckout_modify_order_create_transaction', $create_transaction, $order );\n\t\t$transaction = $this->get_transaction_service()->create( $space_id, $create_transaction );\n\t\t$this->update_transaction_info( $transaction, $order );\n\t\treturn $transaction;\n\t}", "protected function createOrder(array $data = null)\n {\n $order = new Order();\n if ($data !== null) {\n $order->setData($data);\n }\n return $order;\n }", "public function create($JSON){\n\n // Steps \n // 0 - set Order Attr\n // 1 - validate Customer (1,0)(getID, insert)\n // 2 - insert Order with CustomerID\n // 3 - get Order ID By query(\"SELECT LAST_INSERT_ID()\");\n // 4 - insert Pizza with oreder ID \n // 4.1 - get pizza ID By query(\"SELECT LAST_INSERT_ID()\");\n // 4.2 - insert pizzza ing with pizzaID \n // 5 - insert ordernonpizza with oredr ID\n // 6 - insert Payment For this Order with CostomerID and OrderID \n // 7 - return Order Object With all info (pizza[ing], nonpizza[], payment[], Customer[], Order)\n \n // 0 - Set Order Attr \n\n $this->__set('TotalPrice', $JSON['TotalPrice']);\n $this->__set( 'OrderAddress', $JSON['OrderAddress']);\n\n // 1 - Valvalidate \n\n $customer = new customer();\n $customer->__set('CustomerPhone', $JSON['Customer']['CustomerPhone']);\n $customer->__set('CustomerEmail', $JSON['Customer']['CustomerEmail']);\n $customer->__set('CustomerFname', $JSON['Customer']['CustomerFname']);\n $customer->__set('CustomerLname', $JSON['Customer']['CustomerLname']);\n $customer->validate();\n\n $validate = $customer->validate();\n if (!$validate){\n $customer->insert();\n }\n\n //2 - insert Order with CustomerID\n // 3 - get Order ID By query(\"SELECT LAST_INSERT_ID()\");\n $this->__set('CustomerID', $customer->__get('CustomerID'));\n $this->__set('CustomerID', $customer->__get('CustomerID'));\n $this->insert();\n \n //For Insert Pizza\n $numberofpizza = sizeof($JSON['pizza']);\n $iteration = 0 ;\n while ($iteration < $numberofpizza) {\n\n // 4 - insert Pizza with oreder ID\n // 4.1 - get pizza ID By query(\"SELECT LAST_INSERT_ID()\");\n $pizza = new pizza();\n \n $pizza->__set( 'OrderID', $this->__get('OrderID'));\n $pizza->__set( 'Price', $JSON['pizza'][$iteration]['Price']);\n $pizza->__set( 'Amount', $JSON['pizza'][$iteration]['Amount']);\n $pizza->__set( 'PizzaSize', $JSON['pizza'][$iteration]['PizzaSize']);\n $pizza->__set( 'PizzaDough', $JSON['pizza'][$iteration]['PizzaDough']);\n $pizza->__set('PizzaIngList', explode(\",\", $JSON['pizza'][$iteration]['PizzaIngList']));\n \n $pizza->insert();\n $iteration++;\n\n }\n\n\n //ForInsert Nonpizza if order has\n\n $numberofnonpizza = sizeof($JSON['nonpizza']);\n $iteration = 0 ;\n\n if ($numberofnonpizza != 0){\n\n\n while ($iteration < $numberofnonpizza) {\n \n // 5 - insert ordernonpizza with oredr ID\n $nonpizza = new nonpizza();\n \n $nonpizza->__set('nonName', $JSON['nonpizza'][$iteration]['nonName']);\n $nonpizza->getidbyname();\n \n $ordernonpizza = new ordernonpizza();\n $ordernonpizza->__set('OrderID', $this->__get('OrderID'));\n $ordernonpizza->__set('nonID', $nonpizza->__get('nonID'));\n $ordernonpizza->__set('amount', $JSON['nonpizza'][$iteration]['amount']);\n $ordernonpizza->insert();\n $iteration++;\n }\n }\n\n\n // 6 - insert Payment\n $payment = new payment();\n\n $payment->__set( 'OrderID', $this->__get('OrderID'));\n $payment->__set( 'CustomerID', $this->__get('CustomerID'));\n $payment->__set('PaymentType', $JSON['payment']['PaymentType']);\n $payment->insert();\n\n\n\n\n // echo '<br><pre>';\n // echo var_dump($this);\n // echo '</pre><br>';\n \n //$result = $this->getdetails();\n $result = $this->__get('OrderID');\n return $result;\n\n }", "private function createMagentoOrder()\n {\n Mage::register('order_status_changing', true);\n\n /** @var Oyst_OneClick_Model_Magento_Quote $magentoQuoteBuilder */\n $magentoQuoteBuilder = Mage::getModel('oyst_oneclick/magento_quote', $this->orderResponse);\n $magentoQuoteBuilder->buildQuote();\n\n /** @var Oyst_OneClick_Model_Magento_Order $magentoOrderBuilder */\n $magentoOrderBuilder = Mage::getModel('oyst_oneclick/magento_order', $magentoQuoteBuilder->getQuote());\n $magentoOrderBuilder->buildOrder();\n\n $magentoOrderBuilder->getOrder()->addStatusHistoryComment(\n Mage::helper('oyst_oneclick')->__(\n '%s import order id: \"%s\".',\n $this->paymentMethod,\n $this->orderResponse['id']\n )\n )->save();\n\n // Change status of order if need to be invoice\n $this->changeStatus($magentoOrderBuilder->getOrder());\n\n Mage::unregister('order_status_changing');\n\n return $magentoOrderBuilder->getOrder();\n }", "function wpb_woo_my_account_order() {\r\n\t$myorder = array(\r\n\t\t'certificados' \t\t => __( 'Meus Certificados', 'woocommerce' ),\r\n\t\t'agendamento' \t\t => __( 'Agendamento', 'woocommerce' ),\r\n\t\t'downloads' => __( 'Downloads', 'woocommerce' ),\r\n\t\t'edit-account' => __( 'Detalhes da conta', 'woocommerce' ),\t\t\r\n\t\t'orders' => __( 'Meus pedidos', 'woocommerce' ),\t\t\r\n\t\t'edit-address' => __( 'Endereços', 'woocommerce' ),\r\n\t\t'payment-methods' => __( 'Formas de Pagamento', 'woocommerce' ),\r\n\t\t'customer-logout' => __( 'Sair', 'woocommerce' ),\r\n\t);\r\n\treturn $myorder;\r\n}", "public function createOrderEntry($data) {\n\n $query_string = \"INSERT INTO \" . DB_PREFIX . \"iyzico_order SET\";\n $data_array = array();\n foreach ($data as $key => $value) {\n $data_array[] = \"`$key` = '\" . $this->db->escape($value) . \"'\";\n }\n $data_string = implode(\", \", $data_array);\n $query_string .= $data_string;\n $query_string .= \";\";\n $this->db->query($query_string);\n return $this->db->getLastId();\n }", "public function addOrder(Order $order);", "public function createOrderAction()\n {\n $data = $this->Request()->getParams();\n $data = $data['data'];\n\n $orderNumber = $this->getOrderNumber();\n\n /** @var \\Shopware_Components_CreateBackendOrder $createBackendOrder */\n $createBackendOrder = Shopware()->CreateBackendOrder();\n $hasMailError = false;\n\n try {\n /** @var Shopware\\Models\\Order\\Order $orderModel */\n $orderModel = $createBackendOrder->createOrder($data, $orderNumber);\n\n if (!$orderModel instanceof \\Shopware\\Models\\Order\\Order) {\n $this->view->assign($orderModel);\n\n return false;\n }\n } catch (\\Exception $e) {\n $this->view->assign(\n [\n 'success' => false,\n 'message' => $e->getMessage()\n ]\n );\n\n return;\n }\n\n try {\n //sends and prepares the order confirmation mail\n $this->sendOrderConfirmationMail($orderModel);\n } catch (\\Exception $e) {\n $hasMailError = $e->getMessage();\n }\n\n if ($hasMailError) {\n $this->view->assign(\n [\n 'success' => true,\n 'orderId' => $orderModel->getId(),\n 'mail' => $hasMailError,\n 'ordernumber' => $orderModel->getNumber()\n ]\n );\n\n return;\n }\n\n $this->view->assign(\n [\n 'success' => true,\n 'orderId' => $orderModel->getId(),\n 'ordernumber' => $orderModel->getNumber()\n ]\n );\n }", "public function getOrderArray($create = false) {}", "function getOrder()\n {\n return 10;\n }", "public function storeOrder($request);", "function create(Request $request) {\n // create order\n $data = [\n 'client_name' => $request->client_name,\n 'date' => $request->order_date,\n ];\n $order = $this->orders->create($data);\n\n // add products to order\n $num_products = $this->products->numProducts();\n for($i = 1; $i < $num_products + 1; $i++) {\n $key = 'product-' . $i;\n if($request[$key] != null) {\n $this->orders->addProduct($order->id, $i, $request[$key]);\n } \n }\n Redirect::to('encomendas');\n }", "public function addOrder(){\r\n $order = $_REQUEST['order']; \r\n $form = M(\"logininfo\"); \r\n $condition['ssid'] = $_COOKIE['iPlanetDirectoryPro'];\r\n $data_user = $form->where($condition)->find();\r\n $username = $data_user['name'];\r\n $dep = $data_user['dep'];\r\n $stuid = $data_user['username'];\r\n $form_user = M('userinfo');\r\n $condition_user['stuid'] = $stuid;\r\n $data_final = $form_user->where($condition_user)->find();\r\n if ($data_final) $dep = $data_final['dep'];\r\n $trade = \"\";\r\n for ($ii = 0;$ii < count($order);$ii++)\r\n {\r\n date_default_timezone_set(\"Asia/Shanghai\"); \r\n\t \t$ordertime = date('Y-m-d H:i:s');\r\n $checktime = date('Hi');\r\n // if (!(($checktime >= '0830' && $checktime<= '1030')||($checktime>='1400' && $checktime<='1630')))\r\n // {\r\n // //echo $checktime;\r\n // $data_error['error'] = \"对不起,现在不是订餐时间\";\r\n // $data_error = json_encode($data_error);\r\n // echo $data_error;\r\n // return;\r\n // } \r\n $new['trade_date'] = date('YmdHis');\r\n $search = date('Ymd'); \r\n //var_dump($search);\r\n $form_order = M(\"orderinfo\"); \r\n $condition = array(); \r\n $condition['number'] = array('like','%'.$search.'%'); \r\n\r\n $data_order = $form_order->where($condition)->select(); \r\n $jnl = (String)count($data_order)+1;\r\n $zero = '';\r\n for ($i = 0; $i < 6-strlen($jnl); $i++) $zero = $zero.'0';\r\n $jnl = $zero.$jnl;\r\n //var_dump($jnl); 计算订单号jnl\r\n $number[$ii] = $search.$jnl; \r\n\t \t$address = $order[$ii]['address'];\r\n\t \t$phone = $order[$ii]['phone'];\r\n\t \t$remark = $order[$ii]['remark'];\r\n\t \t$amount = $order[$ii]['amount'];\r\n $pay = $order[$ii]['pay'];\r\n $area = $order[$ii]['area'];\r\n\t \t$status = \"下单成功\";\r\n $id = $order[$ii]['id'];//食品的ID\r\n // var_dump($id);\r\n $condition = array(); \r\n $condition['id'] = $id;\r\n $form = M(\"foodinfo\");\r\n $data = array();\r\n $data = $form->where($condition)->find();\r\n // var_dump($data);\r\n if ($data['amount'] - $amount >=0)\r\n\t\t\t{\r\n\t\t\t\tif ($pay == '签单') $data['amount'] = $data['amount'] - $amount;\r\n\t\t\t}\r\n else \r\n {\r\n $data_error['error'] = \"对不起,套餐已经卖光啦,下次早点来吧!\";\r\n $data_error = json_encode($data_error);\r\n echo $data_error;\r\n return;\r\n }\r\n $form -> save($data); \r\n $addnew = array();\r\n $form = array();\r\n $addnew['food'] = $data['name'];\r\n //var_dump($data['name']);\r\n $addnew['price'] = $data['price']*$amount; \r\n\t\t\t$form = M('orderinfo'); \r\n $addnew['number'] = $number[$ii];\r\n\t\t\t$addnew['username'] = $username;\r\n $addnew['dep'] = $dep;\r\n $addnew['stuid'] = $stuid;\r\n\t\t\t$addnew['ordertime'] = $ordertime;\r\n\t\t\t$addnew['address'] = $address;\r\n\t\t\t$addnew['phone'] = $phone;\r\n\t\t\t$addnew['remark'] = \"\";//所有数据都不能留空!!!\r\n $addnew['pay'] = $pay;\r\n if ($addnew['pay'] == '签单') $addnew['pay_status'] = 1;\r\n else $addnew['pay_status'] = 0;\r\n\t\t\t$addnew['area'] = $area;\r\n\t\t\t$addnew['amount'] = $amount;\r\n\t\t\t$addnew['status'] = $status;\r\n // $trade = $trade.\"<trade><user_id>\".$stuid.\"</user_id><user_name>\".$username.\"</user_name><jnl>\".$number.\"</jnl><rec_acc>\".\"zjgkc\".\"</rec_acc><amt>\".$addnew['price'].\"</amt><trade_code></trade_code><comment>浙江大学订餐系统</comment><resv_col1></resv_col1><resv_col2></resv_col2><resv_col3></resv_col3><Msg></Msg></trade>\";\r\n //var_dump($addnew);\r\n\t\t\t$form->add($addnew); \r\n }\r\n if ($addnew['pay_status'] == 0)\r\n {\r\n $jnl = $number[0];\r\n $new['app_id'] = 'ZDYS';\r\n $new['user_name'] = $username;\r\n $new['user_id'] = $stuid;\r\n $new['trade_jnl'] = 'ys'.$jnl;\r\n $new['trade_mode'] = \"\";\r\n $total_amt = 0;$total_num = 0;\r\n $total_jnl = $number[0];\r\n for ($i = 0;$i<count($order);$i++)\r\n {\r\n $total_num = $total_num + 1;\r\n $id = $order[$i]['id'];//食品的ID\r\n $condition = array(); \r\n $condition['id'] = $id;\r\n $form_food = M(\"foodinfo\");\r\n $data_food = array();\r\n $data_food = $form_food->where($condition)->find();\r\n $total_amt = $total_amt + $order[$i]['amount']*$data_food['price'];\r\n if ($i != 0) $total_jnl = $total_jnl.','.(string)$number[$i]; \r\n }\r\n $form_jnl = M('jnlinfo');//添加订单对应关系\r\n $new_jnl['first'] = $number[0];\r\n $new_jnl['total'] = $total_jnl;\r\n $form_jnl -> add($new_jnl);\r\n $trade = \"<trade><user_id>\".$stuid.\"</user_id><user_name>\".$username.\"</user_name><jnl>\".$number[0].\"</jnl><rec_acc>\".\"zjgkc\".\"</rec_acc><amt>\".$total_amt.\"</amt><trade_code></trade_code><comment>浙江大学订餐系统</comment><resv_col1></resv_col1><resv_col2></resv_col2><resv_col3></resv_col3><Msg></Msg></trade>\";\r\n $new['trade_req'] = \"<trade_req><pay_acc></pay_acc><pay_acc_name></pay_acc_name><total_num>\".'1'.\"</total_num><total_amt>\".$total_amt.\"</total_amt><resv_col1></resv_col1><resv_col2></resv_col2><resv_col3></resv_col3><trades>\".$trade.\"</trades></trade_req>\";\r\n $new['res_mode'] = 'res_notify';\r\n $new['trade_chars'] = 'utf-8';\r\n $new['trade_type'] = 'pay';\r\n $new['sign_type']=\"md5\";\r\n $new['iPlanetDirectoryPro'] = urlencode($_COOKIE['iPlanetDirectoryPro']);\r\n $new['notify_url'] = \"http://10.203.2.68/fastfood/index.php/Pay/request\";\r\n $salt = \"synZDYS\";\r\n $sign = \"app_id=\".$new['app_id'].\"&user_id=\".$new['user_id'].\"&trade_jnl=\".$new['trade_jnl'].\"&trade_req=\".$new['trade_req'].\"&salt=\".$salt;\r\n $new['sign'] = strtoupper(md5($sign));\r\n $new = json_encode($new);\r\n echo $new;\r\n\r\n }\r\n }", "public function create()\n {\n $order = new Order();\n $order->setAccountId($this->accountId);\n $order->setLanguage($this->language);\n\n return $order;\n }", "public function store(Request $request)\n {\n //item del menu personalizado\n if($request->tipo === 'personalizado'){\n\n $id_user_registra_compra = Auth::user()->id;\n $nombre_registra_compra = Auth::user()->name;\n $estado = 'Pendiente';\n $seccion = 'Administración';\n $precio_item = 2000;\n\n $request->validate([\n 'titulo' => 'required',\n 'esencial' => 'required',\n 'principal' => 'required',\n 'secundario1' => 'required',\n 'secundario2' => 'required',\n 'envolturaInterna' => 'required',\n 'envolturaExterna' => 'required',\n 'cantidad' => 'required|numeric|min:1',\n 'nombreRetira' => 'required|min:2',\n 'telefono' => 'required|min:5',\n 'fechaEntrega' => 'required'\n\n ]);\n\n $cantidad = $request->cantidad;\n $precio = $precio_item * $cantidad;\n\n $fecha_entrega = Carbon::createFromFormat('d/m/Y H:i', $request->fechaEntrega);\n\n\n //registrar el pedido\n $pedido = new Order;\n $pedido->id_user_registra_compra = $id_user_registra_compra;\n $pedido->nombre_registra_compra = $nombre_registra_compra;\n $pedido->nombre_retira = $request->nombreRetira;\n $pedido->telefono = $request->telefono;\n $pedido->fecha_entrega = $fecha_entrega;\n $pedido->estado = $estado;\n\n if($request->observacion === ''){\n $pedido->observacion = '';\n\n }else{\n $pedido->observacion = $request->observacion;\n\n }\n\n if($request->descuento === NULL){\n $pedido->descuento = 0;\n $pedido->descuento_aplicado = false;\n $pedido->precio_total_sin_descuento = $precio;\n $pedido->precio_total_con_descuento = $precio;\n\n\n }else{\n $pedido->descuento = $request->descuento;\n $pedido->descuento_aplicado = true;\n\n $porcentaje = $request->descuento / 100;\n $precio_con_descuento = $precio - ($precio * $porcentaje);\n\n $pedido->precio_total_sin_descuento = $precio;\n $pedido->precio_total_con_descuento = $precio_con_descuento;\n\n }\n\n $pedido->seccion = $seccion;\n $pedido->save();\n\n //registrar el menu personalizado en la tabla menu\n $menu = new Menu;\n $menu->titulo = $request->titulo;\n $menu->descripcion = '';\n $menu->precio = 2000;\n $menu->esencial = $request->esencial;\n $menu->principal = $request->principal;\n $menu->secundario1 = $request->secundario1;\n $menu->secundario2 = $request->secundario2;\n $menu->secundario3 = $request->secundario3;\n\n if($request->envolturaInterna === \"sinNori\"){\n $menu->envolturaInterna = null;\n }else{\n $menu->envolturaInterna = $request->envolturaInterna;\n }\n\n $menu->envolturaExterna = $request->envolturaExterna;\n $menu->save();\n\n //registrar el menu de arriba en la tabla pedidos-menu\n $pedido_menuItem = new Order_MenuItem;\n $pedido_menuItem->id_menu_item = $menu->id; //item que se eligio del menu\n $pedido_menuItem->titulo = $request->titulo;\n $pedido_menuItem->cantidad = $cantidad;\n $pedido_menuItem->precio = $precio_item;\n $pedido_menuItem->id_pedido = $pedido->id; //id del pedido de arriba\n $pedido_menuItem->save();\n\n //retornar con los strings\n $order= $pedido;\n $personalizars = DB::table('ingredients')->select('name', 'categoria')->get();\n $menuItemsLists = DB::table('menus')\n ->where('titulo','not like','Sushi Personalizado: 10 piezas')\n ->where('titulo','not like','Handroll Personalizado')\n ->get();\n\n $menuItems = DB::table('orders_menuItems')->leftJoin('menus', 'id_menu_item', '=', 'menus.id')\n ->where('orders_menuItems.id_pedido',$order->id)\n ->select('orders_menuItems.*','menus.foto','menus.esencial','menus.principal','menus.secundario1','menus.secundario2','menus.secundario3','menus.envolturaInterna','menus.envolturaExterna','menus.principal2','menus.secundario4','menus.secundario5','menus.secundario6','menus.envolturaExterna2',\n 'menus.principal3','menus.secundario7','menus.secundario8','menus.secundario9','menus.envolturaExterna3','menus.principal4','menus.secundario10','menus.secundario11','menus.secundario12','menus.envolturaExterna4','menus.ingrediente1','menus.ingrediente2','menus.ingrediente3','menus.ingrediente4','menus.ingrediente5')\n ->get();\n\n\n return redirect('admin/orders/'. $order->id )\n ->with('order')->with('menuItems')->with('menuItemsLists')->with('personalizars')\n ->with('success','Pedido creado exitosamente')\n ->with('i', (request()->input('page', 1) - 1) * 5);\n //return view('vendor.multiauth.admin.orders.show',compact('order','menuItems','menuItemsLists','personalizars'));\n\n\n }//end if personalizar\n\n //item de menu estandar(el que viene de la base de datos)\n if($request->tipo === 'estandar'){\n\n $id_user_registra_compra = Auth::user()->id;\n $nombre_registra_compra = Auth::user()->name;\n $estado = 'Pendiente';\n $seccion = 'Administración';\n\n $request->validate([\n\n 'menuItem' => 'required',\n 'cantidad' => 'required|numeric|min:1',\n 'nombreRetira' => 'required|min:2',\n 'telefono' => 'required|min:5',\n 'fechaEntrega' => 'required'\n\n ]);\n\n //crear pedido cuando no existe uno previo\n $titulo = DB::table('menus')->select('titulo')->where('id',$request->menuItem)->first()->titulo;\n\n $precio_item = DB::table('menus')->select('precio')->where('id',$request->menuItem)->first()->precio;\n\n $cantidad = $request->cantidad;\n $precio = $precio_item * $cantidad;\n\n $fecha_entrega = Carbon::createFromFormat('d/m/Y H:i', $request->fechaEntrega);\n\n\n $pedido = new Order;\n $pedido->id_user_registra_compra = $id_user_registra_compra;\n $pedido->nombre_registra_compra = $nombre_registra_compra;\n $pedido->nombre_retira = $request->nombreRetira;\n $pedido->telefono = $request->telefono;\n $pedido->fecha_entrega = $fecha_entrega;\n $pedido->estado = $estado;\n\n if($request->observacion === ''){\n $pedido->observacion = '';\n\n }else{\n $pedido->observacion = $request->observacion;\n\n }\n\n if($request->descuento === NULL){\n $pedido->descuento = 0;\n $pedido->descuento_aplicado = false;\n $pedido->precio_total_sin_descuento = $precio;\n $pedido->precio_total_con_descuento = $precio;\n\n\n }else{\n $pedido->descuento = $request->descuento;\n $pedido->descuento_aplicado = true;\n\n $porcentaje = $request->descuento / 100;\n $precio_con_descuento = $precio - ($precio * $porcentaje);\n\n $pedido->precio_total_sin_descuento = $precio;\n $pedido->precio_total_con_descuento = $precio_con_descuento;\n\n }\n\n $pedido->seccion = $seccion;\n $pedido->save();\n\n //asociar el item al pedido\n $pedido_menuItem = new Order_MenuItem;\n $pedido_menuItem->id_menu_item = $request->menuItem; //item que se eligio del menu\n $pedido_menuItem->titulo = $titulo;\n $pedido_menuItem->cantidad = $cantidad;\n $pedido_menuItem->precio = $precio_item;\n $pedido_menuItem->id_pedido = $pedido->id; //id del pedido de arriba\n $pedido_menuItem->save();\n\n //retornar con los strings\n $order= $pedido;\n $personalizars = DB::table('ingredients')->select('name', 'categoria')->get();\n $menuItemsLists = DB::table('menus')\n ->where('titulo','not like','Sushi Personalizado: 10 piezas')\n ->where('titulo','not like','Handroll Personalizado')\n ->get();\n\n $menuItems = DB::table('orders_menuItems')->leftJoin('menus', 'id_menu_item', '=', 'menus.id')\n ->where('orders_menuItems.id_pedido',$order->id)\n ->select('orders_menuItems.*','menus.foto','menus.esencial','menus.principal','menus.secundario1','menus.secundario2','menus.secundario3','menus.envolturaInterna','menus.envolturaExterna','menus.principal2','menus.secundario4','menus.secundario5','menus.secundario6','menus.envolturaExterna2',\n 'menus.principal3','menus.secundario7','menus.secundario8','menus.secundario9','menus.envolturaExterna3','menus.principal4','menus.secundario10','menus.secundario11','menus.secundario12','menus.envolturaExterna4','menus.ingrediente1','menus.ingrediente2','menus.ingrediente3','menus.ingrediente4','menus.ingrediente5')\n ->get();\n\n\n return redirect('admin/orders/'. $order->id )\n ->with('order')->with('menuItems')->with('menuItemsLists')->with('personalizars')\n ->with('success','Pedido creado exitosamente')\n ->with('i', (request()->input('page', 1) - 1) * 5);\n //return view('vendor.multiauth.admin.orders.show',compact('order','menuItems','menuItemsLists','personalizars'))->with('i', (request()->input('page', 1) - 1) * 5);\n\n } //termino if estandar\n }", "public function getInvoiceOrder();", "public function testCreateOrder()\n {\n $result = OrdersService::create([\n 'title' => 'Test Order',\n 'state' => 'INITIAL',\n 'res_id' => 1,\n 'foods' => [1, 2],\n ]);\n\n $this->assertInstanceOf(Model::class, $result);\n }", "private function insertItems(int $order_id, int $num): void {\n\n for ($index = 0; $index < $num; $index++) {\n\n $orderItem = new OrderItem();\n $orderItem->insert([\n \"order_id\" => $order_id,\n \"ean\" => rand(111111, 9999999),\n \"quantity\" => rand(1, 3),\n \"price\" => rand(1, 5)\n ]);\n }\n }" ]
[ "0.6733645", "0.66067356", "0.65446466", "0.64934385", "0.6463566", "0.63408864", "0.61966187", "0.6158629", "0.61159575", "0.60384256", "0.6036333", "0.59611416", "0.5951484", "0.59329516", "0.589721", "0.58471054", "0.58091503", "0.5799849", "0.5798137", "0.5794575", "0.5773112", "0.57438344", "0.5740249", "0.5724825", "0.5723636", "0.57143795", "0.5705671", "0.5694636", "0.56753594", "0.5668193", "0.56597483", "0.56597483", "0.56597483", "0.56597483", "0.56597483", "0.56597483", "0.56597483", "0.56597483", "0.5623044", "0.5612965", "0.5592951", "0.5579541", "0.5572418", "0.5569415", "0.5561811", "0.5559205", "0.55576223", "0.5549442", "0.5547173", "0.554507", "0.55334187", "0.55268455", "0.55256456", "0.55253583", "0.5523133", "0.5521228", "0.55060065", "0.5503698", "0.5499815", "0.549888", "0.54988396", "0.54916584", "0.54827285", "0.5465464", "0.5464881", "0.5462069", "0.5457276", "0.5445853", "0.5443402", "0.5441098", "0.5440802", "0.5430665", "0.5430665", "0.5430665", "0.5430665", "0.5430665", "0.5430665", "0.54303396", "0.54303396", "0.5425383", "0.54171056", "0.54115504", "0.54063207", "0.54057616", "0.5404192", "0.5400499", "0.5398863", "0.5393046", "0.53928655", "0.5392191", "0.538636", "0.5379703", "0.5378662", "0.53667426", "0.53664035", "0.53508276", "0.5346901", "0.53430206", "0.5342647", "0.5337018", "0.53367144" ]
0.0
-1
Prepare items to API's format
private function prepareItems($products) { $items = array(); foreach ($products as $product) { $items[] = array( 'amount' => number_format($product['price'], 2, '', ''), 'description' => $product['name'], 'quantity' => $product['quantity'] ); } return $items; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function convertSaleItemsData();", "public function prepare_items()\n {\n }", "public function prepare_items()\n {\n }", "public function prepare_items()\n {\n }", "public function prepare_items()\n {\n }", "public function prepare_items()\n {\n }", "public function convertItem($item);", "public function prepare_item_for_response($item, $request)\n {\n return array();\n }", "private function prepareItems()\n {\n $attribute = $this->attribute;\n $items = $this->model->$attribute;\n if (!is_array($items)) {\n $items = [];\n }\n\n $this->_items = $items;\n }", "public function prepare_item_for_response( $item, $request ) {\n return array();\n }", "public function prepare_items() {\n\t\tglobal $per_page;\n\n\t\t$per_page = $this->get_items_per_page( 'rank_math_404_monitor_per_page', 100 );\n\t\t$search = $this->get_search();\n\n\t\t$data = DB::get_logs(\n\t\t\t[\n\t\t\t\t'limit' => $per_page,\n\t\t\t\t'order' => $this->get_order(),\n\t\t\t\t'orderby' => $this->get_orderby( 'accessed' ),\n\t\t\t\t'paged' => $this->get_pagenum(),\n\t\t\t\t'search' => $search ? $search : '',\n\t\t\t]\n\t\t);\n\n\t\t$this->items = $data['logs'];\n\n\t\tforeach ( $this->items as $i => $item ) {\n\t\t\t$this->items[ $i ]['uri_decoded'] = urldecode( $item['uri'] );\n\t\t}\n\n\t\t$this->set_pagination_args(\n\t\t\t[\n\t\t\t\t'total_items' => $data['count'],\n\t\t\t\t'per_page' => $per_page,\n\t\t\t]\n\t\t);\n\t}", "public function prepare_item_for_response( $item, $request ) {\n $activities = get_post_meta($item->ID, 'activities');\n return [\n 'day' => $item,\n 'act' => array_map(function($act) {\n $act_obj = json_decode(html_entity_decode($act));\n $act_obj->img_url = get_the_post_thumbnail_url($act_obj->id, 'large');\n return $act_obj;\n }, $activities)\n ];\n }", "public function prepare_item_for_response($item, $request)\n {\n }", "public function prepare_item_for_response($item, $request)\n {\n }", "public function prepare_item_for_response($item, $request)\n {\n }", "public function prepare_item_for_response($item, $request)\n {\n }", "public function prepare_item_for_response($item, $request)\n {\n }", "public function prepare_item_for_response($item, $request)\n {\n }", "public function prepare_item_for_response($item, $request)\n {\n }", "public function prepare_item_for_response($item, $request)\n {\n }", "public function prepare_item_for_response($item, $request)\n {\n }", "public function prepare_item_for_response($item, $request)\n {\n }", "public function prepare_item_for_response($item, $request)\n {\n }", "public function prepare_item_for_response($item, $request)\n {\n }", "public function prepare_item_for_response($item, $request)\n {\n }", "public function prepare_item_for_response($item, $request)\n {\n }", "public function prepare_item_for_response($item, $request)\n {\n }", "public function prepare_item_for_response($item, $request)\n {\n }", "public function prepare_item_for_response($item, $request)\n {\n }", "public function prepare_item_for_response($item, $request)\n {\n }", "public function prepare_item_for_response($item, $request)\n {\n }", "public function prepare_item_for_response($item, $request)\n {\n }", "public function prepare_items()\r\n {\r\n if( !count( $this->columns ) )\r\n $this->set_columns();\r\n\r\n $per_page = 20;\r\n\r\n $columns = $this->get_columns();\r\n $hidden = array();\r\n $sortable = $this->get_sortable_columns();\r\n\r\n $this->_column_headers = array( $columns, $hidden, $sortable );\r\n\r\n $this->process_bulk_action();\r\n\r\n $data = $this->values;\r\n\r\n usort( $data, array( $this, 'usort_reorder' ) );\r\n\r\n $current_page = $this->get_pagenum();\r\n\r\n $total_items = count( $data );\r\n\r\n $data = array_slice( $data, ( ( $current_page - 1 ) * $per_page ), $per_page );\r\n\r\n $this->items = $data;\r\n\r\n if( $total_items > $per_page ) {\r\n $this->set_pagination_args( array(\r\n 'total_items' => $total_items,\r\n 'per_page' => $per_page,\r\n 'total_pages' => ceil( $total_items / $per_page ),\r\n ) );\r\n }\r\n }", "public function prepare_items() {\n\t\t/** Process bulk action */\n\t\t$this->process_bulk_action();\n\n\t\t$columns = $this->get_columns();\n $hidden = $this->get_hidden_columns();\n $sortable = $this->get_sortable_columns();\n $this->_column_headers = array($columns, $hidden, $sortable);\n\n\t\t$per_page = $this->get_items_per_page( 'posts_per_page', 20 );\n\t\t$current_page = $this->get_pagenum();\n\t\t$total_items = self::record_count();\n\n\t\t$this->set_pagination_args( [\n\t\t\t'total_items' => $total_items, //WE have to calculate the total number of items\n\t\t\t'per_page' => $per_page //WE have to determine how many items to show on a page\n\t\t] );\n\n\t\t$this->items = self::get_posts( $per_page, $current_page );\n\t}", "public function convertItemArray() {}", "abstract protected function transformItem($item);", "public function prepare_items()\r\r\n {\r\r\n\r\r\n $this->_column_headers = $this->get_column_info();\r\r\n\r\r\n /** Process bulk action */\r\r\n //\t$this->process_bulk_action();\r\r\n $per_page = $this->get_items_per_page('data_logs_per_page', 5);\r\r\n $current_page = $this->get_pagenum();\r\r\n $total_items = self::record_count();\r\r\n $this->set_pagination_args(array(\r\r\n 'total_items' => $total_items,\r\r\n 'per_page' => $per_page,\r\r\n ));\r\r\n\r\r\n $this->items = self::get_Data($per_page, $current_page);\r\r\n }", "public function prepare_items()\n {\n $columns = $this->get_columns();\n $hidden = $this->get_hidden_columns();\n $sortable = $this->get_sortable_columns();\n $data = $this->table_data();\n usort( $data, array( &$this, 'sort_data' ) );\n $perPage = 10;\n $currentPage = $this->get_pagenum();\n $totalItems = count($data);\n $this->set_pagination_args( array(\n 'total_items' => $totalItems,\n 'per_page' => $perPage\n ) );\n $data = array_slice($data,(($currentPage-1)*$perPage),$perPage);\n $this->_column_headers = array($columns, $hidden, $sortable);\n $this->process_bulk_action();\n $this->items = $data;\n }", "function format_item($item) //returns an item result with the proper formatting\n{\n\t$format_arr = array('Necessity', 'Title', 'Edition', 'Authors', 'Publisher');\n\t\n\tforeach ($format_arr as $name)\n\t{\n\t\tif (isset($item[$name]) && $item[$name])\n\t\t{\n\t\t\t$item[$name] = ucwords(strtolower(trim($item[$name], \" \\t\\n\\r\\0\\x0B\\xA0\")));\n\t\t}\n\t}\n\tif (isset($item['Year']) && $item['Year'])\n\t{\n\t\t$item['Year'] = date('Y', strtotime(trim($item['Year'])));\n\t}\n\tif (isset($item['ISBN']) && $item['ISBN'])\n\t{\n\t\t$item['ISBN'] = get_ISBN13(str_replace('&nbsp;', '', trim($item['ISBN'])));\n\t}\n\tif (isset($item['Bookstore_Price']) && $item['Bookstore_Price'])\n\t{\n\t\t$item['Bookstore_Price'] = priceFormat($item['Bookstore_Price']);\n\t}\n\t\n\tif (isset($item['New_Price']) && $item['New_Price'])\n\t{\n\t\t$item['New_Price'] = priceFormat($item['New_Price']);\n\t}\n\tif (isset($item['Used_Price']) && $item['Used_Price'])\n\t{\n\t\t$item['Used_Price'] = priceFormat($item['Used_Price']);\n\t}\n\tif (isset($item['New_Rental_Price']) && $item['New_Rental_Price'])\n\t{\n\t\t$item['New_Rental_Price'] = priceFormat($item['New_Rental_Price']);\n\t}\n\tif (isset($item['Used_Rental_Price']) && $item['Used_Rental_Price'])\n\t{\n\t\t$item['Used_Rental_Price'] = priceFormat($item['Used_Rental_Price']);\n\t}\n\n\treturn $item;\n}", "public function prepare_items() {\n\t\t$column = $this->get_columns();\n\t\t$hidden = array();\n\t\t$sortable = $this->get_sortable_columns();\n\n\t\t$this->_column_headers = array( $column, $hidden, $sortable );\n\n\t\t$per_page = 20;\n\t\t$current_page = $this->get_pagenum();\n\t\t$offset = ( $current_page - 1 ) * $per_page;\n\n\t\t$args = array(\n\t\t\t'number' => $per_page,\n\t\t\t'offset' => $offset,\n\t\t);\n\n\t\tif ( isset( $_REQUEST['orderby'] ) && isset( $_REQUEST['order'] ) ) {\n\t\t\t$args['orderby'] = $_REQUEST['orderby'];\n\t\t\t$args['order'] = $_REQUEST['order'];\n\t\t}\n\n\t\t$this->items = Persistence::get( $args );\n\n\t\t$this->set_pagination_args(\n\t\t\tarray(\n\t\t\t\t'total_items' => Persistence::count(),\n\t\t\t\t'per_page' => $per_page,\n\t\t\t)\n\t\t);\n\t}", "public function prepare_items()\r\n\t{\r\n\t\t$columns = $this->get_columns();\r\n\t\t$hidden = $this->get_hidden_columns();\r\n\t\t$sortable = $this->get_sortable_columns();\r\n\r\n\t\t$currentPage = $this->get_pagenum();\r\n\r\n\t\t$this->total = Lead::count();\r\n\t\t$data = Lead::take( $this->per_page )->skip( ( $currentPage - 1 ) * $this->per_page )\r\n\t\t ->get()->toArray();\r\n\r\n\t\t$this->set_pagination_args( [\r\n\t\t\t'total_items' => $this->total,\r\n\t\t\t'per_page' => $this->per_page\r\n\t\t] );\r\n\r\n\t\t$this->_column_headers = [ $columns, $hidden, $sortable ];\r\n\r\n\t\t$this->items = $data;\r\n\t}", "public function prepare_items() {\n\t\t$per_page = $this->get_items_per_page( 'cert_dashboards_per_page', 1 );\n\t\t$this->items = self::get_cert_dashboards( $per_page );\n\t}", "public function prepare($item)\n {\n // Reset the fields for each item.\n $this->fields = [];\n\n $localizedItem = $item->in(Locale::default());\n\n $data = $localizedItem->data();\n\n if ($slug = @$localizedItem->slug()) {\n $data['slug'] = $slug;\n }\n\n foreach ($data as $fieldName => $value) {\n $field = new Field($item, $fieldName);\n\n // Determine whether the field should be translated, or skipped.\n if (!$fieldName || !$field->shouldBeTranslated()) {\n continue;\n }\n\n // Handle the various field types. They all store the actual\n // values in different ways, so we have to map them into a\n // common structure before exporting them.\n $this->handleFieldTypes($field, [\n 'original_value' => $value,\n 'localized_value' => $item->get($fieldName) ?: '',\n 'field_name' => $fieldName,\n 'field_type' => $field->type,\n ]);\n }\n\n return $this->fields;\n }", "public function normalizeEntity($item): array\n {\n $data = [\n 'prid' => $item['prid'],\n 'enabled' => boolval(\n is_null($item['prstatus']) ? false : $item['prstatus']\n ),\n 'product_id' => $item['productnumber'],\n 'images' => [],\n 'options' => [],\n 'price' => $item['punitprice'] ? intval($item['punitprice'] * 100) : 0,\n 'name' => StringNormalizer::toTitle($item['productname']),\n 'sku' => $item['partnumber'],\n 'slug' => StringNormalizer::toSlug($item['seourl']),\n 'timestamp' => time(),\n 'weight' => $item['weight'],\n ];\n\n $data['description'] = $item['gendescription'] ?? null;\n $data['variant_description'] = $item['pdescription'] ?? null;\n\n $this->normalizeAttributes($data, $item);\n $this->normalizeCategories($data, $item);\n $this->normalizeDescription($data, $item);\n $this->normalizeDimensions($data, $item);\n $this->normalizeImages($data, $item);\n $this->normalizeMeta($data, $item);\n $this->normalizeOptions($data, $item);\n\n return $data;\n }", "public function transform($item)\n {\n return [\n 'id' => $item['id'],\n 'group_chat_user_ids' => $item['group_chat_user_ids'],\n 'project_group_user_ids' => $item['project_group_user_ids'],\n 'is_one_to_chat' => $item['is_one_to_chat'],\n 'is_project_group_chat' => $item['is_project_group_chat'],\n 'is_group_chat' => $item['is_group_chat'],\n 'status_one_to_one' => $item['status_one_to_one'],\n 'status_group_chat' => $item['status_group_chat'],\n 'status_project_group' => $item['status_project_group'],\n 'user_id_receiver' => $item['user_id_receiver'],\n 'user_id_sender' => $item['user_id_sender'],\n 'project_id' => $item['project_id'] \n ];\n }", "function prepare_items() {\n\t\t$per_page\t= $this->per_page;\n\n\t\t// Get All, Hidden, Sortable columns\n\t\t$columns = $this->get_columns();\n\t\t$hidden = array();\n\t\t$sortable = $this->get_sortable_columns();\n\n\t\t// Get final column header\n\t\t$this->_column_headers\t= array( $columns, $hidden, $sortable );\n\n\t\t// Get Data of particular page\n\t\t$data_res \t= $this->display_used_vouchers();\n\t\t$data \t\t= $data_res['data'];\n\n\t\t// Get current page number\n\t\t$current_page = $this->get_pagenum();\n\n\t\t// Get total count\n\t\t$total_items = $data_res['total'];\n\n\t\t// Get page items\n\t\t$this->items = $data;\n\n\t\t// We also have to register our pagination options & calculations.\n\t\t$this->set_pagination_args( array(\n\t\t\t\t\t\t\t\t\t\t\t'total_items' => $total_items,\n\t\t\t\t\t\t\t\t\t\t\t'per_page' => $per_page,\n\t\t\t\t\t\t\t\t\t\t\t'total_pages' => ceil( $total_items/$per_page )\n\t\t\t\t\t\t\t\t\t\t) );\n }", "public function prepare_items()\r\n {\r\n $columns = $this->get_columns();\r\n $hidden = $this->get_hidden_columns();\r\n $sortable = $this->get_sortable_columns();\r\n\r\n /** Process bulk action */\r\n $this->process_bulk_action();\r\n\r\n $data = $this->table_data();\r\n usort($data, array(&$this, 'sort_data'));\r\n $perPage = 30;\r\n $currentPage = $this->get_pagenum();\r\n $totalItems = count($data);\r\n $this->set_pagination_args(array(\r\n 'total_items' => $totalItems,\r\n 'per_page' => $perPage\r\n ));\r\n $data = array_slice($data, (($currentPage - 1) * $perPage), $perPage);\r\n // var_dump($data);\r\n // die();\r\n $this->_column_headers = array($columns, $hidden, $sortable);\r\n $this->items = $data;\r\n }", "public function transform($item): array\n {\n return [\n 'id' => (int)$item->id,\n 'uuid' => (string)$item->uuid,\n 'name' => (string)$item->name,\n 'email' => (string)$item->email,\n 'phone_number' => (string)$item->phone_number,\n 'address' => (string)$item->address\n ];\n }", "function prepare_items() {\n\t\t$columns = $this->get_columns();\n\t\t$hidden = array();\n\t\t$sortable = $this->get_sortable_columns();\n\t\t$this->_column_headers = array( $columns, $hidden, $sortable );\n\n\t\t$ubc_di_sites = $this->ubc_di_get_assessment_results();\n\n\t\tusort( $ubc_di_sites, array( &$this, 'usort_reorder' ) );\n\n\t\t$per_page = 50;\n\t\t$current_page = $this->get_pagenum();\n\t\t$total_items = count( $ubc_di_sites );\n\t\t// only ncessary because we have sample data\n\t\t$ubc_di_sites_subset = array_slice( $ubc_di_sites, ( ( $current_page - 1 ) * $per_page ), $per_page );\n\t\t$this->set_pagination_args( array(\n\t\t\t'total_items' => $total_items, //WE have to calculate the total number of items\n\t\t\t'per_page' => $per_page, //WE have to determine how many items to show on a page\n\t\t) );\n\t\t$this->items = $ubc_di_sites_subset;\n\t}", "function prepare_items( $items = false ) {\n \n // process bulk actions\n $this->process_bulk_action();\n \n // get pagination state\n $current_page = $this->get_pagenum();\n $per_page = $this->get_items_per_page('listings_per_page', 20);\n \n // define columns\n $this->_column_headers = $this->get_column_info();\n \n // fetch listings from model - if no parameter passed\n if ( ! $items ) {\n\n $listingsModel = new WPLA_ListingsModel();\n $this->items = $listingsModel->getPageItems( $current_page, $per_page );\n $this->total_items = $listingsModel->total_items;\n\n } else {\n\n $this->items = $items;\n $this->total_items = count($items);\n\n }\n\n // register our pagination options & calculations.\n $this->set_pagination_args( array(\n 'total_items' => $this->total_items,\n 'per_page' => $per_page,\n 'total_pages' => ceil($this->total_items/$per_page)\n ) );\n\n }", "public function transform($item): array\n {\n return [\n 'id' => (int)$item->id,\n 'name' => (string)$item->name,\n 'email' => (string)$item->email\n ];\n }", "protected function prepareItem(array $item)\n\t{\n\t\t$convertedItem = array();\n\t\t$convertedItem['~NAME'] = $item['NAME'] ?? '';\n\t\t$convertedItem['NAME'] = isset($item['NAME_HTML']) ? $item['NAME_HTML'] : htmlspecialcharsbx($convertedItem['~NAME']);\n\t\t$convertedItem['ACTIVE'] = isset($item['ACTIVE']) ? (bool)$item['ACTIVE'] : false;\n\t\t$convertedItem['NOTICE'] = isset($item['NOTICE']) ? (bool)$item['NOTICE'] : false;\n\t\t$convertedItem['LABEL'] = isset($item['LABEL']) ? $item['LABEL'] : '';\n\n\t\tif (!empty($item['ATTRIBUTES']) && is_array($item['ATTRIBUTES']))\n\t\t{\n\t\t\t$convertedItem['~ATTRIBUTES'] = $item['ATTRIBUTES'];\n\t\t\t$convertedItem['ATTRIBUTES'] = $this->prepareAttributes($convertedItem['~ATTRIBUTES']);\n\t\t}\n\n\t\tif (empty($item['CHILDREN']))\n\t\t{\n\t\t\t$convertedItem['OPERATIVE'] = true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$convertedItem['OPERATIVE'] = isset($item['OPERATIVE']) ? (bool)$item['OPERATIVE'] : false;\n\t\t\t$convertedItem['~CHILDREN'] = $item['CHILDREN'];\n\t\t\tforeach ($item['CHILDREN'] as &$children)\n\t\t\t{\n\t\t\t\t$convertedItem['CHILDREN'][] = $this->prepareItem($children);\n\t\t\t}\n\t\t}\n\t\t$convertedItem['ATTRIBUTES']['bx-operative'] = ($convertedItem['OPERATIVE'] ? 'Y' : 'N');\n\n\t\treturn $convertedItem;\n\t}", "protected function _encodeItems($parameters) {\n\t\t\t$response = array();\n\n\t\t\tif (!empty($parameters['items'])) {\n\t\t\t\tforeach ($parameters['items'] as $itemListName => $items) {\n\t\t\t\t\t$response['tokens'][$itemListName] = array();\n\n\t\t\t\t\tif (\n\t\t\t\t\t\tempty($items['parameters']) ||\n\t\t\t\t\t\t(\n\t\t\t\t\t\t\t!empty($parameters['processing']) &&\n\t\t\t\t\t\t\t$parameters['processing']['chunks'] > 1\n\t\t\t\t\t\t)\n\t\t\t\t\t) {\n\t\t\t\t\t\t$response['items'][$itemListName] = array_merge($parameters['items'][$itemListName], array(\n\t\t\t\t\t\t\t'count' => 0,\n\t\t\t\t\t\t\t'data' => array()\n\t\t\t\t\t\t));\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\t$itemIds = $this->fetch($items['table'], $items['parameters']);\n\n\t\t\t\t\tif (!empty($itemIds['count'])) {\n\t\t\t\t\t\t$itemIndexes = array();\n\t\t\t\t\t\t$itemIndexLineIndex = $itemStatusCount = 0;\n\t\t\t\t\t\t$selectedItemIndexes = array_intersect($itemIds['data'], $parameters['items'][$itemListName]['data']);\n\t\t\t\t\t\t$unselectedItemIndexes = array_diff($itemIds['data'], $parameters['items'][$itemListName]['data']);\n\t\t\t\t\t\tarray_walk($selectedItemIndexes, function(&$selectedItemIdValue, $selectedItemIdKey) {\n\t\t\t\t\t\t\t$selectedItemIdValue = 1;\n\t\t\t\t\t\t});\n\t\t\t\t\t\tarray_walk($unselectedItemIndexes, function(&$unselectedItemIdValue, $unselectedItemIdKey) {\n\t\t\t\t\t\t\t$unselectedItemIdValue = 0;\n\t\t\t\t\t\t});\n\t\t\t\t\t\t$allItemIndexes = $selectedItemIndexes + $unselectedItemIndexes;\n\t\t\t\t\t\tksort($allItemIndexes);\n\n\t\t\t\t\t\tforeach ($allItemIndexes as $itemIndex => $itemStatus) {\n\t\t\t\t\t\t\tif (((10000 * ($itemIndexLineIndex + 1)) - $itemIndex) === 1) {\n\t\t\t\t\t\t\t\t$itemIndexes[$itemIndexLineIndex][] = $itemStatus . $itemStatusCount;\n\t\t\t\t\t\t\t\t$itemStatusCount = 0;\n\t\t\t\t\t\t\t\t$itemIndexLineIndex++;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t$itemStatusCount++;\n\n\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\t!isset($allItemIndexes[$itemIndex + 1]) ||\n\t\t\t\t\t\t\t\t$allItemIndexes[$itemIndex + 1] != $itemStatus\n\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\t$itemIndexes[$itemIndexLineIndex][] = $itemStatus . $itemStatusCount;\n\t\t\t\t\t\t\t\t$itemStatusCount = 0;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tforeach ($itemIndexes as $itemIndexLineIndex => $itemStatusCounts) {\n\t\t\t\t\t\t\t$itemIndexes[$itemIndexLineIndex] = implode('_', $itemStatusCounts);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t$response['items'][$itemListName] = array_merge($parameters['items'][$itemListName], array(\n\t\t\t\t\t\t'count' => count($selectedItemIndexes),\n\t\t\t\t\t\t'data' => $itemIndexes\n\t\t\t\t\t));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn $response;\n\t\t}", "public function transform($item)\n {\n return [\n 'title'=>$item['title'],\n 'description'=>$item['description'],\n 'active'=>(boolean)$item['active']\n ];\n }", "public function transformCollection(array $items) {\n $array_collection = [\"data\" =>array_map([$this, 'beforeStandard'], $items)];\n return $array_collection;\n }", "protected function extractApiData() {\n\n foreach($this->apiData->items as $key => $value) { \n $key = $key + 1;\n $this->dataArray[$key]['id'] = $value->id;\n $this->dataArray[$key]['firstname'] = $value->firstname;\n $this->dataArray[$key]['lastname'] = $value->lastname;\n $this->dataArray[$key]['email'] = $value->email;\n $this->dataArray[$key]['dob'] = isset($value->dob) ? $value->dob : '';\n $this->dataArray[$key]['website_id'] = $value->website_id;\n $this->dataArray[$key]['store_id'] = $value->store_id;\n $this->dataArray[$key]['created_in'] = $value->created_in; \n $this->dataArray[$key]['group_id'] = $value->group_id; \n $this->dataArray[$key]['gender'] = $this->gender[$value->gender];\n $this->dataArray[$key]['address'] = $this->getAddress($value->addresses);\n }\n }", "public function prepare_items() {\r\n\t\t$this->_column_headers = $this->get_column_info();\r\n\r\n\t\t/** Process bulk action */\r\n\t\t$this->process_bulk_action();\r\n\r\n\t\t$per_page = $this->get_items_per_page( 'customers_per_page', 5 );\r\n\t\t$current_page = $this->get_pagenum();\r\n\t\t$total_items = self::record_count();\r\n\r\n\t\t$this->set_pagination_args( [\r\n\t\t\t'total_items' => $total_items,\r\n\t\t\t'per_page' => $per_page\r\n\t\t] );\r\n\r\n\t\t$this->items = self::get_customers( $per_page, $current_page );\r\n\t}", "public function prepare_items() {\n\n\t\t$columns = $this->get_columns();\n\t\t$hidden = get_hidden_columns( $this->screen );\n \t\t$sortable = $this->get_sortable_columns();\n \t\t$this->_column_headers = array($columns, $hidden, $sortable);\n \t\t//$this->_column_headers = $this->get_column_info();\n\t\t/** Process bulk action */\n\t\t$this->process_bulk_action();\n\n\t\t$per_page = $this->get_items_per_page( 'transactions_per_page', 10 );\n\t\t$current_page = $this->get_pagenum();\n\t\t$total_items = self::record_count();\n\n\t\t$this->set_pagination_args( array(\n\t\t\t'total_items' => $total_items, //WE have to calculate the total number of items\n\t\t\t'per_page' => $per_page //WE have to determine how many items to show on a page\n\t\t));\n\n\t\t$this->items = self::get_customers( $per_page, $current_page );\n\t}", "private function convertArrayFormat($items)\n {\n $convertedItems = [];\n foreach ($items as $item) {\n $convertedItems[] = [\n ['value' => $item['label'], 'header' => true],\n [\n 'value' => $item['value'],\n 'noEscape' => isset($item['noEscape']) ? $item['noEscape'] : false,\n ]\n ];\n }\n return $convertedItems;\n }", "function settingJsonResponse($index, $items) {\r\n\r\n\t\t$data[$index]['id'] = (isset($items->ID))?$items->ID:'';\r\n\t\t$data[$index]['name'] = (isset($items->name))?$items->name:'';\r\n\t\t$data[$index]['description'] = (isset($items->description))?$items->description:'';\r\n\t\t$data[$index]['price']['currency'] = (isset($items->price->currency))?$items->price->currency:'';\r\n\t\t$data[$index]['price']['amount'] = (isset($items->price->amount))?$items->price->amount:'';\r\n\t\t$data[$index]['url'] = (isset($items->URL))?$items->URL:'';\r\n\t\t$data[$index]['image_url'] = (isset($items->images))?$items->images[0]:'';\r\n\r\n\t\t$data[$index]['categories'] = array();\r\n\t\tif (isset($items->categories) ){\r\n\t\t\tforeach ($items->categories as $category) {\r\n\t\t\t\t$data[$index]['categories'][] = $category;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn $data;\r\n\r\n\t}", "private function reformateInput(){\n\n\n $articlegroupId = $this->searchKey('articleGroupId', $this->jsonBody);\n\n if($articlegroupId === null){\n $response = $this->unprocessableEntityResponse();\n return $response;\n }else{\n\n $articleName = $this->invoiceModel->getArticleName($articlegroupId);\n \n if($articleName === null){\n $response = $this->unprocessableEntityResponse();\n return $response;\n }elseif ($articleName == 'uriError') {\n \n $response = $this->badGatwayResponse();\n return $response;\n }\n\n $results=$this->readJson($this->jsonBody);\n\n $items = array(\n 'plu' => $results['values'][5],\n 'articleGroup' => $articleName,\n 'name' => $results['values'][7],\n 'price' => $results['values'][8]/100,\n 'quantity' => $results['values'][9],\n 'totalPrice' => $results['values'][10]/100);\n\n $responseJson= array(\n 'invoice' => $this->jsonBody['number'],\n 'date' => $this->jsonBody['date'],\n 'items' => [$items]);\n \n $responseJson = json_encode($responseJson);\n //print_r($responseJson);\n\n \n //initialized curl\n $ch = curl_init($this->toSendURL);\n\n curl_setopt($ch, CURLOPT_POSTFIELDS, $responseJson);\n curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type:application/json'));\n // Return response instead of outputting\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n $result = curl_exec($ch);\n //if success the result will be empty\n if($result !== false){\n $response = $this->badGatwayResponse();\n return $response;\n \n }\n else{\n $response['status_code_header'] = 'HTTP/1.1 200 OK';\n $response['body'] = $responseJson;\n //$response['body'] = $result;\n return $response;\n }\n\n\n // Close cURL resource\n curl_close($ch);\n \n \n }\n\n \n }", "public function transform($items)\n {\n if (null === $items) {\n return \"\";\n }\n\n $toJson = $this->recursiveTransform($items, true);\n\n return json_encode($toJson);\n }", "public function prepare_items() {\n\n\t\t\t$columns = $this->get_columns();\n\n\t\t\t$hidden = array(); // No hidden columns\n\n\t\t\t$sortable = $this->get_sortable_columns();\n\n\t\t\t$this->_column_headers = array( $columns, $hidden, $sortable );\n\n\n\n\t\t\t// Process bulk action\n\n\t\t\t$this->process_bulk_action();\n\n\n\n\t\t\t$current_page = $this->get_pagenum();\n\n\t\t\t$total_items = self::record_count();\n\n\n\n\t\t\t$this->items = self::get_topics( 20, $current_page );\n\n\n\n\t\t\t$this->set_pagination_args( [\n\n\t\t\t\t'total_items' => $total_items,\n\n\t\t\t\t'per_page' => 20\n\n\t\t\t] );\n\n\t\t}", "public function prepare_item_for_response( $item, $request ) {\n\t\t$data = $this->add_additional_fields_to_object( $item, $request );\n\t\t$data = $this->filter_response_by_context( $data, 'view' );\n\t\t$response = rest_ensure_response( $data );\n\n\t\t/**\n\t\t * Filter the list returned from the API.\n\t\t *\n\t\t * @param WP_REST_Response $response The response object.\n\t\t * @param array $item The original item.\n\t\t * @param WP_REST_Request $request Request used to generate the response.\n\t\t */\n\t\treturn apply_filters( 'woocommerce_rest_prepare_reports_import', $response, $item, $request );\n\t}", "public function toArray($request)\n {\n // return parent::toArray($request);\n return $this->collection->transform(function ($item){\n // return $item->only(['field','name']);\n return new ItemResource($item);\n });\n }", "public function prepare_items()\n {\n /* 20 seems like a good number to show */\n $per_page = 10;\n $columns = $this->get_columns();\n $hidden = array();\n $sortable = $this->get_sortable_columns();\n\n $this->_column_headers = array($columns, $hidden, $sortable);\n\n /* Parameters that are used to order the results table */\n $orderby = !empty($_GET[\"orderby\"]) ? mysql_real_escape_string($_GET[\"orderby\"]) : 'id';\n $order = !empty($_GET[\"order\"]) ? mysql_real_escape_string($_GET[\"order\"]) : 'ASC';\n\n $current_page = $this->get_pagenum();\n $total_items = count($this->items);\n if ($total_items > 0) {\n\n $this->items = array_slice($this->items,(($current_page-1)*$per_page),$per_page);\n\n $this->set_pagination_args( array(\n 'total_items' => $total_items, //WE have to calculate the total number of items\n 'per_page' => $per_page, //WE have to determine how many items to show on a page\n 'total_pages' => ceil($total_items/$per_page) //WE have to calculate the total number of pages\n ) );\n }\n }", "function parsed_items_to_raw(Content $content) {\n $raw_items = $this->_rebuild_raw_items($content->parsed_items);\n $raw_title = $content->raw_title;\n return $this->_rebuild_raw($raw_items, $raw_title);\n }", "function prepareFields() {\r\n\t\t$data = array_keys($this->modx->getFieldMeta('msProductData'));\r\n\t\tforeach ($this->resourceArray as $k => $v) {\r\n\t\t\tif (is_array($v) && in_array($k, $data)) {\r\n\t\t\t\t$tmp = $this->resourceArray[$k];\r\n\t\t\t\t$this->resourceArray[$k] = array();\r\n\t\t\t\tforeach ($tmp as $v2) {\r\n\t\t\t\t\tif (!empty($v2)) {\r\n\t\t\t\t\t\t$this->resourceArray[$k][] = array('value' => $v2);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (empty($this->resourceArray['vendor'])) {\r\n\t\t\t$this->resourceArray['vendor'] = '';\r\n\t\t}\r\n\t}", "protected function _prepareFromResourceData()\n {\n if (count($this->_items) == 0) {\n $i = 0;\n $charities = array();\n \n foreach ($this->_resourceCollection as $item) {\n $item->setData('from',$this->_from);\n $item->setData('to',$this->_to);\n $charities[$item->getData('charity_id')][] = $item;\n }\n foreach($charities as $id => $charity)\n {\n $item = $this->getItemModel()->fromCharityData($charity);\n foreach($item->getData() as $idx => $value)\n {\n $this->getTotals()->setData($idx,$this->getTotals()->getData($idx) + $value);\n }\n $this->_items[] = $item;\n }\n }\n \n return $this;\n }", "function prepare_items() {\n\t\t\n\t\t// Get how many records per page to show\n\t\t$per_page\t= $this->per_page;\n\t\t\n\t\t// Get All, Hidden, Sortable columns\n\t\t$columns\t= $this->get_columns();\n\t\t$hidden \t= array();\n\t\t$sortable \t= $this->get_sortable_columns();\n\t\t\n\t\t// Get final column header\n\t\t$this->_column_headers = array($columns, $hidden, $sortable);\n\t\t\n\t\t// Get Data of particular page\n\t\t$data_res \t= $this->bdpp_display_styles_list();\n\t\t$data \t\t= $data_res['data'];\n\t\t\n\t\t// Get current page number\n\t\t$current_page = $this->get_pagenum();\n\t\t\n\t\t// Get total count\n\t\t$total_items = $data_res['total'];\n\t\t\n\t\t// Get page items\n\t\t$this->items = $data;\n\t\t\n\t\t// Register pagination options and calculations.\n\t\t$this->set_pagination_args( array(\n\t\t\t\t\t\t\t\t\t\t\t'total_items' => $total_items, // Calculate the total number of items\n\t\t\t\t\t\t\t\t\t\t\t'per_page' => $per_page, // Determine how many items to show on a page\n\t\t\t\t\t\t\t\t\t\t\t'total_pages' => ceil($total_items / $per_page)\t// Calculate the total number of pages\n\t\t\t\t\t\t\t\t\t\t));\n\t}", "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}", "public function prepare_items() {\n\n\t\t// Roll out each part.\n\t\t$columns = $this->get_columns();\n\t\t$hidden = $this->get_hidden_columns();\n\t\t$sortable = $this->get_sortable_columns();\n\t\t$dataset = $this->table_data();\n\n\t\t// Check for the action key value to filter.\n\t\tif ( ! empty( $_REQUEST['wbr-review-filter'] ) ) { // WPCS: CSRF ok.\n\t\t\t$dataset = $this->maybe_filter_dataset( $dataset );\n\t\t}\n\n\t\t// Handle our sorting.\n\t\tusort( $dataset, array( $this, 'sort_data' ) );\n\n\t\t// Load up the pagination settings.\n\t\t$paginate = 20;\n\t\t$item_count = count( $dataset );\n\t\t$current = $this->get_pagenum();\n\n\t\t// Set my pagination args.\n\t\t$this->set_pagination_args( array(\n\t\t\t'total_items' => $item_count,\n\t\t\t'per_page' => $paginate,\n\t\t\t'total_pages' => ceil( $item_count / $paginate ),\n\t\t));\n\n\t\t// Slice up our dataset.\n\t\t$dataset = array_slice( $dataset, ( ( $current - 1 ) * $paginate ), $paginate );\n\n\t\t// Do the column headers.\n\t\t$this->_column_headers = array( $columns, $hidden, $sortable );\n\n\t\t// Make sure we have the single action running.\n\t\t$this->process_single_action();\n\n\t\t// Make sure we have the bulk action running.\n\t\t$this->process_bulk_action();\n\n\t\t// Make sure we have the status change.\n\t\t$this->process_status_change();\n\n\t\t// And the result.\n\t\t$this->items = $dataset;\n\t}", "public function items()\n {\n // TODO: make this a view helper.\n foreach ($this->items as $item) {\n foreach ($item['methods'] as $k => $v) {\n $item['methods'][$k]['method'] = $k;\n $item['methods'][] = $item['methods'][$k];\n unset($item['methods'][$k]);\n }\n\n // $item['path'] = isset($item['path']) ? urlencode($item['path']) : null;\n\n $this->items[] = $item;\n }\n\n return $this->items;\n }", "public function prepare_items()\n {\n $per_page = 100;\n\n // define column headers\n $columns = $this->get_columns();\n $hidden = [];\n $sortable = $this->get_sortable_columns();\n $this->_column_headers = [$columns, $hidden, $sortable];\n\n // retrieve data\n $data = \\Podlove\\Model\\EpisodeAsset::all('ORDER BY position ASC');\n\n // get current page\n $current_page = $this->get_pagenum();\n // get total items\n $total_items = count($data);\n // extrage page for current page only\n $data = array_slice($data, ($current_page - 1) * $per_page, $per_page);\n // add items to table\n $this->items = $data;\n\n // register pagination options & calculations\n $this->set_pagination_args([\n 'total_items' => $total_items,\n 'per_page' => $per_page,\n 'total_pages' => ceil($total_items / $per_page),\n ]);\n }", "public function toArray($request)\n {\n return [\n 'id' => $this->id,\n 'order' => $this->order,\n 'set_time' => $this->set_time,\n 'place' => new PlaceResource($this->place),\n 'price' => $this->price,\n 'final_price' => $this->final_price,\n 'number' => $this->number,\n 'final_number' => $this->final_number,\n 'finish_number' => $this->finish_number,\n 'sitter' => $this->sitter,\n 'status' => $this->status,\n 'finish' => $this->finish,\n 'state' => $this->state,\n 'package' => $this->package->map(function ($item){\n $item->menu_name = Menu::where('id', $item->menu_id)->value('name');\n $item->category = Menu::where('id', $item->menu_id)->value('category');\n if ($item->category == 'p') {\n $item->details = $item->where('pid', $item->id)->get()->map(function ($item, $key){\n if ($item->menus_id) {\n $item->menus_name = Menu::where('id', $item->menus_id)->value('name');\n }\n\n if (!empty(json_decode($item->tags_id,true))) {\n foreach (json_decode($item->tags_id,true) as $k => $value) {\n $name[] = Tag::where('id', $value)->value('name');\n }\n $item->tags_name = $name;\n }\n return $item;\n });\n }\n\n if (!empty(json_decode($item->tags_id,true))) {\n foreach (json_decode($item->tags_id,true) as $k => $value) {\n $name[] = Tag::where('id', $value)->value('name');\n }\n $item->tags_name = $name;\n }\n return $item;\n }),\n 'clean' => $this->clean,\n 'place_name' => $this->place_name,\n 'paid_at' => $this->paid_at?$this->paid_at->format('Y/m/d H:i:s'):'',\n 'created_at' => $this->created_at?$this->created_at->format('Y/m/d H:i:s'):'',\n 'updated_at' => $this->updated_at?$this->updated_at->format('Y/m/d H:i:s'):'',\n ];\n }", "public function format_items($format, $items, $fields)\n {\n \\WP_CLI\\Utils\\format_items($format, $items, $fields);\n }", "private function prepareMethodDetails($item)\n\t{\n\t\tif(! array_key_exists('authentication_required', $item)) {\n\t\t\t$item['authentication_required'] = $this->authenticationRequired;\n\t\t}\n\t\treturn $item;\n\t}", "public function toArray($request)\n {\n return $this->collection->map(function($items){\n\n return [\n 'country_id'=>$items['origin'],\n 'title'=>$items['title'],\n 'details'=>str_replace('&nbsp;',' ',strip_tags($items['details'])),\n 'imageUrl'=>'https://clicksafar.com/'.$items['image']\n ];\n\n });\n }", "private function getItemData($items) {\n $items = explode( \",\", $items);\n $data = array();\n foreach ( $items as $item ) {\n if (trim($item) != \"\") {\n $temp = json_decode(\n DB::table('tbl_ser_item_price')->where(\"item_id\", $item)->get(),\n true\n );\n $id = encrypt($temp[0]['item_id']);\n array_push($data, array(\n \"iID\" => $id,\n \"iName\" => $temp[0]['item_name'],\n \"iDes\" => $temp[0]['item_des'],\n \"iPrice\" => $temp[0]['item_price'],\n ));\n }\n\n }\n return $data;\n }", "public function transformCollection(array $items){\n return array_map([$this,'transform'], $items->toArray());\n }", "protected function prepareJsonStructure(){\n\t\t\n\t}", "protected function responseToItems($response)\n {\n $array = array();\n foreach($response->product as $current) {\n\n if( !isset($current->name) || \n !isset($current->regularPrice) || \n !isset($current->url) || \n !isset($current->productId) ) \n {\n //If any of the required info is not present skip this item.\n continue;\n }\n\n $item = new Item();\n $item->setName((string)$current->name);\n $item->setPrice(intval((string)$current->regularPrice), Item::CURRENCY_UNIT_DOLLAR);\n $item->setLink((string)$current->url);\n $item->setvendorId((string)$current->productId);\n \n if(isset($current->thumbnailImage))\n {\n $item->setSmallImage((string)$current->thumbnailImage);\n }\n \n if(isset($current->image))\n {\n $item->setMediumImage((string)$current->image);\n }\n \n $array[] = $item;\n }\n\n return $array;\n\n }", "public function transform(Item $model)\n {\n return [\n 'id' => (int) $model->id,\n 'img' => $model->img,\n 'name' => $model->name,\n 'prices' => $model->prices_data,\n 'category' => $model->category->name,\n 'title' => $model->title,\n 'description' => $model->description\n ];\n }", "public abstract function prepare_item($id, array $fields);", "protected function boot(&$items = [])\n {\n if (!empty($items)) {\n foreach ($items as $_key => $_value) {\n if ($_value !== '0000-00-00' && $_value !== '00/00/00') {\n if ('date' === strtolower(substr($_key, -4))) {\n $items[$_key] = Carbon::parse($_value)->toIso8601String();\n }\n }\n }\n }\n\n return $items;\n }", "private function prepareArray()\n {\n $tempItems = trim(Input::get('items'));\n $items = explode(PHP_EOL, $tempItems);\n $badItemsToTest = ['shp#', 'totals', 'total', 'shipment', 'shipment#', ''];\n\n $finalArray = array();\n\n foreach ($items as $item) {\n\n if (in_array(strtolower(trim($item)), $badItemsToTest) == false) {\n array_push($finalArray, trim($item));\n }\n\n }\n return $finalArray;\n\n\n }", "public function transform(Collectiveinvoice $item)\n {\n return [\n 'id' => (int)$item->id,\n 'status' => (int)$item->status,\n 'title' => (string)$item->title,\n 'number' => (string)$item->number,\n 'deliverycosts' => (float)$item->deliverycosts,\n 'comment' => (string)$item->comment,\n 'client' => (int)$item->client,\n 'businesscontact' => (int)$item->businesscontact,\n 'deliveryterm' => (int)$item->deliveryterm,\n 'paymentterm' => (int)$item->paymentterm,\n 'deliveryaddress' => (int)$item->deliveryaddress,\n 'invoiceaddress' => (int)$item->invoiceaddress,\n 'crtdate' => $item->crtdate,\n 'crtuser' => $item->crtuser,\n 'uptdate' => $item->uptdate,\n 'uptuser' => $item->uptuser,\n 'intent' => (string)$item->intent,\n 'intern_contactperson' => (int)$item->intern_contactperson,\n 'cust_message' => (string)$item->cust_message,\n 'cust_sign' => (string)$item->cust_sign,\n 'custContactperson' => (int)$item->custContactperson,\n 'needs_planning' => (int)$item->needs_planning,\n 'deliverydate' => $item->deliverydate,\n 'rdyfordispatch' => (int)$item->rdyfordispatch,\n 'ext_comment' => (string)$item->ext_comment,\n 'thirdparty' => (int)$item->thirdparty,\n 'thirdpartycomment' => (string)$item->thirdpartycomment,\n 'ticket' => (int)$item->ticket,\n 'offer_header' => (string)$item->offer_header,\n 'offer_footer' => (string)$item->offer_footer,\n 'offerconfirm_header' => (string)$item->offerconfirm_header,\n 'offerconfirm_footer' => (string)$item->offerconfirm_footer,\n 'factory_header' => (string)$item->factory_header,\n 'factory_footer' => (string)$item->factory_footer,\n 'delivery_header' => (string)$item->delivery_header,\n 'delivery_footer' => (string)$item->delivery_footer,\n 'invoice_header' => (string)$item->invoice_header,\n 'invoice_footer' => (string)$item->invoice_footer,\n 'revert_header' => (string)$item->revert_header,\n 'revert_footer' => (string)$item->revert_footer,\n ];\n\n }", "public function prepare_items() {\n\n\t\t$this->_column_headers = array(\n\t\t\t$this->get_columns(),\n\t\t\tarray(),\n\t\t\t$this->get_sortable_columns(),\n\t\t\t'product_id',\n\t\t);\n\n\t\t$this->set_pagination_args( array(\n\t\t\t'total_items' => Tux_SU_Licenses_List::record_count(),\n\t\t\t'per_page' => 20,\n\t\t) );\n\n\t\tif ( isset( $_GET['orderby'] ) && ( in_array( $_GET['orderby'], array( 'created', 'modified', 'user_id', 'product_id', ) ) ) ) {\n\n\t\t\t$order = $_GET['orderby'];\n\n\t\t} else {\n\n\t\t\t$order = 'modified';\n\n\t\t}\n\n\t\tif ( isset( $_GET['order'] ) && ( 'asc' === $_GET['order'] || 'desc' === $_GET['order'] ) ) {\n\n\t\t\t$order .= ' ' . $_GET['order'];\n\n\t\t} else {\n\n\t\t\t$order .= ' desc';\n\n\t\t}\n\n\t\tif ( ! empty( $_GET['s'] ) ) {\n\n\t\t\t$items = tux_su_get_db( array(\n\t\t\t\t'user_id' => $_GET['s'],\n\t\t\t\t'product_id' => $_GET['s'],\n\t\t\t\t'info' => $_GET['s'],\n\t\t\t\t'type' => 'license',\n\t\t\t\t'order' => $order,\n\t\t\t\t'limit' => 20,\n\t\t\t\t'offset' => ( $this->get_pagenum() - 1 ) * 20,\n\t\t\t\t'search' => true,\n\t\t\t) );\n\n\t\t} else {\n\n\t\t\tif ( isset( $_GET['product_id'] ) ) {\n\n\t\t\t\t$items = tux_su_get_db( array(\n\t\t\t\t\t'product_id' => $_GET['product_id'],\n\t\t\t\t\t'type' => 'license',\n\t\t\t\t\t'order' => $order,\n\t\t\t\t\t'limit' => 20,\n\t\t\t\t\t'offset' => ( $this->get_pagenum() - 1 ) * 20,\n\t\t\t\t) );\n\n\n\t\t\t} else {\n\n\t\t\t\t$items = tux_su_get_db( array(\n\t\t\t\t\t'type' => 'license',\n\t\t\t\t\t'order' => $order,\n\t\t\t\t\t'limit' => 20,\n\t\t\t\t\t'offset' => ( $this->get_pagenum() - 1 ) * 20,\n\t\t\t\t) );\n\n\t\t\t}\n\t\t} // End if().\n\n\t\t$product_ids = array();\n\n\t\tforeach ( $items as $item ) {\n\n\t\t\tif ( ! empty( $item['product_id'] ) ) {\n\n\t\t\t\t$product_ids[] = $item['product_id'];\n\n\t\t\t}\n\t\t}\n\n\t\t$license_rules = array();\n\n\t\tif ( ! empty( $product_ids ) ) {\n\n\t\t\t$license_rules = tux_su_get_db( array(\n\t\t\t\t'product_id' => $product_ids,\n\t\t\t\t'type' => 'rule',\n\t\t\t) );\n\n\t\t}\n\n\t\tforeach ( $items as $item ) {\n\n\t\t\t$info = array();\n\n\t\t\tif ( isset( $item['info'] ) ) {\n\n\t\t\t\t$info = maybe_unserialize( $item['info'] );\n\n\t\t\t}\n\n\t\t\t$product_name = '';\n\t\t\t$activation_limit = 0;\n\t\t\t$expiry = 0;\n\n\t\t\tforeach ( $license_rules as $license_rule ) {\n\n\t\t\t\tif ( $license_rule['product_id'] === $item['product_id'] ) {\n\n\t\t\t\t\t$license_rule['info'] = maybe_unserialize( $license_rule['info'] );\n\n\t\t\t\t\tif ( isset( $license_rule['info']['product_name'] ) ) {\n\n\t\t\t\t\t\t$product_name = $license_rule['info']['product_name'];\n\n\t\t\t\t\t}\n\n\t\t\t\t\tif ( ! empty( $info['child_id'] ) ) {\n\n\t\t\t\t\t\tif ( ! empty( $license_rule['info']['children'][ $info['child_id'] ]['name'] ) ) {\n\n\t\t\t\t\t\t\t$product_name .= ' ' . $license_rule['info']['children'][ $info['child_id'] ]['name'];\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif ( isset( $license_rule['info']['children'][ $info['child_id'] ]['activation_limit'] ) ) {\n\n\t\t\t\t\t\t\t$activation_limit = $license_rule['info']['children'][ $info['child_id'] ]['activation_limit'];\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif ( isset( $license_rule['info']['children'][ $info['child_id'] ]['expiry'] ) ) {\n\n\t\t\t\t\t\t\t$expiry = $license_rule['info']['children'][ $info['child_id'] ]['expiry'];\n\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\tif ( isset( $license_rule['info']['activation_limit'] ) ) {\n\n\t\t\t\t\t\t\t$activation_limit = $license_rule['info']['activation_limit'];\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif ( isset( $license_rule['info']['expiry'] ) ) {\n\n\t\t\t\t\t\t\t$expiry = $license_rule['info']['expiry'];\n\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tbreak;\n\n\t\t\t\t} // End if().\n\t\t\t} // End foreach().\n\n\t\t\t$this->items[] = array(\n\t\t\t\t'id' => isset( $item['id'] ) ? $item['id'] : '',\n\t\t\t\t'user_id' => isset( $item['user_id'] ) ? $item['user_id'] : '',\n\t\t\t\t'user_name' => isset( $info['user_name'] ) ? $info['user_name'] : '',\n\t\t\t\t'product_name' => $product_name,\n\t\t\t\t'product_id' => isset( $item['product_id'] ) ? $item['product_id'] : '',\n\t\t\t\t'order_id' => isset( $info['order_id'] ) ? $info['order_id'] : '',\n\t\t\t\t'activations' => empty( $activation_limit ) ? __( 'unlimited', 'tuxedo-software-updater' ) : count( isset( $info['activations'] ) ? $info['activations'] : array() ) . ' / ' . $activation_limit,\n\t\t\t\t'expires' => isset( $item['created'] ) ? ( empty( $expiry ) ? __( 'never', 'tuxedo-software-updater' ) : date( 'M j, Y', strtotime( $item['created'] . ' + ' . $expiry . ' days' ) ) ) : __( 'error', 'tuxedo-software-updater' ),\n\t\t\t\t'created' => isset( $item['created'] ) ? date( 'M j, Y', strtotime( $item['created'] ) ) : '',\n\t\t\t\t'modified' => isset( $item['modified'] ) ? date( 'M j, Y', strtotime( $item['modified'] ) ) . '<br>' . date( 'g:i a', strtotime( $item['modified'] ) ) : '',\n\t\t\t);\n\n\t\t}\n\n\t}", "public function toArray($request)\n {\n //return parent::toArray($request);\n if ($this->itemable_type == 'weapon') {\n return [\n 'id' => $this->id,\n 'name' => $this->itemable->name,\n 'name_ru' => $this->itemable->name_ru,\n 'itemable_type' => $this->itemable_type,\n 'itemable_id' => $this->itemable_id,\n 'icon' => $this->itemable->icon,\n 'p_atk' => $this->itemable->p_atk,\n 'slot' => $this->slot,\n 'type' => $this->itemable->type,\n 'price' => $this->price\n ];\n }\n elseif ($this->itemable_type == 'armor') {\n return [\n 'id' => $this->id,\n 'name' => $this->itemable->name,\n 'name_ru' => $this->itemable->name_ru,\n 'itemable_type' => $this->itemable_type,\n 'itemable_id' => $this->itemable_id,\n 'icon' => $this->itemable->icon,\n 'p_def' => $this->itemable->p_def,\n 'slot' => $this->slot,\n 'type' => $this->itemable->type,\n 'price' => $this->price\n ];\n }\n elseif ($this->itemable_type == 'jewellery') {\n return [\n 'id' => $this->id,\n 'name' => $this->itemable->name,\n 'name_ru' => $this->itemable->name_ru,\n 'itemable_type' => $this->itemable_type,\n 'itemable_id' => $this->itemable_id,\n 'icon' => $this->itemable->icon,\n 'm_def' => $this->itemable->m_def,\n 'slot' => $this->slot,\n 'type' => $this->itemable->type,\n 'price' => $this->price\n ];\n }\n elseif ($this->itemable_type == 'etc') {\n return [\n 'id' => $this->itemable->id,\n 'name' => $this->itemable->name,\n 'name_ru' => $this->itemable->name_ru,\n 'itemable_type' => $this->itemable_type,\n 'itemable_id' => $this->itemable_id,\n 'icon' => $this->itemable->icon,\n 'slot' => $this->slot,\n 'count' => $this->count,\n 'price' => $this->price\n ];\n }\n\n }", "private function prepare($data)\n {\n foreach ($data as $code => &$item) {\n $item = $this->prepareItem($code, $item);\n }\n return $data;\n }", "protected function _getItems($items)\n {\n try {\n $data = array();\n $configurableSkus = array();\n\n foreach($items as $item) {\n $_item = array();\n $_item['vars'] = array();\n if ($item->getProductType() == 'configurable') {\n $parentIds[] = $item->getParentItemId();\n $options = $item->getProduct()->getTypeInstance(true)->getOrderOptions($item->getProduct());\n $_item['id'] = $options['simple_sku'];\n $_item['title'] = $options['simple_name'];\n $_item['vars'] = $this->_getVars($options);\n if($item->getProduct()->getSpecialPrice())\n {\n $_item['vars']['special_price']=Mage::helper('sailthruemail')->formatAmount($item->getProduct()->getSpecialPrice());\n } \n $configurableSkus[] = $options['simple_sku'];\n } elseif (!in_array($item->getSku(),$configurableSkus) && $item->getProductType() != 'bundle') {\n $_item['id'] = $item->getSku();\n $_item['title'] = $item->getName();\n } else {\n $_item['id'] = null;\n }\n\n if ($_item['id']) {\n if (get_class($item) == 'Mage_Sales_Model_Order_Item' ) {\n $_item['qty'] = intval($item->getQtyOrdered());\n } else {\n $_item['qty'] = intval($item->getQty());\n }\n\n $_item['url'] = str_replace('admin.','www.',$item->getProduct()->getProductUrl());\n $_item['price'] = Mage::helper('sailthruemail')->formatAmount($item->getProduct()->getPrice());\n\n // Uncomment to pass Images as a var. May require reconfiguring per Magento Product Configurations.\n /* if (!isset($_item['vars']['image'])) {\n if ($item->getProduct()->hasImage()) {\n $_item['vars']['image'] = $item->getProduct()->getImageUrl();\n } elseif ($item->getProduct()->hasSmallImage()) {\n $_item['vars']['image'] = $item->getProduct()->getSmallImageUrl(300,300);\n }\n }*/\n if (!isset($_item['vars']['image'])) {\n if ($item->getProduct()->hasImage()) {\n $pImage = $item->getProduct()->getImage();\n $pImageUrl = \"\";\n $pImageUrl = Mage::helper('sailthruemail')->getSailthruProductImage($pImage);\n if(empty($pImageUrl)){\n $pImageUrl = $item->getProduct()->getImageUrl();\n }\n $_item['vars']['image'] = $pImageUrl;\n\n } elseif ($item->getProduct()->hasSmallImage()) {\n $pSmallImage = $item->getProduct()->getSmallImage();\n $pSmallImageUrl = \"\";\n $pSmallImageUrl = Mage::helper('sailthruemail')->getSailthruProductImage($pSmallImage,'300x300');\n if(empty($pSmallImageUrl)){\n $pSmallImageUrl= $item->getProduct()->getSmallImageUrl(300, 300);\n }\n $_item['vars']['image']=$pSmallImageUrl;\n\n }\n } \n if ($tags = $this->_getTags($item->getProductId())) {\n $_item['tags'] = $tags;\n }\n\n $data[] = $_item;\n }\n }\n return $data;\n } catch (Exception $e) {\n Mage::logException($e);\n return false;\n }\n }", "public function transform($item)\n {\n return [\n 'attribute' => $item->attribute,\n ];\n }", "function ting_ting_collection_convert_list() {\n return array(\n 'title_full' => t('Collection title and author names'),\n //'title' => t('Collection title'),\n );\n}", "public function encodeItems(array $items): string;", "public function prepare_items(){\n $columns = $this->get_columns();\n $hidden = $this->get_hidden_columns();\n $sortable = $this->get_sortable_columns();\n $action = $this->current_action();\n\n $data = $this->table_data();\n usort( $data, array( &$this, 'sort_data' ) );\n\n $perPage = 10;\n $currentPage = $this->get_pagenum();\n $totalItems = count($data);\n\n $this->set_pagination_args( array(\n 'total_items' => $totalItems,\n 'per_page' => $perPage\n ) );\n\n $data = array_slice($data,(($currentPage-1)*$perPage),$perPage);\n $this->_column_headers = array($columns, $hidden, $sortable);\n\n $search = ( isset( $_REQUEST['s'] ) ) ? $_REQUEST['s'] : false;\n if(!empty($search)){\n global $wpdb;\n \n try {\n $search = sanitize_text_field( $search );\n $data = $wpdb->get_results(\"SELECT * FROM {$wpdb->prefix}lic_activations WHERE UserName LIKE '%$search%'\", ARRAY_A);\n if(!is_wp_error( $wpdb )){\n $this->items = $data;\n }\n } catch (\\Throwable $th) {\n //throw $th;\n }\n\n }else{\n $this->items = $data;\n }\n \n }", "function demos_convert_list() {\n return array(\n 'item1' => t('Item1'),\n 'item2' => t('Item2'),\n 'description' => t('Description'),\n );\n}", "private function _rebuild_raw(Array $raw_items, $raw_title = '') {\n $raw = ( ! empty($raw_title)) ? $raw_title . \"\\n\\n\" : '';\n $raw .= implode(\"\\n\", $raw_items);\n return $raw;\n }", "public function prepare_items()\n\t\t {\n\t\t // How many records are to be shown on page\n\t\t\t\t$per_page = 20;\n\n\t\t\t\t// Columns array to be displayed\n\t\t $columns = $this->get_columns();\n\n\t\t // Columns array to be hidden\n\t\t $hidden = array();\n\n\t\t // List of sortable columns\n\t\t $sortable = $this->get_sortable_columns();\n\t\t \n\t\t // Create the array that is used by the class\n\t\t $this->_column_headers = array($columns, $hidden, $sortable);\n\t\t \n\t\t // Process bulk actions\n\t\t $this->process_bulk_action();\n\n\t\t \t// Current page\n\t\t $current_page = $this->get_pagenum();\n\n\t\t // Get contests\n\t\t $data = $this->getContests();\n\t\t \n\t\t // Total number of items\n\t\t $total_items = count($data);\n\t\t \n\t\t // Slice data for pagination\n\t\t $data = array_slice($data, (($current_page-1)*$per_page), $per_page);\n\t\t \n\t\t // Send processed data to the items property to be used\n\t\t $this->items = $data;\n\t\t \n\t\t // Register pagination options & calculations\n\t\t $this->set_pagination_args(array(\n\t\t 'total_items' => $total_items, //WE have to calculate the total number of items\n\t\t 'per_page' => $per_page, //WE have to determine how many items to show on a page\n\t\t 'total_pages' => ceil($total_items/$per_page) //WE have to calculate the total number of pages\n\t\t ));\n\t\t }", "public function prepare($data)\n {\n $response = array('name' => $data['title']);\n \n if (!empty($data['short_description'])) {\n $response['short_description'] = $data['short_description'];\n }\n \n if (!empty($data['description'])) {\n $response['description'] = $data['description'];\n }\n \n if (!empty($data['categories'])) {\n $categories = array();\n foreach ($data['categories'] as $categoryId) {\n $categories[] = array('id' => $categoryId);\n }\n \n $response['categories'] = $categories;\n }\n \n $images = array(); $position = 0;\n foreach ($data['images'] as $image) {\n $images[] = array(\n 'src' => $image,\n 'position' => $position++\n );\n }\n $response['images'] = $images;\n\n \n $isVariable = (!empty($data['variations']));\n $response['type'] = ($isVariable) ? 'variable' : 'simple';\n \n if (!$isVariable) {\n $response['regular_price'] = $data['price_low'];\n if (!empty($data['special_price_low'])) {\n $response['sale_price'] = $data['special_price_low'];\n }\n }\n\n $attributes = $variationAttributeTitles = array(); $position = 0;\n foreach ($data['attributes'] as $attribute) {\n $attributes[] = array(\n 'name' => $attribute['title'],\n 'position' => $position++,\n 'visible' => true,\n 'options' => explode('|', $attribute['value']),\n 'variation' => ($attribute['is_variation'])\n );\n \n if ($attribute['is_variation']) {\n $variationAttributeTitles[] = $attribute['title'];\n }\n }\n $response['attributes'] = $attributes;\n \n if ($isVariable) {\n $variations = array();\n foreach ($data['variations'] as $variation) {\n $newVariation = array(\n 'regular_price' => $variation['advertised'],\n 'image' => array(\n array(\n 'src' => $variation['image'],\n 'position' => 0\n )\n )\n );\n \n if (!empty($variation['final_price'])) {\n $newVariation['sale_price'] = $variation['final_price'];\n }\n \n $attributes = array(); \n $attributeValues = explode('|', $variation['name']);\n foreach ($variationAttributeTitles as $key => $variationAttributeTitle) {\n $attributes[] = array(\n 'name' => $variationAttributeTitle,\n 'option' => $attributeValues[$key]\n );\n }\n \n $newVariation['attributes'] = $attributes;\n $variations[] = $newVariation;\n }\n \n $response['variations'] = $variations;\n }\n \n return $response;\n }", "function _buildItemParams($group_id, $perm_item_id, $title, $description, $status, $type, $permissions, $metadata, $owner, $create_date, $update_date) {\n $params = array();\n \n if ($title !== null) $params['item']['title'] = $title;\n if ($description !== null) $params['item']['description'] = $description;\n if ($type !== null) $params['item']['item_type'] = $type;\n if ($status !== null) $params['item']['status'] = _get_status_value($status);\n if ($create_date !== null) $params['item']['create_date'] = $create_date;\n if ($update_date !== null) $params['item']['update_date'] = $update_date;\n if ($owner !== null) $params['item']['owner'] = $owner;\n if ($permissions !== null) $params['permissions'] = _get_permissions_as_array($group_id, $perm_item_id, $permissions);\n if ($metadata !== null) $params['metadata'] = _get_metadata_as_array($metadata);\n \n return $params;\n}", "function prepare_items()\n {\n global $wpdb,$current_user;\n\n $table_name = $wpdb->prefix.WSPRA_DB.'api_log'; // do not forget about tables prefix\n // $per_page = get_user_meta($current_user->ID, 'messages_per_page', true); // constant, how much records will be shown per page\n \n $columns = $this->get_columns();\n $hidden = $this->get_hidden_columns();\n $sortable = $this->get_sortable_columns();\n \n // here we configure table headers, defined in our methods\n $this->_column_headers = array($columns, $hidden, $sortable);\n \n // [OPTIONAL] process bulk action if any\n $this->process_bulk_action();\n \n // will be used in pagination settings\n $total_items = $wpdb->get_var(\"SELECT COUNT(id) FROM $table_name\");\n \n // prepare query params, as usual current page, order by and order direction\n\n $paged = isset($_REQUEST['paged']) ? max(0, intval($_REQUEST['paged']) - 1) : 0;\n\n $orderby = (isset($_REQUEST['orderby']) && in_array($_REQUEST['orderby'], array_keys($this->get_sortable_columns()))) ? $_REQUEST['orderby'] : 'id';\n\n $order = (isset($_REQUEST['order']) && in_array($_REQUEST['order'], array('asc', 'desc'))) ? $_REQUEST['order'] : 'desc';\n \n $sql = \"SELECT * FROM $table_name ORDER BY id desc LIMIT %d OFFSET %d \";\n $per_page = 20;\n $this->items = $wpdb->get_results($wpdb->prepare($sql, 20, $paged), ARRAY_A);\n // echo '<pre>'; print_r( $this->items); echo '</pre>'; \n // [REQUIRED] configure pagination\n\n $this->set_pagination_args(array(\n\n 'total_items' => $total_items, // total items defined above\n 'per_page' => 20, // per page constant defined at top of method\n 'total_pages' => ceil($total_items / $per_page) // calculate pages count\n ));\n }" ]
[ "0.62497866", "0.620974", "0.6208165", "0.6207067", "0.6207067", "0.6207067", "0.6178721", "0.60258514", "0.60104376", "0.59956044", "0.5959608", "0.59489644", "0.58541507", "0.58541507", "0.58541507", "0.58541507", "0.58541507", "0.58541507", "0.58541507", "0.58541507", "0.58541507", "0.58541507", "0.58541507", "0.58541507", "0.58541507", "0.58541507", "0.58541507", "0.58541507", "0.58541507", "0.58541507", "0.58541507", "0.58541507", "0.5809694", "0.58033514", "0.5793289", "0.5791511", "0.57829344", "0.5760695", "0.5742014", "0.569586", "0.56862783", "0.566109", "0.56448084", "0.5642467", "0.5627306", "0.5609522", "0.5605985", "0.55946076", "0.5594258", "0.5577167", "0.5569327", "0.55432916", "0.5501108", "0.54934186", "0.54829514", "0.54813236", "0.5481003", "0.54767436", "0.54634273", "0.54566336", "0.54537547", "0.5428761", "0.5426756", "0.5419556", "0.54094934", "0.539763", "0.5392856", "0.53747857", "0.5369552", "0.5356068", "0.5346817", "0.5339908", "0.53285253", "0.53265244", "0.53259313", "0.5312095", "0.5311957", "0.53056794", "0.52941334", "0.5281371", "0.52809745", "0.52707946", "0.52557737", "0.5251461", "0.52514464", "0.52486825", "0.5240228", "0.5238645", "0.52361524", "0.5223551", "0.5216802", "0.52103883", "0.5208243", "0.5200137", "0.51855266", "0.51850724", "0.51816803", "0.51803327", "0.5171157", "0.51678485", "0.5164602" ]
0.0
-1
Get global setting of module and return true if is AuthAndCapture and false if is AuthOnly
private function isCapture() { return $this->openCart->config->get('payment_mundipagg_credit_card_operation') != 'Auth'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAuthMode() {}", "public function getAuthMode();", "public function isAuth();", "public function is_auth()\r\n\t{\r\n\t\tstatic $authorized = null;\r\n\r\n\t\tif(isset($authorized))\r\n\t\t\treturn $authorized;\r\n\r\n\t\t$authorized = false;\r\n\t\t$token = Options::get('picasa_token_' . User::identify()->id);\r\n\r\n\t\tif($token != null)\r\n\t\t\t$authorized = true;\r\n\r\n\t\treturn $authorized;\r\n\t}", "public function isAuth() {}", "private function isAuth()\n\t{\n\t\treturn $this->session->userdata('auth') ? true : false;\n\t}", "private function _getAuth()\n {\n if (!isset($_SERVER['PHP_AUTH_USER'])) {\n header('WWW-Authenticate: Basic realm=\"My Realm\"');\n header('HTTP/1.0 401 Unauthorized');\n echo 'Sorry this action is not allowed for you';\n return false;\n } else {\n \n if ($_SERVER['PHP_AUTH_USER'] == 'testUser' && $_SERVER['PHP_AUTH_PW'] == 'testPassword') {\n return true;\n }\n \n return false;\n \n }\n }", "function checkAuth() {\n\tglobal $conf;\n\t\n}", "public function needsAuth() {\n $v = $this->getVersion();\n return $v['functions']['auth'];\n }", "private function is_authenticated()\n {\n if($this->mode == rabkTwttr::MODE_APP)\n return isset($_SESSION['access_token']);\n \n if($this->mode == rabkTwttr::MODE_USER)\n return isset($_SESSION['access_token']) && isset($_SESSION['access_token_secret']);\n }", "public function getAuthenticationMode() {\n\t}", "public function GetAllowBasicAuth () {\n\t\treturn $this->allowBasicAuth;\n\t}", "function auth_required() {\n $authinconfig = $this->config->taverna->needAuth;\n if (strcasecmp($authinconfig, 'false') == 0) {\n return FALSE; //no authorization required so we are authorized\n }\n return TRUE;\n }", "public static function getAuth()\n {\n if( !isset($_SESSION['FOXY_userid']) ) {\n return false;\n }\n return true;\n }", "public function isAuth(){\n\t\t$sess = Core::getSingleton(\"system/session\");\n\t\tif( $sess->has(\"account\") ) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public function use_authentication() {\n return $this->proxy_user && $this->proxy_pass;\n }", "function require_webauth() {\n return $this->auth->require_webauth();\n }", "public function isAuth() {\n\t\tif($this->auth === null) {\n\t\t\treturn false;\n\t\t}\n\t\telse {\n\t\t\treturn true;\n\t\t}\n\t}", "function requires_webauth() {\n return $this->auth->requires_webauth();\n }", "public function isAuthenticated() : bool;", "public function isAuth() {\n $connector = Mage::getSingleton('vidtest/connector')->getApiModel($this->getApiModelCode());\n return $connector->isLoggedIn();\n }", "static function check()\n\t{\n\t\t$session = App::get('session');\n\t\treturn $session->get('auth');\n\t}", "protected function isCaptureCallForAuth()\n {\n return $this->reader->getResponseCode() === self::CAPTURE_CALL_FOR_AUTH_STATUS_CODE;\n }", "protected function hasAuth()\n {\n return !! $this->options['authentication'];\n }", "public function checkAuth() {\n\n /*\n * Dummy stuff - just to test the authentication loop\n */\n if ($_SERVER['PHP_AUTH_USER'] === $this->config['general']['admin']['user'] && $_SERVER['PHP_AUTH_PW'] === $this->config['general']['admin']['password']) {\n return true;\n }\n\n return false;\n }", "public function isAuth()\n {\n return !empty($this->getAuth());\n }", "public function checkAuth();", "public function checkAuth();", "public static function getAuthList()\n\t{\n\t\treturn !empty(MHTTPD::$config['Auth']) ? MHTTPD::$config['Auth'] : false;\n\t}", "public function isAuthenticated();", "public function isAuthenticated();", "public function isAuthenticated();", "public function isAuthenticated();", "public function getAuthMode()\r\n {\r\n return $this->authMode;\r\n }", "public function authenticate(){\n $user = $_SERVER['PHP_AUTH_USER'];\n $pass = $_SERVER['PHP_AUTH_PW'];\n\n if(!empty($user) && $this->api_config['allowed_users'][$user] === $pass){\n return True;\n }\n return False;\n }", "function auth(){\n\tif(@!$_SESSION['auth']){\n\t\treturn false;\n\t}else{\n\t\treturn true;\n\t}\n}", "function auth(){\n\t\t//TODO auth implementieren\n\t\treturn true;\n\t}", "function auth_check()\n\t{\n\t\t$ci =& get_instance();\n\t\treturn $ci->auth_model->is_logged_in();\n\t}", "function auth_check()\n\t{\n\t\t$ci =& get_instance();\n\t\treturn $ci->auth_model->is_logged_in();\n\t}", "public function isAuthenticated(): bool;", "public function isAuthenticated(): bool;", "public function is_auth_required() {\r\n\r\n\t\treturn false;\r\n\t}", "public function isAuth()\n {\n $u = $this->session->userdata('username');\n if ($u) {\n return $u;\n }\n\n return false;\n }", "public function IsAuth()\n {\n if ($this->mSystemLogin || $this->mFacebookId || $this->mTwitterId)\n {\n return true;\n }\n else\n {\n return false;\n }\n }", "public static function hasAuth() {\n\t\treturn (self::$__accessKey !== null && self::$__secretKey !== null);\n\t}", "public static function hasAuth() {\n\t\treturn (self::$__accessKey !== null && self::$__secretKey !== null);\n\t}", "public function hasAuthreqflag()\n {\n return $this->get(self::AUTHREQFLAG) !== null;\n }", "function is_auth()\r\n{\r\n if(!isset($_SESSION['user']))\r\n {\r\n return false;\r\n }\r\n else\r\n {\r\n return true;\r\n }\r\n}", "public function isAuthenticated() {\n\t}", "function getAuth() {\n parent::getAuth(); // load company!\n $au = $this->getAuthUser();\n if (!$au) {\n $this->jerr(\"Not authenticated\", array('authFailure' => true));\n }\n if ($au->company()->comptype != 'OWNER') {\n $this->jerr(\"Permission Denied\" );\n }\n $this->authUser = $au;\n return true;\n }", "public function getIsAuthenticated()\n {\n return $this->lib->getToken();\n }", "function middleware_Loggedin()\n{\n return isset($_SESSION['auth']);\n}", "private function checkAuth()\n {\n $this->isAuthenticated = false;\n $isLoggedIn = is_user_logged_in();\n\n if ($isLoggedIn) {\n $this->username = wp_get_current_user()->user_login;\n $id = wp_get_current_user()->ID;\n $meta = get_user_meta($id, 'wp_capabilities', false);\n foreach ($meta[0] as $key => $value) {\n $k = strtoupper($key);\n if (($k == $this->PluginRole) or\n ($k == $this->AdminRole)) {\n $this->isAuthenticated = true;\n }\n }\n }\n }", "public function getAuthenticationAvailable();", "public static function isAuth() : bool\n {\n return null !== self::$fullUser;\n }", "public function isAuth()\n {\n return $this->session->hasAuthorisation();\n }", "function is_authenticated()\n{\n global $app;\n return (is_object($app->auth) && $app->auth->isValid());\n}", "public function isAuthenticated(){\n return $_SESSION['loggedIn'];\n }", "function canDisplayCredentials()\n\t{\n\t\treturn env('SHOW_CREDENTIALS','false') == 'true';\n\t}", "function is_config_private_mode() {\n\treturn conditional_config('private_mode');\n}", "function is_authenticated(){\n\n\t// some pages are used by both frontend and backend, so check for backend...\n\tif(defined(\"BACKEND\")){\n\t\treturn is_backend_authenticated();\n\t\t}\n\n\tif(isset($_SESSION[\"user_id\"]))\n\t\treturn true;\n\n\treturn false;\n\t}", "public function isAuth( ) {\n\t\tif( $this->getName() == null || $this->getId() == -1 ) {\n\t\t\treturn false;\n\t\t} elseif( isset($_SESSION) ) {\n\t\t\t// Make sure we have all the required session values.\n\t\t\tforeach( $this->SESSION_KEYS_USED as $key ){\n\t\t\t\tif( ! array_key_exists($key, $_SESSION) ){\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public function enabled()\n {\n return (bool) config('cms-upload-module.restrict.session', true);\n }", "protected function needsAuthentication()\n {\n return !empty($this->authType);\n }", "protected function authRequired()\n {\n return true;\n }", "public function authorize()\n {\n return session('storefront_key') || request()->session()->has('api_credential');\n }", "public function authentic()\n {\n return $this->authentic === true;\n }", "function authenticationNeeded()\n {\n\n // define all the global variables\n global $user;\n\n // check if user has 2-factor authentication enabled\n if (!$user->twoFactorEnabled()) {\n return false;\n }\n\n // check if secret key has been setup\n if ($user->get2FactorCode() == \"\") {\n return false;\n }\n\n // check if current session has been authenticated\n if (isset($_SESSION[\"authenticated\"])) {\n if ($_SESSION[\"authenticated\"] == true) {\n return false;\n }\n }\n\n // if no errors then ask for authentication\n return true;\n }", "public function CheckModule()\r\n\t{\r\n\t\tif($this->settings['API_KEY'] != $this->API_Key)\r\n\t\t\treturn FALSE;\r\n\t\t\r\n\t\treturn TRUE;\r\n\t}", "public function isAuthenticated()\r\n {\r\n return true; \r\n }", "function isAuth()\n {\n $db = $this->getDatabaseConnection();\n $sesPrefix = $db->dsn['database'];\n if (empty($_SERVER['PHP_AUTH_USER'])) {\n @session_start();\n }\n if (!empty($_SESSION[__CLASS__][$sesPrefix .'-auth'])) {\n // in session...\n $a = unserialize($_SESSION[__CLASS__][$sesPrefix .'-auth']);\n $u = DB_DataObject::factory('core_company');\n if ($u->get($a->id)) { //&& strlen($u->passwd)) {\n return true;\n }\n $_SESSION[__CLASS__][$sesPrefix .'-auth'] = '';\n \n }\n // not in session or not matched...\n \n \n return false;\n \n }", "public static function isAuth() {\r\n if (isset($_SESSION['username']) && (($_SESSION['authorized'] == 'ADMIN')\r\n OR ($_SESSION['authorized'] == 'SUPERUSER')\r\n OR ($_SESSION['authorized'] == 'MEMBER')))\r\n return true;\r\n }", "function is_authorized() {\n global $logged;\n global $login_netid;\n if (!$logged)\n return false;\n if (empty($login_netid))\n return false;\n return true;\n}", "function isAuthenticated() {\n // Changed by Trevor Mills to integrate with his CMS. \n // \n // Old code: \n\t\t// return ($this->_authenticated) ? true : false;\n\t\tswitch (CMS_PLATFORM){\n\t\tcase 'WordPress':\n\t\t\tif (isset($_COOKIE['wordpress_logged_in_'.COOKIEHASH])){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase 'topCMS':\n\t\tdefault:\n\t\t\tif (!isset($_SESSION['auth_level']) or $_SESSION['auth_site'] != md5(SITE_URL)){\n\t return false;\n\t\t\t}\n\t else{\n\t return true;\n\t }\n\t\t\tbreak;\n\t\t}\n\t\t\n\t}", "public function isAuthenticated() {return $this->isauthenticated;}", "public function checkAccess()\n {\n // Check token in headers\n if (isset($_SERVER['HTTP_TOKEN'])) {\n return $_SERVER['HTTP_TOKEN'] === Configuration::get('MARMIADS_TOKEN');\n }\n\n // Check token in GET or POST\n return Tools::getValue('token') === Configuration::get('MARMIADS_TOKEN');\n }", "public function checkAuthentication() {}", "function ppom_is_api_enable() {\n \n $api_enable = get_option( 'ppom_api_enable' );\n $api_key = get_option( 'ppom_rest_secret_key' );\n \n $return = false;\n \n if( $api_enable == 'yes' && $api_key != '' ) {\n $return = true;\n }\n \n return $return;\n}", "public function logged() :?bool {\n\t\treturn isset($_SESSION['auth']);\n\t}", "public static function getIsAuthenticated()\n\t{\n\t\treturn self::$isAuthenticated;\n\t}", "public function isAuthenticated(){\n return $this->authenticated;\n }", "private function _isAuthenticated()\n\t{\n\t\treturn true;\n\t}", "public function getAuth();", "public function getAuth();", "public static function isAuthenticated() {\n $auth = self::get('auth');\n\n return empty($auth['isauthenticated']) ? FALSE : TRUE;\n }", "public function checkAuth()\n\t{\t\t\n\t\t$url = \"http://{$this->wnServer}/webnative/portalDI\";\n\t\t$authinfo = json_decode($this->curlObj->fetch_url($url),true);\n\t\treturn $authinfo;\n\t}", "public function authorization(): bool|string\n {\n return $_SERVER['HTTP_AUTHORIZATION'] ?? false;\n }", "protected function authenticate()\n\t{\n\t\t$config = $this->getConfig();\n\n\t\tif(empty($config->api->auth->username) && empty($config->api->auth->password))\n\t\t\treturn true;\n\n\t\t$key = $this->getRequest()->getPost('key');\n\t\t$serviceKey = md5($config->api->auth->username . ':' . $config->api->auth->password);\n\t\tif($key && $key == $serviceKey)\n\t\t\treturn true;\n\n\t\treturn false;\n\t}", "public function isAuthenticated(): bool {\n return true;\n }", "public function authorizedTest()\n {\n return $this->accepted && $this->test_mode;\n }", "private function _allowCredentials(): string\n {\n return ($this->config['AllowCredentials']) ? 'true' : 'false';\n }", "public function authentication(){\n return HelperTest::createBasicHeader();\n }", "function GetDebug() {\n global $config, $_SESSION;\n static $debug_on;\n if (is_bool($debug_on)) {\n\n return $debug_on;\n }\n $debug_on = false;\n $debugSession = isset($_SESSION[$config['admin_debug_name']]) ? $_SESSION[$config['admin_debug_name']] : null;\n $debugGet = isset($_GET[$config['admin_debug_name']]) ? $_GET[$config['admin_debug_name']] : null;\n $debugKey = $config['admin_debug_key'];\n\n if (isset($debugSession) && $debugSession === $debugKey && !isset($debugGet))\n $debug_on = true;\n else\n if (isset($debugGet))\n if ($debugGet === $debugKey)\n $debug_on = true;\n else if ($debugGet === $debugKey)\n $debug_on = false;\n if ($debug_on)\n $_SESSION[$config['admin_debug_name']] = $debugKey;\n else\n unset($_SESSION[$config['admin_debug_name']]);\n return $debug_on;\n}", "public function authenticate() {\n\t\treturn FALSE;\n\t}", "private function _needsAuthentication() {\n\t\tif(isset(Environment::$api->noAuthRoutes) && is_array(Environment::$api->noAuthRoutes) && is_array($this->request->params)) {\n\t\t\t$requestRoute = implode('/', $this->request->params);\n\t\t\tforeach (Environment::$api->noAuthRoutes as $key => $route) {\n\t\t\t\tif($route===$requestRoute) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(Environment::$api->noAuth) { \n\t\t\treturn false;\n\t\t}\n\t\tif($this->method==='OPTIONS') {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public function IsAuthenticated()\n {\n $acronym = isset($_SESSION['user']) ? $_SESSION['user']->acronym : null;\n\n if($acronym) \n {\n $this->IsAuthenticated = true;\n }\n else \n {\n $this->IsAuthenticated = false;\n }\n \n return $this->IsAuthenticated;\n }", "public static function getAuthInfo($uri)\n\t{\n\t\tif (isset(MHTTPD::$config['Auth'][$uri]) && MHTTPD::$config['Auth'][$uri] !== false) {\n\t\t\tif (!is_array(MHTTPD::$config['Auth'][$uri])) {\n\t\t\t\tMHTTPD::$config['Auth'][$uri] = array_combine(\n\t\t\t\t\tarray('realm', 'user', 'pass'),\n\t\t\t\t\tlistToArray(MHTTPD::$config['Auth'][$uri])\n\t\t\t\t);\n\t\t\t}\n\t\t\treturn MHTTPD::$config['Auth'][$uri];\n\t\t}\n\t\treturn false;\n\t}", "public function getIsAuthenticated()\n {\n return $this->IsAuthenticated;\n }", "function the_champ_social_login_enabled(){\r\n\tglobal $theChampLoginOptions;\r\n\tif(isset($theChampLoginOptions['enable']) && $theChampLoginOptions['enable'] == 1){\r\n\t\treturn true;\r\n\t}else{\r\n\t\treturn false;\r\n\t}\r\n}", "public function is_init(){\n\t\tglobal $_wt_options;\n\t\tif($this->user_key || !empty($this->user_key) && $this->app_key || !empty($this->app_key)) return 1;\n\t\treturn 0;\n\t}" ]
[ "0.6842313", "0.68203586", "0.67022276", "0.6636502", "0.66309005", "0.6626436", "0.66032875", "0.65499914", "0.65335315", "0.6481898", "0.6417503", "0.64080495", "0.640692", "0.6392273", "0.63815", "0.63654596", "0.62618107", "0.62182194", "0.6210427", "0.621025", "0.6207828", "0.6181173", "0.6179493", "0.61766076", "0.61756146", "0.61689276", "0.6150488", "0.6150488", "0.61381406", "0.61224455", "0.61224455", "0.61224455", "0.61224455", "0.6102787", "0.60995233", "0.60803485", "0.6065968", "0.60653454", "0.60653454", "0.60476273", "0.60476273", "0.5985564", "0.59764665", "0.59741664", "0.5972902", "0.5972902", "0.5946245", "0.59286505", "0.59258395", "0.591993", "0.5918151", "0.5911944", "0.59116673", "0.5908546", "0.59080625", "0.59060043", "0.5901691", "0.58963144", "0.58814764", "0.58784", "0.5875903", "0.5867048", "0.5866716", "0.5861023", "0.58570164", "0.5819826", "0.58191365", "0.5789534", "0.5788789", "0.578869", "0.578564", "0.5783466", "0.5783352", "0.5782131", "0.57789147", "0.5778455", "0.5775412", "0.5756149", "0.5753015", "0.5752329", "0.57497257", "0.5743968", "0.57403857", "0.57403857", "0.57378143", "0.57205194", "0.5716999", "0.571699", "0.5712068", "0.57043874", "0.56854725", "0.56632096", "0.5653484", "0.56519425", "0.56503606", "0.56493294", "0.5645508", "0.56438994", "0.5641259", "0.5637466" ]
0.5756531
77
Update opencart order status with the mundipagg translated status
public function updateOrderStatus($orderStatus, $comment = '') { $this->openCart->load->model('extension/payment/mundipagg_order_processing'); $model = $this->openCart->model_extension_payment_mundipagg_order_processing; $model->addOrderHistory( $this->openCart->session->data['order_id'], $orderStatus, $comment, true ); $model->setOrderStatus( $this->openCart->session->data['order_id'], $orderStatus ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateStatus()\n {\n $this->status = Cart::CART_STATUS_ORDERED;\n $this->save();\n }", "public function changeOrderStatus(){\r\n $cookies = new CookieModel();\r\n $cookie_id = $cookies -> read();\r\n $Form = M('userinfo');\r\n $condition_in['stuid'] = $cookie_id;\r\n $data = $Form->where($condition_in)->find();\r\n if (! $data['manager']) $this->redirect('/');\r\n \t$key = $_REQUEST['id'];\r\n \t//$key = 2;\r\n \t$condition['id'] = $key;\r\n \t$form = M(\"orderinfo\");\r\n \t$data = $form->where($condition)->find();\r\n \t//echo $data;\r\n \tif ($data['status'] == \"下单成功\") $data['status'] = \"烹饪中\";\r\n \telse if ($data['status'] == \"烹饪中\") $data['status'] = \"送餐途中\"; \r\n \telse if ($data['status'] == \"送餐途中\") $data['status'] = \"餐已收到\";\r\n \t$form->save($data);\r\n \t//$this->display();\r\n }", "public function update_status($_order)\n {\n $note = __('Status via reminder plugin automatisch geändert', 'bbb-bac-reminder');\n\n return $_order->update_status('cancelled', $note);\n }", "public function change_order_status_post()\n {\n $pdata = file_get_contents(\"php://input\");\n $data = json_decode($pdata,true);\n $id = $data['order_id'];\n $status = $data['status'];\n $user_id = $data['user_id'];\n // $this->response($user_id);\n $data = array(\n 'status' => $status\n );\n \n $where = array(\n 'id' => $id\n );\n $this->model->update('orders', $data, $where);\n $message = \"Your Order is $status\";\n \n $resp = array('rccode' => 200,'message' => $message);\n $this->response($resp);\n //}\n \n \n }", "public function update_status();", "function updateOrderStatus(){\n \n $idCheckout = $this->input->post('id_checkout');\n\n $sqlStatus = \"Update tb_order SET tb_order.order_status = 3 WHERE id_checkout = $idCheckout\";\n\n $queryStatus = $this->db->query($sqlStatus);\n\n if($queryStatus){\n $data['status'] = 200;\n $data['message'] = \"Successfully Update\";\n }\n else{\n $data['status'] = 404;\n $data['message'] =\"Failed Update\";\n }\n echo json_encode($data);\n }", "public function changeStatus($orderId=null,$status=null){\n $allowedStatuses = ShopCore::$orderStatuses;\n if(!$orderId){\n $orderId = (int)$_POST['id'];\n }\n if(!$status){\n $status = $_POST['status'];\n }\n $order = new DBObject('sr_shop_order',$orderId);\n\n if(!$order->id){\n $this->sendJSON(array('success'=>false,'message'=>'Product not found'));\n }\n if(!$allowedStatuses[$status]){\n $this->sendJSON(array('success'=>false,'message'=>'Product not found'));\n }\n if($order->get('status')==$status){\n $this->get($orderId);\n return;\n }\n switch ($order->get('status')){\n case 'new':\n case 'processing':\n switch($status){\n case 'shipped':\n case 'done':\n // -w\n //-r\n $this->updateWarehouse($orderId,-1,-1);\n if($status=='done' && $order->get('customer_id')!='0'){\n $this->updateDiscount($order->get('customer_id'),$order->get('total'));\n }\n break;\n case 'cancelled':\n //-r\n $this->updateWarehouse($orderId,0,-1);\n break;\n }\n break;\n case 'shipped':\n case 'done':\n if($order->get('status')=='done' && $order->get('customer_id')!='0'){\n $this->updateDiscount($order->get('customer_id'),$order->get('total'),true);\n }\n switch($status){\n case 'new':\n case 'processing':\n // +w\n // +r\n $this->updateWarehouse($orderId,1,1);\n break;\n case 'cancelled':\n //+w\n $this->updateWarehouse($orderId,1,0);\n break;\n }\n break;\n\n case 'cancelled':\n switch($status){\n case 'new':\n case 'processing':\n // +r\n $this->updateWarehouse($orderId,0,1);\n break;\n default:\n if(!$allowedStatuses[$status]){\n $this->sendJSON(array('success'=>false,'message'=>'Action denied'));\n }\n break;\n }\n break;\n }\n $order->set('status',$status);\n $order->save();\n $this->get($orderId);\n }", "public function changeStatusAjaxAction()\n\t{\n\t\t$data = $this->getRequest()->getPost();\n\t\tif($data){\n\t\t\tif($data['lb_item_status']!=\"\"){\n\t\t\t\t$order = Mage::getModel('sales/order')->load($data['order_id']);\n\t\t\t\t$orderStatus = $order->getStatus();\n\t\t\t\t$lbOrderItemInstance = Mage::getModel('dropship360/orderitems')->getCollection()->addFieldToFilter('item_id', $data['lb_item_id']);\n\t\t\t\ttry{\n\t\t\t\t\tif($lbOrderItemInstance->count() > 0){\t\t\t\n\t\t\t\t\t\tforeach($lbOrderItemInstance as $item){\n\t\t\t\t\t\t\t$itemStatusHistory = Mage::helper('dropship360')->getSerialisedData($item, $data['lb_item_status'], $orderStatus);\n\t\t\t\t\t\t\t$item->setLbItemStatus($data['lb_item_status']);\n\t\t\t\t\t\t\t$item->setItemStatusHistory($itemStatusHistory);\n\t\t\t\t\t\t\t$item->setUpdatedBy('User');\n\t\t\t\t\t\t\t$item->setUpdatedAt(Mage::getModel('core/date')->gmtDate());\n\t\t\t\t\t\t\t$item->save();\t\n\t\t\t\t\t\t\tif($data['lb_item_status']==$item->getLbItemStatus()){\n\t\t\t\t\t\t\t\t$data['msg'] = $item->getSku().' status successfully changed to '.$data['lb_item_status'];\n\t\t\t\t\t\t\t\tMage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('dropship360')->__($data['msg']));\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t$data['msg'] = $item->getSku().' status unable to change to '.$data['lb_item_status'];\n\t\t\t\t\t\t\t\tMage::getSingleton('adminhtml/session')->addError(Mage::helper('dropship360')->__($data['msg']));\n\t\t\t\t\t\t\t}\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\t\t\t\n\t\t\t\t\tif($data['lb_item_status'] == 'Transmitting'){\n\t\t\t\t\t\tMage::getModel('dropship360/logicbroker')->setupNotification();\n\t\t\t\t\t}\t\t\t\n\t\t\t\t\t$result = Mage::helper('core')->jsonEncode($data);\n\t\t\t\t\tMage::app()->getResponse()->setBody($result);\n\t\t\t\t}catch(Exception $e){\t\t\t\n\t\t\t\t\tMage::getSingleton('adminhtml/session')->addError($e->getMessage());\n\t\t\t\t}\n\t\t\t}\n\t\t}else{\n\t\t\t$data['msg'] = 'Unable to perform the required operation';\n\t\t}\t\n\t}", "public function update_order_status(){\n if (!$this->input->is_ajax_request()) {\n exit('No direct script access allowed');\n } else {\n $order_id = $this->input->post('order_id');\n $order_dtls_id = $this->input->post('order_dtls_id');\n $order_status = $this->input->post('order_status');\n \n if($order_id && $order_dtls_id && $order_status){\n $status_update = $this->cm->update('user_order_details', ['order_id'=> $order_id, 'id'=> $order_dtls_id], [\n 'status' => $order_status\n ]);\n if($status_update){\n $this->cm->insert('user_order_logs', [\n 'order_id' => $order_id,\n 'order_details_id' => $order_dtls_id,\n 'status' => $order_status\n ]);\n \n /*\n SELECT o.order_no,p.name,ps.name size,pc.name color,od.quantity,od.sell_price,od.discount_percentage,od.discount_price,od.remarks,od.status\n FROM user_order_details od\n join user_orders o on od.order_id = o.id\n join products p on od.product_id = p.id\n join product_variations pv on p.id = pv.product_id\n join product_sizes ps on pv.size_id = ps.id\n join product_colors pc on pv.color_id = pc.id\n WHERE od.id = 1 and od.order_id = 1\n */\n /*\n Order details\n */\n $oJoin[] = ['table' => 'user_orders o', 'on' => 'od.order_id = o.id', 'type' => 'inner'];\n $oJoin[] = ['table' => 'products p', 'on' => 'od.product_id = p.id', 'type' => 'inner'];\n $oJoin[] = ['table' => 'product_variations pv', 'on' => 'p.id = pv.product_id', 'type' => 'inner'];\n $oJoin[] = ['table' => 'product_sizes ps', 'on' => 'pv.size_id = ps.id', 'type' => 'inner'];\n $oJoin[] = ['table' => 'product_colors pc', 'on' => 'pv.color_id = pc.id', 'type' => 'inner'];\n $oJoin[] = ['table' => 'users u', 'on' => 'o.user_id = u.id', 'type' => 'inner'];\n $order_details = $this->cm->select_row('user_order_details od', ['od.id'=> $order_dtls_id, 'od.order_id'=> $order_id], 'o.order_no,p.name,ps.name size,pc.name color,od.quantity,od.sell_price,od.discount_percentage,od.discount_price,od.status,u.name user_name,u.email user_email', $oJoin);\n //Order status dropdown option\n $order_status_option = '<option value=\"\">Update status</option>';\n if($order_status == 1){\n //order confirm mail sent to user\n if($order_details){\n if($order_details['discount_percentage'] > 0){ \n $discount_price = $order_details['sell_price']- (($order_details['sell_price'] * $order_details['discount_percentage']) / 100); \n } else {\n $discount_price = $order_details['sell_price'];\n }\n \n $mail_subject = 'Your order for '.$order_details['name'].' has been successfully receive';\n $message = '<p>Hi <b>'.$order_details['user_name'].'</b></p>';\n $message .= \"<p>Your order has been successfully receive</p>\";\n $message .= \"<p></p><p>Order ID: <b>\".$order_details['order_no'].\"</b></p>\";\n $message .= \"<p></p><p>Item: \".$order_details['name'].\"</p>\"; \n $message .= \"<p>Size: \".$order_details['size'].\"</p>\"; \n $message .= \"<p>Color: \".$order_details['color'].\"</p>\"; \n $message .= \"<p>Qty: \".$order_details['quantity'].\"</p>\"; \n $message .= \"<p>Amount payable on delivery: <b>£\".number_format($discount_price, 2).\"</b></p>\"; \n $message .= \"<p></p><p>Thank you for shopping with Shorolafashion</p>\"; \n $this->cm->send_email($order_details['user_email'], siteSettingsData()['site_sender_email'],'','', $mail_subject, $message,'','','');\n } \n //dropdown option\n $order_status_option .= '<option value=\"2\">Out for delivery</option>';\n $order_status_option .= '<option value=\"4\">Order Cancel</option>';\n }elseif($order_status == 2){\n //order out for delivery mail sent to user\n if($order_details){\n if($order_details['discount_percentage'] > 0){ \n $discount_price = $order_details['sell_price']- (($order_details['sell_price'] * $order_details['discount_percentage']) / 100); \n } else {\n $discount_price = $order_details['sell_price'];\n }\n \n $mail_subject = 'Out for Delivery '.$order_details['name'].' with Order ID '.$order_details['order_no'];\n $message = '<p>Hi <b>'.$order_details['user_name'].'</b></p>';\n $message .= \"<p></p><p>Item: \".$order_details['name'].\"</p>\"; \n $message .= \"<p>Size: \".$order_details['size'].\"</p>\"; \n $message .= \"<p>Color: \".$order_details['color'].\"</p>\"; \n $message .= \"<p>Qty: \".$order_details['quantity'].\"</p>\"; \n $message .= \"<p>Amount payable on delivery: <b>£\".number_format($discount_price, 2).\"</b></p>\"; \n $this->cm->send_email($order_details['user_email'], siteSettingsData()['site_sender_email'],'','', $mail_subject, $message,'','','');\n } \n //dropdown option\n $order_status_option .= '<option value=\"3\">Order Delivered</option>';\n $order_status_option .= '<option value=\"4\">Order Cancel</option>';\n } elseif($order_status == 3){\n //order delivered mail sent to user\n if($order_details){\n if($order_details['discount_percentage'] > 0){ \n $discount_price = $order_details['sell_price']- (($order_details['sell_price'] * $order_details['discount_percentage']) / 100); \n } else {\n $discount_price = $order_details['sell_price'];\n }\n \n $mail_subject = 'Delivered '.$order_details['name'].' with Order ID '.$order_details['order_no'];\n $message = '<p>Hi <b>'.$order_details['user_name'].'</b></p>';\n $message .= \"<p></p><p>Item: \".$order_details['name'].\"</p>\"; \n $message .= \"<p>Size: \".$order_details['size'].\"</p>\"; \n $message .= \"<p>Color: \".$order_details['color'].\"</p>\"; \n $this->cm->send_email($order_details['user_email'], siteSettingsData()['site_sender_email'],'','', $mail_subject, $message,'','','');\n } \n //dropdown option\n $order_status_option .= '<option value=\"7\">Closed</option>';\n } elseif($order_status == 6){\n $order_status_option .= '<option value=\"7\">Closed</option>';\n }\n \n echo json_encode(['success'=> true, 'message'=> 'Successfully Change Order Status', 'html'=> $order_status_option]);\n }\n }\n }\n }", "function ostUpdateOrderStatus( $statusID, $status_name, $sort_order, $color, $bold, $italic ){\r\n\r\n\tdb_phquery('\r\n\t\tUPDATE ?#ORDER_STATUSES_TABLE SET '.LanguagesManager::sql_prepareFieldUpdate('status_name', $status_name).',sort_order=?, color=?, bold=?, italic=? \r\n\t\tWHERE statusID=?', $sort_order, $color, (int)$bold, (int)$italic, $statusID);\r\n}", "public function travel_quote_status() {\n\t\t$id = $this->uri->segment(4);\n\t\t$status = $this->uri->segment(5);\n\t\tCheckAdminLoginSession();\t\t\n\t\t$data['status'] = $status;\t\t\t\t \t \t\t \n\t\t$this->admin_model->setUpdateData($this->travel_quote,$data,$id);\n\t\t$this->session->set_flashdata('message','Your status has been update successfully');\n\t\tredirect('admin/travel-quote/lists','refresh');\t\t\n\t}", "function update_package_status($package_id,$package_status)\n {\n if($package_status==0)\n {\n $new_stat=\"1\";\n }\n elseif($package_status==1)\n {\n $new_stat=\"0\";\n }\n $query = $this->db->query(\"UPDATE tbl_package SET package_status = '$new_stat' WHERE package_id='$package_id'\");\n //echo $this->db->last_query();\n }", "public function set_status( $order, $reset_status = false ) {\n\n\t\t\t/**\n\t\t\t * Post meta table.\n\t\t\t */\n\t\t\t$post_status = get_post_meta( $order['post_id'], self::LANGUAGE_POST_STATUS, true );\n\n\t\t\tif ( ! is_array( $post_status ) ) {\n\t\t\t\t// Meta value is invalid. Reset to an empty array.\n\t\t\t\t$post_status = array();\n\t\t\t}\n\n\t\t\t$result_meta = true;\n\t\t\t$message = '';\n\t\t\t$status_changed = false;\n\n\t\t\tif ( 'draft' === $order['status'] ) {\n\t\t\t\tif ( empty( $post_status[ $order['language'] ] ) || $post_status[ $order['language'] ] != $order['status'] ) {\n\t\t\t\t\t$post_status[ $order['language'] ] = $order['status'];\n\t\t\t\t\t$status_changed = true;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tunset( $post_status[ $order['language'] ] );\n\t\t\t\t$status_changed = true;\n\t\t\t}\n\n\t\t\tif ( empty( $post_status ) ) :\n\t\t\t\t$result_meta = delete_post_meta( $order['post_id'], self::LANGUAGE_POST_STATUS );\n\t\t\telse:\n\t\t\t\tif ( $status_changed ) {\n\t\t\t\t\t$result_meta = update_post_meta( $order['post_id'], self::LANGUAGE_POST_STATUS, $post_status );\n\t\t\t\t}\n\t\t\tendif;\n\n\t\t\tif ( $status_changed ) {\n\t\t\t\tif ( $result_meta ) {\n\t\t\t\t\t$message = esc_html( sprintf( __( 'Successfully set to \"%s\"', 'wpglobus-plus' ), ucfirst( $order['status'] ) ) );\n\t\t\t\t} else {\n\t\t\t\t\t$message = esc_html( sprintf( __( 'Setting to \"%s\" FAILED!', 'wpglobus-plus' ), ucfirst( $order['status'] ) ) );\n\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$message = esc_html( sprintf( __( 'Already set to \"%s\". Not changing.', 'wpglobus-plus' ), ucfirst( $order['status'] ) ) );\n\t\t\t}\n\n\t\t\t/**\n\t\t\t * Options table.\n\t\t\t */\n\t\t\t$result_option = true;\n\t\t\t$lang_status = get_option( self::LANGUAGE_STATUS );\n\n\t\t\tif ( empty( $post_status ) ) {\n\n\t\t\t\tif ( ! empty( $lang_status[ $order['language'] ] ) && isset( $lang_status[ $order['language'] ][ $order['post_id'] ] ) ) {\n\t\t\t\t\tunset( $lang_status[ $order['language'] ][ $order['post_id'] ] );\n\t\t\t\t}\n\n\t\t\t} else {\n\n\t\t\t\tif ( 'draft' === $order['status'] ) {\n\t\t\t\t\t$lang_status[ $order['language'] ][ $order['post_id'] ] = $order['post_id'];\n\t\t\t\t} else {\n\t\t\t\t\tif ( ! empty( $lang_status[ $order['language'] ] ) && isset( $lang_status[ $order['language'] ][ $order['post_id'] ] ) ) {\n\t\t\t\t\t\tunset( $lang_status[ $order['language'] ][ $order['post_id'] ] );\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t};\n\n\t\t\tif ( isset( $lang_status[ $order['language'] ] ) && empty( $lang_status[ $order['language'] ] ) ) {\n\t\t\t\tunset( $lang_status[ $order['language'] ] );\n\t\t\t}\n\n\t\t\tif ( empty( $lang_status ) ) {\n\t\t\t\t$result_option = delete_option( self::LANGUAGE_STATUS );\n\t\t\t} else {\n\n\t\t\t\t$result_option = update_option( self::LANGUAGE_STATUS, $lang_status, false );\n\t\t\t\tif ( $reset_status ) {\n\t\t\t\t\t$result_option = $this->reset_status();\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\t$return = array();\n\t\t\t$return['action'] \t= $order['action'];\n\t\t\t$return['post_id'] \t= $order['post_id'];\n\t\t\t$return['language'] = $order['language'];\n\t\t\t$return['status'] \t= $order['status'];\n\t\t\t$return['message'] \t= $message;\n\n\t\t\treturn $return;\n\n\t\t}", "function update_status()\n\t{\n\t\t$data = filter_forwarded_data($this);\n\t\tif(!empty($data['t']) && !empty($data['list'])) $result = $this->_bid->update_status($data['t'], explode('--',$data['list']));\n\t\t\n\t\t$data['msg'] = !empty($result['boolean']) && $result['boolean']? 'The bid status has been changed.': 'ERROR: The bid status could not be changed.';\n\t\t\n\t\t$data['area'] = 'refresh_list_msg';\n\t\t$this->load->view('addons/basic_addons', $data);\n\t}", "function update_order_status($cart_id,$status){\r\n\t\t$query = \"select count(*) as count from risk_score where cart_id=$cart_id\";\r\n\t\t$result = mysql_query($query);\r\n\t\tif(mysql_error()==\"\"){\r\n\t\t\t$row=mysql_fetch_assoc($result);\r\n\t\t\tif(intval($row[\"count\"])==0){\r\n\t\t\t\treturn \"Error: No records found in risk_score for cart_id=$cart_id.\";\r\n\t\t\t}elseif(intval($row[\"count\"])>1){\r\n\t\t\t\treturn \"Error: More than one record \".$row[\"count\"].\" in risk_score found for cart_id=$cart_id.\";\r\n\t\t\t}\r\n\t\t}else{\r\n\t\t\treturn \"Error: An error while getting count of orders in risk_score for cart_id $cart_id.\";\r\n\t\t}\r\n\t\t\r\n\t\t$query = \"update risk_score set order_status=$status where cart_id=$cart_id\";\r\n\t\t$result = mysql_query($query);\r\n\t\tif(mysql_error()==\"\"){\r\n\t\t\t//if(mysql_affected_rows()!=1){\r\n\t\t\t//\treturn \"Error: Unexpected number of affected rows: \".mysql_affected_rows().\" while updating order status. Expected value is 1. Query is $query\";\r\n\t\t\t//}\r\n\t\t\treturn true;\r\n\t\t}else{\r\n\t\t\treturn \"Error: An error occurred while updating risk_orders.order_status of cart_id $cart_id.<br><br>\".mysql_error().\"<br><br>Query is: $query\";\r\n\t\t}\r\n\t\t\r\n\t}", "public function updateStatus($id_envio)\r\n {\r\n $sql = 'SELECT `id_envio_order`, `num_albaran`'\r\n . 'FROM `' . _DB_PREFIX_ . 'tipsa_envios`'\r\n . 'WHERE `id_envio` = ' . (int) $id_envio;\r\n $envioObj = Db::getInstance()->getRow($sql);\r\n\r\n $albaran = $envioObj['num_albaran'];\r\n $id_order = $envioObj['id_envio_order'];\r\n\r\n if (Configuration::get('TIPSA_MODE') == 1) {\r\n $tipsaCodigoAgencia = Configuration::get('TIPSA_CODAGE');\r\n } else {\r\n $tipsaCodigoAgencia = Configuration::get('TIPSA_CODAGE_TEST');\r\n }\r\n\r\n $urlws = $this->getUrlConfiguration('WS');\r\n\r\n $note = $this->loginTipsaUser();\r\n\r\n foreach ($note as $value) {\r\n $details = $value->getElementsByTagName(\"strSesion\");\r\n $idsesion = $details->item(0)->nodeValue;\r\n }\r\n\r\n $note = webservicetipsa::wsConsEnvEstado($idsesion, $tipsaCodigoAgencia, $tipsaCodigoAgencia, $albaran, $urlws);\r\n\r\n foreach ($note as $value) {\r\n $estado = $value->getElementsByTagName(\"strEnvEstados\")->item(0)->nodeValue;\r\n $error = (isset($value->getElementsByTagName(\"faultstring\")->item(0)->nodeValue)) ? $value->getElementsByTagName(\"faultstring\")->item(0)->nodeValue : null;\r\n }\r\n\r\n if (isset($error) && $error != null) {\r\n PrestaShopLogger::addLog('ErrorObtainingthestatesfromWebservice : ' . $error);\r\n }\r\n\r\n $estenv = explode('V_COD_TIPO_EST', $estado);\r\n $elements = count($estenv);\r\n $estado = explode('\"', $estenv[$elements - 1]);\r\n $estado = (int) $estado[1];\r\n\r\n //assing for the states in with information of dinapaq\r\n switch ($estado) {\r\n // $estado = 1 --> TRANSITO\r\n case 1:\r\n $this->updateOrderStatus(Configuration::get('TIPSA_TRANSITO'), $id_order);\r\n break;\r\n // $estado = 2 --> REPARTO\r\n case 2:\r\n $this->updateOrderStatus(Configuration::get('TIPSA_TRANSITO'), $id_order);\r\n break;\r\n // $estado = 3 --> ENTREGADO\r\n case 3:\r\n $this->updateOrderStatus(Configuration::get('TIPSA_ENTREGADO'), $id_order);\r\n break;\r\n // $estado = 4 --> INCIDENCIA\r\n case 4:\r\n $this->updateOrderStatus(Configuration::get('TIPSA_INCIDENCIA'), $id_order);\r\n break;\r\n default:\r\n PrestaShopLogger::addLog('Order State not exists in PrestaShop or not found. ID: ' . $estado);\r\n break;\r\n }\r\n }", "function checkoutTransaksiBaru(){\n $idUser = $this->input->post('id_user');\n $idStatus = $this->input->post('id_status_transaksi');\n $orderDetail = $this->input->post('order_detail');\n \n\n $sqlUpdate = \"Update tb_keranjang SET id_status_transaksi = 2 WHERE id_user = $idUser AND id_status_transaksi = 1 AND detail_order = $orderDetail\";\n\n $saveQuery = $this->db->query($sqlUpdate);\n\n if($saveQuery){\n $data['status'] = 200;\n $data['message'] = \"Successfully Update Product\";\n\n }\n else{\n $data['status'] = 404;\n $data['message'] =\"Failed Update Product\";\n }\n echo json_encode($data);\n\n }", "function updatestatus() {\n global $_lib;\n\n $dataH = array();\n $dataH['ID'] = $this->transaction->ID;\n $dataH['RemittanceSequence'] = $this->transaction->RemittanceSequence;\n $dataH['RemittanceDaySequence'] = $this->transaction->RemittanceDaySequence;\n $dataH['RemittanceSendtDateTime'] = $_lib['sess']->get_session('Datetime');\n $dataH['RemittanceSendtPersonID'] = $_lib['sess']->get_person('PersonID');\n $dataH['RemittanceStatus'] = 'sent';\n \n #Disse mŒ fjernes nŒr vi har en godkjenningsprosess\n $dataH['RemittanceApprovedDateTime'] = $_lib['sess']->get_session('Datetime');\n $dataH['RemittanceApprovedPersonID'] = $_lib['sess']->get_person('PersonID');\n\n $_lib['storage']->store_record(array('data' => $dataH, 'table' => 'invoicein', 'debug' => false));\n }", "public function update_delivery_status() {\n \n $delivery=$this->uri->segment(3);\n $data['order']=$delivery;\n $data['order_ord']=Kemsa_Order_Details::get_order($delivery);\n $data['batch_no']=Kemsa_Order::get_batch_no($delivery);\n $data['title'] = \"Update Delivery Status\";\n $data['content_view'] = \"update_delivery_status_v\";\n $data['banner_text'] = \"Update Status\";\n $data['link'] = \"order_management\";\n $data['quick_link'] = \"all_deliveries\";\n $this -> load -> view(\"template\", $data);\n }", "public function updateOrderStatusAm($uid,$order_id,$order_sts){\n \n $log=new Log(\"Ordersts\".date('Y-m-d').\".log\");\n $query = $this->db->query(\"update oc_po_order set order_status = '\".$order_sts.\"' , status_date = '\".date('Y-m-d').\"' where id=\".$order_id);\n $log->write(\"update oc_po_order set order_status = '\".$order_sts.\"' , status_date = '\".date('Y-m-d').\"' where id=\".$order_id);\n if($query)\n {\n return 1;\n }\n else {\n \n return 0;\n }\n }", "public static function rac_change_cart_list_mailstatus() {\n check_ajax_referer('mailstatus-cartlist', 'rac_security');\n\n if (isset($_POST['row_id']) && isset($_POST['status'])) {\n $status = $_POST['status'];\n update_post_meta($_POST['row_id'], 'rac_cart_sending_status', $status);\n echo '1';\n }\n exit();\n }", "function update_status()\n\t{\n\t\t$data = filter_forwarded_data($this);\n\t\t\n\t\tif(!empty($data['t']) && !empty($data['list'])) $response = $this->_tender->update_status($data['t'], explode('--',$data['list']));\n\t\t\n\t\t# all good\n\t\tif(!empty($response) && $response['boolean']){\n\t\t\t$data['msg'] = 'The Invitation for Bids/Quotations status has been updated.';\n\t\t\t$data['area'] = 'refresh_list_msg';\n\t\t} \n\t\t# there was an error\n\t\telse {\n\t\t\t$data['msg'] = (!empty($data['t']) && !empty($data['list']))? 'ERROR: There was an error updating the Invitation for Bids/Quotations status.': 'ERROR: This action can not be resolved';\n\t\t\t$data['area'] = 'basic_msg';\n\t\t}\n\t\t\n\t\t$this->load->view('addons/basic_addons', $data);\n\t}", "public function updateOrderStatus($orders = 0, $order_id = 0, $order_status = 0)\n {\n $total = 1;\n if (empty($orders)) {\n $orders = array();\n\n $orderslist = vRequest::getVar('orders', array());\n $total = 0;\n // Get the list of orders in post to update\n foreach ($orderslist as $key => $order) {\n if ($orderslist[$key]['order_status'] !== $orderslist[$key]['current_order_status']) {\n $orders[$key] = $orderslist[$key];\n $total++;\n }\n }\n }\n\n if (!is_array($orders)) {\n $orders = array($orders);\n }\n\n /* Process the orders to update */\n $updated = 0;\n $error = 0;\n if ($orders) {\n // $notify = vRequest::getVar('customer_notified', array()); // ???\n // $comments = vRequest::getVar('comments', array()); // ???\n foreach ($orders as $virtuemart_order_id => $order) {\n if ($order_id > 0) $virtuemart_order_id = $order_id;\n $this->useDefaultEmailOrderStatus = false;\n if ($this->updateStatusForOneOrder($virtuemart_order_id, $order, true)) {\n $updated++;\n } else {\n $error++;\n }\n }\n }\n $result = array('updated' => $updated, 'error' => $error, 'total' => $total);\n return $result;\n }", "function store_order_status(Order $order)\n {\n if ($order->order_completed_date) {\n $statuses = ee()->store->orders->order_statuses();\n $style = isset($statuses[$order->order_status_name]) ? 'color:'.$statuses[$order->order_status_name]->color : '';\n\n return '<span style=\"'.$style.'\">'.store_order_status_name($order->order_status_name).'</span>';\n } else {\n return '<span class=\"store_order_status_incomplete\">'.lang('store.incomplete').'</span>';\n }\n }", "function updatePaymentStatus(){\r\n $payment = new managePaymentModel();\r\n $payment->cust_ID = $_SESSION['cust_ID'];\r\n $payment->updatePaymentStatus();\r\n }", "function _correctOrderStatusName( &$orderStatus ){\r\n\r\n\tif ( $orderStatus[\"statusID\"] == ostGetCanceledStatusId() )\r\n\t$orderStatus[\"status_name\"] = translate(\"ordr_status_cancelled\");\r\n}", "function updateStatusForOneOrder($virtuemart_order_id, $inputOrder, $useTriggers = true)\n {\n\n //vmdebug('updateStatusForOneOrder', $inputOrder);\n\n /* Update the order */\n $data = $this->getTable('orders');\n $data->load($virtuemart_order_id);\n $old_order_status = $data->order_status;\n $old_o_hash = $data->o_hash;\n if (empty($inputOrder['virtuemart_order_id'])) {\n unset($inputOrder['virtuemart_order_id']);\n }\n\n $data->bind($inputOrder);\n\n $cp_rm = VmConfig::get('cp_rm', array('C'));\n if (!is_array($cp_rm)) $cp_rm = array($cp_rm);\n\n if (in_array((string) $data->order_status, $cp_rm)) {\n if (!empty($data->coupon_code)) {\n CouponHelper::RemoveCoupon($data->coupon_code);\n }\n }\n //First we must call the payment, the payment manipulates the result of the order_status\n if ($useTriggers) {\n\n\n $_dispatcher = JDispatcher::getInstance(); //Should we add this? $inputOrder\n $_returnValues = $_dispatcher->trigger('plgVmOnUpdateOrderShipment', array(&$data, $old_order_status, $inputOrder));\n\n // Payment decides what to do when order status is updated\n $_returnValues = $_dispatcher->trigger('plgVmOnUpdateOrderPayment', array(&$data, $old_order_status, $inputOrder));\n foreach ($_returnValues as $_returnValue) {\n if ($_returnValue === true) {\n break; // Plugin was successfull\n } elseif ($_returnValue === false) {\n return false; // Plugin failed\n }\n // Ignore null status and look for the next returnValue\n }\n\n /**\n * If an order gets cancelled, fire a plugin event, perhaps\n * some authorization needs to be voided\n */\n if ($data->order_status == \"X\") {\n\n $_dispatcher = JDispatcher::getInstance();\n //Should be renamed to plgVmOnCancelOrder\n $_dispatcher->trigger('plgVmOnCancelPayment', array(&$data, $old_order_status));\n }\n }\n\n if (empty($data->delivery_date)) {\n $del_date_type = VmConfig::get('del_date_type', 'm');\n if (strpos($del_date_type, 'os') !== FALSE) { //for example osS\n $os = substr($del_date_type, 2);\n if ($data->order_status == $os) {\n $date = JFactory::getDate();\n $data->delivery_date = $date->toSQL();\n }\n } else {\n vmLanguage::loadJLang('com_virtuemart_orders', true);\n $data->delivery_date = vmText::_('COM_VIRTUEMART_DELDATE_INV');\n }\n }\n\n //if ($data->store()) {\n\n $task = vRequest::getCmd('task', 0);\n $view = vRequest::getCmd('view', 0);\n\n //The item_id of the request is already given as inputOrder by the calling function (controller). inputOrder could be manipulated by the\n //controller and so we must not use the request data here.\n $upd_items = vRequest::getVar('item_id', false);\n if ($upd_items) {\n\n //get tax calc_value of product VatTax\n $db = JFactory::getDBO();\n $sql = 'SELECT * FROM `#__virtuemart_order_calc_rules` WHERE `virtuemart_order_id` = \"' . $virtuemart_order_id . '\" ORDER BY virtuemart_order_item_id';\n $db->setQuery($sql);\n $orderCalcs = $db->loadObjectList();\n //vmdebug('$orderCalcs',$orderCalcs);\n $allTaxes = array();\n //$taxes = array();\n //$taxes['VatTax'] = array();\n $orderCalcRulesTable = $this->getTable('order_calc_rules');\n\n $data->order_salesPrice = 0.0;\n foreach ($inputOrder as $item_id => $order_item_data) {\n\n if (!empty($item_id) and !is_integer($item_id) and strpos($item_id, '0-') !== 0) continue; //Attention, we need the check against empty, else it continues for \"0\"\n //vmdebug('$order_item_data',$order_item_data);\n $order_item_data['current_order_status'] = $order_item_data['order_status'];\n if (!isset($order_item_data['comments'])) $order_item_data['comments'] = '';\n $order_item_data = (object)$order_item_data;\n $order_item_data->virtuemart_order_id = $virtuemart_order_id;\n $order_item_data->virtuemart_order_item_id = $item_id;\n //$this->updateSingleItem($order_item->virtuemart_order_item_id, $data->order_status, $order['comments'] , $virtuemart_order_id, $data->order_pass);\n if (empty($item_id)) {\n $inputOrder['comments'] .= ' ' . vmText::sprintf('COM_VIRTUEMART_ORDER_PRODUCT_ADDED', $order_item_data->order_item_name);\n }\n\n\n $toRemove = array();\n $taxes = array();\n if (empty($order_item_data->product_tax_id)) {\n $order_item_data->product_tax_id = array();\n } else if (!is_array($order_item_data->product_tax_id)) {\n $order_item_data->product_tax_id = array($order_item_data->product_tax_id);\n }\n\n foreach ($orderCalcs as $i => $calc) {\n\n if ($calc->virtuemart_order_item_id == $item_id) {\n $k = array_search($calc->virtuemart_calc_id, $order_item_data->product_tax_id);\n if ($k !== FALSE) {\n $calc->product_quantity = $order_item_data->product_quantity; //We need it later in the updateBill\n $taxes[$calc->calc_kind][$calc->virtuemart_calc_id] = $calc;\n unset($order_item_data->product_tax_id[$k]);\n } else if ($calc->calc_kind == 'VatTax' or $calc->calc_kind == 'Tax') {\n $toRemove[] = $calc->virtuemart_order_calc_rule_id;\n } else {\n $taxes[$calc->calc_kind][$calc->virtuemart_calc_id] = $calc;\n }\n }\n }\n\n if (!empty($order_item_data->product_tax_id)) {\n //$orderCalcRulesTable = $this->getTable('order_calc_rules');\n foreach ($order_item_data->product_tax_id as $pTaxId) {\n if (empty($pTaxId)) continue;\n $sql = 'SELECT * FROM `#__virtuemart_calcs` WHERE `virtuemart_calc_id` = \"' . $pTaxId . '\" ';\n $db->setQuery($sql);\n $newCalc = $db->loadObject();\n $newCalc->virtuemart_order_calc_rule_id = 0;\n $newCalc->virtuemart_order_id = $order_item_data->virtuemart_order_id;\n //$newCalc->virtuemart_vendor_id = $order_item_data->virtuemart_vendor_id;\n $newCalc->virtuemart_order_item_id = $item_id;\n $newCalc->calc_rule_name = $newCalc->calc_name;\n if (!empty($order_item_data->product_item_price)) {\n $newCalc->calc_amount = $order_item_data->product_item_price * $newCalc->calc_value * 0.01;\n } else {\n $newCalc->calc_amount = $order_item_data->product_final_price * (1 - 1 / ($newCalc->calc_value * 0.01 + 1));\n }\n $newCalc->calc_mathop = '+%';\n\n $orderCalcRulesTable->bindChecknStore($newCalc);\n vmdebug('added new tax', $newCalc->calc_amount, $newCalc);\n $taxes[$newCalc->calc_kind][$orderCalcRulesTable->virtuemart_calc_id] = $orderCalcRulesTable->loadFieldValues(false);\n\n vmdebug('added new tax', $taxes);\n }\n }\n\n\n foreach ($toRemove as $virtuemart_order_calc_rule_id) {\n\n $orderCalcRulesTable->delete($virtuemart_order_calc_rule_id);\n vmdebug('To remove ', $virtuemart_order_calc_rule_id);\n }\n\n $orderItemTable = $this->updateSingleItem($item_id, $order_item_data, true, $taxes, $data->virtuemart_user_id);\n //vmdebug('AFter updateSingleItem, my product_subtotal_with_tax',$order_item_data,$orderItemTable);\n\n foreach ($taxes as $kind) {\n foreach ($kind as $tax) {\n $allTaxes[] = $tax;\n }\n }\n\n $data->order_salesPrice += $orderItemTable->product_final_price * $orderItemTable->product_quantity;\n //vmdebug('update Order new order_salesPrice',$data->order_salesPrice,$order_item_data->product_final_price);\n $inputOrder[$item_id] = $order_item_data;\n }\n\n //$pre = &$allTaxes;\n $pseudoOrder = array('items' => $inputOrder, 'calc_rules' => $allTaxes);\n $pseudoOrder['details']['BT'] = $data;\n //vmdebug('my summarized rules $inputOrder before summarize',$inputOrder );\n $summarizedRules = shopFunctionsF::summarizeRulesForBill($pseudoOrder, false);\n //vmdebug('my summarized rules',$summarizedRules );\n\n //Determine ship/payment tax\n $idWithMax = 0;\n $maxValue = 0.0;\n if (!empty($summarizedRules['taxBill'])) {\n foreach ($summarizedRules['taxBill'] as $rule) {\n if ($rule->calc_kind == 'taxRulesBill' or $rule->calc_kind == 'VatTax') {\n if (empty($idWithMax) or $maxValue <= $rule->subTotal) {\n $idWithMax = $rule->virtuemart_calc_id;\n $maxValue = $rule->subTotal;\n }\n }\n }\n }\n\n $undhandled = array('shipment', 'payment');\n foreach ($undhandled as $calc_kind) {\n $keyN = 'order_' . $calc_kind;\n $keyNTax = $keyN . '_tax';\n //vmdebug('ShipPay Rules handling',$orderCalcs);\n\n //Find existing rule\n $rule = false;\n foreach ($orderCalcs as $i => $rul) {\n if ($rul->calc_kind == $calc_kind) {\n $rule = $rul;\n }\n }\n\n //Seems there was no rule set\n if (!$rule) {\n $ocrTable = $this->getTable('order_calc_rules');\n $rule = $ocrTable->loadFieldValues(false);\n\n $r = $summarizedRules['taxBill'][$idWithMax];\n $rule->virtuemart_calc_id = $r->virtuemart_calc_id;\n $rule->virtuemart_vendor_id = $r->virtuemart_vendor_id;\n $rule->calc_rule_name = $r->calc_rule_name;\n $rule->virtuemart_order_id = $r->virtuemart_order_id;\n $rule->calc_value = $r->calc_value;\n $rule->calc_mathop = $r->calc_mathop;\n $rule->calc_currency = $r->calc_currency;\n //$rule->virtuemart_calc_id = $r->virtuemart_calc_id;\n $rule->calc_kind = $calc_kind;\n vmdebug('ShipPay Rules handling rule missing', $orderCalcs, $rule, $r);\n\n //$ocrTable = $this->getTable('order_calc_rules');\n //$ocrTable->bindChecknStore($rule);\n }\n //$allTaxes[] = $rule;\n $data->{$keyN} = vRequest::getString($keyN, 0.0);\n\n //There is a VAT available\n /*\t\t\t\tif( (/*count($summarizedRules['taxBill'])==1 or * VmConfig::get('radicalShipPaymentVat',true)) and isset($summarizedRules['taxBill'][$idWithMax])){\n\t\t\t\t\t$r = $summarizedRules['taxBill'][$idWithMax];\n\n\t\t\t\t\t$rule->calc_amount = $data->$keyN * ($r->calc_value * 0.01 ) ;\n\t\t\t\t\t$data->$keyNTax = round(floatval($data->$keyNTax),5);\n\t\t\t\t\t$rule->calc_amount = round(floatval($rule->calc_amount), 5);\n\n\t\t\t\t\tif($data->$keyNTax != $rule->calc_amount or $rule->virtuemart_calc_id != $r->virtuemart_calc_id){\n\t\t\t\t\t\t//$data->$keyNTax = $rule->calc_amount;\n\t\t\t\t\t\t$rule->calc_rule_name = $r->calc_rule_name;\n\t\t\t\t\t\t$rule->virtuemart_order_id = $r->virtuemart_order_id;\n\t\t\t\t\t\t$rule->calc_value = $r->calc_value;\n\t\t\t\t\t\t$rule->calc_mathop = $r->calc_mathop;\n\t\t\t\t\t\t$rule->virtuemart_calc_id = $r->virtuemart_calc_id;\n\t\t\t\t\t\t//vmdebug('Updating rule '.$keyNTax,$data->$keyNTax,$rule,$r);\n\t\t\t\t\t\t$ocrTable = $this->getTable('order_calc_rules');\n\t\t\t\t\t\t$ocrTable->bindChecknStore($rule);\n\n\t\t\t\t\t}\n\n\t\t\t\t\t//$summarizedRules['taxBill'][$idWithMax]->subTotal += $rule->calc_amount;\n\t\t\t\t\t$data->$keyNTax = $rule->calc_amount;\n\t\t\t\t\t//vmdebug('Use radicalShipPaymentVat with $idWithMax '.$idWithMax,$summarizedRules['taxBill'][$idWithMax]->subTotal,$data->$keyNTax, $rule);\n\t\t\t\t} else { */\n $data->{$keyNTax} = 0.0;\n $t1 = 0.0;\n if (VmConfig::get('radicalShipPaymentVat', true)) {\n $r = $summarizedRules['taxBill'][$idWithMax];\n\n /*$rule->calc_amount = $data->$keyN * ($r->calc_value * 0.01 ) ;\n\t\t\t\t\t\t$data->$keyNTax = round(floatval($data->$keyNTax),5);\n\t\t\t\t\t\t$rule->calc_amount = round(floatval($rule->calc_amount), 5);\n\t\t\t\t\t\t$data->$keyNTax = $rule->calc_amount;*/\n $t1 = 0.0;\n $data->{$keyNTax} = $r->calc_value * 0.01 * $data->{$keyN};\n } else {\n foreach ($summarizedRules['taxBill'] as $in => $vatrule) {\n\n if (!empty($data->order_salesPrice)) {\n $t1 = $vatrule->calc_value * 0.01 * $vatrule->subTotal / $data->order_salesPrice;\n } else {\n $t1 = 0.0;\n }\n\n //vmdebug('ShipPay Rules store '.$vatrule->calc_value * 0.01.' * '. $vatrule->subTotal.'/'.$data->order_salesPrice.' = '.$t1);\n $data->{$keyNTax} += $t1 * $data->{$keyN};\n //$summarizedRules['taxBill'][$in]->calc_amount += $data->$keyNTax ;\n\n }\n }\n\n if ($data->{$keyNTax} != $rule->calc_amount) {\n $rule->calc_amount = $data->{$keyNTax};\n $rule->calc_value = $t1 * 100.0;\n //vmdebug('ShipPay Rules set',$rule);\n\n $ocrTable = $this->getTable('order_calc_rules');\n $ocrTable->bindChecknStore($rule);\n }\n // }\n //vmdebug('Add rule to $allTaxes',$rule);\n $allTaxes[] = $rule;\n //}\n\n } //*/\n\n $pseudoOrder = array('items' => $inputOrder, 'calc_rules' => $allTaxes);\n $pseudoOrder['details']['BT'] = $data;\n //vmdebug('my summarized rules $inputOrder before summarize',$inputOrder );\n $summarizedRules = shopFunctionsF::summarizeRulesForBill($pseudoOrder, true);\n\n $ocrTable = $this->getTable('order_calc_rules');\n foreach ($summarizedRules['taxBill'] as $r) {\n if ($r->calc_kind == 'payment' or $r->calc_kind == 'shipment') {\n $ocrTable->bindChecknStore($r);\n }\n }\n\n\n $this->calculatePaidByOS($data, $inputOrder);\n\n //prevents sending of email\n $inputOrder['customer_notified'] = 0;\n // invoice_locked should depend ideally on the existence of the invoice, but it would just be an extra query later, we do a new invoice anyway.\n if (VirtueMartModelInvoice::needInvoiceByOrderstatus($data->order_status) or VirtueMartModelInvoice::needInvoiceByOrderstatus($data->order_status, 'inv_osr', array('R'))) {\n $data->invoice_locked = 1;\n //vmdebug('SET LOCK');\n }\n\n $data->store();\n $this->updateBill($virtuemart_order_id, /*$vatTaxes,*/ $summarizedRules['taxBill']);\n } else {\n\n $update_lines = 1;\n if ($task === 'updatestatus' and $view === 'orders') {\n $lines = vRequest::getVar('orders');\n $update_lines = $lines[$virtuemart_order_id]['update_lines'];\n }\n\n if ($update_lines == 1) {\n\n $q = 'SELECT virtuemart_order_item_id\n\t\t\t\t\t\t\t\t\t\t\tFROM #__virtuemart_order_items\n\t\t\t\t\t\t\t\t\t\t\tWHERE virtuemart_order_id=\"' . $virtuemart_order_id . '\"';\n $db = JFactory::getDBO();\n $db->setQuery($q);\n $order_items = $db->loadObjectList();\n if ($order_items) {\n foreach ($order_items as $item_id => $order_item) {\n $this->updateSingleItem($order_item->virtuemart_order_item_id, $data);\n }\n }\n\n $this->calculatePaidByOS($data, $inputOrder);\n }\n //$data->invoice_locked = 0;\n $data->store();\n vmdebug('Going to store the order', $old_o_hash, $data->o_hash);\n }\n vmdebug('Update order status ');\n\n //Must be below the handling of the order items, else we must add an except as for \"customer_notified\"\n if (empty($inputOrder['comments'])) {\n $inputOrder['comments'] = '';\n } else {\n $inputOrder['comments'] = trim($inputOrder['comments']);\n }\n $invM = VmModel::getModel('invoice');\n //TODO use here needNewInvoiceNumber\n $inputOrder['order_status'] = $data->order_status;\n\n vmdebug('updateStatusForOneOrder, a new invoice needed? ', (int)$data->invoice_locked, $old_order_status, $data->order_status, $old_o_hash, $data->o_hash);\n\n if (!$data->invoice_locked and ($old_order_status != $data->order_status or $old_o_hash != $data->o_hash) and VirtueMartModelInvoice::isInvoiceToBeAttachByOrderstats($inputOrder['order_status'])) {\n\n $layout = 'invoice';\n $checkHash = true;\n //$refundOrderStatus = VmConfig::get('inv_osr',array('R'));\n //if(!in_array($old_order_status, $refundOrderStatus) and VirtueMartModelInvoice::needInvoiceByOrderstatus($inputOrder['order_status'],'inv_osr', array('R') )){\n if ($old_order_status != $data->order_status) {\n $checkHash = false;\n }\n\n if (VirtueMartModelInvoice::needInvoiceByOrderstatus($inputOrder['order_status'], 'inv_osr', array('R'))) {\n $layout = 'refund';\n }\n\n $inputOrder['o_hash'] = $data->o_hash;\n\n vmdebug('We need a new invoice ', $layout);\n $inputOrder['invoice_number'] = $invM->createReferencedInvoiceNumber($data->virtuemart_order_id, $inputOrder, $layout, $checkHash);\n }\n\n //We need a new invoice, therefore rename the old one.\n /*$inv_os = VmConfig::get('inv_os',array('C'));\n\t\tif(!is_array($inv_os)) $inv_os = array($inv_os);\n\t\tif($old_order_status!=$data->order_status and in_array($data->order_status,$inv_os)){\n\t\t\t//$this->renameInvoice($data->virtuemart_order_id);\n\t\t\tvmdebug('my input order here',$inputOrder);\n\t\t\t$inputOrder['invoice_number'] = $this->createReferencedInvoice($data->virtuemart_order_id);\n\t\t}*/\n\n /* Update the order history */\n //update order histories needs the virtuemart_order_id\n $inputOrder['virtuemart_order_id'] = $virtuemart_order_id;\n $this->updateOrderHistory($inputOrder);\n // When the plugins did not already notified the user, do it here (the normal way)\n //Attention the ! prevents at the moment that an email is sent. But it should used that way.\n // \t\t\tif (!$inputOrder['customer_notified']) {\n $this->notifyCustomer($data->virtuemart_order_id, $inputOrder);\n // \t\t\t}\n\n //VmConfig::importVMPlugins('vmcoupon');\n $dispatcher = JDispatcher::getInstance();\n $returnValues = $dispatcher->trigger('plgVmCouponUpdateOrderStatus', array($data, $old_order_status));\n if (!empty($returnValues)) {\n foreach ($returnValues as $returnValue) {\n if ($returnValue !== null) {\n return $returnValue;\n }\n }\n }\n\n\n return true;\n /*} else {\n\t\t\treturn false;\n\t\t}*/\n }", "public function travel_conditions_status() {\n\t\t$id = $this->uri->segment(4);\n\t\t$status = $this->uri->segment(5);\n\t\tCheckAdminLoginSession();\t\t\n\t\t$data['status'] = $status;\t\t\t\t \t \t\t \n\t\t$this->admin_model->setUpdateData($this->travel,$data,$id);\n\t\t$this->session->set_flashdata('message','Your status has been update successfully');\n\t\tredirect('admin/travel-conditions/lists','refresh');\t\t\n\t}", "public function update_status($order_id, $payment_status)\n\t{\n\t\t$new_status_id = static::get_status_id($payment_status);\n\n\t\t$order_updated = false;\n\t\t$check_status_query = tep_db_query(\"select customers_name, customers_email_address, orders_status, date_purchased from \" . TABLE_ORDERS . \" where orders_id = '\" . intval($order_id) . \"'\");\n\t\t$check_status = tep_db_fetch_array($check_status_query);\n\t\t$customer_notified = '0';\n\n\t\tif ( $new_status_id && $check_status['orders_status'] != $new_status_id ) \n\t\t{\n\t\t\tif ( $this->get_status_notify($payment_status) ) \n\t\t\t{\n\t\t\t\t$internal_status = $this->get_internal_status_name_from_id($new_status_id);\n\n\t\t\t\t$email = STORE_NAME . \"\\n\" .\n\t\t\t\t\t\"------------------------------------------------------\\n\" .\n\t\t\t\t\t'Order Number: ' . $order_id . \"\\n\" .\n\t\t\t\t\t'Detailed Invoice: ' . tep_href_link(\"account_history_info.php\", 'order_id=' . $order_id, 'SSL') . \"\\n\" .\n\t\t\t\t\t'Date Ordered: ' . tep_date_long($check_status['date_purchased']) . \"\\n\\n\" .\n\t\t\t\t\t'Your order has been updated to the following status.' . \"\\n\\n\" .\n\t\t\t\t\t'New status: ' . $internal_status . \"\\n\\n\" .\n\t\t\t\t\t'Please reply to this email if you have any questions.' . \"\\n\";\n\n\t\t\t\ttep_mail($check_status['customers_name'], $check_status['customers_email_address'], \"Order Update\", $email, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);\n\t\t\t\t$customer_notified = '1';\n\t\t\t}\n\n\t\t\t// Only update order status when order_status is different then the saved order_status\n\t\t\ttep_db_query(\"UPDATE orders SET orders_status = '\" . $new_status_id . \"', last_modified = now() WHERE orders_id = \" . intval($order_id));\n\t\t\t$this->add_order_history($order_id, $payment_status, $customer_notified);\n\t\t}\n\t}", "public function change_status(Request $request,$id)\n { \n Order::where('id',$id)->update([\n 'order_status'=>$request->order_status,\n 'updated_at'=>date('Y-m-d H:i:s')\n ]);\n Orderproduct::where('order_id',$id)->update([\n 'order_pro_status'=>$request->order_status\n ,'updated_at'=>date('Y-m-d H:i:s')\n ]);\n Session::flash('flash_message_success', 'Order updated successfully');\n return redirect()->back();\n }", "function updateCancel(){\n \n $idCheckout = $this->input->post('id_checkout');\n\n $sqlCancel = \"Update tb_order SET tb_order.order_status = 5 WHERE id_checkout = $idCheckout\";\n\n $queryCancel = $this->db->query($sqlCancel);\n\n if($queryCancel){\n $data['status'] = 200;\n $data['message'] = \"Successfully Update\";\n }\n else{\n $data['status'] = 404;\n $data['message'] =\"Failed Update\";\n }\n echo json_encode($data);\n }", "public function status_change_action(){\n\t $table = $this->input->post('table');\n\t $state = $this->input->post('state');\n\t $primary_field = $this->input->post('primary_field');\n\t $primary_key = $this->input->post('primary_key');\n\t if($state=='true'){\n\t $status = \"Y\";\n\t $status_text = \"Approved\";\n\t }else{\n\t $status = \"N\";\n\t $status_text = \"Rejected\";\n\t }\n\t $statusReturn = $this->common_model->update_row(array('fr_status'=>$status), array($primary_field=>$primary_key), $table);\n\t if($statusReturn){\n\t echo \"1\";\n\t }else{\n\t echo \"0\";\n\t }\n\t}", "public function change_status(Request $request,$id)\n {\n $order = OnlineOrder::where('id',$id)->first();\n $data = [\n 'status' => $request->status\n ];\n $order->update($data);\n Notification::insert( [\n 'notification_message'=> 'Your Order number'.' '.$order->id.' '.'status is'.' '.$order->status,\n 'user_id'=> $order->user_id,\n 'status' => 0\n ]);\n return redirect('/admin/pending_orders')->with('message','The order status has been Added successfully');\n }", "public function change_status() {\n\n $id = $this->input->post('id');\n $status = $this->input->post('status');\n\n $data['is_active'] = $status;\n\n $this->db->where('id', $id);\n $this->db->update('template_pola', $data);\n }", "public static function fetch_order_status() {\n $order_id = wc_get_order( $_POST['order_id'] );\n $order_key = OmisePluginHelperWcOrder::get_order_key_by_id( $order_id );\n\n if ( ! wp_verify_nonce( $_POST['nonce'], $order_key ) ) {\n die ( 'Busted!');\n }\n\n wp_send_json_success( array( 'order_status' => $order_id->get_status() ) );\n }", "public function hookActionOrderStatusUpdate()\n {\n $idOrder = Order::getOrderByCartId($this->context->cart->id);\n $order = CaTools::getOrderDetailsCoach($idOrder);\n\n if ((empty($order['id_code_action']) || empty($order['id_employee'])) &&\n (!empty($order['code_action']) && !empty($order['coach']))\n ) {\n // Correspondance entre le coach et le code action en id correspondant\n $id_coach = $this->getIdCoach($order['coach']);\n $id_code_action = $this->getIdCodeAction($order['code_action']);\n\n if (empty($id_code_action)) {\n $data = array(\n 'id_code_action' => '',\n 'name' => pSQL($order['code_action']),\n 'description' => pSQL($order['code_action']),\n 'groupe' => 2\n );\n\n Db::getInstance()->insert('code_action', $data);\n }\n\n $id_code_action = $this->getIdCodeAction($order['code_action']);\n\n // Si il y a les id, on met à jour la commande passé avec les id coach et code_action\n if (!empty($id_coach) && !empty($id_code_action)) {\n $req = 'UPDATE `' . _DB_PREFIX_ . 'orders`\n SET `id_employee` = ' . (int)$id_coach . ', `id_code_action` = ' . (int)$id_code_action . '\n WHERE `id_order` = ' . (int)$idOrder;\n\n Db::getInstance()->execute($req);\n }\n }\n }", "function update_status() {\n global $order;\n if ($this->enabled && ((int) constant(\"MODULE_PAYMENT_CGP_\" . $this->module_cgp_text . \"_ZONE\") > 0)) {\n $check_flag = false;\n $check_query = tep_db_query(\"select zone_id from \" . TABLE_ZONES_TO_GEO_ZONES . \" where geo_zone_id = '\" . constant(\"MODULE_PAYMENT_CGP_\" . $this->module_cgp_text . \"_ZONE\") . \"' and zone_country_id = '\" . $order->delivery['country']['id'] . \"' order by zone_id\");\n while ($check = tep_db_fetch_array($check_query)) {\n if ($check['zone_id'] < 1) {\n $check_flag = true;\n break;\n } else if ($check['zone_id'] == $order->delivery['zone_id']) {\n $check_flag = true;\n break;\n }\n }\n \n if (! $check_flag) {\n $this->enabled = false;\n }\n }\n }", "public static function update_pre_order_status( $order, $new_status, $message = '' ) {\n\n\t\tif ( ! $new_status )\n\t\t\treturn;\n\n\t\tif ( ! is_object( $order ) )\n\t\t\t$order = new WC_Order( $order );\n\n\t\t$old_status = get_post_meta( $order->id, '_wc_pre_orders_status', true );\n\n\t\tif ( $old_status == $new_status )\n\t\t\treturn;\n\n\t\tif ( ! $old_status )\n\t\t\t$old_status = 'new';\n\n\t\tupdate_post_meta( $order->id, '_wc_pre_orders_status', $new_status );\n\n\t\t// actions for status changes\n\t\tdo_action( 'wc_pre_order_status_' . $new_status, $order->id, $message );\n\t\tdo_action( 'wc_pre_order_status_' . $old_status . '_to_' . $new_status, $order->id, $message );\n\t\tdo_action( 'wc_pre_order_status_changed', $order->id, $old_status, $new_status, $message );\n\n\t\t// add order note\n\t\t$order->add_order_note( $message . sprintf( __( 'Pre-Order status changed from %s to %s.', WC_Pre_Orders::TEXT_DOMAIN ), $old_status, $new_status ) );\n\t}", "public function updateStatus()\n {\n $this->Invoice->updateInvoiceStatus($this->input->post('id'));\n }", "function wpmantis_get_status_translation()\n{\n\t$options = get_option('wp_mantis_options');\n\textract($options);\n\t$client = new SoapClient($mantis_soap_url);\n\ttry\n\t{\t\n\t\t$results = $client->mc_enum_status($mantis_user, $mantis_password);\n\t\t\n\t\tforeach ($results as $result)\n\t\t{\n\t\t\t\t$id = $result->id;\n\t\t\t\t$name = $result->name;\n\t\t\t\t\n\t\t\t\t$mantis_statuses[$id] = $name;\n\t\t}\n\t\t$options['mantis_statuses'] = $mantis_statuses;\n\t\tupdate_option('wp_mantis_options', $options);\n\t\t\n\t\t?>\n <div id=\"message\" class=\"updated fade\">\n <p><?php _e('Options saved.', 'wp-mantis'); ?></p>\n </div>\n <?php\n\t}\n\tcatch(SoapFault $e)\n\t{\n\t\tthrow $e;\n\t\t?>\n <div id=\"message\" class=\"error fade\">\n <p><?php printf(__('Error: %s', 'wp-mantis'), $e->getMessage()); ?></p>\n </div>\n <?php\n\t}\n}", "function tep_set_product_status($products_id, $status) {\n if ($status == '1') {\n return tep_db_query(\"update \" . TABLE_PRODUCTS . \" set products_status = '1', products_last_modified = now() where products_id = '\" . $products_id . \"'\");\n } elseif ($status == '2') {\n return tep_db_query(\"update \" . TABLE_PRODUCTS . \" set products_status = '2', products_last_modified = now() where products_id = '\" . $products_id . \"'\");\n } elseif ($status == '0') {\n return tep_db_query(\"update \" . TABLE_PRODUCTS . \" set products_status = '0', products_last_modified = now() where products_id = '\" . $products_id . \"'\");\n } elseif ($status == '3') {\n return tep_db_query(\"update \" . TABLE_PRODUCTS . \" set products_status = '3', products_last_modified = now() where products_id = '\" . $products_id . \"'\");\n } else {\n return -1;\n }\n}", "function change_status_to() {\n $stat_param = array(\n 'status' => $this->uri->segment(3)\n );\n $id = $this->uri->segment(4);\n $updt_status = $this->guest_post_model->change_status_to('newsletter', $stat_param, $id);\n if ($updt_status) {\n $this->session->set_userdata('success_msg', 'Status Updated susseccfully.');\n } else {\n $this->session->set_userdata('error_msg', 'Cannot update status.');\n }\n redirect('news_letter_cont');\n }", "protected function _fcpoSetOrderStatus() {\n $blIsAmazonPending = $this->_oFcpoHelper->fcpoGetSessionVariable('fcpoAmazonPayOrderIsPending');\n $blOrderOk = $this->_fcpoValidateOrderAgainstProblems();\n\n if ($blIsAmazonPending) {\n $this->_setOrderStatus('PENDING');\n $this->oxorder__oxfolder = new oxField('ORDERFOLDER_PROBLEMS', oxField::T_RAW);\n $this->save();\n } elseif ($blOrderOk === true) {\n // updating order trans status (success status)\n $this->_setOrderStatus('OK');\n } else {\n $this->_setOrderStatus('ERROR');\n }\n }", "function olc_set_product_status($products_id, $status) {\n\tif ($status == '1' || $status == '0') {\n\t\t$status = SQL_UPDATE . TABLE_PRODUCTS . \" set products_status = '\".$status.\"',\n\t\t\tproducts_last_modified = now() where products_id = '\" . $products_id . APOS;\n\t\treturn olc_db_query($status );\n\t} else {\n\t\treturn -1;\n\t}\n}", "function update_vdotestimonial_status($vdo_testimonial_id,$vdo_testimonial_status)\n {\n if($vdo_testimonial_status==0)\n {\n $new_stat=\"1\";\n }\n elseif($vdo_testimonial_status==1)\n {\n $new_stat=\"0\";\n }\n $query = $this->db->query(\"UPDATE tbl_testimonial SET testimonial_status = '$new_stat' WHERE testimonial_id='$vdo_testimonial_id'\");\n //echo $this->db->last_query();\n }", "function receive_update($order_id, $status)\n{\n\n // Edit here\n\n\n if($success)\n return true;\n else\n return false;\n\n}", "function change_status_to() {\n $stat_param = array(\n 'status' => $this->uri->segment(3)\n );\n $id = $this->uri->segment(4);\n $updt_status = $this->news_letter_model->change_status_to('newsletter', $stat_param, $id);\n if ($updt_status) {\n $this->session->set_userdata('success_msg', 'Status Updated susseccfully.');\n } else {\n $this->session->set_userdata('error_msg', 'Cannot update status.');\n }\n redirect('news_letter_cont');\n }", "function update_organiser_status(){\r\n\t\t$this->organiser_model->update_organiser_status($_POST['status'],$_POST['organiser_id']);\r\n\t\t$this->send_status_email($_POST['status'],$_POST['organiser_id']);\r\n\t\techo \"1\";exit;\r\n\t}", "public function hookpostUpdateOrderStatus($params)\n {\n $orderid = $params['id_order'];\n $order = new Order((int)$orderid);\n $statusid = ($order)? $order->current_state : '';\n if ($statusid == Configuration::get('PS_OS_SHIPPING') || $statusid == Configuration::get('PS_OS_DELIVERED')) {\n // For Shipment confirmation\n if ($statusid == Configuration::get('PS_OS_SHIPPING')) {\n $isActivate = $this->isRulesetActive('shipment_confirmation');\n }\n // For On Delivery confirmation\n if ($statusid == Configuration::get('PS_OS_DELIVERED')) {\n $isActivate = $this->isRulesetActive('on_delivery_confirmation');\n }\n if ($isActivate != null && $isActivate != '' && $this->smsAPI != null && $this->smsAPI != '') {\n $address = new Address((int)$order->id_address_delivery);\n if ($order) {\n $address = new Address((int)$order->id_address_delivery);\n $legendstemp = $this->replaceOrderLegends(\n $isActivate[0]['template'],\n $order,\n $address\n );\n // Use send SMS API here\n $legendstemp = preg_replace('/<br(\\s+)?\\/?>/i', \"\\n\", $legendstemp);\n $postAPIdata = array(\n 'label' => $isActivate[0]['label'],\n 'sms_text' => $legendstemp,\n 'source' => '21000',\n 'sender_id' => $isActivate[0]['senderid'],\n 'mobile_number' => $address->phone_mobile\n );\n $this->sendSMSByAPI($postAPIdata);\n Onehopsmsservice::onehopSaveLog($statusid, $legendstemp, $address->phone_mobile);\n }\n }\n }\n }", "public function status()\t{\n\t\t\t$this->veiculo->update($this->input->post('id'), array('veiculo_status' => $this->input->post('status')));\n\t\t}", "public function update(){\n\n $sql = 'UPDATE fullorder SET ';\n $sql .= 'Status = \"' . $this->__get('Status') . '\"';\n if ($this->__get('Status') == 'Delivered') {\n $date = date('Y-m-d');\n $time = $date . '' . time();\n $sql .= ', OrderDeliverTime = NOW() ';\n }\n $sql .= 'WHERE OrderID =' . $this->__get('OrderID');\n $con = $this->openconnection();\n $stmt = $con->prepare($sql);\n $stmt = $stmt->execute(); \n $con = null;\n if(!$stmt){\n //echo \"FROM MODEL <br>\";\n return false;\n } else {\n //echo \"FROM MODELllll true<br>\" . $lastId;\n return true;\n \n }\n }", "public function updateOrder() {\n\n echo \"ok\";\n }", "public function update_status()\n\t{\n\t\t$product_id = $this->input->post('product_id');\n\t\t$data = array('is_active' => $this->input->post('is_active'));\n\n\t\t$update = $this->products->update($product_id, $data);\n\n\t\tif ($update)\n\t\t{\n\t\t\tif ($this->input->post('is_active') == 1)\n\t\t\t{\n\t\t\t\techo 'true';\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\techo 'false';\n\t\t\t}\n\t\t}\n\t}", "public function change_promocode_status_global(){\n\t\tif(count($_POST['checkbox_id']) > 0 && $_POST['statusMode'] != ''){\n\t\t\t$this->promocode_model->activeInactiveCommon(PROMOCODE,'_id');\n\t\t\tif (strtolower($_POST['statusMode']) == 'delete'){\n\t\t\t\t$this->setErrorMessage('success','Coupon Code deleted successfully','admin_coupon_code_delete_success');\n\t\t\t}else {\n\t\t\t\t$this->setErrorMessage('success','Coupon Code status changed successfully','admin_coupon_code_status_change');\n\t\t\t}\n\t\t\tredirect(ADMIN_ENC_URL.'/promocode/display_promocode');\n\t\t}\n\t}", "function MyShop_OrderSave($args) {\n global $_TABLES;\n\n $sql = \"UPDATE {$_TABLES['myshop_order']} SET \"\n . \"status = 'on' \" \n . \"WHERE orderid = '{$args['orderid']}'\";\n DB_query($sql);\n}", "public function createStatus()\n {\n $name = [\n 'en' => 'Pending payment PaySto',\n 'ru' => 'В ожидании оплаты PaySto'\n ];\n \n $order_state = new OrderState();\n foreach (ToolsModulePPM::getLanguages(false) as $l) {\n $order_state->name[$l['id_lang']] = (\n isset($name[$l['iso_code']])\n ? $name[$l['iso_code']]\n : $name['en']\n );\n }\n \n $order_state->template = '';\n $order_state->send_email = 0;\n $order_state->module_name = $this->name;\n $order_state->invoice = 0;\n $order_state->color = '#4169E1';\n $order_state->unremovable = 0;\n $order_state->logable = 0;\n $order_state->delivery = 0;\n $order_state->hidden = 0;\n $order_state->shipped = 0;\n $order_state->paid = 0;\n $order_state->pdf_invoice = 0;\n $order_state->pdf_delivery = 0;\n $order_state->deleted = 0;\n $result = $order_state->save();\n ConfPPM::setConf('status_paysto', $order_state->id);\n return $result;\n }", "function set_product_status($products_id, $status) {\n\t\tif ($status == '1') {\n\t\t\treturn olc_db_query(\"update \".TABLE_PRODUCTS.\" set products_status = '1', products_last_modified = now() where products_id = '\".$products_id.\"'\");\n\t\t}\n\t\telseif ($status == '0') {\n\t\t\treturn olc_db_query(\"update \".TABLE_PRODUCTS.\" set products_status = '0', products_last_modified = now() where products_id = '\".$products_id.\"'\");\n\t\t} else {\n\t\t\treturn -1;\n\t\t}\n\t}", "function updateLocationStatus($IDLocation)\n{\n\n $strSeparator = '\\'';\n $locUpdatedStatus = 0;\n //count how much Order in that Location\n $queryCountLoc = 'SELECT COUNT(FK_IDLoc) FROM orderedsnow WHERE FK_IDLoc =' . $strSeparator . $IDLocation . $strSeparator;\n require_once 'model/dbConnector.php';\n $locTotalOrder = executeQuerySelect($queryCountLoc);\n if ($locTotalOrder === null) {\n throw new SiteUnderMaintenanceExeption;\n }\n //Count how much OrderStatus is at 1 in that location\n $queryCountOrder = 'SELECT COUNT(FK_IDLoc) FROM orderedsnow WHERE OrderStatus = 1 AND FK_IDLoc =' . $strSeparator . $IDLocation . $strSeparator;\n require_once 'model/dbConnector.php';\n $locRendu = executeQuerySelect($queryCountOrder);\n if ($locRendu === null) {\n throw new SiteUnderMaintenanceExeption;\n }\n //if the 2 number are equal set the Location to 2\n\n\n if ($locTotalOrder == $locRendu) {\n $locUpdatedStatus = 2;\n } elseif ($locRendu > 0 && $locRendu < $locTotalOrder) {\n $locUpdatedStatus = 1;\n }\n\n //replace actual locStatus if needed\n if ($locUpdatedStatus != 0) {\n $queryUpdate = 'UPDATE locations SET LocStatus=' . $strSeparator . $locUpdatedStatus . $strSeparator . ' WHERE IDLoc =' . $strSeparator . $IDLocation . $strSeparator;\n $queryResult = executeQueryUpdate($queryUpdate);\n if ($queryResult === null) {\n throw new SiteUnderMaintenanceExeption;\n }\n }\n}", "public function change_product_status(){\r\n\t\tif ($this->checkLogin('A') == ''){\r\n\t\t\tredirect('admin');\r\n\t\t}else {\r\n\t\t\t$mode = $this->uri->segment(4,0);\r\n\t\t\t$product_id = $this->uri->segment(5,0);\r\n\t\t\t$status = ($mode == '0')?'UnPublish':'Publish';\r\n\t\t\t$newdata = array('status' => $status);\r\n\t\t\t$condition = array('id' => $product_id);\r\n\t\t\t$this->product_model->update_details(PRODUCT,$newdata,$condition);\r\n\t\t\t$this->setErrorMessage('success','Product Status Changed Successfully');\r\n\t\t\tredirect('admin/product/display_product_list');\r\n\t\t}\r\n\t}", "public function changeStatus($id, $status){ \n $this->upd(\"orders\", array(\"status\" => $status), array(\"order_id\" => $id));\n }", "function wv_update_commission_status($oid,$pid,$sts){\n \n update_post_meta($oid,'woo_commision_status_'.$pid,$sts);\n \n \n }", "public function change_product_status_global(){\r\n\r\n\t\tif($_POST['checkboxID']!=''){\r\n\r\n\t\t\tif($_POST['checkboxID']=='0'){\r\n\t\t\t\tredirect('admin/product/add_product_form/0');\r\n\t\t\t}else{\r\n\t\t\t\tredirect('admin/product/add_product_form/'.$_POST['checkboxID']);\r\n\t\t\t}\r\n\r\n\t\t}else{\r\n\t\t\tif(count($_POST['checkbox_id']) > 0 && $_POST['statusMode'] != ''){\r\n\t\t\t\t$data = $_POST['checkbox_id'];\r\n\t\t\t\tif (strtolower($_POST['statusMode']) == 'delete'){\r\n\t\t\t\t\tfor ($i=0;$i<count($data);$i++){\r\n\t\t\t\t\t\tif($data[$i] == 'on'){\r\n\t\t\t\t\t\t\tunset($data[$i]);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tforeach ($data as $product_id){\r\n\t\t\t\t\t\tif ($product_id!=''){\r\n\t\t\t\t\t\t\t$old_product_details = $this->product_model->get_all_details(PRODUCT,array('id'=>$product_id));\r\n\t\t\t\t\t\t\t$this->update_old_list_values($product_id,array(),$old_product_details);\r\n\t\t\t\t\t\t\t$this->update_user_product_count($old_product_details);\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\t$this->product_model->activeInactiveCommon(PRODUCT,'id');\r\n\t\t\t\tif (strtolower($_POST['statusMode']) == 'delete'){\r\n\t\t\t\t\t$this->setErrorMessage('success','Product records deleted successfully');\r\n\t\t\t\t}else {\r\n\t\t\t\t\t$this->setErrorMessage('success','Product records status changed successfully');\r\n\t\t\t\t}\r\n\t\t\t\tredirect('admin/product/display_product_list');\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public function hookActionOrderStatusUpdate($params)\n {\n if (!empty($params['id_order'])) {\n $lastOrderStatus = OrderHistory::getLastOrderState($params['id_order']);\n $config = Tools::jsonDecode(Configuration::get('KB_PUSH_NOTIFICATION'), true);\n if (!empty($config) && isset($config['module_config']['enable'])) {\n if (!empty($lastOrderStatus)) {\n $order = new Order($params['id_order']);\n $current_order_status = $params['newOrderStatus']->id;\n $old_order_status = $order->current_state;\n $module_config = $config['module_config'];\n $id_shop = $params['cart']->id_shop;\n $id_lang = $params['cart']->id_lang;\n if ($module_config['enable'] && $module_config['enable_order_status']) {\n $orderStatus_old = new OrderState($old_order_status, $id_lang);\n $orderStatus_new = new OrderState($current_order_status, $id_lang);\n $current_status = $orderStatus_new->name;\n $old_status = $orderStatus_old->name;\n $id_guest = Db::getInstance()->getValue('SELECT id_guest FROM `'._DB_PREFIX_.'guest` WHERE `id_customer` ='.(int)$params['cart']->id_customer);\n $reg_id = KbPushSubscribers::getSubscriberRegIDs($id_guest, $id_shop);\n\n if (empty($reg_id)) {\n $id_guest = $params['cart']->id_guest;\n $reg_id = KbPushSubscribers::getSubscriberRegIDs($id_guest, $id_shop);\n }\n if (!empty($reg_id) && count($reg_id) > 0) {\n $reg_id = $reg_id[count($reg_id)-1]['reg_id'];\n $fcm_setting = Tools::jsonDecode(Configuration::get('KB_PUSH_FCM_SERVER_SETTING'), true);\n if (!empty($fcm_setting)) {\n $fcm_server_key = $fcm_setting['server_key'];\n $headers = array(\n 'Authorization:key=' . $fcm_server_key,\n 'Content-Type:application/json'\n );\n $id_template = KbPushTemplates::getNotificationTemplateIDByType(self::KBPN_ORDER_STATUS_UPDATE);\n if (!empty($id_template)) {\n $fields = array();\n $fields = $this->getNotificationPushData($id_template, $id_lang, $id_shop);\n if (!empty($fields)) {\n $kbTemplate = new KbPushTemplates($id_template, false, $id_shop);\n $message = '';\n if (isset($fields['data']['body'])) {\n $message = $fields['data']['body'];\n if ($kbTemplate->notification_type == self::KBPN_ORDER_STATUS_UPDATE) {\n $orderTotal = $order->getOrdersTotalPaid();\n $orderTotal = Tools::displayPrice($orderTotal);\n $message = str_replace('{{kb_order_reference}}', $order->reference, $message);\n $message = str_replace('{{kb_order_amount}}', $orderTotal, $message);\n $message = str_replace('{{kb_order_before_status}}', $old_status, $message);\n $message = str_replace('{{kb_order_after_status}}', $current_status, $message);\n $fields['data']['body'] = $message;\n }\n }\n $is_sent = 1;\n $push_id = $this->savePushNotification($kbTemplate, $is_sent, array($reg_id));\n if (!empty($push_id)) {\n $fields['to'] = $reg_id;\n $fields[\"data\"][\"base_url\"] = $this->getBaseUrl();\n $fields[\"data\"][\"click_url\"] = $this->context->link->getModuleLink($this->name, 'serviceworker', array('action' => 'updateClickPush'), (bool) Configuration::get('PS_SSL_ENABLED'));\n $fields[\"data\"]['push_id'] = $push_id;\n $result = $this->sendPushRequestToFCM($headers, $fields);\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }", "public function changeOrderStatus(Order $order, Request $request)\n\t{\n\n\t\ttry\n\t\t{\n\t\t\t$data = request()->all();\n\t\t\t\t\n\t\t\t \n\t\t\tif(isset($data['id']))\n\t\t\t{\n\t\t\t\tif($data['value'] == 5) {\n\t\t\t\t\tfor ($i=0; $i<count($request->id); $i++)\n\t\t\t\t\t{\n\t\t\t\t\t\t$this->Order->where('id',$request->id[$i])->update(['order_status_id' => $data['value'],'delivered_date'=>date('Y-m-d')]);\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tfor ($i=0; $i<count($request->id); $i++)\n\t\t\t\t\t{\n\t\t\t\t\t\t$this->Order->where('id',$request->id[$i])->update(['order_status_id' => $data['value']]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\n\t\t\t\t$message = $this->success($this->updated,'Oder');\n\t\t\t\t$cnt = $this->orderCount();\n\t\t\t\treturn response()->json(['orderStatus' => $status ,'pId'=> $request->id,'cnt' => $cnt ,'message' => $message]);\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tcatch (\\Exception $e) {\n\t\t\tdd($e);\n\t\t\treturn $this->debugLog($e->getMessage());\n\t\t}\n\t}", "function update_order($order_id){\n $date = date('Y-m-d H:i:s'); \n $data =['status'=>'completed','order_date'=>$date];\n $this->db->where(\"order_id\", $order_id);\n $this->db->update(\"orders\",$data);\n // echo $this->db->last_query();\n return $this->db->affected_rows();\n }", "function musth_restws_change_order_status($order, $new_status) {\n\n if ($new_status == 'checkout_complete') {\n\n // The following check is needed to see if the order can change status to\n // checkout_complete\n if (!commerce_checkout_complete_access($order)) {\n // We can't change status\n // Actually we shouldn't have any problem because the check is based on\n // the status itself, but you never know, there could me more requirements to meet\n\n watchdog('musth_restws', 'W3E078 The given order cant access checkout completion (!o) ',\n array('!o' => print_r($order, true)),\n WATCHDOG_ERROR);\n\n return FALSE;\n }\n\n }\n\n // What about the commerce api commerce_checkout_order_can_checkout? Why don't we use it?\n // We don't because it checks if an order has at least one line item\n // We trust Angular with this check\n\n // Just in case, let's refresh the order before changing status\n if ($order->status == 'cart')\n commerce_cart_order_refresh($order);\n\n // We are skipping the save because the order will be saved later\n commerce_order_status_update($order, $new_status, TRUE);\n\n if ($new_status == 'checkout_complete') {\n // Staring the process that will complete the order checkout and put it in\n // the 'pending' status\n // The checkout completion rules will run\n commerce_checkout_complete($order);\n }\n\n return TRUE;\n}", "public function action_order(Order $order, $status) {\n // dd($status);\n if($status == 3){\n $order_id = $order->id;\n $order_items = OrderItem::where('order_id' , $order_id)->get();\n for($i = 0; $i < count($order_items); $i++){\n $count = $order_items[$i]['count'];\n $product_id = $order_items[$i]['product_id'];\n if ($order->status == 2) {\n $product = Product::find($product_id);\n $product->update(['remaining_quantity' => $product->remaining_quantity + $count, 'sold_count' => $product->sold_count - $count]);\n if ($order_items[$i]['option_id'] != 0) {\n $m_option = ProductMultiOption::find($order_items[$i]['option_id']);\n $m_option->update(['remaining_quantity' => $m_option->remaining_quantity + $count, 'sold_count' => $m_option->sold_count - $count]);\n }\n }\n \n\n // $product->save();\n }\n }\n\n if($status == 2){\n $order_id = $order->id;\n $order_items = OrderItem::where('order_id' , $order_id)->get();\n for($i = 0; $i < count($order_items); $i++){\n $count = $order_items[$i]['count'];\n $product_id = $order_items[$i]['product_id'];\n $product = Product::find($product_id);\n $product->sold_count = $product->sold_count + $count;\n $product->save();\n if ($order_items[$i]['option_id'] != 0) {\n $m_option = ProductMultiOption::find($order_items[$i]['option_id']);\n $m_option->update(['sold_count' => (int)$m_option->sold_count + $count]);\n }\n }\n }\n\n $order->update(['status' => (int)$status]);\n\n\n return redirect()->back();\n }", "function store_order_status_name($status)\n {\n if ('new' === $status) {\n return lang('store.new');\n }\n\n return $status;\n }", "public function update_status_promo($id, $status)\n {\n $this->db->update('ofertas_negocios', array('ofertaActivacion'=>$status), array('ofertaId'=>$id));\n }", "function uc_order_view_update_form_submit($form, &$form_state) {\n global $user;\n\n if (!empty($form_state['values']['order_comment'])) {\n uc_order_comment_save($form_state['values']['order_id'], $user->uid, $form_state['values']['order_comment'], 'order', $form_state['values']['status'], $form_state['values']['notify']);\n }\n\n if (!empty($form_state['values']['admin_comment'])) {\n uc_order_comment_save($form_state['values']['order_id'], $user->uid, $form_state['values']['admin_comment']);\n }\n\n if ($form_state['values']['status'] != $form_state['values']['current_status']) {\n if (uc_order_update_status($form_state['values']['order_id'], $form_state['values']['status'])) {\n if (empty($form_state['values']['order_comment'])) {\n uc_order_comment_save($form_state['values']['order_id'], $user->uid, '-', 'order', $form_state['values']['status'], $form_state['values']['notify']);\n }\n }\n }\n\n // Let Rules send email if requested.\n if ($form_state['values']['notify']) {\n $order = uc_order_load($form_state['values']['order_id']);\n rules_invoke_event('uc_order_status_email_update', $order);\n }\n\n drupal_set_message(t('Order updated.'));\n}", "public function changeStatus(ChangeStatusOrderRequest $request)\n {\n $idOrder = $request->input('id');\n //get current status\n $currentStatus = Order::find($idOrder)->status;\n $newStatus = $request->input('status');\n if ($currentStatus == $this::CANCEL) {\n return redirect_errors('Order canceled cannot changer status!');\n }\n if ($currentStatus == $this::PENDING && $newStatus > $this::DELIVERING) {\n return redirect_errors('Order is Pending can only changer Cancel or Delivering status!');\n }\n if (\n $currentStatus == $this::DELIVERING && $newStatus > $this::DELIVERED &&\n $newStatus < $this::DELIVERING && $newStatus != $this::CANCEL\n ) {\n return redirect_errors('Order is Delivering can only changer Cancel or Delivered status!');\n }\n if (\n $currentStatus == $this::DELIVERED &&\n $newStatus < $this::DELIVERED && $newStatus != $this::CANCEL\n ) {\n return redirect_errors('Order is Delivered can only changer Cancel or Charged status!');\n }\n if ($currentStatus == $this::CHARGED) {\n return redirect_errors('Order charged cannot changer status!');\n }\n $model = new Order();\n DB::beginTransaction();\n try {\n $order = $model->find(intval($idOrder));\n $order->status = intval($newStatus);\n $order->save();\n //if cancel then qty return\n if ($newStatus == $this::CANCEL) {\n $model = new Order();\n $order = $model->viewOrder($idOrder);\n $details = $order['order']['detail'];\n foreach ($details as $detail) {\n $qtyReturn = ($detail['quantity']);\n $currentQty = Cd::find($detail['product_id'])->quantity;\n $currentBuyTime = Cd::find($detail['product_id'])->buy_time;\n Cd::find($detail['product_id'])->update([\n 'quantity' => $currentQty + $qtyReturn,\n 'buy_time' => $currentBuyTime + $qtyReturn\n ]);\n }\n// $customer=User::find('user_id');\n// if(is_null($customer)){\n//\n// }\n// Mail::send('auth.message_order', ['name' => 'you'],\n// function ($message) use ($data) {\n// $message\n// ->to($data['email'], $data['name'])\n// ->from('[email protected]')\n// ->subject('Your order canceled!');\n// });\n }\n DB::commit();\n return redirect()->back()->with('success', 'Updated status');\n } catch (\\Exception $e) {\n DB::rollback();\n return redirect_errors('Updated Fails!');\n }\n }", "public function status()\n {\n if (!$this->config->get('onego_status') || !$this->user->hasPermission('modify', 'sale/order')) {\n $this->response->setOutput('');\n return;\n }\n \n $this->language->load('total/onego');\n \n $orderId = (int) $this->request->get['order_id'];\n $operations = OneGoTransactionsLog::getListForOrder($orderId);\n foreach ($operations as $row) {\n if ($row['success'] && empty($statusSuccess)) {\n $statusSuccess = $row;\n break;\n } else if (!$row['success'] && empty($statusFailure)) {\n $statusFailure = $row;\n }\n }\n if (!empty($statusSuccess)) {\n if ($statusSuccess['operation'] == OneGoSDK_DTO_TransactionEndDto::STATUS_DELAY) {\n // delayed transaction\n $expiresOn = strtotime($statusSuccess['inserted_on']) + $statusSuccess['expires_in'];\n if ($expiresOn <= time()) {\n // transaction expired\n $this->data['onego_status_success'] = sprintf(\n $this->language->get('transaction_status_expired'), date('Y-m-d H:i:s', $expiresOn));\n } else {\n // transaction delayed\n $this->data['onego_status_success'] = sprintf(\n $this->language->get('transaction_status_delayed'), \n date('Y-m-d H:i', strtotime($statusSuccess['inserted_on'])),\n date('Y-m-d H:i:s', $expiresOn));\n \n // enable transaction completion actions\n $this->data['onego_allow_status_change'] = true;\n $confirmStatuses = OneGoConfig::getArray('confirmOnOrderStatus');\n $cancelStatuses = OneGoConfig::getArray('cancelOnOrderStatus');\n $this->data['confirm_statuses'] = $confirmStatuses;\n $this->data['cancel_statuses'] = $cancelStatuses;\n $this->data['onego_btn_confirm'] = $this->language->get('button_confirm_transaction');\n $this->data['onego_btn_cancel'] = $this->language->get('button_cancel_transaction');\n $this->data['onego_btn_delay'] = $this->language->get('button_delay_transaction');\n\n }\n } else {\n $this->data['onego_status_success'] = sprintf(\n $this->language->get('transaction_status_'.strtolower($statusSuccess['operation'])),\n date('Y-m-d H:i', strtotime($statusSuccess['inserted_on'])));\n }\n } \n if (!empty($statusFailure)) {\n $this->data['onego_status_failure'] = sprintf(\n $this->language->get('transaction_operation_failed'),\n date('Y-m-d H:i', strtotime($statusFailure['inserted_on'])),\n $statusFailure['operation'],\n $statusFailure['error_message']);\n } else if (empty($statusSuccess)) {\n $this->data['onego_status_undefined'] = $this->language->get('transaction_status_undefined');\n }\n $this->data['onego_status'] = $this->language->get('onego_status');\n $this->data['order_id'] = $orderId;\n $this->data['token'] = $this->session->data['token'];\n\n $this->data['confirm_confirm'] = $this->language->get('confirm_transaction_confirm');\n $this->data['confirm_cancel'] = $this->language->get('confirm_transaction_cancel');\n $this->data['delay_periods'] = $this->language->get('delay_period');\n $this->data['delay_for_period'] = $this->language->get('delay_for_period');\n $this->data['confirm_delay'] = $this->language->get('confirm_transaction_delay');\n $this->data['status_will_confirm'] = $this->language->get('transaction_will_confirm');\n $this->data['status_will_cancel'] = $this->language->get('transaction_will_cancel');\n \n $this->template = 'total/onego_status.tpl';\n $this->response->setOutput($this->render());\n }", "function update_status() \n\t{\n global $order, $db;\n\n if ( ($this->enabled == true) && ((int)MODULE_PAYMENT_PAYCO_ZONE > 0) ) {\n $check_flag = false;\n $check = $db->Execute(\"select zone_id from \" . TABLE_ZONES_TO_GEO_ZONES . \" where geo_zone_id = '\" \n\t\t. MODULE_PAYMENT_PAYCO_ZONE . \"' and zone_country_id = '\" . $order->billing['country']['id'] . \"' order by zone_id\");\n while (!$check->EOF) {\n if ($check->fields['zone_id'] < 1) {\n $check_flag = true;\n break;\n } elseif ($check->fields['zone_id'] == $order->billing['zone_id']) {\n $check_flag = true;\n break;\n }\n $check->MoveNext();\n }\n\n if ($check_flag == false) {\n $this->enabled = false;\n }\n }\n }", "public function changepackagerenewStatus()\n\t{\n\t\t\n\t\t$this->Checklogin();\n\t\t$status=$this->input->post('id');\n\t\t$package_id=$this->input->post('package_id');\n \n \n\t\t$idlist=implode(\",\",$package_id);\n\t\t\n\t\tif ($status == 0 || $status == 1)\n\t\t{\n\t\t\t$a=$this->package_model->changepackagerenewStatus($status,$package_id);\n\t\t\t\n\t\t\tif ($status == 0)\n\t\t\t{\n\t\t\t\tsetSAActivityLogs('Transaction_activity','SAPackagerenew_status',\"Updates Status Deactivated :- \".$idlist);\n if(count($package_id)>1)\n { \n\t\t\t\t $this->session->set_flashdata('success','Packages has been deactivated successfully');\n\t\t\t }\n else\n {\n $this->session->set_flashdata('success','Package has been deactivated successfully'); \n }\n } else\n\t\t\t{\n\t\t\t\tsetSAActivityLogs('Transaction_activity','SAPackagerenew_status',\"Updates Status Activated :- \".$idlist);\n if(count($package_id)>1)\n { \n\t\t\t\t $this->session->set_flashdata('success','Packages has been activated successfully');\n\t\t\t }\n else\n {\n $this->session->set_flashdata('success','Package has been activated successfully'); \n } \n }\n\t\t\techo true;\n\t\t} else\n\t\t{\n\t\t\t\n\t\t\t$this->session->set_flashdata('error','Something went wrong');\n\t\t\techo true;\n\t\t}\n\t\n\t}", "function get_all_woo_status_ps_sms_for_product_admin()\n{\n if (!function_exists('wc_get_order_statuses'))\n return;\n $statuses = wc_get_order_statuses() ? wc_get_order_statuses() : array();\n $opt_statuses = array();\n\n foreach ((array) $statuses as $status_val => $status_name) {\n $opt_statuses[substr($status_val, 3)] = $status_name;\n }\n $opt_statuses['low'] = __('کم بودن موجودی انبار', 'persianwoosms');\n $opt_statuses['out'] = __('تمام شدن موجودی انبار', 'persianwoosms');\n return $opt_statuses;\n}", "function changeOrderStatus($IDLocation, $snowCode)\n{\n $strSeparator = '\\'';\n $query = 'UPDATE orderedsnow SET OrderStatus = 1 WHERE FK_IDLoc =' . $strSeparator . $IDLocation . $strSeparator . ' AND FK_IDSnow=' . $strSeparator . $snowCode . $strSeparator;\n require \"model/dbConnector.php\";\n $queryResult = executeQueryUpdate($query);\n if ($queryResult === null) {\n throw new SiteUnderMaintenanceExeption;\n }\n updateLocationStatus($IDLocation);\n}", "public function change_promocodes_status(){\n\t\tif ($this->checkLogin('A') == ''){\n\t\t\tredirect(ADMIN_PATH);\n\t\t}else {\n\t\t\t$mode = $this->uri->segment(4,0);\n\t\t\t$promocode_id = $this->uri->segment(5,0);\n\t\t\t$status = ($mode == '0')?'Inactive':'Active';\n\t\t\t$newdata = array('status' => $status);\n\t\t\t$condition = array('id' => $promocode_id);\n\t\t\t$this->promocodes_model->update_details(PROMOCODES,$newdata,$condition);\n\t\t\t$this->setErrorMessage('success','Promocode Status Changed Successfully');\n\t\t\tredirect(ADMIN_PATH.'/promocodes/display_promocodes');\n\t\t}\n\t}", "public function testUpdateOrder()\n {\n }", "public function updateConfirmedInward($data_confirm, $data_update_po, $qc_id, $purc_order_id){\n\t\t $this->db->where(\"qc_id\", $qc_id);\n\t\t $this->db->where(\"qc_status\", 'Pending');\n\t\t $this->db->update(\"purchase_confirm_list\", $data_confirm); \n\t\t $this->db->limit(1);\n\t\t $affectedRows = $this->db->affected_rows();\n\t\t if($affectedRows > 0 ){\n\t\t\t\tif($data_confirm['qc_status'] == 'Confirmed'){\n\t\t\t\t\t// update the total inward in purchase order products for the PO with pid\n\t\t\t\t\t$this->db->set('total_inword', 'total_inword+'.$data_update_po['total_inword_qty'], FALSE);\n\t\t\t\t\t$this->db->where(\"id\", $data_update_po['prod_ref_id']); \n\t\t\t\t\t$this->db->update(\"purchase_order_products\"); \n\t\t\t\t\t$this->db->limit(1);\n\t\t\t\t\t// check for the PO is completed or not. If completed update status to \"Completed\"\n\t\t\t\t\t// SELECT (`purchase_qty` - `total_inword`) AS balance FROM `purchase_order_products` WHERE `purc_order_id` =9 GROUP BY `purchase_pid` HAVING balance >0\n\t\t\t\t\t$this->db->select('(`purchase_qty` - `total_inword`) AS balance');\n\t\t\t\t\t$this->db->from('purchase_order_products');\n\t\t\t\t\t$this->db->where(\"purc_order_id\", $purc_order_id);\n\t\t\t\t\t$this->db->group_by('purchase_pid');\n\t\t\t\t\t$this->db->having('balance > \"0\" ');\n\t\t\t\t\t$query_products_pending = $this->db->get();\n\t\t\t\t\tif($query_products_pending->num_rows() == 0){\n\t\t\t\t\t\t$order_status['status'] = 'Completed';\n\t\t\t\t\t\t$this->db->where(\"purc_order_id\", $purc_order_id);\n\t\t\t\t\t\t$this->db->update(\"purchase_orders\", $order_status);\n\t\t\t\t\t\t$this->db->limit(1);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t// notify to store person\n\t\t\t\t\t$this->load->model('Orders_model', 'orders_model'); \t\t\n\t\t\t\t\t$notificationDataArray = array();\n\t\t\t\t\t$today = date(\"Y-m-d\");\n\t\t\t\t\t$notificationDataArray['uid'] = $data_update_po['notify_to'];\n\t\t\t\t\t$notificationDataArray['message_text'] = 'A product is confirmed by QC Dept. for the order '.$data_update_po['purc_order_number'].'. The lot # is '.$data_confirm['lot_no'];\n\t\t\t\t\t$notificationDataArray['added_on'] = $today;\n\t\t\t\t\t$notificationDataArray['reminder_date'] = $today;\n\t\t\t\t\t$notificationDataArray['read_flag'] = 'Pending';\n\t\t\t\t\t$this->orders_model->add_notification($notificationDataArray);\n\t\t\t\t\t\n\t\t\t\t}else if($data_confirm['qc_status'] == 'Rejected'){\n\t\t\t\t\t// notify to store person\n\t\t\t\t\t$this->load->model('Orders_model', 'orders_model'); \t\t\n\t\t\t\t\t$notificationDataArray = array();\n\t\t\t\t\t$today = date(\"Y-m-d\");\n\t\t\t\t\t$notificationDataArray['uid'] = $data_update_po['notify_to'];\n\t\t\t\t\t$notificationDataArray['message_text'] = 'A product is Rejected by QC Dept. for the order #'.$data_update_po['purc_order_number'];\n\t\t\t\t\t$notificationDataArray['added_on'] = $today;\n\t\t\t\t\t$notificationDataArray['reminder_date'] = $today;\n\t\t\t\t\t$notificationDataArray['read_flag'] = 'Pending';\n\t\t\t\t\t$this->orders_model->add_notification($notificationDataArray);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t \treturn 1;\n\t\t\t\n\t\t }else {\n\t\t \treturn 0;\n\t\t }\n\t}", "function changeStatus($detail) {\r\n\r\n $cid = $detail['cid'];\r\n\r\n $n = count($detail['cid']);\r\n $db = JFactory::getDBO();\r\n $task = JRequest::getCmd('task');\r\n if ($task == \"unpublish\") {\r\n $publish = 0;\r\n } else {\r\n $publish = 1;\r\n }\r\n for ($i = 0; $i < $n; $i++) {\r\n //update the status to the table.\r\n $query = \"UPDATE #__em_paymentmethod set status=\" . $publish . \"\r\n WHERE id = \" . $cid[$i];\r\n $db->setQuery($query);\r\n $result = $db->loadResult();\r\n }\r\n return $result;\r\n }", "public function update_rtl_status(Request $request)\n {\n foreach($request->language_status as $lang_id){\n $language = Language::findOrFail($lang_id);\n if (!empty($request->status) && array_key_exists($lang_id, $request->status)){\n $language->rtl = 1;\n }else{\n $language->rtl = 0;\n }\n $language->save();\n }\n return back()->with('success', translate('RTL status updated successfully'));\n\n }", "function changeMenuStatus($id){\n $menuinfo = array();\n $menuinfo = $this->getMenu($id);\n $status = $menuinfo['status'];\n if($status =='active'){\n \n $data = array('status' => 'inactive');\n $this->db->where('id', id_clean($id));\n $this->db->update('adminmenu', $data);\n \n }else{\n \n $data = array('status' => 'active');\n $this->db->where('id', id_clean($id));\n $this->db->update('adminmenu', $data);\n }\n \n }", "public function updateOrderStatus($id_order_state, $id_order)\r\n {\r\n $order_state = new OrderState($id_order_state);\r\n\r\n if (!Validate::isLoadedObject($order_state)) {\r\n $this->errors[] = sprintf(Tools::displayError('Order status #%d cannot be loaded'), $id_order_state);\r\n } else {\r\n $order = new Order((int) $id_order);\r\n if (!Validate::isLoadedObject($order)) {\r\n $this->errors[] = sprintf(Tools::displayError('Order #%d cannot be loaded'), $id_order);\r\n } else {\r\n $current_order_state = $order->getCurrentOrderState();\r\n if ($current_order_state->id == $order_state->id) {\r\n $this->errors[] = sprintf(Tools::displayError('Order #%d has already been assigned this status.', $id_order));\r\n } else {\r\n $history = new OrderHistory();\r\n $history->id_order = $order->id;\r\n $history->id_employee = (int) (isset(Context::getContext()->employee->id)) ? Context::getContext()->employee->id : 0;\r\n\r\n $use_existings_payment = !$order->hasInvoice();\r\n $history->changeIdOrderState((int) $order_state->id, $order, $use_existings_payment);\r\n\r\n $carrier = new Carrier($order->id_carrier, $order->id_lang);\r\n $templateVars = array();\r\n if ($history->id_order_state == Configuration::get('PS_OS_SHIPPING') && $order->shipping_number) {\r\n $templateVars = array('{followup}' => str_replace('@', $order->shipping_number, $carrier->url));\r\n }\r\n\r\n if ($history->addWithemail(true, $templateVars)) {\r\n if (Configuration::get('PS_ADVANCED_STOCK_MANAGEMENT')) {\r\n foreach ($order->getProducts() as $product) {\r\n if (StockAvailable::dependsOnStock($product['product_id'])) {\r\n StockAvailable::synchronize($product['product_id'], (int) $product['id_shop']);\r\n }\r\n }\r\n }\r\n } else {\r\n $this->errors[] = sprintf(Tools::displayError('Cannot change status for order #%d.'), $id_order);\r\n }\r\n }\r\n }\r\n }\r\n }", "public function get_status_translation() {\n\t\t$code = $this->status ?: ShipmentStatus::STATUS_PENDING;\n\t\tif ( ! array_key_exists( $code, static::$status_translations ) ) {\n\t\t\treturn $code;\n\t\t}\n\n\t\treturn __( static::$status_translations[ $code ], 'packlink-pro-shipping' );\n\t}", "public function changeOrderStatus(Request $req){\n Orders::find($req->order_id)->update([\n 'status' => $req->status\n ]);\n return response()->json(\"Đã lưu\");\n }", "public function updateStatuses()\n {\n $affected = DB::update('UPDATE los_orders SET status_code=1 WHERE status_code=0 AND order_date IN (SELECT provide_date FROM los_lunchdates WHERE orders_placed IS NOT NULL)');\n $affected = DB::update('UPDATE los_orders SET status_code=0 WHERE status_code=1 AND order_date IN (SELECT provide_date FROM los_lunchdates WHERE orders_placed IS NULL)');\n }", "protected function _setDefaultOrderStatuses() {\n $completedOrderStatusId = $this->registry->get('model_extension_payment_' . $this->_getPaymentMethodCode())->getOrderStatusByName($this->language->get('completed_order_status'));\n $failedOrderStatusId = $this->registry->get('model_extension_payment_' . $this->_getPaymentMethodCode())->getOrderStatusByName($this->language->get('cancelled_order_status'));\n $partialRefundedOrderStatusId = $this->registry->get('model_extension_payment_' . $this->_getPaymentMethodCode())->getOrderStatusByName($this->language->get('partial_refunded_order_status'));\n $refundedOrderStatusId = $this->registry->get('model_extension_payment_' . $this->_getPaymentMethodCode())->getOrderStatusByName($this->language->get('refunded_order_status'));\n\n if ($completedOrderStatusId) {\n $this->registry->get('model_extension_payment_' . $this->_getPaymentMethodCode())->addSettingValue('payment_'.$this->_getPaymentMethodCode(), 'payment_'.$this->_getPaymentMethodCode().'_order_completed_status_id', $completedOrderStatusId, $this->config->get('config_store_id'));\n }\n if ($failedOrderStatusId) {\n $this->registry->get('model_extension_payment_' . $this->_getPaymentMethodCode())->addSettingValue('payment_'.$this->_getPaymentMethodCode(), 'payment_'.$this->_getPaymentMethodCode().'_order_failed_status_id', $failedOrderStatusId, $this->config->get('config_store_id'));\n }\n if ($partialRefundedOrderStatusId) {\n $this->registry->get('model_extension_payment_' . $this->_getPaymentMethodCode())->addSettingValue('payment_'.$this->_getPaymentMethodCode(), 'payment_'.$this->_getPaymentMethodCode().'_order_partial_refunded_status_id', $partialRefundedOrderStatusId, $this->config->get('config_store_id'));\n }\n if ($refundedOrderStatusId) {\n $this->registry->get('model_extension_payment_' . $this->_getPaymentMethodCode())->addSettingValue('payment_'.$this->_getPaymentMethodCode(), 'payment_'.$this->_getPaymentMethodCode().'_order_refunded_status_id', $refundedOrderStatusId, $this->config->get('config_store_id'));\n }\n $this->cache->delete(\"order_status.\" . (int)$this->config->get('config_language_id'));\n }", "public function changepackageStatus()\n\t{\n\t\t\n\t\t\n\t\t$this->Checklogin();\n\t\t$status=$this->input->post('id');\n\t\t$package_id=$this->input->post('package_id');\n\t\t$idlist=implode(\",\",$package_id);\n\t\tif ($status == 0 || $status == 1)\n\t\t{\n\t\t\t$a=$this->package_model->changepackageStatus($status,$package_id);\n\t\t\t\n\t\t\tif ($status == 0)\n\t\t\t{\n\t\t\t\tsetSAActivityLogs('Transaction_activity','SAPackage_status',\"Updates Status Deactivated :- \".$idlist);\n\n\t\t\t\t\tif(count($package_id)>1)\n\t\t\t\t\t{\t\n\t\t\t\t\t\t\t$this->session->set_flashdata('success','Packages has been deactivated successfully');\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\t$this->session->set_flashdata('success','Package has been deactivated successfully');\n\t\t\t\t\t}\t\n\t\t\t} \n\t\t\telse\n\t\t\t{\n\t\t\t\tsetSAActivityLogs('Transaction_activity','SAPackage_status',\"Updates Status Activated :- \".$idlist);\n\n\t\t\t\t\tif(count($package_id)>1)\n\t\t\t\t\t{\n\t\t\t\t\t\t\t$this->session->set_flashdata('success','Packages has been activated successfully');\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\t$this->session->set_flashdata('success','Package has been activated successfully');\n\t\t\t\t\t}\t\t\n\t\t\t}\n\t\t\techo true;\n\t\t} else\n\t\t{\n\t\t\t\n\t\t\t$this->session->set_flashdata('error','Something went wrong');\n\t\t\techo true;\n\t\t}\n\t\n\t}", "function update_about_status($about_id,$about_status)\n {\n if($about_status==0)\n {\n $new_stat=\"1\";\n }\n elseif($about_status==1)\n {\n $new_stat=\"0\";\n }\n $query = $this->db->query(\"UPDATE tbl_about SET about_status = '$new_stat' WHERE about_id='$about_id'\");\n //echo $this->db->last_query();\n }", "public function updateStatus() {\n $ref = ORM::forTable('referrals')\n ->findOne($this->data['id']);\n if ($this->data['status'] == 'Assigned' && $this->data['route_id']) {\n $route = ORM::forTable('estimate_routes')\n ->findOne($this->data['route_id']);\n $assignedReferralsCount = ORM::forTable('referrals')\n ->select('id')\n ->where('route_id', $route->id)\n ->count();\n $ref->route_id = $this->data['route_id'];\n $ref->status = 'Assigned';\n $ref->route_order = $assignedReferralsCount;\n\n } elseif ($this->data['status'] == 'Pending') {\n $ref->status = 'Pending';\n $ref->route_order = 0;\n $ref->route_id = NULL;\n } else {\n $ref->status = $this->data['status'];\n }\n if ($ref->save()) {\n $this->renderJson([\n 'success' => true,\n 'message' => 'Job request status updated successfully'\n ]);\n } else {\n $this->renderJson([\n 'success' => false,\n 'message' => 'An error has occurred while saving job request'\n ]);\n }\n }", "public function status_update()\n {\n if (!$this->input->is_ajax_request()) {\n exit('No direct script access allowed');\n }\n \n if ($this->input->server('REQUEST_METHOD') != 'POST') {\n show_ajax_error('403', lang('error_message_forbidden'));\n }\n \n $id = $this->input->post('id',TRUE);\n $status = $this->input->post('status',TRUE);\n if (empty($id) || empty($status)) {\n show_ajax_error('404', lang('error_message'));\n }\n \n $result = $this->cms_page_model->as_array()->get($id);\n if (empty($result)) {\n show_ajax_error('404', lang('error_message'));\n }\n \n $status = ($status == \"true\") ? 1 : 0;\n if ($this->cms_page_model->update($id, array('status' => $status))) {\n if ($status) {\n set_ajax_flashdata('success', lang('status_enabled'));\n } else {\n set_ajax_flashdata('success', lang('status_disabled'));\n }\n } else {\n set_ajax_flashdata('error', lang('error_message'));\n }\n }", "function jx_mark_delivered_status_for_courier_traspost()\r\n\t{\r\n\t\t$user=$this->erpm->auth();\r\n\t\t\r\n\t\tif(!$_POST)\r\n\t\t\tdie();\r\n\t\t\r\n\t\t$send_log_id=$this->input->post('send_log_id');\r\n\t\t$invoices_list=$this->input->post('delivered');\r\n\t\t$received_by=$this->input->post('received_by');\r\n\t\t$received_on=$this->input->post('received_on');\r\n\t\t$contact_no=$this->input->post('contact_no');\r\n\t\t\r\n\t\tif($invoices_list)\r\n\t\t{\r\n\t\t\tforeach($invoices_list as $i=>$incoice)\r\n\t\t\t{\r\n\t\t\t\t$param=array();\r\n\t\t\t\t$param['sent_log_id']=$send_log_id;\r\n\t\t\t\t$param['invoice_no']=$incoice;\r\n\t\t\t\t$param['status']=3;\r\n\t\t\t\t$param['received_by']=$received_by[$i];\r\n\t\t\t\t$param['received_on']=$received_on[$i];\r\n\t\t\t\t$param['contact_no']=$contact_no[$i];\r\n\t\t\t\t$param['logged_on']=cur_datetime();\r\n\t\t\t\t$param['logged_by']=$user['userid'];\r\n\t\t\t\t\r\n\t\t\t\t$already=$this->db->query(\"select count(*) as ttl from pnh_invoice_transit_log where invoice_no=? and status=3\",array($incoice))->row()->ttl;\r\n\t\t\t\tif(!$already)\r\n\t\t\t\t{\r\n\t\t\t\t\t$this->db->insert('pnh_invoice_transit_log',$param);\r\n\t\t\t\t\t$this->session->set_flashdata(\"erp_pop_info\",\"Selected invoices status to be updated\");\r\n\t\t\t\t}else{\r\n\t\t\t\t\t$this->session->set_flashdata(\"erp_pop_info\",\"Selected invoices status already updated\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\tredirect($_SERVER['HTTP_REFERER']);\r\n\t}", "public function changeOrderStatus(Request $request){\n $status = Order::where('order_id', $request->id)->first();\n if($status){\n if($status->status == 1){\n DB::table($request->table)->where('id', $request->id)->update(['status' => 0]);\n }else{\n DB::table($request->table)->where('id', $request->id)->update(['status' => 1]);\n }\n $output = array( 'status' => true, 'message' => 'Status update successful.');\n }else{\n $output = array( 'status' => false, 'message' => 'Status can\\'t update.!');\n }\n return response()->json($output);\n }", "function yamoney_update_transaction_status($ymid, $status) {\n return !!db_query('UPDATE {yamoney_transaction} SET status = \"%s\" WHERE ymid = %d', $status, $ymid);\n}", "public function update_all_status_promo($id_negocio, $status)\n {\n $this->db->update('ofertas_negocios', array('ofertaActivacion'=>$status), array('idNegocioOferta'=>$id_negocio));\n }", "public function cancel($order_id) {\n\n $sql = \"select *\n\n from orders\n\n inner join products\n on orders.product_id = products.id\n where orders.id = ?\";\n\n\n $fields = array(\n\n 'id' => $order_id\n\n );\n\n\n $query = $this->db->query($sql, $fields);\n\n if($query->count()) {\n\n $product_id = $query->first()->product_id;\n $current_stock = $query->first()->product_stock;\n\n $order_quantity = $query->first()->quantity;\n\n $new_stock_level = $current_stock + $order_quantity;\n\n\n //update the products table\n\n\n $fields = array(\n\n 'product_stock' => $new_stock_level\n\n );\n\n var_dump($fields);\n\n\n $update =$this->db->update('products', $fields, array('id', '=', $product_id));\n\n if($update) {\n\n echo \"updated\";\n }\n\n\n //$update = $this->db->update('products', $fields, array('id', '=', $product_id ));\n\n\n\n\n }\n\n\n\n $fields = array(\n\n 'status' => 2\n\n );\n\n $cancel = $this->db->update('orders', $fields, array('id', '=', $order_id));\n\n if($cancel) {\n\n session::flash(\"success\", \"Order Cancelled\");\n\n echo \"cancelled\";\n\n return true;\n }\n\n\n return false;\n }", "public function respon(){\n //update 'status'\n }", "function updateStatus($newstatus)\n\t\t{\n\t\t\tglobal $wpdb;\n\n\t\t\tif(empty($this->id))\n\t\t\t\treturn false;\n\n\t\t\t$this->status = $newstatus;\n\t\t\t$this->sqlQuery = \"UPDATE $wpdb->pmpro_membership_orders SET status = '\" . esc_sql($newstatus) . \"' WHERE id = '\" . $this->id . \"' LIMIT 1\";\n\t\t\tif($wpdb->query($this->sqlQuery) !== false)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}", "public function kembali($id,$status){\n return $this->db->where('id',$id)->update($this->transaction,$data);\n }", "function update_status($controle, $status){\n $status = $status == '1' ? 2 : $status;\n \n if($status == 2){\n sendGo4You($controle);\n }\n \n $c_query = \"UPDATE CAIXACUPOM SET \";\n $c_query .= \" STATUS_GO4YOU = '$status' \";\n $c_query .= \" WHERE CAIXACUPOM_CONTROLE = '$controle' \";\n $res = mysql_query($c_query,$con);\n}" ]
[ "0.71445847", "0.7066309", "0.68726814", "0.6851445", "0.68438596", "0.6800024", "0.6783931", "0.67612064", "0.67566115", "0.673354", "0.6707243", "0.66439176", "0.6621868", "0.6572211", "0.6546183", "0.6512743", "0.650429", "0.64897215", "0.6483934", "0.642679", "0.6409346", "0.64040864", "0.6398449", "0.63763124", "0.63705707", "0.63625306", "0.63554716", "0.6349923", "0.6348088", "0.63135695", "0.63134456", "0.6313199", "0.63074374", "0.62999165", "0.62963986", "0.62932277", "0.6286294", "0.62824404", "0.62748206", "0.6264339", "0.6258097", "0.6258052", "0.6238793", "0.6237726", "0.6233006", "0.6226787", "0.6221243", "0.6220787", "0.6198634", "0.61806834", "0.61793625", "0.6172867", "0.61560124", "0.61431867", "0.61193943", "0.61174697", "0.6113331", "0.6095274", "0.6089875", "0.60895866", "0.60872173", "0.6082754", "0.6081236", "0.60741276", "0.6066038", "0.6065049", "0.60626787", "0.605779", "0.605543", "0.60528225", "0.6047312", "0.60469323", "0.6037528", "0.60276747", "0.60162705", "0.6016072", "0.6009508", "0.6006547", "0.5999524", "0.5995751", "0.59943604", "0.5990226", "0.5987874", "0.59832513", "0.59816474", "0.5980021", "0.59750307", "0.59739053", "0.5971523", "0.5969356", "0.59567755", "0.59507424", "0.5949905", "0.59492356", "0.5944627", "0.59303236", "0.5920365", "0.59184694", "0.5913633", "0.5909932" ]
0.6136183
54
It maps the statuses from mundipagg and those used in opencart
public function translateStatusFromMP($response) { $statusFromMP = strtolower($response->status); $this->openCart->load->model('localisation/order_status'); $statusModel = $this->openCart->model_localisation_order_status; switch ($statusFromMP) { case 'paid': $status = $statusModel->getOrderStatus(2)['order_status_id']; break; case 'pending': $status = $statusModel->getOrderStatus(1)['order_status_id']; break; case 'canceled': $status = $statusModel->getOrderStatus(7)['order_status_id']; break; case 'failed': $status = $statusModel->getOrderStatus(10)['order_status_id']; break; default: $status = false; } return $status; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected function getStatusesInfos();", "abstract public static function getStatuses();", "public static function arrayStatuses() {\n\n /*\n $statuses = array(\n 'all' => array(\n 'label' => __( 'All', WPXSMARTSHOP_TEXTDOMAIN ),\n 'count' => 0\n ),\n 'publish' => array(\n 'label' => __( 'Publish', WPXSMARTSHOP_TEXTDOMAIN ),\n 'count' => 0\n ),\n 'trash' => array(\n 'label' => __( 'Trash', WPXSMARTSHOP_TEXTDOMAIN ),\n 'count' => 0\n )\n );*/\n $statuses = array(\n 'all' => array(\n 'label' => __( 'All', WPXSMARTSHOP_TEXTDOMAIN ),\n 'count' => 0\n ),\n WPXSMARTSHOP_ORDER_STATUS_PENDING => array(\n 'label' => __( 'Pending', WPXSMARTSHOP_TEXTDOMAIN ),\n 'count' => 0\n ),\n WPXSMARTSHOP_ORDER_STATUS_CONFIRMED => array(\n 'label' => __( 'Confirmed', WPXSMARTSHOP_TEXTDOMAIN ),\n 'count' => 0\n ),\n WPXSMARTSHOP_ORDER_STATUS_CANCELLED => array(\n 'label' => __( 'Cancelled', WPXSMARTSHOP_TEXTDOMAIN ),\n 'count' => 0\n ),\n WPXSMARTSHOP_ORDER_STATUS_DEFUNCT => array(\n 'label' => __( 'Defunct', WPXSMARTSHOP_TEXTDOMAIN ),\n 'count' => 0\n ),\n 'trash' => array(\n 'label' => __( 'Trash', WPXSMARTSHOP_TEXTDOMAIN ),\n 'count' => 0\n )\n );\n return $statuses;\n }", "function wpmantis_get_status_translation()\n{\n\t$options = get_option('wp_mantis_options');\n\textract($options);\n\t$client = new SoapClient($mantis_soap_url);\n\ttry\n\t{\t\n\t\t$results = $client->mc_enum_status($mantis_user, $mantis_password);\n\t\t\n\t\tforeach ($results as $result)\n\t\t{\n\t\t\t\t$id = $result->id;\n\t\t\t\t$name = $result->name;\n\t\t\t\t\n\t\t\t\t$mantis_statuses[$id] = $name;\n\t\t}\n\t\t$options['mantis_statuses'] = $mantis_statuses;\n\t\tupdate_option('wp_mantis_options', $options);\n\t\t\n\t\t?>\n <div id=\"message\" class=\"updated fade\">\n <p><?php _e('Options saved.', 'wp-mantis'); ?></p>\n </div>\n <?php\n\t}\n\tcatch(SoapFault $e)\n\t{\n\t\tthrow $e;\n\t\t?>\n <div id=\"message\" class=\"error fade\">\n <p><?php printf(__('Error: %s', 'wp-mantis'), $e->getMessage()); ?></p>\n </div>\n <?php\n\t}\n}", "function getStatusNames() {\n\t\treturn array(\n\t\t\tEXPORT_STATUS_ANY => __('plugins.importexport.common.status.any'),\n\t\t\tEXPORT_STATUS_NOT_DEPOSITED => __('plugins.importexport.common.status.notDeposited'),\n\t\t\tEXPORT_STATUS_MARKEDREGISTERED => __('plugins.importexport.common.status.markedRegistered'),\n\t\t\tEXPORT_STATUS_REGISTERED => __('plugins.importexport.common.status.registered'),\n\t\t);\n\t}", "function getStatusList() {\n $statusList = array();\n foreach (Constants::$statusNames as $id => $name) {\n $statusList[$id] = \"$id - $name\";\n }\n return $statusList;\n}", "function convertResolutionStatus($status) {\n switch ($status) {\n case 'pending':\n return 'Pending';\n break;\n case 'passed':\n return 'Passed';\n break;\n case 'failed':\n return 'Failed';\n break;\n case 'in_session':\n return 'In Session';\n break;\n case 'shelved':\n return 'Shelved';\n break;\n }\n}", "function getStatus() {\n \t\n \t$status = array();\n \n $sql = \"SELECT COUNT(*) as num_contact FROM mp_pile WHERE `statut` = 'a_contacter'\";\n $sel = mysql_query($sql);\n $result = mysql_fetch_array($sel);\n \n $status[\"to_contact\"] = $result['num_contact'];\n\n $sql = \"SELECT COUNT(*) as num_contact FROM mp_pile WHERE `statut` = 'contacte'\";\n $sel = mysql_query($sql);\n $result = mysql_fetch_array($sel);\n \n $status[\"contacted\"] = $result['num_contact'];\n \n $sql = \"SELECT COUNT(*) as num_contact FROM mp_pile WHERE `statut` = 'a_rappeler'\";\n $sel = mysql_query($sql);\n $result = mysql_fetch_array($sel);\n \n $status[\"call_back\"] = $result['num_contact'];\n \n $sql = \"SELECT COUNT(*) as num_contact FROM mp_pile WHERE `statut` = 'termine'\";\n $sel = mysql_query($sql);\n $result = mysql_fetch_array($sel);\n \n $status[\"deleted\"] = $result['num_contact'];\n \n $sql = \"SELECT COUNT(*) as num_motif FROM mp_activation_motifs\";\n $sel = mysql_query($sql);\n $result = mysql_fetch_array($sel);\n\n $status[\"number_motif\"] = $result['num_motif'];\n \n \n return $status;\n }", "function getUserStatus(){\n\t\t//$org_id=$this->session->userdata('organisation_id');\n\t\t//$qry=$this->db->where( 'organisation_id', $org_id );\n\t\t//---\n\t\t$qry=$this->db->get('user_statuses');\n\t\t$count=$qry->num_rows();\n\t\t\t$s= $qry->result_array();\n\t\t\n\t\t\tfor($i=0;$i<$count;$i++){\n\t\t\t\n\t\t\t$status[$s[$i]['id']]=$s[$i]['name'];\n\t\t\t}\n\t\t\treturn $status;\n\t}", "function edds_payment_status_labels( $statuses ) {\n\t$statuses['preapproval'] = __( 'Preapproved', 'edds' );\n\t$statuses['preapproval_pending'] = __( 'Preapproval Pending', 'edds' );\n\t$statuses['cancelled'] = __( 'Cancelled', 'edds' );\n\treturn $statuses;\n}", "function adleex_resource_filter_status($statuses){\n\t$new_statuses = array(\n 'draft' => $statuses['draft'],\n 'pending' => $statuses['pending'],\n 'publish' => $statuses['publish'],\n 'closed' => $statuses['closed'],\n );\n\t\n\treturn $new_statuses;\n}", "public static function status()\n {\n return [\n 'ati' => 'Ativo',\n 'ina' => 'Inativo'\n ];\n }", "public function getStatusList()\n {\n return ['0' => __('修改'), '1' => __('提议'), '2' => __('新增'), '3' => __('废止')];\n }", "function get_all_woo_status_ps_sms_for_product_admin()\n{\n if (!function_exists('wc_get_order_statuses'))\n return;\n $statuses = wc_get_order_statuses() ? wc_get_order_statuses() : array();\n $opt_statuses = array();\n\n foreach ((array) $statuses as $status_val => $status_name) {\n $opt_statuses[substr($status_val, 3)] = $status_name;\n }\n $opt_statuses['low'] = __('کم بودن موجودی انبار', 'persianwoosms');\n $opt_statuses['out'] = __('تمام شدن موجودی انبار', 'persianwoosms');\n return $opt_statuses;\n}", "public function getStatus() {\r\n\t\t$status = array();\r\n\t\tif ($this -> draft) {\r\n\t\t\t$status['type'] = 0;\r\n\t\t\t$status['condition'] = 'draft';\r\n\t\t\treturn $status;\r\n\t\t}\r\n\t\tif ($this -> is_approved) {\r\n\t\t\t$status['type'] = 2;\r\n\t\t\t$status['condition'] = 'approved';\r\n\t\t}\r\n\t\telse {\r\n\t\t\t$status['type'] = 1;\r\n\t\t\t$status['condition'] = 'pending';\r\n\t\t}\r\n\t\treturn $status;\r\n\t}", "public function getItemStatus() {\r\n\t\t$status = array();\r\n\t\t\t$status[0] = array('id' => 0,\r\n\t\t\t\t\t\t\t'name' => 'Sold',\r\n\t\t\t\t\t\t\t'checked' => false,\r\n\t\t\t\t\t\t\t'field_name' => 'sold'\r\n\t\t\t\t\t\t);\r\n\t\t\t$status[1] = array('id' => 1,\r\n\t\t\t\t\t\t\t'name' => 'Available',\r\n\t\t\t\t\t\t\t'checked' => false,\r\n\t\t\t\t\t\t\t'field_name' => 'available'\r\n\t\t\t\t\t\t);\r\n\t\t\t$status[2] = array('id' => 2,\r\n\t\t\t\t\t\t\t'name' => 'Out on Job',\r\n\t\t\t\t\t\t\t'checked' => false,\r\n\t\t\t\t\t\t\t'field_name' => 'out_on_job'\r\n\t\t\t\t\t\t);\r\n\t\t\t$status[3] = array('id' => 3,\r\n\t\t\t\t\t\t\t'name' => 'Pending Sale',\r\n\t\t\t\t\t\t\t'checked' => false,\r\n\t\t\t\t\t\t\t'field_name' => 'pending_sale'\r\n\t\t\t\t\t\t);\r\n\t\t\t$status[4] = array('id' => 4,\r\n\t\t\t\t\t\t\t'name' => 'Out on Memo',\r\n\t\t\t\t\t\t\t'checked' => false,\r\n\t\t\t\t\t\t\t'field_name' => 'out_on_memo'\r\n\t\t\t\t\t\t);\r\n\t\t\t$status[5] = array('id' => 5,\r\n\t\t\t\t\t\t\t'name' => 'Burgled',\r\n\t\t\t\t\t\t\t'checked' => false,\r\n\t\t\t\t\t\t\t'field_name' => 'burgled'\r\n\t\t\t\t\t\t);\r\n\t\t\t$status[6] = array('id' => 6,\r\n\t\t\t\t\t\t\t'name' => 'Assembled',\r\n\t\t\t\t\t\t\t'checked' => false,\r\n\t\t\t\t\t\t\t'field_name' => 'assembled'\r\n\t\t\t\t\t\t);\r\n\t\t\t$status[7] = array('id' => 7,\r\n\t\t\t\t\t\t\t'name' => 'Returned To Consignee',\r\n\t\t\t\t\t\t\t'checked' => false,\r\n\t\t\t\t\t\t\t'field_name' => 'return_to_consignee'\r\n\t\t\t\t\t\t);\r\n\t\t\t$status[8] = array(\r\n\t\t\t\t\t\t\t'id' => 8,\r\n\t\t\t\t\t\t\t'name' => 'Pending Repair Queue',\r\n\t\t\t\t\t\t\t'checked' => false,\r\n\t\t\t\t\t\t\t'field_name' => 'pending_repair'\r\n\t\t\t\t\t\t);\r\n\t\t\t$status[91] = array('id' => 91,\r\n\t\t\t\t\t\t\t'name' => 'Francesklein Import',\r\n\t\t\t\t\t\t\t'checked' => false,\r\n\t\t\t\t\t\t\t'field_name' => 'francesklein_import'\r\n\t\t\t\t\t\t);\r\n\t\t\t$status[98] = array('id' => 98,\r\n\t\t\t\t\t\t\t'name' => 'Never Going Online',\r\n\t\t\t\t\t\t\t'checked' => false,\r\n\t\t\t\t\t\t\t'field_name' => 'never_going_online'\r\n\t\t\t\t\t\t);\r\n\t\t\t$status[99] = array('id' => 99,\r\n\t\t\t\t\t\t\t'name' => 'Unavailable',\r\n\t\t\t\t\t\t\t'checked' => false,\r\n\t\t\t\t\t\t\t'field_name' => 'unavailable'\r\n\t\t\t\t\t);\r\n\t\treturn $status;\r\n\t}", "public function getStatuses() {\n\t}", "function statuses() {\n //return parent::statusesWithCount( self::tableName(), self::arrayStatuses() );\n\n global $wpdb;\n\n $table_name = self::tableName();\n $statuses = self::arrayStatuses();\n $field_name = 'status';\n /*\n * @ToDo Decommentare qui se non vogliamo i conteggi dinamici in base al filtro\n * @ToDo La query è molto onerosa\n *\n *\n */\n $table_orders = BNMExtendsOrders::tableName();\n $sql = <<< SQL\n SELECT DISTINCT( {$table_orders}.{$field_name} ),\n COUNT(*) AS count\n FROM `{$table_name}`\n LEFT JOIN `{$table_orders}`\n ON {$table_orders}.id = {$table_name}.id_order\n GROUP BY {$table_orders}.{$field_name}\nSQL;\n\n\n\n $result = $wpdb->get_results( $sql, ARRAY_A );\n\n foreach ( $result as $status ) {\n if ( !empty( $status['status'] ) ) {\n $statuses[$status['status']]['count'] = $status['count'];\n }\n }\n\n $statuses['all']['count'] = self::count( $table_name );\n\n return $statuses;\n }", "function getDetailedStatus() ;", "function jr_post_statuses_i18n( $status ) {\r\n\t$statuses = array(\r\n\t\t'draft'\t\t\t=> __('Draft', APP_TD),\r\n\t\t'pending'\t\t=> __('Pending Review', APP_TD),\r\n\t\t'private'\t\t=> __('Private', APP_TD),\r\n\t\t'publish'\t\t=> __('Published', APP_TD),\r\n\t\t'expired'\t\t=> __('Expired', APP_TD)\r\n\t);\r\n\r\n\tif ( isset($statuses[$status]) ) {\r\n\t\t$i18n_status = $statuses[$status];\r\n\t} else {\r\n\t\t$i18n_status = $status;\r\n\t}\r\n\treturn $i18n_status;\r\n}", "function olc_get_customers_statuses() {\n\n\t$customers_statuses_array = array(array());\n\t$customers_statuses_query = olc_db_query(SELECT.\"customers_status_id, customers_status_name, customers_status_image, customers_status_discount, customers_status_ot_discount_flag, customers_status_ot_discount\".SQL_FROM . TABLE_CUSTOMERS_STATUS . SQL_WHERE.\"language_id = '\" . SESSION_LANGUAGE_ID . \"' order by customers_status_id\");\n\t$i=1; // this is changed from 0 to 1 in cs v1.2\n\twhile ($customers_statuses = olc_db_fetch_array($customers_statuses_query)) {\n\t\t$i=$customers_statuses['customers_status_id'];\n\t\t$customers_statuses_array[$i] = array('id' => $customers_statuses['customers_status_id'],\n\t\t'text' => $customers_statuses['customers_status_name'],\n\t\t'csa_public' => $customers_statuses['customers_status_public'],\n\t\t'csa_image' => $customers_statuses['customers_status_image'],\n\t\t'csa_discount' => $customers_statuses['customers_status_discount'],\n\t\t'csa_ot_discount_flag' => $customers_statuses['customers_status_ot_discount_flag'],\n\t\t'csa_ot_discount' => $customers_statuses['customers_status_ot_discount'],\n\t\t'csa_graduated_prices' => $customers_statuses['customers_status_graduated_prices']\n\t\t);\n\t}\n\treturn $customers_statuses_array;\n}", "function getOrderStatusList(){\n\treturn [\n\t\t\"NEW\" => [\n\t\t\t'code' => 1,\n\t\t\t'text' => \"Yet to Start\"\n\t\t],\n\t\t\"IN_PROGRESS\" => [\n\t\t\t'code' => 2,\n\t\t\t'text' => \"Working\"\n\t\t],\n\t\t\"DELIVERED\" => [\n\t\t\t'code' => 3,\n\t\t\t'text' => \"Delivered\"\n\t\t],\n\t\t\"IN_REVIEW\" => [\n\t\t\t'code' => 4,\n\t\t\t'text' => \"In review\"\n\t\t],\n\t\t\"COMPLETED\" => [\n\t\t\t'code' => 5,\n\t\t\t'text' => \"Completed\"\n\t\t],\n\t\t\"CANCELLED\" => [\n\t\t\t'code' => 6,\n\t\t\t'text' => \"Cancelled\"\n\t\t],\n\t\t\"PENDIND_REQUIREMENT\" => [\n\t\t\t'code' => 7,\n\t\t\t'text' => \"Pending Requirement\"\n\t\t]\n\t];\n}", "function get_all_woo_status_ps_sms_for_super_admin()\n{\n if (!function_exists('wc_get_order_statuses'))\n return;\n $statuses = wc_get_order_statuses() ? wc_get_order_statuses() : array();\n $opt_statuses = array();\n foreach ((array) $statuses as $status_val => $status_name) {\n $opt_statuses[substr($status_val, 3)] = $status_name;\n }\n $opt_statuses['low'] = __('کم بودن موجودی انبار', 'persianwoosms');\n $opt_statuses['out'] = __('تمام شدن موجودی انبار', 'persianwoosms');\n return $opt_statuses;\n}", "public function getStatus() {\n\t\t$code = $this->status['code'];\n\t\tif ($code === '0'){\n\t\t\treturn 'Closed';\n\t\t}else if($code === '1'){\n\t\t\treturn 'On Hold';\n\t\t}else if($code === '2'){\n\t\t\treturn 'Open';\n\t\t}else if($code === '3'){\n\t\t\t$openingDate = ($this->status['openingdate'] === '') ? 'soon' : date(\"j M\", strtotime($this->status['openingdate']));\n\t\t\treturn 'Opening '.$openingDate; \n\t\t}else if($code === '4'){\n\t\t\treturn 'Closed For Season'; \n\t\t}else if($code === '5'){ \n\t\t\t$updateTime = ($this->status['updatetime'] === '') ? 'No Estimate' : 'Estimated: '.date(\"g:ia\", strtotime($this->status['updatetime']));\n\t\t\treturn 'Delayed '.$updateTime; \n\t\t}\n\t}", "public function get_status( $status_nr ) \n\t{\t\n\t\tif( $status_nr == 1 )\n\t\t{\n\t\t\t$status = array( \n\t\t\t\t'name' => 'Active', \n\t\t\t\t'name_clean' => 'active', \n\t\t\t);\n\t\t}\n\t\telseif( $status_nr == 2 )\n\t\t{\n\t\t\t$status = array( \n\t\t\t\t'name' => 'Inactive', \n\t\t\t\t'name_clean' => 'inactive', \n\t\t\t);\n\t\t}\n\t\telseif( $status_nr == 3 )\n\t\t{\n\t\t\t$status = array( \n\t\t\t\t'name' => 'Awaiting Payment', \n\t\t\t\t'name_clean' => 'awaiting-payment', \n\t\t\t);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$status = array( \n\t\t\t\t'name' => 'Draft', \n\t\t\t\t'name_clean' => 'draft', \n\t\t\t);\n\t\t}\n\t\t\n\t\treturn $status;\n\t}", "public static function getStatuses(): array;", "protected function _getStatuses()\n\t{\n\t\t$statuses\t= array();\n\t\t$count\t\t= 0;\n\t\t\n\t\tif ( !\\IPS\\Settings::i()->profile_comments OR !\\IPS\\Member::loggedIn()->canAccessModule( \\IPS\\Application\\Module::get( 'core', 'status' ) ) )\n\t\t{\n\t\t\treturn array( 'statuses' => $statuses, 'form' => '', 'count' => $count );\n\t\t}\n\n\t\tif ( \\IPS\\Request::i()->status )\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t$statuses\t= array( \\IPS\\core\\Statuses\\Status::loadAndCheckPerms( \\IPS\\Request::i()->status ) );\n\t\t\t\t$count\t\t= 1;\n\t\t\t}\n\t\t\tcatch ( \\OutOfRangeException $e ) { }\n\t\t}\n\t\t\n\t\tif ( !count( $statuses ) )\n\t\t{\n\t\t\t$_where\t= !\\IPS\\core\\Statuses\\Status::modPermission( 'unhide' ) ? \"status_approved=1 AND \" : '';\n\t\t\t$count = \\IPS\\Db::i()->select( 'count(*)', 'core_member_status_updates', array( \"{$_where} (status_member_id=? or status_author_id=?)\", $this->member->member_id, $this->member->member_id ) )->first();\n\n\t\t\t$statuses = new \\IPS\\Patterns\\ActiveRecordIterator(\n\t\t\t\t\\IPS\\Db::i()->select(\n\t\t\t\t\t\t'*',\n\t\t\t\t\t\t'core_member_status_updates',\n\t\t\t\t\t\tarray( \"{$_where} (status_member_id=? or status_author_id=?)\", $this->member->member_id, $this->member->member_id ),\n\t\t\t\t\t\t'status_date DESC',\n\t\t\t\t\t\tarray( ( intval( \\IPS\\Request::i()->statusPage ?: 1 ) - 1 ) * 25, 25 )\n\t\t\t\t),\n\t\t\t\t'\\IPS\\core\\Statuses\\Status'\n\t\t\t);\n\t\t}\n\t\t\n\t\tif ( \\IPS\\core\\Statuses\\Status::canCreate( \\IPS\\Member::loggedIn() ) AND !isset( \\IPS\\Request::i()->status ) )\n\t\t{\n\t\t\tif ( isset( \\IPS\\Request::i()->status_content_ajax ) )\n\t\t\t{\n\t\t\t\t\\IPS\\Request::i()->status_content = \\IPS\\Request::i()->status_content_ajax;\n\t\t\t}\n\t\t\t\t\t\t\n\t\t\t$form = new \\IPS\\Helpers\\Form( 'new_status', 'status_new' );\n\t\t\tforeach( \\IPS\\core\\Statuses\\Status::formElements() AS $k => $element )\n\t\t\t{\n\t\t\t\t$form->add( $element );\n\t\t\t}\n\t\t\t\n\t\t\tif ( $values = $form->values() )\n\t\t\t{\t\t\t\t\n\t\t\t\t$status = \\IPS\\core\\Statuses\\Status::createFromForm( $values );\n\t\t\t\t\n\t\t\t\tif ( \\IPS\\Request::i()->isAjax() )\n\t\t\t\t{\n\t\t\t\t\t\\IPS\\Output::i()->sendOutput( \\IPS\\Theme::i()->getTemplate( 'profile', 'core', 'front' )->statusContainer( $status ) );\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t\\IPS\\Output::i()->redirect( $status->url() );\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t$formTpl = $form->customTemplate( array( \\IPS\\Theme::i()->getTemplate( 'forms', 'core' ), 'statusTemplate' ) );\n\t\t\t\n\t\t\tif ( \\IPS\\core\\Statuses\\Status::moderateNewItems( \\IPS\\Member::loggedIn() ) )\n\t\t\t{\n\t\t\t\t$formTpl = \\IPS\\Theme::i()->getTemplate( 'forms', 'core' )->modQueueMessage( \\IPS\\Member::loggedIn()->warnings( 5, NULL, 'mq' ), \\IPS\\Member::loggedIn()->mod_posts ) . $formTpl;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$formTpl = NULL;\n\t\t}\n\n\t\treturn array( 'statuses' => $statuses, 'form' => $formTpl, 'count' => $count );\n\t}", "public static function getStatusList() {\r\n return [\r\n self::STATUS_ACTIVE => 'Active',\r\n self::STATUS_RETIRED => 'Retired'\r\n ];\r\n }", "function VM_convertSwitchStatusInfo($status)\n{\n\tinclude(\"/m23/inc/i18n/\".$GLOBALS[\"m23_language\"].\"/m23base.php\");\n\n\tswitch($status)\n\t{\n\t\tcase VM_STATE_OFF:\n\t\t\t$out['text'] = $I18N_computerOff;\n\t\t\t$out['imgTag'] = \"<img src=\\\"/gfx/status/red.png\\\" title=\\\"$I18N_computerOff\\\">\";\n\t\t\t$out['icon'] = \"/gfx/status/red.png\";\n\t\t\tbreak;\n\n\t\tcase VM_STATE_PAUSE:\n\t\t\t$out['text'] = $I18N_computerPaused;\n\t\t\t$out['imgTag'] = \"<img src=\\\"/gfx/status/yellow.png\\\" title=\\\"$I18N_computerPaused\\\">\";\n\t\t\t$out['icon'] = \"/gfx/status/yellow.png\";\n\t\t\tbreak;\n\n\t\tcase VM_STATE_ON:\n\t\t\t$out['text'] = $I18N_computerOn;\n\t\t\t$out['imgTag'] = \"<img src=\\\"/gfx/status/green.png\\\" title=\\\"$I18N_computerOn\\\">\";\n\t\t\t$out['icon'] = \"/gfx/status/green.png\";\n\t\t\tbreak;\n\t}\n\n\treturn($out);\n}", "function listStatus($con, $def_status)\n\t{\n\t\tswitch ($def_status) \n\t\t{\n\t\t\tcase 0:\n\t\t\t\t$statusText = \"Inactive/Archived\";\n\t\t\t\tbreak;\n\t\t\tcase 1: \n\t\t\t\t$statusText = \"Active\";\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\t$statusText = \"Pending\";\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t$statusText = \"Undetermined\";\n\t\t\t\tbreak;\n\t\t}\n\n\t\treturn $statusText;\n\t}", "public function get_statuses() {\n\n\t\t// In this order statuses will appear in filters bar.\n\t\t$statuses = [\n\t\t\tEmail::STATUS_DELIVERED => __( 'Delivered', 'wp-mail-smtp-pro' ),\n\t\t\tEmail::STATUS_SENT => __( 'Sent', 'wp-mail-smtp-pro' ),\n\t\t\tEmail::STATUS_WAITING => __( 'Pending', 'wp-mail-smtp-pro' ),\n\t\t\tEmail::STATUS_UNSENT => __( 'Failed', 'wp-mail-smtp-pro' ),\n\t\t];\n\n\t\t// Exclude Delivered and Pending statuses for mailers without verification API.\n\t\tif ( Helpers::mailer_without_send_confirmation() ) {\n\t\t\tunset( $statuses[ Email::STATUS_DELIVERED ] );\n\t\t\tunset( $statuses[ Email::STATUS_WAITING ] );\n\t\t}\n\n\t\treturn $statuses;\n\t}", "public function getStatusesList(){\n return $this->_get(1);\n }", "public function Get_Status() {\n $flags = array(\n 'complete' => array(\n 'code' => 'complete',\n 'name' => 'Complete',\n //'_update' => array($this,'_Status_Make_Complete'),\n ),\n 'cool' => array(\n 'code' => 'cool',\n 'name' => 'Cool',\n //'_update' => array($this,'_Status_Make_Complete'),\n )\n );\n // Apply any filter for adding to the flag list\n $status = apply_filters('vcff_reports_status',$status,$this);\n // Return the flag list\n return $flags;\n }", "private function mapPagseguroStatus($status) {\n\n if (empty($status)) {\n throw new Exception('PagSeguro not return correct status!');\n }\n $return = '';\n switch ($status) {\n // t('Awaiting payment')\n case '1':\n $return = 'completed';\n break;\n\n // t('Under analysis')\n case '2':\n $return = 'completed';\n break;\n\n // t('Paid')\n case '3':\n $return = 'completed';\n break;\n\n // t('In dispute')\n case '5':\n $return = 'authorization';\n break;\n\n // t('Refunded')\n case '6':\n $return = 'authorization';\n break;\n\n // t('Canceled')\n case '7':\n $return = 'authorization';\n break;\n }\n return $return;\n }", "public static function getStatusList()\n {\n return array(\n self::STATUS_TRASH => 'trash',\n self::STATUS_DRAFT => 'draft',\n self::STATUS_PUBLISHED => 'published',\n );\n }", "public static function getStatusList()\n {\n return [\n self::STATUS_ACTIVE => 'Active',\n self::STATUS_RETIRED => 'Retired'\n ];\n }", "public static function statuses() {\n return [\n self::STATUS_ACTIVE => 'Активный',\n self::STATUS_DISABLED => 'Отключен',\n ];\n }", "public function interview_status_cls($status){\n\t\tif($status == 'Scheduled' || $status == 'Re-Scheduled'){\n\t\t\t $stat = 'info';\n\t\t}elseif($status == 'OnHold'){\t\n\t \t\t $stat = 'warning';\t\n\t\t}elseif($status == 'Rejected'){\n\t\t\t$stat = 'important';\t\n\t\t}elseif($status == 'Qualified'){\n\t\t\t$stat = 'success';\t\n\t\t}elseif($status == 'Cancelled'){\n\t\t\t$stat = '';\t\n\t\t}\n\t\treturn $stat;\n\t}", "static public function getStatusList() {\n return array(\n self::STATUS_SHOW => Yii::t('main', 'Show'),\n self::STATUS_HIDE => Yii::t('main', 'Hide'),\n );\n }", "static public function getStatusList() {\n return array(\n self::STATUS_SHOW => Yii::t('main', 'Show'),\n self::STATUS_HIDE => Yii::t('main', 'Hide'),\n );\n }", "protected static function getStatuses()\n {\n return [\n CrudController::STATUS_SUCCESS => 'successfully',\n CrudController::STATUS_FAILURE => 'unsuccessfully',\n ];\n }", "function get_page_statuses()\n {\n }", "public static function getAllStatus(): array\n {\n $statuses = array();\n //====================================================================//\n // Complete Status Informations\n foreach (SplashStatus::getAll() as $status) {\n $statuses[] = array(\n 'code' => $status,\n 'field' => 'SPLASH_ORDER_'.strtoupper($status),\n 'name' => str_replace(\"Order\", \"Status \", $status),\n 'desc' => 'Order Status for '.str_replace(\"Order\", \"\", $status)\n );\n }\n\n return $statuses;\n }", "function col_status($values) {\n global $CFG;\n\n require_once($CFG->dirroot . \"/mod/bookingform/lib.php\");\n\n if (!empty($values->status)) {\n if ($identifier = bookingform_get_status($values->status)) {\n return get_string('status_' . $identifier, 'mod_bookingform');\n }\n }\n\n return '';\n }", "function hook_commerce_invoice_statuses_alter(&$statuses) {\n // Remove a status.\n unset($statuses[Invoice::STATUS_REFUND_PENDING]);\n // Add a status.\n $statuses['past_due'] = t('Past due');\n}", "public function getStatusData()\r\n\t{\r\n\t\t$data = array(\r\n\t\t\t'source' => array(\r\n\t\t\t\t'a' => array(\r\n\t\t\t\t\t'selected' => false,\r\n\t\t\t\t\t'preferred' => false,\r\n\t\t\t\t\t'voltage' => false,\r\n\t\t\t\t\t'frequency' => false,\r\n\t\t\t\t\t'status' => false,\r\n\t\t\t\t),\r\n\t\t\t\t'b' => array(\r\n\t\t\t\t\t'selected' => false,\r\n\t\t\t\t\t'preferred' => false,\r\n\t\t\t\t\t'voltage' => false,\r\n\t\t\t\t\t'frequency' => false,\r\n\t\t\t\t\t'status' => false,\r\n\t\t\t\t),\r\n\t\t\t),\r\n\t\t\t'phaseSynchronization' => false,\r\n\t\t\t'totalLoad' => false,\r\n\t\t\t'totalPower' => false,\r\n\t\t\t'peakLoad' => false,\r\n\t\t\t'energy' => false,\r\n\t\t\t'powerSupplyStatus' => false,\r\n\t\t\t'communicationStatus' => false,\r\n\t\t);\r\n\r\n\t\t$this->hr->get('/status_update.html');\r\n\r\n\t\tif ($this->hr->result) {\r\n\t\t\t// selected source\r\n\t\t\tif (preg_match('/selected source<\\/span>\\s*<span class=\"txt\">source\\s+([a-z])/i', $this->hr->result, $matches)) {\r\n\t\t\t\t$source = strtolower($matches[1]);\r\n\t\t\t\t$data['source'][$source]['selected'] = true;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// preferred source\r\n\t\t\tif (preg_match('/preferred source<\\/span>\\s*<span class=\"txt\">source\\s+([a-z])/i', $this->hr->result, $matches)) {\r\n\t\t\t\t$source = strtolower($matches[1]);\r\n\t\t\t\t$data['source'][$source]['preferred'] = true;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// source voltage\r\n\t\t\tif (preg_match('/source voltage \\(a\\/b\\)<\\/span>\\s*<span class=\"txt\">([0-9\\.]+)\\s*\\/?\\s*([0-9\\.]*)/i', $this->hr->result, $matches)) {\r\n\t\t\t\t$data['source']['a']['voltage'] = $matches[1];\r\n\t\t\t\t$data['source']['b']['voltage'] = $matches[2];\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// frequency\r\n\t\t\tif (preg_match('/source frequency \\(a\\/b\\)<\\/span>\\s*<span class=\"txt\">([0-9\\.]+)\\s*\\/?\\s*([0-9\\.]*)/i', $this->hr->result, $matches)) {\r\n\t\t\t\t$data['source']['a']['frequency'] = $matches[1];\r\n\t\t\t\t$data['source']['b']['frequency'] = $matches[2];\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// status\r\n\t\t\tif (preg_match('/source status \\(a\\/b\\)<\\/span>\\s*<span class=\"txt\">([a-z]+)\\s*\\/?\\s*([a-z]*)/i', $this->hr->result, $matches)) {\r\n\t\t\t\t$data['source']['a']['status'] = ($matches[1] == 'OK') ? true : false;\r\n\t\t\t\t$data['source']['b']['status'] = ($matches[2] == 'OK') ? true : false;\r\n\t\t\t}\r\n\r\n\t\t\t// phase sync\r\n\t\t\tif (preg_match('/phase synchronization<\\/span>\\s*<span class=\"txt\">([a-z]+)/i', $this->hr->result, $matches)) {\r\n\t\t\t\t$data['phaseSynchronization'] = ($matches[1] == 'No') ? false : true;\r\n\t\t\t}\r\n\r\n\t\t\t// total load\r\n\t\t\tif (preg_match('/total\\s+load<\\/span>\\s*<span class=\"txt\">([0-9\\.]+)/i', $this->hr->result, $matches)) {\r\n\t\t\t\t$data['totalLoad'] = floatval($matches[1]);\r\n\t\t\t}\r\n\r\n\t\t\t// total power\r\n\t\t\tif (preg_match('/total\\s+power<\\/span>\\s*<span class=\"txt\">([0-9\\.]+)/i', $this->hr->result, $matches)) {\r\n\t\t\t\t$data['totalPower'] = floatval($matches[1]);\r\n\t\t\t}\r\n\r\n\t\t\t// peak load\r\n\t\t\tif (preg_match('/peak\\s+load<\\/span>\\s*<span class=\"l2b txt\">([0-9\\.]+)/i', $this->hr->result, $matches)) {\r\n\t\t\t\t$data['peakLoad'] = floatval($matches[1]);\r\n\t\t\t}\r\n\r\n\t\t\t// energy\r\n\t\t\tif (preg_match('/energy<\\/span>\\s*<span class=\"l2b txt\">([0-9\\.]+)/i', $this->hr->result, $matches)) {\r\n\t\t\t\t$data['energy'] = floatval($matches[1]);\r\n\t\t\t}\r\n\r\n\t\t\t// PS status\r\n\t\t\tif (preg_match('/power supply status<\\/span>\\s*<span class=\"txt\">([a-z]+)/i', $this->hr->result, $matches)) {\r\n\t\t\t\t$data['powerSupplyStatus'] = ($matches[1] == 'OK') ? true : false;\r\n\t\t\t}\r\n\r\n\t\t\t// comm status\r\n\t\t\tif (preg_match('/communication status<\\/span>\\s*<span class=\"txt\">([a-z]+)/i', $this->hr->result, $matches)) {\r\n\t\t\t\t$data['communicationStatus'] = ($matches[1] == 'OK') ? true : false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn $data;\r\n\t}", "public static function convertObjectStatus($value){\n $status=ConstantDefine::getObjectStatus();\n if(isset($status[$value])){\n return $status[$value];\n } else {\n return t('undefined');\n }\n }", "function getStatus() ;", "function getStatus() ;", "function getStatus() ;", "function odd_admin_preprocess_status_messages(&$variables) {\n $variables['message_classes'] = [];\n $variables['message_icons'] = [];\n\n // Set the message classes and icons.\n foreach ($variables['message_list'] as $type => $messages) {\n $variables['message_classes'][$type] = $type;\n\n switch ($type) {\n case 'status':\n $variables['message_classes'][$type] = 'success';\n $variables['message_icons'][$type] = 'info circle icon';\n break;\n\n case 'error':\n $variables['message_icons'][$type] = 'remove circle icon';\n break;\n\n case 'warning':\n $variables['message_icons'][$type] = 'warning circle icon';\n break;\n\n default:\n $variables['message_icons'][$type] = 'announcement icon';\n }\n }\n}", "public static function getStatusDetail($status_code = null){\n $_items = array(\n self::STATUS_INACTIVE => array('heading'=>Yum::t(\"Account Inactive\"), 'message'=>Yum::t(\"This account is Inactive.\")),\n self::STATUS_ACTIVE => array('heading'=>Yum::t(\"Account Active\"), 'message'=>Yum::t(\"This account is Active.\")),\n self::STATUS_APPROVAL_PENDING => array('heading'=>Yum::t(\"Account is waiting for Approval\"), 'message'=>Yum::t(\"This account is listed for approval and will be Active after Approval only. An Activation Confirmation mail will be sent at the registered email address as soon as account is approved.\")),\n self::STATUS_FORWARDED=> array('heading'=>Yum::t(\"Forwarded For Approval\"), 'message'=>Yum::t(\"This account is forwarded for Approval.\")),\n self::STATUS_REJECTED => array('heading'=>Yum::t(\"Account Rejected\"), 'message'=>Yum::t(\"This account is Disapproved.\")),\n self::STATUS_VERIFICATION_PENDING => array('heading'=>Yum::t(\"Email Verification Pending\"), 'message'=>Yum::t(\"An Email ID Varification mail is sent at the registered email address. User is requested to check his/her email account and click on the activation link. Account will be considered for further Activation Process after Email ID Verification only.\")),\n self::STATUS_BANNED => array('heading'=>Yum::t(\"Account Banned\"), 'message'=>Yum::t(\"This account is Banned.\")),\n self::STATUS_REMOVED => array('heading'=>Yum::t(\"Account Deleted\"), 'message'=>Yum::t(\"This account is Deleted.\")),\n );\n \n if (isset($status_code))\n return isset($_items[$status_code]) ? $_items[$status_code] : false;\n else\n return isset($_items) ? $_items : false;\n \n }", "function locationstatus($status){\n if($status == 0){\n $res='<a style=\"text-decoration:none\" class=\"ml-5\" title=\"点击启用\"><span onclick=\"o2o_status(this,1)\" class=\"label label-warning radius\">停 用</span></a>';\n }elseif ($status == 1){\n $res='<a style=\"text-decoration:none\" class=\"ml-5\" title=\"点击停用\"><span onclick=\"o2o_status(this,0)\" class=\"label label-success radius\">正 常</span></a>';\n }elseif ($status == 2){\n $res='<a><span class=\"label label-secondary radius\">待 审 核</span></a>';\n }elseif ($status == -1){\n $res='<a><span class=\"label label-danger radius\">删 除</span></a>';\n }\n return $res;\n}", "function get_all_woo_status_ps_sms()\n{\n if (!function_exists('wc_get_order_statuses'))\n return;\n $statuses = wc_get_order_statuses() ? wc_get_order_statuses() : array();\n $opt_statuses = array();\n foreach ((array) $statuses as $status_val => $status_name) {\n $opt_statuses[substr($status_val, 3)] = $status_name;\n }\n return $opt_statuses;\n}", "public static function getStatus() {\n return array(\n Users::STATUS_INACTIVE => DomainConst::CONTENT00028,\n Users::STATUS_ACTIVE => DomainConst::CONTENT00027,\n Users::STATUS_NEED_CHANGE_PASS => DomainConst::CONTENT00212,\n );\n }", "public function get_event_status()\n {\n return array(0 => 'undefined'//, 1 => 'due for approval'\n ,2 => 'confirmed', 3 => 'cancelled'//, 4 => 'delegated'\n ,10 => 'tentative', 11 => 'needs-action'\n );\n }", "function acadp_get_listing_status_i18n( $status ) {\n\n\t$post_status = get_post_status_object( $status );\n\treturn $post_status->label;\n\n}", "protected function getStatusProviders() {}", "private static function getKnownStatus(): array\n {\n //====================================================================//\n // Already Loaded\n if (isset(self::$psKnownStatus)) {\n return self::$psKnownStatus;\n }\n //====================================================================//\n // Load Default Orders Statuses\n self::$psKnownStatus = self::$psOrderStatus;\n //====================================================================//\n // NOT ALLOWED WRITE => STOP HERE\n if (!self::isAllowedWrite()) {\n return self::$psKnownStatus;\n }\n //====================================================================//\n // Complete Status from User Settings\n foreach (SplashStatus::getAll() as $status) {\n //====================================================================//\n // Load Target Status from Settings\n $psStateId = Configuration::get('SPLASH_ORDER_'.strtoupper($status));\n if ($psStateId > 0) {\n self::$psKnownStatus[$psStateId] = $status;\n }\n }\n\n return self::$psKnownStatus;\n }", "private function getStatusMessage(){\n\t\t$status = array(\n\t\t\t\t100 => 'Continue', \n\t\t\t\t101 => 'Switching Protocols', \n\t\t\t\t200 => 'OK',\n\t\t\t\t201 => 'Created', \n\t\t\t\t202 => 'Accepted', \n\t\t\t\t203 => 'Non-Authoritative Information', \n\t\t\t\t204 => 'No Content', \n\t\t\t\t205 => 'Reset Content', \n\t\t\t\t206 => 'Partial Content', \n\t\t\t\t300 => 'Multiple Choices', \n\t\t\t\t301 => 'Moved Permanently', \n\t\t\t\t302 => 'Found', \n\t\t\t\t303 => 'See Other', \n\t\t\t\t304 => 'Not Modified', \n\t\t\t\t305 => 'Use Proxy', \n\t\t\t\t306 => '(Unused)', \n\t\t\t\t307 => 'Temporary Redirect', \n\t\t\t\t400 => 'Bad Request', \n\t\t\t\t401 => 'Unauthorized', \n\t\t\t\t402 => 'Payment Required', \n\t\t\t\t403 => 'Forbidden', \n\t\t\t\t404 => 'Not Found', \n\t\t\t\t405 => 'Method Not Allowed', \n\t\t\t\t406 => 'Not Acceptable', \n\t\t\t\t407 => 'Proxy Authentication Required', \n\t\t\t\t408 => 'Request Timeout', \n\t\t\t\t409 => 'Conflict', \n\t\t\t\t410 => 'Gone', \n\t\t\t\t411 => 'Length Required', \n\t\t\t\t412 => 'Precondition Failed', \n\t\t\t\t413 => 'Request Entity Too Large', \n\t\t\t\t414 => 'Request-URI Too Long', \n\t\t\t\t415 => 'Unsupported Media Type', \n\t\t\t\t416 => 'Requested Range Not Satisfiable', \n\t\t\t\t417 => 'Expectation Failed', \n\t\t\t\t500 => 'Internal Server Error', \n\t\t\t\t501 => 'Not Implemented', \n\t\t\t\t502 => 'Bad Gateway', \n\t\t\t\t503 => 'Service Unavailable', \n\t\t\t\t504 => 'Gateway Timeout', \n\t\t\t\t505 => 'HTTP Version Not Supported');\n\t\treturn ($status[$this->_code]) ? $status[$this->_code] : $status[500];\n\t}", "public function getMapOrderStatuses()\n {\n return $this->map_order_statuses;\n }", "protected function getStatusValues()\n {\n $values = [];\n foreach ($this->dbObject('Status')->enumValues() as $value) {\n $values[$value] = _t('SilverStripe\\Omnipay\\Model\\Payment.STATUS_' . strtoupper($value), $value);\n }\n return $values;\n }", "public static function getStatuses($status = false){\r\n $statuses = [\r\n self::STATUS_ACTIVE=>Yii::t('app', 'Active'),\r\n self::STATUS_DELETED=>Yii::t('app', 'Deleted')\r\n ];\r\n return $status ? ArrayHelper::getValue($statuses, $status) : $statuses;\r\n }", "public function register_status() {\n register_post_status( self::$status, array(\n 'label' => __( 'Limbo', 'fu-events-calendar' ),\n 'label_count' => _nx_noop( 'Limbo <span class=\"count\">(%s)</span>', 'Limbo <span class=\"count\">(%s)</span>', 'event status', 'fu-events-calendar' ),\n 'show_in_admin_all_list' => false,\n 'show_in_admin_status_list' => true,\n 'public' => false,\n 'internal' => false,\n ) );\n }", "function statusBinario($statusB)\n{\n\tif ($statusB == 1) return \"Aktiv\";\n\telse return \"Inaktiv\";\n}", "function returnFormattedStatusArray($status, $active_text, $inactive_text, $suspended_text)\n {\n if ($status==0) {$item_array['status_text']=$inactive_text; $item_array['status_class']=\"label label-danger\";}\n if ($status==1) {$item_array['status_text']=$active_text; $item_array['status_class']=\"label label-success\";}\n if ($status==2) {$item_array['status_text']=$suspended_text; $item_array['status_class']=\"label label-warning\";}\n\n $root_array=$item_array;\n\n return $root_array;\n }", "function PKG_translateClientjobsStatus($status)\n{\n\tinclude(\"/m23/inc/i18n/\".$GLOBALS[\"m23_language\"].\"/m23base.php\");\n\n\t$trans['done'] = $I18N_done;\n\t$trans['waiting'] = $I18N_waiting;\n\t$trans['wait4acc'] = $I18N_preselected;\n\n\treturn($trans[$status]);\n}", "function cb_wc_add_status( $wc_statuses_arr ) {\n\t$new_statuses_arr = array();\n\n\t// Add new order status after payment pending.\n\tforeach ( $wc_statuses_arr as $id => $label ) {\n\t\t$new_statuses_arr[ $id ] = $label;\n\n\t\tif ( 'wc-pending' === $id ) { // after \"Payment Pending\" status.\n\t\t\t$new_statuses_arr['wc-blockchainpending'] = __( 'Blockchain Pending', 'coinbase' );\n\t\t}\n\t}\n\n\treturn $new_statuses_arr;\n}", "function get_post_statuses()\n {\n }", "public static function register_post_status() {\n\t\t$our_statuses = array(\n\t\t\tWC_CS_PREFIX . 'pending' => array(\n\t\t\t\t'label' => _x( 'Pending', 'credits status name', 'credits-for-woocommerce' ),\n\t\t\t\t'public' => true,\n\t\t\t\t'exclude_from_search' => false,\n\t\t\t\t'show_in_admin_all_list' => true,\n\t\t\t\t'show_in_admin_status_list' => true,\n\t\t\t\t/* translators: %s: status name */\n\t\t\t\t'label_count' => _n_noop( 'Pending <span class=\"count\">(%s)</span>', 'Pending <span class=\"count\">(%s)</span>' ),\n\t\t\t),\n\t\t\tWC_CS_PREFIX . 'active' => array(\n\t\t\t\t'label' => _x( 'Active', 'credits status name', 'credits-for-woocommerce' ),\n\t\t\t\t'public' => true,\n\t\t\t\t'exclude_from_search' => false,\n\t\t\t\t'show_in_admin_all_list' => true,\n\t\t\t\t'show_in_admin_status_list' => true,\n\t\t\t\t/* translators: %s: status name */\n\t\t\t\t'label_count' => _n_noop( 'Active <span class=\"count\">(%s)</span>', 'Active <span class=\"count\">(%s)</span>' ),\n\t\t\t),\n\t\t\tWC_CS_PREFIX . 'rejected' => array(\n\t\t\t\t'label' => _x( 'Rejected', 'credits status name', 'credits-for-woocommerce' ),\n\t\t\t\t'public' => true,\n\t\t\t\t'exclude_from_search' => false,\n\t\t\t\t'show_in_admin_all_list' => true,\n\t\t\t\t'show_in_admin_status_list' => true,\n\t\t\t\t/* translators: %s: status name */\n\t\t\t\t'label_count' => _n_noop( 'Rejected <span class=\"count\">(%s)</span>', 'Rejected <span class=\"count\">(%s)</span>' ),\n\t\t\t),\n\t\t\tWC_CS_PREFIX . 'on_hold' => array(\n\t\t\t\t'label' => _x( 'On-Hold', 'credits status name', 'credits-for-woocommerce' ),\n\t\t\t\t'public' => true,\n\t\t\t\t'exclude_from_search' => false,\n\t\t\t\t'show_in_admin_all_list' => true,\n\t\t\t\t'show_in_admin_status_list' => true,\n\t\t\t\t/* translators: %s: status name */\n\t\t\t\t'label_count' => _n_noop( 'On-Hold <span class=\"count\">(%s)</span>', 'On-Hold <span class=\"count\">(%s)</span>' ),\n\t\t\t),\n\t\t\tWC_CS_PREFIX . 'overdue' => array(\n\t\t\t\t'label' => _x( 'Overdue', 'credits status name', 'credits-for-woocommerce' ),\n\t\t\t\t'public' => true,\n\t\t\t\t'exclude_from_search' => false,\n\t\t\t\t'show_in_admin_all_list' => true,\n\t\t\t\t'show_in_admin_status_list' => true,\n\t\t\t\t/* translators: %s: status name */\n\t\t\t\t'label_count' => _n_noop( 'Overdue <span class=\"count\">(%s)</span>', 'Overdue <span class=\"count\">(%s)</span>' ),\n\t\t\t),\n\t\t\tWC_CS_PREFIX . 'under_review' => array(\n\t\t\t\t'label' => _x( 'Under Review', 'credits status name', 'credits-for-woocommerce' ),\n\t\t\t\t'public' => true,\n\t\t\t\t'exclude_from_search' => false,\n\t\t\t\t'show_in_admin_all_list' => true,\n\t\t\t\t'show_in_admin_status_list' => true,\n\t\t\t\t/* translators: %s: status name */\n\t\t\t\t'label_count' => _n_noop( 'Under Review <span class=\"count\">(%s)</span>', 'Under Review <span class=\"count\">(%s)</span>' ),\n\t\t\t),\n\t\t\tWC_CS_PREFIX . 'unbilled' => array(\n\t\t\t\t'label' => _x( 'Unbilled', 'credits transaction status name', 'credits-for-woocommerce' ),\n\t\t\t\t'public' => false,\n\t\t\t\t'exclude_from_search' => false,\n\t\t\t\t'show_in_admin_all_list' => true,\n\t\t\t\t'show_in_admin_status_list' => true,\n\t\t\t\t/* translators: %s: status name */\n\t\t\t\t'label_count' => _n_noop( 'Unbilled <span class=\"count\">(%s)</span>', 'Unbilled <span class=\"count\">(%s)</span>' ),\n\t\t\t),\n\t\t\tWC_CS_PREFIX . 'billed' => array(\n\t\t\t\t'label' => _x( 'Billed', 'credits transaction status name', 'credits-for-woocommerce' ),\n\t\t\t\t'public' => false,\n\t\t\t\t'exclude_from_search' => false,\n\t\t\t\t'show_in_admin_all_list' => true,\n\t\t\t\t'show_in_admin_status_list' => true,\n\t\t\t\t/* translators: %s: status name */\n\t\t\t\t'label_count' => _n_noop( 'Billed <span class=\"count\">(%s)</span>', 'Billed <span class=\"count\">(%s)</span>' ),\n\t\t\t),\n\t\t\t\t) ;\n\n\t\tforeach ( $our_statuses as $status => $status_display_name ) {\n\t\t\tregister_post_status( $status, $status_display_name ) ;\n\t\t}\n\t}", "abstract public function getStatus();", "public function getAvailableStatuses()\n {\n return [self::STATUS_ENABLED => __('Enabled'), self::STATUS_DISABLED => __('Disabled')];\n }", "public function getAvailableStatuses()\n {\n return [self::STATUS_ENABLED => __('Enabled'), self::STATUS_DISABLED => __('Disabled')];\n }", "public function getAvailableStatuses()\n {\n return [self::STATUS_ENABLED => __('Enabled'), self::STATUS_DISABLED => __('Disabled')];\n }", "public function getAvailableStatuses()\n {\n return [self::STATUS_ENABLED => __('Enabled'), self::STATUS_DISABLED => __('Disabled')];\n }", "public function getAvailableStatuses()\n {\n return [self::STATUS_ENABLED => __('Enabled'), self::STATUS_DISABLED => __('Disabled')];\n }", "function dokan_get_product_status( $status ) {\n switch ($status) {\n case 'simple':\n return __( 'Simple Product', 'dokan' );\n break;\n\n case 'variable':\n return __( 'Variable Product', 'dokan' );\n break;\n\n case 'grouped':\n return __( 'Grouped Product', 'dokan' );\n break;\n\n case 'external':\n return __( 'Scheduled', 'dokan' );\n break;\n\n default:\n return '';\n break;\n }\n}", "function comments_filter_status ($status) {\n\tswitch ($status) {\n\t\tcase 0:\n\t\t\treturn __ ('Pending');\n\t\tcase 1:\n\t\t\treturn __ ('Approved');\n\t\tdefault:\n\t\t\treturn __ ('Rejected');\n\t}\n}", "public function get_status()\n {\n }", "public function get_status()\n {\n }", "function ajaxQueryServiceStatuses()\n {\n $suburb = $_POST[\"serviceStatusSuburb\"];\n if (is_null($suburb)) {\n $suburb = \"\";\n }\n\n // only 'Online' accessible.\n $status = 3;\n $nos = $this->NetworkOutage_model->getBySuburb($suburb, $status);\n $planned = array();\n $unexpected = array();\n while($no = $nos->next())\n {\n //echo json_encode($no);\n $expNO = $this->exportNetworkOutageBrief($no);\n if ($expNO['type'] === \"Planned\") {\n $planned[] = $expNO;\n } else {\n $expNO['type'] = \"Unplanned\";\n $unexpected[] = $expNO;\n }\n }\n\n $networkOutages = array();\n $networkOutages[\"Planned\"] = $planned;\n $networkOutages[\"Unexpected\"] = $unexpected;\n\n $jsonResp = json_encode($networkOutages);\n if (is_null($_GET['callback'])) {\n echo $jsonResp;\n } else {\n echo $_GET['callback']. '('. $jsonResp .');';\n }\n }", "private static function _get_post_statuses() {\n return array(\n \"none\" => __(\"None\", MEDIUM_TEXTDOMAIN),\n \"public\" => __(\"Public\", MEDIUM_TEXTDOMAIN),\n \"draft\" => __(\"Draft\", MEDIUM_TEXTDOMAIN),\n \"unlisted\" => __(\"Unlisted\", MEDIUM_TEXTDOMAIN)\n );\n }", "public function getInvoiceItemStatus() {\r\n\t\t$status = array();\r\n\t\t\t$status[0] = array('id' => 0, 'name' => 'Normal Sale');\r\n\t\t\t$status[1] = array('id' => 1, 'name' => 'Returned');\r\n\t\t\t$status[2] = array('id' => 2, 'name' => 'Pending Return');\r\n\t\t\t$status[3] = array('id' => 3, 'name' => 'Closed Memo');\r\n\t\treturn $status; //array\r\n\t}", "function getStatusNameList()\n\t{\n\t\tglobal $lang;\n\t\tif(!isset($lang->status_name_list))\n\t\t\treturn array_flip($this->getStatusList());\n\t\telse return $lang->status_name_list;\n\t}", "public static function statuses()\n {\n return [\n self::STATUS_PENDING => Yii::t('app', 'Pending'),\n self::STATUS_REJECTED => Yii::t('app', 'Rejected'),\n self::STATUS_ACCEPTED => Yii::t('app', 'Accepted')\n ];\n }", "function get_ballot_type_assign_status($l_id){\n\n $this->db->from('ballot_map');\n $this->db->where('l_id' , $l_id);\n $query = $this->db->get();\n $list = $query->result();\n\n $map_to_t_id = array();\n foreach ($list as $key => $value) {\n array_push($map_to_t_id, $value->{'t_id'});\n }\n\n\n $this->db->from('ballot_type');\n $query = $this->db->get();\n $list = $query->result();\n\n\n foreach ($list as $key => $value) {\n if (in_array($value->{'t_id'}, $map_to_t_id)) {\n $list[$key]->{'assign'} = 'true';\n }else{\n $list[$key]->{'assign'} = 'false';\n }\n }\n\n return $list;\n }", "function _getStatusMessage(){\n $status = array(\n 200 => 'Ok' ,\n 201 => 'Created' ,\n 202 => 'deleted' ,\n 204 => 'No Content' ,\n 400 => 'Bad Request',\n 404 => 'Not Found' ,\n 405 => 'Not Allowed' ,\n 406 => 'Not Acceptable',\n\n );\n return ($status[$this->CodeHTTP] ? $status[$this->CodeHTTP] : $status[500]);\n }", "public function update_status();", "public function getStatus();", "public function getStatus();", "public function getStatus();", "public function getStatus();", "public function getStatus();", "public function getStatus();", "public function getStatus();", "public function getStatus();", "public function getStatus();", "public function getStatus();", "abstract public function GetStatus();", "function prepareStatus($st)\n {\n }" ]
[ "0.698775", "0.6764238", "0.66286397", "0.6617838", "0.66032803", "0.6558886", "0.64360774", "0.64227605", "0.6349276", "0.6337118", "0.6336672", "0.62732714", "0.6257526", "0.6221689", "0.61838704", "0.61663955", "0.6160691", "0.6157259", "0.61527234", "0.61262316", "0.6115482", "0.61141247", "0.6107", "0.6086454", "0.6080064", "0.60678387", "0.6064426", "0.6063189", "0.605148", "0.601102", "0.60034996", "0.6001851", "0.59663194", "0.596304", "0.5958848", "0.59526116", "0.59522766", "0.59381926", "0.5924327", "0.5924327", "0.592363", "0.5913201", "0.5910444", "0.5899033", "0.5889702", "0.58748215", "0.5873908", "0.58709574", "0.58708495", "0.58708495", "0.5863509", "0.58543885", "0.58348894", "0.58294356", "0.5828588", "0.58099985", "0.5809767", "0.58053637", "0.57905936", "0.57890075", "0.5786804", "0.5783355", "0.5779772", "0.5775456", "0.57666105", "0.5766202", "0.57536846", "0.57529926", "0.57520527", "0.5744746", "0.57435995", "0.57401305", "0.57401305", "0.57401305", "0.57401305", "0.57401305", "0.5739756", "0.5731589", "0.57302696", "0.57302696", "0.57294464", "0.5727005", "0.57208526", "0.57163435", "0.5710862", "0.5709849", "0.57074517", "0.5702105", "0.5700082", "0.5700082", "0.5700082", "0.5700082", "0.5700082", "0.5700082", "0.5700082", "0.5700082", "0.5700082", "0.5700082", "0.56962436", "0.56899524" ]
0.58970225
44
Check if anti fraud is enabled and order amount is bigger than minimum value.
private function shouldSendAntiFraud($paymentMethod, $orderAmount) { $antiFraudSettings = new AntiFraudSettings($this->openCart); $minOrderAmount = $antiFraudSettings->getOrderMinVal(); $antiFraudStatus = $antiFraudSettings->isEnabled(); if ($antiFraudStatus && $paymentMethod === 'creditCard' && $orderAmount >= $minOrderAmount ) { return true; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function validateMinimumAmount()\n {\n return !(Mage::getStoreConfigFlag('sales/minimum_order/active')\n && Mage::getStoreConfigFlag('sales/minimum_order/multi_address')\n && !$this->getQuote()->validateMinimumAmount());\n }", "private function validate_minimum_amount() {\n\t\tif ( $this->minimum_amount > 0 && wc_format_decimal( $this->minimum_amount ) > wc_format_decimal( WC()->cart->subtotal ) ) {\n\t\t\tthrow new Exception( self::E_WC_COUPON_MIN_SPEND_LIMIT_NOT_MET );\n\t\t}\n\t}", "private function unbalancedSupply() {\n $rapporto = $_POST['quantitaCercata'] / $_POST['quantitaOfferta'];\n if ($rapporto >= 0.5 && $rapporto <= 2)\n return false;\n return true;\n }", "function _checkMaxQuantityLimt()\r\n {\r\n if ($this->data[$this->name]['buy_max_quantity_per_user'] >= $this->data[$this->name]['buy_min_quantity_per_user']) {\r\n return true;\r\n }\r\n return false;\r\n }", "function _compareItemAndBuyMinLimt()\r\n {\r\n if (empty($this->data[$this->name]['max_limit']) || $this->data[$this->name]['max_limit'] >= $this->data[$this->name]['buy_min_quantity_per_user']) {\r\n return true;\r\n }\r\n return false;\r\n }", "private function validate_maximum_amount() {\n\t\tif ( $this->maximum_amount > 0 && wc_format_decimal( $this->maximum_amount ) < wc_format_decimal( WC()->cart->subtotal ) ) {\n\t\t\tthrow new Exception( self::E_WC_COUPON_MAX_SPEND_LIMIT_MET );\n\t\t}\n\t}", "function _isEligibleMinimumQuantity()\r\n {\r\n $item = $this->find('first', array(\r\n 'conditions' => array(\r\n 'Item.id' => $this->data[$this->name]['item_id'],\r\n ) ,\r\n 'fields' => array(\r\n 'Item.buy_min_quantity_per_user',\r\n 'Item.item_user_count',\r\n 'Item.max_limit'\r\n ) ,\r\n 'recursive' => -1\r\n ));\r\n if ($item['Item']['buy_min_quantity_per_user'] > 1) {\r\n $items_count = $this->_countUserBoughtItems();\r\n $boughtTotal = (!empty($items_count[0]['total_count']) ? $items_count[0]['total_count'] : 0) +$this->data[$this->name]['quantity'];\r\n $min = $item['Item']['buy_min_quantity_per_user'];\r\n if (!empty($item['Item']['max_limit']) && $min >= $item['Item']['max_limit']-$item['Item']['item_user_count']) {\r\n $min = $item['Item']['max_limit']-$item['Item']['item_user_count'];\r\n }\r\n if ($boughtTotal >= $min) {\r\n return true;\r\n }\r\n return false;\r\n } else {\r\n return true;\r\n }\r\n }", "public function isAmountAllowed()\n {\n $totalAmount = $this->getTotalAmount();\n $isCurrencyEuro = $this->isCurrencyEuro();\n\n if ($isCurrencyEuro && $totalAmount >=200 && $totalAmount <=5000) {\n return true;\n }\n\n return false;\n }", "function _compareItemAndBuyMaxLimt()\r\n {\r\n if (empty($this->data[$this->name]['max_limit']) || $this->data[$this->name]['max_limit'] >= $this->data[$this->name]['buy_max_quantity_per_user']) {\r\n return true;\r\n }\r\n return false;\r\n }", "private function assertIsValidAmount(float $value)\n {\n return 0 <= $value;\n }", "public function isAllowOrder() {\n $qtyAllow = false;\n \n // check qty\n if ($this->quantity >= $this->minimum_quantity) {\n $qtyAllow = true;\n }\n else {\n if ($this->when_out_of_stock == 1) {\n $qtyAllow = true;\n }\n }\n \n // check all\n if (($qtyAllow) & ($this->active) & ($this->available_for_order)) {\n return true;\n }\n \n return false;\n }", "function wc_minimum_order_amount() {\n $minimum = 10;\n if ( WC()->cart->total < $minimum ) {\n if( is_cart() ) {\n wc_print_notice(\n sprintf( 'You must have an order with a minimum of %s to place your order, your current order total is %s.' ,\n wc_price( $minimum ),\n wc_price( WC()->cart->total )\n ), 'error'\n );\n } else {\n wc_add_notice(\n sprintf( 'You must have an order with a minimum of %s to place your order, your current order total is %s.' ,\n wc_price( $minimum ),\n wc_price( WC()->cart->total )\n ), 'error'\n );\n }\n }\n}", "public function sRiskORDERVALUEMORE($user, $order, $value)\n {\n $basketValue = $order['AmountNumeric'];\n\n if ($this->sSYSTEM->sCurrency['factor']) {\n $basketValue /= $this->sSYSTEM->sCurrency['factor'];\n }\n\n return $basketValue >= $value;\n }", "public function isUnsentOrderAdjustmentEnabled()\n {\n $flag = (integer) $this->scopeConfig->getValue(\n 'orderflow_inventory_import/settings/adjust_inventory',\n \\Magento\\Store\\Model\\ScopeInterface::SCOPE_WEBSITE\n );\n\n return $flag > 0;\n }", "function _isEligibleMaximumQuantity()\r\n {\r\n $items_count = $this->_countUserBoughtItems();\r\n $item = $this->find('first', array(\r\n 'conditions' => array(\r\n 'Item.id' => $this->data[$this->name]['item_id'],\r\n ) ,\r\n 'fields' => array(\r\n 'Item.buy_max_quantity_per_user',\r\n ) ,\r\n 'recursive' => -1\r\n ));\r\n $newTotal = (!empty($items_count[0]['total_count']) ? $items_count[0]['total_count'] : 0) +$this->data[$this->name]['quantity'];\r\n if (empty($item['Item']['buy_max_quantity_per_user']) || $newTotal <= $item['Item']['buy_max_quantity_per_user']) {\r\n return true;\r\n }\r\n return false;\r\n }", "public function shouldRefund()\n {\n $paidMoney = $this -> countPaidMoney();\n $consumedMoney = $this -> countConsumedMoney();\n \n return $consumedMoney < $paidMoney;\n }", "function TaxInclusivePrice(){\n\t\tuser_error(\"to be completed\");\n\t}", "public function sRiskORDERVALUELESS($user, $order, $value)\n {\n $basketValue = $order['AmountNumeric'];\n\n if ($this->sSYSTEM->sCurrency['factor']) {\n $basketValue /= $this->sSYSTEM->sCurrency['factor'];\n }\n\n return $basketValue <= $value;\n }", "public function isFree()\n {\n return ((float) $this->price <= 0.00);\n }", "public function isFreeOrder()\n {\n return $this->staff_free_order || $this->order_type->id == 3 || $this->total_cost == 0;\n }", "function give_verify_minimum_price( $amount_range = 'minimum' ) {\n\n\t$post_data = give_clean( $_POST ); // WPCS: input var ok, sanitization ok, CSRF ok.\n\t$form_id = ! empty( $post_data['give-form-id'] ) ? $post_data['give-form-id'] : 0;\n\t$amount = ! empty( $post_data['give-amount'] ) ? give_maybe_sanitize_amount( $post_data['give-amount'], array( 'currency' => give_get_currency( $form_id ) ) ) : 0;\n\t$price_id = isset( $post_data['give-price-id'] ) ? absint( $post_data['give-price-id'] ) : '';\n\n\t$variable_prices = give_has_variable_prices( $form_id );\n\t$price_ids = array_map( 'absint', give_get_variable_price_ids( $form_id ) );\n\t$verified_stat = false;\n\n\tif ( $variable_prices && in_array( $price_id, $price_ids, true ) ) {\n\n\t\t$price_level_amount = give_get_price_option_amount( $form_id, $price_id );\n\n\t\tif ( $price_level_amount == $amount ) {\n\t\t\t$verified_stat = true;\n\t\t}\n\t}\n\n\tif ( ! $verified_stat ) {\n\t\tswitch ( $amount_range ) {\n\t\t\tcase 'minimum' :\n\t\t\t\t$verified_stat = ( give_get_form_minimum_price( $form_id ) > $amount ) ? false : true;\n\t\t\t\tbreak;\n\t\t\tcase 'maximum' :\n\t\t\t\t$verified_stat = ( give_get_form_maximum_price( $form_id ) < $amount ) ? false : true;\n\t\t\t\tbreak;\n\t\t}\n\t}\n\n\t/**\n\t * Filter the verify amount\n\t *\n\t * @since 2.1.3\n\t *\n\t * @param bool $verified_stat Was verification passed or not?\n\t * @param string $amount_range Type of the amount.\n\t * @param integer $form_id Give Donation Form ID.\n\t */\n\treturn apply_filters( 'give_verify_minimum_maximum_price', $verified_stat, $amount_range, $form_id );\n}", "private function isTotalPaidEnoughForRefund(OrderInterface $order)\n {\n return !abs($this->priceCurrency->round($order->getTotalPaid()) - $order->getTotalRefunded()) < .0001;\n }", "public function checkStock()\n {\n if ($this->qty > ($this->beer->stock - $this->beer->requested_stock)){\n return false;\n }\n\n return true;\n }", "public function hasUnlimitedTotalCredit()\n\t{\n\t return $this->group->limit_totalemailslimit > 0\n\t ? false\n\t : true;\n\t}", "function _isEligibleQuantity()\r\n {\r\n $item = $this->find('first', array(\r\n 'conditions' => array(\r\n 'Item.id' => (!empty($this->data[$this->name]['sub_item_id']) ? $this->data[$this->name]['sub_item_id'] : $this->data[$this->name]['item_id']) ,\r\n ) ,\r\n 'fields' => array(\r\n 'Item.item_user_count',\r\n 'Item.max_limit'\r\n ) ,\r\n 'recursive' => -1\r\n ));\r\n $newTotal = $item['Item']['item_user_count']+$this->data[$this->name]['quantity'];\r\n if ($item['Item']['max_limit'] <= 0 || $newTotal <= $item['Item']['max_limit']) {\r\n return true;\r\n }\r\n if (preg_match(\"/./\", $item['Item']['max_limit'])) {\r\n return false;\r\n }\r\n return false;\r\n }", "function TaxExclusivePrice(){\n\t\tuser_error(\"to be completed\");\n\t}", "public function isNotEnoughBalance() {\n return ($this->getFailedReason() == 'BALANCE_NOT_ENOUGH');\n }", "protected function isForbiddenOrderChanges(\\XLite\\Model\\Order $order)\n {\n $result = false;\n\n if (0 > $order->getTotal()) {\n $result = true;\n \\XLite\\Core\\TopMessage::addError('Order changes cannot be saved due to negative total value');\n }\n\n return $result;\n }", "public function checkBalance()\n {\n if ($this->_client) {\n $balance = $this->_client->checkBalance();\n\n if ($balance['balance'] <= env('SMS_CREDIT_THRESHOLD')) {\n // Send warning email\n $subject = 'SMS service balance running low';\n $vars = ['balance'=>$balance];\n \\Mail::send(['text'=>'errors.sms_balance'], $vars, function($message) use ($subject)\n {\n $message->to(env('DEVELOPER_EMAIL'))->subject($subject);\n });\n }\n }\n }", "public function testCantSendFromLowBalance()\n {\n $this->model = new \\app\\models\\SendForm([\n 'receiverName' => 'demo',\n 'amount' => 0.02\n ]);\n $this->loginSender('no-money');\n expect_not($this->model->makeTransfer());\n expect($this->model->errors)->hasKey('amount');\n }", "public function test_validate_withdraw_limit()\n {\n $amount = 5000;\n $withdraw = $this->obj->validate_withdraw_limit($amount);\n $this->assertTrue($withdraw);\n }", "public function testDTAZVDisableMaxAmountPass()\n {\n if (!method_exists($this->fixture, 'setMaxAmount')) {\n $this->markTestSkipped('no method setMaxAmount()');\n return;\n }\n $this->fixture->setMaxAmount(0);\n $this->assertTrue($this->fixture->addExchange(array(\n 'name' => \"A Receivers Name\",\n 'bank_code' => \"RZTIAT22263\",\n 'account_number' => \"DE21700519950000007229\"),\n (PHP_INT_MAX-1000)/100 - 1,\n \"Test-Verwendungszweck\"\n ));\n\n $this->assertSame(1, $this->fixture->count());\n }", "private function isFreeShippingRequired(RateRequest $request): bool\n {\n $minSubtotal = $request->getPackageValueWithDiscount();\n if ($request->getBaseSubtotalWithDiscountInclTax()\n && $this->getConfigFlag('tax_including')) {\n $minSubtotal = $request->getBaseSubtotalWithDiscountInclTax();\n }\n\n return $minSubtotal >= $this->getConfigData('free_shipping_subtotal');\n }", "function totalVAT()\n {\n return false;\n }", "function cf_ar_ap_valid_amount($params)\n\t{\n\t\t/* Update: (grand_total - sum(plan_amount except current id)) < new_amount => error */\n\t\t$params = is_array($params) ? (object) $params : $params;\n\t\tif (! isset($params->ar_ap_id) && !$params->ar_ap_id)\n\t\t\treturn false;\n\t\t\n\t\t$id = isset($params->id) && $params->id ? 'and t2.id <> '.$params->id : '';\n\t\t$ar_ap_id = $params->ar_ap_id;\n\t\tif (isset($params->is_plan) && $params->is_plan) {\n\t\t\t$str = \"SELECT (grand_total - (select coalesce(sum(amount),0) from cf_ar_ap_plan t2 where t2.is_active = '1' and t2.is_deleted = '0' and t2.ar_ap_id = t1.id $id)) as amount \n\t\t\t\tfrom cf_ar_ap t1 where t1.id = $ar_ap_id\";\n\t\t}\n\t\t$row = $this->db->query($str)->row();\n\t\tif ($row->amount - $params->amount < 0) {\n\t\t\t$this->session->set_flashdata('message', $row->amount);\n\t\t\treturn FALSE;\n\t\t}\n\t\treturn TRUE;\n\t}", "function cf_order_valid_amount($params)\n\t{\n\t\t/* Insert: (grand_total - plan_total) < new_amount => error */\n\t\t/* Update: (grand_total - sum(plan_amount except current id)) < new_amount => error */\n\t\t$params = is_array($params) ? (object) $params : $params;\n\t\tif (! isset($params->order_id) && !$params->order_id)\n\t\t\treturn false;\n\t\t\n\t\t$id = isset($params->id) && $params->id ? 'and t2.id <> '.$params->id : '';\n\t\t$order_id = $params->order_id;\n\t\tif (isset($params->is_plan) && $params->is_plan) {\n\t\t\t// $str = \"SELECT grand_total,\n\t\t\t\t// (\n\t\t\t\t\t// select coalesce(sum(amount),0) from cf_order_plan t2 where t2.is_active = '1' and t2.is_deleted = '0' and t2.order_id = t1.id $id\n\t\t\t\t// ) as plan_total \n\t\t\t\t// from cf_order t1 where t1.id = $order_id\";\n\t\t\t$str = \"SELECT (grand_total - (select coalesce(sum(amount),0) from cf_order_plan t2 where t2.is_active = '1' and t2.is_deleted = '0' and t2.order_id = t1.id $id)) as amount \n\t\t\t\tfrom cf_order t1 where t1.id = $order_id\";\n\t\t}\n\t\t$row = $this->db->query($str)->row();\n\t\t// if ($row->grand_total - $row->plan_total - $params->amount < 0) {\n\t\tif ($row->amount - $params->amount < 0) {\n\t\t\t// $this->session->set_flashdata('message', $row->grand_total - $row->plan_total);\n\t\t\t$this->session->set_flashdata('message', $row->amount);\n\t\t\treturn FALSE;\n\t\t}\n\t\treturn TRUE;\n\t\t// if ($row->grand_total - $row->plan_total < $params->amount)\n\t}", "function validateMinPrice($field = Null){\n\t\t//PR($this->data['ProductSeller']);\n\t\tif(isset($this->data['ProductSeller']['minimum_price_disabled'])){\n\t\t\tif(($this->data['ProductSeller']['minimum_price_disabled'] == '1')){\n\t\t\t//if(($this->data['ProductSeller']['minimum_price_disabled'] == '0')){\n\t\t\t\treturn true;\n\t\t\t} else{\n\t\t\t\t\n\t\t\t\tif(!empty($this->data['ProductSeller']['minimum_price'])){\n\t\t\t\t\tif($this->data['ProductSeller']['minimum_price'] <= 0){\n\t\t\t\t\t\treturn 'Minimum price should be a positive number';\n\t\t\t\t\t}elseif($this->data['ProductSeller']['minimum_price'] > $this->data['ProductSeller']['price']){\n\t\t\t\t\treturn \"Please note that minimum price value should be lower than your price\";\n\t\t\t\t}else\n\t\t\t\t\t\treturn true;\n\t\t\t\t}else{\n\t\t\t\t\treturn \"Enter minimum price\";\n\t\t\t\t}\n\t\t\t}\n\t\t} else{\n\t\t\treturn true;\n\t\t}\n\t}", "private function guardAgainstInsufficientAccess(\\App\\Player $player)\n {\n if($player->accessBalance()->quantity < env('MIN_ACCESS_GROUP'))\n {\n return 'Low Access Token Balance';\n }\n }", "public function crt_min()\n {\t\t\n\n \t$crt = $this->input->post('crt_update');\n\t\t\t$ob = $this->input->post('ob_update');\n\t\t\t$inc = $this->input->post('inc_update');\n\t\t\t$crt_new = $this->input->post('crt_new');\n\t\t\t$totalOB = $ob + $inc;\n\t\t\t$totalCRT = $crt + $inc;\n\n\t \t\tif ($crt ==0){\n\t\t \t\t\tif ($crt_new < $totalOB)\n\t\t\t\t {\n\t\t\t\t $this->form_validation->set_message('crt_min', 'Bidding harus sama dengan atau lebih besar dari Next Minimum Bidding');\n\t\t\t\t return FALSE;\n\t\t\t\t }\n\t\t\t\t else\n\t\t\t\t {\n\t\t\t\t return TRUE;\n\t\t\t\t }\n\t\t }\n\t\t else {\n\t\t \t\t\tif ($crt_new < $totalCRT)\n\t\t\t\t {\n\t\t\t\t $this->form_validation->set_message('crt_min', 'Bidding harus sama dengan atau lebih besar dari Next Minimum Bidding');\n\t\t\t\t return FALSE;\n\t\t\t\t }\n\t\t\t\t else\n\t\t\t\t {\n\t\t\t\t return TRUE;\n\t\t\t\t }\n\t\t }\n \n }", "public function shouldOrderRequireSolvencyValidation()\n {\n $this->store = Mage::app()->getStore(0)->load(0);\n $this->store->resetConfig();\n $pathTotalMin = 'scoring/solvency/total_min';\n $pathSkipMethods = 'scoring/solvency/skip_methods';\n\n $this->store->setConfig($pathTotalMin, 10);\n $this->store->setConfig($pathSkipMethods, 'cc_saved,paypal');\n\n $config = Mage::getModel('scoring/config');\n $quote = Mage::getModel('sales/quote');\n $quote->getPayment()->setMethod('cc_saved');\n\n /* secure payment method, but below min total */\n $quote->setBaseGrandTotal(9);\n $this->assertFalse(\n $config->isSolvencyValidationRequiredForQuote($quote),\n 'expected quote not to require solvency validation (secure method, below min)'\n );\n\n /* secure payment method, above min total */\n $quote->setBaseGrandTotal(1000);\n $this->assertFalse(\n $config->isSolvencyValidationRequiredForQuote($quote),\n 'expected quote not to require solvency validation (secure method, above min)'\n );\n\n /* insecure payment method, below min total */\n $quote->setBaseGrandTotal(9);\n $quote->getPayment()->setMethod('open_invoice');\n $this->assertFalse(\n $config->isSolvencyValidationRequiredForQuote($quote),\n 'expected quote not to require solvency validation (insecure method, below min)'\n );\n\n /* insecure payment method, above min total */\n $quote->setBaseGrandTotal(1000);\n $config->set('solvency/secure_methods', array('cc_saved'));\n $this->assertTrue(\n $config->isSolvencyValidationRequiredForQuote($quote),\n 'expected quote to require solvency validation (insecure method, above min)'\n );\n }", "function advancedPrice($data) {\n \tif(Configure::read('App.bidButlerType') == 'advanced') {\n \t\t$auction = $this->Auction->find('first', array('conditions' => array('Auction.id' => $this->data['Bidbutler']['auction_id']), 'contain' => '', 'fields' => array('Auction.price','Auction.reverse')));\n \t\tif ($auction['Auction']['reverse']) {\n \t\t\treturn true;\n \t\t} else {\n\t\t\t\tif($data['minimum_price'] - $auction['Auction']['price'] < 0.01) {\n\t\t\t\t\treturn false;\n\t\t\t\t} else {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n \t} else {\n \t\treturn true;\n \t}\n }", "protected function _fcpoValidateOrderAgainstProblems() {\n $blOrderOk = (\n $this->_fcpoGetAppointedError() === false &&\n $this->_blOrderHasProblems === false\n );\n\n return $blOrderOk;\n }", "protected function isOfferValid ()\n {\n return $this->offerApplicableAmount >= $this->offer->minimum_order_amount;\n }", "public function buyDecimalAmount()\n\t{\n\t\treturn false;\n\t}", "public function isSomeAmountMissing(): bool\n {\n if ( $this->getAmountMissing() > 0 )\n return true;\n return false;\n }", "public function is_user_over_quota()\n {\n }", "protected function _fcpoCheckReduceBefore() \n {\n $oConfig = $this->_oFcpoHelper->fcpoGetConfig();\n $sPaymentId = $this->oxorder__oxpaymenttype->value;\n $blReduceStockBefore = !(bool) $oConfig->getConfigParam('blFCPOReduceStock');\n $blIsRedirectPayment = fcPayOnePayment::fcIsPayOneRedirectType($sPaymentId);\n\n if ($blReduceStockBefore && $blIsRedirectPayment) {\n $aOrderArticles = $this->getOrderArticles();\n foreach ($aOrderArticles as $oOrderArticle) {\n $oOrderArticle->updateArticleStock($oOrderArticle->oxorderarticles__oxamount->value * (-1), $oConfig->getConfigParam('blAllowNegativeStock'));\n }\n }\n }", "function no_bankrupt($cash, $cost) {\n\tif ($cash - $cost < 0) {\n\t\treturn false;\n\t} else {\n\t\treturn true;\n\t}\n}", "public function disableCheckGift() {\r\n $quoteId = Mage::getSingleton('checkout/session')->getQuote()->getId();\r\n $giftWrapOrder = Mage::getModel('giftwrap/selection')->getSelectionByQuoteId(\r\n $quoteId);\r\n if ($giftWrapOrder) {\r\n foreach ($giftWrapOrder as $gift) {\r\n if ($gift['itemId'] == 0) {\r\n return true;\r\n }\r\n }\r\n }\r\n return false;\r\n }", "public function sRiskLASTORDERSLESS($user, $order, $value)\n {\n if ($this->session->offsetGet('sUserId')) {\n $checkOrder = $this->db->fetchAll(\n 'SELECT id FROM s_order\n WHERE status != -1 AND status != 4 AND userID = ?',\n [$this->session->offsetGet('sUserId')]\n );\n\n return count($checkOrder) <= $value;\n }\n\n return true;\n }", "public function test_amount_less_than_rate_cost()\n {\n\n\n\n $data=[\"amount\"=> 100,\n \"unpaid_appliance_rates\"=> 2,\n \"appliance_rate_cost\"=> 200,\n \"tariff_fixed_costs\"=> 160,\n \"price_per_kwh\"=> 700\n ];\n\n $response = $this->post('/api/transactions', $data);\n // $response->assertStatus(200);\n $response->assertJson( [\"data\"=> [\n \"type\"=> \"transaction\",\n \"attributes\"=> [\n \"paid_for_appliance_rates\"=> 0,\n \"fully_covered_appliance_rate\"=> 0,\n \"paid_for_fixed_tariff\"=> 100,\n \"paid_for_energy\"=> 0,\n \"topup_for_energy\"=> 0,\n \"sold_energy\"=> 0\n ]\n ]]);\n }", "public function sRiskCUSTOMERGROUPISNOT($user, $order, $value)\n {\n return $value != $user['additional']['user']['customergroup'];\n }", "public function isOutOfStock(){\n\t\treturn FALSE;\n\t}", "public function beforeValidate()\n {\n $this->amount = str_replace(',', '.', $this->amount);\n if (strlen(substr(strrchr($this->amount, \".\"), 1)) > 4) {\n $this->addError('amount', Yii::t('XcoinModule.base', 'Maximum 4 decimal places.'));\n }\n $this->amount = round($this->amount, 4);\n\n if ($this->transaction_type === self::TRANSACTION_TYPE_TRANSFER) {\n\n // Check Issue Account Asset Type\n if ($this->toAccount->account_type == Account::TYPE_ISSUE) {\n $asset = AssetHelper::getSpaceAsset($this->toAccount->space);\n if ($asset->id != $this->asset_id) {\n $this->addError('asset_id', Yii::t('XcoinModule.base', 'You cannot transfer this type of asset.'));\n }\n }\n\n // Check sender account balance\n if ($this->fromAccount->getAssetBalance($this->asset) < $this->amount) {\n $this->addError('asset_id', Yii::t('XcoinModule.base', 'Insuffient funds.'));\n }\n }\n\n if ($this->from_account_id == $this->to_account_id) {\n $this->addError('from_account_id', Yii::t('XcoinModule.base', 'Please select an different account!'));\n $this->addError('to_account_id', Yii::t('XcoinModule.base', 'Please select an different account!'));\n }\n\n\n return parent::beforeValidate();\n }", "public function tellNotEnoughMoneyInAccount()\n {\n }", "function validateEDPrice($field = Null){\n\t\tif(isset($this->data['ProductSeller']['express_delivery'])) {\n\t\t\tif(($this->data['ProductSeller']['express_delivery'] == '0') || ($this->data['ProductSeller']['express_delivery'] == '')){\n\t\t\t\treturn true;\n\t\t\t} else{\n\t\t\t\tif(!empty($this->data['ProductSeller']['express_delivery_price'])){\n\t\t\t\t\tif($this->data['ProductSeller']['express_delivery_price'] < 0){\n\t\t\t\t\t\treturn 'Express delivery price should be positive';\n\t\t\t\t\t} else\n\t\t\t\t\t\treturn true;\n\t\t\t\t}else{\n\t\t\t\t\treturn \"Enter express delivery price\";\n\t\t\t\t}\n\t\t\t}\n\t\t} else{\n\t\t\treturn true;\n\t\t}\n\t}", "protected function isValidOrder()\n {\n return true;\n }", "public function isAmountValid(TdbShopArticle $product, $requestedAmount);", "function highLow($data) {\n \t$auction = $this->Auction->find('first', array('conditions' => array('Auction.id' => $this->data['Bidbutler']['auction_id']), 'contain' => '', 'fields' => array('Auction.price','Auction.reverse')));\n\t\tif ($auction['Auction']['reverse'] or Configure::read('App.bidButlerType')=='simple') {\n\t\t\treturn true;\n\t\t}\n\t\t\n \tif(!empty($this->data['Bidbutler']['minimum_price']) && !empty($this->data['Bidbutler']['maximum_price'])) {\n \t\tif($this->data['Bidbutler']['minimum_price'] < $this->data['Bidbutler']['maximum_price']) {\n \t\t\treturn true;\n \t\t} else {\n \t\t\treturn false;\n \t\t}\n \t} else {\n \t\treturn true;\n \t}\n }", "public function testCheckMaxAmount() {\n $amount = 1000;\n $this->assertTrue($this->tranche->checkMaxAmount($amount));\n }", "public function verifyShippingDisponibility() {\n\n $return = array();\n $items = Mage::getSingleton('checkout/session')->getQuote()->getAllItems();\n $PackageWeight = 0;\n foreach ($items as $item) {\n if (($item->getProductType() == \"configurable\") || ($item->getProductType() == \"grouped\")) {\n $PackageWeight += ($item->getWeight() * (((int) $item->getQty()) - 1));\n } else {\n $PackageWeight += ($item->getWeight() * ((int) $item->getQty()));\n }\n }\n\n $customerAdressCountryCode = $this->getCustomerCountry();\n //verify destination country\n $keyOdExpressDestinationCountry = array_search($customerAdressCountryCode, $this->geodisDestinationCountryMethod1);\n $keyOdMessagerieDestinationCountry = array_search($customerAdressCountryCode, $this->geodisDestinationCountryMethod2);\n\n\n if ($keyOdExpressDestinationCountry && ($PackageWeight < self::FRANCEEXPRESS_POIDS_MAX)) {\n $return['s_method_franceexpress_ondemandlogo_' . self::FRANCEEXPRESS_METHOD_1] = 1;\n } else {\n $return['s_method_franceexpress_ondemandlogo_' . self::FRANCEEXPRESS_METHOD_1] = 0;\n }\n\n if ($keyOdMessagerieDestinationCountry && ($PackageWeight < self::FRANCEEXPRESS_POIDS_MAX)) {\n $return['s_method_franceexpress_ondemandlogo_' . self::FRANCEEXPRESS_METHOD_2] = 1;\n } else {\n $return['s_method_franceexpress_ondemandlogo_' . self::FRANCEEXPRESS_METHOD_2] = 0;\n }\n\n return $return;\n }", "public function getUnsentOrderCutoff()\n {\n return (integer) $this->scopeConfig->getValue(\n 'orderflow_inventory_import/settings/unsent_order_cutoff',\n \\Magento\\Store\\Model\\ScopeInterface::SCOPE_WEBSITE\n );\n }", "public function test_validate_deposit_limit()\n {\n $amount = 0; // zero works best here\n $deposit = $this->obj->validate_deposit_limit($amount);\n $this->assertTrue($deposit);\n }", "function _checkMaxLimt()\r\n {\r\n if ($this->data[$this->name]['max_limit'] >= $this->data[$this->name]['min_limit']) {\r\n return true;\r\n }\r\n return false;\r\n }", "public function crt_max()\n {\t\t\t\n \t\t\t$user = $this->Bid_model->get($this->session->userdata('idbidder')); \n \t\t\t$saldo = ($user->saldo);\n\t\t \t\t\tif ($saldo < 3)\n\t\t\t\t {\n\t\t\t\t $this->form_validation->set_message('crt_max', 'Saldo anda tidak cukup. Silahkan isi saldo terlebih dahulu');\n\t\t\t\t return FALSE;\n\t\t\t\t }\n\t\t\t\t else\n\t\t\t\t {\n\t\t\t\t return TRUE;\n\t\t\t\t } \n }", "private function CheckStockLevels()\n\t{\n\t\t$quote = getCustomerQuote();\n\t\t$items = $quote->getItems();\n\n\t\tforeach($items as $item) {\n\t\t\tif($item->getProductId() && !$item->checkStockLevel()) {\n\t\t\t\t$outOfStock = $item->getName();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif(!empty($outOfStock)) {\n\t\t\tFlashMessage(sprintf(getLang('CheckoutInvLevelBelowOrderQty'), $outOfStock), MSG_ERROR, 'cart.php');\n\t\t}\n\t}", "public function checkCreditLimit() {\n \n Mage::getModel('storesms/apiClient')->checkCreditLimit(); \n \n }", "public function validateOrder($order)\r\n {\r\n if (empty($order)) {\r\n return false;\r\n }\r\n\r\n // check if supplies are enough for every product in the order\r\n foreach ($order as $productId => $orderedQty) {\r\n $productStockLevel = $this->Inventory->getStockLevel($productId);\r\n if ($orderedQty > $productStockLevel) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n }", "function cf_cashbank_valid_amount($params)\n\t{\n\t\t/* Update: (grand_total - sum(plan_amount except current id)) < new_amount => error */\n\t\t$params = is_array($params) ? (object) $params : $params;\n\t\t// debug($params);\n\t\t\n\t\t$id = isset($params->id) && $params->id ? 'and t2.id <> '.$params->id : '';\n\t\t$invoice_id = $params->invoice_id;\n\t\t$str = \"SELECT (net_amount - (select coalesce(sum(amount),0) from cf_cashbank_line t2 where t2.is_active = '1' and t2.is_deleted = '0' and t2.invoice_id = t1.id $id)) as amount \n\t\t\tfrom cf_invoice t1 where t1.id = $invoice_id\";\n\t\t$row = $this->db->query($str)->row();\n\t\tif ($row->amount - $params->amount < 0) {\n\t\t\t$this->session->set_flashdata('message', $row->amount);\n\t\t\treturn FALSE;\n\t\t}\n\t\treturn TRUE;\n\t}", "public function hasQuota(){\n return $this->_has(12);\n }", "private function comparePrices()\n {\n $grandTotal = $this->quote->getGrandTotal();\n if ($this->pmtOrder->getShoppingCart()->getTotalAmount() != intval(strval(100 * $grandTotal))) {\n throw new \\Exception(self::VA_ERR_MSG);\n }\n }", "public static function get_minimum_amount() {\n\t\t// Check order amount\n\t\tswitch ( get_woocommerce_currency() ) {\n\t\t\tcase 'USD':\n\t\t\tcase 'CAD':\n\t\t\tcase 'EUR':\n\t\t\tcase 'CHF':\n\t\t\tcase 'AUD':\n\t\t\tcase 'SGD':\n\t\t\t\t$minimum_amount = 50;\n\t\t\t\tbreak;\n\t\t\tcase 'GBP':\n\t\t\t\t$minimum_amount = 30;\n\t\t\t\tbreak;\n\t\t\tcase 'DKK':\n\t\t\t\t$minimum_amount = 250;\n\t\t\t\tbreak;\n\t\t\tcase 'NOK':\n\t\t\tcase 'SEK':\n\t\t\t\t$minimum_amount = 300;\n\t\t\t\tbreak;\n\t\t\tcase 'JPY':\n\t\t\t\t$minimum_amount = 5000;\n\t\t\t\tbreak;\n\t\t\tcase 'MXN':\n\t\t\t\t$minimum_amount = 1000;\n\t\t\t\tbreak;\n\t\t\tcase 'HKD':\n\t\t\t\t$minimum_amount = 400;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t$minimum_amount = 50;\n\t\t\t\tbreak;\n\t\t}\n\n\t\treturn $minimum_amount;\n\t}", "public function canBeDeclined()\n {\n return $this->isAwaitingFee();\n }", "protected function hasRemainingDiscount()\n {\n return !$this->limited || $this->remaining > 0;\n }", "public function hasPrecost(){\n return $this->_has(25);\n }", "public function isBalanceExceeded()\n {\n return self::BALANCE_EXCEEDED === $this->code;\n }", "public function test_validate_withdraw_balance()\n {\n $amount = 5000;\n $balance = $this->obj->get_balance();\n $withdraw = $this->obj->validate_withdraw_balance($amount);\n if($amount < $balance){\n $this->assertTrue($withdraw);\n }else{\n $this->assertFalse($withdraw);\n }\n \n }", "public function isUnderpaid()\n {\n return $this->getStatus() === OpenNode_Bitcoin_Model_Bitcoin::OPENNODE_STATUS_UNDERPAID;\n }", "public function testIncorrectCanBuyWithOneALotShortMoney(){\n\t\t\t//ARRANGE\n\t\t\t$a= new APIManager();\n\t\t\t$b= new PortfolioManager(14);\n\t\t\t$b->setBalance(9);\n\t\t\t$c= new Trader($a, $b);\n\t\t\t$stock = new Stock(\"Google\",\"GOOGL\",100,10,9);\n\t\t\t//ACT \n\t\t\t$result = $c->canBuy($stock, 10);\n\t\t\t//ASSERT\n\t\t\t$this->assertEquals(false,$result);\n\t\t}", "function cf_invoice_valid_amount($params)\n\t{\n\t\t/* Update: (grand_total - sum(plan_amount except current id)) < new_amount => error */\n\t\t$params = is_array($params) ? (object) $params : $params;\n\t\tif (! isset($params->invoice_id) && !$params->invoice_id)\n\t\t\treturn false;\n\t\t\n\t\t$id = isset($params->id) && $params->id ? 'and t2.id <> '.$params->id : '';\n\t\t$invoice_id = $params->invoice_id;\n\t\tif (isset($params->is_plan) && $params->is_plan) {\n\t\t\t// $str = \"SELECT grand_total,\n\t\t\t\t// (\n\t\t\t\t\t// select coalesce(sum(amount),0) from cf_invoice_plan t2 where t2.is_active = '1' and t2.is_deleted = '0' and t2.invoice_id = t1.id $id\n\t\t\t\t// ) as plan_total \n\t\t\t\t// from cf_invoice t1 where t1.id = $invoice_id\";\n\t\t\t$str = \"SELECT (grand_total - (select coalesce(sum(amount),0) from cf_invoice_plan t2 where t2.is_active = '1' and t2.is_deleted = '0' and t2.invoice_id = t1.id $id)) as amount \n\t\t\t\tfrom cf_invoice t1 where t1.id = $invoice_id\";\n\t\t}\n\t\t$row = $this->db->query($str)->row();\n\t\t// if ($row->grand_total - $row->plan_total - $params->amount < 0) {\n\t\tif ($row->amount - $params->amount < 0) {\n\t\t\t// $this->session->set_flashdata('message', $row->grand_total - $row->plan_total);\n\t\t\t$this->session->set_flashdata('message', $row->amount);\n\t\t\treturn FALSE;\n\t\t}\n\t\treturn TRUE;\n\t\t// if ($row->grand_total - $row->plan_total < $params->amount)\n\t}", "public function issueFeeOverdue()\n {\n $timeToPay = new \\DateInterval('P10D');\n $cutoff = new \\DateTime();\n $cutoff->sub($timeToPay);\n\n $criteria = Criteria::create();\n $criteria->andWhere(Criteria::expr()->lte('invoicedDate', $cutoff->format(\\DateTime::ISO8601)));\n $criteria->orderBy(['invoicedDate' => Criteria::DESC]);\n\n $matchedFees = $this->getFees()->matching($criteria);\n\n /**\n * @var Fee $fee\n */\n foreach ($matchedFees as $fee) {\n if ($fee->isOutstanding() && $fee->getFeeType()->isEcmtIssue()) {\n return true;\n }\n }\n\n return false;\n }", "public function min_limit(){ \n\t\t$total_hrs = $this->data['HrPermission']['no_hrs'];\n\t\t$total_hrs = explode(':', $total_hrs);\t\t\t\n\t\tif($total_hrs[0] == '00' && $total_hrs[1] < 30){\n\t\t\treturn false;\t\n\t\t}else{\n\t\t\treturn true;\n\t\t}\n\t\t\n\t}", "public function isNegativeQtyEnabled()\n {\n return $this->scopeConfig->isSetFlag(\n 'orderflow_inventory_import/settings/negative_qtys_enabled',\n \\Magento\\Store\\Model\\ScopeInterface::SCOPE_WEBSITE\n );\n }", "public function testIncorrectCanBuyWithOneShortMoney(){\n\t\t\t//ARRANGE\n\t\t\t$a= new APIManager();\n\t\t\t$b= new PortfolioManager(14);\n\t\t\t$b->setBalance(99);\n\t\t\t$c= new Trader($a, $b);\n\t\t\t$c->buyStock(NULL, 0);\n\t\t\t$c->sellStock(NULL, 0);\n\t\t\t$stock = new Stock(\"Google\",\"GOOGL\",100,10,9);\n\t\t\t//ACT \n\t\t\t$result = $c->canBuy($stock,1);\n\t\t\t//ASSERT\n\t\t\t$this->assertEquals(false,$result);\n\t\t}", "function validateAmount($amount)\n{ \n return is_numeric($amount) && $amount > 0;\n}", "function Is_Service_Charge_Payment($event)\n{\n\tif(in_array($event->context, array('generated', 'arrange_next')))\n\t{\n\t\tforeach($event->amounts as $ea)\n\t\t{\n\t\t\tif($ea->event_amount_type == 'service_charge' && $ea->amount < 0)\n\t\t\t\treturn TRUE;\n\t \t}\n\t}\n\treturn FALSE;\n}", "public function isByAmount(): bool\n {\n return $this -> charging_type == ChargingTypeEnum :: BY_AMOUNT;\n }", "protected function rateLimitingDisabled()\n {\n return $this->config['limit'] == 0;\n }", "function cf_order_valid_qty($params)\n\t{\n\t\t$params = is_array($params) ? (object) $params : $params;\n\t\tif (! isset($params->requisition_line_id) && !$params->requisition_line_id)\n\t\t\treturn false;\n\t\t\n\t\t$id = $params->requisition_line_id;\n\t\t$str = \"select (t1.qty - (select coalesce(sum(qty),0) from cf_order_line where is_active = '1' and is_deleted = '0' and requisition_line_id = t1.id)) as qty \n\t\t\tfrom cf_requisition_line as t1 where t1.is_deleted = '0' and t1.id = $id\";\n\t\t$row = $this->db->query($str)->row();\n\t\tif ($row->qty - $params->qty < 0) {\n\t\t\t$this->session->set_flashdata('message', $row->qty);\n\t\t\treturn FALSE;\n\t\t}\n\t\treturn TRUE;\n\t}", "function needs_payment() {\n\t\t\tif ( $this->total > 0 ) return true; else return false;\n\t\t}", "function validTransferAmount($account,$amount){\r\n\tif($account[0]=='1'){\r\n\t\t$db = new mysqli(\"localhost\",\"root\",\"***\",\"onlinebanking\");\r\n\t\t$amount = $db -> real_escape_string($amount);\r\n\t\t$rChequing = $db -> query(\"SELECT balance FROM chequingaccounts WHERE account_num='$account'\");\r\n\t\t$db -> close();\r\n\r\n\t\t$chequingBalance = $rChequing -> fetch_all(MYSQLI_ASSOC);\r\n\t\tif(empty($chequingBalance)){\r\n\t\t\treturn False;\r\n\t\t}else{\r\n\t\t\tif($chequingBalance[0]['balance']>=$amount){\r\n\t\t\t\treturn True;\r\n\t\t\t}else{\r\n\t\t\t\treturn False;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}elseif($account[0]='2'){\r\n\t\t$db = new mysqli(\"localhost\",\"root\",\"***\",\"onlinebanking\");\r\n\t\t$amount = $db -> real_escape_string($amount);\r\n\t\t$rSavings = $db -> query(\"SELECT balance FROM savingsaccounts WHERE account_num='$account'\");\r\n\t\t$db -> close();\r\n\r\n\t\t$savingsBalance = $rSavings -> fetch_all(MYSQLI_ASSOC);\r\n\t\tif(empty($savingsBalance)){\r\n\t\t\treturn False;\r\n\t\t}else{\r\n\t\t\tif($savingsBalance[0]['balance']>=$amount){\r\n\t\t\t\treturn True;\r\n\t\t\t}else{\r\n\t\t\t\treturn False;\r\n\t\t\t}\r\n\t\t}\r\n\t}else{\r\n\t\treturn False;\r\n\t}\r\n}", "protected function exceedsAllowance(float $usageInBytes): bool\n {\n return $usageInBytes > static::toBytes($this->maximumSizeInMegaBytes);\n }", "private function checkItemPurchaseBounds() : void\n {\n if ($this->item->available < 1) {\n throw new InventoryException('quantity not available');\n }\n\n if ($this->coinService->getCurrenCoinCount() < $this->item->cost) {\n throw new InsufficientFundsException('insufficient funds available');\n }\n }", "function item_quantities_none() {\r\n //if( isset($edd_options['coopshares_fair_checkout_info']) ) {\r\n // return true;\r\n //} else {\r\n return false;\r\n //}\r\n}", "public function test_is_unlimited_stock()\n {\n $product = Product::factory()->create([\n 'stock' => null\n ]);\n\n $this->assertTrue($product->isUnlimitedStock());\n\n $product->stock = 0;\n $this->assertFalse($product->isUnlimitedStock());\n }", "public function sRiskLASTORDERLESS($user, $order, $value)\n {\n // A order from previous x days must exists\n if ($this->session->offsetGet('sUserId')) {\n $value = (int) $value;\n $checkOrder = $this->db->fetchRow(\n \"SELECT id\n FROM s_order\n WHERE userID = ?\n AND TO_DAYS(ordertime) <= (TO_DAYS(now())-$value) LIMIT 1\",\n [\n $this->session->offsetGet('sUserId'),\n ]\n );\n\n return !$checkOrder || !$checkOrder['id'];\n }\n\n return true;\n }", "function twentynineteen_child_wc_qty_update_cart_validation( $passed, $cart_item_key, $values, $quantity ) {\n $product_min = twentynineteen_child_wc_min_limit( $values['product_id'] );\n\n if ( ! empty( $product_min ) ) {\n // min is empty\n if ( false !== $product_min ) {\n $new_min = $product_min;\n } \n }\n $product = wc_get_product( $values['product_id'] );\n $already_in_cart = twentynineteen_child_wc_cart_qty( $values['product_id'], $cart_item_key );\n if ( ( $already_in_cart + $quantity ) < $new_min ) {\n wc_add_notice( apply_filters( 'wc_qty_error_message', sprintf( esc_html__( 'You should have minimum of %1$s %2$s\\'s to %3$s.', 'twentynineteen-child-min-quantity' ),\n $new_min,\n $product->get_name(),\n '<a href=\"' . esc_url( wc_get_cart_url() ) . '\">' . esc_html__( 'your cart', 'twentynineteen-child-min-quantity' ) . '</a>'),\n $new_min ),\n 'error' );\n $passed = false;\n }\n return $passed;\n }", "public function test_validate_withdraw()\n {\n $amount = 5000;\n $withdraw = $this->obj->validate_withdraw($amount);\n $this->assertLessThanOrEqual(20000,$amount);\n $this->assertTrue($withdraw);\n }", "public function checkMaximumGiftwrapItems() {\r\n// $maxItems = Mage::getStoreConfig(\r\n// 'giftwrap/general/maximum_items_wrapall');\r\n// $quoteId = Mage::getSingleton('checkout/session')->getQuote()->getId();\r\n// $items = Mage::getSingleton('checkout/cart')->getItems();\r\n// $itemsOnCart = 0;\r\n// foreach ($items as $item) {\r\n// $productId = $item->getProductId();\r\n// if (Mage::getModel('catalog/product')->load($productId)->getGiftwrap()) {\r\n// $itemsOnCart += $item->getQty();\r\n// }\r\n// }\r\n// if ($itemsOnCart > $maxItems) {\r\n// Mage::getModel('giftwrap/selection')->loadByQuoteId($quoteId, 0)->delete();\r\n// return false;\r\n// }\r\n// return true;\r\n }", "private static function validateAmount($amount): bool\n {\n $floatAmount = (float) $amount;\n\n return $floatAmount > 0;\n }" ]
[ "0.7543435", "0.6765798", "0.66069865", "0.65109134", "0.6331786", "0.6317292", "0.62049395", "0.6173517", "0.6102382", "0.59934705", "0.59390235", "0.5937438", "0.59161323", "0.58639956", "0.57997465", "0.577919", "0.57677925", "0.5721409", "0.5711012", "0.57107806", "0.56821287", "0.56735814", "0.5657852", "0.5643504", "0.5640546", "0.5628427", "0.56177485", "0.55995315", "0.55971205", "0.5590536", "0.5578332", "0.55667436", "0.5545365", "0.5520186", "0.5511159", "0.55053264", "0.549876", "0.54896486", "0.5474398", "0.54471177", "0.5409549", "0.5403553", "0.5377875", "0.5371399", "0.53659046", "0.5350732", "0.5350712", "0.535054", "0.5348995", "0.53431743", "0.53376675", "0.53236175", "0.53184265", "0.53164953", "0.5307929", "0.53040683", "0.5296549", "0.52905536", "0.5272623", "0.52679354", "0.52670795", "0.5266533", "0.5259742", "0.5252053", "0.5248083", "0.5246141", "0.52439606", "0.5235809", "0.5234482", "0.5227323", "0.5227223", "0.52260584", "0.521984", "0.52014977", "0.519734", "0.51918596", "0.5189955", "0.51675034", "0.51661015", "0.51633286", "0.51603264", "0.5159176", "0.51588666", "0.515555", "0.5147273", "0.5140038", "0.5132905", "0.5123858", "0.51225215", "0.511794", "0.5100153", "0.5097996", "0.5068873", "0.5064083", "0.5048133", "0.5047036", "0.5045277", "0.5043911", "0.5042632", "0.50281006" ]
0.6081097
9
Save MundiPagg customer in Opencart DB
private function saveCustomer($opencartCustomerId, $mundipaggCustomerId) { $this->mundipaggCustomerModel->create( $opencartCustomerId, $mundipaggCustomerId ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function saveAction()\n {\n\n if (!$this->request->isPost()) {\n return $this->dispatcher->forward(array(\n \"controller\" => \"data_customer\",\n \"action\" => \"index\"\n ));\n }\n\n $_id = $this->request->getPost(\"kode_pemesan\");\n\n\n $data_customer = DataCustomer::findFirst(array(\n array(\n \"kode_pemesan\" => $_id\n\n )\n ));\n if (!$data_customer) {\n $this->flash->error(\"data_customer does not exist \" . $_id);\n\n return $this->dispatcher->forward(array(\n \"controller\" => \"data_customer\",\n \"action\" => \"index\"\n ));\n }\n\n $data_customer->kode_pemesan = $this->request->getPost(\"kode_pemesan\");\n $data_customer->nama_pemesan = $this->request->getPost(\"nama_pemesan\");\n $data_customer->alamat = $this->request->getPost(\"alamat\");\n $data_customer->kabupaten = $this->request->getPost(\"kabupaten\");\n $data_customer->no_tlp = $this->request->getPost(\"no_tlp\");\n \n\n if (!$data_customer->save()) {\n\n foreach ($data_customer->getMessages() as $message) {\n $this->flash->error($message);\n }\n\n return $this->dispatcher->forward(array(\n \"controller\" => \"data_customer\",\n \"action\" => \"edit\",\n \"params\" => array($data_customer->_id)\n ));\n }\n\n $this->flash->success(\"data_customer was updated successfully\");\n\n return $this->dispatcher->forward(array(\n \"controller\" => \"data_customer\",\n \"action\" => \"index\"\n ));\n\n }", "public function save()\n {\n $id = $this->input->post('customer_id');\n\n // store result query\n $customer = $this->customer_model->where('customer_id', $id)->get();\n\n // store post[] into array\n $customer_data = array(\n 'customer_id' => $id,\n 'customer_name' => $this->input->post('customer_name'),\n 'customer_contact' => $this->input->post('customer_contact'),\n 'customer_email' => $this->input->post('customer_email'),\n 'customer_pic' => $this->input->post('customer_pic'),\n 'customer_address' => $this->input->post('customer_address'),\n 'province_id' => $this->input->post('province_id')\n );\n\n // check if exist\n if ($customer) {\n try {\n // store proses kedalam variabel\n $customer_update = $this->customer_model->update($customer_data, 'customer_id');\n\n // cek jika berhasil diupdate\n if ($customer_update) {\n // set session temp message\n $this->pesan->berhasil('Data Customer berhasil diupdate.');\n } else {\n // set session temp message\n $this->pesan->gagal('Data Customer gagal diupdate.');\n }\n } catch (\\Exception $e) {\n // set session temp message\n $this->pesan->gagal('ERROR : ' . $e);\n }\n\n } else {\n try {\n // store proses kedalam variabel\n $customer_create = $this->customer_model->insert($customer_data);\n\n // check jika berhasil dibuat\n if ($customer_create) {\n // set session temp message\n $this->pesan->berhasil('Data Customer berhasil dibuat.');\n } else {\n // set session temp message\n $this->pesan->gagal('Data Customer gagal dibuat.');\n }\n } catch (\\Exception $e) {\n // set session temp message\n $this->pesan->gagal('ERROR : ' . $e);\n }\n\n }\n\n // redirect to Index\n redirect('customer');\n\n }", "public static function saveCustomer($data) {\n $objCustomer = new Customer();\n $objCustomer->setFirstname($data['firstname']);\n $objCustomer->setLastname($data[\"lastname\"]);\n $objCustomer->setEmail($data[\"email\"]);\n $objCustomer->setTelephone($data[\"telephone\"]);\n $objCustomer->setFax($data[\"fax\"]);\n $objCustomer->setPassword($data[\"password\"]);\n $objCustomer->setStoreId(1);\n $objCustomer->setSalt(\"\");\n $objCustomer->setCart(\"\");\n $objCustomer->setWishlist(\"\");\n $objCustomer->setNewsletter(0);\n $objCustomer->setAddressId(0);\n $objCustomer->setCustomerGroupId(1);\n $objCustomer->setIp($_SERVER['REMOTE_ADDR']);\n $objCustomer->setStatus(1);\n $objCustomer->setApproved(1);\n $objCustomer->setToken(\"\");\n $objCustomer->setDateAdded(date(\"Y-m-d H;i:s\"));\n\n $customerResult = $objCustomer->save(); // Save customer information\n\n $customerId = $objCustomer->getCustomerId();\n if($customerResult['success']){\n $objCustomerAddress = new CustomerAddress();\n $objCustomerAddress->setCustomerId($customerId);\n $objCustomerAddress->setFirstname($data[\"firstname\"]);\n $objCustomerAddress->setLastname($data[\"lastname\"]);\n $objCustomerAddress->setCompanyId($data[\"company\"]);\n $objCustomerAddress->setAddress1($data[\"address_1\"]);\n $objCustomerAddress->setAddress2($data[\"address_2\"]);\n $objCustomerAddress->setCity($data[\"city\"]);\n $objCustomerAddress->setPostcode($data[\"postcode\"]);\n $objCustomerAddress->setCountryId($data[\"country\"]);\n $objCustomerAddress->setZoneId($data[\"zone_id\"]);\n $objCustomerAddress->setTaxId(0);\n\n $result = $objCustomerAddress->save();// Save Customer Address information\n\n $addressId = $objCustomerAddress->getAddressId();\n\n $customerInfoObj = Customer::loadById($customerId);\n $objCustomer = new Customer();\n $objCustomer->setCustomerId($customerId);\n $objCustomer->setFirstname($customerInfoObj->getFirstname());\n $objCustomer->setLastname($customerInfoObj->getLastname());\n $objCustomer->setEmail($customerInfoObj->getEmail());\n $objCustomer->setTelephone($customerInfoObj->getTelephone());\n $objCustomer->setFax($customerInfoObj->getFax());\n $objCustomer->setPassword($customerInfoObj->getPassword());\n $objCustomer->setStoreId($customerInfoObj->getStoreId());\n $objCustomer->setSalt($customerInfoObj->getSalt());\n $objCustomer->setCart($customerInfoObj->getCart());\n $objCustomer->setWishlist($customerInfoObj->getWishlist());\n $objCustomer->setNewsletter($customerInfoObj->getNewsletter());\n $objCustomer->setAddressId($addressId);\n $objCustomer->setCustomerGroupId($customerInfoObj->getCustomerGroupId());\n $objCustomer->setIp($_SERVER['REMOTE_ADDR']);\n $objCustomer->setStatus($customerInfoObj->getStatus());\n $objCustomer->setApproved($customerInfoObj->getApproved());\n $objCustomer->setToken($customerInfoObj->getToken());\n $objCustomer->setDateAdded($customerInfoObj->getDateAdded());\n\n return $objCustomer->save(); // Save customer information\n }\n }", "public function insert_customer()\n {\n $this->permission->check_label('add_customer')->create()->redirect();\n\n $customer_id = generator(15);\n //Customer basic information adding.\n $data = array(\n 'customer_id' => $customer_id,\n 'customer_name' => $this->input->post('customer_name',TRUE),\n 'customer_mobile' => $this->input->post('mobile',TRUE),\n 'customer_email' => $this->input->post('email',TRUE),\n 'customer_short_address' => $this->input->post('address',TRUE),\n 'customer_address_1' => $this->input->post('customer_address_1',TRUE),\n 'customer_address_2' => $this->input->post('customer_address_2',TRUE),\n 'city' => $this->input->post('city',TRUE),\n 'state' => $this->input->post('state',TRUE),\n 'country' => $this->input->post('country',TRUE),\n 'zip' => $this->input->post('zip',TRUE),\n 'status' => 1\n );\n\n $result = $this->Customers->customer_entry($data);\n\n if ($result == TRUE) {\n $this->session->set_userdata(array('message' => display('successfully_added')));\n if (isset($_POST['add-customer'])) {\n redirect(base_url('dashboard/Ccustomer/manage_customer'));\n exit;\n } elseif (isset($_POST['add-customer-another'])) {\n redirect(base_url('dashboard/Ccustomer'));\n exit;\n }\n } else {\n $this->session->set_userdata(array('error_message' => display('already_exists')));\n redirect(base_url('dashboard/Ccustomer'));\n }\n }", "public function insert_customer()\n\t{\n\t\t$customer_id=$this->auth->generator(15);\n\n\t \t//Customer basic information adding.\n\t\t$data=array(\n\t\t\t'customer_id' \t\t=> $customer_id,\n\t\t\t'customer_name' \t=> $this->input->post('customer_name'),\n\t\t\t'customer_mobile' \t=> $this->input->post('mobile'),\n\t\t\t'customer_email' \t=> $this->input->post('email'),\n\t\t\t'customer_short_address' => $this->input->post('address'),\n\t\t\t'customer_address_1' => $this->input->post('customer_address_1'),\n\t\t\t'customer_address_2' => $this->input->post('customer_address_2'),\n\t\t\t'city' \t\t\t\t=> $this->input->post('city'),\n\t\t\t'state' \t\t\t=> $this->input->post('state'),\n\t\t\t'country' \t\t\t=> $this->input->post('country'),\n\t\t\t'zip' \t\t\t\t=> $this->input->post('zip'),\n\t\t\t'status' \t\t\t=> 1\n\t\t\t);\n\n\t\t$result=$this->Customers->customer_entry($data);\n\t\t\n\t\tif ($result == TRUE) {\t\t\n\t\t\t$this->session->set_userdata(array('message'=>display('successfully_added')));\n\t\t\tif(isset($_POST['add-customer'])){\n\t\t\t\tredirect(base_url('Ccustomer/manage_customer'));\n\t\t\t\texit;\n\t\t\t}elseif(isset($_POST['add-customer-another'])){\n\t\t\t\tredirect(base_url('Ccustomer'));\n\t\t\t\texit;\n\t\t\t}\n\t\t}else{\n\t\t\t$this->session->set_userdata(array('error_message'=>display('already_exists')));\n\t\t\tredirect(base_url('Ccustomer'));\n\t\t}\n\t}", "public function customer_save($id = NULL)\n {\n if ($this->input->post())\n {\n if ($this->input->post('id'))\n {\n $this->MCustomers->update(trim($this->input->post('code')));\n }\n else\n {\n $ac_receivable = $this->MSettings->get_by_company_id($this->session->user_company);\n $chart = $this->MAc_charts->get_by_id($ac_receivable['ac_receivable']);\n $siblings = $this->MAc_charts->get_by_parent_id($ac_receivable['ac_receivable']);\n if (count($siblings) > 0)\n {\n $ac_code_temp = explode('.', $siblings['code']);\n $ac_last = count($ac_code_temp) - 1;\n $ac_new = (int) $ac_code_temp[$ac_last] + 10;\n $ac_code = $chart['code'] . '.' . $ac_new;\n }\n else\n {\n $ac_code = $chart['code'] . '.10';\n }\n\n $ac_id = $this->MAc_charts->account_create($ac_receivable['ac_receivable'], $ac_code, $this->input->post('name'));\n\n // $customer = $this->MCustomers->get_latest();\n // if ( count( $customer ) > 0 ) {\n // $code = (int) $customer['code'] + 1;\n // } else {\n // $code = 1001;\n // }\n $this->MCustomers->create(trim($this->input->post('code')), $ac_id);\n }\n\n $this->session->set_flashdata('success', 'Customer saved successfully.');\n redirect('inventory/customer-list', 'refresh');\n }\n else\n {\n $data['title'] = 'POS System';\n $data['menu'] = 'inventory';\n $data['content'] = 'admin/inventory/customer/save';\n $customer = $this->MCustomers->get_latest();\n if (count($customer) > 0)\n {\n $data['code'] = (int)$customer['code'] + 1;\n }\n else\n {\n $data['code'] = 1001;\n }\n $data['customer'] = $this->MCustomers->get_by_id($id);\n $data['privileges'] = $this->privileges;\n $this->load->view('admin/template', $data);\n }\n }", "public function save()\n {\n global $connection;\n //echo \"Im on the customers ->save()\";\n \n \n //if($this->customer_id == \"\")\n //{\n #set error handler\n #set exception handler\n #call stored procedures\n $SQLQuery = \"CALL customers_insert(\"\n . \":customer_firstName,\"\n . \":customer_lastName,\"\n . \":customer_address,\"\n . \":customer_city,\"\n . \":customer_province,\"\n . \":customer_postalCode,\"\n . \":customer_username,\"\n . \":customer_password);\";\n $PDOStatement = $connection->prepare($SQLQuery);\n $PDOStatement->bindParam(\":customer_firstName\", $this->customer_firstName);\n $PDOStatement->bindParam(\":customer_lastName\", $this->customer_lastName);\n $PDOStatement->bindParam(\":customer_address\", $this->customer_address);\n $PDOStatement->bindParam(\":customer_city\", $this->customer_city);\n $PDOStatement->bindParam(\":customer_province\", $this->customer_province);\n $PDOStatement->bindParam(\":customer_postalCode\", $this->customer_postalCode);\n $PDOStatement->bindParam(\":customer_username\", $this->customer_username); \n $PDOStatement->bindParam(\":customer_password\", $this->customer_password);\n $PDOStatement->execute();\n\n \n //}\n }", "public function saveCustomer($customer) {\n $customer->save();\n\n $customerAccount = $this->newCustomerAccount($customer->id);\n $customerAccount->save();\n\n $customer->sl_customer_account_id = $customerAccount->id;\n $customer->save();\n }", "function customer_create(){\r\n\t\t//POST varible here\r\n\t\t//auto increment, don't accept anything from form values\r\n\t\t$cust_id=trim(@$_POST[\"cust_id\"]);\r\n\t\t$cust_no=trim(@$_POST[\"cust_no\"]);\r\n\t\t$cust_no=str_replace(\"/(<\\/?)(p)([^>]*>)\", \"\",$cust_no);\r\n\t\t$cust_no=str_replace(\"'\", '\"',$cust_no);\r\n\t\t$cust_nolama=trim(@$_POST[\"cust_nolama\"]);\r\n\t\t$cust_nolama=str_replace(\"/(<\\/?)(p)([^>]*>)\", \"\",$cust_nolama);\r\n\t\t$cust_nolama=str_replace(\"'\", '\"',$cust_nolama);\r\n\t\t$cust_nama=trim(@$_POST[\"cust_nama\"]);\r\n\t\t$cust_nama=str_replace(\"/(<\\/?)(p)([^>]*>)\", \"\",$cust_nama);\r\n\t\t$cust_nama=str_replace(\"'\", '\"',$cust_nama);\r\n\t\t$cust_title=trim(@$_POST[\"cust_title\"]);\r\n\t\t$cust_title=str_replace(\"/(<\\/?)(p)([^>]*>)\", \"\",$cust_title);\r\n\t\t$cust_title=str_replace(\"'\", '\"',$cust_title);\r\n\t\t$cust_panggilan=trim(@$_POST[\"cust_panggilan\"]);\r\n\t\t$cust_panggilan=str_replace(\"/(<\\/?)(p)([^>]*>)\", \"\",$cust_panggilan);\r\n\t\t$cust_panggilan=str_replace(\"'\", '\"',$cust_panggilan);\r\n\t\t$cust_foreigner=trim(@$_POST[\"cust_foreigner\"]);\r\n\t\t$cust_foreigner=str_replace(\"/(<\\/?)(p)([^>]*>)\", \"\",$cust_foreigner);\r\n\t\t$cust_foreigner=str_replace(\"'\", '\"',$cust_foreigner);\r\n\t\t$cust_kelamin=trim(@$_POST[\"cust_kelamin\"]);\r\n\t\t$cust_kelamin=str_replace(\"/(<\\/?)(p)([^>]*>)\", \"\",$cust_kelamin);\r\n\t\t$cust_kelamin=str_replace(\"'\", '\"',$cust_kelamin);\r\n\t\t$cust_alamat=trim(@$_POST[\"cust_alamat\"]);\r\n\t\t$cust_alamat=str_replace(\"/(<\\/?)(p)([^>]*>)\", \"\",$cust_alamat);\r\n\t\t$cust_alamat=str_replace(\"'\", '\"',$cust_alamat);\r\n\t\t$cust_kota=trim(@$_POST[\"cust_kota\"]);\r\n\t\t$cust_kota=str_replace(\"/(<\\/?)(p)([^>]*>)\", \"\",$cust_kota);\r\n\t\t$cust_kota=str_replace(\"'\", '\"',$cust_kota);\r\n\t\t$cust_kodepos=trim(@$_POST[\"cust_kodepos\"]);\r\n\t\t$cust_kodepos=str_replace(\"/(<\\/?)(p)([^>]*>)\", \"\",$cust_kodepos);\r\n\t\t$cust_kodepos=str_replace(\"'\", '\"',$cust_kodepos);\r\n\t\t$cust_propinsi=trim(@$_POST[\"cust_propinsi\"]);\r\n\t\t$cust_propinsi=str_replace(\"/(<\\/?)(p)([^>]*>)\", \"\",$cust_propinsi);\r\n\t\t$cust_propinsi=str_replace(\"'\", '\"',$cust_propinsi);\r\n\t\t$cust_negara=trim(@$_POST[\"cust_negara\"]);\r\n\t\t$cust_negara=str_replace(\"/(<\\/?)(p)([^>]*>)\", \"\",$cust_negara);\r\n\t\t$cust_negara=str_replace(\"'\", '\"',$cust_negara);\r\n\t\t$cust_alamat2=trim(@$_POST[\"cust_alamat2\"]);\r\n\t\t$cust_alamat2=str_replace(\"/(<\\/?)(p)([^>]*>)\", \"\",$cust_alamat2);\r\n\t\t$cust_alamat2=str_replace(\"'\", '\"',$cust_alamat2);\r\n\t\t$cust_kota2=trim(@$_POST[\"cust_kota2\"]);\r\n\t\t$cust_kota2=str_replace(\"/(<\\/?)(p)([^>]*>)\", \"\",$cust_kota2);\r\n\t\t$cust_kota2=str_replace(\"'\", '\"',$cust_kota2);\r\n\t\t$cust_kodepos2=trim(@$_POST[\"cust_kodepos2\"]);\r\n\t\t$cust_kodepos2=str_replace(\"/(<\\/?)(p)([^>]*>)\", \"\",$cust_kodepos2);\r\n\t\t$cust_kodepos2=str_replace(\"'\", '\"',$cust_kodepos2);\r\n\t\t$cust_propinsi2=trim(@$_POST[\"cust_propinsi2\"]);\r\n\t\t$cust_propinsi2=str_replace(\"/(<\\/?)(p)([^>]*>)\", \"\",$cust_propinsi2);\r\n\t\t$cust_propinsi2=str_replace(\"'\", '\"',$cust_propinsi2);\r\n\t\t$cust_negara2=trim(@$_POST[\"cust_negara2\"]);\r\n\t\t$cust_negara2=str_replace(\"/(<\\/?)(p)([^>]*>)\", \"\",$cust_negara2);\r\n\t\t$cust_negara2=str_replace(\"'\", '\"',$cust_negara2);\r\n\t\t$cust_telprumah=trim(@$_POST[\"cust_telprumah\"]);\r\n\t\t$cust_telprumah=str_replace(\"/(<\\/?)(p)([^>]*>)\", \"\",$cust_telprumah);\r\n\t\t$cust_telprumah=str_replace(\"'\", '\"',$cust_telprumah);\r\n\t\t$cust_telprumah2=trim(@$_POST[\"cust_telprumah2\"]);\r\n\t\t$cust_telprumah2=str_replace(\"/(<\\/?)(p)([^>]*>)\", \"\",$cust_telprumah2);\r\n\t\t$cust_telprumah2=str_replace(\"'\", '\"',$cust_telprumah2);\r\n\t\t$cust_telpkantor=trim(@$_POST[\"cust_telpkantor\"]);\r\n\t\t$cust_telpkantor=str_replace(\"/(<\\/?)(p)([^>]*>)\", \"\",$cust_telpkantor);\r\n\t\t$cust_telpkantor=str_replace(\"'\", '\"',$cust_telpkantor);\r\n\t\t$cust_hp=trim(@$_POST[\"cust_hp\"]);\r\n\t\t$cust_hp=str_replace(\"/(<\\/?)(p)([^>]*>)\", \"\",$cust_hp);\r\n\t\t$cust_hp=str_replace(\"'\", '\"',$cust_hp);\r\n\t\t$cust_hp2=trim(@$_POST[\"cust_hp2\"]);\r\n\t\t$cust_hp2=str_replace(\"/(<\\/?)(p)([^>]*>)\", \"\",$cust_hp2);\r\n\t\t$cust_hp2=str_replace(\"'\", '\"',$cust_hp2);\r\n\t\t$cust_hp3=trim(@$_POST[\"cust_hp3\"]);\r\n\t\t$cust_hp3=str_replace(\"/(<\\/?)(p)([^>]*>)\", \"\",$cust_hp3);\r\n\t\t$cust_hp3=str_replace(\"'\", '\"',$cust_hp3);\r\n\t\t$cust_bb=trim(@$_POST[\"cust_bb\"]);\r\n\t\t$cust_bb=str_replace(\"/(<\\/?)(p)([^>]*>)\", \"\",$cust_bb);\r\n\t\t$cust_bb=str_replace(\"'\", '\"',$cust_bb);\r\n\t\t$cust_email=trim(@$_POST[\"cust_email\"]);\r\n\t\t$cust_email=str_replace(\"/(<\\/?)(p)([^>]*>)\", \"\",$cust_email);\r\n\t\t$cust_email=str_replace(\"'\", '\"',$cust_email);\r\n\t\t$cust_fb=trim(@$_POST[\"cust_fb\"]);\r\n\t\t$cust_tweeter=trim(@$_POST[\"cust_tweeter\"]);\r\n\t\t$cust_email2=trim(@$_POST[\"cust_email2\"]);\r\n\t\t$cust_email2=str_replace(\"/(<\\/?)(p)([^>]*>)\", \"\",$cust_email2);\r\n\t\t$cust_email2=str_replace(\"'\", '\"',$cust_email2);\r\n\t\t$cust_fb2=trim(@$_POST[\"cust_fb2\"]);\r\n\t\t$cust_tweeter2=trim(@$_POST[\"cust_tweeter2\"]);\r\n\t\t$cust_agama=trim(@$_POST[\"cust_agama\"]);\r\n\t\t$cust_agama=str_replace(\"/(<\\/?)(p)([^>]*>)\", \"\",$cust_agama);\r\n\t\t$cust_agama=str_replace(\"'\", '\"',$cust_agama);\r\n\t\t$cust_pendidikan=trim(@$_POST[\"cust_pendidikan\"]);\r\n\t\t$cust_pendidikan=str_replace(\"/(<\\/?)(p)([^>]*>)\", \"\",$cust_pendidikan);\r\n\t\t$cust_pendidikan=str_replace(\"'\", '\"',$cust_pendidikan);\r\n\t\t$cust_profesitxt=trim(@$_POST[\"cust_profesitxt\"]);\r\n\t\t$cust_profesitxt=str_replace(\"/(<\\/?)(p)([^>]*>)\", \"\",$cust_profesitxt);\r\n\t\t$cust_profesitxt=str_replace(\"'\", '\"',$cust_profesitxt);\r\n\t\tif($cust_profesitxt<>\"\")\r\n\t\t\t$cust_profesi=$cust_profesitxt;\r\n\t\telse\r\n\t\t\t$cust_profesi=trim(@$_POST[\"cust_profesi\"]);\r\n\t\t$cust_tmptlahir=trim(@$_POST[\"cust_tmptlahir\"]);\r\n\t\t$cust_tmptlahir=str_replace(\"/(<\\/?)(p)([^>]*>)\", \"\",$cust_tmptlahir);\r\n\t\t$cust_tmptlahir=str_replace(\"'\", '\"',$cust_tmptlahir);\r\n\t\t$cust_tgllahir=trim(@$_POST[\"cust_tgllahir\"]);\r\n\t\t//$cust_tgllahirend=trim(@$_POST[\"cust_tgllahirend\"]);\r\n\t\t$cust_hobitxt=trim(@$_POST[\"cust_hobitxt\"]);\r\n\t\t$cust_hobitxt=str_replace(\"/(<\\/?)(p)([^>]*>)\", \"\",$cust_hobitxt);\r\n\t\t$cust_hobitxt=str_replace(\"'\", '\"',$cust_hobitxt);\r\n\t\t/*if($cust_hobitxt<>\"\")\r\n\t\t\t$cust_hobi=$cust_hobitxt;\r\n\t\telse\r\n\t\t\t$cust_hobi=trim(@$_POST[\"cust_hobi\"]);*/\r\n\t\t$cust_hobi_baca=trim(@$_POST[\"cust_hobi_baca\"]);\r\n\t\t$cust_hobi_baca=str_replace(\"/(<\\/?)(p)([^>]*>)\", \"\",$cust_hobi_baca);\r\n\t\t$cust_hobi_baca=str_replace(\"'\", '\"',$cust_hobi_baca);\r\n\t\t$cust_hobi_olah=trim(@$_POST[\"cust_hobi_olah\"]);\r\n\t\t$cust_hobi_olah=str_replace(\"/(<\\/?)(p)([^>]*>)\", \"\",$cust_hobi_olah);\r\n\t\t$cust_hobi_olah=str_replace(\"'\", '\"',$cust_hobi_olah);\r\n\t\t$cust_hobi_masak=trim(@$_POST[\"cust_hobi_masak\"]);\r\n\t\t$cust_hobi_masak=str_replace(\"/(<\\/?)(p)([^>]*>)\", \"\",$cust_hobi_masak);\r\n\t\t$cust_hobi_masak=str_replace(\"'\", '\"',$cust_hobi_masak);\r\n\t\t$cust_hobi_travel=trim(@$_POST[\"cust_hobi_travel\"]);\r\n\t\t$cust_hobi_travel=str_replace(\"/(<\\/?)(p)([^>]*>)\", \"\",$cust_hobi_travel);\r\n\t\t$cust_hobi_travel=str_replace(\"'\", '\"',$cust_hobi_travel);\r\n\t\t$cust_hobi_foto=trim(@$_POST[\"cust_hobi_foto\"]);\r\n\t\t$cust_hobi_foto=str_replace(\"/(<\\/?)(p)([^>]*>)\", \"\",$cust_hobi_foto);\r\n\t\t$cust_hobi_foto=str_replace(\"'\", '\"',$cust_hobi_foto);\r\n\t\t$cust_hobi_lukis=trim(@$_POST[\"cust_hobi_lukis\"]);\r\n\t\t$cust_hobi_lukis=str_replace(\"/(<\\/?)(p)([^>]*>)\", \"\",$cust_hobi_lukis);\r\n\t\t$cust_hobi_lukis=str_replace(\"'\", '\"',$cust_hobi_lukis);\r\n\t\t$cust_hobi_nari=trim(@$_POST[\"cust_hobi_nari\"]);\r\n\t\t$cust_hobi_nari=str_replace(\"/(<\\/?)(p)([^>]*>)\", \"\",$cust_hobi_nari);\r\n\t\t$cust_hobi_nari=str_replace(\"'\", '\"',$cust_hobi_nari);\r\n\t\t$cust_hobi_lain=trim(@$_POST[\"cust_hobi_lain\"]);\r\n\t\t$cust_hobi_lain=str_replace(\"/(<\\/?)(p)([^>]*>)\", \"\",$cust_hobi_lain);\r\n\t\t$cust_hobi_lain=str_replace(\"'\", '\"',$cust_hobi_lain);\r\n\t\t$cust_referensi=trim(@$_POST[\"cust_referensi\"]);\r\n\t\t$cust_referensi=str_replace(\"/(<\\/?)(p)([^>]*>)\", \"\",$cust_referensi);\r\n\t\t$cust_referensi=str_replace(\"'\", '\"',$cust_referensi);\r\n\t\t$cust_referensilaintxt=trim(@$_POST[\"cust_referensilaintxt\"]);\r\n\t\t$cust_referensilaintxt=str_replace(\"/(<\\/?)(p)([^>]*>)\", \"\",$cust_referensilaintxt);\r\n\t\t$cust_referensilaintxt=str_replace(\"'\", '\"',$cust_referensilaintxt);\r\n\t\tif($cust_referensilaintxt<>\"\")\r\n\t\t\t$cust_referensilain=$cust_referensilaintxt;\r\n\t\telse\r\n\t\t\t$cust_referensilain=trim(@$_POST[\"cust_referensilain\"]);\r\n\t\t$cust_keterangan=trim(@$_POST[\"cust_keterangan\"]);\r\n\t\t$cust_keterangan=str_replace(\"/(<\\/?)(p)([^>]*>)\", \"\",$cust_keterangan);\r\n\t\t$cust_keterangan=str_replace(\"'\", '\"',$cust_keterangan);\r\n\t\t$cust_member=trim(@$_POST[\"cust_member\"]);\r\n\t\t$cust_member=str_replace(\"/(<\\/?)(p)([^>]*>)\", \"\",$cust_member);\r\n\t\t$cust_member=str_replace(\"'\", '\"',$cust_member);\r\n\t\t$cust_terdaftar=trim(@$_POST[\"cust_terdaftar\"]);\r\n\t\t$cust_tglawaltrans=trim(@$_POST[\"cust_tglawaltrans\"]);\r\n\t\t$cust_statusnikah=trim(@$_POST[\"cust_statusnikah\"]);\r\n\t\t$cust_statusnikah=str_replace(\"/(<\\/?)(p)([^>]*>)\", \"\",$cust_statusnikah);\r\n\t\t$cust_statusnikah=str_replace(\"'\", '\"',$cust_statusnikah);\r\n\t\t//$cust_priority=trim(@$_POST[\"cust_priority\"]);\r\n\t\t//$cust_priority=str_replace(\"/(<\\/?)(p)([^>]*>)\", \"\",$cust_priority);\r\n\t\t//$cust_priority=str_replace(\"'\", '\"',$cust_priority);\r\n\t\t$cust_jmlanak=trim(@$_POST[\"cust_jmlanak\"]);\r\n\t\t$cust_unit=trim(@$_POST[\"cust_unit\"]);\r\n\t\t$cust_unit=str_replace(\"/(<\\/?)(p)([^>]*>)\", \"\",$cust_unit);\r\n\t\t$cust_unit=str_replace(\"'\", '\"',$cust_unit);\r\n\t\t$cust_aktif=trim(@$_POST[\"cust_aktif\"]);\r\n\t\t$cust_aktif=str_replace(\"/(<\\/?)(p)([^>]*>)\", \"\",$cust_aktif);\r\n\t\t$cust_aktif=str_replace(\"'\", '\"',$cust_aktif);\r\n\t\t$cust_fretfulness=trim(@$_POST[\"cust_fretfulness\"]);\r\n\t\t$cust_fretfulness=str_replace(\"/(<\\/?)(p)([^>]*>)\", \"\",$cust_fretfulness);\r\n\t\t$cust_fretfulness=str_replace(\"'\", '\"',$cust_fretfulness);\r\n\t\t$cust_creator=trim(@$_POST[\"cust_creator\"]);\r\n\t\t$cust_creator=str_replace(\"/(<\\/?)(p)([^>]*>)\", \"\",$cust_creator);\r\n\t\t$cust_creator=str_replace(\"'\", '\"',$cust_creator);\r\n\t\t$cust_date_create=trim(@$_POST[\"cust_date_create\"]);\r\n\t\t$cust_update=trim(@$_POST[\"cust_update\"]);\r\n\t\t$cust_update=str_replace(\"/(<\\/?)(p)([^>]*>)\", \"\",$cust_update);\r\n\t\t$cust_update=str_replace(\"'\", '\"',$cust_update);\r\n\t\t$cust_date_update=trim(@$_POST[\"cust_date_update\"]);\r\n\t\t$cust_revised=trim(@$_POST[\"cust_revised\"]);\r\n\t\t$cust_cp=trim(@$_POST[\"cust_cp\"]);\r\n\t\t$cust_cp=str_replace(\"/(<\\/?)(p)([^>]*>)\", \"\",$cust_cp);\r\n\t\t$cust_cp=str_replace(\"'\", '\"',$cust_cp);\r\n\t\t$cust_cptelp=trim(@$_POST[\"cust_cptelp\"]);\r\n\t\t$cust_cptelp=str_replace(\"/(<\\/?)(p)([^>]*>)\", \"\",$cust_cptelp);\r\n\t\t$cust_cptelp=str_replace(\"'\", '\"',$cust_cptelp);\r\n\t\t\r\n\t\t$cust_umurstart=trim(@$_POST[\"cust_umurstart\"]);\r\n\t\t$cust_umurstart=str_replace(\"/(<\\/?)(p)([^>]*>)\", \"\",$cust_umurstart);\r\n\t\t$cust_umurstart=str_replace(\"'\", '\"',$cust_umurstart);\r\n\t\t$cust_umurend=trim(@$_POST[\"cust_umurend\"]);\r\n\t\t$cust_umurend=str_replace(\"/(<\\/?)(p)([^>]*>)\", \"\",$cust_umurend);\r\n\t\t$cust_umurend=str_replace(\"'\", '\"',$cust_umurend);\r\n\t\t\r\n\t\t$cust_umur=trim(@$_POST[\"cust_umur\"]);\r\n\t\t$cust_umur=str_replace(\"/(<\\/?)(p)([^>]*>)\", \"\",$cust_umur);\r\n\t\t$cust_umur=str_replace(\"'\", '\"',$cust_umur);\r\n\t\t\r\n\t\t$result = $this->m_customer->customer_create($cust_no ,$cust_nolama ,$cust_nama, $cust_title, $cust_panggilan, $cust_foreigner, $cust_kelamin, $cust_alamat ,$cust_kota ,$cust_kodepos ,$cust_propinsi ,$cust_negara,$cust_alamat2 ,$cust_kota2 ,$cust_kodepos2 ,$cust_propinsi2 ,$cust_negara2 ,$cust_telprumah ,$cust_telprumah2 ,$cust_telpkantor ,$cust_hp ,$cust_hp2 ,$cust_hp3 ,$cust_email ,$cust_fb ,$cust_tweeter , $cust_email2 ,$cust_fb2 ,$cust_tweeter2 ,$cust_agama ,$cust_pendidikan ,$cust_profesi ,$cust_tmptlahir ,$cust_tgllahir ,$cust_referensi, $cust_referensilain ,$cust_keterangan ,$cust_member ,$cust_terdaftar ,$cust_tglawaltrans, $cust_statusnikah , /*$cust_priority ,*/ $cust_jmlanak ,$cust_unit ,$cust_aktif , $cust_fretfulness, $cust_creator ,$cust_date_create ,$cust_update ,$cust_date_update ,$cust_revised ,$cust_cp ,$cust_cptelp, $cust_hobi_baca, $cust_hobi_olah, $cust_hobi_masak, $cust_hobi_travel, $cust_hobi_foto, $cust_hobi_lukis, $cust_hobi_nari, $cust_hobi_lain, $cust_umurstart, $cust_umurend, $cust_umur, $cust_bb );\r\n\t\techo $result;\r\n\t}", "public function save_order() {\n$customer = array(\n'nama' => $this->input->post('nama'),\n'email' => $this->input->post('email'),\n);\n// And store user information in database.\n$cust_id = $this->Shop_model->insert_customer($customer);\n\n$order = array(\n'pelanggan' => $cust_id\n);\n\n$ord_id = $this->Shop_model->insert_order($order);\n\n\nforeach ($this->cart->contents() as $item):\n$order_detail = array(\n'order_id' => $ord_id,\n'produk' => $item['id'],\n'qty' => $item['qty'],\n'harga' => $item['price']\n);\n\n// Insert product imformation with order detail, store in cart also store in database.\n\n$cust_id = $this->Shop_model->insert_order_detail($order_detail);\nendforeach;\n\n\nredirect('shop');\n\n }", "public function add_customer($data){\n\t\t\n\t\t\t$this->db->insert('customers',$data);\n\t\t\tredirect('Customer');\n\t\t\n\t}", "function save_customer_details( $params ) {\n\t\textract( $params );\n\n\t\t$qry = \"UPDATE cart \".\n\t\t\t\"SET customer_id='\".$user_no.\"', \".\n\t\t\t\"recipient='\".$firstname.\" \".$lastname.\"', \".\n\t\t\t\"email='\".$email.\"', \".\n\t\t\t\"address='\".$address.\"', \".\n\t\t\t\"town='\".$city.\"', \".\n\t\t\t\"postcode='\".$postcode.\"', \".\n\t\t\t\"county='\".$country.\"' \";\n\n\t\tif( !empty( $telephone ) )\n\t\t\t$qry.=\",telephone='\".$telephone.\"' \";\n\n\t\tif( !empty( $payment_method ) )\n\t\t\t$qry.=\",payment_method='\".$payment_method.\"' \";\n\n\t\tif( !empty( $comments ) )\n\t\t\t$qry.=\",comments='\".$comments.\"' \";\n\n\t\t$qry.=\"WHERE id='\".$cart_id.\"'\";\n\n\t\treturn $this->db->query( $qry );\n\t}", "function add_customer($params){\n $this->company_db->insert('tbl_customer', $params);\n return $this->company_db->insert_id();\n }", "function saveAction()\n {\n\t\t$params = $this->_request->getParams();\n \t$id=(int)$params[\"id\"];\n\t\t$name = $params[\"txtName\"];\n\t\t$address = $params[\"txtAddress\"];\n\t\t$email = $params[\"txtEmail\"];\n\t\t$phone = $params[\"txtPhone\"];\n\n\t\t$customers = new CustomersModel();\n\t\tif($id > 0)\n\t\t{\n\t\t\t$customers->updateCustomersById($id, $name, $address, $email, $phone);\n\t\t\t$this->_redirect('/qtht/customers');\n\t\t} else {\n\t\t\t$customers->insertCustomers($name, $address, $email, $phone);\n\t\t\t$this->_redirect('/qtht/customers');\n\t\t}\n }", "public function addCustomer()\n\t{\n\t\tdate_default_timezone_set('Asia/Kolkata');\n $timestamp = date('Y-m-d H:i:s');\n \n $phone = $this->security->xss_clean($this->input->post('phone'));\n $name = substr($phone, -4);\n \n $phonecheck = $this->Common->get_details('customers',array('customer_phone'=>$phone));\n if($phonecheck->num_rows()>0)\n {\n $this->session->set_flashdata('alert_type', 'error');\n\t\t\t$this->session->set_flashdata('alert_title', 'Failed');\n\t\t\t$this->session->set_flashdata('alert_message', 'Mobile number already registered..!');\n\t\t\tredirect('admin/bill/retailBill');\n }\n else\n {\n \t $array = [\n \t\t\t\t\t\t\t'name_english' => 'Customer'.$name,\n \t\t\t\t\t\t\t'customer_phone' => $phone,\n \t\t\t\t\t\t\t'customer_image' => 'uploads/admin/customers/user.png',\n \t\t\t\t\t\t\t'status' => '1',\n \t\t\t\t\t\t\t'added_by' => 'admin',\n \t\t\t\t\t\t\t'timestamp' => $timestamp\n \t\t\t\t ];\n \t\tif ($this->Common->insert('customers',$array)) \n \t\t{\n \t\t\t$this->session->set_flashdata('alert_type', 'success');\n \t\t\t$this->session->set_flashdata('alert_title', 'Success');\n \t\t\t$this->session->set_flashdata('alert_message', 'New customer added..!');\n \t\t\tredirect('admin/bill/retailBill');\n \t\t}\n \t\telse \n \t\t{\n \t\t\t$this->session->set_flashdata('alert_type', 'error');\n \t\t\t$this->session->set_flashdata('alert_title', 'Failed');\n \t\t\t$this->session->set_flashdata('alert_message', 'Failed to add customer..!');\n \t\t\tredirect('retailer/bill/retailBill');\n \t\t}\n }\t\n\t}", "function add_customer()\n\t{\n\t\tglobal $db;\n\n\t\t$vals = array(\n\t\t\t'NULL',\n\t\t\t$this->preorderID,\n\t\t\tmysql_real_escape_string($this->customerinfo['fname']),\n\t\t\tmysql_real_escape_string($this->customerinfo['lname']),\n\t\t\t$this->customerinfo['amountdown'],\n\t\t\tNO\n\t\t);\n\n\t\t$sql = \"INSERT INTO preorder_customers VALUES ('\".implode(\"','\",$vals).\"')\";\n\t\tmysql_query($sql,$db);\n\t\t$this->error->mysql(__FILE__,__LINE__);\n\t}", "function save_individual_customer_detail( $params ) {\n\t\textract( $params );\n\n\t\t$qry = \"UPDATE cart SET \";\n\t\t$qry.= $fieldname.\"='\".$value.\"' \";\n\t\t$qry.= \"WHERE id='\".$cart_id.\"' AND customer_id='\".$user_no.\"'\";\n\n\t\treturn $this->db->query( $qry );\n\t}", "function add_voucher_customer($data)\n\t{\n\t\t$this->db->insert('customer_voucher', $data);\n\t\t//return $this->db->insert_id(); // this is only for auto increment\n\t\treturn $this->db->affected_rows();\t\t\n\t}", "public function savecuisine(){\n\t\t// get posted data\n\t\t\n\t\n\t $datas = $_POST;\n\t\tunset($datas['savecuisine']);\t\n\t\t\n\t\t\n\t\t\t\t// insert into vendor\n\t\t$result = dbFactory::recordInsert($datas,VCUISINE);\n\t\tif($result == 1){\n\t\t\t$this->flag = 1;\t\t// success\n\t\t\treturn message::setMsg(\"A New Cuisine Added Successfully\");\n\t\t}else{\n\t\t\t$this->flag = 2;\t\t// fail\n\t\t\treturn message::setMsg(\"Cuisine Creation Failed\",\"0\");\n\t\t}\n\t\t\n\t\t}", "public function post() {\n\n parent::post();\n\n if(!$this->getStoreId()) {\n Mage::throwException('Please provide a Store ID.');\n }\n\n Mage::app()->setCurrentStore($this->getStoreId());\n\n $data = $this->getJsonPayload();\n\n $_customer = $data->customer;\n $email = (string)$_customer->email;\n\n $websiteId = Mage::app()->getStore()->getWebsiteId();\n $customerExists = Mage::helper('bakerloo_restful/sales')->customerExists($email, $websiteId);\n\n if($customerExists === false) {\n\n $password = substr(uniqid(), 0, 8);\n $customer = $this->helper('bakerloo_restful')->createCustomer($websiteId, $data, $password);\n\n if(isset($_customer->address) && is_array($_customer->address) && !empty($_customer->address)) {\n\n foreach($_customer->address as $address) {\n $address = array(\n 'firstname' => $address->firstname,\n 'lastname' => $address->lastname,\n 'email' => $email,\n 'is_active' => 1,\n 'street' => $address->street,\n 'street1' => $address->street,\n 'city' => $address->city,\n 'region_id' => $address->region_id,\n 'region' => $address->region,\n 'postcode' => $address->postcode,\n 'country_id' => $address->country_id,\n 'telephone' => $address->telephone,\n );\n\n $newAddress = Mage::getModel('customer/address');\n $newAddress->addData($address);\n $newAddress->setId(null)\n ->setIsDefaultBilling(true)\n ->setIsDefaultShipping(true);\n $customer->addAddress($newAddress);\n }\n }\n\n $customer->save();\n }\n else {\n Mage::throwException(Mage::helper('bakerloo_restful')->__(\"Customer already exists.\"));\n }\n\n return array('id' => (int)$customer->getId(),\n 'email' => $customer->getEmail(),\n 'store_id' => (int)$customer->getStoreId());\n }", "function saveCustomerId($customer_id){\n\n $where = array('userId'=>$this->session->userdata('userId'));\n $isUpdated = $this->common_model->updateFields(USERS, array('stripeCustomerId'=>$customer_id),$where);\n\n if($isUpdated){\n return TRUE;\n }\n\n }", "public function c_add()\n {\n\t\t$this->getC();\n $customer = $this->Customers->newEntity();\n if ($this->request->is('post')) {\n $customer = $this->Customers->patchEntity($customer, $this->request->data);\n if ($this->Customers->save($customer)) {\n $this->Flash->success('The customer has been saved.');\n return $this->redirect(['action' => 'c_index']);\n } else {\n $this->Flash->error('The customer could not be saved. Please, try again.');\n }\n }\n $this->set(compact('customer'));\n $this->set('_serialize', ['customer']);\n }", "private function saveCustomer($customer){\n \n $customermodel = new CustomerModel();\n $customermodel->save($customer);\n return $this->insertID();\n }", "public function createAction()\n {\n\n if (!$this->request->isPost()) {\n return $this->dispatcher->forward(array(\n \"controller\" => \"data_customer\",\n \"action\" => \"index\"\n ));\n }\n\n $data_customer = new DataCustomer();\n\n $data_customer->kode_pemesan = $this->request->getPost(\"kode_pemesan\");\n $data_customer->nama_pemesan = $this->request->getPost(\"nama_pemesan\");\n $data_customer->alamat = $this->request->getPost(\"alamat\");\n $data_customer->kabupaten = $this->request->getPost(\"kabupaten\");\n $data_customer->no_tlp = $this->request->getPost(\"no_tlp\");\n \n\n if (!$data_customer->save()) {\n foreach ($data_customer->getMessages() as $message) {\n $this->flash->error($message);\n }\n\n return $this->dispatcher->forward(array(\n \"controller\" => \"data_customer\",\n \"action\" => \"new\"\n ));\n }\n\n $this->flash->success(\"data_customer was created successfully\");\n\n return $this->dispatcher->forward(array(\n \"controller\" => \"data_customer\",\n \"action\" => \"index\"\n ));\n\n }", "public function save_CustomerDetails($data) { /* this fun is used for save customer details */\n extract($data);\n $sqlnew = \"INSERT INTO customer_details(customer_name,customer_email,\"\n . \"customer_address,contact,bank_name,bank_address,\"\n . \"account_no,IFSC_no,MICR_no,PAN_no,joining_date,profit_for_odgreater,profit_for_odsmall,branch_name) \"\n . \"values ('$Input_CustomerName','$Input_CustomerEmail','$Input_CustomerAddress',\"\n . \"'$contact','$Input_Bank_name','$Input_Bank_Address',\"\n . \"'$Input_Bank_AccNo','$Input_Bank_IFSC_Code','$Input_Bank_MICR_Code',\"\n . \"'$Input_PAN_No',now(),'$Select_profitCategoryOne','$Select_profitCategoryTwo','$branch_name')\";\n $resultnew = $this->db->query($sqlnew);\n if ($resultnew) {\n $response = array(\n 'status' => 1,\n 'status_message' => 'Customer Details Inserted Successfully..!');\n } else {\n $response = array(\n 'status' => 0,\n 'status_message' => 'Customer Details Not Inserted Successfully...!');\n }\n return $response;\n }", "function add_customer($params)\n {\n $this->db->insert('customer',$params);\n return $this->db->insert_id();\n }", "function addCustomer($customerDetailsAry)\n{\n}", "public function save()\n\t{\n\t\tparent::save();\n\t\t\\IPS\\Widget::deleteCaches( 'donations', 'nexus' );\n\t\tstatic::recountCustomerFields();\n\t}", "public function insertOrderCustomer($value,$line_item, $mainOrderId)\n {\n\n\n //customer info\n $customer_arr['order_id'] = $mainOrderId;\n $customer_arr['line_item_id'] = $line_item->id;\n $customer_arr['billing_address_name'] =$value->billing_address->name;\n $customer_arr['billing_address_first_name'] =$value->billing_address->first_name;\n $customer_arr['billing_address_last_name'] =$value->billing_address->last_name;\n $customer_arr['billing_address_address1'] =$value->billing_address->address1;\n $customer_arr['billing_address_address2'] =$value->billing_address->address2;\n $customer_arr['billing_address_phone'] =$value->billing_address->phone;\n $customer_arr['billing_address_city'] =$value->billing_address->city;\n $customer_arr['billing_address_zip'] =$value->billing_address->zip;\n $customer_arr['billing_address_province'] =$value->billing_address->province;\n $customer_arr['billing_address_country'] =$value->billing_address->country;\n $customer_arr['billing_address_company'] =$value->billing_address->company;\n $customer_arr['billing_address_latitude'] =$value->billing_address->latitude;\n $customer_arr['billing_address_longitude'] =$value->billing_address->longitude;\n $customer_arr['billing_address_province_code'] =$value->billing_address->province_code;\n $customer_arr['billing_address_country_code'] =$value->billing_address->country_code;\n $customer_arr['shipping_address_name'] = $value->shipping_address->name;\n $customer_arr['shipping_address_first_name'] = $value->shipping_address->first_name;\n $customer_arr['shipping_address_last_name'] = $value->shipping_address->last_name;\n $customer_arr['shipping_address_address1'] = $value->shipping_address->address1;\n $customer_arr['shipping_address_address2'] = $value->shipping_address->address2;\n $customer_arr['shipping_address_phone'] = $value->shipping_address->phone;\n $customer_arr['shipping_address_city'] = $value->shipping_address->city;\n $customer_arr['shipping_address_zip'] = $value->shipping_address->zip;\n $customer_arr['shipping_address_province'] = $value->shipping_address->province;\n $customer_arr['shipping_address_country'] = $value->shipping_address->country;\n $customer_arr['shipping_address_company'] = $value->shipping_address->company;\n $customer_arr['shipping_address_latitude'] = $value->shipping_address->latitude;\n $customer_arr['shipping_address_longitude'] = $value->shipping_address->longitude;\n $customer_arr['shipping_address_province_code'] = $value->shipping_address->province_code;\n $customer_arr['shipping_address_country_code'] = $value->shipping_address->country_code;\n $customer_arr['customer_id'] = $value->customer->id;\n $customer_arr['customer_email'] = $value->customer->email;\n $customer_arr['customer_first_name'] = $value->customer->first_name;\n $customer_arr['customer_last_name'] = $value->customer->last_name;\n $customer_arr['customer_total_spent'] = $value->customer->total_spent;\n $customer_arr['customer_last_order_id'] = $value->customer->last_order_id;\n $customer_arr['customer_phone'] = $value->customer->phone;\n $customer_arr['customer_tags'] = $value->customer->tags;\n $customer_arr['customer_last_order_name'] = $value->customer->last_order_name;\n $customer_arr['customer_currency'] = $value->customer->currency;\n $customer_arr['default_address_id'] = $value->customer->default_address->id;\n $customer_arr['default_address_customer_id'] = $value->customer->default_address->customer_id;\n $customer_arr['default_address_first_name'] = $value->customer->default_address->first_name;\n $customer_arr['default_address_last_name'] = $value->customer->default_address->last_name;\n $customer_arr['default_address_company'] = $value->customer->default_address->company;\n $customer_arr['default_address_address1'] = $value->customer->default_address->address1;\n $customer_arr['default_address_address2'] = $value->customer->default_address->address2;\n $customer_arr['default_address_city'] = $value->customer->default_address->city;\n $customer_arr['default_address_province'] = $value->customer->default_address->province;\n $customer_arr['default_address_country'] = $value->customer->default_address->country;\n $customer_arr['default_address_zip'] = $value->customer->default_address->zip;\n $customer_arr['default_address_phone'] = $value->customer->default_address->phone;\n $customer_arr['default_address_name'] = $value->customer->default_address->name;\n $customer_arr['default_address_province_code'] = $value->customer->default_address->province_code;\n $customer_arr['default_address_country_code'] = $value->customer->default_address->country_code;\n $customer_arr['default_address_country_name'] = $value->customer->default_address->country_name;\n\n\n return OrderCustomerDetails::insertGetId($customer_arr);\n\n }", "public function store(Request $request, Customer $customer)\n {\n \n $customer->name= $request->name; \n $customer->address= $request->address; \n $customer->telephone= $request->telephone; \n $customer->mobile= $request->mobile; \n $customer->email= $request->email; \n $customer->contact= $request->contact; \n\n $customer->proc_contact= $request->proc_contact; \n $customer->proc_telephone= $request->proc_telephone; \n $customer->proc_email= $request->proc_email; \n\n $customer->it_contact= $request->it_contact; \n $customer->it_telephone= $request->it_telephone; \n $customer->it_email= $request->it_email; \n\n $customer->feedback= $request->feedback; \n $customer->customer_response= $request->customer_response; \n $customer->followup1= $request->followup1; \n\n $customer->save(); \n return redirect('admin/customers')->with('success','Transaction created successfully!');\n }", "public function storeCustomerData($obj){\n if($obj){\n Customer::create(array(\n 'name' => $obj-> name,\n 'address' => $obj-> address,\n 'checked' => $obj-> checked,\n 'description' => $obj-> description,\n 'interest' => $obj-> interest,\n 'date_of_birth' => $obj-> date_of_birth,\n 'email' => $obj-> email,\n 'account' => $obj-> account,\n 'credit_card' => $this->storeCreditCard($obj-> credit_card) \n ));\n }\n \n }", "private function saveOrder() {\n $currentDate = new Zend_Date();\n $customer = Customer::findByEmail($this->getRequest()->getParam('email'));\n $customer->name = $this->getRequest()->getParam('name');\n $customer->phone = $this->getRequest()->getParam('phone');\n\n $ord = new Order();\n $ord->Customer = $customer;\n $ord->date = $currentDate->get();\n //TODO Take product id from param and check if it is available (not in future, still on sales, etc)\n $product = Product::getCurrentProduct();\n $ord->Product = $product;\n $customer->save();\n $ord->save();\n $product->takeFromStock();\n $customer->sendOrderNotification($ord);\n }", "function insert_new_klient() {\n $nazev = isset($_POST['nazev']) ? htmlspecialchars($_POST['nazev']) : \"\";\n $kontakt = isset($_POST['kontakt']) ? htmlspecialchars($_POST['kontakt']) : \"\";\n $email = isset($_POST['email']) ? htmlspecialchars($_POST['email']) : \"\";\n $telefon = isset($_POST['telefon']) ? htmlspecialchars($_POST['telefon']) : \"\";\n $states = isset($_POST['states']) ? $_POST['states'] : \"0\";\n $poznamka = isset($_POST['poznamka']) ? htmlspecialchars($_POST['poznamka']) : \"\";\n\n include_once(\"app/class/DBClass.php\");\n $myModel = new DBClass;\n $data .= $myModel->insertNewCustomer($nazev, $kontakt, $email, $telefon, $states, $poznamka);\n\n header('Location: index.php?action=klienti');\n}", "public function add_new_customer()\n {\n if ($this->input->post())\n {\n $ac_receivable = $this->MSettings->get_by_company_id($this->session->user_company);\n $chart = $this->MAc_charts->get_by_id($ac_receivable['ac_receivable']);\n $siblings = $this->MAc_charts->get_by_parent_id($ac_receivable['ac_receivable']);\n if (count($siblings) > 0)\n {\n $ac_code_temp = explode('.', $siblings['code']);\n $ac_last = count( $ac_code_temp ) - 1;\n $ac_new = (int)$ac_code_temp[$ac_last] + 10;\n $ac_code = $chart['code'] . '.' . $ac_new;\n }\n else\n {\n $ac_code = $chart['code'] . '.10';\n }\n\n $ac_id = $this->MAc_charts->account_create($ac_receivable['ac_receivable'], $ac_code, $this->input->post('name'));\n $insert_id = $this->MCustomers->create(trim($this->input->post('code')), $ac_id);\n $customers = $this->MCustomers->get_all();\n $html = '';\n foreach ($customers as $customer)\n {\n if ($insert_id == $customer['id'])\n {\n $html .= '<option value=\"' . $customer['id'] . '\" selected>' . $customer['name'] . '</option>';\n }\n else\n {\n $html .= '<option value=\"' . $customer['id'] . '\">' . $customer['name'] . '</option>';\n }\n }\n echo $html;\n }\n }", "public function add_save()\n\t{\n\t\tif (!$this->is_allowed('amuco_customer_request_add', false)) {\n\t\t\techo json_encode([\n\t\t\t\t'success' => false,\n\t\t\t\t'message' => cclang('sorry_you_do_not_have_permission_to_access')\n\t\t\t\t]);\n\t\t\texit;\n\t\t}\n\n\t\t$this->form_validation->set_rules('rsd', 'RSD', 'trim');\n\t\t$this->form_validation->set_rules('status', 'Status', 'trim|required|max_length[50]');\n\t\t$this->form_validation->set_rules('customer', 'Customer', 'trim|required|max_length[10]');\n\t\t$this->form_validation->set_rules('sales_agent', 'Sales Agent', 'trim|required|max_length[10]');\n\t\t$this->form_validation->set_rules('contact', 'Contact', 'trim|required|max_length[10]');\n\t\t$this->form_validation->set_rules('destination_port', 'Destination Port', 'trim|required|max_length[10]');\n\t\t$this->form_validation->set_rules('incoterm', 'Incoterm', 'trim|required|max_length[10]');\n\t\t$this->form_validation->set_rules('remarks', 'Remarks', 'trim|max_length[250]');\n\t\t\n\n\t\tif ($this->form_validation->run()) {\n\t\t\n\t\t\t$save_data = [\n\t\t\t\t'date_created' => date(\"Y-m-d H:i:s\"),\n\t\t\t\t'RSD' => $this->input->post('rsd'),\n\t\t\t\t'status' => 'New', //$this->input->post('status'),\n\t\t\t\t'customer' => $this->input->post('customer'),\n\t\t\t\t'sales_agent' => $this->input->post('sales_agent'),\n\t\t\t\t'contact' => $this->input->post('contact'),\n\t\t\t\t'destination_port' => $this->input->post('destination_port'),\n\t\t\t\t'incoterm' => $this->input->post('incoterm'),\n\t\t\t\t'combinate_container' => $this->input->post('combinate_container'),\n\t\t\t\t'remarks' => $this->input->post('remarks'),\n\t\t\t\t'representative' => $this->input->post('representative'),\n\t\t\t];\n\n\t\t\t\n\t\t\t$save_amuco_customer_request = $this->model_amuco_customer_request->store($save_data);\n\t\t\t\n\n\n\t\t \n\t\t\t\n\t\t\tif ($save_amuco_customer_request) {\n\t\t\t\t$save_data_tracer=array_merge($save_data,['id'=>$save_amuco_customer_request]);\n\t\t\t\t$this->insert_logs($save_data_tracer,'added');\n\t\t\t\n\t\t\t\tif ($this->input->post('save_type') == 'stay') {\n\t\t\t\t\t$this->data['success'] = true;\n\t\t\t\t\t$this->data['id'] \t = $save_amuco_customer_request;\n\t\t\t\t\t$this->data['redirect'] = base_url('administrator/amuco_customer_request/edit/'. $save_amuco_customer_request);\n\t\t\t\t\t$this->data['message'] = cclang('success_save_data_stay', [\n\t\t\t\t\t\tanchor('administrator/amuco_customer_request/edit/' . $save_amuco_customer_request, 'Edit Amuco Customer Request')\n\t\t\t\t\t]);\n\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\tset_message(\n\t\t\t\t\t\tcclang('success_save_data_redirect', [\n\t\t\t\t\t\tanchor('administrator/amuco_customer_request/edit/' . $save_amuco_customer_request, 'Edit Amuco Customer Request')\n\t\t\t\t\t]), 'success');\n\n\t\t\t\t\t$this->data['success'] = true;\n\t\t\t\t\t$this->data['redirect'] = base_url('administrator/amuco_customer_request/edit/'. $save_amuco_customer_request);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif ($this->input->post('save_type') == 'stay') {\n\t\t\t\t\t$this->data['success'] = false;\n\t\t\t\t\t$this->data['message'] = cclang('data_not_change');\n\t\t\t\t} else {\n\t\t\t\t\t$this->data['success'] = false;\n\t\t\t\t\t$this->data['message'] = cclang('data_not_change');\n\t\t\t\t\t$this->data['redirect'] = base_url('administrator/amuco_customer_request');\n\t\t\t\t}\n\t\t\t}\n\n\t\t} else {\n\t\t\t$this->data['success'] = false;\n\t\t\t$this->data['message'] = 'Opss validation failed';\n\t\t\t$this->data['errors'] = $this->form_validation->error_array();\n\t\t}\n\n\t\techo json_encode($this->data);\n\t\texit;\n\t}", "function add_customer()\n\t{\n\t\t$table = \"customer\";\n\t\t$where = \"customer_email = '\".$this->input->post('user_email').\"'\";\n\t\t$items = \"customer_id\";\n\t\t$order = \"customer_id\";\n\t\t\n\t\t$result = $this->select_entries_where($table, $where, $items, $order);\n\t\t\n\t\tif(count($result) > 0)\n\t\t{\n\t\t\t$customer_id = $result[0]->customer_id;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$data = array(\n\t\t\t\t'customer_email'=>$this->input->post('user_email'),\n\t\t\t\t'customer_name'=>$this->input->post('seller_name'),\n\t\t\t\t'customer_phone'=>$this->input->post('user_phone')\n\t\t\t);\n\t\t\t\n\t\t\t$table = \"customer\";\n\t\t\t$customer_id = $this->insert($table, $data);\n\t\t}\n\t\t\n\t\treturn $customer_id;\n\t}", "function select_customer() {\n $data = array();\n $customer_id = $this->input->post(\"customer\");\n\n if ($this->Customer->account_number_exists($customer_id)) {\n $customer_id = $this->Customer->customer_id_from_account_number($customer_id);\n }\n\n if ($this->Customer->exists($customer_id)) {\n $this->sale_lib->set_customer($customer_id);\n if ($this->config->item('automatically_email_receipt')) {\n $this->sale_lib->set_email_receipt(1);\n }\n } else {\n $data['error'] = lang('sales_unable_to_add_customer');\n }\n $this->_reload($data);\n }", "public function doAddCustomers($form)\n {\n\n\n // $options['AdditionalName'] = null; //>String</AdditionalName>\n // $options['ArchiveNumber'] = null; //>Integer</ArchiveNumber>\n// $options['BankData'] = array(\n// 'PlentySoapObject_CustomerBankData' => array(\n// 'Accountnumber' => null, //>String</Accountnumber>\n// 'BankName' => null, //>String</BankName>\n// 'Blz' => null, //>String</Blz>\n// 'Date' => null, //>Integer</Date>\n// 'OwnerFirstname' => null, //>String</OwnerFirstname>\n// 'OwnerName' => null, //>String</OwnerName>\n// )\n// );\n//\n// $options['Company'] = null; //>String</Company>\n// $options['ContactPerson'] = null; //>String</ContactPerson>\n// $options['CountryID'] = null; //>Integer</CountryID>\n// $options['CustomerClass'] = null; //>Integer</CustomerClass>\n// $options['CustomerID'] = null; //>Integer</CustomerID>\n// $options['CustomerNumber'] = null; //>String</CustomerNumber>\n// $options['CustomerRating'] = null; //>Integer</CustomerRating>\n// $options['CustomerSince'] = null; //>Integer</CustomerSince>\n// $options['DateOfBirth'] = null; //>Integer</DateOfBirth>\n// $options['DebitorAccount'] = null; //>String</DebitorAccount>\n// $options['EbayName'] = null; //>String</EbayName>\n// $options['Evaluation'] = null; //>String</Evaluation>\n// $options['ExternalCustomerID'] = null; //>String</ExternalCustomerID>\n// $options['FSK'] = null; //>Integer</FSK>\n// $options['Fax'] = null; //>String</Fax>\n// $options['FormOfAddress'] = null; //>Integer</FormOfAddress>\n// $options['FreeTextFields'] = array(\n// 'PlentySoapObject_CustomerFreeTestFields' => array(\n// 'Free1' => null, //>String</Free1>\n// 'Free2' => null, //>String</Free2>\n// 'Free3' => null, //>String</Free3>\n// 'Free4' => null, //>String</Free4>\n// 'Free5' => null, //String</Free5>\n// 'Free6' => null, //>String</Free6>\n// 'Free7' => null, //>String</Free7>\n// 'Free8' => null, //>String</Free8>\n// )\n// );\n// $options['IsBlocked'] = null; //>Boolean</IsBlocked>\n// $options['Language'] = null; //>String</Language>\n// $options['LastLogin'] = null; //>Integer</LastLogin>\n// $options['LastSalesOrder'] = null; //>Integer</LastSalesOrder>\n// $options['LastSalesOrderCount'] = null; //>Integer</LastSalesOrderCount>\n// $options['LastSalesOrderID'] = null; //>Integer</LastSalesOrderID>\n// $options['Mobile'] = null; //>String</Mobile>\n// $options['Newsletter'] = null; //>Integer</Newsletter>\n// $options['PasswordMD5'] = null; //>String</PasswordMD5>\n// $options['PasswordPlain'] = null; //>String</PasswordPlain>\n// $options['PayDebitnode'] = null; //>Boolean</PayDebitnode>\n// $options['PayInvoice'] = null; //>Boolean</PayInvoice>\n// $options['PaymentDueWithin'] = null; //>Integer</PaymentDueWithin>\n// $options['Postident'] = null; //>String</Postident>\n// $options['ResponsibleID'] = null; //>Integer</ResponsibleID>\n// $options['StoreID'] = null; //>Integer</StoreID>\n// $options['Telephone'] = null; //>String</Telephone>\n// $options['Title'] = null; //>String</Title>\n// $options['Type'] = null; //>Integer</Type>\n// $options['Updated'] = null; //>Integer</Updated>\n// $options['VAT_ID'] = null; //>String</VAT_ID>\n\n $customer = new PMCustomer();\n\n $customer->Surname = $form['lastname'];\n\n // $options['Surname'] =\n $customer->FirstName = $form['firstname'];\n $customer->HouseNo = $form['HouseNo'];\n $customer->Street = $form['street'];\n $customer->City = $form['city'];\n $customer->ZIP = $form['zip'];\n $customer->CountryID = 1;\n $customer->CountryISO2 = $form['country'];\n $customer->Email = $form['email'];\n $customer->CustomerNumber =\n $customer->Language = 'DE';\n\n\n\n\n try {\n $oResponse = $this->__soapCall('AddCustomers', array($customer));\n } catch (SoapFault $sf) {\n print_r(\"Es kam zu einem Fehler beim Call GetAuthentificationToken<br>\");\n print_r($sf->getMessage());\n }\n\n\n if (isset($oResponse->Success) && $oResponse->Success == true) {\n return ($oResponse);\n } else {\n return ($oResponse->ErrorMessages);\n }\n }", "public function insert($shoppingcartInvoice);", "function alta_marca(){\n\t\t$u= new Marca_producto();\n\t\t$related = $u->from_array($_POST);\n\t\t$u->usuario_id=$GLOBALS['usuarioid'];\n\t\t// save with the related objects\n\t\tif($u->save($related)) {\n\t\t\techo \"<html> <script>alert(\\\"Se han actualizado los datos de la Subfamilia de Productos.\\\"); window.location='\".base_url().\"index.php/inicio/acceso/\".$GLOBALS['ruta'].\"/menu';</script></html>\";\n\t\t} else\n\t\t\tshow_error(\"\".$u->error->string);\n\t}", "function insertCustomer($customer) {\n //define the query\n $sql = \"INSERT INTO `customers`(`package_id`, `fname`, `lname`, `phone`, `email`, `state`)\n VALUES (:package_id, :fname, :lname, :phone, :email, :state)\";\n\n //Prepare the statement\n $statement = $this->_dbh->prepare($sql);\n\n //Bind the parameters\n $statement->bindParam(':package_id', $customer->getPackageId(), PDO::PARAM_STR);\n $statement->bindParam(':fname', $customer->getFname(), PDO::PARAM_STR);\n $statement->bindParam(':lname', $customer->getLname(), PDO::PARAM_STR);\n $statement->bindParam(':phone', $customer->getPhone(), PDO::PARAM_STR);\n $statement->bindParam(':email', $customer->getEmail(), PDO::PARAM_STR);\n $statement->bindParam(':state', $customer->getState(), PDO::PARAM_STR);\n\n //Execute\n $statement->execute();\n }", "function add_process()\r\r\r\n\t{\t\r\r\r\n\t\t\r\r\r\n\t\tif($this->session->userdata('login_admin') == true)\r\r\r\n\t\t{\r\r\r\n\r\r\r\n\t\t\t$user_id \t\t\t\t= $this->session->userdata('id_user');\r\r\r\n\t\t\t$judul\t\t\t\t\t= $this->model_utama->get_detail('1','setting_id','setting')->row()->website_name;\r\r\r\n\t\t\t$data['title'] \t\t\t= 'Halaman Tambah customer | '.$judul;\r\r\r\n\t\t\t$data['heading'] \t\t= 'Add customer List';\r\r\r\n\t\t\t$data['customer_list']\t= $this->model_utama->get_order('create_date','desc','customers');\r\r\r\n\t\t\t$data['form_action'] \t= site_url('index.php/admin/customer/add_process');\r\r\r\n\t\t\t$data['page']\t\t\t= 'admin/customer/page_form';\r\r\r\n\r\r\r\n\t\t\t/*===================================================\r\r\r\n\t\t\t\t1.\tREGISTER PROCESS\r\r\r\n\t\t\t===================================================*/\r\r\r\n\t\t\t$redirect\t\t\t\t=\t'admin/customer/add';\r\r\r\n\t\t\t$upload_image \t\t\t= \ttrue;\r\r\r\n\t\t\t$view\t\t\t\t\t= \t'template';\r\r\r\n\t\t\t$create_by \t\t\t\t= \t'admin';\r\r\r\n\t\t\t$this->customer_register_helper(\t$redirect,\r\r\r\n\t\t\t\t\t\t\t\t\t\t\t\t$upload_image,\r\r\r\n\t\t\t\t\t\t\t\t\t\t\t\t$view,\r\r\r\n\t\t\t\t\t\t\t\t\t\t\t\t$data,\r\r\r\n\t\t\t\t\t\t\t\t\t\t\t\t$create_by\t\r\r\r\n\t\t\t\t\t\t\t\t\t\t\t);\r\r\r\n\r\r\r\n\t\t}\r\r\r\n\t\telse\r\r\r\n\t\t{\r\r\r\n\t\t\tredirect(base_url().'login');\r\r\r\n\t\t}\r\r\r\n\t}", "public function customeraddAction(Request $request)\n {\n $result = array();\n $maincompany = $this->getUser()->getMaincompany();\n $em = $this->getDoctrine()->getManager();\n $countcustomer = $maincompany->getCountcustomers();\n $plan = $maincompany->getPlan();\n if (($plan->getCustomers()) && ($countcustomer >= $plan->getMaxcustomers())) {\n $message = 'Ha llegado al número máximo de CLIENTES permitidos. Para crear más debe actualizar su plan a uno superior.';\n if ($this->isGranted('ROLE_ADMIN')) {\n $message = $message . '<a href=\"' . $this->generateUrl('loginmain') . '\" > Actualizar ahora</a>';\n }\n $result['error']=-1;\n $result['message'] = $message;\n goto next;\n } else {\n $result['error']=0;\n }\n // DATOS para crear el nuevo cliente\n $email = $request->query->get('email');\n $name = $request->query->get('name');\n $lastname = $request->query->get('lastname');\n $direccion = $request->query->get('direccion');\n $typecus = $request->query->get('typecus');\n $cityid = $request->query->get('cityid');\n $cityname = $request->query->get('cityname');\n $state = $request->query->get('state');\n $zip = $request->query->get('zip');\n $phone = $request->query->get('phone');\n $mobile = $request->query->get('mobile');\n \n $entity = new Customer();\n $entity->setName($name);\n $typecustomer = $em->getRepository('NvCargaBundle:Customertype')->find($typecus);\n $entity->setType($typecustomer);\n $entity->setCreationdate(new \\DateTime());\n if ($email) {\n $entity->setEmail($email);\n }\n if ($lastname) {\n $entity->setLastname($lastname);\n }\n if ($cityid) {\n $thecity=$em->getRepository('NvCargaBundle:City')->find($cityid);\n } else {\n $thestate = $em->getRepository('NvCargaBundle:State')->find($state);\n $thecity = $em->getRepository('NvCargaBundle:City')->findOneBy(['name'=>$cityname,'state'=>$thestate]);\n if (!$thecity) {\n $thecity = new City();\n $thecity->setName($cityname);\n $thecity->setState($thestate);\n $thecity->setActive(false);\n $em->persist($thecity);\n }\n }\n \n \n $baddress = new Baddress();\n $baddress->setCustomer($entity);\n $entity->addBaddress($baddress);\n $entity->setAgency($this->getUser()->getAgency());\n $cstatus = $em->getRepository('NvCargaBundle:Customerstatus')->findOneBy(array('name' =>'ACTIVO'));\n $entity->setStatus($cstatus);\n $entity->setAdrdefault($baddress);\n $entity->setAdrmain($baddress);\n $baddress->setAddress($direccion);\n $baddress->setName($entity->getName());\n $baddress->setLastname($entity->getLastname());\n $baddress->setCity($thecity);\n if ($zip) {\n $baddress->setZip($zip);\n }\n if ($phone) {\n $baddress->setPhone($phone);\n }\n if ($mobile) {\n $baddress->setMobile($mobile);\n }\n $em->persist($baddress);\n $entity->setMaincompany($maincompany);\n $em->persist($entity);\n $countcustomer++;\n $maincompany->setCountcustomers($countcustomer);\n $em->flush();\n \n $result['customer'] = $entity->getId();\n $result['baddress'] = $baddress->getId();\n $result['cityid'] = $thecity->getId();\n \n next:\n return new JsonResponse($result); \n }", "public function insert($cbtRekapNilai);", "function add_customer($customer_info){\n\n\t if(check_token($customer_info['crf_code'],'check')){\n\t\tif(mysqli_result_(mysqli_query_(\"select count('customer_id') from customers where customer_id='\".sanitize($customer_info['customer_id']).\"'\"), 0) != '1'){\n\n \t\t\t\t$cust_id = mysqli_result_(mysqli_query_(\"select customer_id from customers where customer_name='\".sanitize($customer_info['customer_name']).\"' and mobile='\".sanitize($customer_info['mobile']).\"' LIMIT 1 \"), 0);\n\t\t\t\tif($cust_id && sanitize($customer_info['mobile']) !=''){ // if exist return id \n\t\t\t\t\treturn $cust_id;\n\t\t\t\t }else{ // create then return id not dublicate \n\n\t\t\t\t\t\tif(mysqli_result_(mysqli_query_(\"select count(customer_id) from customers where customer_name='\".sanitize($customer_info['customer_name']).\"' and customer_name!='' and mobile='' \"), 0) != '0' && sanitize($customer_info['mobile']) ==''){\n\t\t\t\t\t\t\tdie(\" <strong> write fullname or add mobile because this \".sanitize($customer_info['customer_name']).\" is already exist </strong>\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t \tmysqli_query_(\"insert into customers (customer_id,customer_name,mobile,delete_status) values('','\".sanitize($customer_info['customer_name']).\"','\".sanitize($customer_info['mobile']).\"','0')\");\n\t\t\t\t\t\t\treturn mysqli_result_(mysqli_query_(\"SELECT customer_id FROM customers ORDER BY customer_id DESC LIMIT 1\"),0);\n\t\t\t\t\t\t}\n\t\t\t\t }\n\n\t\t\t}else{\n\n\t\t\t\t$cust_name = (sanitize($customer_info['customer_name']) != '')?\"customer_name='\".sanitize($customer_info['customer_name']).\"', \":'';\n\t\t\t\tmysqli_query_(\"update customers set $cust_name mobile='\".sanitize($customer_info['mobile']).\"' where customer_id=\".sanitize($customer_info['customer_id']));\n\t\t\t\treturn sanitize($customer_info['customer_id']);\n\t\t\t}\n\t\t}else{\n \t\t\tdie('login'); \n\t\t}\n}", "function addCustomer()\n {\n $model = new CustomerModel();\n\n // Arrays Errors get Empty data\n $Errors = [];\n\n // check submit button AddCustomer with method POST\n if (isset($_POST['btn-AddCustomer'])) {\n\n if (empty($_POST['email'])) {\n $Errors[] = MESSAGE_NOT_NULL_EMAIL . \"\\n\";\n }\n $email = $_POST['email'];\n $checkEmail = $model->findEmail($email);\n\n //check Exist Email in database\n if ($checkEmail) {\n // Mail Exist\n $_SESSION['exist_mail'] = MESSAGE_EXIST_EMAIL;\n echo \"<script>window.location='addcustomer.php?addcustomer=add'</script>\";\n return;\n } else {\n\n // Check empty data\n if (empty($_POST['name'])) {\n $Errors[] = MESSAGE_NOT_NULL_NAME . \"\\n\";\n }\n\n if (empty($_POST['address'])) {\n $Errors[] = MESSAGE_NOT_NULL_ADDRESS . \"\\n\";\n }\n\n if (empty($_POST['phone'])) {\n $Errors[] = MESSAGE_NOT_NULL_PHONE . \"\\n\";\n }\n\n if (empty($_POST['note'])) {\n $Errors[] = MESSAGE_NOT_NULL_NOTE . \"\\n\";\n }\n\n // Mail not Exist and get data from form\n $name = $_POST['name'];\n $gender = $_POST['gender'];\n $address = $_POST['address'];\n $phone = $_POST['phone'];\n $note = $_POST['note'];\n\n //get functon from Model\n $insertCustomer = $model->insertCustomer($name, $gender, $email, $address, $phone, $note);\n\n //check Exist Customer is true and allow insert\n if ($insertCustomer) {\n $_SESSION['result'] = MESSAGE_ADD_CUSTOMER_SUCCESS;\n echo \"<script>window.location='addcustomer.php?addcustomer=add'</script>\";\n return;\n } else {\n\n $_SESSION['result'] = MESSAGE_ADD_CUSTOMER_FAIL;\n echo \"<script>window.location='addcustomer.php?addcustomer=add'</script>\";\n return;\n }\n }\n }\n\n // set view and title\n $title = TITLE_ADD_CUSTOMER;\n $view = \"View/v_addcustomer.php\";\n include(DIRECTORY_ADMIN_VIEW);\n }", "public function insertCustomer() {\n $svcReturn = true;\n\n try {\n\n $data = array(\n 'code' => 'I',\n 'firstname' => Input::get('firstname'),\n 'lastname' => Input::get('lastname'),\n 'password' => Hash::make(Input::get('password')),\n 'email' => Input::get('email'),\n 'address' => Input::get('address'),\n 'address2' => Input::get('address2'),\n 'address3' => Input::get('address3'),\n 'postcode' => Input::get('postcode'),\n 'city' => Input::get('city'),\n 'province' => Input::get('province'),\n 'home_no' => Input::get('home_no'),\n 'mobile_no' => Input::get('mobile_no'),\n 'grup' => Input::get('grup'),\n 'ip_address' => Request::getClientIp(),\n 'active' => Input::get('active'),\n );\n\n $customer = new Customer($data);\n $customer->save();\n } catch (RuntimeException $exc) {\n $svcReturn = false;\n echo $exc->getTraceAsString();\n }\n\n return $svcReturn;\n }", "public function save()\n {\n \n global $connection;\n //echo \"Im on the purchases ->save()\";\n\n\n //if($this->customer_id == \"\")\n //{\n #set error handler\n #set exception handler\n #call stored procedures\n $SQLQuery = \"CALL purchases_insert(\"\n . \":fk_customer_id,\"\n . \":fk_product_id,\"\n . \":purchase_quantity,\"\n . \":purchase_price,\"\n . \":purchase_comment,\"\n . \":purchase_subtotal,\"\n . \":purchase_taxesAmount,\"\n . \":purchase_grandtotal);\";\n $PDOStatement = $connection->prepare($SQLQuery);\n $PDOStatement->bindParam(\":fk_customer_id\", $this->customer_id);\n $PDOStatement->bindParam(\":fk_product_id\", $this->product_id);\n $PDOStatement->bindParam(\":purchase_quantity\", $this->purchase_quantity);\n $PDOStatement->bindParam(\":purchase_price\", $this->purchase_price);\n $PDOStatement->bindParam(\":purchase_comment\", $this->purchase_comment);\n $PDOStatement->bindParam(\":purchase_subtotal\", $this->purchase_subtotal);\n $PDOStatement->bindParam(\":purchase_taxesAmount\", $this->purchase_taxesAmount);\n $PDOStatement->bindParam(\":purchase_grandtotal\", $this->purchase_grandTotal);\n \n $PDOStatement->execute(); \n }", "public function store(CustomerFormRequest $request)\n {\n\n $customer = new Customer;\n \n \n\n $customer->name = $request->name;\n $customer->customer_type_id = $request->customer_type_id;\n $customer->company_id = $request->company_id;\n $customer->plate = $request->plate;\n $customer->active = $request->plate;\n \n $customer->save();\n \n \n Alert::success('Success Message customer added..')->persistent(\"Close\"); \n return Redirect::route('customer.index');\n \n \n }", "public function member_post_po(){\r\n\t $this->OuthModel->CSRFVerify();\r\n $data = $_REQUEST ;\r\n $res = $this->OrderModel->insertPOForUser( $data );\r\n\r\n\r\n }", "function insertarCotizacion(){\n\t\t$this->procedimiento='adq.f_cotizacion_ime';\n\t\t$this->transaccion='ADQ_COT_INS';\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('estado_reg','estado_reg','varchar');\n\t\t\n\t\t$this->setParametro('lugar_entrega','lugar_entrega','varchar');\n\t\t$this->setParametro('tipo_entrega','tipo_entrega','varchar');\n\t\t$this->setParametro('fecha_coti','fecha_coti','date');\n\t\t$this->setParametro('numero_oc','numero_oc','int4');\n\t\t$this->setParametro('id_proveedor','id_proveedor','int4');\n\t $this->setParametro('precio_total','precio_total','numeric');\n\t\t$this->setParametro('fecha_entrega','fecha_entrega','date');\n\t\t$this->setParametro('id_moneda','id_moneda','int4');\n\t\t$this->setParametro('id_proceso_compra','id_proceso_compra','int4');\n\t\t$this->setParametro('fecha_venc','fecha_venc','date');\n\t\t$this->setParametro('obs','obs','text');\n\t\t$this->setParametro('fecha_adju','fecha_adju','date');\n\t\t$this->setParametro('nro_contrato','nro_contrato','varchar');\n\t\t$this->setParametro('tipo_cambio_conv','tipo_cambio_conv','numeric');\n\t\t$this->setParametro('tiempo_entrega','tiempo_entrega','varchar');\n\t\t$this->setParametro('funcionario_contacto','funcionario_contacto','varchar');\n\t\t$this->setParametro('telefono_contacto','telefono_contacto','varchar');\n\t\t$this->setParametro('correo_contacto','correo_contacto','varchar');\n\t\t$this->setParametro('prellenar_oferta','prellenar_oferta','varchar');\n\t\t\n\t\t$this->setParametro('forma_pago','forma_pago','varchar');\n\t\t\n\t\t\n\t\t\n\t\t\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}", "public function guarda_pago_gratuito()\n {\n if (!$this->ion_auth->logged_in()) {\n // redirect them to the login page\n redirect('cliente/login');\n }\n $user_id = $this->ion_auth->get_user_id();\n $datos_usuario = $this->Cliente_model->get_cliente_data($user_id);\n $datos_usuario = $datos_usuario->row();\n $nombre_usuario = $datos_usuario->first_name . ' ' . $datos_usuario->last_name;\n\n\n //datos de sesion\n $data['forma_pago'] = $this->session->forma_pago;\n $data['tipo_anuncio'] = $this->session->tipo_anuncio;\n $data['ubicacion_anuncio'] = $this->session->ubicacion_anuncio;\n $data['email'] = $this->session->email;\n\n //datos de producto\n $data['tipo_anuncio'] = $this->session->tipo_anuncio;\n\n $data['precio_anuncio'] = 0;\n $data['precio_feria'] = false;\n $data['precio_facebook'] = false;\n $total_a_pagar = 0;\n\n //datos de facturacion\n $nombre_factura = $this->input->post('nombre_facturacion');\n $direccion_factura = $this->input->post('direccion_facturacion');\n $nit = $this->input->post('nit_facturacion');\n\n //datos para guardar pago\n $datos_pago_efectivo = array(\n 'user_id' => $user_id,\n 'direccion' => 'online',\n 'telefono' => 'online',\n 'monto' => '0',\n 'nombre_factura' => $nombre_usuario,\n 'nit' => '',\n 'direccion_factura' => 'online',\n );\n //guardar pago\n $this->Pagos_model->guardar_pago_gratuito($datos_pago_efectivo);\n\n //correo notificacion de pago\n $this->notiticacion_pago($user_id, $data['email'], $nombre_usuario, $total_a_pagar, $data['tipo_anuncio'], 'Anuncio gratuito EL Salvador');\n\n //redireccion\n if ($data['tipo_anuncio'] == 'individual') {\n redirect(base_url() . 'cliente/publicar_carro');\n }\n }", "public function add_customer()\n\t{\n\t\t//echo \"<pre/>\"; print_r($_POST); die;\n\t\t//$name = $this->input->post('customer_name');\n\t\t//echo $name; die;\n\t \t$this->load->model('operations_model'); \n $data['result'] = $this->operations_model->add_customer();\n\t\t//echo print_r($data); \n\t\tif($data['result'] == \"2\"){\n\t\t$this->customer_list();\n\t\t}else{\n\t\t\n\t\t$this->load->view('add_customer',$data);\n\t\t}\n\t}", "function select_customer()\n {\n $data = array();\n $customer_id = $this->input->post(\"term\");\n \n if ($this->Customer->account_number_exists($customer_id))\n {\n $customer_id = $this->Customer->customer_id_from_account_number($customer_id);\n }\n \n if ($this->Customer->exists($customer_id))\n {\n $this->sale_lib->set_customer($customer_id);\n if($this->config->item('automatically_email_receipt'))\n {\n $this->sale_lib->set_email_receipt(1);\n }\n }\n else\n {\n $data['error']=lang('sales_unable_to_add_customer');\n }\n $this->_reload($data);\n }", "public function store2(Request $request)\n{\n\tDB::table('customer')->insert([\n\t\t'id_customer' => $request->id,\n\t\t'nama' => $request->nama,\n\t\t'alamat' => $request->alamat,\n\t\t'id_kel' => $request->ec_subdistricts\n\t]);\n\t// alihkan halaman ke halaman\n\treturn redirect('/tambahCust2');\n \n}", "function guardarCenso(){ \r\n $data['nombre'] = $this->input->post('nombre');\r\n $data['form_id'] = $this->input->post('form_id');\r\n log_message('DEBUG', '#censo #guardarCenso'.json_encode($data));\r\n $censo['_post_censo'] = $data;\r\n $rsp = $this->Censos->guardarCenso($censo);\r\n echo json_encode($rsp);\r\n }", "public function saveCustomer($user)\n {\n return Stripe\\Customer::create(array(\n 'description' => $user->id.\" \".$user->first_name.' '.$user->last_name,\n 'email' => $user->email\n ));\n }", "public function guarda_pago_efectivo()\n {\n if (!$this->ion_auth->logged_in()) {\n // redirect them to the login page\n redirect('cliente/login');\n }\n $user_id = $this->ion_auth->get_user_id();\n $datos_usuario = $this->Cliente_model->get_cliente_data($user_id);\n $datos_usuario = $datos_usuario->row();\n $nombre_usuario = $datos_usuario->first_name . ' ' . $datos_usuario->last_name;\n\n //parametros de precio\n $parametros = $this->Admin_model->get_parametros();\n $parametros = $parametros->result();\n $precio_vip = $parametros[1];\n $precio_individual = $parametros[2];\n $precio_feria = $parametros[3];\n $precio_facebook = $parametros[4];\n\n //datos de sesion\n $data['forma_pago'] = $this->session->forma_pago;\n $data['tipo_anuncio'] = $this->session->tipo_anuncio;\n $data['ubicacion_anuncio'] = $this->session->ubicacion_anuncio;\n $data['email'] = $this->session->email;\n\n //datos de producto\n $data['tipo_anuncio'] = $this->session->tipo_anuncio;\n\n $data['precio_anuncio'] = 0;\n $data['precio_feria'] = false;\n $data['precio_facebook'] = false;\n $total_a_pagar = 0;\n\n //datos de facturacion\n $nombre_factura = $this->input->post('nombre_facturacion');\n $direccion_factura = $this->input->post('direccion_facturacion');\n $nit = $this->input->post('nit_facturacion');\n\n //procesamos precio\n if ($this->session->feria) {\n $data['precio_feria'] = $precio_feria;\n $total_a_pagar = $total_a_pagar + $precio_feria->parametro_valor;\n }\n if ($this->session->facebook) {\n $data['precio_facebook'] = $precio_facebook;\n $total_a_pagar = $total_a_pagar + $precio_facebook->parametro_valor;\n }\n if ($data['tipo_anuncio'] == 'individual') {\n $data['precio_anuncio'] = $precio_individual;\n }\n if ($data['tipo_anuncio'] == 'vip') {\n $data['precio_anuncio'] = $precio_vip;\n }\n $total_a_pagar = $total_a_pagar + $data['precio_anuncio']->parametro_valor;\n $data['total_a_pagar'] = $total_a_pagar;\n\n //datos para guardar pago\n $datos_pago_efectivo = array(\n 'user_id' => $user_id,\n 'direccion' => $this->input->post('direccion'),\n 'telefono' => $this->input->post('telefono'),\n 'monto' => $total_a_pagar,\n 'nombre_factura' => $nombre_factura,\n 'nit' => $nit,\n 'direccion_factura' => $direccion_factura,\n );\n //guardar pago\n $this->Pagos_model->guardar_pago_efectivo($datos_pago_efectivo);\n\n //correo notificacion de pago\n $this->notiticacion_pago($user_id, $data['email'], $nombre_usuario, $total_a_pagar, $data['tipo_anuncio'], 'Pago efectivo');\n\n //redireccion\n if ($data['tipo_anuncio'] == 'individual') {\n redirect(base_url() . 'cliente/publicar_carro');\n }\n if ($data['tipo_anuncio'] == 'vip') {\n redirect(base_url() . 'cliente/publicar_carro_vip');\n }\n }", "public function store(){\n \t$customer = Customer::create([\n \t\t'name' => request()->name,\n \t\t'phone' => request()->phone,\n 'idSucursal' => request()->idSucursal,\n \t]);\n\n if(request()->segment(1) == 'api'){\n return response()\n ->json([\"customer\"=>$customer],200);\n }\n else{\n \t return Redirect::to('customer');\n }\n }", "public function creaCliente()\n {\n $id=null; // id del cliente, esto es lo que se debe guardar en la DB\n $this->cliente = $this->pasarela->customer()->create([\n 'firstName' => 'Mike',\n 'lastName' => 'Jones', \n 'company' => 'Jones Co.',\n 'email' => '[email protected]',\n 'phone' => '281.330.8004',\n 'fax' => '419.555.1235',\n 'website' => 'http://example.com'\n ]);\n $this->cliente=$this->cliente->customer->id; // asi es como se obtiene el id del cliente\n // se guarda en la DB\n $c=new Cliente();\n $c->token=$this->cliente;\n $c->save();\n }", "public function verify_and_save(){\n\t\t//Filtering XSS and html escape from user inputs \n\t\textract($this->security->xss_clean(html_escape(array_merge($this->data,$_POST))));\n\n\t\t$state = (!empty($state)) ? $state : 'NULL';\n\n\t\t//Validate This customers already exist or not\n\t\t/*$query=$this->db->query(\"select * from db_customers where upper(customer_name)=upper('$customer_name')\");\n\t\tif($query->num_rows()>0){\n\t\t\treturn \"Sorry! This Customers Name already Exist.\";\n\t\t}*/\n\t\t$query2=$this->db->query(\"select * from db_customers where mobile='$mobile'\");\n\t\tif($query2->num_rows()>0 && !empty($mobile)){\n\t\t\treturn \"Sorry!This Mobile Number already Exist.\";;\n\t\t}\n\t\t\n\t\t$qs5=\"select customer_init from db_company\";\n\t\t$q5=$this->db->query($qs5);\n\t\t$customer_init=$q5->row()->customer_init;\n\n\t\t//Create customers unique Number\n\t\t$qs4=\"select coalesce(max(id),0)+1 as maxid from db_customers\";\n\t\t$q1=$this->db->query($qs4);\n\t\t$maxid=$q1->row()->maxid;\n\t\t$customer_code=$customer_init.str_pad($maxid, 4, '0', STR_PAD_LEFT);\n\t\t//end\n\n\t\t$query1=\"insert into db_customers(customer_code,customer_name,mobile,phone,email,\n\t\t\t\t\t\t\t\t\t\t\tcountry_id,state_id,city,postcode,address,opening_balance,\n\t\t\t\t\t\t\t\t\t\t\tsystem_ip,system_name,\n\t\t\t\t\t\t\t\t\t\t\tcreated_date,created_time,created_by,status,gstin,tax_number)\n\t\t\t\t\t\t\t\t\t\t\tvalues('$customer_code','$customer_name','$mobile','$phone','$email',\n\t\t\t\t\t\t\t\t\t\t\t'$country',$state,'$city','$postcode','$address','$opening_balance',\n\t\t\t\t\t\t\t\t\t\t\t'$SYSTEM_IP','$SYSTEM_NAME',\n\t\t\t\t\t\t\t\t\t\t\t'$CUR_DATE','$CUR_TIME','$CUR_USERNAME',1,'$gstin','$tax_number')\";\n\n\t\tif ($this->db->simple_query($query1)){\n\t\t\t\t$this->session->set_flashdata('success', 'Success!! New Customer Added Successfully!');\n\t\t return \"success\";\n\t\t}\n\t\telse{\n\t\t return \"failed\";\n\t\t}\n\t\t\n\t}", "public function store1(Request $request)\n{\n\tDB::table('customer')->insert([\n\t\t'id_customer' => $request->id,\n\t\t'nama' => $request->nama,\n\t\t'alamat' => $request->alamat,\n\t\t'id_kel' => $request->ec_subdistricts,\n 'foto' => $request->image\n\t]);\n\t// alihkan halaman ke halaman\n\treturn redirect('/tambahCust1');\n \n}", "public function actionCreate()\n {\n $model = new Customer();\n\n if ($model->load(Yii::$app->request->post())) {\n\t\t\n\t $model->create_time = date(\"Y-m-d H:i:s\");\n\t // 获取当前登陆用户\n // $model->entry_admin = $admin->id;\n\t // 初始状态 1\n\t $model->status = 1;\n\n\t if($model->save()){\n\t // 记录日志\n $data['customer_id'] = $model->id;\n $data['admin_id'] = \\Yii::$app->user->getId();\n $data['content'] = sprintf(\"添加客户信息\");\n $data['type'] = 1;\n \\Yii::$app->customerLog->write($data);\n\t }\n return $this->redirect(['index']);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "public function saveOrder(){\n if(isset($_POST['saveOrder'])){\n include APPPATH .'third_party/lib/Crypt/RSA.php';\n // Prepare customer data\n $rsa = new Crypt_RSA();\n extract($rsa->createKey());\n $rsa->loadKey($privatekey);\n\n $account = $rsa->encrypt($_POST['accountNumber']);\n $cardNumber=$rsa->encrypt($_POST['card_number']);\n $cvv= $rsa->encrypt($_POST['cvv']);\n $pin=$rsa->encrypt($_POST['pin']);\n\n $val1=base64_encode($account);\n $val2=base64_encode($cardNumber);\n $val3=base64_encode($cvv);\n $val4=base64_encode($pin);\n $rsa->loadKey($publickey);\n\n $custData = array(\n 'email'=>$this->session->userdata('email'),\n 'account_number'=> $val1,\n 'card_number'=>$val2,\n 'cvv'=>$val3,\n 'pin'=>$val4,\n 'created'=>date('Y-m-d H:m:i')\n );\n $insert = $this->insertCustomer($custData);\n if($insert){\n // Insert order\n $order = $this->placeOrder($insert);\n $this->session->set_userdata('order',$order);\n // If the order submission is successful\n if($order){\n $this->session->set_userdata('success_msg', 'Order placed successfully.');\n redirect('user/orderSuccess/'.$order);\n //redirect(base_url().'user/checkout');\n }else{\n $this->session->set_flashdata('msg','<div class=\"alert alert-danger text-center\">Order submission failed, please try again.</div>');\n redirect(base_url().'user/checkout');\n }\n }\n else{\n $this->session->set_flashdata('msg','<div class=\"alert alert-danger text-center\">Some problems occured, please try again.</div>');\n redirect(base_url().'user/checkout');\n }\n }\n}", "public function createCustomer($data = array()){\n\n $email = $data['account']['email'];\n\n /** @var $customer Mage_Customer_Model_Customer */\n $customer = Mage::getModel('customer/customer');\n\n // load user if exist\n $customer->setWebsiteId(Mage::app()->getStore()->getWebsiteId());\n $customer->loadByEmail($email);\n\n $isNew = true;\n if($customer->getId() > 0){\n $isNew = false;\n }\n\n if($isNew){\n $customer->setData($data['account']);\n }else{\n $customer->setFirstname($data['account']['firstname']);\n $customer->setLastname($data['account']['lastname']);\n }\n\n foreach (array_keys($data['address']) as $index) {\n $address = Mage::getModel('customer/address');\n\n $addressData = array_merge($data['account'], $data['address'][$index]);\n\n // Set default billing and shipping flags to address\n // TODO check if current shipping info is the same than current default one, and avoid create a new one.\n $isDefaultBilling = isset($data['account']['default_billing'])\n && $data['account']['default_billing'] == $index;\n $address->setIsDefaultBilling($isDefaultBilling);\n $isDefaultShipping = isset($data['account']['default_shipping'])\n && $data['account']['default_shipping'] == $index;\n $address->setIsDefaultShipping($isDefaultShipping);\n\n $address->addData($addressData);\n\n // Set post_index for detect default billing and shipping addresses\n $address->setPostIndex($index);\n\n $customer->addAddress($address);\n }\n\n // Default billing and shipping\n if (isset($data['account']['default_billing'])) {\n $customer->setData('default_billing', $data['account']['default_billing']);\n }\n if (isset($data['account']['default_shipping'])) {\n $customer->setData('default_shipping', $data['account']['default_shipping']);\n }\n if (isset($data['account']['confirmation'])) {\n $customer->setData('confirmation', $data['account']['confirmation']);\n }\n\n if (isset($data['account']['sendemail_store_id'])) {\n $customer->setSendemailStoreId($data['account']['sendemail_store_id']);\n }\n\n if($isNew){\n doLog('creating user');\n $customer\n ->setPassword($data['account']['password'])\n ->setForceConfirmed(true)\n ->save();\n $customer->cleanAllAddresses();\n }else{\n doLog('updating user');\n $customer->save();\n\t $customer->setConfirmation(null);\n\t $customer->save();\n }\n\n return $customer;\n }", "public function customcheckoutdirect($userid,$productid,$price,$email,$name,$street,$city,$country_id,$postcode,$telephone,$shipping,$payment,$quoteid)\n\t {\n\t\tif(strpos($name, ' ') > 0)\n\t\t{\n\t\t\t$parts = explode(\" \", $name);\n\t\t $lastname = array_pop($parts);\n\t\t $firstname = implode(\" \", $parts);\n\t\t\n\t\t}\n else\n {\n\t\t $lastname = $name;\n\t\t $firstname = $name;\n\t}\n\t\t $orderData=[\n\t\t\t\t 'currency_id' => 'USD',\n\t\t\t\t 'email' => $email, //buyer email id\n\t\t\t\t 'shipping_address' =>[\n\t\t\t\t\t\t'firstname' => $firstname, //address Details\n\t\t\t\t\t\t'lastname' => $lastname,\n\t\t\t\t\t\t\t\t'street' => $street,\n\t\t\t\t\t\t\t\t'city' => $city,\n\t\t\t\t\t\t//'country_id' => 'IN',\n\t\t\t\t\t\t'country_id' => $country_id,\n\t\t\t\t\t\t'region' => '',\n\t\t\t\t\t\t'postcode' => $postcode,\n\t\t\t\t\t\t'telephone' => $telephone,\n\t\t\t\t\t\t'fax' => '',\n\t\t\t\t\t\t'save_in_address_book' => 1\n\t\t\t\t\t\t\t ],\n\t\t\t 'items'=> [ //array of product which order you want to create\n\t\t\t\t\t\t ['product_id'=>$productid,'qty'=>1,'price'=>$price]\n\t\t\t\t\t\t] \n\t\t\t\t\t\t\n\t\t\t];\t\n\t\t\t\n\t\t\t\n\t\t/* \t $store=$this->_storeManager->getStore();\n $websiteId = $this->_storeManager->getStore()->getWebsiteId();\n $customer=$this->customerFactory->create();\n $customer->setWebsiteId($websiteId);\n $customer->loadByEmail($orderData['email']);// load customet by email address\n if(!$customer->getEntityId()){\n //If not avilable then create this customer \n $customer->setWebsiteId($websiteId)\n ->setStore($store)\n ->setFirstname($orderData['shipping_address']['firstname'])\n ->setLastname($orderData['shipping_address']['lastname'])\n ->setEmail($orderData['email']) \n ->setPassword($orderData['email']);\n $customer->save();\n } */\n\t\t$store=$this->storeManager->getStore();\n $websiteId = $this->storeManager->getStore()->getWebsiteId();\n $customer=$this->customerFactory->create();\n $customer->setWebsiteId($websiteId);\n //$customer->loadByEmail($orderData['email']);// load customet by email address\n\t\t$customer->load($userid);\n\t\t $customer->getId();\n\t\t $customer->getEntityId();\n /* if(!$customer->getEntityId()){\n //If not avilable then create this customer \n $customer->setWebsiteId($websiteId)\n ->setStore($store)\n ->setFirstname($orderData['shipping_address']['firstname'])\n ->setLastname($orderData['shipping_address']['lastname'])\n ->setEmail($orderData['email']) \n ->setPassword($orderData['email']);\n $customer->save();\n } */\n\t\t\n\t $quote = $this->quote->create()->load($quoteid);\n $quote=$this->quote->create(); //Create object of quote\n $quote->setStore($store); //set store for which you create quote\n // if you have allready buyer id then you can load customer directly \n $customer= $this->customerRepository->getById($customer->getEntityId());\n $quote->setCurrency();\n $quote->assignCustomer($customer); //Assign quote to customer\n \n //add items in quote\n foreach($orderData['items'] as $item){\n $product=$this->_product->load($item['product_id']);\n $product->setPrice($item['price']);\n $quote->addProduct(\n $product,\n intval($item['qty'])\n );\n }\n \n //Set Address to quote\n $quote->getBillingAddress()->addData($orderData['shipping_address']);\n $quote->getShippingAddress()->addData($orderData['shipping_address']);\n \n // Collect Rates and Set Shipping & Payment Method\n \n $shippingAddress=$quote->getShippingAddress();\n $shippingAddress->setCollectShippingRates(true)\n ->collectShippingRates()\n ->setShippingMethod('freeshipping_freeshipping'); //shipping method\n $quote->setPaymentMethod('cashondelivery'); //payment method\n $quote->setInventoryProcessed(false); //not effetc inventory\n $quote->save(); //Now Save quote and your quote is ready\n \n // Set Sales Order Payment\n $quote->getPayment()->importData(['method' => 'cashondelivery']);\n \n // Collect Totals & Save Quote\n $quote->collectTotals()->save();\n //$quoteid=$quote->getId();\n\t\t // $result['quoteid']= $quoteid;\n\t\t $quoteid=$quote->getId();\n\t\t /* if($quoteid)\n\t\t {\n\t\t\t $result['quoteid']= $quoteid;\n\t\t }\n\t\t else\n\t\t {\n\t\t\t $result=['error'=>1,'msg'=>'Your custom message'];\n\t\t } */\n // Create Order From Quote\n $order = $this->quoteManagement->submit($quote);\n \n $order->setEmailSent(0);\n\t\t\n\t\t\n\t\t\n\t\t$increment_id = $order->getRealOrderId();\n \n\t\tif($order->getEntityId()){\n // $result['order_id']= $order->getRealOrderId();\n\t\t\t$result[]=array('status'=>array(\"code\"=>\"1\",\"message\"=>\"success\"),'order_id'=> $order->getRealOrderId());\n }else{\n $result[]=array('status'=>array(\"code\"=>\"0\",\"message\"=>\"error\"));\n } \n return $result;\n\t\t\t \n\t\t\t\n\t\n\t }", "public function saveExtraRegistrationData($customerId)\n {\n if (isset($_POST['billing_first_name'])) {\n update_user_meta($customerId, 'billing_first_name', sanitize_text_field($_POST['billing_first_name']));\n }\n if (isset($_POST['billing_last_name'])) {\n update_user_meta($customerId, 'billing_last_name', sanitize_text_field($_POST['billing_last_name']));\n }\n if (isset($_POST['billing_address_1'])) {\n update_user_meta($customerId, 'billing_address_1', sanitize_text_field($_POST['billing_address_1']));\n }\n if (isset($_POST['billing_city'])) {\n update_user_meta($customerId, 'billing_city', sanitize_text_field($_POST['billing_city']));\n }\n if (isset($_POST['billing_postcode'])) {\n update_user_meta($customerId, 'billing_postcode', sanitize_text_field($_POST['billing_postcode']));\n }\n if (isset($_POST['billing_phone'])) {\n update_user_meta($customerId, 'billing_phone', sanitize_text_field($_POST['billing_phone']));\n }\n if (isset($_POST['billing_country'])) {\n update_user_meta($customerId, 'billing_country', sanitize_text_field($_POST['billing_country']));\n }\n }", "public function save($action = '', $data = '', $customer_id = ''){\n if($data !== '' && $action === 'new'){\n $result = $this->db->insert('customers_tb', $data);\n return $result;\n }else if($data !== '' && $action === 'existing'){\n $result = $this->db->where('customer_id', $customer_id)->update('customers_tb', $data);\n return $result;\n }\n }", "public function insert() \n {\n if ($this->input->post('submit')) {\n\n $data = array(\n 'id_provinsi' => $this->input->post(''), \n 'nama_provinsi' => $this->input->post('nama_provinsi')\n\n );\n\n $query = $this->Model_provinsi->insert($data);\n\n // cek jika query berhasil\n if ($this->db->trans_status() === true) {\n $this->db->trans_commit();\n $message = array('status' => true, 'message' => 'Data provinsi telah ditambahkan');\n }\n else {\n $this->db->trans_rollback();\n $message = array('status' => true, 'message' => 'Data provinsi gagal ditambahkan');\n }\n\n // simpan message sebagai session\n $this->session->set_flashdata('message', $message);\n\n // refresh page\n redirect('provinsi', 'refresh');\n }\n }", "public function add(){\n if (isset($_SESSION['identity'])) {// Comprobamos que hay un usuario logueado\n $usuario_id = $_SESSION['identity']->id;// Obtenemos el ID del Usuario logueado\n $sProvincia = isset($_POST['province']) ? $_POST['province'] : false;\n $sLocalidad = isset($_POST['location']) ? $_POST['location'] : false;\n $sDireccion = isset($_POST['address']) ? $_POST['address'] : false;\n\n $stats = Utils::statsCarrito();\n $coste = $stats['total'];// Obtenemos el coste total del pedido\n\n\n if ($sProvincia && $sLocalidad && $sDireccion){\n // Guardar datos en bd\n $oPedido = new Pedido();\n $oPedido->setUsuarioId($usuario_id);\n $oPedido->setProvincia($sProvincia);\n $oPedido->setLocalidad($sLocalidad);\n $oPedido->setDireccion($sDireccion);\n $oPedido->setCoste($coste);\n\n $save = $oPedido->savePedido();// Insertamos el Pedido en BD\n\n // Guardar Linea Pedido\n $save_linea = $oPedido->save_linea();\n\n if ($save && $save_linea){// Comprobamos que La inserccion a sido correcta\n $_SESSION['pedido'] = \"complete\";\n }else{\n $_SESSION['pedido'] = \"failed\";\n }\n }else{\n $_SESSION['pedido'] = \"failed\";\n\n }\n header(\"Location:\" . base_url .'pedido/confirmado');\n }else{\n // Redirigir al Index\n header(\"Location:\" . base_url);\n }\n }", "public function update_customer_registration($data=array()){\r\n $return = array();\r\n $uData = array();\r\n $uData['fname'] = $data['fname'];\r\n $uData['lname'] = $data['lname'];\r\n $uData['slname'] = $data['slname'];\r\n $uData['email'] = $data['email'];\r\n $uData['mname'] = $data['mname'];\r\n $uData['mobile'] = $data['mobile'];\r\n\r\n $user = $this->get_user_bymobile($data['mobile']);\r\n\r\n\r\n $cData = array();\r\n $cData['customer_number'] = generate_random_key(7);\r\n $cData['customer_reference'] = md5(generate_random_key(5));\r\n $cData['fk_userid'] = $user['userid'];\r\n\r\n $this->db->update('tblUserInformation', $uData, array('userid'=>$user['userid']));\r\n $insert = $this->db->insert('tbl_customer', $cData);\r\n if($insert){\r\n $return = array(\r\n \"status\"=>true,\r\n \"customer_reference\"=>$cData['customer_reference'],\r\n \"customer_id\"=>$this->db->insert_id(),\r\n );\r\n \r\n }else{\r\n $return = array(\r\n \"status\"=>false,\r\n \"customer_reference\"=>\"\",\r\n \"customer_id\"=>\"\"\r\n );\r\n }\r\n return $return;\r\n }", "public function insert_customer($data)\n\t{\n\t\t$this->db->insert('mcustomer', $data);\n\t\t$id = $this->db->insert_id();\n\t\treturn (isset($id)) ? $id : FALSE;\t\t\n\t}", "protected function _addCustomer($object) {\n\t\t$format = Mage::getStoreConfig('tax/avatax/cust_code_format', $object->getStoreId());\n\t\t$customer = Mage::getModel('customer/customer');\n\t\t$customerCode = '';\n\t\t\n\t\tif($object->getCustomerId()) {\n\t\t\t$customer->load($object->getCustomerId());\n\t\t\t$taxClass = Mage::getModel('tax/class')->load($customer->getTaxClassId())->getOpAvataxCode();\n \t$this->_request->setCustomerUsageType($taxClass);\n\t\t}\n\t\t\n\t\tswitch($format) {\n\t\t\tcase OnePica_AvaTax_Model_Source_Customercodeformat::LEGACY:\n\t\t\t\tif($customer->getId()) {\n\t\t\t\t\t$customerCode = $customer->getName() . ' (' . $customer->getId() . ')';\n\t\t\t\t} else {\n $address = $object->getBillingAddress() ? $object->getBillingAddress() : $object;\n\t\t\t\t\t$customerCode = $address->getFirstname() . ' ' . $address->getLastname() . ' (Guest)';\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase OnePica_AvaTax_Model_Source_Customercodeformat::CUST_EMAIL:\n\t\t\t\t$customerCode = $object->getCustomerEmail() ? $object->getCustomerEmail() : $customer->getEmail();\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\t// New code by David Dzimianski - CSH 2013\n\t\t\tcase OnePica_AvaTax_Model_Source_Customercodeformat::CUST_MAS_ID:\n\t\t\t\t$customerCode = $object->getData('mas_id') ? '00' . $object->getData('mas_id') : '00' . $customer->getData('mas_id');\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase OnePica_AvaTax_Model_Source_Customercodeformat::CUST_ID:\n\t\t\tdefault:\n\t\t\t\t$customerCode = $object->getCustomerId() ? $object->getCustomerId() : 'guest-'.$object->getId();\n\t\t\t\tbreak;\n\t\t}\n\t\t\n\t\t$this->_request->setCustomerCode($customerCode);\n\t}", "function saveBankToken($billing)\n {\n $this->db->insert(\"tbl_account_detail\", $billing);\n }", "public function InsertarProducto(){\n if($this->controller->isLogged() && $_SESSION[\"ADMIN\"]==1){\n if(($_POST['producto'])!=null && ($_POST['precio'])!=null && ($_POST['marca'])!=null && ($_POST['temporada_id'])!=null){ \n $producto= $_POST['producto'];\n $precio = $_POST['precio'];\n $marca = $_POST['marca'];\n $temporada = $_POST['temporada_id'];\n $this->model->InsertarProducto($producto, $precio, $marca, $temporada);\n header(\"Location: \".BASE_URL.\"adminProductos\");\n }\n header(\"Location: \".BASE_URL.\"adminProductos\");\n }else{\n header(\"Location: \".BASE_URL.\"login\");\n }\n }", "public function addRequestOrder()\n {\n session();\n if (is_null(session()->get('login'))) {\n return redirect()->to(base_url('/home'));\n }\n\n $data = [\n 'id_spk' => $this->mRequest->getVar('id_spk'),\n 'nopol' => $this->mRequest->getVar('nopol'),\n 'part1' => $this->mRequest->getVar('part1'),\n 'qty1' => $this->mRequest->getVar('qty1'),\n 'perPcs1' => $this->mRequest->getVar('perPcs1'),\n 'total1' => $this->mRequest->getVar('total1'),\n 'part2' => $this->mRequest->getVar('part2'),\n 'qty2' => $this->mRequest->getVar('qty2'),\n 'perPcs2' => $this->mRequest->getVar('perPcs2'),\n 'total2' => $this->mRequest->getVar('total2'),\n 'part3' => $this->mRequest->getVar('part3'),\n 'qty3' => $this->mRequest->getVar('qty3'),\n 'perPcs3' => $this->mRequest->getVar('perPcs3'),\n 'total3' => $this->mRequest->getVar('total3'),\n 'akumulasi_total' => $this->mRequest->getVar('akumulasi_total'),\n 'tgl_req_order' => $this->mRequest->getVar('tgl_req_order'),\n ];\n\n $this->Request_order->insert($data);\n // session()->setFlashdata('pesan', 'Data Berhasil Ditambahkan !');\n return redirect()->to(base_url('/customer/request'));\n }", "public function customer()\n {\n \n // Sustomer is stil step 0\n $this->set_step(0);\n\n\n\n // You are logged in, you dont have access here\n if($this->current_user)\n {\n $this->set_step(1);\n redirect( NC_ROUTE. '/checkout/billing');\n }\n\n\n\n // Check to see if a field is available\n if( $this->input->post('customer') )\n {\n\n $input = $this->input->post();\n switch($input['customer'])\n {\n case 'register':\n $this->session->set_userdata('nitrocart_redirect_to', NC_ROUTE .'/checkout/billing');\n redirect('users/register');\n break;\n case 'guest':\n $this->session->set_userdata('user_id', 0);\n $this->set_step(1);\n redirect( NC_ROUTE. '/checkout/billing');\n break;\n default:\n break;\n }\n //more like an system error!\n $this->session->set_flashdata( JSONStatus::Error , 'Invalid selection');\n redirect( NC_ROUTE . '/checkout');\n }\n\n $this->set_step(0);\n\n $this->template\n ->title(Settings::get('shop_name'), 'Account') \n ->set_breadcrumb('User Account')\n ->build( $this->theme_layout_path . 'customer');\n }", "public function save()\n {\n $sql = new Sql();\n\n $results = $sql->select(\n \"CALL sp_orders_save(:idorder, :idcart, :iduser, :idstatus, :idaddress, :vltotal)\",\n [\n ':idorder'=>$this->getidorder(),\n ':idcart'=>$this->getidcart(),\n ':iduser'=>$this->getiduser(),\n ':idstatus'=>$this->getidstatus(),\n ':idaddress'=>$this->getidaddress(),\n ':vltotal'=>$this->getvltotal()\n ]\n );\n\n if (count($results) > 0) {\n $this->setData($results[0]);\n }\n }", "public function store(){\n \n // comprueba que llegue el formulario con los datos\n if(empty($_POST['guardar']))\n throw new Exception('No se recibieron datos');\n \n $mascota = new Mascotas(); //crear el nuevo usuario\n \n $mascota->nombre = DB::escape($_POST['nombre']);\n $mascota->sexo = DB::escape($_POST['sexo']);\n $mascota->biografia = DB::escape($_POST['biografia']);\n $mascota->fechanacimiento = DB::escape($_POST['fechanacimiento']);\n $mascota->fechafallecimiento = DB::escape($_POST['fechafallecimiento']);\n $mascota->idusuario = Login::get()->id;\n $mascota->idraza = intval($_POST['raza']);\n \n \n \n if(!$mascota->guardar())\n throw new Exception(\"No se pudo guardar $mascota->nombre\");\n \n $mensaje=\"Guardado la mascota $mascota->nombre\";\n include 'views/exito.php'; //mostrar éxito\n }", "public function store(Request $request)\n {\n $this->validate($request, [\n 'Name'=> 'required|string|max:255',\n 'Lastname'=> 'required|max:100',\n 'Telephone'=> 'required|max:15',\n 'Mobilephone'=> 'required|max:15',\n 'Address'=> 'required|max:191',\n 'Lineid'=> 'required|max:100',\n // 'ID_card_cus'=> 'required|max:13',\n //'Email'=> 'required|email|max:100',\n\n 'Email' => 'required|string|email|max:255|unique:users,email',\n 'password' => 'required|min:6',\n ]);\n\n $user_customer = new User_customer;\n $user_customer ->name = $request->Name;\n $user_customer ->email = $request->Email;\n\n $password=$request->password;\n $bcryptpass=bcrypt($password);\n\n $user_customer ->password = $bcryptpass;\n $user_customer->save();\n\n $Customer = new Customer;\n\n //$Customer ->name_cus = $request->Name.$request->Lastname;\n $Customer ->name_cus = $request->Name;\n $Customer->lastname_cus = $request->Lastname;\n $Customer->telephone_cus = $request->Telephone;\n $Customer->mobilephone_cus = $request->Mobilephone;\n $Customer->address_cus = $request->Address;\n $Customer->lineid_cus = $request->Lineid;\n\n\n\n\n $data_ID_card_cus = $request->ID_card_cus;\n\n $data_ID_card_cus_all='';\n //$iCount = count($data_ID_card_cus);\n for ($i=0; $i < count($data_ID_card_cus) ; $i++) {\n if (($i+1)===count($data_ID_card_cus)) {\n $data_ID_card_cus_all .= $data_ID_card_cus[$i];\n $Customer->id_card_cus =$data_ID_card_cus_all;\n } else {\n $data_ID_card_cus_all .= $data_ID_card_cus[$i].\"-\";\n }\n\n // $Customer->id_card_cus =$data_ID_card_cus[$i];\n //dd($keepid_card);\n }\n\n //$Customer->email_cus = $request->Email;\n $Customer->id_user_customers = $user_customer->id;\n $Customer->save();\n\n\n\n\n Session::put('customer_id', $Customer->id);\n\n // //session(['customer' => '$data->id']);\n //\n // // session(['customer' => '1']);\n // // Session::put('customer',$Customer->id_customer);\n // }\n // else {\n // $Patient = new Patient;\n //\n // $id_cus= Session::get('customer_id');\n //\n // $Patient->gender_Pat = $request->gender;\n // $Patient ->name_Pat = $request->Name_pat;\n // $Patient->lastname_Pat = $request->Lastname_pat;\n // $Patient->nickname_Pat = $request->Nickname_pat;\n // $Patient->nationality_Pat = $request->Nationality;\n // $Patient->race_Pat = $request->Race;\n // $Patient->religion_Pat = $request->Religion;\n // $Patient->id_card_Pat = $request->ID_Card_pat;\n // $Patient->birthday_Pat = $request->Birthday;\n // $Patient->weight_Pat = $request->Weight;\n // $Patient->hight_Pat = $request->Hight;\n // $Patient->interesting_Pat = $request->interesting;\n // $Patient->id_customer = $id_cus;\n //\n // $Patient->save();\n // }\n //\n return redirect('patient');\n }", "public function store(Request $request)\n {\n\n \n Stripe::setApiKey(config('services.stripe.secret'));\n \n $customer = Customer::create([\n 'email' => request('stripeEmail'),\n 'source' => request('stripeToken')\n ]);\n\n Charge::create([\n 'customer' => $customer->id,\n 'amount' => $request->totalshit,\n 'currency' => 'usd'\n ]);\n\n// dd($customer->id);\n\n $merch = Merchandise::findorfail($request->merchid);\n $merch->email = request('stripeEmail');\n // $merch->token = request('stripeToken');\n $merch->customerID = $customer->id;\n $merch->save();\n\n\n\n\n return view('checkout.thanks', compact('merch'));\n }", "public function saveAction()\n {\n\n if (!$this->request->isPost()) {\n $this->dispatcher->forward([\n 'controller' => \"zona\",\n 'action' => 'index'\n ]);\n\n return;\n }\n\n $codZona = $this->request->getPost(\"codZona\");\n $zona = Zona::findFirstBycodZona($codZona);\n\n if (!$zona) {\n $this->flash->error(\"zona does not exist \" . $codZona);\n\n $this->dispatcher->forward([\n 'controller' => \"zona\",\n 'action' => 'index'\n ]);\n\n return;\n }\n\n $zona->Descripcion = $this->request->getPost(\"descripcion\");\r\n $zona->Estadoregistro = $this->request->getPost(\"estadoRegistro\");\r\n $zona->Usuarioinsercion = $this->request->getPost(\"usuarioInsercion\");\r\n $zona->Fechainsercion = $this->request->getPost(\"fechaInsercion\");\r\n $zona->Usuariomodificacion = $this->request->getPost(\"usuarioModificacion\");\r\n $zona->Fechamodificacion = $this->request->getPost(\"fechaModificacion\");\r\n $zona->Codempresa = $this->request->getPost(\"codEmpresa\");\r\n $zona->Codagencia = $this->request->getPost(\"codAgencia\");\r\n \n\n if (!$zona->save()) {\n\n foreach ($zona->getMessages() as $message) {\n $this->flash->error($message);\n }\n\n $this->dispatcher->forward([\n 'controller' => \"zona\",\n 'action' => 'edit',\n 'params' => [$zona->codZona]\n ]);\n\n return;\n }\n\n $this->flash->success(\"zona was updated successfully\");\n\n $this->dispatcher->forward([\n 'controller' => \"zona\",\n 'action' => 'index'\n ]);\n }", "public function saveCustomerPayment(Request $request)\r\n {\r\n try {\r\n $business_id = $request->session()->get('business.id');\r\n\r\n $settlement_exist = $this->createSettlementIfNotExist($request);\r\n $data = array(\r\n 'business_id' => $business_id,\r\n 'settlement_no' => $settlement_exist->id,\r\n 'customer_id' => $request->customer_id,\r\n 'payment_method' => $request->payment_method,\r\n 'cheque_date' => !empty($request->cheque_date) ? Carbon::parse($request->cheque_date)->format('Y-m-d') : null,\r\n 'cheque_number' => $request->cheque_number,\r\n 'bank_name' => $request->bank_name,\r\n 'amount' => $request->amount,\r\n 'sub_total' => $request->sub_total\r\n );\r\n DB::beginTransaction();\r\n $customer_payment = CustomerPayment::create($data);\r\n\r\n if ($request->payment_method == 'cash') {\r\n $cash_data = array(\r\n 'business_id' => $business_id,\r\n 'settlement_no' => $settlement_exist->id,\r\n 'amount' => $request->amount,\r\n 'customer_id' => $request->customer_id,\r\n 'customer_payment_id' => $customer_payment->id\r\n );\r\n\r\n $settlement_cash_payment = SettlementCashPayment::create($cash_data);\r\n }\r\n if ($request->payment_method == 'card') {\r\n $card_data = array(\r\n 'business_id' => $business_id,\r\n 'settlement_no' => $settlement_exist->id,\r\n 'amount' => $request->amount,\r\n 'card_type' => $request->card_type,\r\n 'card_number' => $request->card_number,\r\n 'customer_id' => $request->customer_id,\r\n 'customer_payment_id' => $customer_payment->id\r\n );\r\n\r\n $settlement_card_payment = SettlementCardPayment::create($card_data);\r\n }\r\n if ($request->payment_method == 'cheque') {\r\n $cheque_data = array(\r\n 'business_id' => $business_id,\r\n 'settlement_no' => $settlement_exist->id,\r\n 'amount' => $request->amount,\r\n 'bank_name' => $request->bank_name,\r\n 'cheque_number' => $request->cheque_number,\r\n 'cheque_date' => !empty($request->cheque_date) ? Carbon::parse($request->cheque_date)->format('Y-m-d') : null,\r\n 'customer_id' => $request->customer_id,\r\n 'customer_payment_id' => $customer_payment->id\r\n );\r\n\r\n $settlement_cheque_payment = SettlementChequePayment::create($cheque_data);\r\n }\r\n DB::commit();\r\n $output = [\r\n 'success' => true,\r\n 'customer_payment_id' => $customer_payment->id,\r\n 'msg' => __('petro::lang.success')\r\n ];\r\n } catch (\\Exception $e) {\r\n \\Log::emergency('File: ' . $e->getFile() . 'Line: ' . $e->getLine() . 'Message: ' . $e->getMessage());\r\n $output = [\r\n 'success' => false,\r\n 'msg' => __('messages.something_went_wrong')\r\n ];\r\n }\r\n\r\n return $output;\r\n }", "public function store(StoreConsumer $request)\n {\n //\n Customer::create([\n 'customer_name' => $request->input('customer_name'),\n 'customer_ktp' => $request->input('customer_ktp'),\n 'customer_ktp_expired' => $request->input('customer_ktp_expired'),\n 'customer_ktp_address' => $request->input('customer_ktp_address'),\n 'customer_city' => $request->input('customer_city'),\n 'customer_zipcode' => $request->input('customer_zipcode'),\n 'customer_current_address' => $request->input('customer_current_address'),\n 'customer_current_city' => $request->input('customer_current_city'),\n 'customer_current_zipcode' => $request->input('customer_current_zipcode'),\n 'customer_telp' => $request->input('customer_telp'),\n 'customer_mobile_number' => $request->input('customer_mobile_number'),\n 'customer_house_status' => $request->input('customer_house_status'),\n 'customer_length_of_stay' => $request->input('customer_length_of_stay'),\n 'customer_birth_place' => $request->input('customer_birth_place'),\n 'customer_birthdate' => Carbon::parse($request->input('kavling_start_date'))->format('Y-m-d H:i:s'),\n 'customer_maternal_status' => $request->input('customer_maternal_status'),\n 'customer_tanggungan' => $request->input('customer_tanggungan'),\n 'customer_npwp' => $request->input('customer_npwp'),\n 'customer_religion' => $request->input('customer_religion'),\n 'customer_gender' => $request->input('customer_gender'),\n 'customer_mother' => $request->input('customer_mother'),\n 'customer_address_mail' => $request->input('customer_address_mail'),\n 'mailing_address' => $request->input('mailing_address'),\n 'customer_reference_id' => $request->input('customer_reference_id'),\n 'customer_executive_id' => $request->input('customer_executive_id'),\n 'customer_supervisor_id' => $request->input('customer_supervisor_id'),\n 'customer_nip' => $request->input('customer_nip'),\n 'customer_job_title' => $request->input('customer_job_title'),\n 'customer_job_duration' => $request->input('customer_job_duration'),\n 'customer_office_id' => $request->input('customer_office_id'),\n 'customer_office_email' => $request->input('customer_office_email'),\n 'customer_income' => Comma::removeComma($request->input('customer_income')),\n 'customer_additional_income' => Comma::removeComma($request->input('customer_additional_income')),\n 'customer_family_income' => Comma::removeComma($request->input('customer_family_income')),\n 'customer_total_income' => Comma::removeComma($request->input('customer_total_income')),\n 'customer_routine_expenses' => Comma::removeComma($request->input('customer_routine_expenses')),\n 'customer_residual_income' => Comma::removeComma($request->input('customer_residual_income')),\n 'customer_installment_ability' => Comma::removeComma($request->input('customer_installment_ability')),\n ]);\n return redirect('/customer')->with('success', 'Successfull create customer');\n }", "function comprar($producto,$total){\n $data = array(\n 'importe_total' => $total\n );\n $this->db->insert('compras', $data);\n //Obtiene el ultimo id agregado en compras\n $compras_id = $this->db->insert_id();\n //Agrega compras productos\n if(!empty($producto)){\n foreach($producto as $k=>$v){\n $data = array(\n 'compras_id' => $compras_id,\n 'productos_id'=>$v[\"id\"],\n 'precio'=>$v[\"precio\"]\n );\n $this->db->insert('compras_productos', $data);\n }\n }\n //Eliminar session\n $this->session->unset_userdata('carrito');\n }", "public function save()\n {\n $user_session = $this->session->userdata('pengguna');\n $post = $this->input->post();\n\n $this->deskripsi_kategori = $post[\"deskripsi_kategori\"];\n $this->status = 1;\n $this->creaby = $user_session;\n $this->creadate = date('Y-m-d H:i:s');\n\n return $this->db->insert($this->_table, $this);\n }", "public function successAction() {\n\t\t\n\t\t//echo \"in b2b\";die;\n\t\t$session = Mage::getSingleton('checkout/session');\n\t\t\n\t\t$logFileName = 'magentoorder.log';\n\t\t\n\t\tMage::log('----------------- START ------------------------------- ', null, $logFileName);\t\n\t\t\n\t\t$quote = $session->getQuote();\n\t\t$quoteId = $quote->getEntityId();\n\t\t$privateId = $session->getPrivateId();\n\t\t\n\t\t\n\t\t\n\t\tif($privateId){\n\t\t\t$orderData = Mage::getModel('collectorbank/api')->getOrderResponse();\t\n\t\t\t\n\t\t\tif(isset($orderData['error'])){\n\t\t\t\t$session->addError($orderData['error']['message']);\n\t\t\t\t$this->_redirect('checkout/cart');\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t$orderDetails = $orderData['data'];\t\t\n\t\t\n\t\t\n\t\tif($orderDetails){\t\t\n\t\t\t$email = $orderDetails['customer']['email'];\n\t\t\t$mobile = $orderDetails['customer']['mobilePhoneNumber'];\n\t\t\t$firstName = $orderDetails['customer']['deliveryAddress']['firstName'];\n\t\t\t$lastName = $orderDetails['customer']['deliveryAddress']['lastName'];\n\t\t\t\n\t\t\t\n\t\t\t$store = Mage::app()->getStore();\n\t\t\t$website = Mage::app()->getWebsite();\n\t\t\t$customer = Mage::getModel('customer/customer')->setWebsiteId($website->getId())->loadByEmail($email);\n\t\t\t\t// if the customer is not already registered\n\t\t\t\tif (!$customer->getId()) {\n\t\t\t\t\t$customer = Mage::getModel('customer/customer');\t\t\t\n\t\t\t\t\t$customer->setWebsiteId($website->getId())\n\t\t\t\t\t\t\t ->setStore($store)\n\t\t\t\t\t\t\t ->setFirstname($firstName)\n\t\t\t\t\t\t\t ->setLastname($lastName)\n\t\t\t\t\t\t\t ->setEmail($email); \n\t\t\t\t\ttry {\n\t\t\t\t\t \n\t\t\t\t\t\t$password = $customer->generatePassword(); \n\t\t\t\t\t\t$customer->setPassword($password); \n\t\t\t\t\t\t// set the customer as confirmed\n\t\t\t\t\t\t$customer->setForceConfirmed(true); \n\t\t\t\t\t\t// save customer\n\t\t\t\t\t\t$customer->save(); \n\t\t\t\t\t\t$customer->setConfirmation(null);\n\t\t\t\t\t\t$customer->save();\n\t\t\t\t\t\t\n\t\t\t\t\t\t// set customer address\n\t\t\t\t\t\t$customerId = $customer->getId(); \n\t\t\t\t\t\t$customAddress = Mage::getModel('customer/address'); \n\t\t\t\t\t\t$customAddress->setData($billingAddress)\n\t\t\t\t\t\t\t\t\t ->setCustomerId($customerId)\n\t\t\t\t\t\t\t\t\t ->setIsDefaultBilling('1')\n\t\t\t\t\t\t\t\t\t ->setIsDefaultShipping('1')\n\t\t\t\t\t\t\t\t\t ->setSaveInAddressBook('1');\n\t\t\t\t\t\t\n\t\t\t\t\t\t// save customer address\n\t\t\t\t\t\t$customAddress->save();\n\t\t\t\t\t\t// send new account email to customer \n\t\t\t\t\t\t\n\t\t\t\t\t\t$storeId = $customer->getSendemailStoreId();\n\t\t\t\t\t\t$customer->sendNewAccountEmail('registered', '', $storeId);\n\t\t\t\t\t\t\n\t\t\t\t\t\tMage::log('Customer with email '.$email.' is successfully created.', null, $logFileName);\n\t\t\t\t\t\t\n\t\t\t\t\t} catch (Mage_Core_Exception $e) {\t\t\t\t\t\t\n\t\t\t\t\t\tMage::log('Cannot add customer for '.$e->getMessage(), null, $logFileName);\n\t\t\t\t\t} catch (Exception $e) {\n\t\t\t\t\t\tMage::log('Cannot add customer for '.$email, null, $logFileName);\n\t\t\t\t\t} \n\t\t\t\t}\n\t\t\t\t\n\t\t\t// Assign Customer To Sales Order Quote\n\t\t\t$quote->assignCustomer($customer);\n\t\t\t\n\t\t\tif($orderDetails['customer']['deliveryAddress']['country'] == 'Sverige'){\t$scountry_id = \"SE\";\t}\n\t\t\tif($orderDetails['customer']['billingAddress']['country'] == 'Sverige'){ $bcountry_id = \"SE\";\t}\n\t\t\t\n\t\t\t$billingAddress = array(\n\t\t\t\t'customer_address_id' => '',\n\t\t\t\t'prefix' => '',\n\t\t\t\t'firstname' => $firstName,\n\t\t\t\t'middlename' => '',\n\t\t\t\t'lastname' => $lastName,\n\t\t\t\t'suffix' => '',\n\t\t\t\t'company' => $orderDetails['customer']['billingAddress']['coAddress'], \n\t\t\t\t'street' => array(\n\t\t\t\t\t '0' => $orderDetails['customer']['billingAddress']['address'], // compulsory\n\t\t\t\t\t '1' => $orderDetails['customer']['billingAddress']['address2'] // optional\n\t\t\t\t ),\n\t\t\t\t'city' => $orderDetails['customer']['billingAddress']['city'],\n\t\t\t\t'country_id' => $scountry_id, // two letters country code\n\t\t\t\t'region' => '', // can be empty '' if no region\n\t\t\t\t'region_id' => '', // can be empty '' if no region_id\n\t\t\t\t'postcode' => $orderDetails['customer']['billingAddress']['postalCode'],\n\t\t\t\t'telephone' => $mobile,\n\t\t\t\t'fax' => '',\n\t\t\t\t'save_in_address_book' => 1\n\t\t\t);\n\t\t\n\t\t\t$shippingAddress = array(\n\t\t\t\t'customer_address_id' => '',\n\t\t\t\t'prefix' => '',\n\t\t\t\t'firstname' => $firstName,\n\t\t\t\t'middlename' => '',\n\t\t\t\t'lastname' => $lastName,\n\t\t\t\t'suffix' => '',\n\t\t\t\t'company' => $orderDetails['customer']['deliveryAddress']['coAddress'], \n\t\t\t\t'street' => array(\n\t\t\t\t\t '0' => $orderDetails['customer']['deliveryAddress']['address'], // compulsory\n\t\t\t\t\t '1' => $orderDetails['customer']['deliveryAddress']['address2'] // optional\n\t\t\t\t ),\n\t\t\t\t'city' => $orderDetails['customer']['deliveryAddress']['city'],\n\t\t\t\t'country_id' => $scountry_id, // two letters country code\n\t\t\t\t'region' => '', // can be empty '' if no region\n\t\t\t\t'region_id' => '', // can be empty '' if no region_id\n\t\t\t\t'postcode' => $orderDetails['customer']['deliveryAddress']['postalCode'],\n\t\t\t\t'telephone' => $mobile,\n\t\t\t\t'fax' => '',\n\t\t\t\t'save_in_address_book' => 1\n\t\t\t);\n\t\t\n\t\t\n\t\t\t// Add billing address to quote\n\t\t\t$billingAddressData = $quote->getBillingAddress()->addData($billingAddress);\n\t\t \n\t\t\t// Add shipping address to quote\n\t\t\t$shippingAddressData = $quote->getShippingAddress()->addData($shippingAddress);\n\t\t\t\n\t\t\t//check for selected shipping method\n\t\t\t$shippingMethod = $session->getSelectedShippingmethod();\n\t\t\tif(empty($shippingMethod)){\n\t\t\t\t$allShippingData = Mage::getModel('collectorbank/config')->getActiveShppingMethods();\n\t\t\t\t$orderItems = $orderDetails['order']['items'];\n\t\t\t\tforeach($orderItems as $oitem){\n\t\t\t\t\t//echo \"<pre>\";print_r($oitem);\n\t\t\t\t\tif(in_array($oitem['id'], $allShippingData)) {\n\t\t\t\t\t\t$shippingMethod = $oitem['id'];\t\t\t\t\t\t\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Collect shipping rates on quote shipping address data\n\t\t\t$shippingAddressData->setCollectShippingRates(true)->collectShippingRates();\n\n\t\t\t// Set shipping and payment method on quote shipping address data\n\t\t\t$shippingAddressData->setShippingMethod($shippingMethod);\t\t\t\n\t\t\t\n\t\t\t//$paymentMethod = 'collectorpay';\n\t\t\t$paymentMethod = 'collectorbank_invoice';\n\t\t\t// Set shipping and payment method on quote shipping address data\n\t\t\t$shippingAddressData->setPaymentMethod($paymentMethod);\t\t\t\n\t\t\t\n\t\t\t$colpayment_method = $orderDetails['purchase']['paymentMethod'];\n\t\t\t$colpayment_details = json_encode($orderDetails['purchase']);\n\t\t\t\n\t\t\t// Set payment method for the quote\n\t\t\t$quote->getPayment()->importData(array('method' => $paymentMethod,'coll_payment_method' => $colpayment_method,'coll_payment_details' => $colpayment_details));\n\t\t\t\n\n\t\t\ttry{\n\t\t\t\t$orderReservedId = $session->getReference();\n\t\t\t\t$quote->setResponse($orderDetails);\n\t\t\t\t$quote->setCollCustomerType($orderDetails['customerType']);\n\t\t\t\t$quote->setCollBusinessCustomer($orderDetails['businessCustomer']);\n\t\t\t\t$quote->setCollStatus($orderDetails['status']);\n\t\t\t\t$quote->setCollPurchaseIdentifier($orderDetails['purchase']['purchaseIdentifier']);\n\t\t\t\t$quote->setCollTotalAmount($orderDetails['order']['totalAmount']);\n\t\t\t\tif($orderDetails['reference'] == $orderReservedId){\n\t\t\t\t\t$quote->setReservedOrderId($orderReservedId);\n\t\t\t\t} else {\n\t\t\t\t\t$quote->setReservedOrderId($orderDetails['reference']);\n\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t \t// Collect totals of the quote\n\t\t\t\t$quote->collectTotals();\n\t\t\t\t$quote->save();\n\t\t\t\t\n\t\t\t\t$service = Mage::getModel('sales/service_quote', $quote);\n\t\t\t\t$service->submitAll();\n\t\t\t\t$incrementId = $service->getOrder()->getRealOrderId();\n\t\t\t\t\n\t\t\t\tif($session->getIsSubscribed() == 1){\n\t\t\t\t\tMage::getModel('newsletter/subscriber')->subscribe($email);\n\t\t\t\t} \t\t\t\t\n\t\t\t\t\n\t\t\t\t$session->setLastQuoteId($quote->getId())\n\t\t\t\t\t->setLastSuccessQuoteId($quote->getId())\n\t\t\t\t\t->clearHelperData();\n\t\t\t\t\t\n\t\t\t\tMage::getSingleton('checkout/session')->clear();\n\t\t\t\tMage::getSingleton('checkout/cart')->truncate()->save();\n\t\t\t\t\n\t\t\t\t$session->unsPrivateId();\n\t\t\t\t$session->unsReference();\n\t\t\t\t\n\t\t\t\t // Log order created message\n\t\t\t\tMage::log('Order created with increment id: '.$incrementId, null, $logFileName);\t\t\t\t\t\t\n\t\t\t\t$result['success'] = true;\n\t\t\t\t$result['error'] = false;\n\t\t\t\t\n\t\t\t\t$order = Mage::getModel('sales/order')->loadByIncrementId($incrementId);\n\t\t\t\t\n\t\t\t\t$this->loadLayout();\n\t\t\t\t$block = Mage::app()->getLayout()->getBlock('collectorbank_success');\n\t\t\t\tif ($block){//check if block actually exists\t\t\t\t\t\n\t\t\t\t\t\tif ($order->getId()) {\n\t\t\t\t\t\t\t$orderId = $order->getId();\n\t\t\t\t\t\t\t$isVisible = !in_array($order->getState(),Mage::getSingleton('sales/order_config')->getInvisibleOnFrontStates());\n\t\t\t\t\t\t\t$block->setOrderId($incrementId);\n\t\t\t\t\t\t\t$block->setIsOrderVisible($isVisible);\n\t\t\t\t\t\t\t$block->setViewOrderId($block->getUrl('sales/order/view/', array('order_id' => $orderId)));\n\t\t\t\t\t\t\t$block->setViewOrderUrl($block->getUrl('sales/order/view/', array('order_id' => $orderId)));\n\t\t\t\t\t\t\t$block->setPrintUrl($block->getUrl('sales/order/print', array('order_id'=> $orderId)));\n\t\t\t\t\t\t\t$block->setCanPrintOrder($isVisible);\n\t\t\t\t\t\t\t$block->setCanViewOrder(Mage::getSingleton('customer/session')->isLoggedIn() && $isVisible);\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$this->renderLayout();\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t} catch (Mage_Core_Exception $e) {\n\t\t\t\t\t$result['success'] = false;\n\t\t\t\t\t$result['error'] = true;\n\t\t\t\t\t$result['error_messages'] = $e->getMessage(); \n\t\t\t\t\tMage::log('Order creation is failed for invoice no '.$orderDetails['purchase']['purchaseIdentifier'] .\"Error is --> \".Mage::helper('core')->jsonEncode($result), null, $logFileName);\t\t\n\t\t\t\t\t//Mage::app()->getResponse()->setBody(Mage::helper('core')->jsonEncode($result));\n\t\t\t\t\t$this->loadLayout();\n\t\t\t\t\t$block = Mage::app()->getLayout()->getBlock('collectorbank_success');\n\t\t\t\t\tif ($block){\n\t\t\t\t\t\tif($orderDetails['purchase']['purchaseIdentifier']){\n\t\t\t\t\t\t\t$block->setInvoiceNo($orderDetails['purchase']['purchaseIdentifier']);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$block->setCode(222);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t$this->renderLayout();\t\t\t\t\t\n\t\t\t} \t\t\t\n\t\t} \n\t\t\n\t\t} else {\n\t\t\tMage::log('Order is already generated.', null, $logFileName);\t\t\n\t\t\t$this->loadLayout(); \n\t\t\t$block = Mage::app()->getLayout()->getBlock('collectorbank_success');\n\t\t\tif ($block){\n\t\t\t\t$block->setCode(111);\n\t\t\t}\n\t\t\t$this->renderLayout();\n\t\t}\n\n\t\tMage::log('----------------- END ------------------------------- ', null, $logFileName);\t\t\n\t}", "function saveInfo()\n {\n $idUser = isset($_SESSION['idUser']) ? $_SESSION['idUser'] : '';\n $newName = isset($_POST['user-edit-name']) ? $_POST['user-edit-name'] : '';\n $newPhone = isset($_POST['user-edit-phone']) ? $_POST['user-edit-phone'] : '';\n $newAddress = isset($_POST['user-edit-address']) ? $_POST['user-edit-address'] : '';\n $resutl = $this->model->khachhang->updateUserInfo($idUser, $newName, $newAddress, $newPhone);\n if ($resutl) {\n $_SESSION['username'] = $newName;\n $_SESSION['phone'] = $newPhone;\n $_SESSION['address'] = $newAddress;\n $_SESSION['success-update-customer-info'] = 'Thay đổi thông tin thành công !';\n redirect('user/index');\n } else {\n $_SESSION['fail-update-customer-info'] = 'Thay đổi thông tin thất bại!';\n redirect('user/index');\n }\n }", "public function store(CustomerRequest $request)\n {\n \n $customer = Customer::create($request->all());\n \n if ($customer) {\n \n Session::flash('success', \"Registro #{$customer->id} salvo com êxito\");\n \n return redirect()->route('customers.index');\n }\n return redirect()->back()->withErrors(['error', \"Registo não foi salvo.\"]);\n }", "public function saveOrden( $datos_orden , $productos){\n date_default_timezone_set('America/El_Salvador');\n\n // obtener la secuencia de la secursal\n $date = date(\"Y-m-d\");\n $fecha_secuencia;\n $valor_secuencia;\n\n $this->db->select('*');\n $this->db->from(self::sys_secuencia.' AS s');\n $this->db->where('s.id_sucursal', $datos_orden['sucursalActiva'] );\n $query = $this->db->get();\n\n if($query->num_rows() > 0 )\n {\n $info = $query->result();\n foreach ($info as $value) {\n $fecha_secuencia = strtotime($value->fecha_secuencia,time());\n $fecha_actual = strtotime($date,time());\n $numero = $value->valor_secuencia;\n $numero++;\n if($fecha_secuencia==$fecha_actual){\n $valor_secuencia = str_pad($numero,4,\"0\",STR_PAD_LEFT) ;\n $this->UpdateSecuencia( $datos_orden['sucursalActiva'] ,$valor_secuencia);\n }\n else\n {\n $valor_secuencia = \"0001\";\n $this->UpdateSecuencia( $datos_orden['sucursalActiva'] ,$valor_secuencia);\n }\n }\n }\n\n //session_start();\n $date = date(\"Y-m-d H:i:s\");\n $fecha_entrega = $datos_orden['fecha_entrega'];\n $entrega_en_espera = 0;\n $estado_pedido = 7;\n if( date(\"Y-m-d\") == $fecha_entrega ){\n $entrega_en_espera = 1;\n $estado_pedido = 1;\n }\n $data = array(\n 'secuencia_orden' => $valor_secuencia,\n 'id_sucursal' => $datos_orden['sucursalActiva'], \n 'id_usuario' => $_SESSION['idUser'],\n 'id_mesero' => $datos_orden['tipo'], \n 'numero_mesa' => $datos_orden['costo_envio'], \n 'elaborado' => 0,\n 'flag_cancelado' => $datos_orden['pagado'],\n 'fechahora_pedido' => $date,\n 'fechahora_elaborado'=>$datos_orden['fecha_elaboracion'],\n 'flag_elaborado' => 1,\n 'flag_despachado' => 0,\n 'flag_pausa' => 0,\n 'prioridad' => $entrega_en_espera,\n 'estado' => 1,\n 'cliente' => $datos_orden['cliente'],\n 'email' => $datos_orden['email'],\n 'telefono' => $datos_orden['telefono'],\n 'celular' => $datos_orden['celular'],\n 'de' => $datos_orden['de'],\n 'para' => $datos_orden['para'],\n 'direccion' => $datos_orden['direccion'],\n 'dedicatoria' => $datos_orden['texto'],\n 'fecha_sugerida_entrega'=>$datos_orden['fecha_entrega'],\n 'tarjeta' => $datos_orden['tarjeta'],\n 'cvs' => $datos_orden['cvs'],\n 'nota_interna' => $datos_orden['nota_interna'],\n );\n $this->db->insert(self::sys_pedido,$data);\n\n //Insertando pedido Detalle\n $id_orden = $this->db->insert_id();\n $this->InsertPedidoDetalle( $id_orden , $datos_orden['sucursalActiva'] , $productos, $datos_orden['nota_interna'], $estado_pedido );\n\n return $id_orden;\n }", "public function bsuccessAction() {\n\t\t\n\t\t$session = Mage::getSingleton('checkout/session');\n\t\t\n\t\t$logFileName = 'magentoorder.log';\n\t\t\n\t\tMage::log('----------------- START ------------------------------- ', null, $logFileName);\t\n\t\t\n\t\t$quote = $session->getQuote();\n\t\t$quoteId = $quote->getEntityId();\n\t\t\n\t\t\n\t\t$typeData = $session->getTypeData();\n\t\t\n\t\t$privateId = $session->getBusinessPrivateId();\n\t\tif($privateId){\n\t\t\t$orderData = Mage::getModel('collectorbank/api')->getOrderResponse();\t\n\t\t\t//echo \"<pre>business \";print_r($orderData);die;\n\t\t\tif(isset($orderData['error'])){\n\t\t\t\t$session->addError($orderData['error']['message']);\n\t\t\t\t$this->_redirect('checkout/cart');\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t$orderDetails = $orderData['data'];\t\t\n\t\t\n\t\t\n\t\tif($orderDetails){\t\t\n\t\t\t$email = $orderDetails['businessCustomer']['email'];\n\t\t\t$mobile = $orderDetails['businessCustomer']['mobilePhoneNumber'];\n\t\t\t$firstName = $orderDetails['businessCustomer']['deliveryAddress']['companyName'];\n\t\t\t$lastName = $orderDetails['businessCustomer']['referencePerson'];\n\t\t\t\n\t\t\t\n\t\t\t$store = Mage::app()->getStore();\n\t\t\t$website = Mage::app()->getWebsite();\n\t\t\t$customer = Mage::getModel('customer/customer')->setWebsiteId($website->getId())->loadByEmail($email);\n\t\t\t\t// if the customer is not already registered\n\t\t\t\tif (!$customer->getId()) {\n\t\t\t\t\t$customer = Mage::getModel('customer/customer');\t\t\t\n\t\t\t\t\t$customer->setWebsiteId($website->getId())\n\t\t\t\t\t\t\t ->setStore($store)\n\t\t\t\t\t\t\t ->setFirstname($firstName)\n\t\t\t\t\t\t\t ->setLastname($lastName)\n\t\t\t\t\t\t\t ->setEmail($email); \n\t\t\t\t\ttry {\n\t\t\t\t\t \n\t\t\t\t\t\t$password = $customer->generatePassword(); \n\t\t\t\t\t\t$customer->setPassword($password); \n\t\t\t\t\t\t// set the customer as confirmed\n\t\t\t\t\t\t$customer->setForceConfirmed(true); \n\t\t\t\t\t\t// save customer\n\t\t\t\t\t\t$customer->save(); \n\t\t\t\t\t\t$customer->setConfirmation(null);\n\t\t\t\t\t\t$customer->save();\n\t\t\t\t\t\t\n\t\t\t\t\t\t// set customer address\n\t\t\t\t\t\t$customerId = $customer->getId(); \n\t\t\t\t\t\t$customAddress = Mage::getModel('customer/address'); \n\t\t\t\t\t\t$customAddress->setData($billingAddress)\n\t\t\t\t\t\t\t\t\t ->setCustomerId($customerId)\n\t\t\t\t\t\t\t\t\t ->setIsDefaultBilling('1')\n\t\t\t\t\t\t\t\t\t ->setIsDefaultShipping('1')\n\t\t\t\t\t\t\t\t\t ->setSaveInAddressBook('1');\n\t\t\t\t\t\t\n\t\t\t\t\t\t// save customer address\n\t\t\t\t\t\t$customAddress->save();\n\t\t\t\t\t\t// send new account email to customer \n\t\t\t\t\t\t\n\t\t\t\t\t\t$storeId = $customer->getSendemailStoreId();\n\t\t\t\t\t\t$customer->sendNewAccountEmail('registered', '', $storeId);\n\t\t\t\t\t\t\n\t\t\t\t\t\tMage::log('Customer with email '.$email.' is successfully created.', null, $logFileName);\n\t\t\t\t\t\t\n\t\t\t\t\t} catch (Mage_Core_Exception $e) {\t\t\t\t\t\t\n\t\t\t\t\t\tMage::log('Cannot add customer for '.$e->getMessage(), null, $logFileName);\n\t\t\t\t\t} catch (Exception $e) {\n\t\t\t\t\t\tMage::log('Cannot add customer for '.$email, null, $logFileName);\n\t\t\t\t\t} \n\t\t\t\t}\n\t\t\t\t\n\t\t\t// Assign Customer To Sales Order Quote\n\t\t\t$quote->assignCustomer($customer);\n\t\t\t\n\t\t\tif($orderDetails['businessCustomer']['deliveryAddress']['country'] == 'Sverige'){\t$scountry_id = \"SE\";\t}\n\t\t\tif($orderDetails['businessCustomer']['invoiceAddress']['country'] == 'Sverige'){ $bcountry_id = \"SE\";\t}\n\t\t\t\n\t\t\t$billingAddress = array(\n\t\t\t\t'customer_address_id' => '',\n\t\t\t\t'prefix' => '',\n\t\t\t\t'firstname' => $firstName,\n\t\t\t\t'middlename' => '',\n\t\t\t\t'lastname' => $lastName,\n\t\t\t\t'suffix' => '',\n\t\t\t\t'company' => $orderDetails['businessCustomer']['invoiceAddress']['companyName'], \n\t\t\t\t'street' => array(\n\t\t\t\t\t '0' => $orderDetails['businessCustomer']['invoiceAddress']['address'], // compulsory\n\t\t\t\t\t '1' => $orderDetails['businessCustomer']['invoiceAddress']['address2'] // optional\n\t\t\t\t ),\n\t\t\t\t'city' => $orderDetails['businessCustomer']['invoiceAddress']['city'],\n\t\t\t\t'country_id' => $scountry_id, // two letters country code\n\t\t\t\t'region' => '', // can be empty '' if no region\n\t\t\t\t'region_id' => '', // can be empty '' if no region_id\n\t\t\t\t'postcode' => $orderDetails['businessCustomer']['invoiceAddress']['postalCode'],\n\t\t\t\t'telephone' => $mobile,\n\t\t\t\t'fax' => '',\n\t\t\t\t'save_in_address_book' => 1\n\t\t\t);\n\t\t\n\t\t\t$shippingAddress = array(\n\t\t\t\t'customer_address_id' => '',\n\t\t\t\t'prefix' => '',\n\t\t\t\t'firstname' => $firstName,\n\t\t\t\t'middlename' => '',\n\t\t\t\t'lastname' => $lastName,\n\t\t\t\t'suffix' => '',\n\t\t\t\t'company' => $orderDetails['businessCustomer']['deliveryAddress']['companyName'], \n\t\t\t\t'street' => array(\n\t\t\t\t\t '0' => $orderDetails['businessCustomer']['deliveryAddress']['address'], // compulsory\n\t\t\t\t\t '1' => $orderDetails['businessCustomer']['deliveryAddress']['address2'] // optional\n\t\t\t\t ),\n\t\t\t\t'city' => $orderDetails['businessCustomer']['deliveryAddress']['city'],\n\t\t\t\t'country_id' => $scountry_id, // two letters country code\n\t\t\t\t'region' => '', // can be empty '' if no region\n\t\t\t\t'region_id' => '', // can be empty '' if no region_id\n\t\t\t\t'postcode' => $orderDetails['businessCustomer']['deliveryAddress']['postalCode'],\n\t\t\t\t'telephone' => $mobile,\n\t\t\t\t'fax' => '',\n\t\t\t\t'save_in_address_book' => 1\n\t\t\t);\n\t\t\n\t\t\n\t\t\t// Add billing address to quote\n\t\t\t$billingAddressData = $quote->getBillingAddress()->addData($billingAddress);\n\t\t \n\t\t\t// Add shipping address to quote\n\t\t\t$shippingAddressData = $quote->getShippingAddress()->addData($shippingAddress);\n\t\t\t\n\t\t\t//check for selected shipping method\n\t\t\t$shippingMethod = $session->getSelectedShippingmethod();\n\t\t\tif(empty($shippingMethod)){\n\t\t\t\t$allShippingData = Mage::getModel('collectorbank/config')->getActiveShppingMethods();\n\t\t\t\t$orderItems = $orderDetails['order']['items'];\n\t\t\t\tforeach($orderItems as $oitem){\n\t\t\t\t\t//echo \"<pre>\";print_r($oitem);\n\t\t\t\t\tif(in_array($oitem['id'], $allShippingData)) {\n\t\t\t\t\t\t$shippingMethod = $oitem['id'];\t\t\t\t\t\t\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Collect shipping rates on quote shipping address data\n\t\t\t$shippingAddressData->setCollectShippingRates(true)->collectShippingRates();\n\n\t\t\t// Set shipping and payment method on quote shipping address data\n\t\t\t$shippingAddressData->setShippingMethod($shippingMethod);\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t$paymentMethod = 'collectorbank_invoice';\n\t\t\t// Set shipping and payment method on quote shipping address data\n\t\t\t$shippingAddressData->setPaymentMethod($paymentMethod);\t\t\t\n\t\t\t\n\t\t\t$colpayment_method = $orderDetails['purchase']['paymentMethod'];\n\t\t\t$colpayment_details = json_encode($orderDetails['purchase']);\n\t\t\t\n\t\t\t\n\t\t\t// Set payment method for the quote\n\t\t\t$quote->getPayment()->importData(array('method' => $paymentMethod,'coll_payment_method' => $colpayment_method,'coll_payment_details' => $colpayment_details));\n\t\t\t\n\t\t\t//die;\n\t\t\ttry{\n\t\t\t\t$orderReservedId = $session->getReference();\n\t\t\t\t$quote->setResponse($orderDetails);\n\t\t\t\t$quote->setCollCustomerType($orderDetails['customerType']);\n\t\t\t\t$quote->setCollBusinessCustomer($orderDetails['businessCustomer']);\n\t\t\t\t$quote->setCollStatus($orderDetails['status']);\n\t\t\t\t$quote->setCollPurchaseIdentifier($orderDetails['purchase']['purchaseIdentifier']);\n\t\t\t\t$quote->setCollTotalAmount($orderDetails['order']['totalAmount']);\n\t\t\t\tif($orderDetails['reference'] == $orderReservedId){\n\t\t\t\t\t$quote->setReservedOrderId($orderReservedId);\n\t\t\t\t} else {\n\t\t\t\t\t$quote->setReservedOrderId($orderDetails['reference']);\n\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t \t// Collect totals of the quote\n\t\t\t\t$quote->collectTotals();\n\t\t\t\t$quote->save();\n\t\t\t\t\n\t\t\t\t$service = Mage::getModel('sales/service_quote', $quote);\n\t\t\t\t$service->submitAll();\n\t\t\t\t$incrementId = $service->getOrder()->getRealOrderId();\n\t\t\t\t\n\t\t\t\tif($session->getIsSubscribed() == 1){\n\t\t\t\t\tMage::getModel('newsletter/subscriber')->subscribe($email);\n\t\t\t\t} \t\t\t\t\n\t\t\t\t\n\t\t\t\t$session->setLastQuoteId($quote->getId())\n\t\t\t\t\t->setLastSuccessQuoteId($quote->getId())\n\t\t\t\t\t->clearHelperData();\n\t\t\t\t\t\n\t\t\t\tMage::getSingleton('checkout/session')->clear();\n\t\t\t\tMage::getSingleton('checkout/cart')->truncate()->save();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t$session->unsBusinessPrivateId();\n\t\t\t\t$session->unsReference();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t // Log order created message\n\t\t\t\tMage::log('Order created with increment id: '.$incrementId, null, $logFileName);\t\t\t\t\t\t\n\t\t\t\t$result['success'] = true;\n\t\t\t\t$result['error'] = false;\n\t\t\t\t\n\t\t\t\t$order = Mage::getModel('sales/order')->loadByIncrementId($incrementId);\n\t\t\t\t\n\t\t\t\t$this->loadLayout();\n\t\t\t\t$block = Mage::app()->getLayout()->getBlock('collectorbank_success');\n\t\t\t\tif ($block){//check if block actually exists\t\t\t\t\t\n\t\t\t\t\t\tif ($order->getId()) {\n\t\t\t\t\t\t\t$orderId = $order->getId();\n\t\t\t\t\t\t\t$isVisible = !in_array($order->getState(),Mage::getSingleton('sales/order_config')->getInvisibleOnFrontStates());\n\t\t\t\t\t\t\t$block->setOrderId($incrementId);\n\t\t\t\t\t\t\t$block->setIsOrderVisible($isVisible);\n\t\t\t\t\t\t\t$block->setViewOrderId($block->getUrl('sales/order/view/', array('order_id' => $orderId)));\n\t\t\t\t\t\t\t$block->setViewOrderUrl($block->getUrl('sales/order/view/', array('order_id' => $orderId)));\n\t\t\t\t\t\t\t$block->setPrintUrl($block->getUrl('sales/order/print', array('order_id'=> $orderId)));\n\t\t\t\t\t\t\t$block->setCanPrintOrder($isVisible);\n\t\t\t\t\t\t\t$block->setCanViewOrder(Mage::getSingleton('customer/session')->isLoggedIn() && $isVisible);\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$this->renderLayout();\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t} catch (Mage_Core_Exception $e) {\n\t\t\t\t\t$result['success'] = false;\n\t\t\t\t\t$result['error'] = true;\n\t\t\t\t\t$result['error_messages'] = $e->getMessage(); \n\t\t\t\t\tMage::log('Order creation is failed for invoice no '.$orderDetails['purchase']['purchaseIdentifier'] .\"Error is --> \".Mage::helper('core')->jsonEncode($result), null, $logFileName);\t\t\n\t\t\t\t\t$this->loadLayout();\n\t\t\t\t\t$block = Mage::app()->getLayout()->getBlock('collectorbank_success');\n\t\t\t\t\tif ($block){\n\t\t\t\t\t\tif($orderDetails['purchase']['purchaseIdentifier']){\n\t\t\t\t\t\t\t$block->setInvoiceNo($orderDetails['purchase']['purchaseIdentifier']);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$block->setCode(222);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t$this->renderLayout();\t\t\t\t\t\n\t\t\t} \t\t\t\n\t\t} \n\t\t\n\t\t} else {\n\t\t\tMage::log('Order is already generated.', null, $logFileName);\t\t\n\t\t\t$this->loadLayout(); \n\t\t\t$block = Mage::app()->getLayout()->getBlock('collectorbank_success');\n\t\t\tif ($block){\n\t\t\t\t$block->setCode(111);\n\t\t\t}\n\t\t\t$this->renderLayout();\n\t\t}\n\n\t\tMage::log('----------------- END ------------------------------- ', null, $logFileName);\t\t\n\t}", "function add_multi() {\n \t\t//-- step 1 pilih kode pelanggan\n \t\t$this->load->model('customer_model');\n\t\t$this->load->model('bank_accounts_model');\n \t\t$data['no_bukti']=$this->nomor_bukti();\n\t\t$data['date_paid']=date('Y-m-d');\n\t\t$data['how_paid']='Cash';\n\t\t$data['amount_paid']=0;\n\t\t$data['mode']='add';\n\t\t$data['customer_number']='';\n\t\t$data['how_paid_acct_id']='';\n\t\t$data['how_paid']='';\n\t\t$data['customer_list']=$this->customer_model->customer_list();\n\t\t$data['account_list']=$this->bank_accounts_model->account_number_list();\n\t\t$data['credit_card_number']='';\n\t\t$data['expiration_date']=date('Y-m-d');\n\t\t$data['from_bank']='';\n\t\t$this->template->display_form_input('sales/payment_multi',$data,'');\t\t\t\n\t\t\n }", "public function addMerchant($firstName,$lastName,$password,$telephone,$email,$dob){\n //api secret\n $secret=$this->generateApiSecret();\n $isSaved=$this->db->insert(\"insert into merchant(firstName,lastName,password,telephone,email,dob,wallet,apiSecret)\n values('{$firstName}','{$lastName}','{$password}','{$telephone}','{$email}','{$dob}','500','{$secret}')\");\n\n return $isSaved;\n\n}", "public function saveUserDataAction()\n {\n Shopware()->Plugins()->Controller()->ViewRenderer()->setNoRender();\n $Parameter = $this->Request()->getParams();\n\n $customerModel = Shopware()->Models()->getRepository('Shopware\\Models\\Customer\\Customer');\n $userModel = $customerModel->findOneBy(array('id' => Shopware()->Session()->sUserId));\n $user = $userModel->getBilling();\n $debitUser = $userModel->getDebit();\n $config = Shopware()->Plugins()->Frontend()->RpayRatePay()->Config();\n\n $return = 'OK';\n $updateData = array();\n\n if (!is_null($user)) {\n $updateData['phone'] = $Parameter['ratepay_phone'] ? : $user->getPhone();\n $updateData['ustid'] = $Parameter['ratepay_ustid'] ? : $user->getVatId();\n $updateData['company'] = $Parameter['ratepay_company'] ? : $user->getCompany();\n $updateData['birthday'] = $Parameter['ratepay_dob'] ? : $user->getBirthday(\n )->format(\"Y-m-d\");\n try {\n Shopware()->Db()->update('s_user_billingaddress', $updateData, 'userID=' . $Parameter['userid']);\n Shopware()->Log()->Info('Kundendaten aktualisiert.');\n } catch (Exception $exception) {\n Shopware()->Log()->Err('Fehler beim Updaten der Userdaten: ' . $exception->getMessage());\n $return = 'NOK';\n }\n }\n $updateData = array();\n if ($Parameter['ratepay_debit_updatedebitdata']) {\n Shopware()->Session()->RatePAY['bankdata']['account'] = $Parameter['ratepay_debit_accountnumber'];\n Shopware()->Session()->RatePAY['bankdata']['bankcode'] = $Parameter['ratepay_debit_bankcode'];\n Shopware()->Session()->RatePAY['bankdata']['bankname'] = $Parameter['ratepay_debit_bankname'];\n Shopware()->Session()->RatePAY['bankdata']['bankholder'] = $Parameter['ratepay_debit_accountholder'];\n if ($config->get('RatePayBankData')) {\n $updateData = array(\n 'account' => $Parameter['ratepay_debit_accountnumber'] ? : $debitUser->getAccount(),\n 'bankcode' => $Parameter['ratepay_debit_bankcode'] ? : $debitUser->getBankCode(),\n 'bankname' => $Parameter['ratepay_debit_bankname'] ? : $debitUser->getBankName(),\n 'bankholder' => $Parameter['ratepay_debit_accountholder'] ? : $debitUser->getAccountHolder()\n );\n try {\n $this->_encryption->saveBankdata($Parameter['userid'], $updateData);\n Shopware()->Log()->Info('Bankdaten aktualisiert.');\n } catch (Exception $exception) {\n Shopware()->Log()->Err('Fehler beim Updaten der Bankdaten: ' . $exception->getMessage());\n Shopware()->Log()->Debug($updateData);\n $return = 'NOK';\n }\n }\n }\n echo $return;\n }", "public function customerRegistration( $data ){\n \n $first_name = $this->fm->validation($data['first_name']);\n $last_name = $this->fm->validation($data['last_name']);\n $username = $this->fm->validation($data['username']);\n $email = $this->fm->validation($data['email']);\n $gender = $this->fm->validation($data['gender']);\n $phone = $this->fm->validation($data['phone']);\n $password = $this->fm->validation ( md5 ( $data ['password'] ) );\n\n $first_name = mysqli_real_escape_string( $this->db->link, $data['first_name']);\n $last_name = mysqli_real_escape_string( $this->db->link, $data['last_name']);\n $username = mysqli_real_escape_string( $this->db->link, $data['username']);\n $email = mysqli_real_escape_string( $this->db->link, $data['email']);\n $gender = mysqli_real_escape_string( $this->db->link, $data['gender']);\n $phone = mysqli_real_escape_string( $this->db->link, $data['phone']);\n $password = mysqli_real_escape_string( $this->db->link, md5($data['password']));\n\n if ( $first_name == \"\" || $last_name == \"\" || $username == \"\" || $email == \"\" || $gender == \"\" || $phone == \"\" || $password == \"\" ) {\n $msg = \"<span class='error'>Field must not be empty !</span>\";\n return $msg;\n } \n $mailquery = \"SELECT * FROM tbl_customer WHERE email= '$email' LIMIT 1\";\n $mailChk = $this->db->select($mailquery);\n if ($mailChk != false) {\n $msg = \"<span class='error'>Email already exist !</span>\";\n return $msg;\n } else {\n $query = \"INSERT INTO tbl_customer (first_name, last_name, username, email, gender, phone, password ) VALUES('$first_name', '$last_name', '$username', '$email', '$gender', '$phone','$password')\";\n $inserted_rows = $this->db->insert($query);\n\n if ($inserted_rows) {\n $msg = \"<span class='success succ-reg'>Registration Successfully.<a class='login-reg' href='login.php'>login </a> </span>\"; \n return $msg;\n } else {\n $msg = \"<span class='error'> Something Wrong !</span>\";\n return $msg;\n } \n }\n\n }", "public function store()\n\t{ \n $nextId = OrdenEsM::nextId();\n $input = Input::all();\n $ordenD = new OrdenEsD();\n $ordenD->upc = $input['upc'];\n $ordenD->epc = $input['epc'];\n $ordenD->quantity = $input['quantity'];\n $ordenD->created_at = $input['created_at'];\n $ordenD->updated_at = $input['updated_at'];\n $ordenD->orden_es_m_id = $nextId;\n $ordenD->save();\n\t}", "public function customers_add($param = null)\r\n {\r\n if (isset($_POST[\"cus_lastname\"]) && !empty($_POST[\"cus_lastname\"])) {\r\n $customer = Customer::updateOrCreate([\r\n 'cus_civility' => $_POST[\"cus_civility\"],\r\n 'cus_lastname' => $_POST[\"cus_lastname\"],\r\n 'cus_firstname' => $_POST[\"cus_firstname\"],\r\n 'cus_mail' => $_POST[\"cus_mail\"],\r\n 'cus_password' => md5($_POST[\"cus_password\"]),\r\n ]);\r\n echo $customer;\r\n } else {\r\n echo json_encode([\"error\" => \"ERROR\"]);\r\n }\r\n }", "public function addCustomer(CustomerModel $custData)\n {\n try \n {\n \n //define the query to search the database for the credentials\n $this->dbQuery = \"INSERT INTo customer\n (FirstName, LastName)\n VALUES \n ('{$custData->getFirstName()}', '{$custData->getLastName()}')\";\n //if the selected query returns a resultset\n //$result = mysqli_query($this->conn,$this->dbQuery);\n \n if( $this->dbObj->query($this->dbQuery))\n {\n // $this->conn->closeDbConnect();\n return true;\n }\n else\n {\n $this->conn->closeDbConnect();\n return false;\n }\n } catch (Exception $e) \n {\n echo $e->getMessage();\n }\n \n }", "public function saveAction()\n {\n $tab = '';\n \n \n $pPoOrderId = $this->getRequest()->getPost('po_order_id');\n \n //get input parametre from the webpage.\n $order = Mage::getModel('purchase/order')->load($pPoOrderId);\n\n $order->setPurchaseRep(Mage::getSingleton('admin/session')->getUser()->getUsername());\n \n if ($this->getRequest()->getPost('order_eta')){\n $order->setOrderEta($this->getRequest()->getPost('order_eta'));\n }else{\n $order->setOrderEta(null);\n }\n $order->setPaymentTerms($this->getRequest()->getPost('payment_term_id'));\n $order->setShippingMethod($this->getRequest()->getPost('shipping_method_id'));\n \n $order->setComments($this->getRequest()->getPost('comments'));\n $order->setStoreId($this->getRequest()->getPost('store_id'));\n \n $order->setShippingName($this->getRequest()->getPost('shipping_name'));\n $order->setShippingCompany($this->getRequest()->getPost('shipping_company'));\n $order->setShippingStreet1($this->getRequest()->getPost('shipping_street1'));\n $order->setShippingStreet2($this->getRequest()->getPost('shipping_street2'));\n $order->setShippingCity($this->getRequest()->getPost('shipping_city'));\n $order->setShippingState($this->getRequest()->getPost('shipping_state'));\n $order->setShippingZipcode($this->getRequest()->getPost('shipping_zipcode'));\n $order->setShippingCountry($this->getRequest()->getPost('shipping_country'));\n $order->setShippingTelephone1($this->getRequest()->getPost('shipping_telephone1'));\n $order->setShippingTelephone2($this->getRequest()->getPost('shipping_telephone2'));\n $order->setShippingFax($this->getRequest()->getPost('shipping_fax'));\n $order->setShippingEmail($this->getRequest()->getPost('shipping_email'));\n $order->setShippingType($this->getRequest()->getPost('shipping_type')); \n// $order->setShippingSalesOrderId(\"\"); \n if($this->getRequest()->getPost('po_shipping_type')==\"so\")\n $order->setShippingSalesOrderId($this->getRequest()->getPost('po_shipping_so_num')); \n else\n $order->setShippingSalesOrderId(\"\"); \n \n $order->save(); \n \n $purchaseOrderId = $order->getId();\n \n \n //Process information from \"review product\" tab page\n foreach ($order->getOrderItems() as $item)\n {\n\n $itemId = $item->getId();\n \n if ($this->getRequest()->getPost('delete_'.$itemId) == 1)\n {\n $vOldQty = $item->getProductQty();\n $vProductQty = 0;\n $item->delete();\n }\n else \n {\n $receivedQty =$item->getQtyReceipted(); \n $vOldQty = $item->getProductQty();\n $vProductQty = $this->getRequest()->getPost('product_qty_'.$itemId);\n\n if (!(($vProductQty < $receivedQty) || ($vOldQty < $receivedQty))){ \n $item->setPurchaseOrderId($purchaseOrderId);\n $item->setProductId($this->getRequest()->getPost('product_id_'.$itemId));\n $item->setProductName($this->getRequest()->getPost('product_name_'.$itemId));\n \n //$item->setpop_supplier_ref($this->getRequest()->getPost('pop_supplier_ref_'.$item->getId()));\n \n $item->setProductQty($vProductQty);\n $item->setProductPrice($this->getRequest()->getPost('product_price_'.$itemId));\n $item->setSubtotal($item->getProductQty() * $item->getProductPrice());\n $item->setTotal($item->getSubtotal() + $item->getTax() + $item->getAdjustFee());\n $item->save();\n\n $vendorProduct = Mage::getModel(\"purchase/vendorproduct\")\n ->loadByProductId($order->getVendorId() , $item->getProductId());\n $vendorProduct->setVendorSku($this->getRequest()->getPost('vendor_sku_'.$itemId))\n ->setUnitCost($item->getProductPrice())\n ->save();\n }else {\n Mage::getSingleton('adminhtml/session')->addWarning($this->__('not updated for %s: new qty[%s] less than received qty [%s]', $item->getProductName(), $vProductQty, $receivedQty)); \n $vProductQty = $vOldQty;\n } \n\n } \n //process update qty when order had been send to vendor\n if ((($order->getStatus() == Ebulb_Purchase_Model_Order::STATUS_WAITING_FOR_DELIVERY) \n ||($order->getStatus() == Ebulb_Purchase_Model_Order::STATUS_PARTIALLY_RECEIVED))\n && ($vOldQty != $vProductQty)){\n \n Mage::dispatchEvent('purchase_order_refresh_poqty', \n array('po_order_id' => $purchaseOrderId,\n 'po_product_id' => $item->getProductId(), \n 'po_product_qty_old' => $vOldQty,\n 'po_product_qty_new' => $vProductQty));\n\n } \n\n }\n\n\n \n //process information from \"Add product\" tab page, check if we have to add products\n if ($this->getRequest()->getPost('add_product') != '')\n {\n $productsToAdd = Mage::helper('purchase')->decodeInput($this->getRequest()->getPost('add_product'));\n foreach($productsToAdd as $key => $value)\n {\n //retrieves values\n $productId = $key;\n $qty = $value['qty'];\n if ($qty == '')\n $qty = 1;\n \n //add product\n $order->addItems($productId, $qty);\n \n //process update qty when order had been send to vendor\n if (($order->getStatus() == Ebulb_Purchase_Model_Order::STATUS_WAITING_FOR_DELIVERY)\n ||($order->getStatus() == Ebulb_Purchase_Model_Order::STATUS_PARTIALLY_RECEIVED)){\n \n Mage::dispatchEvent('purchase_order_refresh_poqty', \n array('po_order_id' => $purchaseOrderId,\n 'po_product_id' => $productId, \n 'po_product_qty_old' => 0,\n 'po_product_qty_new' => $qty));\n\n }\n \n }\n \n Mage::getSingleton('adminhtml/session')->addSuccess($this->__('Products added'));\n $tab = 'tab_products';\n $order->resetOrderItems();\n \n }\n \n $orderSubtotal = 0.0000;\n //$orderTotal = 0.0000;\n foreach ($order->getOrderItems() as $item)\n {\n $orderSubtotal += $item->getSubtotal();\n //$orderTotal += $item->getTotal();;\n //Update vendor_product's vendor sku, cost...etc,.\n Mage::dispatchEvent('purchase_order_update_vendor_product', array('po_order_item'=>$item));\n }\n $order->setSubtotal($orderSubtotal)\n ->setTotal($orderSubtotal + $order->getTax() + $order->getAdjustFee() + $order->getShippingPrice())\n ->save();\n \n //Process information from \"send to vendor\" tab page.\n $notifyFlag = $this->getRequest()->getPost('send_to_customer');\n if ($notifyFlag == 1)\n {\n $order->notifyVendor($this->getRequest()->getPost('email_comment'));\n Mage::getSingleton('adminhtml/session')->addSuccess($this->__('Vendor notified'));\n\n //update Po_qty in stockitem.\n foreach ($order->getOrderItems() as $item)\n {\n Mage::dispatchEvent('purchase_order_refresh_poqty', \n array('po_order_id' => $order->getId(),\n 'po_product_id' => $item->getProductId(), \n 'po_product_qty_old' => 0,\n 'po_product_qty_new' => $item->getProductQty()));\n }\n\n }\n \n if (($order->getStatus() == Ebulb_Purchase_Model_Order::STATUS_WAITING_FOR_DELIVERY)\n ||($order->getStatus() == Ebulb_Purchase_Model_Order::STATUS_PARTIALLY_RECEIVED) ){\n Mage::dispatchEvent('purchase_order_refresh_status', \n array('po_order' => $order)); \n }\n \n Mage::getSingleton('adminhtml/session')->addSuccess($this->__('Purchase order successfully Saved'));\n \n $this->_redirect('purchase/orders/edit/po_order_id/'.$order->getOrderId().'/tab/'.$tab);\n \n }", "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 }" ]
[ "0.7040579", "0.6991692", "0.6852419", "0.68315184", "0.67530775", "0.6638784", "0.65225196", "0.6490736", "0.64538664", "0.6429568", "0.64077353", "0.6389106", "0.63755393", "0.63709015", "0.63221854", "0.6312059", "0.62832594", "0.62805885", "0.62693125", "0.6250433", "0.6227572", "0.62171257", "0.6202651", "0.61924905", "0.6187776", "0.6180882", "0.61651814", "0.6161761", "0.616015", "0.612053", "0.6104318", "0.6098144", "0.6076629", "0.6073303", "0.6068558", "0.60588354", "0.6058742", "0.6057563", "0.6052061", "0.6043255", "0.60262114", "0.6019491", "0.6012333", "0.59949243", "0.5993408", "0.5981657", "0.59771645", "0.5958547", "0.5951478", "0.5945776", "0.5945322", "0.5935105", "0.5931889", "0.5919436", "0.5916762", "0.59138495", "0.59098774", "0.5904878", "0.5902231", "0.5896923", "0.5882912", "0.5880787", "0.58709246", "0.58620024", "0.58594096", "0.5859023", "0.5857728", "0.58494925", "0.58378494", "0.58274984", "0.582329", "0.5820287", "0.5814537", "0.58144426", "0.58034074", "0.5802587", "0.5802297", "0.57981956", "0.5795951", "0.5790776", "0.57896584", "0.57866734", "0.5780346", "0.578021", "0.57789594", "0.5778243", "0.5776667", "0.577663", "0.5774511", "0.5764941", "0.5746993", "0.5741324", "0.574027", "0.5737492", "0.5737208", "0.5735904", "0.573588", "0.57356364", "0.573495", "0.57317543" ]
0.63002676
16
Save credit card data when it's enabled
private function saveCreditCardIfNotExists($order) { $savedCreditCard = new Creditcard($this->openCart); if (!empty($order->charges)) { foreach ($order->charges as $charge) { if ( !$savedCreditCard->creditCardExists( $charge->lastTransaction->card->id ) ) { $savedCreditCard->saveCreditcard( $order->customer->id, $charge->lastTransaction->card, $order->code ); } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function _storeCaptureMode()\n {\n $captureMode = Mage::getStoreConfig('afterpay/afterpay_capture/capture_mode', $this->_order->getStoreId());\n \n $this->_order->setAfterpayCaptureMode($captureMode)->save();\n }", "public function save() {\n $existedCard = db_query('SELECT * FROM '.self::tableName.' WHERE instruction_id = '.(int)$this->instructionId)->fetch(\\PDO::FETCH_OBJ);;\n if(empty($existedCard)) {\n db_insert(self::tableName)\n ->fields(array(\n 'order_id' => $this->orderId,\n 'number' => $this->number,\n 'hash' => $this->hash,\n 'is_cash' => $this->isCash,\n 'bank_account' => $this->bankAccount,\n 'amount' => $this->amount,\n 'currency' => $this->currency,\n 'channel' => $this->channel\n ))\n ->execute();\n } else {\n db_update(self::tableName)\n ->fields(array(\n 'order_id' => $this->orderId, \n 'number' => $this->number,\n 'hash' => $this->hash,\n 'is_cash' => $this->isCash,\n 'bank_account' => $this->bankAccount,\n 'amount' => $this->amount,\n 'currency' => $this->currency,\n 'channel' => $this->channel\n ))\n ->condition('instruction_id', $this->instructionId, '=')\n ->execute();\n }\n $instruction = db_query( 'SELECT * FROM '.self::tableName.' WHERE order_id = '.(int)$this->orderId.' AND hash = \\''.$this->hash.'\\' AND amount = \\''.$this->amount.'\\'')->fetch(\\PDO::FETCH_OBJ);\n $this->instructionId = $instruction->instruction_id;\n return true;\n }", "public function saveAction()\n {\n $postData = $this->getRequest()->getPost();\n\n if ($profileId = $this->getRequest()->getParam('id')) {\n $model = Mage::getModel('authnettoken/cim_payment_profile')->load($profileId);\n }\n else {\n $model = Mage::getModel('authnettoken/cim_payment_profile');\n }\n\n if ($postData) {\n\n try {\n try {\n // Save post data to model\n $model->addData($postData);\n // Now try to save payment profile to Auth.net CIM\n $model->saveCimProfileData(true);\n }\n catch (SFC_AuthnetToken_Helper_Cim_Exception $eCim) {\n Mage::getSingleton('adminhtml/session')->addError('Failed to save credit card to Authorize.Net CIM!');\n if ($eCim->getResponse() != null) {\n Mage::getSingleton('adminhtml/session')->addError('CIM Result Code: ' . $eCim->getResponse()->getResultCode());\n Mage::getSingleton('adminhtml/session')->addError('CIM Message Code: ' .\n $eCim->getResponse()->getMessageCode());\n Mage::getSingleton('adminhtml/session')->addError('CIM Message Text: ' .\n $eCim->getResponse()->getMessageText());\n }\n // Send customer back to saved credit cards grid\n $this->_redirect('adminhtml/customer/edit/tab/customer_info_tabs_paymentprofile',\n array('id' => $postData['customer_id']));\n\n return;\n }\n\n // Now save model\n $model->save();\n\n Mage::getSingleton('adminhtml/session')->addSuccess(\n Mage::helper('adminhtml')->__('Saved credit card ' . $model->getCustomerCardnumber() . '.'));\n Mage::getSingleton('adminhtml/session')->setCustomerData(false);\n\n if ($this->getRequest()->getParam('back')) {\n $this->_redirect('*/*/edit', array('id' => $model->getId()));\n\n return;\n }\n $this->_redirect('adminhtml/customer/edit/tab/customer_info_tabs_paymentprofile',\n array('id' => $model->getCustomerId()));\n\n return;\n }\n catch (Exception $e) {\n Mage::getSingleton('adminhtml/session')->addError('Failed to save credit card!');\n Mage::getSingleton('adminhtml/session')->addError($e->getMessage());\n // Send customer back to saved credit cards grid\n $this->_redirect('adminhtml/customer/edit/tab/customer_info_tabs_paymentprofile',\n array('id' => $postData['customer_id']));\n }\n }\n\n // Send customer back to saved credit cards grid\n $this->_redirect('adminhtml/customer/edit/tab/customer_info_tabs_paymentprofile', array('id' => $postData['customer_id']));\n }", "function saveCard()\n {\n $table = 'module_isic_card';\n $card = $this->vars[\"card_id\"];\n $this->convertValueFieldKeys();\n //print_r($this->vars);\n // there are 2 possibilites for saving card (modify existing or add new)\n if ($card) { // modify existing card\n\n $row_old = $this->isic_common->getCardRecord($card);\n $t_field_data = $this->getFieldData($row_old[\"type_id\"]);\n\n\n $r = &$this->db->query('\n UPDATE\n `module_isic_card`\n SET\n `module_isic_card`.`moddate` = NOW(),\n `module_isic_card`.`moduser` = ?,\n `module_isic_card`.`person_name` = ?,\n `module_isic_card`.`person_addr1` = ?,\n `module_isic_card`.`person_addr2` = ?,\n `module_isic_card`.`person_addr3` = ?,\n `module_isic_card`.`person_addr4` = ?,\n `module_isic_card`.`person_email` = ?,\n `module_isic_card`.`person_phone` = ?,\n `module_isic_card`.`person_position` = ?,\n `module_isic_card`.`person_class` = ?,\n `module_isic_card`.`person_stru_unit` = ?,\n `module_isic_card`.`person_bankaccount` = ?,\n `module_isic_card`.`person_bankaccount_name` = ?,\n `module_isic_card`.`person_newsletter` = ?,\n `module_isic_card`.`confirm_user` = !,\n `module_isic_card`.`confirm_payment_collateral` = !,\n `module_isic_card`.`confirm_payment_cost` = !,\n `module_isic_card`.`confirm_admin` = !\n WHERE\n `module_isic_card`.`id` = !\n ', $this->userid,\n $this->vars[\"person_name\"],\n $this->vars[\"person_addr1\"],\n $this->vars[\"person_addr2\"],\n $this->vars[\"person_addr3\"],\n $this->vars[\"person_addr4\"],\n $this->vars[\"person_email\"],\n $this->vars[\"person_phone\"],\n $this->vars[\"person_position\"],\n $this->vars[\"person_class\"],\n $this->vars[\"person_stru_unit\"],\n $this->vars[\"person_bankaccount\"],\n $this->vars[\"person_bankaccount_name\"],\n $this->vars[\"person_newsletter\"] ? 1 : 0,\n $this->vars[\"confirm_user\"] ? 1: 0,\n $this->user_type == 1 ? ($this->vars[\"confirm_payment_collateral\"] ? 1 : 0) : $row_old[\"confirm_payment_collateral\"],\n $this->user_type == 1 ? ($this->vars[\"confirm_payment_cost\"] ? 1 : 0) : $row_old[\"confirm_payment_cost\"],\n $this->user_type == 1 ? ($this->vars[\"confirm_admin\"] ? 1 : 0) : $row_old[\"confirm_admin\"],\n $card\n );\n if ($r) {\n $success = true;\n $this->isic_common->saveCardChangeLog(2, $card, $row_old, $this->isic_common->getCardRecord($card));\n $message = 'card saved ...';\n } else {\n $success = false;\n $message = 'card modify failed ...';\n }\n\n } else { // adding new card\n $success = false;\n $action = 1; // add\n $t_field_data = $this->getFieldData($this->vars[\"type_id\"]);\n //print_r($t_field_data);\n foreach ($t_field_data[\"detailview\"] as $fkey => $fval) {\n // check for disabled fields, setting these values to empty\n if (in_array($action, $fval[\"disabled\"])) {\n unset($this->vars[$fkey]);\n continue;\n }\n // check for requried fields\n if (in_array($action, $fval[\"required\"])) {\n if (!$this->vars[$fkey]) {\n $error = $error_required_fields = true;\n break;\n }\n }\n if (!$error) {\n $insert_fields[] = $this->db->quote_field_name(\"{$fkey}\");\n $t_value = '';\n switch ($fval['type']) {\n case 1: // textfield\n $t_value = $this->db->quote($this->vars[$fkey] ? $this->vars[$fkey] : '');\n break;\n case 2: // combobox\n $t_value = $this->vars[$fkey] ? $this->vars[$fkey] : 0;\n break;\n case 3: // checkbox\n $t_value = $this->vars[$fkey] ? 1 : 0;\n break;\n case 5: // date\n $t_date = $this->convertDate($this->vars[$fkey]);\n $t_value = $this->db->quote($t_date);\n break;\n default :\n break;\n }\n $insert_values[] = $t_value;\n }\n }\n if (!$error) {\n $r = &$this->db->query('INSERT INTO ' . $this->db->quote_field_name($table) . ' FIELDS (' . implode(',', $insert_fields) . ') VALUES (' . implode(',', $insert_values) . ')');\n echo \"<!-- \" . $this->db->show_query() . \" -->\\n\";\n $card = $this->db->insert_id();\n\n }\n\n if ($r && $card) {\n $success = true;\n $this->isic_common->saveCardChangeLog(1, $card, array(), $this->isic_common->getCardRecord($card));\n $message = 'new card saved ...';\n } else {\n $success = false;\n $message = 'card add failed ...';\n }\n }\n\n echo JsonEncoder::encode(array('success' => $success, 'msg' => $message));\n exit();\n \n }", "private function _isCardSaved() {\n\t $tokenId = (int) $this->getInfoInstance()->getAdditionalInformation('token_id');\n\t return (boolean)($this->getInfoInstance()->getAdditionalInformation('create_token') === 'true') &&\n\t !($tokenId && ($tokenId > 0));\n\t}", "function supchina_card_builder_save( $post_id ) {\n\tif( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) return;\n\t\n\t// if our nonce isn't there, or we can't verify it, bail\n\tif( !isset( $_POST['meta_box_nonce'] ) || !wp_verify_nonce( $_POST['meta_box_nonce'], 'my_meta_box_nonce' ) ) return;\n\t\n\t// now we can actually save the data\n\t$allowed = array( \n\t\t'a' => array( // on allow a tags\n\t\t\t'href' => array() // and those anchords can only have href attribute\n\t\t)\n\t);\n\t\n\t// Probably a good idea to make sure your data is set\n\tif( isset( $_POST['card_type'] ) )\n update_post_meta( $post_id, 'card_type', wp_kses( $_POST['card_type'], $allowed ) );\n\n if( isset( $_POST['card_headline'] ) )\n\t\tupdate_post_meta( $post_id, 'card_headline', wp_kses( $_POST['card_headline'], $allowed ) );\n}", "function save() {\n\t\tif ($this->input->post('contracts_show_due')) {\n\n\t\t\t$this->mdl_mcb_data->save('contracts_show_due', $this->input->post('contracts_show_due'));\n\n\t\t}\n\n\t\telse {\n\n\t\t\t$this->mdl_mcb_data->save('contracts_show_due', \"FALSE\");\n\n\t\t}\n\t}", "function add_credit_card($contact_id,$data)\n {\n $last_4 = substr($data['CardNumber'],-4);\n $cc_id = $this->locateCard($contact_id,$last_4);\n\n if($cc_id == 0) //Doesn't Exist\n {\n //Add Card\n $cc_id = $this->dsAdd('CreditCard',$data);\n return $cc_id;\n }\n elseif($cc_id > 0)\n {\n //Check if card as same expiration date\n $card_data = $this->dsLoad('CreditCard',$cc_id,array('ExpirationMonth','ExpirationYear'));\n if(\n $card_data['ExpirationMonth'] == $data['ExpirationMonth'] &&\n $card_data['ExpirationYear'] == $data['ExpirationMonth']) {\n return $cc_id;\n }\n else\n {\n //Update CC Dates\n return $this->dsUpdate('CreditCard',$cc_id,array('ExpirationYear' => $data['ExpirationYear'],'ExpirationMonth' => $data['ExpirationMonth']));\n }\n\n\n }\n else\n {\n return FALSE;\n }\n\n }", "public function setCreditCardData($data=null) {\n if(!is_array($data)) {\n $p = $this->getPayment();\n $data = array(\n 'CREDITCARDTYPE' => $p['cardType'],\n 'ACCT' => $p['cardNumber'], //'4532497022010364',\n 'EXPDATE' => $p['cardExpirationMonth'] . $p['cardExpirationYear'],\n 'CVV2' => $p['securityId']\n );\n }\n $this->_creditCardData = $data;\n }", "function update_creditcard($form = array(), $userid = 0)\n {\n global $ilance, $ilconfig, $phrase, $ilpage;\n $form['number_encrypted'] = $ilance->crypt->three_layer_encrypt($form['number'], $ilconfig['key1'], $ilconfig['key2'], $ilconfig['key3']);\n $form['authorized'] = 'yes';\n if ($ilconfig['creditcard_authentication'])\n {\n $form['authorized'] = 'no'; \n }\n $ilance->db->query(\"\n UPDATE \" . DB_PREFIX . \"creditcards \n SET creditcard_number = '\" . $ilance->db->escape_string($form['number_encrypted']) . \"',\n creditcard_type = '\" . mb_strtolower($form['type']) . \"',\n date_updated = '\" . DATETIME24H . \"',\n creditcard_expiry = '\" . $form['expmon'] . $form['expyear'] . \"',\n cvv2 = '\" . $ilance->db->escape_string($form['cvv2']) . \"',\n name_on_card = '\" . $ilance->db->escape_string($form['first_name'] . \" \" . $form['last_name']) . \"',\n phone_of_cardowner = '\" . $ilance->db->escape_string($form['phone']) . \"',\n email_of_cardowner = '\" . $ilance->db->escape_string($form['email']) . \"',\n card_billing_address1 = '\" . $ilance->db->escape_string($form['address1']) . \"',\n card_billing_address2 = '\" . $ilance->db->escape_string($form['address2']) . \"',\n card_city = '\" . $ilance->db->escape_string($form['city']) . \"',\n card_state = '\" . $ilance->db->escape_string($form['state']) . \"',\n card_postalzip = '\" . $ilance->db->escape_string($form['postalzip']) . \"',\n card_country = '\" . $ilance->db->escape_string($form['countryid']) . \"',\n authorized = '\" . $ilance->db->escape_string($form['authorized']) . \"'\n WHERE user_id = '\" . intval($userid) . \"'\n AND cc_id = '\" . $ilance->db->escape_string($form['cc_id']) . \"'\n LIMIT 1\n \", 0, null, __FILE__, __LINE__);\n $ilance->email->mail = fetch_user('email', intval($userid));\n $ilance->email->slng = fetch_user_slng(intval($userid));\n $ilance->email->get('member_updated_creditcard');\t\t\n $ilance->email->set(array(\n '{{member}}' => fetch_user('username', intval($userid)),\n ));\n $ilance->email->send();\n $ilance->db->query(\"\n UPDATE \" . DB_PREFIX . \"subscription_user\n SET paymethod = 'account'\n WHERE user_id = '\" . intval($userid) . \"'\n LIMIT 1\n \", 0, null, __FILE__, __LINE__);\n return true;\n }", "public function creditcardsAction() {\n if (!$this->_getSession()->isLoggedIn()) {\n $this->_redirect('customer/account/login');\n return;\n }\n\n if ($this->getRequest()->isPost()) {\n $data = $this->getRequest()->getParams();\n if (isset($data)) {\n $result = $this->_save($data);\n switch ($result->getResponseCode()) {\n case self::RESPONSE_CODE_SUCCESS:\n Mage::getSingleton('core/session')->addSuccess('Credit card has been added.');\n break;\n case self::RESPONSE_CODE_FAILURE:\n Mage::getSingleton('core/session')->addError('Credit card has not been saved. Please try again.');\n break;\n }\n\n $this->_redirect('payments/customer/creditcards');\n }\n }\n\n $this->loadLayout();\n $this->_initLayoutMessages('customer/session');\n $this->renderLayout();\n }", "private function saveConfig(){\n\t\tif(!isset($_POST['services_ipsec_settings_enabled'])){\n\t\t\t$this->data['enable'] = 'false';\n\t\t}\n\t\telseif($_POST['services_ipsec_settings_enabled'] == 'true'){\n\t\t\t$this->data['enable'] = 'true';\n\t\t}\n\t\t\n\t\t$this->config->saveConfig();\n\t\t$this->returnConfig();\n\t}", "public function creditCardPayment()\n {\n }", "public function run()\n {\n $this->checkoutOnepage->getVaultPaymentBlock()->saveCreditCard(\n $this->payment['method'],\n $this->creditCardSave\n );\n }", "function insert_creditcard($form = array(), $userid = 0)\n {\n global $ilance, $ilconfig, $phrase, $ilpage;\n $form['number_encrypted'] = $ilance->crypt->three_layer_encrypt($form['number'], $ilconfig['key1'], $ilconfig['key2'], $ilconfig['key3']);\n $form['authorized'] = 'yes';\n $form['creditcard_status'] = 'active';\n $form['default_card'] = 'yes';\n if ($ilconfig['creditcard_authentication'])\n {\n $form['authorized'] = 'no';\n }\n $ilance->db->query(\"\n INSERT INTO \" . DB_PREFIX . \"creditcards\n (cc_id, date_added, date_updated, user_id, creditcard_number, creditcard_expiry, cvv2, name_on_card, phone_of_cardowner, email_of_cardowner, card_billing_address1, card_billing_address2, card_city, card_state, card_postalzip, card_country, creditcard_status, default_card, creditcard_type, authorized) \n VALUES(\n NULL,\n '\" . DATETIME24H . \"',\n '\" . DATETIME24H . \"',\n '\" . intval($userid) . \"',\n '\" . $ilance->db->escape_string($form['number_encrypted']) . \"',\n '\" . $ilance->db->escape_string($form['expmon'] . $form['expyear']) . \"',\n '\" . intval($form['cvv2']) . \"',\n '\" . $ilance->db->escape_string($form['first_name'] . \" \" . $form['last_name']) . \"',\n '\" . $ilance->db->escape_string($form['phone']) . \"',\n '\" . $ilance->db->escape_string($form['email']) . \"',\n '\" . $ilance->db->escape_string($form['address1']) . \"',\n '\" . $ilance->db->escape_string($form['address2']) . \"',\n '\" . $ilance->db->escape_string($form['city']) . \"',\n '\" . $ilance->db->escape_string($form['state']) . \"',\n '\" . $ilance->db->escape_string($form['postalzip']) . \"',\n '\" . $ilance->db->escape_string($form['countryid']) . \"',\n '\" . $ilance->db->escape_string($form['creditcard_status']) . \"',\n '\" . $ilance->db->escape_string($form['default_card']) . \"',\n '\" . $ilance->db->escape_string($form['type']) . \"',\n '\" . $ilance->db->escape_string($form['authorized']) . \"')\n \", 0, null, __FILE__, __LINE__);\n $cc_id = $ilance->db->insert_id(); \n $ilance->email->mail = fetch_user('email', $userid);\n $ilance->email->slng = fetch_user_slng(intval($userid));\n $ilance->email->get('member_added_new_card');\t\t\n $ilance->email->set(array(\n '{{username}}' => fetch_user('username', intval($userid)),\n ));\n $ilance->email->send();\n $ilance->email->mail = SITE_EMAIL;\n $ilance->email->slng = fetch_site_slng();\n $ilance->email->get('member_added_new_card_admin');\t\t\n $ilance->email->set(array(\n '{{username}}' => fetch_user('username', intval($userid)),\n ));\n $ilance->email->send();\n $ilance->db->query(\"\n UPDATE \" . DB_PREFIX . \"subscription_user\n SET paymethod = 'account'\n WHERE user_id = '\" . intval($userid) . \"'\n \", 0, null, __FILE__, __LINE__);\n return true;\n }", "public function action_addcreditcard() {\n $package = Model::factory('package');\n $btn_card_confirm = arr::get($_REQUEST, 'btn_card_confirm');\n $config_country['taxicountry'] = $this->country_info();\n $this->session = Session::instance();\n $errors = array();\n $userid = $this->session->get('userid');\n $postvalue = Arr::map('trim', $this->request->post());\n\n $getadmin_profile_info = $package->getadmin_profile_info();\n\n\n $post_values = Securityvalid::sanitize_inputs($postvalue);\n $billing_card_info_details = $package->billing_card_info_details();\n if (empty($billing_card_info_details)) {\n $billing_info_id = '';\n } else {\n $billing_info_id = $billing_card_info_details[0]['_id'];\n }\n if (isset($btn_card_confirm) && Validation::factory($_POST)) {\n $validator = $package->upgrade_plan_validate(arr::extract($post_values, array('cardnumber', 'cvv', 'expirydate', 'firstName', 'lastname', 'address', 'postal_code', 'terms', 'country', 'state', 'city')), $userid);\n if ($validator->check()) {\n $cardnumber = $postvalue['cardnumber'];\n $cvv = $postvalue['cvv'];\n $expirydate = explode('/', $postvalue['expirydate']);\n $firstname = $postvalue['firstName'];\n $lastname = $postvalue['lastname'];\n $address = $postvalue['address'];\n $city = $postvalue['city'];\n $country = $postvalue['country'];\n $state = $postvalue['state'];\n $postal_code = $postvalue['postal_code'];\n $package_upgrade_time = PACKAGE_UPGRADE_TIME;\n $cardnumber = preg_replace('/\\s+/', '', $cardnumber);\n \n $this->billing_info['card_number'] = $cardnumber;\n $this->billing_info['cvv'] = $cvv;\n $this->billing_info['expirationMonth'] = $expirydate[0];\n $this->billing_info['expirationYear'] = $expirydate[1];\n $this->billing_info['firstName'] = $firstname;\n $this->billing_info['lastname'] = $lastname;\n $this->billing_info['address'] = $address;\n $this->billing_info['city'] = $city;\n $this->billing_info['country'] = $country;\n $this->billing_info['state'] = $state;\n $this->billing_info['postal_code'] = $postal_code;\n $this->billing_info['createdate'] = $package_upgrade_time; \n $this->billing_info['currency']=CLOUD_CURRENCY_FORMAT; \n $billing_info_reg = $package->billing_registration($this->billing_info, $billing_info_id);\n if ($billing_info_reg) {\n Message::success(__('billing_updated_sucessfully'));\n }\n } else {\n $errors = $validator->errors('errors');\n }\n }\n $view = View::factory(ADMINVIEW . 'package_plan/addcreditcard')\n ->bind('postedvalues', $this->userPost)\n ->bind('errors', $errors)\n ->bind('getadmin_profile_info', $getadmin_profile_info)\n ->bind('subscription_cost_month', $subscription_cost_month)\n ->bind('billing_card_info_details', $billing_card_info_details)\n ->bind('all_country_list', $config_country['taxicountry'])\n ->bind('setup_cost', $setup_cost)\n ->bind('postvalue', $post_values);\n $this->template->title = CLOUD_SITENAME . \" | \" . __('add_credit_card');\n $this->template->page_title = __('add_credit_card');\n $this->template->content = $view;\n }", "public function storeSelf() {\n trace('[METHOD] '.__METHOD__);\n\t\t$dataArray = $this->getDataArray();\n $this->set_uid(tx_ptgsaaccounting_orderCreditBalanceAccessor::getInstance()->storeOrderCreditBalanceData($dataArray));\n \n\n\t}", "abstract protected function isSavedCardsPaymentMethod();", "public function saveCardDetails(Order $order, array $responseData)\n {\n $additionalInformation = $order->getPayment()->getAdditionalInformation();\n if (isset($additionalInformation['saveCard']) && $additionalInformation['saveCard'] != ''\n && $additionalInformation['saveCard'] == 'yes') {\n /** Save Attribute Value in Magento */\n if (isset($responseData['Client']['Id'])) {\n $easyTransacId = $responseData['Client']['Id'];\n $this->clientIdMapper->saveClientIdForCustomerId($easyTransacId, (int)$order->getCustomerId());\n $this->logger->info(\"Customer easytransac client id : \" . $easyTransacId);\n\n /** Save Card Details */\n if (isset($responseData['UserId'])) {\n $this->saveCreditCard->saveCardDetails(\n (int)$order->getCustomerId(),\n $responseData\n );\n $this->logger->info(sprintf(\"Stored card for user : %s\", $responseData['UserId']));\n }\n }\n }\n }", "public function processCreditCard()\n {\n $this->load();\n\n $multiBuyer = new MultiBuyer($this->request, [self::INDEX_CREDIT_CARD]);\n $multiBuyerCustomer = $multiBuyer->createCustomers();\n\n if (!$this->isValidateCreditCardRequest()) {\n Log::create()\n ->error(LogMessages::INVALID_CREDIT_CARD_REQUEST, __METHOD__)\n ->withOrderId($this->session->data['order_id']);\n $this->response->redirect($this->url->link('checkout/failure'));\n }\n\n $card = $this->fillCreditCardData(0);\n $orderData = $this->model_checkout_order->getOrder($this->session->data['order_id']);\n $orderData['saveCreditCard'] = $card['saveThisCard'];\n\n try {\n $response = $this->createCreditCardOrder(\n (double)$card['paymentDetails'][2],\n $card['paymentDetails'][0],\n $orderData,\n $card['cardToken'],\n [$card['cardId']],\n isset($multiBuyerCustomer[0]) ? $multiBuyerCustomer[0] : null\n );\n } catch (Exception $e) {\n Log::create()\n ->error(LogMessages::UNABLE_TO_CREATE_ORDER, __METHOD__)\n ->withOrderId($this->session->data['order_id'])\n ->withException($e);\n\n $this->response->redirect($this->url->link('checkout/failure'));\n }\n\n $orderStatus = $this->getOrder()->translateStatusFromMP($response);\n if (!$orderStatus) {\n Log::create()\n ->error(LogMessages::UNKNOWN_ORDER_STATUS, __METHOD__)\n ->withResponseStatus($response->status)\n ->withOrderId($this->session->data['order_id']);\n\n $this->response->redirect($this->url->link('checkout/failure'));\n }\n\n $orderComment = $this->data['order_statuses'][$response->status];\n\n $newOrder = $this->getOrder();\n $newOrder->updateOrderStatus($orderStatus, $orderComment);\n\n $this->saveMPOrderId($response->id, $this->session->data['order_id']);\n\n $this->saveOrderCreditcardInfo($response->charges[0]);\n\n $this->response->redirect($this->url->link('checkout/success', '', true));\n }", "public function switchAction()\n {\n $value = $this->getRequest()->getParam('value');\n if (is_null($value))\n $value = 1;\n\n try {\n $customer = Mage::helper('mp_gateway')->getCustomer();\n\n $customer->setData('enable_savedcards', $value)->save();\n $this->_getSession()->addSuccess(sprintf('The card functionality has been successfully %s', ($value) ? 'enabled' : 'disabled'));\n } catch (Exception $e) {\n $this->_getSession()->addError('Error in the request, please try again');\n }\n\n return $this->_redirectReferer();\n }", "public function isUseCreditCard()\n {\n return $this->useCreditCard;\n }", "public function storeCreditCardWithNumberCard($token)\n {\n $user = User::find(\\Auth::user()->id);\n\n try {\n if (empty($user->stripe_id)) {\n $user->createAsStripeCustomer($token);\n } else {\n $user->updateCard($token);\n }\n } catch (\\Exception $ex) {\n \\Log::error(\"Can not update credit card. \" . $ex->getMessage());\n throw new UpdateCreditCardException();\n }\n }", "public function settings_save()\n {\n $method = rcube_utils::get_input_value('_method', rcube_utils::INPUT_POST);\n $data = @json_decode(rcube_utils::get_input_value('_data', rcube_utils::INPUT_POST), true);\n\n $rcmail = rcmail::get_instance();\n $storage = $this->get_storage($rcmail->get_user_name());\n $success = false;\n $errors = 0;\n $save_data = array();\n\n if ($driver = $this->get_driver($method)) {\n if ($data === false) {\n if ($this->check_secure_mode()) {\n // remove method from active factors and clear stored settings\n $success = $driver->clear();\n }\n else {\n $errors++;\n }\n }\n else {\n // verify the submitted code before saving\n $verify_code = rcube_utils::get_input_value('_verify_code', rcube_utils::INPUT_POST);\n $timestamp = intval(rcube_utils::get_input_value('_timestamp', rcube_utils::INPUT_POST));\n if (!empty($verify_code)) {\n if (!$driver->verify($verify_code, $timestamp)) {\n $this->api->output->command('plugin.verify_response', array(\n 'id' => $driver->id,\n 'method' => $driver->method,\n 'success' => false,\n 'message' => str_replace('$method', $this->gettext($driver->method), $this->gettext('codeverificationfailed'))\n ));\n $this->api->output->send();\n }\n }\n\n foreach ($data as $prop => $value) {\n if (!$driver->set($prop, $value)) {\n $errors++;\n }\n }\n\n $driver->set('active', true);\n }\n\n // commit changes to the user properties\n if (!$errors) {\n if ($success = $driver->commit()) {\n $save_data = $data !== false ? $this->format_props($driver->props()) : array();\n }\n else {\n $errors++;\n }\n }\n }\n\n if ($success) {\n $this->api->output->show_message($data === false ? $this->gettext('factorremovesuccess') : $this->gettext('factorsavesuccess'), 'confirmation');\n $this->api->output->command('plugin.save_success', array(\n 'method' => $method,\n 'active' => $data !== false,\n 'id' => $driver->id) + $save_data);\n }\n else if ($errors) {\n $this->api->output->show_message($this->gettext('factorsaveerror'), 'error');\n $this->api->output->command('plugin.reset_form', $method);\n }\n\n $this->api->output->send();\n }", "public function save()\n {\n $this->save_meta_value('_sim_service_price', $this->service_price);\n $this->save_meta_value('_sim_service_price_registered', $this->service_price_registered);\n $this->save_meta_value('_sim_service_hide_price', $this->service_hide_price);\n }", "public function save()\n\t{\n\t\tparent::save();\n\t\t\\IPS\\Widget::deleteCaches( 'donations', 'nexus' );\n\t\tstatic::recountCustomerFields();\n\t}", "function insertCreditCard($username, $ccNumber, $ccbNumber, $ccExpiration) {\n global $accountType;\n $month = substr($ccExpiration, 0, 2);\n $year = substr($ccExpiration, 2, 4);\n $expDate = $year . \"-\" . $month . \"-1\";\n\n $flag = false;\n $conn = connectDB();\n $sql = \"insert into creditcardinfo (CCNumber, ExpireDate, CCBNumber, IsDefault, Auto_Manual)\n VALUES ($ccNumber, '$expDate', $ccbNumber, 0, 0)\";\n if (mysqli_query($conn, $sql)) {\n $flag = true;\n }\n\n if ($flag) {\n if (($accountType === 'employerPrime') || ($accountType === 'employerPrime')) {\n if (insertEmployerCC($ccNumber, $username)) return true;\n } else {\n if (insertApplicantCC($ccNumber, $username)) return true;\n }\n }\n return false;\n}", "function save_data($data){\r\r\n\t\t\r\r\n\t\t$activation_data = \"\";\r\r\n\t\t$activation_data = implode('|',$data['Coupon']['activation_code']);\r\r\n\t\t$data['Coupon']['activation_code'] = $activation_data;\r\r\n\t\tif($this->save($data)){\r\r\n\t\t\treturn true;\r\r\n\t\t}else{\r\r\n\t\t\treturn false;\r\r\n\t\t}\r\r\n\t}", "function InfAddCreditCard($inf_contact_id, $CardNumber, $ExpirationMonth, $ExpirationYear, $CVV2, $BillName, $BillAddress1, $BillCity, $BillState, $BillZip, $BillCountry) {\n\n\t$credit_card = new Infusionsoft_CreditCard();\n\t$credit_card->ContactId = $inf_contact_id;\n\t$credit_card->CardNumber = $CardNumber;\n\t$credit_card->CVV2 = $CVV2;\n\t$credit_card->CardType = WriteCardType($CardNumber);\n#\t$credit_card->Status = 3; //0: Unknown, 1: Invalid, 2: Deleted, 3: Valid/Good, 4: Inactive\n\t$credit_card->ExpirationMonth = $ExpirationMonth;\n\t$credit_card->ExpirationYear = $ExpirationYear;\n\t$credit_card->BillName = $BillName;\n\t$credit_card->BillAddress1 = $BillAddress1;\n\t$credit_card->BillCity = $BillCity;\n\t$credit_card->BillState = $BillState;\n\t$credit_card->BillZip = $BillZip;\n\t$credit_card->BillCountry = $BillCountry;\n\t\n\t# Return card id\n\treturn $credit_card->save();\n}", "function SendDataToBankForCharging() {\n\t\n\t$c = $_POST[\"chckbx_succeed_with_payment\"];\n\t$success = $c == \"on\";\n\treturn $success;\t\n\t\n}", "function insert_CreditCard($details)\n{\n extract($details);\n\n //if(!($conn=db_connect()))\n // return false;\n include(\"db_new.php\");\n\n $mdate = date('Y-m-d H:i:s');\n $success = 0;\n\n $bankname = addslashes($bankname);\n $cardnumber = addslashes($cardnumber);\n $expirydate = addslashes($expirydate);\n $payment_start = addslashes($payment_start);\n $payment_end = addslashes($payment_end);\n $points = addslashes($points);\n // $id = addslashes($id);\n\n if (DEBUG == 1) echo 'action:'.$act.'<br>';\n\n if ($act == \"EDIT\") {\n $sql = \"update visa set visa_cardno='$cardnumber', bank='$bankname',\n expirydate='$expirydate',\n \t\t payment_start=$payment_start,\n \t\t payment_end=$payment_end,\n \t\t points = $points,\n \t\t lastmodifieddate='$mdate'\n \t\t where visa_id = $id\";\n\n\tif (DEBUG==1) echo $sql.'<br>';\n \n\t\n\tif ($con->query($sql) === TRUE) {\n\t\t$msg = \"Credit Card '$cardnumber' Record successfully Updated.\";\n\t\t$success = 1;\n\t} else {\n\t\t$con->close();\n\t\treturn $id.'@SQL error:UPDATE@0';\n\t}\n \n }\n \n if ($act == \"SAVE\") {\n\n // Check whether name exists\n $sql = \"select * from visa where visa_cardno = '$cardnumber'\";\n //echo $query.'<br>';\n $result = mysql_query($query, $conn) or die('SELECT error: '.mysql_errno().', '.mysql_error());\n $msg = \"\";\n\t\n\t$result = $con->query($sql);\n\n\tif ($result->num_rows > 0) {\n\t\t// output data of each row\n\t\t$msg = \"Credit Card #'\".$cardnumber.\"' exists.\";\n \t $id = -1;\n\t\t// Free result set\n\t\tmysqli_free_result($result);\n\t\t$con->close();\n \t return $id.'@'.$msg.'@0';\t\t\n\t} \n \n $sql = \"insert into visa(visa_cardno, bank, expirydate, payment_start, payment_end, points, userid, lastmodifieddate)\n\t\t\t values\n\t\t\t ('$cardnumber', '$bankname', '$expirydate', $payment_start, $payment_end, $points, \".$_SESSION['userid'].\", '$mdate')\";\n\n if (DEBUG==1) echo $sql.'<br>';\n\tif ($con->query($sql) === TRUE) {\n\t\t$msg = \"Credit Card '$cardnumber' successfully Inserted.\";\n\t\t$success = 1;\n\t} \telse {\n\t\t$con->close();\n\t\treturn $id.'@SQL error:INSERT@0';\n\t}\n\t\n\t/*$result = mysql_query($query, $conn) or die('counter INSERT error: '.mysql_errno().', '.mysql_error());\n\tif (!$result) return $id.'@SQL error:INSERT@0';\n $id = mysql_insert_id();\n $msg = \"Credit Card '$cardnumber' successfully Inserted.\";\n $success = 1;*/\n\n }\n\n \n $con->close();\n return $id.'@'.$msg.'@'.$success;\n}", "public function setCard(?bool $card): void\n {\n $this->card = $card;\n }", "function commerce_braintree_creditcard_edit_form_submit($form, &$form_state) {\n $sub = commerce_braintree_subscription_local_get(array('sid' => $form_state['values']['sid']), FALSE);\n $token = $sub['token'];\n $commerce_customer_address = $form_state['values']['commerce_customer_address']['und'][0];\n //billing address\n $billing_address['firstName'] = isset($commerce_customer_address['first_name']) ? $commerce_customer_address['first_name'] : '';\n $billing_address['lastName'] = isset($commerce_customer_address['last_name']) ? $commerce_customer_address['last_name'] : '';\n $billing_address['company'] = isset($commerce_customer_address['organisation_name']) ? $commerce_customer_address['organisation_name'] : '';\n $billing_address['streetAddress'] = isset($commerce_customer_address['thoroughfare']) ? $commerce_customer_address['thoroughfare'] : '';\n $billing_address['extendedAddress'] = isset($commerce_customer_address['premise']) ? $commerce_customer_address['premise'] : '';\n $billing_address['locality'] = isset($commerce_customer_address['locality']) ? $commerce_customer_address['locality'] : '';\n $billing_address['region'] = isset($commerce_customer_address['administrative_area']) ? $commerce_customer_address['administrative_area'] : '';\n $billing_address['postalCode'] = isset($commerce_customer_address['postal_code']) ? $commerce_customer_address['postal_code'] : '';\n $billing_address['countryCodeAlpha2'] = isset($commerce_customer_address['country']) ? $commerce_customer_address['country'] : '';\n \n //creditcard\n $creditcard['cardholderName'] = $form_state['values']['ca_cardholder_name'];\n $creditcard['number'] = $form_state['values']['credit_card']['number'];\n $creditcard['cvv'] = $form_state['values']['credit_card']['code'];\n $creditcard['expirationDate'] = $form_state['values']['credit_card']['exp_month'];\n $creditcard['expirationDate'] .= '/' . $form_state['values']['credit_card']['exp_year'];\n $creditcard['billingAddress'] = $billing_address;\n $creditcard['options'] = array('verifyCard' => TRUE);\n $creditcard['billingAddress']['options'] = array('updateExisting' => TRUE);\n \n $card = commerce_braintree_credit_card_update($creditcard, $token);\n if ($card->success) {\n drupal_set_message(t('Updated Successfull.'));\n return;\n }\n drupal_set_message(t('There are error. @errors', array('@errors' => commerce_braintree_get_errors($card))), 'error');\n}", "public function getStoredCardData() {\n\t $tokenId = (int) $this->getInfoInstance()->getAdditionalInformation('token_id');\n\t \n\t if($tokenId && ($tokenId > 0)){\n\t return Mage::getModel('hostedpayments/storedcard')->load($tokenId);\n\t }\n\t \n\t return false;\n\t}", "function sperahid() {\n\t\t// we don't need to set StoreCard to true if the card hasn't expired and also\n\t\t// we need to set the HPP to use the stored card instead of asking for a new one and\n\t\t// we probably just go ahead and charge the stored card, and only use HPP if the stored card\n\t\t// fails and we mark the stored card inactive or delete it on failure and just go with the new one on the transaction\n\t\t// results\n\n\t\t$StoreCard = (isset($_REQUEST['StoreCard']) && $_REQUEST['StoreCard'] == 'true') ? true : false;\n\n\t\t$amountDue = $_REQUEST['amountDue'];\n\n\t\t$this->load->library('protectpayapi');\n\n\t\t$applicationEnv = ENVIRONMENT;\n\n\n\t\t$parsedAccountUrlPrefix = $_SESSION['accountUrlPrefix'];\n\n\t\t$databaseName = $parsedAccountUrlPrefix . '_' . ENVIRONMENT;\n\n\t\t/** @var CI_DB_mysql_driver $primaryDatabase */\n\t\t$primaryDatabase = $this->load->database('primary', TRUE);\n\n\t\t$params = [\n\t\t\t'primaryDatabase' => $primaryDatabase,\n\t\t];\n\t\t$this->load->library('account', $params);\n\n\t\t$params = [\n\t\t\t'databaseName' => $databaseName,\n\t\t\t'primaryDatabase' => $primaryDatabase];\n\n\t\t$this->load->library('propay_api', $params);\n\n\t\t$data = [\n\t\t\t\"Amount\" => (int) $amountDue, //convert to cents\n\t\t\t\"AuthOnly\" => false,\n\t\t\t\"AvsRequirementType\" => 3,\n\t\t\t\"CardHolderNameRequirementType\" => 2,\n\t\t\t\"CssUrl\" => \"https://spera-\" . $applicationEnv . \".s3-us-west-2.amazonaws.com/pmi.css\",\n\t\t\t\"CurrencyCode\" => \"USD\",\n\t\t\t\"InvoiceNumber\" => $_SESSION['accountUrlPrefix'],\n\t\t\t\"MerchantProfileId\" => PROTECT_PAY_MERCHANT_PROFILE_ID,\n\t\t\t\"OnlyStoreCardOnSuccessfulProcess\" => $StoreCard,\n\t\t\t\"PayerAccountId\" => PROTECT_PAY_PAYER_ACCOUNT_ID,\n\t\t\t\"ProcessCard\" => true,\n\t\t\t\"Protected\" => false,\n\t\t\t\"SecurityCodeRequirementType\" => 1,\n\t\t\t\"StoreCard\" => $StoreCard,\n\t\t];\n\n\t\tif ($_REQUEST['paymentType'] == 'card') {\n\t\t\t$data[\"PaymentTypeId\"] = \"0\";\n\t\t} else if ($_REQUEST['paymentType'] == 'ach') {\n\t\t\t$data[\"PaymentTypeId\"] = \"1\";\n\t\t}\n\n\t\t$result = $this->protectpayapi\n\t\t\t->setApiBaseUrl(PROTECT_PAY_API_BASE_URL)\n\t\t\t->setBillerId(PROTECT_PAY_BILLER_ID)\n\t\t\t->setAuthToken(PROTECT_PAY_AUTH_TOKEN)\n\t\t\t->setHostedTransactionData($data)\n\t\t\t->createHostedTransaction()\n\t\t\t->getCreatedHostedTransactionInfo();\n\t\t$responseObject = json_decode($result);\n\n\t\tif ( $responseObject ) {\n\t\t\t$_SESSION['paymentType'] = $_REQUEST['paymentType'];\n\t\t\t$_SESSION['HostedTransactionIdentifier'] = $responseObject->HostedTransactionIdentifier;\n\t\t\t$_SESSION['merchantProfileId'] = PROTECT_PAY_MERCHANT_PROFILE_ID;\n\t\t}\n\t\theader('Content-Type: application/json');\n\t\techo json_encode([\n\t\t\t'success' => true,\n\t\t\t'message' => $amountDue, //'Hosted Transaction Identifier Created Successfully.',\n\t\t\t'HostedTransactionIdentifier' => $_SESSION['HostedTransactionIdentifier']\n\t\t]);\n\n\t\tdie();\n\t}", "function edds_credit_card_form( $echo = true ) {\n\n\tglobal $edd_options;\n\n\tif ( edd_stripe()->rate_limiting->has_hit_card_error_limit() ) {\n\t\tedd_set_error( 'edd_stripe_error_limit', __( 'We are unable to process your payment at this time, please try again later or contact support.', 'edds' ) );\n\t\treturn;\n\t}\n\n\tob_start(); ?>\n\n\t<?php if ( ! wp_script_is ( 'edd-stripe-js' ) ) : ?>\n\t\t<?php edd_stripe_js( true ); ?>\n\t<?php endif; ?>\n\n\t<?php do_action( 'edd_before_cc_fields' ); ?>\n\n\t<fieldset id=\"edd_cc_fields\" class=\"edd-do-validate\">\n\t\t<legend><?php _e( 'Credit Card Info', 'edds' ); ?></legend>\n\t\t<?php if( is_ssl() ) : ?>\n\t\t\t<div id=\"edd_secure_site_wrapper\">\n\t\t\t\t<span class=\"padlock\">\n\t\t\t\t\t<svg class=\"edd-icon edd-icon-lock\" xmlns=\"http://www.w3.org/2000/svg\" width=\"18\" height=\"28\" viewBox=\"0 0 18 28\" aria-hidden=\"true\">\n\t\t\t\t\t\t<path d=\"M5 12h8V9c0-2.203-1.797-4-4-4S5 6.797 5 9v3zm13 1.5v9c0 .828-.672 1.5-1.5 1.5h-15C.672 24 0 23.328 0 22.5v-9c0-.828.672-1.5 1.5-1.5H2V9c0-3.844 3.156-7 7-7s7 3.156 7 7v3h.5c.828 0 1.5.672 1.5 1.5z\"/>\n\t\t\t\t\t</svg>\n\t\t\t\t</span>\n\t\t\t\t<span><?php _e( 'This is a secure SSL encrypted payment.', 'edds' ); ?></span>\n\t\t\t</div>\n\t\t<?php endif; ?>\n\n\t\t<?php\n\t\t$existing_cards = edd_stripe_get_existing_cards( get_current_user_id() );\n\t\t?>\n\t\t<?php if ( ! empty( $existing_cards ) ) { edd_stripe_existing_card_field_radio( get_current_user_id() ); } ?>\n\n\t\t<div class=\"edd-stripe-new-card\" <?php if ( ! empty( $existing_cards ) ) { echo 'style=\"display: none;\"'; } ?>>\n\t\t\t<?php do_action( 'edd_stripe_new_card_form' ); ?>\n\t\t\t<?php do_action( 'edd_after_cc_expiration' ); ?>\n\t\t</div>\n\n\t</fieldset>\n\t<?php\n\n\tdo_action( 'edd_after_cc_fields' );\n\n\t$form = ob_get_clean();\n\n\tif ( false !== $echo ) {\n\t\techo $form;\n\t}\n\n\treturn $form;\n}", "public function creditCardSale($extinfo,$mobileid,$userid,$creditcard,$amount,$name_on_card,$expire_month,$expire_year,$cvv2,$zip,$address,$state,$type,$processor) {\n $processor_transaction_id = App_Transaction_Transaction::GetProcessorTransactionId($mobileid);\n $extinfo[\"processor_transaction_id\"] = $processor_transaction_id;\n\n //Use WigiSafe client to take out that much money\n $wsc = new App_WigiSafeClient();\n $res = $wsc->creditCardSale($processor_transaction_id,$amount,$name_on_card,$expire_month,$expire_year,$cvv2,$zip,$address,$state,$creditcard,$zip,$address,$state,$type,$processor);\n if (!$res) {\n throw new App_Exception_WsException(\"Can not fund from this card\");\n return false;\n }\n\n $c = new App_Cellphone($mobileid);\n\n\n $balance = $c->getBalance();\n $temp_balance = $c->getTempBalance();\n\n //if (Zend_Registry::get('pp.env') === \"live\") {\n $c->addToBalance($amount);\n $balance = $c->getBalance() + $amount;\n $temp_balance = $c->getTempBalance();\n //}\n\n $u = new App_User($userid);\n\n return App_Transaction_Transaction::log(App_Transaction_Type::CREDIT_SALE_PENDING,'Info',$amount,$balance,$temp_balance,$mobileid,'0',App_Transaction_Type::getConstName(App_Transaction_Type::CREDIT_SALE_PENDING),$c->getCellphone(),\"\",$userid,\"\",$c->getAlias() . \":\" . $u->getEmail(),\"\",\"\",$extinfo);\n }", "public function storecredit() {\n $this->autoLayout = false;\n $this->autoRender = false;\n $status = $_POST['status'];\n if (isset($_POST['cod']) && !empty($_POST['cod']))\n $cod = $_POST['cod'];\n else\n $cod = '';\n\n $this->loadModel('User');\n $this->loadModel('Orders');\n\n global $loguser;\n global $setngs;\n $userid = $loguser[0]['User']['id'];\n\n if (isset($status) && !empty($status)) {\n $userDetails = $this->User->findById($userid);\n $shareData = json_decode($userDetails['User']['share_status'], true);\n $creditPoints = $userDetails['User']['credit_points'];\n $shareNewData = array();\n $orderDetails = $this->Orders->findByorderid($status);\n if (!empty($orderDetails))\n $deiveryType = $orderDetails['Orders']['deliverytype'];\n else\n $deiveryType = '';\n foreach ($shareData as $shareKey => $shareVal) {\n\n if (array_key_exists($status, $shareVal)) {\n\n $shareVal[$status] = '1';\n if ($cod == '') {\n\n if ($shareVal['amount'] != '0') {\n $this->request->data['User']['id'] = $userid;\n $this->request->data['User']['credit_points'] = $creditPoints + $shareVal['amount'];\n $this->User->save($this->request->data['User']);\n } else {\n $shareNewData[] = $shareVal;\n }\n } else {\n\n $shareNewData[] = $shareVal;\n }\n } else {\n\n\n $shareNewData[] = $shareVal;\n }\n } \n $this->request->data['User']['id'] = $userid;\n $this->request->data['User']['share_status'] = json_encode($shareNewData);\n $this->User->save($this->request->data['User']);\n }\n }", "public function editcardAction()\n {\n $isValidToken = false;\n $token = $this->getRequest()->getParam('t');\n $customer = $this->_getCustomer();\n $api = $this->_getApi();\n $paymentMethods = $api->getPaymentMethods($customer->getId(), true);\n \n foreach($paymentMethods as $key => $pm) {\n if($pm->getData('paymentMethodToken') == $token) {\n $isValidToken = true;\n }\n }\n \n if($isValidToken) {\n \n } else {\n Mage::getSingleton('core/session')->addError('Credit card token is not valid. Please try again.');\n $this->_redirect('payments/customer/creditcards');\n }\n \n $this->loadLayout();\n $this->_initLayoutMessages('customer/session');\n $this->renderLayout();\n }", "public function enable()\n {\n try {\n $sql = \"SELECT value FROM s_core_config_values WHERE element_id = '\" .\n $this->getElementId('BACKEND_CH_CC_ACTIVE').\"'\";\n Shopware()->Db()->query($sql);\n $query = Shopware()->Db()->query($sql);\n $data = $query->fetchAll();\n if (!isset($data[0]['value'])) {\n $sql = \"UPDATE s_core_paymentmeans SET active = '1' WHERE name = 'vrpay_cc'\";\n Shopware()->Db()->query($sql);\n }\n\n $sql = \"SELECT value FROM s_core_config_values WHERE element_id = '\" .\n $this->getElementId('BACKEND_CH_CCSAVED_ACTIVE').\"'\";\n Shopware()->Db()->query($sql);\n $query = Shopware()->Db()->query($sql);\n $data = $query->fetchAll();\n if (!isset($data[0]['value'])) {\n $sql = \"UPDATE s_core_paymentmeans SET active = '1' WHERE name = 'vrpay_ccsaved'\";\n Shopware()->Db()->query($sql);\n }\n\n $sql = \"SELECT value FROM s_core_config_values WHERE element_id = '\" .\n $this->getElementId('BACKEND_CH_DD_ACTIVE').\"'\";\n Shopware()->Db()->query($sql);\n $query = Shopware()->Db()->query($sql);\n $data = $query->fetchAll();\n if (!isset($data[0]['value'])) {\n $sql = \"UPDATE s_core_paymentmeans SET active = '1' WHERE name = 'vrpay_dd'\";\n Shopware()->Db()->query($sql);\n }\n\n $sql = \"SELECT value FROM s_core_config_values WHERE element_id = '\" .\n $this->getElementId('BACKEND_CH_DDSAVED_ACTIVE').\"'\";\n Shopware()->Db()->query($sql);\n $query = Shopware()->Db()->query($sql);\n $data = $query->fetchAll();\n if (!isset($data[0]['value'])) {\n $sql = \"UPDATE s_core_paymentmeans SET active = '1' WHERE name = 'vrpay_ddsaved'\";\n Shopware()->Db()->query($sql);\n }\n\n $sql = \"SELECT value FROM s_core_config_values WHERE element_id = '\" .\n $this->getElementId('BACKEND_CH_GIROPAY_ACTIVE').\"'\";\n Shopware()->Db()->query($sql);\n $query = Shopware()->Db()->query($sql);\n $data = $query->fetchAll();\n if (!isset($data[0]['value'])) {\n $sql = \"UPDATE s_core_paymentmeans SET active = '1' WHERE name = 'vrpay_giropay'\";\n Shopware()->Db()->query($sql);\n }\n\n $sql = \"SELECT value FROM s_core_config_values WHERE element_id = '\" .\n $this->getElementId('BACKEND_CH_KLARNAPAYLATER_ACTIVE').\"'\";\n Shopware()->Db()->query($sql);\n $query = Shopware()->Db()->query($sql);\n $data = $query->fetchAll();\n if (!isset($data[0]['value'])) {\n $sql = \"UPDATE s_core_paymentmeans SET active = '1' WHERE name = 'vrpay_klarnapaylater'\";\n Shopware()->Db()->query($sql);\n }\n\n $sql = \"SELECT value FROM s_core_config_values WHERE element_id = '\" .\n $this->getElementId('BACKEND_CH_KLARNASLICEIT_ACTIVE').\"'\";\n Shopware()->Db()->query($sql);\n $query = Shopware()->Db()->query($sql);\n $data = $query->fetchAll();\n if (!isset($data[0]['value'])) {\n $sql = \"UPDATE s_core_paymentmeans SET active = '1' WHERE name = 'vrpay_klarnasliceit'\";\n Shopware()->Db()->query($sql);\n }\n\n $sql = \"SELECT value FROM s_core_config_values WHERE element_id = '\" .\n $this->getElementId('BACKEND_CH_PAYPAL_ACTIVE').\"'\";\n Shopware()->Db()->query($sql);\n $query = Shopware()->Db()->query($sql);\n $data = $query->fetchAll();\n if (!isset($data[0]['value'])) {\n $sql = \"UPDATE s_core_paymentmeans SET active = '1' WHERE name = 'vrpay_paypal'\";\n Shopware()->Db()->query($sql);\n }\n\n $sql = \"SELECT value FROM s_core_config_values WHERE element_id = '\" .\n $this->getElementId('BACKEND_CH_PAYPALSAVED_ACTIVE').\"'\";\n Shopware()->Db()->query($sql);\n $query = Shopware()->Db()->query($sql);\n $data = $query->fetchAll();\n if (!isset($data[0]['value'])) {\n $sql = \"UPDATE s_core_paymentmeans SET active = '1' WHERE name = 'vrpay_paypalsaved'\";\n Shopware()->Db()->query($sql);\n }\n\n $sql = \"SELECT value FROM s_core_config_values WHERE element_id = '\" .\n $this->getElementId('BACKEND_CH_PAYDIREKT_ACTIVE').\"'\";\n Shopware()->Db()->query($sql);\n $query = Shopware()->Db()->query($sql);\n $data = $query->fetchAll();\n if (!isset($data[0]['value'])) {\n $sql = \"UPDATE s_core_paymentmeans SET active = '1' WHERE name = 'vrpay_paydirekt'\";\n Shopware()->Db()->query($sql);\n }\n\n $sql = \"SELECT value FROM s_core_config_values WHERE element_id = '\" .\n $this->getElementId('BACKEND_CH_KLARNAOBT_ACTIVE').\"'\";\n Shopware()->Db()->query($sql);\n $query = Shopware()->Db()->query($sql);\n $data = $query->fetchAll();\n if (!isset($data[0]['value'])) {\n $sql = \"UPDATE s_core_paymentmeans SET active = '1' WHERE name = 'vrpay_klarnaobt'\";\n Shopware()->Db()->query($sql);\n }\n\n $sql = \"SELECT value FROM s_core_config_values WHERE element_id = '\" .\n $this->getElementId('BACKEND_CH_EASYCREDIT_ACTIVE').\"'\";\n Shopware()->Db()->query($sql);\n $query = Shopware()->Db()->query($sql);\n $data = $query->fetchAll();\n if (!isset($data[0]['value'])) {\n $sql = \"UPDATE s_core_paymentmeans SET active = '1' WHERE name = 'vrpay_easycredit'\";\n Shopware()->Db()->query($sql);\n }\n return $result['success'] = true;\n } catch (Exception $e) {\n return $result['success'] = false;\n }\n }", "public function storeCreditCard($obj) {\n if($obj){\n $cc_id = CreditCard::create(array(\n 'type' => $obj-> type,\n 'number' => $obj-> number,\n 'name' => $obj-> name,\n 'expirationDate' => $obj-> expirationDate\n ))->id;\n return $cc_id;\n }\n\n }", "private function creditCardPayment($data)\n {\n $creditCard = $this->createSelling(new CreditCard, $data);\n\n // Set billing information for credit card\n $creditCard->setBilling()->setAddress()->withParameters(\n 'Av. Paulista',\n '1578',\n 'Bela Vista',\n '01310-200',\n 'São Paulo',\n 'SP',\n 'BRA',\n 'Museu'\n );\n\n $creditCard->setToken($data['cardToken']);\n\n // Set the installment quantity and value (could be obtained using the Installments\n // service, that have an example here in \\public\\getInstallments.php)\n $availableInstallments = $this->getInstallments($data['cardBrand']);\n\n $choosenInstallment = Arr::where($availableInstallments, function ($installment) use ($data) {\n return $installment->getQuantity() == $data['installments'];\n });\n $choosenInstallment = Arr::first($choosenInstallment);\n\n $creditCard->setInstallment()->withParameters(\n $choosenInstallment->getQuantity(),\n $choosenInstallment->getAmount(),\n $this->noInterestInstallments\n );\n\n // Set credit card holder information\n $creditCard->setHolder()->setBirthdate('01/01/2000');\n $creditCard->setHolder()->setName($data['cardName']); // Equals in Credit Card\n $creditCard->setHolder()->setPhone()->withParameters(\n 11,\n 999999999\n );\n $creditCard->setHolder()->setDocument()->withParameters(\n 'CPF',\n '10173649076'\n );\n\n try {\n // Get the crendentials and register the boleto payment\n $result = $creditCard->register(\n Configure::getAccountCredentials()\n );\n // code\n // grossAmount\n // netAmount\n // $pagamento = Pagamentos::create();\n // $pagamento->codigo_transacao = $result->getCode();\n // $pagamento->valor = $result->getGrossAmount();\n // $pagamento->valor_pagseguro = $result->getNetAmount();\n dd($result);\n } catch (Exception $e) {\n dd($e, 'Credit Card');\n }\n }", "public function saveAccreditationAction()\n {\n $site_id = $this->_getParam(\"site_id\");\n $site = \\Fisdap\\EntityUtils::getEntity(\"SiteLegacy\", $site_id);\n $form_data = $this->_getParam(\"form_data\");\n \n $form = new Account_Form_Accreditation($site);\n \n $process_result = $form->process($form_data);\n \n if ($process_result['success'] === true) {\n $success = \"true\";\n $html_res = \"<div class='success'>Your accreditation info has been saved.</div>\";\n } else {\n $errors = $this->formatFormErrors($process_result);\n $success = \"false\";\n $html_res = $errors['html'];\n }\n \n $this->_helper->json(array(\"success\" => $success, \"result\" => $html_res, \"form_elements_with_errors\" => $errors['elements']));\n }", "function saveauthorized($detail) {\r\n $published = $detail['published']['0'];\r\n $authorizedmode = $detail['authorizedmode']['0'];\r\n $email = trim($detail['email']);\r\n $login_id = trim($detail['login_id']);\r\n $transaction_key = trim($detail['transaction_key']);\r\n\r\n $db = JFactory::getDBO();\r\n $query = \" UPDATE `#__em_authorized_settings` SET `email` = '$email' ,`api` = '$login_id' ,`transaction_key` = '$transaction_key' , `mode` = '$authorizedmode'\r\n WHERE `id` = 1\";\r\n $db->setQuery($query);\r\n $db->query();\r\n $query = \" UPDATE `#__em_paymentmethod` SET `status` = '$published'\r\n WHERE `id` = 3\";\r\n $db->setQuery($query);\r\n $db->query();\r\n }", "function hid() {\n // we don't need to set StoreCard to true if the card hasn't expired and also\n // we need to set the HPP to use the stored card instead of asking for a new one and\n // we probably just go ahead and charge the stored card, and only use HPP if the stored card\n // fails and we mark the stored card inactive or delete it on failure and just go with the new one on the transaction\n // results\n\n $StoreCard = (isset($_REQUEST['StoreCard']) && $_REQUEST['StoreCard'] == 'true') ? true : false;\n\n $invoiceId = $_REQUEST['id'];\n\n $this->load->library('protectpayapi');\n\n $invoice = Invoice::find($invoiceId);\n\n $applicationEnv = ENVIRONMENT;\n\n\n $parsedAccountUrlPrefix = $_SESSION['accountUrlPrefix'];\n\n $databaseName = $parsedAccountUrlPrefix . '_' . ENVIRONMENT;\n\n /** @var CI_DB_mysql_driver $primaryDatabase */\n $primaryDatabase = $this->load->database('primary', TRUE);\n\n $params = [\n 'primaryDatabase' => $primaryDatabase,\n ];\n $this->load->library('account', $params);\n\n $params = [\n 'databaseName' => $databaseName,\n 'primaryDatabase' => $primaryDatabase];\n\n $this->load->library('propay_api', $params);\n\n $invoiceUser = InvoiceHasUser::find('all',array('conditions' => array('invoice_id=?',$invoiceId)));\n if (count($invoiceUser) > 0) {\n $user = User::find($invoiceUser[0]->user_id);\n $signedUp = $this->propay_api->isSignedUp($parsedAccountUrlPrefix, $user->username);\n\t $merchantProfileId = ($this->account->isInvoiceCryptoPayment($invoiceId, $parsedAccountUrlPrefix, $user->username) != false) ? PROTECT_PAY_MERCHANT_PROFILE_ID : $signedUp->ProfileId;\n } else {\n $signedUp = $this->propay_api->isSignedUp($parsedAccountUrlPrefix, $parsedAccountUrlPrefix);\n\t $merchantProfileId = ($this->account->isInvoiceCryptoPayment($invoiceId, $parsedAccountUrlPrefix) != false) ? PROTECT_PAY_MERCHANT_PROFILE_ID : $signedUp->ProfileId;\n }\n\n $data = [\n \"Amount\" => (int) ($invoice->outstanding * 100), //convert to cents\n \"AuthOnly\" => false,\n \"AvsRequirementType\" => 3,\n \"CardHolderNameRequirementType\" => 2,\n \"CssUrl\" => \"https://spera-\" . $applicationEnv . \".s3-us-west-2.amazonaws.com/pmi.css\",\n \"CurrencyCode\" => \"USD\",\n \"InvoiceNumber\" => $invoiceId,\n \"MerchantProfileId\" => $merchantProfileId,\n \"OnlyStoreCardOnSuccessfulProcess\" => $StoreCard,\n \"PayerAccountId\" => PROTECT_PAY_PAYER_ACCOUNT_ID,\n \"ProcessCard\" => true,\n \"Protected\" => false,\n \"SecurityCodeRequirementType\" => 1,\n \"StoreCard\" => $StoreCard,\n ];\n\n if ($_REQUEST['paymentType'] == 'card') {\n $data[\"PaymentTypeId\"] = \"0\";\n } else if ($_REQUEST['paymentType'] == 'ach') {\n $data[\"PaymentTypeId\"] = \"1\";\n }\n\n $result = $this->protectpayapi\n ->setApiBaseUrl(PROTECT_PAY_API_BASE_URL)\n ->setBillerId(PROTECT_PAY_BILLER_ID)\n ->setAuthToken(PROTECT_PAY_AUTH_TOKEN)\n ->setHostedTransactionData($data)\n ->createHostedTransaction()\n ->getCreatedHostedTransactionInfo();\n $responseObject = json_decode($result);\n\n if ( $responseObject ) {\n $_SESSION['paymentType'] = $_REQUEST['paymentType'];\n $_SESSION['HostedTransactionIdentifier'] = $responseObject->HostedTransactionIdentifier;\n\t $_SESSION['merchantProfileId'] = $merchantProfileId;\n }\n header('Content-Type: application/json');\n echo json_encode([\n 'response'=>$responseObject,\n 'success' => true,\n 'message' => 'Hosted Transaction Identifier Created Successfully.',\n 'HostedTransactionIdentifier' => $_SESSION['HostedTransactionIdentifier']\n ]);\n\n die();\n }", "public function saveDhlAccount($observer)\n {\n $data = Mage::app()->getRequest()->getPost();\n if (array_key_exists('billing', $data) &&\n array_key_exists('preferred_date', $data['billing']) &&\n array_key_exists('dhlaccount', $data['billing']) &&\n 0 < strlen(trim($data['billing']['dhlaccount']))\n ) {\n Mage::getSingleton('checkout/session')->getQuote()->getBillingAddress()\n ->setData('dhlaccount', $data['billing']['dhlaccount'])\n ->save();\n\n Mage::getSingleton('checkout/session')->getQuote()->getShippingAddress()\n ->setData('dhlaccount', Mage::getSingleton('checkout/session')->getQuote()->getBillingAddress()->getDhlaccount())\n ->save();\n }\n }", "private function save_config()\n\t{\n\t\tif (($this->request->server['REQUEST_METHOD'] == 'POST') && $this->validate())\n\t\t{\n\t\t\t$this->model_setting_setting->editSetting('payment_compropago', $this->request->post);\n\t\t\t$this->model_setting_setting->editSetting('payment_compropago_spei', $this->request->post);\n\t\t\t$this->session->data['success'] = $this->language->get('text_success');\n\n\t\t\t$this->register_webhook(\n\t\t\t\t$this->request->post['payment_compropago_publickey'],\n\t\t\t\t$this->request->post['payment_compropago_privatekey'],\n\t\t\t\t$this->request->post['payment_compropago_mode'] === '1'\n\t\t\t);\n\n\t\t\t$linkParams = 'user_token=' . $this->session->data['user_token'] . '&type=payment';\n\t\t\t$this->response->redirect($this->url->link('marketplace/extension', $linkParams, true));\n\t\t}\n\t}", "public function save()\n\t{\n\t\tvalidateToken('admin-ssc');\n\n\t\t$this->adapter->save();\n\t}", "public function saveBillingAction()\n {\n if (!$this->_isActive()) {\n parent::saveBillingAction();\n return;\n }\n\n if ($this->_expireAjax()) {\n return;\n }\n\n if ($this->getRequest()->isPost()) {\n $postData = $this->getRequest()->getPost('billing', array());\n if ($this->_getHelper()\n ->getCompatibilityMode('code') === EcomDev_CheckItOut_Helper_Data::COMPATIBILITY_V14) {\n $data = $this->_filterPostData($postData);\n } else {\n $data = $postData;\n }\n\n $customerAddressId = $this->getRequest()->getPost('billing_address_id', false);\n\n if (isset($data['email'])) {\n $data['email'] = trim($data['email']);\n }\n\n Mage::register(\n 'login_action_text',\n Mage::helper('ecomdev_checkitout')->__('<a href=\"#\" onclick=\"%s\">log in</a>', 'loginStep.showPopUp(); return false;')\n );\n\n $result = $this->getOnepage()->saveBilling($data, $customerAddressId);\n $this->_addHashInfo($result);\n\n $this->getResponse()->setBody(\n Mage::helper('core')->jsonEncode($result)\n );\n }\n }", "public function insertCard($data){\n unset($data['is_default']);\n\n /**\n Api/CardCredit/insertCardCredit: insert card data\n Kiosk/Api/verifyCreditCard: insert card data, without member_id, cvv2\n */\n\n if($data['card_code']) {\n $data['card_last4'] = substr($data['card_code'], -4);\n $data['card_md5'] = md5($data['card_code']);\n if($data['member_id']) {\n if(empty($this->getDefaultCard($data['member_id'], $scope='default', $forceGetDefault=true))) {\n //if no default card, this must be a default card\n $data['is_default'] = 1;\n }\n }\n\n $card = $this->getCardByCode($data['card_code']);\n if($card) {\n //when card is inserted in web api, member_id is essential\n //when card is inserted in kiosk api, member_id is empty\n if($data['member_id']) {\n //for Api/CardCredit/insertCardCredit: card has existed and bind memberId, fail insert\n if($card['member_id']) return false;\n\n //for Api/CardCredit/insertCardCredit: card has existed and bind memberId, no matter member_id match, bind the new member_id\n //for Api/CardCredit/insertCardCredit: card_code has existed and not bind memberId, bind memberId now\n $data['update_time'] = time();\n if($this->where('card_id=%d', $card['card_id'])->data($data)->save()) {\n return $card['card_id'];\n } else {\n return false;\n }\n } else {\n //for Kiosk/Api/verifyCreditCard: card has existed and bind memberId\n //for Kiosk/Api/verifyCreditCard: card_code has existed and not bind memberId\n return $card['card_id'];\n }\n } else {\n $data['create_time'] = time();\n if ($this->create($data)) {\n return $this->add();\n } else {\n return false;\n }\n }\n } else {\n return false;\n }\n }", "function chargeCreditCard()\n{\n\t \n\t$insert_id = $this->session->userdata('recent_reg_id');\n\t$current_login_user = $this->common_front_model->get_session_data();\n\t$inputData=$this->input->post();\n\n\t//print_r($current_login_user);\n\n\n $merchantAuthentication = new AnetAPI\\MerchantAuthenticationType();\n $merchantAuthentication->setName(\"9zyp7U9TTQ\");\n $merchantAuthentication->setTransactionKey(\"8hFVee23p993GVVa\");\n \n // Set the transaction's refId\n $refId = $current_login_user['matri_id'].'-' . time();\n\n // Create the payment data for a credit card\n $creditCard = new AnetAPI\\CreditCardType();\n $creditCard->setCardNumber($inputData['card_number']);\n $creditCard->setExpirationDate($inputData['year'].\"-\".$inputData['month']);\n $creditCard->setCardCode($inputData['cvv']);\n\n // Add the payment data to a paymentType object\n $paymentOne = new AnetAPI\\PaymentType();\n $paymentOne->setCreditCard($creditCard);\n\n // Create order information\n $order = new AnetAPI\\OrderType();\n $order->setInvoiceNumber($refId);\n $order->setDescription(\"Membership Renewal-\".$inputData['plan_name']);\n\n // Set the customer's Bill To address\n $customerAddress = new AnetAPI\\CustomerAddressType();\n $customerAddress->setFirstName($inputData['name_on_card']);\n // $customerAddress->setLastName($current_login_user['lastname']);\n // $customerAddress->setCompany($current_login_user['username']);\n //$customerAddress->setAddress(\"14 Main Street\");\n // $customerAddress->setCity(\"Pecan Springs\");\n //$customerAddress->setState(\"TX\");\n // $customerAddress->setZip(\"44628\");\n // $customerAddress->setCountry(\"USA\");\n\n // Set the customer's identifying information\n $customerData = new AnetAPI\\CustomerDataType();\n $customerData->setType(\"individual\");\n $customerData->setId($current_login_user['matri_id']);\n $customerData->setEmail($current_login_user['email']);\n\n // Add values for transaction settings\n $duplicateWindowSetting = new AnetAPI\\SettingType();\n $duplicateWindowSetting->setSettingName(\"duplicateWindow\");\n $duplicateWindowSetting->setSettingValue(\"60\");\n\n // Add some merchant defined fields. These fields won't be stored with the transaction,\n // but will be echoed back in the response.\n $merchantDefinedField1 = new AnetAPI\\UserFieldType();\n $merchantDefinedField1->setName(\"customerLoyaltyNum\");\n $merchantDefinedField1->setValue(\"1128836273\");\n\n $merchantDefinedField2 = new AnetAPI\\UserFieldType();\n $merchantDefinedField2->setName(\"favoriteColor\");\n $merchantDefinedField2->setValue(\"blue\");\n\n // Create a TransactionRequestType object and add the previous objects to it\n $transactionRequestType = new AnetAPI\\TransactionRequestType();\n $transactionRequestType->setTransactionType(\"authCaptureTransaction\");\n $transactionRequestType->setAmount($inputData['plan_amount']);\n $transactionRequestType->setOrder($order);\n $transactionRequestType->setPayment($paymentOne);\n $transactionRequestType->setBillTo($customerAddress);\n $transactionRequestType->setCustomer($customerData);\n $transactionRequestType->addToTransactionSettings($duplicateWindowSetting);\n $transactionRequestType->addToUserFields($merchantDefinedField1);\n $transactionRequestType->addToUserFields($merchantDefinedField2);\n\n // Assemble the complete transaction request\n $request = new AnetAPI\\CreateTransactionRequest();\n $request->setMerchantAuthentication($merchantAuthentication);\n $request->setRefId($refId);\n $request->setTransactionRequest($transactionRequestType);\n\t//print_r($request);\n // Create the controller and get the response\n $controller = new AnetController\\CreateTransactionController($request);\n $response = $controller->executeWithApiResponse(\\net\\authorize\\api\\constants\\ANetEnvironment::PRODUCTION);\n \n\n if ($response != null) {\n // Check to see if the API request was successfully received and acted upon\n if ($response->getMessages()->getResultCode() == \"Ok\") {\n // Since the API request was successful, look for a transaction response\n // and parse it to display the results of authorizing the card\n $tresponse = $response->getTransactionResponse();\n \n if ($tresponse != null && $tresponse->getMessages() != null) {\n //echo \" Successfully created transaction with Transaction ID: \" . $tresponse->getTransId() . \"\\n\";\n // echo \" Transaction Response Code: \" . $tresponse->getResponseCode() . \"\\n\";\n // echo \" Message Code: \" . $tresponse->getMessages()[0]->getCode() . \"\\n\";\n // echo \" Auth Code: \" . $tresponse->getAuthCode() . \"\\n\";\n\t\t\t\t//echo \" Description: \" . $tresponse->getMessages()[0]->getDescription() . \"\\n\";\n\t\t\t\t//$this->data['status']=\"Successfully created transaction with Transaction ID: \" . $tresponse->getTransId() . \"\\n\";\n\t\t\t\t//$status=\"success\";\n\t\t\t\t$this->payment_status(\"authorize\");\n\t\t\t\treturn true;\n\t\t\t\t\n } else {\n //echo \"Transaction Failed \\n\";\n if ($tresponse->getErrors() != null) {\n // echo \" Error Code : \" . $tresponse->getErrors()[0]->getErrorCode() . \"\\n\";\n\t\t\t\t\t//echo \" Error Message : \" . $tresponse->getErrors()[0]->getErrorText() . \"\\n\";\n\t\t\t\t\t\n\t\t\t\t\t$this->data['status']=\" Error Message : \" . $tresponse->getErrors()[0]->getErrorText() . \"\\n\";\n\t\t\t\t\t$status=\"fail\";\n }\n }\n // Or, print errors if the API request wasn't successful\n } else {\n // echo \"Transaction Failed \\n\";\n $tresponse = $response->getTransactionResponse();\n \n if ($tresponse != null && $tresponse->getErrors() != null) {\n // echo \" Error Code : \" . $tresponse->getErrors()[0]->getErrorCode() . \"\\n\";\n\t\t\t\t//echo \" Error Message : \" . $tresponse->getErrors()[0]->getErrorText() . \"\\n\";\n\t\t\t\t\n\t\t\t\t $this->data['status']=\" Error Message : \" . $tresponse->getErrors()[0]->getErrorText() . \"\\n\";\n\t\t\t\t\t$status=\"fail\";\n\n } else {\n // echo \" Error Code : \" . $response->getMessages()->getMessage()[0]->getCode() . \"\\n\";\n\t\t\t//\techo \" Error Message : \" . $response->getMessages()->getMessage()[0]->getText() . \"\\n\";\n\t\t\t\t\n\t\t\t\t $this->data['status']=\" Error Message : \" . $response->getMessages()->getMessage()[0]->getText() . \"\\n\";\n\t\t\t\t\t$status=\"fail\";\n }\n }\n } else {\n echo \"No response returned \\n\";\n }\n\n\t//return $response;\n\t\n\t\t\t\t$this->common_model->front_load_header('Payment Success');\n\t\t\t\tif($status=='success'){\n\t\t\t\t\t$this->load->view('front_end/payment_success',$this->data);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t$this->load->view('front_end/payment_fail',$this->data);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t$this->common_model->front_load_footer();\n}", "function insertCreditCard($name, $number, $expiry, $custId) {\n $query = \"INSERT INTO `creditcards` (CCName, CCNumber, CCExpiry, CustomerId) VALUES ('$name', '$number', '$expiry 00:00:00', '$custId')\";\n $result = Database::insertQuery($query); \n if ($result) {\n return true;\n } else {\n return false;\n }\n }", "public function enable()\n\t{\n\t\t$this->disabled_at = null;\n\t\t$this->disabled_by_user_id = null;\n\t\t$this->save();\n\t}", "public function save()\n\t {\n\t\tif (isset($this->_advert->date) === true && isset($this->_advert->phone) === true)\n\t\t {\n\t\t\t$bigfile = new BigFile(\"base-\" . $this->_advert->phone, 10);\n\t\t\t$bigfile->addrecord($this->_advert->date);\n\t\t } //end if\n\n\t }", "public function saveCardDetail($result)\n {\n $getDetail = $result->toArray();\n $saveCardDetail = Mage::getModel('planet_pay/carddetail');\n $id = $getDetail['id'];\n $paymentType = $getDetail['paymentType'];\n $paymentBrand = $getDetail['paymentBrand'];\n $last4Digits = $getDetail['card']['last4Digits'];\n $holder = $getDetail['card']['holder'];\n $expiryMonth = $getDetail['card']['expiryMonth'];\n $expiryYear = $getDetail['card']['expiryYear'];\n try{\n $saveCardDetail->setResponseid($id);\n $saveCardDetail->setPaymenttype($paymentType);\n $saveCardDetail->setPaymentbrand($paymentBrand);\n $saveCardDetail->setLastdigits($last4Digits);\n $saveCardDetail->setExpirymonth($expiryMonth);\n $saveCardDetail->setExpiryyear($expiryYear);\n $saveCardDetail->setHolder($holder);\n $insertId = $saveCardDetail->save();\n \n } catch (Exception $ex) {\n \n Mage::log($ex->getMessage(), null, Planet_Pay_Model_Select::LOG_FILE);\n }\n \n }", "public function add_card() {\n\n\t\tif ($this->input->get('action') == \"remove_card\" && $this->input->get('card_id') != \"\") {\n\t\t\t// call remove card function \n\t\t\t$option = array(\n\t\t\t\t'is_json' => false,\n\t\t\t\t'url' => site_url() . '/service_delete_user_card_info',\n\t\t\t\t'data' => array(\n\t\t\t\t\t'user_id' => $this->session->userdata('userId'),\n\t\t\t\t\t'card_id' => $this->input->get('card_id')\n\t\t\t\t)\n\t\t\t);\n\n\t\t\t$result = get_data_with_curl($option);\n\t\t\tif (element('isSuccess', $result, '') == 1) {\n\t\t\t\t$this->session->set_flashdata('card_msg', $result['message']);\n\t\t\t}\n\t\t}\n\n\t\t$data['user_account_info'] = $this->user_model->get_user_payment_account($this->session->userdata('userId'));\n\n\t\t/* view existing card */\n\t\t$data['card_exist'] = array();\n\t\tif (count($data['user_account_info']) != 0 && $data['user_account_info']['card_id'] != \"\") {\n\n\t\t\t$data['card_exist'] = $this->mango_pay->view_a_card($data['user_account_info']['card_id']);\n\t\t}\n\n\t\t/* create card registration tokken */\n\n\t\tif (count($data['user_account_info']) == 0) {\n\n\t\t\t/* create payment account of user */\n\t\t\t$option = array(\n\t\t\t\t'is_json' => false,\n\t\t\t\t'url' => site_url() . '/service_create_user_wallet',\n\t\t\t\t'data' => array('user_id' => $this->session->userdata('userId'))\n\t\t\t);\n\n\t\t\t$result = get_data_with_curl($option);\n\t\t\t$data['user_account_info'] = $this->user_model->get_user_payment_account($this->session->userdata('userId'));\n\t\t}\n\n\n\t\t/* create card registration tokken */\n\t\t$card_info = $data['user_address'] = array();\n\t\tif (count($data['user_account_info']) > 0) {\n\t\t\t$user = $data['user_account_info'];\n\t\t\t$data['user_address'] = $this->mango_pay->mango_view_user_detail($user['author_id']);\n\t\t\tif ($this->input->get('card_type') != \"\") {\n\t\t\t\t$access = array(\n\t\t\t\t\t\"Tag\" => $user['user_id'],\n\t\t\t\t\t\"UserId\" => $user['author_id'],\n\t\t\t\t\t\"Currency\" => \"EUR\",\n\t\t\t\t\t\"CardType\" => $this->input->get('card_type')\n\t\t\t\t);\n\t\t\t\t$card_info = $data['card_access_tokken'] = $this->mango_pay->mango_create_registration($access);\n\t\t\t}\n\t\t}\n\n\t\tif (count($card_info)) {\n\t\t\t$this->session->set_userdata(\"cardRegisterId\", $card_info->Id);\n\t\t}\n\t\t$this->load->view('account_information/add_card', $data);\n\t}", "public function saveCard($value) {\n if (is_string($value)) {\n $value = new \\Kendo\\JavaScriptFunction($value);\n }\n\n return $this->setProperty('saveCard', $value);\n }", "public function payAction()\n\t{\n\t\t$paylanecreditcard = Mage::getSingleton(\"paylanecreditcard/standard\");\n\t\t$data = $paylanecreditcard->getPaymentData();\n\n\t\tif (is_null($data))\n\t\t{\n\t\t\tMage::app()->getFrontController()->getResponse()->setRedirect(Mage::getUrl(\"/\"));\n\t\t}\n\n\t\t// connect to PayLane Direct System\n\t\t$paylane_client = new PayLaneClient();\n\n\t\t// get login and password from store config\n\t\t$direct_login = Mage::getStoreConfig('payment/paylanecreditcard/direct_login');\n\t\t$direct_password = Mage::getStoreConfig('payment/paylanecreditcard/direct_password');\n\n\t\t$status = $paylane_client->connect($direct_login, $direct_password);\n\t\tif ($status == false)\n\t\t{\n\t\t\t// an error message\n\t \t$paylanecreditcard->addComment(\"Error processing your payment... Please try again later.\", true);\n\n\t \tsession_write_close();\n\t \t$this->_redirect('checkout/onepage/failure');\n\t\t\treturn;\n\t\t}\n\n\t\t$secure3d = Mage::getStoreConfig('payment/paylanecreditcard/secure3d');\n\n\t\tif ($secure3d == true)\n\t\t{\n\t\t\t$back_url = Mage::getUrl('paylanecreditcard/standard/back', array('_secure' => true));\n\n\t\t\t$result = $paylane_client->checkCard3DSecureEnrollment($data, $back_url);\n\n\t\t\tif ($result == false)\n\t\t\t{\n\t\t\t\t// an error message\n\t\t \t$paylanecreditcard->addComment(\"Error processing your payment... Please try again later.\", true);\n\n\t\t \tsession_write_close();\n\t\t \t$this->_redirect('checkout/onepage/failure');\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (isset($result->ERROR))\n\t\t\t{\n\t\t\t\t// an error message\n\t\t \t$paylanecreditcard->addComment($result->ERROR->error_description, true);\n\n\t\t \tsession_write_close();\n\t\t \t$this->_redirect('checkout/onepage/failure');\n\t\t \treturn;\n\t\t\t}\n\n\t\t\tif (isset($result->OK))\n\t\t\t{\n\t\t\t\t$paylanecreditcard->setIdSecure3dAuth($result->OK->secure3d_data->id_secure3d_auth);\n\n\t\t\t\tif (isset($result->OK->is_card_enrolled))\n\t\t\t\t{\n\t\t\t\t\t$is_card_enrolled = $result->OK->is_card_enrolled;\n\n\t\t\t\t\t// card is enrolled in 3-D Secure\n\t\t\t\t\tif (true == $is_card_enrolled)\n\t\t\t\t\t{\n\t\t\t\t\t\tMage::app()->getFrontController()->getResponse()->setRedirect($result->OK->secure3d_data->paylane_url);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\t// card is not enrolled, perform normal sale\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t$data['secure3d'] = array();\n\t\t\t\t\t\t$data['id_secure3d_auth'] = $result->OK->secure3d_data->id_secure3d_auth;\n\n\t\t\t\t\t\t$result = $paylane_client->multiSale($data);\n\t\t\t\t\t\tif ($result == false)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// an error message\n\t\t\t\t\t \t$paylanecreditcard->addComment(\"Error processing your payment... Please try again later.\", true);\n\n\t\t\t\t\t \tsession_write_close();\n\t\t\t\t\t \t$this->_redirect('checkout/onepage/failure');\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (isset($result->ERROR))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// an error message\n\t\t\t\t\t \t$paylanecreditcard->addComment($result->ERROR->error_description, true);\n\n\t\t\t\t\t \tsession_write_close();\n\t\t\t\t\t \t$this->_redirect('checkout/onepage/failure');\n\t\t\t\t\t \treturn;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (isset($result->OK))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$paylanecreditcard->setCurrentOrderPaid();\n\t\t\t\t\t\t\t$paylanecreditcard->addComment('id_sale=' . $result->OK->id_sale);\n\t\t\t\t\t\t\t$paylanecreditcard->addTransaction($result->OK->id_sale);\n\n\t\t\t\t\t \tsession_write_close();\n\t\t\t\t\t \t$this->_redirect('checkout/onepage/success');\n\t\t\t\t\t \treturn;\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\tMage::app()->getFrontController()->getResponse()->setRedirect(Mage::getUrl(\"/\"));\n\t\t\t\t\t\t\treturn;\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{\n\t\t\t\t\tMage::app()->getFrontController()->getResponse()->setRedirect(Mage::getUrl(\"/\"));\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tMage::app()->getFrontController()->getResponse()->setRedirect(Mage::getUrl(\"/\"));\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$result = $paylane_client->multiSale($data);\n\t\t\tif ($result == false)\n\t\t\t{\n\t\t\t\t// an error message\n\t\t \t$paylanecreditcard->addComment(\"Error processing your payment... Please try again later.\", true);\n\n\t\t \tsession_write_close();\n\t\t \t$this->_redirect('checkout/onepage/failure');\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (isset($result->ERROR))\n\t\t\t{\n\t\t\t\t// an error message\n\t\t \t$paylanecreditcard->addComment($result->ERROR->error_description, true);\n\n\t\t \tsession_write_close();\n\t\t \t$this->_redirect('checkout/onepage/failure');\n\t\t \treturn;\n\t\t\t}\n\n\t\t\tif (isset($result->OK))\n\t\t\t{\n\t\t\t\t$paylanecreditcard->setCurrentOrderPaid($result->OK->id_sale);\n\n\t\t \tsession_write_close();\n\t\t \t$this->_redirect('checkout/onepage/success');\n\t\t \treturn;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tMage::app()->getFrontController()->getResponse()->setRedirect(Mage::getUrl(\"/\"));\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}", "private function saveData(): void\n {\n $this->tab_chat_call->call_update = gmdate(\"Y-m-d H:i:s\"); //data e hora UTC\n $result = $this->tab_chat_call->save();\n\n if ($result) {\n $this->Result = true;\n $this->Error = [];\n $this->Error['msg'] = \"Sucesso!\";\n $this->Error['data']['call'] = $this->tab_chat_call->call_id;\n } else {\n $this->Result = false;\n $this->Error = [];\n $this->Error['msg'] = $this->tab_chat_call->fail()->getMessage();\n $this->Error['data'] = null;\n }\n }", "public function saveAction()\n {\n // TODO: Implement saveAction() method.\n\n $code = $this->getRequest()['verify_code'];\n\n var_dump($code);\n var_dump($this->getVerifyProvider()->check($code));\n\n }", "function spgateway_credit_MetaData() {\n return array(\n 'DisplayName' => 'spgateway - 信用卡',\n 'APIVersion' => '1.1', // Use API Version 1.1\n 'DisableLocalCredtCardInput' => false,\n 'TokenisedStorage' => false,\n );\n}", "public function CreditCard($name, $number, $exp_month, $exp_year, $security_code = FALSE) {\n\t\t$number = str_replace(' ','',$number);\n\t\t$number = trim($number);\n\n\t\t$this->Param('name', $name, 'credit_card');\n\t\t$this->Param('card_num', $number, 'credit_card');\n\t\t$this->Param('exp_month', $exp_month, 'credit_card');\n\t\t$this->Param('exp_year', $exp_year, 'credit_card');\n\t\tif($security_code) {\n\t\t\t$this->Param('cvv', $security_code, 'credit_card');\n\t\t}\n\n\t\treturn true;\n\t}", "public function CreditCard($name, $number, $exp_month, $exp_year, $security_code = FALSE) {\n\t\t$number = str_replace(' ','',$number);\n\t\t$number = trim($number);\n\n\t\t$this->Param('name', $name, 'credit_card');\n\t\t$this->Param('card_num', $number, 'credit_card');\n\t\t$this->Param('exp_month', $exp_month, 'credit_card');\n\t\t$this->Param('exp_year', $exp_year, 'credit_card');\n\t\tif($security_code) {\n\t\t\t$this->Param('cvv', $security_code, 'credit_card');\n\t\t}\n\n\t\treturn true;\n\t}", "public function save()\n\t{\n\t\t$updatedProfile = Yii::$app->user->identity->profile;\n\t\t\n\t\t$updatedProfile = Yii::$app->user->identity->profile;\n\t\t\n\t\t$updatedProfile->{Yii::$app->request->post()['flag']} = Yii::$app->request->post()['val'];\n\n\t\t$updatedProfile->save();\n\t}", "function InfUpdateCreditCard($inf_card_id, $CardNumber='', $ExpirationMonth, $ExpirationYear, $NameOnCard, $BillAddress1, $BillCity, $BillState, $BillZip, $BillCountry) {\n\n\t$credit_card = new Infusionsoft_CreditCard();\n\t$credit_card->Id = $inf_card_id;\n\tif ($CreditCard<>\"\") {\n\t\t$credit_card->CardNumber = $CardNumber;\n\t}\n\t$credit_card->ExpirationMonth = $ExpirationMonth;\n\t$credit_card->ExpirationYear = $ExpirationYear;\n\t$credit_card->NameOnCard = $NameOnCard;\n\t$credit_card->BillAddress1 = $BillAddress1;\n\t$credit_card->BillCity = $BillCity;\n\t$credit_card->BillState = $BillState;\n\t$credit_card->BillZip = $BillZip;\n\t$credit_card->BillCountry = $BillCountry;\n\treturn $credit_card->save(); // Update Card in Infusionsoft\n}", "protected function saveData()\n {\n $this->beforeSave();\n\n $changed = $this->setReceptionCode(\n $this->formData[$this->receptionCodeItem],\n $this->loader->getCurrentUser()->getUserId()\n );\n\n $this->afterSave($changed);\n\n $this->accesslog->logChange($this->request, null, $this->formData);\n }", "protected function saveData()\n {\n $this->beforeSave();\n\n $changed = $this->setReceptionCode(\n $this->formData[$this->receptionCodeItem],\n $this->loader->getCurrentUser()->getUserId()\n );\n\n $this->afterSave($changed);\n\n $this->accesslog->logChange($this->request, null, $this->formData);\n }", "function commerce_braintree_creditcard_edit_form($form, &$form_state, $sid) {\n module_load_include('inc', 'commerce_payment', 'includes/commerce_payment.credit_card');\n $form_state['build_info']['files']['form'] = drupal_get_path('module', 'commerce_braintree') . '/commerce_braintree.form.inc';\n $sub = commerce_braintree_subscription_local_get(array('sid' => $sid), FALSE);\n $payment = commerce_payment_method_instance_load('braintree|commerce_payment_braintree');\n $creditcard = commerce_braintree_creditcard_get_by_token($sub['token']);\n $billing_address = isset($creditcard->billingAddress) ? $creditcard->billingAddress : null;\n $form['payment_method'] = array(\n '#type' => 'fieldset', \n '#title' => t('Payment Method Details'),\n );\n $form['payment_method']['ca_cardholder_name'] = array(\n '#type' => 'textfield',\n '#title' => t('Cardholder Name'),\n '#default_value' => isset($creditcard->cardholderName) ? $creditcard->cardholderName : '',\n );\n // NOTE: A hidden field is changable via Firebug. Value is not.\n // Because there's no validation, this would have allowed any user with access to this form\n // to change any credit card on the website for any user, providing they guess another ca_token.\n //$form['payment_method']['ca_token'] = array('#type' => 'value', '#value' => $token);\n $form['payment_method']['sid'] = array('#type' => 'value', '#value' => $sid);\n \n\n \n // Prepare the fields to include on the credit card form.\n $fields = array(\n 'code' => '',\n );\n\n // Add the credit card types array if necessary.\n $card_types = array_diff(array_values($payment['settings']['card_types']), array(0));\n if (!empty($card_types)) {\n $fields['type'] = $card_types;\n }\n \n $defaults = array(\n 'type' => isset($creditcard->cardType) ? $creditcard->cardType : '',\n 'number' => isset($creditcard->maskedNumber) ? $creditcard->maskedNumber : '', \n 'exp_month' => isset($creditcard->expirationMonth) ? $creditcard->expirationMonth : '', \n 'exp_year' => isset($creditcard->expirationYear) ? $creditcard->expirationYear : '',\n );\n \n // load oder\n $order = commerce_order_load($sub['order_id']);\n $order_wrapper = entity_metadata_wrapper('commerce_order', $order);\n\n // get profile id\n $profile_id = $order_wrapper->commerce_customer_billing->profile_id->value();\n \n // load customer profile\n $profile = commerce_customer_profile_load($profile_id);\n \n if (isset($profile->commerce_customer_address['und']['0']['first_name'])) {\n $profile->commerce_customer_address['und']['0']['first_name'] = isset($billing_address->firstName) ? $billing_address->firstName :'' ;\n }\n if (isset($profile->commerce_customer_address['und']['0']['last_name'])) {\n $profile->commerce_customer_address['und']['0']['last_name'] = isset($billing_address->lastName) ? $billing_address->lastName : '';\n }\n if (isset($profile->commerce_customer_address['und']['0']['organisation_name'])) {\n // //company\n $profile->commerce_customer_address['und']['0']['organisation_name'] = isset($billing_address->company) ? $billing_address->company :'';\n }\n if (isset($profile->commerce_customer_address['und']['0']['administrative_area'])) {\n //state\n $profile->commerce_customer_address['und']['0']['administrative_area'] = isset($billing_address->region) ? $billing_address->region : '';\n }\n if (isset($profile->commerce_customer_address['und']['0']['premise'])) {\n //address 2\n $profile->commerce_customer_address['und']['0']['premise'] = isset($billing_address->extendedAddress) ? $billing_address->extendedAddress : '';\n }\n if (isset($profile->commerce_customer_address['und']['0']['locality'])) {\n //city\n $profile->commerce_customer_address['und']['0']['locality'] = isset($billing_address->locality) ? $billing_address->locality : '';\n }\n if (isset($profile->commerce_customer_address['und']['0']['postal_code'])) {\n //postal code\n $profile->commerce_customer_address['und']['0']['postal_code'] = isset($billing_address->postalCode) ? $billing_address->postalCode : '';\n }\n if (isset($profile->commerce_customer_address['und']['0']['thoroughfare'])) {\n // address 1\n $profile->commerce_customer_address['und']['0']['thoroughfare'] = isset($billing_address->streetAddress) ? $billing_address->streetAddress : '';\n }\n \n // Add the field related form elements.\n $form_state['customer_profile'] = $profile;\n // Attach address field to form\n field_attach_form('commerce_customer_profile', $profile, $form, $form_state);\n $form['commerce_customer_address']['#weight'] = '0';\n $form['payment_method'] += commerce_payment_credit_card_form($fields, $defaults);\n\n $form['submit'] = array(\n '#type' => 'submit',\n '#value' => t('Save'),\n );\n \n \n $form['#validate'][] = 'commerce_braintree_creditcard_edit_form_validate';\n $form['#submit'][] = 'commerce_braintree_creditcard_edit_form_submit';\n return $form;\n}", "public function save_currency_settings() {\n if ($this->checkLogin('A') == '') {\n redirect(ADMIN_ENC_URL);\n } else {\n if ($this->checkPrivileges('admin', '2') == TRUE) {\n $condition = array('admin_id' => '1');\n $this->admin_model->commonInsertUpdate(ADMIN, 'update', array(), array(), $condition);\n $currency_settings_val = $this->input->post(\"currency\");\n $config = '<?php ';\n foreach ($currency_settings_val as $key => $val) {\n $value = addslashes($val);\n $config .= \"\\n\\$config['$key'] = '$value'; \";\n }\n $config .= \"\\n ?>\";\n $file = 'commonsettings/dectar_currency_settings.php';\n file_put_contents($file, $config);\n $this->setErrorMessage('success', 'Currency settings updated successfully','admin_adminlogin_currency_setting_updated');\n redirect(ADMIN_ENC_URL.'/adminlogin/admin_currency_settings');\n } else {\n redirect(ADMIN_ENC_URL);\n }\n }\n }", "public function save()\n {\n Session::clear(\"Checkout.PostageID\");\n \n // Extend our save operation\n $this->extend(\"onBeforeSave\");\n\n // Save cart items\n Session::set(\n \"Checkout.ShoppingCart.Items\",\n serialize($this->items)\n );\n\n // Save cart discounts\n Session::set(\n \"Checkout.ShoppingCart.Discount\",\n serialize($this->discount)\n );\n\n // Update available postage\n if ($data = Session::get(\"Form.Form_PostageForm.data\")) {\n $country = $data[\"Country\"];\n $code = $data[\"ZipCode\"];\n $this->setAvailablePostage($country, $code);\n }\n }", "public function editCustomerCreditCard($data) {\n\t\t$soapclient = new SoapClient($this->pci);\n\n\t\t$params = [\n\t\t\t\t'DigitalKey' => $this->digitalKey,\n\t\t\t\t'EziDebitCustomerID' => $data['eziDebitCID'],\n\t\t\t\t'YourSystemReference' => $data['systemRef'],\n\t\t\t\t'NameOnCreditCard' => $data['cardName'],\n\t\t\t\t'CreditCardNumber' => $data['cardNumber'],\n\t\t\t\t'CreditCardExpiryYear' => $data['cardExpiryYear'],\n\t\t\t\t'CreditCardExpiryMonth' => $data['cardExpiryMonth'],\n\t\t\t\t'Reactivate' => $data['reactivate'],\n\t\t\t\t'Username' => $data['username']\n\t\t];\n\n\t\treturn $soapclient->editCustomerCreditCard($params);\n\t}", "public function test_rechargeWithCreditCard_providerAcceptsCharge_returnResultTrueAndIncreaseUploadedAmountInWallet()\n {\n $amount = new Money(2000, new Currency('EUR'));\n $this->exerciseRechargeWithCreditCard(52000, true, $amount);\n }", "public function saveToStore() {\r\n $this->context->dbDriver->store(RestoDatabaseDriver::LICENSE, array(\r\n 'license' => array(\r\n 'licenseId' => $this->licenseId,\r\n 'grantedCountries' => isset($this->description['grantedCountries']) ? $this->description['grantedCountries'] : null,\r\n 'grantedOrganizationCountries' => isset($this->description['grantedOrganizationCountries']) ? $this->description['grantedOrganizationCountries'] : null,\r\n 'grantedFlags' => isset($this->description['grantedFlags']) ? $this->description['grantedFlags'] : null,\r\n 'viewService' => isset($this->description['viewService']) ? $this->description['viewService'] : null,\r\n 'hasToBeSigned' => isset($this->description['hasToBeSigned']) ? $this->description['hasToBeSigned'] : null,\r\n 'signatureQuota' => isset($this->description['signatureQuota']) ? $this->description['signatureQuota'] : -1,\r\n 'description' => isset($this->description['description']) ? $this->description['description'] : null\r\n ))\r\n );\r\n }", "function savePaymentDetails($payment_data){\n\n $isInsert = $this->common_model->insertData(PAYMENT_TRANSACTIONS,$payment_data);\n if($isInsert){\n return TRUE;\n }else{\n return FALSE;\n }\n\n }", "public function saveData()\r\n {\r\n \r\n }", "public function edit(CreditCard $creditCard)\n {\n //\n }", "public function saveCustom()\n {\n // Look through all of the updated fields to see if there are any Custom fields\n foreach ($this->updatedFields as $id => $updatedField) {\n\n // Translates WarrantyExpiration to \"Warranty Expiration\" for use with searching for the customID\n if (array_key_exists($updatedField, $this->customFieldMap)) {\n $realField = $this->customFieldMap[$updatedField];\n } else {\n $realField = $updatedField;\n }\n\n // Now see if Warranty Expiration is in the list of Custom fields\n if (array_key_exists($realField, $this->customFields)) {\n\n // If it is, get the ID needed for the API call\n $customID = $this->customFields[$realField];\n\n $args = [];\n $args['fieldId'] = $customID;\n // The value is stored in the main details array using WarrantyExpiration\n $args['value'] = $this->details->$updatedField;\n $args['id'] = $this->ID;\n $this->api->_request('POST', '/api/SetCustomFieldForAsset'.\"?\".http_build_query($args));\n // Remove it from the updatedFields list so the main save() doesn't try to update it\n unset($this->updatedFields[$id]);\n }\n }\n\n }", "public function saveCard($customer, $user, $card)\n {\n return $customer->sources->create(array(\"source\" => [\n \"object\" => \"card\",\n \"address_city\" => $user->addresses[0]->city,\n \"address_state\" => $user->addresses[0]->state,\n \"address_line1\" => $user->addresses[0]->street,\n \"address_zip\" => $user->addresses[0]->zip,\n \"exp_month\" => $card->expiration_month,\n \"exp_year\" => $card->expiration_year,\n \"number\" => $card->number,\n \"name\" => $user->first_name.\" \".$user->last_name\n ]));\n }", "public function save_settings(stdClass $data) {\n $this->set_config('circleci_token', $data->assignsubmission_circleci_token);\n $this->set_config('circleci_url', $data->assignsubmission_circleci_url);\n $this->set_config('circleci_job', $data->assignsubmission_circleci_job);\n\n return true;\n }", "public function creditcardAction()\r\n\t{\r\n\t if(defined('EMPTABCONFIGS'))\r\n\t\t{\r\n\t\t $empOrganizationTabs = explode(\",\",EMPTABCONFIGS);\r\n\t\t\tif(in_array('creditcarddetails',$empOrganizationTabs))\r\n\t\t\t{\r\n\t\t\t\t$tabName = \"creditcard\";\r\n\t\t\t\t$employeeData =array();\r\n\t\t\t\t\r\n\t\t\t $auth = Zend_Auth::getInstance();\r\n\t\t\t if($auth->hasIdentity())\r\n\t\t\t {\r\n\t\t\t\t\t$loginUserId = $auth->getStorage()->read()->id;\r\n\t\t\t\t}\r\n\t\t\t\t$id = $loginUserId;\r\n\t\t\t\t$employeeModal = new Default_Model_Employee();\r\n\t\t\t\t$empdata = $employeeModal->getsingleEmployeeData($id);\r\n\t\t\t\tif($empdata == 'norows')\r\n\t\t\t\t{\r\n\t\t\t\t $this->view->rowexist = \"norows\";\r\n\t\t\t\t $this->view->empdata = \"\";\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{ \r\n\t\t\t\t\t$this->view->rowexist = \"rows\";\r\n\t\t\t\t\tif(!empty($empdata))\r\n\t\t\t\t\t{ \r\n\t\t\t\t\t\t$creditcardDetailsform = new Default_Form_Creditcarddetails();\r\n\t\t\t\t\t\t$creditcardDetailsModel = new Default_Model_Creditcarddetails();\r\n\t\t\t\t\t\tif($id)\r\n\t\t\t\t\t\t{\t\r\n\t\t\t\t\t\t\t$data = $creditcardDetailsModel->getcreditcarddetailsRecord($id);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tif(!empty($data))\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t$creditcardDetailsform->setDefault(\"id\",$data[0][\"id\"]);\r\n\t\t\t\t\t\t\t\t$creditcardDetailsform->setDefault(\"user_id\",$data[0][\"user_id\"]);\r\n\t\t\t\t\t\t\t\t$creditcardDetailsform->setDefault(\"card_type\",$data[0][\"card_type\"]);\r\n\t\t\t\t\t\t\t\t$creditcardDetailsform->setDefault(\"card_number\",$data[0][\"card_number\"]);\r\n\t\t\t\t\t\t\t\t$creditcardDetailsform->setDefault(\"nameoncard\",$data[0][\"nameoncard\"]);\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t$expiry_date = sapp_Global::change_date($data[0][\"card_expiration\"],'view');\r\n\t\t\t\t\t\t\t\t$creditcardDetailsform->setDefault('card_expiration', $expiry_date);\r\n\t\t\t\t\t\t\t\t$creditcardDetailsform->setDefault(\"card_issuedby\",$data[0][\"card_issued_comp\"]);\r\n\t\t\t\t\t\t\t\t$creditcardDetailsform->setDefault(\"card_code\",$data[0][\"card_code\"]);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t$creditcardDetailsform->setAttrib('action',BASE_URL.'mydetails/creditcard/');\r\n\t\t\t\t\t\t\t$this->view->id=$id;\r\n\t\t\t\t\t\t\t$this->view->form = $creditcardDetailsform;\r\n\t\t\t\t\t\t\t$this->view->data=$data;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif($this->getRequest()->getPost())\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t$result = $this->save($creditcardDetailsform,$tabName);\t\r\n\t\t\t\t\t\t\t$this->view->msgarray = $result; \r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t$this->view->empdata = $empdata; \r\n\t\t\t\t\t$this->view->messages = $this->_helper->flashMessenger->getMessages();\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n else\r\n\t\t\t{\r\n\t\t \t $this->_redirect('error');\r\n\t\t }\r\n }\r\n\t\telse\r\n\t\t{\r\n\t\t \t$this->_redirect('error');\r\n\t\t}\t\t\t\r\n\t}", "public function save_currency() {\n\t\t// Validate nonce\n\t\tforminator_validate_ajax( \"forminator_save_popup_currency\" );\n\n\t\tupdate_option( \"forminator_currency\", sanitize_text_field( $_POST['currency'] ) );\n\t\twp_send_json_success();\n\t}", "function processPayment() {\n \n if ($this->creditPayment != 0.00){\n$fieldParse = new parseGatewayFields(); \n$fieldParse-> setCardName($this->cardName);\n$fieldParse-> setAchName($this->accountName);\n$fieldParse-> setCardType($this->cardType);\n$fieldParse-> setAccountType($this->accountType);\n$fieldParse-> setCardExpDate($this->cardYear);\n$fieldParse-> parsePaymentFields();\n\n //reassign vars for CS Credit Cards\n$ccFirstName = $fieldParse-> getCredtCardFirstName();\n$ccLastName = $fieldParse-> getCredtCardLastName();\n$ccCardType = $fieldParse-> getCardType();\n$ccCardYear = $fieldParse-> getCardYear(); \n$ccCardMonth = $this->cardMonth;\n$ccCardNumber = $this->cardNumber;\n$ccCardCvv = $this->cardCvv;\n\n\n \n$club_id = $_SESSION['location_id'];\n \n$dbMain = $this->dbconnect();\n\n\n$stmt = $dbMain->prepare(\"SELECT MIN(club_id) FROM club_info WHERE club_name != ''\");//>=\n$stmt->execute(); \n$stmt->store_result(); \n$stmt->bind_result($club_id); \n$stmt->fetch();\n$stmt->close();\n \n$stmt = $dbMain ->prepare(\"SELECT gateway_id, passwordfd FROM billing_gateway_fields WHERE club_id= '$club_id'\");\n$stmt->execute(); \n$stmt->store_result(); \n$stmt->bind_result($userName, $password);\n$stmt->fetch();\n$stmt->close();\n \n$amount = $this->creditPayment;\n \n //credit\"\";//\n$ccnumber = $ccCardNumber;//\"4111111111111111\";\n$ccexp = \"$this->cardMonth$this->cardYear\";//\"1010\";\n$cvv = \"$this->cardCvv\";\n //==================\n$reference = \"CMP Balance\";\n$vaultFunction = \"\";//'add_customer';//'add_customer' or 'update_customer'\n$orderId = \"$this->contractKey\";\n$merchField1 = \"$reference $this->contractKey\";\n$payTypeFlag = \"creditcard\";//\"creditcard\"; // '' or 'check'\nif(isset($_SESSION['track1'])){\n $track1 = $_SESSION['track1'];\n}else{\n $track1 = \"\";\n}\nif(isset($_SESSION['track2'])){\n $track2 = $_SESSION['track2'];\n}else{\n $track2 = \"\";\n}\n\n \n$gw = new gwapi;\n$gw->setLogin(\"$userName\", \"$password\");\n$r = $gw->doSale($amount, $ccnumber, $ccexp, $cvv, $payTypeFlag, $orderId, $merchField1, $track1, $track2, $ccFirstName, $ccLastName);\n$ccAuthDecision = $gw->responses['responsetext'];\n$vaultId = $gw->responses['customer_vault_id'];\n$authCode = $gw->responses['authcode']; \n$transactionId = $gw->responses['transactionid'];\n$ccAuthReasonCode = $gw->responses['response_code'];\n//echo \"fubar $ccAuthReasonCode\";\n // exit;\n\n if($ccAuthReasonCode != 100) {\n \n $this->paymentStatus = \"$ccAuthDecision: $ccAuthDecision\";\n //$this->transactionId = $ccAuthReasonCode; \n }else{ \n $_SESSION['cc_request_id'] = $authCode;\n $this->paymentStatus = 1;\n //$this->transactionId = $ccAuthRequestId;\n }\n }\n if ($this->creditPayment == 0.00){\n $this->paymentStatus = 1;\n }\n}", "private function setDetails(): bool\n {\n // userID\n $this->userID = (!empty($this->data[\"userID\"]))?$this->data['userID'] : \"\";\n // the Amount\n $this->amount = (int)$this->data[\"amount\"];\n // The action that wants to be performed list of actions will be found in GameControl.js\n $this->action = $this->data[\"action\"];\n //Gets and sets the user details gotten from the database using the user's id\n $this->user_details = ($this->userID != \"\")?$this->fetch_data_from_table($this->users_table_name, \"user_id\", $this->userID)[0] : \"\";\n\n //finally return true\n return true;\n }", "public function store()\n {\n $data = $this->claim->getData();\n $durationInSecs = ($data)?(int) $data['ExpiresIn']:3600;\n $this->provider->add($this->token, json_encode($this->claim), $durationInSecs);\n\n return true;\n }", "public function save_donation() {\r\n\t\t/**\r\n\t\t * Do something here, or save it elsewhere?\r\n\t\t */\r\n\t}", "public function save_donation();", "public function doSavePaymentDetails($data)\n {\n $token = $data[\"StripeToken\"];\n $plan_id = $this->plan_id;\n\n Stripe::setApiKey(StripeForms::secret_key());\n\n if ($token) {\n $member = Member::currentUser();\n\n // Try to setup stripe customer and add them to plan\n try {\n $member->saveStripeCustomer($token);\n $already_subscribed = true;\n\n // See if we have any existing plans that match our ID\n $existing_plans = $member\n ->StripeSubscriptions()\n ->filter(array(\n \"Status\" => StripeSubscription::config()->active_status,\n \"PlanID\" => $plan_id\n ));\n\n if (!$existing_plans->exists()) {\n // First cancel any existing subscriptions (if needed)\n if (StripeForms::config()->cancel_subscriptions_on_setup && $member->StripeSubscriptions()->exists()) {\n foreach($member->StripeSubscriptions() as $subscription) {\n $subscription->cancel();\n $subscription->write();\n }\n }\n\n // First clear any existing subscriptions (if needed)\n if (StripeForms::config()->clear_subscriptions_on_setup && $member->StripeSubscriptions()->exists()) {\n foreach($member->StripeSubscriptions() as $subscription) {\n $subscription->delete();\n }\n }\n\n // Associate subscription in stripe\n $stripe_subscription = StripeAPISubscription::create(array(\n \"customer\" => $member->StripeID,\n \"plan\" => $plan_id\n ));\n\n $subscription = StripeSubscription::create();\n $subscription->Status = $stripe_subscription->status;\n $subscription->StripeID = $stripe_subscription->id;\n $subscription->PlanID = $plan_id;\n $subscription->MemberID = $member->ID;\n $subscription->write();\n\n $member->PaymentAttempts = 0;\n $member->write();\n }\n\n $this->extend(\"onSuccessfulSavePaymentDetails\", $data);\n\n $this->sessionMessage(\n _t(\"StripeForms.SubscriptionSetup\", \"Payment details saved and subscription setup\"),\n \"good\"\n );\n } catch (Exception $e) {\n $this->sessionMessage($e->getmessage(),\"bad\");\n }\n }\n\n return $this->controller->redirectBack();\n }", "public function credits()\n {\n add_settings_field(\n 'credits',\n apply_filters($this->plugin_name . 'label-credits', esc_html__('Credits', $this->plugin_name)),\n [$this->builder, 'checkbox'],\n $this->plugin_name,\n $this->plugin_name . '-library',\n [\n 'description' => 'Enable credits at the bottom of your security.txt file.',\n 'id' => 'credits',\n 'class' => 'hide-when-disabled',\n 'value' => isset($this->options['credits']) ? $this->options['credits'] : false,\n ]\n );\n }", "public function setBankData($data, $code)\n {\n Mage::getSingleton('ratepaypayment/session')->setDirectDebitFlag(true);\n $this->_setBankDataSession($data, $code);\n Mage::getSingleton('ratepaypayment/session')->setBankdataAfter(false);\n\n }", "private function savePermissions(): void\n {\n $this->client->isPayor = $this->isPayor;\n $this->client->isAgencyBankAccountSetup = $this->isAgencyBankAccountSetup;\n $this->client->canViewDocumentation = $this->canViewDocumentation;\n }", "protected function _save($data)\n {\n if(!isset($data['payment'])) return new Varien_Object(array(\"response_code\" => 0));\n\n $cardData = new Varien_Object();\n $billingAddress = new Varien_Object();\n \n $customer = $this->_getCustomer();\n $customerData = Mage::getModel('customer/customer')->load($customer->getId())->getData();\n $holderEmail = $customerData['email'];\n\n $billingAddress->setFirstname($data['firstname'])\n ->setLastname($data['lastname'])\n ->setStreet($data['street'])\n ->setCity($data['city'])\n ->setState($data['state'])\n ->setZipCode($data['zipcode'])\n ->setCountryCode($data['country_id'])\n ->setPhoneNumber($data['telephone']);\n \n $cardData->setHolderEmail($holderEmail)\n ->setCcExpMonth($data['payment']['cc_exp_month'])\n ->setCcExpYear($data['payment']['cc_exp_year'])\n ->setHolderFirstname($data['firstname'])\n ->setHolderLastname($data['lastname'])\n ->setCcNumber($data['payment']['cc_number'])\n ->setCcCvv($data['payment']['cc_cid'])\n ->setCcSaveData(true)\n ->setBillingAddress($billingAddress); \n \n $response = $this->_getApi()->addPaymentMethod($customer->getId(), $cardData);\n \n return $response;\n }", "public function save()\n {\n $this->save_meta_value('_sim_city_main_info', $this->city_main_info);\n\n $this->save_meta_value('_sim_city_shops', $this->city_shops);\n }", "private function _saveSec() {\r\n\r\n // get current configuration object\r\n $sefConfig = & Sh404sefFactory::getConfig();\r\n\r\n //set skip and nocache arrays, unless POST is empty, meaning this is first attempt to save config\r\n if (!empty($_POST)) {\r\n $sefConfig->shSecOnlyNumVars = array();\r\n $sefConfig->shSecAlphaNumVars = array();\r\n $sefConfig->shSecNoProtocolVars = array();\r\n $sefConfig->ipWhiteList = array();\r\n $sefConfig->ipBlackList = array();\r\n $sefConfig->uAgentWhiteList = array();\r\n $sefConfig->uAgentBlackList = array();\r\n }\r\n\r\n }", "protected static function isCreditMode(): bool\n {\n return self::$isCredit;\n }", "function save() {\n if ($this->nid && $this->license_uri) {\n $data = serialize($this);\n $data = str_replace(\"'\", \"\\'\", $data);\n $result = db_query(\"INSERT INTO {creativecommons} (nid, data) VALUES (%d, '%s')\", $this->nid, $data);\n return $result;\n }\n return;\n }", "public function getCreditCard()\n {\n return $this->creditCard;\n }", "protected function save()\n\t{\n\t\t\\XF::app()->session()->set('xenforoUpgradeService', [\n\t\t\t'cookieJar' => $this->getCookies(),\n\t\t\t'email' => $this->email,\n\t\t\t'password' => $this->password,\n\t\t\t'availableProducts' => $this->availableProducts,\n\t\t\t'availableVersions' => $this->availableVersions,\n\t\t\t'selectedLicense' => $this->selectedLicense,\n\t\t\t'selectedProduct' => $this->selectedProduct,\n\t\t\t'selectedVersion' => $this->selectedVersion\n\t\t]);\n\t}", "public function saveExtraRegistrationData($customerId)\n {\n if (isset($_POST['billing_first_name'])) {\n update_user_meta($customerId, 'billing_first_name', sanitize_text_field($_POST['billing_first_name']));\n }\n if (isset($_POST['billing_last_name'])) {\n update_user_meta($customerId, 'billing_last_name', sanitize_text_field($_POST['billing_last_name']));\n }\n if (isset($_POST['billing_address_1'])) {\n update_user_meta($customerId, 'billing_address_1', sanitize_text_field($_POST['billing_address_1']));\n }\n if (isset($_POST['billing_city'])) {\n update_user_meta($customerId, 'billing_city', sanitize_text_field($_POST['billing_city']));\n }\n if (isset($_POST['billing_postcode'])) {\n update_user_meta($customerId, 'billing_postcode', sanitize_text_field($_POST['billing_postcode']));\n }\n if (isset($_POST['billing_phone'])) {\n update_user_meta($customerId, 'billing_phone', sanitize_text_field($_POST['billing_phone']));\n }\n if (isset($_POST['billing_country'])) {\n update_user_meta($customerId, 'billing_country', sanitize_text_field($_POST['billing_country']));\n }\n }", "public function wpbooklist_storefront_save_license_key_action_callback() {\n\n\t\t\tglobal $wpdb;\n\n\t\t\tcheck_ajax_referer( 'wpbooklist_storefront_save_license_key_action_callback', 'security' );\n\n\t\t\tif ( isset( $_POST['license'] ) ) {\n\t\t\t\t$license = filter_var( wp_unslash( $_POST['license'] ), FILTER_SANITIZE_STRING );\n\t\t\t}\n\n\t\t\t$data = array(\n\t\t\t\t'treh' => $license,\n\t\t\t);\n\t\t\t$format = array( '%s' );\n\t\t\t$where = array( 'ID' => 1 );\n\t\t\t$where_format = array( '%d' );\n\t\t\t$save_result = $wpdb->update( $wpdb->prefix . 'wpbooklist_storefront_settings', $data, $where, $format, $where_format );\n\n\t\t\twp_die( $save_result );\n\n\t\t}", "public function getCardTransactionMode()\n {\n return \"authAndCapture\";\n }", "public function getCreditCard()\n\t{\n\t\treturn $this->credit_card;\n\t}" ]
[ "0.63744587", "0.6348948", "0.63044083", "0.6280559", "0.60270274", "0.6003482", "0.591666", "0.58753544", "0.58644736", "0.58349264", "0.58169883", "0.5816479", "0.57720065", "0.5757424", "0.57448083", "0.57421046", "0.57066685", "0.5698418", "0.5697213", "0.5693416", "0.56601804", "0.56320566", "0.5616891", "0.5603173", "0.559317", "0.5587824", "0.55781084", "0.5567743", "0.5533386", "0.5529476", "0.5526248", "0.55240065", "0.5514322", "0.55097955", "0.5508212", "0.55057716", "0.5505203", "0.55031157", "0.5481538", "0.546816", "0.5459688", "0.5455914", "0.54505163", "0.5388933", "0.537652", "0.5376255", "0.5373344", "0.53654015", "0.5363006", "0.53630036", "0.53563195", "0.5351806", "0.53500956", "0.5349264", "0.5347593", "0.53430474", "0.53370535", "0.5335961", "0.5326202", "0.53151584", "0.5314682", "0.5299254", "0.5299254", "0.5292067", "0.5287273", "0.5279011", "0.5279011", "0.5267235", "0.5264778", "0.52528256", "0.52458954", "0.5233228", "0.52225333", "0.5221866", "0.52170736", "0.5207707", "0.52020466", "0.5197773", "0.51954585", "0.5187778", "0.5185157", "0.5179693", "0.5176431", "0.5173932", "0.51736057", "0.516774", "0.51671726", "0.51621795", "0.51621145", "0.51541615", "0.514164", "0.51262444", "0.5122803", "0.51198167", "0.51179475", "0.511376", "0.51000416", "0.50949943", "0.5092734", "0.5084012", "0.507978" ]
0.0
-1
Get MundiPagg crtedit card id by primary key from cards table(opencart).
private function getMundipaggCardId($cardId) { if($cardId && $cardId != "") { $savedCreditcard = new Creditcard($this->openCart); $mundiPaggCreditcardId = $savedCreditcard->getCreditcardById($cardId); return $mundiPaggCreditcardId['mundipagg_creditcard_id']; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getIdCard()\n {\n return $this->id_card;\n }", "public function get_postcard_id() {\n return (int) $this->get_field( 'postcard' );\n }", "function obtenerClienteID($cedula){\n\n $query = $this->db->get('cliente');\n if($query-> num_rows() > 0){\n\t \t\n $row = $query->row($cedula);\n\n\t\tif (isset($row))\n\t\t{\n \treturn $row->id;\n\t\t}\n \n\t }else return false ;\n\t \n\t}", "public function getId(){\n return $this->__get('catalog_id');\n }", "function getCedarId() { \n\t $this->load();\n\t return $this->mCedarId; \n }", "function get_by_id( $card_id )\n {\n $this->db->join('card_types', 'card_types.type_id=cards.type_id');\n $this->db->where('card_id', $card_id);\n $this->db->limit(1);\n return $this->db->get($this->table)->row();\n }", "public function getPrimaryKey();", "public function getPrimaryKey();", "public function getPrimaryKey();", "protected function findPkSimple($key, $con)\n {\n $sql = 'SELECT `id`, `game_id`, `player_id`, `cards`, `type` FROM `cards` WHERE `id` = :p0';\n try {\n $stmt = $con->prepare($sql);\n $stmt->bindValue(':p0', $key, PDO::PARAM_INT);\n $stmt->execute();\n } catch (Exception $e) {\n Propel::log($e->getMessage(), Propel::LOG_ERR);\n throw new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e);\n }\n $obj = null;\n if ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n $obj = new Card();\n $obj->hydrate($row);\n CardPeer::addInstanceToPool($obj, (string) $key);\n }\n $stmt->closeCursor();\n\n return $obj;\n }", "function edit($id)\n { \n // check if the card exists before trying to edit it\n $data['card'] = $this->Card_model->get_card($id);\n \n if(isset($data['card']['id']))\n {\n if(isset($_POST) && count($_POST) > 0) \n { \n $params = array(\n\t\t\t\t\t'jns_card' => $this->input->post('jns_card'),\n );\n\n $this->Card_model->update_card($id,$params); \n redirect('card/index');\n }\n else\n {\n $data['_view'] = 'card/edit';\n $this->load->view('layouts/main',$data);\n }\n }\n else\n show_error('The card you are trying to edit does not exist.');\n }", "function getId_carrera(){\n\t\treturn $this->id_carrera;\n\t}", "public function buscarID()\n {\n $sentencia = \"SELECT id, cl FROM tsreportebocadetubo ORDER BY id DESC LIMIT 1\";\n try {\n $stm = $this->db->prepare($sentencia);\n $stm->execute();\n $registros = $stm->fetchAll(PDO::FETCH_OBJ);\n foreach ($registros as $r) {\n $id = $r->id;\n }\n return $id;\n } catch (Exception $e) {\n echo $e->getMessage();\n }\n }", "public function getPrimaryKey()\n {\n return $this->getIDCommande();\n }", "public function getPrimaryKey()\n\t{\n\t\treturn $this->getCoNumInventario();\n\t}", "public function edit(Card $card)\n {\n //\n }", "public function edit(Card $card)\n {\n //\n }", "public function edit(Card $card)\n {\n //\n }", "abstract public function getPrimaryKey();", "abstract public function getPrimaryKey();", "function GetPK($table) {\n $this->query = \"SELECT PK FROM metatabla WHERE lower(Nombre)='\".strtolower($table).\"'\";\n\n $this->consulta($this->query);\n if ($this->num_rows() > 0) { \n $this->rs01 = $this->fetch_row();\n $pk = $this->rs01[0];\n $this->cerrarConsulta();\n return $pk;\n }else{\n return false;\n }\t\n\t}", "abstract function getPrimaryKey();", "public function getId()\n {\n return $this->c_id;\n }", "function saveCard()\n {\n $table = 'module_isic_card';\n $card = $this->vars[\"card_id\"];\n $this->convertValueFieldKeys();\n //print_r($this->vars);\n // there are 2 possibilites for saving card (modify existing or add new)\n if ($card) { // modify existing card\n\n $row_old = $this->isic_common->getCardRecord($card);\n $t_field_data = $this->getFieldData($row_old[\"type_id\"]);\n\n\n $r = &$this->db->query('\n UPDATE\n `module_isic_card`\n SET\n `module_isic_card`.`moddate` = NOW(),\n `module_isic_card`.`moduser` = ?,\n `module_isic_card`.`person_name` = ?,\n `module_isic_card`.`person_addr1` = ?,\n `module_isic_card`.`person_addr2` = ?,\n `module_isic_card`.`person_addr3` = ?,\n `module_isic_card`.`person_addr4` = ?,\n `module_isic_card`.`person_email` = ?,\n `module_isic_card`.`person_phone` = ?,\n `module_isic_card`.`person_position` = ?,\n `module_isic_card`.`person_class` = ?,\n `module_isic_card`.`person_stru_unit` = ?,\n `module_isic_card`.`person_bankaccount` = ?,\n `module_isic_card`.`person_bankaccount_name` = ?,\n `module_isic_card`.`person_newsletter` = ?,\n `module_isic_card`.`confirm_user` = !,\n `module_isic_card`.`confirm_payment_collateral` = !,\n `module_isic_card`.`confirm_payment_cost` = !,\n `module_isic_card`.`confirm_admin` = !\n WHERE\n `module_isic_card`.`id` = !\n ', $this->userid,\n $this->vars[\"person_name\"],\n $this->vars[\"person_addr1\"],\n $this->vars[\"person_addr2\"],\n $this->vars[\"person_addr3\"],\n $this->vars[\"person_addr4\"],\n $this->vars[\"person_email\"],\n $this->vars[\"person_phone\"],\n $this->vars[\"person_position\"],\n $this->vars[\"person_class\"],\n $this->vars[\"person_stru_unit\"],\n $this->vars[\"person_bankaccount\"],\n $this->vars[\"person_bankaccount_name\"],\n $this->vars[\"person_newsletter\"] ? 1 : 0,\n $this->vars[\"confirm_user\"] ? 1: 0,\n $this->user_type == 1 ? ($this->vars[\"confirm_payment_collateral\"] ? 1 : 0) : $row_old[\"confirm_payment_collateral\"],\n $this->user_type == 1 ? ($this->vars[\"confirm_payment_cost\"] ? 1 : 0) : $row_old[\"confirm_payment_cost\"],\n $this->user_type == 1 ? ($this->vars[\"confirm_admin\"] ? 1 : 0) : $row_old[\"confirm_admin\"],\n $card\n );\n if ($r) {\n $success = true;\n $this->isic_common->saveCardChangeLog(2, $card, $row_old, $this->isic_common->getCardRecord($card));\n $message = 'card saved ...';\n } else {\n $success = false;\n $message = 'card modify failed ...';\n }\n\n } else { // adding new card\n $success = false;\n $action = 1; // add\n $t_field_data = $this->getFieldData($this->vars[\"type_id\"]);\n //print_r($t_field_data);\n foreach ($t_field_data[\"detailview\"] as $fkey => $fval) {\n // check for disabled fields, setting these values to empty\n if (in_array($action, $fval[\"disabled\"])) {\n unset($this->vars[$fkey]);\n continue;\n }\n // check for requried fields\n if (in_array($action, $fval[\"required\"])) {\n if (!$this->vars[$fkey]) {\n $error = $error_required_fields = true;\n break;\n }\n }\n if (!$error) {\n $insert_fields[] = $this->db->quote_field_name(\"{$fkey}\");\n $t_value = '';\n switch ($fval['type']) {\n case 1: // textfield\n $t_value = $this->db->quote($this->vars[$fkey] ? $this->vars[$fkey] : '');\n break;\n case 2: // combobox\n $t_value = $this->vars[$fkey] ? $this->vars[$fkey] : 0;\n break;\n case 3: // checkbox\n $t_value = $this->vars[$fkey] ? 1 : 0;\n break;\n case 5: // date\n $t_date = $this->convertDate($this->vars[$fkey]);\n $t_value = $this->db->quote($t_date);\n break;\n default :\n break;\n }\n $insert_values[] = $t_value;\n }\n }\n if (!$error) {\n $r = &$this->db->query('INSERT INTO ' . $this->db->quote_field_name($table) . ' FIELDS (' . implode(',', $insert_fields) . ') VALUES (' . implode(',', $insert_values) . ')');\n echo \"<!-- \" . $this->db->show_query() . \" -->\\n\";\n $card = $this->db->insert_id();\n\n }\n\n if ($r && $card) {\n $success = true;\n $this->isic_common->saveCardChangeLog(1, $card, array(), $this->isic_common->getCardRecord($card));\n $message = 'new card saved ...';\n } else {\n $success = false;\n $message = 'card add failed ...';\n }\n }\n\n echo JsonEncoder::encode(array('success' => $success, 'msg' => $message));\n exit();\n \n }", "function MaterialId($id,$indice){\n //Construimos la consulta\n $sql=\"SELECT* FROM material_entregado\n WHERE materiales=$indice and empleado=$id order by id desc limit 1\";\n //Realizamos la consulta\n $resultado=$this->realizarConsulta($sql);\n if($resultado!=false){\n if($resultado!=false){\n return $resultado->fetch_assoc();\n }else{\n return null;\n }\n }else{\n return null;\n }\n }", "public function getContrato_id() {\n return $this->contrato_id;\n }", "protected function k_CardId():string {return '';}", "public function getFirstCardId(int $user_id): int\n\t{\n\t\treturn $this->where('user_id', $user_id)->first()->id ?? 0;\n\t}", "public function getCidCard()\n {\n return $this->cid_card;\n }", "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = CardPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(CardPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "public function getIdContrato()\n {\n return $this->id_contrato;\n }", "public function PK($table_name){\n $PK = DB::select('SELECT FNC_GETPK(\"'.$table_name.'\");');\n foreach ($PK as $value) {\n $result = $value;\n }\n foreach ($result as $id) {\n $result = $id; // primary key\n }\n\n return $id;\n }", "function obtenerServicioID($descripcion){\n\n\t $query = $this->db->get('servicio');\n\t \n\t if($query-> num_rows() > 0){\n\t $row = $query->row($descripcion);\n\t\tif (isset($row))\n\t\t\t{\n \treturn $row->id;\n\t\t\t} \n\t }\n\t else return false ;\n\t}", "function id_imm_to_id_cli($id_imm=\"\"){\n\t$db = new db(DB_USER,DB_PASSWORD,DB_NAME,DB_HOST);\n\n\t$q=\"SELECT * FROM cli_imm WHERE id_imm=$id_imm\";\n\t$r=$db->query($q);\n if($r){\n $ro=mysql_fetch_array($r);\n\treturn $ro['id_cli'];\n }\n}", "public function getPrimaryKey()\n {\n return $this->getSekolahId();\n }", "public static function getPk(){\n return static::$_primaryKey;\n }", "public function get_primary_row(){\r\n $result = $this->db->query(\"SHOW KEYS FROM \". $this->db->formatTableName($this->table). \"\r\n WHERE Key_name = %s\"\r\n , \"PRIMARY\");\r\n $pk = \"\";\r\n foreach ($result as $res){\r\n $pk = $res[\"Column_name\"];\r\n }\r\n return $pk;\r\n }", "public function getPrimaryKey()\n {\n return $this->getIdmontacargas();\n }", "public function get_id();", "public function get_id();", "public function getCustomerCardId(): ?string\n {\n if (count($this->customerCardId) == 0) {\n return null;\n }\n return $this->customerCardId['value'];\n }", "public static function getCardById($id)\n {\n\t\t$key = 'CardById_' . $id;\n\t\t$cache = Hapyfish_Cache_Memcached::getInstance();\n\t\t$card = $cache->get($key);\n\t\tif ($card === false) {\n\t\t\t//load from database\n\t\t\t$db = Hapyfish_Island_Dal_Card::getDefaultInstance();\n\t\t\t$card = $db->getCardById($id);\n\t\t\tif ($card) {\n\t\t\t\t$cache->add($key, $card, Hapyfish_Cache_Memcached::LIFE_TIME_ONE_MONTH);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $card;\n }", "public function findOneByIdproveedormarca($key, $con = null)\n {\n return $this->findPk($key, $con);\n }", "public function getCardVueIdAttribute ()\n {\n $this->card_vue_id = $this->card_type . '_' . $this->tweet_id;\n return( $this->card_vue_id );\n }", "private function _fetch_primary_key()\n {\n if($this->primaryKey == NULl)\n {\n $this->primaryKey = $this->db->query(\"SHOW KEYS FROM `\".$this->_table.\"` WHERE Key_name = 'PRIMARY'\")->row()->Column_name;\n }\n }", "public function getIdEdificio()\n {\n return $this->c_id_edificio;\n }", "public function getCardcode()\n {\n return $this->cardcode;\n }", "private function _fetch_table_primary_key()\n {\n if ($this->primary_key == null) {\n $this->primary_key = preg_replace('/(_m|_model)?$/', '', strtolower(get_class($this))) . '_id';\n }\n }", "private function _fetch_table_primary_key()\n {\n if ($this->primary_key == null) {\n $this->primary_key = preg_replace('/(_m|_model)?$/', '', strtolower(get_class($this))) . '_id';\n }\n }", "function getIdClienteExpediente($id_exp,$id_clien){\n\n $this->db->select('cliente_expediente.id_cliente_expediente');\n $this->db->from('cliente_expediente');\n $this->db->where('cliente_expediente.id_cliente',$id_clien);\n $this->db->where('cliente_expediente.id_expediente',$id_exp);\n $query = $this->db->get();\n\n if ($query->num_rows()!=0)\n {\n return $query->row('id_cliente_expediente');\n }\n else{\n return 0;\n }\n }", "protected function findPkSimple($key, $con)\n {\n $sql = 'SELECT `idproveedormarca`, `idproveedor`, `idmarca` FROM `proveedormarca` WHERE `idproveedormarca` = :p0';\n try {\n $stmt = $con->prepare($sql);\n $stmt->bindValue(':p0', $key, PDO::PARAM_INT);\n $stmt->execute();\n } catch (Exception $e) {\n Propel::log($e->getMessage(), Propel::LOG_ERR);\n throw new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e);\n }\n $obj = null;\n if ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n $obj = new Proveedormarca();\n $obj->hydrate($row);\n ProveedormarcaPeer::addInstanceToPool($obj, (string) $key);\n }\n $stmt->closeCursor();\n\n return $obj;\n }", "public function getClivres_id($clivres_id=null)\n {\n if ($clivres_id != null && is_array($this->livres) && count($this->livres)!=0) {\n $table_name = strtolower(get_class($this));\n $query = \"SELECT * FROM $table_name WHERE clivres_id = ?\";\n $req = Manager::bdd()->prepare($query);\n $req->execute([$clivres_id]);\n $data = \"\";\n if ($data = $req->fetchAll(PDO::FETCH_ASSOC)) {\n$d=$data[0];\n$this->setId($d['id']);\n$this->setTitre($d['titre']);\n$this->setDescription($d['description']);\n$this->setDate($d['date']);\n$this->setClivres_id($d['clivres_id']);\n$this->setAuteur($d['auteur']);\n$this->setPhoto($d['photo']);\n$this->setChemin($d['chemin']);\n$this->livres =$data; \n return $this;\n }\n \n } else {\n return $this->clivres_id;\n }\n \n }", "public function get_card(){ return $this->_card;}", "public function edit($id_cliente){}", "function Muestra($CardCode){\n\t\tif($this->con->conectar()==true){\n\t\t\treturn mysql_query(\"SELECT * FROM `Carrito` WHERE `CardCode` = '\" .$CardCode. \"'\");\n\t\t}\n\t}", "function getFarmersMSCID($id){\n\t$crud = new CRUD();\n\t$crud->connect();\n\n\t$crud -> sql(\"SELECT * FROM pigs_tbl WHERE pig_id='{$id}' \");\n\t$r = $crud->getResult();\n\tforeach($r as $rs){\n\t\treturn $rs['farmer_id_fk'];\n\t}\n\t$crud->disconnect();\n}", "public function conseguirId (){\n $query = $this->db->query (\"SELECT * FROM acceso WHERE id_acceso = '{$this->id_acceso}'\");\n if ($query->num_rows === 1)\n {\n $this->datos= $query->fetch_assoc();\n \n }\n return $this->datos;\n }", "public function carId()\n {\n return parent::getId();\n }", "public function findPostcardById($id)\n\t{\n\t\treturn $this->repository->findOneById($id);\n\t}", "function getDatosId_preceptor()\n {\n $nom_tabla = $this->getNomTabla();\n $oDatosCampo = new core\\DatosCampo(array('nom_tabla' => $nom_tabla, 'nom_camp' => 'id_preceptor'));\n $oDatosCampo->setEtiqueta(_(\"id_preceptor\"));\n return $oDatosCampo;\n }", "public function edit(Postcard $postcard)\n {\n //\n }", "public function getNumeroCarteAgence()\n {\n $query_rq_numero = \"SELECT agence.idcard FROM agence WHERE agence.rowid = :agence\";\n $numero = $this->getConnexion()->prepare($query_rq_numero);\n $numero ->bindParam(\"agence\",$this->idagence);\n $numero->execute();\n $row_rq_numero= $numero->fetchObject();\n //return $this->idagence;\n return $row_rq_numero->idcard;\n }", "public function getIidCard()\n {\n return $this->iid_card;\n }", "public function obtenerIDPrimerPagoElectronico(){\n $criteria = new CDbCriteria;\n $criteria->condition = 'id_pedido = '.$this->id_pedido;\n $registrosCarro = PagosElectronicos::model()->findAll($criteria);\n\n if (sizeof($registrosCarro) > 0)\n return $registrosCarro[0]->id;\n return 0;\n }", "public function editcardAction()\n {\n $isValidToken = false;\n $token = $this->getRequest()->getParam('t');\n $customer = $this->_getCustomer();\n $api = $this->_getApi();\n $paymentMethods = $api->getPaymentMethods($customer->getId(), true);\n \n foreach($paymentMethods as $key => $pm) {\n if($pm->getData('paymentMethodToken') == $token) {\n $isValidToken = true;\n }\n }\n \n if($isValidToken) {\n \n } else {\n Mage::getSingleton('core/session')->addError('Credit card token is not valid. Please try again.');\n $this->_redirect('payments/customer/creditcards');\n }\n \n $this->loadLayout();\n $this->_initLayoutMessages('customer/session');\n $this->renderLayout();\n }", "public function getCurrentCartIdentifier();", "protected function cargaIdUbicacion() {\n $dao = new PGDAO();\n $strSql = $this->COLECCIONMAPEOUBICA . $this->propiedad->getId_ubica();\n $arrayDatos = $this->leeDBArray($dao->execSql($strSql));\n $id = $arrayDatos[0]['zpubica'];\n return $id;\n }", "public static function getById($cedulaCliente){\n\t\t//consulta del credito\n\t\t$consulta = \"SELECT nroPrestamo,\n\t\t\t\t\t\t\tfecha,\n\t\t\t\t\t\t\tmonto,\n\t\t\t\t\t\t\tinteres,\n\t\t\t\t\t\t\tnroCuotas\n\t\t\t\t\t\t\tFROM prestamos\n\t\t\t\t\t\t\tWHERE cedulaCliente = ?\";\n\t\ttry {\n\t\t\t//preparar la sentencia\n\t\t\t$comando = Database::getInstance()->getDb()->prepare($consulta);\n\t\t\t//ejecutar la sentencia preparada\n\t\t\t$comando->execute(array($cedulaCliente));\n\t\t\t//capturar primera fila del resultado\n\t\t\t$row = $comando->fetch(PDO::FETCH_ASSOC);\n\t\t\treturn $row;\n\n\t\t} catch (PDOException $e) {\n\t\t\treturn -1;\n\t\t}\n\t}", "public function getCartIdentifire()\n {\n return $this->hasOne(Cart::className(), ['cart_identifire' => 'cart_identifire']);\n }", "public function getIdCadeira()\n {\n return $this->idCadeira;\n }", "public function getCartId()\n {\n return $this->id;\n }", "protected function findPkSimple($key, $con)\n\t{\n\t\t$sql = 'SELECT `ID`, `CASO_ID`, `TITULO`, `DESCRICAO`, `DATA_CRIACAO` FROM `anotacao_caso` WHERE `ID` = :p0';\n\t\ttry {\n\t\t\t$stmt = $con->prepare($sql);\t\t\t\n\t\t\t$stmt->bindValue(':p0', $key, PDO::PARAM_INT);\n\t\t\t$stmt->execute();\n\t\t} catch (Exception $e) {\n\t\t\tPropel::log($e->getMessage(), Propel::LOG_ERR);\n\t\t\tthrow new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e);\n\t\t}\n\t\t$obj = null;\n\t\tif ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n\t\t\t$obj = new AnotacaoCaso();\n\t\t\t$obj->hydrate($row);\n\t\t\tAnotacaoCasoPeer::addInstanceToPool($obj, (string) $row[0]);\n\t\t}\n\t\t$stmt->closeCursor();\n\n\t\treturn $obj;\n\t}", "public static function getId()\n {\n return $getId = DB::table('presensi')->orderBy('id','DESC')->take(1)->get();\n }", "public function setIdCard($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->id_card !== $v) {\n $this->id_card = $v;\n $this->modifiedColumns[AliMemberTableMap::COL_ID_CARD] = true;\n }\n\n return $this;\n }", "function ler_id($id) {\n $x = (int)$id;\n if($x >= $this->bd[0][0] || $x <= 0) {return false;}\n //comecando a setar tudo\n $this->id = $this->bd[$x][0];\n $this->maximo = $this->bd[$x][1];\n $this->nome = $this->bd[$x][2];\n $this->categoria = $this->bd[$x][3];\n $this->tipo = $this->bd[$x][4];\n $this->atributo = $this->bd[$x][5];\n $this->specie = $this->bd[$x][6];\n $this->lv = $this->bd[$x][7];\n $this->atk = $this->bd[$x][8];\n $this->def = $this->bd[$x][9];\n $this->preco = $this->bd[$x][10];\n $this->descricao = $this->bd[$x][11];\n $this->img = '../imgs/cards/'.$this->id.'.png';\n return true;\n }", "public function getId() {\r\n\t\treturn($this->_currency_id);\r\n\t}", "public function cartId() {\n\t\treturn $this->field('Cart.id', $this->cartConditions());\n\t}", "function getId() {\n\t$this->load();\n\treturn $this->mId;\n }", "public static function mdlRecuperarIDVehiculo($tabla, $Matricula){\n $stmt = Conexion::conectar()->prepare(\"SELECT id_v FROM $tabla WHERE Matricula = '$Matricula'\");\n $stmt->execute();\n $respuesta = $stmt->fetch();\n //echo 'Respuesta: ',$respuesta[0];\n if ($respuesta!=null)\n return $respuesta[0];\n return null;\n // Array = {115}\n //Respuesta= 115\n }", "public function obtenerEmpresaPorId($empresa_id=0){ \t\n return self::find() \n ->select('candidato_id,ruc,razon_social,correo_electronico,estado,contrasena')\n ->where('empresa_id='.$empresa_id)\n ->one(); \n }", "public function id()\n\t{\n\t\treturn $this->get($this->meta()->primary_key);\n\t}", "public function getId() {\n return $this->datosprop->getId_prop_carac();\n }", "public function consultarId(){\r\n\r\n\t\t\t$conexion=new conexion();\r\n\r\n\t\t\t$query =\"SELECT * FROM imgEncabezado\r\n\t\t\t\t\t\tWHERE idimg=\".$this->getIdImg().\";\";\r\n\t\t\t$resultado =pg_query($conexion->getStrcnx(),$query);\r\n\t\t\tpg_close($conexion->getStrcnx()); //cerramos la conexion a la db\r\n\t\t\t\r\n\t\t\treturn $resultado;\r\n\t\t}", "public function getPrimaryKey()\n\t{\n\t\treturn $this->getCoUsuario();\n\t}", "function fetch_cart_id ($external_cart_id) {\n $db = getDb();\n $statement = $db->prepare(\"\n SELECT\n cart_id\n FROM\n cart\n WHERE\n external_cart_id = :external_cart_id\n \");\n $statement->execute([\"external_cart_id\"=>$external_cart_id]);\n $cart = $statement->fetchObject();\n if (!$cart) {\n throw new RowNotFoundException(\"Cart not found\");\n }\n return $cart->cart_id;\n}", "public function getPk()\n {\n return $this->{static::primaryKey()};\n }", "public function ComprasPorId()\n{\n\tself::SetNames();\n\t$sql = \" SELECT * FROM (compras INNER JOIN proveedores ON compras.codproveedor = proveedores.codproveedor) INNER JOIN usuarios ON compras.codigo = usuarios.codigo LEFT JOIN mediospagos ON compras.formacompra = mediospagos.codmediopago WHERE compras.codcompra = ?\";\t\n\t$stmt = $this->dbh->prepare($sql);\n\t$stmt->execute( array(base64_decode($_GET[\"codcompra\"])) );\n\t$num = $stmt->rowCount();\n\tif($num==0)\n\t{\n\t\techo \"\";\n\t}\n\telse\n\t{\n\t\tif($row = $stmt->fetch(PDO::FETCH_ASSOC))\n\t\t\t{\n\t\t\t\t$this->p[] = $row;\n\t\t\t}\n\t\t\treturn $this->p;\n\t\t\t$this->dbh=null;\n\t\t}\n\t}", "public function getId()\n {\n \treturn $this->id_actadocumentacion;\n }", "protected function findPkSimple($key, $con)\n {\n $sql = 'SELECT `idpagocontrarecibo`, `pagocontrarecibo_comprobante`, `pagocontrarecibo_fechapago`, `pagocontrarecibo_cantidad`, `idcontrarecibodetalle`, `idusuario` FROM `pagocontrarecibo` WHERE `idpagocontrarecibo` = :p0';\n try {\n $stmt = $con->prepare($sql);\n $stmt->bindValue(':p0', $key, PDO::PARAM_INT);\n $stmt->execute();\n } catch (Exception $e) {\n Propel::log($e->getMessage(), Propel::LOG_ERR);\n throw new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e);\n }\n $obj = null;\n if ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n $obj = new Pagocontrarecibo();\n $obj->hydrate($row);\n PagocontrareciboPeer::addInstanceToPool($obj, (string) $key);\n }\n $stmt->closeCursor();\n\n return $obj;\n }", "function getDatosId_preceptor()\n {\n $nom_tabla = $this->getNomTabla();\n $oDatosCampo = new core\\DatosCampo(array('nom_tabla' => $nom_tabla, 'nom_camp' => 'id_preceptor'));\n $oDatosCampo->setEtiqueta(_(\"nombre preceptor\"));\n return $oDatosCampo;\n }", "function discID($discID)\n{\n\tglobal $con;\n\t\n\t$query_ConsultaFuncion = sprintf(\"SELECT id_adm_disc FROM adm_discount_list WHERE code=%s\",\n\t\t\t\t\t\t\t\t\t\t GetSQLValueString($discID, \"text\"));\n\t//echo $query_ConsultaFuncion;\n\t$ConsultaFuncion = mysqli_query($con, $query_ConsultaFuncion) or die(mysqli_error($con));\n\t$row_ConsultaFuncion = mysqli_fetch_assoc($ConsultaFuncion);\n\t$totalRows_ConsultaFuncion = mysqli_num_rows($ConsultaFuncion);\n\t\n\treturn $row_ConsultaFuncion[\"id_adm_disc\"];\t\n\t\n\tmysqli_free_result($ConsultaFuncion);\n}", "private function getIdFromSpecialKey($key){\n\t\t$sql = \"SELECT id FROM member_info WHERE special_key = :specialKey\";\n\t\t$query = $this->db->pdo->prepare($sql);\n\t\t$query->bindValue(':specialKey', $key);\n\t\t$query->execute();\n\t\t$result = $query->fetch(PDO::FETCH_OBJ);\n\t\treturn $result->id;\n\t}", "public function returnDetailFindByPK($id);", "public function getIdMarca()\n {\n return $this->idMarca;\n }", "public function getPrimaryKey()\n\t{\n\t\treturn $this->getCoParticipante();\n\t}", "public function set_card(INT $_card){\n $this->_card = $_card;\n\n return $this;\n }", "function getChevalById(){\n\n\n\t\t$query = \"SELECT * from \". $this->table_name . \" WHERE id = ? \";\n\t\t$stmt = $this->conn->prepare( $query );\n\n\t\t// affecte la valeur de l id au paramètre de la requete\n\t\t$stmt->bindParam(1, $this->id);\n\n\t\t// execute la requete\n\t\t$stmt->execute();\n\n\t\t// recupere la ligne\n\t\t$row = $stmt->fetch(PDO::FETCH_ASSOC);\n\n // valorise les proprietes de cheval\n\t\t$this->id = $row['id'];\n\t\t$this->nom = $row['nom'];\n\t\t$this->sexe = $row['sexe'];\n\t\t$this->prixDepart = $row['prixDepart'];\n\n\t}", "static public function mdlObtenerUltimoId() {\r\n\r\n $sql = \"SELECT * FROM compras ORDER BY id DESC Limit 1\";\r\n\r\n $stmt = Conexion::conectar()->prepare($sql);\r\n\r\n $stmt -> execute();\r\n\r\n return $stmt -> fetch();\r\n\r\n }", "public function findByPk($primary)\n {\n $stmt = $this->Adapter->prepare(\"SELECT * FROM $this->table WHERE $this->primaryName=:id\");\n $stmt->execute(['id' => $primary]);\n return $stmt->fetch($this->pdoFetch);\n }", "function getIdtitulaire($num_complete_cpte) {\n\n\tglobal $dbHandler,$global_id_agence;\n\t$db = $dbHandler->openConnection();\n\t$sql = \" SELECT id_cpte,id_titulaire,num_complet_cpte from ad_cpt where num_complet_cpte = '$num_complete_cpte' ; \";\n\t$result = $db->query($sql);\n\tif (DB::isError($result)) {\n\t\t$dbHandler->closeConnection(false);\n\t\tsignalErreur(__FILE__,__LINE__,__FUNCTION__); // \"DB: \".$result->getMessage()\n\t}\n\t$dbHandler->closeConnection(true);\n\tif ($result->numRows() == 0)\n\t\treturn NULL;\n\t$tmpRow = $result->fetchrow();\n\n\treturn $tmpRow;\n}" ]
[ "0.64616126", "0.6323532", "0.60815126", "0.5865622", "0.58436286", "0.5807469", "0.58003604", "0.58003604", "0.58003604", "0.5768771", "0.5760196", "0.57195956", "0.56963295", "0.56926936", "0.56640303", "0.56560004", "0.56560004", "0.56560004", "0.5654724", "0.5654724", "0.56513256", "0.564497", "0.5634528", "0.5634324", "0.56218827", "0.5621792", "0.56131285", "0.5606699", "0.55845445", "0.55765545", "0.553007", "0.5504588", "0.5503732", "0.54845124", "0.548249", "0.54773563", "0.5465877", "0.5460724", "0.5450604", "0.5450604", "0.5446311", "0.54399586", "0.54289657", "0.5425943", "0.53948784", "0.53907216", "0.53889257", "0.53848803", "0.53848803", "0.536493", "0.5357946", "0.5354519", "0.5352901", "0.5349694", "0.5345751", "0.53413016", "0.5337449", "0.5336241", "0.5331143", "0.5325742", "0.5319174", "0.53101057", "0.53071547", "0.53010875", "0.5299006", "0.52982974", "0.5296597", "0.5284286", "0.52777207", "0.5266693", "0.52640855", "0.52587813", "0.5253129", "0.5253122", "0.5249807", "0.5249483", "0.5243725", "0.52378", "0.52355", "0.5225402", "0.5224949", "0.52226573", "0.5221855", "0.52109116", "0.52101815", "0.52097243", "0.52090335", "0.5201489", "0.5193257", "0.51809925", "0.5171491", "0.5167336", "0.5157175", "0.51496875", "0.5132343", "0.5130347", "0.5127324", "0.51268595", "0.5123155", "0.5122703" ]
0.60516536
3
constructor de la clase por defecto, recibe el nombre de la tabla a cargar
public function __construct($table_name = null) { if ($table_name != null) { $this->table_name = $table_name; } $this->table_label = $table_name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __construct($className) {\n global $GLOBAL_DATATABLES;\n $this->className = $className;\n $this->tableName = $GLOBAL_DATATABLES[$className];\n $this->table = DBTable::getTable($this->tableName);\n }", "function __construct($id=\"\") {\n //echo \"ciao\";\n \n $this->setNometabella(\"localita\");\n $this->tabella= array(\"nome\"=>\"\",\"provincia\"=>\"\",\"cap\"=>\"\",\"codice\"=>\"\",\"solodestinazione\"=>\"\");\n parent::__construct($id);\n}", "function __construct()\n {\n if (empty($this->table)) {\n $this->table = get_called_class();\n }\n }", "function cl_tabrecregrasjm() { \n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"tabrecregrasjm\"); \n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "private function _fetch_table()\n {\n if ($this->table_name == null) {\n $this->table_name = preg_replace('/(_m|_model)?$/', '', strtolower(get_class($this)));\n }\n }", "private function _fetch_table()\n {\n if ($this->table_name == null) {\n $this->table_name = preg_replace('/(_m|_model)?$/', '', strtolower(get_class($this)));\n }\n }", "public function __construct()\n {\n $this->currentId = Piwik_DataTable_Manager::getInstance()->addTable($this);\n }", "public function initTable(){\n\t\t\t\n\t\t}", "function __construct($table_name = NULL, $data_row_name = NULL, $id_row_name = NULL){\r\n\t\t$this->Init($table_name, $data_row_name, $id_row_name);\r\n\t}", "function tablaRuta($Nombre){\r\n\t\t$query = \"SELECT * FROM \" . self::TABLA . \";\";\r\n\t\treturn parent::tablaRegistro($Nombre, $query);\r\n\t\r\n }", "function __construct() {\r\n\t\t\r\n\t\t$this->conexaoDB=new DB();\r\n\t\t$this->tabela=\"retirante\";\r\n\t\r\n\t}", "public function __construct()\n {\n parent::__construct();\n\n if (!$this->table) {\n $this->table = strtolower(str_replace('_model','',get_class($this))); //fungsi untuk menentukan nama tabel berdasarkan nama model\n }\n }", "public function __construct(){\n $this->table=\"usuarios\";\n parent::__construct($this->table);\n }", "function __construct() {\n\t\t$this->table_name = 'expand';\n\t\tparent::__construct();\n\t}", "public function __construct($tableName='table',$nickName='') {\r\n $a = explode('--', preg_replace('/\\s+/', '--', trim($tableName)));\r\n $this->name = $tableName;\r\n $this->tableName = $a[0];\r\n if(count($a)>1){\r\n $this->nickName = $a[count($a)-1];\r\n }\r\n if(preg_match('/^[A-z]{1}[A-z0-9_]+$/',$nickName)){\r\n $this->nickName = $nickName;\r\n }\r\n $p = db::getPrefix();\r\n $fields = array();\r\n $types = array();\r\n $stmt = db::query(\"DESCRIBE {$p}{$a[0]}\");\r\n if($tableFields = $stmt->fetchAll(PDO::FETCH_ASSOC)){\r\n foreach($tableFields as $column){\r\n $f = $column['Field'];\r\n if($column['Key']=='PRI'){\r\n $this->idField = $f;\r\n }\r\n $fields[] = $f;\r\n $b = explode('(', $column['Type']);\r\n $types[$f] = $b[0];\r\n }\r\n }\r\n $this->fields = $fields;\r\n $this->fieldTypes = $types;\r\n }", "private function _fetch_table()\n {\n if ($this->_table == NULL)\n {\n $this->_table = plural(preg_replace('/(_m|_model)?$/', '', strtolower(get_class($this))));\n }\n }", "public function __construct()\n {\n //parent::__construct();\n //$this->table_name = $this->TABLE;\n }", "public function __construct() \n\t{\t\n parent::__construct();\n $this->load->database();\n $this->id = \"idAcuerdos\";\n $this->table_name = \"Acuerdos\";\n\t}", "function init(){\n\t\t/*\n\t\t * Redefine this object, call parent then use addField to specify which fields\n\t\t * you are going to use\n\t\t */\n\t\tparent::init();\n\t\t$this->table_name = get_class($this);\n\t}", "public function __construct()\n {\n parent::__construct(self::TABLE);\n }", "private function _fetch_table()\n {\n if (!isset($this->table))\n {\n $this->table = $this->_get_table_name(get_class($this));\n }\n }", "private static function getTable(){ // on crée la function getTable static protected\n\t\tif(static::$table===null){ // si $table === null alors \n\t\t\t$class_name = explode('\\\\', get_called_class()); //$class_name = explode (separe une chaine de caractère (exemple : USER\\Table\\mika) \\ USER= array(0) \\Table = array(1) \\mika = array(2)) get_called_class retourne le parent de la class qu'on appelle\n\t\t\tstatic::$table = strtolower(end($class_name)).\"s\";\n\t\t}\t// strtolower transforme tout en minuscule et rajoute un \"s\" à la fin\n\t\treturn static::$table; // retourne $table\n\t\t\n\t}", "function __construct($table_name, $class_name) {\n parent::__construct($table_name, $class_name, \"dictionary_table_text\", \"dictionary_table_text\");\n $this->foreigen_keys = array();\n $this->select_display_field = \"person_type_name\";\n $this->fields_prev_text_array = array(\"person_type_name\"=>\"Наименование должности\");\n $this->hidden_keys = array(\"id\"=>\"hidden\", \"code\"=>\"hidden\");\n }", "function __construct() \n {\n // Creation de la table\n self::createTableIfNeeded();\n }", "public function __construct()\n {\n parent::__construct();//, $this->fields);\n parent::findTable($this->tableName);\n }", "public function __construct(){\n\t\tparent::__construct($this->table);\n\t}", "abstract public function getTableName();", "abstract public function getTableName();", "abstract public function getTableName();", "abstract public static function getTableName();", "abstract public static function getTableName();", "abstract protected function getTableName();", "abstract protected function getTableName();", "protected function _construct()\n {\n $this->_init(self::TABLE_NAME, self::TABLE_ID);\n }", "function __construct($table){\n\t\tparent::__construct($table);\n\t}", "public static function getTablename() { return \"Productos_01\"; }", "public function getTableName() {}", "public function getTableName() {}", "public function __construct()\n\t{\n\t\t$this->tableObjects = Array();\n\t\t$this->count = 0;\n\t}", "function __construct($table_name) {\n\t\t$this->table_name = $table_name;\n\t}", "public function __construct(){\n \n $this->create_tables();\n \n }", "function load() {\n\t\tglobal $mysql;\n //if(!$this->exists()) return;\n \t$id \t\t= $mysql->escape($this->id);\n \t$tablename \t= $this->class_name();\n \t$this->data = $mysql->executeSql(\"SELECT * FROM \".$tablename.\" WHERE id=$id;\");\n \t$this->id\t= $this->data['id'];\n \tunset($this->data['id']);\n }", "protected function _initsTable() {}", "public function getTableName() ;", "public function __construct() {\r\n parent::__construct();\r\n parent::set_tabel('jadwal', 'kd_jadwal');\r\n }", "protected function _construct() \n {\n $this->selectedModule = $this->choice('For Which Module ?',$this->modulesName());\n\t\t$this->className = 'Create'.ucfirst($this->moduleName).'Table';\n }", "public function getTable();", "public function __construct($id=0,$keyName='id',$table=''){\n\t\t$this->firephp = FirePHP::getInstance(true);\n\t\t\n\t\tif($id){\n\t\t\t$this->table = $table;\t\t\t\n\t\t\t$this->keyName = $keyName;\t\t\t\n\t\t\t$this->loadItem($id);\n\t\t}\n\t}", "public function __construct($tabela) {\n $this->tabela = $tabela;\n parent::__construct();\n }", "public function __construct()\n {\n parent::__construct();\n $this->table = 'actividades';\n }", "public function __construct($table){\n parent::__construct($table);\n }", "protected function setTable()\n {\n $class = explode('\\\\', get_called_class());\n $this->table = lcfirst(end($class)).'s';\n }", "public function __construct()\n\t\t{\n\t\t\t$this->_db_table = new Application_Model_DbTable_TourType();\n\t\t}", "private function getTableName()\n {\n $class = get_class($this);\n\n $mem = new Cache();\n if ($tableName = $mem->get($class . '-table-name')) {\n return $tableName;\n }\n\n $break = explode('\\\\', $class);\n $ObjectName = end($break);\n $className = strtolower(preg_replace('/([a-z])([A-Z])/', '$1_$2', $ObjectName));\n $tableName = Inflect::pluralize($className);\n\n $mem->add($class . '-table-name', $tableName, 1440);\n\n return $tableName;\n }", "function __construct() {\n\t\t\t$this->db_name = DATABASE;\n\t\t\t//$this->table1 = TKR_TBL; \n\t\t\t//$this->table2 = DATA_TBL;\n\t\t\t\n\t\t\t}", "public function __construct($tblPrefix = \"\");", "public function __construct($tabName) {\n $this->con = mysql_connect(\"localhost\", \"root\", \"\"); // Local\n if (!$this->con) {\n die(\"Couldn't connect to database!!!\");\n }\n // mysql_select_db(\"ezeepixw_beta\", $this->con);// Server\n mysql_select_db(\"ezeepix\", $this->con);// Local\n $this->tableName = $tabName;\n }", "private function __construct() { \n $this->movieData = $this->generateTable();\n\n }", "function getItemTableName() ;", "public function getTable();", "public function getTable();", "public function getTable();", "public function getTable();", "public function getTable();", "public function getTable();", "public function getTable();", "public function __construct()\n {\n parent::__construct();\n $this->tables = [\n 'leagues',\n 'players',\n\t 'league_player',\n 'scores',\n 'jobs',\n 'failed_jobs',\n ];\n }", "public function __construct () {\n\t\t$view_parameters = [];\n\t\t$view_parameters['table_name'] = $_GET['table_name'];\n\t\t\n\t\t$q = '\n\t\t\tSELECT *\n\t\t\tFROM `'.$_GET['table_name'].'`';\n\t\t$r = \\Core\\Database::query ($q);\n\t\t\n\t\t$view_parameters['table_rows'] = $r;\n\t\t\n\t\t$view = new TableView ($view_parameters);\n\t\t$view->render ();\n\t}", "public function nombreTabla( $nombre ){\n $this->json[ \"tabla\" ] = $nombre;\n }", "public function getTableName();", "public function getTableName();", "public function __construct() \r\n {\r\n \t$this->id = 0;\r\n\t\t$this->nombre = \"\";\r\n\t\t$this->clave = \"\";\r\n\t\t$this->privilegio = \"\";\r\n \t$this->con = new cConexion();\r\n\t\t$this->tabla = \"usuario\";\r\n\t\t//$this->con->Conectar();\r\n }", "function __construct()\n {\n parent::__construct();\n $this->table = 'ms_pengguna';\n }", "public function __construct(){\n\t\tparent::__construct($this->tbname);\n\t}", "public function __construct(){\n\t\tparent::__construct($this->tbname);\n\t}", "function __construct() {\n \t$this->tablename \t\t\t= \"block_ilp_plu_dd\";\n \t$this->data_entry_tablename = \"block_ilp_plu_dd_ent\";\n\t\t$this->items_tablename \t\t= \"block_ilp_plu_dd_items\";\n\tparent::__construct();\n }", "abstract public function getTable();", "abstract public function getTable();", "public function __construct()\n\n {\n parent::__construct();\n\n $this->tablename=\"produit\";\n $this->idp = 'null' ;\n $this->idc = 0 ;\n $this->id_cat = 0 ;\n $this->desi = \"\" ;\n $this->photo = \"\" ;\n $this->prixa = 0 ;\n $this->prixv = 0 ;\n $this->qnt = 0 ;\n $this->composer = 0 ;\n $this->ftech = \"\" ;\n $this->flag = 0 ;\n }", "public function __construct( $tableName ) {\n\t\t$this->tableName = $tableName;\n\t}", "public function __construct()\n\t\t{\n\t\t\t$this->tableName = 'users';\n\t\t\t//$this->id=$id;\n\t\t\tparent::__construct();\n\t\t}", "abstract protected function getTable();", "public function __construct() {\n \n $this->tableName = \"db_database\";\n $this->setColumnsInfo(\"id\", \"int(11)\", 0);\n $this->setColumnsInfo(\"id_space\", \"int(11)\", 0);\n $this->setColumnsInfo(\"name\", \"varchar(250)\", \"\");\n $this->primaryKey = \"id\";\n }", "protected function tableclass(){\n\n\t\tforeach($this->mapChild($this) as $key => $table ){\n\n\t\t\t$myadrs = $this->address;\n\n\t\t\tif(!in_array($table,$myadrs)){\n\n\t\t\t\tarray_push($myadrs,$table);\n\n\t\t\t\teval('$this->'.$table.' = new $this::$tclass($myadrs);');\n\n\t\t\t}\n\n\t\t\t//print($key . ':' .$table. p);\n\n\t\t}\n\n\t}", "public function __construct() \n\t{ \n\t parent::__construct();\n \n //- ajout du header\n $this->obj_tr_entete=$this->addTr();\n $this->obj_tr_entete->setClass('table_with_search_header titre3');\n \n //- limite du nombre de ligne\n $this->int_nb_ligne_page=30; \n\t}", "public function __construct() {\n $this->db = \\Config\\Database::connect();\n // Wir verwenden die Query Builder Klasse über table()\n $this->reiter = $this->db->table('Reiter');\n }", "public function getTable() {}", "public function getTable() {}", "public function getTable() {}", "function __construct($_dataTableName = 'Application_Model_DbTable_ProjectCcLicense')\n {\n $this->_dataTableName = $_dataTableName;\n $this->_dataTable = new $this->_dataTableName;\n }", "function __construct()\n {\n parent::__construct();\n $this->_tablename = $this->db->dbprefix('dealer');\n }", "function __construct()\n {\n if (!empty($_SESSION['oDBListas']) && $_SESSION['oDBListas'] == 'error') {\n exit(_(\"no se puede conectar con la base de datos de Listas\"));\n }\n $oDbl = $GLOBALS['oDBListas'];\n $this->setoDbl($oDbl);\n $this->setNomTabla('dbo.q_dl_Estudios_b');\n }", "function getTablas() {\r\n $tablas['inventario_equipo']['id']='inventario_equipo';\r\n $tablas['inventario_equipo']['nombre']='Inventario (equipo)';\r\n\r\n $tablas['inventario_grupo']['id']='inventario_grupo';\r\n $tablas['inventario_grupo']['nombre']='Inventario (grupo)';\r\n\r\n $tablas['inventario_estado']['id']='inventario_estado';\r\n $tablas['inventario_estado']['nombre']='Inventario (estado)';\r\n\r\n $tablas['inventario_marca']['id']='inventario_marca';\r\n $tablas['inventario_marca']['nombre']='Inventario (marca)';\r\n\r\n $tablas['obligacion_clausula']['id']='obligacion_clausula';\r\n $tablas['obligacion_clausula']['nombre']='Obligacion (clausula)';\r\n\r\n $tablas['obligacion_componente']['id']='obligacion_componente';\r\n $tablas['obligacion_componente']['nombre']='Obligacion (componente)';\r\n\r\n $tablas['documento_tipo']['id']='documento_tipo';\r\n $tablas['documento_tipo']['nombre']='Documento (Tipo)';\r\n\r\n \t\t$tablas['documento_tema']['id']='documento_tema';\r\n \t\t$tablas['documento_tema']['nombre']='Documento (Tema)';\r\n\r\n \t\t$tablas['documento_subtema']['id']='documento_subtema';\r\n \t\t$tablas['documento_subtema']['nombre']='Documento (Subtema)';\r\n\r\n \t\t$tablas['documento_estado']['id']='documento_estado';\r\n \t\t$tablas['documento_estado']['nombre']='Documento (Estado)';\r\n\r\n \t\t$tablas['documento_estado_respuesta']['id']='documento_estado_respuesta';\r\n \t\t$tablas['documento_estado_respuesta']['nombre']='Documento (Estado Respuesta)';\r\n\r\n \t\t$tablas['documento_actor']['id']='documento_actor';\r\n \t\t$tablas['documento_actor']['nombre']='Documento (Responsables)';\r\n\r\n \t\t$tablas['documento_tipo_actor']['id']='documento_tipo_actor';\r\n \t\t$tablas['documento_tipo_actor']['nombre']='Documento (Tipo de Responsable)';\r\n\r\n \t\t$tablas['riesgo_probabilidad']['id']='riesgo_probabilidad';\r\n \t\t$tablas['riesgo_probabilidad']['nombre']='Riesgo (Probabilidad)';\r\n\r\n \t\t$tablas['riesgo_categoria']['id']='riesgo_categoria';\r\n \t\t$tablas['riesgo_categoria']['nombre']='Riesgo (Categoria)';\r\n\r\n \t\t$tablas['riesgo_impacto']['id']='riesgo_impacto';\r\n \t\t$tablas['riesgo_impacto']['nombre']='Riesgo (Impacto)';\r\n\r\n \t\t$tablas['compromiso_estado']['id']='compromiso_estado';\r\n \t\t$tablas['compromiso_estado']['nombre']='Compromisos (Estado)';\r\n\r\n \t\t$tablas['departamento']['id']='departamento';\r\n \t\t$tablas['departamento']['nombre']='Departamentos';\r\n\r\n \t\t$tablas['departamento_region']['id']='departamento_region';\r\n \t\t$tablas['departamento_region']['nombre']='Departamentos (Region)';\r\n\r\n \t\t$tablas['municipio']['id']='municipio';\r\n \t\t$tablas['municipio']['nombre']='Municipios';\r\n\r\n $tablas['operador']['id']='operador';\r\n\t $tablas['operador']['nombre']='Operador';\r\n\r\n asort($tablas);\r\n return $tablas;\r\n }", "function __construct($tabName){\n\t\tif(count($tabName) == 1){\n\t\t\tparent::setTableName($tabName);\n\t\t\t/**$this->s = */parent::executeQuery();\n\t\t\t//parent::displayResults($this->s);\n\t\t}else{\n\t\t\t$this->fieldName = $tabName[\"fieldName\"];\n\t\t\t$this->fieldValue = $tabName[\"fieldValue\"];\n\t\t\tparent::setTableName($tabName[\"tabName\"]);\n\t\t\t$this->s = parent::executeQuery();\n\t\t\t//parent::displayResults($this->s);\n\t\t\t}\n\t}", "public static function getTable();", "private function __construct($table, $data = array()) {\n $temp = array_merge(array('data' => array()), $data);\n\n $this->set_table_name($table);\n $this->load_columns_information();\n $this->new_register = true;\n\n\n // Carrega os dados iniciais, caso $temp['data'] esteja definido\n if(sizeof($temp['data']) > 0)\n $this->load_data($temp['data']);\n }", "public function __construct() {\r $this->create_tbl_woo2app_slider();\r //-----------------end create table hami appost-----------------------------\r //-----------------begin create table hami appstatic------------------------\r $this->create_tbl_woo2app_setting();\r //-----------------end create table hami appstatic--------------------------\r //-----------------begin create table hami slider------------------------\r $this->create_tbl_woo2app_mainpage();\r //-----------------end create table hami slider--------------------------\r $this->create_tbl_woo2app_menu();\r $this->create_tbl_woo2app_nazar();\r }", "public function getTable()\r\n {\r\n }", "public function __construct(){\r\n require_once(IMPORT_CLIENTE);\r\n\r\n //Import da classe nivelDAO, para inserir no BD\r\n require_once(IMPORT_CLIENTE_DAO);\r\n }", "public function __construct()\n {\n $this->setColumnsList(array(\n 'tipoId'=>'tipoId',\n 'tipo'=>'tipo',\n 'tipo_eu'=>'tipoEu',\n 'tipo_es'=>'tipoEs',\n 'createdOn'=>'createdOn',\n 'updateOn'=>'updateOn',\n ));\n\n $this->setColumnsMeta(array(\n 'tipo'=> array('ml'),\n ));\n\n $this->setMultiLangColumnsList(array(\n 'tipo'=>'Tipo',\n ));\n\n $this->setAvailableLangs(array('es', 'eu'));\n\n $this->setParentList(array(\n ));\n\n $this->setDependentList(array(\n 'IncidenciasIbfk2' => array(\n 'property' => 'Incidencias',\n 'table_name' => 'Incidencias',\n ),\n ));\n\n\n $this->setOnDeleteSetNullRelationships(array(\n 'incidencias_ibfk_2'\n ));\n\n $this->_defaultValues = array(\n 'tipo' => '',\n 'tipoEu' => '',\n 'tipoEs' => '',\n 'createdOn' => '0000-00-00 00:00:00',\n 'updateOn' => 'CURRENT_TIMESTAMP',\n );\n\n $this->_initFileObjects();\n parent::__construct();\n }", "protected function _getTable()\n\t{\n\t\t$tableName = substr( get_class($this), strlen(self::PREFIX) );\n\t\t$tableClass = self::PREFIX . 'DbTable_' . $tableName;\n\t\t$table = new $tableClass();\n\t\treturn $table;\n\t}" ]
[ "0.6960687", "0.691926", "0.67601556", "0.6751052", "0.66883874", "0.66883874", "0.6685999", "0.6647708", "0.66285956", "0.6601468", "0.6575608", "0.65689534", "0.65120876", "0.64795357", "0.64762187", "0.64638305", "0.64610624", "0.6459202", "0.6417747", "0.64028054", "0.64025843", "0.63997316", "0.6388404", "0.6369963", "0.6364105", "0.63617307", "0.6359403", "0.6359403", "0.6359403", "0.6337808", "0.6337808", "0.63358337", "0.63358337", "0.6320482", "0.6296946", "0.6288811", "0.62831134", "0.62831134", "0.6282022", "0.6274606", "0.62739253", "0.62735146", "0.627051", "0.624174", "0.62388146", "0.6238518", "0.62242687", "0.62208754", "0.6218023", "0.6216933", "0.62159824", "0.6206881", "0.6204233", "0.6197228", "0.61946505", "0.619266", "0.61745715", "0.61719745", "0.61706793", "0.6170378", "0.6170378", "0.6170378", "0.6170378", "0.6170378", "0.6170378", "0.6170378", "0.6169935", "0.61644024", "0.61497", "0.6148584", "0.6148584", "0.6146236", "0.61355877", "0.61284494", "0.61284494", "0.6121114", "0.61150634", "0.61150634", "0.61106414", "0.610955", "0.6109252", "0.6092962", "0.608557", "0.608031", "0.60636663", "0.6062255", "0.6060547", "0.6060381", "0.6060378", "0.6056277", "0.60533214", "0.60531896", "0.6048086", "0.60424465", "0.60382", "0.60106343", "0.6008425", "0.6006393", "0.60052454", "0.6000135", "0.59924614" ]
0.0
-1
/ metodos para agregar una columna
public function add_column($column) { $this->table_fields[] = $column; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addColumn()\n {\n if ($this->name || $this->timestamps) {\n $this->columns[] = [\n 'column' => $this->name,\n 'length' => $this->length,\n 'dataType' => $this->dataType,\n 'nullable' => $this->nullable,\n 'unsigned' => $this->unsigned,\n 'pk' => $this->pk,\n 'timestamps' => $this->timestamps,\n 'autoIncrement' => $this->autoIncrement,\n 'default' => $this->default,\n 'comment' => $this->comment,\n 'unique' => $this->unique,\n ];\n $this->reset();\n }\n if ($this->foreignKey) {\n $this->columns[] = [\n 'foreignKey' => $this->foreignKey,\n 'references' => $this->references,\n 'on' => $this->on,\n 'onUpdate' => $this->onUpdate,\n 'onDelete' => $this->onDelete,\n ];\n $this->reset();\n }\n }", "function AddCol($field=-1,$width=-1,$align='L')\r\n{\r\n\tif($field==-1)\r\n\t{\r\n\t\t$field=count($this->columnProp);\r\n\t}\r\n\r\n\t$this->columnProp[$field]=array('f'=>$field,'w'=>$width,'a'=>$align);\r\n\t#$this->Write(5, \"Ajout de colonne : \".$field.\"/\".$width.\"/\".$align); $this->Ln();\r\n}", "function addColumn($table, $name, $type);", "abstract public function add_column($table_name, $column_name, $params);", "public function addColumns()\n {\n add_filter( 'manage_edit-' . $this->post_type . '_columns', array($this, 'editColumns') ) ; // Add or Remove a Column\n add_action( 'manage_' . $this->post_type . '_posts_custom_column', array($this, 'manageColumns') ); //Show and Modify Column Data\n add_filter( 'manage_edit-' . $this->post_type . '_sortable_columns', array($this, 'sortableColumns') ); // Flags sortable Columns\n add_action( 'load-edit.php', array($this, 'loadSortColumns') );\n }", "protected function addColumns()\n {\n parent::addColumns();\n\n foreach ($this->config['fields'] as $key => $values) {\n\n switch ($values['type']) {\n case 'text':\n $this->table->addColumn($key, 'string', array('length' => 256, 'default' => ''));\n break;\n case 'textarea':\n case 'select':\n $this->table->addColumn($key, 'text', array('default' => ''));\n break;\n case 'checkbox':\n $this->table->addColumn($key, 'boolean', array('default' => 0));\n break;\n default:\n $this->table->addColumn($key, 'text', array('default' => ''));\n }\n\n }\n }", "public function addColumn($column,$table = \"\", $as = \"\");", "private function setAddColumnSql() {\n\n if (!empty($this->add_columns)) {\n\n foreach ($this->add_columns as $key => $value) {\n\n foreach ($value as $keys) {\n\n $column_data = $this->one_db_table_columns[$key][$keys];\n\n\n\n $add_colum_params = \"\";\n $default_is_string = false;\n $null_string = \"\";\n $default_string = \"\";\n\n\n\n\n //Sütun tipi\n $add_colum_params .= \" \" . $column_data['Type'] . \" \";\n\n\n if ($column_data['Null'] == \"NO\") {\n\n $null_string = \"NOT NULL\";\n } else if ($column_data['Null'] == \"YES\") {\n\n $null_string = \"NULL\";\n }\n\n\n\n $field_type_detect = substr($column_data['Type'], 0, 4);\n\n if (\n $field_type_detect == \"varc\" ||\n $field_type_detect == \"text\" ||\n $field_type_detect == \"date\") {\n\n $default_is_string = true;\n }\n\n\n\n if ($column_data['Default'] != \"\" || !empty($column_data['Default']) || $column_data['Default'] != NULL) {\n\n\n $default_string = \" DEFAULT \";\n\n\n if ($default_is_string) {\n\n\n $default_string .= \" '\" . $column_data['Default'] . \"' \";\n } else {\n\n $default_string .= \" \" . $column_data['Default'] . \" \";\n }\n }\n\n\n\n $add_colum_params .= $null_string . $default_string;\n\n $writesql = <<< EOT\nALTER TABLE {$key} ADD COLUMN {$column_data['Field']} {$add_colum_params};\nEOT;\n\n $this->execute_sql[\"add_columns\"][] = $writesql;\n }\n }\n }\n }", "function addColumn($columnName, $dataType, $extraStuff = \"\", $primaryKey = false) {\n $this->columns[] = new DbColumn($columnName, $dataType, $extraStuff, $primaryKey);\n }", "function AddCol($field=-1,$width=-1,$caption='',$align='')\r\n{\r\n if($field==-1)\r\n $field=count($this->aCols);\r\n $this->aCols[]=array('f'=>$field,'c'=>$caption,'w'=>$width,'a'=>$align);\r\n}", "function foool_partner_add_column($columns){\n\n $custom_columns = array();\n foreach($columns as $key => $title) {\n\n if ($key=='title') {\n $custom_columns['thumb'] = 'Visuel';\n $custom_columns[$key] = $title;\n } else { \n $custom_columns[$key] = $title;\n }\n }\n return $custom_columns;\n}", "abstract public static function columnData();", "function add_custom_fields_columns ( $columns ) {\n return array_merge ( $columns, array (\n 'ingredienti' => __ ( 'Ingredienti' ),\n 'prezzo' => __ ( 'Prezzo' )\n ) );\n}", "function addColumn($column)\n {\n $this->addColumns($column);\n }", "function Viradeco_add_user_columns($column) {\n $column['viraclub'] = __('ViraClub ID','itstar');\n $column['phone'] = __('Phone','itstar');\n $column['email'] = __('Email','itstar');\n \n return $column;\n}", "public function addColumns( $value){\n return $this->_add(3, $value);\n }", "function maybe_add_column($table_name, $column_name, $create_ddl)\n {\n }", "abstract protected function columns();", "public function addColumn($fieldData)\n {\n $this->columns[$fieldData['name']] = $fieldData;\n }", "public function addColumn(ColumnInterface $column);", "public function addColumn($name, $title, $type = 'text', $primary = 0, $hide = 0, $order = '', $fieldname = '', $format = ''){\n if(!empty($name) && !empty($title)){\n $fieldname = ($fieldname == ''?$name:$fieldname);\n $this->_cols[] = array(\t'name' => $name,\n 'title' => $title,\n 'type' => $type,\n 'primary' => $primary,\n 'hidden' => $hide,\n 'order' => $order,\n 'orderactive' => 0,\n 'orderdir' => 'DESC',\n 'fieldName' => $fieldname,\n\t\t\t\t\t\t\t\t\t\t'format' => $format);\n if($hide == 0){\n $this->_colspan(1);\n }\n }\n }", "function addC(){\n \t$re = new DbManager();\n \t$result = $re -> addColumn();\n \tif ($result == true){\n \t\techo 'colone bien ajouter ';\n \t}\n }", "function add_columns( $columns ) {\n\t$columns['layout'] = 'Layout';\n\treturn $columns;\n}", "public function addColumn($value) {\n array_push($this->columns, $value);\n }", "public function columnasLista(){\n $gridlista=array(\n array('name'=>'nombre','type'=>'raw','value'=>'CHtml::link($data->nombre,array(\"update\",\"id\"=>$data->id))'),\n 'cantidadpresentacion',\n 'salida',\n // 'idempresa',\n array('name'=>'idempresa','type'=>'raw','value'=>'$data->getNombreEmpresa()'),\n );\n\n return $gridlista;\n }", "protected function addVirtualColumns()\n {\n \n }", "function add_column($column, $type, array $options=null)\n {\n $definition = array(\n 'type' => $type,\n );\n if (!empty($options)) {\n $definition = array_merge($definition, $options);\n }\n \n if (isset($this->columns[$column])) {\n trigger_error(\"Column $column already defined (overwriting it).\", E_USER_WARNING);\n }\n \n $this->columns[$column] = $definition;\n }", "protected function _prepareColumns()\n {\n parent::_prepareColumns();\n\n $this->addColumn('attribute_code', array(\n 'header' => Mage::helper('eav')->__('Attribute Code'),\n 'sortable' => true,\n 'index' => 'attribute_code'\n ));\n\n $this->addColumn('frontend_label', array(\n 'header' => Mage::helper('eav')->__('Attribute Label'),\n 'sortable' => true,\n 'index' => 'frontend_label'\n ));\n }", "private function createDataRowForColumns(){\n\t\t$DataRows = [];\n\t\tforeach (\\DB::select('show columns from ' . $this->model->getTable() ) as $column)\n\t\t\t$DataRows[] = (new DataRowColumn)->setModel($this->model)->setField($column->Field)->fillModel();\n\n\t\t$this->DataType->dataRows()->saveMany($DataRows);\n\t}", "protected function initColumns()\n {\n if (empty($this->columns)) {\n $this->guessColumns();\n }\n foreach ($this->columns as $i => $column) {\n if (is_string($column)) {\n $column = $this->createDataColumn($column);\n } else {\n $column = Yii::createObject(array_merge([\n 'class' => $this->dataColumnClass ?: DataColumn::className(),\n 'grid' => $this,\n ], $column));\n }\n if (!$column->visible) {\n unset($this->columns[$i]);\n continue;\n }\n $this->columns[$i] = $column;\n }\n }", "protected function _prepareColumns()\n {\n $this->addColumn('hourbelt_id', array(\n 'header' => Mage::helper('recomiendo_recipes')->__('ID'),\n 'width' => '50px',\n 'index' => 'hourbelt_id',\n ));\n\n $this->addColumn('name', array(\n 'header' => Mage::helper('recomiendo_recipes')->__('Nombre Franja'),\n 'index' => 'name',\n ));\n\n $this->addColumn('start', array(\n 'header' => Mage::helper('recomiendo_recipes')->__('Hora Inicio'),\n 'index' => 'start',\n ));\n\n $this->addColumn('finish', array(\n 'header' => Mage::helper('recomiendo_recipes')->__('Hora Fin'),\n 'index' => 'finish',\n ));\n\n return parent::_prepareColumns();\n }", "protected function _prepareColumns()\n {\n $this->addColumn('recipetype_id', array(\n 'header' => Mage::helper('recomiendo_recipes')->__('ID'),\n 'width' => '50px',\n 'index' => 'recipetype_id',\n ));\n\n $this->addColumn('name', array(\n 'header' => Mage::helper('recomiendo_recipes')->__('Nombre Clasificación'),\n 'index' => 'name',\n ));\n\n return parent::_prepareColumns();\n }", "function addColumn($title, $valuePath, array $options = array()){\n\t\t$defaults = array(\n\t\t\t'editable' => false,\n\t\t\t'type' \t => 'string',\n\t\t\t'element' => false,\n\t\t\t'linkable' => false,\n\t\t\t'total' => false,\n\t\t\t'emptyVal' => null\n\t\t);\n\t\t\n\t\t$options = array_merge($defaults, $options);\n\t\t\n\t\t$titleSlug = Inflector::slug($title);\n\t\t$this->__columns[$titleSlug] = array(\n\t\t\t'title' => $title,\n\t\t\t'valuePath' => $valuePath,\n\t\t\t'options' => $options\n\t\t);\n\t\t\n\t\tif($options['total'] == true){\n\t\t\t$this->__totals[$title] = 0;\n\t\t}\n\t\t\n\t\treturn $titleSlug;\n\t}", "public function addColumn(KCommandContext $context)\n\t{\n\t\t$field\t\t= $context->result;\n\t\t$database\t= $this->getModel()->getTable()->getDatabase();\n\t\t$parts\t\t\t= array(\n\t\t\t\t\t\t\t'ALTER TABLE `#__',\n\t\t\t'table'\t\t=>\t'ninjaboard_people',\n\t\t\t\t\t\t\t'` ADD `custom_',\n\t\t\t'column'\t=>\t$field->name,\n\t\t\t\t\t\t\t\"` TEXT NOT NULL DEFAULT '' AFTER `signature`;\"\n\t\t\t\n\t\t);\n\n\t\t$database->execute(implode($parts));\n\t}", "public function tableColumns($table,$column);", "function add_futurninews_columns($cols){\n\treturn array(\n\t\t'cb' \t\t=> '<input type=\"checkbox\" />;',\n\t\t'title' \t=> 'Title',\n\t\t'heading'\t=> 'Heading',\n\t\t'date'\t\t=> 'Date'\n\t);\n}", "public function getColumnConfig();", "public function addPreviewColumn($id);", "protected function initColumns()\n {\n if (empty($this->columns)) {\n $this->guessColumns();\n }\n\n foreach ($this->columns as $i => $column) {\n if (is_string($column)) {\n $column = $this->createDataColumn($column);\n } else {\n $column = Yii::createObject(array_merge([\n 'class' => $this->dataColumnClass ?: DataColumn::className(),\n 'grid' => $this,\n ], $column));\n }\n if (!$column->visible) {\n unset($this->columns[$i]);\n $this->allColumns[$i] = $column;\n continue;\n }\n $this->columns[$i] = $column;\n $this->allColumns[$i] = $column;\n }\n }", "abstract public function tableColumns();", "function register_columns() {\n\n\t\t$this->columns = array(\n\t 'cb' => '<input type=\"checkbox\" />',\n\t 'title' => __( 'Name', 'sudoh' ),\n\t 'example-column' => __( 'Example Column', 'sudoh' ),\n\t 'thumbnail' => __( 'Thumbnail', 'sudoh' )\n\t );\n\n\t return $this->columns;\n\n\t}", "function addColumnData($heading, $fieldName) \n {\n $xmlRow = new XMLObject( XMLObject_ColumnList::XML_NODE_COL );\n $xmlRow->addElement(XMLObject_ColumnList::XML_ELEMENT_HEADING, $heading );\n $xmlRow->addElement(XMLObject_ColumnList::XML_ELEMENT_FIELDNAME, $fieldName );\n \n $this->addXMLObject( $xmlRow ); \n }", "public function addColumn($tableName, $schemaName, $column){ }", "public function column()\r\n {\r\n if (!empty($this->configs->column))\r\n return $this->configs->column;\r\n\r\n return ZArrayHelper::merge(parent::column(), [\r\n \r\n 'user' => function (Form $column) {\r\n\r\n $column->title = Az::l('Пользователь');\r\n\r\n return $column;\r\n },\r\n \r\n \r\n 'amount' => function (Form $column) {\r\n\r\n $column->title = Az::l('Количество потоков');\r\n \r\n return $column;\r\n },\r\n \r\n \r\n \r\n\r\n\r\n\r\n ], $this->configs->replace);\r\n }", "public function addGanttDatacolumn($name, $params = array(), $columns = array())\n{\n$this->$name->addGanttDatacolumn($this->_restructureParams($params));\n\nif (!empty($columns))\n{\n$this->addGanttColumnTexts($name, $columns);\n}\n}", "public function modifyTable() {\n $table = $this->getTable();\n\n $table->addColumn([\n 'name' => $this->getParameter('table_column'),\n 'type' => 'VARCHAR'\n ]);\n }", "function add_staff_fa_column($columns) {\r\n\t$columns =\tarray_slice($columns, 0, 1, true) +\r\n\t\t\t\t\t\t\tarray('cws_dept_thumb' => __('Pics', THEME_SLUG)) +\r\n\t\t\t\t\t\t\tarray_slice($columns, 1, NULL, true);\r\n\t$columns['procedures'] = __('Procedures', THEME_SLUG);\r\n\t$columns['slug'] = $columns['procedures'];\r\n\t$columns['events'] = __('Events', THEME_SLUG);\r\n\tunset($columns['slug']);\r\n\t$columns['cws_dept_decription'] = __('Description', THEME_SLUG);\r\n\t$columns['description'] = $columns['cws_dept_decription'];\r\n\tunset($columns['description']);\r\n\treturn $columns;\r\n}", "public function addColumn($column)\n\t{\n\t\t$this->columns[] = $column;\n\t}", "public function addColumn(Property $property);", "public function makeColumns(){\n $hijosDetalle=$this->\n getReportedetalle()->\n where(['and', \"esdetalle='1'\", \"visiblecampo='1'\"])->\n orderBy('orden')->all();\n //echo count( $hijosDetalle);die();\n $columns=[];\n foreach($hijosDetalle as $fila){\n $columns[]=[\n 'attribute'=>$fila->nombre_campo,\n 'label'=>$fila->aliascampo,\n 'format'=>'raw',\n 'options'=>['width'=>\n $this->sizePercentCampo($fila->nombre_campo).'%'],\n ];\n \n \n }\n return $columns;\n \n }", "function eddenvato_add_id($columns) {\n //$columns['user_id'] = 'User ID';\n $columns['purchase_codes'] = 'Purchase Codes';\n return $columns;\n}", "protected function _prepareColumns()\n\t{\n\t\t$this->addColumn('id',\n\t\t\t\tarray(\n\t\t\t\t\t\t'header'=> $this->__('ID'),\n\t\t\t\t\t\t'align' =>'right',\n\t\t\t\t\t\t'width' => '50px',\n\t\t\t\t\t\t'index' => 'id'\n\t\t\t\t)\n\t\t);\n\t\t \n\t\t$this->addColumn('name',\n\t\t\t\tarray(\n\t\t\t\t\t\t'header'=> $this->__('Name'),\n\t\t\t\t\t\t'index' => 'name'\n\t\t\t\t)\n\t\t);\n\t\t\n\t\t$this->addColumn('description',\n\t\t\t\tarray(\n\t\t\t\t\t\t'header'=> $this->__('Description'),\n\t\t\t\t\t\t'index' => 'description'\n\t\t\t\t)\n\t\t);\n\t\t\n\t\t$this->addColumn('percentage',\n\t\t\t\tarray(\n\t\t\t\t\t\t'header'=> $this->__('Percentage'),\n\t\t\t\t\t\t'index' => 'percentage'\n\t\t\t\t)\n\t\t);\n\t\t \n\t\treturn parent::_prepareColumns();\n\t}", "public function createColumn($name, array $options = []);", "function ganesh_set_ganesh_contact_columns($columns){\r\n\t$newColumns = array();\r\n\t$newColumns['title'] = 'Full Name';\r\n\t$newColumns['message'] = 'Message';\r\n\t$newColumns['email'] = 'Email';\r\n\t$newColumns['date'] = 'Date';\r\n\treturn $newColumns;\r\n}", "function add_custom_columns($column) \n {\n global $post;\n \n //var_dump($post);\n switch($column) {\n case 'shortcode':\n printf(\"[bbquote id='%s']\", $post->ID);\n break;\n case 'quote':\n echo $post->post_content;\n break;\n }\n }", "protected function _prepareColumns()\n {\n $this->addColumn('ID',\n array(\n 'header'=> $this->__('ID'),\n 'width' => '50px',\n 'index' => 'ID'\n )\n );\n\n\n $this->addColumn('browser',\n array(\n 'header'=> $this->__('Browser Data'),\n 'width' => '50px',\n 'index' => 'browser',\n 'renderer' => 'Mage_Osc_Block_Renderers_Browser'\n )\n );\n\n\n $this->addColumn('quote_id',\n array(\n 'header'=> $this->__('ID do Carrinho'),\n 'width' => '50px',\n 'index' => 'quote_id'\n )\n );\n\n\n $this->addColumn('order_id',\n array(\n 'header'=> $this->__('ID do Pedido'),\n 'width' => '50px',\n 'index' => 'order_id',\n 'renderer' => 'Mage_Osc_Block_Renderers_Order'\n )\n );\n\n\n $this->addColumn('customer_id',\n array(\n 'header'=> $this->__('Cliente'),\n 'width' => '50px',\n 'index' => 'customer_id',\n 'renderer' => 'Mage_Osc_Block_Renderers_Customer'\n )\n );\n\n\n $this->addColumn('clickedfo',\n array(\n 'header'=> $this->__('Quantidade de Cliques'),\n 'width' => '50px',\n 'index' => 'clickedfo'\n )\n );\n\n\n $this->addColumn('payment_method',\n array(\n 'header'=> $this->__('Método de Pagamento'),\n 'width' => '50px',\n 'index' => 'payment_method'\n )\n );\n\n\n return parent::_prepareColumns();\n }", "function addColumn($defaults) { \n $defaults['template'] = 'Template'; \n return $defaults; \n }", "protected function generateColumns()\n\t{\n\t\tforeach ($this->dataSource->getColumns() as $name) {\n\t\t\t$this->addColumn($name);\n\t\t}\n\t}", "function addColumns($columns)\n {\n if (is_array($columns)) {\n foreach ($columns as $column) {\n if (!isset($this->columns_list[$column])) {\n $this->columns[] = $column;\n $this->columns_list[$column] = 1;\n }\n }\n }\n else {\n if (!isset($this->columns_list[$columns])) {\n $this->columns[] = $columns;\n $this->columns_list[$columns] = 1;\n }\n }\n }", "protected function initColumns()\n\t{\n\t\tif($this->columns===array())\n\t\t{\n\t\t\tif($this->dataProvider instanceof NActiveDataProvider)\n\t\t\t\t$this->columns=$this->dataProvider->model->attributeNames();\n\t\t\telse if($this->dataProvider instanceof IDataProvider)\n\t\t\t{\n\t\t\t\t// use the keys of the first row of data as the default columns\n\t\t\t\t$data=$this->dataProvider->getData();\n\t\t\t\tif(isset($data[0]) && is_array($data[0]))\n\t\t\t\t\t$this->columns=array_keys($data[0]);\n\t\t\t}\n\t\t}\n\t\t$id=$this->getId();\n\t\tforeach($this->columns as $i=>$column)\n\t\t{\n\t\t\tif ($column['name'] && (!isset($column['export']) || @$column['export']!=false)) {\n\t\t\t\tif(is_string($column))\n\t\t\t\t\t$column=$this->createDataColumn($column);\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif(!isset($column['class']))\n\t\t\t\t\t\t$column['class']='NDataColumn';\n\t\t\t\t\t$column=Yii::createComponent($column, $this);\n\t\t\t\t}\n\t\t\t\tif(!$column->visible)\n\t\t\t\t{\n\t\t\t\t\tunset($this->columns[$i]);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif($column->id===null)\n\t\t\t\t\t$column->id=$id.'_c'.$i;\n\t\t\t\t$this->columns[$i]=$column;\n\t\t\t} else {\n\t\t\t\tunset($this->columns[$i]);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\n\n\t\tforeach($this->columns as $column)\n\t\t\t\t$column->init();\n\t}", "function heateor_ss_add_custom_column($columns){\r\n\t$columns['heateor_ss_delete_profile_data'] = 'Delete Social Profile';\r\n\treturn $columns;\r\n}", "protected function get_column_info()\n {\n }", "protected function get_column_info()\n {\n }", "function custom_columns( $columns ) {\n\t$columns = array(\n\t\t'cb' => '<input type=\"checkbox\" />',\n\t\t'title' => 'Title',\n\t\t'featured_image' => 'Photo',\n\t\t'date' => 'Date'\n\t);\n\treturn $columns;\n}", "public function addColumn($key, $value = null)\n {\n $this->columns[] = [$key, $value];\n return $this;\n }", "public function addColumn( $name, $label = NULL )\n\t{\n\t\t$this->columns[ $name ] = $column = new Column( $name, $label );\n\t\treturn $column->setGrid( $this );\n\t}", "public function getListColumns(){\n\treturn \"id, codice_categoria, codice, descrizione\";\n}", "public function addColumn($name, $type, $length = null, $options = array())\n {\n $this->_columns[] = array(\n 'name' => $name,\n 'type' => $type,\n 'length' => $length,\n 'options' => $options\n );\n }", "function et_add_application_column( $columns ) {\n\t$first\t\t\t\t= array_slice($columns, 0, 2);\n\t$temp \t\t\t\t= array_slice($columns, 2);\n\t$first['job_id']\t= __( 'Job', ET_DOMAIN );\n\n $columns\t= array_merge( $first , $temp );\n return $columns;\n}", "public function addColumn(Column $column) {\n\t\t$this->columns[] = $column;\n\t}", "public function addColumn($column_table_name, $label, $parameters = null, $relation = null, $function = null)\n {\n if (!$this->sqlColumns)\n {\n $this->sqlColumns = \"{$column_table_name} \";\n }\n else\n {\n $this->sqlColumns.= \" ,{$column_table_name} \";\n }\n\n $objColumn->label = $label;\n $objColumn->mask = $mask;\n $objColumn->relation = $relation;\n $objColumn->parameters = $parameters;\n $this->columns[$column_table_name] = $objColumn;\n }", "public function registerColumnTypes();", "private function addColumn($field, $type = \"migration\", $meta = \"\")\n {\n\n\n if ($type == 'migration') {\n\n $syntax = sprintf(\"\\$table->%s('%s')\", $field['type'], $field['name']);\n\n // If there are arguments for the schema type, like decimal('amount', 5, 2)\n // then we have to remember to work those in.\n if ($field['arguments']) {\n $syntax = substr($syntax, 0, -1) . ', ';\n\n $syntax .= implode(', ', $field['arguments']) . ')';\n }\n\n foreach ($field['options'] as $method => $value) {\n $syntax .= sprintf(\"->%s(%s)\", $method, $value === true ? '' : $value);\n }\n\n $syntax .= ';';\n\n\n } elseif ($type == 'view-index-header') {\n\n // Fields to index view\n $syntax = sprintf(\"<th>%s\", strtoupper($field['name']));\n $syntax .= '</th>';\n\n } elseif ($type == 'view-index-content') {\n\n // Fields to index view\n $syntax = sprintf(\"<td>{{\\$%s->%s\", $meta['var_name'], strtolower($field['name']));\n $syntax .= '}}</td>';\n\n } elseif ($type == 'view-show-content') {\n\n // Fields to show view\n $syntax = sprintf(\"<div class=\\\"form-group\\\">\\n\" .\n str_repeat(' ', 21) . \"<label for=\\\"%s\\\">%s</label>\\n\" .\n str_repeat(' ', 21) . \"<p class=\\\"form-control-static\\\">{{\\$%s->%s}}</p>\\n\" .\n str_repeat(' ', 16) . \"</div>\", strtolower($field['name']), strtoupper($field['name']), $meta['var_name'], strtolower($field['name']));\n\n\n } elseif ($type == 'view-edit-content') {\n $syntax = $this->buildField($field, $type, $meta['var_name']);\n } elseif ($type == 'view-create-content') {\n $syntax = $this->buildField($field, $type, $meta['var_name'], false);\n } else {\n // Fields to controller\n $syntax = sprintf(\"\\$%s->%s = \\$request->input(\\\"%s\", $meta['var_name'], $field['name'], $field['name']);\n $syntax .= '\");';\n }\n\n\n return $syntax;\n }", "public function initialize_columns()\n {\n $this->add_column(new DataClassPropertyTableColumn(Right::class_name(), Right::PROPERTY_NAME));\n $this->add_column(new DataClassPropertyTableColumn(Right::class_name(), Right::PROPERTY_DESCRIPTION));\n }", "protected function addColumns(Table $table)\n {\n $stmt = $this->dbh->query(\"SHOW FULL COLUMNS FROM `\" . $table->getName() . \"`\");\n\n while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) {\n $column = $this->getColumnFromRow($row, $table);\n $table->addColumn($column);\n }\n }", "public function add_column( $cols ) {\n\t\t$cols['wp_capabilities'] = __( 'Role', 'wp-custom-user-list-table' );\n\t\t$cols[ 'blogname' ] = __( 'Site Name', 'wp-custom-user-list-table' );\n\t\t$cols[ 'primary_blog' ] = __( 'Site ID', 'wp-custom-user-list-table' );\n\t\treturn $cols;\n\t}", "private function _setColumns()\n {\n $this->columns = new Pike_Grid_DataSource_Columns();\n\n foreach ($this->_query->getFields() as $field) {\n $this->columns->add($field, null, $field);\n }\n }", "function yy_r36(){ $this->_retvalue = new SQL\\AlterTable\\AddColumn($this->yystack[$this->yyidx + -1]->minor, $this->yystack[$this->yyidx + 0]->minor); }", "public function addColumn( $type, $column, $field ) {\n\t\t$table = $type;\n\t\t$type = $field;\n\t\t$table = $this->safeTable($table);\n\t\t$column = $this->safeColumn($column);\n\t\t$type = array_key_exists($type, $this->typeno_sqltype) ? $this->typeno_sqltype[$type] : '';\n\t\t$sql = \"ALTER TABLE $table ADD COLUMN $column $type \";\n\t\t$this->adapter->exec( $sql );\n\t}", "public function addCustomColumn($id) {\n if ($id == 'id') {\n /**\n * Add Column for ID\n */\n $value = $this->addColumn ( 'id', array (\n 'header' => Mage::helper ( 'airhotels' )->__ ( 'ID' ),\n 'align' => 'right',\n 'width' => '50px',\n 'index' => 'id',\n 'filter' => false \n ) );\n } else {\n /**\n * When building a module always utilise the installation and\n * upgrade scripts so that any database additions or changes are automatically modified\n * on module installation.\n * There are a number of built in functions to these modules allowing you to add attributes,\n * create new tables etc.\n *\n * Add Column for name\n */\n $value = $this->addColumn ( 'name', array (\n 'header' => Mage::helper ( 'airhotels' )->__ ( 'Subscription Product Name' ),\n 'align' => 'left',\n 'renderer' => 'Apptha_Airhotels_Block_Adminhtml_Managesubscriptions_Grid_Renderer_Name',\n 'filter_condition_callback' => array (\n $this,\n '_productFilter' \n ) \n ) );\n }\n return $value;\n }", "public static function addColumn($newCol, $type, $require){\n\t\t//this allows us to add column.\n\t\t//self::$db_fields = array_slice($db_fields, 0, $col, true) + array($newCol)\n\t\t//\t\t+ array_slice($db_fields, $col, count($db_fields) -1, true); //incorporate after for now add to end.\n\t\t\n\t\t//assume $newCol must be typed like lower case and with underscore cant start with number etc. (can't contain number? safer)\n\t\t// or catch error and say, invalid column name... try again.\n\t\t\n\t\t$last_element = end(self::$db_fields);\n\t\t\n\t\t//adds new column to db fields\n\t\t$temp = self::$db_fields;\n\t\tarray_push($temp, $newCol);\n\t\tself::$db_fields = $temp;\n\t\t\n\t\t//adds new required to column\n\t\t$temp = self::$required;\n\t\tarray_push($temp, $newCol);\n\t\tself::$required = $temp;\n\t\t\n\t\t//adds new data type to column\n\t\t$temp = self::$data_types;\n\t\tarray_push($temp, $newCol);\n\t\tself::$data_types = $temp;\n\t\t\n\t\t//create new attribute on the fly for each member\n\t\t//do now and have to do for each member.\n\t\tglobal $database;\n\t\t$sql = \"SELECT 'members_id' FROM members1\";\n\t\t//$result = Member::find_by_sql($sql);\n\t\t$result = $database->query($sql);\n\t\t//foreach($result as $attribute=>$value){\n\t\t\n\t\twhile($row = $database->fetch_array($result)){\n\t\t\t$id = $row['members_id'];\n\t\t\t$select = Member::find_by_id($id);\n\t\t\t$select->addAttribute($newCol, \"\"); //default attribute value??\n\t\t}\n\t\t\n\t\t//change database\n\t\t//$sql = 'ALTER TABLE `members1` ADD `test_column` VARCHAR(45) NOT NULL DEFAULT \\'default\\' AFTER `additional_info`'; //[puts default value in\n\t\t//$sql = 'ALTER TABLE `members1` ADD `test_nonnull` VARCHAR(45) NOT NULL AFTER `test_null`'; leaves column blank\n\t\t//$sql = \"ALTER TABLE `members1` ADD `test_null` VARCHAR(45) NULL AFTER `test_column`\"; //null column puts Null as entry.\n\t\t\n\t\t$data_value;\n\t\tif($type == \"Text\"){\n\t\t\t$data_value = \"TEXT CHARACTER SET utf8 COLLATE utf8_general_ci \"; //$sql = 'ALTER TABLE `members1` ADD `hilarious` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL AFTER `primate`';\n\t\t}\n\t\telse if($type == \"Single\"){\n\t\t\t$data_value = \"VARCHAR(45) CHARACTER SET utf8 COLLATE utf8_general_ci \";\n\t\t}\n\t\telse if($type == \"Integer\"){\n\t\t\t$data_value = \"INT(11)\"; //if int not null it defaults to 0.\n\t\t}\n\t\telse if($type == \"Date\"){\n\t\t\t$data_value = \"DATE\"; //ALTER TABLE `members1` ADD `enum_test` DATE NOT NULL AFTER `yep`; //defaults to 0000-00-00 //year month day.\n\t\t}\n\t\telse{\n\t\t\techo \" error has definitely occured\";\n\t\t}\n\t\t\n\t\tif($require == 1){\n\t\t\n\t\t\t$sql = \"ALTER TABLE `\".self::$table_name.\"` \"; \n\t\t\t$sql .= \" ADD `{$newCol}` {$data_value} NOT NULL AFTER `\".$last_element.\"` \";\n\t\t}\n\t\telse{\n\t\t\t\t\t\n\t\t\t$sql = \"ALTER TABLE `\".self::$table_name.\"` \"; \n\t\t\t$sql .= \" ADD `{$newCol}` {$data_value} NULL AFTER `\".$last_element.\"` \";\n\t\t}\n\t\techo \"{$sql}\";\n\t\tif($database->query($sql)){\n\t\t\t\treturn true;\n\t\t}\n\t\telse{\n\t\t\treturn false;\n\t\t} \n\t\t\n\t}", "private function initColumnArrays()\n {\n foreach ($this->columns as $key => $column) {\n $dql = $this->accessor->getValue($column, 'dql');\n $data = $this->accessor->getValue($column, 'data');\n\n $currentPart = $this->entityShortName;\n $currentAlias = $currentPart;\n $metadata = $this->metadata;\n\n if (true === $this->accessor->getValue($column, 'customDql')) {\n $columnAlias = str_replace('.', '_', $data);\n\n // Select\n $selectDql = preg_replace('/\\{([\\w]+)\\}/', '$1', $dql);\n $this->addSelectColumn(null, $selectDql.' '.$columnAlias);\n // Order on alias column name\n $this->addOrderColumn($column, null, $columnAlias);\n // Fix subqueries alias duplication\n $searchDql = preg_replace('/\\{([\\w]+)\\}/', '$1_search', $dql);\n $this->addSearchColumn($column, null, $searchDql);\n } elseif (true === $this->accessor->getValue($column, 'selectColumn')) {\n $parts = explode('.', $dql);\n\n while (count($parts) > 1) {\n $previousPart = $currentPart;\n $previousAlias = $currentAlias;\n\n $currentPart = array_shift($parts);\n $currentAlias = ($previousPart === $this->entityShortName ? '' : $previousPart.'_').$currentPart;\n\n if (!array_key_exists($previousAlias.'.'.$currentPart, $this->joins)) {\n $this->addJoin($previousAlias.'.'.$currentPart, $currentAlias, $this->accessor->getValue($column, 'joinType'));\n }\n\n $metadata = $this->setIdentifierFromAssociation($currentAlias, $currentPart, $metadata);\n }\n\n $this->addSelectColumn($currentAlias, $this->getIdentifier($metadata));\n $this->addSelectColumn($currentAlias, $parts[0]);\n $this->addSearchOrderColumn($column, $currentAlias, $parts[0]);\n } else {\n // Add Order-Field for VirtualColumn\n if ($this->accessor->isReadable($column, 'orderColumn') && true === $this->accessor->getValue($column, 'orderable')) {\n $orderColumn = $this->accessor->getValue($column, 'orderColumn');\n $orderParts = explode('.', $orderColumn);\n if (count($orderParts) < 2) {\n $orderColumn = $this->entityShortName.'.'.$orderColumn;\n }\n $this->orderColumns[] = $orderColumn;\n } else {\n $this->orderColumns[] = null;\n }\n\n // Add Search-Field for VirtualColumn\n if ($this->accessor->isReadable($column, 'searchColumn') && true === $this->accessor->getValue($column, 'searchable')) {\n $searchColumn = $this->accessor->getValue($column, 'searchColumn');\n $searchParts = explode('.', $searchColumn);\n if (count($searchParts) < 2) {\n $searchColumn = $this->entityShortName.'.'.$searchColumn;\n }\n $this->searchColumns[] = $searchColumn;\n } else {\n $this->searchColumns[] = null;\n }\n }\n }\n\n return $this;\n }", "public function setColumna($col){\n if($col>3 ){\n $this->columna = 3;\n }\n elseif ($col<0) {\n $this->columna = 0;\n }\n else{\n $this->columna = $col;\n }\n }", "public function testAddingSingleColumn()\n {\n $queryBuilder = new AugmentingQueryBuilder();\n $queryBuilder->addColumnValues(['name' => 'dave']);\n $this->assertEquals(['name' => 'dave'], $queryBuilder->getColumnNamesToValues());\n }", "public function getColumnDefinition($column){ }", "private function initColumns(){\n //Initialize our custom post type column management\n $this->cptWPDSCols = new Columns($this->wpdsPostType);\n \n //Remove our title\n $this->cptWPDSCols->removeColumn('title');\n \n //Add our content column\n $this->cptWPDSCols->addColumn('content', 'Content', 2);\n \n //Add our content column content\n $this->cptWPDSCols->addColumnPostContent('content');\n \n //Add our content column content\n $this->cptWPDSCols->addColumnOptionData('content', 'site_url');\n \n //Reposition column\n $this->cptWPDSCols->reorderColumn('content', 1);\n }", "public static function addColumn1($newCol, $type, $require, $choices){\n\t\t//this allows us to add column.\n\t\t//self::$db_fields = array_slice($db_fields, 0, $col, true) + array($newCol)\n\t\t//\t\t+ array_slice($db_fields, $col, count($db_fields) -1, true); //incorporate after for now add to end.\n\t\t\n\t\t//assume $newCol must be typed like lower case and with underscore cant start with number etc. (can't contain number? safer)\n\t\t// or catch error and say, invalid column name... try again.\n\t\t\n\t\t$last_element = end(self::$db_fields);\n\t\t\n\t\t//adds new column to db fields\n\t\t$temp = self::$db_fields;\n\t\tarray_push($temp, $newCol);\n\t\tself::$db_fields = $temp;\n\t\t\n\t\t//adds new required to column\n\t\t$temp = self::$required;\n\t\tarray_push($temp, $newCol);\n\t\tself::$required = $temp;\n\t\t\n\t\t//adds new data type to column\n\t\t$temp = self::$data_types;\n\t\tarray_push($temp, $newCol);\n\t\tself::$data_types = $temp;\n\t\t\n\t\t//create new attribute on the fly for each member\n\t\t//do now and have to do for each member.\n\t\tglobal $database;\n\t\t$sql = \"SELECT 'members_id' FROM members1\";\n\t\t//$result = Member::find_by_sql($sql);\n\t\t$result = $database->query($sql);\n\t\t//foreach($result as $attribute=>$value){\n\t\t\n\t\twhile($row = $database->fetch_array($result)){\n\t\t\t$id = $row['members_id'];\n\t\t\t$select = Member::find_by_id($id);\n\t\t\t$select->addAttribute($newCol, \"\");\n\t\t}\n\t\t\n\t\t//change database\n\t\t//$sql = 'ALTER TABLE `members1` ADD `test_column` VARCHAR(45) NOT NULL DEFAULT \\'default\\' AFTER `additional_info`'; //[puts default value in\n\t\t//$sql = 'ALTER TABLE `members1` ADD `test_nonnull` VARCHAR(45) NOT NULL AFTER `test_null`'; leaves column blank\n\t\t//$sql = \"ALTER TABLE `members1` ADD `test_null` VARCHAR(45) NULL AFTER `test_column`\"; //null column puts Null as entry.\n\t\t\n\t\t$data_value;\n\t\tif($type == \"Enum\"){ //ALTER TABLE `members1` ADD `enum_test` ENUM('hello','goodbye') CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL AFTER `yep`;\n\t\t\t$temp = self::$enum_list;\n\t\t\tarray_push($temp, $newCol);\n\t\t\tself::$enum_list = $temp;\n\t\t\t\n\t\t\t$data_value = \"ENUM('hello','goodbye') CHARACTER SET utf8 COLLATE utf8_general_ci \";\n\t\t}\n\t\telse if($type == \"Set\"){ //ALTER TABLE `members1` ADD `enum_test` SET('hello','goodbye') CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL AFTER `yep`;\n\t\t\t$temp = self::$set_list;\n\t\t\tarray_push($temp, $newCol);\n\t\t\tself::$set_list = $temp;\n\t\t\t\n\t\t\t$data_value = \"SET('hello','goodbye') CHARACTER SET utf8 COLLATE utf8_general_ci \";\n\t\t}\n\t\telse{\n\t\t\techo \" error has definitely occured\";\n\t\t}\n\t\t//sql syntax would need to add values from choices array to database.\n\t\t$sql = \"ALTER TABLE \".self::$table_name.\" \"; \n\t\t$sql .= \" ADD '{$newCol}' {$data_value} \";\n\t\t\n\t\tif($database->query($sql)){\n\t\t\t\treturn true;\n\t\t}\n\t\telse{\n\t\t\treturn false;\n\t\t} \n\t\t\n\t\t\n\t}", "public function setColumnsHeadData()\n\t{\n\t\tFileStorage::getInstance()->store([], 'league_table_columns_head');\n\t}", "private function prepareColumns()\n {\n $readOnlyAttribute = $this->readOnlyAttribute;\n\n $columns = [];\n if ($this->canMove) {\n $columns[] = [\n 'class' => MovingColumn::className(),\n 'movingDisabledAttribute' => $readOnlyAttribute,\n ];\n }\n foreach ($this->columns as $column) {\n if (is_string($column)) {\n $column = ['attribute' => $column];\n }\n\n if (empty($column['class'])) {\n $column['class'] = isset($column['items']) ? DropdownInputColumn::className() : TextInputColumn::className();\n }\n\n if ($this->itemClass === null && empty($column['label'])) {\n $column['label'] = Inflector::camel2words($column['attribute'], true);\n }\n\n $column = array_merge([\n 'readOnlyAttribute' => $readOnlyAttribute,\n ], $column);\n\n $columns[] = $column;\n }\n\n if ($this->canRemove) {\n $columns[] = [\n 'class' => 'smart\\grid\\ActionColumn',\n 'options' => ['style' => 'width: 25px;'],\n 'template' => '{remove}',\n 'buttons' => [\n 'remove' => function ($url, $model, $key) use ($readOnlyAttribute) {\n $readOnly = false;\n if ($readOnlyAttribute !== null) {\n $readOnly = ArrayHelper::getValue($model, $readOnlyAttribute);\n }\n\n if ($readOnly) {\n return '';\n }\n\n return Html::a('<span class=\"fas fa-remove\"></span>', '#', [\n 'class' => 'item-remove',\n 'title' => $this->removeLabel,\n ]);\n },\n ],\n ];\n }\n\n $this->_columns = $columns;\n }", "protected function _createColumnQuery()\n\t{\n\t\n\t}", "function add_header_columns($columns) \n {\n $columns = array(\n \"cb\" => \"<input type=\\\"checkbox\\\" />\",\n \"shortcode\" => __('Shortcode'),\n \"title\" => __('Title'),\n \"quote\" => __('Quote', $this->localization_domain),\n \"author\" => __('Author'),\n \"date\" => __('Publish Date'),\n );\n return $columns;\n }", "public static function add_columns( $columns ) {\n\t\n\t\tglobal $post_type;\n\t\n \t\t$columns_start = array_slice( $columns, 0, 1, true );\n \t\t$columns_end = array_slice( $columns, 1, null, true );\n\t\t\n\t\t// add logo coloumn in first\n \t\t$columns = array_merge(\n \t\t$columns_start,\n \t\tarray( 'logo' => __( '', self::$text_domain ) ),\n \t\t$columns_end\n \t\t);\n \t\t\n \t\t// append taxonomy columns on end\n\t\t$taxonomy_names = get_object_taxonomies( self::$post_type_name );\n\t\n\t\tforeach ( $taxonomy_names as $taxonomy_name ) {\n\t\n\t\t\t$taxonomy = get_taxonomy( $taxonomy_name );\n\t\n\t\t\tif ( $taxonomy->_builtin || !in_array( $post_type , $taxonomy->object_type ) )\n\t\t\t\tcontinue;\n\t\t\t\t\n\t\t\t$columns[ $taxonomy_name ] = $taxonomy->label;\n\t\t}\n\t\t\n\t\treturn $columns;\n\t\t\n\t}", "public function columnasLista(){\n $gridlista=array(\n array('name'=>'codigoproducto','type'=>'raw','value'=>'CHtml::link($data->codigoproducto,array(\"update\",\"id\"=>$data->id))'),\n 'nombre',\n 'costo',\n 'stock',\n 'stockminimo',\n );\n\n return $gridlista;\n }", "public function listRegisterCols(){\n\t\t$this->registerCol('name_hld', self::COL_ANCHO_DETALLE);\n\t}", "public function columnMaps();", "public function modelColumn();", "function column(){\n\t\t$column_array = array(\n\t\t\t\t0 => 'A.date_add',//default order sort\n\t\t\t\t1 => 'A.po_number',\n\t\t\t\t2 => 'A.po_date',\n\t\t\t\t3 => 'B.nama_supplier',\t\t\n\t\t\t\t4 => 'A.state_received',\t\n\t\t\t\t5 => 'A.active',\t\n\t\t\t\t6 => 'A.add_by',\n\t\t\t\t7 => 'A.date_add',\n\t\t);\n\t\treturn $column_array;\n\t}", "public function addColumn($name, $params)\n {\n $this->_columns[$name] = [\n 'label' => $this->_getParam($params, 'label', 'Column'),\n 'size' => $this->_getParam($params, 'size', false),\n 'style' => $this->_getParam($params, 'style'),\n 'class' => $this->_getParam($params, 'class'),\n 'type' => $this->_getParam($params, 'type', 'text'),\n 'renderer' => false,\n ];\n if (!empty($params['renderer']) && $params['renderer'] instanceof AbstractBlock) {\n $this->_columns[$name]['renderer'] = $params['renderer'];\n }\n }", "function addCategoryCustomColumn($cols) {\n\t\tif($this->checkPermissions()) {\n\t\t\t$cols[\"isCourse\"] = __(\"Course\", lepress_textdomain);\n\t\t\t$cols[\"accessType\"] = __(\"Enrollment\", lepress_textdomain);\n\t\t\t$cols[\"subscriptions\"] = __(\"Subscriptions Active/Pending\", lepress_textdomain);\n\t\t}\n\t\treturn $cols;\n\t}", "public function addColumn($table, $column, $type)\n {\n $this->db->createCommand()->addColumn($table, $column, $type)->execute();\n if ($type instanceof ColumnSchemaBuilder && $type->comment !== null) {\n $this->db->createCommand()->addCommentOnColumn($table, $column, $type->comment)->execute();\n }\n }" ]
[ "0.77943724", "0.74413925", "0.7428604", "0.7308537", "0.72828245", "0.72494245", "0.7243173", "0.7198894", "0.711113", "0.69824773", "0.6950911", "0.69479716", "0.6922472", "0.68875945", "0.68565726", "0.68267554", "0.6820497", "0.67937934", "0.6770872", "0.67610896", "0.676048", "0.6755308", "0.67525274", "0.67491364", "0.665564", "0.66450155", "0.66397023", "0.6623408", "0.65760314", "0.6573216", "0.65720016", "0.65577656", "0.65493864", "0.6529153", "0.6524633", "0.6510358", "0.65006053", "0.6499364", "0.64806503", "0.6476289", "0.64760786", "0.6474563", "0.64722997", "0.64683783", "0.6459322", "0.64473116", "0.64455765", "0.6441129", "0.64342505", "0.6434051", "0.64309496", "0.64278847", "0.64214116", "0.6405001", "0.64011824", "0.63978904", "0.63931495", "0.6386806", "0.63675594", "0.6357242", "0.6351885", "0.63493615", "0.63493216", "0.63447714", "0.6343912", "0.6342541", "0.6309455", "0.6308301", "0.63055974", "0.6304525", "0.6299938", "0.6298518", "0.62857693", "0.62694806", "0.62641174", "0.62631077", "0.62566036", "0.62519044", "0.624943", "0.62493706", "0.62425405", "0.6238358", "0.62366617", "0.623518", "0.6226429", "0.62241304", "0.62205726", "0.62166756", "0.6214823", "0.6213684", "0.6206477", "0.6206405", "0.6206103", "0.6205145", "0.620063", "0.6199369", "0.61933154", "0.6188581", "0.6187182", "0.6171019" ]
0.6688426
24
/ metodos para agregar muchas columnas
public function add_columns($columns) { foreach ($columns as $column) { $this->add_column($column); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected function columns();", "public function makeColumns(){\n $hijosDetalle=$this->\n getReportedetalle()->\n where(['and', \"esdetalle='1'\", \"visiblecampo='1'\"])->\n orderBy('orden')->all();\n //echo count( $hijosDetalle);die();\n $columns=[];\n foreach($hijosDetalle as $fila){\n $columns[]=[\n 'attribute'=>$fila->nombre_campo,\n 'label'=>$fila->aliascampo,\n 'format'=>'raw',\n 'options'=>['width'=>\n $this->sizePercentCampo($fila->nombre_campo).'%'],\n ];\n \n \n }\n return $columns;\n \n }", "public function addColumns()\n {\n add_filter( 'manage_edit-' . $this->post_type . '_columns', array($this, 'editColumns') ) ; // Add or Remove a Column\n add_action( 'manage_' . $this->post_type . '_posts_custom_column', array($this, 'manageColumns') ); //Show and Modify Column Data\n add_filter( 'manage_edit-' . $this->post_type . '_sortable_columns', array($this, 'sortableColumns') ); // Flags sortable Columns\n add_action( 'load-edit.php', array($this, 'loadSortColumns') );\n }", "protected function addColumns()\n {\n parent::addColumns();\n\n foreach ($this->config['fields'] as $key => $values) {\n\n switch ($values['type']) {\n case 'text':\n $this->table->addColumn($key, 'string', array('length' => 256, 'default' => ''));\n break;\n case 'textarea':\n case 'select':\n $this->table->addColumn($key, 'text', array('default' => ''));\n break;\n case 'checkbox':\n $this->table->addColumn($key, 'boolean', array('default' => 0));\n break;\n default:\n $this->table->addColumn($key, 'text', array('default' => ''));\n }\n\n }\n }", "protected function _prepareColumns()\n {\n $this->addColumn('hourbelt_id', array(\n 'header' => Mage::helper('recomiendo_recipes')->__('ID'),\n 'width' => '50px',\n 'index' => 'hourbelt_id',\n ));\n\n $this->addColumn('name', array(\n 'header' => Mage::helper('recomiendo_recipes')->__('Nombre Franja'),\n 'index' => 'name',\n ));\n\n $this->addColumn('start', array(\n 'header' => Mage::helper('recomiendo_recipes')->__('Hora Inicio'),\n 'index' => 'start',\n ));\n\n $this->addColumn('finish', array(\n 'header' => Mage::helper('recomiendo_recipes')->__('Hora Fin'),\n 'index' => 'finish',\n ));\n\n return parent::_prepareColumns();\n }", "protected function _prepareColumns()\n\t{\n\t\t$this->addColumn('id',\n\t\t\t\tarray(\n\t\t\t\t\t\t'header'=> $this->__('ID'),\n\t\t\t\t\t\t'align' =>'right',\n\t\t\t\t\t\t'width' => '50px',\n\t\t\t\t\t\t'index' => 'id'\n\t\t\t\t)\n\t\t);\n\t\t \n\t\t$this->addColumn('name',\n\t\t\t\tarray(\n\t\t\t\t\t\t'header'=> $this->__('Name'),\n\t\t\t\t\t\t'index' => 'name'\n\t\t\t\t)\n\t\t);\n\t\t\n\t\t$this->addColumn('description',\n\t\t\t\tarray(\n\t\t\t\t\t\t'header'=> $this->__('Description'),\n\t\t\t\t\t\t'index' => 'description'\n\t\t\t\t)\n\t\t);\n\t\t\n\t\t$this->addColumn('percentage',\n\t\t\t\tarray(\n\t\t\t\t\t\t'header'=> $this->__('Percentage'),\n\t\t\t\t\t\t'index' => 'percentage'\n\t\t\t\t)\n\t\t);\n\t\t \n\t\treturn parent::_prepareColumns();\n\t}", "abstract public function tableColumns();", "private function setAddColumnSql() {\n\n if (!empty($this->add_columns)) {\n\n foreach ($this->add_columns as $key => $value) {\n\n foreach ($value as $keys) {\n\n $column_data = $this->one_db_table_columns[$key][$keys];\n\n\n\n $add_colum_params = \"\";\n $default_is_string = false;\n $null_string = \"\";\n $default_string = \"\";\n\n\n\n\n //Sütun tipi\n $add_colum_params .= \" \" . $column_data['Type'] . \" \";\n\n\n if ($column_data['Null'] == \"NO\") {\n\n $null_string = \"NOT NULL\";\n } else if ($column_data['Null'] == \"YES\") {\n\n $null_string = \"NULL\";\n }\n\n\n\n $field_type_detect = substr($column_data['Type'], 0, 4);\n\n if (\n $field_type_detect == \"varc\" ||\n $field_type_detect == \"text\" ||\n $field_type_detect == \"date\") {\n\n $default_is_string = true;\n }\n\n\n\n if ($column_data['Default'] != \"\" || !empty($column_data['Default']) || $column_data['Default'] != NULL) {\n\n\n $default_string = \" DEFAULT \";\n\n\n if ($default_is_string) {\n\n\n $default_string .= \" '\" . $column_data['Default'] . \"' \";\n } else {\n\n $default_string .= \" \" . $column_data['Default'] . \" \";\n }\n }\n\n\n\n $add_colum_params .= $null_string . $default_string;\n\n $writesql = <<< EOT\nALTER TABLE {$key} ADD COLUMN {$column_data['Field']} {$add_colum_params};\nEOT;\n\n $this->execute_sql[\"add_columns\"][] = $writesql;\n }\n }\n }\n }", "protected function _prepareColumns()\n {\n $this->addColumn('recipetype_id', array(\n 'header' => Mage::helper('recomiendo_recipes')->__('ID'),\n 'width' => '50px',\n 'index' => 'recipetype_id',\n ));\n\n $this->addColumn('name', array(\n 'header' => Mage::helper('recomiendo_recipes')->__('Nombre Clasificación'),\n 'index' => 'name',\n ));\n\n return parent::_prepareColumns();\n }", "function add_columns( $columns ) {\n\t$columns['layout'] = 'Layout';\n\treturn $columns;\n}", "abstract public static function columnData();", "abstract protected function columns(): array;", "private function _setColumns()\n {\n $this->columns = new Pike_Grid_DataSource_Columns();\n\n foreach ($this->_query->getFields() as $field) {\n $this->columns->add($field, null, $field);\n }\n }", "protected function generateColumns()\n\t{\n\t\tforeach ($this->dataSource->getColumns() as $name) {\n\t\t\t$this->addColumn($name);\n\t\t}\n\t}", "protected function addVirtualColumns()\n {\n \n }", "function add_custom_fields_columns ( $columns ) {\n return array_merge ( $columns, array (\n 'ingredienti' => __ ( 'Ingredienti' ),\n 'prezzo' => __ ( 'Prezzo' )\n ) );\n}", "public function addColumn()\n {\n if ($this->name || $this->timestamps) {\n $this->columns[] = [\n 'column' => $this->name,\n 'length' => $this->length,\n 'dataType' => $this->dataType,\n 'nullable' => $this->nullable,\n 'unsigned' => $this->unsigned,\n 'pk' => $this->pk,\n 'timestamps' => $this->timestamps,\n 'autoIncrement' => $this->autoIncrement,\n 'default' => $this->default,\n 'comment' => $this->comment,\n 'unique' => $this->unique,\n ];\n $this->reset();\n }\n if ($this->foreignKey) {\n $this->columns[] = [\n 'foreignKey' => $this->foreignKey,\n 'references' => $this->references,\n 'on' => $this->on,\n 'onUpdate' => $this->onUpdate,\n 'onDelete' => $this->onDelete,\n ];\n $this->reset();\n }\n }", "private function createDataRowForColumns(){\n\t\t$DataRows = [];\n\t\tforeach (\\DB::select('show columns from ' . $this->model->getTable() ) as $column)\n\t\t\t$DataRows[] = (new DataRowColumn)->setModel($this->model)->setField($column->Field)->fillModel();\n\n\t\t$this->DataType->dataRows()->saveMany($DataRows);\n\t}", "protected function initColumns()\n {\n if (empty($this->columns)) {\n $this->guessColumns();\n }\n\n foreach ($this->columns as $i => $column) {\n if (is_string($column)) {\n $column = $this->createDataColumn($column);\n } else {\n $column = Yii::createObject(array_merge([\n 'class' => $this->dataColumnClass ?: DataColumn::className(),\n 'grid' => $this,\n ], $column));\n }\n if (!$column->visible) {\n unset($this->columns[$i]);\n $this->allColumns[$i] = $column;\n continue;\n }\n $this->columns[$i] = $column;\n $this->allColumns[$i] = $column;\n }\n }", "protected function _prepareColumns()\n {\n parent::_prepareColumns();\n\n $this->addColumn('attribute_code', array(\n 'header' => Mage::helper('eav')->__('Attribute Code'),\n 'sortable' => true,\n 'index' => 'attribute_code'\n ));\n\n $this->addColumn('frontend_label', array(\n 'header' => Mage::helper('eav')->__('Attribute Label'),\n 'sortable' => true,\n 'index' => 'frontend_label'\n ));\n }", "function AddCol($field=-1,$width=-1,$align='L')\r\n{\r\n\tif($field==-1)\r\n\t{\r\n\t\t$field=count($this->columnProp);\r\n\t}\r\n\r\n\t$this->columnProp[$field]=array('f'=>$field,'w'=>$width,'a'=>$align);\r\n\t#$this->Write(5, \"Ajout de colonne : \".$field.\"/\".$width.\"/\".$align); $this->Ln();\r\n}", "protected function initColumns()\n {\n if (empty($this->columns)) {\n $this->guessColumns();\n }\n foreach ($this->columns as $i => $column) {\n if (is_string($column)) {\n $column = $this->createDataColumn($column);\n } else {\n $column = Yii::createObject(array_merge([\n 'class' => $this->dataColumnClass ?: DataColumn::className(),\n 'grid' => $this,\n ], $column));\n }\n if (!$column->visible) {\n unset($this->columns[$i]);\n continue;\n }\n $this->columns[$i] = $column;\n }\n }", "protected function _prepareColumns()\n {\n $this->addColumn('ID',\n array(\n 'header'=> $this->__('ID'),\n 'width' => '50px',\n 'index' => 'ID'\n )\n );\n\n\n $this->addColumn('browser',\n array(\n 'header'=> $this->__('Browser Data'),\n 'width' => '50px',\n 'index' => 'browser',\n 'renderer' => 'Mage_Osc_Block_Renderers_Browser'\n )\n );\n\n\n $this->addColumn('quote_id',\n array(\n 'header'=> $this->__('ID do Carrinho'),\n 'width' => '50px',\n 'index' => 'quote_id'\n )\n );\n\n\n $this->addColumn('order_id',\n array(\n 'header'=> $this->__('ID do Pedido'),\n 'width' => '50px',\n 'index' => 'order_id',\n 'renderer' => 'Mage_Osc_Block_Renderers_Order'\n )\n );\n\n\n $this->addColumn('customer_id',\n array(\n 'header'=> $this->__('Cliente'),\n 'width' => '50px',\n 'index' => 'customer_id',\n 'renderer' => 'Mage_Osc_Block_Renderers_Customer'\n )\n );\n\n\n $this->addColumn('clickedfo',\n array(\n 'header'=> $this->__('Quantidade de Cliques'),\n 'width' => '50px',\n 'index' => 'clickedfo'\n )\n );\n\n\n $this->addColumn('payment_method',\n array(\n 'header'=> $this->__('Método de Pagamento'),\n 'width' => '50px',\n 'index' => 'payment_method'\n )\n );\n\n\n return parent::_prepareColumns();\n }", "private function initColumnArrays()\n {\n foreach ($this->columns as $key => $column) {\n $dql = $this->accessor->getValue($column, 'dql');\n $data = $this->accessor->getValue($column, 'data');\n\n $currentPart = $this->entityShortName;\n $currentAlias = $currentPart;\n $metadata = $this->metadata;\n\n if (true === $this->accessor->getValue($column, 'customDql')) {\n $columnAlias = str_replace('.', '_', $data);\n\n // Select\n $selectDql = preg_replace('/\\{([\\w]+)\\}/', '$1', $dql);\n $this->addSelectColumn(null, $selectDql.' '.$columnAlias);\n // Order on alias column name\n $this->addOrderColumn($column, null, $columnAlias);\n // Fix subqueries alias duplication\n $searchDql = preg_replace('/\\{([\\w]+)\\}/', '$1_search', $dql);\n $this->addSearchColumn($column, null, $searchDql);\n } elseif (true === $this->accessor->getValue($column, 'selectColumn')) {\n $parts = explode('.', $dql);\n\n while (count($parts) > 1) {\n $previousPart = $currentPart;\n $previousAlias = $currentAlias;\n\n $currentPart = array_shift($parts);\n $currentAlias = ($previousPart === $this->entityShortName ? '' : $previousPart.'_').$currentPart;\n\n if (!array_key_exists($previousAlias.'.'.$currentPart, $this->joins)) {\n $this->addJoin($previousAlias.'.'.$currentPart, $currentAlias, $this->accessor->getValue($column, 'joinType'));\n }\n\n $metadata = $this->setIdentifierFromAssociation($currentAlias, $currentPart, $metadata);\n }\n\n $this->addSelectColumn($currentAlias, $this->getIdentifier($metadata));\n $this->addSelectColumn($currentAlias, $parts[0]);\n $this->addSearchOrderColumn($column, $currentAlias, $parts[0]);\n } else {\n // Add Order-Field for VirtualColumn\n if ($this->accessor->isReadable($column, 'orderColumn') && true === $this->accessor->getValue($column, 'orderable')) {\n $orderColumn = $this->accessor->getValue($column, 'orderColumn');\n $orderParts = explode('.', $orderColumn);\n if (count($orderParts) < 2) {\n $orderColumn = $this->entityShortName.'.'.$orderColumn;\n }\n $this->orderColumns[] = $orderColumn;\n } else {\n $this->orderColumns[] = null;\n }\n\n // Add Search-Field for VirtualColumn\n if ($this->accessor->isReadable($column, 'searchColumn') && true === $this->accessor->getValue($column, 'searchable')) {\n $searchColumn = $this->accessor->getValue($column, 'searchColumn');\n $searchParts = explode('.', $searchColumn);\n if (count($searchParts) < 2) {\n $searchColumn = $this->entityShortName.'.'.$searchColumn;\n }\n $this->searchColumns[] = $searchColumn;\n } else {\n $this->searchColumns[] = null;\n }\n }\n }\n\n return $this;\n }", "public function getColumns();", "public function getColumns();", "public function getColumns();", "public function getColumns();", "public function getColumns();", "public function getColumns();", "public function getColumns();", "function foool_partner_add_column($columns){\n\n $custom_columns = array();\n foreach($columns as $key => $title) {\n\n if ($key=='title') {\n $custom_columns['thumb'] = 'Visuel';\n $custom_columns[$key] = $title;\n } else { \n $custom_columns[$key] = $title;\n }\n }\n return $custom_columns;\n}", "public function get_columns()\n {\n }", "public function get_columns()\n {\n }", "public function get_columns()\n {\n }", "public function get_columns()\n {\n }", "public function previewColumns();", "public function get_columns()\n {\n }", "public function get_columns()\n {\n }", "abstract public function listColumns();", "protected function initColumns()\n\t{\n\t\tif($this->columns===array())\n\t\t{\n\t\t\tif($this->dataProvider instanceof NActiveDataProvider)\n\t\t\t\t$this->columns=$this->dataProvider->model->attributeNames();\n\t\t\telse if($this->dataProvider instanceof IDataProvider)\n\t\t\t{\n\t\t\t\t// use the keys of the first row of data as the default columns\n\t\t\t\t$data=$this->dataProvider->getData();\n\t\t\t\tif(isset($data[0]) && is_array($data[0]))\n\t\t\t\t\t$this->columns=array_keys($data[0]);\n\t\t\t}\n\t\t}\n\t\t$id=$this->getId();\n\t\tforeach($this->columns as $i=>$column)\n\t\t{\n\t\t\tif ($column['name'] && (!isset($column['export']) || @$column['export']!=false)) {\n\t\t\t\tif(is_string($column))\n\t\t\t\t\t$column=$this->createDataColumn($column);\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif(!isset($column['class']))\n\t\t\t\t\t\t$column['class']='NDataColumn';\n\t\t\t\t\t$column=Yii::createComponent($column, $this);\n\t\t\t\t}\n\t\t\t\tif(!$column->visible)\n\t\t\t\t{\n\t\t\t\t\tunset($this->columns[$i]);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif($column->id===null)\n\t\t\t\t\t$column->id=$id.'_c'.$i;\n\t\t\t\t$this->columns[$i]=$column;\n\t\t\t} else {\n\t\t\t\tunset($this->columns[$i]);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\n\n\t\tforeach($this->columns as $column)\n\t\t\t\t$column->init();\n\t}", "public function addColumns( $value){\n return $this->_add(3, $value);\n }", "public function setColumnsHeadData()\n\t{\n\t\tFileStorage::getInstance()->store([], 'league_table_columns_head');\n\t}", "public function columnasLista(){\n $gridlista=array(\n array('name'=>'nombre','type'=>'raw','value'=>'CHtml::link($data->nombre,array(\"update\",\"id\"=>$data->id))'),\n 'cantidadpresentacion',\n 'salida',\n // 'idempresa',\n array('name'=>'idempresa','type'=>'raw','value'=>'$data->getNombreEmpresa()'),\n );\n\n return $gridlista;\n }", "public function columnMaps();", "function add_futurninews_columns($cols){\n\treturn array(\n\t\t'cb' \t\t=> '<input type=\"checkbox\" />;',\n\t\t'title' \t=> 'Title',\n\t\t'heading'\t=> 'Heading',\n\t\t'date'\t\t=> 'Date'\n\t);\n}", "abstract public function loadColumns();", "static function getColumns()\n {\n }", "function get_columns() {\n\t\t$columns = [\n\t\t\t'jumlahHTTPS' => 'Jumlah Domain HTTPS',\n\t\t\t'totalDomain' => 'Total Domain', \n\t\t\t'jumlahCert' => 'Jumlah Sertifikat Aktif',\n\t\t\t'totalCert' => 'Total Sertifikat'\n\t\t];\n\n\t\treturn $columns;\n\t}", "public static function columns()\n {\n return filterColumnByRole([\n 'plot_ref' => trans('system.code'),\n 'plot_name' => trans_title('plots'),\n 'user.name' => trans_title('users'),\n 'city.city_name' => trans_title('cities'),\n 'plot_percent_cultivated_land' => sections('plots.cultivated_land'),\n 'plot_real_area' => sections('plots.real_area'),\n 'plot_start_date' => sections('plots.start_date'),\n 'plot_active' => trans('persona.contact.active'),\n 'plot_green_cover' => sections('plots.green_cover'),\n 'plot_pond' => sections('plots.pond'),\n 'plot_road' => sections('plots.road'),\n ],\n $roleFilter = Credentials::isAdmin(),\n $newColumns = ['client.client_name' => trans_title('clients')],//Admits multiple arrays\n $addInPosition = 3\n );\n }", "public function getListColumns(){\n\treturn \"id, codice_categoria, codice, descrizione\";\n}", "function generar()\r\n\t{\r\n\t\tforeach($this->columnas as $ef) {\r\n\t\t \t$this->datos->tabla('columnas')->nueva_fila($ef->get_datos());\r\n\t\t}\r\n\t\tparent::generar();\r\n\t}", "public function listRegisterCols(){\n\t\t$this->registerCol('name_hld', self::COL_ANCHO_DETALLE);\n\t}", "public function tableColumns($table,$column);", "function get_columns() {\n\n\t\treturn $columns = array(\n\t\t\t'cb'\t\t=> '<input type=\"checkbox\" />', //Render a checkbox instead of text\n\t\t\t'title'\t\t=> 'Title',\n\t\t\t'rating'\t=> 'Rating',\n\t\t\t'director'\t=> 'Director'\n\t\t);\n\t}", "abstract protected function doCols();", "private function prepareColumns()\n {\n $readOnlyAttribute = $this->readOnlyAttribute;\n\n $columns = [];\n if ($this->canMove) {\n $columns[] = [\n 'class' => MovingColumn::className(),\n 'movingDisabledAttribute' => $readOnlyAttribute,\n ];\n }\n foreach ($this->columns as $column) {\n if (is_string($column)) {\n $column = ['attribute' => $column];\n }\n\n if (empty($column['class'])) {\n $column['class'] = isset($column['items']) ? DropdownInputColumn::className() : TextInputColumn::className();\n }\n\n if ($this->itemClass === null && empty($column['label'])) {\n $column['label'] = Inflector::camel2words($column['attribute'], true);\n }\n\n $column = array_merge([\n 'readOnlyAttribute' => $readOnlyAttribute,\n ], $column);\n\n $columns[] = $column;\n }\n\n if ($this->canRemove) {\n $columns[] = [\n 'class' => 'smart\\grid\\ActionColumn',\n 'options' => ['style' => 'width: 25px;'],\n 'template' => '{remove}',\n 'buttons' => [\n 'remove' => function ($url, $model, $key) use ($readOnlyAttribute) {\n $readOnly = false;\n if ($readOnlyAttribute !== null) {\n $readOnly = ArrayHelper::getValue($model, $readOnlyAttribute);\n }\n\n if ($readOnly) {\n return '';\n }\n\n return Html::a('<span class=\"fas fa-remove\"></span>', '#', [\n 'class' => 'item-remove',\n 'title' => $this->removeLabel,\n ]);\n },\n ],\n ];\n }\n\n $this->_columns = $columns;\n }", "private function initColumns(){\n //Initialize our custom post type column management\n $this->cptWPDSCols = new Columns($this->wpdsPostType);\n \n //Remove our title\n $this->cptWPDSCols->removeColumn('title');\n \n //Add our content column\n $this->cptWPDSCols->addColumn('content', 'Content', 2);\n \n //Add our content column content\n $this->cptWPDSCols->addColumnPostContent('content');\n \n //Add our content column content\n $this->cptWPDSCols->addColumnOptionData('content', 'site_url');\n \n //Reposition column\n $this->cptWPDSCols->reorderColumn('content', 1);\n }", "function AddCol($field=-1,$width=-1,$caption='',$align='')\r\n{\r\n if($field==-1)\r\n $field=count($this->aCols);\r\n $this->aCols[]=array('f'=>$field,'c'=>$caption,'w'=>$width,'a'=>$align);\r\n}", "function ganesh_set_ganesh_contact_columns($columns){\r\n\t$newColumns = array();\r\n\t$newColumns['title'] = 'Full Name';\r\n\t$newColumns['message'] = 'Message';\r\n\t$newColumns['email'] = 'Email';\r\n\t$newColumns['date'] = 'Date';\r\n\treturn $newColumns;\r\n}", "protected function _prepareColumns()\n {\n $this->addColumn('ticket_id', array(\n 'header' => Mage::helper('inchoo_supportticket')->__('ID'),\n 'width' => '80px',\n 'index' => 'ticket_id'\n ));\n $this->addColumn('subject', array(\n 'header'=> Mage::helper('inchoo_supportticket')->__('Subject'),\n 'type'=> 'text',\n 'width' => '300px',\n 'index' => 'subject',\n 'escape' => true\n ));\n $this->addColumn('content', array(\n 'header'=> Mage::helper('inchoo_supportticket')->__('Content'),\n 'type' => 'text',\n 'index' => 'content',\n 'escape' => true\n ));\n $this->addColumn('status', array(\n 'header'=> Mage::helper('inchoo_supportticket')->__('Status'),\n 'type'=> 'text',\n 'width' => '200px',\n 'index' => 'status',\n 'escape' => true\n ));\n $this->addColumn('created_at', array(\n 'header'=> Mage::helper('inchoo_supportticket')->__('Created at'),\n 'type' => 'text',\n 'width' => '170px',\n 'index' => 'created_at',\n ));\n return parent::_prepareColumns();\n }", "abstract protected function getColumns(): array;", "static function get_columns(): array {\r\n return [\r\n 'title' => 'Title',\r\n self::qcol('link') => 'Link',\r\n self::qcol('date_from') => 'In use from',\r\n self::qcol('date_till') => 'In use till',\r\n self::qcol('main') => 'Main website'\r\n ];\r\n }", "protected function loadColumns(){\n\t\t\t$this->columns = array_diff(\n\t\t\t\tarray_keys(get_class_vars($this->class)),\n\t\t\t\t$this->getIgnoreAttributes()\n\t\t\t);\n\t\t}", "protected function _prepareColumns()\n {\n \t// Checkbox\n \t$checkboxColumnBody = new Lumia_DataGrid_Body_Checkbox('student_id[]');\n \t$checkboxColumnHeader = new Lumia_DataGrid_Header_Checkbox();\n $this->addColumn(new Lumia_DataGrid_Column($checkboxColumnBody, $checkboxColumnHeader));\n \n // Name\n $nameColumnBody = new Lumia_DataGrid_Body_Text('student_name');\n $nameColumnHeader = new Lumia_DataGrid_Header_Text('StudentListView:@Name');\n $this->addColumn(new Lumia_DataGrid_Column($nameColumnBody, $nameColumnHeader));\n \n // Code\n $codeColumnBody = new Lumia_DataGrid_Body_Text('student_code');\n $codeColumnHeader = new Lumia_DataGrid_Header_Text('StudentListView:@Code');\n $this->addColumn(new Lumia_DataGrid_Column($codeColumnBody, $codeColumnHeader));\n \n // Date of birth\n $dateColumnBody = new Lumia_DataGrid_Body_Date('student_birth');\n $dateColumnBody->setOptions(array('dateFormat' => 'dd/MM/yyyy'));\n $dateColumnHeader = new Lumia_DataGrid_Header_Text('StudentListView:@Date of birth');\n $this->addColumn(new Lumia_DataGrid_Column($dateColumnBody, $dateColumnHeader));\n \n // Gender\n $genderColumnBody = new Admin_DataGrid_Student_Body_Gender('student_gender');\n $genderColumnHeader = new Lumia_DataGrid_Header_Text('StudentListView:@Gender');\n $this->addColumn(new Lumia_DataGrid_Column($genderColumnBody, $genderColumnHeader));\n \n // Class\n $classColumnBody = new Lumia_DataGrid_Body_Text('class_department');\n $classColumnHeader = new Lumia_DataGrid_Header_Text('StudentListView:@Class/Department');\n $this->addColumn(new Lumia_DataGrid_Column($classColumnBody, $classColumnHeader));\n \n // Status\n $statusColumnBody = new Admin_DataGrid_Student_Body_Status('user_status');\n $statusColumnHeader = new Lumia_DataGrid_Header_Text('StudentListView:@Status');\n $this->addColumn(new Lumia_DataGrid_Column($statusColumnBody, $statusColumnHeader));\n \n // Action\n $actionColumnBody = new Admin_DataGrid_Student_Body_Action('actionColumn');\n $actionColumnHeader = new Lumia_DataGrid_Header_Text();\n $this->addColumn(new Lumia_DataGrid_Column($actionColumnBody, $actionColumnHeader));\n }", "public function initialize_columns()\n {\n $this->add_column(new DataClassPropertyTableColumn(Right::class_name(), Right::PROPERTY_NAME));\n $this->add_column(new DataClassPropertyTableColumn(Right::class_name(), Right::PROPERTY_DESCRIPTION));\n }", "protected function get_column_info()\n {\n }", "protected function get_column_info()\n {\n }", "protected function columns(): array\n {\n return [\n TD::set('geBuecht_id', __('ID'))\n ->sort()\n ->render(function (geBuechtGastro $geBuecht) {\n return $geBuecht->id; \n }),\n TD::set('geBuecht_firstname', __('Vorname'))\n ->cantHide()\n ->render(function (geBuechtGastro $geBuecht) {\n return $geBuecht->firstname; \n }),\n TD::set('geBuecht_lastname', __('Nachname'))\n ->cantHide()\n ->render(function (geBuechtGastro $geBuecht) {\n return $geBuecht->name; \n }),\n TD::set('geBuecht_email', __('Email'))\n ->cantHide()\n ->render(function (geBuechtGastro $geBuecht) {\n return $geBuecht->email; \n }),\n TD::set('geBuecht_telefon', __('Tel.'))\n ->cantHide()\n ->render(function (geBuechtGastro $geBuecht) {\n return $geBuecht->tel; \n }),\n TD::set('geBuecht_size', __('Tischgrösse'))\n ->cantHide()\n ->render(function (geBuechtGastro $geBuecht) {\n return $geBuecht->size; \n }),\n TD::set('geBuecht_timeslot', __('Zeitfenster'))\n ->cantHide()\n ->render(function (geBuechtGastro $geBuecht) {\n return $geBuecht->timeslot; \n }),\n TD::set('geBuecht_remark', __('Bemerkungen'))\n ->cantHide()\n ->width('150px')\n ->render(function (geBuechtGastro $geBuecht) {\n return $geBuecht->remarks; \n }),\n TD::set('geBuecht_day', __('Datum'))\n ->cantHide()\n ->render(function (geBuechtGastro $geBuecht) {\n return $geBuecht->created_at->format('d.m.Y'); \n }),\n ];\n }", "public function getTableColumns()\n\t{\n\t}", "protected function _prepareColumns() {\n $this->addColumn('period', array(\n 'header' => Mage::helper('webpos')->__('Period'),\n 'align' => 'left',\n 'total' => 'sum',\n 'sortable' => false,\n 'filter' => false,\n 'index' => 'period',\n 'width' => '100px',\n ));\n $this->addColumn('user', array(\n 'header' => Mage::helper('webpos')->__('User'),\n 'align' => 'left',\n 'total' => 'sum',\n 'sortable' => false,\n 'filter' => false,\n 'index' => 'user',\n 'width' => '200px',\n ));\n $this->addColumn('totals_sales', array(\n 'header' => Mage::helper('webpos')->__('Sales Total'),\n 'align' => 'left',\n 'total' => 'sum',\n 'sortable' => false,\n 'filter' => false,\n 'width' => '100px',\n 'index' => 'totals_sales',\n 'type' => 'price',\n 'currency_code' => Mage::app()->getStore()->getBaseCurrency()->getCode(),\n ));\n $this->addExportType('*/*/exportCsv', Mage::helper('webpos')->__('CSV'));\n $this->addExportType('*/*/exportXml', Mage::helper('webpos')->__('XML'));\n\n return parent::_prepareColumns();\n }", "function get_columns()\n {\n $columns = array(\n 'cb' => '<input type=\"checkbox\" />', //Render a checkbox instead of text\n// 'type' => 'Type',\n// 'name' => 'Name',\n 'tag' => 'Shortcode Name',\n 'kind' => 'Kind',\n 'description' => 'Description',\n 'example' => 'Example',\n 'code' => 'Code',\n 'created_datetime' => 'Created Datetime'\n );\n return $columns;\n }", "public function initialize_columns()\n {\n $this->add_column(new DataClassPropertyTableColumn(User::class_name(), User::PROPERTY_LASTNAME));\n $this->add_column(new DataClassPropertyTableColumn(User::class_name(), User::PROPERTY_FIRSTNAME));\n\n $showEmail = Configuration::getInstance()->get_setting(array('Chamilo\\Core\\User', 'show_email_addresses'));\n\n if($showEmail)\n {\n $this->add_column(new DataClassPropertyTableColumn(User::class_name(), User::PROPERTY_EMAIL));\n }\n\n $this->add_column(new SortableStaticTableColumn('progress'));\n $this->add_column(new SortableStaticTableColumn('completed'));\n $this->add_column(new SortableStaticTableColumn('started'));\n\n if($this->getCurrentTreeNode()->supportsScore())\n {\n $this->add_column(new StaticTableColumn(self::COLUMN_LAST_SCORE));\n }\n }", "function hub_columns( $columns ) {\r\n $columns['hub_title'] = 'HUB Title';\r\n $columns['client'] = 'Client';\r\n\r\n unset( $columns['title'] );\r\n unset( $columns['date'] );\r\n\r\n $columns['date'] = 'Date';\r\n\r\n return $columns;\r\n }", "function getColumns(){\r\n return array(\r\n 'log_id'=>array('label'=>'日志id','class'=>'span-3','readonly'=>true), \r\n 'member_id'=>array('label'=>'用户','class'=>'span-3','type'=>'memberinfo'), \r\n 'mtime'=>array('label'=>'交易时间','class'=>'span-2','type'=>'time'), \r\n 'memo'=>array('label'=>'业务摘要','class'=>'span-3'), \r\n 'import_money'=>array('label'=>'存入金额','class'=>'span-3','type'=>'import_money'), \r\n 'explode_money'=>array('label'=>'支出金额','class'=>'span-3','type'=>'explode_money'), \r\n 'member_advance'=>array('label'=>'当前余额','class'=>'span-3'), \r\n 'paymethod'=>array('label'=>'支付方式','class'=>'span-3'), \r\n 'payment_id'=>array('label'=>'支付单号','class'=>'span-3'), \r\n 'order_id'=>array('label'=>'订单号','class'=>'span-3'), \r\n 'message'=>array('label'=>'管理备注','class'=>'span-3'), \r\n 'money'=>array('label'=>'出入金额','class'=>'span-3','readonly'=>true), \r\n 'shop_advance'=>array('label'=>'商店余额','class'=>'span-3','readonly'=>true), \r\n );\r\n }", "public static function laratablesAdditionalColumns()\n\t\t{\n\t\t\treturn ['coa_name'];\n\t\t}", "function sb_slideshow_columns( $columns ) {\n\tunset( $columns['date'] ); // remove date column\n\t$columns['id'] = 'ID';\n\t$columns['shortcode'] = 'Shortcode';\n\t$columns['date'] = 'Date'; // add date column back, at the end\n\n\treturn $columns;\n}", "public function getColumnConfig();", "function jobstar_core_add_job_cat_columns( $columns ) {\r\n $new_cols = array();\r\n foreach ( $columns as $key => $col ) {\r\n if ( $key == 'name' ) {\r\n $new_cols['icon'] = 'Icon';\r\n }\r\n $new_cols[ $key ] = $col;\r\n }\r\n return $new_cols;\r\n}", "protected function _prepareColumns()\n {\n $this->addColumn('increment_id', array(\n 'header' => Mage::helper('sales')->__('Shipment #'),\n 'index' => 'increment_id',\n 'filter_index' => 'main_table.increment_id',\n 'type' => 'text',\n ));\n $this->addColumn('shipment_id', array(\n 'header' => Mage::helper('sales')->__('Shipment #'),\n 'index' => 'entity_id',\n 'filter_index' => 'main_table.entity_id',\n 'type' => 'text',\n ));\n\n $this->addColumn('canpar_shipment_id', array(\n 'header' => Mage::helper('sales')->__('Canpar Shipment #'),\n 'index' => 'canpar_shipment_id',\n 'filter_index' => 'ch_shipment.shipment_id',\n 'type' => 'text',\n ));\n\n $this->addColumn('manifest_id', array(\n 'header' => Mage::helper('sales')->__('Canpar Manifest #'),\n 'index' => 'manifest_id',\n 'renderer' => 'canparmodule/adminhtml_canparshipment_renderer_manifestId',\n 'filter_index' => 'ch_shipment.manifest_id',\n ));\n\n $this->addColumn('created_at', array(\n 'header' => Mage::helper('sales')->__('Date Shipped'),\n 'index' => 'created_at',\n 'filter_index' =>'main_table.created_at',\n 'type' => 'datetime',\n ));\n\n $this->addColumn('order_increment_id', array(\n 'header' => Mage::helper('sales')->__('Order #'),\n 'index' => 'order_increment_id',\n 'filter_index'=> 'o.increment_id',\n 'type' => 'text',\n ));\n\n $this->addColumn('order_created_date', array(\n 'header' => Mage::helper('sales')->__('Order Date'),\n 'index' => 'order_created_date',\n 'filter_index' =>'o.created_at',\n 'type' => 'datetime',\n ));\n\n $this->addColumn('total_qty', array(\n 'header' => Mage::helper('sales')->__('Total Qty'),\n 'index' => 'total_qty',\n 'type' => 'number',\n ));\n\n $this->addColumn('action',\n array(\n 'header' => Mage::helper('sales')->__('Action'),\n 'width' => '50px',\n 'type' => 'action',\n 'getter' => 'getId',\n 'actions' => array(\n array(\n 'caption' => Mage::helper('sales')->__('View'),\n 'url' => array('base'=>'*/sales_shipment/view'),\n 'field' => 'shipment_id'\n )\n ),\n 'filter' => false,\n 'sortable' => false,\n 'is_system' => true\n ));\n\n $this->addExportType('*/*/exportCsv', Mage::helper('sales')->__('CSV'));\n $this->addExportType('*/*/exportExcel', Mage::helper('sales')->__('Excel XML'));\n\n return parent::_prepareColumns();\n }", "function custom_columns( $columns ) {\n\t$columns = array(\n\t\t'cb' => '<input type=\"checkbox\" />',\n\t\t'title' => 'Title',\n\t\t'featured_image' => 'Photo',\n\t\t'date' => 'Date'\n\t);\n\treturn $columns;\n}", "public function getColumns(): array;", "function add_staff_fa_column($columns) {\r\n\t$columns =\tarray_slice($columns, 0, 1, true) +\r\n\t\t\t\t\t\t\tarray('cws_dept_thumb' => __('Pics', THEME_SLUG)) +\r\n\t\t\t\t\t\t\tarray_slice($columns, 1, NULL, true);\r\n\t$columns['procedures'] = __('Procedures', THEME_SLUG);\r\n\t$columns['slug'] = $columns['procedures'];\r\n\t$columns['events'] = __('Events', THEME_SLUG);\r\n\tunset($columns['slug']);\r\n\t$columns['cws_dept_decription'] = __('Description', THEME_SLUG);\r\n\t$columns['description'] = $columns['cws_dept_decription'];\r\n\tunset($columns['description']);\r\n\treturn $columns;\r\n}", "abstract protected function getColumnsHeader(): array;", "protected function addColumns(Table $table)\n {\n $stmt = $this->dbh->query(\"SHOW FULL COLUMNS FROM `\" . $table->getName() . \"`\");\n\n while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) {\n $column = $this->getColumnFromRow($row, $table);\n $table->addColumn($column);\n }\n }", "function get_columns(){\n\n\t\t$columns = array(\n\t\t\t\t\t\t\t'code'\t\t\t=>\t__( 'Voucher Code', 'woovoucher' ),\n\t\t\t\t\t\t\t'product_info'\t=>\t__(\t'Product Information', 'woovoucher' ),\n\t\t\t\t\t\t\t'buyers_info'\t=>\t__(\t'Buyer\\'s Information', 'woovoucher' ),\n\t\t\t\t\t\t\t'order_info'\t=>\t__(\t'Order Information', 'woovoucher' ),\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t'redeem_by'\t\t=>\t__(\t'Redeem Information', 'woovoucher' ),\n\t\t\t\t\t);\n\n\t\treturn apply_filters( 'woo_vou_used_add_column', $columns );\n\t}", "function get_columns() {\r\n return $columns= array(\r\n 'col_created_on'=>__('Date'),\r\n 'col_type'=>__('Type'),\r\n 'col_ip'=>__('IP'),\r\n 'col_os'=>__('Operating System'),\r\n 'col_browser'=>__('Browser'),\r\n 'col_location'=>__('Location'),\r\n 'col_actions'=>__('Actions')\r\n );\r\n }", "function get_columns() {\n return $columns= array(\n 'col_what'=>__('What','wpwt'),\n 'col_user'=>__('User Name','wpwt'),\n 'col_groupName'=>__('Group Name','wpwt'),\n 'col_application'=>__('Application','wpwt')\n );\n }", "public function setDefaultColumns()\n {\n foreach ($this->Model->columnsInformation as $column) {\n // Set indexes\n if ($column['Key'] == \"PRI\") {\n $this->indexes[] = $this->table . \".\" . $column['Field'];\n }\n // Set columns\n $this->columns[] = $this->table . \".\" . $column['Field'];\n }\n // Set default columns\n $this->defaultColumns = $this->columns;\n // Add actions column\n $this->addCustomColumn($this->builtInCustomColumns['actions']);\n // Add no column\n $this->addCustomColumnAsFirstColumn($this->builtInCustomColumns['no']);\n }", "public function get_columns()\n {\n $columns = array(\n 'cb' => '<input type=\"checkbox\" />',\n 'perusahaan' => 'Name',\n 'total_ken' => 'Total Kendaraan',\n 'total_pen' => 'Total Pengemudi',\n 'tanggal' => 'Created Date' \n );\n return $columns;\n }", "function add_header_columns($columns) \n {\n $columns = array(\n \"cb\" => \"<input type=\\\"checkbox\\\" />\",\n \"shortcode\" => __('Shortcode'),\n \"title\" => __('Title'),\n \"quote\" => __('Quote', $this->localization_domain),\n \"author\" => __('Author'),\n \"date\" => __('Publish Date'),\n );\n return $columns;\n }", "function add_col($col,$header,$width,$html,$op='init_data'){\r\n\r\n\t\tif($op=='init_data')\r\n\t\t\t$this->extra_cols[]=array($col,$header,$width,$html);\r\n\r\n\t\tif(strpos($op,'init')!==false){\r\n\r\n\t\t\t// adds the new header\r\n\t\t\t$arr_header=explode(',',$this->header);\r\n\r\n\t\t\tif($col>count($arr_header)+1)\r\n\t\t\t\t$col=count($arr_header)+1;\r\n\r\n\t\t\tarray_splice($arr_header, $col-1, 0, $header);\r\n\t\t\t$this->header=implode(',',$arr_header);\r\n\r\n\t\t\t// adds the new column width\r\n\t\t\t$arr_width=explode(',',$this->width);\r\n\t\t\tarray_splice($arr_width, $col-1, 0, $width);\r\n\t\t\t$this->width=implode(',',$arr_width);\r\n\r\n\t\t\t// rearrange the sort string\r\n\t\t\tif($this->sort_init===true){\r\n\t\t\t\t$this->sort_init=str_repeat('t',count($arr_header));\r\n\t\t\t\t$this->sort_init[$col-1]='f';\r\n\t\t\t}else if($this->sort_init!==true and $this->sort_init!==false){\r\n\t\t\t\t$this->sort_init=substr_replace($this->sort_init,'f',$col-1,0);\r\n\t\t\t}\r\n\r\n\t\t\t// rearrange the search_init string\r\n\t\t\tif($this->search_init===true){\r\n\t\t\t\t$this->search_init=str_repeat('t',count($arr_header));\r\n\t\t\t\t$this->search_init[$col-1]='f';\r\n\t\t\t}elseif($this->search_init!==true and $this->search_init!==false){\r\n\t\t\t\t$this->search_init=substr_replace($this->search_init,'f',$col-1,0);\r\n\t\t\t}\r\n\r\n\t\t\t// rearrange the multiple_search_init string\r\n\t\t\tif($this->multiple_search_init===true){\r\n\t\t\t\t$this->multiple_search_init=str_repeat('t',count($arr_header));\r\n\t\t\t\t$this->multiple_search_init[$col-1]='f';\r\n\t\t\t}else if($this->multiple_search_init=='hide'){\r\n\t\t\t\t$this->multiple_search_init=str_repeat('t',count($arr_header));\r\n\t\t\t\t$this->multiple_search_init[$col-1]='f';\r\n\t\t\t\t$this->multiple_search_init.='hide';\r\n\t\t\t}else if($this->multiple_search_init!==true and $this->multiple_search_init!==false){\r\n\t\t\t\t$this->multiple_search_init=substr_replace($this->multiple_search_init,'f',$col-1,0);\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\tif(strpos($op,'data')!==false){\r\n\r\n\t\t\t// add the new column in all rows\r\n\t\t\tif($this->total_items>0){\r\n\t\t\t\tfor($i=0; $i<count($this->data); $i++){\r\n\t\t\t\t\tarray_splice($this->data[$i], $col-1, 0, array($html));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t}", "public function add_new_columns($columns){\n $column_meta = array( 'username' => __( 'Username', 'drophtml' ) );\n $columns = array_slice( $columns, 0, 6, true ) + $column_meta + array_slice( $columns, 6, NULL, true );\n return $columns;\n }", "protected function load_col_info()\n {\n }", "protected function _prepareColumns()\n {\n if (!$this->getCategory()->getProductsReadonly()) {\n $this->addColumn('in_category', array(\n 'header_css_class' => 'a-center',\n 'type' => 'checkbox',\n 'name' => 'in_category',\n 'values' => $this->_getSelectedProducts(),\n 'align' => 'center',\n 'index' => 'entity_id',\n 'is_system' => true,\n ));\n }\n $this->addColumn('entity_id', array(\n 'header' => Mage::helper('catalog')->__('ID'),\n 'sortable' => true,\n 'width' => '60',\n 'index' => 'entity_id'\n ));\n $this->addColumn('name', array(\n 'header' => Mage::helper('catalog')->__('Name'),\n 'index' => 'name'\n ));\n $this->addColumn('sku', array(\n 'header' => Mage::helper('catalog')->__('SKU'),\n 'width' => '80',\n 'index' => 'sku'\n ));\n $this->addColumn('price', array(\n 'header' => Mage::helper('catalog')->__('Price'),\n 'type' => 'currency',\n 'width' => '1',\n 'currency_code' => (string) Mage::getStoreConfig(Mage_Directory_Model_Currency::XML_PATH_CURRENCY_BASE),\n 'index' => 'price'\n ));\n $this->addColumn('position', array(\n 'header' => Mage::helper('catalog')->__('Position'),\n 'width' => '1',\n 'type' => 'number',\n 'index' => 'position',\n 'editable' => !$this->getCategory()->getProductsReadonly(),\n //'renderer' => 'adminhtml/widget_grid_column_renderer_input'\n ));\n\n //Add export type for CSV\n $this->addExportType('*/*/exportCsv', Mage::helper('adminhtml')->__('CSV'));\n }", "function kt_invoices_columns_add($columns) {\n\tunset($columns['date']);\n\t// unset($columns['package']);\n\tunset($columns['price']);\n\tunset($columns['payment_option']);\n\tunset($columns['title']);\n\t$columns['user'] \t\t= pll__('User','docdirect_core');\n\t$columns['package'] \t\t\t= pll__('Package','docdirect_core');\n\t$columns['payment_option'] \t\t= pll__('Payment Method','docdirect_core');\n\t$columns['price'] \t\t= pll__('Price','docdirect_core');\n \n\t\treturn $columns;\n}", "public static function add_columns( $columns ) {\n\t\n\t\tglobal $post_type;\n\t\n \t\t$columns_start = array_slice( $columns, 0, 1, true );\n \t\t$columns_end = array_slice( $columns, 1, null, true );\n\t\t\n\t\t// add logo coloumn in first\n \t\t$columns = array_merge(\n \t\t$columns_start,\n \t\tarray( 'logo' => __( '', self::$text_domain ) ),\n \t\t$columns_end\n \t\t);\n \t\t\n \t\t// append taxonomy columns on end\n\t\t$taxonomy_names = get_object_taxonomies( self::$post_type_name );\n\t\n\t\tforeach ( $taxonomy_names as $taxonomy_name ) {\n\t\n\t\t\t$taxonomy = get_taxonomy( $taxonomy_name );\n\t\n\t\t\tif ( $taxonomy->_builtin || !in_array( $post_type , $taxonomy->object_type ) )\n\t\t\t\tcontinue;\n\t\t\t\t\n\t\t\t$columns[ $taxonomy_name ] = $taxonomy->label;\n\t\t}\n\t\t\n\t\treturn $columns;\n\t\t\n\t}", "protected function _configureColumns()\n {\n if (empty($this->columns)) {\n $this->guessColumns();\n }\n $this->_sourceColumns = $this->columns;;\n\n $columnsByKey = [];\n foreach ($this->columns as $column) {\n $columnKey = $this->_getColumnKey($column);\n for ($j = 0; true; $j++) {\n $suffix = ($j) ? '_' . $j : '';\n $columnKey .= $suffix;\n if (!array_key_exists($columnKey, $columnsByKey)) {\n break;\n }\n }\n $columnsByKey[$columnKey] = $column;\n }\n\n $this->columns = $columnsByKey;\n }", "function add_columns_init() {\r\n\r\n\t\t// don't add the column for any taxonomy that has specifically\r\n\t\t// disabled showing the admin column when registering the taxonomy\r\n\t\tif( ! isset( $this->tax_obj->show_admin_column ) || ! $this->tax_obj->show_admin_column )\r\n\t\t\treturn;\r\n\r\n\t\t// also grab all the post types the tax is registered to\r\n\t\tif( isset( $this->tax_obj->object_type ) && is_array( $this->tax_obj->object_type ) ) foreach ( $this->tax_obj->object_type as $post_type ){\r\n\r\n\t\t\t//add some hidden data that we'll need for the quickedit\r\n\t\t\tadd_filter( \"manage_{$post_type}_posts_columns\", array( $this, 'add_tax_columns' ) );\r\n\t\t\tadd_action( \"manage_{$post_type}_posts_custom_column\", array( $this, 'custom_tax_columns' ), 99, 2);\r\n\r\n\t\t}\r\n\r\n\t}", "function addColumns($columns)\n {\n if (is_array($columns)) {\n foreach ($columns as $column) {\n if (!isset($this->columns_list[$column])) {\n $this->columns[] = $column;\n $this->columns_list[$column] = 1;\n }\n }\n }\n else {\n if (!isset($this->columns_list[$columns])) {\n $this->columns[] = $columns;\n $this->columns_list[$columns] = 1;\n }\n }\n }", "function wpc_client_my_columns( $columns ) {\r\n $columns['clients'] = 'Clients';\r\n $columns['groups'] = 'Client Circles';\r\n\r\n unset($columns['date']);\r\n $columns['date'] = 'Date';\r\n\r\n return $columns;\r\n }" ]
[ "0.75826025", "0.73465526", "0.72714293", "0.7252098", "0.71733785", "0.71286374", "0.7112028", "0.70371646", "0.7001314", "0.6952682", "0.6946171", "0.6920126", "0.6919209", "0.6918795", "0.69088537", "0.68793255", "0.68662596", "0.6864674", "0.6848045", "0.68463355", "0.6842728", "0.6840046", "0.6839392", "0.6817209", "0.6808439", "0.6808439", "0.6808439", "0.6808439", "0.6808439", "0.6808439", "0.6808439", "0.6804165", "0.6796396", "0.6796396", "0.6796396", "0.6796396", "0.6796093", "0.6795754", "0.6795754", "0.67752707", "0.676743", "0.6758481", "0.6756549", "0.6740654", "0.67364126", "0.67353517", "0.6730947", "0.6729465", "0.6705314", "0.66673166", "0.6662476", "0.6643557", "0.66100883", "0.6607184", "0.65606546", "0.65587425", "0.6555688", "0.65509635", "0.6545814", "0.65389585", "0.65357643", "0.6535497", "0.65336317", "0.65241283", "0.65228325", "0.6515803", "0.651314", "0.65125734", "0.65065277", "0.65015143", "0.6499911", "0.6481973", "0.64812714", "0.64777356", "0.6476141", "0.6454933", "0.6453478", "0.64432114", "0.6442787", "0.64422566", "0.6434771", "0.64243186", "0.6421396", "0.6417268", "0.64166546", "0.64125955", "0.64121896", "0.6410285", "0.6408725", "0.6395914", "0.63954014", "0.63821006", "0.6381381", "0.6374079", "0.6369095", "0.6362529", "0.6362433", "0.635998", "0.63593596", "0.6357779", "0.6357185" ]
0.0
-1
/ metodo para inicializar el modelo a partir de la definicion de los campos de la tabla debe llamarse al final del construct de cada model
public function init() { if (count($this->table_fields) < 1) return false; foreach ($this->table_fields as $table_field) { if ($table_field->get_primary_key()) { $this->id_field = $table_field->get_name(); } if ($table_field->get_name_key()) { $this->name_fields[] = $table_field->get_name(); } if ($table_field->get_unike_key()) { $this->unike_keys[] = $table_field->get_name(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __construct () {\n $this->model = 'App\\\\' . $this->model;\n $this->model = new $this->model();\n\n // Get the column listing for a given table\n $this->table_columns = Schema::getColumnListing( $this->table );\n }", "protected function _initialize()\r\n {\r\n $this->metadata()->setTablename('comentarios');\r\n $this->metadata()->setPackage('system.application.models.dao');\r\n \r\n # nome_do_membro, nome_da_coluna, tipo, comprimento, opcoes\r\n \r\n $this->metadata()->addField('id', 'id', 'int', 11, array('primary' => true, 'notnull' => true, 'autoincrement' => true));\r\n $this->metadata()->addField('comentario', 'comentario', 'varchar', 45, array());\r\n $this->metadata()->addField('dataAvaliacao', 'data_avaliacao', 'datetime', null, array());\r\n $this->metadata()->addField('coordenadorId', 'coordenador_id', 'int', 11, array());\r\n $this->metadata()->addField('itemAvaliado', 'item_avaliado', 'varchar', 45, array());\r\n $this->metadata()->addField('avaliador', 'avaliador', 'varchar', 45, array());\r\n $this->metadata()->addField('tipoAvaliacao', 'tipo_avaliacao', 'varchar', 45, array());\r\n $this->metadata()->addField('subtipoAvaliacao', 'subtipo_avaliacao', 'varchar', 45, array());\r\n\r\n \r\n }", "function __construct(){\n\t\t\t$this->model = new model(); //variabel model merupakan objek baru yang dibuat dari class model\n\t\t\t$this->model->table=\"tb_dosen\";\n\t\t}", "public function __construct() {\n $this->porcentajesCursoModel = $this->model('PorcentajesCursoModel');\n $this->tipoModuloModel = $this->model('TipoModuloModel');\n $this->cursoModel = $this->model('CursoModel');\n }", "protected function _initialize()\r\n {\r\n $this->metadata()->setTablename('funcionario');\r\n $this->metadata()->setPackage('system.application.models.dao');\r\n \r\n # nome_do_membro, nome_da_coluna, tipo, comprimento, opcoes\r\n \r\n $this->metadata()->addField('id', 'id', 'int', 11, array('primary' => true, 'notnull' => true, 'autoincrement' => true));\r\n $this->metadata()->addField('nome', 'nome', 'varchar', 255, array());\r\n $this->metadata()->addField('login', 'login', 'varchar', 45, array());\r\n $this->metadata()->addField('senha', 'senha', 'varchar', 255, array());\r\n $this->metadata()->addField('email', 'email', 'varchar', 255, array());\r\n $this->metadata()->addField('lotacao', 'lotacao', 'varchar', 45, array());\r\n\r\n \r\n }", "protected function init()\n {\n if (!isset($this['fields'])) {\n $model = $base = [];\n if (isset($this->options['base_model']) && $this->options['base_model']) {\n $base = static::getTableInfo($this->options['base_model']) ? : [];\n }\n if (isset($this->options['table_name']) && (!$base || $this->options['table_name'] != $base['table_name'])) {\n $model = $this->getTableInfo($this->options['table_name']) ? : [];\n }\n \n if ($model && $base) {\n $model['ext_table'] = $model['table_name'];\n $model['ext_fields'] = isset($model['master_fields']) ? $model['master_fields'] : array_keys($model['fields']);\n \n $model['master_table'] = $base['table_name'];\n $model['master_fields'] = isset($base['master_fields']) ? $base['master_fields'] : array_keys($base['fields']);\n }\n \n // merge\n $model = ArrayHelper::merge($base, $model);\n $this->setOption($model);\n }\n }", "public function __construct() {\n $this->noticia_modelo = $this->modelo('NoticiaModelo');\n }", "function init()\n {\n /**\n * The database table to store the model.\n * The table name will be prefixed with the prefix define\n * in the global configuration.\n */\n $this->_a['table'] = 'todo_lists';\n \n /**\n * The definition of the model.\n * Each key of the associative array\n * corresponds to a \"column\" and the definition of the column is\n * given in the corresponding array.\n */\n $this->_a['cols'] = array(\n // It is mandatory to have an \"id\" column.\n 'id' => array(\n 'type' => 'Pluf_DB_Field_Sequence',\n // It is automatically added.\n 'blank' => true\n ),\n 'name' => array(\n 'type' => 'Pluf_DB_Field_Varchar',\n 'blank' => false,\n 'size' => 100,\n // The verbose name is all lower case\n 'verbose' => 'name'\n )\n );\n /**\n * You can define the indexes.\n * Indexes are you to sort and find elements. Here we define\n * an index on the completed column to easily select the list\n * of completed or not completed elements.\n */\n $this->_a['idx'] = array();\n $this->_a['views'] = array();\n }", "public function init()\n {\n\t\t$this->user_model = new Application_Model_Users;\n\t\t$this->request_model = new Application_Model_Requests;\n\t\t$this->material_model = new Application_Model_Materials;\n\t\t$this->course_model = new Application_Model_Courses;\n\t\t$this->comment_model = new Application_Model_Comments;\n\t\t$this->category_model = new Application_Model_Categories;\n \t$this->assoc_rules_model = new Application_Model_Assocrules;\n }", "public function init()\n {\n //Get all all authors with their articles\n\t $query = Proyecto::find();\n $query->select('proyecto.*, Nombre AS nombre')\n ->leftJoin('categoriaproyecto','categoriaProyecto_idcategoriaProyecto=idcategoriaProyecto')\n ->groupBy('idProyecto')\n ->with('categoriaProyectoIdcategoriaProyecto');\n\t\tforeach($query->all() as $pro) {\n\t\t\t//Add rows with the Author, # of articles and last publishing date\n\t\t\t$this->allModels[] = [\n\t\t\t\t'IdProyecto' => $pro->idProyecto,\n\t\t\t\t'Titulo' => $pro->Titulo,\n\t\t\t\t'Descripcion' => $pro->Descripcion,\n\t\t\t\t'Url' => $pro->Url,\n\t\t\t\t'Imagen' => $pro->Imagen,\n\t\t\t\t'UserID' => $pro->user_id,\n\t\t\t\t'Fecha' => $pro->Fecha,\n\t\t\t\t'Categoria' =>$pro->nombre,\n\t\t\t];\n\t\t}\n\t}", "public function __construct()\n {\n parent::__construct();\n\n if (!$this->table) {\n $this->table = strtolower(str_replace('_model','',get_class($this))); //fungsi untuk menentukan nama tabel berdasarkan nama model\n }\n }", "public function initialize()\n {\n $this->setSchema(\"sistema\");\n $this->setSource(\"comentarios\");\n $this->belongsTo('id_usuario', '\\Usuarios', 'id_usuario', ['alias' => 'Usuarios']);\n $this->belongsTo('id_reporte', '\\Reporte', 'id_reporte', ['alias' => 'Reporte']);\n }", "public function __construct() {\n parent::__construct();\n $this->load->model(array('dt_diag_klsf_model','dt_obat_model','dt_pasien_model','dt_pemeriksaan_model','dt_proses_model','dt_thpan_model'));\n }", "public function initialize()\n {\n \t$this->belongsTo('id_usuario', 'IbcUsuario', 'id_usuario', array(\n \t\t\t'reusable' => true\n \t));\n \t$this->belongsTo('id_periodo', 'CobPeriodo', 'id_periodo', array(\n \t\t\t'reusable' => true\n \t));\n \t$this->belongsTo('id_contrato', 'CobActaconteo', 'id_contrato', array(\n \t\t\t'reusable' => true\n \t));\n \t$this->belongsTo('id_ajuste_reportado', 'CobAjusteReportado', 'id_ajuste_reportado', array(\n \t\t\t'reusable' => true\n \t));\n \t$this->belongsTo('id_actaconteo_persona_facturacion', 'CobActaconteoPersonaFacturacion', 'id_actaconteo_persona_facturacion', array(\n \t\t\t'reusable' => true\n \t));\n }", "public function setupModel() {\n\t\tswitch ($this->dbType()) {\n\t\tcase self::DB_TYPE_MYSQL: default:\n\t\t\ttry {\n\t\t\t\t$theSql = $this->getTableDefSql(self::TABLE_Permissions);\n\t\t\t\t$this->execDML($theSql);\n\t\t\t\t$this->debugLog($this->getRes('install/msg_create_table_x_success/'.$this->tnPermissions));\n\t\t\t} catch (PDOException $pdoe){\n\t\t\t\tthrow new DbException($pdoe,$theSql);\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\t}", "public function __construct()\n {\n $this ->model = $this ->makeModel($this ->model());\n }", "protected function _initialize()\n {\n $this->metadata()->setTablename('turma');\n $this->metadata()->setPackage('Model');\n \n # nome_do_membro, nome_da_coluna, tipo, comprimento, opcoes\n \n $this->metadata()->addField('id', 'id', 'int', 11, array('primary' => true, 'notnull' => true, 'autoincrement' => true));\n $this->metadata()->addField('foto', 'foto', 'varchar', 45, array());\n $this->metadata()->addField('ano', 'ano', 'int', 11, array('notnull' => true));\n $this->metadata()->addField('semestre', 'semestre', 'int', 1, array('notnull' => true));\n\n \n $this->metadata()->addRelation('egressos', Lumine_Metadata::ONE_TO_MANY, 'Egresso', 'turmaId', null, null, null);\n }", "public function __CONSTRUCT(){\n $this->model = new Estadobien();\n }", "protected static function init()\n\t{\n\t\tif( static::$table === null )\n\t\t{\n\t\t\t// set the table name by Model name\n\t\t\t// Ex: UserModel -> users\n\t\t\tstatic::$table = strtolower( preg_replace('/Model$/', '', get_called_class()) ) . \"s\";\n\t\t}\n\t}", "public function initialize()\n {\n $this->setSchema(\"dia_sin_iva\");\n $this->setSource(\"terceros_descuentos_sin_impuestos\");\n $this->belongsTo('cod_descuento_sin_impuesto', 'App\\Models\\DescuentosSinImpuestos', 'cod', ['alias' => 'DescuentosSinImpuestos']);\n $this->belongsTo('cod_producto', 'App\\Models\\Productos', 'cod', ['alias' => 'Productos']);\n }", "protected function init()\r\n {\r\n $this->table_name = 'libelles';\r\n $this->table_type = 'system';\r\n $this->table_gateway_alias = 'Sbm\\Db\\SysTableGateway\\Libelles';\r\n $this->id_name = array(\r\n 'nature',\r\n 'code'\r\n );\r\n }", "public function initialize()\n {\n $this->setSource('tblEntry');\n\n $this->hasOne('userId', '\\Soul\\Model\\User', 'userId', ['alias' => 'user']);\n $this->belongsTo('eventId', '\\Soul\\Model\\Event', 'eventId', ['alias' => 'event']);\n $this->hasOne('paymentId', '\\Soul\\Model\\Payment', 'paymentId', ['alias' => 'payment']);\n }", "private function createFields(){\n //Human::log(\"------------- Create fields model \".$this->modelName);\n self::$yetInit[get_class($this)]=true;\n //let's init database.\n $modelName=get_class($this);\n $modelNameManager=$modelName.\"Manager\";\n if(!class_exists($modelNameManager)){\n $modelNameManager=\"DbManager\";\n }\n $rc=new ReflectionClass($modelName);\n $rc->setStaticPropertyValue(\"manager\", new $modelNameManager( $modelName ));\n \n //browse the class properties to find db fields and then store it in a good order (keys first, associations later)\n\t $fields=array();\n foreach ($rc->getProperties() as $field){\n if($field->isPublic()){\n\n\n //get the type from the @var type $field name comment...yes, I'm sure.\n $comments=$field->getDocComment();\n $details=CodeComments::getVariable($comments);\n\n $type=$details[\"type\"];\n $isVector=$details[\"isVector\"];\n $description=$details[\"description\"];\n $fieldName=$field->name;\n\n $fieldObject=$this->getDbField($fieldName,$type,$isVector);\n\n if($fieldObject){\n $fieldObject[\"comments\"]=$description;\n switch($fieldObject[\"type\"]){\n\n case \"OneToOneAssoc\":\n case \"NToNAssoc\":\n //associations at the end\n array_push($fields, $fieldObject);\n break;\n\n default :\n //classic fields at the beginning\n array_unshift($fields, $fieldObject);\n\n }\n\n }\n }\n }\n\t //create the fields\n\t foreach ($fields as $f){\n\t\t$f[\"options\"][Field::COMMENTS]=$f[\"comments\"];\n Field::create($modelName.\".\".$f[\"name\"],$f[\"type\"],$f[\"options\"]);\n //Human::log($this->modelName.\" Create field \".$f[\"name\"]);\n \n\t }\n \n\t //whooho!\n $this->db()->init(); \n }", "public function initialize()\n {\n $this->hasMany('id', 'Aulas', 'id_materia', array('alias' => 'Aulas'));\n $this->hasMany('id', 'Aulas', 'id_materia', NULL);\n }", "public function init()\r\n {\r\n $dbTable = new Application_Model_DbTable_Fournisseur();\r\n $this->mapper = new Application_Model_Mapper_Fournisseur($dbTable);\r\n }", "public function __construct() {\n\t\t$this->empleadoModel = $this->model('Empleado');\n\t}", "public function init()\r\n {\r\n $this->_helper->db->setDefaultModelName('DefaultMetadataValue');\r\n }", "public function initialize()\n {\n $this->setSchema(\"bd_diagnostico\");\n $this->setSource(\"categoria\");\n $this->hasMany('id_categoria', 'diag\\cc\\Pregunta', 'id_categoria', ['alias' => 'Pregunta']);\n $this->hasMany('id_categoria', 'diag\\cc\\Visita', 'id_categoria', ['alias' => 'Visita']);\n }", "public function initialize()\n {\n $this->setSchema(\"public\");\r\n $this->setSource(\"capacidad_clase\");\r\n $this->belongsTo('modelo_avion_id', '\\ModeloAvion', 'id', ['alias' => 'ModeloAvion']);\r\n $this->belongsTo('id_clases', '\\TipoClase', 'id', ['alias' => 'TipoClase']);\n }", "function __construct() {\n\t\t$this->cotizacionModel = new cotizacionModel();\n\t}", "protected function tableModel()\n {\n }", "public function initialize()\n {\n $this->setSchema(\"fox_zeus\");\r\n $this->setSource(\"ubicacion\");\r\n $this->hasMany('codUbicacion', 'HistoricoMovimientos', 'codUbicacion', ['alias' => 'HistoricoMovimientos']);\r\n $this->belongsTo('codSecion', '\\Seccion', 'codSecion', ['alias' => 'Seccion']);\r\n $this->belongsTo('codZona', '\\Zona', 'codZona', ['alias' => 'Zona']);\r\n $this->belongsTo('codSector', '\\Sector', 'codSector', ['alias' => 'Sector']);\r\n $this->belongsTo('codAlmacen', '\\Almacen', 'codAlmacen', ['alias' => 'Almacen']);\r\n $this->belongsTo('codProducto', '\\Producto', 'codProducto', ['alias' => 'Producto']);\n }", "public function init()\n {\n $this->yatimsModel = new Admin_Model_DbTable_GestYatims();\n $this->dateImpl = new Default_Model_DateImpl();\n }", "public function GruporModelo()\n\t\t{\n\t\t\t$id = \"\";\n\t\t\t$numero = \"\";\n\t\t\t$franja = \"\";\n\t\t}", "public function loadModel()\n {\n $data = ModelsPegawai::find($this->dataId);\n $this->name = $data->name;\n $this->email = $data->email;\n $this->username = $data->username;\n $this->password = $data->password;\n $this->level = $data->level;\n\n }", "public function __construct() {\n\t\t\t$this->modelName = 'concreeeeeete';\n\t\t}", "function __construct(){\n $this->toko = new M_Toko();\n $this->produk = new M_Produk(); //variabel model merupakan objek baru yang dibuat dari class model\n }", "abstract protected function prepareModels();", "public function initialize()\n {\n $this->hasMany('idmov', 'App\\Models\\MovEstoque', 'movimentacao_manual_estoque_idmov', array('alias' => 'MovEstoque'));\n $this->hasMany('idmov', 'App\\Models\\MovimentacaoManualEstoqueItem', 'idmov', array('alias' => 'MovimentacaoManualEstoqueItem'));\n $this->belongsTo('cd_ordem_servico_reparo', 'App\\Models\\OrdemServicoReparo', 'cd_ordem_servico', array('alias' => 'OrdemServicoReparo'));\n $this->belongsTo('cd_unidade', 'App\\Models\\UnidadeNegocio', 'cd_unidade', array('alias' => 'UnidadeNegocio'));\n $this->belongsTo('requerente', 'App\\Models\\Empresa', 'cd_empresa', array('alias' => 'Empresa'));\n $this->belongsTo('usuario_responsavel', 'App\\Models\\Usuario', 'cd_usuario', array('alias' => 'Usuario'));\n }", "public function __construct()\n {\n \t parent::__construct();\n \t $this->load->model('Modelo');\n }", "public function initialize() {\n $this->setSchema(\"coopdb\");\n $this->setSource(\"pedidosdetalle\");\n $this->belongsTo('IDKEY', 'Pedidos', 'TxnID', ['alias' => 'Pedidos']);\n }", "public function __construct()\n\t{\n\t\tif (!$this->model_name)\n\t\t{\n\t\t\t$this->model_name = str_replace('Model_', '', get_class($this));\n\t\t}\n\t\t$this->model_name = strtolower($this->model_name);\n\t\t\n\t\t$this->_initialize_db();\n\t}", "protected function buildModel()\n {\n $columns = collect($this->columns)->pluck('column')->implode('|');\n $foreigns = $this->module->tables->where('is_foreign', true);\n\n $this->model = [\n 'name' => $this->class,\n '--table' => $this->table,\n '--columns' => $columns,\n '--pk' => $this->primaryKey,\n '--module' => $this->module->id,\n ];\n\n if ($foreigns->count()) {\n $this->model['--relationships'] = $foreigns->transform(function ($foreign) {\n return $foreign->column.':'.$foreign->table_foreign;\n })->implode('|');\n }\n }", "public function initialize()\n {\n $this->belongsTo('id_actaconteo_persona', 'CobActaconteoPersonaExcusa', 'id_actaconteo_persona', array(\n 'reusable' => true\n ));\n $this->belongsTo('id_actaconteo_persona', 'CobActaconteoPersonaFacturacion', 'id_actaconteo_persona', array(\n 'reusable' => true\n ));\n $this->belongsTo('id_actaconteo', 'CobActaconteo', 'id_actaconteo', array(\n 'reusable' => true\n ));\n }", "private function init() {\n\t\tlist(, $this->db, $this->table) = explode('_', get_called_class(), 3);\n\t\t$this->db = defined('static::DB') ? static::DB : $this->db;\n\t\t$this->table = defined('static::TABLE') ? static::TABLE : $this->table;\n\t\t$this->pk = defined('static::PK') ? static::PK : 'id';\n\t}", "public function initialize()\n {\n $this->setSchema(\"fox_zeus\");\r\n $this->setSource(\"usuario\");\r\n $this->hasMany('codUsuario', 'UsuarioSistema', 'codUsuario', ['alias' => 'UsuarioSistema']);\r\n $this->belongsTo('codPersona', '\\Empleado', 'codPersona', ['alias' => 'Empleado']);\n }", "public function __construct() {\n $this->docenteModel = $this->model('DocenteModel');\n }", "function __construct() {\n $this->loteModel = new loteModel();\n }", "public function __construct() {\n parent::__construct();\n $this->load->model(\"modelo_base\");\n \n }", "public function initialize()\n {\n $this->hasMany('id', 'Message', 'idFil', array('alias' => 'Message'));\n $this->belongsTo('idFil', 'Message', 'id', array('alias' => 'Message'));\n $this->belongsTo('idProjet', 'Projet', 'id', array('alias' => 'Projet'));\n $this->belongsTo('idUser', 'User', 'id', array('alias' => 'User'));\n }", "public function _set_model_fields(){\n // set fields only when they have not been set for this object\n if($this->_fields_loaded===FALSE){\n\n foreach ($this->_meta() as $meta) {\n\n $this->{$meta->name} = '';\n }\n }\n }", "public function init()\n {\n $this->_helper->db->setDefaultModelName('BatchUpload_MappingSet');\n }", "function __construct() {\n\t //llamo al contructor de Controller.php\n\t parent::__construct();\n\n\t //instancio el modelo\n $this->modelo(array('cortos','ediciones','categorias'));\n\n\n\t}", "function init(){\n\t\t/*\n\t\t * Redefine this object, call parent then use addField to specify which fields\n\t\t * you are going to use\n\t\t */\n\t\tparent::init();\n\t\t$this->table_name = get_class($this);\n\t}", "public function buildModel() {}", "function FichaDron_model(){\n\t\tparent::__construct();\n\t\t//Cargamos la base de datos\n\t\t$this->load->database();\n\n\t}", "public function initTable(){\n\t\t\t\n\t\t}", "public function __construct() {\n parent::__construct();\n $this->_table_columns = array(\"id\", \"entry_date\", \"account_type\", \"entry_value\", \"memo\", \"expense\", \"confirm\", \"deleted\", \"create_stamp\", \"modified_stamp\");\n }", "public function initialize()\n {\n // attributes\n $this->setName('proveedormarca');\n $this->setPhpName('Proveedormarca');\n $this->setClassname('Proveedormarca');\n $this->setPackage('zarely');\n $this->setUseIdGenerator(true);\n // columns\n $this->addPrimaryKey('idproveedormarca', 'Idproveedormarca', 'INTEGER', true, null, null);\n $this->addForeignKey('idproveedor', 'Idproveedor', 'INTEGER', 'proveedor', 'idproveedor', true, null, null);\n $this->addForeignKey('idmarca', 'Idmarca', 'INTEGER', 'marca', 'idmarca', true, null, null);\n // validators\n }", "public function initialize()\n {\n $this->hasMany('id_niveldinst', 'Cargaestudiantes', 'id_niveldinst', array('alias' => 'Cargaestudiantes'));\n $this->hasMany('id_niveldinst', 'Datosprofesiona', 'nive_instr', array('alias' => 'Datosprofesiona'));\n $this->hasMany('id_niveldinst', 'Cargaestudiantes', 'id_niveldinst', NULL);\n $this->hasMany('id_niveldinst', 'Datosprofesiona', 'nive_instr', NULL);\n }", "function init()\n {\n foreach ($GLOBALS['_PX_models'] as $model=>$val) {\n if (isset($val['relate_to'])) {\n foreach ($val['relate_to'] as $related) {\n if ($this->_model == $related) {\n // The current model is related to $model\n // through one or more foreign key. We load\n // the $model to check on which fields the\n // foreign keys are set, as it is possible in\n // one model to have several foreign keys to\n // the same other model.\n if ($model != $this->_model) {\n $_m = new $model();\n $_fkeys = $_m->getForeignKeysToModel($this->_model);\n } else {\n $_fkeys = $this->getForeignKeysToModel($this->_model);\n }\n foreach ($_fkeys as $_fkey=>$_fkeyval) {\n //For each foreign key, we add the\n //get_xx_list method that can have a\n //custom name through the relate_name\n //value.\n if (isset($_fkeyval['relate_name'])) {\n $mname = $_fkeyval['relate_name'];\n } else {\n $mname = strtolower($model);\n }\n $this->_methods_list['get_'.$mname.'_list'] = array($model, $_fkey);\n }\n break;\n }\n }\n }\n if (isset($val['relate_to_many']) && \n in_array($this->_model, $val['relate_to_many'])) {\n $this->_methods_list['get_'.strtolower($model).'_list'] = $model;\n $this->_manytomany[$model] = 'manytomany';\n }\n }\n foreach ($this->_cols as $col=>$val) {\n $field = new $val['type']($col);\n if ($field->type == 'foreignkey') {\n $this->_methods_get['get_'.strtolower($col)] = array($val['model'], $col);\n $this->_fk[$col] = 'foreignkey';\n }\n if ($field->type == 'manytomany') {\n $this->_methods_list['get_'.strtolower($col).'_list'] = $val['model'];\n $this->_manytomany[$val['model']] = 'manytomany';\n }\n foreach ($field->add_methods as $method) {\n $this->_methods_extra[$method[0]] = array(strtolower($col), $method[1]);\n }\n }\n }", "public function populateModels()\n {\n }", "public function initialize()\r\n {\r\n\t\t$this->belongsTo(\"Mikro\", \"Pobjeda\\Models\\Mikro\", \"idMikro\");\r\n }", "function __construct() \n {\n // Creation de la table\n self::createTableIfNeeded();\n }", "function __construc()\r\n\t{\r\n\t\tparent::Model();\r\n\t}", "function __construct(){\n\t\t$this -> modelo = new usuarioBss();\n\t}", "public function initialize()\r\n {\r\n $this->belongsTo('encuesta_personalId', 'Personal', 'personal_id', array('alias' => 'Personal'));\r\n $this->belongsTo('encuesta_alojamientoId', 'Alojamiento', 'alojamiento_id', array('alias' => 'Alojamiento'));\r\n $this->belongsTo('encuesta_recepcionId', 'Recepcion', 'recepcion_id', array('alias' => 'Recepcion'));\r\n $this->belongsTo('encuesta_unidadId', 'Unidad', 'unidad_id', array('alias' => 'Unidad'));\r\n $this->belongsTo('encuesta_adicionalId', 'Adicional', 'adicional_id', array('alias' => 'Adicional'));\r\n $this->belongsTo('encuesta_sorteoId', 'Sorteo', 'sorteo_id', array('alias' => 'Sorteo'));\r\n }", "public function initialize()\n {\n parent::initialize();\n\n // Create config strings\n $this->config = [\n 'models' => [\n 'Files' => __d('elabs', 'File'),\n 'Notes' => __d('elabs', 'Note'),\n 'Posts' => __d('elabs', 'Article'),\n 'Projects' => __d('elabs', 'Project'),\n 'Albums' => __d('elabs', 'Album'),\n ]\n ];\n\n // Load models\n foreach (array_keys($this->config['models']) as $model) {\n $this->$model = TableRegistry::get($model);\n }\n }", "public static function preModel(){\n\t\t\n\t}", "public function __construct()\n {\n parent::__construct();\n $this->set_column(\"penj_nomor\", \"nomor penjualan\", true);\n $this->set_column(\"penj_nominal\", \"nominal penjualan\", false);\n $this->set_column(\"penj_tgl\", \"tanggal penjualan\", false);\n $this->set_column(\"cust_perusahaan\", \"customer\", false);\n $this->set_column(\"penj_jenis\", \"jenis penjualan\", false);\n $this->set_column(\"penj_status\", \"status\", false);\n $this->set_column(\"status_pembayaran\", \"status pembayaran\", false);\n $this->set_column(\"selisih_tanggal\", \"durasi jatuh tempo\", false);\n $this->penj_create_date = date(\"y-m-d h:i:s\");\n $this->penj_last_modified = date(\"y-m-d h:i:s\");\n $this->id_create_data = $this->session->id_user;\n $this->id_last_modified = $this->session->id_user;\n }", "public function __construct() {\n\t\tparent::__construct();\n\t\t$this->dados = $this->funcoes_gerais->getConstantes($this->dados);\n\n $this->load->model('produto_model', 'produto'); \n $this->load->model('categoria_model', 'categoria'); \n\t}", "public function initialize()\n {\n // attributes\n $this->setName('requerimiento');\n $this->setPhpName('Requerimiento');\n $this->setClassname('Requerimiento');\n $this->setPackage('lib.model');\n $this->setUseIdGenerator(true);\n // columns\n $this->addPrimaryKey('ID', 'Id', 'INTEGER', true, null, null);\n $this->addColumn('TIPO_OPERACION', 'TipoOperacion', 'VARCHAR', false, 32, null);\n $this->addColumn('TIPO_INMUEBLE', 'TipoInmueble', 'VARCHAR', false, 32, null);\n $this->addColumn('CANTIDAD_HABITACION', 'CantidadHabitacion', 'INTEGER', false, null, null);\n $this->addColumn('CANTIDAD_BANIO', 'CantidadBanio', 'DOUBLE', false, null, null);\n $this->addColumn('CANTIDAD_PARQUEO', 'CantidadParqueo', 'INTEGER', false, null, null);\n $this->addColumn('CANTIDAD_COMEDOR', 'CantidadComedor', 'INTEGER', false, null, null);\n $this->addColumn('CANTIDAD_SALA', 'CantidadSala', 'INTEGER', false, null, null);\n $this->addColumn('CANTIDAD_COCINA', 'CantidadCocina', 'INTEGER', false, null, null);\n $this->addColumn('DORMITORIO_SERVICIO', 'DormitorioServicio', 'BOOLEAN', false, 1, false);\n $this->addColumn('ESTUDIO', 'Estudio', 'BOOLEAN', false, 1, false);\n $this->addColumn('CISTERNA', 'Cisterna', 'BOOLEAN', false, 1, false);\n $this->addColumn('CANTIDAD_JARDIN', 'CantidadJardin', 'INTEGER', false, null, null);\n $this->addColumn('CANTIDAD_PATIO', 'CantidadPatio', 'INTEGER', false, null, null);\n $this->addColumn('LAVANDERIA', 'Lavanderia', 'BOOLEAN', false, 1, false);\n $this->addColumn('TIENE_LUZ', 'TieneLuz', 'BOOLEAN', false, 1, false);\n $this->addColumn('TIENE_AGUA', 'TieneAgua', 'BOOLEAN', false, 1, false);\n $this->addColumn('NIVELES', 'Niveles', 'INTEGER', false, null, null);\n $this->addColumn('AREA', 'Area', 'DOUBLE', false, null, null);\n $this->addColumn('AREA_X', 'AreaX', 'DOUBLE', false, null, null);\n $this->addColumn('AREA_Y', 'AreaY', 'DOUBLE', false, null, null);\n $this->addColumn('ESTADO', 'Estado', 'VARCHAR', false, 32, null);\n $this->addColumn('AMENIDADES', 'Amenidades', 'VARCHAR', false, 255, null);\n $this->addForeignKey('MONEDA_ID', 'MonedaId', 'INTEGER', 'moneda', 'ID', true, null, null);\n $this->addColumn('FORMA_PAGO', 'FormaPago', 'VARCHAR', false, 255, null);\n $this->addColumn('PRESUPUESTO_MIN', 'PresupuestoMin', 'DOUBLE', false, null, null);\n $this->addColumn('PRESUPUESTO_MAX', 'PresupuestoMax', 'DOUBLE', false, null, null);\n $this->addColumn('NOMBRE_CLIENTE', 'NombreCliente', 'VARCHAR', false, 255, null);\n $this->addColumn('CORREO_CLIENTE', 'CorreoCliente', 'VARCHAR', false, 255, null);\n $this->addColumn('TELEFONO_CLIENTE', 'TelefonoCliente', 'VARCHAR', false, 25, null);\n $this->addColumn('ESTATUS', 'Estatus', 'VARCHAR', false, 25, 'Disponible');\n $this->addColumn('PRECALIFICACION', 'Precalificacion', 'BOOLEAN', false, 1, null);\n $this->addColumn('NUCLEO_FAMILIAR', 'NucleoFamiliar', 'INTEGER', false, null, null);\n $this->addColumn('INGRESOS', 'Ingresos', 'DOUBLE', false, null, null);\n $this->addColumn('EGRESOS', 'Egresos', 'DOUBLE', false, null, null);\n $this->addColumn('ENGANCHE', 'Enganche', 'DOUBLE', false, null, null);\n $this->addColumn('TASA_INTERES_ANUAL', 'TasaInteresAnual', 'DOUBLE', false, null, null);\n $this->addColumn('PLAZO_EN_ANIOS', 'PlazoEnAnios', 'DOUBLE', false, null, null);\n $this->addColumn('PLAZO_EN_MESES', 'PlazoEnMeses', 'DOUBLE', false, null, null);\n $this->addColumn('MONTO_FINANCIAR_MAXIMO', 'MontoFinanciarMaximo', 'DOUBLE', false, null, null);\n $this->addColumn('CUOTA_TOTAL_MENSUAL_MAXIMA', 'CuotaTotalMensualMaxima', 'DOUBLE', false, null, null);\n $this->addColumn('CREATED_AT', 'CreatedAt', 'TIMESTAMP', false, null, null);\n $this->addColumn('UPDATED_AT', 'UpdatedAt', 'TIMESTAMP', false, null, null);\n $this->addColumn('CREATED_BY', 'CreatedBy', 'VARCHAR', false, 32, null);\n $this->addColumn('UPDATED_BY', 'UpdatedBy', 'VARCHAR', false, 32, null);\n $this->addForeignKey('USUARIO_ID', 'UsuarioId', 'INTEGER', 'usuario', 'ID', false, null, null);\n $this->addColumn('CANTIDAD_OFICINA', 'CantidadOficina', 'INTEGER', false, null, null);\n $this->addColumn('CANTIDAD_CUBICULO', 'CantidadCubiculo', 'INTEGER', false, null, null);\n // validators\n }", "public function initialize()\n {\n $this->hasMany('cd', 'ShouhinMrs', 'shu_souko_mr_cd', array('alias' => 'ShouhinMrs'));\n $this->hasMany('cd', 'ShiireMeisaiDts', 'souko_mr_cd', array('alias' => 'ShiireMeisaiDts'));\n $this->hasMany('cd', 'UriageMeisaiDts', 'souko_mr_cd', array('alias' => 'UriageMeisaiDts'));\n $this->belongsTo('tantou_mr_cd', 'TantouMrs', 'cd', array('alias' => 'TantouMrs'));\n }", "public function initialize()\n {\n $this->setSchema(\"atiempo_prod\");\n $this->hasMany('id', 'AcCartaAvalDetalle', 'id_carta', ['alias' => 'AcCartaAvalDetalle']);\n }", "public function __construct()\n {\n $this->ModelUser = new LoginRegisterModel();\n $this->modelCategorie = new CategoriesModel();\n\t\t/* ********** fin initialisation Model ********** */\n }", "function __construct () {\n\t\t$this->_model = new Model();\n\t}", "public function initialize()\n {\n $this->hasMany('cd_desconto', 'App\\Models\\PdvVendasHasItens', 'cd_desconto', array('alias' => 'PdvVendasHasItens'));\n $this->belongsTo('cd_caixa', 'App\\Models\\PdvCaixa', 'cd_caixa', array('alias' => 'PdvCaixa'));\n $this->belongsTo('cd_produto', 'App\\Models\\Produto', 'cd_produto', array('alias' => 'Produto'));\n $this->belongsTo('cd_unidade_negocio', 'App\\Models\\UnidadeNegocio', 'cd_unidade', array('alias' => 'UnidadeNegocio'));\n $this->belongsTo('cd_usuario_criacao', 'App\\Models\\Usuario', 'cd_usuario', array('alias' => 'Usuario'));\n }", "function UserModel()\n\t\t{\n\t\t\t$this->QueryTool = new UserModelDataBasic(DB_NAME);\n\t\t}", "public function initialize()\n {\n $schema = new Infra();\n $this->setSchema($schema->getSchemaBanco());\n $this->setSource(\"contrato_exercicio\");\n $this->hasMany('id', 'Circuitos\\Models\\ContratoFinanceiro', 'id_exercicio', ['alias' => 'ContratoFinanceiro']);\n $this->belongsTo('id_contrato', 'Circuitos\\Models\\Contrato', 'id', ['alias' => 'Contrato']);\n }", "public function __construct()\n {\n $this->model= new Estudiante;\n $this->curso= new Curso;\n $this->usuario= new Usuario;\n $this->centrointeres= new Centrointeres;\n $this->clase= new Clase;\n $this->grado = new Grado;\n $this->asistencia= new Asistencia;\n }", "public function init() {\n $bootstrap = $this->getInvokeArg(\"bootstrap\");\n $this->aConfig = $bootstrap->getOptions();\n $this->view->aConfig = $this->aConfig;\n $this->model= new Model_InfoBusiness();\n $this->modelMapper= new Model_InfoBusinessMapper();\n $this->modelProvince = new Model_MasterProvince();\n $this->modelProvinceMapper = new Model_MasterProvinceMapper();\n $this->modelDistrict = new Model_MasterDistrict();\n $this->modelDistrictMapper = new Model_MasterDistrictMapper();\n $this->modelWard = new Model_MasterWard();\n $this->modelWardMapper = new Model_MasterWardMapper();\n }", "function _init_fields()\n\t{\n\t\tif($this->table_name)\n\t\t{\n\t\t\t$this->db_fields = $this->db->list_fields($this->table_name);\n\t\t\t\n\t\t\tforeach($this->db_fields as $field)\n\t\t\t{\n\t\t\t\t$this->{$field} = NULL;\n\t\t\t}\n\t\t}\n\t}", "public function __construct(){\n \n $this->create_tables();\n \n }", "public function initialize()\n {\n $this->setSchema(\"\");\n $this->hasMany(\n 'id',\n 'App\\Models\\Flats',\n 'house_id',\n array('alias' => 'Flats', \"reusable\" => true)\n );\n\n $this->belongsTo(\n \"street_id\",\n \"App\\Models\\Streets\",\n \"id\",\n array(\"alias\" => \"Streets\", \"reusable\" => true)\n );\n }", "public function init()\r\n {\r\n $this->_helper->db->setDefaultModelName('Item');\r\n }", "public function initialize()\n {\n $this->belongsTo('nu_cedula', 'Datospersonales', 'nu_cedula', array('alias' => 'Datospersonales'));\n $this->belongsTo('nu_cedula', 'Datospersonales', 'nu_cedula', array('foreignKey' => true));\n }", "function init()\n\t{\n\n\t\tparent::init();\n\n\t\t/***** addField name *****/\n\t\t$this->addField('name')->mandatory('Customer name is required !');\n\t\t$this->addField('address');\n\t\t$this->addField('email');\n\t\t$this->addField('mobile')->type('int');\n\t\t$this->addField('dob')->type('date')->defaultValue(date('Y-m-d'));\n\t\t$this->addField('is_active')->type('boolean')->defaultValue(true);\n\n\t\t//$this->add('filestore/Field_Image','photo_id')->type('image');\n\t\t$this->add(\"filestore/Field_Image\",\"customer_photo_id\")->type('image');\n\t\t$this->add(\"filestore/Field_Image\",\"p_photo_id\")->type('image');\n\n\t\t/***** \n\t\t\t$this->addField('field_name')\n\n\t\t\t\t->type('data_type')\n\t\t\t\t\t\t* int\n\t\t\t\t\t\t* boolean\n\t\t\t\t\t\t* date\n\t\t\t\t\t\t* time\n\t\t\t\t\t\t \n\n\n\t\t\n\t\t*****/\n\n\t\n\t\t/*\n\t\t\tProject Model Mai Bahut Sare Customer id Hai is Liye Has Many \n\t\t\tProject Model Mai Ja Ke Dekho\n\t\t*/\n\n\t\t$this->hasMany('Project','customer_id');\n\n\t}", "public function __construct() {\n parent::__construct();\n \n $this->load->database(); //pegandose a la base\n $this->load->model('PlanSemanal_model'); //cargando el modelo Plan Semanal\n $this->load->model('User_model'); //cargando el modelo User\n \n }", "public function initialize()\n {\n $this->setSchema(\"ieslluis_gestiovfc\");\n $this->setSource(\"lines_comandes\");\n $this->hasMany('ncomanda', 'Comandes', 'numero', ['alias' => 'Comandes']);\n $this->hasMany('producte', 'Productes', 'codi', ['alias' => 'Productes']);\n }", "public function initialize()\n\t{\n\t // attributes\n\t\t$this->setName('tbcursoversao');\n\t\t$this->setPhpName('Tbcursoversao');\n\t\t$this->setClassname('Tbcursoversao');\n\t\t$this->setPackage('lib.model');\n\t\t$this->setUseIdGenerator(true);\n\t\t$this->setPrimaryKeyMethodInfo('tbcursoversao_id_versao_curso_seq');\n\t\t// columns\n\t\t$this->addPrimaryKey('ID_VERSAO_CURSO', 'IdVersaoCurso', 'INTEGER', true, null, null);\n\t\t$this->addForeignKey('ID_FORMACAO', 'IdFormacao', 'INTEGER', 'tbformacao', 'ID_FORMACAO', false, null, null);\n\t\t$this->addForeignKey('COD_CURSO', 'CodCurso', 'INTEGER', 'tbcurso', 'COD_CURSO', true, null, null);\n\t\t$this->addForeignKey('ID_TURNO', 'IdTurno', 'INTEGER', 'tbturno', 'ID_TURNO', true, null, null);\n\t\t$this->addColumn('DESCRICAO', 'Descricao', 'VARCHAR', false, 100, null);\n\t\t$this->addColumn('SITUACAO', 'Situacao', 'VARCHAR', false, 10, null);\n\t\t$this->addColumn('DOC_CRIACAO', 'DocCriacao', 'LONGVARCHAR', false, null, null);\n\t\t$this->addColumn('DT_CRIACAO', 'DtCriacao', 'DATE', false, null, null);\n\t\t$this->addColumn('DT_INICIO', 'DtInicio', 'DATE', true, null, null);\n\t\t$this->addColumn('DT_TERMINO', 'DtTermino', 'DATE', false, null, null);\n\t\t$this->addForeignKey('ID_CAMPUS', 'IdCampus', 'INTEGER', 'tbcampus', 'ID_CAMPUS', false, null, null);\n\t\t$this->addForeignKey('ID_SETOR', 'IdSetor', 'INTEGER', 'tbsetor', 'ID_SETOR', false, null, null);\n\t\t$this->addColumn('PRAZO_MIN', 'PrazoMin', 'CHAR', false, 3, null);\n\t\t$this->addColumn('PRAZO_MAX', 'PrazoMax', 'CHAR', false, 3, null);\n\t\t$this->addColumn('CRED_OBR', 'CredObr', 'VARCHAR', false, 255, null);\n\t\t$this->addColumn('CRED_ELETIVO', 'CredEletivo', 'VARCHAR', false, 255, null);\n\t\t$this->addColumn('CRED_TOTAL', 'CredTotal', 'VARCHAR', false, 255, null);\n\t\t$this->addColumn('CH_OBR', 'ChObr', 'INTEGER', false, null, null);\n\t\t$this->addColumn('CH_ELETIVA', 'ChEletiva', 'INTEGER', false, null, null);\n\t\t$this->addColumn('CH_TOTAL', 'ChTotal', 'VARCHAR', false, 255, null);\n\t\t$this->addColumn('SEMESTRE_INICIO', 'SemestreInicio', 'INTEGER', false, null, null);\n\t\t$this->addColumn('COD_INTEGRACAO', 'CodIntegracao', 'VARCHAR', false, 30, null);\n\t\t$this->addColumn('COD_INTEGRACAO_TIPO', 'CodIntegracaoTipo', 'CHAR', false, 1, null);\n\t\t$this->addColumn('CREATED_AT', 'CreatedAt', 'DATE', false, null, null);\n\t\t$this->addColumn('UPDATED_AT', 'UpdatedAt', 'DATE', false, null, null);\n\t\t$this->addColumn('CREATED_BY', 'CreatedBy', 'VARCHAR', false, 20, null);\n\t\t$this->addColumn('UPDATED_BY', 'UpdatedBy', 'VARCHAR', false, 20, null);\n\t\t// validators\n\t}", "public function initialize()\n {\n $this->setSchema(\"animedb\");\n $this->setSource(\"episodes\");\n $this->hasMany('id', 'Videos', 'episode_id', ['alias' => 'Videos']);\n $this->belongsTo('anime_id', '\\Anime', 'id', ['alias' => 'Anime', 'reusable' => true]);\n $this->allowEmptyStringValues(['title', 'description']);\n $this->skipAttributes(['date']);\n }", "public function __construct()\n {\n \t$this->schema();\n\t\t$this->data();\n }", "public function initialize()\n {\n $this->hasMany('id_tipobeneficio', 'Documentosbeneficios', 'id_tipobeneficio', array('alias' => 'Documentosbeneficios'));\n $this->hasMany('id_tipobeneficio', 'Documentosbeneficios', 'id_tipobeneficio', NULL);\n }", "function __construct(){\n\t\tparent::__construct();\n\t\t\t$this->set_model();\n\t}", "public function __construct() {\n parent::__construct(self::TABLE_NAME, self::ID, self::NAME);\n $this->_age_model_method = null;\n $this->_core_id = null;\n $this->_age_model_notes = array();\n $this->_contact_id = null;\n $this->_age_model_id_status = 0;\n }", "public function __construct(){\n\n\t\t$this->types_model = new Types();\n\t}", "public function __construct(Model $data)\n {\n //过滤掉数据库没有的列,避免报错\n $columns = $data->getColumns();\n $data->beforeSave($data);\n foreach ($data->getAttributes() as $key => $val) {\n if (!in_array($key, $columns)) {\n $data->setTmpSave($key, $data->$key);\n unset($data->$key);\n }\n }\n }", "function __initTransSchema() {\n\t\t$fields = $this->settings[$this->model->alias]['fields'];\n\t\t$primary = $this->model->primaryKey;\n\t\t$results = array();\n\t\t$schema = $this->model->_schema;\n\t\t$results = am($results, $this->__setSchemaField($primary, $schema[$primary]));\n\t\tforeach ($schema as $fieldname => $descArray) {\n\t\t\tif (!empty($fields)) {\n\t\t\t\tif (array_key_exists($fieldname, $fields)) {\n\t\t\t\t\t$results = am($results, $this->__setSchemaField($fieldname, $descArray));\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif ($fieldname !== $primary) {\n\t\t\t\t\t$results = am($results, $this->__setSchemaField($fieldname, $descArray));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->__transSchema = $results;\n\t}", "public function initialize()\n {\n $this->setSchema(\"sistema\");\n $this->setSource(\"rol\");\n $this->hasMany('id_rol', 'Usuarios', 'id_rol', ['alias' => 'Usuarios']);\n }", "public function __construct()\n {\n $this->setColumnsList(array(\n 'tipoId'=>'tipoId',\n 'tipo'=>'tipo',\n 'tipo_eu'=>'tipoEu',\n 'tipo_es'=>'tipoEs',\n 'createdOn'=>'createdOn',\n 'updateOn'=>'updateOn',\n ));\n\n $this->setColumnsMeta(array(\n 'tipo'=> array('ml'),\n ));\n\n $this->setMultiLangColumnsList(array(\n 'tipo'=>'Tipo',\n ));\n\n $this->setAvailableLangs(array('es', 'eu'));\n\n $this->setParentList(array(\n ));\n\n $this->setDependentList(array(\n 'IncidenciasIbfk2' => array(\n 'property' => 'Incidencias',\n 'table_name' => 'Incidencias',\n ),\n ));\n\n\n $this->setOnDeleteSetNullRelationships(array(\n 'incidencias_ibfk_2'\n ));\n\n $this->_defaultValues = array(\n 'tipo' => '',\n 'tipoEu' => '',\n 'tipoEs' => '',\n 'createdOn' => '0000-00-00 00:00:00',\n 'updateOn' => 'CURRENT_TIMESTAMP',\n );\n\n $this->_initFileObjects();\n parent::__construct();\n }", "public function __construct()\n {\n\n $this->loginModel = new LoginModel();\n $this->pinjamModel = new PinjamModel();\n $this->db = db_connect();\n\n // $this->kategoriModel = new KategoriModel();\n }" ]
[ "0.74383473", "0.72316474", "0.71611565", "0.7156213", "0.7104005", "0.7101568", "0.7045844", "0.7035348", "0.69759476", "0.69601285", "0.6932128", "0.69018364", "0.68946016", "0.6885808", "0.6851494", "0.684225", "0.6818042", "0.67382395", "0.67047316", "0.6701567", "0.6701555", "0.6691962", "0.6690197", "0.6685", "0.66802055", "0.6673027", "0.66642666", "0.66542494", "0.6646626", "0.66440624", "0.663884", "0.66357505", "0.6630909", "0.66253173", "0.66247284", "0.6609839", "0.6589536", "0.65866", "0.6586269", "0.6584002", "0.6574658", "0.6573033", "0.657054", "0.656335", "0.65570766", "0.65524143", "0.65498966", "0.65444136", "0.6535614", "0.6530536", "0.6526522", "0.65259326", "0.65220165", "0.65108484", "0.6505481", "0.6504996", "0.6504782", "0.64974064", "0.64963347", "0.64807796", "0.64734405", "0.6469497", "0.64664656", "0.64566463", "0.64512527", "0.6450106", "0.6442479", "0.64313823", "0.6428893", "0.6423721", "0.64215827", "0.64181936", "0.6415605", "0.641453", "0.6413187", "0.6409271", "0.6408619", "0.6401772", "0.63982457", "0.6389398", "0.6383753", "0.6383516", "0.6370825", "0.6363699", "0.63622", "0.63604844", "0.6359911", "0.63571674", "0.63517153", "0.63469815", "0.6341981", "0.63405144", "0.6339304", "0.63369286", "0.6335511", "0.6331677", "0.63312674", "0.6327069", "0.6326531", "0.63251334", "0.63224506" ]
0.0
-1
metodo para buscar registros segun algun atributo(array (column_name => value, ...))
public function findByPoperty($properties, $all=false) { if (empty($properties)) { return null; } $sql = "Select * From " . $this->table_name . " Where "; $keys = array_keys($properties); $first = true; foreach ($keys as $key) { $sql .= ($first == false ? " and " : "") . $key . " = '" . $properties[$key] . "' "; $first = false; } $req = Database::getBdd()->prepare($sql); $req->execute(); if($all){ return $req->fetchAll(PDO::FETCH_ASSOC); } return $req->fetch(PDO::FETCH_ASSOC); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function carregarPorValorAtributo($atributo, $valor) {\n $sid = \"\\\"$valor\\\"\";// else $sid = $id;\n $query = \"SELECT * FROM \" . get_class($this) . \" WHERE $atributo=$sid\";\n $this->ATRIBUTO= bd::executeSqlParaArrayTitulada($query);\n $this->id=$this->ATRIBUTO['id'];\n $this->carregarRelacionamentos();\n }", "protected function asignarCamposRelacionales() {\n foreach($this->campos as $nombre=>$campo) {\n if($campo->tipo!='relacional'||($campo->relacion!='1:1'&&$campo->relacion!='1:0')) continue;\n $columna=$campo->columna;\n if(is_object($this->consultaValores->$nombre)) {\n //Asignado como entidad u objeto anónimo\n $this->consultaValores->$columna=$this->consultaValores->$nombre->id;\n } elseif(is_array($this->consultaValores->$nombre)) {\n //Asignado como array\n $this->consultaValores->$columna=$this->consultaValores->$nombre['id'];\n }\n }\n }", "function retornaCampos($tabelaProcura){\n # Abre arquivo xml para navegacao\n $aBanco = simplexml_load_string($this->xml);\n $aRetorno = array();\n\n # Varre a estrutura das tabelas\n foreach($aBanco as $aTabela){\n # Recupera o nome da tabela e gera o nome da classe\n if($tabelaProcura != (string)$aTabela['NOME']) \n continue;\n # Varre a estrutura dos campos da tabela em questao\n foreach($aTabela as $oCampo){\n # Recupera valores a serem substituidos no modelo\n $aRetorno[] = (string)$oCampo->FKTABELA;\n }\n break;\n }\n return $aRetorno;\n }", "public function buscarFuncionarioPorCampo($campo, $filtro){\n \n $query = \"SELECT Usuario.*, Funcionario.* FROM Usuario JOIN Funcionario \n ON Usuario.idUsuario = Funcionario.idUsuario\"; //criação da query base\n\n if(isset($campo) && isset($filtro)){ //verifica se os filtros foram especificados\n if(strcmp($campo, nome) || strcmp($campo, sobrenome) || strcmp($campo, email)){ //verifica se o campo corresponde a nome, sobrenome ou email\n $query .= \" WHERE Usuario.nome LIKE '%'.'.$campo.'.'%'\"; //adicionar filtro de nome, sobrenome ou email à query\n }else if(strcmp($campo, matricula)){ //verifica se o campo corresponde a matricula\n $query .= \" WHERE Funcionario.matricula = $campo\"; //adiciona filtro de matricula à query\n }else{\n return array(); //retorna um array vazio caso o campo não seja encontrado\n }\n }\n\n /*Caso não seja especificados filtros retorna todos os funcionarios*/\n\n $result = $this->PDO->query($query); //executa a query\n\n $funcionarios = array(); //cria array para armazenar os resultados da consulta\n\n if(!empty($result) && $result->rowCount() > 0){ //verifica se existem resultados para consulta\n foreach($result->fetchAll() as $item){ //percorre as tuplas retornadas pela consulta\n $funcionarios[] = new funcionario( //cria um novo funcionario e add uma array, apartir dos dados obtidos\n isset($item['idUsuario'])?utf8_encode($item['idUsuario']):null,\n isset($item['email'])?utf8_encode($item['email']):null,\n isset($item['nome'])?utf8_encode($item['nome']):null,\n isset($item['sobrenome'])?utf8_encode($item['sobrenome']):null,\n isset($item['senha'])?utf8_encode($item['senha']):null,\n isset($item['cadastroConfirmado'])?utf8_encode($item['cadastroConfirmado']):null,\n isset($item['tipoUsuario'])?utf8_encode($item['tipoUsuario']):null,\n isset($item['matricula'])?utf8_encode($item['matricula']):null,\n isset($item['funcao'])?utf8_encode($item['funcao']):null,\n isset($item['cadastroObra'])?utf8_encode($item['cadastroObra']):null,\n isset($item['gerenciaObra'])?utf8_encode($item['gerenciaObra']):null,\n isset($item['remocaoObra'])?utf8_encode($item['remocaoObra']):null,\n isset($item['cadastroNoticia'])?utf8_encode($item['cadastroNoticia']):null, \n isset($item['gerenciaNoticia'])?utf8_encode($item['gerenciaNoticia']):null,\n isset($item['remocaoNoticia'])?utf8_encode($item['remocaoNoticia']):null,\n isset($item['backup'])?utf8_encode($item['backup']):null\n );\n }\n }\n\n return $funcionarios; //retorna os resultados\n }", "function getRegistrosTabelaAssociativa($tabela, $campo_selecao, $campo_comparacao, $value_comparacao){\n\t$sql = \"select $campo_selecao from $tabela where $campo_comparacao = $value_comparacao\";\n\t$rs = mysql_query($sql);\n\t\n\t$i = 0;\n\twhile($row = mysql_fetch_array($rs)){\n\t\t$registros[$i] = $row[0];\n\t\t$i++;\n\t}\n\t\n\treturn $registros;\n}", "private function getFieldsOnTable()\n{\n\n $returnArray=array(); \n foreach ($this->tableStructure as $ind => $fieldArray) { \n $returnArray[$fieldArray['columnName']]=$fieldArray['columnName'];\n }\n \n return $returnArray; \n}", "public function catastro_registro($attribute, $params)\n {\n \n $table = InmueblesUrbanosForm::find()\n ->where(\"estado_catastro=:estado_catastro\", [\":estado_catastro\" => $this->estado_catastro])\n ->andwhere(\"municipio_catastro=:municipio_catastro\", [\":municipio_catastro\" => $this->municipio_catastro])\n ->andwhere(\"parroquia_catastro=:parroquia_catastro\", [\":parroquia_catastro\" => $this->parroquia_catastro])\n ->andwhere(\"ambito_catastro=:ambito_catastro\", [\":ambito_catastro\" => $this->ambito_catastro])\n ->andwhere(\"sector_catastro=:sector_catastro\", [\":sector_catastro\" => $this->sector_catastro])\n ->andwhere(\"manzana_catastro=:manzana_catastro\", [\":manzana_catastro\" => $this->manzana_catastro])\n ->andwhere(\"parcela_catastro=:parcela_catastro\", [\":parcela_catastro\" => $this->parcela_catastro])\n ->andwhere(\"propiedad_horizontal=:propiedad_horizontal\", [\":propiedad_horizontal\" => 0])\n ->andWhere(\"manzana_limite=:manzana_limite\", [\":manzana_limite\" => $this->manzana_limite])\n ->andWhere(\"inactivo=:inactivo\", [\":inactivo\" => 0])\n ->asArray()->all(); \n \n //$sql = 'SELECT id_impuesto, id_contribuyente FROM inmuebles WHERE manzana_limite=:manzana_limite and catastro=:catastro';\n //$inmuebles = Inmuebles::findBySql($sql, [':manzana_limite' => $this->manzana_limite, 'catastro'=> $this->catastro])->all();\n \n\n //Si la consulta no cuenta (0) mostrar el error\n if ($table != null){\n\n $this->addError($attribute, Yii::t('backend', 'The taxpayer: '.$table[0]['id_contribuyente'].' has already assigned cadestre. Tax: '.$table[0]['id_impuesto']));//Impuesto: '.$table->id_impuesto; \n } \n }", "public function columnasLista(){\n $gridlista=array(\n array('name'=>'nombre','type'=>'raw','value'=>'CHtml::link($data->nombre,array(\"update\",\"id\"=>$data->id))'),\n 'cantidadpresentacion',\n 'salida',\n // 'idempresa',\n array('name'=>'idempresa','type'=>'raw','value'=>'$data->getNombreEmpresa()'),\n );\n\n return $gridlista;\n }", "public function loadFieldsRegexps()\n {\n // prepare request\n $sth = self::$connection->prepare('SELECT field_name, validator FROM fields ORDER BY field_order ASC');\n // run it\n $sth->execute();\n\n // check if not empty or error\n if ($result = $sth->fetchAll(PDO::FETCH_ASSOC)) {\n // go with foreach create needed structure\n foreach ($result as $field => $val) {\n self::$data[$val['field_name']] = $val['validator'];\n }\n\n // return answer\n return self::$data;\n }\n\n return false;\n }", "public function fieldCreate()\n\t{\n\t\t$fields=array();\n\t\tforeach($this->getTable()->result_array() as $row)\n\t\t{\n\t\t\tif($row['Extra']!=='auto_increment')\n\t\t\t{\n\t\t\t\t$fields[]=array(\n\t\t\t\t\t'field'=>$row['Field'],\n\t\t\t\t\t'max_length'=>preg_match('/varchar/',$row['Type']) ? (preg_replace('/[A-Za-z()]/','',$row['Type'])!=='' ? '\\'maxlength\\'=>'.preg_replace('/[A-Za-z()]/','',$row['Type']).',' : false) : false,\n\t\t\t\t\t'type'=>preg_match('/text/',$row['Type']) ? 'Area' : 'Field',\n\t\t\t\t\t'required'=>$row['Null']=='NO' ? true : false,\n\t\t\t\t\t'input'=>preg_match('/^(password|pass|passwd|passcode)$/i',$row['Field']) ? 'password' : 'text',\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t\treturn $fields;\n\t}", "public function listRegisterCols(){\n\t\t$this->registerCol('name_hld', self::COL_ANCHO_DETALLE);\n\t}", "function obtenerRegistros($datos = []) {\n\t\t$this->openConnection();\n\t\t$sentencia = $this->conn->prepare($this->consulta);\n\t\tif(!empty($datos)){\n\t\t\tforeach ($datos as $key => $value) {\n\t\t\t\t$sentencia->bind_param($key, $value);\n\t\t\t}\n\t\t}\n\t\t$sentencia->execute();\n\t\t$reg = $sentencia->get_result();\n\t\t$rows = $reg->num_rows;\n\t\t$i = 0;\n\t\tdo {\n\t\t\t$this->registros[] = $reg->fetch_assoc();\n\t\t\t$i++;\n\t\t} while ($i < $rows);\n\t\t$this->closeConnection();\n\t}", "function valores($idCampo)\r\n {\r\n $mg = ZendExt_Aspect_TransactionManager::getInstance();\r\n $conn = $mg->getConnection('metadatos');\r\n $query = Doctrine_Query::create($conn);\r\n $result = $query->select('v.valor')\r\n ->from('NomValorestruc v')\r\n ->where(\"v.idcampo='$idCampo'\")\r\n //->groupBy('v.valor')\r\n ->execute()\r\n ->toArray();\r\n return $result;\r\n }", "static function findAllBy($campo, $valor, $order = \"_default_order\") {\n $CI = get_instance();\n $CI->db->where($campo, $valor);\n $CI->db->order_by($order == \"_default_order\" ? $this->_default_order() : $order);\n $classname = get_called_class();\n eval('$object = new ' . $classname . '();');\n $result = $CI->db->get($object->_tablename())->result();\n $array = array();\n foreach ($result as $value) {\n eval('$array[] = new ' . $classname . '($value);');\n }\n return $array;\n }", "function buscarPorColumna($tabla, $campo, $dato)\n{\n $dato = strtoupper($dato);\n $query = \"select * from \".$tabla.\" where upper(\".$campo.\"::character varying) like '%' || ? || '%'\";\n\n $lista = \\DB::select($query, [$dato]);\n\n return $lista;\n}", "function getCamposToQuery($nombre_tabla, $key_value, $as_tabla=\"\"/*, ...*/){\r\n $cadena=\"\";\r\n global $$nombre_tabla;//si o si para que el array se pueda usar en esta funcion\r\n if($key_value=='key'){\r\n foreach ($$nombre_tabla as $key => $value) { $cadena.=$as_tabla.$key.\",\"; }\r\n }\r\n if($key_value=='value'){\r\n foreach ($$nombre_tabla as $key => $value) { $cadena.=$as_tabla.$value.\",\"; }\r\n }\r\n $cadena=trim($cadena,\",\");\r\n return $cadena;\r\n}", "function camposBD(){\n//\t\tSELECT idFactura, nombreTienda AS tienda, fecha, numfactura AS Factura FROM tblfacturas \n//\t\tINNER JOIN tbltiendas ON tbltiendas.idtblTienda = tblfacturas.idtblTienda\n\t\t$fields = array();\n\t\t$fields[] = 'idFactura';\t\n\t\t$fields[] = 'fecha';\t\n\t\t$fields[] = 'tienda';\t\n\t\t$fields[] = 'numFactura';\t\n\t\t/*$fields[] = 'opcion';\t*/\n\t\t/*$fields[] = 'comentario';*/\t\n\t\treturn $fields;\n\t}", "function getColumnasFomTable($tabla)\n{\n $query = \"SELECT cols.ordinal_position as posicion,cols.column_name as nombre,cols.data_type\"\n .\" FROM information_schema.columns cols\"\n .\" WHERE\"\n .\" cols.table_name=?\"\n .\" and cols.column_name not in ('created_at', 'updated_at')\"\n .\" order by posicion\";\n\n $lista = \\DB::select($query, [$tabla]);\n $columnas = array();\n foreach($lista as $item){\n $columnas[$item->nombre] = str_oracion($item->nombre);\n }\n\n return $columnas;\n}", "public function catastro_registro2($attribute, $params)\n {\n\n \n $nivel_catastro1 = array(['nivela' =>$this->nivela , 'nivelb'=>$this->nivelb ]); \n $nivel_catastro = \"\".$nivel_catastro1[0]['nivela'].\"\".$nivel_catastro1[0]['nivelb'].\"\";\n\n\n $table = InmueblesUrbanosForm::find()->where(\"estado_catastro=:estado_catastro\", [\":estado_catastro\" => $this->estado_catastro])\n ->andwhere(\"municipio_catastro=:municipio_catastro\", [\":municipio_catastro\" => $this->municipio_catastro])\n ->andwhere(\"parroquia_catastro=:parroquia_catastro\", [\":parroquia_catastro\" => $this->parroquia_catastro])\n ->andwhere(\"ambito_catastro=:ambito_catastro\", [\":ambito_catastro\" => $this->ambito_catastro])\n ->andwhere(\"sector_catastro=:sector_catastro\", [\":sector_catastro\" => $this->sector_catastro])\n ->andwhere(\"manzana_catastro=:manzana_catastro\", [\":manzana_catastro\" => $this->manzana_catastro])\n ->andwhere(\"propiedad_horizontal=:propiedad_horizontal\", [\":propiedad_horizontal\" => 1])\n ->andwhere(\"parcela_catastro=:parcela_catastro\", [\":parcela_catastro\" => $this->parcela_catastro])\n ->andwhere(\"subparcela_catastro=:subparcela_catastro\", [\":subparcela_catastro\" => $this->subparcela_catastro])\n ->andwhere(\"nivel_catastro=:nivel_catastro\", [\":nivel_catastro\" => $nivel_catastro])\n ->andwhere(\"unidad_catastro=:unidad_catastro\", [\":unidad_catastro\" => $this->unidad_catastro])\n ->andWhere(\"manzana_limite=:manzana_limite\", [\":manzana_limite\" => $this->manzana_limite])\n ->andWhere(\"inactivo=:inactivo\", [\":inactivo\" => 0])\n ->asArray()->all(); \n\n\n //Si la consulta no cuenta (0) mostrar el error\n if ($table != null){\n\n $this->addError($attribute, Yii::t('backend', 'The taxpayer: '.$table[0]['id_contribuyente'].' has already assigned cadestre. Tax: '.$table[0]['id_impuesto']));//Impuesto: '.$table->id_impuesto; \n } \n }", "function getRegistrosRelacionamento($tabela_associativa, $tabela_tradicional, $campo_selecao, $campo_comparacao, $value_comparacao){\n\t$sql = \"select $campo_selecao from $tabela_associativa as ta, $tabela_tradicional as tt where ta.cd_$campo_selecao = tt.id_$campo_selecao and ta.$campo_comparacao = $value_comparacao\";\n\t$rs = mysql_query($sql);\n\t\n\t$i = 0;\n\twhile($row = mysql_fetch_array($rs)){\n\t\t$registros[$i] = $row[0];\n\t\t$i++;\n\t}\n\t\n\tif($i == 0) $registros = NULL;\n\t\n\treturn $registros;\n}", "function getFieldAndValues($params) {\n global $conn;\n\n if (!is_array($params))\n exit('Parâmetro inválido!');\n\n $id = $params['id'];\n $mod = $params['modulo'];\n $pre = $params['pre'];\n $ref = isset($params['ref']) ? $params['ref'] : 'id';\n\n if (empty($id) || empty($mod) || empty($pre))\n exit('Dados inválidos');\n\n\n /*\n *pega lista de colunas\n */\n $sql= \"SELECT * FROM \".TABLE_PREFIX.\"_{$mod} WHERE {$pre}_{$ref}=\\\"{$id}\\\"\";\n $fields = array();\n if(!$qry = $conn->query($sql))\n echo $conn->error();\n\n else {\n\n while($fld = $qry->fetch_field())\n array_push($fields, str_replace($pre.'_', null, $fld->name));\n\n $qry->close();\n }\n\n /*\n *pega valores dessas colunas\n */\n $sqlv= \"SELECT * FROM \".TABLE_PREFIX.\"_{$mod} WHERE {$pre}_{$ref}=\\\"{$id}\\\"\";\n if(!$qryv = $conn->query($sqlv))\n echo $conn->error();\n\n else {\n $valores = $qryv->fetch_array(MYSQLI_ASSOC);\n $qryv->close();\n }\n\n $res = null;\n foreach ($fields as $i=>$col)\n $res .= \"{$col} = \".$valores[$pre.'_'.$col].\";\\n\";\n\n\n return $res.\"\\n\";\n}", "public function setFielda($campos) {\n $fields = $this->separate($campos[0]);\n\n # Get the query based in filters\n $this->checkFields($fields);\n # If exists two type fields, check table\n $this->checkTable($campos[1]);\n # Check type of data\n $this->checkType();\n}", "private function setFields()\n\t{\t\n\t\t$sql = '';\n\t\t\n\t\tforeach (array_keys($this->data) as $key)\n\t\t{\n\t\t\t$sql .= '`' . $key . '` = ? , ';\n\t\t}\n\t\t\n\t\t$sql = rtrim($sql, ', ');\n\t\t\n\t\treturn $sql;\n\t}", "function listaRuta()\r\n\t{\t\r\n\t\t$query = \"SELECT * FROM \" . self::TABLA . \";\";\r\n\t\treturn parent::listaRegistros( $query );\r\n\t}", "function registerFromDatabase($arr) {\n $this->DATA[$arr['property']] = $arr['value'];\n $this->DESC[$arr['property']] = $arr['description'];\n $this->TYPE[$arr['property']] = $arr['type'];\n }", "function generar()\r\n\t{\r\n\t\tforeach($this->columnas as $ef) {\r\n\t\t \t$this->datos->tabla('columnas')->nueva_fila($ef->get_datos());\r\n\t\t}\r\n\t\tparent::generar();\r\n\t}", "function campo($tabla,$campo,$criterio,$pos,$and=''){\n\t$array=CON::getRow(\"SELECT $pos FROM $tabla WHERE $campo='$criterio' $and\");\n\treturn $array[$pos];\n}", "function obtener_registros($tabla, $campo, $id = false)\n {\n $conexion_bd = conectar_bd();\n $array = \"\";\n $consulta = 'SELECT '.$campo.' FROM '.$tabla;\n if($id){\n $consulta .= ' ORDER BY '.$campo;\n }\n $resultados = $conexion_bd->query($consulta);\n while ($row = mysqli_fetch_array($resultados, MYSQLI_BOTH)){\n $array .= $row[\"$campo\"].\",\";\n }\n mysqli_free_result($resultados);\n desconectar_bd($conexion_bd);\n $array = explode(\",\", $array);\n return $array;\n }", "private function setFields(): string\n {\n $sql = '';\n\n foreach (array_keys($this->data) as $key) {\n $sql .= '`' . $key . '` = ? , ';\n }\n return rtrim($sql, ', ');\n }", "public function getRegistros(){\n $query = $this->db->query('select c.orden_servicio,c.p1,c.p2,c.p3,c.p4,c.p5,c.p6,c.p7,r.DISTRIB,r.RAZON,r.CIUCLIEN,r.NUMSERIE,r.TIPORDEN,r.OPER1,r.ORDEN,r.CLIENTE,r.TELCASA,r.TELOFIC,r.TELCEL,r.EMAIL,r.ASESOR,r.RFCASESOR,r.DESCRIP\n from reporte r\n left join calificacion c\n on r.orden like concat(\"%\",c.orden_servicio,\"%\")');\n return $query->result();\n }", "private function buscar($sql) {\n $aRe = array();\n if ($sql) {\n $res = Funciones::gEjecutarSQL($sql);\n while($aRow = $res->fetch(PDO::FETCH_ASSOC)) {\n //$aRe[] = array($aRow['FECHA'], html_entity_decode($aRow['CODPUN'],ENT_QUOTES,'UTF-8'), html_entity_decode($aRow['PUNTO'],ENT_QUOTES,'UTF-8'), html_entity_decode($aRow['TITULO'],ENT_QUOTES,'UTF-8'), $aRow['CODAPA'], html_entity_decode($aRow['APARTADO'],ENT_QUOTES,'UTF-8'), html_entity_decode($aRow['SUBTITULO'],ENT_QUOTES,'UTF-8'), html_entity_decode($aRow['TEXTO'],ENT_QUOTES,'UTF-8'), $aRow['RELEVANCIA']);\n $aRe[] = array($aRow['FECHA'], Funciones::gDecodificar($aRow['CODPUN']), Funciones::gDecodificar($aRow['PUNTO']), Funciones::gDecodificar($aRow['TITULO']), $aRow['CODAPA'], Funciones::gDecodificar($aRow['APARTADO']), Funciones::gDecodificar($aRow['SUBTITULO']), Funciones::gDecodificar($aRow['TEXTO']), $aRow['RELEVANCIA']);\n }\n $res->closeCursor();\n }\n return $aRe;\n }", "function searchTableStatique() {\n include_once('./lib/config.php');\n $table = $_POST['table'];\n $tableStatique = Doctrine_Core::getTable($table);\n $columnNames = $tableStatique->getColumnNames();\n $req = '';\n $param = array();\n $premierPassage = true;\n foreach ($columnNames as $columnName) {\n if ($columnName != 'id') {\n $req .= $premierPassage ? $columnName.' like ? ' : 'and '.$columnName.' like ? ';\n $param[] = $_POST[$columnName].'%';\n $premierPassage = false;\n }\n }\n $search = $tableStatique->findByDql($req, $param);\n echo generateContenuTableStatiqueEntab($table, $tableStatique, $search);\n}", "protected function getParametrosWhere(){\n\t\t\t$parametros = array();\n\t\t\t$parametros[\":pkusuario\"] = $this->pkUsuario;\n\t\t\treturn $parametros;\n\t}", "function get ()\n\t{\n\t\t$ ret = array ();\n\t\t\n\t\t// Loop por todos os registros no banco de dados\n\t\tfor ( $ x = 0 ; ( $ x < $ this -> num_records () && count ( $ ret ) < $ this -> _limit ); $ x ++)\n\t\t{\t\t\t\n\t\t\t$ row = $ this -> _px -> retrieve_record ( $ x );\n\t\t\t\n\t\t\tif ( $ this -> _test ( $ row ))\n\t\t\t{\n\t\t\t\tforeach ( $ row as $ key => $ val )\n\t\t\t\t{\n\t\t\t\t\t// Encontre todos os campos que não estão na matriz selecionada\n\t\t\t\t\tif (! in_array ( $ key , $ this -> _select ) &&! empty ( $ this -> _select )) unset ( $ row [ $ key ]);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$ ret [] = $ linha ;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $ ret ;\n\t}", "public function findAll(){\n //recupere le nom de la classe et le formate\n $table = strtolower(get_class($this));\n\n //Prepare la requete\n $query = \"SELECT * FROM $table\";\n $results = $this->conn->prepare($query);\n\n //Execution requete et stockage resultats dans une variable\n $results->execute();\n $resultats = $results->fetchAll(PDO::FETCH_ASSOC);\n return $resultats;\n }", "private function setField()\n {\n $sql = '';\n $sql = rtrim($sql , ', ');\n\n foreach (array_keys($this->data) as $key){\n $sql .= '`' . $key . '` = ?, ';\n }\n\n $sql = rtrim($sql , ', ');\n return $sql;\n }", "function _reglas()\n\t{\n\t\t$reglas[] = array('field' => 'titulo', 'label' => 'lang:field_titulo', 'rules' => 'trim|required|max_length[100]');\n\t\t\n\t\t\t$reglas[] = array('field' => 'has_category', 'label' => 'lang:field_has_category', 'rules' => 'callback_has_categorys');\n\t\t\n\t\t\n\t\treturn $reglas;\n\t}", "protected function alterar(){\n header(\"Content-type: text/html;charset=utf-8\");\n $sql = \"SHOW FULL FIELDS FROM \" . $this->table;\n $execute = conexao::toConnect()->executeS($sql);\n $sets = \"\";\n $id_registro = '';\n $contador = \"\";\n $count = 1;\n foreach ($execute as $contar) {\n if ($contar->Key != 'PRI') {\n $atributos_field = $contar->Field;\n $select_p = substr(strtoupper($atributos_field), 0, 1);\n $select_t = substr($atributos_field, 1);\n $get = 'get' . $select_p . $select_t;\n if ($this->$get() != null) {\n $contador = $contador + 1;\n }\n }\n }\n foreach ($execute as $key => $attr){\n if ($attr->Key != 'PRI') {\n $atributos_field = $attr->Field;\n $select_p = substr(strtoupper($atributos_field), 0, 1);\n $select_t = substr($atributos_field, 1);\n $get = 'get' . $select_p . $select_t;\n if ($this->$get() != null) {\n if ($count != $contador) {\n $sets .= $attr->Field . \" = '\" . $this->$get() . \"',\";\n } else {\n $sets .= $attr->Field . \" = '\" . $this->$get().\"'\";\n }\n $count = $count + 1;\n }\n }else{\n $id_registro = $attr->Field;\n }\n }\n $update = \"UPDATE \".$this->table.\" SET \".$sets.\" WHERE \".$id_registro.\" = \".$this->getIdTable();\n\n $execute_into = conexao::toConnect()->executeQuery($update);\n if (count($execute_into) > 0) {\n return $execute_into;\n }else{\n return false;\n }\n }", "public function getTableFields()\n {\n return array(\n array(\"Field\" => \"uid_empresa\", \"Type\" => \"int(10)\", \"Null\" => \"NO\", \"Key\" => \"PRI\", \"Default\" => \"\", \"Extra\" => \"auto_increment\"),\n array(\"Field\" => \"endeve_id\", \"Type\" => \"varchar(60)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"pago_no_obligatorio\", \"Type\" => \"int(1)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"0\", \"Extra\" => \"\"),\n array(\"Field\" => \"nombre\", \"Type\" => \"varchar(100)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"nombre_comercial\", \"Type\" => \"varchar(200)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"representante_legal\", \"Type\" => \"varchar(512)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"cif\", \"Type\" => \"varchar(20)\", \"Null\" => \"NO\", \"Key\" => \"UNI\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"pais\", \"Type\" => \"int(11)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"1\", \"Extra\" => \"\"),\n array(\"Field\" => \"uid_pais\", \"Type\" => \"int(11)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"1\", \"Extra\" => \"\"),\n array(\"Field\" => \"direccion\", \"Type\" => \"varchar(255)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"localidad\", \"Type\" => \"varchar(255)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"provincia\", \"Type\" => \"varchar(255)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"cp\", \"Type\" => \"int(8)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"accion\", \"Type\" => \"timestamp\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"CURRENT_TIMESTAMP\", \"Extra\" => \"\"),\n array(\"Field\" => \"updated\", \"Type\" => \"int(1)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"0\", \"Extra\" => \"\"),\n array(\"Field\" => \"uid_provincia\", \"Type\" => \"int(11)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"uid_municipio\", \"Type\" => \"int(11)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"convenio\", \"Type\" => \"varchar(255)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"created\", \"Type\" => \"int(11)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"aviso_caducidad_subcontratas\", \"Type\" => \"int(1)\", \"Null\" => \"YES\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"color\", \"Type\" => \"varchar(10)\", \"Null\" => \"YES\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"email\", \"Type\" => \"varchar(255)\", \"Null\" => \"YES\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"is_enterprise\", \"Type\" => \"int(1)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"0\", \"Extra\" => \"\"),\n array(\"Field\" => \"logo\", \"Type\" => \"tinytext\", \"Null\" => \"YES\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"skin\", \"Type\" => \"varchar(300)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"dokify\", \"Extra\" => \"\"),\n array(\"Field\" => \"lang\", \"Type\" => \"varchar(2)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"es\", \"Extra\" => \"\"),\n array(\"Field\" => \"activo_corporacion\", \"Type\" => \"int(1)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"0\", \"Extra\" => \"\"),\n array(\"Field\" => \"pago_aplicacion\", \"Type\" => \"int(1)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"0\", \"Extra\" => \"\"),\n array(\"Field\" => \"receive_summary\", \"Type\" => \"int(1)\", \"Null\" => \"YES\", \"Key\" => \"\", \"Default\" => \"1\", \"Extra\" => \"\"),\n array(\"Field\" => \"date_last_summary\", \"Type\" => \"int(16)\", \"Null\" => \"YES\", \"Key\" => \"\", \"Default\" => \"0\", \"Extra\" => \"\"),\n array(\"Field\" => \"license\", \"Type\" => \"int(1)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"is_validation_partner\", \"Type\" => \"int(1)\", \"Null\" => \"YES\", \"Key\" => \"\", \"Default\" => \"0\", \"Extra\" => \"\"),\n array(\"Field\" => \"partner_validation_price\", \"Type\" => \"float\", \"Null\" => \"YES\", \"Key\" => \"\", \"Default\" => \"0\", \"Extra\" => \"\"),\n array(\"Field\" => \"partner_validation_price_urgent\", \"Type\" => \"float\", \"Null\" => \"YES\", \"Key\" => \"\", \"Default\" => \"0\", \"Extra\" => \"\"),\n array(\"Field\" => \"validation_languages\", \"Type\" => \"varchar(250)\", \"Null\" => \"YES\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"cost\", \"Type\" => \"float\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"0\", \"Extra\" => \"\"),\n array(\"Field\" => \"pay_for_contracts\", \"Type\" => \"int(1)\", \"Null\" => \"YES\", \"Key\" => \"\", \"Default\" => \"0\", \"Extra\" => \"\"),\n array(\"Field\" => \"invoice_periodicity\", \"Type\" => \"int(1)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"1\", \"Extra\" => \"\"),\n array(\"Field\" => \"req_attached\", \"Type\" => \"int(9)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"req_validated\", \"Type\" => \"int(9)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"req_rejected\", \"Type\" => \"int(9)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"req_expired\", \"Type\" => \"int(9)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"is_transfer_pending\", \"Type\" => \"int(1)\", \"Null\" => \"YES\", \"Key\" => \"\", \"Default\" => \"0\", \"Extra\" => \"\"),\n array(\"Field\" => \"kind\", \"Type\" => \"int(1)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"0\", \"Extra\" => \"\"),\n array(\"Field\" => \"min_app_version\", \"Type\" => \"int(1)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"2\", \"Extra\" => \"\"),\n array(\"Field\" => \"prevention_service\", \"Type\" => \"varchar(20)\", \"Null\" => \"YES\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"is_idle\", \"Type\" => \"int(1)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"0\", \"Extra\" => \"\"),\n array(\"Field\" => \"corporation\", \"Type\" => \"int(11)\", \"Null\" => \"YES\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"uid_referrer\", \"Type\" => \"int(11)\", \"Null\" => \"YES\", \"Key\" => \"MUL\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"requirement_count\", \"Type\" => \"int(11)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"0\", \"Extra\" => \"\"),\n array(\"Field\" => \"invoice_count\", \"Type\" => \"int(11)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"0\", \"Extra\" => \"\"),\n array(\"Field\" => \"is_referrer\", \"Type\" => \"int(1)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"0\", \"Extra\" => \"\"),\n array(\"Field\" => \"uid_manager\", \"Type\" => \"int(11)\", \"Null\" => \"YES\", \"Key\" => \"MUL\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"is_self_controlled\", \"Type\" => \"int(1)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"1\", \"Extra\" => \"\"),\n array(\"Field\" => \"has_custom_login\", \"Type\" => \"int(1)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"0\", \"Extra\" => \"\"),\n array(\"Field\" => \"header_img\", \"Type\" => \"tinytext\", \"Null\" => \"YES\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"), array(\"Field\" => \"uid_manager\", \"Type\" => \"int(11)\", \"Null\" => \"YES\", \"Key\" => \"MUL\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"uid_referrer\", \"Type\" => \"int(11)\", \"Null\" => \"YES\", \"Key\" => \"MUL\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"requirements_origin_company_cloneables\", \"Type\" => \"int(1)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"0\", \"Extra\" => \"\"),\n );\n }", "function getAllDataValues() {\n\t\t$conn = Doctrine_Manager::connection(); \n\t\t$resultvalues = $conn->fetchAll(\"SELECT * FROM lookuptypevalue WHERE lookuptypeid = '\".$this->getID().\"' order by lookupvaluedescription asc \");\n\t\treturn $resultvalues;\t\n\t}", "private function cargar_parametros_familias(){\n $sql = \"SELECT id,codigo,descripcion FROM mos_requisitos_familias ORDER BY orden\";\n $columnas_fam = $this->dbl->query($sql, array());\n return $columnas_fam;\n }", "private function values($appendPrimaryKey = true) {\r\n\t\t$c = get_called_class();\r\n\r\n\t\t$return = array();\r\n\t\tforeach ($c::getRequirements() as $column => $details) {\r\n\t\t\tif($c::$primaryKey != $column) {\r\n\t\t\t\t$property = substr($column,1,strlen($column)-2);\r\n\t\t\t\tif(in_array($property, array('creationDate','updateDate'))) {\r\n\t\t\t\t\t$return[] = $this->$property->format('Y-m-d H:i:s');\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$return[] = $this->$property;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tif($appendPrimaryKey) {\r\n\t\t\t$return[] = $this->{substr($c::$primaryKey,1,strlen($c::$primaryKey)-2)}; }\r\n\t\treturn $return;\r\n\t}", "function field_data()\r\n\t{\r\n\t\t$retval = array();\r\n /*\r\n echo \"<pre>\";\r\n var_dump($this->result_id);\r\n var_dump($this->pdo_results);\r\n echo \"</pre>\";\r\n */\r\n $table_info = $this->pdo_results;\r\n assert(is_array($table_info));\r\n foreach ($table_info as $row_info) {\r\n $F = new stdClass();\r\n $F->name = $row_info['name'];\r\n $F->type = $row_info['type'];\r\n $F->default = $row_info['dflt_value'];\r\n $F->max_length = 0;\r\n $F->primary_key = $row_info['pk'];\r\n \r\n $retval[] = $F;\r\n }\r\n\r\n return $retval;\r\n }", "function getRegistros($sql) {\n\t\t$res = $this->ejecutar($sql);\n\t\t$arreglo = array();\n\t\twhile ($registro = mysqli_fetch_array($res,MYSQL_ASSOC)) {\n\t\t\t$arreglo[]=$registro;\t\t\t\n\t\t}\n\t\treturn $arreglo;\n\t}", "function parseFieldsfromArray($reg) {\n $ret = parent::parseFieldsFromArray($reg);\n $this->desSenhaAnt = $this->desSenha;\n\n return $ret;\n }", "function load_db_values($row)\n\t{\n\t\tforeach($row as $prop => $val)\n\t\t\t$this->{$prop} = $val;\n\t}", "public function get_datos_empresa($empresa){\n\t$conectar= parent::conexion();\n\tparent::set_names();\n\t$sql=\"select *from empresas where nombre=?\";\n\t$sql=$conectar->prepare($sql);\n\t$sql->bindValue(1,$empresa);\n\t$sql->execute();\n\treturn $resultado= $sql->fetchAll(PDO::FETCH_ASSOC);\n}", "function allinea_db(){\n\t\tif ($this->attributes['BYTB']!='' ) $this->fields_value_bytb($this->attributes['BYTB']);\n\t\tif ($this->attributes['TB']!='no'){\n\t\t\t$i=0;\n\t\t\tforeach ($this->values as $key => $val){\n\t\t\t\t$ret[$i]=\"{$key} NUMBER\";\n\t\t\t\t$i++;\n\t\t\t\t$ret[$i]=\"D_{$key} VARCHAR2(200 CHAR)\";\n\t\t\t\t$i++;\n\t\t\t}\n\t\t\treturn $ret;\n\t\t}\n\t\telse return ;\n\t}", "public function createDataRow()\n\t{\n\t\t$row = array() ;\n\t\tforeach( $this->values as $field=>$value )\n\t\t{\n\t\t\t$row[$field] = $this->$field ;\n\t\t}\n\t\treturn $row ;\n\t}", "public function findAll() {\r\n$sql = \"SELECT * FROM $this->tabela\";\r\n$stm = DB::prepare($sql);\r\n$stm->execute();\r\nreturn $stm->fetchAll();\r\n}", "private static function fields()\n {\n $fields = static::$fields;\n $primary_key = static::$primary_key;\n\n $rows = [$primary_key, ...$fields];\n\n if(!count($rows)) {\n return ['*'];\n }\n\n return $rows;\n }", "private function _getMultilangualFields()\n {\n $aRet = array();\n\n $aData = oxDb::getInstance()->getTableDescription($this->_sTableName);\n\n foreach ($aData as $key => $oADODBField) {\n $iLang = substr($oADODBField->name, strlen($oADODBField->name) - 1, 1);\n if (is_numeric($iLang) && substr($oADODBField->name, strlen($oADODBField->name) - 2, 1) == '_') {\n // multilangual field\n $sMainFld = str_replace('_' . $iLang, \"\", $oADODBField->name);\n $aRet[$iLang][$sMainFld] = $oADODBField->name . ' as ' . $sMainFld;\n }\n }\n\n return $aRet;\n }", "function campo($tabla,$campo,$criterio,$pos,$and=''){\n\t$array=$GLOBALS['cn']->queryRow('SELECT '.$pos.' FROM '.$tabla.' WHERE '.$campo.'=\"'.$criterio.'\" '.$and);\n\treturn $array[$pos];\n}", "private function getCampos()\n {\n \t$fields \t= [];\n \tif ( !empty( $this->parametros['campos'] ) )\n \t{\n if ( is_string($this->parametros['campos']) )\n {\n $fields = explode(',', $this->parametros['campos'] );\n }\n \t} else\n \t{\n \t\t$tabela = $this->parametros['tabela'];\n \t\t$fields = [$this->Controller->$tabela->primaryKey(), $this->Controller->$tabela->displayField() ];\n \t}\n\n \treturn $fields;\n }", "public function getRegistros(){\n $sql = \"SELECT * FROM \".$this->getTable().\" WHERE \".$this->getTableId().\" = \".$this->getIdTable();\n $execute = conexao::toConnect()->executeS($sql);\n if (count($execute) > 0) {\n return $execute;\n }else{\n return false;\n }\n }", "public function selectAllRegiuniData(){\n $sql = \"SELECT * FROM regiune ORDER BY id DESC\";\n $stmt = $this->db->pdo->prepare($sql);\n $stmt->execute();\n return $stmt->fetchAll(PDO::FETCH_OBJ);\n }", "public function residue () :array\n {\n return [\n 'status' => function ($query, $value) {\n if ($value == ''){\n return $query;\n }else{\n return $query->where('status', $value);\n }\n \n },\n 'location' => function ($query, $value) {\n if ($value == ''){\n return $query;\n }else{\n return $query->where('gate', 'LIKE', \"%{$value}%\");\n }\n \n },\n 'plate' => 'relationship:plate,license_plate'\n ];\n }", "public function getBindValues();", "public function serialize() {\n\n // pega o mapeamentp\n $mapping = $this->mapping;\n\n // verifica se existe\n if ( !$mapping ) return;\n\n // seta os dados\n $data = [];\n foreach( $mapping as $atributo => $colunaTabela ) {\n $data[$colunaTabela] = $this->$atributo;\n }\n\n // volta os dados\n return $data;\n }", "function retornaAtributos($tabelaProcura){\n # abre arquivo xml para navegacao\n $aBanco = simplexml_load_string($this->xml);\n $aRetorno = array();\n # varre a estrutura das tabelas\n foreach($aBanco as $aTabela){\n # recupera o nome da tabela e gera o nome da classe\n $nomeTabela = (string)$aTabela['NOME'];\n if($nomeTabela != $tabelaProcura) continue;\n # varre a estrutura dos campos da tabela em questao\n foreach($aTabela as $oCampo){\n # recupera valores a serem substituidos no modelo\n $sFKTabela = (string)$oCampo->FKTABELA;\n if($sFKTabela != ''){\n $nomeClasse = ucfirst($this->getCamelMode($sFKTabela));\n $aRetorno[] = \"\\$o\".$nomeClasse;\n }\n else{\n $aRetorno[] = \"\\$\".(string)$oCampo->NOME;\n }\n }\n break;\n }\n //print_r($aRetorno);\n return $aRetorno;\t\n }", "abstract public function searchFields(): array;", "function describir_campos($tabla_x,$bd_x=\"\"){\r\n\t\tif($bd_x!=\"\"){\r\n\t\t\t$bd = $bd_x.\".\";\r\n\t\t}#end if\r\n\t\t$query_x = \"SHOW FIELDS FROM \".$bd.$tabla_x;\r\n\t\t$result = mysqli_query($this->conexion,$query_x);\r\n\t\tif($result){\r\n\t\t\t$n_filas = mysqli_num_rows($result);\r\n\t\t\t$this->serial[$tabla_x] = \"\";\r\n\t\t\tfor ($i=0;$i<$n_filas;$i++){\r\n\t\t\t\t$row_x = mysqli_fetch_array($result);\r\n\t\t\t\tif($i==0){\r\n\t\t\t\t\t$this->campo_clave = $row_x[0];\r\n\t\t\t\t}#end if\r\n\t\t\t\t$this->nombre[$i] = $row_x[0];\r\n\t\t\t\t$this->tipo[$i] = $row_x[1];\r\n\t\t\t\tif($row_x[\"Key\"] == \"PRI\"){\r\n\t\t\t\t\t$this->campo_clave = $row_x[0];\r\n\t\t\t\t}#end if\r\n\t\t\t}#end next i\r\n\t\t}#end if result\r\n\t}", "function createFieldString($tablas, $campos, $valores){\n\t\tglobal $formatedFields, $formatedValueConstrains,$misCampos;\n\t\t$i = 0;\n\n\t\tforeach ($valores as $key => $value) {\n\t\t\tif(empty($value)){\n\t\t\t\t$formatedFields[] = $tablas[$i].\".\".$campos[$i];\n\t\t\t\t$misCampos[] = $campos[$i];\n\t\t\t}\n\t\t\telse{\n\t\t\t\t$formatedValueConstrains[] = $tablas[$i].\".\".$campos[$i].\"='\".$valores[$i].\"'\";\n\t\t\t}\n\t\t\t$i++;\n\t\t}\n\n\t}", "function createFieldString($tablas, $campos, $valores){\n\t\tglobal $formatedFields, $formatedValueConstrains,$misCampos;\n\t\t$i = 0;\n\n\t\tforeach ($valores as $key => $value) {\n\t\t\tif(empty($value)){\n\t\t\t\t$formatedFields[] = $tablas[$i].\".\".$campos[$i];\n\t\t\t\t$misCampos[] = $campos[$i];\n\t\t\t}\n\t\t\telse{\n\t\t\t\t$formatedValueConstrains[] = $tablas[$i].\".\".$campos[$i].\"='\".$valores[$i].\"'\";\n\t\t\t}\n\t\t\t$i++;\n\t\t}\n\n\t}", "function getInstancia2($tabla,$campo=NULL){\r\n\t\t//DB_DataObject::debugLevel(5);\r\n\t\t//Crea una nueva instancia de $tabla a partir de DataObject\r\n\t\t$objDBO = DB_DataObject::Factory($tabla);\r\n\t\tif(is_array($campo)){\r\n\t\t\tforeach($campo as $key => $value){\r\n\t\t\t\t$objDBO->$key = $value;\r\n\t\t\t}\r\n\t\t}\r\n\t\t$contador = 0;\r\n\t\t$objDBO->find();\r\n\t\t$columna = $objDBO->table();\r\n\t\twhile ($objDBO->fetch()) {\r\n\t\t\tforeach ($columna as $key => $value) {\r\n\t\t\t\t$ret[$contador]->$key = cambiaParaEnvio($objDBO->$key);\r\n\t\t\t}\r\n\t\t\t$contador++;\r\n\t\t}\r\n\t\t\r\n\t\t//Libera el objeto DBO\r\n\t\t$objDBO->free();\r\n\r\n\t\treturn $ret;\t\r\n\t}", "protected function setFilterArray() {\n $primary_keys = getPrimaryKeys($this->table_name);\n foreach ($primary_keys as $pk) {\n if (isset($_GET[$pk])) {\n $this->filter[$pk] = Mysql::SQLValue($_GET[$pk]);\n }\n }\n }", "function fields($data) {\n return '`' . implode('`, `', array_keys($data)) . '`';\n}", "function object_array($object){\r\n\t$table_name = $object->gettablename();\r\n\t$arr_column = $object->getcolumnnames();\r\n\t$arr_object = array();\r\n\t$arr = $object->searchbyobject(NULL, NULL, TRUE);\r\n\r\n\tswitch($table_name){\r\n\t\tcase \"itpedido_conf\": $table_name = \"itpedidoconf\";\r\n\t\t\tbreak;\r\n\t}\r\n\r\n\tif(is_array($arr)){\r\n\t\tforeach($arr as $row){\r\n\t\t\t$ob = objectbytable($table_name, NULL, $object->getconnection());\r\n\t\t\tforeach($arr_column as $column){\r\n\t\t\t\t@call_user_func(array($ob, \"set\".$column), $row[$column]);\r\n\t\t\t}\r\n\t\t\t$arr_object[] = $ob;\r\n\t\t}\r\n\t}\r\n\treturn $arr_object;\r\n}", "public function inicializacionBusqueda()\r\n {\r\n $dataEmpCli = array();\r\n $filterEmpCli = array();\r\n\r\n try {\r\n\r\n foreach ($this->getEmpresaTable()->getEmpresaProvReport() as $empresa) {\r\n $dataEmpCli[$empresa->id] = $empresa->NombreComercial.' - '.$empresa->RazonSocial.' - '.$empresa->Ruc;\r\n $filterEmpCli[$empresa->id] = [$empresa->id];\r\n }\r\n\r\n } catch (\\Exception $ex) {\r\n $dataEmpCli = array();\r\n }\r\n\r\n $formulario['prov'] = $dataEmpCli;\r\n $filtro['prov'] = array_keys($filterEmpCli);\r\n return array($formulario, $filtro);\r\n }", "function add_custom_fields_columns ( $columns ) {\n return array_merge ( $columns, array (\n 'ingredienti' => __ ( 'Ingredienti' ),\n 'prezzo' => __ ( 'Prezzo' )\n ) );\n}", "function executaRelatorio() {\n\n try {\n $form_values = $this->getValues();\n $matriculas = $form_values['matricula'];\n $matriculas = explode(\"\\n\", $matriculas);\n $matriculas = array_map('trim', $matriculas);\n $array = array(array());\n foreach ($matriculas as $matricula) {\n $aluno = TbalunoPeer::retrieveByPK($matricula);\n $result = array();\n $result['periodo'] = TbperiodoPeer::retrieveByPK($form_values['periodo']);\n $result['idperiodo'] = $form_values['periodo'];\n $result['aluno'] = $aluno;\n $result['show_fields'] = $form_values['show_fields'];\n $result['data_fields'] = $this->getModelFields();\n $result['list'] = TbdisciplinaPeer::retrieveByCodDisciplina($aluno->getDisciplinasACursar($form_values['periodo']));\n $result['list2'] = TbdisciplinaPeer::retrieveByCodDisciplina($aluno->getDisciplinasIntbfila($form_values['periodo']));\n $array['array'][] = $result;\n }\n } catch (PropelException $exc) {\n#throw new Exception( utf8_decode($exc->getMessage()).\" SQL: \".$criteria->toString() );\n throw new Exception(utf8_decode($exc->getMessage()));\n }\n\n return $array;\n }", "public function BuscarValor($tabla,$campo,$condicion){\n $rows= null;\n $modelo= new ConexBD();\n $conexion= $modelo->get_conexion();\n $sql=\"SELECT $campo FROM $tabla WHERE $condicion\";\n $stm=$conexion->prepare($sql);\n $stm->execute();\n while($result = $stm->fetch())\n {\n $rows[]=$result;\n }\n return $rows;\n }", "function foreachResult($result,$field,$print){\n $data = array();\n foreach($result->result() as $a){\n for($b = 0; $b<count($field);$b++){ /*untuk ngeloop semua variable yang dinginkan*/\n $string = $field[$b];\n $data[$print[$b]] = $a->$string; /* $data[0][\"nama_mahasiswa\"] = \"joni\"; $data[0][\"jurusan_mahasiswa\"] = \"sistem informasi */\n }\n }\n return $data;\n }", "function table()\n {\n return array('pattern' => DB_DATAOBJECT_STR + DB_DATAOBJECT_NOTNULL,\n 'created' => DB_DATAOBJECT_STR + DB_DATAOBJECT_DATE + DB_DATAOBJECT_TIME + DB_DATAOBJECT_NOTNULL);\n }", "public function makeColumns(){\n $hijosDetalle=$this->\n getReportedetalle()->\n where(['and', \"esdetalle='1'\", \"visiblecampo='1'\"])->\n orderBy('orden')->all();\n //echo count( $hijosDetalle);die();\n $columns=[];\n foreach($hijosDetalle as $fila){\n $columns[]=[\n 'attribute'=>$fila->nombre_campo,\n 'label'=>$fila->aliascampo,\n 'format'=>'raw',\n 'options'=>['width'=>\n $this->sizePercentCampo($fila->nombre_campo).'%'],\n ];\n \n \n }\n return $columns;\n \n }", "static function __getAlumnos($arr_obj){\n self::$db = new PDO('mysql:host=localhost;dbname=Autoescuela', 'root', 'root');\n $sql = \"SELECT * FROM alumno WHERE 1 = 1\";\n if(isset($arr_obj['id'])){\n $sql.=\" and id = \".$arr_obj['id'];\n }\n if(isset($arr_obj['dni'])){\n $sql.=\" and dni = \".$arr_obj['dni'];\n }\n if(isset($arr_obj['nombre'])){\n $sql.=\" and nombre LIKE '%\".$arr_obj['nombre'].\"%'\";\n }\n if(isset($arr_obj['apellidos'])){\n $sql.=\" and apellidos LIKE '%\".$arr_obj['apellidos'].\"%'\";\n }\n if(isset($arr_obj['fecha_nac'])){\n $sql.=\" and fecha_nac = '\".$arr_obj['fecha_nac'].\"'\";\n }\n if(isset($arr_obj['telefono'])){\n $sql.=\" and telefono = \".$arr_obj['telefono'];\n }\n if(isset($arr_obj['mail'])){\n $sql.=\" and mail LIKE '%\".$arr_obj['mail'].\"%'\";\n }\n if(isset($arr_obj['id_profesor'])){\n $sql.=\" and id_profesor = \".$arr_obj['id_profesor'];\n }\n $array_return = array(); //Creamos el array que vamos a devolver\n $con = self::$db->query($sql); //Ejecutamos la query y guardamos lo que nos devuelve en $con\n foreach($con as $row){ \n $newAlu = new Alumno($row['dni'], $row['nombre'], $row['apellidos'], $row['fecha_nac'], $row['telefono'], $row['mail'], $row['id'], $row['id_profesor']);\n //$returnAlu->mostrar();\n $array_return[] = $newAlu;\n }\n return $array_return;\n }", "public static function buscar($dato){\n $dato= \"%\".$dato.\"%\";\n $db = DWESBaseDatos::obtenerInstancia();\n\n $db -> ejecuta(\"SELECT *\n FROM usuario m WHERE m.nombre like ?\", $dato);\n\n\n return array_map(function($fila){\n return new Usuarios($fila['id'], $fila['email'], $fila['pass'],$fila['nombre'], $fila['foto_perfil'], $fila['localidad'], $fila['cp'], $fila['telefono']);\n },$db -> obtenDatos());\n\n\n }", "public function getPatternedFields(): array;", "protected function fijarAtributos(){\n \n return array(\"cod_categoria\",\"nombre\");\n \n }", "private function _consultar() {\n $where = \"\";\n if(!empty($this->_idDato)){\n $where = \"AND b.id_valor = $this->_idDato \";\n }\n if(!empty($this->_valor)){\n if(is_array($this->_valor)){\n $aux = each($this->_valor);\n $where = \"AND b.valor {$aux['key']} '{$aux['value']}' \";\n }else{\n $where = \"AND b.valor = '$this->_valor' \";\n }\n \n }\n $query = \"SELECT a.nom_tabla,b.* FROM \nmt_tablas a,\nmt_contenidos b\nWHERE a.id_tablas = {$this->_idTabla}\nAND a.estado = 1 $where\nAND a.id_tablas = b.id_tabla\nAND b.estado = 1\";\n \n if(is_array($this->_orden) && count($this->_orden) == 2){\n $query .= (\" ORDER BY \" . ($this->_orden[0] == 1 ? \"id_valor \" : \"valor \") . $this->_orden[1] );\n }\n $con = ConexionSQL::getInstance();\n $id = $con->consultar($query);\n if($res = $con->obenerFila($id)){\n $R = array();\n do{\n $aux = array();\n foreach($res as $key => $valor){\n if(!is_numeric($key)){\n $aux[$key] = $valor;\n }\n }\n $R[] = $aux;\n }while($res = $con->obenerFila($id));\n return $R;\n }\n return false;\n }", "protected function attributes() {\n\t $attributes = array();\n\t foreach(static::$table_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 }", "function get_ArregloAlumnos(){\n\t\t$query_2 = $this->db->query('SELECT rut, id_clase FROM datos_alumnos');\n\t\t\n\t\tif ($query_2->num_rows() > 0){\n\t\t\t//se guarda los datos en arreglo bidimensional\n\t\t\tforeach($query_2->result() as $row)\n\t\t\t$arrDatos_2[htmlspecialchars($row->rut, ENT_QUOTES)]=htmlspecialchars($row->rut,ENT_QUOTES);\n\t\t\t$query_2->free_result();\n\t\t\treturn $arrDatos_2;\n\t\t}\t\n\t\t\n\t}", "public function creataTypeArray()\n\t{\n\t\t$this->db->creataTypeArray();\n\t}", "public function filtrarCampos()\n {\n $array_filter = array();\n\n foreach ($this->validations as $propriedade => $tipo) {\n\n if ($this->data[$propriedade] === NULL) {\n throw new \\Exception('O valor nao pode ser Nulo');\n }\n\n // valor do input\n $value = $this->data[$propriedade];\n\n $valueTypeOf = gettype($value);\n\n // anti-hacker\n $value = trim($value); # Limpar espacos\n $value = stripslashes($value); # remove barras invertidas\n $value = htmlspecialchars($value); # converte caracteres especiais para realidade HTML -> <a href='test'>Test</a> -> &lt;a href=&#039;test&#039;&gt;Test&lt;/a&gt;\n\n // valor do tipo, usando como metodo existente da classe Sanitize\n $method = $tipo;\n\n $validator = call_user_func(array('Inovuerj\\ADO\\TValidator', $method), $value);\n\n // se nao passar no Validator, retorno erro\n if (!$validator && $method != 'texto') {\n $msg = \"O campo {$propriedade} nao foi validado\";\n throw new \\Exception($msg);\n } else {\n // injetando valor no $this->$propriedade\n $this->{$propriedade} = call_user_func(array('Inovuerj\\ADO\\TSanitizer', $method), $value);\n }\n\n// Util::mostrar($propriedade .' - Tipo: '.$tipo, __LINE__);\n// Util::mostrar($this->{$propriedade},__LINE__);\n\n }\n\n\n # filtrado\n return $this;\n\n }", "private function buscarPersonas($buscar) {\n $aBus = array();\n if($buscar) {\n $dato = Funciones::gCodificar($buscar);\n $rRes = Funciones::gEjecutarSQL(\"SELECT CODPERS,APELLIDOS,NOMBRE FROM PERSONAS WHERE STRCMP(CODPERS,'$dato')=0 OR APELLIDOS LIKE '%$dato%' OR NOMBRE LIKE '%$dato%' ORDER BY APELLIDOS,NOMBRE,CODPERS\");\n while($aRow = $rRes->fetch(PDO::FETCH_ASSOC)) {\n $aBus[$aRow['CODPERS']] = array($aRow['APELLIDOS'],$aRow['NOMBRE']);\n }\n $rRes->closeCursor(); \n }\n return $aBus;\n }", "public function hydrate($donnees){\n foreach($donnees as $key => $value){\n //on delcare la varible method\n $method = 'set'.ucfirst($key);\n//on verifie si la methode existe\n if(method_exists($this,$method)){\n $this->$method($value);\n }\n }\n\n}", "function cextras_objets_valides(){\r\n\t$objets = array();\r\n\tforeach (array('article','auteur','breve','groupes_mot','mot','rubrique','site') as $objet) {\r\n\t\t$objets[$objet] = array(\r\n\t\t\t'table' => table_objet_sql($objet), \r\n\t\t\t'nom' => _T('cextras:table_'.$objet),\r\n\t\t);\r\n\t}\r\n\treturn $objets;\r\n}", "public function getAtributos() {\r\n\t\t\t\r\n\t\t\t$atributos = array();\r\n\t\t\t$atributos[0] = \"nombreUnidad\";\r\n\t\t\t$atributos[1] = \"telefono\";\r\n\t\t\treturn $atributos;\r\n\t\t}", "function __construct($row, AttributeGroup $grp){\n\n\t\t\n\t\t$this->Group = $grp;\n\t\t\n\t\tif($grp->UseRealTable){\n\t\t\t$this->fieldName = $row['name'];\n\t\t\t$this->tableName = $grp->RealTableName;\n\t\t\t$this->AsTableName = $grp->RealTableName;\n\t\t} else {\n\t\t\t$this->fieldName = 'value';\n\t\t\t$this->tableName = $GLOBALS['attribute_type_tables'][$row['type']];\n\t\t\t$this->AsTableName = 'tbl'.$grp->Id.'_'.$row['id'];\n\t\t}\n\t\tif($row['php_data']){\n\t\t\t$row['php_data']=unserialize($row['php_data']);\n\t\t}\n\t\t\n\t\t$this->Id = $row['id'];\n\t\t$this->Name = $row['name'];\n\t\t$this->Type = $row['type'];\n\t\t$this->LabelPrefix = $row['prefix'];\n\t\t$this->LabelSuffix = $row['suffix'];\n\t\t$this->PHPData = $row['php_data'];\n\t\t\n\t\t\n\t\t//$row['value'] = '';\n\t\t//$row['orig_value'] = '';\n\t\t/*\n\t\tIMPORTANT FEAttribute extends ArrayObject\n\t\t\nMnogo neiasen bug. Kogato dobavih v getBeValue na ManagedImages da vrashta i $this[\"value\"][\"sizes\"]=$this->ImageSizes;\nVsichko se pochupi, vsichki FEAttr instancii poluciha i te taia stoinost. Tova e pri situacia che predi tova ne im e izvikano izrichno $this['value'] = neshtosi.\nNe se izvikva, ako ne sme zaredili danni prez loadData.\nIzglezda niakade copy on write mehanizma se pochupva pri naslediavane na ArrayObject\n\t\t\n\t\t*/\n\t\t\n//\t\tparent::__construct($row);\n\t}", "static public function mdlIngresarFfiscales($tabla, $datos){\n\n\t\t$stmt = Conexion::conectar()->prepare(\"INSERT INTO $tabla(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\toperador\n , pcontacto\n , area\n , cargo\n , mail\n , telofi\n , ext\n , telextra\n , uuid\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t, pcontacto2\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t, area2\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t, cargo2\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t, mail2\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t, telofi2\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t, ext2\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t, telextra2\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t, perfil\n\n )\n VALUES (\n :operador\n , :pcontacto\n , :area\n , :cargo\n , :mail\n , :telofi\n , :ext\n , :telextra\n , :uuid\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t, :pcontacto2\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t, :area2\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t, :cargo2\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t, :mail2\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t, :telofi2\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t, :ext2\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t, :telextra2\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t, :perfil\n\n\n )\"\n );\n\n\t\t$stmt->bindParam(\":uuid\", $datos[\"uuid\"], PDO::PARAM_STR);\n\t\t$stmt->bindParam(\":operador\", $datos[\"operador\"], PDO::PARAM_STR);\n\t\t$stmt->bindParam(\":pcontacto\", $datos[\"pcontacto\"], PDO::PARAM_STR);\n\t\t$stmt->bindParam(\":area\", $datos[\"area\"], PDO::PARAM_STR);\n\t\t$stmt->bindParam(\":cargo\", $datos[\"cargo\"], PDO::PARAM_STR);\n\t\t$stmt->bindParam(\":mail\", $datos[\"mail\"], PDO::PARAM_STR);\n\t\t$stmt->bindParam(\":telofi\", $datos[\"mail\"], PDO::PARAM_STR);\n $stmt->bindParam(\":ext\", $datos[\"ext\"], PDO::PARAM_STR);\n $stmt->bindParam(\":telextra\", $datos[\"telextra\"], PDO::PARAM_STR);\n\t\t$stmt->bindParam(\":pcontacto2\", $datos[\"pcontacto2\"], PDO::PARAM_STR);\n\t\t$stmt->bindParam(\":area2\", $datos[\"area2\"], PDO::PARAM_STR);\n\t\t$stmt->bindParam(\":cargo2\", $datos[\"cargo2\"], PDO::PARAM_STR);\n\t\t$stmt->bindParam(\":mail2\", $datos[\"mail2\"], PDO::PARAM_STR);\n\t\t$stmt->bindParam(\":telofi2\", $datos[\"telofi2\"], PDO::PARAM_STR);\n\t\t$stmt->bindParam(\":ext2\", $datos[\"ext2\"], PDO::PARAM_STR);\n\t\t$stmt->bindParam(\":telextra2\", $datos[\"telextra2\"], PDO::PARAM_STR);\n\t\t$stmt->bindParam(\":perfil\", $datos[\"perfil\"], PDO::PARAM_STR);\n\n\n\n\n\t\tif($stmt->execute()){\n\n\t\t\treturn \"La información se ha guardado exitosamente\";\n\n\t\t}else{\n\n\t\t\t$arr = $stmt ->errorInfo();\n\t\t\t$arr[3]=\"ERROR\";\n\t\t\treturn $arr[2];\n\n\t\t}\n\n\t\t$stmt->close();\n\n\t\t$stmt = null;\n\n\t}", "public function buscar_seccion($array_datos){\n // Funcion que devuelve las secciones, resultado de la busqueda en campos con un determinado texto\n // $array_datos --> array con el texto de los campos de secciones por los que se va a buscar\n // Estos textos corresponden a los campos: nombre\n $array_campos = array ('nombre');\n $sql=\"\";\n $contador=0;\n \n for ($i = 0; $i < sizeof($array_campos); $i++){\n if (!empty($array_datos[$i])) {\n $contador ++;\n if ($contador == 1) {\n $sql = \"SELECT * FROM secciones WHERE \";\n } else {$sql.=\" AND \";}\n $sql.= \"$array_campos[$i] LIKE '%$array_datos[$i]%'\"; \n }\n }\n if ($contador>0) {$sql.=\" ORDER BY nombre\";}\n if (($sql)) {\n $resultado = $this -> db -> query($sql);\n return $resultado -> result_array(); // Obtener el array \n } else return array();\n }", "function filterBy_S_A_F_E_C($SEDE, $AREA, $FACULTAD, $ESCUELA, $CARRERA,$TABLE_I)\n{\n global $mysqli;\n $TINS = $TABLE_I;\n $query = new Query($mysqli, \"SELECT red,nombre,apellido,CONCAT(provincia,'-',clave,'-',tomo,'-',folio)AS cedula,n_ins,sede,fac_ia,esc_ia,car_ia,fac_iia,esc_iia,car_iia,fac_iiia,esc_iiia,car_iiia\n FROM \" .$TINS. \" where sede = ? AND area_i = ? AND fac_ia = ? AND esc_ia = ? AND car_ia = ? \");\n $parametros = array(\"iiiii\", &$SEDE, &$AREA, &$FACULTAD, &$ESCUELA, &$CARRERA);\n $data = $query->getresults($parametros);\n\n if (isset($data[0])) {\n return $data;\n } else {\n return null;\n }\n\n}", "public function campo($nombre) {}", "function extract_fields($criteria = array())\n{\n\t$fields = array();\n\t\n\tforeach ($criteria as $table => $info)\n\t{\n\t\tforeach ($info['fields'] as $code => $name)\n\t\t{\n\t\t\t$fields[$code] = $name;\n\t\t}\n\t}\n\t\n\treturn $fields;\n}", "public function prepareFieldset();", "public function columnasLista(){\n $gridlista=array(\n array('name'=>'codigoproducto','type'=>'raw','value'=>'CHtml::link($data->codigoproducto,array(\"update\",\"id\"=>$data->id))'),\n 'nombre',\n 'costo',\n 'stock',\n 'stockminimo',\n );\n\n return $gridlista;\n }", "public function findAllBy( $value = NULL, $field = NULL, array $columns = ['*'] );", "function generateColonneByType($table, $columnName, $recherche=false, $attribut=null, $disabled=false) {\n $columnName = strtolower($columnName);\n $retour = '';\n $disabled = $disabled ? 'disabled' : '';\n $recherche = $recherche ? 'rechercheTableStatique' : '';\n $type = $table->getTypeOfColumn($columnName);\n switch ($type) {\n case 'string':\n $cantBeNull = $table->getColumnDefinition($columnName);\n $cantBeNull['notnull'] == 1 ? $class = 'requis' : $class = '';\n $retour .= '\n <div class=\"colonne\">\n <span class=\"attribut\">'.$columnName.' : </span>\n <span><input class=\"contour_field input_char '.$recherche.' '.$class.'\" type=\"text\" columnName='.$columnName.' value=\"'.$attribut.'\"'.$disabled.'/></span>\n </div>';\n break;\n case 'float' :\n case 'integer' :\n if (preg_match('#^id[a-zA-Z]+#', $columnName)) {\n $columnName = substr($columnName, 2);\n $retour .= '\n <div class=\"colonne\">\n <span class=\"attribut\">'.$columnName.' :</span>\n <span><input type=\"text\" class=\"contour_field input_char autoComplete\" id=\"'.$columnName.'\" table=\"'.$columnName.'\" champ=\"libelle\" value=\"'.$attribut.'\"'.$disabled.'/></span>\n </div>'; \n } else {\n $cantBeNull = $table->getColumnDefinition($columnName);\n $cantBeNull['notnull'] == 1 ? $class = 'requis' : $class = '';\n $retour .= '\n <div class=\"colonne\">\n <span class=\"attribut\">'.$columnName.' :</span>\n <span><input type=\"text\" class=\"contour_field input_num '.$class.'\" columnName='.$columnName.' value=\"'.$attribut.'\"'.$disabled.'/></span>\n </div>';\n }\n \n break;\n case 'boolean' :\n $retour .='\n <div class=\"colonne\">\n <span class=\"attribut\">'.$columnName.' : </span>';\n if($attribut != null && $attribut == 1) {\n $retour .= '<span class=\"checkbox checkbox_active\" value=\"1\" columnName='.$columnName.' '.$disabled.'></span></div>';\n } else {\n $retour .= '<span class=\"checkbox\" value=\"0\" columnName='.$columnName.' '.$disabled.'></span></div>';\n };\n break;\n }\n return $retour;\n}", "function i18n_get_attributes() {\n\t\t\t$attributes = array();\n\n\t\t\t$table_name_i18n = $this->table_name.$this->i18n_table_suffix;\n\t\t\t$i18n_columns = self::$db->table_info($table_name_i18n);\n\n\t\t\tif(is_array($i18n_columns)) {\n\t\t\t\tforeach($i18n_columns as $column) {\n\t\t\t\t\tif(isset($this->i18n_column_values[$column['name']]) && is_array($this->i18n_column_values[$column['name']])) {\n\t\t\t\t\t\t$db_method = Inflector::camelize('update_'.$column['type']);\n\t\t\t\t\t\tforeach($this->i18n_column_values[$column['name']] as $locale => $i18n_value) {\n\t\t\t\t\t\t\t$attributes[$locale][$column['name']] = array($i18n_value, method_exists(self::$db, $db_method) ? $db_method : null);\n\t\t\t\t\t\t\tif(self::$has_update_blob && in_array($column['type'], self::$db->blob_column_types)) {\n\t\t\t\t\t\t\t\t$this->blob_fields[$column['name']] = array($table_name_i18n, $column['type'], null, null);\n\t\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\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn $attributes;\n\t\t}", "public function getSQL($param=false){\n\t\t\tswitch( $name = $this->obtenerDato(\"name\") ){\n\t\t\t\t// Los campos modelfield::$specials los ponemos en código\n\t\t\t\t// Debemos refactorizar esto con algo mas de tiempo\n\t\t\t\tcase \"estado_contratacion\":\n\t\t\t\t\t$sql = \"( -- empresas validas\n\t\t\t\t\t\t\tn1 IN (<%empresasvalidas%>)\n\t\t\t\t\t\tAND if(n2 IS NULL OR !n2, 1, n2 IN (<%empresasvalidas%>) )\n\t\t\t\t\t\tAND if(n3 IS NULL OR !n3, 1, n3 IN (<%empresasvalidas%>) )\n\t\t\t\t\t\tAND if(n4 IS NULL OR !n4, 1, n4 IN (<%empresasvalidas%>) )\n\t\t\t\t\t)\";\n\n\t\t\t\t\treturn $sqlFinal = \"(SELECT if(($sql), 'Valido', 'No Valido'))\";\n\t\t\t\tbreak;\n\t\t\t\tcase \"cadena_contratacion_cumplimentada\":\n\t\t\t\t\t$sql = \"( -- empresas cumplimentadas\n\t\t\t\t\t\t\tn1 IN (<%empresacumplimentadas%>)\n\t\t\t\t\t\tAND if(n2 IS NULL OR !n2, 1, n2 IN (<%empresacumplimentadas%>) )\n\t\t\t\t\t\tAND if(n3 IS NULL OR !n3, 1, n3 IN (<%empresacumplimentadas%>) )\n\t\t\t\t\t\tAND if(n4 IS NULL OR !n4, 1, n4 IN (<%empresacumplimentadas%>) )\n\t\t\t\t\t)\";\n\n\t\t\t\t\treturn $sqlFinal = \"(SELECT if(($sql), 'Si', 'No'))\";\n\t\t\t\tbreak;\n\t\t\t\tcase 'asignado_en_conjunto_de_agrupadores': case 'valido_conjunto_agrupadores': \n\t\t\t\t// case 'valido_conjunto_agrupadores_asignados':\n\t\t\t\tcase 'valido_conjunto_agrupadores_seleccionados':\n\t\t\t\tcase 'valido_conjunto_agrupadores_solo_asignados':\n\t\t\t\t\tif( $param instanceof ArrayObjectList && $sql = trim($this->obtenerDato(\"sql\")) ){\n\t\t\t\t\t\t$subsql = array();\n\t\t\t\t\t\tforeach ($param as $item) {\n\t\t\t\t\t\t\t$subsql[] = \"((\". str_replace('%s', $item->getUID(), $sql) .\") = 1)\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn $sql = '( IF( '.implode(' AND ',$subsql) .',\\'Si\\',\\'No\\') )';\n\t\t\t\t\t}\n\n\t\t\t\tbreak;\n\t\t\t\tcase 'valido_algun_agrupador': \n\t\t\t\t\tif( $param instanceof ArrayObjectList && $sql = trim($this->obtenerDato(\"sql\")) ){\n\t\t\t\t\t\tforeach($param as $item) {\n\t\t\t\t\t\t\t$subsql[] = \"((\". str_replace('%s', $item->getUID(), $sql) .\") = 1)\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn $sql = '( IF( '.implode(' OR ',$subsql) .',\\'Si\\',\\'No\\') )';\n\t\t\t\t\t} \n\t\t\t\tbreak;\n\t\t\t\tcase 'mostrar_agrupador_asignado': case 'trabajos': case 'codigo_agrupador_valido':\n\t\t\t\t\tif( $param instanceof ArrayObjectList && $sql = trim($this->obtenerDato(\"sql\")) ){\n\t\t\t\t\t\treturn str_replace('%s', $param->toComaList() ,$sql);\n\t\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tif( $sql = trim($this->obtenerDato(\"sql\")) ){\n\t\t\t\t\t\tif( $param instanceof Ielemento ) $param = $param->getUID();\n\t\t\t\t\t\tif( $param ) $sql = str_replace(\"%s\", $param, $sql);\n\t\t\t\t\t\treturn $sql;\n\t\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\treturn false;\n\t\t}", "public function listRegisterFields(){\n\t\t$this->registerFieldString('name_hld', 'Tipo');\n\t}" ]
[ "0.59805393", "0.59226686", "0.58754814", "0.58547086", "0.5851312", "0.5844592", "0.5757951", "0.5668404", "0.5660462", "0.5648322", "0.5643876", "0.5631906", "0.56150526", "0.5613322", "0.5606053", "0.56042403", "0.5601972", "0.5579324", "0.55775195", "0.5564905", "0.55570513", "0.55335176", "0.5533264", "0.55047077", "0.5495252", "0.5490679", "0.5473556", "0.54564196", "0.54466265", "0.5443903", "0.5443536", "0.5434585", "0.54179674", "0.5413969", "0.54038525", "0.5401413", "0.53983486", "0.5382673", "0.538242", "0.5377818", "0.53767854", "0.5376276", "0.5373303", "0.5355721", "0.5347769", "0.53471935", "0.53447014", "0.5339363", "0.5330912", "0.5315345", "0.53059775", "0.53009576", "0.5297917", "0.5294849", "0.52932686", "0.52906924", "0.5280176", "0.5278203", "0.52771115", "0.52717716", "0.52592045", "0.52550095", "0.525403", "0.525403", "0.52463657", "0.5230692", "0.52277595", "0.52234924", "0.52205896", "0.5215805", "0.5212536", "0.5207561", "0.52016157", "0.5201445", "0.5200021", "0.51982623", "0.51873344", "0.51864105", "0.5183694", "0.5181712", "0.5180617", "0.51793975", "0.51783043", "0.51782244", "0.51750207", "0.51687515", "0.51672584", "0.5166787", "0.51627547", "0.5159043", "0.51566297", "0.51551", "0.515288", "0.51524", "0.51513815", "0.51487947", "0.5146545", "0.51445156", "0.5141073", "0.5139759", "0.51396614" ]
0.0
-1
metodo para buscar registros segun algun atributo(array (column_name => value, ...))
public function find_by_subquery($properties, $all=false) { if (empty($properties)) { return null; } $sql = "Select * From " . $this->table_name . " Where "; $keys = array_keys($properties); $first = true; foreach ($keys as $key) { $sql .= ($first == false ? " and " : "") . $key . " " . $properties[$key] . " "; $first = false; } $req = Database::getBdd()->prepare($sql); $req->execute(); if($all){ return $req->fetchAll(PDO::FETCH_ASSOC); } return $req->fetch(PDO::FETCH_ASSOC); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function carregarPorValorAtributo($atributo, $valor) {\n $sid = \"\\\"$valor\\\"\";// else $sid = $id;\n $query = \"SELECT * FROM \" . get_class($this) . \" WHERE $atributo=$sid\";\n $this->ATRIBUTO= bd::executeSqlParaArrayTitulada($query);\n $this->id=$this->ATRIBUTO['id'];\n $this->carregarRelacionamentos();\n }", "protected function asignarCamposRelacionales() {\n foreach($this->campos as $nombre=>$campo) {\n if($campo->tipo!='relacional'||($campo->relacion!='1:1'&&$campo->relacion!='1:0')) continue;\n $columna=$campo->columna;\n if(is_object($this->consultaValores->$nombre)) {\n //Asignado como entidad u objeto anónimo\n $this->consultaValores->$columna=$this->consultaValores->$nombre->id;\n } elseif(is_array($this->consultaValores->$nombre)) {\n //Asignado como array\n $this->consultaValores->$columna=$this->consultaValores->$nombre['id'];\n }\n }\n }", "function retornaCampos($tabelaProcura){\n # Abre arquivo xml para navegacao\n $aBanco = simplexml_load_string($this->xml);\n $aRetorno = array();\n\n # Varre a estrutura das tabelas\n foreach($aBanco as $aTabela){\n # Recupera o nome da tabela e gera o nome da classe\n if($tabelaProcura != (string)$aTabela['NOME']) \n continue;\n # Varre a estrutura dos campos da tabela em questao\n foreach($aTabela as $oCampo){\n # Recupera valores a serem substituidos no modelo\n $aRetorno[] = (string)$oCampo->FKTABELA;\n }\n break;\n }\n return $aRetorno;\n }", "public function buscarFuncionarioPorCampo($campo, $filtro){\n \n $query = \"SELECT Usuario.*, Funcionario.* FROM Usuario JOIN Funcionario \n ON Usuario.idUsuario = Funcionario.idUsuario\"; //criação da query base\n\n if(isset($campo) && isset($filtro)){ //verifica se os filtros foram especificados\n if(strcmp($campo, nome) || strcmp($campo, sobrenome) || strcmp($campo, email)){ //verifica se o campo corresponde a nome, sobrenome ou email\n $query .= \" WHERE Usuario.nome LIKE '%'.'.$campo.'.'%'\"; //adicionar filtro de nome, sobrenome ou email à query\n }else if(strcmp($campo, matricula)){ //verifica se o campo corresponde a matricula\n $query .= \" WHERE Funcionario.matricula = $campo\"; //adiciona filtro de matricula à query\n }else{\n return array(); //retorna um array vazio caso o campo não seja encontrado\n }\n }\n\n /*Caso não seja especificados filtros retorna todos os funcionarios*/\n\n $result = $this->PDO->query($query); //executa a query\n\n $funcionarios = array(); //cria array para armazenar os resultados da consulta\n\n if(!empty($result) && $result->rowCount() > 0){ //verifica se existem resultados para consulta\n foreach($result->fetchAll() as $item){ //percorre as tuplas retornadas pela consulta\n $funcionarios[] = new funcionario( //cria um novo funcionario e add uma array, apartir dos dados obtidos\n isset($item['idUsuario'])?utf8_encode($item['idUsuario']):null,\n isset($item['email'])?utf8_encode($item['email']):null,\n isset($item['nome'])?utf8_encode($item['nome']):null,\n isset($item['sobrenome'])?utf8_encode($item['sobrenome']):null,\n isset($item['senha'])?utf8_encode($item['senha']):null,\n isset($item['cadastroConfirmado'])?utf8_encode($item['cadastroConfirmado']):null,\n isset($item['tipoUsuario'])?utf8_encode($item['tipoUsuario']):null,\n isset($item['matricula'])?utf8_encode($item['matricula']):null,\n isset($item['funcao'])?utf8_encode($item['funcao']):null,\n isset($item['cadastroObra'])?utf8_encode($item['cadastroObra']):null,\n isset($item['gerenciaObra'])?utf8_encode($item['gerenciaObra']):null,\n isset($item['remocaoObra'])?utf8_encode($item['remocaoObra']):null,\n isset($item['cadastroNoticia'])?utf8_encode($item['cadastroNoticia']):null, \n isset($item['gerenciaNoticia'])?utf8_encode($item['gerenciaNoticia']):null,\n isset($item['remocaoNoticia'])?utf8_encode($item['remocaoNoticia']):null,\n isset($item['backup'])?utf8_encode($item['backup']):null\n );\n }\n }\n\n return $funcionarios; //retorna os resultados\n }", "function getRegistrosTabelaAssociativa($tabela, $campo_selecao, $campo_comparacao, $value_comparacao){\n\t$sql = \"select $campo_selecao from $tabela where $campo_comparacao = $value_comparacao\";\n\t$rs = mysql_query($sql);\n\t\n\t$i = 0;\n\twhile($row = mysql_fetch_array($rs)){\n\t\t$registros[$i] = $row[0];\n\t\t$i++;\n\t}\n\t\n\treturn $registros;\n}", "private function getFieldsOnTable()\n{\n\n $returnArray=array(); \n foreach ($this->tableStructure as $ind => $fieldArray) { \n $returnArray[$fieldArray['columnName']]=$fieldArray['columnName'];\n }\n \n return $returnArray; \n}", "public function catastro_registro($attribute, $params)\n {\n \n $table = InmueblesUrbanosForm::find()\n ->where(\"estado_catastro=:estado_catastro\", [\":estado_catastro\" => $this->estado_catastro])\n ->andwhere(\"municipio_catastro=:municipio_catastro\", [\":municipio_catastro\" => $this->municipio_catastro])\n ->andwhere(\"parroquia_catastro=:parroquia_catastro\", [\":parroquia_catastro\" => $this->parroquia_catastro])\n ->andwhere(\"ambito_catastro=:ambito_catastro\", [\":ambito_catastro\" => $this->ambito_catastro])\n ->andwhere(\"sector_catastro=:sector_catastro\", [\":sector_catastro\" => $this->sector_catastro])\n ->andwhere(\"manzana_catastro=:manzana_catastro\", [\":manzana_catastro\" => $this->manzana_catastro])\n ->andwhere(\"parcela_catastro=:parcela_catastro\", [\":parcela_catastro\" => $this->parcela_catastro])\n ->andwhere(\"propiedad_horizontal=:propiedad_horizontal\", [\":propiedad_horizontal\" => 0])\n ->andWhere(\"manzana_limite=:manzana_limite\", [\":manzana_limite\" => $this->manzana_limite])\n ->andWhere(\"inactivo=:inactivo\", [\":inactivo\" => 0])\n ->asArray()->all(); \n \n //$sql = 'SELECT id_impuesto, id_contribuyente FROM inmuebles WHERE manzana_limite=:manzana_limite and catastro=:catastro';\n //$inmuebles = Inmuebles::findBySql($sql, [':manzana_limite' => $this->manzana_limite, 'catastro'=> $this->catastro])->all();\n \n\n //Si la consulta no cuenta (0) mostrar el error\n if ($table != null){\n\n $this->addError($attribute, Yii::t('backend', 'The taxpayer: '.$table[0]['id_contribuyente'].' has already assigned cadestre. Tax: '.$table[0]['id_impuesto']));//Impuesto: '.$table->id_impuesto; \n } \n }", "public function columnasLista(){\n $gridlista=array(\n array('name'=>'nombre','type'=>'raw','value'=>'CHtml::link($data->nombre,array(\"update\",\"id\"=>$data->id))'),\n 'cantidadpresentacion',\n 'salida',\n // 'idempresa',\n array('name'=>'idempresa','type'=>'raw','value'=>'$data->getNombreEmpresa()'),\n );\n\n return $gridlista;\n }", "public function loadFieldsRegexps()\n {\n // prepare request\n $sth = self::$connection->prepare('SELECT field_name, validator FROM fields ORDER BY field_order ASC');\n // run it\n $sth->execute();\n\n // check if not empty or error\n if ($result = $sth->fetchAll(PDO::FETCH_ASSOC)) {\n // go with foreach create needed structure\n foreach ($result as $field => $val) {\n self::$data[$val['field_name']] = $val['validator'];\n }\n\n // return answer\n return self::$data;\n }\n\n return false;\n }", "public function fieldCreate()\n\t{\n\t\t$fields=array();\n\t\tforeach($this->getTable()->result_array() as $row)\n\t\t{\n\t\t\tif($row['Extra']!=='auto_increment')\n\t\t\t{\n\t\t\t\t$fields[]=array(\n\t\t\t\t\t'field'=>$row['Field'],\n\t\t\t\t\t'max_length'=>preg_match('/varchar/',$row['Type']) ? (preg_replace('/[A-Za-z()]/','',$row['Type'])!=='' ? '\\'maxlength\\'=>'.preg_replace('/[A-Za-z()]/','',$row['Type']).',' : false) : false,\n\t\t\t\t\t'type'=>preg_match('/text/',$row['Type']) ? 'Area' : 'Field',\n\t\t\t\t\t'required'=>$row['Null']=='NO' ? true : false,\n\t\t\t\t\t'input'=>preg_match('/^(password|pass|passwd|passcode)$/i',$row['Field']) ? 'password' : 'text',\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t\treturn $fields;\n\t}", "public function listRegisterCols(){\n\t\t$this->registerCol('name_hld', self::COL_ANCHO_DETALLE);\n\t}", "function obtenerRegistros($datos = []) {\n\t\t$this->openConnection();\n\t\t$sentencia = $this->conn->prepare($this->consulta);\n\t\tif(!empty($datos)){\n\t\t\tforeach ($datos as $key => $value) {\n\t\t\t\t$sentencia->bind_param($key, $value);\n\t\t\t}\n\t\t}\n\t\t$sentencia->execute();\n\t\t$reg = $sentencia->get_result();\n\t\t$rows = $reg->num_rows;\n\t\t$i = 0;\n\t\tdo {\n\t\t\t$this->registros[] = $reg->fetch_assoc();\n\t\t\t$i++;\n\t\t} while ($i < $rows);\n\t\t$this->closeConnection();\n\t}", "function valores($idCampo)\r\n {\r\n $mg = ZendExt_Aspect_TransactionManager::getInstance();\r\n $conn = $mg->getConnection('metadatos');\r\n $query = Doctrine_Query::create($conn);\r\n $result = $query->select('v.valor')\r\n ->from('NomValorestruc v')\r\n ->where(\"v.idcampo='$idCampo'\")\r\n //->groupBy('v.valor')\r\n ->execute()\r\n ->toArray();\r\n return $result;\r\n }", "static function findAllBy($campo, $valor, $order = \"_default_order\") {\n $CI = get_instance();\n $CI->db->where($campo, $valor);\n $CI->db->order_by($order == \"_default_order\" ? $this->_default_order() : $order);\n $classname = get_called_class();\n eval('$object = new ' . $classname . '();');\n $result = $CI->db->get($object->_tablename())->result();\n $array = array();\n foreach ($result as $value) {\n eval('$array[] = new ' . $classname . '($value);');\n }\n return $array;\n }", "function buscarPorColumna($tabla, $campo, $dato)\n{\n $dato = strtoupper($dato);\n $query = \"select * from \".$tabla.\" where upper(\".$campo.\"::character varying) like '%' || ? || '%'\";\n\n $lista = \\DB::select($query, [$dato]);\n\n return $lista;\n}", "function getCamposToQuery($nombre_tabla, $key_value, $as_tabla=\"\"/*, ...*/){\r\n $cadena=\"\";\r\n global $$nombre_tabla;//si o si para que el array se pueda usar en esta funcion\r\n if($key_value=='key'){\r\n foreach ($$nombre_tabla as $key => $value) { $cadena.=$as_tabla.$key.\",\"; }\r\n }\r\n if($key_value=='value'){\r\n foreach ($$nombre_tabla as $key => $value) { $cadena.=$as_tabla.$value.\",\"; }\r\n }\r\n $cadena=trim($cadena,\",\");\r\n return $cadena;\r\n}", "function camposBD(){\n//\t\tSELECT idFactura, nombreTienda AS tienda, fecha, numfactura AS Factura FROM tblfacturas \n//\t\tINNER JOIN tbltiendas ON tbltiendas.idtblTienda = tblfacturas.idtblTienda\n\t\t$fields = array();\n\t\t$fields[] = 'idFactura';\t\n\t\t$fields[] = 'fecha';\t\n\t\t$fields[] = 'tienda';\t\n\t\t$fields[] = 'numFactura';\t\n\t\t/*$fields[] = 'opcion';\t*/\n\t\t/*$fields[] = 'comentario';*/\t\n\t\treturn $fields;\n\t}", "function getColumnasFomTable($tabla)\n{\n $query = \"SELECT cols.ordinal_position as posicion,cols.column_name as nombre,cols.data_type\"\n .\" FROM information_schema.columns cols\"\n .\" WHERE\"\n .\" cols.table_name=?\"\n .\" and cols.column_name not in ('created_at', 'updated_at')\"\n .\" order by posicion\";\n\n $lista = \\DB::select($query, [$tabla]);\n $columnas = array();\n foreach($lista as $item){\n $columnas[$item->nombre] = str_oracion($item->nombre);\n }\n\n return $columnas;\n}", "public function catastro_registro2($attribute, $params)\n {\n\n \n $nivel_catastro1 = array(['nivela' =>$this->nivela , 'nivelb'=>$this->nivelb ]); \n $nivel_catastro = \"\".$nivel_catastro1[0]['nivela'].\"\".$nivel_catastro1[0]['nivelb'].\"\";\n\n\n $table = InmueblesUrbanosForm::find()->where(\"estado_catastro=:estado_catastro\", [\":estado_catastro\" => $this->estado_catastro])\n ->andwhere(\"municipio_catastro=:municipio_catastro\", [\":municipio_catastro\" => $this->municipio_catastro])\n ->andwhere(\"parroquia_catastro=:parroquia_catastro\", [\":parroquia_catastro\" => $this->parroquia_catastro])\n ->andwhere(\"ambito_catastro=:ambito_catastro\", [\":ambito_catastro\" => $this->ambito_catastro])\n ->andwhere(\"sector_catastro=:sector_catastro\", [\":sector_catastro\" => $this->sector_catastro])\n ->andwhere(\"manzana_catastro=:manzana_catastro\", [\":manzana_catastro\" => $this->manzana_catastro])\n ->andwhere(\"propiedad_horizontal=:propiedad_horizontal\", [\":propiedad_horizontal\" => 1])\n ->andwhere(\"parcela_catastro=:parcela_catastro\", [\":parcela_catastro\" => $this->parcela_catastro])\n ->andwhere(\"subparcela_catastro=:subparcela_catastro\", [\":subparcela_catastro\" => $this->subparcela_catastro])\n ->andwhere(\"nivel_catastro=:nivel_catastro\", [\":nivel_catastro\" => $nivel_catastro])\n ->andwhere(\"unidad_catastro=:unidad_catastro\", [\":unidad_catastro\" => $this->unidad_catastro])\n ->andWhere(\"manzana_limite=:manzana_limite\", [\":manzana_limite\" => $this->manzana_limite])\n ->andWhere(\"inactivo=:inactivo\", [\":inactivo\" => 0])\n ->asArray()->all(); \n\n\n //Si la consulta no cuenta (0) mostrar el error\n if ($table != null){\n\n $this->addError($attribute, Yii::t('backend', 'The taxpayer: '.$table[0]['id_contribuyente'].' has already assigned cadestre. Tax: '.$table[0]['id_impuesto']));//Impuesto: '.$table->id_impuesto; \n } \n }", "function getRegistrosRelacionamento($tabela_associativa, $tabela_tradicional, $campo_selecao, $campo_comparacao, $value_comparacao){\n\t$sql = \"select $campo_selecao from $tabela_associativa as ta, $tabela_tradicional as tt where ta.cd_$campo_selecao = tt.id_$campo_selecao and ta.$campo_comparacao = $value_comparacao\";\n\t$rs = mysql_query($sql);\n\t\n\t$i = 0;\n\twhile($row = mysql_fetch_array($rs)){\n\t\t$registros[$i] = $row[0];\n\t\t$i++;\n\t}\n\t\n\tif($i == 0) $registros = NULL;\n\t\n\treturn $registros;\n}", "function getFieldAndValues($params) {\n global $conn;\n\n if (!is_array($params))\n exit('Parâmetro inválido!');\n\n $id = $params['id'];\n $mod = $params['modulo'];\n $pre = $params['pre'];\n $ref = isset($params['ref']) ? $params['ref'] : 'id';\n\n if (empty($id) || empty($mod) || empty($pre))\n exit('Dados inválidos');\n\n\n /*\n *pega lista de colunas\n */\n $sql= \"SELECT * FROM \".TABLE_PREFIX.\"_{$mod} WHERE {$pre}_{$ref}=\\\"{$id}\\\"\";\n $fields = array();\n if(!$qry = $conn->query($sql))\n echo $conn->error();\n\n else {\n\n while($fld = $qry->fetch_field())\n array_push($fields, str_replace($pre.'_', null, $fld->name));\n\n $qry->close();\n }\n\n /*\n *pega valores dessas colunas\n */\n $sqlv= \"SELECT * FROM \".TABLE_PREFIX.\"_{$mod} WHERE {$pre}_{$ref}=\\\"{$id}\\\"\";\n if(!$qryv = $conn->query($sqlv))\n echo $conn->error();\n\n else {\n $valores = $qryv->fetch_array(MYSQLI_ASSOC);\n $qryv->close();\n }\n\n $res = null;\n foreach ($fields as $i=>$col)\n $res .= \"{$col} = \".$valores[$pre.'_'.$col].\";\\n\";\n\n\n return $res.\"\\n\";\n}", "private function setFields()\n\t{\t\n\t\t$sql = '';\n\t\t\n\t\tforeach (array_keys($this->data) as $key)\n\t\t{\n\t\t\t$sql .= '`' . $key . '` = ? , ';\n\t\t}\n\t\t\n\t\t$sql = rtrim($sql, ', ');\n\t\t\n\t\treturn $sql;\n\t}", "public function setFielda($campos) {\n $fields = $this->separate($campos[0]);\n\n # Get the query based in filters\n $this->checkFields($fields);\n # If exists two type fields, check table\n $this->checkTable($campos[1]);\n # Check type of data\n $this->checkType();\n}", "function listaRuta()\r\n\t{\t\r\n\t\t$query = \"SELECT * FROM \" . self::TABLA . \";\";\r\n\t\treturn parent::listaRegistros( $query );\r\n\t}", "function registerFromDatabase($arr) {\n $this->DATA[$arr['property']] = $arr['value'];\n $this->DESC[$arr['property']] = $arr['description'];\n $this->TYPE[$arr['property']] = $arr['type'];\n }", "function generar()\r\n\t{\r\n\t\tforeach($this->columnas as $ef) {\r\n\t\t \t$this->datos->tabla('columnas')->nueva_fila($ef->get_datos());\r\n\t\t}\r\n\t\tparent::generar();\r\n\t}", "function campo($tabla,$campo,$criterio,$pos,$and=''){\n\t$array=CON::getRow(\"SELECT $pos FROM $tabla WHERE $campo='$criterio' $and\");\n\treturn $array[$pos];\n}", "function obtener_registros($tabla, $campo, $id = false)\n {\n $conexion_bd = conectar_bd();\n $array = \"\";\n $consulta = 'SELECT '.$campo.' FROM '.$tabla;\n if($id){\n $consulta .= ' ORDER BY '.$campo;\n }\n $resultados = $conexion_bd->query($consulta);\n while ($row = mysqli_fetch_array($resultados, MYSQLI_BOTH)){\n $array .= $row[\"$campo\"].\",\";\n }\n mysqli_free_result($resultados);\n desconectar_bd($conexion_bd);\n $array = explode(\",\", $array);\n return $array;\n }", "private function setFields(): string\n {\n $sql = '';\n\n foreach (array_keys($this->data) as $key) {\n $sql .= '`' . $key . '` = ? , ';\n }\n return rtrim($sql, ', ');\n }", "private function buscar($sql) {\n $aRe = array();\n if ($sql) {\n $res = Funciones::gEjecutarSQL($sql);\n while($aRow = $res->fetch(PDO::FETCH_ASSOC)) {\n //$aRe[] = array($aRow['FECHA'], html_entity_decode($aRow['CODPUN'],ENT_QUOTES,'UTF-8'), html_entity_decode($aRow['PUNTO'],ENT_QUOTES,'UTF-8'), html_entity_decode($aRow['TITULO'],ENT_QUOTES,'UTF-8'), $aRow['CODAPA'], html_entity_decode($aRow['APARTADO'],ENT_QUOTES,'UTF-8'), html_entity_decode($aRow['SUBTITULO'],ENT_QUOTES,'UTF-8'), html_entity_decode($aRow['TEXTO'],ENT_QUOTES,'UTF-8'), $aRow['RELEVANCIA']);\n $aRe[] = array($aRow['FECHA'], Funciones::gDecodificar($aRow['CODPUN']), Funciones::gDecodificar($aRow['PUNTO']), Funciones::gDecodificar($aRow['TITULO']), $aRow['CODAPA'], Funciones::gDecodificar($aRow['APARTADO']), Funciones::gDecodificar($aRow['SUBTITULO']), Funciones::gDecodificar($aRow['TEXTO']), $aRow['RELEVANCIA']);\n }\n $res->closeCursor();\n }\n return $aRe;\n }", "public function getRegistros(){\n $query = $this->db->query('select c.orden_servicio,c.p1,c.p2,c.p3,c.p4,c.p5,c.p6,c.p7,r.DISTRIB,r.RAZON,r.CIUCLIEN,r.NUMSERIE,r.TIPORDEN,r.OPER1,r.ORDEN,r.CLIENTE,r.TELCASA,r.TELOFIC,r.TELCEL,r.EMAIL,r.ASESOR,r.RFCASESOR,r.DESCRIP\n from reporte r\n left join calificacion c\n on r.orden like concat(\"%\",c.orden_servicio,\"%\")');\n return $query->result();\n }", "function searchTableStatique() {\n include_once('./lib/config.php');\n $table = $_POST['table'];\n $tableStatique = Doctrine_Core::getTable($table);\n $columnNames = $tableStatique->getColumnNames();\n $req = '';\n $param = array();\n $premierPassage = true;\n foreach ($columnNames as $columnName) {\n if ($columnName != 'id') {\n $req .= $premierPassage ? $columnName.' like ? ' : 'and '.$columnName.' like ? ';\n $param[] = $_POST[$columnName].'%';\n $premierPassage = false;\n }\n }\n $search = $tableStatique->findByDql($req, $param);\n echo generateContenuTableStatiqueEntab($table, $tableStatique, $search);\n}", "protected function getParametrosWhere(){\n\t\t\t$parametros = array();\n\t\t\t$parametros[\":pkusuario\"] = $this->pkUsuario;\n\t\t\treturn $parametros;\n\t}", "function get ()\n\t{\n\t\t$ ret = array ();\n\t\t\n\t\t// Loop por todos os registros no banco de dados\n\t\tfor ( $ x = 0 ; ( $ x < $ this -> num_records () && count ( $ ret ) < $ this -> _limit ); $ x ++)\n\t\t{\t\t\t\n\t\t\t$ row = $ this -> _px -> retrieve_record ( $ x );\n\t\t\t\n\t\t\tif ( $ this -> _test ( $ row ))\n\t\t\t{\n\t\t\t\tforeach ( $ row as $ key => $ val )\n\t\t\t\t{\n\t\t\t\t\t// Encontre todos os campos que não estão na matriz selecionada\n\t\t\t\t\tif (! in_array ( $ key , $ this -> _select ) &&! empty ( $ this -> _select )) unset ( $ row [ $ key ]);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$ ret [] = $ linha ;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $ ret ;\n\t}", "public function findAll(){\n //recupere le nom de la classe et le formate\n $table = strtolower(get_class($this));\n\n //Prepare la requete\n $query = \"SELECT * FROM $table\";\n $results = $this->conn->prepare($query);\n\n //Execution requete et stockage resultats dans une variable\n $results->execute();\n $resultats = $results->fetchAll(PDO::FETCH_ASSOC);\n return $resultats;\n }", "private function setField()\n {\n $sql = '';\n $sql = rtrim($sql , ', ');\n\n foreach (array_keys($this->data) as $key){\n $sql .= '`' . $key . '` = ?, ';\n }\n\n $sql = rtrim($sql , ', ');\n return $sql;\n }", "function _reglas()\n\t{\n\t\t$reglas[] = array('field' => 'titulo', 'label' => 'lang:field_titulo', 'rules' => 'trim|required|max_length[100]');\n\t\t\n\t\t\t$reglas[] = array('field' => 'has_category', 'label' => 'lang:field_has_category', 'rules' => 'callback_has_categorys');\n\t\t\n\t\t\n\t\treturn $reglas;\n\t}", "public function getTableFields()\n {\n return array(\n array(\"Field\" => \"uid_empresa\", \"Type\" => \"int(10)\", \"Null\" => \"NO\", \"Key\" => \"PRI\", \"Default\" => \"\", \"Extra\" => \"auto_increment\"),\n array(\"Field\" => \"endeve_id\", \"Type\" => \"varchar(60)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"pago_no_obligatorio\", \"Type\" => \"int(1)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"0\", \"Extra\" => \"\"),\n array(\"Field\" => \"nombre\", \"Type\" => \"varchar(100)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"nombre_comercial\", \"Type\" => \"varchar(200)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"representante_legal\", \"Type\" => \"varchar(512)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"cif\", \"Type\" => \"varchar(20)\", \"Null\" => \"NO\", \"Key\" => \"UNI\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"pais\", \"Type\" => \"int(11)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"1\", \"Extra\" => \"\"),\n array(\"Field\" => \"uid_pais\", \"Type\" => \"int(11)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"1\", \"Extra\" => \"\"),\n array(\"Field\" => \"direccion\", \"Type\" => \"varchar(255)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"localidad\", \"Type\" => \"varchar(255)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"provincia\", \"Type\" => \"varchar(255)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"cp\", \"Type\" => \"int(8)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"accion\", \"Type\" => \"timestamp\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"CURRENT_TIMESTAMP\", \"Extra\" => \"\"),\n array(\"Field\" => \"updated\", \"Type\" => \"int(1)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"0\", \"Extra\" => \"\"),\n array(\"Field\" => \"uid_provincia\", \"Type\" => \"int(11)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"uid_municipio\", \"Type\" => \"int(11)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"convenio\", \"Type\" => \"varchar(255)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"created\", \"Type\" => \"int(11)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"aviso_caducidad_subcontratas\", \"Type\" => \"int(1)\", \"Null\" => \"YES\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"color\", \"Type\" => \"varchar(10)\", \"Null\" => \"YES\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"email\", \"Type\" => \"varchar(255)\", \"Null\" => \"YES\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"is_enterprise\", \"Type\" => \"int(1)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"0\", \"Extra\" => \"\"),\n array(\"Field\" => \"logo\", \"Type\" => \"tinytext\", \"Null\" => \"YES\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"skin\", \"Type\" => \"varchar(300)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"dokify\", \"Extra\" => \"\"),\n array(\"Field\" => \"lang\", \"Type\" => \"varchar(2)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"es\", \"Extra\" => \"\"),\n array(\"Field\" => \"activo_corporacion\", \"Type\" => \"int(1)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"0\", \"Extra\" => \"\"),\n array(\"Field\" => \"pago_aplicacion\", \"Type\" => \"int(1)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"0\", \"Extra\" => \"\"),\n array(\"Field\" => \"receive_summary\", \"Type\" => \"int(1)\", \"Null\" => \"YES\", \"Key\" => \"\", \"Default\" => \"1\", \"Extra\" => \"\"),\n array(\"Field\" => \"date_last_summary\", \"Type\" => \"int(16)\", \"Null\" => \"YES\", \"Key\" => \"\", \"Default\" => \"0\", \"Extra\" => \"\"),\n array(\"Field\" => \"license\", \"Type\" => \"int(1)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"is_validation_partner\", \"Type\" => \"int(1)\", \"Null\" => \"YES\", \"Key\" => \"\", \"Default\" => \"0\", \"Extra\" => \"\"),\n array(\"Field\" => \"partner_validation_price\", \"Type\" => \"float\", \"Null\" => \"YES\", \"Key\" => \"\", \"Default\" => \"0\", \"Extra\" => \"\"),\n array(\"Field\" => \"partner_validation_price_urgent\", \"Type\" => \"float\", \"Null\" => \"YES\", \"Key\" => \"\", \"Default\" => \"0\", \"Extra\" => \"\"),\n array(\"Field\" => \"validation_languages\", \"Type\" => \"varchar(250)\", \"Null\" => \"YES\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"cost\", \"Type\" => \"float\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"0\", \"Extra\" => \"\"),\n array(\"Field\" => \"pay_for_contracts\", \"Type\" => \"int(1)\", \"Null\" => \"YES\", \"Key\" => \"\", \"Default\" => \"0\", \"Extra\" => \"\"),\n array(\"Field\" => \"invoice_periodicity\", \"Type\" => \"int(1)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"1\", \"Extra\" => \"\"),\n array(\"Field\" => \"req_attached\", \"Type\" => \"int(9)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"req_validated\", \"Type\" => \"int(9)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"req_rejected\", \"Type\" => \"int(9)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"req_expired\", \"Type\" => \"int(9)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"is_transfer_pending\", \"Type\" => \"int(1)\", \"Null\" => \"YES\", \"Key\" => \"\", \"Default\" => \"0\", \"Extra\" => \"\"),\n array(\"Field\" => \"kind\", \"Type\" => \"int(1)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"0\", \"Extra\" => \"\"),\n array(\"Field\" => \"min_app_version\", \"Type\" => \"int(1)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"2\", \"Extra\" => \"\"),\n array(\"Field\" => \"prevention_service\", \"Type\" => \"varchar(20)\", \"Null\" => \"YES\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"is_idle\", \"Type\" => \"int(1)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"0\", \"Extra\" => \"\"),\n array(\"Field\" => \"corporation\", \"Type\" => \"int(11)\", \"Null\" => \"YES\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"uid_referrer\", \"Type\" => \"int(11)\", \"Null\" => \"YES\", \"Key\" => \"MUL\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"requirement_count\", \"Type\" => \"int(11)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"0\", \"Extra\" => \"\"),\n array(\"Field\" => \"invoice_count\", \"Type\" => \"int(11)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"0\", \"Extra\" => \"\"),\n array(\"Field\" => \"is_referrer\", \"Type\" => \"int(1)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"0\", \"Extra\" => \"\"),\n array(\"Field\" => \"uid_manager\", \"Type\" => \"int(11)\", \"Null\" => \"YES\", \"Key\" => \"MUL\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"is_self_controlled\", \"Type\" => \"int(1)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"1\", \"Extra\" => \"\"),\n array(\"Field\" => \"has_custom_login\", \"Type\" => \"int(1)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"0\", \"Extra\" => \"\"),\n array(\"Field\" => \"header_img\", \"Type\" => \"tinytext\", \"Null\" => \"YES\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"), array(\"Field\" => \"uid_manager\", \"Type\" => \"int(11)\", \"Null\" => \"YES\", \"Key\" => \"MUL\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"uid_referrer\", \"Type\" => \"int(11)\", \"Null\" => \"YES\", \"Key\" => \"MUL\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"requirements_origin_company_cloneables\", \"Type\" => \"int(1)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"0\", \"Extra\" => \"\"),\n );\n }", "protected function alterar(){\n header(\"Content-type: text/html;charset=utf-8\");\n $sql = \"SHOW FULL FIELDS FROM \" . $this->table;\n $execute = conexao::toConnect()->executeS($sql);\n $sets = \"\";\n $id_registro = '';\n $contador = \"\";\n $count = 1;\n foreach ($execute as $contar) {\n if ($contar->Key != 'PRI') {\n $atributos_field = $contar->Field;\n $select_p = substr(strtoupper($atributos_field), 0, 1);\n $select_t = substr($atributos_field, 1);\n $get = 'get' . $select_p . $select_t;\n if ($this->$get() != null) {\n $contador = $contador + 1;\n }\n }\n }\n foreach ($execute as $key => $attr){\n if ($attr->Key != 'PRI') {\n $atributos_field = $attr->Field;\n $select_p = substr(strtoupper($atributos_field), 0, 1);\n $select_t = substr($atributos_field, 1);\n $get = 'get' . $select_p . $select_t;\n if ($this->$get() != null) {\n if ($count != $contador) {\n $sets .= $attr->Field . \" = '\" . $this->$get() . \"',\";\n } else {\n $sets .= $attr->Field . \" = '\" . $this->$get().\"'\";\n }\n $count = $count + 1;\n }\n }else{\n $id_registro = $attr->Field;\n }\n }\n $update = \"UPDATE \".$this->table.\" SET \".$sets.\" WHERE \".$id_registro.\" = \".$this->getIdTable();\n\n $execute_into = conexao::toConnect()->executeQuery($update);\n if (count($execute_into) > 0) {\n return $execute_into;\n }else{\n return false;\n }\n }", "private function values($appendPrimaryKey = true) {\r\n\t\t$c = get_called_class();\r\n\r\n\t\t$return = array();\r\n\t\tforeach ($c::getRequirements() as $column => $details) {\r\n\t\t\tif($c::$primaryKey != $column) {\r\n\t\t\t\t$property = substr($column,1,strlen($column)-2);\r\n\t\t\t\tif(in_array($property, array('creationDate','updateDate'))) {\r\n\t\t\t\t\t$return[] = $this->$property->format('Y-m-d H:i:s');\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$return[] = $this->$property;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tif($appendPrimaryKey) {\r\n\t\t\t$return[] = $this->{substr($c::$primaryKey,1,strlen($c::$primaryKey)-2)}; }\r\n\t\treturn $return;\r\n\t}", "function getAllDataValues() {\n\t\t$conn = Doctrine_Manager::connection(); \n\t\t$resultvalues = $conn->fetchAll(\"SELECT * FROM lookuptypevalue WHERE lookuptypeid = '\".$this->getID().\"' order by lookupvaluedescription asc \");\n\t\treturn $resultvalues;\t\n\t}", "private function cargar_parametros_familias(){\n $sql = \"SELECT id,codigo,descripcion FROM mos_requisitos_familias ORDER BY orden\";\n $columnas_fam = $this->dbl->query($sql, array());\n return $columnas_fam;\n }", "function field_data()\r\n\t{\r\n\t\t$retval = array();\r\n /*\r\n echo \"<pre>\";\r\n var_dump($this->result_id);\r\n var_dump($this->pdo_results);\r\n echo \"</pre>\";\r\n */\r\n $table_info = $this->pdo_results;\r\n assert(is_array($table_info));\r\n foreach ($table_info as $row_info) {\r\n $F = new stdClass();\r\n $F->name = $row_info['name'];\r\n $F->type = $row_info['type'];\r\n $F->default = $row_info['dflt_value'];\r\n $F->max_length = 0;\r\n $F->primary_key = $row_info['pk'];\r\n \r\n $retval[] = $F;\r\n }\r\n\r\n return $retval;\r\n }", "function getRegistros($sql) {\n\t\t$res = $this->ejecutar($sql);\n\t\t$arreglo = array();\n\t\twhile ($registro = mysqli_fetch_array($res,MYSQL_ASSOC)) {\n\t\t\t$arreglo[]=$registro;\t\t\t\n\t\t}\n\t\treturn $arreglo;\n\t}", "function parseFieldsfromArray($reg) {\n $ret = parent::parseFieldsFromArray($reg);\n $this->desSenhaAnt = $this->desSenha;\n\n return $ret;\n }", "function load_db_values($row)\n\t{\n\t\tforeach($row as $prop => $val)\n\t\t\t$this->{$prop} = $val;\n\t}", "public function get_datos_empresa($empresa){\n\t$conectar= parent::conexion();\n\tparent::set_names();\n\t$sql=\"select *from empresas where nombre=?\";\n\t$sql=$conectar->prepare($sql);\n\t$sql->bindValue(1,$empresa);\n\t$sql->execute();\n\treturn $resultado= $sql->fetchAll(PDO::FETCH_ASSOC);\n}", "function allinea_db(){\n\t\tif ($this->attributes['BYTB']!='' ) $this->fields_value_bytb($this->attributes['BYTB']);\n\t\tif ($this->attributes['TB']!='no'){\n\t\t\t$i=0;\n\t\t\tforeach ($this->values as $key => $val){\n\t\t\t\t$ret[$i]=\"{$key} NUMBER\";\n\t\t\t\t$i++;\n\t\t\t\t$ret[$i]=\"D_{$key} VARCHAR2(200 CHAR)\";\n\t\t\t\t$i++;\n\t\t\t}\n\t\t\treturn $ret;\n\t\t}\n\t\telse return ;\n\t}", "public function createDataRow()\n\t{\n\t\t$row = array() ;\n\t\tforeach( $this->values as $field=>$value )\n\t\t{\n\t\t\t$row[$field] = $this->$field ;\n\t\t}\n\t\treturn $row ;\n\t}", "public function findAll() {\r\n$sql = \"SELECT * FROM $this->tabela\";\r\n$stm = DB::prepare($sql);\r\n$stm->execute();\r\nreturn $stm->fetchAll();\r\n}", "private static function fields()\n {\n $fields = static::$fields;\n $primary_key = static::$primary_key;\n\n $rows = [$primary_key, ...$fields];\n\n if(!count($rows)) {\n return ['*'];\n }\n\n return $rows;\n }", "private function _getMultilangualFields()\n {\n $aRet = array();\n\n $aData = oxDb::getInstance()->getTableDescription($this->_sTableName);\n\n foreach ($aData as $key => $oADODBField) {\n $iLang = substr($oADODBField->name, strlen($oADODBField->name) - 1, 1);\n if (is_numeric($iLang) && substr($oADODBField->name, strlen($oADODBField->name) - 2, 1) == '_') {\n // multilangual field\n $sMainFld = str_replace('_' . $iLang, \"\", $oADODBField->name);\n $aRet[$iLang][$sMainFld] = $oADODBField->name . ' as ' . $sMainFld;\n }\n }\n\n return $aRet;\n }", "function campo($tabla,$campo,$criterio,$pos,$and=''){\n\t$array=$GLOBALS['cn']->queryRow('SELECT '.$pos.' FROM '.$tabla.' WHERE '.$campo.'=\"'.$criterio.'\" '.$and);\n\treturn $array[$pos];\n}", "private function getCampos()\n {\n \t$fields \t= [];\n \tif ( !empty( $this->parametros['campos'] ) )\n \t{\n if ( is_string($this->parametros['campos']) )\n {\n $fields = explode(',', $this->parametros['campos'] );\n }\n \t} else\n \t{\n \t\t$tabela = $this->parametros['tabela'];\n \t\t$fields = [$this->Controller->$tabela->primaryKey(), $this->Controller->$tabela->displayField() ];\n \t}\n\n \treturn $fields;\n }", "public function getRegistros(){\n $sql = \"SELECT * FROM \".$this->getTable().\" WHERE \".$this->getTableId().\" = \".$this->getIdTable();\n $execute = conexao::toConnect()->executeS($sql);\n if (count($execute) > 0) {\n return $execute;\n }else{\n return false;\n }\n }", "public function selectAllRegiuniData(){\n $sql = \"SELECT * FROM regiune ORDER BY id DESC\";\n $stmt = $this->db->pdo->prepare($sql);\n $stmt->execute();\n return $stmt->fetchAll(PDO::FETCH_OBJ);\n }", "public function residue () :array\n {\n return [\n 'status' => function ($query, $value) {\n if ($value == ''){\n return $query;\n }else{\n return $query->where('status', $value);\n }\n \n },\n 'location' => function ($query, $value) {\n if ($value == ''){\n return $query;\n }else{\n return $query->where('gate', 'LIKE', \"%{$value}%\");\n }\n \n },\n 'plate' => 'relationship:plate,license_plate'\n ];\n }", "public function getBindValues();", "public function serialize() {\n\n // pega o mapeamentp\n $mapping = $this->mapping;\n\n // verifica se existe\n if ( !$mapping ) return;\n\n // seta os dados\n $data = [];\n foreach( $mapping as $atributo => $colunaTabela ) {\n $data[$colunaTabela] = $this->$atributo;\n }\n\n // volta os dados\n return $data;\n }", "function retornaAtributos($tabelaProcura){\n # abre arquivo xml para navegacao\n $aBanco = simplexml_load_string($this->xml);\n $aRetorno = array();\n # varre a estrutura das tabelas\n foreach($aBanco as $aTabela){\n # recupera o nome da tabela e gera o nome da classe\n $nomeTabela = (string)$aTabela['NOME'];\n if($nomeTabela != $tabelaProcura) continue;\n # varre a estrutura dos campos da tabela em questao\n foreach($aTabela as $oCampo){\n # recupera valores a serem substituidos no modelo\n $sFKTabela = (string)$oCampo->FKTABELA;\n if($sFKTabela != ''){\n $nomeClasse = ucfirst($this->getCamelMode($sFKTabela));\n $aRetorno[] = \"\\$o\".$nomeClasse;\n }\n else{\n $aRetorno[] = \"\\$\".(string)$oCampo->NOME;\n }\n }\n break;\n }\n //print_r($aRetorno);\n return $aRetorno;\t\n }", "abstract public function searchFields(): array;", "function describir_campos($tabla_x,$bd_x=\"\"){\r\n\t\tif($bd_x!=\"\"){\r\n\t\t\t$bd = $bd_x.\".\";\r\n\t\t}#end if\r\n\t\t$query_x = \"SHOW FIELDS FROM \".$bd.$tabla_x;\r\n\t\t$result = mysqli_query($this->conexion,$query_x);\r\n\t\tif($result){\r\n\t\t\t$n_filas = mysqli_num_rows($result);\r\n\t\t\t$this->serial[$tabla_x] = \"\";\r\n\t\t\tfor ($i=0;$i<$n_filas;$i++){\r\n\t\t\t\t$row_x = mysqli_fetch_array($result);\r\n\t\t\t\tif($i==0){\r\n\t\t\t\t\t$this->campo_clave = $row_x[0];\r\n\t\t\t\t}#end if\r\n\t\t\t\t$this->nombre[$i] = $row_x[0];\r\n\t\t\t\t$this->tipo[$i] = $row_x[1];\r\n\t\t\t\tif($row_x[\"Key\"] == \"PRI\"){\r\n\t\t\t\t\t$this->campo_clave = $row_x[0];\r\n\t\t\t\t}#end if\r\n\t\t\t}#end next i\r\n\t\t}#end if result\r\n\t}", "function createFieldString($tablas, $campos, $valores){\n\t\tglobal $formatedFields, $formatedValueConstrains,$misCampos;\n\t\t$i = 0;\n\n\t\tforeach ($valores as $key => $value) {\n\t\t\tif(empty($value)){\n\t\t\t\t$formatedFields[] = $tablas[$i].\".\".$campos[$i];\n\t\t\t\t$misCampos[] = $campos[$i];\n\t\t\t}\n\t\t\telse{\n\t\t\t\t$formatedValueConstrains[] = $tablas[$i].\".\".$campos[$i].\"='\".$valores[$i].\"'\";\n\t\t\t}\n\t\t\t$i++;\n\t\t}\n\n\t}", "function createFieldString($tablas, $campos, $valores){\n\t\tglobal $formatedFields, $formatedValueConstrains,$misCampos;\n\t\t$i = 0;\n\n\t\tforeach ($valores as $key => $value) {\n\t\t\tif(empty($value)){\n\t\t\t\t$formatedFields[] = $tablas[$i].\".\".$campos[$i];\n\t\t\t\t$misCampos[] = $campos[$i];\n\t\t\t}\n\t\t\telse{\n\t\t\t\t$formatedValueConstrains[] = $tablas[$i].\".\".$campos[$i].\"='\".$valores[$i].\"'\";\n\t\t\t}\n\t\t\t$i++;\n\t\t}\n\n\t}", "function getInstancia2($tabla,$campo=NULL){\r\n\t\t//DB_DataObject::debugLevel(5);\r\n\t\t//Crea una nueva instancia de $tabla a partir de DataObject\r\n\t\t$objDBO = DB_DataObject::Factory($tabla);\r\n\t\tif(is_array($campo)){\r\n\t\t\tforeach($campo as $key => $value){\r\n\t\t\t\t$objDBO->$key = $value;\r\n\t\t\t}\r\n\t\t}\r\n\t\t$contador = 0;\r\n\t\t$objDBO->find();\r\n\t\t$columna = $objDBO->table();\r\n\t\twhile ($objDBO->fetch()) {\r\n\t\t\tforeach ($columna as $key => $value) {\r\n\t\t\t\t$ret[$contador]->$key = cambiaParaEnvio($objDBO->$key);\r\n\t\t\t}\r\n\t\t\t$contador++;\r\n\t\t}\r\n\t\t\r\n\t\t//Libera el objeto DBO\r\n\t\t$objDBO->free();\r\n\r\n\t\treturn $ret;\t\r\n\t}", "protected function setFilterArray() {\n $primary_keys = getPrimaryKeys($this->table_name);\n foreach ($primary_keys as $pk) {\n if (isset($_GET[$pk])) {\n $this->filter[$pk] = Mysql::SQLValue($_GET[$pk]);\n }\n }\n }", "function fields($data) {\n return '`' . implode('`, `', array_keys($data)) . '`';\n}", "function object_array($object){\r\n\t$table_name = $object->gettablename();\r\n\t$arr_column = $object->getcolumnnames();\r\n\t$arr_object = array();\r\n\t$arr = $object->searchbyobject(NULL, NULL, TRUE);\r\n\r\n\tswitch($table_name){\r\n\t\tcase \"itpedido_conf\": $table_name = \"itpedidoconf\";\r\n\t\t\tbreak;\r\n\t}\r\n\r\n\tif(is_array($arr)){\r\n\t\tforeach($arr as $row){\r\n\t\t\t$ob = objectbytable($table_name, NULL, $object->getconnection());\r\n\t\t\tforeach($arr_column as $column){\r\n\t\t\t\t@call_user_func(array($ob, \"set\".$column), $row[$column]);\r\n\t\t\t}\r\n\t\t\t$arr_object[] = $ob;\r\n\t\t}\r\n\t}\r\n\treturn $arr_object;\r\n}", "public function inicializacionBusqueda()\r\n {\r\n $dataEmpCli = array();\r\n $filterEmpCli = array();\r\n\r\n try {\r\n\r\n foreach ($this->getEmpresaTable()->getEmpresaProvReport() as $empresa) {\r\n $dataEmpCli[$empresa->id] = $empresa->NombreComercial.' - '.$empresa->RazonSocial.' - '.$empresa->Ruc;\r\n $filterEmpCli[$empresa->id] = [$empresa->id];\r\n }\r\n\r\n } catch (\\Exception $ex) {\r\n $dataEmpCli = array();\r\n }\r\n\r\n $formulario['prov'] = $dataEmpCli;\r\n $filtro['prov'] = array_keys($filterEmpCli);\r\n return array($formulario, $filtro);\r\n }", "function add_custom_fields_columns ( $columns ) {\n return array_merge ( $columns, array (\n 'ingredienti' => __ ( 'Ingredienti' ),\n 'prezzo' => __ ( 'Prezzo' )\n ) );\n}", "function executaRelatorio() {\n\n try {\n $form_values = $this->getValues();\n $matriculas = $form_values['matricula'];\n $matriculas = explode(\"\\n\", $matriculas);\n $matriculas = array_map('trim', $matriculas);\n $array = array(array());\n foreach ($matriculas as $matricula) {\n $aluno = TbalunoPeer::retrieveByPK($matricula);\n $result = array();\n $result['periodo'] = TbperiodoPeer::retrieveByPK($form_values['periodo']);\n $result['idperiodo'] = $form_values['periodo'];\n $result['aluno'] = $aluno;\n $result['show_fields'] = $form_values['show_fields'];\n $result['data_fields'] = $this->getModelFields();\n $result['list'] = TbdisciplinaPeer::retrieveByCodDisciplina($aluno->getDisciplinasACursar($form_values['periodo']));\n $result['list2'] = TbdisciplinaPeer::retrieveByCodDisciplina($aluno->getDisciplinasIntbfila($form_values['periodo']));\n $array['array'][] = $result;\n }\n } catch (PropelException $exc) {\n#throw new Exception( utf8_decode($exc->getMessage()).\" SQL: \".$criteria->toString() );\n throw new Exception(utf8_decode($exc->getMessage()));\n }\n\n return $array;\n }", "public function BuscarValor($tabla,$campo,$condicion){\n $rows= null;\n $modelo= new ConexBD();\n $conexion= $modelo->get_conexion();\n $sql=\"SELECT $campo FROM $tabla WHERE $condicion\";\n $stm=$conexion->prepare($sql);\n $stm->execute();\n while($result = $stm->fetch())\n {\n $rows[]=$result;\n }\n return $rows;\n }", "function foreachResult($result,$field,$print){\n $data = array();\n foreach($result->result() as $a){\n for($b = 0; $b<count($field);$b++){ /*untuk ngeloop semua variable yang dinginkan*/\n $string = $field[$b];\n $data[$print[$b]] = $a->$string; /* $data[0][\"nama_mahasiswa\"] = \"joni\"; $data[0][\"jurusan_mahasiswa\"] = \"sistem informasi */\n }\n }\n return $data;\n }", "function table()\n {\n return array('pattern' => DB_DATAOBJECT_STR + DB_DATAOBJECT_NOTNULL,\n 'created' => DB_DATAOBJECT_STR + DB_DATAOBJECT_DATE + DB_DATAOBJECT_TIME + DB_DATAOBJECT_NOTNULL);\n }", "public function makeColumns(){\n $hijosDetalle=$this->\n getReportedetalle()->\n where(['and', \"esdetalle='1'\", \"visiblecampo='1'\"])->\n orderBy('orden')->all();\n //echo count( $hijosDetalle);die();\n $columns=[];\n foreach($hijosDetalle as $fila){\n $columns[]=[\n 'attribute'=>$fila->nombre_campo,\n 'label'=>$fila->aliascampo,\n 'format'=>'raw',\n 'options'=>['width'=>\n $this->sizePercentCampo($fila->nombre_campo).'%'],\n ];\n \n \n }\n return $columns;\n \n }", "static function __getAlumnos($arr_obj){\n self::$db = new PDO('mysql:host=localhost;dbname=Autoescuela', 'root', 'root');\n $sql = \"SELECT * FROM alumno WHERE 1 = 1\";\n if(isset($arr_obj['id'])){\n $sql.=\" and id = \".$arr_obj['id'];\n }\n if(isset($arr_obj['dni'])){\n $sql.=\" and dni = \".$arr_obj['dni'];\n }\n if(isset($arr_obj['nombre'])){\n $sql.=\" and nombre LIKE '%\".$arr_obj['nombre'].\"%'\";\n }\n if(isset($arr_obj['apellidos'])){\n $sql.=\" and apellidos LIKE '%\".$arr_obj['apellidos'].\"%'\";\n }\n if(isset($arr_obj['fecha_nac'])){\n $sql.=\" and fecha_nac = '\".$arr_obj['fecha_nac'].\"'\";\n }\n if(isset($arr_obj['telefono'])){\n $sql.=\" and telefono = \".$arr_obj['telefono'];\n }\n if(isset($arr_obj['mail'])){\n $sql.=\" and mail LIKE '%\".$arr_obj['mail'].\"%'\";\n }\n if(isset($arr_obj['id_profesor'])){\n $sql.=\" and id_profesor = \".$arr_obj['id_profesor'];\n }\n $array_return = array(); //Creamos el array que vamos a devolver\n $con = self::$db->query($sql); //Ejecutamos la query y guardamos lo que nos devuelve en $con\n foreach($con as $row){ \n $newAlu = new Alumno($row['dni'], $row['nombre'], $row['apellidos'], $row['fecha_nac'], $row['telefono'], $row['mail'], $row['id'], $row['id_profesor']);\n //$returnAlu->mostrar();\n $array_return[] = $newAlu;\n }\n return $array_return;\n }", "public static function buscar($dato){\n $dato= \"%\".$dato.\"%\";\n $db = DWESBaseDatos::obtenerInstancia();\n\n $db -> ejecuta(\"SELECT *\n FROM usuario m WHERE m.nombre like ?\", $dato);\n\n\n return array_map(function($fila){\n return new Usuarios($fila['id'], $fila['email'], $fila['pass'],$fila['nombre'], $fila['foto_perfil'], $fila['localidad'], $fila['cp'], $fila['telefono']);\n },$db -> obtenDatos());\n\n\n }", "public function getPatternedFields(): array;", "protected function fijarAtributos(){\n \n return array(\"cod_categoria\",\"nombre\");\n \n }", "protected function attributes() {\n\t $attributes = array();\n\t foreach(static::$table_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 }", "private function _consultar() {\n $where = \"\";\n if(!empty($this->_idDato)){\n $where = \"AND b.id_valor = $this->_idDato \";\n }\n if(!empty($this->_valor)){\n if(is_array($this->_valor)){\n $aux = each($this->_valor);\n $where = \"AND b.valor {$aux['key']} '{$aux['value']}' \";\n }else{\n $where = \"AND b.valor = '$this->_valor' \";\n }\n \n }\n $query = \"SELECT a.nom_tabla,b.* FROM \nmt_tablas a,\nmt_contenidos b\nWHERE a.id_tablas = {$this->_idTabla}\nAND a.estado = 1 $where\nAND a.id_tablas = b.id_tabla\nAND b.estado = 1\";\n \n if(is_array($this->_orden) && count($this->_orden) == 2){\n $query .= (\" ORDER BY \" . ($this->_orden[0] == 1 ? \"id_valor \" : \"valor \") . $this->_orden[1] );\n }\n $con = ConexionSQL::getInstance();\n $id = $con->consultar($query);\n if($res = $con->obenerFila($id)){\n $R = array();\n do{\n $aux = array();\n foreach($res as $key => $valor){\n if(!is_numeric($key)){\n $aux[$key] = $valor;\n }\n }\n $R[] = $aux;\n }while($res = $con->obenerFila($id));\n return $R;\n }\n return false;\n }", "function get_ArregloAlumnos(){\n\t\t$query_2 = $this->db->query('SELECT rut, id_clase FROM datos_alumnos');\n\t\t\n\t\tif ($query_2->num_rows() > 0){\n\t\t\t//se guarda los datos en arreglo bidimensional\n\t\t\tforeach($query_2->result() as $row)\n\t\t\t$arrDatos_2[htmlspecialchars($row->rut, ENT_QUOTES)]=htmlspecialchars($row->rut,ENT_QUOTES);\n\t\t\t$query_2->free_result();\n\t\t\treturn $arrDatos_2;\n\t\t}\t\n\t\t\n\t}", "public function creataTypeArray()\n\t{\n\t\t$this->db->creataTypeArray();\n\t}", "public function filtrarCampos()\n {\n $array_filter = array();\n\n foreach ($this->validations as $propriedade => $tipo) {\n\n if ($this->data[$propriedade] === NULL) {\n throw new \\Exception('O valor nao pode ser Nulo');\n }\n\n // valor do input\n $value = $this->data[$propriedade];\n\n $valueTypeOf = gettype($value);\n\n // anti-hacker\n $value = trim($value); # Limpar espacos\n $value = stripslashes($value); # remove barras invertidas\n $value = htmlspecialchars($value); # converte caracteres especiais para realidade HTML -> <a href='test'>Test</a> -> &lt;a href=&#039;test&#039;&gt;Test&lt;/a&gt;\n\n // valor do tipo, usando como metodo existente da classe Sanitize\n $method = $tipo;\n\n $validator = call_user_func(array('Inovuerj\\ADO\\TValidator', $method), $value);\n\n // se nao passar no Validator, retorno erro\n if (!$validator && $method != 'texto') {\n $msg = \"O campo {$propriedade} nao foi validado\";\n throw new \\Exception($msg);\n } else {\n // injetando valor no $this->$propriedade\n $this->{$propriedade} = call_user_func(array('Inovuerj\\ADO\\TSanitizer', $method), $value);\n }\n\n// Util::mostrar($propriedade .' - Tipo: '.$tipo, __LINE__);\n// Util::mostrar($this->{$propriedade},__LINE__);\n\n }\n\n\n # filtrado\n return $this;\n\n }", "private function buscarPersonas($buscar) {\n $aBus = array();\n if($buscar) {\n $dato = Funciones::gCodificar($buscar);\n $rRes = Funciones::gEjecutarSQL(\"SELECT CODPERS,APELLIDOS,NOMBRE FROM PERSONAS WHERE STRCMP(CODPERS,'$dato')=0 OR APELLIDOS LIKE '%$dato%' OR NOMBRE LIKE '%$dato%' ORDER BY APELLIDOS,NOMBRE,CODPERS\");\n while($aRow = $rRes->fetch(PDO::FETCH_ASSOC)) {\n $aBus[$aRow['CODPERS']] = array($aRow['APELLIDOS'],$aRow['NOMBRE']);\n }\n $rRes->closeCursor(); \n }\n return $aBus;\n }", "public function hydrate($donnees){\n foreach($donnees as $key => $value){\n //on delcare la varible method\n $method = 'set'.ucfirst($key);\n//on verifie si la methode existe\n if(method_exists($this,$method)){\n $this->$method($value);\n }\n }\n\n}", "public function getAtributos() {\r\n\t\t\t\r\n\t\t\t$atributos = array();\r\n\t\t\t$atributos[0] = \"nombreUnidad\";\r\n\t\t\t$atributos[1] = \"telefono\";\r\n\t\t\treturn $atributos;\r\n\t\t}", "function cextras_objets_valides(){\r\n\t$objets = array();\r\n\tforeach (array('article','auteur','breve','groupes_mot','mot','rubrique','site') as $objet) {\r\n\t\t$objets[$objet] = array(\r\n\t\t\t'table' => table_objet_sql($objet), \r\n\t\t\t'nom' => _T('cextras:table_'.$objet),\r\n\t\t);\r\n\t}\r\n\treturn $objets;\r\n}", "function __construct($row, AttributeGroup $grp){\n\n\t\t\n\t\t$this->Group = $grp;\n\t\t\n\t\tif($grp->UseRealTable){\n\t\t\t$this->fieldName = $row['name'];\n\t\t\t$this->tableName = $grp->RealTableName;\n\t\t\t$this->AsTableName = $grp->RealTableName;\n\t\t} else {\n\t\t\t$this->fieldName = 'value';\n\t\t\t$this->tableName = $GLOBALS['attribute_type_tables'][$row['type']];\n\t\t\t$this->AsTableName = 'tbl'.$grp->Id.'_'.$row['id'];\n\t\t}\n\t\tif($row['php_data']){\n\t\t\t$row['php_data']=unserialize($row['php_data']);\n\t\t}\n\t\t\n\t\t$this->Id = $row['id'];\n\t\t$this->Name = $row['name'];\n\t\t$this->Type = $row['type'];\n\t\t$this->LabelPrefix = $row['prefix'];\n\t\t$this->LabelSuffix = $row['suffix'];\n\t\t$this->PHPData = $row['php_data'];\n\t\t\n\t\t\n\t\t//$row['value'] = '';\n\t\t//$row['orig_value'] = '';\n\t\t/*\n\t\tIMPORTANT FEAttribute extends ArrayObject\n\t\t\nMnogo neiasen bug. Kogato dobavih v getBeValue na ManagedImages da vrashta i $this[\"value\"][\"sizes\"]=$this->ImageSizes;\nVsichko se pochupi, vsichki FEAttr instancii poluciha i te taia stoinost. Tova e pri situacia che predi tova ne im e izvikano izrichno $this['value'] = neshtosi.\nNe se izvikva, ako ne sme zaredili danni prez loadData.\nIzglezda niakade copy on write mehanizma se pochupva pri naslediavane na ArrayObject\n\t\t\n\t\t*/\n\t\t\n//\t\tparent::__construct($row);\n\t}", "static public function mdlIngresarFfiscales($tabla, $datos){\n\n\t\t$stmt = Conexion::conectar()->prepare(\"INSERT INTO $tabla(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\toperador\n , pcontacto\n , area\n , cargo\n , mail\n , telofi\n , ext\n , telextra\n , uuid\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t, pcontacto2\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t, area2\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t, cargo2\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t, mail2\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t, telofi2\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t, ext2\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t, telextra2\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t, perfil\n\n )\n VALUES (\n :operador\n , :pcontacto\n , :area\n , :cargo\n , :mail\n , :telofi\n , :ext\n , :telextra\n , :uuid\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t, :pcontacto2\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t, :area2\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t, :cargo2\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t, :mail2\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t, :telofi2\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t, :ext2\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t, :telextra2\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t, :perfil\n\n\n )\"\n );\n\n\t\t$stmt->bindParam(\":uuid\", $datos[\"uuid\"], PDO::PARAM_STR);\n\t\t$stmt->bindParam(\":operador\", $datos[\"operador\"], PDO::PARAM_STR);\n\t\t$stmt->bindParam(\":pcontacto\", $datos[\"pcontacto\"], PDO::PARAM_STR);\n\t\t$stmt->bindParam(\":area\", $datos[\"area\"], PDO::PARAM_STR);\n\t\t$stmt->bindParam(\":cargo\", $datos[\"cargo\"], PDO::PARAM_STR);\n\t\t$stmt->bindParam(\":mail\", $datos[\"mail\"], PDO::PARAM_STR);\n\t\t$stmt->bindParam(\":telofi\", $datos[\"mail\"], PDO::PARAM_STR);\n $stmt->bindParam(\":ext\", $datos[\"ext\"], PDO::PARAM_STR);\n $stmt->bindParam(\":telextra\", $datos[\"telextra\"], PDO::PARAM_STR);\n\t\t$stmt->bindParam(\":pcontacto2\", $datos[\"pcontacto2\"], PDO::PARAM_STR);\n\t\t$stmt->bindParam(\":area2\", $datos[\"area2\"], PDO::PARAM_STR);\n\t\t$stmt->bindParam(\":cargo2\", $datos[\"cargo2\"], PDO::PARAM_STR);\n\t\t$stmt->bindParam(\":mail2\", $datos[\"mail2\"], PDO::PARAM_STR);\n\t\t$stmt->bindParam(\":telofi2\", $datos[\"telofi2\"], PDO::PARAM_STR);\n\t\t$stmt->bindParam(\":ext2\", $datos[\"ext2\"], PDO::PARAM_STR);\n\t\t$stmt->bindParam(\":telextra2\", $datos[\"telextra2\"], PDO::PARAM_STR);\n\t\t$stmt->bindParam(\":perfil\", $datos[\"perfil\"], PDO::PARAM_STR);\n\n\n\n\n\t\tif($stmt->execute()){\n\n\t\t\treturn \"La información se ha guardado exitosamente\";\n\n\t\t}else{\n\n\t\t\t$arr = $stmt ->errorInfo();\n\t\t\t$arr[3]=\"ERROR\";\n\t\t\treturn $arr[2];\n\n\t\t}\n\n\t\t$stmt->close();\n\n\t\t$stmt = null;\n\n\t}", "public function buscar_seccion($array_datos){\n // Funcion que devuelve las secciones, resultado de la busqueda en campos con un determinado texto\n // $array_datos --> array con el texto de los campos de secciones por los que se va a buscar\n // Estos textos corresponden a los campos: nombre\n $array_campos = array ('nombre');\n $sql=\"\";\n $contador=0;\n \n for ($i = 0; $i < sizeof($array_campos); $i++){\n if (!empty($array_datos[$i])) {\n $contador ++;\n if ($contador == 1) {\n $sql = \"SELECT * FROM secciones WHERE \";\n } else {$sql.=\" AND \";}\n $sql.= \"$array_campos[$i] LIKE '%$array_datos[$i]%'\"; \n }\n }\n if ($contador>0) {$sql.=\" ORDER BY nombre\";}\n if (($sql)) {\n $resultado = $this -> db -> query($sql);\n return $resultado -> result_array(); // Obtener el array \n } else return array();\n }", "function filterBy_S_A_F_E_C($SEDE, $AREA, $FACULTAD, $ESCUELA, $CARRERA,$TABLE_I)\n{\n global $mysqli;\n $TINS = $TABLE_I;\n $query = new Query($mysqli, \"SELECT red,nombre,apellido,CONCAT(provincia,'-',clave,'-',tomo,'-',folio)AS cedula,n_ins,sede,fac_ia,esc_ia,car_ia,fac_iia,esc_iia,car_iia,fac_iiia,esc_iiia,car_iiia\n FROM \" .$TINS. \" where sede = ? AND area_i = ? AND fac_ia = ? AND esc_ia = ? AND car_ia = ? \");\n $parametros = array(\"iiiii\", &$SEDE, &$AREA, &$FACULTAD, &$ESCUELA, &$CARRERA);\n $data = $query->getresults($parametros);\n\n if (isset($data[0])) {\n return $data;\n } else {\n return null;\n }\n\n}", "public function campo($nombre) {}", "function extract_fields($criteria = array())\n{\n\t$fields = array();\n\t\n\tforeach ($criteria as $table => $info)\n\t{\n\t\tforeach ($info['fields'] as $code => $name)\n\t\t{\n\t\t\t$fields[$code] = $name;\n\t\t}\n\t}\n\t\n\treturn $fields;\n}", "public function prepareFieldset();", "public function columnasLista(){\n $gridlista=array(\n array('name'=>'codigoproducto','type'=>'raw','value'=>'CHtml::link($data->codigoproducto,array(\"update\",\"id\"=>$data->id))'),\n 'nombre',\n 'costo',\n 'stock',\n 'stockminimo',\n );\n\n return $gridlista;\n }", "public function findAllBy( $value = NULL, $field = NULL, array $columns = ['*'] );", "function generateColonneByType($table, $columnName, $recherche=false, $attribut=null, $disabled=false) {\n $columnName = strtolower($columnName);\n $retour = '';\n $disabled = $disabled ? 'disabled' : '';\n $recherche = $recherche ? 'rechercheTableStatique' : '';\n $type = $table->getTypeOfColumn($columnName);\n switch ($type) {\n case 'string':\n $cantBeNull = $table->getColumnDefinition($columnName);\n $cantBeNull['notnull'] == 1 ? $class = 'requis' : $class = '';\n $retour .= '\n <div class=\"colonne\">\n <span class=\"attribut\">'.$columnName.' : </span>\n <span><input class=\"contour_field input_char '.$recherche.' '.$class.'\" type=\"text\" columnName='.$columnName.' value=\"'.$attribut.'\"'.$disabled.'/></span>\n </div>';\n break;\n case 'float' :\n case 'integer' :\n if (preg_match('#^id[a-zA-Z]+#', $columnName)) {\n $columnName = substr($columnName, 2);\n $retour .= '\n <div class=\"colonne\">\n <span class=\"attribut\">'.$columnName.' :</span>\n <span><input type=\"text\" class=\"contour_field input_char autoComplete\" id=\"'.$columnName.'\" table=\"'.$columnName.'\" champ=\"libelle\" value=\"'.$attribut.'\"'.$disabled.'/></span>\n </div>'; \n } else {\n $cantBeNull = $table->getColumnDefinition($columnName);\n $cantBeNull['notnull'] == 1 ? $class = 'requis' : $class = '';\n $retour .= '\n <div class=\"colonne\">\n <span class=\"attribut\">'.$columnName.' :</span>\n <span><input type=\"text\" class=\"contour_field input_num '.$class.'\" columnName='.$columnName.' value=\"'.$attribut.'\"'.$disabled.'/></span>\n </div>';\n }\n \n break;\n case 'boolean' :\n $retour .='\n <div class=\"colonne\">\n <span class=\"attribut\">'.$columnName.' : </span>';\n if($attribut != null && $attribut == 1) {\n $retour .= '<span class=\"checkbox checkbox_active\" value=\"1\" columnName='.$columnName.' '.$disabled.'></span></div>';\n } else {\n $retour .= '<span class=\"checkbox\" value=\"0\" columnName='.$columnName.' '.$disabled.'></span></div>';\n };\n break;\n }\n return $retour;\n}", "function i18n_get_attributes() {\n\t\t\t$attributes = array();\n\n\t\t\t$table_name_i18n = $this->table_name.$this->i18n_table_suffix;\n\t\t\t$i18n_columns = self::$db->table_info($table_name_i18n);\n\n\t\t\tif(is_array($i18n_columns)) {\n\t\t\t\tforeach($i18n_columns as $column) {\n\t\t\t\t\tif(isset($this->i18n_column_values[$column['name']]) && is_array($this->i18n_column_values[$column['name']])) {\n\t\t\t\t\t\t$db_method = Inflector::camelize('update_'.$column['type']);\n\t\t\t\t\t\tforeach($this->i18n_column_values[$column['name']] as $locale => $i18n_value) {\n\t\t\t\t\t\t\t$attributes[$locale][$column['name']] = array($i18n_value, method_exists(self::$db, $db_method) ? $db_method : null);\n\t\t\t\t\t\t\tif(self::$has_update_blob && in_array($column['type'], self::$db->blob_column_types)) {\n\t\t\t\t\t\t\t\t$this->blob_fields[$column['name']] = array($table_name_i18n, $column['type'], null, null);\n\t\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\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn $attributes;\n\t\t}", "public function getSQL($param=false){\n\t\t\tswitch( $name = $this->obtenerDato(\"name\") ){\n\t\t\t\t// Los campos modelfield::$specials los ponemos en código\n\t\t\t\t// Debemos refactorizar esto con algo mas de tiempo\n\t\t\t\tcase \"estado_contratacion\":\n\t\t\t\t\t$sql = \"( -- empresas validas\n\t\t\t\t\t\t\tn1 IN (<%empresasvalidas%>)\n\t\t\t\t\t\tAND if(n2 IS NULL OR !n2, 1, n2 IN (<%empresasvalidas%>) )\n\t\t\t\t\t\tAND if(n3 IS NULL OR !n3, 1, n3 IN (<%empresasvalidas%>) )\n\t\t\t\t\t\tAND if(n4 IS NULL OR !n4, 1, n4 IN (<%empresasvalidas%>) )\n\t\t\t\t\t)\";\n\n\t\t\t\t\treturn $sqlFinal = \"(SELECT if(($sql), 'Valido', 'No Valido'))\";\n\t\t\t\tbreak;\n\t\t\t\tcase \"cadena_contratacion_cumplimentada\":\n\t\t\t\t\t$sql = \"( -- empresas cumplimentadas\n\t\t\t\t\t\t\tn1 IN (<%empresacumplimentadas%>)\n\t\t\t\t\t\tAND if(n2 IS NULL OR !n2, 1, n2 IN (<%empresacumplimentadas%>) )\n\t\t\t\t\t\tAND if(n3 IS NULL OR !n3, 1, n3 IN (<%empresacumplimentadas%>) )\n\t\t\t\t\t\tAND if(n4 IS NULL OR !n4, 1, n4 IN (<%empresacumplimentadas%>) )\n\t\t\t\t\t)\";\n\n\t\t\t\t\treturn $sqlFinal = \"(SELECT if(($sql), 'Si', 'No'))\";\n\t\t\t\tbreak;\n\t\t\t\tcase 'asignado_en_conjunto_de_agrupadores': case 'valido_conjunto_agrupadores': \n\t\t\t\t// case 'valido_conjunto_agrupadores_asignados':\n\t\t\t\tcase 'valido_conjunto_agrupadores_seleccionados':\n\t\t\t\tcase 'valido_conjunto_agrupadores_solo_asignados':\n\t\t\t\t\tif( $param instanceof ArrayObjectList && $sql = trim($this->obtenerDato(\"sql\")) ){\n\t\t\t\t\t\t$subsql = array();\n\t\t\t\t\t\tforeach ($param as $item) {\n\t\t\t\t\t\t\t$subsql[] = \"((\". str_replace('%s', $item->getUID(), $sql) .\") = 1)\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn $sql = '( IF( '.implode(' AND ',$subsql) .',\\'Si\\',\\'No\\') )';\n\t\t\t\t\t}\n\n\t\t\t\tbreak;\n\t\t\t\tcase 'valido_algun_agrupador': \n\t\t\t\t\tif( $param instanceof ArrayObjectList && $sql = trim($this->obtenerDato(\"sql\")) ){\n\t\t\t\t\t\tforeach($param as $item) {\n\t\t\t\t\t\t\t$subsql[] = \"((\". str_replace('%s', $item->getUID(), $sql) .\") = 1)\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn $sql = '( IF( '.implode(' OR ',$subsql) .',\\'Si\\',\\'No\\') )';\n\t\t\t\t\t} \n\t\t\t\tbreak;\n\t\t\t\tcase 'mostrar_agrupador_asignado': case 'trabajos': case 'codigo_agrupador_valido':\n\t\t\t\t\tif( $param instanceof ArrayObjectList && $sql = trim($this->obtenerDato(\"sql\")) ){\n\t\t\t\t\t\treturn str_replace('%s', $param->toComaList() ,$sql);\n\t\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tif( $sql = trim($this->obtenerDato(\"sql\")) ){\n\t\t\t\t\t\tif( $param instanceof Ielemento ) $param = $param->getUID();\n\t\t\t\t\t\tif( $param ) $sql = str_replace(\"%s\", $param, $sql);\n\t\t\t\t\t\treturn $sql;\n\t\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\treturn false;\n\t\t}", "public function listRegisterFields(){\n\t\t$this->registerFieldString('name_hld', 'Tipo');\n\t}" ]
[ "0.5981594", "0.5923314", "0.58767617", "0.58547264", "0.5851516", "0.5846309", "0.5757453", "0.5669157", "0.5659465", "0.5649308", "0.5642477", "0.5631122", "0.5614361", "0.5612767", "0.56052536", "0.5604574", "0.56019974", "0.55798805", "0.55770946", "0.55651724", "0.55565995", "0.55334276", "0.55330163", "0.5503171", "0.5496086", "0.54909796", "0.5473008", "0.54560435", "0.5446402", "0.54439133", "0.54419214", "0.5432989", "0.54183114", "0.5412709", "0.5402132", "0.54014295", "0.53976834", "0.53828925", "0.5382125", "0.53772527", "0.53770703", "0.53770506", "0.53734714", "0.53553534", "0.5347522", "0.5347102", "0.5343728", "0.5339235", "0.53319114", "0.53145075", "0.53064394", "0.5302498", "0.5297359", "0.5294722", "0.52918893", "0.528939", "0.52808046", "0.527822", "0.5277107", "0.52734154", "0.5258965", "0.5254846", "0.5254451", "0.5254451", "0.5246929", "0.52312744", "0.52278304", "0.52255833", "0.52201426", "0.52167976", "0.52132595", "0.5206919", "0.5202322", "0.5201366", "0.52004534", "0.51994616", "0.51866096", "0.5186318", "0.5184702", "0.5181781", "0.5181386", "0.51809025", "0.5179963", "0.5177584", "0.517435", "0.5169103", "0.516816", "0.51677626", "0.5163928", "0.5158811", "0.5157338", "0.51543885", "0.5152481", "0.5152292", "0.5151527", "0.5149661", "0.51456213", "0.5143794", "0.51437604", "0.5139259", "0.5137688" ]
0.0
-1
metodo adaptados para obtener un registro de la entidad por id
public function get_by_id($id) { return $this->findByPoperty(array($this->id_field => $id)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getById() {}", "public function retrieveById($id);", "public function getById()\n {\n }", "public function findEntity($id);", "public function byId($id);", "public function byId($id);", "public function byId($id);", "public function byId($id);", "public function returnDetailFindByPK($id);", "function get($id) {\r\n //devuelve el objeto entero\r\n $parametros = array();\r\n $parametros[\"id\"] = $id;\r\n $this->bd->select($this->tabla, \"*\", \"id =:id\", $parametros);\r\n $fila = $this->bd->getRow();\r\n $mecanico = new Mecanico();\r\n $mecanico->set($fila);\r\n return $mecanico;\r\n }", "public function findById($id =''){\n\t\t$id = new MongoId($id);\n\t\t$cursor = $this->collection->find(['_id'=>$id]);\n\t\t$retour = $this->createEntity($cursor->toArray()[0]);\n\t\treturn $retour;\n\t}", "public function retrieve(int $id);", "public function getId();", "public function getId();", "public function getId();", "public function getId();", "public function getId();", "public function getId();", "public function getId();", "public function getId();", "public function getId();", "public function getId();", "public function getId();", "public function getId();", "public function getId();", "public function getId();", "public function getId();", "public function getId();", "public function getId();", "public function getId();", "public function getId();", "public function getId();", "public function getId();", "public function getId();", "public function getId();", "public function getId();", "public function getId();", "public function getId();", "public function getId();", "public function getId();", "public function getId();", "public function getId();", "public function getId();", "public function getId();", "public function getId();", "public function getId();", "public function getId();", "public function getId();", "public function getId();", "public function getId();", "public function getId();", "public function getId();", "public function getId();", "public function getId();", "public function getId();", "public function getId();", "public function getId();", "public function getId();", "public function getId();", "public function getId();", "public function getId();", "public function getId();", "public function getId();", "public function getId();", "public function getId();", "public function getId();", "public function getId();", "public function getId();", "public function getId();", "public function getId();", "public function getId();", "public function getId();", "public function getId();", "public function getId();", "public function getId();", "public function getId();", "public function getId();", "public function getId();", "public function getId();", "public function getId();", "abstract public function retrieve($id);", "public function getById($id);", "public function getById($id);", "public function getById($id);", "public function getById($id);", "public function getById($id);", "public function getById($id);", "public function getById($id);", "public function getById($id);", "public function getById($id);", "public function getById($id);", "public function getById($id);", "public function getById($id);", "public function getById($id);", "public function getById($id);", "public function getById($id);", "public function getOne(){\n //hacemos la consulta y lo guardamos en una variable\n $producto=$this->db->query(\"SELECT * FROM pedidos where id={$this->getId()};\");\n //devolvemos un valor en especifico y lo comvertimos a un objeto completamente usable.\n return $producto->fetch_object();\n }", "public function getId() ;", "function get_entrada($id)\n\t{\n\t\t$u = new Entrada();\n\t\t//Buscar en la base de datos\n\t\t$u->get_by_id($id);\n\t\tif($u->c_rows ==1){\n\t\t\treturn $u;\n\t\t} else {\n\t\t\treturn FALSE;\n\t\t}\n\t}", "function findById($id)\n {\n $sql=\"select u.id,u.nombre,u.paterno,u.materno,u.username,u.fechaAlta,\".\n \" u.estatus,u.idTipoUsuario,tu.descripcion from Usuarios u\".\n \" inner join TipoUsuarios tu on tu.id=u.idTipoUsuario\".\n \" where u.id=\".$id;\n \n $usuariosRs = mysqli_query($this->_connDb, $sql); \n $oUsuario = new Usuario(0);\n while ($row = mysqli_fetch_array($usuariosRs)) { \n $oUsuario->setId($row['id']);\n $oUsuario->setNombre($row['nombre']);\n $oUsuario->setPaterno($row['paterno']);\n $oUsuario->setMaterno($row['materno']);\n $oUsuario->setUsername($row['username']);\n $oUsuario->setFechaAlta($row['fechaAlta']);\n $oUsuario->setEstatus($row['estatus']);\n\n // Creamos el objeto de tipo TipoUsuario\n $oTipoUsuario = new TipoUsuario($row['idTipoUsuario']);\n $oTipoUsuario->setDescripcion($row['descripcion']);\n\n // Inyectamos la dependencia de TipoUsuario\n $oUsuario->setTipoUsuario($oTipoUsuario); \n }\n return $oUsuario;\n }", "public function findById() {\n // TODO: Implement findById() method.\n }" ]
[ "0.7399436", "0.6989384", "0.6943432", "0.6850025", "0.6849383", "0.6849383", "0.6849383", "0.6849383", "0.6843163", "0.6830796", "0.6820465", "0.6780983", "0.6776521", "0.6776521", "0.6776521", "0.6776521", "0.6776521", "0.6776521", "0.6776521", "0.6776521", "0.6776521", "0.6776521", "0.6776521", "0.6776521", "0.6776521", "0.6776521", "0.6776521", "0.6776521", "0.6776521", "0.6776521", "0.6776521", "0.6776521", "0.6776521", "0.6776521", "0.6776521", "0.6776521", "0.6776521", "0.6776521", "0.6776521", "0.6776521", "0.6776521", "0.6776521", "0.6776521", "0.6776521", "0.6776521", "0.6776521", "0.6776521", "0.6776521", "0.6776521", "0.6776521", "0.6776521", "0.6776521", "0.6776521", "0.6776521", "0.6776521", "0.6776521", "0.6776521", "0.6776521", "0.6776521", "0.6776521", "0.6776521", "0.6776521", "0.6776521", "0.6776521", "0.6776521", "0.6776521", "0.6776521", "0.6776521", "0.6776521", "0.6776521", "0.6776521", "0.6776521", "0.6776521", "0.6776521", "0.6776521", "0.6776521", "0.6776521", "0.6776521", "0.6776521", "0.6776521", "0.6770577", "0.6761942", "0.6761942", "0.6761942", "0.6761942", "0.6761942", "0.6761942", "0.6761942", "0.6761942", "0.6761942", "0.6761942", "0.6761942", "0.6761942", "0.6761942", "0.6761942", "0.6761942", "0.67598724", "0.67466795", "0.67366076", "0.67299265", "0.6721906" ]
0.0
-1
metodo para obtener un registro de una segunda tabla relacionada a la primera
public function get_fk_by_id($id, $fk_obj) { $m = $this->get_by_id($id); return $fk_obj->get_by_id($m[$fk_obj->id_field]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function readTabla() {\r\n $query = 'SELECT * FROM ' . $this->tabla;\r\n\r\n\r\n \r\n\r\n $sentencia = $this->con->prepare($query);\r\n\r\n $sentencia->execute();\r\n\r\n return $sentencia;\r\n }", "public function getRecordatorio() {\n $recordatorio = $this->_db->query(\"SELECT deuda.Id_cliente as dni, nombre as nombre, apellidos as apellido, \n direccion as direccion, telefono as telefono, celular as celular, total as totalDeuda\n FROM pagos as pagos \n INNER JOIN venta as venta ON venta.Id_deuda = pagos.Id_deuda\n INNER JOIN productoventa as prodventa ON venta.cod_busqueda = prodventa.cod_busqueda\n INNER JOIN deuda as deuda ON deuda.Id_deuda = venta.Id_deuda\n INNER JOIN cliente as cliente ON cliente.Id_cliente = deuda.Id_cliente where pagos.estado >= 0 and pagos.Fecha_Pago = CURDATE()\n ORDER BY deuda.Fecha_deuda\"\n );\n return $recordatorio->fetchall();\n }", "function getTablaInformeAjuntament($desde,$hasta){\n \n // $this->ponerHorasTaller();\n // $this->ponerNumRegistro();\n \n \n $letra=getLetraCasal();\n $numeroRegistroCasalIngresos=getNumeroRegistroCasalIngresos();\n $numeroRegistroCasalDevoluciones=getNumeroRegistroCasalDevoluciones();\n \n $sql=\"SELECT id FROM casal_recibos WHERE fecha>='$desde' AND fecha<='$hasta' ORDER BY id ASC LIMIT 1\";\n if($this->db->query($sql)->num_rows()==0){\n $primero=0;\n }\n else {\n $primero=$this->db->query($sql)->row()->id;\n }\n \n $sql=\"SELECT id FROM casal_recibos WHERE fecha>='$desde' AND fecha<='$hasta' ORDER BY id DESC LIMIT 1\";\n if($this->db->query($sql)->num_rows()==0){\n $ultimo=0;\n }\n else {\n $ultimo=$this->db->query($sql)->row()->id;\n }\n \n $sql=\"SELECT r.id as id, r.fecha as fecha , r.id_socio as id_socio , r.importe as importe , r.recibo as recibo, s.nombre as nombre,s.apellidos as apellidos \n FROM casal_recibos r\n LEFT JOIN casal_socios_nuevo s ON s.num_socio=r.id_socio\n WHERE fecha>='$desde' AND fecha<='$hasta' ORDER BY r.id\";\n \n $sql=\"SELECT r.fecha as fecha,\"\n . \" lr.id_recibo as recibo,\"\n . \" lr.importe as importe, \"\n . \" t.nombre_corto as nombre,\"\n . \" t.horas_taller_T1 as horas_taller_T1,\"\n . \" t.horas_taller_T2 as horas_taller_T2,\"\n . \" t.horas_taller_T3 as horas_taller_T3,\"\n . \" s.dni as dni,\"\n . \" lr.tarjeta as tarjeta,\"\n . \" lr.periodos as periodos,\"\n . \" lr.id_taller as id_taller,\"\n . \" lr.id_socio as id_socio,\"\n . \" lr.id as id,\"\n . \" lr.num_registro as num_registro,\"\n . \" lr.num_registro_posicion as num_registro_posicion,\"\n . \" s.num_socio as num_socio\"\n . \" FROM casal_lineas_recibos lr\"\n . \" LEFT JOIN casal_recibos r ON lr.id_recibo=r.id\"\n . \" LEFT JOIN casal_talleres t ON t.id=lr.id_taller\"\n . \" LEFT JOIN casal_socios_nuevo s ON s.num_socio=lr.id_socio\"\n . \" WHERE lr.importe>0 AND lr.id_recibo>='$primero' AND lr.id_recibo<='$ultimo' ORDER BY lr.num_registro_posicion\";\n \n //log_message('INFO',$sql);\n \n $recibos=array(); \n if($this->db->query($sql)->num_rows()>0) \n $recibos=$this->db->query($sql)->result();\n \n \n $cabeceraTabla='<table class=\"table table-bordered table-hover\"><tbody>\n <thead>\n <tr >\n <th class=\"col-sm-1 text-center\">Data</th>\n <th class=\"col-sm-1 text-center\">Num Registre</th>\n <th class=\"col-sm-1 text-center\">DNI Usuari</th>\n <th class=\"col-sm-1 text-center\">Nom Actividad</th>\n <th class=\"col-sm-1 text-center\">Num Registre Ingrés</th>\n <th class=\"col-sm-1 text-center\" >Preu/hora</th>\n <th class=\"col-sm-1 text-center\">Import Base</th>\n <th class=\"col-sm-1 text-center\">% IVA (exempt)</th>\n <th class=\"col-sm-1 text-center\" style=\"border-top:2px solid black;border-right:2px solid black;border-left:2px solid black;\">IMPORT TOTAL</th>\n <th class=\"col-sm-1 text-center\">TIPOLOGIA INGRES</th>\n \n </tr>';\n \n \n \n $tabla=$cabeceraTabla;\n \n $importeTotal=0;\n foreach ($recibos as $k=>$v) {\n $fecha=$v->fecha;\n $fecha=substr($fecha,8,2).'/'.substr($fecha,5,2).'/'.substr($fecha,0,4);\n $tabla.='<tr>';\n $tabla.='<td class=\"text-center\">';\n $tabla.= $fecha;\n $tabla.='</td>';\n \n $num=strval($v->num_registro_posicion);\n while(strlen($num)<5) {\n $num='0'.$num;\n }\n $tabla.='<td class=\"text-center\">';\n $tabla.= $v->num_registro.$num;\n $tabla.='</td>';\n \n \n $dni=$v->dni;\n if($this->socios_model->validar_dni($dni)){\n $tabla.='<td class=\"text-center\">';\n $tabla.= strtoupper($dni);\n $tabla.='</td>';\n }\n else{\n $tabla.='<td class=\"text-center\" style=\"color:red\">';\n $tabla.= strtoupper($dni).\"(\".$v->num_socio.\")\";\n $tabla.='</td>';\n }\n \n $nombre=$v->nombre;\n $tabla.='<td class=\"text-center\">';\n $tabla.= $nombre;\n $tabla.='</td>';\n \n $recibo=$letra.' '.$v->recibo; \n $tabla.='<td class=\"text-center\">';\n $tabla.= $recibo;\n $tabla.='</td>';\n \n if($v->periodos==4) $horas=floatval($v->horas_taller_T1);\n if($v->periodos==2) $horas=floatval($v->horas_taller_T2);\n if($v->periodos==1) $horas=floatval($v->horas_taller_T3); \n //log_message('INFO', '===================='.$v->nombre.' '.$horas);\n \n if($horas>0)\n $preu_hora=number_format($v->importe/$horas*100,2); \n else \n $preu_hora=0;\n\n $tabla.='<td class=\"text-center\">';\n $tabla.= $preu_hora;\n $tabla.='</td>';\n \n \n \n $importe=$v->importe;\n $tabla.='<td class=\"text-center\" >';\n $tabla.= number_format($importe,2);\n $tabla.='</td>';\n \n $importe=$v->importe;\n $tabla.='<td class=\"text-center\">';\n $tabla.= '0.00';\n $tabla.='</td>';\n \n $importe=number_format($v->importe,2);\n $tabla.='<td class=\"text-center\" style=\"border-right:2px solid black;border-left:2px solid black;\">';\n $tabla.= number_format($importe,2);\n $tabla.='</td>';\n $importeTotal+=number_format($importe,2);\n \n $tarjeta=number_format($v->tarjeta,2);\n if($tarjeta==0) $pago=\"Efectiu\"; else $pago=\"TPV fisic\";\n $tabla.='<td class=\"text-center\">';\n $tabla.= $pago;\n $tabla.='</td>';\n \n $tabla.='</tr>';\n }\n \n \n $pieTabla='</tr></thead><thead><tr>';\n $pieTabla.='<th class=\"text-center\" style=\"border-bottom:1px solid white;border-right:1px solid white;border-left:1px solid white;\"></th>';\n $pieTabla.='<th class=\"text-center\" style=\"border-bottom:1px solid white;border-right:1px solid white;border-left:1px solid white;\"></th>';\n $pieTabla.='<th class=\"text-center\" style=\"border-bottom:1px solid white;border-right:1px solid white;border-left:1px solid white;\"></th>';\n $pieTabla.='<th class=\"text-center\" style=\"border-bottom:1px solid white;border-right:1px solid white;border-left:1px solid white;\"></th>';\n $pieTabla.='<th class=\"text-center\" style=\"border-bottom:1px solid white;border-right:1px solid white;border-left:1px solid white;\"></th>';\n $pieTabla.='<th class=\"text-center\" style=\"border-bottom:1px solid white;border-right:1px solid white;border-left:1px solid white;\"></th>';\n $pieTabla.='<th class=\"text-center\" style=\"border-bottom:1px solid white;border-right:0px solid white;border-left:1px solid white;\"></th>';\n $pieTabla.='<th class=\"text-center\">T O T A L S</th>';\n $pieTabla.='<th class=\"text-center\" style=\"border-bottom:2px solid black;border-right:2px solid black;border-left:2px solid black;\">';\n $pieTabla.=number_format($importeTotal,2);\n $pieTabla.='</th>';\n $pieTabla.='</tr></thead></tody></table>';\n \n $tabla.=$pieTabla;\n \n \n $cabeceraTablaDevoluciones='<table class=\"table table-bordered table-hover\"><tbody>\n <thead>\n <tr >\n <th class=\"col-sm-1 text-center\">Data</th>\n <th class=\"col-sm-1 text-center\">Num Registre</th>\n <th class=\"col-sm-1 text-center\">DNI Usuari</th>\n <th class=\"col-sm-1 text-center\">Nom Actividad</th>\n <th class=\"col-sm-1 text-center\">Num Registre Devolució</th>\n <th class=\"col-sm-1 text-rigcenterht\" >Preu/hora</th>\n <th class=\"col-sm-1 text-center\">Import Base</th>\n <th class=\"col-sm-1 text-center\">% IVA (exempt)</th>\n <th class=\"col-sm-1 text-center\" style=\"border-top:2px solid black;border-right:2px solid black;border-left:2px solid black;\">IMPORT TOTAL</th>\n <th class=\"col-sm-1 text-center\">TIPOLOGIA DEVOLUCIÓ</th>\n \n </tr>';\n \n $tituloCasal=strtoupper(getTituloCasal());\n $salida='<h4>INFORME DETALLAT INGRESSOS</h4>'\n . ''\n . 'EQUIPAMENT MUNICIPA: <STRONG>'.$tituloCasal.'</STRONG>'\n . '<BR>'\n . 'ADJUDICATARI: <STRONG>'.'SERVEIS A LES PERSONES INCOOP, SCCL</STRONG>'\n . '<BR>'\n . 'NIF ADJUDICATARI: <STRONG>F60137411</STRONG>'\n . '<BR>'\n . 'NÚM CONTRACTE: <STRONG>18001022</STRONG>'\n . '<BR>'\n . 'Periode: <STRONG>'.substr($desde,8,2).'/'.substr($desde,5,2).'/'.substr($desde,0,4).' - '.substr($hasta,8,2).'/'.substr($hasta,5,2).'/'.substr($hasta,0,4).'</STRONG>'\n . '<BR>'\n . '<BR>'\n \n .$tabla.'<br>';\n \n $sql=\"SELECT r.fecha as fecha,\"\n . \" lr.id_recibo as recibo,\"\n . \" lr.importe as importe, \"\n . \" t.nombre_corto as nombre,\"\n . \" t.horas_taller_T1 as horas_taller_T1,\"\n . \" t.horas_taller_T2 as horas_taller_T2,\"\n . \" t.horas_taller_T3 as horas_taller_T3,\"\n . \" s.dni as dni,\"\n . \" lr.tarjeta as tarjeta,\"\n . \" lr.periodos as periodos,\"\n . \" lr.id_taller as id_taller,\"\n . \" lr.id_socio as id_socio,\"\n . \" lr.id as id,\"\n . \" lr.num_registro as num_registro,\"\n . \" lr.num_registro_posicion as num_registro_posicion,\"\n . \" s.num_socio\"\n . \" FROM casal_lineas_recibos lr\"\n . \" LEFT JOIN casal_recibos r ON lr.id_recibo=r.id\"\n . \" LEFT JOIN casal_talleres t ON t.id=lr.id_taller\"\n . \" LEFT JOIN casal_socios_nuevo s ON s.num_socio=lr.id_socio\"\n . \" WHERE lr.importe<0 AND lr.id_recibo>='$primero' AND lr.id_recibo<='$ultimo' ORDER BY lr.num_registro_posicion\";\n \n \n \n $recibos=array(); \n if($this->db->query($sql)->num_rows()>0) \n $recibos=$this->db->query($sql)->result();\n \n $tabla=$cabeceraTablaDevoluciones;\n $importeTotalDevoluciones=0;\n foreach ($recibos as $k=>$v) {\n $fecha=$v->fecha;\n $fecha=substr($fecha,8,2).'/'.substr($fecha,5,2).'/'.substr($fecha,0,4);\n $tabla.='<tr>';\n $tabla.='<td class=\"text-center\">';\n $tabla.= $fecha;\n $tabla.='</td>';\n \n $num=strval($v->num_registro_posicion);\n while(strlen($num)<5) {\n $num='0'.$num;\n } \n $tabla.='<td class=\"text-center\">';\n $tabla.= $v->num_registro.$num;;\n $tabla.='</td>';\n \n $dni=$v->dni;\n if($this->socios_model->validar_dni($dni)){\n $tabla.='<td class=\"text-center\">';\n $tabla.= strtoupper($dni);\n $tabla.='</td>';\n }\n else{\n $tabla.='<td class=\"text-center\" style=\"color:red\">';\n $tabla.= strtoupper($dni).\"(\".$v->num_socio.\")\";\n $tabla.='</td>';\n }\n \n $nombre=$v->nombre;\n $tabla.='<td class=\"text-center\">';\n $tabla.= $nombre;\n $tabla.='</td>';\n \n $recibo=$letra.' '.$v->recibo; \n $tabla.='<td class=\"text-center\">';\n $tabla.= $recibo;\n $tabla.='</td>';\n \n \n \n /*\n $id_taller=$v->id_taller;\n $periodos=$v->periodos;\n $id_socio=$v->id_socio;\n $importe=-$v->importe;\n $id=$v->id;\n $sql=\"SELECT * FROM casal_lineas_recibos WHERE id<'$id' AND id_taller='$id_taller' AND id_socio='$id_socio' AND periodos='$periodos' AND importe='$importe' ORDER BY id DESC LIMIT 1\";\n //log_message('INFO',$sql);\n if($this->db->query($sql)->num_rows()==1) {\n $recibo=$letra.' '.$this->db->query($sql)->row()->id_recibo;\n }\n else $recibo='';\n $tabla.='<td class=\"text-center\">';\n $tabla.= $recibo;\n $tabla.='</td>';\n */\n \n \n if($v->periodos==4) $horas=$v->horas_taller_T1;\n if($v->periodos==2) $horas=$v->horas_taller_T2;\n if($v->periodos==1) $horas=$v->horas_taller_T3; \n \n //log_message('INFO', '++=================='.$v->nombre.' '.$horas);\n \n $preu_hora=number_format($v->importe/$horas*100,2); \n $tabla.='<td class=\"text-center\">';\n $tabla.= -$preu_hora;\n $tabla.='</td>';\n \n \n \n $importe=number_format($v->importe,2);\n $tabla.='<td class=\"text-center\" >';\n $tabla.= -$importe;\n $tabla.='</td>';\n \n $importe=number_format($v->importe,2);\n $tabla.='<td class=\"text-center\">';\n $tabla.= '0.00';\n $tabla.='</td>';\n \n $importe=number_format($v->importe,2);\n $tabla.='<td class=\"text-center\" style=\"border-right:2px solid black;border-left:2px solid black;\">';\n $tabla.= -$importe;\n $tabla.='</td>';\n $importeTotalDevoluciones+=$importe;\n \n $tarjeta=number_format($v->tarjeta,2);\n if($tarjeta==0) $pago=\"Efectiu\"; else $pago=\"TPV fisic\";\n $tabla.='<td class=\"text-center\">';\n $tabla.= $pago;\n $tabla.='</td>';\n \n $tabla.='</tr>';\n }\n \n \n \n \n $pieTablaDevoluciones='</tr></thead><thead><tr>';\n $pieTablaDevoluciones.='<th class=\"text-center\" style=\"border-bottom:1px solid white;border-right:1px solid white;border-left:1px solid white;\"></th>';\n $pieTablaDevoluciones.='<th class=\"text-center\" style=\"border-bottom:1px solid white;border-right:1px solid white;border-left:1px solid white;\"></th>';\n $pieTablaDevoluciones.='<th class=\"text-center\" style=\"border-bottom:1px solid white;border-right:1px solid white;border-left:1px solid white;\"></th>';\n $pieTablaDevoluciones.='<th class=\"text-center\" style=\"border-bottom:1px solid white;border-right:1px solid white;border-left:1px solid white;\"></th>';\n $pieTablaDevoluciones.='<th class=\"text-center\" style=\"border-bottom:1px solid white;border-right:1px solid white;border-left:1px solid white;\"></th>';\n $pieTablaDevoluciones.='<th class=\"text-center\" style=\"border-bottom:1px solid white;border-right:1px solid white;border-left:1px solid white;\"></th>';\n $pieTablaDevoluciones.='<th class=\"text-center\" style=\"border-bottom:1px solid white;border-right:0px solid white;border-left:1px solid white;\"></th>';\n $pieTablaDevoluciones.='<th class=\"text-center\">T O T A L S</th>';\n $pieTablaDevoluciones.='<th class=\"text-center\" style=\"border-bottom:2px solid black;border-right:2px solid black;border-left:2px solid black;\">';\n $pieTablaDevoluciones.=-number_format($importeTotalDevoluciones,2);\n $pieTablaDevoluciones.='</th>';\n $pieTablaDevoluciones.='</tr></thead></tody></table>';\n \n \n \n \n \n $salida.='<h4>INFORME DETALLAT DEVOLUCIONS</h4>'\n . ''\n . 'EQUIPAMENT MUNICIPA: <STRONG>'.$tituloCasal.'</STRONG>'\n . '<BR>'\n . 'ADJUDICATARI: <STRONG>'.'SERVEIS A LES PERSONES INCOOP, SCCL</STRONG>'\n . '<BR>'\n . 'NIF ADJUDICATARI: <STRONG>F60137411</STRONG>'\n . '<BR>'\n . 'NÚM CONTRACTE: <STRONG>18001022</STRONG>'\n . '<BR>'\n . 'Periode: <STRONG>'.substr($desde,8,2).'/'.substr($desde,5,2).'/'.substr($desde,0,4).' - '.substr($hasta,8,2).'/'.substr($hasta,5,2).'/'.substr($hasta,0,4).'</STRONG>'\n . '<BR>'\n . '<BR>';\n \n \n \n \n \n \n $salida.=$tabla;\n $salida.=$pieTablaDevoluciones;\n $salida.='<br><h4>RESUM TOTAL</h4>';\n \n $importeResumen=number_format($importeTotal,2)+number_format($importeTotalDevoluciones,2);\n $resumenTotal='<table class=\"table table-bordered table-hover\"><tbody>\n <thead>\n <tr >\n <th class=\"col-sm-1 text-center\" style=\"border-bottom:1px solid white;border-top:1px solid white;border-right:1px solid white;border-left:1px solid white;\"></th>\n <th class=\"col-sm-1 text-center\" style=\"border-bottom:1px solid white;border-top:1px solid white;border-right:1px solid white;border-left:1px solid white;\"></th>\n <th class=\"col-sm-1 text-center\" style=\"border-bottom:1px solid white;border-top:1px solid white;border-right:1px solid white;border-left:1px solid white;\"></th>\n <th class=\"col-sm-1 text-center\" style=\"border-bottom:1px solid white;border-top:1px solid white;border-right:1px solid white;border-left:1px solid white;\"></th>\n <th class=\"col-sm-1 text-center\" style=\"border-bottom:1px solid white;border-top:1px solid white;border-right:1px solid white;border-left:1px solid white;\"></th>\n <th class=\"col-sm-1 text-center\" style=\"border-bottom:1px solid white;border-top:1px solid white;border-right:1px solid white;border-left:1px solid white;\"></th>\n <th class=\"col-sm-1 text-center\" style=\"border-bottom:1px solid white;border-top:1px solid white;border-right:1px solid white;border-left:1px solid white;\"></th>\n <th class=\"col-sm-1 text-center\" style=\"border-bottom:1px solid white;border-top:1px solid white;border-right:1px solid white;border-left:1px solid white;\"></th>\n <th class=\"col-sm-1 text-center\" style=\"border-top:2px solid black;border-right:2px solid black;border-left:2px solid black;\">IMPORT TOTAL</th>\n <th class=\"col-sm-1 text-center\" style=\"border-bottom:1px solid white;border-top:1px solid white;border-right:1px solid white;border-left:1px solid white;\"></th>\n \n </tr>\n <tr >\n <th class=\"col-sm-1 text-center\" style=\"border-bottom:1px solid white;border-top:1px solid white;border-right:1px solid white;border-left:1px solid white;\"></th>\n <th class=\"col-sm-1 text-center\" style=\"border-bottom:1px solid white;border-top:1px solid white;border-right:1px solid white;border-left:1px solid white;\"></th>\n <th class=\"col-sm-1 text-center\" style=\"border-bottom:1px solid white;border-top:1px solid white;border-right:1px solid white;border-left:1px solid white;\"></th>\n <th class=\"col-sm-1 text-center\" style=\"border-bottom:1px solid white;border-top:1px solid white;border-right:1px solid white;border-left:1px solid white;\"></th>\n <th class=\"col-sm-1 text-center\" style=\"border-bottom:1px solid white;border-top:1px solid white;border-right:1px solid white;border-left:1px solid white;\"></th>\n <th class=\"col-sm-1 text-center\" style=\"border-bottom:1px solid white;border-top:1px solid white;border-right:1px solid white;border-left:1px solid white;\"></th>\n <th class=\"col-sm-1 text-center\" style=\"border-bottom:1px solid white;border-top:1px solid white;border-left:1px solid white;\"></th>\n <th class=\"col-sm-1 text-center\" style=\"border-bottom:2px solid #DDDDDD;border-top:2px solid #DDDDDD;border-left:1px solid #DDDDDD;\">T O T A L S</th>\n <th class=\"col-sm-1 text-center\" style=\"border-bottom:2px solid black;border-top:2px solid black;border-right:2px solid black;border-left:2px solid black;\">'.number_format($importeResumen,2).'</th>\n <th class=\"col-sm-1 text-center\" style=\"border-bottom:1px solid white;border-top:1px solid white;border-right:1px solid white;border-left:1px solid white;\"></th>\n \n </tr>\n\n\n\n </thead></tbody></table>';\n \n $salida.=$resumenTotal;\n \n \n \n \n return $salida;\n \n }", "function getEstadisticaPorDia() {\n\t\tglobal $mdb2;\n\t\tglobal $log;\n\t\tglobal $current_usuario_id;\n\t\tglobal $dias_semana;\n\t\tglobal $usr;\n\n\t\t/* TEMPLATE DEL GRAFICO */\n\t\t$T =& new Template_PHPLIB(($this->extra[\"imprimir\"])?REP_PATH_PRINTTEMPLATES:REP_PATH_TABLETEMPLATES);\n\t\t$T->setFile('tpl_tabla', 'rendimiento_por_dia.tpl');\n\t\t$T->setBlock('tpl_tabla', 'BLOQUE_TITULO_HORARIOS', 'bloque_titulo_horarios');\n\t\t$T->setBlock('tpl_tabla', 'ES_PRIMERO_DIA', 'es_primero_dia');\n\t\t$T->setBlock('tpl_tabla', 'LISTA_PASOS', 'lista_pasos');\n\t\t$T->setBlock('tpl_tabla', 'BLOQUE_TABLA', 'bloque_tabla');\n\n\n\t\t$T->setVar('__item_orden', $this->extra[\"item_orden\"]);\n\n\t\t$horarios = array($usr->getHorario($this->horario_id));\n\t\tif ($this->horario_id != 0) {\n\t\t\t$horarios[] = $usr->getHorario(0);\n\t\t}\n\n\t\t$orden = 1;\n\t\t$T->setVar('bloque_titulo_horarios', '');\n\t\tforeach ($horarios as $horario) {\n\n\t\t\t/* OBTENER LOS DATOS Y PARSEARLO */\n\t\t\t$sql = \"SELECT * FROM reporte.rendimiento_resumen_global_pordiasemana(\".\n\t\t\t\t\tpg_escape_string($current_usuario_id).\",\".\n\t\t\t\t\tpg_escape_string($this->objetivo_id).\", \".\n\t\t\t\t\tpg_escape_string($horario->horario_id).\",' \".\n\t\t\t\t\tpg_escape_string($this->timestamp->getInicioPeriodo()).\"', '\".\n\t\t\t\t\tpg_escape_string($this->timestamp->getTerminoPeriodo()).\"')\";\n\t\t\t$res =& $mdb2->query($sql);\n\t\t\tif (MDB2::isError($res)) {\n\t\t\t\t$log->setError($sql, $res->userinfo);\n\t\t\t\texit();\n\t\t\t}\n\n\t\t\t$row = $res->fetchRow();\n\t\t\t$dom = new DomDocument();\n\t\t\t$dom->preserveWhiteSpace = false;\n\t\t\t$dom->loadXML($row[\"rendimiento_resumen_global_pordiasemana\"]);\n\t\t\t$xpath = new DOMXpath($dom);\n\t\t\tunset($row[\"rendimiento_resumen_global_pordiasemana\"]);\n\n\t\t\t/* SI NO HAY DATOS MOSTRAR MENSAJE */\n\t\t\tif ($xpath->query('//detalle[@paso_orden]/estadisticas/estadistica')->length == 0) {\n\t\t\t\t$this->resultado = $this->__generarContenedorSinDatos();\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t$conf_objetivo = $xpath->query('/atentus/resultados/propiedades/objetivos/objetivo')->item(0);\n\t\t\t$conf_pasos = $xpath->query(\"paso[@visible=1]\", $conf_objetivo);\n\n\t\t\tif(count($horarios) > 1) {\n\t\t\t\t$T->setVar('__item_horario', $this->extra[\"item_orden\"]);\n\t\t\t\t$T->setVar('__horario_orden', $orden);\n\t\t\t\t$T->setVar('__horario_nombre',$horario->nombre);\n\t\t\t\t$T->parse('bloque_titulo_horarios', 'BLOQUE_TITULO_HORARIOS', false);\n\t\t\t}\n\n\t\t\t$T->setVar('__objetivo_nombre', $conf_objetivo->getAttribute('nombre'));\n\n\t\t\t$linea = 1;\n\t\t\t$T->setVar('lista_pasos', '');\n\t\t\tforeach($dias_semana as $dia_id => $dia_nombre){\n\t\t\t\t$primero = true;\n\n\t\t\t\t/* LISTA DE PASOS */\n\t\t\t\tforeach ($conf_pasos as $conf_paso) {\n\t\t\t\t\t$tag_dato = $xpath->query('//detalle[@dia_id='.(($dia_id == 7)?0:$dia_id).']/detalles/detalle[@paso_orden='.$conf_paso->getAttribute('paso_orden').']/estadisticas/estadistica')->item(0);\n\n\t\t\t\t\t$T->setVar('__print_class', ($linea % 2 == 0)?\"celdaIteracion2\":\"celdaIteracion1\");\n\t\t\t\t\t$T->setVar('__class', ($linea % 2 == 0)?\"celdanegra15\":\"celdanegra10\");\n\n\t\t\t\t\t$T->setVar('es_primero_dia', '');\n\t\t\t\t\tif ($primero) {\n\t\t\t\t\t\t$T->setVar('__dia_nombre', $dia_nombre);\n\t\t\t\t\t\t$T->setVar('__dia_rowspan', $conf_pasos->length);\n\t\t\t\t\t\t$T->parse('es_primero_dia', 'ES_PRIMERO_DIA', false);\n\t\t\t\t\t}\n\t\t\t\t\t$T->setVar('__paso_nombre', $conf_paso->getAttribute('nombre'));\n\t\t\t\t\t$T->setVar('__paso_minimo', number_format(($tag_dato == null)?0:$tag_dato->getAttribute('tiempo_min'), 3, ',', ''));\n\t\t\t\t\t$T->setVar('__paso_maximo', number_format(($tag_dato == null)?0:$tag_dato->getAttribute('tiempo_max'), 3, ',', ''));\n\t\t\t\t\t$T->setVar('__paso_promedio', number_format(($tag_dato == null)?0:$tag_dato->getAttribute('tiempo_prom'), 3, ',', ''));\n\t\t\t\t\t$T->parse('lista_pasos', 'LISTA_PASOS', true);\n\t\t\t\t\t$primero = false;\n\t\t\t\t\t$linea++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t$T->parse('bloque_tabla', 'BLOQUE_TABLA', true);\n\t\t\t$orden++;\n\t\t}\n\t\t$this->tiempo_expiracion = (strtotime($xpath->query(\"//fecha_expiracion\")->item(0)->nodeValue) - strtotime($xpath->query(\"//fecha\")->item(0)->nodeValue));\n\t\t$this->resultado = $T->parse('out', 'tpl_tabla');\n\t}", "public function select($semillero){\n $id=$semillero->getId();\n\n try {\n $sql= \"SELECT `id`, `nombre`, `sigla`, `fecha_creacion`, `aval_dic_grupo`, `aval_dic_sem`, `aval_dic_unidad`, `grupo_investigacion_id`, `unidad_academica`\"\n .\"FROM `semillero`\"\n .\"WHERE `id`='$id'\";\n $data = $this->ejecutarConsulta($sql);\n for ($i=0; $i < count($data) ; $i++) {\n $semillero->setId($data[$i]['id']);\n $semillero->setNombre($data[$i]['nombre']);\n $semillero->setSigla($data[$i]['sigla']);\n $semillero->setFecha_creacion($data[$i]['fecha_creacion']);\n $semillero->setAval_dic_grupo($data[$i]['aval_dic_grupo']);\n $semillero->setAval_dic_sem($data[$i]['aval_dic_sem']);\n $semillero->setAval_dic_unidad($data[$i]['aval_dic_unidad']);\n $grupo_investigacion = new Grupo_investigacion();\n $grupo_investigacion->setId($data[$i]['grupo_investigacion_id']);\n $semillero->setGrupo_investigacion_id($grupo_investigacion);\n $semillero->setUnidad_academica($data[$i]['unidad_academica']);\n\n }\n return $semillero; } catch (SQLException $e) {\n throw new Exception('Primary key is null');\n return null;\n }\n }", "function historial(){\n\n\t\t//Instanciamos y nos conectamos a la bd\n\t\t$Conexion = floopets_BD::Connect();\n\t\t$Conexion->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n\t\t//Crear el query que vamos a realizar\n\t\t$consulta = \"SELECT tipo_denuncia.*,denuncia.* FROM denuncia INNER JOIN tipo_denuncia ON denuncia.td_cod_tipo_denuncia=tipo_denuncia.td_cod_tipo_denuncia WHERE denuncia.de_estado='tomado'\";\n\t\t$query = $Conexion->prepare($consulta);\n\t\t$query->execute();\n\t\t//Devolvemos el resultado en un arreglo\n\t\t//Fetch: es el resultado que arroja la consulta en forma de un vector o matriz segun sea el caso\n\t\t//Para consultar donde arroja mas de un dato el fatch debe ir acompañado con la palabra ALL\n\t\t$resultado = $query->fetchALL(PDO::FETCH_BOTH);\n\t\treturn $resultado;\n\t\tfloopets_BD::Disconnect();\n\t}", "public function readTask(){\n $query = \"SELECT ordine.id_ordine, ordine.id_fornitore, fornitore.nome as fornitore, ordine.articolo, articolo.taglia, ordine.stato \n FROM \" . $this->table_name . \" LEFT JOIN fornitore ON ordine.id_fornitore = fornitore.id_fornitore \n INNER JOIN articolo ON ordine.id_ordine = articolo.id_ordine \n WHERE stato = 1\";\n $stmt = $this->conn->prepare( $query );\n $stmt->execute();\n return $stmt;\n }", "public function getForDataTable()\n {\n\n $q = $this->query();\n if (request('module') == 'task') {\n $q->where('section', '=', 2);\n } else {\n $q->where('section', '=', 1);\n }\n return\n $q->get();\n }", "public function readTaskc(){\n $query = \"SELECT ordine.id_ordine, ordine.id_fornitore, fornitore.nome as fornitore, ordine.articolo, articolo.taglia, ordine.stato \n FROM \" . $this->table_name . \" LEFT JOIN fornitore ON ordine.id_fornitore = fornitore.id_fornitore \n INNER JOIN articolo ON ordine.id_ordine = articolo.id_ordine WHERE stato = 2\";\n $stmt = $this->conn->prepare( $query );\n $stmt->execute();\n return $stmt;\n }", "public function select($datos_){\n $id=$datos_->getId();\n\n try {\n $sql= \"SELECT `id`, `nombre_proyecto`, `nombre_actividad`, `modalidad_participacion`, `responsable`, `fecha_realizacion`, `producto`, `semillero_id`\"\n .\"FROM `datos_`\"\n .\"WHERE `id`='$id'\";\n $data = $this->ejecutarConsulta($sql);\n for ($i=0; $i < count($data) ; $i++) {\n $datos_->setId($data[$i]['id']);\n $datos_->setNombre_proyecto($data[$i]['nombre_proyecto']);\n $datos_->setNombre_actividad($data[$i]['nombre_actividad']);\n $datos_->setModalidad_participacion($data[$i]['modalidad_participacion']);\n $datos_->setResponsable($data[$i]['responsable']);\n $datos_->setFecha_realizacion($data[$i]['fecha_realizacion']);\n $datos_->setProducto($data[$i]['producto']);\n $semillero = new Semillero();\n $semillero->setId($data[$i]['semillero_id']);\n $datos_->setSemillero_id($semillero);\n\n }\n return $datos_; } catch (SQLException $e) {\n throw new Exception('Primary key is null');\n return null;\n }\n }", "function primer_dia_periodo() {\n\n $sql=\"select fecha_inicio from mocovi_periodo_presupuestario where actual=true\";\n $resul=toba::db('designa')->consultar($sql);\n return $resul[0]['fecha_inicio'];\n \n }", "function iniciar_sincro($tabla)\n { \n //Marcar momento de inicio\n $registro['fecha_inicio'] = date('Y-m-d H:i:s');\n $condicion = \"nombre_tabla = '{$tabla}'\";\n \n $this->Pcrn->guardar('sis_tabla', $condicion, $registro);\n }", "public function get_datos_pac_rec_ini($sucursal,$id_usuario){\n\n $conectar= parent::conexion();\n\t \n\t $sql= \"select v.id_ventas,v.sucursal,v.subtotal,v.numero_venta,p.nombres,p.telefono,p.id_paciente,v.tipo_pago,v.vendedor from ventas as v join pacientes as p where p.id_paciente=v.id_paciente and v.sucursal=? and v.id_usuario=? order by id_ventas DESC limit 1;\";\n\n $sql=$conectar->prepare($sql);\n $sql->bindValue(1, $sucursal);\n $sql->bindValue(2, $id_usuario);\n $sql->execute();\n\n return $resultado= $sql->fetchAll(PDO::FETCH_ASSOC);\n\n}", "public function getDados()\n {\n $aLinhas = array();\n\n /**\n * montamos as datas, e processamos o balancete de verificação\n */\n $oDaoPeriodo = db_utils::getDao(\"periodo\");\n $sSqlDadosPeriodo = $oDaoPeriodo->sql_query_file($this->iCodigoPeriodo);\n $rsPeriodo = db_query($sSqlDadosPeriodo);\n $oDadosPerido = db_utils::fieldsMemory($rsPeriodo, 0);\n $sDataInicial = \"{$this->iAnoUsu}-01-01\";\n $iUltimoDiaMes = cal_days_in_month(CAL_GREGORIAN, $oDadosPerido->o114_mesfinal, $this->iAnoUsu);\n $sDataFinal = \"{$this->iAnoUsu}-{$oDadosPerido->o114_mesfinal}-{$iUltimoDiaMes}\";\n $sWherePlano = \" c61_instit in ({$this->getInstituicoes()}) \";\n /**\n * processa o balancete de verificação\n */\n $rsPlano = db_planocontassaldo_matriz($this->iAnoUsu,\n $sDataInicial,\n $sDataFinal,\n false,\n $sWherePlano,\n '',\n 'true',\n 'true');\n\n $iTotalLinhasPlano = pg_num_rows($rsPlano);\n /**\n * percorremos a slinhas cadastradas no relatorio, e adicionamos os valores cadastrados manualmente.\n */\n $aLinhasRelatorio = $this->oRelatorioLegal->getLinhasCompleto();\n for ($iLinha = 1; $iLinha <= count($aLinhasRelatorio); $iLinha++) {\n\n $aLinhasRelatorio[$iLinha]->setPeriodo($this->iCodigoPeriodo);\n $aColunasRelatorio = $aLinhasRelatorio[$iLinha]->getCols($this->iCodigoPeriodo);\n $aColunaslinha = array();\n $oLinha = new stdClass();\n $oLinha->totalizar = $aLinhasRelatorio[$iLinha]->isTotalizador();\n $oLinha->descricao = $aLinhasRelatorio[$iLinha]->getDescricaoLinha();\n $oLinha->colunas = $aColunasRelatorio;\n $oLinha->nivellinha = $aLinhasRelatorio[$iLinha]->getNivel();\n foreach ($aColunasRelatorio as $oColuna) {\n\n $oLinha->{$oColuna->o115_nomecoluna} = 0;\n if ( !$aLinhasRelatorio[$iLinha]->isTotalizador() ) {\n $oColuna->o116_formula = '';\n }\n }\n\n if (!$aLinhasRelatorio[$iLinha]->isTotalizador()) {\n\n $aValoresColunasLinhas = $aLinhasRelatorio[$iLinha]->getValoresColunas(null, null, $this->getInstituicoes(),\n $this->iAnoUsu);\n\n $aParametros = $aLinhasRelatorio[$iLinha]->getParametros($this->iAnoUsu, $this->getInstituicoes());\n foreach($aValoresColunasLinhas as $oValor) {\n foreach ($oValor->colunas as $oColuna) {\n $oLinha->{$oColuna->o115_nomecoluna} += $oColuna->o117_valor;\n }\n }\n\n /**\n * verificamos se a a conta cadastrada existe no balancete, e somamos o valor encontrado na linha\n */\n for ($i = 0; $i < $iTotalLinhasPlano; $i++) {\n\n $oResultado = db_utils::fieldsMemory($rsPlano, $i);\n\n\n $oParametro = $aParametros;\n\n foreach ($oParametro->contas as $oConta) {\n\n $oVerificacao = $aLinhasRelatorio[$iLinha]->match($oConta, $oParametro->orcamento, $oResultado, 3);\n\n if ($oVerificacao->match) {\n\n $this->buscarInscricaoEBaixa($oResultado, $iLinha, $sDataInicial, $sDataFinal);\n\n if ( $oVerificacao->exclusao ) {\n\n $oResultado->saldo_anterior *= -1;\n $oResultado->saldo_anterior_debito *= -1;\n $oResultado->saldo_anterior_credito *= -1;\n $oResultado->saldo_final *= -1;\n }\n\n $oLinha->sd_ex_ant += $oResultado->saldo_anterior;\n $oLinha->inscricao += $oResultado->saldo_anterior_credito;\n $oLinha->baixa += $oResultado->saldo_anterior_debito;\n $oLinha->sd_ex_seg += $oResultado->saldo_final;\n }\n }\n }\n }\n $aLinhas[$iLinha] = $oLinha;\n }\n\n unset($aLinhasRelatorio);\n\n /**\n * calcula os totalizadores do relatório, aplicando as formulas.\n */\n foreach ($aLinhas as $oLinha) {\n\n if ($oLinha->totalizar) {\n\n foreach ($oLinha->colunas as $iColuna => $oColuna) {\n\n if (trim($oColuna->o116_formula) != \"\") {\n\n $sFormulaOriginal = ($oColuna->o116_formula);\n $sFormula = $this->oRelatorioLegal->parseFormula('aLinhas', $sFormulaOriginal, $iColuna, $aLinhas);\n $evaluate = \"\\$oLinha->{$oColuna->o115_nomecoluna} = {$sFormula};\";\n ob_start();\n eval($evaluate);\n $sRetorno = ob_get_contents();\n ob_clean();\n if (strpos(strtolower($sRetorno), \"parse error\") > 0 || strpos(strtolower($sRetorno), \"undefined\" > 0)) {\n $sMsg = \"Linha {$iLinha} com erro no cadastro da formula<br>{$oColuna->o116_formula}\";\n throw new Exception($sMsg);\n\n }\n }\n }\n }\n }\n\n return $aLinhas;\n }", "public function getIncapaEmp($id, $tabla)\n {\n $tipo=0;\n if ( $tabla=='n_incapacidades' )\n $tipo=0;\n else \n $tipo=1;\n\n $result=$this->adapter->query(\"insert into n_nomina_e_i (idNom, idEmp, idInc, dias, diasAp, diasDp, reportada, tipo) \n( select a.id, b.idEmp, c.id as idInc, ( DATEDIFF( c.fechaf, c.fechai ) +1 ) as diasI, # Dias totales de incapacidad\n\n # CUANDO LA INCAPACIDAD ESTA POR DEBAJO DEL PERIODO INICIAL DE NOMINA ----------------------------------\n( case when d.incAtrasada = 1 then \ncase when ( ( c.fechai < a.fechaI) and ( c.fechaf < a.fechaI ) )\n then ( DATEDIFF( c.fechaf , c.fechai ) + 1 ) else \n case when ( ( c.fechai < a.fechaI) and ( c.fechaf >= a.fechaI ) ) \n then ( DATEDIFF( a.fechaI , c.fechai ) ) else 0 end \n end \n else 0 end ) \n as diasAp, # Dias no reportados antes de periodo\n \n # CUANDO LA INCAPACIDAD TIENE PERIODO SUPERIOR AL PERIODO INICIAL DE NOMINA ----------------------------------\ncase when ( ( c.fechai >= a.fechaI) and ( c.fechaf <= a.fechaF) ) # Incapacidad dentro del periodo\n then ( DATEDIFF( c.fechaf , c.fechai )+1 )\n else \n case when ( ( c.fechai <= a.fechaI) and ( c.fechaf >= a.fechaI) ) # Incapacidad antes y despues del periodo de nomina\n then \n case when ( ( DATEDIFF( c.fechaf, a.fechaI )+1 ) > 15 ) then \n 15 \n else \n ( DATEDIFF( c.fechaf, a.fechaI )+1 ) # pasa de periodo a periodo y se de tomar la fecha inicio de nomina menos la fecha fin dincapacidad\n end \n else \n case when ( ( c.fechai >= a.fechaI) and ( c.fechaf >= a.fechaF) ) then # Inicia en el periodo y pasa al otro periodo de nomina\n ( DATEDIFF( a.fechaF, c.fechai )+1 )\n else 0 end \n end \n end as diasDp,\n c.reportada, # Dias no reportados despues del periodo \n \".$tipo.\" \nfrom n_nomina a \ninner join n_nomina_e b on b.idNom = a.id\ninner join \".$tabla.\" c on c.reportada in ('0','1') and c.idEmp = b.idEmp # Se cargan todas las incapacidades antes de fin del perioso en cuestio\nleft join c_general d on d.id = 1 # Buscar datos de la confguracion general para incapaciades \nwhere a.id = \".$id.\" ) \",Adapter::QUERY_MODE_EXECUTE);\n//and ( (c.fechai <= a.fechaF) and (c.fechaf >= a.fechaI ) ) ## OJOA ANALIZAR ESTO DE LA MEJR FORMA \n }", "public function SelecionaTudo() {\n try {\n //Monta a Query\n $query = Doctrine_Query::create()\n ->select(\"ws.*, MONTHNAME(ws.data) mes, YEAR(ws.data) ano\")\n ->from($this->table_alias)\n ->orderBy(\"ws.data DESC\")\n ->offset(1)\n ->limit(6)\n ->execute()\n ->toArray();\n\n return $query;\n } catch (Doctrine_Exception $e) {\n echo $e->getMessage();\n }\n }", "function get_id_periodo ($cuatrimestre, $anio_lectivo){\n $sql=\"SELECT t_p.id_periodo\n FROM periodo t_p \n JOIN cuatrimestre t_c ON (t_p.id_periodo=t_c.id_periodo)\n WHERE t_c.numero=$cuatrimestre AND t_p.anio_lectivo=$anio_lectivo \";\n \n $periodo=toba::db('gestion_aulas')->consultar($sql);\n \n return ($periodo[0]);\n }", "function ListaCompetenciaDeUsuario(){\n \n include(\"../modelo/cnx.php\");\n $cnx = pg_connect($entrada) or die (\"Error de conexion. \". pg_last_error());\n session_start();\n $id_usuario=$_SESSION[\"id_usuario\"];\n $seleccionar=\"SELECT competencia.id_competencia, competencia.nombre_competencia, fecha_inicio_competencia, fecha_fin_competencia\n FROM equipo_usuario, equipo, competencia_equipo, competencia, usuario\n where competencia.id_competencia=competencia_equipo.id_competencia and\n competencia_equipo.id_equipo=equipo.id_equipo and \n equipo.id_equipo=equipo_usuario.id_equipo and\n equipo_usuario.id_usuario='$id_usuario'\n group by competencia.id_competencia, competencia.nombre_competencia, fecha_inicio_competencia, fecha_fin_competencia\n order by competencia.id_competencia desc\";\n \n $result = pg_query($seleccionar) or die('ERROR AL INSERTAR DATOS: ' . pg_last_error());\n $columnas = pg_numrows($result);\n $this->formu.='<table><tr><td>Identificador</td>';\n $this->formu.='<td>Nombre Competencia</td>';\n $this->formu.='<td>Fecha Inicio</td>';\n $this->formu.='<td>Fecha Final</td></tr>';\n for($i=0;$i<=$columnas-1; $i++){\n $line = pg_fetch_array($result, null, PGSQL_ASSOC);\n $this->formu.='<tr> \n <td>'.$line['id_competencia'].'</td> \n <td>'.$line['nombre_competencia'].'</td>\n <td>'.$line['fecha_inicio_competencia'].'</td>\n <td>'.$line['fecha_fin_competencia'].'</td>\n </tr>';\n }\n $this->formu.='</table>';\n\n return $this->formu; \n }", "function obtenerSesion(){\n\t\t\n\t\t$query1 = ('select sesion.id, sesion.checkin, sesion.pagada, sesion.id_servicio, sesion.id_usuario, sesion.id_agenda, sesion.ejecutada, usuario.nombre,\n\t\t\t\t\tusuario.apellido, servicio.descripcion , cliente.nombre as nombre_cliente , cliente.apellido as apellido_cliente from sesion \n\t\t\t\t\tInner JOIN usuario\n\t\t\t\t\ton sesion.id_usuario = usuario.id\n\t\t\t\t\tInner Join servicio\n\t\t\t\t\ton sesion.id_servicio = servicio.id\n\t\t\t\t\tInner Join cliente\n\t\t\t\t\ton sesion.id_cliente = cliente.id'); //QUERY PARA OBTENER TODO DE UNA VEZ.\n\t\t$query = $this->db->query($query1);\n\t\t\n\t\t\n\t //$query = $this->db->get('sesion');\n\t if($query-> num_rows() > 0) return $query->result_array();\n\t else return false ;\n\t \n\t \n\t}", "public function readPreDetalle(){\n $sql='SELECT idPreDetalle, producto.nombre as producto, predetalle.cantidad as cantidad, producto.precio as precio, producto.foto as foto,(producto.precio * predetalle.cantidad) as total , producto.cantidad as cantidadP FROM producto, predetalle WHERE producto.idProducto = predetalle.idProducto AND idCliente = ?';\n $params=array($this->cliente);\n return Database::getRows($sql, $params);\n }", "function getEstadisticaDetallado() {\n\t\tglobal $mdb2;\n\t\tglobal $log;\n\t\tglobal $current_usuario_id;\n\t\tglobal $usr;\n\n\t\t# Variables para eventos especiales marcados por el cliente codigo 9.\n\t\t$event = new Event;\n\t\t$usr = new Usuario($current_usuario_id);\n\t\t$usr->__Usuario();\n\t\t$graficoSvg = new GraficoSVG();\n\n\n\t\t$timeZoneId = $usr->zona_horaria_id;\n\t\t$arrTime = Utiles::getNameZoneHor($timeZoneId); \t\t\n\t\t$timeZone = $arrTime[$timeZoneId];\n\t\t$tieneEvento = 'false';\n\t\t$arrayDateStart = array();\t\t\n\t\t$nameFunction = 'EstadisticaDet';\n\t\t$data = null;\n\t\t$ids = null;\n\n\t\t/* TEMPLATE DEL GRAFICO */\n\t\t$T =& new Template_PHPLIB(($this->extra[\"imprimir\"])?REP_PATH_PRINTTEMPLATES:REP_PATH_TABLETEMPLATES);\n\t\t$T->setFile('tpl_tabla', 'comparativo_resumen.tpl');\n\t\t$T->setBlock('tpl_tabla', 'BLOQUE_TITULO_HORARIOS', 'bloque_titulo_horarios');\n\t\t$T->setBlock('tpl_tabla', 'ES_PRIMERO_MONITOR', 'es_primero_monitor');\n\t\t$T->setBlock('tpl_tabla', 'ES_PRIMERO_TOTAL', 'es_primero_total');\n\t\t$T->setBlock('tpl_tabla', 'LISTA_PASOS', 'lista_pasos');\n\t\t$T->setBlock('tpl_tabla', 'BLOQUE_TABLA', 'bloque_tabla');\n\n\t\t$T->setVar('__item_orden', $this->extra[\"item_orden\"]);\n\t\t# Variables para mantenimiento.\n\t\t$T->setVar('__path_jquery_ui', REP_PATH_JQUERY_UI);\n\t\n\t\t$horarios = array($usr->getHorario($this->horario_id));\n\t\tif ($this->horario_id != 0) {\n\t\t\t$horarios[] = $usr->getHorario(0);\n\t\t}\n\n\t\t$orden = 1;\n\t\t$T->setVar('bloque_titulo_horarios', '');\n\t\tforeach ($horarios as $horario) {\n\n\t\t\t/* OBTENER LOS DATOS Y PARSEARLO */\n\t\t\t$sql = \"SELECT * FROM reporte.comparativo_resumen_parcial(\".\n\t\t\t\t\tpg_escape_string($current_usuario_id).\",\".\n\t\t\t\t\tpg_escape_string($this->objetivo_id).\", \".\n\t\t\t\t\tpg_escape_string($horario->horario_id).\",' \".\n\t\t\t\t\tpg_escape_string($this->timestamp->getInicioPeriodo()).\"', '\".\n\t\t\t\t\tpg_escape_string($this->timestamp->getTerminoPeriodo()).\"')\";\n\t\t\t$res =& $mdb2->query($sql);\n// \t\t\tprint($sql);\n\t\t\tif (MDB2::isError($res)) {\n\t\t\t\t$log->setError($sql, $res->userinfo);\n\t\t\t\texit();\n\t\t\t}\n\n\t\t\t$row = $res->fetchRow();\n\t\t\t$dom = new DomDocument();\n\t\t\t$dom->preserveWhiteSpace = false;\n\t\t\t$dom->loadXML($row[\"comparativo_resumen_parcial\"]);\n\t\t\t$xpath = new DOMXpath($dom);\n\t\t\tunset($row[\"comparativo_resumen_parcial\"]);\n\n\t\t\tif ($xpath->query('//detalle[@paso_orden]/estadisticas/estadistica')->length == 0) {\n\t\t\t\t$this->resultado = $this->__generarContenedorSinDatos();\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t$conf_objetivo = $xpath->query('/atentus/resultados/propiedades/objetivos/objetivo')->item(0);\n\t\t\t$conf_pasos = $xpath->query(\"paso[@visible=1]\", $conf_objetivo);\n\t\t\t$conf_nodos = $xpath->query('//nodos/nodo');\n\n\t\t\tif(count($horarios) > 1) {\n\t\t\t\t$T->setVar('__item_horario', $this->extra[\"item_orden\"]);\n\t\t\t\t$T->setVar('__horario_orden', $orden);\n\t\t\t\t$T->setVar('__horario_nombre',$horario->nombre);\n\t\t\t\t$T->parse('bloque_titulo_horarios', 'BLOQUE_TITULO_HORARIOS', false);\n\t\t\t}\n\n\t\t\t\n\t\t\t# Obtención de los eventos especiales marcados por el cliente\n\t\t\tforeach ($xpath->query(\"/atentus/resultados/detalles_marcado/detalle/marcado\") as $tag_marcado) {\n\t\t\t$ids = $ids.','.$tag_marcado->getAttribute('mantenimiento_id');\n\t\t\t$marcado = true;\n\t\t\t}\t\t\n\t\t\t\n\t\t\t# Verifica que exista marcado evento cliente.\n\t\t\tif ($marcado == true) {\n\n\t\t\t\t$dataMant = $event->getData(substr($ids, 1), $timeZone);\n\t\t\t\t$character = array(\"{\", \"}\");\n\t\t\t\t$objetives = explode(',',str_replace($character,\"\",($dataMant[0]['objetivo_id'])));\n\t\t\t\t$tieneEvento = 'true';\n\t\t\t\t$encode = json_encode($dataMant);\n\t\t\t\t$nodoId = (string)0;\n\t\t\t\t$T->setVar('__tiene_evento', $tieneEvento);\n\t\t\t\t$T->setVar('__name', $nameFunction);\n\n\t\t\t}\n\n\t\t\t/* LISTA DE MONITORES */\n\t\t\t$linea = 1;\n\t\t\t$T->setVar('lista_pasos', '');\n\t\t\tforeach($conf_nodos as $conf_nodo) {\n\t\t\t\t$primero = true;\n\t\t\t\t$tag_nodo = $xpath->query('//detalle[@nodo_id='.$conf_nodo->getAttribute('nodo_id').']/estadisticas/estadistica')->item(0);\n\n\t\t\t\t/* LISTA DE PASOS */\n\t\t\t\tforeach($conf_pasos as $conf_paso) {\n\t\t\t\t\t$tag_dato = $xpath->query('//detalle[@nodo_id='.$conf_nodo->getAttribute('nodo_id').']/detalles/detalle[@paso_orden='.$conf_paso->getAttribute('paso_orden').']/estadisticas/estadistica')->item(0);\n\t\t\t\t\tif($tag_dato != null) {\n\t\t\t\t\t\t$T->setVar('__print_class', ($linea % 2 == 0)?\"celdaIteracion2\":\"celdaIteracion1\");\n\t\t\t\t\t\t$T->setVar('__class', ($linea % 2 == 0)?\"celdanegra15\":\"celdanegra10\");\n\n\t\t\t\t\t\t$T->setVar('es_primero_monitor', '');\n\t\t\t\t\t\t$T->setVar('es_primero_total', '');\n\t\t\t\t\t\tif ($primero) {\n\t\t\t\t\t\t\t$T->setVar('__monitor_nombre', $conf_nodo->getAttribute('nombre'));\n\t\t\t\t\t\t\t$T->setVar('__monitor_rowspan', $conf_pasos->length);\n\t\t\t\t\t\t\t$T->setVar('__monitor_total_monitoreo', $tag_nodo->getAttribute('cantidad'));\n\t\t\t\t\t\t\t$T->parse('es_primero_monitor', 'ES_PRIMERO_MONITOR', false);\n\t\t\t\t\t\t\t$T->parse('es_primero_total', 'ES_PRIMERO_TOTAL', false);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$T->setVar('__paso_nombre', $conf_paso->getAttribute(\"nombre\"));\n\t\t\t\t\t\t$T->setVar('__paso_minimo', number_format($tag_dato->getAttribute('tiempo_min'), 3, ',', ''));\n\t\t\t\t\t\t$T->setVar('__paso_maximo', number_format($tag_dato->getAttribute('tiempo_max'), 3, ',', ''));\n\t\t\t\t\t\t$T->setVar('__paso_promedio', number_format($tag_dato->getAttribute('tiempo_prom'), 3, ',', ''));\n\t\t\t\t\t\t$T->setVar('__paso_uptime', number_format($tag_dato->getAttribute('uptime'), 3, ',', ''));\n\t\t\t\t\t\t$T->setVar('__paso_downtime', number_format($tag_dato->getAttribute('downtime'), 3, ',', ''));\n\t\t\t\t\t\t$T->setVar('__paso_no_monitoreo', number_format($tag_dato->getAttribute('sin_monitoreo'), 3, ',', ''));\n\t\t\t\t\t\t$T->setVar('__paso_evento_especial', number_format($tag_dato->getAttribute('marcado_cliente'), 3, ',', ''));\n\n\t\t\t\t\t\t$T->parse('lista_pasos', 'LISTA_PASOS', true);\n\t\t\t\t\t\t$primero = false;\n\t\t\t\t\t\t$linea++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t$T->parse('bloque_tabla', 'BLOQUE_TABLA', true);\n\t\t\t$orden++;\n\t\t}\n\t\t$this->tiempo_expiracion = (strtotime($xpath->query(\"//fecha_expiracion\")->item(0)->nodeValue) - strtotime($xpath->query(\"//fecha\")->item(0)->nodeValue));\n\t\t$this->resultado = $T->parse('out', 'tpl_tabla');\n\n\t\t# Agrega el acordeon cuando existan eventos.\n\t\tif (count($dataMant)>0){\n\t\t\t$this->resultado.= $graficoSvg->getAccordion($encode,$nameFunction);\n\t\t}\n\t\treturn $this->resultado;\n\t}", "function tablaDatos(){\n\n $editar = $this->Imagenes($this->PrimaryKey,0);\n $eliminar = $this->Imagenes($this->PrimaryKey,1);\n $sql = 'SELECT\n C.id_componentes,\n P.descripcion planta,\n S.descripcion secciones,\n E.descripcion Equipo,\n C.`descripcion` Componente\n ,'.$editar.','.$eliminar.' \nFROM\n `componentes` C\nINNER JOIN\n equipos E ON E.id_equipos = C.`id_equipos`\nINNER JOIN\n secciones S ON S.id_secciones = E.id_secciones\nINNER JOIN\n plantas P ON P.id_planta = S.id_planta\nWHERE\n \n C.`activo` = 1';\n \n $datos = $this->Consulta($sql,1); \n if(count($datos)){\n $_array_formu = array();\n $_array_formu = $this->generateHead($datos);\n $this->CamposHead = ( isset($_array_formu[0]) && is_array($_array_formu[0]) )? $_array_formu[0]: array();\n \n $tablaHtml = '<div class=\"row\">\n <div class=\"col-md-12\">\n <div class=\"panel panel-default\">\n <div class=\"panel-body recargaDatos\" style=\"page-break-after: always;\">\n <div class=\"table-responsive\">';\n $tablaHtml .='';\n \t\t$tablaHtml .= $this->print_table($_array_formu, 7, true, 'table table-striped table-bordered',\"id='tablaDatos'\");\n \t\t$tablaHtml .=' </div>\n </div>\n </div>\n </div>\n </div>\n ';\n }else{\n $tablaHtml = '<div class=\"col-md-8\">\n <div class=\"alert alert-info alert-dismissable\">\n <button class=\"close\" aria-hidden=\"true\" data-dismiss=\"alert\" type=\"button\">×</button>\n <strong>Atenci&oacute;n</strong>\n No se encontraron registros.\n </div>\n </div>';\n }\n \n if($this->_datos=='r') echo $tablaHtml;\n else return $tablaHtml;\n \n }", "static public function mdlMostrarInventario( ){\n\n\t\t\t$stmt = Conexion::conectar()->prepare(\"\n\n\n \nSELECT inventario.id, codigo_barras, inventario.nombre, inventario.medida_ingreso, COUNT( inventario_x_unidad_medida_salida.id_inventario) as medida_salida , inventario.actual_cantidad, inventario.cantidad_alerta, inventario.actual_costo_valorizado, inventario.costo_ideal\nFROM inventario \nLEFT JOIN inventario_x_unidad_medida_salida ON inventario_x_unidad_medida_salida.id_inventario = inventario.id\nWHERE estado = 1\nGROUP BY codigo_barras, inventario.nombre, inventario.medida_ingreso, inventario.actual_cantidad, inventario.cantidad_alerta, inventario.actual_costo_valorizado, inventario.costo_ideal, inventario_x_unidad_medida_salida.id_inventario;\n\n\n\n\n\t\t\t\t\");\n\n\t\t\t$stmt -> execute();\n\n\t\t\treturn $stmt -> fetchAll();\n\n \n\t\t$stmt-> close();\n\n\t\t$stmt = null;\n\n\t}", "public function exec_SELECTgetSingleRow() {}", "function listarTablaInstancia(){\n\t\t$this->procedimiento='wf.ft_tabla_instancia_sel';\n\t\t$this->transaccion='WF_TABLAINS_SEL';\n\t\t$this->tipo_procedimiento='SEL';//tipo de transaccion\n\t\t\n\t\t$this->setParametro('id_tabla','id_tabla','integer');\n\t\t$this->setParametro('historico','historico','varchar');\n\t\t$this->setParametro('tipo_estado','tipo_estado','varchar');\n\t\t\n\t\t//Definicion de la lista del resultado del query\n\t\t$this->captura('id_' . $_SESSION['_wf_ins_'.$this->objParam->getParametro('tipo_proceso').'_'.$this->objParam->getParametro('tipo_estado')]['atributos']['bd_nombre_tabla'],'int4');\n\t\t\n\t\tif ($_SESSION['_wf_ins_'.$this->objParam->getParametro('tipo_proceso').'_'.$this->objParam->getParametro('tipo_estado')]['atributos']['vista_tipo'] == 'maestro') {\n\t\t\t\t\n\t\t\t$this->captura('estado','varchar');\n\t\t\t$this->captura('id_estado_wf','int4');\n\t\t\t$this->captura('id_proceso_wf','int4');\n\t\t\t$this->captura('obs','text');\n\t\t\t$this->captura('nro_tramite','varchar');\n\t\t}\n\t\t\n\t\tforeach ($_SESSION['_wf_ins_'.$this->objParam->getParametro('tipo_proceso').'_'.$this->objParam->getParametro('tipo_estado')]['columnas'] as $value) {\n\t\t\t\n\t\t\t$this->captura($value['bd_nombre_columna'],$value['bd_tipo_columna']);\t\t\n\t\t\t//campos adicionales\n\t\t\tif ($value['bd_campos_adicionales'] != '' && $value['bd_campos_adicionales'] != null) {\n\t\t\t\t$campos_adicionales = explode(',', $value['bd_campos_adicionales']);\n\t\t\t\t\n\t\t\t\tforeach ($campos_adicionales as $campo_adicional) {\n\t\t\t\t\t\n\t\t\t\t\t$valores = explode(' ', $campo_adicional);\n\t\t\t\t\t$this->captura($valores[1],$valores[2]);\n\t\t\t\t}\n\t\t\t}\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t$this->captura('estado_reg','varchar');\t\t\n\t\t$this->captura('fecha_reg','timestamp');\n\t\t$this->captura('id_usuario_reg','int4');\n\t\t$this->captura('id_usuario_mod','int4');\n\t\t$this->captura('fecha_mod','timestamp');\n\t\t$this->captura('usr_reg','varchar');\n\t\t$this->captura('usr_mod','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}", "public function get_entries()\n {\n $this->db->select('id_factura,concepto_factura,fec_factura,valor,nombres_socio,tipo_socio,fondos_socio');\n $this->db->from('factura');\n $this->db->join('socio', 'socio.id_socio=factura.id_socio');\n $query = $this->db->get();\n if (count($query->result()) > 0) {\n return $query->result();\n }\n }", "public function read(){\n $query = \"SELECT ordine.id_ordine, ordine.id_fornitore, fornitore.nome as fornitore, ordine.articolo, articolo.taglia, ordine.stato \n FROM \" . $this->table_name . \" LEFT JOIN fornitore ON ordine.id_fornitore = fornitore.id_fornitore INNER JOIN articolo ON ordine.id_ordine = articolo.id_ordine\";\n $stmt = $this->conn->prepare( $query );\n $stmt->execute();\n return $stmt;\n }", "public function select($cargo){\n $id=$cargo->getId();\n\n try {\n $sql= \"SELECT `id`, `fecha_ingreso`, `empresa_idempresa`, `area_empresa_idarea_emp`, `cargo_empreso_idcargo`, `puesto_idpuesto`\"\n .\"FROM `cargo`\"\n .\"WHERE `id`='$id'\";\n $data = $this->ejecutarConsulta($sql);\n for ($i=0; $i < count($data) ; $i++) {\n $cargo->setId($data[$i]['id']);\n $cargo->setFecha_ingreso($data[$i]['fecha_ingreso']);\n $empresa = new Empresa();\n $empresa->setIdempresa($data[$i]['empresa_idempresa']);\n $cargo->setEmpresa_idempresa($empresa);\n $area_empresa = new Area_empresa();\n $area_empresa->setIdarea_emp($data[$i]['area_empresa_idarea_emp']);\n $cargo->setArea_empresa_idarea_emp($area_empresa);\n $cargo_empreso = new Cargo_empreso();\n $cargo_empreso->setIdcargo($data[$i]['cargo_empreso_idcargo']);\n $cargo->setCargo_empreso_idcargo($cargo_empreso);\n $puesto = new Puesto();\n $puesto->setIdpuesto($data[$i]['puesto_idpuesto']);\n $cargo->setPuesto_idpuesto($puesto);\n\n }\n return $cargo; } catch (SQLException $e) {\n throw new Exception('Primary key is null');\n return null;\n }\n }", "function ordina_data_pagamento(){\n $mysqli = connetti();\n $sql = \"SELECT * FROM spesa WHERE 1=1 ORDER BY data_pagamento_spesa ASC\";\n $risultato_query = $mysqli->query($sql);\n $array_righe = [];\n while($righe_tabella = $risultato_query->fetch_array(MYSQLI_ASSOC)){\n $array_righe[] = $righe_tabella;\n }\n chiudi_connessione($mysqli);\n return $array_righe;\n}", "static public function mdlIngresarSalida($tabla,$nuevoCliente,$fechaSalida,$numSalidaAlmacen,$id_caja, $espromo, $id_producto,$cantidad,$precio_venta,$id_almacen, $tipo_mov, $id_tipovta, $ultusuario,$pagocliente){\n\t//OBTIENE EL NOMBRE DEL MES ACTUAL \t\t\n\t$nombremes_actual = strtolower(date('F'));\n\t// NOMBRE DEL KARDEX DEL ALMACEN\n\t$tablakardex=\"kardex\";\n\n\t//CAMBIAR EL FORMATO DE FECHA A yyyy-mm-dd \n\t$fechSalida = explode('/', $fechaSalida); \n\t$newFecha = $fechSalida[2].'-'.$fechSalida[1].'-'.$fechSalida[0];\n\t$totventa=0;\n\t$totcant=0;\n\t$contador = count($id_producto); //CUANTO PRODUCTOS VIENEN PARA EL FOR\n\t\n //SCRIP QUE REGISTRA LA SALIDA EN HIST_SALIDA\n try{\n\t\t$stmt = Conexion::conectar()->prepare(\"INSERT INTO hist_salidas(id_cliente, num_salida, fecha_salida, id_producto, cantidad, precio_venta, es_promo, id_almacen, id_tipomov, id_tipovta, id_caja, ultusuario) VALUES (:id_cliente, :num_salida, :fecha_salida, :id_producto, :cantidad, :precio_venta, :es_promo, :id_almacen, :id_tipomov, :id_tipovta, :id_caja, :ultusuario)\");\n\n\t\tfor($i=0;$i<$contador;$i++) { \n\t\t\t$stmt->bindParam(\":id_cliente\", $nuevoCliente, PDO::PARAM_INT);\n\t\t\t$stmt->bindParam(\":num_salida\", $numSalidaAlmacen, PDO::PARAM_STR);\n\t\t\t$stmt->bindParam(\":fecha_salida\", $newFecha, PDO::PARAM_STR);\n\t\t\t$stmt->bindParam(\":id_producto\", $id_producto[$i], PDO::PARAM_INT);\n\t\t\t$stmt->bindParam(\":cantidad\", $cantidad[$i], PDO::PARAM_STR);\n\t\t\t$stmt->bindParam(\":precio_venta\", $precio_venta[$i], PDO::PARAM_STR);\n\t\t\t$stmt->bindParam(\":es_promo\", $espromo[$i], PDO::PARAM_INT);\n\t\t\t$stmt->bindParam(\":id_almacen\", $id_almacen, PDO::PARAM_INT);\n\t\t\t$stmt->bindParam(\":id_tipomov\", $tipo_mov, PDO::PARAM_INT);\n\t\t\t$stmt->bindParam(\":id_tipovta\", $id_tipovta, PDO::PARAM_INT);\n\t\t\t$stmt->bindParam(\":id_caja\", $id_caja, PDO::PARAM_INT);\n\t\t\t$stmt->bindParam(\":ultusuario\", $ultusuario, PDO::PARAM_INT);\n\t\t\t$stmt->execute();\n\t\t\tif($espromo[$i]==0){\n\t\t\t\t$totventa+=($cantidad[$i]*$precio_venta[$i]);\n\t\t\t}else{\n\t\t\t\t$totventa+=$precio_venta[$i];\n\t\t\t}\n\t\t\t\n\t\t} //termina ciclo 1er for \n\t} catch (Exception $e) {\n\t\techo \"Failed: \" . $e->getMessage();\n \t}\n\t\n\t //GRABA TOTAL VENTA Y EL IMPORTE PAGADO POR EL CLIENTE. TABLA cobrosdeventas FORMA CORTA\n\t if($stmt){\n\t\t$stmt = Conexion::conectar()->prepare(\"INSERT INTO cobrosdeventas VALUES (DEFAULT, :id_ticket, :totalventa, :pago)\");\t\t \n\t\t$stmt->bindParam(\":id_ticket\", $numSalidaAlmacen, PDO::PARAM_STR);\n\t\t$stmt->bindParam(\":totalventa\", $totventa, PDO::PARAM_STR);\n\t\t$stmt->bindParam(\":pago\", $pagocliente, PDO::PARAM_STR);\n\t\t$stmt->execute();\n\t }\n\n\t\tif($stmt){\n\t\t //return \"ok\";\n\t\t for($i=0;$i<$contador;$i++) { \n\t\t\t //ACTUALIZA EL CANT EXISTENTE EN ALMACEN SEGUN ID \n\t\t\t $stmt = Conexion::conectar()->prepare(\"UPDATE $tabla SET cant=cant-(:cant), ultusuario=:ultusuario WHERE id_producto = :id_producto\");\n\t\t\t $stmt->bindParam(\":id_producto\", $id_producto[$i], PDO::PARAM_INT);\n\t\t\t $stmt->bindParam(\":cant\", $cantidad[$i], PDO::PARAM_STR);\n\t\t\t $stmt->bindParam(\":ultusuario\", $ultusuario, PDO::PARAM_INT);\n\t\t\t $stmt->execute();\n\t\t\t \n\t\t\t\t//GUARDA EN KARDEX DEL ALMACEN ELEGIDO\n\t\t\t\t$query = Conexion::conectar()->prepare(\"UPDATE $tablakardex SET $nombremes_actual=:$nombremes_actual-($nombremes_actual) WHERE id_producto = :id_producto\");\n\t\t\t\t$query->bindParam(\":id_producto\", $id_producto[$i], PDO::PARAM_INT);\n\t\t\t\t$query->bindParam(\":\".$nombremes_actual, $cantidad[$i], PDO::PARAM_STR);\n\t\t\t\t$query->execute();\n\n\n\t\t\t //ACTUALIZA EN CATALOGO DE PRODUCTOS, CANT VENDIDOS SEGUN ID\n\t\t\t $stmtt = Conexion::conectar()->prepare(\"UPDATE productos SET ventas=:ventas+ventas WHERE id = :id\"); \n\t\t\t $stmtt->bindParam(\":id\", $id_producto[$i], PDO::PARAM_INT);\n\t\t\t $stmtt->bindParam(\":ventas\", $cantidad[$i], PDO::PARAM_STR);\n\t\t\t $stmtt->execute();\n\t\t\t \n\t\t\t} //termina ciclo 2do for \n\t\t\t //ACTUALIZA TOTAL DE VENTA SEGUN CLIENTE\n\t\t\t if($stmt){\n\t\t\t\tif($tipo_mov==3){\t\t//SI ES VENTA A CREDITO\n\t\t\t\t\t$stmt = Conexion::conectar()->prepare(\"UPDATE clientes SET ventas=:ventas+ventas, ultima_venta= :ultima_venta, saldo=:saldo+saldo, ultusuario=:ultusuario WHERE id = :id\");\n\t\t\t\t\t\n\t\t\t\t\t$stmt->bindParam(\":id\", \t\t\t$nuevoCliente, PDO::PARAM_INT);\n\t\t\t\t\t$stmt->bindParam(\":ventas\", \t\t$totventa, PDO::PARAM_STR);\n\t\t\t\t\t$stmt->bindParam(\":ultima_venta\", \t$newFecha, PDO::PARAM_STR);\n\t\t\t\t\t$stmt->bindParam(\":saldo\", \t\t\t$totventa, PDO::PARAM_STR);\n\t\t\t\t\t$stmt->bindParam(\":ultusuario\", \t$ultusuario, PDO::PARAM_INT);\n\t\t\t\t\t$stmt->execute(); \n\t\t\t\t return \"ok\";\n\t\t\t\t}else{\n\t\t\t\t\t$stmt = Conexion::conectar()->prepare(\"UPDATE clientes SET ventas=:ventas+ventas, ultima_venta= :ultima_venta, ultusuario=:ultusuario WHERE id = :id\");\n\t\t\t\t\t\n\t\t\t\t\t$stmt->bindParam(\":id\", $nuevoCliente, PDO::PARAM_INT);\n\t\t\t\t\t$stmt->bindParam(\":ventas\", $totventa, PDO::PARAM_STR);\n\t\t\t\t\t$stmt->bindParam(\":ultima_venta\", $newFecha, PDO::PARAM_STR);\n\t\t\t\t\t$stmt->bindParam(\":ultusuario\", $ultusuario, PDO::PARAM_INT);\n\t\t\t\t\t$stmt->execute(); \n\t\t\t\t\treturn \"ok\";\n\t\t\t\t}\t \n\t\t\t\t}else{\n\t\t\t\t\t return \"error\";\n\t\t\t\t}\n\t\t\t\n\t\t}else{\n\t\t return \"error\";\n\t\t}\n\t\n\t$stmt->close();\n\t$query=null;\n\t$stmt = null;\n\n}", "private function _consultar() {\n $where = \"\";\n if(!empty($this->_idDato)){\n $where = \"AND b.id_valor = $this->_idDato \";\n }\n if(!empty($this->_valor)){\n if(is_array($this->_valor)){\n $aux = each($this->_valor);\n $where = \"AND b.valor {$aux['key']} '{$aux['value']}' \";\n }else{\n $where = \"AND b.valor = '$this->_valor' \";\n }\n \n }\n $query = \"SELECT a.nom_tabla,b.* FROM \nmt_tablas a,\nmt_contenidos b\nWHERE a.id_tablas = {$this->_idTabla}\nAND a.estado = 1 $where\nAND a.id_tablas = b.id_tabla\nAND b.estado = 1\";\n \n if(is_array($this->_orden) && count($this->_orden) == 2){\n $query .= (\" ORDER BY \" . ($this->_orden[0] == 1 ? \"id_valor \" : \"valor \") . $this->_orden[1] );\n }\n $con = ConexionSQL::getInstance();\n $id = $con->consultar($query);\n if($res = $con->obenerFila($id)){\n $R = array();\n do{\n $aux = array();\n foreach($res as $key => $valor){\n if(!is_numeric($key)){\n $aux[$key] = $valor;\n }\n }\n $R[] = $aux;\n }while($res = $con->obenerFila($id));\n return $R;\n }\n return false;\n }", "public function read(){\n \n //select all data\n $query = \"SELECT\n id, id, num_compte, cle_rib, duree_epargne, frais, solde, created\n FROM\n \" . $this->table_name . \"\n ORDER BY\n created\";\n \n $stmt = $this->conn->prepare( $query );\n $stmt->execute();\n \n return $stmt;\n }", "function tampil_data($tabel)\n {\n $row = $this->db->prepare(\"SELECT * FROM sms\");\n $row->execute();\n return $hasil = $row->fetchAll();\n }", "function readOne(){\n\n $query = \"SELECT ordine.id_ordine, ordine.articolo, fornitore.nome as 'fornitore', ordine.stato \n FROM \". $this->table_name . \" INNER JOIN fornitore \n ON ordine.id_fornitore = fornitore.id_fornitore\n WHERE ordine.id_ordine = ?\";\n \n $stmt = $this->conn->prepare( $query );\n $stmt->bindParam(1, $this->id_ordine);\n $stmt->execute();\n $row = $stmt->fetch(PDO::FETCH_ASSOC);\n \n if($row){\n\n $this->id_ordine = $row['id_ordine'];\n $this->articolo = $row['articolo'];\n $this->fornitore = $row['fornitore'];\n $this->stato = $row['stato'];\n\n }\n else{\n\n $query = \"SELECT ordine.id_ordine, ordine.articolo, ordine.stato \n FROM \". $this->table_name . \" WHERE ordine.id_ordine = ?\";\n\n $stmt = $this->conn->prepare($query);\n $stmt->bindParam(1, $this->id_ordine);\n $stmt->execute();\n $row = $stmt->fetch(PDO::FETCH_ASSOC);\n if($row){\n $this->id_ordine = $row['id_ordine'];\n $this->articolo = $row['articolo'];\n $this->stato = $row['stato'];\n }\n }\n }", "function get_produto_solicitacao_baixa_estoque($di)\n {\n $this->db->select('baixa.di,baixa.quantidade, u.nome_usuario,u.id as id_usuario,p.id as produto_id,p.nome as produto');\n $this->db->join('usuario u ','u.id = baixa.usuario_id');\n $this->db->join('produto p ','p.id = baixa.produto_id');\n return $this->db->get_where('produto_solicitacao_baixa_estoque baixa',array('di'=>$di))->row_array();\n }", "function RellenaDatos()\n{//buscamos todos los atributos de la tupla\n $sql = \"SELECT *\n\t\t\tFROM PROF_ESPACIO\n\t\t\tWHERE (\n\t\t\t\t(DNI = '$this->DNI' AND CODESPACIO = '\".$this->CODESPACIO.\"') \n\t\t\t)\";\n\n\t//si no se ejecuta con éxito devuelve mensaje de error\n\t\t\tif (!$resultado = $this->mysqli->query($sql))\n\t{\n\t\t\treturn 'Error de gestor de base de datos';//devuelve el mensaje\n\t} //si no se ejecuta con éxito \n\telse\n\t{\n\t\t$tupla = $resultado->fetch_array();//guardamos el resultado de la busqueda en la variable tupla\n\t}\n\treturn $tupla;//devolvemos la información de ese centro\n}", "function getRendimientoPonderado() {\n\t\tglobal $mdb2;\n\t\tglobal $log;\n\t\tglobal $current_usuario_id;\n\t\tglobal $usr;\n\n\t\t//DATO PARA LA CONSULTA SQL, LISTA LAS HORAS DEL DÍA\n\t\t//SI ES 0 TRAE LAS 24 HORAS\n\t\t$ponderacion = $usr->getPonderacion();\n\n\t\tif ($ponderacion == null) {\n\t\t\t$ponderacion_id = 0;\n\t\t}\n\t\telse {\n\t\t\t$ponderacion_id = $ponderacion->ponderacion_id;\n\t\t}\n\n\t\t$sql = \"SELECT * FROM reporte.rendimiento_resumen_global_ponderado(\".\n\t\t\t\tpg_escape_string($current_usuario_id).\",\".\n\t\t\t\tpg_escape_string($this->objetivo_id).\", \".\n\t\t\t\tpg_escape_string($ponderacion_id).\",' \".\n\t\t\t\tpg_escape_string($this->timestamp->getInicioPeriodo()).\"', '\".\n\t\t\t\tpg_escape_string($this->timestamp->getTerminoPeriodo()).\"')\";\n\n\n\t\t$res =& $mdb2->query($sql);\n\t\tif (MDB2::isError($res)) {\n\t\t\t$log->setError($sql, $res->userinfo);\n\t\t\texit();\n\t\t}\n\n\t\tif($row = $res->fetchRow()){\n\t\t\t$dom = new DomDocument();\n\t\t\t$dom->preserveWhiteSpace = FALSE;\n\t\t\t$dom->loadXML($row['rendimiento_resumen_global_ponderado']);\n\t\t\t$xpath = new DOMXpath($dom);\n\t\t\tunset($row[\"rendimiento_resumen_global_ponderado\"]);\n\t\t}\n\n\t\t$conf_objetivo= $xpath->query(\"/atentus/resultados/propiedades/objetivos/objetivo\")->item(0);\n\t\t$conf_pasos = $xpath->query(\"paso[@visible=1]\", $conf_objetivo);\n\t\t$conf_ponderaciones = $xpath->query(\"/atentus/resultados/propiedades/ponderaciones/item\");\n\n\t\t//SE MUESTRA TEMPLATE SIN DATOS\n\t\tif ($xpath->query(\"//detalles/detalle/detalles/detalle\")->length == 0) {\n\t\t\t$this->resultado = $this->__generarContenedorSinDatos();\n\t\t\treturn;\n\t\t}\n\n\t\t//TEMPLATE DEL REPORTE\n\t\t$T =& new Template_PHPLIB(($this->extra[\"imprimir\"])?REP_PATH_PRINTTEMPLATES:REP_PATH_TABLETEMPLATES);\n\t\t$T->setFile('tpl_tabla', 'rendimiento_ponderado.tpl');\n\t\t$T->setBlock('tpl_tabla', 'LISTA_ITEMS', 'lista_items');\n\t\t$T->setBlock('tpl_tabla', 'BLOQUE_EVENTOS_TITULOS', 'bloque_eventos_titulos');\n\t\t$T->setBlock('tpl_tabla', 'BLOQUE_EVENTOS_TOTAL', 'bloque_eventos_total');\n\t\t$T->setBlock('tpl_tabla', 'LISTA_PASOS', 'lista_pasos');\n\n\n\t\t$T->setVar('__paso_id_default', $conf_pasos->item(0)->getAttribute('paso_orden'));\n\t\t//$T->setVar('__item_orden', $this->extra[\"item_orden\"]);\n\t\t$orden = 1;\n\t\tforeach ($conf_pasos as $conf_paso) {\n\t\t\t$T->setVar('__paso_id', $conf_paso->getAttribute('paso_orden'));\n\t\t\t$T->setVar('__paso_nombre', $conf_paso->getAttribute('nombre'));\n\t\t\t$T->setVar('__paso_orden', $orden);\n\n\t\t\t$total_min_ponderado = 0;\n\t\t\t$total_max_ponderado = 0;\n\t\t\t$total_prom_ponderado = 0;\n\n\t\t\t$T->setVar('lista_items', '');\n\t\t\tforeach ($conf_ponderaciones as $conf_ponderacion) {\n\t\t\t\tif ($conf_ponderacion->getAttribute('valor') == 0) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t$tag_dato = $xpath->query(\"//detalles/detalle/detalles/detalle[@item_id=\".$conf_ponderacion->getAttribute(\"item_id\").\"]/detalles/detalle[@paso_orden=\".$conf_paso->getAttribute(\"paso_orden\").\"]/datos/dato\")->item(0);\n\n\t\t\t\t$T->setVar('__print_class', ($linea % 2 == 0)?\"celdaIteracion2\":\"celdaIteracion1\");\n\t\t\t\t$T->setVar('__class', ($linea % 2 == 0)?\"celdanegra15\":\"celdanegra10\");\n\t\t\t\t$T->setVar('__item_inicio', $conf_ponderacion->getAttribute('inicio'));\n\t\t\t\t$T->setVar('__item_termino', $conf_ponderacion->getAttribute('termino'));\n\n\t\t\t\t$T->setVar('__paso_minimo', ($tag_dato == null)?'S/I':number_format($tag_dato->getAttribute('tiempo_min'), 2, ',', ''));\n\t\t\t\t$T->setVar('__paso_maximo', ($tag_dato == null)?'S/I':number_format($tag_dato->getAttribute('tiempo_max'), 2, ',', ''));\n\t\t\t\t$T->setVar('__paso_promedio', ($tag_dato == null)?'S/I':number_format($tag_dato->getAttribute('tiempo_prom'), 2, ',', ''));\n\n\t\t\t\tif ($tag_dato == null) {\n\t\t\t\t\t$tiempo_minimo = 0;\n\t\t\t\t\t$tiempo_maximo = 0;\n\t\t\t\t\t$tiempo_promedio = 0;\n\t\t\t\t}else{\n\t\t\t\t\t$tiempo_minimo = $tag_dato->getAttribute('tiempo_min');\n\t\t\t\t\t$tiempo_maximo = $tag_dato->getAttribute('tiempo_max');\n\t\t\t\t\t$tiempo_promedio = $tag_dato->getAttribute('tiempo_prom');\n\t\t\t\t}\n\n\t\t\t\t//SE CALCULA EL PONDERADO\n\t\t\t\t$total_min_ponderado = (($conf_ponderacion->getAttribute('valor')/100) * $tiempo_minimo) + $total_min_ponderado;\n\t\t\t\t$total_max_ponderado = (($conf_ponderacion->getAttribute('valor')/100) * $tiempo_maximo) + $total_max_ponderado;\n\t\t\t\t$total_prom_ponderado = (($conf_ponderacion->getAttribute('valor')/100) * $tiempo_promedio) + $total_prom_ponderado;\n\n\t\t\t\t//SE ASIGNA VALOR DE LA PONDERACIÓN\n \t\t\t$T->setVar('__item_valor', number_format($conf_ponderacion->getAttribute('valor'), 2, '.', ''));\n\n\t\t\t\t$T->parse('lista_items', 'LISTA_ITEMS', true);\n\t\t\t\t$linea++;\n\t\t\t}\n\n\t\t\t$T->setVar('__min_total', number_format($total_min_ponderado, 2, ',', ''));\n\t\t\t$T->setVar('__max_total', number_format($total_max_ponderado, 2, ',', ''));\n\t\t\t$T->setVar('__prom_total', number_format($total_prom_ponderado, 2, ',', ''));\n\n\t\t\t$T->parse('lista_pasos', 'LISTA_PASOS', true);\n\t\t\t$orden++;\n\t\t}\n\n\t\t$this->tiempo_expiracion = (strtotime($xpath->query(\"//fecha_expiracion\")->item(0)->nodeValue) - strtotime($xpath->query(\"//fecha\")->item(0)->nodeValue));\n\t\t$this->resultado =$T->parse('out', 'tpl_tabla');\n\t}", "function tableData(){\n\t\t$entity_type = in(\"entity_type\");\t\t\n\t\t$table = $entity_type()->getTable();\n\t\t$test = in('test');\n\n\t\t// Table's primary key\n\t\t$primaryKey = 'id';\n\n\t\t// Array of database columns which should be read and sent back to DataTables.\n\t\t// The `db` parameter represents the column name in the database, while the `dt`\n\t\t// parameter represents the DataTables column identifier. In this case simple\n\t\t// indexes\n\t\t$columns = array(\n\t\t\tarray( \t'db' => 'id',\n\t\t\t\t\t'dt' => 0 \n\t\t\t\t ),\n\t\t\tarray( \t'db' => 'created', \n\t\t\t\t\t'dt' => 1, \n\t\t\t\t\t'formatter' => function( $d, $row ) {\n\t\t\t\t\t\tif( $d == 0 ) return 0;\n\t\t\t\t\t\treturn date( 'M d, Y H:i', $d);\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t),\n\t\t\tarray( \t'db' => 'updated',\n\t\t\t\t\t'dt' => 2,\n\t\t\t\t\t'formatter' => function( $d, $row ) {\n\t\t\t\t\t\tif( $d == 0 ) return 0;\n\t\t\t\t\t\treturn date( 'M d, Y H:i', $d);\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t ),\n\t\t);\n\t\t\n\t\t$additional_columns = self::getAdditionalFields( $entity_type );\n\t\t\n\t\t$columns = array_merge( $columns, $additional_columns );\n\n\t\t// SQL server connection information\n\t\t$sql_details = array(\n\t\t\t'user' => 'root',\n\t\t\t'pass' => '7777',\n\t\t\t'db' => 'ci3',\n\t\t\t'host' => 'localhost'\n\t\t);\n\t\n\t\trequire( 'theme/admin/scripts/ssp.class.php' );\t\t\n\t\t$date_from = in(\"date_from\");\n\t\t$date_to = in(\"date_to\");\n\t\t$extra_query = null;\n\t\tif( !empty( $date_from ) ){\n\t\t\t$stamp_from = strtotime( $date_from );\n\t\t\t$extra_query .= \"created > $stamp_from\";\n\t\t}\n\t\tif( !empty( $date_to ) ){\n\t\t\t$stamp_to = strtotime( $date_to.\" +1 day\" ) - 1;\n\t\t\tif( !empty( $extra_query ) ) $extra_query .= \" AND \";\n\t\t\t$extra_query .= \"created < $stamp_to\";\n\t\t\t\n\t\t}\t\t\n\t\t\n\t\techo json_encode(\n\t\t\tSSP::complex( $_GET, $sql_details, $table, $primaryKey, $columns, $extra_query )\n\t\t);\n\t}", "function getTabla() {\r\n return $this->tabla;\r\n }", "function getInstancia2($tabla,$campo=NULL){\r\n\t\t//DB_DataObject::debugLevel(5);\r\n\t\t//Crea una nueva instancia de $tabla a partir de DataObject\r\n\t\t$objDBO = DB_DataObject::Factory($tabla);\r\n\t\tif(is_array($campo)){\r\n\t\t\tforeach($campo as $key => $value){\r\n\t\t\t\t$objDBO->$key = $value;\r\n\t\t\t}\r\n\t\t}\r\n\t\t$contador = 0;\r\n\t\t$objDBO->find();\r\n\t\t$columna = $objDBO->table();\r\n\t\twhile ($objDBO->fetch()) {\r\n\t\t\tforeach ($columna as $key => $value) {\r\n\t\t\t\t$ret[$contador]->$key = cambiaParaEnvio($objDBO->$key);\r\n\t\t\t}\r\n\t\t\t$contador++;\r\n\t\t}\r\n\t\t\r\n\t\t//Libera el objeto DBO\r\n\t\t$objDBO->free();\r\n\r\n\t\treturn $ret;\t\r\n\t}", "public function getPrestamos($id)\n { \n $result=$this->adapter->query(\"select distinct a.idEmp, c.vacAct, a.dias , \n case when ff.codigo is null then '' else ff.codigo end as nitTer \n from n_nomina_e a \n inner join n_prestamos b on b.idEmp=a.idEmp\n inner join a_empleados c on c.id=a.idEmp \n inner join n_tip_prestamo d on d.id = b.idTpres \n inner join n_conceptos e on e.id = d.idConE \n left join n_terceros_s f on f.id = e.idTer \n \t\t left join n_terceros ff on ff.id = f.idTer # Funciones para retorno y salida de vacaciones \n where c.vacAct in ('0','2') and b.estado=1 and a.idNom=\".$id.\" group by a.idEmp order by a.idEmp \",Adapter::QUERY_MODE_EXECUTE);\n $datos=$result->toArray();\n return $datos; \n }", "function getRegistros() {\n\t\tif (isset($this->extra[\"monitor_id\"]) and isset($this->extra[\"pagina\"])) {\n\t\t\t$this->resultado = $this->getDetalleRegistros($this->extra[\"monitor_id\"], $this->extra[\"pagina\"]);\n\t\t\treturn;\n\t\t}\n\n\t\tglobal $mdb2;\n\t\tglobal $log;\n\t\tglobal $current_usuario_id;\n\n\t\t/* OBTENER LOS DATOS Y PARSEARLO */\n\t\t$sql = \"SELECT unnest(_nodos_id) AS nodo_id FROM _nodos_id(\".\n\t\t\t pg_escape_string($current_usuario_id).\", \".\n\t\t\t pg_escape_string($this->objetivo_id).\", '\".\n\t\t\t pg_escape_string($this->timestamp->getInicioPeriodo()).\"','\".\n\t\t\t pg_escape_string($this->timestamp->getTerminoPeriodo()).\"')\";\n\t\t//print($sql);\n\t\t$res =& $mdb2->query($sql);\n\t\tif (MDB2::isError($res)) {\n\t\t\t$log->setError($sql, $res->userinfo);\n\t\t\texit();\n\t\t}\n\t\t$monitor_ids = array();\n\t\twhile($row = $res->fetchRow()) {\n\t\t\t$monitor_ids[] = $row[\"nodo_id\"];\n\t\t}\n\n\t\t/* SI NO HAY DATOS MOSTRAR MENSAJE */\n\t\tif (count($monitor_ids) == 0) {\n\t\t\t$this->resultado = $this->__generarContenedorSinDatos();\n\t\t\treturn;\n\t\t}\n\n\t\t/* TEMPLATE DEL GRAFICO */\n\t\t$T =& new Template_PHPLIB(REP_PATH_TABLETEMPLATES);\n\t\t$T->setFile('tpl_tabla', 'contenedor_tabla.tpl');\n\t\t$T->setBlock('tpl_tabla', 'LISTA_CONTENEDORES', 'lista_contenedores');\n\n\t\t/* LISTA DE MONITORES */\n\t\t$orden = 1;\n\t\tforeach ($monitor_ids as $monitor_id) {\n\t\t\t$T->setVar('__contenido_id', 'reg_'.$monitor_id);\n\t\t\t$T->setVar('__contenido_tabla', $this->getDetalleRegistros($monitor_id, 1, $orden));\n\t\t\t$T->parse('lista_contenedores', 'LISTA_CONTENEDORES', true);\n\t\t\t$orden++;\n\t\t}\n\n\t\t$this->resultado = $T->parse('out', 'tpl_tabla');\n\t}", "public function get_row();", "public function getRow() {}", "function grafico_1( $desde, $hasta, $ua ){\n\t$query = \"select nested.id_cliente, noticiasactor.id_actor, nested.tema from \"\n\t. \"( select procesados.* from ( select noticiascliente.* from noticiascliente inner join proceso on noticiascliente.id_noticia = proceso.id_noticia where noticiascliente.id_cliente = \" . $ua . \" ) procesados \"\n\t. \"inner join noticia on noticia.id = procesados.id_noticia where noticia.fecha between '\" . $desde . \" 00:00:01' and '\" . $hasta . \" 23:59:59') nested \"\n\t. \"inner join noticiasactor on nested.id_noticia = noticiasactor.id_noticia order by id_actor asc \";\n\t$main = R::getAll($query);\n\t// obtengo el nombre de la unidad de analisis\n\t$ua_nombre = R::findOne(\"cliente\",\"id LIKE ?\",[$ua])['nombre'];\n\t// obtengo los nombres de todos los actores, para cruzar\n\t$actores_nombres = R::findOne(\"actor\",\"id LIKE ?\",[4]) ;\n\t//var_dump($actores_nombres['nombre'] . \" \" . $actores_nombres['apellido']);\n\n\t$tabla = [];\n\t$temas = [];\n\t$i = -1;\n\t// reemplazo actores por nombres y temas\n\tforeach($main as $k=>$v){\n\t\t$actores_nombres = R::findOne(\"actor\",\"id LIKE ?\",[ $v['id_actor'] ]);\n\t\t$main[$k]['id_cliente'] = $ua_nombre;\n\t\t// $main[$k]['id_actor'] = $actores_nombres['nombre'] . \" \" . $actores_nombres['apellido'];\n\t\t$main[$k]['id_actor'] = $v['id_actor'];\n\t\t$main[$k]['nombre'] = $actores_nombres['nombre'] . \" \" . $actores_nombres['apellido'];\n\t\t$id_tema = get_string_between($main[$k]['tema'],\"frm_tema_\",\"\\\"\");\n\t\t$tema = R::findOne(\"attr_temas\",\"id LIKE ?\",[$id_tema])['nombre'];\n\t\tif( is_null( $tema ) ) $tema = 'TEMA NO ASIGNADO';\n\t\t$main[$k]['tema'] = $tema;\n\t\t\n\t\t// if(array_search( [ $main[$k]['id_actor'],$tema], $tabla ) ) echo \"repetido\";\n\t\t// chequeo si ya existe alguno con este actor y tema, si es asi, sumo uno\n\t\t// TODO - FIXME : deberia ser mas eficiente, busqueda por dos valores\n\t\t$iter = true;\n\t\tforeach($tabla as $ka=>$va){\n\t\t\t// if($va['actor'] == $main[$k]['id_actor'] && $va['tema'] == $tema){\n\t\t\tif($va['actor'] == $main[$k]['nombre'] && $va['tema'] == $tema){\n\t\t\t\t$tabla[$ka]['cantidad'] += 1;\n\t\t\t\t$iter = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif($iter){\n\t\t\t$tabla[ ++$i ] = [ \n\t\t\t\t'unidad_analisis' => $ua_nombre,\n\t\t\t\t'actor' => $main[$k]['nombre'],\n\t\t\t\t'id_actor' => $main[$k]['id_actor'],\n\t\t\t\t'tema' => $tema,\n\t\t\t\t'cantidad' => 1\n\t\t\t\t];\n\t\t\t}\n\t\t// agrego los temas que van apareciendo en la tabla temas\n\t\t// UTIL para poder hacer el CRC32 por la cantidad de colores\n\t\tif(!in_array($tema,$temas)) $temas[] = $tema;\n\t}\n\t// la agrupacion de repetidos es por aca, por que repite y cuenta temas de igual id\n\n\t// en el grafico, los hijos, son arreglos de objetos, hago una conversion tabla -> objeto\n\t$objeto = new StdClass(); // objeto vacio\n\t$objeto->name = 'Actores';\n\t$objeto->rank = 0;\n\t$objeto->weight = 1;\n\t$objeto->id = 1;\n\t$objeto->children = [];\n\tforeach($tabla as $k=>$v){\n\t\t// me fijo si el actor existe, ineficiente pero por ahora\n\t\t$NoExiste = true;\n\t\tforeach($objeto->children as $ka=>$va){\n\t\t\t// si existe actor, le inserto el tema\n\t\t\tif($va->name == $v['actor']){\n\t\t\t\t$in = new StdClass();\n\t\t\t\t// $in->name = $v['tema'] . \" (\" . $v['cantidad'] . \") \" ; // lo construye JS\n\t\t\t\t$in->name = \"\";\n\t\t\t\t$in->tema = array_search($v['tema'],$temas);\n\t\t\t\t$in->tema_cantidad = $v['cantidad'];\n\t\t\t\t$in->rank = intval($v['cantidad']); // el tamaño del objeto \n\t\t\t\t$in->weight = 0; // lo asigna JS\n\t\t\t\t$in->id = $k;\n\t\t\t\t$in->children = [];\n\t\t\t\t$objeto->children[$ka]->children[] = $in;\n\t\t\t\t$objeto->children[$ka]->cantidad_temas = count($objeto->children[$ka]->children);\t\n\t\t\t\t$objeto->children[$ka]->rank = count($objeto->children[$ka]->children);\n\t\t\t\t$NoExiste = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif($NoExiste){\n\t\t\t$in = new StdClass();\n\t\t\t$in->name = $v['actor'];\n\t\t\t$in->rank = 1;\n\t\t\t$in->weight = 0; // lo asigna JS\n\t\t\t$in->id = $k;\n\t\t\t//$in->id = $v['id_actor'];\n\t\t\t$in->id_actor = $v['id_actor'];\n\t\t\t\t$t_in = new StdClass();\n\t\t\t\t// $t_in->name = $v['tema'] . \" (\" . $v['cantidad'] . \") \" ; // lo construye JS\n\t\t\t\t$t_in-> name = \"\";\n\t\t\t\t$t_in->tema = array_search($v['tema'],$temas);\n\t\t\t\t$t_in->tema_cantidad = $v['cantidad'];\n\t\t\t\t$t_in->rank = intval($v['cantidad']); // el tamaño del objeto \n\t\t\t\t$t_in->weight = 0; // lo asigna JS\n\t\t\t\t$t_in->id = $k;\n\t\t\t\t$t_in->children = [];\n\t\t\t$in->children = [ $t_in ];\n\t\t\t$objeto->children[] = $in;\n\t\t}\n\t}\n\treturn [\n\t\t'tabla' => $tabla,\n\t\t'grafico' => $objeto,\n\t\t'temas' => $temas\n\t\t];\n}", "public function vistaMaestroModel($tabla){\r\n\r\n\t\t$stmt = Conexion::conectar()->prepare(\"SELECT id, noempleado, nombre, apellido, email, id_carrera FROM $tabla\");\t\r\n\t\t$stmt->execute();\r\n\r\n\t\t#fetchAll(): Obtiene todas las filas de un conjunto de resultados asociado al objeto PDOStatement. \r\n\t\treturn $stmt->fetchAll();\r\n\r\n\t\t$stmt->close();\r\n\r\n\t}", "function get_servicios_trabajador($id)\n {\n $id = $this->session->id;\n $this->db->select('*');\n $this->db->from('servicio');\n $this->db->where('id_trabajador', $id);\n $this->db->order_by('fecha','DESC');\n $query = $this->db->get();\n return $query->result();\n }", "function f_get_seg_usuario(\n\t\t\t\t$cod_usuario\n\t\t){\n\t\t\tglobal $db;\n\t\t\t$query =\"\n\t\t\tselect \t*\n\t\t\tfrom\tseg_usuario\n\t\t\twhere\tcod_usuario_pk='$cod_usuario'\";\n\t\t\t$row = $db->consultar_registro($query);\t\n\t\t\treturn $row;\n\t\t}", "function get_control_salida_extra_mov(){\n\t\t$sQuery=\"SELECT id, id_sucursal, placa FROM control_salida_extra WHERE placa > 'NULL' \";\n\t\n\t\t//die($sQuery);\n\t\t$result=mssql_query($sQuery) or die(mssql_min_error_severity());\n\t\t$i=0;\n\t\twhile($row=mssql_fetch_array($result)){\n\t\t\tforeach($row as $key=>$value){\n\t\t\t\t$res_array[$i][$key]=$value;\n\t\t\t}\n\t\t\t$i++;\n\t\t}\n\t\treturn($res_array);\n\t\t\t\n\t}", "public function vistaGrupoModel($tabla){\r\n\r\n\t\t$stmt = Conexion::conectar()->prepare(\"SELECT id, cuatrimestre FROM $tabla\");\t\r\n\t\t$stmt->execute();\r\n\r\n\t\t#fetchAll(): Obtiene todas las filas de un conjunto de resultados asociado al objeto PDOStatement. \r\n\t\treturn $stmt->fetchAll();\r\n\r\n\t\t$stmt->close();\r\n\r\n\t}", "public function selectTable($table)\n {\n $select_query = \"SELECT * FROM {$table}\"; \n\n if ($this->conexao == null) {\n $this->abrir();\n }\n\n $prepare = $this->conexao->prepare($select_query);\n\n $prepare->execute();\n\n $linha = $prepare->fetchAll(\\PDO::FETCH_OBJ);\n\n return $linha;\n }", "static public function mdlRangoFechasEntradas($tabla, $fechaInicial, $fechaFinal){\n\n\t\tif($fechaInicial == null){\n\n\t\t\t$stmt = Conexion::conectar()->prepare(\"SELECT * FROM $tabla ORDER BY id ASC\");\n\n\t\t\t$stmt -> execute();\n\n\t\t\treturn $stmt -> fetchAll();\t\n\n\n\t\t}else if($fechaInicial == $fechaFinal){\n\n\t\t\t$stmt = Conexion::conectar()->prepare(\"SELECT * FROM $tabla WHERE fecha_entrada like '%$fechaFinal%'\");\n\n\t\t\t$stmt -> bindParam(\":fecha_entrada\", $fechaFinal, PDO::PARAM_STR);\n\n\t\t\t$stmt -> execute();\n\n\t\t\treturn $stmt -> fetchAll();\n\n\t\t}else{\n\n\t\t\t$fechaActual = new DateTime();\n\t\t\t$fechaActual ->add(new DateInterval(\"P1D\"));\n\t\t\t$fechaActualMasUno = $fechaActual->format(\"Y-m-d\");\n\n\t\t\t$fechaFinal2 = new DateTime($fechaFinal);\n\t\t\t$fechaFinal2 ->add(new DateInterval(\"P1D\"));\n\t\t\t$fechaFinalMasUno = $fechaFinal2->format(\"Y-m-d\");\n\n\t\t\tif($fechaFinalMasUno == $fechaActualMasUno){\n\n\t\t\t\t$stmt = Conexion::conectar()->prepare(\"SELECT * FROM $tabla WHERE fecha_entrada BETWEEN '$fechaInicial' AND '$fechaFinalMasUno'\");\n\n\t\t\t}else{\n\n\n\t\t\t\t$stmt = Conexion::conectar()->prepare(\"SELECT * FROM $tabla WHERE fecha_entrada BETWEEN '$fechaInicial' AND '$fechaFinal'\");\n\n\t\t\t}\n\t\t\n\t\t\t$stmt -> execute();\n\n\t\t\treturn $stmt -> fetchAll();\n\n\t\t}\n\n\t}", "public function mainTable(){\n //selects needed\n $select[] = 'date_eos';\n\n //build where\n $where = 'overall_status = \"GO\" AND job_type != \"TIA\" ORDER BY crew_1 ASC';\n //add join\n $join = ' LEFT JOIN ' .$this->revTable . ' ON admin_jobs.id = admin_revisions_current.admin_id LEFT JOIN ' .$this->empTable . ' ON admin_jobs.crew_1 = employee.id';\n\n //build query\n $result = $this->runQuery($where,$select,$join);\n\n return $result;\n\n }", "function obtenerSesionEjecutadaPagada(){\n\t\t\n\t\t\n\t //$array = $array = array('pagada' => TRUE, 'ejecutada' => TRUE);\n\t //$query = $this->db->from('sesion')->where($array)->get();\n\t \n\t $query1 = ('select sesion.id, sesion.checkin, sesion.pagada, sesion.id_servicio, sesion.id_usuario, sesion.id_agenda, sesion.ejecutada, usuario.nombre,\n\t\t\t\t\tusuario.apellido, servicio.descripcion from sesion \n\t\t\t\t\tInner JOIN usuario\n\t\t\t\t\ton sesion.id_usuario = usuario.id\n\t\t\t\t\tInner Join servicio\n\t\t\t\t\ton sesion.id_servicio = servicio.id\n\t\t\t\t\twhere (sesion.pagada = TRUE) AND (sesion.ejecutada = TRUE) ' ); //QUERY PARA OBTENER TODO DE UNA VEZ.\n\t\t\t\t\t\n\t\t$query = $this->db->query($query1);\n\t if($query-> num_rows() > 0) return $query->result_array();\n\t else return false ;\n\t \n\t}", "public function findDataLast()\n {\n return $this->getEntityManager()\n ->createQuery(\"SELECT DISTINCT t.number, f.id as finance, f.price as cost, f.gotcarq as gotcarqId\n FROM GazMainBundle:Terminal t\n JOIN GazMainBundle:Finance f WITH f.terminal = t\n\t\t\t\t\t\t\tWHERE (f.gotcarq IS NOT NULL AND f.gotcarq != 0)\n\t\t\t\t\t\t\t AND f.created = (SELECT MIN(f1.created) FROM GazMainBundle:Finance f1\n LEFT JOIN f1.terminal t1\n WHERE t1.id = t.id AND f1.financeType = FALSE)\n\t\t\t\t\t\t\tORDER BY t.number ASC\n \")\n ->getResult();\n }", "public function select($titulos){\n $id=$titulos->getId();\n\n try {\n $sql= \"SELECT `id`, `descripcion`, `universidad_id`, `docente_id`\"\n .\"FROM `titulos`\"\n .\"WHERE `id`='$id'\";\n $data = $this->ejecutarConsulta($sql);\n for ($i=0; $i < count($data) ; $i++) {\n $titulos->setId($data[$i]['id']);\n $titulos->setDescripcion($data[$i]['descripcion']);\n $titulos->setUniversidad_id($data[$i]['universidad_id']);\n $docente = new Docente();\n $docente->setId($data[$i]['docente_id']);\n $titulos->setDocente_id($docente);\n\n }\n return $titulos; } catch (SQLException $e) {\n throw new Exception('Primary key is null');\n return null;\n }\n }", "public function vistaMateriaModel($tabla){\r\n\r\n\t\t$stmt = Conexion::conectar()->prepare(\"SELECT id, id_maestro, nombre, horas, creditos, id_grupo FROM $tabla\");\t\r\n\t\t$stmt->execute();\r\n\r\n\t\t#fetchAll(): Obtiene todas las filas de un conjunto de resultados asociado al objeto PDOStatement. \r\n\t\treturn $stmt->fetchAll();\r\n\r\n\t\t$stmt->close();\r\n\r\n\t}", "public function get_detalle_recibo_paciente($numero_venta){\n $conectar=parent::conexion();\n parent::set_names();\n\n $sql=\"select e.nombre,p.nombres,p.telefono,r.numero_venta,r.numero_recibo,r.cant_letras,r.monto,r.a_anteriores,r.abono_act,r.saldo,r.forma_pago,r.asesor,r.id_usuario,r.prox_abono,r.marca_aro,r.modelo_aro,r.color_aro from pacientes as p inner join recibos as r on p.id_paciente=r.id_paciente inner join empresas as e on p.id_empresas=e.id_empresas where numero_venta=? order by r.numero_recibo desc limit 1;\";\n $sql=$conectar->prepare($sql);\n $sql->bindValue(1,$numero_venta);\n $sql->execute();\n return $resultado=$sql->fetchAll(PDO::FETCH_ASSOC);\n}", "public function consultaSeguimientos(){\n\t\t$conect= Yii::app()->db;\n\t\t$sqlConsSegPaiDer=\"select fecha_seguim_compderecho,seguim_compderecho from seguimiento_compderecho \n\t\twhere id_pai=:id_pai and id_derechocespa=:id_derechocespa and num_doc=:num_doc order by fecha_seguim_compderecho desc\";\n\t\t$segCompDer=$conect->createCommand($sqlConsSegPaiDer);\n\t\t$segCompDer->bindParam(\":id_pai\",$this->id_pai,PDO::PARAM_INT);\n\t\t$segCompDer->bindParam(\":id_derechocespa\",$this->id_derechocespa,PDO::PARAM_INT);\n\t\t$segCompDer->bindParam(\":num_doc\",$this->num_doc,PDO::PARAM_STR);\n\t\t$readConsSegPaiDer=$segCompDer->query();\n\t\t$resConsSegPaiDer=$readConsSegPaiDer->readAll();\n\t\t$readConsSegPaiDer->close();\n\t\treturn $resConsSegPaiDer;\n\t}", "function row_reservation_user($data){\n\t\t$this->db->select('trajet.voiture,trajet.villedepart,trajet.villearrive,trajet.datedepart,trajet.datearrive,trajet.prixplace, trajet.statut,trajet.place_disponible,reservations.place,reservations.date,reservations.id,reservations.status,reservations.trajet');\n\t\t$this->db->from('trajet');\n\t\t$this->db->join('reservations','reservations.trajet=trajet.id');\n\t\t$this->db->where('reservations.pseudo',$data['pseudo']);\n\t\t$query=$this->db->get();\n\t\treturn $query;\n\t}", "static public function mdlRangoFechasTalleresTerminados($tabla, $fechaInicial, $fechaFinal){\n\n\t\tif($fechaInicial == \"null\"){\n\n\t\t\t$stmt = Conexion::conectar()->prepare(\"SELECT \n et.id,\n et.sector,\n CONCAT(et.sector, '-', s.nom_sector) AS nom_sector,\n et.articulo,\n a.modelo,\n a.nombre,\n a.color,\n a.talla,\n et.cod_operacion,\n o.nombre AS nom_operacion,\n et.trabajador AS cod_trabajador,\n et.fecha_proceso,\n et.fecha_terminado,\n CONCAT(\n t.nom_tra,\n ' ',\n t.ape_pat_tra,\n ' ',\n t.ape_mat_tra\n ) AS trabajador,\n et.cantidad,\n DATE(et.fecha) AS fecha,\n et.estado,\n et.codigo,\n TIMESTAMPDIFF(\n MINUTE,\n et.fecha_proceso,\n et.fecha_terminado\n ) AS tiempo_real \n FROM\n entallerjf et \n LEFT JOIN trabajadorjf t \n ON et.trabajador = t.cod_tra \n LEFT JOIN articulojf a \n ON et.articulo = a.articulo \n LEFT JOIN operacionesjf o \n ON et.cod_operacion = o.codigo \n LEFT JOIN sectorjf s \n ON et.sector = s.cod_sector \n WHERE et.estado = '3' ORDER BY et.id ASC\");\n\n\t\t\t$stmt -> execute();\n\n\t\t\treturn $stmt -> fetchAll();\t\n\n\n\t\t}else if($fechaInicial == $fechaFinal){\n\n\t\t\t$stmt = Conexion::conectar()->prepare(\"SELECT \n et.id,\n et.sector,\n CONCAT(et.sector, '-', s.nom_sector) AS nom_sector,\n et.articulo,\n a.modelo,\n a.nombre,\n a.color,\n a.talla,\n et.cod_operacion,\n o.nombre AS nom_operacion,\n et.trabajador AS cod_trabajador,\n et.fecha_proceso,\n et.fecha_terminado,\n CONCAT(\n t.nom_tra,\n ' ',\n t.ape_pat_tra,\n ' ',\n t.ape_mat_tra\n ) AS trabajador,\n et.cantidad,\n DATE(et.fecha) AS fecha,\n et.estado,\n et.codigo,\n TIMESTAMPDIFF(\n MINUTE,\n et.fecha_proceso,\n et.fecha_terminado\n ) AS tiempo_real \n FROM\n entallerjf et \n LEFT JOIN trabajadorjf t \n ON et.trabajador = t.cod_tra \n LEFT JOIN articulojf a \n ON et.articulo = a.articulo \n LEFT JOIN operacionesjf o \n ON et.cod_operacion = o.codigo \n LEFT JOIN sectorjf s \n ON et.sector = s.cod_sector \n WHERE et.estado = '3' AND DATE(et.fecha_terminado) like '%$fechaFinal%'\");\n\n\t\t\t$stmt -> bindParam(\":fecha\", $fechaFinal, PDO::PARAM_STR);\n\n\t\t\t$stmt -> execute();\n\n\t\t\treturn $stmt -> fetchAll();\n\n\t\t}else{\n\n\t\t\t$fechaActual = new DateTime();\n\t\t\t$fechaActual ->add(new DateInterval(\"P1D\"));\n\t\t\t$fechaActualMasUno = $fechaActual->format(\"Y-m-d\");\n\n\t\t\t$fechaFinal2 = new DateTime($fechaFinal);\n\t\t\t$fechaFinal2 ->add(new DateInterval(\"P1D\"));\n\t\t\t$fechaFinalMasUno = $fechaFinal2->format(\"Y-m-d\");\n\n\t\t\tif($fechaFinalMasUno == $fechaActualMasUno){\n\n\t\t\t\t$stmt = Conexion::conectar()->prepare(\"SELECT \n et.id,\n et.sector,\n CONCAT(et.sector, '-', s.nom_sector) AS nom_sector,\n et.articulo,\n a.modelo,\n a.nombre,\n a.color,\n a.talla,\n et.cod_operacion,\n o.nombre AS nom_operacion,\n et.trabajador AS cod_trabajador,\n et.fecha_proceso,\n et.fecha_terminado,\n CONCAT(\n t.nom_tra,\n ' ',\n t.ape_pat_tra,\n ' ',\n t.ape_mat_tra\n ) AS trabajador,\n et.cantidad,\n DATE(et.fecha) AS fecha,\n et.estado,\n et.codigo,\n TIMESTAMPDIFF(\n MINUTE,\n et.fecha_proceso,\n et.fecha_terminado\n ) AS tiempo_real \n FROM\n entallerjf et \n LEFT JOIN trabajadorjf t \n ON et.trabajador = t.cod_tra \n LEFT JOIN articulojf a \n ON et.articulo = a.articulo \n LEFT JOIN operacionesjf o \n ON et.cod_operacion = o.codigo \n LEFT JOIN sectorjf s \n ON et.sector = s.cod_sector \n WHERE et.estado = '3' AND DATE(et.fecha_terminado) BETWEEN '$fechaInicial' AND '$fechaFinalMasUno'\");\n\n\t\t\t}else{\n\n\n\t\t\t\t$stmt = Conexion::conectar()->prepare(\"SELECT \n et.id,\n et.sector,\n CONCAT(et.sector, '-', s.nom_sector) AS nom_sector,\n et.articulo,\n a.modelo,\n a.nombre,\n a.color,\n a.talla,\n et.cod_operacion,\n o.nombre AS nom_operacion,\n et.trabajador AS cod_trabajador,\n et.fecha_proceso,\n et.fecha_terminado,\n CONCAT(\n t.nom_tra,\n ' ',\n t.ape_pat_tra,\n ' ',\n t.ape_mat_tra\n ) AS trabajador,\n et.cantidad,\n DATE(et.fecha) AS fecha,\n et.estado,\n et.codigo,\n TIMESTAMPDIFF(\n MINUTE,\n et.fecha_proceso,\n et.fecha_terminado\n ) AS tiempo_real \n FROM\n entallerjf et \n LEFT JOIN trabajadorjf t \n ON et.trabajador = t.cod_tra \n LEFT JOIN articulojf a \n ON et.articulo = a.articulo \n LEFT JOIN operacionesjf o \n ON et.cod_operacion = o.codigo \n LEFT JOIN sectorjf s \n ON et.sector = s.cod_sector \n WHERE et.estado = '3' AND DATE(et.fecha_terminado) BETWEEN '$fechaInicial' AND '$fechaFinal'\");\n\n\t\t\t}\n\t\t\n\t\t\t$stmt -> execute();\n\n\t\t\treturn $stmt -> fetchAll();\n\n\t\t}\n\n\t}", "static public function mdlRangoVentas($tabla,$fechaInicial,$fechaFinal){\n\t\tif($fechaInicial == null){\n\t\t\t$sql = \"SELECT * FROM $tabla\";\n\t\t\t$pdo= Conexion::conectar()->prepare($sql);\n\t\t\t$pdo->execute();\n\n\t\t\treturn $pdo -> fetchAll();\n\t\t\t\n\t\t}else if($fechaInicial == $fechaFinal){\n\t\t\t$sql = \"SELECT * FROM $tabla WHERE sell_date like '%$fechaFinal%'\";\n\t\t\t$pdo= Conexion::conectar()->prepare($sql);\n\t\t\t$pdo->execute();\n\n\t\t\treturn $pdo -> fetchAll();\n\t\t}else{\n\t\t\t$fechaActual = new DateTime();\n\t\t\t$fechaActual ->add(new DateInterval(\"P1D\"));\n\t\t\t$fechaActualMasUno = $fechaActual ->format(\"Y-m-d\");\n\t\t\t$fechaFinal2 = new DateTime($fechaFinal);\n\t\t\t$fechaFinal2 ->add(new DateInterval(\"P1D\"));\n\t\t\t$fechaFinalMasUno = $fechaFinal2 ->format(\"Y-m-d\");\n\t\t\t$sql = \"SELECT * FROM $tabla WHERE sell_date BETWEEN '$fechaInicial' AND '$fechaFinalMasUno'\";\n\t\t\t$pdo= Conexion::conectar()->prepare($sql);\n\t\t\t$pdo->execute();\n\n\t\t\treturn $pdo -> fetchAll();\n\t\t}\n\t\t\n\n\t\t$pdo -> close();\n\t\t$pdo = null;\n\t\t}", "function get_entrada_pr_pedido_id($id){\n\t\t$u = new Entrada();\n\t\t$sql=\"select distinct on (e.pr_facturas_id) e.pr_facturas_id, e.id as id1, date(e.fecha) fecha, prf.monto_total as importe_factura, pr.razon_social as proveedor,prf.folio_factura, prf.pr_pedido_id, ef.tag as espacio_fisico, eg.tag as estatuse, e.lote_id, cel.tag as estatus_traspaso \".\n\t\t\t\t\"from entradas as e \".\n\t\t\t\t\"left join cproveedores as pr on pr.id=e.cproveedores_id \".\n\t\t\t\t\"left join pr_facturas as prf on prf.id=e.pr_facturas_id \".\n\t\t\t\t\"left join espacios_fisicos as ef on ef.id=e.espacios_fisicos_id \".\n\t\t\t\t\"left join estatus_general as eg on eg.id=e.estatus_general_id \".\n\t\t\t\t\"left join lotes_pr_facturas as lf on lf.pr_factura_id=prf.id \".\n\t\t\t\t\"left join cestatus_lotes as cel on cel.id=lf.cestatus_lote_id \".\n\t\t\t\t\"where e.estatus_general_id=1 and ctipo_entrada=1 and prf.pr_pedido_id='$id'\".\n\t\t\t\t\"group by e.pr_facturas_id, e.id, e.fecha, importe_factura, pr.razon_social, prf.folio_factura, prf.pr_pedido_id, ef.tag, eg.tag, e.pr_facturas_id, e.cproveedores_id,e.lote_id, cel.tag \".\n\t\t\t\t\"order by e.pr_facturas_id desc,e.fecha desc\";\n\t\t$u->query($sql);\n\t\tif($u->c_rows > 0){\n\t\t\treturn $u;\n\t\t} else {\n\t\t\treturn FALSE;\n\t\t}\n\t}", "public function selectReservations() {\n $tab=[];\n $pdo=$this->connect_db('boutique');\n $reqlogin = $pdo->prepare(\"SELECT r.id, r.id_utilisateur, r.titrereservation, r.typeevenement, r.datedebut, r.heuredebut FROM reservation AS r INNER JOIN utilisateurs AS u ON r.id_utilisateur = u.id\");\n $reqlogin->execute($tab);\n $result=$reqlogin->fetchAll();\n return $result;\n }", "function consultar(){\n\t\t\n\t\t$this->mysqli = conectarBD();\n\t\t\n\t\t$sql = \"SELECT Linea_Factura.Id_Linea_Factura,Linea_Factura.Id_Factura,Servicio.Nombre,Linea_Factura.Importe,Linea_Factura.Descripcion FROM Linea_Factura INNER JOIN Servicio WHERE Linea_Factura.Id_Factura='\".$this->factura.\"' AND Linea_Factura.Id_Servicio=Servicio.Id_Servicio AND Linea_Factura.Borrado='0';\";\n\t\t$resultado = $this->mysqli->query($sql);\t\n\t\tif ($resultado->num_rows > 0){\n\t\t\twhile($row = $resultado->fetch_array()){\n\t\t\t\t$array[] = $row;\n\t\t\t}\n\t\t\treturn $array;\n\t\t}\n\t}", "function f_get_row($cod_pk){\n\t\t\tif(!$cod_pk)return false;\n\t\t\tglobal $db;\n\t\t\t\n\t\t\t$query = \"select * from empleado where cod_empleado = $cod_pk\";\n\t\t\t$row = $db->consultar_registro($query);\n\t\t\t\n\t\t\treturn $row;\n\t\t\t\n\t\t\n\t\t}", "public function consultarPeriodoplanifica() {\n $con = \\Yii::$app->db_academico;\n $estado = 1;\n $condition = \"\";\n\n $sql = \"SELECT distinct pla_periodo_academico as id,\n pla_periodo_academico as name\n FROM \" . $con->dbname . \".planificacion\n WHERE pla_estado = :estado AND\n pla_estado_logico = :estado;\";\n\n $comando = $con->createCommand($sql);\n $comando->bindParam(\":estado\", $estado, \\PDO::PARAM_STR);\n $resultData = $comando->queryAll();\n return $resultData;\n }", "public function displayDatoSeguimiento($etapa_id){\n try{\n log_message(\"INFO\", \"Obteniendo valor de campo para etapa: \".$etapa_id, FALSE);\n log_message(\"INFO\", \"Nombre campo: \".$this->nombre, FALSE);\n\n $dato = Doctrine::getTable('DatoSeguimiento')->findByNombreHastaEtapa($this->nombre,$etapa_id);\n if(!$dato ){\n //Se deben crear\n $dato = new DatoSeguimiento();\n $dato->nombre = $this->nombre;\n $dato->etapa_id = $etapa_id;\n $dato->valor = NULL;\n }\n log_message(\"INFO\", \"Nombre dato: \".$dato->nombre, FALSE);\n log_message(\"INFO\", \"Valor dato: .\".$dato->valor.\".\", FALSE);\n log_message(\"INFO\", \"this->valor_default: \".$this->valor_default, FALSE);\n if(isset($this->valor_default) && strlen($this->valor_default) > 0 && $dato->valor === NULL){\n $regla=new Regla($this->valor_default);\n $valor_dato=$regla->getExpresionParaOutput($etapa_id);\n $dato->valor = $valor_dato;\n $dato->save();\n }else{\n $valor_dato = $dato->valor;\n }\n\n log_message(\"INFO\", \"valor_default: \".$valor_dato, FALSE);\n\n return $valor_dato;\n }catch(Exception $e){\n log_message('error',$e->getMessage());die;\n throw $e;\n }\n }", "function get_entradas_sucursal_list($id) {\n\t\t$u = new Entrada();\n\t\t$sql=\"select distinct on (e.pr_facturas_id) e.pr_facturas_id, e.id as id1, date(e.fecha) fecha, prf.monto_total as importe_factura, pr.razon_social as proveedor,prf.folio_factura, prf.pr_pedido_id, ef.tag as espacio_fisico, eg.tag as estatuse,e.lote_id, cel.tag as estatus_traspaso \".\n\t\t\t\t\"from entradas as e \".\n\t\t\t\t\"left join cproveedores as pr on pr.id=e.cproveedores_id \".\n\t\t\t\t\"left join pr_facturas as prf on prf.id=e.pr_facturas_id \".\n\t\t\t\t\"left join espacios_fisicos as ef on ef.id=e.espacios_fisicos_id \".\n\t\t\t\t\"left join estatus_general as eg on eg.id=e.estatus_general_id \".\n\t\t\t\t\"left join lotes_pr_facturas as lf on lf.pr_factura_id=prf.id \".\n\t\t\t\t\"left join cestatus_lotes as cel on cel.id=lf.cestatus_lote_id \".\n\t\t\t\t\"where e.estatus_general_id=1 and ctipo_entrada=1 and usuario_validador_id>0\".\n\t\t\t\t\"group by e.pr_facturas_id, e.id, e.fecha, importe_factura, pr.razon_social, prf.folio_factura, prf.pr_pedido_id, ef.tag, eg.tag, e.pr_facturas_id, e.cproveedores_id, e.lote_id , cel.tag \".\n\t\t\t\t\"order by e.pr_facturas_id desc,e.fecha desc\";\n\n\t\t//Buscar en la base de datos\n\t\t$u->query($sql);\n\t\tif($u->c_rows > 0){\n\t\t\treturn $u;\n\t\t} else {\n\t\t\treturn FALSE;\n\t\t}\n\t}", "function getEstadisticaResumen() {\n\t\tglobal $mdb2;\n\t\tglobal $log;\n\t\tglobal $current_usuario_id;\n\t\tglobal $usr;\n\n\t\t/* TEMPLATE DEL GRAFICO */\n\t\t$T =& new Template_PHPLIB(($this->extra[\"imprimir\"])?REP_PATH_PRINTTEMPLATES:REP_PATH_TABLETEMPLATES);\n\t\t$T->setFile('tpl_tabla', 'rendimiento_resumen.tpl');\n\t\t$T->setBlock('tpl_tabla', 'BLOQUE_TITULO_HORARIOS', 'bloque_titulo_horarios');\n\t\t$T->setBlock('tpl_tabla', 'LISTA_PASOS', 'lista_pasos');\n\t\t$T->setBlock('tpl_tabla', 'BLOQUE_TABLA', 'bloque_tabla');\n\n\t\t$horarios = array($usr->getHorario($this->horario_id));\n\t\tif ($this->horario_id != 0) {\n\t\t\t$horarios[] = $usr->getHorario(0);\n\t\t\t$horarios[($this->horario_id*-1)] = new Horario(($this->horario_id*-1));\n\t\t\t$horarios[($this->horario_id*-1)]->nombre = \"Horario Inhabil\";\n\t\t}\n\n\t\t$orden = 1;\n\t\t$T->setVar('bloque_titulo_horarios', '');\n\t\tforeach ($horarios as $horario) {\n\t\t\t$T->setVar('lista_pasos', '');\n\n\t\t\t$sql = \"SELECT * FROM reporte.rendimiento_resumen_global(\".\n\t\t\t\t\tpg_escape_string($current_usuario_id).\",\".\n\t\t\t\t\tpg_escape_string($this->objetivo_id).\", \".\n\t\t\t\t\tpg_escape_string($horario->horario_id).\",' \".\n\t\t\t\t\tpg_escape_string($this->timestamp->getInicioPeriodo()).\"', '\".\n\t\t\t\t\tpg_escape_string($this->timestamp->getTerminoPeriodo()).\"')\";\n//\t\t\t\t\tprint $sql;\n\t\t\t$res =& $mdb2->query($sql);\n\t\t\tif (MDB2::isError($res)) {\n\t\t\t\t$log->setError($sql, $res->userinfo);\n\t\t\t\texit();\n\t\t\t}\n\t\t\t$row = $res->fetchRow();\n\t\t\t$dom = new DomDocument();\n\t\t\t$dom->preserveWhiteSpace = false;\n\t\t\t$dom->loadXML($row[\"rendimiento_resumen_global\"]);\n\t\t\t$xpath = new DOMXpath($dom);\n\t\t\tunset($row[\"rendimiento_resumen_global\"]);\n\n\t\t\t$conf_objetivo = $xpath->query('/atentus/resultados/propiedades/objetivos/objetivo')->item(0);\n\t\t\t$conf_pasos = $xpath->query(\"paso[@visible=1]\", $conf_objetivo);\n\n\t\t\t/* SI NO HAY DATOS MOSTRAR MENSAJE */\n\t\t\tif ($horario->horario_id == \"0\" and $xpath->query('//detalle[@paso_orden]/datos/dato')->length == 0) {\n\t\t\t\t$this->resultado = $this->__generarContenedorSinDatos();\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif(count($horarios) > 1) {\n\t\t\t\t$T->setVar('__item_orden', $this->extra[\"item_orden\"]);\n\t\t\t\t$T->setVar('__horario_orden', $orden);\n\t\t\t\t$T->setVar('__horario_nombre', $horario->nombre);\n\t\t\t\t$T->parse('bloque_titulo_horarios', 'BLOQUE_TITULO_HORARIOS', false);\n\t\t\t}\n\n\t\t\t/* DATOS DE LA TABLA */\n\t\t\t$linea = 1;\n\t\t\tforeach($conf_pasos as $conf_paso) {\n\t\t\t\t$tag_dato = $xpath->query('//detalle[@paso_orden='.$conf_paso->getAttribute('paso_orden').']/datos/dato')->item(0);\n\t\t\t\tif ($tag_dato == null) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t$T->setVar('__print_class', ($linea % 2 == 0)?\"celdaIteracion2\":\"celdaIteracion1\");\n\t\t\t\t$T->setVar('__class', ($linea % 2 == 0)?\"celdanegra15\":\"celdanegra10\");\n\t\t\t\t$T->setVar('__paso_nombre', $conf_paso->getAttribute('nombre'));\n\t\t\t\t$T->setVar('__paso_minimo', number_format($tag_dato->getAttribute('tiempo_min'), 3, ',', ''));\n\t\t\t\t$T->setVar('__paso_maximo', number_format($tag_dato->getAttribute('tiempo_max'), 3, ',', ''));\n\t\t\t\t$T->setVar('__paso_promedio', number_format($tag_dato->getAttribute('tiempo_prom'), 3, ',', ''));\n\t\t\t\t$T->parse('lista_pasos', 'LISTA_PASOS', true);\n\t\t\t\t$linea++;\n\t\t\t}\n\t\t\t$T->parse('bloque_tabla', 'BLOQUE_TABLA', true);\n\t\t\t$orden++;\n\t\t}\n\t\t$this->tiempo_expiracion = (strtotime($xpath->query(\"//fecha_expiracion\")->item(0)->nodeValue) - strtotime($xpath->query(\"//fecha\")->item(0)->nodeValue));\n\t\t$this->resultado =$T->parse('out', 'tpl_tabla');\n\t}", "public function data(){\n $id = $this->registro_id;\n $tabla = $this->tabla;\n $datos = '';\n\n if ($tabla == 'conductor') {\n $datos = Persona::where('id','=',$id)->get();\n }elseif ($tabla == 'propietario') {\n $datos = Persona::where('id','=',$id)->get();\n }elseif ($tabla == 'usuarios') {\n $datos = User2::where('id','=',$id)->get();\n }elseif($tabla == 'operadoras') {\n $datos = Operadora::where('id','=',$id)->get();\n }elseif ($tabla == 'rutas') {\n $datos = Ruta::where('id','=',$id)->get();\n }elseif ($tabla == 'marcas') {\n $datos = Marca::where('id','=',$id)->get();\n }elseif ($tabla == 'colores') {\n $datos = Color::where('id','=',$id)->get();\n }elseif($tabla == 'vehiculos') {\n $datos = Vehiculo::where('id','=',$id)->get();\n }\n\n return $datos;\n }", "private function rowDataTable($seccion, $tabla, $id) {\n $data = '';\n switch ($tabla) {\n case 'usuario':\n $sql = $this->db->select(\"SELECT wa.nombre, wa.email, wr.descripcion as rol, wa.estado\n FROM usuario wa\n LEFT JOIN usuario_rol wr on wr.id = wa.id_usuario_rol WHERE wa.id = $id;\");\n break;\n case 'meta_tags':\n $sql = $this->db->select(\"SELECT\n m.es_texto,\n en_texto\n FROM\n meta_tags mt\n LEFT JOIN menu m ON m.id = mt.id_menu WHERE mt.id = $id;\");\n break;\n default :\n $sql = $this->db->select(\"SELECT * FROM $tabla WHERE id = $id;\");\n break;\n }\n\n switch ($seccion) {\n case 'redes':\n if ($sql[0]['estado'] == 1) {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"redes\" data-rowid=\"redes_\" data-tabla=\"redes\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"1\"><span class=\"label label-primary\">Activo</span></a>';\n } else {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"redes\" data-rowid=\"redes_\" data-tabla=\"redes\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"0\"><span class=\"label label-danger\">Inactivo</span></a>';\n }\n $btnEditar = '<a class=\"editDTContenido pointer btn-xs\" data-id=\"' . $id . '\" data-url=\"modalEditarRedes\"><i class=\"fa fa-edit\"></i> Editar </a>';\n $btnBorrar = '<a class=\"deletDTContenido pointer btn-xs txt-red\" data-rowid=\"redes_\" data-id=\"' . $id . '\" data-tabla=\"redes\"><i class=\"fa fa-trash-o\"></i> Eliminar </a>';\n $data = '<td>' . utf8_encode($sql[0]['orden']) . '</td>'\n . '<td>' . utf8_encode($sql[0]['descripcion']) . '</td>'\n . '<td>' . utf8_encode($sql[0]['url']) . '</td>'\n . '<td>' . $estado . '</td>'\n . '<td>' . $btnEditar . ' ' . $btnBorrar . '</td>';\n break;\n case 'usuarios':\n if ($sql[0]['estado'] == 1) {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"usuarios\" data-rowid=\"usuarios_\" data-tabla=\"usuario\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"1\"><span class=\"label label-primary\">Activo</span></a>';\n } else {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"usuarios\" data-rowid=\"usuarios_\" data-tabla=\"usuario\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"0\"><span class=\"label label-danger\">Inactivo</span></a>';\n }\n $btnEditar = '<a class=\"editDTContenido pointer btn-xs\" data-id=\"' . $id . '\" data-url=\"modalEditarDTUsuario\"><i class=\"fa fa-edit\"></i> Editar </a>';\n $btnBorrar = '<a class=\"deletDTContenido pointer btn-xs txt-red\" data-rowid=\"usuarios_\" data-id=\"' . $id . '\" data-tabla=\"usuario\"><i class=\"fa fa-trash-o\"></i> Eliminar </a>';\n $data = '<td>' . utf8_encode($sql[0]['nombre']) . '</td>'\n . '<td>' . utf8_encode($sql[0]['email']) . '</td>'\n . '<td>' . utf8_encode($sql[0]['rol']) . '</td>'\n . '<td>' . $estado . '</td>'\n . '<td>' . $btnEditar . ' ' . $btnBorrar . '</td>';\n break;\n case 'blog':\n if ($sql[0]['estado'] == 1) {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"blog\" data-rowid=\"blog_\" data-tabla=\"blog\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"1\"><span class=\"label label-primary\">Activo</span></a>';\n } else {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"blog\" data-rowid=\"blog_\" data-tabla=\"blog\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"0\"><span class=\"label label-danger\">Inactivo</span></a>';\n }\n $btnEditar = '<a class=\"editDTContenido pointer btn-xs\" data-id=\"' . $id . '\" data-url=\"modalEditarBlogPost\" data-pagina=\"blog\"><i class=\"fa fa-edit\"></i> Editar </a>';\n $btnBorrar = '<a class=\"deletDTContenido pointer btn-xs txt-red\" data-rowid=\"redes_\" data-id=\"' . $id . '\" data-tabla=\"redes\"><i class=\"fa fa-trash-o\"></i> Eliminar </a>';\n if (empty($sql[0]['youtube_id'])) {\n $imagen = '<img class=\"img-responsive imgBlogTable\" src=\"' . URL . 'public/images/blog/thumb/' . $sql[0]['imagen_thumb'] . '\">';\n } else {\n $imagen = '<iframe class=\"scale-with-grid\" src=\"http://www.youtube.com/embed/' . $sql[0]['youtube_id'] . '?wmode=opaque\" allowfullscreen></iframe>';\n }\n $data = '<td>' . $sql[0]['id'] . '</td>'\n . '<td>' . utf8_encode($sql[0]['es_titulo']) . '</td>'\n . '<td>' . utf8_encode($sql[0]['en_titulo']) . '</td>'\n . '<td>' . $imagen . '</td>'\n . '<td>' . date('d-m-Y', strtotime($sql[0]['fecha_blog'])) . '</td>'\n . '<td>' . $estado . '</td>'\n . '<td>' . $btnEditar . ' ' . $btnBorrar . '</td>';\n break;\n case 'slider':\n if ($sql[0]['estado'] == 1) {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"slider\" data-rowid=\"slider_\" data-tabla=\"slider\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"1\"><span class=\"label label-primary\">Activo</span></a>';\n } else {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"slider\" data-rowid=\"slider_\" data-tabla=\"slider\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"0\"><span class=\"label label-danger\">Inactivo</span></a>';\n }\n $btnEditar = '<a class=\"editDTContenido pointer btn-xs\" data-id=\"' . $id . '\" data-url=\"modalEditarDTSlider\" data-pagina=\"slider\"><i class=\"fa fa-edit\"></i> Editar </a>';\n $btnBorrar = '<a class=\"deletDTContenido pointer btn-xs txt-red\" data-rowid=\"slider_\" data-id=\"' . $id . '\" data-tabla=\"slider\"><i class=\"fa fa-trash-o\"></i> Eliminar </a>';\n if (!empty($sql[0]['imagen'])) {\n $img = '<img src=\"' . URL . 'public/images/slider/' . $sql[0]['imagen'] . '\" style=\"width: 160px;\">';\n } else {\n $img = '-';\n }\n $data = '<td>' . utf8_encode($sql[0]['orden']) . '</td>'\n . '<td>' . $img . '</td>'\n . '<td>' . utf8_encode($sql[0]['es_titulo']) . '</td>'\n . '<td>' . utf8_encode($sql[0]['en_titulo']) . '</td>'\n . '<td>' . utf8_encode($sql[0]['es_titulo_principal']) . '</td>'\n . '<td>' . utf8_encode($sql[0]['en_titulo_principal']) . '</td>'\n . '<td>' . $estado . '</td>'\n . '<td>' . $btnEditar . ' ' . $btnBorrar . '</td>';\n break;\n case 'certificaciones':\n if ($sql[0]['estado'] == 1) {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"certificaciones\" data-rowid=\"certificaciones_\" data-tabla=\"certificaciones\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"1\"><span class=\"label label-primary\">Activo</span></a>';\n } else {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"certificaciones\" data-rowid=\"certificaciones_\" data-tabla=\"certificaciones\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"0\"><span class=\"label label-danger\">Inactivo</span></a>';\n }\n $btnEditar = '<a class=\"editDTContenido pointer btn-xs\" data-id=\"' . $id . '\" data-url=\"modalEditarDTCertificaciones\" data-pagina=\"certificaciones\"><i class=\"fa fa-edit\"></i> Editar </a>';\n $btnBorrar = '<a class=\"deletDTContenido pointer btn-xs txt-red\" data-rowid=\"certificaciones_\" data-id=\"' . $id . '\" data-tabla=\"certificaciones\"><i class=\"fa fa-trash-o\"></i> Eliminar </a>';\n if (!empty($sql[0]['imagen_certificacion'])) {\n $img = '<img src=\"' . URL . 'public/images/certificaciones/' . $sql[0]['imagen_certificacion'] . '\" style=\"width: 160px;\">';\n } else {\n $img = '-';\n }\n $data = '<td>' . utf8_encode($sql[0]['orden']) . '</td>'\n . '<td>' . $img . '</td>'\n . '<td>' . utf8_encode($sql[0]['es_nombre']) . '</td>'\n . '<td>' . utf8_encode($sql[0]['en_nombre']) . '</td>'\n . '<td>' . $estado . '</td>'\n . '<td>' . $btnEditar . ' ' . $btnBorrar . '</td>';\n break;\n case 'fraseNosotros':\n if ($sql[0]['estado'] == 1) {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"fraseNosotros\" data-rowid=\"fraseNosotros_\" data-tabla=\"aboutus_seccion2\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"1\"><span class=\"label label-primary\">Activo</span></a>';\n } else {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"fraseNosotros\" data-rowid=\"fraseNosotros_\" data-tabla=\"aboutus_seccion2\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"0\"><span class=\"label label-danger\">Inactivo</span></a>';\n }\n $btnEditar = '<a class=\"editDTContenido pointer btn-xs\" data-id=\"' . $id . '\" data-url=\"modalEditarDTFraseNosotros\"><i class=\"fa fa-edit\"></i> Editar </a>';\n $btnBorrar = '<a class=\"deletDTContenido pointer btn-xs txt-red\" data-rowid=\"fraseNosotros_\" data-id=\"' . $id . '\" data-tabla=\"aboutus_seccion2\"><i class=\"fa fa-trash-o\"></i> Eliminar </a>';\n $data = '<td>' . utf8_encode($sql[0]['orden']) . '</td>'\n . '<td>' . utf8_encode($sql[0]['es_frase']) . '</td>'\n . '<td>' . utf8_encode($sql[0]['en_frase']) . '</td>'\n . '<td>' . $estado . '</td>'\n . '<td>' . $btnEditar . ' ' . $btnBorrar . '</td>';\n break;\n case 'fraseRetail':\n if ($sql[0]['estado'] == 1) {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"fraseRetail\" data-rowid=\"fraseRetail_\" data-tabla=\"privatelabel_seccion2\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"1\"><span class=\"label label-primary\">Activo</span></a>';\n } else {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"fraseRetail\" data-rowid=\"fraseRetail_\" data-tabla=\"privatelabel_seccion2\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"0\"><span class=\"label label-danger\">Inactivo</span></a>';\n }\n $btnEditar = '<a class=\"editDTContenido pointer btn-xs\" data-id=\"' . $id . '\" data-url=\"modalEditarDTFraseRetail\"><i class=\"fa fa-edit\"></i> Editar </a>';\n $btnBorrar = '<a class=\"deletDTContenido pointer btn-xs txt-red\" data-rowid=\"fraseRetail_\" data-id=\"' . $id . '\" data-tabla=\"privatelabel_seccion2\"><i class=\"fa fa-trash-o\"></i> Eliminar </a>';\n $data = '<td>' . utf8_encode($sql[0]['orden']) . '</td>'\n . '<td>' . utf8_encode($sql[0]['es_frase']) . '</td>'\n . '<td>' . utf8_encode($sql[0]['en_frase']) . '</td>'\n . '<td>' . $estado . '</td>'\n . '<td>' . $btnEditar . ' ' . $btnBorrar . '</td>';\n break;\n case 'nosotrosSeccion3':\n if ($sql[0]['estado'] == 1) {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"nosotrosSeccion3\" data-rowid=\"nosotrosSeccion3_\" data-tabla=\"aboutus_seccion3\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"1\"><span class=\"label label-primary\">Activo</span></a>';\n } else {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"nosotrosSeccion3\" data-rowid=\"nosotrosSeccion3_\" data-tabla=\"aboutus_seccion3\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"0\"><span class=\"label label-danger\">Inactivo</span></a>';\n }\n $btnEditar = '<a class=\"editDTContenido pointer btn-xs\" data-id=\"' . $id . '\" data-url=\"modalEditarDTNosotrosSeccion3\"><i class=\"fa fa-edit\"></i> Editar </a>';\n $btnBorrar = '<a class=\"deletDTContenido pointer btn-xs txt-red\" data-rowid=\"nosotrosSeccion3_\" data-id=\"' . $id . '\" data-tabla=\"aboutus_seccion3\"><i class=\"fa fa-trash-o\"></i> Eliminar </a>';\n $data = '<td>' . utf8_encode($sql[0]['orden']) . '</td>'\n . '<td>' . utf8_encode($sql[0]['es_titulo']) . '</td>'\n . '<td>' . utf8_encode($sql[0]['en_titulo']) . '</td>'\n . '<td>' . $estado . '</td>'\n . '<td>' . $btnEditar . ' ' . $btnBorrar . '</td>';\n break;\n case 'itemProductos':\n if ($sql[0]['estado'] == 1) {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"itemProductos\" data-rowid=\"itemProductos_\" data-tabla=\"productos_items\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"1\"><span class=\"label label-primary\">Activo</span></a>';\n } else {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"itemProductos\" data-rowid=\"itemProductos_\" data-tabla=\"productos_items\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"0\"><span class=\"label label-danger\">Inactivo</span></a>';\n }\n $btnEditar = '<a class=\"editDTContenido pointer btn-xs\" data-id=\"' . $id . '\" data-url=\"modalEditarDTItemProducto\" data-pagina=\"itemProductos\"><i class=\"fa fa-edit\"></i> Editar </a>';\n $btnBorrar = '<a class=\"deletDTContenido pointer btn-xs txt-red\" data-rowid=\"itemProductos_\" data-id=\"' . $id . '\" data-tabla=\"productos_items\"><i class=\"fa fa-trash-o\"></i> Eliminar </a>';\n if (!empty($sql[0]['imagen'])) {\n $img = '<img src=\"' . URL . 'public/images/productos/items/' . $sql[0]['imagen'] . '\" style=\"width: 160px;\">';\n } else {\n $img = '-';\n }\n $data = '<td>' . utf8_encode($sql[0]['orden']) . '</td>'\n . '<td>' . $img . '</td>'\n . '<td>' . utf8_encode($sql[0]['es_nombre']) . '</td>'\n . '<td>' . utf8_encode($sql[0]['en_nombre']) . '</td>'\n . '<td>' . $estado . '</td>'\n . '<td>' . $btnEditar . ' ' . $btnBorrar . '</td>';\n break;\n case 'productos':\n if ($sql[0]['estado'] == 1) {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"productos\" data-rowid=\"productos_\" data-tabla=\"productos\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"1\"><span class=\"label label-primary\">Activo</span></a>';\n } else {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"productos\" data-rowid=\"productos_\" data-tabla=\"productos\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"0\"><span class=\"label label-danger\">Inactivo</span></a>';\n }\n $btnListado = '<a class=\"mostrarListadoProductos pointer btn-xs\" data-id=\"' . $id . '\"><i class=\"fa fa-list\"></i> Listado </a>';\n $btnEditar = '<a class=\"editDTContenido pointer btn-xs\" data-id=\"' . $id . '\" data-url=\"modalEditarDTProducto\" data-pagina=\"productos\"><i class=\"fa fa-edit\"></i> Editar </a>';\n //$btnBorrar = '<a class=\"deletDTContenido pointer btn-xs txt-red\" data-rowid=\"productos_\" data-id=\"' . $id . '\" data-tabla=\"productos\"><i class=\"fa fa-trash-o\"></i> Eliminar </a>';\n if (!empty($sql[0]['imagen'])) {\n $img = '<img src=\"' . URL . 'public/images/productos/' . $sql[0]['imagen'] . '\" style=\"width: 160px;\">';\n } else {\n $img = '-';\n }\n $data = '<td>' . utf8_encode($sql[0]['orden']) . '</td>'\n . '<td>' . $img . '</td>'\n . '<td>' . utf8_encode($sql[0]['es_producto']) . '</td>'\n . '<td>' . utf8_encode($sql[0]['en_producto']) . '</td>'\n . '<td>' . $estado . '</td>'\n . '<td>' . $btnListado . ' ' . $btnEditar . '</td>';\n break;\n case 'servicios':\n if ($sql[0]['estado'] == 1) {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"servicios\" data-rowid=\"servicios_\" data-tabla=\"servicios\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"1\"><span class=\"label label-primary\">Activo</span></a>';\n } else {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"servicios\" data-rowid=\"servicios_\" data-tabla=\"servicios\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"0\"><span class=\"label label-danger\">Inactivo</span></a>';\n }\n $btnEditar = '<a class=\"editDTContenido pointer btn-xs\" data-id=\"' . $id . '\" data-url=\"modalEditarDTServicios\" data-pagina=\"servicios\"><i class=\"fa fa-edit\"></i> Editar </a>';\n $btnBorrar = '<a class=\"deletDTContenido pointer btn-xs txt-red\" data-rowid=\"servicios_\" data-id=\"' . $id . '\" data-tabla=\"servicios\"><i class=\"fa fa-trash-o\"></i> Eliminar </a>';\n $data = '<td>' . utf8_encode($sql[0]['orden']) . '</td>'\n . '<td>' . utf8_encode($sql[0]['es_servicio']) . '</td>'\n . '<td>' . utf8_encode($sql[0]['en_servicio']) . '</td>'\n . '<td>' . $estado . '</td>'\n . '<td>' . $btnEditar . ' ' . $btnBorrar . '</td>';\n break;\n case 'verContacto':\n if ($sql[0]['leido'] == 1) {\n $estado = '<span class=\"label label-primary\">Leído</span>';\n } else {\n $estado = '<span class=\"label label-danger\">No Leído</span>';\n }\n $btnEditar = '<a class=\"btnVerContacto pointer btn-xs\" data-id=\"' . $id . '\" data-url=\"modalVerContacto\"><i class=\"fa fa-edit\"></i> Ver Datos </a>';\n $data = '<td class=\"sorting_1\">' . $id . '</td>'\n . '<td>' . utf8_encode($sql[0]['nombre']) . '</td>'\n . '<td>' . utf8_encode($sql[0]['email']) . '</td>'\n . '<td>' . utf8_encode($sql[0]['asunto']) . '</td>'\n . '<td>' . date('d-m-Y H:i:s', strtotime($sql[0]['fecha'])) . '</td>'\n . '<td>' . $estado . '</td>'\n . '<td>' . $btnEditar . '</td>';\n break;\n case 'meta_tags':\n $btnEditar = '<a class=\"editDTContenido pointer btn-xs\" data-id=\"' . $id . '\" data-url=\"modalEditarMetaTag\"><i class=\"fa fa-edit\"></i> Editar </a>';\n $data = '<td>' . $id . '</td>'\n . '<td>' . utf8_encode($sql[0]['es_texto']) . '</td>'\n . '<td>' . utf8_encode($sql[0]['en_texto']) . '</td>'\n . '<td>' . $btnEditar . '</td>';\n break;\n case 'menu':\n if ($sql[0]['estado'] == 1) {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"menu\" data-rowid=\"menu_\" data-tabla=\"menu\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"1\"><span class=\"label label-primary\">Activo</span></a>';\n } else {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"menu\" data-rowid=\"menu_\" data-tabla=\"menu\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"0\"><span class=\"label label-danger\">Inactivo</span></a>';\n }\n $btnEditar = '<a class=\"editDTContenido pointer btn-xs\" data-id=\"' . $id . '\" data-url=\"modalEditarMenu\"><i class=\"fa fa-edit\"></i> Editar </a>';\n $data = '<td>' . utf8_encode($sql[0]['orden']) . '</td>'\n . '<td>' . utf8_encode($sql[0]['es_texto']) . '</td>'\n . '<td>' . utf8_encode($sql[0]['en_texto']) . '</td>'\n . '<td>' . $estado . '</td>'\n . '<td>' . $btnEditar . '</td>';\n break;\n }\n return $data;\n }", "static public function mdlMostraPedidosTablas($valor){\n\n\t\tif($valor != null){\n\n\t\t\t$sql=\"SELECT\n\t\t\t\t\t\tt.id,\n\t\t\t\t\t\tt.codigo,\n\t\t\t\t\t\tc.codigo AS cod_cli,\n\t\t\t\t\t\tc.nombre,\n\t\t\t\t\t\tc.tipo_documento,\n\t\t\t\t\t\tc.documento,\n\t\t\t\t\t\tt.lista,\n\t\t\t\t\t\tt.vendedor,\n\t\t\t\t\t\tt.op_gravada,\n\t\t\t\t\t\tt.descuento_total,\n\t\t\t\t\t\tt.sub_total,\n\t\t\t\t\t\tt.igv,\n\t\t\t\t\t\tt.total,\n\t\t\t\t\t\tROUND(\n\t\t\t\t\t\tt.descuento_total / t.op_gravada * 100,\n\t\t\t\t\t\t2\n\t\t\t\t\t\t) AS dscto,\n\t\t\t\t\t\tt.condicion_venta,\n\t\t\t\t\t\tcv.descripcion,\n\t\t\t\t\t\tt.estado,\n\t\t\t\t\t\tt.usuario,\n\t\t\t\t\t\tt.agencia,\n\t\t\t\t\t\tu.nombre AS nom_usu,\n\t\t\t\t\t\tDATE(t.fecha) AS fecha,\n\t\t\t\t\t\tcv.dias,\n\t\t\t\t\t\tDATE_ADD(DATE(t.fecha), INTERVAL cv.dias DAY) AS fecha_ven\n\t\t\t\t\tFROM\n\t\t\t\t\t\ting_sal t\n\t\t\t\t\t\tLEFT JOIN clientesjf c\n\t\t\t\t\t\tON t.cliente = c.codigo\n\t\t\t\t\t\tLEFT JOIN condiciones_ventajf cv\n\t\t\t\t\t\tON t.condicion_venta = cv.id\n\t\t\t\t\t\tLEFT JOIN usuariosjf u\n\t\t\t\t\t\tON t.usuario = u.id\n\t\t\t\t\tWHERE t.estado = '$valor'\n\t\t\t\t\tORDER BY fecha DESC\";\n\n\t\t$stmt=Conexion::conectar()->prepare($sql);\n\n\t\t$stmt->execute();\n\n\t\treturn $stmt->fetchAll();\n\n\t\t}else{\n\n\t\t\t$sql=\"SELECT\n\t\t\t\t\tt.id,\n\t\t\t\t\tt.codigo,\n\t\t\t\t\tc.codigo AS cod_cli,\n\t\t\t\t\tc.nombre,\n\t\t\t\t\tc.tipo_documento,\n\t\t\t\t\tc.documento,\n\t\t\t\t\tt.lista,\n\t\t\t\t\tt.vendedor,\n\t\t\t\t\tt.op_gravada,\n\t\t\t\t\tt.descuento_total,\n\t\t\t\t\tt.sub_total,\n\t\t\t\t\tt.igv,\n\t\t\t\t\tt.total,\n\t\t\t\t\tROUND(\n\t\t\t\t\tt.descuento_total / t.op_gravada * 100,\n\t\t\t\t\t2\n\t\t\t\t\t) AS dscto,\n\t\t\t\t\tt.condicion_venta,\n\t\t\t\t\tcv.descripcion,\n\t\t\t\t\tt.estado,\n\t\t\t\t\tt.usuario,\n\t\t\t\t\tt.agencia,\n\t\t\t\t\tu.nombre AS nom_usu,\n\t\t\t\t\tDATE(t.fecha) AS fecha,\n\t\t\t\t\tcv.dias,\n\t\t\t\t\tDATE_ADD(DATE(t.fecha), INTERVAL cv.dias DAY) AS fecha_ven\n\t\t\t\tFROM\n\t\t\t\t\ting_sal t\n\t\t\t\t\tLEFT JOIN clientesjf c\n\t\t\t\t\tON t.cliente = c.codigo\n\t\t\t\t\tLEFT JOIN condiciones_ventajf cv\n\t\t\t\t\tON t.condicion_venta = cv.id\n\t\t\t\t\tLEFT JOIN usuariosjf u\n\t\t\t\t\tON t.usuario = u.id\n\t\t\t\tWHERE t.codigo = $valor\";\n\n\t\t$stmt=Conexion::conectar()->prepare($sql);\n\n\t\t$stmt->execute();\n\n\t\treturn $stmt->fetch();\n\n\t\t}\n\n\t\t$stmt=null;\n\n\t}", "function buscarUtlimaSalidaDAO(){\n $conexion = Conexion::crearConexion();\n try {\n $conexion->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n $stm = $conexion->prepare(\"SELECT * FROM salidas ORDER BY id_venta DESC LIMIT 1\");\n $stm->execute();\n $exito = $stm->fetch();\n } catch (Exception $ex) {\n throw new Exception(\"Error al buscar la ultima salida en bd\");\n }\n return $exito;\n }", "protected function _readTable() {}", "public function current() {\n $row = array();\n foreach ($this->result->fetch_row() as $id => $val) {\n $table = $this->fields[$id]->table;\n if (!in_array($table, $this->tables))\n $table = 'rest';\n\n # NUM_FLAG = 32768\n if ($this->fields[$id]->flags & 32768 && $val !== null)\n $val = floatval($val);\n\n $row[$table][$this->fields[$id]->name] = $val;\n }\n \n return $row;\n }", "protected function _readTable() {}", "private function rowDataTable($seccion, $tabla, $id) {\n $data = '';\n switch ($tabla) {\n case 'admin_usuario':\n $sql = $this->db->select(\"SELECT wa.nombre, wa.email, wr.descripcion as rol, wa.estado\n FROM admin_usuario wa\n LEFT JOIN admin_rol wr on wr.id = wa.id_rol WHERE wa.id = $id;\");\n break;\n case 'ciudad':\n $sql = $this->db->select(\"SELECT c.id, c.descripcion as ciudad, c.estado, d.descripcion as departamento FROM ciudad c\n LEFT JOIN departamento d on c.id_departamento = d.id WHERE c.id = $id;\");\n break;\n default :\n $sql = $this->db->select(\"SELECT * FROM $tabla WHERE id = $id;\");\n break;\n }\n switch ($seccion) {\n case 'departamento':\n if ($sql[0]['estado'] == 1) {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"departamento\" data-rowid=\"departamento_\" data-tabla=\"departamento\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"1\"><span class=\"label label-primary\">Activo</span></a>';\n } else {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"departamento\" data-rowid=\"departamento_\" data-tabla=\"departamento\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"0\"><span class=\"label label-danger\">Inactivo</span></a>';\n }\n $btnEditar = '<a class=\"editDTContenido pointer btn-xs\" data-id=\"' . $id . '\" data-url=\"modal_editar_departamento\" data-id=\"\"><i class=\"fa fa-edit\"></i> Editar </a>';\n $data = '<td>' . $id . '</td>'\n . '<td>' . utf8_encode($sql[0]['descripcion']) . '</td>'\n . '<td>' . $estado . '</td>'\n . '<td>' . $btnEditar . '</td>';\n break;\n case 'ciudad':\n if ($sql[0]['estado'] == 1) {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"ciudad\" data-rowid=\"ciudad_\" data-tabla=\"ciudad\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"1\"><span class=\"label label-primary\">Activo</span></a>';\n } else {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"ciudad\" data-rowid=\"ciudad_\" data-tabla=\"ciudad\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"0\"><span class=\"label label-danger\">Inactivo</span></a>';\n }\n $btnEditar = '<a class=\"editDTContenido pointer btn-xs\" data-id=\"' . $id . '\" data-url=\"modalEditarCiudad\"><i class=\"fa fa-edit\"></i> Editar </a>';\n $data = '<td>' . utf8_encode($sql[0]['departamento']) . '</td>'\n . '<td>' . utf8_encode($sql[0]['ciudad']) . '</td>'\n . '<td>' . $estado . '</td>'\n . '<td>' . $btnEditar . '</td>';\n break;\n case 'slider':\n if ($sql[0]['estado'] == 1) {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"slider\" data-rowid=\"slider_\" data-tabla=\"web_inicio_slider\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"1\"><span class=\"label label-primary\">Activo</span></a>';\n } else {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"slider\" data-rowid=\"slider_\" data-tabla=\"web_inicio_slider\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"0\"><span class=\"label label-danger\">Inactivo</span></a>';\n }\n $btnEditar = '<a class=\"editDTContenido pointer btn-xs\" data-id=\"' . $id . '\" data-url=\"modalEditarDTSlider\"><i class=\"fa fa-edit\"></i> Editar </a>';\n if (!empty($sql[0]['imagen'])) {\n $img = '<img src=\"' . URL . 'public/images/slider/' . $sql[0]['imagen'] . '\" style=\"width: 160px;\">';\n } else {\n $img = '';\n }\n if ($sql[0]['principal'] == 1) {\n $principal = '<span class=\"badge badge-warning\">Principal</span>';\n } else {\n $principal = '<span class=\"badge\">Normal</span>';\n }\n $data = '<td>' . $sql[0]['orden'] . '</td>'\n . '<td>' . $img . '</td>'\n . '<td>' . utf8_encode($sql[0]['texto_1']) . '</td>'\n . '<td>' . utf8_encode($sql[0]['texto_2']) . '</td>'\n . '<td>' . $principal . '</td>'\n . '<td>' . $estado . '</td>'\n . '<td>' . $btnEditar . '</td>';\n break;\n case 'caracteristicas';\n if ($sql[0]['estado'] == 1) {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"caracteristicas\" data-rowid=\"caracteristicas_\" data-tabla=\"web_inicio_caracteristicas\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"1\"><span class=\"label label-primary\">Activo</span></a>';\n } else {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"caracteristicas\" data-rowid=\"caracteristicas_\" data-tabla=\"web_inicio_caracteristicas\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"0\"><span class=\"label label-danger\">Inactivo</span></a>';\n }\n $icono = '<i class=\"' . utf8_encode($sql[0]['icon']) . '\"></i>';\n $btnEditar = '<a class=\"editDTContenido pointer btn-xs\" data-id=\"' . $id . '\" data-url=\"modalEditarCaracteristicas\"><i class=\"fa fa-edit\"></i> Editar </a>';\n $data = '<td>' . utf8_encode($sql[0]['orden']) . '</td>'\n . '<td>' . utf8_encode($sql[0]['titulo']) . '</td>'\n . '<td>' . $icono . '</td>'\n . '<td>' . $estado . '</td>'\n . '<td>' . $btnEditar . '</td>';\n break;\n case 'frases':\n if ($sql[0]['estado'] == 1) {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"frases\" data-rowid=\"frases_\" data-tabla=\"web_frases\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"1\"><span class=\"label label-primary\">Activo</span></a>';\n } else {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"frases\" data-rowid=\"frases_\" data-tabla=\"web_frases\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"0\"><span class=\"label label-danger\">Inactivo</span></a>';\n }\n $btnEditar = '<a class=\"editDTContenido pointer btn-xs\" data-id=\"' . $id . '\" data-url=\"modalEditarFrases\"><i class=\"fa fa-edit\"></i> Editar </a>';\n $data = '<td>' . utf8_encode($sql[0]['orden']) . '</td>'\n . '<td>' . utf8_encode($sql[0]['frase']) . '</td>'\n . '<td>' . utf8_encode($sql[0]['autor']) . '</td>'\n . '<td>' . $estado . '</td>'\n . '<td>' . $btnEditar . '</td>';\n break;\n case 'servicios':\n if ($sql[0]['estado'] == 1) {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"servicios\" data-rowid=\"servicios_\" data-tabla=\"web_inicio_servicios\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"1\"><span class=\"label label-primary\">Activo</span></a>';\n } else {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"servicios\" data-rowid=\"servicios_\" data-tabla=\"web_inicio_servicios\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"0\"><span class=\"label label-danger\">Inactivo</span></a>';\n }\n $btnEditar = '<a class=\"editDTContenido pointer btn-xs\" data-id=\"' . $id . '\" data-url=\"modalEditarServicios\"><i class=\"fa fa-edit\"></i> Editar </a>';\n $data = '<td>' . utf8_encode($sql[0]['orden']) . '</td>'\n . '<td>' . utf8_encode($sql[0]['servicio']) . '</td>'\n . '<td>' . $estado . '</td>'\n . '<td>' . $btnEditar . '</td>';\n break;\n case 'verContacto':\n if ($sql[0]['leido'] == 1) {\n $estado = '<span class=\"label label-primary\">Leído</span>';\n } else {\n $estado = '<span class=\"label label-danger\">No Leído</span>';\n }\n $btnEditar = '<a class=\"btnVerContacto pointer btn-xs\" data-id=\"' . $id . '\" data-url=\"modalVerContacto\"><i class=\"fa fa-edit\"></i> Ver Datos </a>';\n $data = '<td>' . $id . '</td>'\n . '<td>' . utf8_encode($sql[0]['nombre']) . '</td>'\n . '<td>' . utf8_encode($sql[0]['email']) . '</td>'\n . '<td>' . utf8_encode($sql[0]['asunto']) . '</td>'\n . '<td>' . date('d-m-Y H:i:s', strtotime($sql[0]['fecha'])) . '</td>'\n . '<td>' . $estado . '</td>'\n . '<td>' . $btnEditar . '</td>';\n break;\n case 'blog':\n if ($sql[0]['estado'] == 1) {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"blog\" data-rowid=\"blog_\" data-tabla=\"web_blog\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"1\"><span class=\"label label-primary\">Activo</span></a>';\n } else {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"blog\" data-rowid=\"blog_\" data-tabla=\"web_blog\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"0\"><span class=\"label label-danger\">Inactivo</span></a>';\n }\n $btnEditar = '<a class=\"editDTContenido pointer btn-xs\" data-id=\"' . $id . '\" data-url=\"modalEditarBlogPost\"><i class=\"fa fa-edit\"></i> Editar </a>';\n $imagen = '<img class=\"img-responsive imgBlogTable\" src=\"' . URL . 'public/images/blog/' . $sql[0]['imagen_thumb'] . '\">';\n $data = '<td>' . $sql[0]['id'] . '</td>'\n . '<td>' . utf8_encode($sql[0]['titulo']) . '</td>'\n . '<td>' . $imagen . '</td>'\n . '<td>' . date('d-m-Y', strtotime($sql[0]['fecha_blog'])) . '</td>'\n . '<td>' . $estado . '</td>'\n . '<td>' . $btnEditar . '</td>';\n break;\n case 'usuarios':\n if ($sql[0]['estado'] == 1) {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"usuarios\" data-rowid=\"usuarios_\" data-tabla=\"admin_usuario\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"1\"><span class=\"label label-primary\">Activo</span></a>';\n } else {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"usuarios\" data-rowid=\"usuarios_\" data-tabla=\"admin_usuario\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"0\"><span class=\"label label-danger\">Inactivo</span></a>';\n }\n $btnEditar = '<a class=\"editDTContenido pointer btn-xs\" data-id=\"' . $id . '\" data-url=\"modalEditarDTUsuario\"><i class=\"fa fa-edit\"></i> Editar </a>';\n $data = '<td>' . utf8_encode($sql[0]['nombre']) . '</td>'\n . '<td>' . utf8_encode($sql[0]['email']) . '</td>'\n . '<td>' . utf8_encode($sql[0]['rol']) . '</td>'\n . '<td>' . $estado . '</td>'\n . '<td>' . $btnEditar . '</td>';\n break;\n case 'paciente':\n if ($sql[0]['estado'] == 1) {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"paciente\" data-rowid=\"paciente_\" data-tabla=\"paciente\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"1\"><span class=\"label label-primary\">Activo</span></a>';\n } else {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"paciente\" data-rowid=\"paciente_\" data-tabla=\"paciente\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"0\"><span class=\"label label-danger\">Inactivo</span></a>';\n }\n $btnEditar = '<a class=\"editDTContenido pointer btn-xs\" data-id=\"' . $id . '\" data-url=\"modalEditarDatosPaciente\"><i class=\"fa fa-edit\"></i> Ver Datos / Editar </a>';\n $data = '<td>' . $id . '</td>'\n . '<td>' . utf8_encode($sql[0]['nombre']) . '</td>'\n . '<td>' . utf8_encode($sql[0]['apellido']) . '</td>'\n . '<td>' . utf8_encode($sql[0]['email']) . '</td>'\n . '<td>' . utf8_encode($sql[0]['documento']) . '</td>'\n . '<td>' . utf8_encode($sql[0]['telefono']) . '</td>'\n . '<td>' . utf8_encode($sql[0]['celular']) . '</td>'\n . '<td>' . $estado . '</td>'\n . '<td>' . $btnEditar . '</td>';\n break;\n case 'redes':\n if ($sql[0]['estado'] == 1) {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"redes\" data-rowid=\"redes_\" data-tabla=\"web_redes\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"1\"><span class=\"label label-primary\">Activo</span></a>';\n } else {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"redes\" data-rowid=\"redes_\" data-tabla=\"web_redes\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"0\"><span class=\"label label-danger\">Inactivo</span></a>';\n }\n $btnEditar = '<a class=\"editDTContenido pointer btn-xs\" data-id=\"' . $id . '\" data-url=\"modalEditarRedes\"><i class=\"fa fa-edit\"></i> Editar </a>';\n $data = '<td>' . utf8_encode($sql[0]['descripcion']) . '</td>'\n . '<td>' . utf8_encode($sql[0]['enlace']) . '</td>'\n . '<td>' . $estado . '</td>'\n . '<td>' . $btnEditar . '</td>';\n break;\n case 'metatags':\n $btnEditar = '<a class=\"editDTContenido pointer btn-xs\" data-id=\"' . $id . '\" data-url=\"modalEditarMetaTag\"><i class=\"fa fa-edit\"></i> Editar </a>';\n $data = '<td>' . $id . '</td>'\n . '<td>' . utf8_encode($sql[0]['pagina']) . '</td>'\n . '<td>' . $btnEditar . '</td>';\n break;\n }\n return $data;\n }", "public function Mostrar()\n\t{\n\t\t$data_table = $this->data_source->ejecutarConsulta(\"SELECT * FROM noticias order by 1 desc\");\n\n\t\treturn $data_table;\n\t}", "function insertarTablaInstancia(){\n\t\t$this->procedimiento='wf.ft_tabla_instancia_ime';\n\t\t$this->transaccion='WF_TABLAINS_INS';\n\t\t$this->tipo_procedimiento='IME';\n\t\t\n\t\t$this->setParametro('id_tabla','id_tabla','integer');\n\t\t$this->setParametro('tipo_estado','tipo_estado','varchar');\n\t\t$this->setParametro('tipo_proceso','tipo_proceso','varchar');\n\t\t//si es detalle se añade un parametro para el id del maestro\n\t\tif ($_SESSION['_wf_ins_'.$this->objParam->getParametro('tipo_proceso').'_'.$this->objParam->getParametro('tipo_estado')]['atributos']['vista_tipo'] != 'maestro') {\n\t\t\t\n\t\t\t$this->setParametro($_SESSION['_wf_ins_'.$this->objParam->getParametro('tipo_proceso').'_'.$this->objParam->getParametro('tipo_estado')]['atributos']['vista_campo_maestro'],\n\t\t\t\t\t\t\t\t$_SESSION['_wf_ins_'.$this->objParam->getParametro('tipo_proceso').'_'.$this->objParam->getParametro('tipo_estado')]['atributos']['vista_campo_maestro'],'integer');\n\t\t}\n\t\t//Define los parametros para la funcion\t\t\n\t\tforeach ($_SESSION['_wf_ins_'.$this->objParam->getParametro('tipo_proceso').'_'.$this->objParam->getParametro('tipo_estado')]['columnas'] as $value) {\n\t\t\t$this->setParametro($value['bd_nombre_columna'],$value['bd_nombre_columna'],$value['bd_tipo_columna']);\t\t\t\n\t\t}\t\t\t\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}", "static public function mdlMostrarRestaurante($tabla) {\n\n $smt = Conexion::conectar() ->prepare(\"SELECT * FROM $tabla\");\n\n $smt -> execute();\n\n return $smt -> fetchAll();\n \n $smt -> close();\n\n $smt = null;\n }", "function consultarLinea(){\n\t\t\n\t\t$this->mysqli = conectarBD();\n\t\t\n\t\t$sql = \"SELECT Linea_Factura.Id_Linea_Factura,Linea_Factura.Id_Factura,Servicio.Nombre,Linea_Factura.Importe,Linea_Factura.Descripcion FROM Linea_Factura INNER JOIN Servicio WHERE Linea_Factura.Id_Linea_Factura='\".$this->linea.\"' AND Linea_Factura.Id_Servicio=Servicio.Id_Servicio AND Linea_Factura.Borrado='0';\";\n\t\t$resultado = $this->mysqli->query($sql);\t\n\t\tif ($resultado->num_rows == 1){\n\t\t\t$row = $resultado->fetch_array();\n\t\t\treturn $row;\n\t\t}\n\t}", "static public function mdlMostrarTemporal($tabla, $valor){\n\n $stmt = Conexion::conectar()->prepare(\"SELECT * FROM $tabla WHERE codigo = $valor ORDER BY id ASC\");\n\n $stmt -> execute();\n\n return $stmt -> fetch();\n\n\t\t$stmt -> close();\n\n\t\t$stmt = null;\n\n\t}", "public static function getInstance()\n {\n return Doctrine_Core::getTable('InvoiceParticularEntry');\n }", "public function ConsultarDatosProduccion($codigo)\r\n {\r\n $objetoBD = new Conexion();\r\n $objetoBD->conectar();\r\n $mysqli = $objetoBD->cadenaconexion();\r\n\r\n $consulta = \"SELECT prod_id , prod_fecha, emp_nombres, emp_apellidos FROM empleados, produccion WHERE\r\n empleados.emp_id=produccion.emp_id AND prod_id=\".$codigo;\r\n $resultado = $mysqli->query($consulta);\r\n $tabla = mysqli_fetch_object($resultado);\r\n return $tabla;\r\n }", "function tablaRuta($Nombre){\r\n\t\t$query = \"SELECT * FROM \" . self::TABLA . \";\";\r\n\t\treturn parent::tablaRegistro($Nombre, $query);\r\n\t\r\n }", "public function getSalones(){\n\t\t$filasPagina = 7;//registros mostrados por página\n\n\t\tif(isset($_GET['pagina'])){//si le pasamos el valor \"pagina\" de la url (si el usuario da click en la paginación)\n\t\t\t\tif($_GET['pagina']==1){\n\t\t\t\t$pagina=1; \n\t\t\t\theader(\"Location: principal.php?c=controlador&a=muestraSalones\");\n\t\t\t\t}else{\n\t\t\t\t\t$pagina=$_GET['pagina'];//índice que indica página actual\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\t$pagina=1;//índice que indica página actual\n\t\t\t}\n\n\t\t\t$empezarDesde = ($pagina-1) * $filasPagina;\n\n\t\t\t$sql = \" SELECT * FROM salones \";\n\n\t\t\t$resultado = $this->db->query($sql);\n\n\t\t\t$resultado->execute(array());\n\n\t\t\t$numFilas = $resultado->rowCount();//número de registos totales de la consulta\n\n\t\t\t//ceil — Redondear fracciones hacia arriba\n\t\t\t$totalPaginas = ceil($numFilas / $filasPagina);//calcula cuántas páginas serán en total para mostrar todos los registros\n\n\t\t\t$resultado->closeCursor();\n\n\t\t//------------------------- Consulta para mostrar los resultados ---------------------------\n\n\t\t\t$sql_limite = \" SELECT * FROM salones LIMIT $empezarDesde , $filasPagina \";\n\n\t\t\t$resultado = $this->db->query($sql_limite);//ejecutando la consulta con la conexión establecida\n\n\t\t\twhile($row = $resultado->fetch(PDO::FETCH_ASSOC)){\n\t\t\t\t$this->objeto[] = $row;//llenando array con valores de la consulta\n\t\t\t}\n\n\t\treturn $this->objeto;\n\t}", "static function getEntradasHoy() {\n\n $ped = new PedidosCab();\n $tablaPedidos = $ped->getDataBaseName() . \".\" . $ped->getTableName();\n $prov = new Proveedores();\n $tablaProveedores = $prov->getDataBaseName() . \".\" . $prov->getTableName();\n\n $rows = array();\n $hoy = date('Y-m-d');\n\n $em = new EntityManager($ped->getConectionName());\n if ($em->getDbLink()) {\n $query = \"select a.PrimaryKeyMD5 as PrimaryKeyMD5,IDPedido,Fecha,RazonSocial,TotalBases from {$tablaPedidos} as a left join {$tablaProveedores} as c on a.IDProveedor=c.IDProveedor where (IDEstado='1') and FechaEntrega='{$hoy}' order by Fecha ASC\";\n $em->query($query);\n $rows = $em->fetchResult();\n }\n unset($em);\n unset($ped);\n unset($prov);\n\n return $rows;\n }", "public function getStoriaAssegnazioniTrasportatori()\n {\n $con = DBUtils::getConnection();\n $sql =\"SELECT id FROM history_trasportatori WHERE id_preventivo=$this->id_preventivo\";\n //echo \"\\nSQL1: \".$sql.\"\\n\";\n $res = mysql_query($sql);\n $found = 0;\n $result = array();\n\n while ($row=mysql_fetch_object($res))\n {\n //crea l'oggetto Arredo\n\n $obj = new AssegnazioneTrasportatore();\n $obj->load($row->id);\n\n $result[] = $obj;\n }\n\n DBUtils::closeConnection($con);\n return $result;\n\n }", "function obtener_inf_cliente(){\n $sql=\"select c.id_cliente,c.razon_social \n from cliente c\n \";\n \n $consulta =$this->db->query($sql);\n return $consulta;\n }", "static public function mdlRangoFechasVentas($tabla, $fechaInicial, $fechaFinal){\n\n\t\tif($fechaInicial == null){\n\n\t\t\t$stmt = Conexion::conectar()->prepare(\"SELECT * FROM $tabla ORDER BY id ASC\");\n\n\t\t\t$stmt -> execute();\n\n\t\t\treturn $stmt -> fetchAll();\t\n\n\n\t\t}else if($fechaInicial == $fechaFinal){\n\n\t\t\t$stmt = Conexion::conectar()->prepare(\"SELECT fecha_salida, round(sum(cantidad*precio_venta),2) AS totalvta FROM $tabla WHERE fecha_salida like '%$fechaFinal%'\");\n\n\t\t\t$stmt -> bindParam(\":fecha_salida\", $fechaFinal, PDO::PARAM_STR);\n\n\t\t\t$stmt -> execute();\n\n\t\t\treturn $stmt -> fetchAll();\n\n\t\t}else{\n\n\t\t\t$fechaActual = new DateTime();\n\t\t\t$fechaActual ->add(new DateInterval(\"P1D\"));\n\t\t\t$fechaActualMasUno = $fechaActual->format(\"Y-m-d\");\n\n\t\t\t$fechaFinal2 = new DateTime($fechaFinal);\n\t\t\t$fechaFinal2 ->add(new DateInterval(\"P1D\"));\n\t\t\t$fechaFinalMasUno = $fechaFinal2->format(\"Y-m-d\");\n\n\t\t\tif($fechaFinalMasUno == $fechaActualMasUno){\n\n\t\t\t\t$stmt = Conexion::conectar()->prepare(\"SELECT `fecha_salida`, round(SUM(IF(`es_promo` = 0, `cantidad`*`precio_venta`,0)),2) AS sinpromo, round(SUM(IF(`es_promo` = 1, `precio_venta`,0)),2) AS promo FROM $tabla WHERE fecha_salida BETWEEN '$fechaInicial' AND '$fechaFinalMasUno' GROUP BY fecha_salida\");\n\n\t\t\t\t//$stmt = Conexion::conectar()->prepare(\"SELECT fecha_salida, round(sum(cantidad*precio_venta),2) AS totalvta FROM $tabla WHERE fecha_salida BETWEEN '$fechaInicial' AND '$fechaFinalMasUno' GROUP BY fecha_salida\");\n\n\t\t\t\t//SELECT `fecha_salida`, round(SUM(IF(`es_promo` = 0, `cantidad`*`precio_venta`,0)),2) AS sinpromo, round(SUM(IF(`es_promo` = 1, `precio_venta`,0)),2) AS promo FROM hist_salidas WHERE fecha_salida BETWEEN '2019-08-01' AND '2019-12-27' GROUP BY fecha_salida\n\n\t\t\t}else{\n\n\t\t\t\t$stmt = Conexion::conectar()->prepare(\"SELECT `fecha_salida`, SUM(IF(`es_promo` = 0, `cantidad`*`precio_venta`,0)) AS sinpromo, SUM(IF(`es_promo` = 1, `precio_venta`,0)) AS promo FROM $tabla WHERE fecha_salida BETWEEN '$fechaInicial' AND '$fechaFinal' GROUP BY fecha_salida \");\n\n\t\t\t\t//$stmt = Conexion::conectar()->prepare(\"SELECT fecha_salida, round(sum(cantidad*precio_venta),2) AS totalvta FROM $tabla WHERE fecha_salida BETWEEN '$fechaInicial' AND '$fechaFinal' GROUP BY fecha_salida\");\n\n\t\t\t}\n\t\t\n\t\t\t$stmt -> execute();\n\n\t\t\treturn $stmt -> fetchAll();\n\n\t\t}\n\n\t}", "function getRegistrosPlus() {\n\t\tif (isset($this->extra[\"monitor_id\"]) and isset($this->extra[\"pagina\"])) {\n\t\t\t$this->resultado = $this->getDetalleRegistrosPlus($this->extra[\"monitor_id\"], $this->extra[\"pagina\"]);\n\t\t\treturn;\n\t\t}\n\n\t\tglobal $mdb2;\n\t\tglobal $log;\n\t\tglobal $current_usuario_id;\n\n\t\t/* OBTENER LOS DATOS Y PARSEARLO */\n\t\t$sql = \"SELECT foo.nodo_id FROM (\".\n\t\t\t \"SELECT DISTINCT unnest(_nodos_id) AS nodo_id FROM _nodos_id(\".\n\t\t\t\tpg_escape_string($current_usuario_id).\",\".\n\t\t\t\tpg_escape_string($this->objetivo_id).\",'\".\n\t\t\t\tpg_escape_string($this->timestamp->getInicioPeriodo()).\"','\".\n\t\t\t\tpg_escape_string($this->timestamp->getTerminoPeriodo()).\"')) AS foo, nodo n \".\n\t\t\t \"WHERE foo.nodo_id=n.nodo_id ORDER BY orden\";\n\n\t\t$res =& $mdb2->query($sql);\n\t\tif (MDB2::isError($res)) {\n\t\t\t$log->setError($sql, $res->userinfo);\n\t\t\texit();\n\t\t}\n\n\t\t$monitor_ids = array();\n\t\twhile ($row = $res->fetchRow()) {\n\t\t\t$monitor_ids[] = $row[\"nodo_id\"];\n\t\t}\n\n\t\t/* SI NO HAY DATOS MOSTRAR MENSAJE */\n\t\tif (count($monitor_ids) == 0) {\n\t\t\t$this->resultado = $this->__generarContenedorSinDatos();\n\t\t\treturn;\n\t\t}\n\n\t\t/* TEMPLATE DEL GRAFICO */\n\t\t$T =& new Template_PHPLIB(REP_PATH_TABLETEMPLATES);\n\t\t$T->setFile('tpl_tabla', 'contenedor_tabla.tpl');\n\t\t$T->setBlock('tpl_tabla', 'LISTA_CONTENEDORES', 'lista_contenedores');\n\n\t\t/* LISTA DE MONITORES */\n\t\t$orden = 1;\n\t\tforeach ($monitor_ids as $monitor_id) {\n\t\t\t$T->setVar('__contenido_id', 'regplus_'.$monitor_id);\n\t\t\t$T->setVar('__contenido_tabla', $this->getDetalleRegistrosPlus($monitor_id, 1, $orden));\n\t\t\t$T->parse('lista_contenedores', 'LISTA_CONTENEDORES', true);\n\t\t}\n\n\t\t$this->resultado = $T->parse('out', 'tpl_tabla');\n\t}", "public function ConsultarCuentaTabla(){\n $conn = new conexion();\n $cuenta = null;\n try {\n if($conn->conectar()){\n $str_sql = \"SELECT usuarios.nom_usu,usuarios.id_usu,usuarios.telefono,usuarios.usuario,usuarios.email,usuarios.foto,\"\n . \"tp_usuarios.nom_tp as tipo,usuarios.id_usu from usuarios INNER JOIN tp_usuarios \"\n . \"where usuarios.id_tp_usu = tp_usuarios.id_tp and usuarios.id_tp_usu <> 1 \"\n . \"and estado = 'Activo' and usuarios.id_tp_usu <> 7\";\n \n $sql = $conn->getConn()->prepare($str_sql);\n $sql->execute();\n $resultado = $sql->fetchAll();\n foreach ($resultado as $row){\n $user = new Usuario();\n $user->mapear1($row);\n $cuenta[] = array(\n \"Nom_usu\" => $user->getNom_usu(),\n \"Usuario\" => $user->getUsuario(),\n \"Email\" => $user->getEmail(),\n \"Telefono\" => $user->getTelefono(),\n \"Foto\" => $user->getFoto(),\n \"Cedula\" => $row['id_usu'],\n \"Tipo\" => $row['tipo'],\n \"Idusu\" => $row['id_usu'] \n );\n }\n }\n } catch (Exception $exc) {\n $cuenta = null;\n echo $exc->getMessage();\n }\n $conn->desconectar();\n return $cuenta;\n }", "function get_seguro($mes='',$anio='',$id_sucursal=''){\n\t\t$sQuery=\"SELECT \n\t\t\t\tcontrol_salida_extra.*,\n\t\t\t\ttransportista.id as t_id, transportista.nombre as t_nombre , transportista.apellido as t_apellido\n\t\t\t\tFROM control_salida_extra\n\t\t\t\tInner Join transportista ON control_salida_extra.id_transportista = transportista.id\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tWHERE control_salida_extra.tipo=1 AND control_salida_extra.status<>'2' \";\n\t\t\n\t\tif($mes) {\t$sQuery.=\" AND month(control_salida_extra.fecha)='$mes' \";\t}\n\t\tif($anio) {\t$sQuery.=\" AND year(control_salida_extra.fecha)='$anio' \";\t}\n\t\tif($id_sucursal) {\t$sQuery.=\" AND control_salida_extra.id_sucursal = '$id_sucursal' \";\t}\n\t\t\n\t\t$sQuery.=\" ORDER BY control_salida_extra.id DESC \";\n\t//\techo ($sQuery);\n\t\t\n\t\t$result=mssql_query($sQuery) or die(mssql_min_error_severity());\n\t\t$i=0;\n\t\twhile($row=mssql_fetch_array($result)){\n\t\t\tforeach($row as $key=>$value){\n\t\t\t\t$res_array[$i][$key]=$value;\n\t\t\t}\n\t\t\t$i++;\n\t\t}\n\t\treturn($res_array);\n\t\t\n\t\t\t\t\n\t}", "function entrada_por_traspaso(){\n\t\t$e= new Entrada();\n\t\t$e->usuario_id=$GLOBALS['usuarioid'];\n\t\t$e->empresas_id=$GLOBALS['empresaid'];\n\t\t$related = $e->from_array($_POST);\n\t\t//if($e->costo_unitario=='undefined') $e->costo_unitario=0;\n\t\t$e->espacios_fisicos_id=$GLOBALS['espacios_fisicos_id'];\n\t\t$e->costo_total=($e->cantidad * $e->costo_unitario);\n\t\t$e->cproveedores_id=1;\n\t\t$e->fecha=date(\"Y-m-d H:i:s\");\n\t\tif($e->id==0)\n\t\t\tunset($e->id);\n\t\tif($e->save($related)) {\n\t\t\techo $e->id;\n\t\t} else\n\t\t\techo 0;\n\t}", "public function getPacientePrestadoraArray(){\n $query = new Query;\n $query->select(['Paciente_prestadora.id, CONCAT(Paciente.nro_documento,\" (\",Paciente.nombre,\") \", Prestadoras.descripcion ) descripcion']) \n ->from( 'Prestadoras')\n ->join(\t'join', \n 'Paciente_prestadora',\n 'Prestadoras.id=Paciente_prestadora.prestadoras_id'\n ) \n ->join(\t'join', \n 'Paciente',\n 'Paciente.id=Paciente_prestadora.paciente_id'\n ) \n ->where([\"Paciente_prestadora.id\"=>$this->Paciente_prestadora_id]);\n \n $command = $query->createCommand();\n $data = $command->queryAll();\t\n $arrayData=array();\n if( !empty($data) and is_array($data) ){ //and array_key_exists('detallepedidopieza',$data) and array_key_exists('detalle_pedido_id',$data)){\n foreach ($data as $key => $arrayPacientePrestadora) {\n $arrayData[$arrayPacientePrestadora['id']]=$arrayPacientePrestadora['descripcion']; \n }\n }\n //todas los pacientes prestadoras\n $query = new Query;\n $query->select(['Paciente_prestadora.id, CONCAT(Paciente.nro_documento,\" (\",Paciente.nombre,\") \", Prestadoras.descripcion ) descripcion']) \n ->from( 'Prestadoras')\n ->join(\t'join', \n 'Paciente_prestadora',\n 'Prestadoras.id=Paciente_prestadora.prestadoras_id'\n ) \n ->join(\t'join', \n 'Paciente',\n 'Paciente.id=Paciente_prestadora.paciente_id'\n );\n \n $command = $query->createCommand();\n $data = $command->queryAll();\t\n if( !empty($data) and is_array($data) ){ //and array_key_exists('detallepedidopieza',$data) and array_key_exists('detalle_pedido_id',$data)){\n foreach ($data as $key => $arrayPacientePrestadora) {\n $arrayData[$arrayPacientePrestadora['id']]=$arrayPacientePrestadora['descripcion']; \n }\n } \n\n return $arrayData;\n }", "function mostrarPedidoSudo($fecha){\n //Construimos la consulta\n $sql=\"SELECT * from pedido WHERE fecha='\".$fecha.\"'\";\n //Realizamos la consulta\n $resultado=$this->realizarConsulta($sql);\n if($resultado!=null){\n //Montamos la tabla de resultado\n $tabla=[];\n while($fila=$resultado->fetch_assoc()){\n $tabla[]=$fila;\n }\n return $tabla;\n }else{\n return null;\n }\n }", "public function queryTramo ( dto_servicio $dtoServicio ) {\r\n\t\t\t\r\n\t\t\t$sql=\" SELECT idtramo,tramo,IFNULL(porcentaje_comision,'') AS 'porcentaje_comision' FROM ca_tramo WHERE idservicio = ? AND tipo = 'TRAMO' \";\r\n\t\t\t\r\n\t\t\t//$cartera=$dtoCartera->getId();\r\n\t\t\t$servicio = $dtoServicio->getId();\r\n\t\t\t\r\n\t\t\t$factoryConnection= FactoryConnection::create('mysql');\r\n\t $connection = $factoryConnection->getConnection();\r\n\t\t\t\r\n \t //$connection->beginTransaction();\r\n\t\t\t\r\n \t$pr=$connection->prepare($sql);\r\n\t\t\t//$pr->bindParam(1,$cartera);\r\n\t\t\t$pr->bindParam(1,$servicio);\r\n\t\t\tif( $pr->execute() ) {\r\n\t\t\t\t//$connection->commit();\r\n\t\t\t\treturn $pr->fetchAll(PDO::FETCH_ASSOC);\r\n\t\t\t}else{\r\n\t\t\t\t//$connection->rollBack();\r\n\t\t\t\treturn array();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}", "function llamarRegistrosMySQLPlaneServicios() {\n\t\t\tglobal $res;\n\t\t\t$cnx = conectar_mysql(\"Salud\");\n\t\t\t$cons = \"SELECT * FROM Salud.EPS ORDER BY AutoId ASC\";\n\t\t\t$res = mysql_query($cons);\n\t\t\treturn $res; \n\t\t\n\t\t}", "public function ultimoID()\n {\n $sentencia = \"SELECT id, clNumReporte FROM tsreportebocadetubo ORDER BY id DESC LIMIT 1\";\n try {\n $stm = $this->db->prepare($sentencia);\n $stm->execute();\n $registros = $stm->fetchAll(PDO::FETCH_OBJ);\n\n return $registros;\n } catch (Exception $e) {\n echo $e->getMessage();\n }\n }", "public function readPedidos(){\n $sql='SELECT IdEncabezado, u.Nombre, u.Apellido, Fecha, TipoEstado \n FROM encabezadopedidos en INNER JOIN usuarios u USING (IdUsuario) \n INNER JOIN estadopedidos es USING(IdEstadoPedido) ORDER by IdEncabezado ASC ';\n $params=array(null);\n return Database::getRows($sql, $params);\n }" ]
[ "0.6351329", "0.6298846", "0.6234603", "0.6094703", "0.60683644", "0.59385264", "0.5936694", "0.58912", "0.5887032", "0.58478475", "0.5793416", "0.5790956", "0.57790524", "0.57774556", "0.57325494", "0.57306266", "0.57261825", "0.57243603", "0.57160854", "0.5706484", "0.56974655", "0.567717", "0.56474596", "0.5640962", "0.5640695", "0.56367457", "0.56360644", "0.5633908", "0.56337166", "0.5630451", "0.5628803", "0.5624473", "0.5621917", "0.5617204", "0.5616962", "0.56068116", "0.56055045", "0.5604928", "0.5603502", "0.5602651", "0.5597182", "0.5593603", "0.55929935", "0.55882543", "0.5583593", "0.55808", "0.5579313", "0.5574587", "0.55735767", "0.5572993", "0.5572989", "0.557054", "0.5569839", "0.5563936", "0.55590224", "0.5549293", "0.55485123", "0.554347", "0.55383015", "0.55380565", "0.5537592", "0.55363536", "0.55344373", "0.55332315", "0.55272585", "0.5524599", "0.5521076", "0.5512144", "0.5508102", "0.55079937", "0.55060035", "0.55054444", "0.5501303", "0.5501227", "0.5497697", "0.5497491", "0.5497371", "0.5497197", "0.549689", "0.54951227", "0.54914", "0.54907465", "0.54902875", "0.5489568", "0.54860026", "0.54849607", "0.5483421", "0.54830164", "0.54793125", "0.5477925", "0.54739296", "0.54720235", "0.5460604", "0.5456709", "0.5453698", "0.54526454", "0.5452349", "0.5448784", "0.5448497", "0.5447997", "0.5447697" ]
0.0
-1
metodo para obtener un registro de una tercera tabla relacionda a la segunda
public function get_fk2_by_id($id, $fk1_obj, $fk2_obj) { $m = $this->get_fk_by_id($id, $fk1_obj); return $fk2_obj->get_by_id($m[$fk2_obj->id_field]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function readTabla() {\r\n $query = 'SELECT * FROM ' . $this->tabla;\r\n\r\n\r\n \r\n\r\n $sentencia = $this->con->prepare($query);\r\n\r\n $sentencia->execute();\r\n\r\n return $sentencia;\r\n }", "function getTablaInformeAjuntament($desde,$hasta){\n \n // $this->ponerHorasTaller();\n // $this->ponerNumRegistro();\n \n \n $letra=getLetraCasal();\n $numeroRegistroCasalIngresos=getNumeroRegistroCasalIngresos();\n $numeroRegistroCasalDevoluciones=getNumeroRegistroCasalDevoluciones();\n \n $sql=\"SELECT id FROM casal_recibos WHERE fecha>='$desde' AND fecha<='$hasta' ORDER BY id ASC LIMIT 1\";\n if($this->db->query($sql)->num_rows()==0){\n $primero=0;\n }\n else {\n $primero=$this->db->query($sql)->row()->id;\n }\n \n $sql=\"SELECT id FROM casal_recibos WHERE fecha>='$desde' AND fecha<='$hasta' ORDER BY id DESC LIMIT 1\";\n if($this->db->query($sql)->num_rows()==0){\n $ultimo=0;\n }\n else {\n $ultimo=$this->db->query($sql)->row()->id;\n }\n \n $sql=\"SELECT r.id as id, r.fecha as fecha , r.id_socio as id_socio , r.importe as importe , r.recibo as recibo, s.nombre as nombre,s.apellidos as apellidos \n FROM casal_recibos r\n LEFT JOIN casal_socios_nuevo s ON s.num_socio=r.id_socio\n WHERE fecha>='$desde' AND fecha<='$hasta' ORDER BY r.id\";\n \n $sql=\"SELECT r.fecha as fecha,\"\n . \" lr.id_recibo as recibo,\"\n . \" lr.importe as importe, \"\n . \" t.nombre_corto as nombre,\"\n . \" t.horas_taller_T1 as horas_taller_T1,\"\n . \" t.horas_taller_T2 as horas_taller_T2,\"\n . \" t.horas_taller_T3 as horas_taller_T3,\"\n . \" s.dni as dni,\"\n . \" lr.tarjeta as tarjeta,\"\n . \" lr.periodos as periodos,\"\n . \" lr.id_taller as id_taller,\"\n . \" lr.id_socio as id_socio,\"\n . \" lr.id as id,\"\n . \" lr.num_registro as num_registro,\"\n . \" lr.num_registro_posicion as num_registro_posicion,\"\n . \" s.num_socio as num_socio\"\n . \" FROM casal_lineas_recibos lr\"\n . \" LEFT JOIN casal_recibos r ON lr.id_recibo=r.id\"\n . \" LEFT JOIN casal_talleres t ON t.id=lr.id_taller\"\n . \" LEFT JOIN casal_socios_nuevo s ON s.num_socio=lr.id_socio\"\n . \" WHERE lr.importe>0 AND lr.id_recibo>='$primero' AND lr.id_recibo<='$ultimo' ORDER BY lr.num_registro_posicion\";\n \n //log_message('INFO',$sql);\n \n $recibos=array(); \n if($this->db->query($sql)->num_rows()>0) \n $recibos=$this->db->query($sql)->result();\n \n \n $cabeceraTabla='<table class=\"table table-bordered table-hover\"><tbody>\n <thead>\n <tr >\n <th class=\"col-sm-1 text-center\">Data</th>\n <th class=\"col-sm-1 text-center\">Num Registre</th>\n <th class=\"col-sm-1 text-center\">DNI Usuari</th>\n <th class=\"col-sm-1 text-center\">Nom Actividad</th>\n <th class=\"col-sm-1 text-center\">Num Registre Ingrés</th>\n <th class=\"col-sm-1 text-center\" >Preu/hora</th>\n <th class=\"col-sm-1 text-center\">Import Base</th>\n <th class=\"col-sm-1 text-center\">% IVA (exempt)</th>\n <th class=\"col-sm-1 text-center\" style=\"border-top:2px solid black;border-right:2px solid black;border-left:2px solid black;\">IMPORT TOTAL</th>\n <th class=\"col-sm-1 text-center\">TIPOLOGIA INGRES</th>\n \n </tr>';\n \n \n \n $tabla=$cabeceraTabla;\n \n $importeTotal=0;\n foreach ($recibos as $k=>$v) {\n $fecha=$v->fecha;\n $fecha=substr($fecha,8,2).'/'.substr($fecha,5,2).'/'.substr($fecha,0,4);\n $tabla.='<tr>';\n $tabla.='<td class=\"text-center\">';\n $tabla.= $fecha;\n $tabla.='</td>';\n \n $num=strval($v->num_registro_posicion);\n while(strlen($num)<5) {\n $num='0'.$num;\n }\n $tabla.='<td class=\"text-center\">';\n $tabla.= $v->num_registro.$num;\n $tabla.='</td>';\n \n \n $dni=$v->dni;\n if($this->socios_model->validar_dni($dni)){\n $tabla.='<td class=\"text-center\">';\n $tabla.= strtoupper($dni);\n $tabla.='</td>';\n }\n else{\n $tabla.='<td class=\"text-center\" style=\"color:red\">';\n $tabla.= strtoupper($dni).\"(\".$v->num_socio.\")\";\n $tabla.='</td>';\n }\n \n $nombre=$v->nombre;\n $tabla.='<td class=\"text-center\">';\n $tabla.= $nombre;\n $tabla.='</td>';\n \n $recibo=$letra.' '.$v->recibo; \n $tabla.='<td class=\"text-center\">';\n $tabla.= $recibo;\n $tabla.='</td>';\n \n if($v->periodos==4) $horas=floatval($v->horas_taller_T1);\n if($v->periodos==2) $horas=floatval($v->horas_taller_T2);\n if($v->periodos==1) $horas=floatval($v->horas_taller_T3); \n //log_message('INFO', '===================='.$v->nombre.' '.$horas);\n \n if($horas>0)\n $preu_hora=number_format($v->importe/$horas*100,2); \n else \n $preu_hora=0;\n\n $tabla.='<td class=\"text-center\">';\n $tabla.= $preu_hora;\n $tabla.='</td>';\n \n \n \n $importe=$v->importe;\n $tabla.='<td class=\"text-center\" >';\n $tabla.= number_format($importe,2);\n $tabla.='</td>';\n \n $importe=$v->importe;\n $tabla.='<td class=\"text-center\">';\n $tabla.= '0.00';\n $tabla.='</td>';\n \n $importe=number_format($v->importe,2);\n $tabla.='<td class=\"text-center\" style=\"border-right:2px solid black;border-left:2px solid black;\">';\n $tabla.= number_format($importe,2);\n $tabla.='</td>';\n $importeTotal+=number_format($importe,2);\n \n $tarjeta=number_format($v->tarjeta,2);\n if($tarjeta==0) $pago=\"Efectiu\"; else $pago=\"TPV fisic\";\n $tabla.='<td class=\"text-center\">';\n $tabla.= $pago;\n $tabla.='</td>';\n \n $tabla.='</tr>';\n }\n \n \n $pieTabla='</tr></thead><thead><tr>';\n $pieTabla.='<th class=\"text-center\" style=\"border-bottom:1px solid white;border-right:1px solid white;border-left:1px solid white;\"></th>';\n $pieTabla.='<th class=\"text-center\" style=\"border-bottom:1px solid white;border-right:1px solid white;border-left:1px solid white;\"></th>';\n $pieTabla.='<th class=\"text-center\" style=\"border-bottom:1px solid white;border-right:1px solid white;border-left:1px solid white;\"></th>';\n $pieTabla.='<th class=\"text-center\" style=\"border-bottom:1px solid white;border-right:1px solid white;border-left:1px solid white;\"></th>';\n $pieTabla.='<th class=\"text-center\" style=\"border-bottom:1px solid white;border-right:1px solid white;border-left:1px solid white;\"></th>';\n $pieTabla.='<th class=\"text-center\" style=\"border-bottom:1px solid white;border-right:1px solid white;border-left:1px solid white;\"></th>';\n $pieTabla.='<th class=\"text-center\" style=\"border-bottom:1px solid white;border-right:0px solid white;border-left:1px solid white;\"></th>';\n $pieTabla.='<th class=\"text-center\">T O T A L S</th>';\n $pieTabla.='<th class=\"text-center\" style=\"border-bottom:2px solid black;border-right:2px solid black;border-left:2px solid black;\">';\n $pieTabla.=number_format($importeTotal,2);\n $pieTabla.='</th>';\n $pieTabla.='</tr></thead></tody></table>';\n \n $tabla.=$pieTabla;\n \n \n $cabeceraTablaDevoluciones='<table class=\"table table-bordered table-hover\"><tbody>\n <thead>\n <tr >\n <th class=\"col-sm-1 text-center\">Data</th>\n <th class=\"col-sm-1 text-center\">Num Registre</th>\n <th class=\"col-sm-1 text-center\">DNI Usuari</th>\n <th class=\"col-sm-1 text-center\">Nom Actividad</th>\n <th class=\"col-sm-1 text-center\">Num Registre Devolució</th>\n <th class=\"col-sm-1 text-rigcenterht\" >Preu/hora</th>\n <th class=\"col-sm-1 text-center\">Import Base</th>\n <th class=\"col-sm-1 text-center\">% IVA (exempt)</th>\n <th class=\"col-sm-1 text-center\" style=\"border-top:2px solid black;border-right:2px solid black;border-left:2px solid black;\">IMPORT TOTAL</th>\n <th class=\"col-sm-1 text-center\">TIPOLOGIA DEVOLUCIÓ</th>\n \n </tr>';\n \n $tituloCasal=strtoupper(getTituloCasal());\n $salida='<h4>INFORME DETALLAT INGRESSOS</h4>'\n . ''\n . 'EQUIPAMENT MUNICIPA: <STRONG>'.$tituloCasal.'</STRONG>'\n . '<BR>'\n . 'ADJUDICATARI: <STRONG>'.'SERVEIS A LES PERSONES INCOOP, SCCL</STRONG>'\n . '<BR>'\n . 'NIF ADJUDICATARI: <STRONG>F60137411</STRONG>'\n . '<BR>'\n . 'NÚM CONTRACTE: <STRONG>18001022</STRONG>'\n . '<BR>'\n . 'Periode: <STRONG>'.substr($desde,8,2).'/'.substr($desde,5,2).'/'.substr($desde,0,4).' - '.substr($hasta,8,2).'/'.substr($hasta,5,2).'/'.substr($hasta,0,4).'</STRONG>'\n . '<BR>'\n . '<BR>'\n \n .$tabla.'<br>';\n \n $sql=\"SELECT r.fecha as fecha,\"\n . \" lr.id_recibo as recibo,\"\n . \" lr.importe as importe, \"\n . \" t.nombre_corto as nombre,\"\n . \" t.horas_taller_T1 as horas_taller_T1,\"\n . \" t.horas_taller_T2 as horas_taller_T2,\"\n . \" t.horas_taller_T3 as horas_taller_T3,\"\n . \" s.dni as dni,\"\n . \" lr.tarjeta as tarjeta,\"\n . \" lr.periodos as periodos,\"\n . \" lr.id_taller as id_taller,\"\n . \" lr.id_socio as id_socio,\"\n . \" lr.id as id,\"\n . \" lr.num_registro as num_registro,\"\n . \" lr.num_registro_posicion as num_registro_posicion,\"\n . \" s.num_socio\"\n . \" FROM casal_lineas_recibos lr\"\n . \" LEFT JOIN casal_recibos r ON lr.id_recibo=r.id\"\n . \" LEFT JOIN casal_talleres t ON t.id=lr.id_taller\"\n . \" LEFT JOIN casal_socios_nuevo s ON s.num_socio=lr.id_socio\"\n . \" WHERE lr.importe<0 AND lr.id_recibo>='$primero' AND lr.id_recibo<='$ultimo' ORDER BY lr.num_registro_posicion\";\n \n \n \n $recibos=array(); \n if($this->db->query($sql)->num_rows()>0) \n $recibos=$this->db->query($sql)->result();\n \n $tabla=$cabeceraTablaDevoluciones;\n $importeTotalDevoluciones=0;\n foreach ($recibos as $k=>$v) {\n $fecha=$v->fecha;\n $fecha=substr($fecha,8,2).'/'.substr($fecha,5,2).'/'.substr($fecha,0,4);\n $tabla.='<tr>';\n $tabla.='<td class=\"text-center\">';\n $tabla.= $fecha;\n $tabla.='</td>';\n \n $num=strval($v->num_registro_posicion);\n while(strlen($num)<5) {\n $num='0'.$num;\n } \n $tabla.='<td class=\"text-center\">';\n $tabla.= $v->num_registro.$num;;\n $tabla.='</td>';\n \n $dni=$v->dni;\n if($this->socios_model->validar_dni($dni)){\n $tabla.='<td class=\"text-center\">';\n $tabla.= strtoupper($dni);\n $tabla.='</td>';\n }\n else{\n $tabla.='<td class=\"text-center\" style=\"color:red\">';\n $tabla.= strtoupper($dni).\"(\".$v->num_socio.\")\";\n $tabla.='</td>';\n }\n \n $nombre=$v->nombre;\n $tabla.='<td class=\"text-center\">';\n $tabla.= $nombre;\n $tabla.='</td>';\n \n $recibo=$letra.' '.$v->recibo; \n $tabla.='<td class=\"text-center\">';\n $tabla.= $recibo;\n $tabla.='</td>';\n \n \n \n /*\n $id_taller=$v->id_taller;\n $periodos=$v->periodos;\n $id_socio=$v->id_socio;\n $importe=-$v->importe;\n $id=$v->id;\n $sql=\"SELECT * FROM casal_lineas_recibos WHERE id<'$id' AND id_taller='$id_taller' AND id_socio='$id_socio' AND periodos='$periodos' AND importe='$importe' ORDER BY id DESC LIMIT 1\";\n //log_message('INFO',$sql);\n if($this->db->query($sql)->num_rows()==1) {\n $recibo=$letra.' '.$this->db->query($sql)->row()->id_recibo;\n }\n else $recibo='';\n $tabla.='<td class=\"text-center\">';\n $tabla.= $recibo;\n $tabla.='</td>';\n */\n \n \n if($v->periodos==4) $horas=$v->horas_taller_T1;\n if($v->periodos==2) $horas=$v->horas_taller_T2;\n if($v->periodos==1) $horas=$v->horas_taller_T3; \n \n //log_message('INFO', '++=================='.$v->nombre.' '.$horas);\n \n $preu_hora=number_format($v->importe/$horas*100,2); \n $tabla.='<td class=\"text-center\">';\n $tabla.= -$preu_hora;\n $tabla.='</td>';\n \n \n \n $importe=number_format($v->importe,2);\n $tabla.='<td class=\"text-center\" >';\n $tabla.= -$importe;\n $tabla.='</td>';\n \n $importe=number_format($v->importe,2);\n $tabla.='<td class=\"text-center\">';\n $tabla.= '0.00';\n $tabla.='</td>';\n \n $importe=number_format($v->importe,2);\n $tabla.='<td class=\"text-center\" style=\"border-right:2px solid black;border-left:2px solid black;\">';\n $tabla.= -$importe;\n $tabla.='</td>';\n $importeTotalDevoluciones+=$importe;\n \n $tarjeta=number_format($v->tarjeta,2);\n if($tarjeta==0) $pago=\"Efectiu\"; else $pago=\"TPV fisic\";\n $tabla.='<td class=\"text-center\">';\n $tabla.= $pago;\n $tabla.='</td>';\n \n $tabla.='</tr>';\n }\n \n \n \n \n $pieTablaDevoluciones='</tr></thead><thead><tr>';\n $pieTablaDevoluciones.='<th class=\"text-center\" style=\"border-bottom:1px solid white;border-right:1px solid white;border-left:1px solid white;\"></th>';\n $pieTablaDevoluciones.='<th class=\"text-center\" style=\"border-bottom:1px solid white;border-right:1px solid white;border-left:1px solid white;\"></th>';\n $pieTablaDevoluciones.='<th class=\"text-center\" style=\"border-bottom:1px solid white;border-right:1px solid white;border-left:1px solid white;\"></th>';\n $pieTablaDevoluciones.='<th class=\"text-center\" style=\"border-bottom:1px solid white;border-right:1px solid white;border-left:1px solid white;\"></th>';\n $pieTablaDevoluciones.='<th class=\"text-center\" style=\"border-bottom:1px solid white;border-right:1px solid white;border-left:1px solid white;\"></th>';\n $pieTablaDevoluciones.='<th class=\"text-center\" style=\"border-bottom:1px solid white;border-right:1px solid white;border-left:1px solid white;\"></th>';\n $pieTablaDevoluciones.='<th class=\"text-center\" style=\"border-bottom:1px solid white;border-right:0px solid white;border-left:1px solid white;\"></th>';\n $pieTablaDevoluciones.='<th class=\"text-center\">T O T A L S</th>';\n $pieTablaDevoluciones.='<th class=\"text-center\" style=\"border-bottom:2px solid black;border-right:2px solid black;border-left:2px solid black;\">';\n $pieTablaDevoluciones.=-number_format($importeTotalDevoluciones,2);\n $pieTablaDevoluciones.='</th>';\n $pieTablaDevoluciones.='</tr></thead></tody></table>';\n \n \n \n \n \n $salida.='<h4>INFORME DETALLAT DEVOLUCIONS</h4>'\n . ''\n . 'EQUIPAMENT MUNICIPA: <STRONG>'.$tituloCasal.'</STRONG>'\n . '<BR>'\n . 'ADJUDICATARI: <STRONG>'.'SERVEIS A LES PERSONES INCOOP, SCCL</STRONG>'\n . '<BR>'\n . 'NIF ADJUDICATARI: <STRONG>F60137411</STRONG>'\n . '<BR>'\n . 'NÚM CONTRACTE: <STRONG>18001022</STRONG>'\n . '<BR>'\n . 'Periode: <STRONG>'.substr($desde,8,2).'/'.substr($desde,5,2).'/'.substr($desde,0,4).' - '.substr($hasta,8,2).'/'.substr($hasta,5,2).'/'.substr($hasta,0,4).'</STRONG>'\n . '<BR>'\n . '<BR>';\n \n \n \n \n \n \n $salida.=$tabla;\n $salida.=$pieTablaDevoluciones;\n $salida.='<br><h4>RESUM TOTAL</h4>';\n \n $importeResumen=number_format($importeTotal,2)+number_format($importeTotalDevoluciones,2);\n $resumenTotal='<table class=\"table table-bordered table-hover\"><tbody>\n <thead>\n <tr >\n <th class=\"col-sm-1 text-center\" style=\"border-bottom:1px solid white;border-top:1px solid white;border-right:1px solid white;border-left:1px solid white;\"></th>\n <th class=\"col-sm-1 text-center\" style=\"border-bottom:1px solid white;border-top:1px solid white;border-right:1px solid white;border-left:1px solid white;\"></th>\n <th class=\"col-sm-1 text-center\" style=\"border-bottom:1px solid white;border-top:1px solid white;border-right:1px solid white;border-left:1px solid white;\"></th>\n <th class=\"col-sm-1 text-center\" style=\"border-bottom:1px solid white;border-top:1px solid white;border-right:1px solid white;border-left:1px solid white;\"></th>\n <th class=\"col-sm-1 text-center\" style=\"border-bottom:1px solid white;border-top:1px solid white;border-right:1px solid white;border-left:1px solid white;\"></th>\n <th class=\"col-sm-1 text-center\" style=\"border-bottom:1px solid white;border-top:1px solid white;border-right:1px solid white;border-left:1px solid white;\"></th>\n <th class=\"col-sm-1 text-center\" style=\"border-bottom:1px solid white;border-top:1px solid white;border-right:1px solid white;border-left:1px solid white;\"></th>\n <th class=\"col-sm-1 text-center\" style=\"border-bottom:1px solid white;border-top:1px solid white;border-right:1px solid white;border-left:1px solid white;\"></th>\n <th class=\"col-sm-1 text-center\" style=\"border-top:2px solid black;border-right:2px solid black;border-left:2px solid black;\">IMPORT TOTAL</th>\n <th class=\"col-sm-1 text-center\" style=\"border-bottom:1px solid white;border-top:1px solid white;border-right:1px solid white;border-left:1px solid white;\"></th>\n \n </tr>\n <tr >\n <th class=\"col-sm-1 text-center\" style=\"border-bottom:1px solid white;border-top:1px solid white;border-right:1px solid white;border-left:1px solid white;\"></th>\n <th class=\"col-sm-1 text-center\" style=\"border-bottom:1px solid white;border-top:1px solid white;border-right:1px solid white;border-left:1px solid white;\"></th>\n <th class=\"col-sm-1 text-center\" style=\"border-bottom:1px solid white;border-top:1px solid white;border-right:1px solid white;border-left:1px solid white;\"></th>\n <th class=\"col-sm-1 text-center\" style=\"border-bottom:1px solid white;border-top:1px solid white;border-right:1px solid white;border-left:1px solid white;\"></th>\n <th class=\"col-sm-1 text-center\" style=\"border-bottom:1px solid white;border-top:1px solid white;border-right:1px solid white;border-left:1px solid white;\"></th>\n <th class=\"col-sm-1 text-center\" style=\"border-bottom:1px solid white;border-top:1px solid white;border-right:1px solid white;border-left:1px solid white;\"></th>\n <th class=\"col-sm-1 text-center\" style=\"border-bottom:1px solid white;border-top:1px solid white;border-left:1px solid white;\"></th>\n <th class=\"col-sm-1 text-center\" style=\"border-bottom:2px solid #DDDDDD;border-top:2px solid #DDDDDD;border-left:1px solid #DDDDDD;\">T O T A L S</th>\n <th class=\"col-sm-1 text-center\" style=\"border-bottom:2px solid black;border-top:2px solid black;border-right:2px solid black;border-left:2px solid black;\">'.number_format($importeResumen,2).'</th>\n <th class=\"col-sm-1 text-center\" style=\"border-bottom:1px solid white;border-top:1px solid white;border-right:1px solid white;border-left:1px solid white;\"></th>\n \n </tr>\n\n\n\n </thead></tbody></table>';\n \n $salida.=$resumenTotal;\n \n \n \n \n return $salida;\n \n }", "public function getRecordatorio() {\n $recordatorio = $this->_db->query(\"SELECT deuda.Id_cliente as dni, nombre as nombre, apellidos as apellido, \n direccion as direccion, telefono as telefono, celular as celular, total as totalDeuda\n FROM pagos as pagos \n INNER JOIN venta as venta ON venta.Id_deuda = pagos.Id_deuda\n INNER JOIN productoventa as prodventa ON venta.cod_busqueda = prodventa.cod_busqueda\n INNER JOIN deuda as deuda ON deuda.Id_deuda = venta.Id_deuda\n INNER JOIN cliente as cliente ON cliente.Id_cliente = deuda.Id_cliente where pagos.estado >= 0 and pagos.Fecha_Pago = CURDATE()\n ORDER BY deuda.Fecha_deuda\"\n );\n return $recordatorio->fetchall();\n }", "function getEstadisticaPorDia() {\n\t\tglobal $mdb2;\n\t\tglobal $log;\n\t\tglobal $current_usuario_id;\n\t\tglobal $dias_semana;\n\t\tglobal $usr;\n\n\t\t/* TEMPLATE DEL GRAFICO */\n\t\t$T =& new Template_PHPLIB(($this->extra[\"imprimir\"])?REP_PATH_PRINTTEMPLATES:REP_PATH_TABLETEMPLATES);\n\t\t$T->setFile('tpl_tabla', 'rendimiento_por_dia.tpl');\n\t\t$T->setBlock('tpl_tabla', 'BLOQUE_TITULO_HORARIOS', 'bloque_titulo_horarios');\n\t\t$T->setBlock('tpl_tabla', 'ES_PRIMERO_DIA', 'es_primero_dia');\n\t\t$T->setBlock('tpl_tabla', 'LISTA_PASOS', 'lista_pasos');\n\t\t$T->setBlock('tpl_tabla', 'BLOQUE_TABLA', 'bloque_tabla');\n\n\n\t\t$T->setVar('__item_orden', $this->extra[\"item_orden\"]);\n\n\t\t$horarios = array($usr->getHorario($this->horario_id));\n\t\tif ($this->horario_id != 0) {\n\t\t\t$horarios[] = $usr->getHorario(0);\n\t\t}\n\n\t\t$orden = 1;\n\t\t$T->setVar('bloque_titulo_horarios', '');\n\t\tforeach ($horarios as $horario) {\n\n\t\t\t/* OBTENER LOS DATOS Y PARSEARLO */\n\t\t\t$sql = \"SELECT * FROM reporte.rendimiento_resumen_global_pordiasemana(\".\n\t\t\t\t\tpg_escape_string($current_usuario_id).\",\".\n\t\t\t\t\tpg_escape_string($this->objetivo_id).\", \".\n\t\t\t\t\tpg_escape_string($horario->horario_id).\",' \".\n\t\t\t\t\tpg_escape_string($this->timestamp->getInicioPeriodo()).\"', '\".\n\t\t\t\t\tpg_escape_string($this->timestamp->getTerminoPeriodo()).\"')\";\n\t\t\t$res =& $mdb2->query($sql);\n\t\t\tif (MDB2::isError($res)) {\n\t\t\t\t$log->setError($sql, $res->userinfo);\n\t\t\t\texit();\n\t\t\t}\n\n\t\t\t$row = $res->fetchRow();\n\t\t\t$dom = new DomDocument();\n\t\t\t$dom->preserveWhiteSpace = false;\n\t\t\t$dom->loadXML($row[\"rendimiento_resumen_global_pordiasemana\"]);\n\t\t\t$xpath = new DOMXpath($dom);\n\t\t\tunset($row[\"rendimiento_resumen_global_pordiasemana\"]);\n\n\t\t\t/* SI NO HAY DATOS MOSTRAR MENSAJE */\n\t\t\tif ($xpath->query('//detalle[@paso_orden]/estadisticas/estadistica')->length == 0) {\n\t\t\t\t$this->resultado = $this->__generarContenedorSinDatos();\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t$conf_objetivo = $xpath->query('/atentus/resultados/propiedades/objetivos/objetivo')->item(0);\n\t\t\t$conf_pasos = $xpath->query(\"paso[@visible=1]\", $conf_objetivo);\n\n\t\t\tif(count($horarios) > 1) {\n\t\t\t\t$T->setVar('__item_horario', $this->extra[\"item_orden\"]);\n\t\t\t\t$T->setVar('__horario_orden', $orden);\n\t\t\t\t$T->setVar('__horario_nombre',$horario->nombre);\n\t\t\t\t$T->parse('bloque_titulo_horarios', 'BLOQUE_TITULO_HORARIOS', false);\n\t\t\t}\n\n\t\t\t$T->setVar('__objetivo_nombre', $conf_objetivo->getAttribute('nombre'));\n\n\t\t\t$linea = 1;\n\t\t\t$T->setVar('lista_pasos', '');\n\t\t\tforeach($dias_semana as $dia_id => $dia_nombre){\n\t\t\t\t$primero = true;\n\n\t\t\t\t/* LISTA DE PASOS */\n\t\t\t\tforeach ($conf_pasos as $conf_paso) {\n\t\t\t\t\t$tag_dato = $xpath->query('//detalle[@dia_id='.(($dia_id == 7)?0:$dia_id).']/detalles/detalle[@paso_orden='.$conf_paso->getAttribute('paso_orden').']/estadisticas/estadistica')->item(0);\n\n\t\t\t\t\t$T->setVar('__print_class', ($linea % 2 == 0)?\"celdaIteracion2\":\"celdaIteracion1\");\n\t\t\t\t\t$T->setVar('__class', ($linea % 2 == 0)?\"celdanegra15\":\"celdanegra10\");\n\n\t\t\t\t\t$T->setVar('es_primero_dia', '');\n\t\t\t\t\tif ($primero) {\n\t\t\t\t\t\t$T->setVar('__dia_nombre', $dia_nombre);\n\t\t\t\t\t\t$T->setVar('__dia_rowspan', $conf_pasos->length);\n\t\t\t\t\t\t$T->parse('es_primero_dia', 'ES_PRIMERO_DIA', false);\n\t\t\t\t\t}\n\t\t\t\t\t$T->setVar('__paso_nombre', $conf_paso->getAttribute('nombre'));\n\t\t\t\t\t$T->setVar('__paso_minimo', number_format(($tag_dato == null)?0:$tag_dato->getAttribute('tiempo_min'), 3, ',', ''));\n\t\t\t\t\t$T->setVar('__paso_maximo', number_format(($tag_dato == null)?0:$tag_dato->getAttribute('tiempo_max'), 3, ',', ''));\n\t\t\t\t\t$T->setVar('__paso_promedio', number_format(($tag_dato == null)?0:$tag_dato->getAttribute('tiempo_prom'), 3, ',', ''));\n\t\t\t\t\t$T->parse('lista_pasos', 'LISTA_PASOS', true);\n\t\t\t\t\t$primero = false;\n\t\t\t\t\t$linea++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t$T->parse('bloque_tabla', 'BLOQUE_TABLA', true);\n\t\t\t$orden++;\n\t\t}\n\t\t$this->tiempo_expiracion = (strtotime($xpath->query(\"//fecha_expiracion\")->item(0)->nodeValue) - strtotime($xpath->query(\"//fecha\")->item(0)->nodeValue));\n\t\t$this->resultado = $T->parse('out', 'tpl_tabla');\n\t}", "public function readTask(){\n $query = \"SELECT ordine.id_ordine, ordine.id_fornitore, fornitore.nome as fornitore, ordine.articolo, articolo.taglia, ordine.stato \n FROM \" . $this->table_name . \" LEFT JOIN fornitore ON ordine.id_fornitore = fornitore.id_fornitore \n INNER JOIN articolo ON ordine.id_ordine = articolo.id_ordine \n WHERE stato = 1\";\n $stmt = $this->conn->prepare( $query );\n $stmt->execute();\n return $stmt;\n }", "static public function mdlRangoFechasTalleresTerminados($tabla, $fechaInicial, $fechaFinal){\n\n\t\tif($fechaInicial == \"null\"){\n\n\t\t\t$stmt = Conexion::conectar()->prepare(\"SELECT \n et.id,\n et.sector,\n CONCAT(et.sector, '-', s.nom_sector) AS nom_sector,\n et.articulo,\n a.modelo,\n a.nombre,\n a.color,\n a.talla,\n et.cod_operacion,\n o.nombre AS nom_operacion,\n et.trabajador AS cod_trabajador,\n et.fecha_proceso,\n et.fecha_terminado,\n CONCAT(\n t.nom_tra,\n ' ',\n t.ape_pat_tra,\n ' ',\n t.ape_mat_tra\n ) AS trabajador,\n et.cantidad,\n DATE(et.fecha) AS fecha,\n et.estado,\n et.codigo,\n TIMESTAMPDIFF(\n MINUTE,\n et.fecha_proceso,\n et.fecha_terminado\n ) AS tiempo_real \n FROM\n entallerjf et \n LEFT JOIN trabajadorjf t \n ON et.trabajador = t.cod_tra \n LEFT JOIN articulojf a \n ON et.articulo = a.articulo \n LEFT JOIN operacionesjf o \n ON et.cod_operacion = o.codigo \n LEFT JOIN sectorjf s \n ON et.sector = s.cod_sector \n WHERE et.estado = '3' ORDER BY et.id ASC\");\n\n\t\t\t$stmt -> execute();\n\n\t\t\treturn $stmt -> fetchAll();\t\n\n\n\t\t}else if($fechaInicial == $fechaFinal){\n\n\t\t\t$stmt = Conexion::conectar()->prepare(\"SELECT \n et.id,\n et.sector,\n CONCAT(et.sector, '-', s.nom_sector) AS nom_sector,\n et.articulo,\n a.modelo,\n a.nombre,\n a.color,\n a.talla,\n et.cod_operacion,\n o.nombre AS nom_operacion,\n et.trabajador AS cod_trabajador,\n et.fecha_proceso,\n et.fecha_terminado,\n CONCAT(\n t.nom_tra,\n ' ',\n t.ape_pat_tra,\n ' ',\n t.ape_mat_tra\n ) AS trabajador,\n et.cantidad,\n DATE(et.fecha) AS fecha,\n et.estado,\n et.codigo,\n TIMESTAMPDIFF(\n MINUTE,\n et.fecha_proceso,\n et.fecha_terminado\n ) AS tiempo_real \n FROM\n entallerjf et \n LEFT JOIN trabajadorjf t \n ON et.trabajador = t.cod_tra \n LEFT JOIN articulojf a \n ON et.articulo = a.articulo \n LEFT JOIN operacionesjf o \n ON et.cod_operacion = o.codigo \n LEFT JOIN sectorjf s \n ON et.sector = s.cod_sector \n WHERE et.estado = '3' AND DATE(et.fecha_terminado) like '%$fechaFinal%'\");\n\n\t\t\t$stmt -> bindParam(\":fecha\", $fechaFinal, PDO::PARAM_STR);\n\n\t\t\t$stmt -> execute();\n\n\t\t\treturn $stmt -> fetchAll();\n\n\t\t}else{\n\n\t\t\t$fechaActual = new DateTime();\n\t\t\t$fechaActual ->add(new DateInterval(\"P1D\"));\n\t\t\t$fechaActualMasUno = $fechaActual->format(\"Y-m-d\");\n\n\t\t\t$fechaFinal2 = new DateTime($fechaFinal);\n\t\t\t$fechaFinal2 ->add(new DateInterval(\"P1D\"));\n\t\t\t$fechaFinalMasUno = $fechaFinal2->format(\"Y-m-d\");\n\n\t\t\tif($fechaFinalMasUno == $fechaActualMasUno){\n\n\t\t\t\t$stmt = Conexion::conectar()->prepare(\"SELECT \n et.id,\n et.sector,\n CONCAT(et.sector, '-', s.nom_sector) AS nom_sector,\n et.articulo,\n a.modelo,\n a.nombre,\n a.color,\n a.talla,\n et.cod_operacion,\n o.nombre AS nom_operacion,\n et.trabajador AS cod_trabajador,\n et.fecha_proceso,\n et.fecha_terminado,\n CONCAT(\n t.nom_tra,\n ' ',\n t.ape_pat_tra,\n ' ',\n t.ape_mat_tra\n ) AS trabajador,\n et.cantidad,\n DATE(et.fecha) AS fecha,\n et.estado,\n et.codigo,\n TIMESTAMPDIFF(\n MINUTE,\n et.fecha_proceso,\n et.fecha_terminado\n ) AS tiempo_real \n FROM\n entallerjf et \n LEFT JOIN trabajadorjf t \n ON et.trabajador = t.cod_tra \n LEFT JOIN articulojf a \n ON et.articulo = a.articulo \n LEFT JOIN operacionesjf o \n ON et.cod_operacion = o.codigo \n LEFT JOIN sectorjf s \n ON et.sector = s.cod_sector \n WHERE et.estado = '3' AND DATE(et.fecha_terminado) BETWEEN '$fechaInicial' AND '$fechaFinalMasUno'\");\n\n\t\t\t}else{\n\n\n\t\t\t\t$stmt = Conexion::conectar()->prepare(\"SELECT \n et.id,\n et.sector,\n CONCAT(et.sector, '-', s.nom_sector) AS nom_sector,\n et.articulo,\n a.modelo,\n a.nombre,\n a.color,\n a.talla,\n et.cod_operacion,\n o.nombre AS nom_operacion,\n et.trabajador AS cod_trabajador,\n et.fecha_proceso,\n et.fecha_terminado,\n CONCAT(\n t.nom_tra,\n ' ',\n t.ape_pat_tra,\n ' ',\n t.ape_mat_tra\n ) AS trabajador,\n et.cantidad,\n DATE(et.fecha) AS fecha,\n et.estado,\n et.codigo,\n TIMESTAMPDIFF(\n MINUTE,\n et.fecha_proceso,\n et.fecha_terminado\n ) AS tiempo_real \n FROM\n entallerjf et \n LEFT JOIN trabajadorjf t \n ON et.trabajador = t.cod_tra \n LEFT JOIN articulojf a \n ON et.articulo = a.articulo \n LEFT JOIN operacionesjf o \n ON et.cod_operacion = o.codigo \n LEFT JOIN sectorjf s \n ON et.sector = s.cod_sector \n WHERE et.estado = '3' AND DATE(et.fecha_terminado) BETWEEN '$fechaInicial' AND '$fechaFinal'\");\n\n\t\t\t}\n\t\t\n\t\t\t$stmt -> execute();\n\n\t\t\treturn $stmt -> fetchAll();\n\n\t\t}\n\n\t}", "public function obtenerTabla() {\n $builder = $this->db->table($this->table);\n $data = $builder->get()->getResult();\n $tabla = '';\n foreach($data as $item):\n $accion = '<div class=\\\"custom-control custom-radio\\\">';\n $accion .= '<input type=\\\"radio\\\" id=\\\"row-'.$item->tipoTelefonoId.'\\\" name=\\\"id\\\" class=\\\"custom-control-input radio-edit\\\" value=\\\"'.$item->tipoTelefonoId.'\\\">';\n $accion .= '<label class=\\\"custom-control-label\\\" for=\\\"row-'.$item->tipoTelefonoId.'\\\"> </label> </div>';\n $tabla .= '{\n \"concepto\" : \"'.$item->tipoTelefonoTipo.'\",\n \"acciones\" : \"'.$accion.'\"\n },';\n endforeach;\n $tabla = substr($tabla, 0, strlen($tabla) - 1);\n $result = '{\"data\" : ['. $tabla .']}';\n return $this->response->setStatusCode(200)->setBody($result);\n }", "public function readTaskc(){\n $query = \"SELECT ordine.id_ordine, ordine.id_fornitore, fornitore.nome as fornitore, ordine.articolo, articolo.taglia, ordine.stato \n FROM \" . $this->table_name . \" LEFT JOIN fornitore ON ordine.id_fornitore = fornitore.id_fornitore \n INNER JOIN articolo ON ordine.id_ordine = articolo.id_ordine WHERE stato = 2\";\n $stmt = $this->conn->prepare( $query );\n $stmt->execute();\n return $stmt;\n }", "function getTabla() {\r\n return $this->tabla;\r\n }", "function insertarTablaInstancia(){\n\t\t$this->procedimiento='wf.ft_tabla_instancia_ime';\n\t\t$this->transaccion='WF_TABLAINS_INS';\n\t\t$this->tipo_procedimiento='IME';\n\t\t\n\t\t$this->setParametro('id_tabla','id_tabla','integer');\n\t\t$this->setParametro('tipo_estado','tipo_estado','varchar');\n\t\t$this->setParametro('tipo_proceso','tipo_proceso','varchar');\n\t\t//si es detalle se añade un parametro para el id del maestro\n\t\tif ($_SESSION['_wf_ins_'.$this->objParam->getParametro('tipo_proceso').'_'.$this->objParam->getParametro('tipo_estado')]['atributos']['vista_tipo'] != 'maestro') {\n\t\t\t\n\t\t\t$this->setParametro($_SESSION['_wf_ins_'.$this->objParam->getParametro('tipo_proceso').'_'.$this->objParam->getParametro('tipo_estado')]['atributos']['vista_campo_maestro'],\n\t\t\t\t\t\t\t\t$_SESSION['_wf_ins_'.$this->objParam->getParametro('tipo_proceso').'_'.$this->objParam->getParametro('tipo_estado')]['atributos']['vista_campo_maestro'],'integer');\n\t\t}\n\t\t//Define los parametros para la funcion\t\t\n\t\tforeach ($_SESSION['_wf_ins_'.$this->objParam->getParametro('tipo_proceso').'_'.$this->objParam->getParametro('tipo_estado')]['columnas'] as $value) {\n\t\t\t$this->setParametro($value['bd_nombre_columna'],$value['bd_nombre_columna'],$value['bd_tipo_columna']);\t\t\t\n\t\t}\t\t\t\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}", "function tablaDatos(){\n\n $editar = $this->Imagenes($this->PrimaryKey,0);\n $eliminar = $this->Imagenes($this->PrimaryKey,1);\n $sql = 'SELECT\n C.id_componentes,\n P.descripcion planta,\n S.descripcion secciones,\n E.descripcion Equipo,\n C.`descripcion` Componente\n ,'.$editar.','.$eliminar.' \nFROM\n `componentes` C\nINNER JOIN\n equipos E ON E.id_equipos = C.`id_equipos`\nINNER JOIN\n secciones S ON S.id_secciones = E.id_secciones\nINNER JOIN\n plantas P ON P.id_planta = S.id_planta\nWHERE\n \n C.`activo` = 1';\n \n $datos = $this->Consulta($sql,1); \n if(count($datos)){\n $_array_formu = array();\n $_array_formu = $this->generateHead($datos);\n $this->CamposHead = ( isset($_array_formu[0]) && is_array($_array_formu[0]) )? $_array_formu[0]: array();\n \n $tablaHtml = '<div class=\"row\">\n <div class=\"col-md-12\">\n <div class=\"panel panel-default\">\n <div class=\"panel-body recargaDatos\" style=\"page-break-after: always;\">\n <div class=\"table-responsive\">';\n $tablaHtml .='';\n \t\t$tablaHtml .= $this->print_table($_array_formu, 7, true, 'table table-striped table-bordered',\"id='tablaDatos'\");\n \t\t$tablaHtml .=' </div>\n </div>\n </div>\n </div>\n </div>\n ';\n }else{\n $tablaHtml = '<div class=\"col-md-8\">\n <div class=\"alert alert-info alert-dismissable\">\n <button class=\"close\" aria-hidden=\"true\" data-dismiss=\"alert\" type=\"button\">×</button>\n <strong>Atenci&oacute;n</strong>\n No se encontraron registros.\n </div>\n </div>';\n }\n \n if($this->_datos=='r') echo $tablaHtml;\n else return $tablaHtml;\n \n }", "function getEstadisticaDetallado() {\n\t\tglobal $mdb2;\n\t\tglobal $log;\n\t\tglobal $current_usuario_id;\n\t\tglobal $usr;\n\n\t\t# Variables para eventos especiales marcados por el cliente codigo 9.\n\t\t$event = new Event;\n\t\t$usr = new Usuario($current_usuario_id);\n\t\t$usr->__Usuario();\n\t\t$graficoSvg = new GraficoSVG();\n\n\n\t\t$timeZoneId = $usr->zona_horaria_id;\n\t\t$arrTime = Utiles::getNameZoneHor($timeZoneId); \t\t\n\t\t$timeZone = $arrTime[$timeZoneId];\n\t\t$tieneEvento = 'false';\n\t\t$arrayDateStart = array();\t\t\n\t\t$nameFunction = 'EstadisticaDet';\n\t\t$data = null;\n\t\t$ids = null;\n\n\t\t/* TEMPLATE DEL GRAFICO */\n\t\t$T =& new Template_PHPLIB(($this->extra[\"imprimir\"])?REP_PATH_PRINTTEMPLATES:REP_PATH_TABLETEMPLATES);\n\t\t$T->setFile('tpl_tabla', 'comparativo_resumen.tpl');\n\t\t$T->setBlock('tpl_tabla', 'BLOQUE_TITULO_HORARIOS', 'bloque_titulo_horarios');\n\t\t$T->setBlock('tpl_tabla', 'ES_PRIMERO_MONITOR', 'es_primero_monitor');\n\t\t$T->setBlock('tpl_tabla', 'ES_PRIMERO_TOTAL', 'es_primero_total');\n\t\t$T->setBlock('tpl_tabla', 'LISTA_PASOS', 'lista_pasos');\n\t\t$T->setBlock('tpl_tabla', 'BLOQUE_TABLA', 'bloque_tabla');\n\n\t\t$T->setVar('__item_orden', $this->extra[\"item_orden\"]);\n\t\t# Variables para mantenimiento.\n\t\t$T->setVar('__path_jquery_ui', REP_PATH_JQUERY_UI);\n\t\n\t\t$horarios = array($usr->getHorario($this->horario_id));\n\t\tif ($this->horario_id != 0) {\n\t\t\t$horarios[] = $usr->getHorario(0);\n\t\t}\n\n\t\t$orden = 1;\n\t\t$T->setVar('bloque_titulo_horarios', '');\n\t\tforeach ($horarios as $horario) {\n\n\t\t\t/* OBTENER LOS DATOS Y PARSEARLO */\n\t\t\t$sql = \"SELECT * FROM reporte.comparativo_resumen_parcial(\".\n\t\t\t\t\tpg_escape_string($current_usuario_id).\",\".\n\t\t\t\t\tpg_escape_string($this->objetivo_id).\", \".\n\t\t\t\t\tpg_escape_string($horario->horario_id).\",' \".\n\t\t\t\t\tpg_escape_string($this->timestamp->getInicioPeriodo()).\"', '\".\n\t\t\t\t\tpg_escape_string($this->timestamp->getTerminoPeriodo()).\"')\";\n\t\t\t$res =& $mdb2->query($sql);\n// \t\t\tprint($sql);\n\t\t\tif (MDB2::isError($res)) {\n\t\t\t\t$log->setError($sql, $res->userinfo);\n\t\t\t\texit();\n\t\t\t}\n\n\t\t\t$row = $res->fetchRow();\n\t\t\t$dom = new DomDocument();\n\t\t\t$dom->preserveWhiteSpace = false;\n\t\t\t$dom->loadXML($row[\"comparativo_resumen_parcial\"]);\n\t\t\t$xpath = new DOMXpath($dom);\n\t\t\tunset($row[\"comparativo_resumen_parcial\"]);\n\n\t\t\tif ($xpath->query('//detalle[@paso_orden]/estadisticas/estadistica')->length == 0) {\n\t\t\t\t$this->resultado = $this->__generarContenedorSinDatos();\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t$conf_objetivo = $xpath->query('/atentus/resultados/propiedades/objetivos/objetivo')->item(0);\n\t\t\t$conf_pasos = $xpath->query(\"paso[@visible=1]\", $conf_objetivo);\n\t\t\t$conf_nodos = $xpath->query('//nodos/nodo');\n\n\t\t\tif(count($horarios) > 1) {\n\t\t\t\t$T->setVar('__item_horario', $this->extra[\"item_orden\"]);\n\t\t\t\t$T->setVar('__horario_orden', $orden);\n\t\t\t\t$T->setVar('__horario_nombre',$horario->nombre);\n\t\t\t\t$T->parse('bloque_titulo_horarios', 'BLOQUE_TITULO_HORARIOS', false);\n\t\t\t}\n\n\t\t\t\n\t\t\t# Obtención de los eventos especiales marcados por el cliente\n\t\t\tforeach ($xpath->query(\"/atentus/resultados/detalles_marcado/detalle/marcado\") as $tag_marcado) {\n\t\t\t$ids = $ids.','.$tag_marcado->getAttribute('mantenimiento_id');\n\t\t\t$marcado = true;\n\t\t\t}\t\t\n\t\t\t\n\t\t\t# Verifica que exista marcado evento cliente.\n\t\t\tif ($marcado == true) {\n\n\t\t\t\t$dataMant = $event->getData(substr($ids, 1), $timeZone);\n\t\t\t\t$character = array(\"{\", \"}\");\n\t\t\t\t$objetives = explode(',',str_replace($character,\"\",($dataMant[0]['objetivo_id'])));\n\t\t\t\t$tieneEvento = 'true';\n\t\t\t\t$encode = json_encode($dataMant);\n\t\t\t\t$nodoId = (string)0;\n\t\t\t\t$T->setVar('__tiene_evento', $tieneEvento);\n\t\t\t\t$T->setVar('__name', $nameFunction);\n\n\t\t\t}\n\n\t\t\t/* LISTA DE MONITORES */\n\t\t\t$linea = 1;\n\t\t\t$T->setVar('lista_pasos', '');\n\t\t\tforeach($conf_nodos as $conf_nodo) {\n\t\t\t\t$primero = true;\n\t\t\t\t$tag_nodo = $xpath->query('//detalle[@nodo_id='.$conf_nodo->getAttribute('nodo_id').']/estadisticas/estadistica')->item(0);\n\n\t\t\t\t/* LISTA DE PASOS */\n\t\t\t\tforeach($conf_pasos as $conf_paso) {\n\t\t\t\t\t$tag_dato = $xpath->query('//detalle[@nodo_id='.$conf_nodo->getAttribute('nodo_id').']/detalles/detalle[@paso_orden='.$conf_paso->getAttribute('paso_orden').']/estadisticas/estadistica')->item(0);\n\t\t\t\t\tif($tag_dato != null) {\n\t\t\t\t\t\t$T->setVar('__print_class', ($linea % 2 == 0)?\"celdaIteracion2\":\"celdaIteracion1\");\n\t\t\t\t\t\t$T->setVar('__class', ($linea % 2 == 0)?\"celdanegra15\":\"celdanegra10\");\n\n\t\t\t\t\t\t$T->setVar('es_primero_monitor', '');\n\t\t\t\t\t\t$T->setVar('es_primero_total', '');\n\t\t\t\t\t\tif ($primero) {\n\t\t\t\t\t\t\t$T->setVar('__monitor_nombre', $conf_nodo->getAttribute('nombre'));\n\t\t\t\t\t\t\t$T->setVar('__monitor_rowspan', $conf_pasos->length);\n\t\t\t\t\t\t\t$T->setVar('__monitor_total_monitoreo', $tag_nodo->getAttribute('cantidad'));\n\t\t\t\t\t\t\t$T->parse('es_primero_monitor', 'ES_PRIMERO_MONITOR', false);\n\t\t\t\t\t\t\t$T->parse('es_primero_total', 'ES_PRIMERO_TOTAL', false);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$T->setVar('__paso_nombre', $conf_paso->getAttribute(\"nombre\"));\n\t\t\t\t\t\t$T->setVar('__paso_minimo', number_format($tag_dato->getAttribute('tiempo_min'), 3, ',', ''));\n\t\t\t\t\t\t$T->setVar('__paso_maximo', number_format($tag_dato->getAttribute('tiempo_max'), 3, ',', ''));\n\t\t\t\t\t\t$T->setVar('__paso_promedio', number_format($tag_dato->getAttribute('tiempo_prom'), 3, ',', ''));\n\t\t\t\t\t\t$T->setVar('__paso_uptime', number_format($tag_dato->getAttribute('uptime'), 3, ',', ''));\n\t\t\t\t\t\t$T->setVar('__paso_downtime', number_format($tag_dato->getAttribute('downtime'), 3, ',', ''));\n\t\t\t\t\t\t$T->setVar('__paso_no_monitoreo', number_format($tag_dato->getAttribute('sin_monitoreo'), 3, ',', ''));\n\t\t\t\t\t\t$T->setVar('__paso_evento_especial', number_format($tag_dato->getAttribute('marcado_cliente'), 3, ',', ''));\n\n\t\t\t\t\t\t$T->parse('lista_pasos', 'LISTA_PASOS', true);\n\t\t\t\t\t\t$primero = false;\n\t\t\t\t\t\t$linea++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t$T->parse('bloque_tabla', 'BLOQUE_TABLA', true);\n\t\t\t$orden++;\n\t\t}\n\t\t$this->tiempo_expiracion = (strtotime($xpath->query(\"//fecha_expiracion\")->item(0)->nodeValue) - strtotime($xpath->query(\"//fecha\")->item(0)->nodeValue));\n\t\t$this->resultado = $T->parse('out', 'tpl_tabla');\n\n\t\t# Agrega el acordeon cuando existan eventos.\n\t\tif (count($dataMant)>0){\n\t\t\t$this->resultado.= $graficoSvg->getAccordion($encode,$nameFunction);\n\t\t}\n\t\treturn $this->resultado;\n\t}", "public function ConsultarCuentaTabla(){\n $conn = new conexion();\n $cuenta = null;\n try {\n if($conn->conectar()){\n $str_sql = \"SELECT usuarios.nom_usu,usuarios.id_usu,usuarios.telefono,usuarios.usuario,usuarios.email,usuarios.foto,\"\n . \"tp_usuarios.nom_tp as tipo,usuarios.id_usu from usuarios INNER JOIN tp_usuarios \"\n . \"where usuarios.id_tp_usu = tp_usuarios.id_tp and usuarios.id_tp_usu <> 1 \"\n . \"and estado = 'Activo' and usuarios.id_tp_usu <> 7\";\n \n $sql = $conn->getConn()->prepare($str_sql);\n $sql->execute();\n $resultado = $sql->fetchAll();\n foreach ($resultado as $row){\n $user = new Usuario();\n $user->mapear1($row);\n $cuenta[] = array(\n \"Nom_usu\" => $user->getNom_usu(),\n \"Usuario\" => $user->getUsuario(),\n \"Email\" => $user->getEmail(),\n \"Telefono\" => $user->getTelefono(),\n \"Foto\" => $user->getFoto(),\n \"Cedula\" => $row['id_usu'],\n \"Tipo\" => $row['tipo'],\n \"Idusu\" => $row['id_usu'] \n );\n }\n }\n } catch (Exception $exc) {\n $cuenta = null;\n echo $exc->getMessage();\n }\n $conn->desconectar();\n return $cuenta;\n }", "function listarTablaInstancia(){\n\t\t$this->procedimiento='wf.ft_tabla_instancia_sel';\n\t\t$this->transaccion='WF_TABLAINS_SEL';\n\t\t$this->tipo_procedimiento='SEL';//tipo de transaccion\n\t\t\n\t\t$this->setParametro('id_tabla','id_tabla','integer');\n\t\t$this->setParametro('historico','historico','varchar');\n\t\t$this->setParametro('tipo_estado','tipo_estado','varchar');\n\t\t\n\t\t//Definicion de la lista del resultado del query\n\t\t$this->captura('id_' . $_SESSION['_wf_ins_'.$this->objParam->getParametro('tipo_proceso').'_'.$this->objParam->getParametro('tipo_estado')]['atributos']['bd_nombre_tabla'],'int4');\n\t\t\n\t\tif ($_SESSION['_wf_ins_'.$this->objParam->getParametro('tipo_proceso').'_'.$this->objParam->getParametro('tipo_estado')]['atributos']['vista_tipo'] == 'maestro') {\n\t\t\t\t\n\t\t\t$this->captura('estado','varchar');\n\t\t\t$this->captura('id_estado_wf','int4');\n\t\t\t$this->captura('id_proceso_wf','int4');\n\t\t\t$this->captura('obs','text');\n\t\t\t$this->captura('nro_tramite','varchar');\n\t\t}\n\t\t\n\t\tforeach ($_SESSION['_wf_ins_'.$this->objParam->getParametro('tipo_proceso').'_'.$this->objParam->getParametro('tipo_estado')]['columnas'] as $value) {\n\t\t\t\n\t\t\t$this->captura($value['bd_nombre_columna'],$value['bd_tipo_columna']);\t\t\n\t\t\t//campos adicionales\n\t\t\tif ($value['bd_campos_adicionales'] != '' && $value['bd_campos_adicionales'] != null) {\n\t\t\t\t$campos_adicionales = explode(',', $value['bd_campos_adicionales']);\n\t\t\t\t\n\t\t\t\tforeach ($campos_adicionales as $campo_adicional) {\n\t\t\t\t\t\n\t\t\t\t\t$valores = explode(' ', $campo_adicional);\n\t\t\t\t\t$this->captura($valores[1],$valores[2]);\n\t\t\t\t}\n\t\t\t}\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t$this->captura('estado_reg','varchar');\t\t\n\t\t$this->captura('fecha_reg','timestamp');\n\t\t$this->captura('id_usuario_reg','int4');\n\t\t$this->captura('id_usuario_mod','int4');\n\t\t$this->captura('fecha_mod','timestamp');\n\t\t$this->captura('usr_reg','varchar');\n\t\t$this->captura('usr_mod','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}", "function get_servicios_trabajador($id)\n {\n $id = $this->session->id;\n $this->db->select('*');\n $this->db->from('servicio');\n $this->db->where('id_trabajador', $id);\n $this->db->order_by('fecha','DESC');\n $query = $this->db->get();\n return $query->result();\n }", "public function buscarEstudiante() {\n\n $sql = \"SELECT D.tipodocumento, D.nombrecortodocumento, E.codigocarrera,\n EG.numerodocumento, EG.idestudiantegeneral, EG.nombresestudiantegeneral, \n EG.apellidosestudiantegeneral, EG.expedidodocumento, EG.codigogenero, \n EG.ciudadresidenciaestudiantegeneral, EG.fechanacimientoestudiantegeneral, EG.direccionresidenciaestudiantegeneral, \n EG.telefonoresidenciaestudiantegeneral, EG.emailestudiantegeneral, D.nombredocumento\n\t\tFROM \n estudiantegeneral EG\n\t\tINNER JOIN estudiante E ON ( E.idestudiantegeneral = EG.idestudiantegeneral )\n\t\tINNER JOIN documento D ON ( D.tipodocumento = EG.tipodocumento )\n\t\tWHERE\n E.codigoestudiante = ? \";\n /* FIN MODIFICACION */\n\n $this->persistencia->crearSentenciaSQL($sql);\n $this->persistencia->setParametro(0, $this->getCodigoEstudiante(), false);\n\n $this->persistencia->ejecutarConsulta();\n if ($this->persistencia->getNext()) {\n $this->setIdEstudiante($this->persistencia->getParametro(\"idestudiantegeneral\"));\n $this->setNumeroDocumento($this->persistencia->getParametro(\"numerodocumento\"));\n $this->setNombreEstudiante($this->persistencia->getParametro(\"nombresestudiantegeneral\"));\n $this->setApellidoEstudiante($this->persistencia->getParametro(\"apellidosestudiantegeneral\"));\n $this->setExpedicion($this->persistencia->getParametro(\"expedidodocumento\"));\n $this->setFechaNacimiento($this->persistencia->getParametro(\"fechanacimientoestudiantegeneral\"));\n $this->setDireccion($this->persistencia->getParametro(\"direccionresidenciaestudiantegeneral\"));\n $this->setTelefono($this->persistencia->getParametro(\"telefonoresidenciaestudiantegeneral\"));\n $this->setEmail($this->persistencia->getParametro(\"emailestudiantegeneral\"));\n\n $carrera = new Carrera(null);\n $carrera->setCodigoCarrera($this->persistencia->getParametro(\"codigocarrera\"));\n $this->setCarrera($carrera);\n\n\n $tipoDocumento = new TipoDocumento(null);\n $tipoDocumento->setIniciales($this->persistencia->getParametro(\"tipodocumento\"));\n $tipoDocumento->setDescripcion($this->persistencia->getParametro(\"nombrecortodocumento\"));\n $tipoDocumento->setNombreDocumento($this->persistencia->getParametro(\"nombredocumento\"));\n\n $genero = new Genero(null);\n $genero->setCodigo($this->persistencia->getParametro(\"codigogenero\"));\n\n $ciudad = new Ciudad(null);\n $ciudad->setId($this->persistencia->getParametro(\"ciudadresidenciaestudiantegeneral\"));\n\n $this->setCiudad($ciudad);\n $this->setGenero($genero);\n $this->setTipoDocumento($tipoDocumento);\n }\n\n $this->persistencia->freeResult();\n }", "public function selectTable($table)\n {\n $select_query = \"SELECT * FROM {$table}\"; \n\n if ($this->conexao == null) {\n $this->abrir();\n }\n\n $prepare = $this->conexao->prepare($select_query);\n\n $prepare->execute();\n\n $linha = $prepare->fetchAll(\\PDO::FETCH_OBJ);\n\n return $linha;\n }", "function readOne(){\n\n $query = \"SELECT ordine.id_ordine, ordine.articolo, fornitore.nome as 'fornitore', ordine.stato \n FROM \". $this->table_name . \" INNER JOIN fornitore \n ON ordine.id_fornitore = fornitore.id_fornitore\n WHERE ordine.id_ordine = ?\";\n \n $stmt = $this->conn->prepare( $query );\n $stmt->bindParam(1, $this->id_ordine);\n $stmt->execute();\n $row = $stmt->fetch(PDO::FETCH_ASSOC);\n \n if($row){\n\n $this->id_ordine = $row['id_ordine'];\n $this->articolo = $row['articolo'];\n $this->fornitore = $row['fornitore'];\n $this->stato = $row['stato'];\n\n }\n else{\n\n $query = \"SELECT ordine.id_ordine, ordine.articolo, ordine.stato \n FROM \". $this->table_name . \" WHERE ordine.id_ordine = ?\";\n\n $stmt = $this->conn->prepare($query);\n $stmt->bindParam(1, $this->id_ordine);\n $stmt->execute();\n $row = $stmt->fetch(PDO::FETCH_ASSOC);\n if($row){\n $this->id_ordine = $row['id_ordine'];\n $this->articolo = $row['articolo'];\n $this->stato = $row['stato'];\n }\n }\n }", "function tampil_data($tabel)\n {\n $row = $this->db->prepare(\"SELECT * FROM sms\");\n $row->execute();\n return $hasil = $row->fetchAll();\n }", "function tableData(){\n\t\t$entity_type = in(\"entity_type\");\t\t\n\t\t$table = $entity_type()->getTable();\n\t\t$test = in('test');\n\n\t\t// Table's primary key\n\t\t$primaryKey = 'id';\n\n\t\t// Array of database columns which should be read and sent back to DataTables.\n\t\t// The `db` parameter represents the column name in the database, while the `dt`\n\t\t// parameter represents the DataTables column identifier. In this case simple\n\t\t// indexes\n\t\t$columns = array(\n\t\t\tarray( \t'db' => 'id',\n\t\t\t\t\t'dt' => 0 \n\t\t\t\t ),\n\t\t\tarray( \t'db' => 'created', \n\t\t\t\t\t'dt' => 1, \n\t\t\t\t\t'formatter' => function( $d, $row ) {\n\t\t\t\t\t\tif( $d == 0 ) return 0;\n\t\t\t\t\t\treturn date( 'M d, Y H:i', $d);\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t),\n\t\t\tarray( \t'db' => 'updated',\n\t\t\t\t\t'dt' => 2,\n\t\t\t\t\t'formatter' => function( $d, $row ) {\n\t\t\t\t\t\tif( $d == 0 ) return 0;\n\t\t\t\t\t\treturn date( 'M d, Y H:i', $d);\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t ),\n\t\t);\n\t\t\n\t\t$additional_columns = self::getAdditionalFields( $entity_type );\n\t\t\n\t\t$columns = array_merge( $columns, $additional_columns );\n\n\t\t// SQL server connection information\n\t\t$sql_details = array(\n\t\t\t'user' => 'root',\n\t\t\t'pass' => '7777',\n\t\t\t'db' => 'ci3',\n\t\t\t'host' => 'localhost'\n\t\t);\n\t\n\t\trequire( 'theme/admin/scripts/ssp.class.php' );\t\t\n\t\t$date_from = in(\"date_from\");\n\t\t$date_to = in(\"date_to\");\n\t\t$extra_query = null;\n\t\tif( !empty( $date_from ) ){\n\t\t\t$stamp_from = strtotime( $date_from );\n\t\t\t$extra_query .= \"created > $stamp_from\";\n\t\t}\n\t\tif( !empty( $date_to ) ){\n\t\t\t$stamp_to = strtotime( $date_to.\" +1 day\" ) - 1;\n\t\t\tif( !empty( $extra_query ) ) $extra_query .= \" AND \";\n\t\t\t$extra_query .= \"created < $stamp_to\";\n\t\t\t\n\t\t}\t\t\n\t\t\n\t\techo json_encode(\n\t\t\tSSP::complex( $_GET, $sql_details, $table, $primaryKey, $columns, $extra_query )\n\t\t);\n\t}", "function historial(){\n\n\t\t//Instanciamos y nos conectamos a la bd\n\t\t$Conexion = floopets_BD::Connect();\n\t\t$Conexion->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n\t\t//Crear el query que vamos a realizar\n\t\t$consulta = \"SELECT tipo_denuncia.*,denuncia.* FROM denuncia INNER JOIN tipo_denuncia ON denuncia.td_cod_tipo_denuncia=tipo_denuncia.td_cod_tipo_denuncia WHERE denuncia.de_estado='tomado'\";\n\t\t$query = $Conexion->prepare($consulta);\n\t\t$query->execute();\n\t\t//Devolvemos el resultado en un arreglo\n\t\t//Fetch: es el resultado que arroja la consulta en forma de un vector o matriz segun sea el caso\n\t\t//Para consultar donde arroja mas de un dato el fatch debe ir acompañado con la palabra ALL\n\t\t$resultado = $query->fetchALL(PDO::FETCH_BOTH);\n\t\treturn $resultado;\n\t\tfloopets_BD::Disconnect();\n\t}", "public function data(){\n $id = $this->registro_id;\n $tabla = $this->tabla;\n $datos = '';\n\n if ($tabla == 'conductor') {\n $datos = Persona::where('id','=',$id)->get();\n }elseif ($tabla == 'propietario') {\n $datos = Persona::where('id','=',$id)->get();\n }elseif ($tabla == 'usuarios') {\n $datos = User2::where('id','=',$id)->get();\n }elseif($tabla == 'operadoras') {\n $datos = Operadora::where('id','=',$id)->get();\n }elseif ($tabla == 'rutas') {\n $datos = Ruta::where('id','=',$id)->get();\n }elseif ($tabla == 'marcas') {\n $datos = Marca::where('id','=',$id)->get();\n }elseif ($tabla == 'colores') {\n $datos = Color::where('id','=',$id)->get();\n }elseif($tabla == 'vehiculos') {\n $datos = Vehiculo::where('id','=',$id)->get();\n }\n\n return $datos;\n }", "public function select($semillero){\n $id=$semillero->getId();\n\n try {\n $sql= \"SELECT `id`, `nombre`, `sigla`, `fecha_creacion`, `aval_dic_grupo`, `aval_dic_sem`, `aval_dic_unidad`, `grupo_investigacion_id`, `unidad_academica`\"\n .\"FROM `semillero`\"\n .\"WHERE `id`='$id'\";\n $data = $this->ejecutarConsulta($sql);\n for ($i=0; $i < count($data) ; $i++) {\n $semillero->setId($data[$i]['id']);\n $semillero->setNombre($data[$i]['nombre']);\n $semillero->setSigla($data[$i]['sigla']);\n $semillero->setFecha_creacion($data[$i]['fecha_creacion']);\n $semillero->setAval_dic_grupo($data[$i]['aval_dic_grupo']);\n $semillero->setAval_dic_sem($data[$i]['aval_dic_sem']);\n $semillero->setAval_dic_unidad($data[$i]['aval_dic_unidad']);\n $grupo_investigacion = new Grupo_investigacion();\n $grupo_investigacion->setId($data[$i]['grupo_investigacion_id']);\n $semillero->setGrupo_investigacion_id($grupo_investigacion);\n $semillero->setUnidad_academica($data[$i]['unidad_academica']);\n\n }\n return $semillero; } catch (SQLException $e) {\n throw new Exception('Primary key is null');\n return null;\n }\n }", "public function consulta_tienda_cart(){\n\n $this->que_dba=\"SELECT * FROM tienda t, inventario i, temp_pedido tp\n\t\t\tWHERE t.cod_tie=i.tienda_cod_tie\n\t\t\tAND i.cod_inv=tp.inventario_cod_inv\n\t\t\tAND tp.usuario_cod_usu='\".$_SESSION['cod_usu'].\"'\n\t\t\tGROUP BY raz_tie;\"; \n\t\t\t \n\t\treturn $this->ejecutar();\n\t}", "public function read(){\n $query = \"SELECT ordine.id_ordine, ordine.id_fornitore, fornitore.nome as fornitore, ordine.articolo, articolo.taglia, ordine.stato \n FROM \" . $this->table_name . \" LEFT JOIN fornitore ON ordine.id_fornitore = fornitore.id_fornitore INNER JOIN articolo ON ordine.id_ordine = articolo.id_ordine\";\n $stmt = $this->conn->prepare( $query );\n $stmt->execute();\n return $stmt;\n }", "function tablaRuta($Nombre){\r\n\t\t$query = \"SELECT * FROM \" . self::TABLA . \";\";\r\n\t\treturn parent::tablaRegistro($Nombre, $query);\r\n\t\r\n }", "public function SelecionaTudo() {\n try {\n //Monta a Query\n $query = Doctrine_Query::create()\n ->select(\"ws.*, MONTHNAME(ws.data) mes, YEAR(ws.data) ano\")\n ->from($this->table_alias)\n ->orderBy(\"ws.data DESC\")\n ->offset(1)\n ->limit(6)\n ->execute()\n ->toArray();\n\n return $query;\n } catch (Doctrine_Exception $e) {\n echo $e->getMessage();\n }\n }", "function iniciar_sincro($tabla)\n { \n //Marcar momento de inicio\n $registro['fecha_inicio'] = date('Y-m-d H:i:s');\n $condicion = \"nombre_tabla = '{$tabla}'\";\n \n $this->Pcrn->guardar('sis_tabla', $condicion, $registro);\n }", "public function queryTramo ( dto_servicio $dtoServicio ) {\r\n\t\t\t\r\n\t\t\t$sql=\" SELECT idtramo,tramo,IFNULL(porcentaje_comision,'') AS 'porcentaje_comision' FROM ca_tramo WHERE idservicio = ? AND tipo = 'TRAMO' \";\r\n\t\t\t\r\n\t\t\t//$cartera=$dtoCartera->getId();\r\n\t\t\t$servicio = $dtoServicio->getId();\r\n\t\t\t\r\n\t\t\t$factoryConnection= FactoryConnection::create('mysql');\r\n\t $connection = $factoryConnection->getConnection();\r\n\t\t\t\r\n \t //$connection->beginTransaction();\r\n\t\t\t\r\n \t$pr=$connection->prepare($sql);\r\n\t\t\t//$pr->bindParam(1,$cartera);\r\n\t\t\t$pr->bindParam(1,$servicio);\r\n\t\t\tif( $pr->execute() ) {\r\n\t\t\t\t//$connection->commit();\r\n\t\t\t\treturn $pr->fetchAll(PDO::FETCH_ASSOC);\r\n\t\t\t}else{\r\n\t\t\t\t//$connection->rollBack();\r\n\t\t\t\treturn array();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}", "public function getTabla(){\n return $this->table;\n }", "protected function _readTable() {}", "protected function _readTable() {}", "function entrada_por_traspaso(){\n\t\t$e= new Entrada();\n\t\t$e->usuario_id=$GLOBALS['usuarioid'];\n\t\t$e->empresas_id=$GLOBALS['empresaid'];\n\t\t$related = $e->from_array($_POST);\n\t\t//if($e->costo_unitario=='undefined') $e->costo_unitario=0;\n\t\t$e->espacios_fisicos_id=$GLOBALS['espacios_fisicos_id'];\n\t\t$e->costo_total=($e->cantidad * $e->costo_unitario);\n\t\t$e->cproveedores_id=1;\n\t\t$e->fecha=date(\"Y-m-d H:i:s\");\n\t\tif($e->id==0)\n\t\t\tunset($e->id);\n\t\tif($e->save($related)) {\n\t\t\techo $e->id;\n\t\t} else\n\t\t\techo 0;\n\t}", "private function _consultar() {\n $where = \"\";\n if(!empty($this->_idDato)){\n $where = \"AND b.id_valor = $this->_idDato \";\n }\n if(!empty($this->_valor)){\n if(is_array($this->_valor)){\n $aux = each($this->_valor);\n $where = \"AND b.valor {$aux['key']} '{$aux['value']}' \";\n }else{\n $where = \"AND b.valor = '$this->_valor' \";\n }\n \n }\n $query = \"SELECT a.nom_tabla,b.* FROM \nmt_tablas a,\nmt_contenidos b\nWHERE a.id_tablas = {$this->_idTabla}\nAND a.estado = 1 $where\nAND a.id_tablas = b.id_tabla\nAND b.estado = 1\";\n \n if(is_array($this->_orden) && count($this->_orden) == 2){\n $query .= (\" ORDER BY \" . ($this->_orden[0] == 1 ? \"id_valor \" : \"valor \") . $this->_orden[1] );\n }\n $con = ConexionSQL::getInstance();\n $id = $con->consultar($query);\n if($res = $con->obenerFila($id)){\n $R = array();\n do{\n $aux = array();\n foreach($res as $key => $valor){\n if(!is_numeric($key)){\n $aux[$key] = $valor;\n }\n }\n $R[] = $aux;\n }while($res = $con->obenerFila($id));\n return $R;\n }\n return false;\n }", "static public function mdlRangoFechasTalleres($tabla, $fechaInicial, $fechaFinal){\n\n\t\tif($fechaInicial == \"null\"){\n\n\t\t\t$stmt = Conexion::conectar()->prepare(\"SELECT et.id,\n et.sector,\n et.articulo,\n a.modelo,\n a.nombre,\n a.color,\n a.talla,\n et.fecha_terminado,\n et.cod_operacion,\n o.nombre AS nom_operacion,\n et.trabajador AS cod_trabajador,\n CONCAT(\n t.nom_tra,\n ' ',\n t.ape_pat_tra,\n ' ',\n t.ape_mat_tra\n ) AS trabajador,\n et.cantidad,\n DATE(et.fecha) AS fecha,\n et.estado,\n et.codigo \n FROM\n entallerjf et \n LEFT JOIN trabajadorjf t \n ON et.trabajador = t.cod_tra \n LEFT JOIN articulojf a \n ON et.articulo = a.articulo \n LEFT JOIN operacionesjf o \n ON et.cod_operacion = o.codigo \n WHERE MONTH(et.fecha) = MONTH(NOW())\n ORDER BY et.id ASC\");\n\n\t\t\t$stmt -> execute();\n\n\t\t\treturn $stmt -> fetchAll();\t\n\n\n\t\t}else if($fechaInicial == $fechaFinal){\n\n\t\t\t$stmt = Conexion::conectar()->prepare(\"SELECT et.id,\n et.sector,\n et.articulo,\n a.modelo,\n a.nombre,\n a.color,\n a.talla,\n et.fecha_terminado,\n et.cod_operacion,\n o.nombre AS nom_operacion,\n et.trabajador AS cod_trabajador,\n CONCAT(\n t.nom_tra,\n ' ',\n t.ape_pat_tra,\n ' ',\n t.ape_mat_tra\n ) AS trabajador,\n et.cantidad,\n DATE(et.fecha) AS fecha,\n et.estado,\n et.codigo \n FROM\n entallerjf et \n LEFT JOIN trabajadorjf t \n ON et.trabajador = t.cod_tra \n LEFT JOIN articulojf a \n ON et.articulo = a.articulo \n LEFT JOIN operacionesjf o \n ON et.cod_operacion = o.codigo \n WHERE et.fecha like '%$fechaFinal%'\");\n\n\t\t\t$stmt -> bindParam(\":fecha\", $fechaFinal, PDO::PARAM_STR);\n\n\t\t\t$stmt -> execute();\n\n\t\t\treturn $stmt -> fetchAll();\n\n\t\t}else{\n\n\t\t\t$fechaActual = new DateTime();\n\t\t\t$fechaActual ->add(new DateInterval(\"P1D\"));\n\t\t\t$fechaActualMasUno = $fechaActual->format(\"Y-m-d\");\n\n\t\t\t$fechaFinal2 = new DateTime($fechaFinal);\n\t\t\t$fechaFinal2 ->add(new DateInterval(\"P1D\"));\n\t\t\t$fechaFinalMasUno = $fechaFinal2->format(\"Y-m-d\");\n\n\t\t\tif($fechaFinalMasUno == $fechaActualMasUno){\n\n\t\t\t\t$stmt = Conexion::conectar()->prepare(\"SELECT et.id,\n et.sector,\n et.articulo,\n a.modelo,\n a.nombre,\n a.color,\n a.talla,\n et.cod_operacion,\n et.fecha_terminado,\n o.nombre AS nom_operacion,\n et.trabajador AS cod_trabajador,\n CONCAT(\n t.nom_tra,\n ' ',\n t.ape_pat_tra,\n ' ',\n t.ape_mat_tra\n ) AS trabajador,\n et.cantidad,\n DATE(et.fecha) AS fecha,\n et.estado,\n et.codigo \n FROM\n entallerjf et \n LEFT JOIN trabajadorjf t \n ON et.trabajador = t.cod_tra \n LEFT JOIN articulojf a \n ON et.articulo = a.articulo \n LEFT JOIN operacionesjf o \n ON et.cod_operacion = o.codigo\n WHERE et.fecha BETWEEN '$fechaInicial' AND '$fechaFinalMasUno'\");\n\n\t\t\t}else{\n\n\n\t\t\t\t$stmt = Conexion::conectar()->prepare(\"SELECT et.id,\n et.sector,\n et.articulo,\n a.modelo,\n a.nombre,\n a.color,\n a.talla,\n et.fecha_terminado,\n et.cod_operacion,\n o.nombre AS nom_operacion,\n et.trabajador AS cod_trabajador,\n CONCAT(\n t.nom_tra,\n ' ',\n t.ape_pat_tra,\n ' ',\n t.ape_mat_tra\n ) AS trabajador,\n et.cantidad,\n DATE(et.fecha) AS fecha,\n et.estado,\n et.codigo \n FROM\n entallerjf et \n LEFT JOIN trabajadorjf t \n ON et.trabajador = t.cod_tra \n LEFT JOIN articulojf a \n ON et.articulo = a.articulo \n LEFT JOIN operacionesjf o \n ON et.cod_operacion = o.codigo \n WHERE et.fecha BETWEEN '$fechaInicial' AND '$fechaFinal'\");\n\n\t\t\t}\n\t\t\n\t\t\t$stmt -> execute();\n\n\t\t\treturn $stmt -> fetchAll();\n\n\t\t}\n\n }", "function grafico_1( $desde, $hasta, $ua ){\n\t$query = \"select nested.id_cliente, noticiasactor.id_actor, nested.tema from \"\n\t. \"( select procesados.* from ( select noticiascliente.* from noticiascliente inner join proceso on noticiascliente.id_noticia = proceso.id_noticia where noticiascliente.id_cliente = \" . $ua . \" ) procesados \"\n\t. \"inner join noticia on noticia.id = procesados.id_noticia where noticia.fecha between '\" . $desde . \" 00:00:01' and '\" . $hasta . \" 23:59:59') nested \"\n\t. \"inner join noticiasactor on nested.id_noticia = noticiasactor.id_noticia order by id_actor asc \";\n\t$main = R::getAll($query);\n\t// obtengo el nombre de la unidad de analisis\n\t$ua_nombre = R::findOne(\"cliente\",\"id LIKE ?\",[$ua])['nombre'];\n\t// obtengo los nombres de todos los actores, para cruzar\n\t$actores_nombres = R::findOne(\"actor\",\"id LIKE ?\",[4]) ;\n\t//var_dump($actores_nombres['nombre'] . \" \" . $actores_nombres['apellido']);\n\n\t$tabla = [];\n\t$temas = [];\n\t$i = -1;\n\t// reemplazo actores por nombres y temas\n\tforeach($main as $k=>$v){\n\t\t$actores_nombres = R::findOne(\"actor\",\"id LIKE ?\",[ $v['id_actor'] ]);\n\t\t$main[$k]['id_cliente'] = $ua_nombre;\n\t\t// $main[$k]['id_actor'] = $actores_nombres['nombre'] . \" \" . $actores_nombres['apellido'];\n\t\t$main[$k]['id_actor'] = $v['id_actor'];\n\t\t$main[$k]['nombre'] = $actores_nombres['nombre'] . \" \" . $actores_nombres['apellido'];\n\t\t$id_tema = get_string_between($main[$k]['tema'],\"frm_tema_\",\"\\\"\");\n\t\t$tema = R::findOne(\"attr_temas\",\"id LIKE ?\",[$id_tema])['nombre'];\n\t\tif( is_null( $tema ) ) $tema = 'TEMA NO ASIGNADO';\n\t\t$main[$k]['tema'] = $tema;\n\t\t\n\t\t// if(array_search( [ $main[$k]['id_actor'],$tema], $tabla ) ) echo \"repetido\";\n\t\t// chequeo si ya existe alguno con este actor y tema, si es asi, sumo uno\n\t\t// TODO - FIXME : deberia ser mas eficiente, busqueda por dos valores\n\t\t$iter = true;\n\t\tforeach($tabla as $ka=>$va){\n\t\t\t// if($va['actor'] == $main[$k]['id_actor'] && $va['tema'] == $tema){\n\t\t\tif($va['actor'] == $main[$k]['nombre'] && $va['tema'] == $tema){\n\t\t\t\t$tabla[$ka]['cantidad'] += 1;\n\t\t\t\t$iter = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif($iter){\n\t\t\t$tabla[ ++$i ] = [ \n\t\t\t\t'unidad_analisis' => $ua_nombre,\n\t\t\t\t'actor' => $main[$k]['nombre'],\n\t\t\t\t'id_actor' => $main[$k]['id_actor'],\n\t\t\t\t'tema' => $tema,\n\t\t\t\t'cantidad' => 1\n\t\t\t\t];\n\t\t\t}\n\t\t// agrego los temas que van apareciendo en la tabla temas\n\t\t// UTIL para poder hacer el CRC32 por la cantidad de colores\n\t\tif(!in_array($tema,$temas)) $temas[] = $tema;\n\t}\n\t// la agrupacion de repetidos es por aca, por que repite y cuenta temas de igual id\n\n\t// en el grafico, los hijos, son arreglos de objetos, hago una conversion tabla -> objeto\n\t$objeto = new StdClass(); // objeto vacio\n\t$objeto->name = 'Actores';\n\t$objeto->rank = 0;\n\t$objeto->weight = 1;\n\t$objeto->id = 1;\n\t$objeto->children = [];\n\tforeach($tabla as $k=>$v){\n\t\t// me fijo si el actor existe, ineficiente pero por ahora\n\t\t$NoExiste = true;\n\t\tforeach($objeto->children as $ka=>$va){\n\t\t\t// si existe actor, le inserto el tema\n\t\t\tif($va->name == $v['actor']){\n\t\t\t\t$in = new StdClass();\n\t\t\t\t// $in->name = $v['tema'] . \" (\" . $v['cantidad'] . \") \" ; // lo construye JS\n\t\t\t\t$in->name = \"\";\n\t\t\t\t$in->tema = array_search($v['tema'],$temas);\n\t\t\t\t$in->tema_cantidad = $v['cantidad'];\n\t\t\t\t$in->rank = intval($v['cantidad']); // el tamaño del objeto \n\t\t\t\t$in->weight = 0; // lo asigna JS\n\t\t\t\t$in->id = $k;\n\t\t\t\t$in->children = [];\n\t\t\t\t$objeto->children[$ka]->children[] = $in;\n\t\t\t\t$objeto->children[$ka]->cantidad_temas = count($objeto->children[$ka]->children);\t\n\t\t\t\t$objeto->children[$ka]->rank = count($objeto->children[$ka]->children);\n\t\t\t\t$NoExiste = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif($NoExiste){\n\t\t\t$in = new StdClass();\n\t\t\t$in->name = $v['actor'];\n\t\t\t$in->rank = 1;\n\t\t\t$in->weight = 0; // lo asigna JS\n\t\t\t$in->id = $k;\n\t\t\t//$in->id = $v['id_actor'];\n\t\t\t$in->id_actor = $v['id_actor'];\n\t\t\t\t$t_in = new StdClass();\n\t\t\t\t// $t_in->name = $v['tema'] . \" (\" . $v['cantidad'] . \") \" ; // lo construye JS\n\t\t\t\t$t_in-> name = \"\";\n\t\t\t\t$t_in->tema = array_search($v['tema'],$temas);\n\t\t\t\t$t_in->tema_cantidad = $v['cantidad'];\n\t\t\t\t$t_in->rank = intval($v['cantidad']); // el tamaño del objeto \n\t\t\t\t$t_in->weight = 0; // lo asigna JS\n\t\t\t\t$t_in->id = $k;\n\t\t\t\t$t_in->children = [];\n\t\t\t$in->children = [ $t_in ];\n\t\t\t$objeto->children[] = $in;\n\t\t}\n\t}\n\treturn [\n\t\t'tabla' => $tabla,\n\t\t'grafico' => $objeto,\n\t\t'temas' => $temas\n\t\t];\n}", "public static function getInstance()\n {\n return Doctrine_Core::getTable('EmpresaSectorTres');\n }", "public function buscarEstudianteActa() {\n\n $sql = \"SELECT\n D.tipodocumento, D.nombrecortodocumento, EG.numerodocumento, EG.idestudiantegeneral,\n EG.nombresestudiantegeneral, EG.apellidosestudiantegeneral, EG.expedidodocumento, C.codigocarrera\n FROM \n estudiantegeneral EG\n INNER JOIN estudiante E ON ( E.idestudiantegeneral = EG.idestudiantegeneral )\n INNER JOIN documento D ON ( D.tipodocumento = EG.tipodocumento )\n INNER JOIN carrera C ON ( C.codigocarrera = E.codigocarrera )\n WHERE \n E.codigoestudiante = ?\n AND E.codigoestudiante NOT IN ( \n SELECT \n DC.EstudianteId\n FROM \n DetalleAcuerdoActa DC\n WHERE \n CodigoEstado = 100)\";\n\n $this->persistencia->crearSentenciaSQL($sql);\n $this->persistencia->setParametro(0, $this->getCodigoEstudiante(), false);\n\n $this->persistencia->ejecutarConsulta();\n if ($this->persistencia->getNext()) {\n $this->setIdEstudiante($this->persistencia->getParametro(\"idestudiantegeneral\"));\n $this->setNumeroDocumento($this->persistencia->getParametro(\"numerodocumento\"));\n $this->setNombreEstudiante($this->persistencia->getParametro(\"nombresestudiantegeneral\"));\n $this->setApellidoEstudiante($this->persistencia->getParametro(\"apellidosestudiantegeneral\"));\n $this->setExpedicion($this->persistencia->getParametro(\"expedidodocumento\"));\n\n $tipoDocumento = new TipoDocumento(null);\n $tipoDocumento->setIniciales($this->persistencia->getParametro(\"tipodocumento\"));\n $tipoDocumento->setDescripcion($this->persistencia->getParametro(\"nombrecortodocumento\"));\n\n $fechaGrado = new FechaGrado(null);\n $carrera = new Carrera(null);\n\n $carrera->setCodigoCarrera($this->persistencia->getParametro(\"codigocarrera\"));\n $fechaGrado->setCarrera($carrera);\n $this->setTipoDocumento($tipoDocumento);\n $this->setFechaGrado($fechaGrado);\n }\n\n $this->persistencia->freeResult();\n }", "public function select(){\n\t\t$sql = \"SELECT * FROM equipo_tipo\n\t\t\t\twhere equi_tip_estado = 1\";\n\n\t\treturn ejecutarConsulta($sql);\n\t}", "public function displayDatoSeguimiento($etapa_id){\n try{\n log_message(\"INFO\", \"Obteniendo valor de campo para etapa: \".$etapa_id, FALSE);\n log_message(\"INFO\", \"Nombre campo: \".$this->nombre, FALSE);\n\n $dato = Doctrine::getTable('DatoSeguimiento')->findByNombreHastaEtapa($this->nombre,$etapa_id);\n if(!$dato ){\n //Se deben crear\n $dato = new DatoSeguimiento();\n $dato->nombre = $this->nombre;\n $dato->etapa_id = $etapa_id;\n $dato->valor = NULL;\n }\n log_message(\"INFO\", \"Nombre dato: \".$dato->nombre, FALSE);\n log_message(\"INFO\", \"Valor dato: .\".$dato->valor.\".\", FALSE);\n log_message(\"INFO\", \"this->valor_default: \".$this->valor_default, FALSE);\n if(isset($this->valor_default) && strlen($this->valor_default) > 0 && $dato->valor === NULL){\n $regla=new Regla($this->valor_default);\n $valor_dato=$regla->getExpresionParaOutput($etapa_id);\n $dato->valor = $valor_dato;\n $dato->save();\n }else{\n $valor_dato = $dato->valor;\n }\n\n log_message(\"INFO\", \"valor_default: \".$valor_dato, FALSE);\n\n return $valor_dato;\n }catch(Exception $e){\n log_message('error',$e->getMessage());die;\n throw $e;\n }\n }", "function datos_subtema($id_subtema) {\n\n\t\t$query = \"SELECT temas.*,subtemas.* \n\t\tFROM temas,subtemas \n\t\tWHERE subtemas.id_subtema='$id_subtema'\n\t\tAND subtemas.id_tema=temas.id_tema\";\n\n\t\t$connection = mysql_connect($this->HOST, $this->USERNAME, $this->PASSWORD);\n\n\t\t$SelectedDB = mysql_select_db($this->DBNAME);\n\t\t$result = mysql_query($query); \n\t\t\n\t\t$numrows = mysql_num_rows($result);\n\t\t$row=mysql_fetch_array($result);\n\t\tmysql_close($connection);\t\n\t\t// COMPROBAMOS QUE HAYA RESULTADOS\n\t\t// SI EL NUMERO DE RESULTADOS ES 0 SIGNIFICA QUE NO HAY REGISTROS CON ESOS DATOS\n\t\tif ($numrows == 0) {\n\t\t\treturn 0;\n\t\t}\n\t\telse {\n\t\t\treturn $row;\n\t\t}\n\t}", "private function rowDataTable($seccion, $tabla, $id) {\n $data = '';\n switch ($tabla) {\n case 'admin_usuario':\n $sql = $this->db->select(\"SELECT wa.nombre, wa.email, wr.descripcion as rol, wa.estado\n FROM admin_usuario wa\n LEFT JOIN admin_rol wr on wr.id = wa.id_rol WHERE wa.id = $id;\");\n break;\n case 'ciudad':\n $sql = $this->db->select(\"SELECT c.id, c.descripcion as ciudad, c.estado, d.descripcion as departamento FROM ciudad c\n LEFT JOIN departamento d on c.id_departamento = d.id WHERE c.id = $id;\");\n break;\n default :\n $sql = $this->db->select(\"SELECT * FROM $tabla WHERE id = $id;\");\n break;\n }\n switch ($seccion) {\n case 'departamento':\n if ($sql[0]['estado'] == 1) {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"departamento\" data-rowid=\"departamento_\" data-tabla=\"departamento\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"1\"><span class=\"label label-primary\">Activo</span></a>';\n } else {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"departamento\" data-rowid=\"departamento_\" data-tabla=\"departamento\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"0\"><span class=\"label label-danger\">Inactivo</span></a>';\n }\n $btnEditar = '<a class=\"editDTContenido pointer btn-xs\" data-id=\"' . $id . '\" data-url=\"modal_editar_departamento\" data-id=\"\"><i class=\"fa fa-edit\"></i> Editar </a>';\n $data = '<td>' . $id . '</td>'\n . '<td>' . utf8_encode($sql[0]['descripcion']) . '</td>'\n . '<td>' . $estado . '</td>'\n . '<td>' . $btnEditar . '</td>';\n break;\n case 'ciudad':\n if ($sql[0]['estado'] == 1) {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"ciudad\" data-rowid=\"ciudad_\" data-tabla=\"ciudad\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"1\"><span class=\"label label-primary\">Activo</span></a>';\n } else {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"ciudad\" data-rowid=\"ciudad_\" data-tabla=\"ciudad\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"0\"><span class=\"label label-danger\">Inactivo</span></a>';\n }\n $btnEditar = '<a class=\"editDTContenido pointer btn-xs\" data-id=\"' . $id . '\" data-url=\"modalEditarCiudad\"><i class=\"fa fa-edit\"></i> Editar </a>';\n $data = '<td>' . utf8_encode($sql[0]['departamento']) . '</td>'\n . '<td>' . utf8_encode($sql[0]['ciudad']) . '</td>'\n . '<td>' . $estado . '</td>'\n . '<td>' . $btnEditar . '</td>';\n break;\n case 'slider':\n if ($sql[0]['estado'] == 1) {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"slider\" data-rowid=\"slider_\" data-tabla=\"web_inicio_slider\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"1\"><span class=\"label label-primary\">Activo</span></a>';\n } else {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"slider\" data-rowid=\"slider_\" data-tabla=\"web_inicio_slider\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"0\"><span class=\"label label-danger\">Inactivo</span></a>';\n }\n $btnEditar = '<a class=\"editDTContenido pointer btn-xs\" data-id=\"' . $id . '\" data-url=\"modalEditarDTSlider\"><i class=\"fa fa-edit\"></i> Editar </a>';\n if (!empty($sql[0]['imagen'])) {\n $img = '<img src=\"' . URL . 'public/images/slider/' . $sql[0]['imagen'] . '\" style=\"width: 160px;\">';\n } else {\n $img = '';\n }\n if ($sql[0]['principal'] == 1) {\n $principal = '<span class=\"badge badge-warning\">Principal</span>';\n } else {\n $principal = '<span class=\"badge\">Normal</span>';\n }\n $data = '<td>' . $sql[0]['orden'] . '</td>'\n . '<td>' . $img . '</td>'\n . '<td>' . utf8_encode($sql[0]['texto_1']) . '</td>'\n . '<td>' . utf8_encode($sql[0]['texto_2']) . '</td>'\n . '<td>' . $principal . '</td>'\n . '<td>' . $estado . '</td>'\n . '<td>' . $btnEditar . '</td>';\n break;\n case 'caracteristicas';\n if ($sql[0]['estado'] == 1) {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"caracteristicas\" data-rowid=\"caracteristicas_\" data-tabla=\"web_inicio_caracteristicas\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"1\"><span class=\"label label-primary\">Activo</span></a>';\n } else {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"caracteristicas\" data-rowid=\"caracteristicas_\" data-tabla=\"web_inicio_caracteristicas\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"0\"><span class=\"label label-danger\">Inactivo</span></a>';\n }\n $icono = '<i class=\"' . utf8_encode($sql[0]['icon']) . '\"></i>';\n $btnEditar = '<a class=\"editDTContenido pointer btn-xs\" data-id=\"' . $id . '\" data-url=\"modalEditarCaracteristicas\"><i class=\"fa fa-edit\"></i> Editar </a>';\n $data = '<td>' . utf8_encode($sql[0]['orden']) . '</td>'\n . '<td>' . utf8_encode($sql[0]['titulo']) . '</td>'\n . '<td>' . $icono . '</td>'\n . '<td>' . $estado . '</td>'\n . '<td>' . $btnEditar . '</td>';\n break;\n case 'frases':\n if ($sql[0]['estado'] == 1) {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"frases\" data-rowid=\"frases_\" data-tabla=\"web_frases\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"1\"><span class=\"label label-primary\">Activo</span></a>';\n } else {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"frases\" data-rowid=\"frases_\" data-tabla=\"web_frases\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"0\"><span class=\"label label-danger\">Inactivo</span></a>';\n }\n $btnEditar = '<a class=\"editDTContenido pointer btn-xs\" data-id=\"' . $id . '\" data-url=\"modalEditarFrases\"><i class=\"fa fa-edit\"></i> Editar </a>';\n $data = '<td>' . utf8_encode($sql[0]['orden']) . '</td>'\n . '<td>' . utf8_encode($sql[0]['frase']) . '</td>'\n . '<td>' . utf8_encode($sql[0]['autor']) . '</td>'\n . '<td>' . $estado . '</td>'\n . '<td>' . $btnEditar . '</td>';\n break;\n case 'servicios':\n if ($sql[0]['estado'] == 1) {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"servicios\" data-rowid=\"servicios_\" data-tabla=\"web_inicio_servicios\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"1\"><span class=\"label label-primary\">Activo</span></a>';\n } else {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"servicios\" data-rowid=\"servicios_\" data-tabla=\"web_inicio_servicios\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"0\"><span class=\"label label-danger\">Inactivo</span></a>';\n }\n $btnEditar = '<a class=\"editDTContenido pointer btn-xs\" data-id=\"' . $id . '\" data-url=\"modalEditarServicios\"><i class=\"fa fa-edit\"></i> Editar </a>';\n $data = '<td>' . utf8_encode($sql[0]['orden']) . '</td>'\n . '<td>' . utf8_encode($sql[0]['servicio']) . '</td>'\n . '<td>' . $estado . '</td>'\n . '<td>' . $btnEditar . '</td>';\n break;\n case 'verContacto':\n if ($sql[0]['leido'] == 1) {\n $estado = '<span class=\"label label-primary\">Leído</span>';\n } else {\n $estado = '<span class=\"label label-danger\">No Leído</span>';\n }\n $btnEditar = '<a class=\"btnVerContacto pointer btn-xs\" data-id=\"' . $id . '\" data-url=\"modalVerContacto\"><i class=\"fa fa-edit\"></i> Ver Datos </a>';\n $data = '<td>' . $id . '</td>'\n . '<td>' . utf8_encode($sql[0]['nombre']) . '</td>'\n . '<td>' . utf8_encode($sql[0]['email']) . '</td>'\n . '<td>' . utf8_encode($sql[0]['asunto']) . '</td>'\n . '<td>' . date('d-m-Y H:i:s', strtotime($sql[0]['fecha'])) . '</td>'\n . '<td>' . $estado . '</td>'\n . '<td>' . $btnEditar . '</td>';\n break;\n case 'blog':\n if ($sql[0]['estado'] == 1) {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"blog\" data-rowid=\"blog_\" data-tabla=\"web_blog\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"1\"><span class=\"label label-primary\">Activo</span></a>';\n } else {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"blog\" data-rowid=\"blog_\" data-tabla=\"web_blog\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"0\"><span class=\"label label-danger\">Inactivo</span></a>';\n }\n $btnEditar = '<a class=\"editDTContenido pointer btn-xs\" data-id=\"' . $id . '\" data-url=\"modalEditarBlogPost\"><i class=\"fa fa-edit\"></i> Editar </a>';\n $imagen = '<img class=\"img-responsive imgBlogTable\" src=\"' . URL . 'public/images/blog/' . $sql[0]['imagen_thumb'] . '\">';\n $data = '<td>' . $sql[0]['id'] . '</td>'\n . '<td>' . utf8_encode($sql[0]['titulo']) . '</td>'\n . '<td>' . $imagen . '</td>'\n . '<td>' . date('d-m-Y', strtotime($sql[0]['fecha_blog'])) . '</td>'\n . '<td>' . $estado . '</td>'\n . '<td>' . $btnEditar . '</td>';\n break;\n case 'usuarios':\n if ($sql[0]['estado'] == 1) {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"usuarios\" data-rowid=\"usuarios_\" data-tabla=\"admin_usuario\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"1\"><span class=\"label label-primary\">Activo</span></a>';\n } else {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"usuarios\" data-rowid=\"usuarios_\" data-tabla=\"admin_usuario\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"0\"><span class=\"label label-danger\">Inactivo</span></a>';\n }\n $btnEditar = '<a class=\"editDTContenido pointer btn-xs\" data-id=\"' . $id . '\" data-url=\"modalEditarDTUsuario\"><i class=\"fa fa-edit\"></i> Editar </a>';\n $data = '<td>' . utf8_encode($sql[0]['nombre']) . '</td>'\n . '<td>' . utf8_encode($sql[0]['email']) . '</td>'\n . '<td>' . utf8_encode($sql[0]['rol']) . '</td>'\n . '<td>' . $estado . '</td>'\n . '<td>' . $btnEditar . '</td>';\n break;\n case 'paciente':\n if ($sql[0]['estado'] == 1) {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"paciente\" data-rowid=\"paciente_\" data-tabla=\"paciente\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"1\"><span class=\"label label-primary\">Activo</span></a>';\n } else {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"paciente\" data-rowid=\"paciente_\" data-tabla=\"paciente\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"0\"><span class=\"label label-danger\">Inactivo</span></a>';\n }\n $btnEditar = '<a class=\"editDTContenido pointer btn-xs\" data-id=\"' . $id . '\" data-url=\"modalEditarDatosPaciente\"><i class=\"fa fa-edit\"></i> Ver Datos / Editar </a>';\n $data = '<td>' . $id . '</td>'\n . '<td>' . utf8_encode($sql[0]['nombre']) . '</td>'\n . '<td>' . utf8_encode($sql[0]['apellido']) . '</td>'\n . '<td>' . utf8_encode($sql[0]['email']) . '</td>'\n . '<td>' . utf8_encode($sql[0]['documento']) . '</td>'\n . '<td>' . utf8_encode($sql[0]['telefono']) . '</td>'\n . '<td>' . utf8_encode($sql[0]['celular']) . '</td>'\n . '<td>' . $estado . '</td>'\n . '<td>' . $btnEditar . '</td>';\n break;\n case 'redes':\n if ($sql[0]['estado'] == 1) {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"redes\" data-rowid=\"redes_\" data-tabla=\"web_redes\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"1\"><span class=\"label label-primary\">Activo</span></a>';\n } else {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"redes\" data-rowid=\"redes_\" data-tabla=\"web_redes\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"0\"><span class=\"label label-danger\">Inactivo</span></a>';\n }\n $btnEditar = '<a class=\"editDTContenido pointer btn-xs\" data-id=\"' . $id . '\" data-url=\"modalEditarRedes\"><i class=\"fa fa-edit\"></i> Editar </a>';\n $data = '<td>' . utf8_encode($sql[0]['descripcion']) . '</td>'\n . '<td>' . utf8_encode($sql[0]['enlace']) . '</td>'\n . '<td>' . $estado . '</td>'\n . '<td>' . $btnEditar . '</td>';\n break;\n case 'metatags':\n $btnEditar = '<a class=\"editDTContenido pointer btn-xs\" data-id=\"' . $id . '\" data-url=\"modalEditarMetaTag\"><i class=\"fa fa-edit\"></i> Editar </a>';\n $data = '<td>' . $id . '</td>'\n . '<td>' . utf8_encode($sql[0]['pagina']) . '</td>'\n . '<td>' . $btnEditar . '</td>';\n break;\n }\n return $data;\n }", "function listarTabla(){\n\t\t$this->procedimiento='wf.ft_tabla_sel';\n\t\t$this->transaccion='WF_tabla_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_tabla','int4');\n\t\t$this->captura('id_tipo_proceso','int4');\n\t\t$this->captura('vista_id_tabla_maestro','int4');\n\t\t$this->captura('bd_scripts_extras','text');\n\t\t$this->captura('vista_campo_maestro','varchar');\n\t\t$this->captura('vista_scripts_extras','text');\n\t\t$this->captura('bd_descripcion','text');\n\t\t$this->captura('vista_tipo','varchar');\n\t\t$this->captura('menu_icono','varchar');\n\t\t$this->captura('menu_nombre','varchar');\n\t\t$this->captura('vista_campo_ordenacion','varchar');\n\t\t$this->captura('vista_posicion','varchar');\n\t\t$this->captura('estado_reg','varchar');\n\t\t$this->captura('menu_codigo','varchar');\n\t\t$this->captura('bd_nombre_tabla','varchar');\n\t\t$this->captura('bd_codigo_tabla','varchar');\n\t\t$this->captura('vista_dir_ordenacion','varchar');\n\t\t$this->captura('fecha_reg','timestamp');\n\t\t$this->captura('id_usuario_reg','int4');\n\t\t$this->captura('id_usuario_mod','int4');\n\t\t$this->captura('fecha_mod','timestamp');\n\t\t$this->captura('usr_reg','varchar');\n\t\t$this->captura('usr_mod','varchar');\n\t\t$this->captura('nombre_tabla_maestro','varchar');\n\t\t$this->captura('vista_estados_new','text');\n\t\t$this->captura('vista_estados_delete','text');\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}", "public function getIncapaEmp($id, $tabla)\n {\n $tipo=0;\n if ( $tabla=='n_incapacidades' )\n $tipo=0;\n else \n $tipo=1;\n\n $result=$this->adapter->query(\"insert into n_nomina_e_i (idNom, idEmp, idInc, dias, diasAp, diasDp, reportada, tipo) \n( select a.id, b.idEmp, c.id as idInc, ( DATEDIFF( c.fechaf, c.fechai ) +1 ) as diasI, # Dias totales de incapacidad\n\n # CUANDO LA INCAPACIDAD ESTA POR DEBAJO DEL PERIODO INICIAL DE NOMINA ----------------------------------\n( case when d.incAtrasada = 1 then \ncase when ( ( c.fechai < a.fechaI) and ( c.fechaf < a.fechaI ) )\n then ( DATEDIFF( c.fechaf , c.fechai ) + 1 ) else \n case when ( ( c.fechai < a.fechaI) and ( c.fechaf >= a.fechaI ) ) \n then ( DATEDIFF( a.fechaI , c.fechai ) ) else 0 end \n end \n else 0 end ) \n as diasAp, # Dias no reportados antes de periodo\n \n # CUANDO LA INCAPACIDAD TIENE PERIODO SUPERIOR AL PERIODO INICIAL DE NOMINA ----------------------------------\ncase when ( ( c.fechai >= a.fechaI) and ( c.fechaf <= a.fechaF) ) # Incapacidad dentro del periodo\n then ( DATEDIFF( c.fechaf , c.fechai )+1 )\n else \n case when ( ( c.fechai <= a.fechaI) and ( c.fechaf >= a.fechaI) ) # Incapacidad antes y despues del periodo de nomina\n then \n case when ( ( DATEDIFF( c.fechaf, a.fechaI )+1 ) > 15 ) then \n 15 \n else \n ( DATEDIFF( c.fechaf, a.fechaI )+1 ) # pasa de periodo a periodo y se de tomar la fecha inicio de nomina menos la fecha fin dincapacidad\n end \n else \n case when ( ( c.fechai >= a.fechaI) and ( c.fechaf >= a.fechaF) ) then # Inicia en el periodo y pasa al otro periodo de nomina\n ( DATEDIFF( a.fechaF, c.fechai )+1 )\n else 0 end \n end \n end as diasDp,\n c.reportada, # Dias no reportados despues del periodo \n \".$tipo.\" \nfrom n_nomina a \ninner join n_nomina_e b on b.idNom = a.id\ninner join \".$tabla.\" c on c.reportada in ('0','1') and c.idEmp = b.idEmp # Se cargan todas las incapacidades antes de fin del perioso en cuestio\nleft join c_general d on d.id = 1 # Buscar datos de la confguracion general para incapaciades \nwhere a.id = \".$id.\" ) \",Adapter::QUERY_MODE_EXECUTE);\n//and ( (c.fechai <= a.fechaF) and (c.fechaf >= a.fechaI ) ) ## OJOA ANALIZAR ESTO DE LA MEJR FORMA \n }", "private function rowDataTable($seccion, $tabla, $id) {\n $data = '';\n switch ($tabla) {\n case 'usuario':\n $sql = $this->db->select(\"SELECT wa.nombre, wa.email, wr.descripcion as rol, wa.estado\n FROM usuario wa\n LEFT JOIN usuario_rol wr on wr.id = wa.id_usuario_rol WHERE wa.id = $id;\");\n break;\n case 'meta_tags':\n $sql = $this->db->select(\"SELECT\n m.es_texto,\n en_texto\n FROM\n meta_tags mt\n LEFT JOIN menu m ON m.id = mt.id_menu WHERE mt.id = $id;\");\n break;\n default :\n $sql = $this->db->select(\"SELECT * FROM $tabla WHERE id = $id;\");\n break;\n }\n\n switch ($seccion) {\n case 'redes':\n if ($sql[0]['estado'] == 1) {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"redes\" data-rowid=\"redes_\" data-tabla=\"redes\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"1\"><span class=\"label label-primary\">Activo</span></a>';\n } else {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"redes\" data-rowid=\"redes_\" data-tabla=\"redes\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"0\"><span class=\"label label-danger\">Inactivo</span></a>';\n }\n $btnEditar = '<a class=\"editDTContenido pointer btn-xs\" data-id=\"' . $id . '\" data-url=\"modalEditarRedes\"><i class=\"fa fa-edit\"></i> Editar </a>';\n $btnBorrar = '<a class=\"deletDTContenido pointer btn-xs txt-red\" data-rowid=\"redes_\" data-id=\"' . $id . '\" data-tabla=\"redes\"><i class=\"fa fa-trash-o\"></i> Eliminar </a>';\n $data = '<td>' . utf8_encode($sql[0]['orden']) . '</td>'\n . '<td>' . utf8_encode($sql[0]['descripcion']) . '</td>'\n . '<td>' . utf8_encode($sql[0]['url']) . '</td>'\n . '<td>' . $estado . '</td>'\n . '<td>' . $btnEditar . ' ' . $btnBorrar . '</td>';\n break;\n case 'usuarios':\n if ($sql[0]['estado'] == 1) {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"usuarios\" data-rowid=\"usuarios_\" data-tabla=\"usuario\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"1\"><span class=\"label label-primary\">Activo</span></a>';\n } else {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"usuarios\" data-rowid=\"usuarios_\" data-tabla=\"usuario\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"0\"><span class=\"label label-danger\">Inactivo</span></a>';\n }\n $btnEditar = '<a class=\"editDTContenido pointer btn-xs\" data-id=\"' . $id . '\" data-url=\"modalEditarDTUsuario\"><i class=\"fa fa-edit\"></i> Editar </a>';\n $btnBorrar = '<a class=\"deletDTContenido pointer btn-xs txt-red\" data-rowid=\"usuarios_\" data-id=\"' . $id . '\" data-tabla=\"usuario\"><i class=\"fa fa-trash-o\"></i> Eliminar </a>';\n $data = '<td>' . utf8_encode($sql[0]['nombre']) . '</td>'\n . '<td>' . utf8_encode($sql[0]['email']) . '</td>'\n . '<td>' . utf8_encode($sql[0]['rol']) . '</td>'\n . '<td>' . $estado . '</td>'\n . '<td>' . $btnEditar . ' ' . $btnBorrar . '</td>';\n break;\n case 'blog':\n if ($sql[0]['estado'] == 1) {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"blog\" data-rowid=\"blog_\" data-tabla=\"blog\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"1\"><span class=\"label label-primary\">Activo</span></a>';\n } else {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"blog\" data-rowid=\"blog_\" data-tabla=\"blog\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"0\"><span class=\"label label-danger\">Inactivo</span></a>';\n }\n $btnEditar = '<a class=\"editDTContenido pointer btn-xs\" data-id=\"' . $id . '\" data-url=\"modalEditarBlogPost\" data-pagina=\"blog\"><i class=\"fa fa-edit\"></i> Editar </a>';\n $btnBorrar = '<a class=\"deletDTContenido pointer btn-xs txt-red\" data-rowid=\"redes_\" data-id=\"' . $id . '\" data-tabla=\"redes\"><i class=\"fa fa-trash-o\"></i> Eliminar </a>';\n if (empty($sql[0]['youtube_id'])) {\n $imagen = '<img class=\"img-responsive imgBlogTable\" src=\"' . URL . 'public/images/blog/thumb/' . $sql[0]['imagen_thumb'] . '\">';\n } else {\n $imagen = '<iframe class=\"scale-with-grid\" src=\"http://www.youtube.com/embed/' . $sql[0]['youtube_id'] . '?wmode=opaque\" allowfullscreen></iframe>';\n }\n $data = '<td>' . $sql[0]['id'] . '</td>'\n . '<td>' . utf8_encode($sql[0]['es_titulo']) . '</td>'\n . '<td>' . utf8_encode($sql[0]['en_titulo']) . '</td>'\n . '<td>' . $imagen . '</td>'\n . '<td>' . date('d-m-Y', strtotime($sql[0]['fecha_blog'])) . '</td>'\n . '<td>' . $estado . '</td>'\n . '<td>' . $btnEditar . ' ' . $btnBorrar . '</td>';\n break;\n case 'slider':\n if ($sql[0]['estado'] == 1) {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"slider\" data-rowid=\"slider_\" data-tabla=\"slider\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"1\"><span class=\"label label-primary\">Activo</span></a>';\n } else {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"slider\" data-rowid=\"slider_\" data-tabla=\"slider\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"0\"><span class=\"label label-danger\">Inactivo</span></a>';\n }\n $btnEditar = '<a class=\"editDTContenido pointer btn-xs\" data-id=\"' . $id . '\" data-url=\"modalEditarDTSlider\" data-pagina=\"slider\"><i class=\"fa fa-edit\"></i> Editar </a>';\n $btnBorrar = '<a class=\"deletDTContenido pointer btn-xs txt-red\" data-rowid=\"slider_\" data-id=\"' . $id . '\" data-tabla=\"slider\"><i class=\"fa fa-trash-o\"></i> Eliminar </a>';\n if (!empty($sql[0]['imagen'])) {\n $img = '<img src=\"' . URL . 'public/images/slider/' . $sql[0]['imagen'] . '\" style=\"width: 160px;\">';\n } else {\n $img = '-';\n }\n $data = '<td>' . utf8_encode($sql[0]['orden']) . '</td>'\n . '<td>' . $img . '</td>'\n . '<td>' . utf8_encode($sql[0]['es_titulo']) . '</td>'\n . '<td>' . utf8_encode($sql[0]['en_titulo']) . '</td>'\n . '<td>' . utf8_encode($sql[0]['es_titulo_principal']) . '</td>'\n . '<td>' . utf8_encode($sql[0]['en_titulo_principal']) . '</td>'\n . '<td>' . $estado . '</td>'\n . '<td>' . $btnEditar . ' ' . $btnBorrar . '</td>';\n break;\n case 'certificaciones':\n if ($sql[0]['estado'] == 1) {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"certificaciones\" data-rowid=\"certificaciones_\" data-tabla=\"certificaciones\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"1\"><span class=\"label label-primary\">Activo</span></a>';\n } else {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"certificaciones\" data-rowid=\"certificaciones_\" data-tabla=\"certificaciones\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"0\"><span class=\"label label-danger\">Inactivo</span></a>';\n }\n $btnEditar = '<a class=\"editDTContenido pointer btn-xs\" data-id=\"' . $id . '\" data-url=\"modalEditarDTCertificaciones\" data-pagina=\"certificaciones\"><i class=\"fa fa-edit\"></i> Editar </a>';\n $btnBorrar = '<a class=\"deletDTContenido pointer btn-xs txt-red\" data-rowid=\"certificaciones_\" data-id=\"' . $id . '\" data-tabla=\"certificaciones\"><i class=\"fa fa-trash-o\"></i> Eliminar </a>';\n if (!empty($sql[0]['imagen_certificacion'])) {\n $img = '<img src=\"' . URL . 'public/images/certificaciones/' . $sql[0]['imagen_certificacion'] . '\" style=\"width: 160px;\">';\n } else {\n $img = '-';\n }\n $data = '<td>' . utf8_encode($sql[0]['orden']) . '</td>'\n . '<td>' . $img . '</td>'\n . '<td>' . utf8_encode($sql[0]['es_nombre']) . '</td>'\n . '<td>' . utf8_encode($sql[0]['en_nombre']) . '</td>'\n . '<td>' . $estado . '</td>'\n . '<td>' . $btnEditar . ' ' . $btnBorrar . '</td>';\n break;\n case 'fraseNosotros':\n if ($sql[0]['estado'] == 1) {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"fraseNosotros\" data-rowid=\"fraseNosotros_\" data-tabla=\"aboutus_seccion2\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"1\"><span class=\"label label-primary\">Activo</span></a>';\n } else {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"fraseNosotros\" data-rowid=\"fraseNosotros_\" data-tabla=\"aboutus_seccion2\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"0\"><span class=\"label label-danger\">Inactivo</span></a>';\n }\n $btnEditar = '<a class=\"editDTContenido pointer btn-xs\" data-id=\"' . $id . '\" data-url=\"modalEditarDTFraseNosotros\"><i class=\"fa fa-edit\"></i> Editar </a>';\n $btnBorrar = '<a class=\"deletDTContenido pointer btn-xs txt-red\" data-rowid=\"fraseNosotros_\" data-id=\"' . $id . '\" data-tabla=\"aboutus_seccion2\"><i class=\"fa fa-trash-o\"></i> Eliminar </a>';\n $data = '<td>' . utf8_encode($sql[0]['orden']) . '</td>'\n . '<td>' . utf8_encode($sql[0]['es_frase']) . '</td>'\n . '<td>' . utf8_encode($sql[0]['en_frase']) . '</td>'\n . '<td>' . $estado . '</td>'\n . '<td>' . $btnEditar . ' ' . $btnBorrar . '</td>';\n break;\n case 'fraseRetail':\n if ($sql[0]['estado'] == 1) {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"fraseRetail\" data-rowid=\"fraseRetail_\" data-tabla=\"privatelabel_seccion2\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"1\"><span class=\"label label-primary\">Activo</span></a>';\n } else {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"fraseRetail\" data-rowid=\"fraseRetail_\" data-tabla=\"privatelabel_seccion2\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"0\"><span class=\"label label-danger\">Inactivo</span></a>';\n }\n $btnEditar = '<a class=\"editDTContenido pointer btn-xs\" data-id=\"' . $id . '\" data-url=\"modalEditarDTFraseRetail\"><i class=\"fa fa-edit\"></i> Editar </a>';\n $btnBorrar = '<a class=\"deletDTContenido pointer btn-xs txt-red\" data-rowid=\"fraseRetail_\" data-id=\"' . $id . '\" data-tabla=\"privatelabel_seccion2\"><i class=\"fa fa-trash-o\"></i> Eliminar </a>';\n $data = '<td>' . utf8_encode($sql[0]['orden']) . '</td>'\n . '<td>' . utf8_encode($sql[0]['es_frase']) . '</td>'\n . '<td>' . utf8_encode($sql[0]['en_frase']) . '</td>'\n . '<td>' . $estado . '</td>'\n . '<td>' . $btnEditar . ' ' . $btnBorrar . '</td>';\n break;\n case 'nosotrosSeccion3':\n if ($sql[0]['estado'] == 1) {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"nosotrosSeccion3\" data-rowid=\"nosotrosSeccion3_\" data-tabla=\"aboutus_seccion3\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"1\"><span class=\"label label-primary\">Activo</span></a>';\n } else {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"nosotrosSeccion3\" data-rowid=\"nosotrosSeccion3_\" data-tabla=\"aboutus_seccion3\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"0\"><span class=\"label label-danger\">Inactivo</span></a>';\n }\n $btnEditar = '<a class=\"editDTContenido pointer btn-xs\" data-id=\"' . $id . '\" data-url=\"modalEditarDTNosotrosSeccion3\"><i class=\"fa fa-edit\"></i> Editar </a>';\n $btnBorrar = '<a class=\"deletDTContenido pointer btn-xs txt-red\" data-rowid=\"nosotrosSeccion3_\" data-id=\"' . $id . '\" data-tabla=\"aboutus_seccion3\"><i class=\"fa fa-trash-o\"></i> Eliminar </a>';\n $data = '<td>' . utf8_encode($sql[0]['orden']) . '</td>'\n . '<td>' . utf8_encode($sql[0]['es_titulo']) . '</td>'\n . '<td>' . utf8_encode($sql[0]['en_titulo']) . '</td>'\n . '<td>' . $estado . '</td>'\n . '<td>' . $btnEditar . ' ' . $btnBorrar . '</td>';\n break;\n case 'itemProductos':\n if ($sql[0]['estado'] == 1) {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"itemProductos\" data-rowid=\"itemProductos_\" data-tabla=\"productos_items\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"1\"><span class=\"label label-primary\">Activo</span></a>';\n } else {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"itemProductos\" data-rowid=\"itemProductos_\" data-tabla=\"productos_items\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"0\"><span class=\"label label-danger\">Inactivo</span></a>';\n }\n $btnEditar = '<a class=\"editDTContenido pointer btn-xs\" data-id=\"' . $id . '\" data-url=\"modalEditarDTItemProducto\" data-pagina=\"itemProductos\"><i class=\"fa fa-edit\"></i> Editar </a>';\n $btnBorrar = '<a class=\"deletDTContenido pointer btn-xs txt-red\" data-rowid=\"itemProductos_\" data-id=\"' . $id . '\" data-tabla=\"productos_items\"><i class=\"fa fa-trash-o\"></i> Eliminar </a>';\n if (!empty($sql[0]['imagen'])) {\n $img = '<img src=\"' . URL . 'public/images/productos/items/' . $sql[0]['imagen'] . '\" style=\"width: 160px;\">';\n } else {\n $img = '-';\n }\n $data = '<td>' . utf8_encode($sql[0]['orden']) . '</td>'\n . '<td>' . $img . '</td>'\n . '<td>' . utf8_encode($sql[0]['es_nombre']) . '</td>'\n . '<td>' . utf8_encode($sql[0]['en_nombre']) . '</td>'\n . '<td>' . $estado . '</td>'\n . '<td>' . $btnEditar . ' ' . $btnBorrar . '</td>';\n break;\n case 'productos':\n if ($sql[0]['estado'] == 1) {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"productos\" data-rowid=\"productos_\" data-tabla=\"productos\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"1\"><span class=\"label label-primary\">Activo</span></a>';\n } else {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"productos\" data-rowid=\"productos_\" data-tabla=\"productos\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"0\"><span class=\"label label-danger\">Inactivo</span></a>';\n }\n $btnListado = '<a class=\"mostrarListadoProductos pointer btn-xs\" data-id=\"' . $id . '\"><i class=\"fa fa-list\"></i> Listado </a>';\n $btnEditar = '<a class=\"editDTContenido pointer btn-xs\" data-id=\"' . $id . '\" data-url=\"modalEditarDTProducto\" data-pagina=\"productos\"><i class=\"fa fa-edit\"></i> Editar </a>';\n //$btnBorrar = '<a class=\"deletDTContenido pointer btn-xs txt-red\" data-rowid=\"productos_\" data-id=\"' . $id . '\" data-tabla=\"productos\"><i class=\"fa fa-trash-o\"></i> Eliminar </a>';\n if (!empty($sql[0]['imagen'])) {\n $img = '<img src=\"' . URL . 'public/images/productos/' . $sql[0]['imagen'] . '\" style=\"width: 160px;\">';\n } else {\n $img = '-';\n }\n $data = '<td>' . utf8_encode($sql[0]['orden']) . '</td>'\n . '<td>' . $img . '</td>'\n . '<td>' . utf8_encode($sql[0]['es_producto']) . '</td>'\n . '<td>' . utf8_encode($sql[0]['en_producto']) . '</td>'\n . '<td>' . $estado . '</td>'\n . '<td>' . $btnListado . ' ' . $btnEditar . '</td>';\n break;\n case 'servicios':\n if ($sql[0]['estado'] == 1) {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"servicios\" data-rowid=\"servicios_\" data-tabla=\"servicios\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"1\"><span class=\"label label-primary\">Activo</span></a>';\n } else {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"servicios\" data-rowid=\"servicios_\" data-tabla=\"servicios\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"0\"><span class=\"label label-danger\">Inactivo</span></a>';\n }\n $btnEditar = '<a class=\"editDTContenido pointer btn-xs\" data-id=\"' . $id . '\" data-url=\"modalEditarDTServicios\" data-pagina=\"servicios\"><i class=\"fa fa-edit\"></i> Editar </a>';\n $btnBorrar = '<a class=\"deletDTContenido pointer btn-xs txt-red\" data-rowid=\"servicios_\" data-id=\"' . $id . '\" data-tabla=\"servicios\"><i class=\"fa fa-trash-o\"></i> Eliminar </a>';\n $data = '<td>' . utf8_encode($sql[0]['orden']) . '</td>'\n . '<td>' . utf8_encode($sql[0]['es_servicio']) . '</td>'\n . '<td>' . utf8_encode($sql[0]['en_servicio']) . '</td>'\n . '<td>' . $estado . '</td>'\n . '<td>' . $btnEditar . ' ' . $btnBorrar . '</td>';\n break;\n case 'verContacto':\n if ($sql[0]['leido'] == 1) {\n $estado = '<span class=\"label label-primary\">Leído</span>';\n } else {\n $estado = '<span class=\"label label-danger\">No Leído</span>';\n }\n $btnEditar = '<a class=\"btnVerContacto pointer btn-xs\" data-id=\"' . $id . '\" data-url=\"modalVerContacto\"><i class=\"fa fa-edit\"></i> Ver Datos </a>';\n $data = '<td class=\"sorting_1\">' . $id . '</td>'\n . '<td>' . utf8_encode($sql[0]['nombre']) . '</td>'\n . '<td>' . utf8_encode($sql[0]['email']) . '</td>'\n . '<td>' . utf8_encode($sql[0]['asunto']) . '</td>'\n . '<td>' . date('d-m-Y H:i:s', strtotime($sql[0]['fecha'])) . '</td>'\n . '<td>' . $estado . '</td>'\n . '<td>' . $btnEditar . '</td>';\n break;\n case 'meta_tags':\n $btnEditar = '<a class=\"editDTContenido pointer btn-xs\" data-id=\"' . $id . '\" data-url=\"modalEditarMetaTag\"><i class=\"fa fa-edit\"></i> Editar </a>';\n $data = '<td>' . $id . '</td>'\n . '<td>' . utf8_encode($sql[0]['es_texto']) . '</td>'\n . '<td>' . utf8_encode($sql[0]['en_texto']) . '</td>'\n . '<td>' . $btnEditar . '</td>';\n break;\n case 'menu':\n if ($sql[0]['estado'] == 1) {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"menu\" data-rowid=\"menu_\" data-tabla=\"menu\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"1\"><span class=\"label label-primary\">Activo</span></a>';\n } else {\n $estado = '<a class=\"pointer btnCambiarEstado\" data-seccion=\"menu\" data-rowid=\"menu_\" data-tabla=\"menu\" data-campo=\"estado\" data-id=\"' . $id . '\" data-estado=\"0\"><span class=\"label label-danger\">Inactivo</span></a>';\n }\n $btnEditar = '<a class=\"editDTContenido pointer btn-xs\" data-id=\"' . $id . '\" data-url=\"modalEditarMenu\"><i class=\"fa fa-edit\"></i> Editar </a>';\n $data = '<td>' . utf8_encode($sql[0]['orden']) . '</td>'\n . '<td>' . utf8_encode($sql[0]['es_texto']) . '</td>'\n . '<td>' . utf8_encode($sql[0]['en_texto']) . '</td>'\n . '<td>' . $estado . '</td>'\n . '<td>' . $btnEditar . '</td>';\n break;\n }\n return $data;\n }", "function getNombreTablaTrazadora($nombre) {\r\n switch ($nombre) {\r\n case 'INMU':\r\n $tabla = \"inmunizacion.prestaciones_inmu\";\r\n break;\r\n case 'NINO':\r\n case 'NINO_PESO':\r\n $tabla = \"trazadoras.nino_new\";\r\n break;\r\n case 'ADOLESCENTE':\r\n $tabla = \"trazadoras.adolecentes\";\r\n break;\r\n case 'PARTO':\r\n $tabla = \"trazadoras.partos\";\r\n break;\r\n case 'EMB':\r\n $tabla = \"trazadoras.embarazadas\";\r\n break;\r\n case 'ADULTO':\r\n $tabla = \"trazadoras.adultos\";\r\n break;\r\n case 'SEGUIMIENTO':\r\n $tabla = \"trazadoras.seguimiento_remediar\";\r\n break;\r\n case 'CLASIFICACION':\r\n $tabla = \"trazadoras.clasificacion_remediar2\";\r\n break;\r\n case 'TAL':\r\n $tabla = \"trazadoras.tal\";\r\n break;\r\n }\r\n return $tabla;\r\n}", "function datos_tema($id_tema) {\n\n\t\t$query = \"SELECT * \n\t\tFROM temas \n\t\tWHERE id_tema='$id_tema'\";\n\n\t\t$connection = mysql_connect($this->HOST, $this->USERNAME, $this->PASSWORD);\n\n\t\t$SelectedDB = mysql_select_db($this->DBNAME);\n\t\t$result = mysql_query($query); \n\t\t\n\t\t$numrows = mysql_num_rows($result);\n\t\t$row=mysql_fetch_array($result);\n\t\tmysql_close($connection);\t\n\t\t// COMPROBAMOS QUE HAYA RESULTADOS\n\t\t// SI EL NUMERO DE RESULTADOS ES 0 SIGNIFICA QUE NO HAY REGISTROS CON ESOS DATOS\n\t\tif ($numrows == 0) {\n\t\t\treturn 0;\n\t\t}\n\t\telse {\n\t\t\treturn $row;\n\t\t}\n\t}", "public function actoresSerie(){\n return $actores=$this->mysqli->query(\"SELECT serie_name, name FROM cast\");\n }", "public function tabla()\n {\n\n \treturn Datatables::eloquent(Encargos::query())->make(true);\n }", "public function select($titulos){\n $id=$titulos->getId();\n\n try {\n $sql= \"SELECT `id`, `descripcion`, `universidad_id`, `docente_id`\"\n .\"FROM `titulos`\"\n .\"WHERE `id`='$id'\";\n $data = $this->ejecutarConsulta($sql);\n for ($i=0; $i < count($data) ; $i++) {\n $titulos->setId($data[$i]['id']);\n $titulos->setDescripcion($data[$i]['descripcion']);\n $titulos->setUniversidad_id($data[$i]['universidad_id']);\n $docente = new Docente();\n $docente->setId($data[$i]['docente_id']);\n $titulos->setDocente_id($docente);\n\n }\n return $titulos; } catch (SQLException $e) {\n throw new Exception('Primary key is null');\n return null;\n }\n }", "public function buscar() {\n $buscarUsuario = new SqlQuery(); //instancio la clase\n (string) $tabla = get_class($this); //uso el nombre de la clase que debe coincidir con la BD \n try {\n $this->refControladorPersistencia->get_conexion()->beginTransaction(); //comienza la transacción\n $statement = $this->refControladorPersistencia->ejecutarSentencia(\n $buscarUsuario->buscar($tabla)); //senencia armada desde la clase SqlQuery sirve para comenzar la busqueda\n $arrayUsuario = $statement->fetchAll(PDO::FETCH_ASSOC); //retorna un array asociativo para no duplicar datos\n $this->refControladorPersistencia->get_conexion()->commit(); //si todo salió bien hace el commit\n return $arrayUsuario; //regreso el array para poder mostrar los datos en la vista... con Ajax... y dataTable de JavaScript\n } catch (PDOException $excepcionPDO) {\n echo \"<br>Error PDO: \" . $excepcionPDO->getTraceAsString() . '<br>';\n $this->refControladorPersistencia->get_conexion()->rollBack(); //si salio mal hace un rollback\n } catch (Exception $exc) {\n echo $exc->getTraceAsString();\n $this->refControladorPersistencia->get_conexion()->rollBack(); //si salio mal hace un rollback\n }\n }", "function getInstancia2($tabla,$campo=NULL){\r\n\t\t//DB_DataObject::debugLevel(5);\r\n\t\t//Crea una nueva instancia de $tabla a partir de DataObject\r\n\t\t$objDBO = DB_DataObject::Factory($tabla);\r\n\t\tif(is_array($campo)){\r\n\t\t\tforeach($campo as $key => $value){\r\n\t\t\t\t$objDBO->$key = $value;\r\n\t\t\t}\r\n\t\t}\r\n\t\t$contador = 0;\r\n\t\t$objDBO->find();\r\n\t\t$columna = $objDBO->table();\r\n\t\twhile ($objDBO->fetch()) {\r\n\t\t\tforeach ($columna as $key => $value) {\r\n\t\t\t\t$ret[$contador]->$key = cambiaParaEnvio($objDBO->$key);\r\n\t\t\t}\r\n\t\t\t$contador++;\r\n\t\t}\r\n\t\t\r\n\t\t//Libera el objeto DBO\r\n\t\t$objDBO->free();\r\n\r\n\t\treturn $ret;\t\r\n\t}", "function mostrarPedidoSudo($fecha){\n //Construimos la consulta\n $sql=\"SELECT * from pedido WHERE fecha='\".$fecha.\"'\";\n //Realizamos la consulta\n $resultado=$this->realizarConsulta($sql);\n if($resultado!=null){\n //Montamos la tabla de resultado\n $tabla=[];\n while($fila=$resultado->fetch_assoc()){\n $tabla[]=$fila;\n }\n return $tabla;\n }else{\n return null;\n }\n }", "function consultar(){\n\t\t\n\t\t$this->mysqli = conectarBD();\n\t\t\n\t\t$sql = \"SELECT Linea_Factura.Id_Linea_Factura,Linea_Factura.Id_Factura,Servicio.Nombre,Linea_Factura.Importe,Linea_Factura.Descripcion FROM Linea_Factura INNER JOIN Servicio WHERE Linea_Factura.Id_Factura='\".$this->factura.\"' AND Linea_Factura.Id_Servicio=Servicio.Id_Servicio AND Linea_Factura.Borrado='0';\";\n\t\t$resultado = $this->mysqli->query($sql);\t\n\t\tif ($resultado->num_rows > 0){\n\t\t\twhile($row = $resultado->fetch_array()){\n\t\t\t\t$array[] = $row;\n\t\t\t}\n\t\t\treturn $array;\n\t\t}\n\t}", "public function read_alltiendas(){\r\n $sql=\"select p.id_proveedor, p.nombre_establecimiento, p.direccion_fisica, p.direccion_web,\r\n p.descripcion_tienda, p.id_usuario\r\n from proveedor p\r\n INNER JOIN usuario u on p.id_usuario = u.id_usuario\";\r\n $resul=mysqli_query($this->con(),$sql);\r\n while($row=mysqli_fetch_assoc($resul)){\r\n $this->proveedores[]=$row;\r\n }\r\n return $this->proveedores;\r\n\r\n }", "public function read(){\n \n //select all data\n $query = \"SELECT\n id, id, num_compte, cle_rib, duree_epargne, frais, solde, created\n FROM\n \" . $this->table_name . \"\n ORDER BY\n created\";\n \n $stmt = $this->conn->prepare( $query );\n $stmt->execute();\n \n return $stmt;\n }", "function get_produto_solicitacao_baixa_estoque($di)\n {\n $this->db->select('baixa.di,baixa.quantidade, u.nome_usuario,u.id as id_usuario,p.id as produto_id,p.nome as produto');\n $this->db->join('usuario u ','u.id = baixa.usuario_id');\n $this->db->join('produto p ','p.id = baixa.produto_id');\n return $this->db->get_where('produto_solicitacao_baixa_estoque baixa',array('di'=>$di))->row_array();\n }", "function insertarTabla(){\n\t\t$this->procedimiento='wf.ft_tabla_ime';\n\t\t$this->transaccion='WF_tabla_INS';\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_proceso','id_tipo_proceso','int4');\n\t\t$this->setParametro('vista_id_tabla_maestro','vista_id_tabla_maestro','int4');\n\t\t$this->setParametro('bd_scripts_extras','bd_scripts_extras','text');\n\t\t$this->setParametro('vista_campo_maestro','vista_campo_maestro','varchar');\n\t\t$this->setParametro('vista_scripts_extras','vista_scripts_extras','text');\n\t\t$this->setParametro('bd_descripcion','bd_descripcion','text');\n\t\t$this->setParametro('vista_tipo','vista_tipo','varchar');\n\t\t$this->setParametro('menu_icono','menu_icono','varchar');\n\t\t$this->setParametro('menu_nombre','menu_nombre','varchar');\n\t\t$this->setParametro('vista_campo_ordenacion','vista_campo_ordenacion','varchar');\n\t\t$this->setParametro('vista_posicion','vista_posicion','varchar');\n\t\t$this->setParametro('estado_reg','estado_reg','varchar');\n\t\t$this->setParametro('menu_codigo','menu_codigo','varchar');\n\t\t$this->setParametro('bd_nombre_tabla','bd_nombre_tabla','varchar');\n\t\t$this->setParametro('bd_codigo_tabla','bd_codigo_tabla','varchar');\n\t\t$this->setParametro('vista_dir_ordenacion','vista_dir_ordenacion','varchar');\n\t\t$this->setParametro('vista_estados_new','vista_estados_new','varchar');\n\t\t$this->setParametro('vista_estados_delete','vista_estados_delete','varchar');\t\t\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}", "public function traer_empresas()\n {\n $empresas=array();\n $query=$this->db->get('empresas');\n if($query->num_rows()>0)\n {\n foreach ($query->result() as $row)\n {\n $empresas[$row->id]['id']=$row->id;\n $empresas[$row->id]['nit']=$row->nit;\n $empresas[$row->id]['razon_social']=$row->razon_social;\n $empresas[$row->id]['telefono']=$row->telefono;\n $empresas[$row->id]['extension']=$row->extension;\n $empresas[$row->id]['contacto']=$row->contacto;\n $empresas[$row->id]['direccion']=$row->direccion;\n $empresas[$row->id]['rol']=$row->rol;\n } \n }\n \n return $empresas;\n }", "public function getStoriaAssegnazioniTrasportatori()\n {\n $con = DBUtils::getConnection();\n $sql =\"SELECT id FROM history_trasportatori WHERE id_preventivo=$this->id_preventivo\";\n //echo \"\\nSQL1: \".$sql.\"\\n\";\n $res = mysql_query($sql);\n $found = 0;\n $result = array();\n\n while ($row=mysql_fetch_object($res))\n {\n //crea l'oggetto Arredo\n\n $obj = new AssegnazioneTrasportatore();\n $obj->load($row->id);\n\n $result[] = $obj;\n }\n\n DBUtils::closeConnection($con);\n return $result;\n\n }", "function selectConciertosEspera(){\n $c = conectar();\n $select = \"select CONCIERTO.FECHA as FECHA, CONCIERTO.HORA as HORA, LOCALES.UBICACION as UBICACION, GENERO.NOMBRE as GENERO, USUARIOS.NOMBRE as NOMBRE, CIUDAD.NOMBRE as CIUDAD, CONCIERTO.ID_CONCIERTO as ID from CONCIERTO \n inner join LOCALES on CONCIERTO.ID_LOCAL = LOCALES.ID_LOCAL\n inner join USUARIOS on LOCALES.ID_USUARIO = USUARIOS.ID_USUARIO\n inner join CIUDAD on USUARIOS.ID_CIUDAD = CIUDAD.ID_CIUDAD\n inner join GENERO on CONCIERTO.ID_GENERO = GENERO.ID_GENERO where CONCIERTO.ESTADO=0 order by CONCIERTO.FECHA,CONCIERTO.HORA\";\n $resultado = mysqli_query($c, $select);\n desconectar($c);\n return $resultado;\n\n}", "function RellenaDatos()\n{//buscamos todos los atributos de la tupla\n $sql = \"SELECT *\n\t\t\tFROM PROF_ESPACIO\n\t\t\tWHERE (\n\t\t\t\t(DNI = '$this->DNI' AND CODESPACIO = '\".$this->CODESPACIO.\"') \n\t\t\t)\";\n\n\t//si no se ejecuta con éxito devuelve mensaje de error\n\t\t\tif (!$resultado = $this->mysqli->query($sql))\n\t{\n\t\t\treturn 'Error de gestor de base de datos';//devuelve el mensaje\n\t} //si no se ejecuta con éxito \n\telse\n\t{\n\t\t$tupla = $resultado->fetch_array();//guardamos el resultado de la busqueda en la variable tupla\n\t}\n\treturn $tupla;//devolvemos la información de ese centro\n}", "static public function mdlMostrarTemporal($tabla, $valor){\n\n $stmt = Conexion::conectar()->prepare(\"SELECT * FROM $tabla WHERE codigo = $valor ORDER BY id ASC\");\n\n $stmt -> execute();\n\n return $stmt -> fetch();\n\n\t\t$stmt -> close();\n\n\t\t$stmt = null;\n\n\t}", "public static function findById2($id=NULL)\n {\n $request=\"\";\n\n //Si On ne saisit pas l'id, on retourne toute la liste\n if ($id==NULL){\n $request=\"SELECT transTermi.idTerminal, termi.macAdress, transTermi.statut, transTermi.login, transTermi.password, transpo.RaisonSociale, transpo.idTransporteur FROM Entrepriseterminal as transTermi INNER JOIN terminals as termi on transTermi.idTerminal = termi.idTerminal INNER JOIN transporteurs as transpo on transpo.idTransporteur = transTermi.idEntreprise\";\n }\n else\n $request=\"SELECT transTermi.idTerminal, termi.macAdress, transTermi.statut, transTermi.login, transTermi.password, transpo.RaisonSociale, transpo.idTransporteur FROM Entrepriseterminal as transTermi INNER JOIN terminals as termi on transTermi.idTerminal = termi.idTerminal INNER JOIN transporteurs as transpo on transpo.idTransporteur = transTermi.idEntreprise WHERE login = :x\";\n\n $termTab= Array();\n\n $db = Database::getInstance();\n\n\n try{\n\n //On s'assure que la connexion n'est pas null\n if (is_null($db)){\n throw new PDOException(\"Impossible d'effectuer une requette de recherche verifier la connexion\");\n }\n //Preparation de la requette SQL pour l'execution(Tableau)\n $pstmt = $db->prepare($request);\n\n $pstmt->execute(array(':x' => $id));\n\n //Parcours de notre pstm tant qu'il y des données\n while ($result = $pstmt->fetch(PDO::FETCH_OBJ)){\n\n\n //Creation d'un terminal\n $terminal = new TerminalEntreprise();\n\n //Transfere des information d'objet vers un tableau\n $terminal->loadFromObjet($result);\n\n\n\n //On insere chaque objet a la fin du tableau $termTab\n array_push($termTab,$terminal);\n }\n\n $pstmt->closeCursor();\n $pstmt= NULL;\n\n\n }\n catch (PDOException $ex){\n ?>\n <!-- Affichage du message d'erreur au console terminal-->\n <script>console.log(\"Error createDAO: <?= $ex->getMessage()?>\")</script>\n <?php\n }\n return $termTab;\n\n\n\n\n }", "function getRegistros() {\n\t\tif (isset($this->extra[\"monitor_id\"]) and isset($this->extra[\"pagina\"])) {\n\t\t\t$this->resultado = $this->getDetalleRegistros($this->extra[\"monitor_id\"], $this->extra[\"pagina\"]);\n\t\t\treturn;\n\t\t}\n\n\t\tglobal $mdb2;\n\t\tglobal $log;\n\t\tglobal $current_usuario_id;\n\n\t\t/* OBTENER LOS DATOS Y PARSEARLO */\n\t\t$sql = \"SELECT unnest(_nodos_id) AS nodo_id FROM _nodos_id(\".\n\t\t\t pg_escape_string($current_usuario_id).\", \".\n\t\t\t pg_escape_string($this->objetivo_id).\", '\".\n\t\t\t pg_escape_string($this->timestamp->getInicioPeriodo()).\"','\".\n\t\t\t pg_escape_string($this->timestamp->getTerminoPeriodo()).\"')\";\n\t\t//print($sql);\n\t\t$res =& $mdb2->query($sql);\n\t\tif (MDB2::isError($res)) {\n\t\t\t$log->setError($sql, $res->userinfo);\n\t\t\texit();\n\t\t}\n\t\t$monitor_ids = array();\n\t\twhile($row = $res->fetchRow()) {\n\t\t\t$monitor_ids[] = $row[\"nodo_id\"];\n\t\t}\n\n\t\t/* SI NO HAY DATOS MOSTRAR MENSAJE */\n\t\tif (count($monitor_ids) == 0) {\n\t\t\t$this->resultado = $this->__generarContenedorSinDatos();\n\t\t\treturn;\n\t\t}\n\n\t\t/* TEMPLATE DEL GRAFICO */\n\t\t$T =& new Template_PHPLIB(REP_PATH_TABLETEMPLATES);\n\t\t$T->setFile('tpl_tabla', 'contenedor_tabla.tpl');\n\t\t$T->setBlock('tpl_tabla', 'LISTA_CONTENEDORES', 'lista_contenedores');\n\n\t\t/* LISTA DE MONITORES */\n\t\t$orden = 1;\n\t\tforeach ($monitor_ids as $monitor_id) {\n\t\t\t$T->setVar('__contenido_id', 'reg_'.$monitor_id);\n\t\t\t$T->setVar('__contenido_tabla', $this->getDetalleRegistros($monitor_id, 1, $orden));\n\t\t\t$T->parse('lista_contenedores', 'LISTA_CONTENEDORES', true);\n\t\t\t$orden++;\n\t\t}\n\n\t\t$this->resultado = $T->parse('out', 'tpl_tabla');\n\t}", "public function tratarDados(){\r\n\t\r\n\t\r\n }", "public function buscarhorario()\n\t{\n\t\t$query=\"SELECT * FROM horario WHERE idhorario=\".$this->idhorario;\n\n\t\t\n\t\t$resp=$this->db->consulta($query);\n\t\t\n\t\t//echo $total;\n\t\treturn $resp;\n\t}", "public function buscarEstudianteAcuerdo() {\n\n $sql = \"SELECT \n D.tipodocumento, D.nombrecortodocumento, EG.numerodocumento, EG.idestudiantegeneral,\n EG.nombresestudiantegeneral, EG.apellidosestudiantegeneral, EG.expedidodocumento, C.codigocarrera\n FROM \n estudiantegeneral EG\n INNER JOIN estudiante E ON ( E.idestudiantegeneral = EG.idestudiantegeneral )\n INNER JOIN documento D ON ( D.tipodocumento = EG.tipodocumento )\n INNER JOIN carrera C ON ( C.codigocarrera = E.codigocarrera )\n INNER JOIN FechaGrado FG ON ( FG.CarreraId = C.codigocarrera )\n INNER JOIN AcuerdoActa A ON ( A.FechaGradoId = FG.FechaGradoId )\n INNER JOIN DetalleAcuerdoActa DAC ON ( DAC.AcuerdoActaId = A.AcuerdoActaId AND E.codigoestudiante = DAC.EstudianteId )\n WHERE\n E.codigoestudiante = ?\n AND D.CodigoEstado = 100\n AND DAC.EstadoAcuerdo = 0\n AND DAC.CodigoEstado = 100\";\n\n $this->persistencia->crearSentenciaSQL($sql);\n $this->persistencia->setParametro(0, $this->getCodigoEstudiante(), false);\n $this->persistencia->ejecutarConsulta();\n if ($this->persistencia->getNext()) {\n $this->setIdEstudiante($this->persistencia->getParametro(\"idestudiantegeneral\"));\n $this->setNumeroDocumento($this->persistencia->getParametro(\"numerodocumento\"));\n $this->setNombreEstudiante($this->persistencia->getParametro(\"nombresestudiantegeneral\"));\n $this->setApellidoEstudiante($this->persistencia->getParametro(\"apellidosestudiantegeneral\"));\n $this->setExpedicion($this->persistencia->getParametro(\"expedidodocumento\"));\n\n $tipoDocumento = new TipoDocumento(null);\n $tipoDocumento->setIniciales($this->persistencia->getParametro(\"tipodocumento\"));\n $tipoDocumento->setDescripcion($this->persistencia->getParametro(\"nombrecortodocumento\"));\n\n $fechaGrado = new FechaGrado(null);\n\n $carrera = new Carrera(null);\n $carrera->setCodigoCarrera($this->persistencia->getParametro(\"codigocarrera\"));\n\n $fechaGrado->setCarrera($carrera);\n\n $this->setTipoDocumento($tipoDocumento);\n\n $this->setFechaGrado($fechaGrado);\n }\n\n $this->persistencia->freeResult();\n }", "public function getDados()\n {\n $aLinhas = array();\n\n /**\n * montamos as datas, e processamos o balancete de verificação\n */\n $oDaoPeriodo = db_utils::getDao(\"periodo\");\n $sSqlDadosPeriodo = $oDaoPeriodo->sql_query_file($this->iCodigoPeriodo);\n $rsPeriodo = db_query($sSqlDadosPeriodo);\n $oDadosPerido = db_utils::fieldsMemory($rsPeriodo, 0);\n $sDataInicial = \"{$this->iAnoUsu}-01-01\";\n $iUltimoDiaMes = cal_days_in_month(CAL_GREGORIAN, $oDadosPerido->o114_mesfinal, $this->iAnoUsu);\n $sDataFinal = \"{$this->iAnoUsu}-{$oDadosPerido->o114_mesfinal}-{$iUltimoDiaMes}\";\n $sWherePlano = \" c61_instit in ({$this->getInstituicoes()}) \";\n /**\n * processa o balancete de verificação\n */\n $rsPlano = db_planocontassaldo_matriz($this->iAnoUsu,\n $sDataInicial,\n $sDataFinal,\n false,\n $sWherePlano,\n '',\n 'true',\n 'true');\n\n $iTotalLinhasPlano = pg_num_rows($rsPlano);\n /**\n * percorremos a slinhas cadastradas no relatorio, e adicionamos os valores cadastrados manualmente.\n */\n $aLinhasRelatorio = $this->oRelatorioLegal->getLinhasCompleto();\n for ($iLinha = 1; $iLinha <= count($aLinhasRelatorio); $iLinha++) {\n\n $aLinhasRelatorio[$iLinha]->setPeriodo($this->iCodigoPeriodo);\n $aColunasRelatorio = $aLinhasRelatorio[$iLinha]->getCols($this->iCodigoPeriodo);\n $aColunaslinha = array();\n $oLinha = new stdClass();\n $oLinha->totalizar = $aLinhasRelatorio[$iLinha]->isTotalizador();\n $oLinha->descricao = $aLinhasRelatorio[$iLinha]->getDescricaoLinha();\n $oLinha->colunas = $aColunasRelatorio;\n $oLinha->nivellinha = $aLinhasRelatorio[$iLinha]->getNivel();\n foreach ($aColunasRelatorio as $oColuna) {\n\n $oLinha->{$oColuna->o115_nomecoluna} = 0;\n if ( !$aLinhasRelatorio[$iLinha]->isTotalizador() ) {\n $oColuna->o116_formula = '';\n }\n }\n\n if (!$aLinhasRelatorio[$iLinha]->isTotalizador()) {\n\n $aValoresColunasLinhas = $aLinhasRelatorio[$iLinha]->getValoresColunas(null, null, $this->getInstituicoes(),\n $this->iAnoUsu);\n\n $aParametros = $aLinhasRelatorio[$iLinha]->getParametros($this->iAnoUsu, $this->getInstituicoes());\n foreach($aValoresColunasLinhas as $oValor) {\n foreach ($oValor->colunas as $oColuna) {\n $oLinha->{$oColuna->o115_nomecoluna} += $oColuna->o117_valor;\n }\n }\n\n /**\n * verificamos se a a conta cadastrada existe no balancete, e somamos o valor encontrado na linha\n */\n for ($i = 0; $i < $iTotalLinhasPlano; $i++) {\n\n $oResultado = db_utils::fieldsMemory($rsPlano, $i);\n\n\n $oParametro = $aParametros;\n\n foreach ($oParametro->contas as $oConta) {\n\n $oVerificacao = $aLinhasRelatorio[$iLinha]->match($oConta, $oParametro->orcamento, $oResultado, 3);\n\n if ($oVerificacao->match) {\n\n $this->buscarInscricaoEBaixa($oResultado, $iLinha, $sDataInicial, $sDataFinal);\n\n if ( $oVerificacao->exclusao ) {\n\n $oResultado->saldo_anterior *= -1;\n $oResultado->saldo_anterior_debito *= -1;\n $oResultado->saldo_anterior_credito *= -1;\n $oResultado->saldo_final *= -1;\n }\n\n $oLinha->sd_ex_ant += $oResultado->saldo_anterior;\n $oLinha->inscricao += $oResultado->saldo_anterior_credito;\n $oLinha->baixa += $oResultado->saldo_anterior_debito;\n $oLinha->sd_ex_seg += $oResultado->saldo_final;\n }\n }\n }\n }\n $aLinhas[$iLinha] = $oLinha;\n }\n\n unset($aLinhasRelatorio);\n\n /**\n * calcula os totalizadores do relatório, aplicando as formulas.\n */\n foreach ($aLinhas as $oLinha) {\n\n if ($oLinha->totalizar) {\n\n foreach ($oLinha->colunas as $iColuna => $oColuna) {\n\n if (trim($oColuna->o116_formula) != \"\") {\n\n $sFormulaOriginal = ($oColuna->o116_formula);\n $sFormula = $this->oRelatorioLegal->parseFormula('aLinhas', $sFormulaOriginal, $iColuna, $aLinhas);\n $evaluate = \"\\$oLinha->{$oColuna->o115_nomecoluna} = {$sFormula};\";\n ob_start();\n eval($evaluate);\n $sRetorno = ob_get_contents();\n ob_clean();\n if (strpos(strtolower($sRetorno), \"parse error\") > 0 || strpos(strtolower($sRetorno), \"undefined\" > 0)) {\n $sMsg = \"Linha {$iLinha} com erro no cadastro da formula<br>{$oColuna->o116_formula}\";\n throw new Exception($sMsg);\n\n }\n }\n }\n }\n }\n\n return $aLinhas;\n }", "function consultarLinea(){\n\t\t\n\t\t$this->mysqli = conectarBD();\n\t\t\n\t\t$sql = \"SELECT Linea_Factura.Id_Linea_Factura,Linea_Factura.Id_Factura,Servicio.Nombre,Linea_Factura.Importe,Linea_Factura.Descripcion FROM Linea_Factura INNER JOIN Servicio WHERE Linea_Factura.Id_Linea_Factura='\".$this->linea.\"' AND Linea_Factura.Id_Servicio=Servicio.Id_Servicio AND Linea_Factura.Borrado='0';\";\n\t\t$resultado = $this->mysqli->query($sql);\t\n\t\tif ($resultado->num_rows == 1){\n\t\t\t$row = $resultado->fetch_array();\n\t\t\treturn $row;\n\t\t}\n\t}", "public function leerDatos($tabla){\r\n\t\t\t$sql = '';\r\n\t\t\tswitch($tabla){\r\n\t\t\t\tcase \"Usuario\":\r\n\t\t\t\t\t$sql = \"\r\n\t\t\t\t\t\tSELECT id, nombre, nacido, sexo, foto from usuario;\r\n\t\t\t\t\t\";\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase \"UsuarioDeporte\":\r\n\t\t\t\t\t$sql = \"\r\n\t\t\t\t\t\tSELECT id_usuario, id_deporte from usuario_deporte;\r\n\t\t\t\t\t\";\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase \"Deporte\":\r\n\t\t\t\t\t$sql = \"\r\n\t\t\t\t\t\tSELECT id, nombre from deporte;\r\n\t\t\t\t\t\";\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase \"Passwd\":\r\n\t\t\t\t\t$sql = \"\r\n\t\t\t\t\t\tSELECT usuario, clave from passwd; \r\n\t\t\t\t\t\";\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t$arrayFilas=$this->conn->query($sql);\r\n\t\t\treturn $arrayFilas;\r\n\t\t}", "function obtener_ventanilla($iddoc)\n{\n $nombreVentanilla = '';\n $Documento = new Documento($iddoc);\n $ventanilla = $Documento->ventanilla_radicacion;\n\n $query = Model::getQueryBuilder();\n $cf_ventanilla = $query\n ->select('nombre')\n ->from('cf_ventanilla')\n ->where('estado=1')\n ->andWhere('idcf_ventanilla = :idSede')\n ->setParameter(':idSede', $ventanilla, \\Doctrine\\DBAL\\Types\\Type::INTEGER)\n ->execute()->fetchAll();\n\n $nombreVentanilla = $cf_ventanilla[0]['nombre'];\n\n return $nombreVentanilla;\n}", "function ConsultarTratamientosAPH(){\n $sql = \"CALL spConsultarTratamientosAPH(?)\";\n $query = $this->_CONEXION->prepare($sql);\n $query->bindParam(1, $this->idReporteAPH);\n $query->execute();\n if ($query->rowCount() > 0) {\n return array('tratamientos' => $query->fetchAll());\n }else{\n return array('tratamientos' => null);\n }\n }", "function row_reservation_user($data){\n\t\t$this->db->select('trajet.voiture,trajet.villedepart,trajet.villearrive,trajet.datedepart,trajet.datearrive,trajet.prixplace, trajet.statut,trajet.place_disponible,reservations.place,reservations.date,reservations.id,reservations.status,reservations.trajet');\n\t\t$this->db->from('trajet');\n\t\t$this->db->join('reservations','reservations.trajet=trajet.id');\n\t\t$this->db->where('reservations.pseudo',$data['pseudo']);\n\t\t$query=$this->db->get();\n\t\treturn $query;\n\t}", "public function consultar_horas($tarea, $usuario,$dia)\n\n {\n\n\n\n $this->db->select('hora,id');\n\n $this->db->from('tarea_detalle');\n\n $this->db->where('tarea_id', $tarea);\n\n $this->db->where('usuario_id', $usuario);\n\n $this->db->where('fecha', $dia);\n\n $query = $this->db->get();\n\n // echo $this->db->last_query();\n\n\n return $query->result_array(); \n\n }", "public function getForDataTable()\n {\n\n $q = $this->query();\n if (request('module') == 'task') {\n $q->where('section', '=', 2);\n } else {\n $q->where('section', '=', 1);\n }\n return\n $q->get();\n }", "public function get_tratamiento(){\n\t\t$query = $this->db->get('tratamiento');\n\t\treturn $query->result_array();\n\t}", "public function mostrarTablaAsegurados() {\n\n\t\t$item = null;\n\t\t$valor = null;\n\n\t\t$asegurados = ControladorAsegurados::ctrMostrarAsegurados($item, $valor);\n\n\t\tif ($asegurados == null) {\n\t\t\t\n\t\t\t$datosJson = '{\n\t\t\t\t\"data\": []\n\t\t\t}';\n\n\t\t} else {\n\n\t\t\t$datosJson = '{\n\t\t\t\"data\": [';\n\n\t\t\tfor ($i = 0; $i < count($asegurados); $i++) { \n\n\t\t\t\t/*=============================================\n\t\t\t\tTRAEMOS LA EMPRESA\n\t\t\t\t=============================================*/\n\n\t\t\t\t$itemEmpleador = \"id\";\n\t\t\t\t$valorEmpleador = $asegurados[$i][\"id_empleador\"];\n\n\t\t\t\t$Empleadores = ControladorEmpleadores::ctrMostrarEmpleadores($itemEmpleadore, $valorEmpresa);\n\n\t\t\t\t/*=============================================\n\t\t\t\tTRAEMOS EL TIPO DE SEGURO\n\t\t\t\t=============================================*/\n\n\t\t\t\t$itemSeguro = \"id\";\n\t\t\t\t$valorSeguro = $asegurados[$i][\"id_seguro\"];\n\n\t\t\t\t$seguros = ControladorSeguros::ctrMostrarSeguros($itemSeguro, $valorSeguro);\n\n\t\t\t\t/*=============================================\n\t\t\t\tTRAEMOS LAS LOCALIDADES\n\t\t\t\t=============================================*/\n\n\t\t\t\t$itemLocalidad = \"id\";\n\t\t\t\t$valorLocalidad = $asegurados[$i][\"id_localidad\"];\n\n\t\t\t\t$localidades = ControladorLocalidades::ctrMostrarLocalidades($itemLocalidad, $valorLocalidad);\t\n\n\t\t\t\t/*=============================================\n\t\t\t\tTRAEMOS LAS OCUPACIONES\n\t\t\t\t=============================================*/\n\n\t\t\t\t$itemOcupacion = \"id\";\n\t\t\t\t$valorOcupacion = $asegurados[$i][\"id_ocupacion\"];\n\n\t\t\t\t$ocupaciones = ControladorOcupaciones::ctrMostrarOcupaciones($itemOcupacion, $valorOcupacion);\t\t\t\t\n\n\t\t\t\t/*=============================================\n\t\t\t\tTRAEMOS LAS ACCIONES\n\t\t\t\t=============================================*/\n\n\t\t\t\t$botones1 = \"<div class='btn-group'><button class='btn btn-info btnAgregarBeneficiario' idAsegurado='\".$asegurados[$i][\"id\"].\"' data-toggle='tooltip' title='Agregar Beneficiario'><i class='fas fa-check'></i></button></div>\";\n\n\t\t\t\t$botones2 = \"<div class='btn-group'><button class='btn btn-warning btnEditarEmpleador' idAsegurado='\".$asegurados[$i][\"id\"].\"' data-toggle='tooltip' title='Editar'><i class='fas fa-pencil-alt'></i></button><button class='btn btn-danger btnEliminarAsegurado' idAsegurado='\".$asegurados[$i][\"id\"].\"' data-toggle='tooltip' title='Eliminar'><i class='fas fa-times'></i></button></div>\";\n\n\t\t\t\t$datosJson .='[\n\t\t\t\t\t\"'.$botones1.'\",\t\n\t\t\t\t\t\"'.$empleadores[\"razon_social\"].'\",\t\t\t\n\t\t\t\t\t\"'.$seguros[\"tipo_seguro\"].'\",\t\n\t\t\t\t\t\"'.$asegurados[$i][\"matricula\"].'\",\n\t\t\t\t\t\"'.$asegurados[$i][\"documento_ci\"].'\",\n\t\t\t\t\t\"'.$asegurados[$i][\"paterno\"].' '.$asegurados[$i][\"materno\"].' '.$asegurados[$i][\"nombre\"].'\",\n\t\t\t\t\t\"'.$asegurados[$i][\"sexo\"].'\",\n\t\t\t\t\t\"'.$asegurados[$i][\"fecha_nacimiento\"].'\",\n\t\t\t\t\t\"'.$Localidades[\"nombre_localidad\"].'\",\n\t\t\t\t\t\"'.$asegurados[$i][\"zona\"].'\",\n\t\t\t\t\t\"'.$asegurados[$i][\"calle\"].' '.$asegurados[$i][\"nro_calle\"].'\",\n\t\t\t\t\t\"'.$asegurados[$i][\"salario\"].'\",\n\t\t\t\t\t\"'.$ocupaciones[\"nombre_ocupacion\"].'\",\n\t\t\t\t\t\"'.$asegurados[$i][\"fecha_ingreso\"].'\",\n\t\t\t\t\t\"'.$asegurados[$i][\"estado\"].'\",\n\t\t\t\t\t\"'.$botones2.'\"\n\t\t\t\t],';\n\t\t\t}\n\n\t\t\t$datosJson = substr($datosJson, 0, -1);\n\n\t\t\t$datosJson .= ']\n\t\t\t}';\t\n\n\t\t}\n\n\t\techo $datosJson;\n\t\n\t}", "public function mainTable(){\n //selects needed\n $select[] = 'date_eos';\n\n //build where\n $where = 'overall_status = \"GO\" AND job_type != \"TIA\" ORDER BY crew_1 ASC';\n //add join\n $join = ' LEFT JOIN ' .$this->revTable . ' ON admin_jobs.id = admin_revisions_current.admin_id LEFT JOIN ' .$this->empTable . ' ON admin_jobs.crew_1 = employee.id';\n\n //build query\n $result = $this->runQuery($where,$select,$join);\n\n return $result;\n\n }", "function getEstadisticaResumen() {\n\t\tglobal $mdb2;\n\t\tglobal $log;\n\t\tglobal $current_usuario_id;\n\t\tglobal $usr;\n\n\t\t/* TEMPLATE DEL GRAFICO */\n\t\t$T =& new Template_PHPLIB(($this->extra[\"imprimir\"])?REP_PATH_PRINTTEMPLATES:REP_PATH_TABLETEMPLATES);\n\t\t$T->setFile('tpl_tabla', 'rendimiento_resumen.tpl');\n\t\t$T->setBlock('tpl_tabla', 'BLOQUE_TITULO_HORARIOS', 'bloque_titulo_horarios');\n\t\t$T->setBlock('tpl_tabla', 'LISTA_PASOS', 'lista_pasos');\n\t\t$T->setBlock('tpl_tabla', 'BLOQUE_TABLA', 'bloque_tabla');\n\n\t\t$horarios = array($usr->getHorario($this->horario_id));\n\t\tif ($this->horario_id != 0) {\n\t\t\t$horarios[] = $usr->getHorario(0);\n\t\t\t$horarios[($this->horario_id*-1)] = new Horario(($this->horario_id*-1));\n\t\t\t$horarios[($this->horario_id*-1)]->nombre = \"Horario Inhabil\";\n\t\t}\n\n\t\t$orden = 1;\n\t\t$T->setVar('bloque_titulo_horarios', '');\n\t\tforeach ($horarios as $horario) {\n\t\t\t$T->setVar('lista_pasos', '');\n\n\t\t\t$sql = \"SELECT * FROM reporte.rendimiento_resumen_global(\".\n\t\t\t\t\tpg_escape_string($current_usuario_id).\",\".\n\t\t\t\t\tpg_escape_string($this->objetivo_id).\", \".\n\t\t\t\t\tpg_escape_string($horario->horario_id).\",' \".\n\t\t\t\t\tpg_escape_string($this->timestamp->getInicioPeriodo()).\"', '\".\n\t\t\t\t\tpg_escape_string($this->timestamp->getTerminoPeriodo()).\"')\";\n//\t\t\t\t\tprint $sql;\n\t\t\t$res =& $mdb2->query($sql);\n\t\t\tif (MDB2::isError($res)) {\n\t\t\t\t$log->setError($sql, $res->userinfo);\n\t\t\t\texit();\n\t\t\t}\n\t\t\t$row = $res->fetchRow();\n\t\t\t$dom = new DomDocument();\n\t\t\t$dom->preserveWhiteSpace = false;\n\t\t\t$dom->loadXML($row[\"rendimiento_resumen_global\"]);\n\t\t\t$xpath = new DOMXpath($dom);\n\t\t\tunset($row[\"rendimiento_resumen_global\"]);\n\n\t\t\t$conf_objetivo = $xpath->query('/atentus/resultados/propiedades/objetivos/objetivo')->item(0);\n\t\t\t$conf_pasos = $xpath->query(\"paso[@visible=1]\", $conf_objetivo);\n\n\t\t\t/* SI NO HAY DATOS MOSTRAR MENSAJE */\n\t\t\tif ($horario->horario_id == \"0\" and $xpath->query('//detalle[@paso_orden]/datos/dato')->length == 0) {\n\t\t\t\t$this->resultado = $this->__generarContenedorSinDatos();\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif(count($horarios) > 1) {\n\t\t\t\t$T->setVar('__item_orden', $this->extra[\"item_orden\"]);\n\t\t\t\t$T->setVar('__horario_orden', $orden);\n\t\t\t\t$T->setVar('__horario_nombre', $horario->nombre);\n\t\t\t\t$T->parse('bloque_titulo_horarios', 'BLOQUE_TITULO_HORARIOS', false);\n\t\t\t}\n\n\t\t\t/* DATOS DE LA TABLA */\n\t\t\t$linea = 1;\n\t\t\tforeach($conf_pasos as $conf_paso) {\n\t\t\t\t$tag_dato = $xpath->query('//detalle[@paso_orden='.$conf_paso->getAttribute('paso_orden').']/datos/dato')->item(0);\n\t\t\t\tif ($tag_dato == null) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t$T->setVar('__print_class', ($linea % 2 == 0)?\"celdaIteracion2\":\"celdaIteracion1\");\n\t\t\t\t$T->setVar('__class', ($linea % 2 == 0)?\"celdanegra15\":\"celdanegra10\");\n\t\t\t\t$T->setVar('__paso_nombre', $conf_paso->getAttribute('nombre'));\n\t\t\t\t$T->setVar('__paso_minimo', number_format($tag_dato->getAttribute('tiempo_min'), 3, ',', ''));\n\t\t\t\t$T->setVar('__paso_maximo', number_format($tag_dato->getAttribute('tiempo_max'), 3, ',', ''));\n\t\t\t\t$T->setVar('__paso_promedio', number_format($tag_dato->getAttribute('tiempo_prom'), 3, ',', ''));\n\t\t\t\t$T->parse('lista_pasos', 'LISTA_PASOS', true);\n\t\t\t\t$linea++;\n\t\t\t}\n\t\t\t$T->parse('bloque_tabla', 'BLOQUE_TABLA', true);\n\t\t\t$orden++;\n\t\t}\n\t\t$this->tiempo_expiracion = (strtotime($xpath->query(\"//fecha_expiracion\")->item(0)->nodeValue) - strtotime($xpath->query(\"//fecha\")->item(0)->nodeValue));\n\t\t$this->resultado =$T->parse('out', 'tpl_tabla');\n\t}", "public function getEtapaInicial() {\n\n if ( empty($this->oEtapaInicial) ) {\n\n $oDaoBaseSerie = new cl_baseserie();\n $sSqlEtapas = $oDaoBaseSerie->sql_query_file($this->iCodigoSequencial);\n $rsEtapas = db_query( $sSqlEtapas );\n\n if ( !$rsEtapas ) {\n throw new DBException( _M(ARQUIVO_MENSAGEM_BASECURRICULAR . \"erro_buscar_etapa_inicial\" ) );\n }\n\n if ( pg_num_rows($rsEtapas) > 0 ) {\n\n $oDadosEtapa = db_utils::fieldsMemory($rsEtapas, 0);\n $this->oEtapaInicial = EtapaRepository::getEtapaByCodigo($oDadosEtapa->ed87_i_serieinicial);\n $this->oEtapaFinal = EtapaRepository::getEtapaByCodigo($oDadosEtapa->ed87_i_seriefinal);\n }\n }\n return $this->oEtapaInicial;\n }", "public function select(){\n\t$sql=\"SELECT * FROM tipousuario\";\n\treturn ejecutarConsulta($sql);\n}", "public function select()\n {\n $sql = \"SELECT * FROM tipousuario\";\n return ejecutarConsulta($sql);\n }", "function listado() {\r\n return self::consulta('SELECT * FROM \".self::$nTabla.\"');\r\n }", "public function select($datos_){\n $id=$datos_->getId();\n\n try {\n $sql= \"SELECT `id`, `nombre_proyecto`, `nombre_actividad`, `modalidad_participacion`, `responsable`, `fecha_realizacion`, `producto`, `semillero_id`\"\n .\"FROM `datos_`\"\n .\"WHERE `id`='$id'\";\n $data = $this->ejecutarConsulta($sql);\n for ($i=0; $i < count($data) ; $i++) {\n $datos_->setId($data[$i]['id']);\n $datos_->setNombre_proyecto($data[$i]['nombre_proyecto']);\n $datos_->setNombre_actividad($data[$i]['nombre_actividad']);\n $datos_->setModalidad_participacion($data[$i]['modalidad_participacion']);\n $datos_->setResponsable($data[$i]['responsable']);\n $datos_->setFecha_realizacion($data[$i]['fecha_realizacion']);\n $datos_->setProducto($data[$i]['producto']);\n $semillero = new Semillero();\n $semillero->setId($data[$i]['semillero_id']);\n $datos_->setSemillero_id($semillero);\n\n }\n return $datos_; } catch (SQLException $e) {\n throw new Exception('Primary key is null');\n return null;\n }\n }", "public function select($cargo){\n $id=$cargo->getId();\n\n try {\n $sql= \"SELECT `id`, `fecha_ingreso`, `empresa_idempresa`, `area_empresa_idarea_emp`, `cargo_empreso_idcargo`, `puesto_idpuesto`\"\n .\"FROM `cargo`\"\n .\"WHERE `id`='$id'\";\n $data = $this->ejecutarConsulta($sql);\n for ($i=0; $i < count($data) ; $i++) {\n $cargo->setId($data[$i]['id']);\n $cargo->setFecha_ingreso($data[$i]['fecha_ingreso']);\n $empresa = new Empresa();\n $empresa->setIdempresa($data[$i]['empresa_idempresa']);\n $cargo->setEmpresa_idempresa($empresa);\n $area_empresa = new Area_empresa();\n $area_empresa->setIdarea_emp($data[$i]['area_empresa_idarea_emp']);\n $cargo->setArea_empresa_idarea_emp($area_empresa);\n $cargo_empreso = new Cargo_empreso();\n $cargo_empreso->setIdcargo($data[$i]['cargo_empreso_idcargo']);\n $cargo->setCargo_empreso_idcargo($cargo_empreso);\n $puesto = new Puesto();\n $puesto->setIdpuesto($data[$i]['puesto_idpuesto']);\n $cargo->setPuesto_idpuesto($puesto);\n\n }\n return $cargo; } catch (SQLException $e) {\n throw new Exception('Primary key is null');\n return null;\n }\n }", "public function Obtener($id)\n\t{\n\t\t$data_table = $this->data_source->ejecutarConsulta(\"SELECT * FROM noticias WHERE id_noticia = '$id' \");\n\t\tif ($data_table) {\n\t\t\treturn $data_table;\n\t\t}\n\t}", "static public function mdlMostrarRestaurante($tabla) {\n\n $smt = Conexion::conectar() ->prepare(\"SELECT * FROM $tabla\");\n\n $smt -> execute();\n\n return $smt -> fetchAll();\n \n $smt -> close();\n\n $smt = null;\n }", "function buscarUtlimaSalidaDAO(){\n $conexion = Conexion::crearConexion();\n try {\n $conexion->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n $stm = $conexion->prepare(\"SELECT * FROM salidas ORDER BY id_venta DESC LIMIT 1\");\n $stm->execute();\n $exito = $stm->fetch();\n } catch (Exception $ex) {\n throw new Exception(\"Error al buscar la ultima salida en bd\");\n }\n return $exito;\n }", "public function vistaMaestroModel($tabla){\r\n\r\n\t\t$stmt = Conexion::conectar()->prepare(\"SELECT id, noempleado, nombre, apellido, email, id_carrera FROM $tabla\");\t\r\n\t\t$stmt->execute();\r\n\r\n\t\t#fetchAll(): Obtiene todas las filas de un conjunto de resultados asociado al objeto PDOStatement. \r\n\t\treturn $stmt->fetchAll();\r\n\r\n\t\t$stmt->close();\r\n\r\n\t}", "public function Mostrar()\n\t{\n\t\t$data_table = $this->data_source->ejecutarConsulta(\"SELECT * FROM noticias order by 1 desc\");\n\n\t\treturn $data_table;\n\t}", "public static function getInstance()\n {\n return Doctrine_Core::getTable('Horario_atencion');\n }", "function datos_subtema_tmp($id_subtema) {\n\n\t\t$query = \"SELECT temas_tmp.*,subtemas_tmp.* \n\t\tFROM temas_tmp,subtemas_tmp \n\t\tWHERE subtemas_tmp.id_subtema='$id_subtema'\n\t\tAND subtemas_tmp.id_tema=temas_tmp.id_tema\";\n\n\t\t$connection = mysql_connect($this->HOST, $this->USERNAME, $this->PASSWORD);\n\n\t\t$SelectedDB = mysql_select_db($this->DBNAME);\n\t\t$result = mysql_query($query); \n\t\t\n\t\t$numrows = mysql_num_rows($result);\n\t\t$row=mysql_fetch_array($result);\n\t\tmysql_close($connection);\t\n\t\t// COMPROBAMOS QUE HAYA RESULTADOS\n\t\t// SI EL NUMERO DE RESULTADOS ES 0 SIGNIFICA QUE NO HAY REGISTROS CON ESOS DATOS\n\t\tif ($numrows == 0) {\n\t\t\treturn 0;\n\t\t}\n\t\telse {\n\t\t\treturn $row;\n\t\t}\n\t}", "function SelectPaciente($db_conx, $query = NULL) {\r\n\r\n if ($query == NULL) {\r\n $sql = \"SELECT * FROM tpaciente\";\r\n $query = mysqli_query($db_conx, $sql);\r\n }\r\n $n_columnas = $query->field_count;\r\n $n_filas = $query->num_rows;\r\n $data = '<tr class=\"row_header\">\r\n <td>COD</td> \r\n <td>Nombre / Cedula </td> \r\n <td>F. Nacimiento</td>\r\n <td>Genero / Est. Civil</td>\r\n <td>Instruccion</td>\r\n <td>Hist. Clinica</td>\r\n <td>Telefono</td>\r\n <td>Seguro / Empresa</td>\r\n <td id=\"custom-action\"></td>\r\n </tr>';\r\n while ($row = mysqli_fetch_array($query)) {\r\n $data .= '<tr class=\"row_data\">';\r\n $data .= '<td><span id=\"td_' . $row[0] . '_0\">' . $row[0] . '</span></td>'; //Cod \r\n $data .= '<td><span id=\"td_' . $row[0] . '_6\">' . $row[6] . '</span> '; //pape\r\n $data .= '<span id=\"td_' . $row[0] . '_7\">' . $row[7] . '</span> '; //sape\r\n $data .= '<span id=\"td_' . $row[0] . '_4\">' . $row[4] . '</span> '; //pnom\r\n $data .= '<span id=\"td_' . $row[0] . '_5\">' . $row[5] . '</span><br>'; //snom \r\n $data .= '<span id=\"td_' . $row[0] . '_3\">' . $row[3] . '</span></td>'; //ced\r\n $data .= '<td><span id=\"td_' . $row[0] . '_8\">' . $row[8] . '</span></td>'; //fnac\r\n $data .= '<td><span id=\"td_' . $row[0] . '_9\">' . $row[9] . '</span><br>'; //genero\r\n $data .= '<span id=\"td_' . $row[0] . '_10\">' . $row[10] . '</span></td>'; //estcivil\r\n $data .= '<td><span id=\"td_' . $row[0] . '_11\">' . $row[11] . '</span></td>'; //Instruccion\r\n $data .= '<td><span id=\"td_' . $row[0] . '_12\">' . $row[12] . '</span></td>'; //Hist Clinico\r\n $data .= '<td><span id=\"td_' . $row[0] . '_13\">' . $row[13] . '</span></td>'; //Telefono\r\n //SELECT SEGURO DESCRIPTION\r\n $temprow[1] = \"\";\r\n if (isset($row[1])) {\r\n $tempsql = \"SELECT * FROM tseguros WHERE seg_codigo = $row[1]\";\r\n $tempquery = mysqli_query($db_conx, $tempsql);\r\n $temprow = mysqli_fetch_array($tempquery);\r\n }\r\n\r\n $data .= '<td><span style=\"display:none;\" id=\"seg_' . $row[0] . '\">' . $row[1] . '</span>\r\n <span>' . $temprow[1] . '</span><br>'; //Seguro\r\n //SELECT EMPRESA DESCRIPTION\r\n $temprow[1] = \"\";\r\n if (isset($row[2])) {\r\n $tempsql = \"SELECT * FROM tempresas WHERE emp_codigo = $row[2]\";\r\n $tempquery = mysqli_query($db_conx, $tempsql);\r\n $temprow = mysqli_fetch_array($tempquery);\r\n }\r\n $data .= '<span style=\"display:none;\" id=\"emp_' . $row[0] . '\">' . $row[2] . '</span>\r\n <span>' . $temprow[1] . '</span></td>'; //Empresa\r\n\r\n $data .= '<td id=\"custom-action\"><button id=\"editar\" onclick=\"editPaciente(' . $row[0] . ')\">Editar</button></td></tr>';\r\n }\r\n echo $data;\r\n}", "public static function getInstance()\n {\n return Doctrine_Core::getTable('OtraInformacion');\n }", "public function ObtenerPaciente() {\n $sql= $this->config_mdl->_get_data_condition('os_rx',array(\n 'triage_id'=> $this->input->post('triage_id')\n ));\n $info= $this->config_mdl->_get_data_condition('os_triage',array(\n 'triage_id'=> $this->input->post('triage_id')\n ));\n if(!empty($sql)){\n $this->setOutput(array('accion'=>'1','rx'=>$sql[0],'paciente'=>$info[0]));\n }else{\n $this->setOutput(array('accion'=>'2'));\n }\n }", "public function getTipoContrato(){\n\t\t$em= $this->getEntityManager(); \n $dql = 'SELECT tc.id, tc.tipo , tc.abr FROM RRHHBundle:TipoContrato tc ORDER By tc.id ASC ';\n $dql = $em->createQuery($dql); \n return $dql->getResult(); \n\t}", "static public function mdlRangoFechasEntradas($tabla, $fechaInicial, $fechaFinal){\n\n\t\tif($fechaInicial == null){\n\n\t\t\t$stmt = Conexion::conectar()->prepare(\"SELECT * FROM $tabla ORDER BY id ASC\");\n\n\t\t\t$stmt -> execute();\n\n\t\t\treturn $stmt -> fetchAll();\t\n\n\n\t\t}else if($fechaInicial == $fechaFinal){\n\n\t\t\t$stmt = Conexion::conectar()->prepare(\"SELECT * FROM $tabla WHERE fecha_entrada like '%$fechaFinal%'\");\n\n\t\t\t$stmt -> bindParam(\":fecha_entrada\", $fechaFinal, PDO::PARAM_STR);\n\n\t\t\t$stmt -> execute();\n\n\t\t\treturn $stmt -> fetchAll();\n\n\t\t}else{\n\n\t\t\t$fechaActual = new DateTime();\n\t\t\t$fechaActual ->add(new DateInterval(\"P1D\"));\n\t\t\t$fechaActualMasUno = $fechaActual->format(\"Y-m-d\");\n\n\t\t\t$fechaFinal2 = new DateTime($fechaFinal);\n\t\t\t$fechaFinal2 ->add(new DateInterval(\"P1D\"));\n\t\t\t$fechaFinalMasUno = $fechaFinal2->format(\"Y-m-d\");\n\n\t\t\tif($fechaFinalMasUno == $fechaActualMasUno){\n\n\t\t\t\t$stmt = Conexion::conectar()->prepare(\"SELECT * FROM $tabla WHERE fecha_entrada BETWEEN '$fechaInicial' AND '$fechaFinalMasUno'\");\n\n\t\t\t}else{\n\n\n\t\t\t\t$stmt = Conexion::conectar()->prepare(\"SELECT * FROM $tabla WHERE fecha_entrada BETWEEN '$fechaInicial' AND '$fechaFinal'\");\n\n\t\t\t}\n\t\t\n\t\t\t$stmt -> execute();\n\n\t\t\treturn $stmt -> fetchAll();\n\n\t\t}\n\n\t}", "public function consultarStartup($conexao,$id_pessoa){\n $query = \"select * from empresa_startup where id_pessoa = ?;\";\n $stmt = $conexao->prepare($query);\n $stmt->execute([$id_pessoa]);\n $s = $stmt->fetch();\n $this->setLogo($s[\"logo\"]);\n $this->setNome($s['nome']);\n $this->setRazaoSocial($s['razao_social']);\n $this->setCnpj($s['cnpj']);\n $this->setEmail($s['email']);\n $this->setDataFundacao($s['data_fundacao']);\n $this->setTelefone($s['telefone']);\n $this->setDescricaoCurta($s['descricao_curta']);\n $this->setDescricao($s['descricao']);\n $this->setTags($s['tags']);\n $this->setModeloNegocio($s['modelo_negocio']);\n $this->setPublicoAlvo($s['publico_alvo']);\n $this->setMomento($s['momento']);\n $this->setSegmentoPricipal($s['segmento_principal']);\n $this->setSegmentoSecundario($s['segmento_secundario']);\n $this->setTamanhoTime($s['tamanho_time']);\n $this->setFaturamentoAnual($s['faturamento_anual']);\n $this->setWebsite($s['website']);\n $this->setLinkedin($s['linkedin']);\n $this->setFacebook($s['facebook']);\n $this->setAppStore($s['app_store']);\n $this->setGooglePlay($s['google_play']);\n $this->setYoutube($s['youtube']);\n $this->setInstagram($s['instagram']);\n $this->setCep($s['cep']);\n $this->setNumero($s['numero']);\n $this->setLogradouro($s['logradouro']);\n $this->setComplemento($s['complemento']);\n $this->setBairro($s['bairro']);\n $this->setEstado($s['estado']);\n $this->setEnderecoPrincipal($s['endereco_principal']);\n $this->setCargoFuncao($s['cargo_funcao']);\n $this->setNivelHieraquico($s['nivel_hierarquico']);\n }", "public function findTandas() {\n return $this->getEntityManager()\n ->createQuery(\"SELECT t FROM SisGGFinalBundle:Tanda t WHERE t.estado='Vigente'\")\n ->getResult();\n }", "function getallrecord()\n\t{\n\t\treturn $this->db->get(\"tblteman\");\n\t\t// fungsi get(\"namatable\") adalah active record ci\n\t}" ]
[ "0.6817334", "0.6560372", "0.645293", "0.62356794", "0.62109816", "0.6193065", "0.61564785", "0.6138139", "0.61186314", "0.61076236", "0.60823613", "0.60741234", "0.6034", "0.6020093", "0.5979574", "0.5974415", "0.59654564", "0.59486383", "0.59342897", "0.59336674", "0.5922387", "0.5920243", "0.59137774", "0.5912629", "0.59071785", "0.5903724", "0.5902174", "0.59016544", "0.58909976", "0.5890068", "0.58796775", "0.58789194", "0.58713925", "0.58698165", "0.5857087", "0.5850739", "0.5849768", "0.583359", "0.5823353", "0.5822476", "0.58119166", "0.58030015", "0.57976586", "0.5790538", "0.5790138", "0.5789852", "0.5786724", "0.57655936", "0.57575047", "0.5749155", "0.57433075", "0.57422745", "0.5729011", "0.5728575", "0.57268053", "0.57229584", "0.5722058", "0.5716066", "0.5713937", "0.57138157", "0.57134473", "0.5710374", "0.5710118", "0.57062095", "0.5702867", "0.56993914", "0.56985307", "0.56981593", "0.569772", "0.56973606", "0.5694725", "0.569365", "0.5689551", "0.5687991", "0.56857514", "0.5684707", "0.5683165", "0.56817794", "0.5681637", "0.56812423", "0.56804913", "0.5679987", "0.56748515", "0.567225", "0.5671666", "0.5670217", "0.56670845", "0.5664935", "0.5663797", "0.5663647", "0.56598103", "0.56522787", "0.56505764", "0.5648775", "0.5648633", "0.5648451", "0.56481016", "0.5647325", "0.564366", "0.564268", "0.5642418" ]
0.0
-1
metodo para mostrar todos los registros retorna un array(filas) de arrays(columnas)
public function showAllRecords($properties = null) { $sql = "SELECT * FROM " . $this->table_name . ""; if($properties != null ){ $sql .=" Where "; $keys = array_keys($properties); $first = true; foreach ($keys as $key) { $sql .= ($first == false ? " and " : "") . $key . " = '" . $properties[$key] . "' "; $first = false; } } $req = Database::getBdd()->prepare($sql); $req->execute(); return $req->fetchAll(PDO::FETCH_ASSOC); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_all() {\n $this->db->select('id, regimen, descripcion, tipo');\n $this->db->from('regimenes_fiscales');\n $this->db->where('status', 1);\n $result = $this->db->get();\n return $result->result_array();\n }", "public function getRegistros(){\n $query = $this->db->query('select c.orden_servicio,c.p1,c.p2,c.p3,c.p4,c.p5,c.p6,c.p7,r.DISTRIB,r.RAZON,r.CIUCLIEN,r.NUMSERIE,r.TIPORDEN,r.OPER1,r.ORDEN,r.CLIENTE,r.TELCASA,r.TELOFIC,r.TELCEL,r.EMAIL,r.ASESOR,r.RFCASESOR,r.DESCRIP\n from reporte r\n left join calificacion c\n on r.orden like concat(\"%\",c.orden_servicio,\"%\")');\n return $query->result();\n }", "function getRegistros($sql) {\n\t\t$res = $this->ejecutar($sql);\n\t\t$arreglo = array();\n\t\twhile ($registro = mysqli_fetch_array($res,MYSQL_ASSOC)) {\n\t\t\t$arreglo[]=$registro;\t\t\t\n\t\t}\n\t\treturn $arreglo;\n\t}", "public function lmostrarExamenesLaboratorio() {\n $oDLaboratorio = new DLaboratorio();\n $rs = $oDLaboratorio->dmostrarExamenesLaboratorio();\n\n\n// foreach ($rs as $i => $valuey) {\n// array_push($rs[$i], \"../../../../fastmedical_front/imagen/icono/editar.png ^ Editar Examen\");\n// }\n//\n// foreach ($rs as $j => $valuem) {\n// array_push($rs[$j], \"../../../../fastmedical_front/imagen/icono/cancel.png ^ Eliminar Examen\");\n// }\n\n return $rs;\n }", "function get_guias_nominadas(){\n\t\t$conect=ms_conect_server();\t\t\n\t\t$sQuery=\"SELECT * FROM nomina_detalle WHERE 1=1 ORDER BY id_guia\";\n\t\t\n\t\t//echo($sQuery);\n\t\t$result=mssql_query($sQuery) or die(mssql_min_error_severity());\n\t\t$i=0;\n\t\twhile($row=mssql_fetch_array($result)){\n\t\t\tforeach($row as $key=>$value){\n\t\t\t\t$res_array[$i][$key]=$value; \n\t\t\t}\n\t\t\t$i++;\n\t\t}\n\t\treturn($res_array);\t\n}", "public function Gridfalledidos($formulario){\n\t\t$data = array();\n\t\t$sql = \"SELECT C3F35A_NRO_FALL, CASE C3F35B_SEXO_FALL WHEN 1 THEN 'Hombre' WHEN 2 THEN 'Mujer' END AS C3F35B_SEXO_FALL,\n \t\t\t\tC3F35C_EDAD_FALL, CASE C3F35D_CERT_DEFUN WHEN 1 THEN 'Si' WHEN 2 THEN 'No' WHEN 3 THEN 'No Sabe' END AS C3F35D_CERT_DEFUN\n\t\t\t\t\tFROM CNPV_PERSONA_FALLECIDA\n\t\t\t\t\tWHERE C0I1_ENCUESTA='\".$formulario.\"'\";\n\t\t$query = $this->db->query($sql);\n\t\tif ($query->num_rows() > 0){\n\t\t\t$i = 0;\n\t\t\tforeach($query->result() as $row){\n\t\t\t\t$data[$i][\"C3F35A_NRO_FALL\"] = $row->C3F35A_NRO_FALL;\n\t\t\t\t$data[$i][\"C3F35B_SEXO_FALL\"] = $row->C3F35B_SEXO_FALL;\n\t\t\t\t$data[$i][\"C3F35C_EDAD_FALL\"] = $row->C3F35C_EDAD_FALL;\n\t\t\t\t$data[$i][\"C3F35D_CERT_DEFUN\"] = $row->C3F35D_CERT_DEFUN;\n\t\t\t\t$i++;\n\t\t\t}\n\t\t}\n\t\t$this->db->close();\n\t\treturn $data;\n\t}", "public function getFiltroGestiones()\n {\n $resultado = array();\n $sql = \"\n SELECT STRING_AGG(v.gestion,',') AS o_resultado FROM ( \nSELECT CAST(c.gestion AS CHARACTER VARYING)\nFROM cargos c\nWHERE c.baja_logica = 1\nGROUP BY c.gestion\nORDER BY c.gestion\n) AS v\n \";\n $this->_db = new Cargos();\n $arr = new Resultset(null, $this->_db, $this->_db->getReadConnection()->query($sql));\n if (count($arr) > 0) {\n /**\n * Para agregar un valor nulo al inicio se añade una coma\n */\n $res = $arr[0]->o_resultado;\n $resultado = explode(\",\", $res);\n }\n return $resultado;\n }", "function get ()\n\t{\n\t\t$ ret = array ();\n\t\t\n\t\t// Loop por todos os registros no banco de dados\n\t\tfor ( $ x = 0 ; ( $ x < $ this -> num_records () && count ( $ ret ) < $ this -> _limit ); $ x ++)\n\t\t{\t\t\t\n\t\t\t$ row = $ this -> _px -> retrieve_record ( $ x );\n\t\t\t\n\t\t\tif ( $ this -> _test ( $ row ))\n\t\t\t{\n\t\t\t\tforeach ( $ row as $ key => $ val )\n\t\t\t\t{\n\t\t\t\t\t// Encontre todos os campos que não estão na matriz selecionada\n\t\t\t\t\tif (! in_array ( $ key , $ this -> _select ) &&! empty ( $ this -> _select )) unset ( $ row [ $ key ]);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$ ret [] = $ linha ;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $ ret ;\n\t}", "public function getFiltroResolucion()\n {\n $resultado = array();\n $sql = \"\n SELECT STRING_AGG(v.tipo_resolucion,',') AS o_resultado FROM ( \nSELECT CAST(r.tipo_resolucion AS CHARACTER VARYING)\nFROM cargos c\nINNER JOIN resoluciones r ON c.resolucion_ministerial_id = r.id\nWHERE c.baja_logica = 1\nGROUP BY r.id,r.tipo_resolucion\nORDER BY r.id\n) AS v\n \";\n $this->_db = new Cargos();\n $arr = new Resultset(null, $this->_db, $this->_db->getReadConnection()->query($sql));\n if (count($arr) > 0) {\n /**\n * Para agregar un valor nulo al inicio se añade una coma\n */\n $res = $arr[0]->o_resultado;\n $resultado = explode(\",\", $res);\n }\n return $resultado;\n }", "public function selectAllRegiuniData(){\n $sql = \"SELECT * FROM regiune ORDER BY id DESC\";\n $stmt = $this->db->pdo->prepare($sql);\n $stmt->execute();\n return $stmt->fetchAll(PDO::FETCH_OBJ);\n }", "function get_ArregloAlumnos(){\n\t\t$query_2 = $this->db->query('SELECT rut, id_clase FROM datos_alumnos');\n\t\t\n\t\tif ($query_2->num_rows() > 0){\n\t\t\t//se guarda los datos en arreglo bidimensional\n\t\t\tforeach($query_2->result() as $row)\n\t\t\t$arrDatos_2[htmlspecialchars($row->rut, ENT_QUOTES)]=htmlspecialchars($row->rut,ENT_QUOTES);\n\t\t\t$query_2->free_result();\n\t\t\treturn $arrDatos_2;\n\t\t}\t\n\t\t\n\t}", "private function getCampos()\n {\n \t$fields \t= [];\n \tif ( !empty( $this->parametros['campos'] ) )\n \t{\n if ( is_string($this->parametros['campos']) )\n {\n $fields = explode(',', $this->parametros['campos'] );\n }\n \t} else\n \t{\n \t\t$tabela = $this->parametros['tabela'];\n \t\t$fields = [$this->Controller->$tabela->primaryKey(), $this->Controller->$tabela->displayField() ];\n \t}\n\n \treturn $fields;\n }", "public function Listar(){\n\t\t\t$view_agendamento = new ViewAgendamentoPacienteFuncionarioClass();\n\n\t\t\t//Chama o método para selecionar os registros\n \n \n \n\t\t\treturn $view_agendamento::Select();\n\t\t}", "public function listar() {\n $conexion = new Conexion();\n $consulta = $conexion->prepare('SELECT * FROM facultad');\n $consulta->execute();\n $ces = null;\n\n $tabla_datos = $consulta->fetchAll(PDO::FETCH_ASSOC);\n\n $astraba = array();\n\n\n foreach ($tabla_datos as $con => $valor) {\n $ces = $tabla_datos[$con][\"nombre\"];\n\n array_push($astraba, $ces);\n }\n return $astraba;\n }", "function get_cuentas_registro_all() {\n $this->db->select();\n $this->db->from(\"cuentas_registro\");\n $query = $this->db->get();\n \n if ($query->num_rows() > 0) return $query;\n return NULL;\n }", "public function getRegistros()\n {\n return $this->Sped->getRegistros();\n }", "public function mostrarProductos() {\n //String $retorno\n //Array Producto $col\n $retorno = \"\";\n $col = $this->getColProductos();\n for ($i = 0; $i < count($col); $i++) {\n $retorno .= $col[$i] . \"\\n\";\n $retorno .= \"-------------------------\\n\";\n }\n return $retorno;\n }", "public static function mostrar(){\n\t\t\t$db=DataBase::getConnect();\n\t\t\t$listaResultados=[];\n\t\t\t$select=$db->query('SELECT * FROM '.self::$sql_tabla.' ORDER BY id');\n\t\t\tforeach($select->fetchAll() as $persona){\n\t\t\t\t$listaResultados[]=new Persona($persona['id'],$persona['edad'],$persona['altura'],$persona['peso'],$persona['imc']);\n\t\t\t}\n\t\t\treturn $listaResultados;\t//Me devuelve una lista dentro de un array\n\t\t}", "function consultarGrupo()\n\t\t{\n\t\t\t\t $file = fopen(\"../Archivos/ArrayConsultarGrupo.php\", \"w\");\n\t\t\t\t fwrite($file,\"<?php class consult { function array_consultar(){\". PHP_EOL);\n\t\t\t\t fwrite($file,\"\\$form=array(\" . PHP_EOL);\n\n\t\t\t$mysqli=$this->conexionBD();\n\t\t\t$query=\"SELECT * FROM grupo \";\n\t\t\t$resultado=$mysqli->query($query);\n\t\t\tif(mysqli_num_rows($resultado)){\n\t\t\t\twhile($fila = $resultado->fetch_array())\n\t\t\t{\n\t\t\t\t$filas[] = $fila;\n\t\t\t}\n\t\t\tforeach($filas as $fila)\n\t\t\t{ \n\t\t\t\t$nombre=$fila['NOMBRE_GRUPO'];\n\t\t\t\t$descripcion=$fila['DESCRIPCION'];\n\t\t\t\tfwrite($file,\"array(\\\"nombre\\\"=>'$nombre',\\\"descripcion\\\"=>'$descripcion'),\" . PHP_EOL);\n\t\t\t}\n\t\t\t}\n\t\t\t fwrite($file,\");return \\$form;}}?>\". PHP_EOL);\n\t\t\t\t fclose($file);\n\t\t\t\t $resultado->free();\n\t\t\t\t $mysqli->close();\n\t\t}", "public function makeColumns(){\n $hijosDetalle=$this->\n getReportedetalle()->\n where(['and', \"esdetalle='1'\", \"visiblecampo='1'\"])->\n orderBy('orden')->all();\n //echo count( $hijosDetalle);die();\n $columns=[];\n foreach($hijosDetalle as $fila){\n $columns[]=[\n 'attribute'=>$fila->nombre_campo,\n 'label'=>$fila->aliascampo,\n 'format'=>'raw',\n 'options'=>['width'=>\n $this->sizePercentCampo($fila->nombre_campo).'%'],\n ];\n \n \n }\n return $columns;\n \n }", "public function listarPreg(){\n $consulta = $this->ejecutar(\"SELECT * FROM cappiutep.t_usuario_pregunta WHERE id_usuario = '$this->IdUser'\");\n while($data = $this->getArreglo($consulta))$datos[] = $data;\n return $datos;\n }", "private function cargar_parametros_familias(){\n $sql = \"SELECT id,codigo,descripcion FROM mos_requisitos_familias ORDER BY orden\";\n $columnas_fam = $this->dbl->query($sql, array());\n return $columnas_fam;\n }", "function getModos() {\r\n // arreglo para la determinacion del tipo de la tabla\r\n // 1 si se les puede agregar registros 0 si no se puede\r\n $modos['inventario_equipo']=1;\r\n $modos['inventario_estado']=1;\r\n $modos['inventario_grupo']=1;\r\n $modos['inventario_marca']=1;\r\n $modos['obligacion_clausula']=1;\r\n $modos['obligacion_componente']=1;\r\n $modos['documento_tipo']=1;\r\n $modos['documento_tema']=1;\r\n $modos['documento_subtema']=1;\r\n $modos['documento_estado']=1;\r\n $modos['documento_estado_respuesta']=1;\r\n $modos['documento_actor']=1;\r\n $modos['documento_tipo_actor']=1;\r\n $modos['riesgo_probabilidad']=1;\r\n $modos['riesgo_categoria']=1;\r\n $modos['riesgo_impacto']=1;\r\n $modos['compromiso_estado']=1;\r\n $modos['departamento']=0;\r\n $modos['departamento_region']=0;\r\n $modos['municipio']=0;\r\n $modos['operador']=0;\r\n return $modos;\r\n }", "public function lista() {\n $sql = \"SELECT * FROM cliente\";\n $qry = $this->db->query($sql); // query do pdo com acesso ao bd\n\n //return $qry->fetchAll(); // retorna todos os registros\n return $qry->fetchAll(\\PDO::FETCH_OBJ); // retorna todos os registros a nível de objeto\n }", "function listaRuta()\r\n\t{\t\r\n\t\t$query = \"SELECT * FROM \" . self::TABLA . \";\";\r\n\t\treturn parent::listaRegistros( $query );\r\n\t}", "function getRegistros() {\n\t\tif (isset($this->extra[\"monitor_id\"]) and isset($this->extra[\"pagina\"])) {\n\t\t\t$this->resultado = $this->getDetalleRegistros($this->extra[\"monitor_id\"], $this->extra[\"pagina\"]);\n\t\t\treturn;\n\t\t}\n\n\t\tglobal $mdb2;\n\t\tglobal $log;\n\t\tglobal $current_usuario_id;\n\n\t\t/* OBTENER LOS DATOS Y PARSEARLO */\n\t\t$sql = \"SELECT unnest(_nodos_id) AS nodo_id FROM _nodos_id(\".\n\t\t\t pg_escape_string($current_usuario_id).\", \".\n\t\t\t pg_escape_string($this->objetivo_id).\", '\".\n\t\t\t pg_escape_string($this->timestamp->getInicioPeriodo()).\"','\".\n\t\t\t pg_escape_string($this->timestamp->getTerminoPeriodo()).\"')\";\n\t\t//print($sql);\n\t\t$res =& $mdb2->query($sql);\n\t\tif (MDB2::isError($res)) {\n\t\t\t$log->setError($sql, $res->userinfo);\n\t\t\texit();\n\t\t}\n\t\t$monitor_ids = array();\n\t\twhile($row = $res->fetchRow()) {\n\t\t\t$monitor_ids[] = $row[\"nodo_id\"];\n\t\t}\n\n\t\t/* SI NO HAY DATOS MOSTRAR MENSAJE */\n\t\tif (count($monitor_ids) == 0) {\n\t\t\t$this->resultado = $this->__generarContenedorSinDatos();\n\t\t\treturn;\n\t\t}\n\n\t\t/* TEMPLATE DEL GRAFICO */\n\t\t$T =& new Template_PHPLIB(REP_PATH_TABLETEMPLATES);\n\t\t$T->setFile('tpl_tabla', 'contenedor_tabla.tpl');\n\t\t$T->setBlock('tpl_tabla', 'LISTA_CONTENEDORES', 'lista_contenedores');\n\n\t\t/* LISTA DE MONITORES */\n\t\t$orden = 1;\n\t\tforeach ($monitor_ids as $monitor_id) {\n\t\t\t$T->setVar('__contenido_id', 'reg_'.$monitor_id);\n\t\t\t$T->setVar('__contenido_tabla', $this->getDetalleRegistros($monitor_id, 1, $orden));\n\t\t\t$T->parse('lista_contenedores', 'LISTA_CONTENEDORES', true);\n\t\t\t$orden++;\n\t\t}\n\n\t\t$this->resultado = $T->parse('out', 'tpl_tabla');\n\t}", "public function Listar(){\n $dica_saude = new Exame();\n\n //Chama o método para selecionar os registros\n return $dica_saude::Select();\n }", "function getEntrenadores(){\n\n\t$this->conexionBD();\n\t$mysqli=$this->conexionBD();\n\n\t$form=array();\n\t$query=\"SELECT * FROM Entrenador\";\t\t\n\t$resultado=$mysqli->query($query);\n\twhile($fila = $resultado->fetch_array())\n\t{\n\t\t$filas[] = $fila;\n\t}\n\tforeach($filas as $fila)\n\t{\n\t\t$dni=$fila['DNI'];\n\t\t$Nombre=$fila['Nombre'];\n\t\t$Apellidos=$fila['Apellidos'];\n\n\t\t$fila_array=array(\"dni\"=>$dni,\"Nombre\"=>$Nombre,\"Apellidos\"=>$Apellidos);\n\t\tarray_push($form,$fila_array);\n\t}\n\t$resultado->free();\n\t$mysqli->close();\n\treturn $form;\n}", "function obtener_registro_todos_los_registros(){\n $this->sentencia_sql=\"CALL pa_consultar_todos_los_\".$this->TABLA.\"()\"; \n \n if($this->ejecutar_consulta_sql()){\n //return array(\"codigo\"=>\"00\",\"mensaje\"=>\"Estos son los resultados de la consulta a la tabla $this->TABLA\",\"respuesta\"=>TRUE);\n return array(\"codigo\"=>\"00\",\"mensaje\"=>\"Estos son los resultados de la consulta a la tabla $this->TABLA\",\"respuesta\"=>TRUE,\"valores_consultados\"=>$this->filas_json);\n }else{\n return array(\"codigo\"=>\"01\",\"mensaje\"=> $this->mensajeDepuracion,\"respuesta\"=>TRUE);\n }\n \n }", "public function getAll(){\n \n // 1. Establece la conexion con la base de datos y trae todos los generos\n $query = $this->getDb()->prepare(\" SELECT * FROM genero\");\n $query-> execute(); \n return $query->fetchAll(PDO::FETCH_OBJ);\n }", "function getModos() {\n // arreglo para la determinacion del tipo de la tabla \n // 1 si se les puede agregar registros 0 si no se puede\n $modos['departamento'] = 1;\n $modos['departamento_region'] = 1;\n $modos['municipio'] = 1;\n $modos['operador'] = 1;\n $modos['pais'] = 1;\n $modos['ciudad'] = 1;\n $modos['familias'] = 1;\n $modos['monedas'] = 1;\n $modos['cuenta'] = 1;\n $modos['cuentas_financiero'] = 1;\n $modos['cuentas_financiero_ut'] = 1;\n $modos['cuentas_financiero_tipo'] = 1;\n $modos['extracto_movimiento'] = 1;\n $modos['centropoblado'] = 1;\n $modos['encuesta_tipo'] = 1;\n $modos['actividades_tipo'] = 1;\n $modos['tipohallazgo'] = 1;\n return $modos;\n }", "function _reglas()\n\t{\n\t\t$reglas[] = array('field' => 'titulo', 'label' => 'lang:field_titulo', 'rules' => 'trim|required|max_length[100]');\n\t\t\n\t\t\t$reglas[] = array('field' => 'has_category', 'label' => 'lang:field_has_category', 'rules' => 'callback_has_categorys');\n\t\t\n\t\t\n\t\treturn $reglas;\n\t}", "public function getComentarios()\n\t\t{\n\t\t\t $this->limpiarVariables();\n\t\t\t $this->conexion = new Conexion();\n\t\t\t $registros[]=array();\n\t\t\t $this->queryComentarios=\"select * from contacto\";\n\t\t\t $resultado=$this->conexion->consultar( $this->queryComentarios );\n\t\t\t \n\t\t\t \n\t\t\t return $resultado;\n\t\t}", "public function getAllArr()\n\t{\n\t\t$sql = \"SELECT g.id,g.nombre,g.total,u.nombre,u.apellido_pat,u.apellido_mat,g.created_date,gt.nombre gastostipo,gt.tipo\n\t\tFROM gastos g \n\t\tleft join gastos_tipo gt on gt.id=g.id_gastostipo \n\t\tleft join user u on u.id=g.id_user \n\t\t\twhere g.status='active';\";\n\t\t$res = $this->db->query($sql);\n\t\t$set = array();\n\t\tif(!$res){ die(\"Error getting result\"); }\n\t\telse{\n\t\t\twhile ($row = $res->fetch_assoc())\n\t\t\t\t{ $set[] = $row; }\n\t\t}\n\t\treturn $set;\n\t}", "function consultar(){\n\t\t\n\t\t$this->mysqli = conectarBD();\n\t\t\n\t\t$sql = \"SELECT Linea_Factura.Id_Linea_Factura,Linea_Factura.Id_Factura,Servicio.Nombre,Linea_Factura.Importe,Linea_Factura.Descripcion FROM Linea_Factura INNER JOIN Servicio WHERE Linea_Factura.Id_Factura='\".$this->factura.\"' AND Linea_Factura.Id_Servicio=Servicio.Id_Servicio AND Linea_Factura.Borrado='0';\";\n\t\t$resultado = $this->mysqli->query($sql);\t\n\t\tif ($resultado->num_rows > 0){\n\t\t\twhile($row = $resultado->fetch_array()){\n\t\t\t\t$array[] = $row;\n\t\t\t}\n\t\t\treturn $array;\n\t\t}\n\t}", "public function get_reglas_evaluacion()\n { \n \n \n $this->db_encuestas->select(\"reglas_evaluacion_cve, (select name from public.mdl_role where id=rol_evaluado_cve) as evaluado,(select name from public.mdl_role where id=rol_evaluador_cve) as evaluador,\n \t(case when tutorizado=1 then 'Tutorizado' else 'No tutorizado' end) as tutorizado\");\n\n $this->db_encuestas->order_by('reglas_evaluacion_cve','asc');\n $query = $this->db_encuestas->get(' encuestas.sse_reglas_evaluacion');\n \n $data_reglas=0;\n $data_reglas = array();\n foreach ($query->result_array() as $row)\n {\n $nombres=$row['evaluador'].' - '.$row['evaluado'].'( '.$row['tutorizado'].' )';\n $data_reglas[$row['reglas_evaluacion_cve']] = $nombres; \n }\n $query->free_result();\n\n return $data_reglas; \n\n }", "public function lista(){\n\t\t\n\t\t$sql = \"SELECT * FROM pagamento_semanal_funcionarios\";\n\n\t\t$conn = new Conexao();\n\t\t$conn->openConnect();\n\t\t\n\t\t$mydb = mysqli_select_db($conn->getCon(), $conn->getBD());\n\t\t$resultado = mysqli_query($conn->getCon(), $sql);\n\t\t\n\t\t$array = array();\n\t\t\n\t\twhile ($row = mysqli_fetch_assoc($resultado)) {\n\t\t\t$array[]=$row;\n\t\t}\n\t\t\n\t\t$conn->closeConnect ();\n\t\treturn $array;\n\t\t\n\t}", "function SHOWALL(){\n\n $stmt = $this->db->prepare(\"SELECT * FROM centro\");\n $stmt->execute();\n $centros_db = $stmt->fetchAll(PDO::FETCH_ASSOC);\n $allcentros = array(); //array para almacenar los datos de todos los centros\n\n //Recorremos todos las filas de centros devueltas por la sentencia sql\n foreach ($centros_db as $centro){\n //Introducimos uno a uno los grupos recuperados de la BD\n array_push($allcentros,\n new CENTRO_Model(\n $centro['centro_id'],$centro['nombre_centro'],$centro['edificio_centro']\n )\n );\n }\n return $allcentros;\n }", "function getAllInfo(){\n //Creamos la consulta\n $sql = \"SELECT * FROM usuarios;\";\n //obtenemos el array con toda la información\n return $this->getArraySQL($sql);\n }", "function arrayProgramas (){\n\t\t$host = \"localhost\";\n\t\t$usuario = \"root\";\n\t\t$password = \"\";\n\t\t$BaseDatos = \"pide_turno\";\n\n $link=mysql_connect($host,$usuario,$password);\n\n\t\tmysql_select_db($BaseDatos,$link);\n\n\t\t$consultaSQL = \"SELECT estado_programas.codigo, estado_programas.estado, estado_programas.programa, estado_programas.user, estado_programas.pass, estado_programas.comentarios FROM estado_programas;\";\n\t\t$retorno =array();\n\t\tmysql_query(\"SET NAMES utf8\");\n\t\t$result = mysql_query($consultaSQL);\n\t\tfor($i=0;$fila= mysql_fetch_assoc($result); $i++) {\n\t\t\tfor($a= 0;$a<mysql_num_fields($result);$a++){\n\t\t\t\t$campo = mysql_field_name($result,$a);\n\t\t\t\t$retorno[$i][$campo] = $fila[$campo];\n\t\t\t}\n\t\t};\n\t\tmysql_close($link);\n\n\t\treturn $retorno;\n\t}", "function getDeportistas(){\n\n\t$this->conexionBD();\n\t$mysqli=$this->conexionBD();\n\n\t$form=array();\n\t$query=\"SELECT * FROM Deportista\";\t\t\n\t$resultado=$mysqli->query($query);\n\twhile($fila = $resultado->fetch_array())\n\t{\n\t\t$filas[] = $fila;\n\t}\n\tforeach($filas as $fila)\n\t{\n\t\t$dni=$fila['DNI'];\n\t\t$usuario=$fila['Usuario'];\n\n\t\t$fila_array=array(\"DNI\"=>$dni,\"Usuario\"=>$usuario);\n\t\tarray_push($form,$fila_array);\n\t}\n\t$resultado->free();\n\t$mysqli->close();\n\treturn $form;\n}", "public function selectNoticias()\n {\n $query = \"SELECT * FROM noticia\";\n $stmt = $this->db->prepare($query);\n $stmt->execute();\n return $stmt->fetchAll(PDO::FETCH_ASSOC);\n \n }", "public function all()\n {\n return AnuncioRegra::all();\n }", "public function listarbiofinCE(){\n $stmt = $this->objPDO->prepare(\"SELECT b.id_biopsia,b.num_biopsia,b.fecha_ingreso,db.fecha_informe,(e.emp_nombres||' '||e.emp_appaterno||' '||e.emp_apmaterno) as medico,\n list(m.descr_muestra)as muestras from sisanatom.biopsia b \n inner join sisanatom.detalle_bioce db on b.id_biopsia=db.id_biopsia\n inner join sisanatom.muestras_biopsia mb on b.id_biopsia=mb.id_biopsia inner join empleados e on b.patologo_responsable=e.emp_id\n inner join sisanatom.muestra m on m.id_muestra=mb.id_muestrarem\n where b.estado_biopsia=3 and b.condicion_biopsia='A'\n group by b.id_biopsia,b.num_biopsia,b.fecha_ingreso,db.fecha_informe,medico\");\n $stmt->execute();\n $pacientes = $stmt->fetchAll(PDO::FETCH_OBJ);\n return $pacientes;\n }", "public function getRegistros(){\n $sql = \"SELECT * FROM \".$this->getTable().\" WHERE \".$this->getTableId().\" = \".$this->getIdTable();\n $execute = conexao::toConnect()->executeS($sql);\n if (count($execute) > 0) {\n return $execute;\n }else{\n return false;\n }\n }", "public function listaCompraFinal(){\n\t\n\t\t$sql = sprintf(\"SELECT * FROM compra_final\");\n\t\n\t\t$conn = new Conexao();\n\t\t$conn->openConnect();\n\t\n\t\t$mydb = mysqli_select_db($conn->getCon(), $conn->getBD());\n\t\t$resultado = mysqli_query($conn->getCon(), $sql);\n\t\n\t\t$arrayProduto = array();\n\t\n\t\twhile ($row = mysqli_fetch_assoc($resultado)) {\n\t\t\t$arrayProduto[]=$row;\n\t\t}\n\t\n\t\t$conn->closeConnect ();\n\t\treturn $arrayProduto;\n\t\n\t}", "public function get_entries() {\n\t\t$this->db->select('oznaka, lokacija, brm');\n\t\t$query = $this->db->get('sale');\n\t\tif ($query->num_rows() > 0) {\n foreach ($query->result() as $temp) {\n $array[] = $temp;\n }\n\t\t\treturn $array;\n\t\t}\n\t}", "public function lCargartablaPerfiles() {\n $oDLaboratorio = new DLaboratorio();\n $rs = $oDLaboratorio->dCargartablaPerfiles();\n foreach ($rs as $key => $value) {\n array_push($rs[$key], \"../../../../fastmedical_front/imagen/icono/smile9.gif ^ Seleccionar\");\n }\n return $rs;\n }", "public function getAllRegistroMigracao()\n {\n $statement = \"SELECT * from sma_migracao_beneficiarios order by data_registro asc \";\n $q = $this->db->query($statement);\n \n if ($q->num_rows() > 0) {\n foreach (($q->result()) as $row) {\n $data[] = $row;\n }\n return $data;\n }\n return FALSE;\n }", "public function permisos()\n {\n\n $conectar = parent::conexion();\n\n $sql = \"select * from permisos;\";\n\n $sql = $conectar->prepare($sql);\n $sql->execute();\n return $resultado = $sql->fetchAll();\n }", "function arrayColaEstudiantes (){\n\t\t\t$host = \"localhost\";\n\t\t\t$usuario = \"root\";\n\t\t\t$password = \"\";\n\t\t\t$BaseDatos = \"pide_turno\";\n\n\t $link=mysql_connect($host,$usuario,$password);\n\n\t\t\tmysql_select_db($BaseDatos,$link);\n\t\t\t$retorno = array();\n\t\t\t$consultaSQL = \"SELECT turnos.codigo, turnos.nombre, turnos.carrera FROM turnos WHERE turnos.estado='No atendido' ORDER BY guia;\";\n\t\t\tmysql_query(\"SET NAMES utf8\");\n\t\t\t$result = mysql_query($consultaSQL);\n\t\t\tfor($i=0;$fila= mysql_fetch_assoc($result); $i++) {\n\t\t\t\tfor($a= 0;$a<mysql_num_fields($result);$a++){\n\t\t\t\t\t$campo = mysql_field_name($result,$a);\n\t\t\t\t\t$retorno[$i][$campo] = $fila[$campo];\n\t\t\t\t}\n\t\t\t};\n\t\t\tmysql_close($link);\n\n\t\t\treturn $retorno;\n\t\t}", "public function columnasLista(){\n $gridlista=array(\n array('name'=>'nombre','type'=>'raw','value'=>'CHtml::link($data->nombre,array(\"update\",\"id\"=>$data->id))'),\n 'cantidadpresentacion',\n 'salida',\n // 'idempresa',\n array('name'=>'idempresa','type'=>'raw','value'=>'$data->getNombreEmpresa()'),\n );\n\n return $gridlista;\n }", "public function getDiagnosaformItems()\n {\n return Yii::app()->db->createCommand('SELECT diagnosa_id, diagnosa_nama FROM diagnosa_m WHERE diagnosa_aktif=TRUE')->queryAll();\n }", "public static function GetProdutos(){\n self::$results = self::query(\"SELECT cdProduto, nomeProduto, descricao, precoUnitario, foto FROM tbProduto\");\n self::$resultRetorno = [];\n if (is_array(self::$results) || is_object(self::$results)){\n foreach(self::$results as $result){\n $result[3] = str_replace('.', ',', $result[3]);\n \n array_push(self::$resultRetorno, $result);\n\n }\n }\n return self::$resultRetorno;\n }", "public function tableauMatieres()\n\t\t{\n\t\t\t// On dit à mysql que l'on veut travailler en UTF-8\n\t\t\tmysqli_query($this->co,\"SET NAMES UTF8\");\n\t\t\t$result = mysqli_query($this->co,\n\t\t\t\t\t\t\t\t \"SELECT nom_matiere FROM matiere\")\n\t\t\tor die(\"Connexion impossible : Connexion tableauMatieres()\");\n\n\t\t\t$matiere = Array ();\n\n\t\t\twhile ($row = mysqli_fetch_array($result)) {\n\t\t\t\t$matiere[] = $row[0];\n\t\t\t}\n\n\t\t\treturn $matiere;\n\t\t}", "public function getFiltroTipoCargo()\n {\n $resultado = array();\n $sql = \"\n SELECT STRING_AGG(v.condicion,',') AS o_resultado FROM ( \nSELECT\nco.condicion\nFROM cargos c \nINNER JOIN finpartidas f ON c.fin_partida_id = f.id\nINNER JOIN condiciones co ON f.condicion_id = co.id\nWHERE c.baja_logica=1 \nGROUP BY co.condicion\nORDER BY co.condicion asc \n) AS v\";\n $this->_db = new Cargos();\n $arr = new Resultset(null, $this->_db, $this->_db->getReadConnection()->query($sql));\n if (count($arr) > 0) {\n /**\n * Para agregar un valor nulo al inicio se añade una coma\n */\n $res = $arr[0]->o_resultado;\n $resultado = explode(\",\", $res);\n }\n return $resultado;\n }", "public function all_redes_dropdown(){\r\n\t\r\n $query = $this->db->query(\"SELECT nombre FROM redes;\");\r\n if ($query->num_rows() > 0) {\r\n $data =array();\r\n foreach ($query->result() as $red) {\r\n $data[$red->nombre] = $red -> nombre;\r\n }\r\n return $data;\r\n \r\n } else\r\n return false;\r\n }", "function retornaTabelas(){\n # Abre arquivo xml para navegacao\n $aBanco = simplexml_load_string($this->xml);\n $aRetorno = array();\n\n # Varre a estrutura das tabelas\n foreach($aBanco as $aTabela){\n # Recupera o nome da tabela e gera o nome da classe\n $aRetorno[] = (string)$aTabela['NOME'];\n }\n return $aRetorno;\n }", "public function get_entries_u() {\n\t\t$this->db->select('oznaka, lokacija, brm, irm');\n\t\t$query = $this->db->get('sale');\n\t\tif ($query->num_rows() > 0) {\n foreach ($query->result() as $temp) {\n $array[] = $temp;\n }\n\t\t\treturn $array;\n\t\t}\n\t}", "function get_mecanismos_carga()\n\t{\n\t\t$param = $this->get_definicion_parametros(true);\t\t\n\t\t$tipos = array();\n\t\tif (in_array('carga_metodo', $param, true)) {\n\t\t\t$tipos[] = array('carga_metodo', 'Método de consulta PHP');\n\t\t}\n\t\tif (in_array('carga_lista', $param, true)) {\n\t\t\t$tipos[] = array('carga_lista', 'Lista fija de Opciones');\n\t\t}\t\t\n\t\tif (in_array('carga_sql', $param, true)) {\t\t\n\t\t\t$tipos[] = array('carga_sql', 'Consulta SQL');\n\t\t}\n\t\treturn $tipos;\n\t}", "function listarFormula(){\r\n\t\t$this->procedimiento='vef.ft_formula_v2_sel';\r\n\t\t$this->transaccion='VF_FORMULAV2_SEL';\r\n\t\t$this->tipo_procedimiento='SEL';//tipo de transaccion\r\n\r\n\t\t//Definicion de la lista del resultado del query\r\n\t\t$this->captura('id_formula','int4');\r\n\t\t$this->captura('estado_reg','varchar');\r\n\t\t$this->captura('nombre','varchar');\r\n\t\t$this->captura('descripcion','text');\r\n\t\t$this->captura('id_usuario_reg','int4');\r\n\t\t$this->captura('fecha_reg','timestamp');\r\n\t\t$this->captura('id_usuario_ai','int4');\r\n\t\t$this->captura('usuario_ai','varchar');\r\n\t\t$this->captura('id_usuario_mod','int4');\r\n\t\t$this->captura('fecha_mod','timestamp');\r\n\t\t$this->captura('usr_reg','varchar');\r\n\t\t$this->captura('usr_mod','varchar');\r\n\t\t$this->captura('sw_autorizacion','varchar');\r\n\t\t$this->captura('regionales','varchar');\r\n\t\t$this->captura('nivel_permiso','varchar');\r\n\r\n\r\n\r\n\t\t//Ejecuta la instruccion\r\n\t\t$this->armarConsulta();\r\n\t\t$this->ejecutarConsulta();\r\n\r\n\t\t//Devuelve la respuesta\r\n\t\treturn $this->respuesta;\r\n\t}", "function getDatatables()\r\n {\r\n $this->db->from(\"v_registro\");\r\n $query = $this->db->get();\r\n return $query->result();\r\n }", "public static function ListaAlumnos(){\n $lista = AlumnoDAO::GetAll();\n $strRespuesta; \n \n if(count($lista)<1){\n $strRespuesta = \"No existen registros.\";\n }\n else{\n for($i=0; $i<count($lista); $i++){\n $strRespuesta[] = $lista[$i];\n } \n }\n \n return json_encode($strRespuesta);\n }", "public function cbo_mascota(){\n $data = array();\n $query = $this->db->get('mascota');\n if ($query->num_rows() > 0) {\n foreach ($query->result_array() as $row){\n $data[] = $row;\n }\n }\n $query->free_result();\n return $data;\n }", "public static function arrDatos() {\r\n return array(\r\n array(\r\n array(\r\n 'html' => '<table width=\"88%\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\"><tbody><tr><td width=\"13\" height=\"58\" valign=\"top\" background=\"http://www.estafeta.com/imagenes/lineageneralizquierda.png\">&nbsp;</td><td width=\"664\" valign=\"middle\" background=\"http://www.estafeta.com/imagenes/medioazulgeneral.png\"><div align=\"right\"><img src=\"http://www.estafeta.com/imagenes/herramientas.png\" width=\"333\" height=\"31\"></div></td><td width=\"11\" valign=\"top\" background=\"http://www.estafeta.com/imagenes/derechaazulgeneral.png\">&nbsp;</td></tr><tr><td height=\"33\" colspan=\"3\" valign=\"top\" background=\"http://www.estafeta.com/imagenes/separaseccroja.jpg\"><div align=\"left\"><img src=\"http://www.estafeta.com/imagenes/rastreotitulo.png\" width=\"258\" height=\"27\"></div></td></tr><tr><td colspan=\"3\" valign=\"top\"><p align=\"right\"><font color=\"#000000\" face=\"Verdana, Arial, Helvetica, sans-serif\" size=\"1\"><a href=\"http://www.estafeta.com/herramientas/rastreo.aspx\">Nueva consulta</a></font></p><div align=\"left\"><form><table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tbody><tr><td><table width=\"100%\" border=\"0\" cellpadding=\"1\" cellspacing=\"1\"><tbody><tr><td width=\"16%\" height=\"30\" bgcolor=\"#d6d6d6\" class=\"titulos\"><div align=\"left\" class=\"titulos\">Número de guía</div></td><td width=\"30%\" colspan=\"2\" bgcolor=\"#edf0e9\" class=\"respuestas\"><div align=\"left\" class=\"respuestas\"> 6058277365651709009524</div></td><td width=\"16%\" bgcolor=\"#d6d6d6\" class=\"titulos\"><div align=\"left\" class=\"titulos\">Código de rastreo</div></td><td width=\"35%\" colspan=\"3\" bgcolor=\"#edf0e9\" class=\"respuestas\"><div align=\"left\" class=\"respuestas\">0738266367</div></td></tr></tbody></table></td></tr><tr><td><table width=\"100%\" border=\"0\" cellpadding=\"1\" cellspacing=\"1\"><tbody><tr><td width=\"16%\" bgcolor=\"#d6e3f5\" class=\"titulos\"><div align=\"left\">Origen</div></td><td width=\"30%\" bgcolor=\"#edf0e9\" class=\"respuestas\"><div align=\"left\">MEXICO D.F.</div></td><td width=\"16%\" bgcolor=\"#d6e3f5\" class=\"titulos\"><div align=\"left\" class=\"titulos\">Destino</div></td><td width=\"35%\" colspan=\"3\" class=\"respuestas\"><table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tbody><tr><td height=\"30\" width=\"50%\" bgcolor=\"#edf0e9\"><div align=\"left\" class=\"respuestas\">Estación Aérea MEX</div></td><td height=\"30\" width=\"30%\" bgcolor=\"#d6e3f5\" class=\"titulos\">CP Destino</td><td height=\"30\" width=\"20%\" bgcolor=\"#edf0e9\" class=\"respuestas\" align=\"left\">&nbsp;55230</td></tr></tbody></table></td></tr></tbody></table></td></tr><tr><td><table width=\"100%\" border=\"0\" cellpadding=\"2\" cellspacing=\"1\"><tbody><tr><td width=\"16%\" bgcolor=\"#d6d6d6\" class=\"titulos\"><div align=\"left\">Estatus del servicio</div></td><td width=\"10%\" bgcolor=\"#edf0e9\" class=\"respuestasazul\"><div align=\"left\"><img src=\"images/palomita.png\" border=\"0\" width=\"50\" height=\"50\"></div></td><td width=\"20%\" bgcolor=\"#edf0e9\" class=\"respuestasazul\"><div align=\"left\">Entregado</div></td><td width=\"16%\" height=\"20\" bgcolor=\"#d6d6d6\"><div class=\"titulos\" align=\"left\">Recibió</div></td><td width=\"25%\" colspan=\"1\" bgcolor=\"#edf0e9\"><div class=\"respuestasazul3\" align=\"left\">PDV2:LASCAREZ MARTINEZ ENRIQUE </div></td><td width=\"10%\" bgcolor=\"#edf0e9\" class=\"style1\"><div align=\"center\"></div></td></tr></tbody></table></td></tr><tr><td align=\"center\" bgcolor=\"edf0e9\"><div class=\"msg_list\"><p style=\"display: none;\" id=\"6058277365651709009524FIR\" class=\"style1 msg_head \"></p><div class=\"msg_body\"></div></div></td></tr><tr><td><table width=\"100%\" border=\"0\" cellpadding=\"2\" cellspacing=\"1\"><tbody><tr><td width=\"16%\" height=\"30\" bgcolor=\"#d6e3f5\" class=\"titulos\"><div align=\"left\" class=\"titulos\">Servicio</div></td><td width=\"30%\" colspan=\"2\" bgcolor=\"#edf0e9\" class=\"respuestas\"><div align=\"left\" class=\"respuestas\">Entrega garantizada de 2 a 5 días hábiles (según distancia)</div></td><td width=\"16%\" height=\"30\" bgcolor=\"#d6e3f5\" class=\"titulos\"><div align=\"left\" class=\"titulos\">Fecha y hora de entrega</div></td><td width=\"35%\" colspan=\"3\" bgcolor=\"#edf0e9\" class=\"style1\"><div align=\"left\" class=\"respuestas\">28/11/2013 02:30 PM</div></td></tr></tbody></table></td></tr><tr><td><table width=\"100%\" border=\"0\" cellpadding=\"2\" cellspacing=\"1\"><tbody><tr><td width=\"16%\" height=\"30\" bgcolor=\"#d6d6d6\" class=\"titulos\"><div align=\"left\"><span class=\"titulos\">Tipo de envío</span></div></td><td width=\"30%\" colspan=\"2\" bgcolor=\"#edf0e9\" class=\"respuestas\"><div align=\"left\"><span class=\"respuestas\">PAQUETE</span></div></td><td width=\"16%\" bgcolor=\"#d6d6d6\" height=\"30\" class=\"titulos\"><div align=\"left\" class=\"titulos\">Fecha programada <br>de entrega</div></td><td width=\"35%\" colspan=\"3\" bgcolor=\"#edf0e9\" class=\"respuestas\"><div align=\"left\" class=\"respuestas\">Ocurre. El destinatario cuenta con 10 días hábiles para recoger su envío, una vez que este haya sido entregado en la plaza destino.</div></td></tr></tbody></table></td></tr><tr><td><table width=\"100%\" border=\"0\" cellpadding=\"2\" cellspacing=\"1\"><tbody><tr><td width=\"16%\" height=\"30\" bgcolor=\"#d6e3f5\" class=\"titulos\"><div align=\"left\"><span class=\"titulos\">Número de orden de recolección</span></div></td><td width=\"30%\" colspan=\"2\" bgcolor=\"#edf0e9\" class=\"respuestas\"><div align=\"left\"><span class=\"respuestas\"><a href=\"http://rastreo2.estafeta.com/ShipmentPickUpWeb/actions/pickUpOrder.do?method=doGetPickUpOrder&amp;forward=toPickUpInfo&amp;idioma=es&amp;pickUpId=8058829\" class=\"cuerpo\" target=\"_blank\">8058829</a></span></div></td><td width=\"16%\" height=\"40\" bgcolor=\"#d6e3f5\" class=\"titulos\"><div align=\"left\" class=\"titulos\">Fecha de recolección</div></td><td width=\"35%\" colspan=\"3\" bgcolor=\"#edf0e9\" class=\"respuestas\"><div align=\"left\" class=\"respuestas\"> 21/11/2013 05:32 PM</div></td></tr></tbody></table></td></tr><tr><td><table width=\"100%\" border=\"0\" cellpadding=\"2\" cellspacing=\"1\"><tbody><tr><td width=\"16%\" height=\"30\" bgcolor=\"#d6d6d6\" class=\"titulos\"><div align=\"left\"><span class=\"titulos\">Orden de rastreo*</span></div></td><td width=\"81%\" colspan=\"6\" height=\"30\" bgcolor=\"#edf0e9\" class=\"respuestas\"><div align=\"left\"><span class=\"respuestas\">8111262177</span></div></td></tr><tr><td width=\"16%\" height=\"30\" bgcolor=\"#d6e3f5\" class=\"titulos\"><div align=\"left\"><span class=\"titulos\">Motivo*</span></div></td><td width=\"81%\" colspan=\"6\" height=\"30\" bgcolor=\"#edf0e9\" class=\"respuestas\"><div align=\"left\"><span class=\"respuestas\">Coordinar a oficina Estafeta</span></div></td></tr><tr><td width=\"16%\" height=\"30\" bgcolor=\"#d6d6d6\" class=\"titulos\"><div align=\"left\"><span class=\"titulos\">Estatus*</span></div></td><td width=\"81%\" colspan=\"6\" height=\"30\" bgcolor=\"#edf0e9\" class=\"respuestas\"><div align=\"left\"><span class=\"respuestas\">Concluidos</span></div></td></tr><tr><td width=\"16%\" height=\"30\" bgcolor=\"#d6e3f5\" class=\"titulos\"><div align=\"left\"><span class=\"titulos\">Resultado*</span></div></td><td width=\"81%\" colspan=\"6\" height=\"30\" bgcolor=\"#edf0e9\" class=\"respuestas\"><div align=\"left\"><span class=\"respuestas\">Envio disponible en oficina Estafeta</span></div></td></tr></tbody></table></td></tr><tr><td><table width=\"690\" align=\"center\" border=\"0\" cellpadding=\"2\" cellspacing=\"1\"><tbody><tr><td class=\"pies\"><div align=\"left\"><span class=\"pies\">*Aclaraciones acerca de su envío</span></div></td></tr></tbody></table></td></tr><tr><td>&nbsp;</td></tr><tr><td><table width=\"100%\" border=\"0\" cellpadding=\"2\" cellspacing=\"1\"><tbody><tr><td width=\"33%\" rowspan=\"2\" bgcolor=\"#d6d6d6\" class=\"titulos\"><div align=\"center\"><span class=\"titulos\">Guías envíos múltiples</span></div></td><td width=\"33%\" bgcolor=\"#d6e3f5\" class=\"titulos\"><div align=\"center\"><span class=\"titulos\">Guía documento de retorno</span></div></td><td width=\"33%\" bgcolor=\"#d6d6d6\" class=\"titulos\"><div align=\"center\"><span class=\"titulos\">Guía internacional</span></div></td></tr></tbody></table><table width=\"100%\" border=\"0\" cellpadding=\"2\" cellspacing=\"1\"><tbody><tr><td width=\"33%\" bgcolor=\"#edf0e9\" class=\"style1\"><div align=\"center\">&nbsp;</div></td><td width=\"33%\" bgcolor=\"#edf0e9\" class=\"style1\"><div align=\"center\">&nbsp;</div></td><td width=\"33%\" bgcolor=\"#edf0e9\" class=\"repuestas\"><div align=\"center\">&nbsp;</div></td></tr></tbody></table></td></tr><tr><td>&nbsp;</td></tr><tr><td><table width=\"100%\" border=\"0\" cellpadding=\"2\" cellspacing=\"1\"><tbody><tr><td width=\"20%\" rowspan=\"3\" bgcolor=\"#d6e3f5\" class=\"titulos\"><div align=\"center\"><span class=\"titulos\">Características del envío</span><br><img onclick=\"darClick(\\'6058277365651709009524CAR\\')\" src=\"images/caracter_envio.png\" style=\"cursor:pointer;\" border=\"0\" width=\"75\" height=\"75\"></div></td><td width=\"20%\" rowspan=\"3\" bgcolor=\"#d6e3f5\" class=\"titulos\"><div align=\"center\"><span class=\"titulos\">Historia</span><br><img onclick=\"darClick(\\'6058277365651709009524HIS\\')\" src=\"images/historia.png\" style=\"cursor:pointer;\" border=\"0\" width=\"75\" height=\"75\"></div></td><td width=\"20%\" rowspan=\"3\" bgcolor=\"#d6e3f5\" class=\"titulos\"><div align=\"center\"><span class=\"titulos\">Preguntas frecuentes</span><br><a target=\"_blank\" href=\"http://www.estafeta.com/herramientas/ayuda.aspx\"><img src=\"images/preguntas.png\" border=\"0\" width=\"75\" height=\"75\"></a></div></td><td width=\"20%\" rowspan=\"3\" bgcolor=\"#d6e3f5\" class=\"titulos\"><div align=\"center\"><span class=\"titulos\">Comprobante de entrega</span><br><a target=\"_blank\" href=\"/RastreoWebInternet/consultaEnvio.do?dispatch=doComprobanteEntrega&amp;guiaEst=6058277365651709009524\"><img src=\"images/comprobante.png\" border=\"0\" width=\"75\" height=\"75\"></a></div></td></tr></tbody></table></td></tr><tr><td><div class=\"msg_list\"><p style=\"display: none;\" id=\"6058277365651709009524CAR\" class=\"style1 msg_head \"></p><div class=\"msg_body\"><table width=\"100%\" border=\"0\" cellpadding=\"2\" cellspacing=\"1\"><tbody><tr><td width=\"20%\" rowspan=\"3\" bgcolor=\"#d6d6d6\" class=\"style1\"><div align=\"center\"><span class=\"titulos\">Características </span></div></td></tr></tbody></table><table width=\"100%\" border=\"0\" cellpadding=\"2\" cellspacing=\"1\"><tbody><tr><td width=\"16%\" height=\"20\" bgcolor=\"#d6e3f5\" class=\"titulos\"><div align=\"left\"><span class=\"titulos\">Tipo de envío</span></div></td><td width=\"30%\" bgcolor=\"#edf0e9\" class=\"respuestas\"><div align=\"left\"><span class=\"respuestas\">PAQUETE</span></div></td><td width=\"20%\" bgcolor=\"#d6e3f5\" class=\"style1\"><div align=\"left\"><span class=\"titulos\">Dimensiones cm</span></div></td><td width=\"30%\" bgcolor=\"#edf0e9\" class=\"style1\"><div align=\"left\"><span class=\"respuestas\">0x0x0</span></div></td></tr><tr><td width=\"20%\" bgcolor=\"#d6d6d6\" class=\"style1\"><div align=\"left\"><span class=\"titulos\">Peso kg</span></div></td><td width=\"30%\" bgcolor=\"#edf0e9\" class=\"style1\"><div align=\"left\"><span class=\"respuestas\">0.2</span></div></td><td width=\"20%\" bgcolor=\"#d6d6d6\" class=\"style1\"><div align=\"left\"><span class=\"titulos\">Peso volumétrico kg</span></div></td><td width=\"30%\" bgcolor=\"#edf0e9\" class=\"style1\"><div align=\"left\"><span class=\"respuestas\">0.0</span></div></td></tr><tr><td width=\"20%\" bgcolor=\"#d6e3f5\" class=\"style1\"><div align=\"left\"><span class=\"titulos\">Referencia cliente</span></div></td><td colspan=\"3\" width=\"80%\" bgcolor=\"#edf0e9\" class=\"style1\"><div align=\"center\">&nbsp;</div></td></tr></tbody></table></div></div></td></tr><tr><td><div class=\"msg_list\"><p style=\"display: none;\" id=\"6058277365651709009524HIS\" class=\"style1 msg_head \"></p><div class=\"msg_body\"><table width=\"100%\" border=\"0\" cellpadding=\"2\" cellspacing=\"1\"><tbody><tr><td width=\"20%\" rowspan=\"3\" bgcolor=\"#d6d6d6\" class=\"style1\"><div align=\"center\"><span class=\"titulos\">Historia </span></div></td></tr></tbody></table><table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"1\"><tbody><tr><td width=\"22%\" height=\"23\" bgcolor=\"#d6d6d6\" class=\"titulos\"><div align=\"center\">Fecha - Hora</div></td><td width=\"31%\" height=\"23\" bgcolor=\"#d6d6d6\" class=\"titulos\"><div align=\"center\">Lugar - Movimiento</div></td><td width=\"20%\" height=\"23\" bgcolor=\"#d6d6d6\" class=\"titulos\"><div align=\"center\">Comentarios</div></td></tr><tr><td bgcolor=\"#e3e3e3\" class=\"style1\"><div class=\"respuestasNormal\" align=\"left\">28/11/2013 02:30 PM</div></td><td bgcolor=\"#e3e3e3\" class=\"respuestasNormal\"><div align=\"left\"> Recolección en oficina por ruta local</div></td><td bgcolor=\"#e3e3e3\" class=\"style1\"><div align=\"left\" class=\"respuestasNormal\">&nbsp;</div></td></tr><tr><td bgcolor=\"#d6e3f5\" class=\"style1\"><div class=\"respuestasNormal\" align=\"left\">28/11/2013 12:19 PM</div></td><td bgcolor=\"#d6e3f5\" class=\"respuestasNormal\"><div align=\"left\"> Envío recibido en oficina</div></td><td bgcolor=\"#d6e3f5\" class=\"style1\"><div align=\"left\" class=\"respuestasNormal\">Envío ocurre direccionado a oficina </div></td></tr><tr><td bgcolor=\"#e3e3e3\" class=\"style1\"><div class=\"respuestasNormal\" align=\"left\">27/11/2013 07:18 PM</div></td><td bgcolor=\"#e3e3e3\" class=\"respuestasNormal\"><div align=\"left\"> Carga Aerea AER Aclaración en proceso</div></td><td bgcolor=\"#e3e3e3\" class=\"style1\"><div align=\"left\" class=\"respuestasNormal\">Comunicarse al 01800 3782 338 </div></td></tr><tr><td bgcolor=\"#d6e3f5\" class=\"style1\"><div class=\"respuestasNormal\" align=\"left\">27/11/2013 04:18 PM</div></td><td bgcolor=\"#d6e3f5\" class=\"respuestasNormal\"><div align=\"left\"> Envío recibido en oficina</div></td><td bgcolor=\"#d6e3f5\" class=\"style1\"><div align=\"left\" class=\"respuestasNormal\">Envío ocurre direccionado a oficina </div></td></tr><tr><td bgcolor=\"#e3e3e3\" class=\"style1\"><div class=\"respuestasNormal\" align=\"left\">27/11/2013 09:19 AM</div></td><td bgcolor=\"#e3e3e3\" class=\"respuestasNormal\"><div align=\"left\"> Estación Aérea MEX En proceso de entrega Av Central 161 Impulsora Popular Avicola Nezahualcoyotl</div></td><td bgcolor=\"#e3e3e3\" class=\"style1\"><div align=\"left\" class=\"respuestasNormal\">Envío ocurre direccionado a oficina </div></td></tr><tr><td bgcolor=\"#d6e3f5\" class=\"style1\"><div class=\"respuestasNormal\" align=\"left\">27/11/2013 07:24 AM</div></td><td bgcolor=\"#d6e3f5\" class=\"respuestasNormal\"><div align=\"left\"> Estación Aérea MEX Llegada a centro de distribución AMX Estación Aérea MEX</div></td><td bgcolor=\"#d6e3f5\" class=\"style1\"><div align=\"left\" class=\"respuestasNormal\">&nbsp;</div></td></tr><tr><td bgcolor=\"#e3e3e3\" class=\"style1\"><div class=\"respuestasNormal\" align=\"left\">26/11/2013 07:05 PM</div></td><td bgcolor=\"#e3e3e3\" class=\"respuestasNormal\"><div align=\"left\"> MEXICO D.F. En ruta foránea hacia MX2-México (zona 2)</div></td><td bgcolor=\"#e3e3e3\" class=\"style1\"><div align=\"left\" class=\"respuestasNormal\">&nbsp;</div></td></tr><tr><td bgcolor=\"#d6e3f5\" class=\"style1\"><div class=\"respuestasNormal\" align=\"left\">26/11/2013 07:03 PM</div></td><td bgcolor=\"#d6e3f5\" class=\"respuestasNormal\"><div align=\"left\"> MEXICO D.F. Llegada a centro de distribución MEX MEXICO D.F.</div></td><td bgcolor=\"#d6e3f5\" class=\"style1\"><div align=\"left\" class=\"respuestasNormal\">&nbsp;</div></td></tr><tr><td bgcolor=\"#e3e3e3\" class=\"style1\"><div class=\"respuestasNormal\" align=\"left\">26/11/2013 06:55 PM</div></td><td bgcolor=\"#e3e3e3\" class=\"respuestasNormal\"><div align=\"left\"> MEXICO D.F. Movimiento en centro de distribución</div></td><td bgcolor=\"#e3e3e3\" class=\"style1\"><div align=\"left\" class=\"respuestasNormal\">Envío en proceso de entrega </div></td></tr><tr><td bgcolor=\"#d6e3f5\" class=\"style1\"><div class=\"respuestasNormal\" align=\"left\">26/11/2013 06:55 PM</div></td><td bgcolor=\"#d6e3f5\" class=\"respuestasNormal\"><div align=\"left\"> MEXICO D.F. Movimiento en centro de distribución</div></td><td bgcolor=\"#d6e3f5\" class=\"style1\"><div align=\"left\" class=\"respuestasNormal\">Recibe el área de Operaciones </div></td></tr><tr><td bgcolor=\"#e3e3e3\" class=\"style1\"><div class=\"respuestasNormal\" align=\"left\">26/11/2013 03:17 PM</div></td><td bgcolor=\"#e3e3e3\" class=\"respuestasNormal\"><div align=\"left\"> MEXICO D.F. Aclaración en proceso</div></td><td bgcolor=\"#e3e3e3\" class=\"style1\"><div align=\"left\" class=\"respuestasNormal\">Reporte generado por el cliente </div></td></tr><tr><td bgcolor=\"#d6e3f5\" class=\"style1\"><div class=\"respuestasNormal\" align=\"left\">23/11/2013 10:42 AM</div></td><td bgcolor=\"#d6e3f5\" class=\"respuestasNormal\"><div align=\"left\"> MEXICO D.F. Movimiento Local</div></td><td bgcolor=\"#d6e3f5\" class=\"style1\"><div align=\"left\" class=\"respuestasNormal\">Auditoria a ruta local </div></td></tr><tr><td bgcolor=\"#e3e3e3\" class=\"style1\"><div class=\"respuestasNormal\" align=\"left\">22/11/2013 12:00 PM</div></td><td bgcolor=\"#e3e3e3\" class=\"respuestasNormal\"><div align=\"left\"> MEXICO D.F. Movimiento en centro de distribución</div></td><td bgcolor=\"#e3e3e3\" class=\"style1\"><div align=\"left\" class=\"respuestasNormal\">Entrada a Control de Envíos </div></td></tr><tr><td bgcolor=\"#d6e3f5\" class=\"style1\"><div class=\"respuestasNormal\" align=\"left\">22/11/2013 11:33 AM</div></td><td bgcolor=\"#d6e3f5\" class=\"respuestasNormal\"><div align=\"left\"> MEXICO D.F. Movimiento Local</div></td><td bgcolor=\"#d6e3f5\" class=\"style1\"><div align=\"left\" class=\"respuestasNormal\">Entrega en Zona de Alto Riesgo y/o de difícil acceso </div></td></tr><tr><td bgcolor=\"#e3e3e3\" class=\"style1\"><div class=\"respuestasNormal\" align=\"left\">22/11/2013 11:05 AM</div></td><td bgcolor=\"#e3e3e3\" class=\"respuestasNormal\"><div align=\"left\"> MEXICO D.F. Movimiento en centro de distribución</div></td><td bgcolor=\"#e3e3e3\" class=\"style1\"><div align=\"left\" class=\"respuestasNormal\">Posible demora en la entrega por mal empaque </div></td></tr><tr><td bgcolor=\"#d6e3f5\" class=\"style1\"><div class=\"respuestasNormal\" align=\"left\">22/11/2013 10:58 AM</div></td><td bgcolor=\"#d6e3f5\" class=\"respuestasNormal\"><div align=\"left\"> MEXICO D.F. Movimiento Local</div></td><td bgcolor=\"#d6e3f5\" class=\"style1\"><div align=\"left\" class=\"respuestasNormal\">Entrega en Zona de Alto Riesgo y/o de difícil acceso </div></td></tr><tr><td bgcolor=\"#e3e3e3\" class=\"style1\"><div class=\"respuestasNormal\" align=\"left\">21/11/2013 07:00 PM</div></td><td bgcolor=\"#e3e3e3\" class=\"respuestasNormal\"><div align=\"left\"> MEXICO D.F. Movimiento en centro de distribución</div></td><td bgcolor=\"#e3e3e3\" class=\"style1\"><div align=\"left\" class=\"respuestasNormal\">Envío pendiente de salida a ruta local </div></td></tr><tr><td bgcolor=\"#d6e3f5\" class=\"style1\"><div class=\"respuestasNormal\" align=\"left\">21/11/2013 06:56 PM</div></td><td bgcolor=\"#d6e3f5\" class=\"respuestasNormal\"><div align=\"left\"> MEXICO D.F. Llegada a centro de distribución MEX MEXICO D.F.</div></td><td bgcolor=\"#d6e3f5\" class=\"style1\"><div align=\"left\" class=\"respuestasNormal\">&nbsp;</div></td></tr></tbody></table></div></div></td></tr></tbody></table><br><hr color=\"red\" width=\"688px\"><br><input type=\"hidden\" name=\"tipoGuia\" value=\"ESTAFETA&quot;\"></form><font color=\"#000000\" face=\"Verdana, Arial, Helvetica, sans-serif\" size=\"1\"> Versión 4.0 </font></div></td></tr></tbody></table>',\r\n 'numero_guia' => '6058277365651709009524',\r\n 'codigo_rastreo' => '0738266367',\r\n 'servicio' => 'Entrega garantizada de 2 a 5 días hábiles (según distancia)',\r\n 'fecha_programada' => 'Ocurre. El destinatario cuenta con 10 días hábiles para recoger su envío, una vez que este haya sido entregado en la plaza destino.',\r\n 'origen' => 'MEXICO D.F.',\r\n 'cp_destino' => '55230',\r\n 'fecha_recoleccion' => '21/11/2013 05:32 PM',\r\n 'destino' => 'Estación Aérea MEX',\r\n 'estatus' => 'Entregado',\r\n 'fecha_entrega' => '28/11/2013 02:30 PM',\r\n 'tipo_envio' => 'PAQUETE',\r\n 'recibio' => 'PDV2:LASCAREZ MARTINEZ ENRIQUE',\r\n 'firma_recibido' => '',\r\n 'peso' => '0.2',\r\n 'peso_vol' => '0.0',\r\n 'historial' => array(\r\n array('fecha' => '28/11/2013 02:30 PM', 'lugar_movimiento' => 'Recolección en oficina por ruta local', 'comentarios' => ''),\r\n array('fecha' => '28/11/2013 12:19 PM', 'lugar_movimiento' => 'Envío recibido en oficina', 'comentarios' => 'Envío ocurre direccionado a oficina'),\r\n array('fecha' => '27/11/2013 07:18 PM', 'lugar_movimiento' => 'Carga Aerea AER Aclaración en proceso', 'comentarios' => 'Comunicarse al 01800 3782 338'),\r\n array('fecha' => '27/11/2013 04:18 PM', 'lugar_movimiento' => 'Envío recibido en oficina', 'comentarios' => 'Envío ocurre direccionado a oficina'),\r\n array('fecha' => '27/11/2013 09:19 AM', 'lugar_movimiento' => 'Estación Aérea MEX En proceso de entrega Av Central 161 Impulsora Popular Avicola Nezahualcoyotl', 'comentarios' => 'Envío ocurre direccionado a oficina'),\r\n array('fecha' => '27/11/2013 07:24 AM', 'lugar_movimiento' => 'Estación Aérea MEX Llegada a centro de distribución AMX Estación Aérea MEX', 'comentarios' => ''),\r\n array('fecha' => '26/11/2013 07:05 PM', 'lugar_movimiento' => 'MEXICO D.F. En ruta foránea hacia MX2-México (zona 2)', 'comentarios' => ''),\r\n array('fecha' => '26/11/2013 07:03 PM', 'lugar_movimiento' => 'MEXICO D.F. Llegada a centro de distribución MEX MEXICO D.F.', 'comentarios' => ''),\r\n array('fecha' => '26/11/2013 06:55 PM', 'lugar_movimiento' => 'MEXICO D.F. Movimiento en centro de distribución', 'comentarios' => 'Envío en proceso de entrega'),\r\n array('fecha' => '26/11/2013 06:55 PM', 'lugar_movimiento' => 'MEXICO D.F. Movimiento en centro de distribución', 'comentarios' => 'Recibe el área de Operaciones'),\r\n array('fecha' => '26/11/2013 03:17 PM', 'lugar_movimiento' => 'MEXICO D.F. Aclaración en proceso', 'comentarios' => 'Reporte generado por el cliente'),\r\n array('fecha' => '23/11/2013 10:42 AM', 'lugar_movimiento' => 'MEXICO D.F. Movimiento Local', 'comentarios' => 'Auditoria a ruta local'),\r\n array('fecha' => '22/11/2013 12:00 PM', 'lugar_movimiento' => 'MEXICO D.F. Movimiento en centro de distribución', 'comentarios' => 'Entrada a Control de Envíos'),\r\n array('fecha' => '22/11/2013 11:33 AM', 'lugar_movimiento' => 'MEXICO D.F. Movimiento Local', 'comentarios' => 'Entrega en Zona de Alto Riesgo y/o de difícil acceso'),\r\n array('fecha' => '22/11/2013 11:05 AM', 'lugar_movimiento' => 'MEXICO D.F. Movimiento en centro de distribución', 'comentarios' => 'Posible demora en la entrega por mal empaque'),\r\n array('fecha' => '22/11/2013 10:58 AM', 'lugar_movimiento' => 'MEXICO D.F. Movimiento Local', 'comentarios' => 'Entrega en Zona de Alto Riesgo y/o de difícil acceso'),\r\n array('fecha' => '21/11/2013 07:00 PM', 'lugar_movimiento' => 'MEXICO D.F. Movimiento en centro de distribución', 'comentarios' => 'Envío pendiente de salida a ruta local'),\r\n array('fecha' => '21/11/2013 06:56 PM', 'lugar_movimiento' => 'MEXICO D.F. Llegada a centro de distribución MEX MEXICO D.F.', 'comentarios' => ''),\r\n )\r\n )\r\n ),\r\n array(\r\n array(\r\n 'html' => '<table width=\"88%\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\"><tbody><tr><td width=\"13\" height=\"58\" valign=\"top\" background=\"http://www.estafeta.com/imagenes/lineageneralizquierda.png\">&nbsp;</td><td width=\"664\" valign=\"middle\" background=\"http://www.estafeta.com/imagenes/medioazulgeneral.png\"><div align=\"right\"><img src=\"http://www.estafeta.com/imagenes/herramientas.png\" width=\"333\" height=\"31\"></div></td><td width=\"11\" valign=\"top\" background=\"http://www.estafeta.com/imagenes/derechaazulgeneral.png\">&nbsp;</td></tr><tr><td height=\"33\" colspan=\"3\" valign=\"top\" background=\"http://www.estafeta.com/imagenes/separaseccroja.jpg\"><div align=\"left\"><img src=\"http://www.estafeta.com/imagenes/rastreotitulo.png\" width=\"258\" height=\"27\"></div></td></tr><tr><td colspan=\"3\" valign=\"top\"><p align=\"right\"><font color=\"#000000\" face=\"Verdana, Arial, Helvetica, sans-serif\" size=\"1\"><a href=\"http://www.estafeta.com/herramientas/rastreo.aspx\">Nueva consulta</a></font></p><div align=\"left\"><form><table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tbody><tr><td><table width=\"100%\" border=\"0\" cellpadding=\"1\" cellspacing=\"1\"><tbody><tr><td width=\"16%\" height=\"30\" bgcolor=\"#d6d6d6\" class=\"titulos\"><div align=\"left\" class=\"titulos\">Número de guía</div></td><td width=\"30%\" colspan=\"2\" bgcolor=\"#edf0e9\" class=\"respuestas\"><div align=\"left\" class=\"respuestas\"> 8055241528464720115088</div></td><td width=\"16%\" bgcolor=\"#d6d6d6\" class=\"titulos\"><div align=\"left\" class=\"titulos\">Código de rastreo</div></td><td width=\"35%\" colspan=\"3\" bgcolor=\"#edf0e9\" class=\"respuestas\"><div align=\"left\" class=\"respuestas\">2715597604</div></td></tr></tbody></table></td></tr><tr><td><table width=\"100%\" border=\"0\" cellpadding=\"1\" cellspacing=\"1\"><tbody><tr><td width=\"16%\" bgcolor=\"#d6e3f5\" class=\"titulos\"><div align=\"left\">Origen</div></td><td width=\"30%\" bgcolor=\"#edf0e9\" class=\"respuestas\"><div align=\"left\">México (zona 2)</div></td><td width=\"16%\" bgcolor=\"#d6e3f5\" class=\"titulos\"><div align=\"left\" class=\"titulos\">Destino</div></td><td width=\"35%\" colspan=\"3\" class=\"respuestas\"><table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tbody><tr><td height=\"30\" width=\"50%\" bgcolor=\"#edf0e9\"><div align=\"left\" class=\"respuestas\">MEXICO D.F.</div></td><td height=\"30\" width=\"30%\" bgcolor=\"#d6e3f5\" class=\"titulos\">CP Destino</td><td height=\"30\" width=\"20%\" bgcolor=\"#edf0e9\" class=\"respuestas\" align=\"left\">&nbsp;01210</td></tr></tbody></table></td></tr></tbody></table></td></tr><tr><td><table width=\"100%\" border=\"0\" cellpadding=\"2\" cellspacing=\"1\"><tbody><tr><td width=\"16%\" bgcolor=\"#d6d6d6\" class=\"titulos\"><div align=\"left\">Estatus del servicio</div></td><td width=\"10%\" bgcolor=\"#edf0e9\" class=\"respuestasazul\"><div align=\"left\"><img src=\"images/palomita.png\" border=\"0\" width=\"50\" height=\"50\"></div></td><td width=\"20%\" bgcolor=\"#edf0e9\" class=\"respuestasazul\"><div align=\"left\">Entregado</div></td><td width=\"16%\" height=\"20\" bgcolor=\"#d6d6d6\" class=\"titulos\"><div align=\"left\"><span class=\"titulos\">Recibió</span></div></td><td width=\"25%\" colspan=\"1\" bgcolor=\"#edf0e9\"><div class=\"respuestasazul2\" align=\"left\">SDR:RAUL MARTIN </div></td><td width=\"10%\" bgcolor=\"#edf0e9\" class=\"style1\"><div align=\"center\"><img src=\"images/firma.png\" onclick=\"darClick(\\2715597604FIR\\)\" style=\"cursor:pointer;\" width=\"50\" height=\"50\"></div></td></tr></tbody></table></td></tr><tr><td align=\"center\" bgcolor=\"edf0e9\"><div class=\"msg_list\"><p style=\"display: none;\" id=\"2715597604FIR\" class=\"style1 msg_head \"></p><div class=\"msg_body\"><table width=\"30%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tbody><tr><td height=\"3\"></td></tr><tr><td width=\"14%\" height=\"16\" bgcolor=\"CC0000\" class=\"style1\"><div align=\"left\"><span class=\"style5\">Firma de Recibido</span></div></td></tr><tr><td><img src=\"/RastreoWebInternet/firmaServlet?guia=8055241528464720115088&amp;idioma=es\" width=\"224\" height=\"120\"></td></tr><tr><td height=\"3\"></td></tr></tbody></table></div></div></td></tr><tr><td><table width=\"100%\" border=\"0\" cellpadding=\"2\" cellspacing=\"1\"><tbody><tr><td width=\"16%\" height=\"30\" bgcolor=\"#d6e3f5\" class=\"titulos\"><div align=\"left\" class=\"titulos\">Servicio</div></td><td width=\"30%\" colspan=\"2\" bgcolor=\"#edf0e9\" class=\"respuestas\"><div align=\"left\" class=\"respuestas\">Entrega garantizada al tercer día hábil</div></td><td width=\"16%\" height=\"30\" bgcolor=\"#d6e3f5\" class=\"titulos\"><div align=\"left\" class=\"titulos\">Fecha y hora de entrega</div></td><td width=\"35%\" colspan=\"3\" bgcolor=\"#edf0e9\" class=\"style1\"><div align=\"left\" class=\"respuestas\">31/10/2013 12:13 PM</div></td></tr></tbody></table></td></tr><tr><td><table width=\"100%\" border=\"0\" cellpadding=\"2\" cellspacing=\"1\"><tbody><tr><td width=\"16%\" height=\"30\" bgcolor=\"#d6d6d6\" class=\"titulos\"><div align=\"left\"><span class=\"titulos\">Tipo de envío</span></div></td><td width=\"30%\" colspan=\"2\" bgcolor=\"#edf0e9\" class=\"respuestas\"><div align=\"left\"><span class=\"respuestas\">PAQUETE</span></div></td><td width=\"16%\" bgcolor=\"#d6d6d6\" height=\"30\" class=\"titulos\"><div align=\"left\" class=\"titulos\">Fecha programada <br>de entrega</div></td><td width=\"35%\" colspan=\"3\" bgcolor=\"#edf0e9\" class=\"respuestas\"><div align=\"left\" class=\"respuestas\">04/11/2013<br></div></td></tr></tbody></table></td></tr><tr><td><table width=\"100%\" border=\"0\" cellpadding=\"2\" cellspacing=\"1\"><tbody><tr><td width=\"16%\" height=\"30\" bgcolor=\"#d6e3f5\" class=\"titulos\"><div align=\"left\"><span class=\"titulos\">Número de orden de recolección</span></div></td><td width=\"30%\" colspan=\"2\" bgcolor=\"#edf0e9\" class=\"respuestas\"><div align=\"center\">&nbsp;</div></td><td width=\"16%\" height=\"40\" bgcolor=\"#d6e3f5\" class=\"titulos\"><div align=\"left\" class=\"titulos\">Fecha de recolección</div></td><td width=\"35%\" colspan=\"3\" bgcolor=\"#edf0e9\" class=\"respuestas\"><div align=\"left\" class=\"respuestas\"> 30/10/2013 02:00 PM</div></td></tr></tbody></table></td></tr><tr><td><table width=\"100%\" border=\"0\" cellpadding=\"2\" cellspacing=\"1\"><tbody><tr><td width=\"16%\" height=\"30\" bgcolor=\"#d6d6d6\" class=\"titulos\"><div align=\"left\"><span class=\"titulos\">Orden de rastreo*</span></div></td><td width=\"81%\" colspan=\"6\" height=\"30\" bgcolor=\"#edf0e9\" class=\"respuestas\"><div align=\"left\"><span class=\"respuestas\">8111261466</span></div></td></tr><tr><td width=\"16%\" height=\"30\" bgcolor=\"#d6e3f5\" class=\"titulos\"><div align=\"left\"><span class=\"titulos\">Motivo*</span></div></td><td width=\"81%\" colspan=\"6\" height=\"30\" bgcolor=\"#edf0e9\" class=\"respuestas\"><div align=\"left\"><span class=\"respuestas\">Verificacion de domicilio</span></div></td></tr><tr><td width=\"16%\" height=\"30\" bgcolor=\"#d6d6d6\" class=\"titulos\"><div align=\"left\"><span class=\"titulos\">Estatus*</span></div></td><td width=\"81%\" colspan=\"6\" height=\"30\" bgcolor=\"#edf0e9\" class=\"respuestas\"><div align=\"left\"><span class=\"respuestas\">Concluidos</span></div></td></tr><tr><td width=\"16%\" height=\"30\" bgcolor=\"#d6e3f5\" class=\"titulos\"><div align=\"left\"><span class=\"titulos\">Resultado*</span></div></td><td width=\"81%\" colspan=\"6\" height=\"30\" bgcolor=\"#edf0e9\" class=\"respuestas\"><div align=\"left\"><span class=\"respuestas\">Falta de datos para contactar al cliente</span></div></td></tr></tbody></table></td></tr><tr><td><table width=\"690\" align=\"center\" border=\"0\" cellpadding=\"2\" cellspacing=\"1\"><tbody><tr><td class=\"pies\"><div align=\"left\"><span class=\"pies\">*Aclaraciones acerca de su envío</span></div></td></tr></tbody></table></td></tr><tr><td>&nbsp;</td></tr><tr><td><table width=\"100%\" border=\"0\" cellpadding=\"2\" cellspacing=\"1\"><tbody><tr><td width=\"33%\" rowspan=\"2\" bgcolor=\"#d6d6d6\" class=\"titulos\"><div align=\"center\"><span class=\"titulos\">Guías envíos múltiples</span></div></td><td width=\"33%\" bgcolor=\"#d6e3f5\" class=\"titulos\"><div align=\"center\"><span class=\"titulos\">Guía documento de retorno</span></div></td><td width=\"33%\" bgcolor=\"#d6d6d6\" class=\"titulos\"><div align=\"center\"><span class=\"titulos\">Guía internacional</span></div></td></tr></tbody></table><table width=\"100%\" border=\"0\" cellpadding=\"2\" cellspacing=\"1\"><tbody><tr><td width=\"33%\" bgcolor=\"#edf0e9\" class=\"style1\"><div align=\"center\">&nbsp;</div></td><td width=\"33%\" bgcolor=\"#edf0e9\" class=\"style1\"><div align=\"center\">&nbsp;</div></td><td width=\"33%\" bgcolor=\"#edf0e9\" class=\"repuestas\"><div align=\"center\">&nbsp;</div></td></tr></tbody></table></td></tr><tr><td>&nbsp;</td></tr><tr><td><table width=\"100%\" border=\"0\" cellpadding=\"2\" cellspacing=\"1\"><tbody><tr><td width=\"20%\" rowspan=\"3\" bgcolor=\"#d6e3f5\" class=\"titulos\"><div align=\"center\"><span class=\"titulos\">Características del envío</span><br><img onclick=\"darClick(\\2715597604CAR\\)\" src=\"images/caracter_envio.png\" style=\"cursor:pointer;\" border=\"0\" width=\"75\" height=\"75\"></div></td><td width=\"20%\" rowspan=\"3\" bgcolor=\"#d6e3f5\" class=\"titulos\"><div align=\"center\"><span class=\"titulos\">Historia</span><br><img onclick=\"darClick(\\2715597604HIS\\)\" src=\"images/historia.png\" style=\"cursor:pointer;\" border=\"0\" width=\"75\" height=\"75\"></div></td><td width=\"20%\" rowspan=\"3\" bgcolor=\"#d6e3f5\" class=\"titulos\"><div align=\"center\"><span class=\"titulos\">Preguntas frecuentes</span><br><a target=\"_blank\" href=\"http://www.estafeta.com/herramientas/ayuda.aspx\"><img src=\"images/preguntas.png\" border=\"0\" width=\"75\" height=\"75\"></a></div></td><td width=\"20%\" rowspan=\"3\" bgcolor=\"#d6e3f5\" class=\"titulos\"><div align=\"center\"><span class=\"titulos\">Comprobante de entrega</span><br><a target=\"_blank\" href=\"/RastreoWebInternet/consultaEnvio.do?dispatch=doComprobanteEntrega&amp;guiaEst=8055241528464720115088\"><img src=\"images/comprobante.png\" border=\"0\" width=\"75\" height=\"75\"></a></div></td></tr></tbody></table></td></tr><tr><td><div class=\"msg_list\"><p style=\"display: none;\" id=\"2715597604CAR\" class=\"style1 msg_head \"></p><div class=\"msg_body\"><table width=\"100%\" border=\"0\" cellpadding=\"2\" cellspacing=\"1\"><tbody><tr><td width=\"20%\" rowspan=\"3\" bgcolor=\"#d6d6d6\" class=\"style1\"><div align=\"center\"><span class=\"titulos\">Características </span></div></td></tr></tbody></table><table width=\"100%\" border=\"0\" cellpadding=\"2\" cellspacing=\"1\"><tbody><tr><td width=\"16%\" height=\"20\" bgcolor=\"#d6e3f5\" class=\"titulos\"><div align=\"left\"><span class=\"titulos\">Tipo de envío</span></div></td><td width=\"30%\" bgcolor=\"#edf0e9\" class=\"respuestas\"><div align=\"left\"><span class=\"respuestas\">PAQUETE</span></div></td><td width=\"20%\" bgcolor=\"#d6e3f5\" class=\"style1\"><div align=\"left\"><span class=\"titulos\">Dimensiones cm</span></div></td><td width=\"30%\" bgcolor=\"#edf0e9\" class=\"style1\"><div align=\"left\"><span class=\"respuestas\">50x14x14</span></div></td></tr><tr><td width=\"20%\" bgcolor=\"#d6d6d6\" class=\"style1\"><div align=\"left\"><span class=\"titulos\">Peso kg</span></div></td><td width=\"30%\" bgcolor=\"#edf0e9\" class=\"style1\"><div align=\"left\"><span class=\"respuestas\">0.7</span></div></td><td width=\"20%\" bgcolor=\"#d6d6d6\" class=\"style1\"><div align=\"left\"><span class=\"titulos\">Peso volumétrico kg</span></div></td><td width=\"30%\" bgcolor=\"#edf0e9\" class=\"style1\"><div align=\"left\"><span class=\"respuestas\">1.9</span></div></td></tr><tr><td width=\"20%\" bgcolor=\"#d6e3f5\" class=\"style1\"><div align=\"left\"><span class=\"titulos\">Referencia cliente</span></div></td><td colspan=\"3\" width=\"80%\" bgcolor=\"#edf0e9\" class=\"style1\"><div align=\"center\">&nbsp;</div></td></tr></tbody></table></div></div></td></tr><tr><td><div class=\"msg_list\"><p style=\"display: none;\" id=\"2715597604HIS\" class=\"style1 msg_head \"></p><div class=\"msg_body\"><table width=\"100%\" border=\"0\" cellpadding=\"2\" cellspacing=\"1\"><tbody><tr><td width=\"20%\" rowspan=\"3\" bgcolor=\"#d6d6d6\" class=\"style1\"><div align=\"center\"><span class=\"titulos\">Historia </span></div></td></tr></tbody></table><table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"1\"><tbody><tr><td width=\"22%\" height=\"23\" bgcolor=\"#d6d6d6\" class=\"titulos\"><div align=\"center\">Fecha - Hora</div></td><td width=\"31%\" height=\"23\" bgcolor=\"#d6d6d6\" class=\"titulos\"><div align=\"center\">Lugar - Movimiento</div></td><td width=\"20%\" height=\"23\" bgcolor=\"#d6d6d6\" class=\"titulos\"><div align=\"center\">Comentarios</div></td></tr><tr><td bgcolor=\"#e3e3e3\" class=\"style1\"><div class=\"respuestasNormal\" align=\"left\">26/11/2013 02:31 PM</div></td><td bgcolor=\"#e3e3e3\" class=\"respuestasNormal\"><div align=\"left\"> MEXICO D.F. Aclaración en proceso</div></td><td bgcolor=\"#e3e3e3\" class=\"style1\"><div align=\"left\" class=\"respuestasNormal\">Comunicarse al 01800 3782 338 </div></td></tr><tr><td bgcolor=\"#d6e3f5\" class=\"style1\"><div class=\"respuestasNormal\" align=\"left\">26/11/2013 10:49 AM</div></td><td bgcolor=\"#d6e3f5\" class=\"respuestasNormal\"><div align=\"left\"> MEXICO D.F. Aclaración en proceso</div></td><td bgcolor=\"#d6e3f5\" class=\"style1\"><div align=\"left\" class=\"respuestasNormal\">Reporte generado por el cliente </div></td></tr><tr><td bgcolor=\"#e3e3e3\" class=\"style1\"><div class=\"respuestasNormal\" align=\"left\">31/10/2013 10:04 AM</div></td><td bgcolor=\"#e3e3e3\" class=\"respuestasNormal\"><div align=\"left\"> Recolección en oficina por ruta local</div></td><td bgcolor=\"#e3e3e3\" class=\"style1\"><div align=\"left\" class=\"respuestasNormal\">&nbsp;</div></td></tr><tr><td bgcolor=\"#d6e3f5\" class=\"style1\"><div class=\"respuestasNormal\" align=\"left\">31/10/2013 09:12 AM</div></td><td bgcolor=\"#d6e3f5\" class=\"respuestasNormal\"><div align=\"left\"> MEXICO D.F. En proceso de entrega MEX MEXICO D.F.</div></td><td bgcolor=\"#d6e3f5\" class=\"style1\"><div align=\"left\" class=\"respuestasNormal\">&nbsp;</div></td></tr><tr><td bgcolor=\"#e3e3e3\" class=\"style1\"><div class=\"respuestasNormal\" align=\"left\">30/10/2013 08:39 PM</div></td><td bgcolor=\"#e3e3e3\" class=\"respuestasNormal\"><div align=\"left\"> MEXICO D.F. Movimiento en centro de distribución</div></td><td bgcolor=\"#e3e3e3\" class=\"style1\"><div align=\"left\" class=\"respuestasNormal\">Envío con manejo especial </div></td></tr><tr><td bgcolor=\"#d6e3f5\" class=\"style1\"><div class=\"respuestasNormal\" align=\"left\">30/10/2013 07:52 PM</div></td><td bgcolor=\"#d6e3f5\" class=\"respuestasNormal\"><div align=\"left\"> MEXICO D.F. Llegada a centro de distribución MEX MEXICO D.F.</div></td><td bgcolor=\"#d6e3f5\" class=\"style1\"><div align=\"left\" class=\"respuestasNormal\">&nbsp;</div></td></tr><tr><td bgcolor=\"#e3e3e3\" class=\"style1\"><div class=\"respuestasNormal\" align=\"left\">30/10/2013 06:06 PM</div></td><td bgcolor=\"#e3e3e3\" class=\"respuestasNormal\"><div align=\"left\"> Recolección en oficina por ruta local</div></td><td bgcolor=\"#e3e3e3\" class=\"style1\"><div align=\"left\" class=\"respuestasNormal\">&nbsp;</div></td></tr><tr><td bgcolor=\"#d6e3f5\" class=\"style1\"><div class=\"respuestasNormal\" align=\"left\">30/10/2013 06:02 PM</div></td><td bgcolor=\"#d6e3f5\" class=\"respuestasNormal\"><div align=\"left\"> Envío recibido en oficina</div></td><td bgcolor=\"#d6e3f5\" class=\"style1\"><div align=\"left\" class=\"respuestasNormal\">Envío recibido en oficina de Estafeta fuera del horario de recolección </div></td></tr><tr><td bgcolor=\"#e3e3e3\" class=\"style1\"><div class=\"respuestasNormal\" align=\"left\">30/10/2013 02:00 PM</div></td><td bgcolor=\"#e3e3e3\" class=\"respuestasNormal\"><div align=\"left\"> Envio recibido en oficina Av Adolfo Lopez Mateos 22 Local 4 Puente de Vigas Tlalnepantla</div></td><td bgcolor=\"#e3e3e3\" class=\"style1\"><div align=\"left\" class=\"respuestasNormal\">&nbsp;</div></td></tr></tbody></table></div></div></td></tr></tbody></table><br><hr color=\"red\" width=\"688px\"><br><input type=\"hidden\" name=\"tipoGuia\" value=\"REFERENCE&quot;\"></form><font color=\"#000000\" face=\"Verdana, Arial, Helvetica, sans-serif\" size=\"1\"> Versión 4.0 </font></div></td></tr></tbody></table>',\r\n 'numero_guia' => '8055241528464720115088',\r\n 'codigo_rastreo' => '2715597604',\r\n 'servicio' => 'Entrega garantizada al tercer día hábil',\r\n 'fecha_programada' => '04/11/2013',\r\n 'origen' => 'México (zona 2)',\r\n 'cp_destino' => '01210',\r\n 'fecha_recoleccion' => '30/10/2013 02:00 PM',\r\n 'destino' => 'MEXICO D.F.',\r\n 'estatus' => 'Entregado',\r\n 'fecha_entrega' => '31/10/2013 12:13 PM',\r\n 'tipo_envio' => 'PAQUETE',\r\n 'recibio' => 'SDR:RAUL MARTIN',\r\n 'firma_recibido' => '/RastreoWebInternet/firmaServlet?guia=8055241528464720115088&idioma=es',\r\n 'peso' => '0.7',\r\n 'peso_vol' => '1.9',\r\n 'historial' => array(\r\n array('fecha' => '26/11/2013 02:31 PM', 'lugar_movimiento' => 'MEXICO D.F. Aclaración en proceso', 'comentarios' => 'Comunicarse al 01800 3782 338'),\r\n array('fecha' => '26/11/2013 10:49 AM', 'lugar_movimiento' => 'MEXICO D.F. Aclaración en proceso', 'comentarios' => 'Reporte generado por el cliente'),\r\n array('fecha' => '31/10/2013 10:04 AM', 'lugar_movimiento' => 'Recolección en oficina por ruta local', 'comentarios' => ''),\r\n array('fecha' => '31/10/2013 09:12 AM', 'lugar_movimiento' => 'MEXICO D.F. En proceso de entrega MEX MEXICO D.F.', 'comentarios' => ''),\r\n array('fecha' => '30/10/2013 08:39 PM', 'lugar_movimiento' => 'MEXICO D.F. Movimiento en centro de distribución', 'comentarios' => 'Envío con manejo especial'),\r\n array('fecha' => '30/10/2013 07:52 PM', 'lugar_movimiento' => 'MEXICO D.F. Llegada a centro de distribución MEX MEXICO D.F.', 'comentarios' => ''),\r\n array('fecha' => '30/10/2013 06:06 PM', 'lugar_movimiento' => 'Recolección en oficina por ruta local', 'comentarios' => ''),\r\n array('fecha' => '30/10/2013 06:02 PM', 'lugar_movimiento' => 'Envío recibido en oficina', 'comentarios' => 'Envío recibido en oficina de Estafeta fuera del horario de recolección'),\r\n array('fecha' => '30/10/2013 02:00 PM', 'lugar_movimiento' => 'Envio recibido en oficina Av Adolfo Lopez Mateos 22 Local 4 Puente de Vigas Tlalnepantla', 'comentarios' => ''),\r\n ),\r\n )\r\n ),\r\n array(\r\n array(\r\n 'html' => '<table width=\"88%\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\"> <tbody><tr> <td width=\"13\" height=\"58\" valign=\"top\" background=\"http://www.estafeta.com/imagenes/lineageneralizquierda.png\">&nbsp;</td> <td width=\"664\" valign=\"middle\" background=\"http://www.estafeta.com/imagenes/medioazulgeneral.png\"><div align=\"right\"><img src=\"http://www.estafeta.com/imagenes/herramientas.png\" width=\"333\" height=\"31\"></div></td> <td width=\"11\" valign=\"top\" background=\"http://www.estafeta.com/imagenes/derechaazulgeneral.png\">&nbsp;</td> </tr> <tr> <td height=\"33\" colspan=\"3\" valign=\"top\" background=\"http://www.estafeta.com/imagenes/separaseccroja.jpg\"><div align=\"left\"><img src=\"http://www.estafeta.com/imagenes/rastreotitulo.png\" width=\"258\" height=\"27\"></div></td> </tr> <tr> <td colspan=\"3\" valign=\"top\"> <!-- #BeginEditable \"contenido\" --> <p align=\"right\"><font color=\"#000000\" face=\"Verdana, Arial, Helvetica, sans-serif\" size=\"1\"><a href=\"http://www.estafeta.com/herramientas/rastreo.aspx\">Nueva consulta</a></font></p> <div align=\"left\"> <form> <table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tbody><tr> <td> <table width=\"100%\" border=\"0\" cellpadding=\"1\" cellspacing=\"1\"> <tbody><tr> <td width=\"16%\" height=\"30\" bgcolor=\"#d6d6d6\" class=\"titulos\"><div align=\"left\" class=\"titulos\">Número de guía</div></td> <td width=\"30%\" colspan=\"2\" bgcolor=\"#edf0e9\" class=\"respuestas\"><div align=\"left\" class=\"respuestas\"> 3208544064715720055515</div></td> <td width=\"16%\" bgcolor=\"#d6d6d6\" class=\"titulos\"><div align=\"left\" class=\"titulos\">Código de rastreo</div></td> <td width=\"35%\" colspan=\"3\" bgcolor=\"#edf0e9\" class=\"respuestas\"><div align=\"left\" class=\"respuestas\">3563581975</div></td> </tr> </tbody></table></td></tr><tr> <td> <table width=\"100%\" border=\"0\" cellpadding=\"1\" cellspacing=\"1\"> <tbody><tr> <td width=\"16%\" bgco',\r\n 'numero_guia' => '3208544064715720055515',\r\n 'codigo_rastreo' => '3563581975',\r\n 'servicio' => 'Entrega garantizada al sexto día hábil',\r\n 'fecha_programada' => '17/02/2014',\r\n 'origen' => 'Tijuana',\r\n 'cp_destino' => '01210',\r\n 'fecha_recoleccion' => '07/02/2014 04:43 PM',\r\n 'destino' => 'MEXICO D.F.',\r\n 'estatus' => 'Entregado',\r\n 'fecha_entrega' => '12/02/2014 01:01 PM',\r\n 'tipo_envio' => 'PAQUETE',\r\n 'recibio' => 'SDR:JOSE BOLA?OS', # (sic) Estafeta\r\n 'firma_recibido' => '/RastreoWebInternet/firmaServlet?guia=3208544064715720055515&idioma=es',\r\n 'peso' => '11.8',\r\n 'peso_vol' => '4.7',\r\n 'historial' => array(\r\n array('fecha' => '12/02/2014 09:14 AM', 'lugar_movimiento' => 'MEXICO D.F. En proceso de entrega MEX MEXICO D.F.', 'comentarios' => ''),\r\n array('fecha' => '12/02/2014 08:27 AM', 'lugar_movimiento' => 'MEXICO D.F. Llegada a centro de distribución', 'comentarios' => 'Envío en proceso de entrega'),\r\n array('fecha' => '11/02/2014 11:43 PM', 'lugar_movimiento' => 'Centro de Int. SLP En ruta foránea hacia MEX-MEXICO D.F.', 'comentarios' => ''),\r\n array('fecha' => '08/02/2014 12:49 PM', 'lugar_movimiento' => 'Recolección en oficina por ruta local', 'comentarios' => ''),\r\n array('fecha' => '07/02/2014 06:26 PM', 'lugar_movimiento' => 'Tijuana En ruta foránea hacia MEX-MEXICO D.F.', 'comentarios' => ''),\r\n array('fecha' => '07/02/2014 05:04 PM', 'lugar_movimiento' => 'Envío recibido en oficina', 'comentarios' => 'Envío recibido en oficina de Estafeta fuera del horario de recolección'),\r\n array('fecha' => '07/02/2014 04:58 PM', 'lugar_movimiento' => 'Recolección en oficina por ruta local', 'comentarios' => ''),\r\n array('fecha' => '07/02/2014 04:43 PM', 'lugar_movimiento' => 'Envio recibido en oficina CARRETERA AL AEROPUERTO AEROPUERTO TIJUANA BC', 'comentarios' => '')\r\n ),\r\n )\r\n )\r\n );\r\n }", "function toString(){\n echo \"<h2>Alumnos:</h2>\";\n /* Conexion con base de datos. */\n $conexion = new PDO('mysql:host=localhost;dbname=tarea02;charset=UTF8', 'root', '');\n $conexion->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n \n\n if ($conexion){\n \n /* Se define la consulta SQL */\n $consulta = \"SELECT * FROM alumno;\"; \n $stmt = $conexion->prepare($consulta);\n $stmt->execute(); \n \n $arr = $stmt->fetchAll(PDO::FETCH_ASSOC);\n foreach ($arr as $row) {\n echo $row['matricula'];\n echo \" \";\n echo $row['nombre'];\n echo \" \"; \n echo $row['carrera'];\n echo \" \"; \n echo $row['email'];\n echo \" \"; \n echo $row['telefono'];\n echo \"<br>\"; \n \n \n }\n\n } else {\n echo \"Hubo un problema con la conexión\";\n }\n }", "public function get_all(){\n\t\t$this->db->select('ok,valorx,valory,teta,q1,q2,q3,q4,ftang,fnormal');\n\t\treturn $this->db->limit(1)->order_by('id','desc')->get('plataforma')->result_array();\n\t}", "public static function getRegencies() {\n\t\t$db = JFactory::getDBO();\n\n\t\t// Create a new query object.\n\t\t$query = $db->getQuery(true);\n\n\t\t$query->select($db->quoteName('a.id', 'value'));\n\t\t$query->select($db->quoteName('a.name', 'text'));\n\t\t$query->from($db->quoteName('#__gtpihpssurvey_ref_regencies', 'a'));\n\t\t\n\t\t$query->where($db->quoteName('a.published') . ' = 1');\n\t\t\n\t\t$db->setQuery($query);\n\t\t$data = $db->loadObjectList();\n\n\t\tarray_unshift($data, (object) array(\n\t\t\t'value' => 0,\n\t\t\t'text' => 'Semua Kabupaten/Kota'\n\t\t));\n\n\t\treturn $data;\n\t}", "function listar2(){\n\t\t\n\t\t$sql = \"SELECT c.id, c.codigo, c.nombre from prd_pasos_producto a\n\t\tinner join prd_pasos_acciones_producto b on b.id_paso=a.id\n\t\tinner join app_productos c on c.id=a.id_producto\n\t\tgroup by a.id_producto;\";\n\n\t\treturn $this->queryArray($sql);\n\t}", "public function consultarTodos()\n\t{\n\t\t$sql = \t' SELECT colores.* '.\n\t\t\t\t' FROM colores '.\n\t\t\t\t' ORDER BY nombre ';\n\t\n\t\t$stmt = $this->getEntityManager()->getConnection()->prepare($sql);\n\t\t$stmt->execute();\n\t\t$result = $stmt->fetchAll(); //Se utiliza el fecth por que es un registro\n\t\t\n\t\t//Elimina los espacios\n\t\tforeach($result as &$reg)\n\t\t{\n\t\t\t$reg['nombre'] = trim($reg['nombre']);\n\t\t}//end foreach\n\t\n\t\treturn $result;\n\t}", "public function gets() {\r\n $query = $this->db->query(\"SELECT o.*, f.fabrica, p.producto, a.articulo, a.posicion, pl.idplano, pl.plano, pl.revision\r\n FROM ((((ots o INNER JOIN fabricas f ON o.idfabrica = f.idfabrica AND o.activo = '1')\r\n INNER JOIN articulos a ON a.idarticulo = o.idarticulo)\r\n INNER JOIN productos p ON a.idproducto = p.idproducto)\r\n LEFT JOIN planos pl ON a.idplano = pl.idplano)\r\n ORDER BY\r\n o.numero_ot DESC\");\r\n \r\n return $query->result_array();\r\n }", "function LbuscarExamenesLaboratorio($datos) {\n $o_DLaboratorio = new DLaboratorio();\n $resultado = $o_DLaboratorio->DbuscarExamenesLaboratorio($datos);\n foreach ($resultado as $key => $value) {\n array_push($resultado[$key], \"../../../../fastmedical_front/imagen/icono/b_ver_on.gif ^ Puntos Control\");\n }\n return $resultado;\n }", "function SelectValuesUnidadMedicoArray($db_conx, $uid) {\r\n $data = array();\r\n $sql = \"SELECT uni_codigo, uni_descrip FROM vunidadmedico WHERE med_codigo = $uid\";\r\n $query = mysqli_query($db_conx, $sql);\r\n\r\n $n_filas = $query->num_rows;\r\n $c = 0;\r\n while ($row = mysqli_fetch_array($query)) { \r\n $data[$c] = $row[0] . \"*\" . $row[1];\r\n $c++;\r\n }\r\n return $data;\r\n}", "public static function TraerTodosLosAlumnos(){\n\t\t$sql = 'SELECT * FROM personas';\n $consulta = AccesoDatos::ObtenerObjetoAccesoDatos()->ObtenerConsulta($sql);\n\t $consulta->execute();\t\t\t\n\t\treturn $consulta->fetchAll();\t\n\t}", "function getAllCargos(){\n\t\t\tDB_DataObject::debugLevel(0);\n\t\t\t$obj = DB_DataObject::Factory('VenCargo');\n\t\t\t$data=false;\n\t\t\t$obj->find();\n\t\t\t$i=0;\n\t\t\twhile($obj->fetch()){\n\t\t\t\t$data[$i]['idCargo']=$obj->idCargo;\n\t\t\t\t$data[$i]['nombre']=utf8_encode($obj->nombre);\n\t\t\t\t$data[$i]['estado']=$obj->estado;\n\t\t\t\t$data[$i]['fechaMod']=$obj->fechaMod;\n\t\t\t\t$data[$i]['fecha']=$obj->fecha;\t\n\t\t\t\t$i++;\t\t\n\t\t\t}\n\t\t\t$obj->free();\n\t\t\t//printVar($data,'getAllCargos');\n\t\t\treturn $data;\n\t\t}", "function mysql12($campos,$tabla,$columna1,$queBuscar1){\n\t$query01=\"SELECT $campos FROM $tabla WHERE $columna1 = '$queBuscar1'\";\n $query02=mysql_query($query01);\n\t$resultado = array();\n\twhile($line = mysql_fetch_array($query02, MYSQL_ASSOC)){\n\t\t$resultado[] = $line;\n\t}\n\treturn $resultado;\n\n/*\nComo ver los datos\n\nforeach( $resultado as $value){\n\tforeach( $value as $value){\n\t\techo $value.\"<br />\";\n\t}\n}\n*/\n}", "function consultarFuncionalidad()\n\t\t{\n\t\t\t\t $file = fopen(\"../Archivos/ArrayConsultarFuncionalidad.php\", \"w\");\n\t\t\t\t fwrite($file,\"<?php class consult { function array_consultar(){\". PHP_EOL);\n\t\t\t\t fwrite($file,\"\\$form=array(\" . PHP_EOL);\n\n\t\t\t$mysqli=$this->conexionBD();\n\t\t\t$query=\"SELECT * FROM funcionalidades \";\n\t\t\t$resultado=$mysqli->query($query);\n\t\t\tif(mysqli_num_rows($resultado)){\n\t\t\t\twhile($fila = $resultado->fetch_array())\n\t\t\t{\n\t\t\t\t$filas[] = $fila;\n\t\t\t}\n\t\t\tforeach($filas as $fila)\n\t\t\t{ \n\t\t\t\t$nombre=$fila['NOMBRE_FUNCIONALIDAD'];\n\t\t\t\t$descripcion=$fila['DESCRIPCION'];\n\t\t\t\tfwrite($file,\"array(\\\"nombre\\\"=>'$nombre',\\\"descripcion\\\"=>'$descripcion'),\" . PHP_EOL);\n\t\t\t}\n\t\t\t}\n\t\t\t fwrite($file,\");return \\$form;}}?>\". PHP_EOL);\n\t\t\t\t fclose($file);\n\t\t\t\t $resultado->free();\n\t\t\t\t $mysqli->close();\n\t\t}", "public static function listado() {\n $aulas = array();\n $resultset = DB::table('aulas')->get();\n foreach ($resultset as $var) {\n $aulas[$var->AULA] = $var->AULA;\n }\n return $aulas;\n }", "public function buscarDados()\n\t{\n\t\t$res = array();\n\t\t$cmd = $this->pdo->query(\"SELECT * FROM tbadm ORDER BY id_adm Desc\");\n\t\t$res = $cmd->fetchAll(PDO::FETCH_ASSOC);\n\t\treturn $res;\n\t}", "public static function get():array{\n $consulta=\"SELECT a.id AS idAccion, a.codigo AS codigoAcc, a.nombre AS nombreAcc,m.* \n\t\t\t\t\tFROM acciones a \n\t\t\t\t\t\tINNER JOIN modulos_acciones md ON a.id=md.idAccion\n\t\t\t\t\t RIGHT JOIN modulos m ON idModulo= m.id\"; //preparar la consulta\n return DB::selectAll($consulta,'Modulo');\n }", "function getDatos(){\n $res = $this->Consulta('SELECT C.*, P.id_planta FROM '.$this->Table .' C\n INNER JOIN\n equipos E ON E.id_equipos = C.`id_equipos`\n INNER JOIN\n secciones S ON S.id_secciones = E.id_secciones\n INNER JOIN\n plantas P ON P.id_planta = S.id_planta\n \n WHERE '.$this->PrimaryKey.' = '.$this->_datos);\n $resultado = $res[0];\n // $resultado = array_map('utf8_encode',$resultado);\n \n print_r( json_encode( $resultado ) );\n }", "public function Get_especilista(){\n\t\t\t$array[] = array(\"id\"=>01,\"name\"=>\"Odontologia\");\n\t\t\t$array[] = array(\"id\"=>02,\"name\"=>\"Medico General\");\n\t\t\treturn $array;\n\t\t}", "private function _consultarListaArchivos() {\n $_objMTablas = new \\cprogresa\\MTablas();\n $tabla2 = $_objMTablas->getTablaCheckBox(2);\n $tabla6 = $_objMTablas->getTablaCheckBox(6);\n //print_r($tabla2);\n //print_r($tabla6);\n $R = [];\n foreach ($tabla2 as $id => $valor) {\n $R[] = ['id' => $id, 'archivo' => $valor, 'descripcion' => $tabla6[$id]];\n }\n $this->_ok = 1;\n $this->_mensaje = \"Lista de archivos\";\n $this->_guardarLog($_SESSION['id_usu_cent'], ['accion' => 'consulta', 'metodo' => get_class() . ':_consultarListaArchivos', 'parametros' => '']);\n return $R;\n }", "function crearArrrayGrupo($name){\n\t\t\t\n\t\t\t$file = fopen(\"../Archivos/ArrayGrupo.php\", \"w\");\n\t\tfwrite($file,\"<?php class consult { function array_consultar(){\". PHP_EOL);\n\t\t\t\t \tfwrite($file,\"\\$form=array(\" . PHP_EOL);\n\t\t$mysqli=$this->conexionBD();\n\t\t$resultado=$mysqli->query(\"SELECT * FROM grupo where `NOMBRE_GRUPO` ='$name'\");\n\t\tif(mysqli_num_rows($resultado)){\n\t\twhile($fila = $resultado->fetch_array())\n\t\t\t{\n\t\t\t\t$filas[] = $fila;\n\t\t\t}\n\t\t\tforeach($filas as $fila)\n\t\t\t{ \n\t\t\t\t$nombre=$fila['NOMBRE_GRUPO'];\n\t\t\t\t$descripcion=$fila['DESCRIPCION'];\n\t\t\t\t fwrite($file,\"array(\\\"nombre\\\"=>'$nombre',\\\"descripcion\\\"=>'$descripcion'),\" . PHP_EOL);\n\t\t\t }\n\t\t}\n\t\t\t\t fwrite($file,\");return \\$form;}}?>\". PHP_EOL);\n\t\t\t\t fclose($file);\n\t\t\t\t $resultado->free();\n\t\t\t\t $mysqli->close();\n\n\t\t}", "function getAllAsArray(){\n\t\t\t\n\t\t\t$radios=$this->findAll(\"\", \"\", \"Radio.nom_radio asc\", \"\", \"\", -1);\n\t\t\t$array_radios=array();\n\t\t\tforeach($radios as $v){\n\t\t\t\t$array_radios+=array($v['Radio']['cod_radio'] => $v['Radio']['nom_radio']);\n\t\t\t}\n\t\t\treturn $array_radios;\n\t\t}", "function get_ListarClase(){\n\t$query = $this->db->query('SELECT id_clase, nombre_clase FROM clase');\n\t\n\t//si hay resultados \n\tif ($query->num_rows() > 0){\n\t\t//almacenamos en una matriz bidimensional\n\t\tforeach($query->result() as $row)\n\t\t$arrDatos[htmlspecialchars($row->id_clase, ENT_QUOTES)]=htmlspecialchars($row->nombre_clase,ENT_QUOTES);\n\t\t$query->free_result();\n\t\treturn $arrDatos;\n\t}\n\t\t\n\t$this->db->order_by('id_clase ASC');\n\treturn $this->db->get('clase')->result();\n\t}", "public function getPatientList() {\n $result = array();\n //on lance la requete dans la BDD\n $query = 'SELECT `id`,`lastname`,`firstname` FROM `patients` ORDER BY`lastname`';\n //On declare et charge l'attribut $queryResult avec : \"dans la bdd la requete\"\n $queryResult = $this->db->query($query);\n //is_object — Détermine si une variable est de type objet\n //si le resultat de la requete est bien un objet charge \n //$result avec le tableau en type objet.\n if (is_object($queryResult)){\n $result = $queryResult->fetchAll(PDO::FETCH_OBJ);\n }\n //else { $result = array(); MAIS vu qu'on l'a deja intialisé a vide au dessus, si ca rentre dans la condition du else il correspondra automatiquement a tableau vide. C'est pour ca qu'on code pas le else.\n // au final on retourne la var result dans tous les cas, sa depend de ce qu'on a chargé dedans.\n return $result;\n }", "function SHOWALL(){\r\n\r\n $stmt = $this->db->prepare(\"SELECT * FROM edificio\");\r\n $stmt->execute();\r\n $edificios_db = $stmt->fetchAll(PDO::FETCH_ASSOC);\r\n $alledificios = array(); //array para almacenar los datos de todos los edificios\r\n\r\n //Recorremos todos las filas de edificios devueltas por la sentencia sql\r\n foreach ($edificios_db as $edificio){\r\n //Introducimos uno a uno los edificios recuperados de la BD\r\n array_push($alledificios,\r\n new EDIFICIO_Model(\r\n $edificio['edificio_id'],$edificio['nombre_edif'],$edificio['direccion_edif']\r\n ,$edificio['telef_edif'],$edificio['num_plantas'],$edificio['agrup_edificio']\r\n )\r\n );\r\n }\r\n return $alledificios;\r\n }", "function geef_kolommen($categorie) {\n\t\tglobal $pdo;\n\t\t\n\t\t$tmp = array();\n\t\t\n\t\t$stmt = $pdo->prepare(\"SELECT * FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = 'auto_mate' AND `TABLE_NAME` = ?\");\n\t\t$stmt->execute(array($categorie));\n\t\t\n\t\t$rij = $stmt->fetchAll();\n\t\t\n\t\tforeach($rij as $kolom) {\n\t\t\t$tmp[] = $kolom[\"COLUMN_NAME\"];\n\t\t}\n\t\n\t\treturn $tmp;\n\t}", "function getAllData() {\n \n $sql = \"call spGetAllpedTipoLineas(@out_status);\";\n $rs = $this->db->Execute($sql);\n \t$data = $rs->getArray();\n\t\t$rs->Close();\n \treturn $data; \n \n }", "public function devuelve_secciones(){\n \n $sql = \"SELECT * FROM secciones ORDER BY nombre\";\n $resultado = $this -> db -> query($sql); \n return $resultado -> result_array(); // Obtener el array\n }", "public function getCargosArray()\n {\n $cargos = $this->getCargos();\n $ArrayCar = Array();\n if ($cargos) {\n foreach ($cargos as $car){\n $ArrayCar[$car['id']] = $car['carNombre'];\n }\n }\n return $ArrayCar;\n }", "function devuelvePalabras() {\n\n $sql = \"SELECT palabra FROM palabras ORDER BY palabra\";\n $resultado = $this -> db -> query($sql);\n\n $tmp = array();\n foreach ($resultado -> result() as $row) {\n array_push($tmp, $row -> palabra);\n }\n\n return $tmp;\n }", "public function inicializacionBusqueda()\r\n {\r\n $dataEmpCli = array();\r\n $filterEmpCli = array();\r\n\r\n try {\r\n\r\n foreach ($this->getEmpresaTable()->getEmpresaProvReport() as $empresa) {\r\n $dataEmpCli[$empresa->id] = $empresa->NombreComercial.' - '.$empresa->RazonSocial.' - '.$empresa->Ruc;\r\n $filterEmpCli[$empresa->id] = [$empresa->id];\r\n }\r\n\r\n } catch (\\Exception $ex) {\r\n $dataEmpCli = array();\r\n }\r\n\r\n $formulario['prov'] = $dataEmpCli;\r\n $filtro['prov'] = array_keys($filterEmpCli);\r\n return array($formulario, $filtro);\r\n }", "function getAllFromProizvod(){\n\t\treturn $this->ime . \"&nbsp\" . $this->imeProizvođača . \"&nbsp\" \n\t\t. $this->prezimeProizvođača . \"&nbsp\" . $this->cijena;\n\t}", "function obtenerRegistros($datos = []) {\n\t\t$this->openConnection();\n\t\t$sentencia = $this->conn->prepare($this->consulta);\n\t\tif(!empty($datos)){\n\t\t\tforeach ($datos as $key => $value) {\n\t\t\t\t$sentencia->bind_param($key, $value);\n\t\t\t}\n\t\t}\n\t\t$sentencia->execute();\n\t\t$reg = $sentencia->get_result();\n\t\t$rows = $reg->num_rows;\n\t\t$i = 0;\n\t\tdo {\n\t\t\t$this->registros[] = $reg->fetch_assoc();\n\t\t\t$i++;\n\t\t} while ($i < $rows);\n\t\t$this->closeConnection();\n\t}", "public function gen_dd_array()\n {\n $vec = array();\n if($result = $this->get($this->_table) )\n {\n foreach($result as $reg)\n { \n $vec[$reg->id] = $reg->name;\n }\n }\n return $vec;\n }", "function describir_campos($tabla_x,$bd_x=\"\"){\r\n\t\tif($bd_x!=\"\"){\r\n\t\t\t$bd = $bd_x.\".\";\r\n\t\t}#end if\r\n\t\t$query_x = \"SHOW FIELDS FROM \".$bd.$tabla_x;\r\n\t\t$result = mysqli_query($this->conexion,$query_x);\r\n\t\tif($result){\r\n\t\t\t$n_filas = mysqli_num_rows($result);\r\n\t\t\t$this->serial[$tabla_x] = \"\";\r\n\t\t\tfor ($i=0;$i<$n_filas;$i++){\r\n\t\t\t\t$row_x = mysqli_fetch_array($result);\r\n\t\t\t\tif($i==0){\r\n\t\t\t\t\t$this->campo_clave = $row_x[0];\r\n\t\t\t\t}#end if\r\n\t\t\t\t$this->nombre[$i] = $row_x[0];\r\n\t\t\t\t$this->tipo[$i] = $row_x[1];\r\n\t\t\t\tif($row_x[\"Key\"] == \"PRI\"){\r\n\t\t\t\t\t$this->campo_clave = $row_x[0];\r\n\t\t\t\t}#end if\r\n\t\t\t}#end next i\r\n\t\t}#end if result\r\n\t}", "public function lcargarTablaUnidadesxTipoxMaterialLaboratorio($parametros) {\n $oDLaboratorio = new DLaboratorio();\n $rs = $oDLaboratorio->dcargarTablaUnidadesxTipoxMaterialLaboratorio($parametros);\n\n\n// foreach ($rs as $i => $valuey) {\n// array_push($rs[$i], \"../../../../fastmedical_front/imagen/icono/editar.png ^ Editar Examen\");\n// }\n//\n// foreach ($rs as $j => $valuem) {\n// array_push($rs[$j], \"../../../../fastmedical_front/imagen/icono/cancel.png ^ Eliminar Examen\");\n// }\n\n return $rs;\n }", "public function alumnos(){\n\t\t$crud = new CrudModel();\n\t\t$array = $crud->listarAlumnos(); //trae la consulta del modelo.\n\t\t$mensaje = session('condicion');//para ver si la insercion se realizo correctamente\n\t\t$alumnos = ['alumno' => $array,\n\t\t\t\t\t'condicion' => $mensaje\n\t\t\t\t];\n\n\t\t$data = ['titulo' => 'C.I.A'];\n\t\t$vistas = view('Alumnos/header',$data).\n\t\tview('Alumnos/frmAlumno').\n\t\tview('Alumnos/tablaAlumno', $alumnos);\n\n\t\treturn $vistas;\n\t}", "function liste_array()\n {\n global $conf,$langs;\n\n $projets = array();\n\n $sql = \"SELECT rowid, libelle\";\n $sql.= \" FROM \".MAIN_DB_PREFIX.\"adherent_type\";\n $sql.= \" WHERE entity = \".$conf->entity;\n\n $resql=$this->db->query($sql);\n if ($resql)\n {\n $nump = $this->db->num_rows($resql);\n\n if ($nump)\n {\n $i = 0;\n while ($i < $nump)\n {\n $obj = $this->db->fetch_object($resql);\n\n $projets[$obj->rowid] = $langs->trans($obj->libelle);\n $i++;\n }\n }\n }\n else\n {\n print $this->db->error();\n }\n\n return $projets;\n }" ]
[ "0.6818038", "0.6660854", "0.6501254", "0.64801115", "0.6469036", "0.6458958", "0.6433052", "0.6423134", "0.6363242", "0.636321", "0.6346247", "0.6321122", "0.627119", "0.62668467", "0.62418115", "0.62343717", "0.62209296", "0.62042135", "0.62026334", "0.62018996", "0.61853755", "0.6184397", "0.6162785", "0.6162275", "0.6149947", "0.6130551", "0.6111037", "0.6109174", "0.6101524", "0.6101175", "0.6100999", "0.6100483", "0.60925305", "0.6091374", "0.6079763", "0.6078493", "0.60736454", "0.6065706", "0.60624194", "0.6056383", "0.602819", "0.60155404", "0.6014758", "0.6010663", "0.60078275", "0.6003266", "0.6000885", "0.5998477", "0.59971815", "0.5995328", "0.59946644", "0.5982233", "0.597011", "0.59697473", "0.59633803", "0.5958968", "0.5956639", "0.59535336", "0.595321", "0.594584", "0.5943058", "0.59425676", "0.5941369", "0.5939088", "0.59324855", "0.5921221", "0.59185547", "0.590241", "0.5902106", "0.5901918", "0.58982265", "0.5890324", "0.5887837", "0.5886671", "0.5885434", "0.5880784", "0.5873753", "0.58721125", "0.58638275", "0.5860702", "0.58545905", "0.58534", "0.58504814", "0.5849124", "0.58445865", "0.58422494", "0.5840518", "0.58391625", "0.5837408", "0.58370054", "0.5835232", "0.58343464", "0.5830814", "0.5829933", "0.58296216", "0.5826681", "0.5823452", "0.58220154", "0.5820962", "0.5819261", "0.5815566" ]
0.0
-1
metodo para eliminar un registro segun id
public function delete($id) { $sql = "DELETE FROM " . $this->table_name . " WHERE " . $this->id_field . " = ?"; $req = Database::getBdd()->prepare($sql); return $req->execute(array($id)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function eliminar($id)\n {\n }", "public function eliminar($id)\n {\n //\n }", "public function eliminar($id)\n {\n //\n }", "public function eliminar($id)\n {\n }", "public function eliminar($id)\n {\n }", "public function eliminar($id)\n {\n }", "protected\n function eliminar($id)\n {\n }", "public function eliminarPorId($id)\n {\n }", "public function eliminar() {\n //$this->delete();\n $campo_fecha_eliminacion = self::DELETED_AT;\n $this->$campo_fecha_eliminacion = date('Y-m-d H:i:s');\n $this->status = 0;\n $this->save();\n }", "function Eliminar(){\n\t \n\t $this->Model->Eliminar($_GET['id']);\n\t\t\n\t }", "function Elimina($id){\r\n\t\r\n\t\t$db=dbconnect();\r\n\t\r\n\t\t/*Definición del query que permitira eliminar un registro*/\r\n\t\t$sqldel=\"DELETE FROM productos WHERE id_producto=:id\";\r\n\t\r\n\t\t/*Preparación SQL*/\r\n\t\t$querydel=$db->prepare($sqldel);\r\n\t\t\t\r\n\t\t$querydel->bindParam(':id',$id);\r\n\t\t\r\n\t\t$valaux=$querydel->execute();\r\n\t\r\n\t\treturn $valaux;\r\n\t}", "public function eliminar($id)\n {\n if (AuthHelper::obtenerUsuarixAdmin() == 2){\n\n if (!empty($_POST['pais'])) {\n $id = $_POST['pais'];\n }\n $this->modelpaises->eliminar($id);\n header(\"Location: \" . BASE_URL . 'home');\n } else {\n $this->view->mostrarError(\"Acceso denegado\");\n }\n }", "public function remove($id);", "public function remove($id);", "public function eliminarAction()\n {\n $this->disableAutoRender();\n\n /* Recibo la lista de Ids separado por comas */\n $idList = $this->_getParam('id');\n\n if ($idList) {\n /* Convierto la lista a un Array */\n $idArray = explode (\",\", $idList);\n\n /* Recorro el array eliminando cada Id */\n foreach ($idArray as $id) {\n try {\n $resultado = $this->_modeloMovimiento->eliminar($id, $this->_usuario);\n \n if($resultado == 0) { /* Si no se eliminó */\n echo 'error|No está autorizado a eliminar este registro'; \n exit;\n }\n \n \n } catch(Exception $ex) {\n $message = $ex->getMessage();\n echo 'error|'.$message;\n }\n }\n }\n }", "public function eliminar($id){\n\t\t\t$transaccion = $this->loadModel(\"transaccion\");\n\t\t\t$registro=$transaccion->buscarPorId($id);\n\t\t\tif (!empty($registro)) {\n\t\t\t\t$transaccion->eliminarPorId($id);\n\t\t\t\t$this->redirect(array(\"controller\"=>\"transacciones\"));\n\t\t\t}\n\t\t}", "public function delete() {\n $conexion = StorianDB::connectDB();\n $borrado = \"DELETE FROM cuento WHERE id=\\\"\".$this->id.\"\\\"\";\n $conexion->exec($borrado);\n }", "public function EliminarId()\n\t{\n\t\theader (\"content-type: application/json; charset=utf-8\");\n\t\tif($this->_Method == \"POST\")\n\t\t{\n\t\t\t// Validaciones\n\t\t\tif(validarTokenAntiCSRF(\"_JS\"))\n\t\t\t{\n\t\t\t\t//Creamos una instancia de nuestro \"modelo\"\n\t\t\t\t$item = $this->ObtenModelPostId();\n\t\t\t\tif($item != null && $item->Eliminar())\n\t\t\t\t{\n\t\t\t\t\techo json_encode( array(\"Estado\"=>1) );\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\techo json_encode( array(\"Estado\"=>0, \"Error\"=>\"No eliminador\" ) );\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\techo json_encode( array(\"Estado\"=>0, \"Error\"=>\"No permitido, por fallo de Token anti CSRF.\" ) );\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\techo json_encode( array(\"Estado\"=>0, \"Error\"=>\"No permitido, solo por POST.\") );\n\t\t}\n\t}", "public function eliminar()\n\t{\n\t\t$idestado = $_POST['idestado'];\n\t\t//en viamos por parametro el id del estado a eliminar\n\t\tEstado::delete($idestado);\n\t}", "public function eliminar($id)\n {\n /**\n * Establezco el nivel de acceso \n */\n// Session::acceso('admin');\n $this->_acl->acceso('eliminar_post');\n\n if (!$this->filtrarInt($id)) {\n// $this->redireccionar('option=Personal');\n }\n\n if (!$this->_paciente->getContacto($this->filtrarInt($id))) {\n// $this->redireccionar('option=Personal');\n }\n\n $resultado = $this->_paciente->eliminarOSocialPaciente('id = ' . $this->filtrarInt($id));\n\n if ($resultado > 0) {\n echo $resultado;\n exit;\n } else {\n echo 'No se pudo eliminar el registro';\n exit;\n }\n// $this->redireccionar('option=Personal');\n }", "abstract public function remove($id);", "function eliminarRuta($id) {\n $sql = \"DELETE FROM ruta WHERE id='\" . $id . \"'\";\n $con = new DB();\n $result = $con->exec($sql);\n $con = null;\n }", "public function eliminar() {\n\t\t\n\t\t\n\t\t$juradodni = $_GET[\"dniJurado\"];\n\t\t\n\t\t$this -> JuradoMapper -> delete($juradodni);\n\n\t\t\n\t\t$this -> view -> redirect(\"jurado\", \"listar\");\n\t\t//falta cambiar\n\t}", "public function eliminar($id) {\n $eliminarUsuario = new SqlQuery(); //creo instancia de la clase encargada de armar sentencias\n (string) $tabla = get_class($this); //adquiero el nombre de la clase para usar en la tabla\n try {\n $this->refControladorPersistencia->get_conexion()->beginTransaction(); //comienzo la transacción\n $this->refControladorPersistencia->ejecutarSentencia(\n $eliminarUsuario->eliminar($tabla, $id)); //Uso la funcion correspondiente de controlador pesistencia \n $this->refControladorPersistencia->get_conexion()->commit(); //ejecuto la acción para eliminar de forma lógica a los ususario\n } catch (PDOException $excepcionPDO) {//excepcion para controlar los errores\n echo \"<br>Error PDO: \" . $excepcionPDO->getTraceAsString() . '<br>';\n $this->refControladorPersistencia->get_conexion()->rollBack(); //si salio mal hace un rollback\n } catch (Exception $exc) {\n echo $exc->getTraceAsString();\n $this->refControladorPersistencia->get_conexion()->rollBack(); //si hay algún error hace rollback\n }\n return [\"eliminado\"=>\"eliminado\"];\n }", "public function remover()\n\t{\n\t\t$sql = \"DELETE FROM $this->tabela WHERE $this->chave_primaria = :id\";\n\n\t\t$this->resultado = $this->conn->prepare($sql);\n\t\t$this->resultado->bindValue(':id', $this->id);\n\n\t\treturn $this->resultado->execute();\n\t}", "function eliminar($id) {\n\t\t\tif ($this->con->conectar() == true) {\n\t\t\t\t$sql = \"DELETE FROM detalle_liquidacion WHERE detliqId = '\".$id.\"'\";\n\t\t\t\t\t\t\n\t\t\t\treturn mysql_query($sql) or die (mysql_error());\n\t\t\t}\n\t\t}", "public function delete($id_rekap_nilai);", "public function remove($id){\n\t\t\t$sql = \"DELETE FROM aluno WHERE id = :id\";\n\n\t\t\t$query = $this->conexao->prepare($sql);\n\n\t\t\t$query->execute(['id'=>$id]);\n\t\t}", "public static function eliminarPorID($id)\n\t{\n\t\t// Crear una instancia de la conexion\n\t\t$conexion = new Conexion;\n\n\n\t\t// Elimina al rol de la bd encontrado por id\n\t\t$conexion->conn->query(\"DELETE FROM \". static::$tablaConsulta . \" WHERE id = $id LIMIT 1\");\n\t}", "public function destroy($id)\n {\n $empleado = Empleados::find($id);\n $empleado->eliminado = true;\n $empleado->save();\n }", "public function excluirAnuncio($id){\n global $pdo;\n $sql = $pdo->prepare(\"DELETE FROM anuncios_imagens WHERE id_anuncio = :id_anuncio\"); // vai remover o registro de imagens\n $sql->bindValue(\":id_anuncio\", $id);\n $sql->execute(); \n\n $sql = $pdo->prepare(\"DELETE FROM anuncios WHERE id = :id\"); \n $sql->bindValue(\":id\", $id);\n $sql->execute(); \n\n \n\n\n\n }", "public function del($id)\n {\n $this->db->remove(array('id'=>$id));\n }", "public function eliminarderivoAction()\n {\n $this->disableAutoRender();\n\n /* Recibo la lista de Ids separado por comas */\n $idList = $this->_getParam('id');\n\n if ($idList) {\n /* Convierto la lista a un Array */\n $idArray = explode (\",\", $idList);\n\n /* Recorro el array eliminando cada Id */\n foreach ($idArray as $id) {\n try {\n $resultado = $this->_modeloDerivotemporal->eliminar($id, $this->_usuario);\n\t\t\t\t\t\n if($resultado == 0) { /* Si no se eliminó */\n echo 'error|No está autorizado a eliminar este registro'; \n exit;\n }\n\t\t\t\t\n\t\t} catch(Exception $ex) {\n $message = $ex->getMessage();\n echo 'error|'.$message;\n }\n }\n }\n }", "function eliminarTipoDeMatricula($id){\n \t$pdo = DatabaseCao::connect();\n mysql_query(\"DELETE FROM ca_tipo_matricula WHERE id = ? ;\");\n $sql = \"DELETE FROM ca_tipo_matricula WHERE id = ?\";\n $q = $pdo->prepare($sql);\n $q->execute(array($id));\n DatabaseCao::disconnect();\n }", "public function eliminar ($idpersona)\n\t{\n\t\t$sql=\"DELETE FROM persona WHERE idpersona='$idpersona';\";\n/*echo \"<pre><br>Elin¡minas:<br>\";\nprint_r($sql);\necho \"</pre>\";\ndie();*/\n\t\treturn ejecutarConsulta($sql);\n\t}", "public function excluir($id){\n\t\t\tglobal $app;\n\t\t\t$sth = $this->PDO->prepare(\"DELETE FROM sedecchamados WHERE _id = :id\");\n\t\t\t$sth ->bindValue(':id',$id);\n\t\t\t$app->render('default.php',[\"data\"=>['status'=>$sth->execute()==1]],200); \n\t\t}", "public function delete($id) \r\n {\r\n $this->load(array('id=?',$id));\r\n $this->erase();\r\n }", "public function borrar() {\n $id = $this->input->post(\"id\");\n $this->AdministradorModel->delete($this->tabla, $id);\n }", "function informesupervisor_eliminar($id=null)\n\t\t{\n\t\t\t$informesupervisor = $this->Informesupervisor->find('first',array(\n\t\t\t\t\t\t\t\t\t'fields'=>array('Informesupervisor.tituloinformesup'),\n\t\t\t\t\t\t\t\t\t'conditions'=>array('Informesupervisor.idinformesupervision'=>$id)));\n\t\t\tif (!$this->request->is('post')) \n\t\t\t{\n\t \tthrow new MethodNotAllowedException();\n\t \t}\n\t \tif (!$this->Informesupervisor->exists($id)) \n\t\t\t{\n \t\tthrow new NotFoundException('No se puede encontrar el informe de supervisión', 404);\n \t\t}\n\t\t\telse {\n\t\t if ($this->Informesupervisor->delete($id)) \n\t\t {\n\t\t $this->Session->setFlash('El informe \"'.$informesupervisor['Informesupervisor']['tituloinformesup'] .'\" ha sido eliminado.',\n\t\t \t\t\t\t\t\t 'default', array('class'=>'success'));\n\t\t $this->redirect(array('action' => 'informesupervisor_index'));\n\t\t \t} else {\n\t \t\t$this->Session->setFlash('No se puede eliminar el Informe de Supervisión seleccionado, se han encontrado referencias');\n\t \t$this->redirect(array('action' => 'informesupervisor_index'));\n\t \t}\n\t\t\t}\n\t\t}", "public static function eliminar(){\n if ($_SERVER['REQUEST_METHOD'] === 'POST') {\n $cita = Cita::find($_POST['id']);\n $cita->eliminar();\n header('Location:' . $_SERVER['HTTP_REFERER']);\n }\n }", "public function eliminar(Request $request, $id)\n {\n Asignacion::destroy($id);\n\n $bitacora = new Bitacora;\n $bitacora->user_id = Auth::id();\n $consulta = User::where('id',Auth::id())->select(\"nombres\",\"apellidos\",\"rolprimario\",\"rolsecundario\")->get();\n foreach($consulta as $item){\n $nombres = $item->nombres;\n $apellidos = $item->apellidos;\n $rolprimario = $item->rolprimario;\n $rolsecundario = $item->rolsecundario;\n }\n \n $bitacora->usuario = $nombres.\" \".$apellidos;\n $bitacora->rol = $rolprimario.\", \".$rolsecundario;\n $bitacora->fecha = Carbon::now()->setTimezone('America/Caracas')->toDateString();\n $bitacora->hora = Carbon::now()->setTimezone('America/Caracas')->toTimeString();\n $bitacora->accion = \"Eliminada asignacion de materia-grupo-horario\";\n $bitacora->direccion_ip = $request->getClientIp();\n $bitacora->save();\n\n return redirect('asignacion');\n }", "public function eliminar()\n {\n if (isset ($_REQUEST['id'])){\n $id=$_REQUEST['id'];\n $miConexion=HelperDatos::obtenerConexion();\n $resultado=$miConexion->query(\"call eliminar_rubro($id)\");\n }\n }", "public function societeSupprimerUn($id)\n\t{\n\t\tGestion::supprimer(\"Societe\",\"idSociete\",$id);// votre code ici\n\t}", "function borrar(){\n $id=$_POST[\"id\"];\n $consulta=\"DELETE FROM usuarios WHERE id = \".$id.\"\";\n echo $consulta. \"<br>\";\n \n\n $resultado = $conector->query($consulta);\n mostrarListado();\n }", "public function delete () {\n $this->db->delete('emprestimos', array('id_emprestimo' => $this->id_emprestimo));\n }", "function elimina_record($id){\n\n $mysqli = connetti();\n\n $sql = \"DELETE FROM spesa WHERE id =\" . $id;\n\n //var_dump($sql); die();\n\n $mysqli->query($sql);\n chiudi_connessione($mysqli);\n}", "public function eliminar($objeto){\r\n\t}", "public function excluir(){\r\n return (new Database('cartao'))->delete('id = '.$this->id);\r\n }", "public function eliminar($id)\n {\n try \n {\n \t$stm = $this->pdo\n \t ->prepare(\"DELETE FROM pedidos WHERE id = ?\");\t\t\t \n\n \t$stm->execute(array($id));\n } catch (Exception $e) \n {\n \tdie($e->getMessage());\n }\n }", "function eliminar($id) {\n\t\t\tif ($this->con->conectar() == true) {\n\t\t\t\t$result = mysql_query(\"DELETE FROM detalle_liquidacion WHERE detliqLiquidacionCodigo = '\".$id.\"'\");\n\t\t\t\t$result = mysql_query(\"DELETE FROM liquidacion WHERE liquidacionCodigo = '\".$id.\"'\");\n\t\t\t\t\n\t\t\t\treturn $result;\n\t\t\t}\n\t\t}", "public function eliminar($data)\n {\n $cliente=$this->db->query('delete from tab_cliente where id_cliente='.$data); \n }", "public function eliminar($id){\r\n //se eliminan todos los datos de este usuario de la tabla asignación\r\n return $this->db->delete('user', array('id' => $id));\r\n }", "final public function delete() {\n global $config; \n # Borrar el elemento de la base de datos\n $this->db->query(\"DELETE FROM guarderia_2 WHERE id_guarderia = $this->id\");\n # Redireccionar a la página principal del controlador\n $this->functions->redir($config['site']['url'] . 'sedes/&success=true');\n }", "public static function remove ($id) {\n\n $db = Zend_Registry::get('dbAdapter');\n $db->delete('orte', 'orte.plz = ' . $id);\n\n }", "public static function delete($id){\n\t\t$db=Db::getConnect();\n\t\t$delete=$db->prepare('DELETE FROM empleado WHERE id=:id');\n\t\t$delete->bindValue('id',$id);\n\t\t$delete->execute();\t\t\n\t}", "function eliminarUser($id) {\n $sql = \"DELETE FROM usuario WHERE id='\" . $id . \"'\";\n $con = new DB();\n $result = $con->exec($sql);\n $con = null;\n }", "public function eliminar_delincuente($id)\n {\n\n $this->db->delete('delincuente_has_delito', array('delincuente_iddelincuente' => $id));\n\n $this->db->delete('delincuente', array('iddelincuente' => $id));\n }", "public function eliminar($id) {\n\n $datosLibro = new Libro;\n //Validar que exista un archivo\n if($datosLibro) {\n //ubicar el archivo y su ruta\n $rutaArchivo = base_path('public').$datosLibro->imagen;\n //validar que exista lo anterior y si es asi eliminarlo\n if($rutaArchivo) {\n unlink($rutaArchivo);\n }\n $datosLibro->delete();\n }\n return response()->json(\"Registro Borrado\");\n }", "public function deletar($id){\r\n\t\t$sql = 'DELETE FROM oficina WHERE id = :id';\r\n\t\t$consulta = $conexao->prepare($sql);\r\n\t\t$consulta->bindValue(\":id\",$id);\r\n\t\t$consulta->execute();\r\n\t}", "function removeRegistro($id) {\n GLOBAL $con;\n\n //busca info\n $querybusca = \"select * from kardexs where id='\" . $id . \"'\";\n $qry = mysql_query($querybusca);\n $linha = mysql_fetch_assoc($qry);\n\n //Apagua\n $query = \"delete from kardexs where id='\" . $id . \"'\";\n mysql_query($query, $con) or die(mysql_error());\n\n if (saldoExiste($linha['produto_id'], $linha['estoque_id'])) {\n //atualiza retirando saldo\n $saldoAtual = saldoByEstoque($linha['produto_id'], $linha['estoque_id']);\n if ($linha['sinal'] == '+') {\n $saldoAtual_acerto = $saldoAtual - $linha['qtd'];\n } else {\n $saldoAtual_acerto = $saldoAtual + $linha['qtd'];\n }\n\n\n saldo_atualiza($linha['produto_id'], $linha['estoque_id'], $saldoAtual_acerto);\n }\n}", "public function excluir(){\r\n return (new Database('atividades'))->delete('id = '.$this->id);\r\n }", "function eliminarDiaryUser($id) {\n $sql = \"DELETE FROM diario WHERE id='\" . $id . \"'\";\n $con = new DB();\n $result = $con->exec($sql);\n $con = null;\n }", "public function remove(){\n if(!empty($_POST['id'])){\n $val = new ValidaModel();\n $val->Idvalida=$_POST['id'];\n $val->del();\n }\n header('location: '.FOLDER_PATH.'/Valida');\n }", "function supprimerEtablissement ($connexion, $id) {\r\n\r\n $req = \"DELETE FROM Etablissement WHERE id=?\";\r\n $stmt = $connexion -> prepare ($req);\r\n $ok = $stmt -> execute (array ($id));\r\n return $ok;\r\n\r\n }", "function eliminar(){\n global $conexion, $data;\n $id = $data[\"id\"];\n $eliminado = $data[\"eliminado\"];\n $resultado = mysqli_query($conexion,\"UPDATE usuario SET usu_eliminado='$eliminado' WHERE usu_id='$id'\");\n echo validarError($conexion, true, $resultado);\n }", "function supprimer($id){\n try{\n $link= connecter_db();\n $rp=$link->prepare(\"delete from etudiant where id=?\");\n $rp->execute([$id]);\n}catch(PDOException $e ){\ndie (\"erreur de suppression de l'etudiant dans la base de donnees \".$e->getMessage());\n}\n}", "public function eliminarEmpresaAction($id){\n\t\t//Conectar con la base de datos.\n\t\t$em = $this->getDoctrine()->getManager();\n\t\t$empresa = $em->getRepository('TheClickCmsAdminBundle:Empresa')->find($id);\n\t\t$em->remove($empresa);\n\t\t$em->flush();\n\t\treturn new Response('Usuario Eliminado');\n\t}", "public function del($id)\n {\n }", "public function delete($id)\n {\n mysqli_query($this->koneksi,\"delete from formulir where id='$id'\");\n }", "public function eliminar()\n\t{\n\t\t// Toma el id del rol actual\n\t\t$id = $this->id;\n\n\n\t\t// Crear una instancia de la conexion\n\t\t$conexion = new Conexion;\n\n\n\t\t// Elimina al rol de la bd encontrado por id\n\t\tif($conexion->conn->query(\"DELETE FROM \". static::$tablaConsulta . \" WHERE id = $id LIMIT 1\")) {\n\n\t\t\t// Devolver un uno si fue un exito\n\t\t\treturn 1;\n\n\t\t} else {\n\n\t\t\t// Devolver un 0 si ocurrio un error\n\t\t\treturn 0;\n\t\t}\n\t}", "public function supprimerAction($id){\r\n $this->modele->getManager()->supprimer(\"enseignant\", $id);\r\n $this->listerAction();\r\n }", "function delete($id) {\n $this->db->where('id', $id);\n $this->db->delete('rit');\n }", "function delete() {\n \tglobal $mysql;\n \tif(empty($this->id)) return;\n \t$tablename = $this->class_name();\n \t$id = $this->id;\n \t$query = \"DELETE FROM $tablename WHERE id=$id\";\n \t$mysql->update($query);\n }", "public function Remove($id){\n\n $query = \"DELETE FROM \" . $this->tableName . \" WHERE id_sala = :id\";\n $parameters[\"id\"] = $id;\n\n try{\n $this->connection = Connection::GetInstance();\n $this->connection->ExecuteNonQuery($query, $parameters);\n\n } catch (Exception $ex){ \n throw $ex;\n }\n }", "public static function delById($id) \n { // se genera el metodo borra por ID, complementar\n $sql = \"delete from \".self::$tablename.\" where idnitHotel=$id\";\n }", "function excluirPessoa(){\r\n $banco = conectarBanco();\r\n $sql = \"DELETE FROM pessoa WHERE id = '{$_POST[\"id\"]}'\";\r\n $banco->query($sql); // Passa a query fornecida em $sql para o banco de dados\r\n $banco->close(); // Fecha o banco de dados\r\n voltarMenu(); // Volta para a pagina inicial da agenda\r\n}", "public function deleteVesti($id){\n\t\t\t$this->db->where('skolaId', $id);\n\t\t\t$this->db->delete('vesti');\n\t\t}", "public function etatSupprimerUn($id)\n\t{\n\t\tGestion::supprimer(\"Etat\",\"idEtat\",$id);// votre code ici\n\t}", "function delete($id);", "function eliminar()\n{\n\t$sql=\"delete FROM slc_unid_medida WHERE id_unid_medida ='$this->cod'\";\n\t\t$result=mysql_query($sql,$this->conexion);\n\t\tif ($result) \n\t\t\t return true;\n\t\telse\n\t\t\t return false;\n\t\n}", "function delete()\n\t{\n\t\tSQL::query(\"delete from {$this->_table} where id = {$this->_data['id']}\");\n\t}", "function eliminaRuta()\r\n\t{\r\n\t\t$query = \"DELETE FROM \" . self::TABLA . \" WHERE IdRuta = \".$this->IdRuta.\";\";\r\n\t\treturn parent::eliminaRegistro( $query);\r\n\t}", "public function delete($id){\n $this->db->where('id', $id);\n $this->db->delete('pegawai'); // Untuk mengeksekusi perintah delete data\n }", "function eliminarPoi($id) {\n $sql = \"DELETE FROM poi WHERE id='\" . $id . \"'\";\n $con = new DB();\n $result = $con->exec($sql);\n $con = null;\n }", "public function remove(){\n $stmt = $this->conn->prepare(\"DELETE FROM tbltodo WHERE id=:id\");\n $stmt->bindparam(\":id\",$this->id);\n $stmt->execute();\n return true;\n }", "function eliminar(){\n\t\t$this->load->helper('url');\n\t\t$id=$this->input->post('documento');\n\t\t\n\t\t$this->load->model('Investigador_Model');\n\t\t$this->Investigador_Model->eliminar($id);\n\t\tredirect('Investigador_Controller');\n\t}", "public function eliminar(){\n if(!isLoggedIn()){\n redirect('usuarios/login');\n }\n //check User Role -- Only ADMINISTRADOR allowed\n if(!checkLoggedUserRol(\"ADMINISTRADOR\")){\n redirect('dashboard');\n }\n\n if($_SERVER['REQUEST_METHOD'] == 'POST'){\n $data = [\n 'especialidadToDelete' => trim($_POST['especialidadToDelete'])\n ];\n \n // Validar carga de especialidadToDelete\n if(empty($data['especialidadToDelete'])){\n $data['especialidadToDelete_error'] = 'No se ha seleccionado la especialidad a eliminar';\n }\n\n // Asegurarse que no haya errores\n if(empty($data['especialidadToDelete_error'])){\n // Crear especialidad\n if($this->especialidadModel->eliminarEspecialidad($data['especialidadToDelete'])){\n flash('especialidad_success', 'Especialidad eliminada exitosamente');\n redirect('especialidades');\n }\n else{\n die('Ocurrió un error inesperado');\n }\n }\n else{\n flash('especialidad_error', $data['especialidadToDelete_error'], 'alert alert-danger');\n redirect('especialidades');\n }\n }\n }", "public function eliminarVentas($id_unico){\n //echo($id_unico);\n date_default_timezone_set('America/La_Paz');\n $fecha_actual = date(\"y-m-d H:i:s\");\n $datos['vent_prof_cab_usr_baja'] = $_SESSION['login'];\n $datos['vent_prof_cab_fech_hr_baja'] = $fecha_actual;\n $condicion = \"vent_prof_cab_cod_unico='\".$id_unico.\"'\";\n return $this->mysql->update('vent_prof_cab', $datos, $condicion);\n //$this->mysql->update('vent_prof_cab',$datos,'vent_prof_cab_cod_unico='.$id_unico.'');\n }", "function delete($id){\n\t\t$this->db->where('id', $id);\n\t\t$this->db->delete($this->table);\n }", "public function eliminarUsuario(){\r\n $sql =\"DELETE FROM usuarios WHERE IdUsuario = '{$this->idUsuario}';\";\r\n $res = $this->conexion->setQuery($sql);\r\n return $res;\r\n}", "public function eliminar($id) {\n $mensaje = \"Fallido\";\n $conexion = new Conexion();\n $consulta = $conexion->prepare('DELETE FROM facultad WHERE nombre= :idc');\n $consulta->bindParam(':idc', $id);\n if ($consulta->execute()) {\n $mensaje = \"exitoso\";\n }\n return $mensaje;\n }", "public static function eliminar($idAlumno){\r\n\t\t\t$conexion =new Conexion();\r\n\t\t\t\tif($idAlumno){\r\n\t\t\t\t\t$consulta = $conexion->prepare('DELETE FROM ' . self::TABLA .' WHERE idAlumno = :idAlumno' );\r\n\t\t\t\t\t$consulta->bindParam(':idAlumno', $idAlumno);\r\n\t\t\t\t\t$consulta->execute(); \r\n\t\t\t\t}\r\n\t\t\t$conexion = null; \r\n\t\t}", "public function eliminarProducto($id){\n $con= new conectar();\n $conexion= $con->conexion();\n $sql=\"DELETE from producto WHERE id='$id'\";\n return $result= mysqli_query($conexion, $sql);\n }", "public function delete() {\n global $DB;\n $DB->delete_records($this->get_table_name(), array('id' => $this->id));\n }", "private function delete(){\n\t\t$id = $this->objAccessCrud->getId();\n\t\tif (empty ( $id )) return;\n\t\t// Check if there are permission to execute delete command.\n\t\t$result = $this->clsAccessPermission->toDelete();\n\t\tif(!$result){\n\t\t\t$this->msg->setWarn(\"You don't have permission to delete!\");\n\t\t\treturn;\n\t\t}\n\t\tif(!$this->objAccessCrud->delete($id)){\n\t\t\t$this->msg->setError (\"There was an issue to delete, because this register has some relation with another one!\");\n\t\t\treturn;\n\t\t}\n\t\t// Cleaner all class values.\n\t\t$this->objAccessCrud->setAccessCrud(null);\n\t\t// Cleaner session primary key.\n\t\t$_SESSION['PK']['ACCESSCRUD'] = null;\n\n\t\t$this->msg->setSuccess (\"Delete the record with success!\");\n\t\treturn;\n\t}", "function delete_empresa($id)\n {\n return $this->db->delete('empresas',array('id'=>$id));\n }", "function eliminar_viaje($id) {\n $this->db->where('id_viaje', $id);\n $this->db->set('estado', 1);\n $this->db->update('viaje');\n }", "public function deleteById($id);", "public function deleteById($id);", "public function deleteById($id);", "public function deleteById($id);" ]
[ "0.8189677", "0.81148803", "0.81148803", "0.8089877", "0.8089877", "0.8089877", "0.80125785", "0.79552406", "0.77661276", "0.76358646", "0.75659734", "0.74722636", "0.7457872", "0.7457872", "0.74415386", "0.7438009", "0.7415246", "0.7395694", "0.73925334", "0.7381098", "0.73771685", "0.73497623", "0.7327732", "0.73195285", "0.729217", "0.7291037", "0.72832847", "0.72744584", "0.7260432", "0.72342485", "0.7216996", "0.72135246", "0.7208171", "0.7196029", "0.7193487", "0.71852905", "0.7179954", "0.7178219", "0.7165733", "0.7154927", "0.71463007", "0.7143818", "0.712911", "0.7127138", "0.7114704", "0.7112156", "0.7101281", "0.7095157", "0.7090443", "0.7076743", "0.7068312", "0.70679617", "0.70665693", "0.7065129", "0.7060463", "0.7054771", "0.70514625", "0.70492274", "0.70440555", "0.704244", "0.7034093", "0.7033745", "0.70294803", "0.7020851", "0.7011704", "0.7003736", "0.7001572", "0.700033", "0.69927424", "0.6988855", "0.69788986", "0.6975483", "0.69741505", "0.6970483", "0.69704294", "0.6957806", "0.695771", "0.69393307", "0.6936635", "0.69321126", "0.69265145", "0.69218135", "0.69206095", "0.69197214", "0.6919642", "0.69165534", "0.691644", "0.6915858", "0.6915852", "0.6915682", "0.6906309", "0.68986714", "0.68986005", "0.68936276", "0.6892942", "0.6889357", "0.6887916", "0.688714", "0.688714", "0.688714", "0.688714" ]
0.0
-1
metodo para obtener array de registros segun id opcional
public function get_array_data($id = null) { $result = array(); if (!empty($id)) { $result[] = $this->get_by_id($id); } else { $result = $this->showAllRecords(); } return $result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function Get_all_medico_by_especialidad($id){\n\t\t\tif($id == \"01\"){\n\t\t\t\t$array[] = array(\"id\"=>1222,\"name\"=>\"carlos enrique\");\n\t\t\t\t$array[] = array(\"id\"=>22,\"name\"=>\"juan enrique\");\n\t\t\t\treturn $array;\n\t\t\t}\n\t\t}", "function listar(int $id = null): array{\r\n global $objBanco;\r\n\r\n $cond = '';\r\n\r\n if(!is_null($id)){\r\n $cond = 'WHERE PK_ID = ' . preg_replace('/\\D/','',$id);\r\n }\r\n\r\n $result = $objBanco -> query(\"SELECT PK_ID, DS_NOME, DS_EMAIL FROM TS_USUARIO $cond\");\r\n $reg = $result -> fetchAll();\r\n\r\n return is_array($reg) ? $reg : [];\r\n}", "public function findArray($id);", "public function get($id=false)\n\t{\n\t $ds = array();\n\t $roa = array();\n\t $roc = array();\n\t $this->load->model('data_source/Data_sources', 'ds');\n\t $this->load->model('registry_object/Registry_objects', 'ro');\n\n\t if ($id)\n\t {\n\t\ttry\n\t\t{\n\t\t $reg_obj = $this->ro->getByID($id);\n\t\t}\n\t\tcatch (Exception $e)\n\t\t{\n\t\t #invalid id: ignore it\n\t\t return array();\n\t\t}\n\t\tif ($reg_obj)\n\t\t{\n\t\t $ds = array($this->ds->getByID($reg_obj->data_source_id));\n\t\t $roa = array(str_replace(\" \", \"0x20\", $reg_obj->getAttribute(\"group\")));\n\t\t $roc = array($reg_obj->class);\n\t\t}\n\t\telse\n\t\t{\n\t\t #invalid id: ignore it\n\t\t return array();\n\t\t}\n\t }\n\t else\n\t {\n\t\t$ds = $this->ds->getAll(0);\n\n\t\t$query = $this->db->distinct()->select(\"class\")->get(\"registry_objects\");\n\t\t$roc = array_map(create_function('$r', 'return $r[\"class\"];'),\n\t\t\t\t $query->result_array());\n\n\t\t$query = $this->db->distinct()->select(\"group\")->get(\"registry_objects\");\n\t\t$roa = array_map(create_function('$r', 'return str_replace(\" \", \"0x20\",$r[\"group\"]);'),\n\t\t\t\t $query->result_array());\n\t }\n\n\t foreach ($ds as $set)\n\t {\n\t\t $sets[] = $this->_from_ds($set);\n\t }\n\n\t foreach ($roc as $set)\n\t {\n\t \t$sets[] = $this->_from_class($set);\n\t }\n\n\t foreach ($roa as $set)\n\t {\n\t\t$sets[] = $this->_from_group($set);\n\t }\n\t return $sets;\n\t}", "public function getAllArr($id)\n\t{\n\t\tif(! intval( $id )){\n\t\t\treturn false;\n\t\t}\n\t\t$id=$this->db->real_escape_string($id);\n\t\t$sql = \"SELECT * FROM servicio_paquete where id_serviciopaquete=$id ;\";\n\t\t$res = $this->db->query($sql);\n\t\t$set = array();\n\t\tif(!$res){ die(\"Error getting result getAllArr\".$sql); }\n\t\telse{\n\t\t\twhile ($row = $res->fetch_assoc())\n\t\t\t\t{ $set[] = $row; }\n\t\t}\n\t\treturn $set;\n\t}", "function listarPorId($id){\r\n\t\t$sql = 'CALL sp_se_idioma(\"AND u.id = '.$id.'\"); ';\r\n\t\t$arrResultado = $this->getArrayObjs(Conexao::executarSql($sql));\r\n\t\treturn $arrResultado;\r\n\t}", "public static function getAccionModulos(int $id):array{\n $consulta=\"SELECT a.id AS idAccion, a.codigo AS codigoAcc, a.nombre AS nombreAcc,m.* \n FROM acciones a \n INNER JOIN modulos_acciones md ON a.id=md.idAccion\n RIGHT JOIN modulos m ON idModulo= m.id\n WHERE a.id= $id\"; //preparar la consulta\n return DB::selectAll($consulta,'Modulo');\n }", "function getRegistros($sql) {\n\t\t$res = $this->ejecutar($sql);\n\t\t$arreglo = array();\n\t\twhile ($registro = mysqli_fetch_array($res,MYSQL_ASSOC)) {\n\t\t\t$arreglo[]=$registro;\t\t\t\n\t\t}\n\t\treturn $arreglo;\n\t}", "public function get_by_id($id) {\n $this->db->select('id, regimen, descripcion, tipo');\n $this->db->from('regimenes_fiscales');\n $this->db->where('id', $id);\n $this->db->where('status', 1);\n $this->db->order_by('id', 'asc');\n $result = $this->db->get();\n return $result->row_array();\n }", "public function selectAllRegiuniData(){\n $sql = \"SELECT * FROM regiune ORDER BY id DESC\";\n $stmt = $this->db->pdo->prepare($sql);\n $stmt->execute();\n return $stmt->fetchAll(PDO::FETCH_OBJ);\n }", "public abstract function get_ids();", "public function gen_dd_array()\n {\n $vec = array();\n if($result = $this->get($this->_table) )\n {\n foreach($result as $reg)\n { \n $vec[$reg->id] = $reg->name;\n }\n }\n return $vec;\n }", "public function getAllIds(): array;", "function obtener_registros($tabla, $campo, $id = false)\n {\n $conexion_bd = conectar_bd();\n $array = \"\";\n $consulta = 'SELECT '.$campo.' FROM '.$tabla;\n if($id){\n $consulta .= ' ORDER BY '.$campo;\n }\n $resultados = $conexion_bd->query($consulta);\n while ($row = mysqli_fetch_array($resultados, MYSQLI_BOTH)){\n $array .= $row[\"$campo\"].\",\";\n }\n mysqli_free_result($resultados);\n desconectar_bd($conexion_bd);\n $array = explode(\",\", $array);\n return $array;\n }", "public function getIngredientes($id) {\n $ingredientesArray = \\app\\models\\Recetasproducto::find()->where(['recetastbl_id' => $id])->all();\n return $ingredientesArray;\n }", "public function actiRecursos($id) {\r\n\t\t$stmt = $this->db->prepare(\"SELECT recurso FROM resources_activity WHERE actividad=?\");\r\n\t\t$stmt->execute(array($id));\r\n\t\t$recursos_db = $stmt->fetchAll(PDO::FETCH_ASSOC);\r\n\r\n\t\t$recursos = array();\r\n\r\n\t\tforeach($recursos_db as $recurso_db){\r\n\t\t\t$stmt = $this->db->prepare(\"SELECT nombre FROM resources WHERE id=?\");\r\n\t\t\t$stmt->execute(array($recurso_db[\"recurso\"]));\r\n\t\t\t$atri_db = $stmt->fetchAll(PDO::FETCH_ASSOC);\r\n\r\n\t\t\tforeach($atri_db as $atri){\r\n\t\t\t\tarray_push($recursos, new Resource($recurso_db[\"recurso\"],\r\n\t\t\t\t\t\t\t\t\t\t\t\t $atri[\"nombre\"]));\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn $recursos;\r\n\t}", "function get ()\n\t{\n\t\t$ ret = array ();\n\t\t\n\t\t// Loop por todos os registros no banco de dados\n\t\tfor ( $ x = 0 ; ( $ x < $ this -> num_records () && count ( $ ret ) < $ this -> _limit ); $ x ++)\n\t\t{\t\t\t\n\t\t\t$ row = $ this -> _px -> retrieve_record ( $ x );\n\t\t\t\n\t\t\tif ( $ this -> _test ( $ row ))\n\t\t\t{\n\t\t\t\tforeach ( $ row as $ key => $ val )\n\t\t\t\t{\n\t\t\t\t\t// Encontre todos os campos que não estão na matriz selecionada\n\t\t\t\t\tif (! in_array ( $ key , $ this -> _select ) &&! empty ( $ this -> _select )) unset ( $ row [ $ key ]);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$ ret [] = $ linha ;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $ ret ;\n\t}", "public function Get_all_agenda_medico($id_medico){\n\t\t\t/* selecciona solo fechas */\n\t\t\tif($id_medico == \"1222\"){\n\t\t\t $array[] = array(\"id\"=>1,\"name\"=>\"martes (30) 8:00am - 8:20am\");\n\t\t\t $array[] = array(\"id\"=>2,\"name\"=>\"martes (30) 9:00am - 9:20am\");\n\t\t\t $array[] = array(\"id\"=>3,\"name\"=>\"martes (30) 9:20am - 8:40am\");\n\t\t\t return $array;\n\t\t\t}\n\t\t}", "function getRegs($filter = \"\")\n {\n\n global $sql;\n\t\t \n\t if(isset($filter) && strlen(trim($filter))>0) $where = sprintf(\" where subscr_code='%s' \",$sql->escape_string($filter));\n\t else $where = \"\";\n\n $laRet = array();\n $sql->query(\"SELECT * from registry $where ORDER BY id\");\n while ($row = $sql->fetchObject()) {\n\t $item = new Registry(); \n\t \t$item->id = $row->id;\n\t\t$item->subscr_code = $row->subscr_code;\n $item->firstName = $row->firstname;\n $item->lastName = $row->lastname;\n $item->email = $row->email;\n\t $item->phone = $row->phone;\n\t $item->postCode = $row->postcode;\n\t $item->address = $row->address;\n\t $item->kidSize = $row->kidsize;\n\t $item->bigSize = $row->bigsize;\n\t $item->referer = $row->referer;\n\t $item->postId = $row->postid;\n\t $item->dateReg = $row->datereg;\n\t $item->dateSend = $row->datesend;\n\t $item->status = $row->status;\n\t $item->sid = $row->sid;\n $laRet[(int)$row->id] = $item;\n }\n\n return $laRet;\n }", "public function get(int $id): array\n {\n $statement = $this->pdo->prepare(self::DQL_USUARIO);\n $statement->bindParam(':id', $id, PDO::PARAM_INT);\n $statement->execute();\n\n $result = $statement->fetch(PDO::FETCH_ASSOC);\n\n if ($result) {\n $result['endereco'] = $this->endereco($id);\n $result['infracao'] = $this->infracao($id);\n }\n\n return $result;\n }", "public static function listOne($id){\n \n $conexion = new Conexion();\n $sql = $conexion->prepare('SELECT nome, imagem, id_aservo FROM ' . self::TABLA . ' WHERE id = :id');\n $sql->bindParam(':id', $id);\n $sql->execute();\n $reg = $sql->fetch(); //Devuelve una única linea (array con cada campo) de la TABLA(id seleccionado).\n return $reg;\n \n }", "public static function readAllId() {\n try {\n $database = SModel::getInstance();\n $query = \"select id from producteur\";\n $statement = $database->prepare($query);\n $statement->execute();\n $results = array();\n while ($tuple = $statement->fetch()) {\n $results[] = $tuple[0];\n }\n return $results;\n } catch (PDOException $e) {\n printf(\"%s - %s<p/>\\n\", $e->getCode(), $e->getMessage());\n return NULL;\n }\n }", "public function getDataForMakeIdMethod(): array\n {\n return [\n 0 => [\n 0 => [\n 'userId' => 8,\n ],\n ],\n ];\n }", "static function read($id){\n \n //Creamos el array que devolveremos\n $array_recetaTieneIngrediente = array();\n //Consulta para obtener las cantidades de ingredientes\n //con el id de la receta\n $consulta_receta_tiene_ing = DB::select('select * from receta_tiene_ing where receta_id_receta = ?',[$id]);\n\n //Iteramos la consulta para extraer cada linea\n //con cada linea crearemos un objeto \"RecetaTieneIngredientes\"\n //y asignaremos valores a sus atributos Incluido el objeto Ingrediente\n //Al que llamamos con nuestro otro metodo para rellenar el objeto ingrediente\n \n //Despues rellenamos nuestro array con esos objetos RecetatieneIngredientes\n //Con los valores de sus atributos ya asignados\n // Y devolvemos el array\n foreach($consulta_receta_tiene_ing as $cant){\n $objeto_RecetatieneIngredientes = new RecetaTieneIngrediente();\n $objeto_RecetatieneIngredientes->receta_id_receta = $id;\n $objeto_RecetatieneIngredientes->cantidad = $cant->cantidad;\n $objeto_RecetatieneIngredientes->ing_id_ing = $cant->ing_id_ing;\n\n $objeto_RecetatieneIngredientes->ingrediente = Ingrediente_DAO::read($cant->ing_id_ing);\n \n array_push($array_recetaTieneIngrediente, $objeto_RecetatieneIngredientes);\n }\n\n return $array_recetaTieneIngrediente;\n }", "function getById($id){\n\t\t\t$pelicula = new Pelicula();\n\t\t\t$peliculas = array();\n\t\t\t$peliculas[\"items\"] = array();\n\n\t\t\t$res = $pelicula->obtenerPelicula($id);\n\n\t\t\t//aqui se valida de que sea una sola fila de datos\n\n\t\t\tif($res->rowCount() == 1){\n\n\t\t\t\t//se agregan los datos al array de item\n\t\t\t\t$row = $res->fetch();\n\t\t\t\n\t\t\t\t$item = array(\n\t\t\t\t\t'id' => $row['id'],\n\t\t\t\t\t'nombre' => $row['nombre'],\n\t\t\t\t\t'imagen' => $row['imagen']\n\t\t\t\t);\n\t\t\t\t//se agregan los datos al array de item\n\t\t\t\tarray_push($peliculas['items'], $item);\n\n\t\t\t// echo json_encode($peliculas);\n\t\t\t\t$this->printJSON($peliculas);\n\n\t\t\t}else{\n\t\t\t\t//valida si hay datos disponibles\n\n\t\t\t\t//echo json_encode(array('mensaje' => 'No hay mensaje registrados'));\n\t\t\t\t$this->error('No hay elementos registrados');\n\t\t\t}\n\t\t}", "function getChildrenIdArray($sourceArr, $id) {\r\n\t$arrChidrens [] = $id;\r\n\t//findChildrens( $sourceArr, $id, &$arrChidrens );\r\n\treturn $arrChidrens;\r\n}", "public function recuperaIngredienti(){\n $arrayid=array();\n if(isset($_POST['cibi'])){\n $arrayid = $_POST['cibi']; //recupero array di id cibi inviati con la form\n }\n return $arrayid;\n }", "public function obtenerPreguntaSecreta($id)\r\n\t{\r\n\t\t$eventos=array();\r\n\t\ttry{\r\n\t\t\t//realizamos la consulta de todos los items\r\n\t\t\t$consulta = $this->db->prepare(\"select * from pregunta_secreta WHERE PRE_ID ='$id'\");\r\n\t\t\t$consulta->execute();\r\n\t\t\tfor($i=0; $row = $consulta->fetch(); $i++)\r\n\t\t\t{\r\n\t\t\t\t$fila['pre_id']=$row['PRE_ID'];\r\n\t\t\t\t$fila['pre_des']=$row['PRE_DES'];\r\n\t\t\t\t$eventos[]=$fila;\t\r\n\t\t\t}\r\n\t\t\t//print_r($eventos);\r\n\t\t}\r\n\t\t\t\t\r\n\t\tcatch(PDOException $e)\r\n\t\t{\r\n\t\t\techo $e;\r\n\t\t}\r\n\t\treturn $eventos;\t\t\r\n\t}", "public function getIds();", "public function getIds();", "public function get($id_genre){\n $query = $this->getDb()->prepare(\" SELECT * FROM genero WHERE id_genre = ?\");\n $query-> execute([$id_genre]); \n return $query->fetchAll(PDO::FETCH_OBJ);\n \n }", "public function limpaArrayIdsObjetosManipulados()\n {\n \t// limpando o array de ids de objetos manipulados\n \t$this->_arrayObjetosManipulados = array();\n }", "function ordina_id(){\n $mysqli = connetti();\n $sql = \"SELECT * FROM spesa WHERE 1=1 ORDER BY id ASC\";\n $risultato_query = $mysqli->query($sql);\n $array_righe = [];\n while($righe_tabella = $risultato_query->fetch_array(MYSQLI_ASSOC)){\n $array_righe[] = $righe_tabella;\n }\n chiudi_connessione($mysqli);\n return $array_righe;\n}", "public function consultarId($id) {\n $grupo = $this->gestor->find('Grupo',$id);\n if ( !is_null($grupo) ) {\n header(\"HTTP/1.1 200 OK\");\n return (array($grupo->getArray()));\n } else {\n header(\"HTTP/1.1 404 Not found\");\n return '{\"response\":\"error\"}'; \n }\n }", "public function getReguData()\n\t{\n\t\t$this->db->select('id');\n\t\t$this->db->from('regu');\n\t\t$this->db->where('user_id', $this->session->userdata('id'));\n\t\t$this->db->order_by('id', 'ASC');\n\t\treturn $this->db->get()->result_array();\n\t}", "public function get_registrants( $id ) {\n\n\t\t// Continue only if id found.\n\t\tif ( empty( $id ) ) {\n\t\t\treturn array();\n\t\t}\n\n\t\t$this->db->select( 'name' );\n\t\t$this->db->from( 'preregistration' );\n\t\t$this->db->where( 'church', (int) $id );\n\n\t\treturn $this->db->get()->result();\n\t}", "public static function get():array{\n $consulta=\"SELECT a.id AS idAccion, a.codigo AS codigoAcc, a.nombre AS nombreAcc,m.* \n\t\t\t\t\tFROM acciones a \n\t\t\t\t\t\tINNER JOIN modulos_acciones md ON a.id=md.idAccion\n\t\t\t\t\t RIGHT JOIN modulos m ON idModulo= m.id\"; //preparar la consulta\n return DB::selectAll($consulta,'Modulo');\n }", "function listByID($id) {\n $select = $this->select();\n $select = $this->select()->where('id = ?', $id);\n $rows = $this->fetchAll($select);\n return $rows->toArray();\n }", "public function get_all() {\n $this->db->select('id, regimen, descripcion, tipo');\n $this->db->from('regimenes_fiscales');\n $this->db->where('status', 1);\n $result = $this->db->get();\n return $result->result_array();\n }", "function listeGroupes(){\n $groupes = array();\n $connexion = new Connexion();\n $query = 'SELECT * FROM GROUPE';\n $result = $connexion->query($query);\n foreach($result as $row){\n $groupes[] = array('id'=>$row['id'],'libelle'=>$row['libelle'],'nombre'=>$row['nombre']);\n }\n return $groupes;\n}", "public function getArrayUsuariosInferiores($idEstructura)\r\n {\r\n $usuarios=$this->getEntityManager()\r\n ->createQuery(\"SELECT u,e,o,s,ss\r\n FROM SisproBundle:Usuario u\r\n JOIN u.estructura e\r\n JOIN e.superior o \r\n JOIN o.superior s\r\n JOIN s.superior ss\r\n WHERE (o.id=:id\r\n OR s.id=:id\r\n OR ss.id=:id\r\n OR e.id=:id )\r\n AND e.activo=TRUE\r\n AND o.activo=TRUE\r\n AND s.activo=TRUE\r\n AND ss.activo=TRUE\r\n ORDER BY u.nombre ASC\")\r\n ->setParameter('id', $idEstructura)\r\n ->getArrayResult();\r\n \r\n if (count($usuarios)==0) return array('0'=>'');\r\n \r\n $a=array('0'); $b=array('[Seleccione]');\r\n \r\n foreach ($usuarios as $fila)\r\n {\r\n array_push($a,$fila['id']);\r\n array_push($b,mb_convert_case($fila['nombre'],MB_CASE_TITLE,'UTF-8').\r\n ' '.mb_convert_case($fila['apellido'],MB_CASE_TITLE, 'UTF-8').\r\n ' ('.$fila['correo'].')');\r\n } \r\n $usuarios=array_combine($a,$b); \r\n return $usuarios;\r\n }", "public static function ObtenerSesionIniciada($id): array\r\n {\r\n $datos = [];\r\n $rs = self::ejecutarConsultaUsuario(\r\n \"SELECT * FROM usuario WHERE id_Usuario=?\",\r\n [$id]\r\n );\r\n $datos = array($rs[\"id_Usuario\"], $rs[\"identificador\"], $rs[\"contrasenna\"], $rs[\"tipo\"]);\r\n // devolvemos el usuario en array\r\n return $datos;\r\n }", "function getRegistros() {\n\t\tif (isset($this->extra[\"monitor_id\"]) and isset($this->extra[\"pagina\"])) {\n\t\t\t$this->resultado = $this->getDetalleRegistros($this->extra[\"monitor_id\"], $this->extra[\"pagina\"]);\n\t\t\treturn;\n\t\t}\n\n\t\tglobal $mdb2;\n\t\tglobal $log;\n\t\tglobal $current_usuario_id;\n\n\t\t/* OBTENER LOS DATOS Y PARSEARLO */\n\t\t$sql = \"SELECT unnest(_nodos_id) AS nodo_id FROM _nodos_id(\".\n\t\t\t pg_escape_string($current_usuario_id).\", \".\n\t\t\t pg_escape_string($this->objetivo_id).\", '\".\n\t\t\t pg_escape_string($this->timestamp->getInicioPeriodo()).\"','\".\n\t\t\t pg_escape_string($this->timestamp->getTerminoPeriodo()).\"')\";\n\t\t//print($sql);\n\t\t$res =& $mdb2->query($sql);\n\t\tif (MDB2::isError($res)) {\n\t\t\t$log->setError($sql, $res->userinfo);\n\t\t\texit();\n\t\t}\n\t\t$monitor_ids = array();\n\t\twhile($row = $res->fetchRow()) {\n\t\t\t$monitor_ids[] = $row[\"nodo_id\"];\n\t\t}\n\n\t\t/* SI NO HAY DATOS MOSTRAR MENSAJE */\n\t\tif (count($monitor_ids) == 0) {\n\t\t\t$this->resultado = $this->__generarContenedorSinDatos();\n\t\t\treturn;\n\t\t}\n\n\t\t/* TEMPLATE DEL GRAFICO */\n\t\t$T =& new Template_PHPLIB(REP_PATH_TABLETEMPLATES);\n\t\t$T->setFile('tpl_tabla', 'contenedor_tabla.tpl');\n\t\t$T->setBlock('tpl_tabla', 'LISTA_CONTENEDORES', 'lista_contenedores');\n\n\t\t/* LISTA DE MONITORES */\n\t\t$orden = 1;\n\t\tforeach ($monitor_ids as $monitor_id) {\n\t\t\t$T->setVar('__contenido_id', 'reg_'.$monitor_id);\n\t\t\t$T->setVar('__contenido_tabla', $this->getDetalleRegistros($monitor_id, 1, $orden));\n\t\t\t$T->parse('lista_contenedores', 'LISTA_CONTENEDORES', true);\n\t\t\t$orden++;\n\t\t}\n\n\t\t$this->resultado = $T->parse('out', 'tpl_tabla');\n\t}", "public function buscarMarca($idMarca){\n\t\t\t\n\t\t\t$this->load->database();\n\t\t\t\n\t\t\t$query = $this->db->query(\"SELECT * FROM marca WHERE id_marca = $idMarca\");\n\t\t\t\n\t\t\t\t $dados = array();\n\t\t\t\t \tforeach($query->result() as $linha)\n\t\t\t\t \t{\n\t\t\t\t \t\t$dados['id_marca'] = $linha->id_marca;\n\t\t\t\t \t\t$dados['nome_marca'] = $linha->nome_marca;\n\t\t\t\t \t\t$dados['data_cadastro'] = $linha->data_cadastro;\n\t\t\t\t \t\t$dados['id_usuario'] = $linha->id_usuario;\n\t\t\t\t }\n\n\t\t\treturn($dados);\n\t\t\t\n\t\t}", "public function traer_empresa($id)\n {\n $empresa=array(); \n $this->db->where('id',$id);\n $query=$this->db->get('empresas');\n if($query->num_rows()>0)\n {\n $row=$query->row();\n $empresa['id']=$row->id;\n $empresa['nit']=$row->nit;\n $empresa['razon_social']=$row->razon_social;\n $empresa['telefono']=$row->telefono;\n $empresa['extension']=$row->extension;\n $empresa['contacto']=$row->contacto;\n $empresa['direccion']=$row->direccion;\n $empresa['rol']=$row->rol; \n }\n \n return $empresa;\n }", "public function obtenerTareas($id){\n $this->db->query('SELECT * FROM num_tareas_usuario WHERE 1=1 '.$id);\n //$this->db->bind(':id', $id);\n\n $fila = $this->db->registro();\n //print_r($fila);\n return $fila;\n }", "public static function recuperarComentariosParaSubasta($id)\n\t{\n\t$db=conectaDb();\n\t$res = $db->prepare('SELECT * FROM `comentario` WHERE idsubastacom=:id and idestadocom=1');\n\t$res->bindParam(':id', $id);\n\t$res->execute();\n\t\tif (($row = $res->fetch())){\n\t\t\t$i=0;\n\t\t\t $objArrayConsult = array();\n\t\t\t do\n\t\t\t {\n\t\t\t\t \n\t\t\t\t $objConsult = Comentario::buildFromBD($row);\n\t\t\t\t $objArrayConsult[$i] = $objConsult; \n\t\t\t\t $i = $i + 1;\n\t\t\t\t}while(($row = $res->fetch()));\n\t\t\t}\n\t\t\telse{\n\t\t\treturn null;\n\t\t\t}\n\t\t$db=null;\n\t\treturn $objArrayConsult;\n\t}", "public function searchcourseRegister(string $id): array\n {\n }", "public function calculRQ($id){\n $indispos = array();\n // array du genre 'type','mois','nb'\n $sql =\"select DATE_FORMAT(DATE,'%m') as MOIS,activite_id,SUM(TOTAL) as TOTAL\n from activitesreelles \n where activitesreelles.utilisateur_id = \".$id.\"\n and activitesreelles.activite_id = 2\n and DATE_FORMAT(DATE,'%Y') = DATE_FORMAT(NOW(),'%Y') \n group by MOIS,activite_id\";\n $results = $this->Utilisateur->query($sql);\n foreach($results as $result):\n $indispos[$result[0]['MOIS']]=$result[0]['TOTAL'];\n endforeach;\n for($i=1;$i<13;$i++){\n $mois = $i < 10 ? '0'.$i : (String)$i;\n if (!array_key_exists($mois, $indispos)) {\n $indispos[$mois]='0';\n }\n }\n return $indispos;\n }", "function obtenerRegistros($datos = []) {\n\t\t$this->openConnection();\n\t\t$sentencia = $this->conn->prepare($this->consulta);\n\t\tif(!empty($datos)){\n\t\t\tforeach ($datos as $key => $value) {\n\t\t\t\t$sentencia->bind_param($key, $value);\n\t\t\t}\n\t\t}\n\t\t$sentencia->execute();\n\t\t$reg = $sentencia->get_result();\n\t\t$rows = $reg->num_rows;\n\t\t$i = 0;\n\t\tdo {\n\t\t\t$this->registros[] = $reg->fetch_assoc();\n\t\t\t$i++;\n\t\t} while ($i < $rows);\n\t\t$this->closeConnection();\n\t}", "function GetAll()\n {\n $ids = array();\n $sql = \"SELECT id FROM client_os ORDER BY name\";\n $query = pdo_query($sql);\n while($query_array = pdo_fetch_array($query))\n {\n $ids[] = $query_array['id'];\n }\n return $ids; \n }", "function ObtenerIdFormulariosCompletados($idPedTrabajo){\n $this->db->select('FORM_ID');\n $this->db->where('PETR_ID',$idPedTrabajo);\n $this->db->where_in('FORM_ID',array(1,2,3,4,5,6,7,8,9));\n $this->db->group_by('FORM_ID');\n $query = $this->db->get('frm_formularios_completados')->result_array();\n $result = array();\n foreach ($query as $f) {\n array_push($result,$f['FORM_ID']);\n }\n return $result;\n }", "public function getConsultapersonas_acta($id_asignacion)\n {\n $query = \"select id_asignar,consecutivo_asignar,nombre_proyecto,observacion,YEAR(fecha_asignacion) as anio,MONTH(fecha_asignacion) as MES,DAY(fecha_asignacion) as dia,concat(nombres_persona,' ',apellidos_persona) as nombre_entrega,(SELECT concat(nombres_persona,' ',apellidos_persona) from persona where id_persona= fkID_persona_recibe and asignar.estado= 1 ) as nombres_recibe,(SELECT nombre_cargo from persona\n INNER JOIN cargo on id_cargo = persona.fkID_cargo where id_persona= fkID_persona_recibe and asignar.estado= 1 ) as cargo_recibe,(SELECT documento_persona from persona where id_persona= fkID_persona_recibe and asignar.estado= 1 ) as documento_recibe,nombre_cargo as cargo_entrega,documento_persona as documento_entrega FROM `asignar`\n INNER JOIN proyecto on id_proyecto = fkID_proyecto\n INNER JOIN persona on id_persona = fkID_persona_entrega\n INNER JOIN cargo on id_cargo = persona.fkID_cargo\n WHERE id_asignar='\" . $id_asignacion . \"'\";\n $result = mysqli_query($this->link, $query);\n $data = array();\n while ($data[] = mysqli_fetch_assoc($result));\n array_pop($data);\n return $data;\n }", "public function getArray() {\n return array(\n \"id\" => $this->id, \n \"nombreGrupo\" => $this->nombre, \n //\"idag\" => $this->idap, \n );\n }", "function selectAllVotosByRespuestaID($conexion, $id)\n{\n try {\n $consulta = $conexion->prepare(\"SELECT * FROM voto_respuesta WHERE Respuesta_idRespuesta = :id\");\n $consulta->setFetchMode(PDO::FETCH_ASSOC);\n $consulta->bindValue(':id', \"$id\");\n $consulta->execute();\n\n $listaVotos = array();\n $contador = 0;\n while ($voto = $consulta->fetch()) {\n $listaVotos[$contador] = $voto;\n $contador++;\n }\n\n $conexion = null;\n\n return $listaVotos;\n\n } catch (Exception $e) {\n echo $e;\n }\n}", "function getMovimientos($id) {\n $db = $this->getAdapter();\n// $db->setFetchMode ( Zend_Db::FETCH_OBJ );\n $select = $db->select();\n $select->distinct(true);\n $select->from(array('m' => 'movimiento_encomienda'), array(\"id_movimiento\", \"fecha\", \"hora\", \"usuario\", \"sucursal\", \"observacion\"));\n $select->where(\"m.encomienda=?\",$id);\n $select->order(\"fecha\");\n// echo $select->__toString();\n $log = Zend_Registry::get(\"log\");\n $log->info(\"recuperando movimientos de la encomieda :\" . $select->__toString());\n return $db->fetchAll($select);\n }", "public function getAllArr()\n\t{\n\t\t$sql = \"SELECT g.id,g.nombre,g.total,u.nombre,u.apellido_pat,u.apellido_mat,g.created_date,gt.nombre gastostipo,gt.tipo\n\t\tFROM gastos g \n\t\tleft join gastos_tipo gt on gt.id=g.id_gastostipo \n\t\tleft join user u on u.id=g.id_user \n\t\t\twhere g.status='active';\";\n\t\t$res = $this->db->query($sql);\n\t\t$set = array();\n\t\tif(!$res){ die(\"Error getting result\"); }\n\t\telse{\n\t\t\twhile ($row = $res->fetch_assoc())\n\t\t\t\t{ $set[] = $row; }\n\t\t}\n\t\treturn $set;\n\t}", "public function myFindaIdAll($id) {\n $parameters = array();\n $values = array('a,partial b.{id,nomprojet},partial c.{id,nomUser},partial d.{id,nom,description},f');\n\n $query = $this->createQueryBuilder('a')\n ->select($values)\n ->leftJoin('a.idProjet', 'b')\n ->leftJoin('a.demandeur', 'c')\n ->leftJoin('a.idStatus', 'd')\n ->leftJoin('a.picture', 'f')\n ->addSelect('g')\n //->addSelect('g')\n ->distinct('GroupConcat(g.nom) AS kak')\n ->leftJoin('a.idEnvironnement', 'g')\n ->leftJoin('a.comments', 'h')\n //->addSelect('e')\n ->addSelect('partial e.{id,nomUser}')\n ->distinct('GroupConcat(e.nomUser)')\n ->leftJoin('a.idusers', 'e');\n $query->add('orderBy', 'a.id DESC')\n ->andwhere('a.id = :myid');\n $query->setParameter('myid', $id);\n\n\n return $query->getQuery()->getSingleResult();\n }", "function getExpPorIds($id){\n\n $this->db->select('expediente.*');\n $this->db->from('expediente');\n $this->db->join('cliente_expediente', 'cliente_expediente.id_expediente = expediente.id_expediente');\n $this->db->join('cliente','cliente.id_cliente = cliente_expediente.id_cliente');\n $this->db->where('cliente.id_cliente',$id);\n $query = $this->db->get();\n\n if ($query->num_rows()!=0)\n {\n return $query->result_array();\n }\n else{\n return array();\n }\n }", "function Array_Get_Trabajadores()\n{\n\n\t$clubs = consultar(\"SELECT `id_trabajadores`, `nombre`, `apellido` FROM `tb_trabajadores` order by apellido \");\t\n\n\n\t$datos = array();\n\twhile ($valor = mysqli_fetch_array($clubs)) {\n\t\t$id_trabajadores = $valor['id_trabajadores'];\n\t\t$nombre = $valor['nombre'];\n\t\t$apellido = $valor['apellido'];\n\n\n\t\t$vector = array(\n\t\t\t'id_trabajadores'=>\"$id_trabajadores\",\n\t\t\t'nombre'=>\"$nombre\",\n\t\t\t'apellido'=>\"$apellido\"\n\n\t\t\t);\n\t\tarray_push($datos, $vector);\n\t}\n\n\treturn $datos;\t\n}", "public function Darticulo($id){\r\n\t\t$consulta=$this->db->query(\"SELECT * FROM articulo WHERE ID LIKE '$id'\");\r\n\t\tforeach ($consulta->result() as $row)\r\n\t\t\t{\r\n\t\t\t\t$articulo[0]=$row->nombre;\r\n\t\t\t\t$articulo[1]=$row->precio;\r\n\t\t\t\t$articulo[2]=$row->imagen;\r\n\t\t\t}\r\n\t\treturn $articulo;\r\n\t}", "public function buscarMunicipioPorId($id = '') {\n $resultado = [];\n $response = \\Yii::$app->lugar->buscarMunicipioPorId($id); \n \n if(count($response)>0){\n $resultado = $response;\n }\n return $resultado;\n }", "public function leerInforme($id)\n {\n $this->db->where(\"id\", $id);\n return $this->db->get(\"vista_resumen_informes\")->row_array();\n }", "public function Get_especilista(){\n\t\t\t$array[] = array(\"id\"=>01,\"name\"=>\"Odontologia\");\n\t\t\t$array[] = array(\"id\"=>02,\"name\"=>\"Medico General\");\n\t\t\treturn $array;\n\t\t}", "public function select($id){\n $data= null;\n \n $sql= 'SELECT * FROM publicaciones WHERE idpublicacion=\"'.$id.'\"';\n if($consulta= $this->conectar()->query($sql)){\n while($row= $consulta->fetch(PDO::FETCH_ASSOC)){\n $data[] = $row; \n }\n }\n return $data;\n }", "function getBkRms($ID){\r\n $inx = 0;\r\n $arrpack = array();\r\n $conn = getConnection();\r\n\r\n $stmt = $conn->prepare(\"SELECT rooms_idrooms FROM rms_reservd where reservations_idreservations = ?\");\r\n $stmt->bind_param(\"i\", $ID);\r\n \r\n $stmt->execute();\r\n\r\n $result = $stmt->get_result();\r\n\r\n if($result->num_rows > 0){\r\n while($row = $result->fetch_assoc()){\r\n $arrpack[$inx] = $row['rooms_idrooms'];\r\n $inx++;\r\n }\r\n }\r\n $conn->close(); \r\n\r\n return $arrpack;\r\n }", "public function get_ids()\n {\n }", "public function get_ids()\n {\n }", "public function get_ids()\n {\n }", "public function get_ids()\n {\n }", "public function get_ids()\n {\n }", "public function get_ids()\n {\n }", "public function get_ids()\n {\n }", "public function get_ids()\n {\n }", "function seleziona_spesa($id){\n\n $mysqli = connetti();\n\n $sql = \"SELECT * FROM spesa WHERE id = \" . $id;\n\n // memorizzo il risultato della query\n $risultato_query = $mysqli->query($sql);\n\n $array_righe = [];\n while($righe_tabella = $risultato_query->fetch_array(MYSQLI_ASSOC)){\n $array_righe[] = $righe_tabella;\n }\n\n chiudi_connessione($mysqli);\n\n return $array_righe;\n}", "function get_all_id(K_Laravel_Creator\\Models\\Base_Model $base_mobel) {\n $model_datas = $base_mobel->all();\n //error_log($model_datas);\n $model_id = array();\n foreach($model_datas as $model_data){\n array_push($model_id,$model_data['id']);\n }\n return $model_id;\n}", "function getComenariosByJugadorid($id){\n $sentencia = $this->db->prepare(\"SELECT c.* , u.nombre as nombreUsario FROM comentario as c join usuario as u on c.id_usuario= u.id WHERE c.id_jugador=? \");\n $sentencia->execute(array($id));\n return $sentencia->fetchAll(PDO::FETCH_OBJ);\n }", "public static function getAll(){\n $conn = DataManager::getInstance()->getConnection();\n if(!$conn || $conn->connect_error) exit();\n $statement = $conn->prepare('SELECT `id` FROM `groups` WHERE 1');\n if(!$statement || !$statement->execute()) exit();\n $result_set = $statement->get_result();\n $group_ids = array();\n while($row = $result_set->fetch_assoc()){\n array_push($group_ids, $row['id']);\n }\n $output = array();\n foreach($group_ids as $id){\n array_push($output, self::fromId($id));\n }\n return $output;\n }", "function id_name_to_array($result) {\n $res = $result->fetch_all();\n $rows = $result->num_rows;\n\n $return_array = array();\n\n for($i = 0; $i < $rows; $i++) {\n $id = $res[$i][0];\n $name = $res[$i][1];\n array_push($return_array, [$id, $name]);\n }\n\n return $return_array;\n }", "public function get_profile_array($id){\n $query = $this->db->get_where('gebruikers', array('id' => $id));\n return $query->row_array();\n }", "function getDemandesAmiRecue($id) {\n\t\t$selectPrepa = self::$bdd -> prepare(\"SELECT envoyeur FROM demandeami WHERE receveur = '$id'\");\n\t\t$selectPrepa -> execute();\n\t\t$result = $selectPrepa -> fetchAll();\n\t\treturn $result;\n\t}", "public function traer_reserva_guardada($id){\n\n$pdo = new conectar();\n\n$pdo = $pdo->conexion();\n\n$array_reserva = array();\n\n$contador=0;\n\n$query=\"select * from reservas where reserva_id=:id_reserva\";\n\n$resultado=$pdo->prepare($query);\n\n$resultado->execute(array(\":id_reserva\"=>$id));\n\nwhile($registro = $resultado->fetch(PDO::FETCH_ASSOC)){\n\n$reserva = new objeto_reserva();\n\n$reserva->set_reserva_id($registro['reserva_id']);\n$reserva->set_habitacion_id($registro['habitacion_id']);\n$reserva->set_cliente_id($registro['cliente_id']);\n$reserva->set_fecha_ingreso($registro['fecha_ingreso']);\n$reserva->set_fecha_salida($registro['fecha_salida']);\n$reserva->set_valor($registro['valor']);\n$reserva->set_estado($registro['estado']);\n$reserva->set_observacion($registro['observacion']);\n\n$array_reserva[$contador] = $reserva;\n$contador++;\n\n}\n\nreturn $array_reserva;\n\n}", "public function getInsurencesEditValues($id)\n\t{\n\t\t$result = [];\n\t\t$data = $this->database->table('lek_pojistovny')\n\t\t\t->where('ID_leku', $id);\n\n\t\tforeach ($data as $item)\n\t\t\t$result[] = array(\n\t\t\t\t\"ID_leku\" => $item->ID_leku,\n\t\t\t\t\"ID_pojistovny\" => $item->ID_pojistovny,\n\t\t\t\t\"cena\" => $item->cena,\n\t\t\t\t\"doplatek\" => $item->doplatek,\n\t\t\t\t\"hradene\" => $item->hradene\n\t\t\t);\n\n\t\treturn $result;\n\t}", "public function buscarDadosPessoa($id)\n\t{\n\t\t$res = array();\n\t\t$cmd = $this->pdo->prepare(\"SELECT * FROM tbadm WHERE id_adm = :id\");\n\t\t$cmd->bindValue(\":id\",$id);\n\t\t$cmd->execute();\n\t\t$res = $cmd->fetch(PDO::FETCH_ASSOC);\n\t\treturn $res;\n\t}", "function getDataById($data) \n {\n $sql = 'select extid as id, title, content, \n description, source from vacancy where `id` ';\n if (is_array($data)) {\n $sql .= ' in ('.implode(', ', $data).')';\n } else {\n $sql .= ' = '.$data;\n }\n\n $res = $this->db->query($sql);\n if (!$res) {\n throw new MysqlException(\"Error while getDataById\", 1);\n }\n\n $out = array();\n while ($obj = $res->fetch_object()) {\n $n = new VacancyExt;\n $n->id = $obj->id; \n $n->title = $obj->title;\n $n->content = $obj->content;\n $n->description = $obj->description; \n $n->source = $obj->source; \n $out[] = $n;\n } \n $res->close();\n\n return $out;\n\n\n\n }", "public function recuperar(): array {\r\n \r\n $autorDao = new AutorDao();\r\n \r\n $livros = [];\r\n $query = \"SELECT livro.*, editora.nome \"\r\n . \"FROM livro \"\r\n . \"INNER JOIN editora ON \"\r\n . \"editora.id = livro.editora_id\";\r\n \r\n $statement = $this->pdo->prepare($query);\r\n $statement->execute();\r\n while($registro = $statement->fetch(\\PDO::FETCH_LAZY)){\r\n $livro = $this->hydrate((array) $registro);\r\n $livro->autores = $autorDao->recuperarPorLivro($livro->id);\r\n $livros[] = $livro;\r\n }\r\n return $livros;\r\n }", "public function selectById($id){\n $conn = $this->conex->connectDatabase();\n $sql = \"select * from tbl_menu_funcionario_web where id_funcionario_web=?;\";\n $stm = $conn->prepare($sql);\n $stm->bindValue(1, $id); \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_funcionario_web']);\n $Menu->setData($result['data']);\n $Menu->setIdMenu($result['id_menu']);\n $Menu->setIdFuncionario($result['id_funcionario_web']);\n array_push($listMenu, $Menu);\n }\n $this->conex -> closeDataBase();\n return $listMenu;\n } else {\n return \"Erro\";\n }\n \n }", "public function calculConge($id){\n $indispos = array();\n // array du genre 'type','mois','nb'\n $sql =\"select DATE_FORMAT(DATE,'%m') as MOIS,activite_id,SUM(TOTAL) as TOTAL\n from activitesreelles \n where activitesreelles.utilisateur_id = \".$id.\"\n and activitesreelles.activite_id = 1\n and DATE_FORMAT(DATE,'%Y') = DATE_FORMAT(NOW(),'%Y')\n group by MOIS,activite_id\";\n $results = $this->Utilisateur->query($sql);\n foreach($results as $result):\n $indispos[$result[0]['MOIS']]=$result[0]['TOTAL'];\n endforeach;\n for($i=1;$i<13;$i++){\n $mois = $i < 10 ? '0'.$i : (String)$i;\n if (!array_key_exists($mois, $indispos)) {\n $indispos[$mois]='0';\n }\n }\n return $indispos;\n }", "function buscarPorId($id) {\r\n $query = \"SELECT * FROM medios WHERE id_Medio LIKE \".$id.\";\";\r\n $database = new Database();\r\n $resultado = $database->getConn()->query($query);\r\n \r\n $arr = array();\r\n \r\n while ($row = $resultado->fetch(PDO::FETCH_ASSOC)) {\r\n $medio = new Medio();\r\n $medio->id=$row[\"id_Medio\"];\r\n $medio->url=$row[\"url\"];\r\n $medio->tipo=$row[\"id_Tipo\"];\r\n array_push($arr, $medio);\r\n }\r\n $paraDevolver = json_encode($arr);\r\n return $paraDevolver;\r\n }", "function getAdmittedRolesArray() {\n\n if ($this->connectToMySql()) {\n $query = sprintf(\"SELECT id_ruolo, ruolo FROM scuola.ruoli_utenti ORDER BY id_ruolo\");\n\n // Perform Query\n $result = mysql_query($query);\n //$array = mysql_fetch_assoc($result);\n }\n $this->closeConnection();\n return $result;\n }", "function relatorioDeCelulaPart2Dao($idCelula,$idMembro){\r\n require_once (\"conexao.php\");\r\n require_once (\"modelo/objetocelula.php\");\r\n \r\n $objDao = Connection::getInstance();\r\n $resultado = mysql_query(\"Select c.NomeCelula, m.Nome from celulas c join celulamembro e on e.CodCelula = c.Codigo join membros m on e.CodMembro = m.Matricula order by c.NomeCelula\") or die (\"Nao foi possivel realizar a busca 2\".mysql_error());\r\n \r\n $listaMembro = array();\r\n \r\n $i=0;\r\n\r\n if($resultado){\r\n \r\n while ($registro = mysql_fetch_assoc($resultado)){ \r\n\t $celula = new objetocelula();\r\n $celula->setNome($registro['NomeCelula']);\r\n $celula->setNomeMembro($registro['Nome']);\r\n\t $listaMembro[$i] = $celula;\r\n\t $i++;\r\n\t}\r\n }\r\n \r\n\tmysql_free_result($resultado);\r\n $objDao->freebanco(); \r\n return $listaMembro;\r\n }", "function get_data_by_id(){\n\t\tglobal $db;\n\t\t$data=array();\n\t\tif($this->id!=''){\n\t\t\t$sql=\"SELECT * FROM $this->table where id = ? \";\n\t\t\t$db->query($sql, array($this->id));\n\t\t\t$data=$db->fetch_assoc();\n\t\t\t}else{\n\t\t\t $data['id']='0'; $data['email']='';\n\t }\n return $data;\n\t}", "public function getAllIds();", "public function loadArrayByDeterminerID($searchTerm) {\n global $connection;\n $returnvalue = array();\n $operator = \"=\";\n // change to a like search if a wildcard character is present\n if (!(strpos($searchTerm,\"%\")===false)) { $operator = \"like\"; }\n if (!(strpos($searchTerm,\"_\")===false)) { $operator = \"like\"; }\n $sql = \"SELECT DeterminationID FROM determination WHERE DeterminerID $operator '$searchTerm'\";\n $preparedsql = \"SELECT DeterminationID FROM determination WHERE DeterminerID $operator ? \";\n if ($statement = $connection->prepare($preparedsql)) { \n $statement->bind_param(\"s\", $searchTerm);\n $statement->execute();\n $statement->bind_result($id);\n while ($statement->fetch()) { ;\n $obj = new huh_determination();\n $obj->load($id);\n $returnvalue[] = $obj;\n }\n $statement->close();\n }\n return $returnvalue;\n }", "public function getVariables(int $id): array;", "private static function getArraybyId($matrix,$id,$key){\n\t\t$values[0]=$matrix[0];\n\t\tfor ($i=0; $i < count($matrix); $i++) { \n\t\t\t$values[1]=$matrix[$i];\n\t\t\tif(isset($values[1][$key])){\n\t\t\t\tif ($values[1][$key]===$id) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn $values;\n\t}", "function getLocalidadPorIds($id){\n\t\t$this->db->select('localidades.*');\n\t\t$this->db->from('localidades');\n\t\t$this->db->join('provincias', 'provincias.id = localidades.id_privincia');\n\t\t$this->db->where('provincias.id',$id);\n\t\t$result = $this->db->get(); \n\n\t\tif($result->num_rows()>0){\n\t\t\t\treturn $result->result_array();\n\t\t}\n\t\telse{\n\t\t\t\treturn false;\n\t\t}\n}", "public function getArrayUsuariosEstructura($idEstructura)\r\n {\r\n $usuarios=$this->getEntityManager()\r\n ->createQuery(\"SELECT u,e\r\n FROM SisproBundle:Usuario u\r\n JOIN u.estructura e \r\n WHERE e.id=:id \r\n AND e.activo=TRUE \r\n ORDER BY u.nombre ASC\")\r\n ->setParameter('id', $idEstructura)\r\n ->getArrayResult();\r\n \r\n if (count($usuarios)==0) return array('0'=>'Estructura Sin Usuarios');\r\n \r\n $a=array('0'); $b=array('[Seleccione]');\r\n \r\n foreach ($usuarios as $fila)\r\n {\r\n array_push($a,$fila['id']);\r\n array_push($b,mb_convert_case($fila['nombre'],MB_CASE_TITLE,'UTF-8').\r\n ' '.mb_convert_case($fila['apellido'],MB_CASE_TITLE, 'UTF-8').\r\n ' ('.$fila['correo'].')');\r\n } \r\n $usuarios=array_combine($a,$b); \r\n return $usuarios;\r\n }", "public function selectPlace($id) {\n\n // declare array to store selected information\n $returnArray = array();\n\n // sql JOIN\n $sql = \"SELECT \n locais.id, \n locais.nome, \n locais.descricao, \n locais.imagem,\n locais.telefone, \n locais.tipo, \n locais.horario,\n BAIRROS.bairro,\n CIDADES.cidade \n FROM mostrai.locais \n JOIN mostrai.CIDADES \n ON locais.id_cidade = CIDADES.id_cidade \n JOIN mostrai.BAIRROS \n ON locais.id_bairro = BAIRROS.id_bairro \n WHERE id='\".$id.\"'\";\n $result = $this->conn->query($sql);\n while($row = $result->fetch_object()){array_push($returnArray, $row);}\n return $returnArray;\n\n }", "public function getIds()\n {\n\n }" ]
[ "0.71446806", "0.6994586", "0.68067735", "0.67956966", "0.67197156", "0.6671239", "0.6641337", "0.66131455", "0.65775675", "0.6549662", "0.64707536", "0.64539427", "0.6382654", "0.6373225", "0.63491017", "0.63274133", "0.6318788", "0.6307229", "0.6302797", "0.62684643", "0.6245377", "0.62448984", "0.6228625", "0.6209392", "0.61911577", "0.61834806", "0.61669916", "0.6144959", "0.6136865", "0.6136865", "0.6130864", "0.61136013", "0.60994947", "0.6098282", "0.60969126", "0.609669", "0.60904676", "0.60865134", "0.60862565", "0.60825413", "0.60776705", "0.60721", "0.60689855", "0.60686076", "0.6067758", "0.60617864", "0.6057574", "0.6047327", "0.60417426", "0.60382265", "0.6029994", "0.6028224", "0.6025778", "0.6023654", "0.6023343", "0.60144883", "0.59952587", "0.59939235", "0.59923345", "0.5981093", "0.5973471", "0.59701127", "0.5956583", "0.5946773", "0.5941151", "0.59377736", "0.5936511", "0.5936511", "0.5936511", "0.5936511", "0.5936511", "0.5936511", "0.5936511", "0.5936511", "0.59360623", "0.5934362", "0.59335876", "0.5932997", "0.5917348", "0.5916859", "0.591549", "0.5912931", "0.5912451", "0.5909589", "0.5907903", "0.59071016", "0.5905099", "0.5903492", "0.59004325", "0.589638", "0.5895152", "0.5894147", "0.5893342", "0.5891742", "0.5885736", "0.58839726", "0.5877298", "0.58742785", "0.5873873", "0.5867505" ]
0.5984714
59
metodo para obtener registros y mapearlos para combo generico
public function get_select_data($id = null) { $data = $this->get_array_data($id); $result = array(); foreach ($data as $row) $result[] = array( "id" => $row[$this->id_field], "name" => $this->map_name_value($row) ); return $result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function combos()\n {\n $this->view->ambito = array('F' => 'Federal','E'=> 'Estadual','M'=>'Municipal','J'=>'Judicial');\n $this->view->estado = $this->getService('Estado')->comboEstado();\n $this->view->tipoPessoa = $this->getService('TipoPessoa')->getComboDefault(array());\n $this->view->temaVinculado = array('Cavernas', 'Espécies', 'Empreendimentos', 'Unidades de Conservação');\n $this->view->tipoDocumento = $this->getService('TipoDocumento')->getComboDefault(array());\n $this->view->tipoArtefato = $this->getService('TipoArtefato')->listItems(array());\n $this->view->assunto = $this->getService('Assunto')->comboAssunto(array());\n $this->view->prioridade = $this->getService('Prioridade')->listItems();\n $this->view->tipoPrioridade = $this->getService('TipoPrioridade')->listItems();\n $this->view->municipio = $this->getService('VwEndereco')->comboMunicipio(NULL,TRUE);\n }", "function comboRecompensas($id_recompensa = 0, $filter = \"\", $name_control = \"id_recompensa\"){\n\t$elements = recompensasController::getListAction(9999, $filter); ?>\n\t<select name=\"<?php echo $name_control;?>\" id=\"<?php echo $name_control;?>\" class=\"form-control\">\n\t\t<option value=\"0\"> ---- Selecciona una recompensa ---- </option>\n\t\t<?php foreach($elements['items'] as $element):?>\n\t\t<option value=\"<?php echo $element['id_recompensa'];?>\" <?php if ($id_recompensa == $element['id_recompensa']) echo ' selected=\"selected\" ';?>><?php echo $element['recompensa_name'];?></option>\n\t\t<?php endforeach;?>\n\t</select>\n<?php }", "public function ctlBuscaCompras(){\n\n\t\t$respuesta = Datos::mdlCompras(\"entradas\");\n\n\t\tforeach ($respuesta as $row => $item){\n\t\t\techo '<option value=\"'.$item[\"codProducto\"].'\">'.$item[\"noOperacion\"].' - '.$item[\"proveedor\"].' - '.$item[\"kg\"].' - '.$item[\"precio\"].'</option>';\n\t\t}\n\t}", "public function foraclecombo()\r\n {\r\n // Entorno de test\r\n echo $vcombo=\"<option value=0> Seleccione una instanacia </option>\";\r\n $dbName = 'Entorno Test ono10g';\r\n $cadena = \"(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=172.17.5.24)(PORT=1523))(CONNECT_DATA=(SERVER=dedicated)(SID=ono10g)))\";\r\n $vcombo=\"<option value=\".$cadena.\">\".$dbName.\"</option>\";\r\n echo $vcombo;\r\n return 0;\r\n // Cargar Array de parámetros\r\n $_SESSION['arraycfg'] = readcfg();\r\n $linkdb=conectarBDMySQLInvent($_SESSION['arraycfg']);\r\n $sql=\"select s.id as id, s.nombre as DbName, \"; \r\n $sql.=\"s.ip_servicio as ip_servicio,IFNULL(s.puerto,1521) as puerto, \";\r\n $sql.=\"s.descripcion \";\r\n $sql.=\"from Servicio s, \"; \r\n $sql.=\"TipoServicio ts, \"; \r\n $sql.=\"EstadoServicio es, \"; \r\n $sql.=\"Plataforma p \";\r\n $sql.=\"where s.tipo_servicio_id = ts.id \";\r\n $sql.=\"and ts.nombre = 'Base de datos Oracle' \";\r\n $sql.=\"and s.plataforma_id = p.id \";\r\n $sql.=\"and s.estado_id = es.id \";\r\n $sql.=\"and es.nombre = 'Activo' \";\r\n $sql.=\"group by s.direccion_servicio;\";\r\n $resdb = mysql_query($sql,$linkdb) or die (\"Error al seleccionar bases de datos Oracle\");\r\n // Primera fila\r\n echo $vcombo=\"<option value=0> Seleccione una instanacia </option>\";\r\n while($row = mysql_fetch_array($resdb)) { \r\n $dbName = substr($row[\"DbName\"],0,30);\r\n $cadena = \"(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=\".$row[\"ip_servicio\"].\")(PORT=\".$row[\"puerto\"].\"))(CONNECT_DATA=(SERVER=dedicated)(SID=\".$row[\"DbName\"].\")))\";\r\n $vcombo=\"<option value=\".$cadena.\">\".$dbName.\"</option>\";\r\n echo $vcombo;\r\n\t}\r\n\t// Cerrar conexion\r\n\tmysql_free_result($resdb); \r\n }", "function comboNiveles() {\n $opciones = \"\";\n $nvS = new Servicio();\n $niveles = $nvS->listarNivel(); //RETORNA UN ARREGLO\n\n while ($nivel = array_shift($niveles)) {\n $opciones .=\" <option value='\" . $nivel->getId_nivel() . \"'>\" . $nivel->getNombre() . \"</option>\";\n }\n return $opciones;\n}", "public function getcboregcondi() {\n \n $sql = \"select ctipo as 'ccondi', dregistro as 'dcondi' from ttabla where ctabla = 37 and ncorrelativo <> 0 order by dregistro;\";\n\t\t$query = $this->db->query($sql);\n \n if ($query->num_rows() > 0) {\n\n $listas = '<option value=\"0\" selected=\"selected\">::Elegir</option>';\n \n foreach ($query->result() as $row)\n {\n $listas .= '<option value=\"'.$row->ccondi.'\">'.$row->dcondi.'</option>'; \n }\n return $listas;\n }{\n return false;\n }\t\n }", "public function getRegistros()\n {\n if($this->input->post('id_cliente'))\n {\n $id_cliente = $this->input->post('id_cliente'); \n $contratos = $this->m_contratos->getRegistros($id_cliente, 'id_cliente');\n \n echo '<option value=\"\" disabled selected style=\"display:none;\">Seleccione una opcion...</option>';\n foreach ($contratos as $row) \n {\n echo '<option value=\"'.$row->id_vehiculo.'\">'.$row->vehiculo.'</option>';\n }\n }\n }", "function get_combo_eventos() {\n $query = $this->db->query(\"select * from evento\");\n \n $result = \"\";\n if ($query) {\n if ($query->num_rows() == 0) {\n return false;\n } else {\n foreach ($query->result() as $reg) {\n $data[$reg->nEveId] = $reg->cEveTitulo;\n }\n $result=form_dropdown(\"cbo_evento_listar\", $data,'','id=\"cbo_evento_listar\" class=\"chzn-select\" style=\"width:250px\" required=\"required\"');\n //$result=form_dropdown(\"cbo_evento_listar\", $data,'','id=\"cbo_evento_listar\" style=\"width:auto\" required=\"required\"');\n return $result;\n }\n } else {\n return false;\n }\n }", "function _reglas()\n\t{\n\t\t$reglas[] = array('field' => 'titulo', 'label' => 'lang:field_titulo', 'rules' => 'trim|required|max_length[100]');\n\t\t\n\t\t\t$reglas[] = array('field' => 'has_category', 'label' => 'lang:field_has_category', 'rules' => 'callback_has_categorys');\n\t\t\n\t\t\n\t\treturn $reglas;\n\t}", "function cargarComboBox(){\n $bdUsuarios = new MUsuarios();\n $datosRoles = $bdUsuarios->ComboBox();\n \n if($datosRoles != NULL){\n while($fila = mysqli_fetch_array ($datosRoles, MYSQLI_ASSOC)){\n echo \"<option value=\".$fila['ID_Rol'].\">\".$fila['Nombre'] . \"</option>\"; \n }\n }\n \n}", "public function Listar(){\n $dica_saude = new Exame();\n\n //Chama o método para selecionar os registros\n return $dica_saude::Select();\n }", "public function ctlBuscaProductos(){\n\n\t\t$respuesta = Datos::mdlProductos(\"productos\");\n\n\t\tforeach ($respuesta as $row => $item){\n\t\t\techo '<option value=\"'.$item[\"codProducto\"].'\">'.$item[\"nombre\"].'</option>';\n\t\t}\n\t}", "public function listRegisterFields(){\n\t\t$this->registerFieldString('name_hld', 'Tipo');\n\t}", "private function criarBarraDeBuscaAction(){\n $cidades = $this->Localidades()->getCidades(\"RJ\");\n $busca = new form_busca();//1- primeiro eu instancio o formularioarray('selecione'=>'selecione','nome' => 'nome','cidade' => 'cidade')\n $busca->get('cidade')->setAttribute('options',$cidades);\n $busca->get('bairro')->setAttribute('options', array(0=>'Selecione uma Cidade'));\n //\n $categoriaDao = \\Base\\Model\\daoFactory::factory('SubCategoriaImovel');\n $dadosCategoria = $categoriaDao->recuperarTodos();\n $categorias = $this->SelectHelper()->getArrayData(\"selecione\",$dadosCategoria);\n $busca->get('tipo')->setAttribute('options', $categorias);\n //\n $transacaoDao = \\Base\\Model\\daoFactory::factory('TipoTransacao');\n $dadosTransacoes = $transacaoDao->recuperarTodos();\n $transacoes = $this->SelectHelper()->getArrayData(\"selecione\",$dadosTransacoes);\n $busca->get('transacao')->setAttribute('options', $transacoes);\n //\n $arrayPreco = array(array(\"value\"=>0, \"label\"=>\"selecione\", \"disabled\" => \"disabled\", \"selected\" => \"selected\"),array(\"value\" => 1, \"label\" => \"R$ 100.000 a R$ 200.000\"),array(\"value\" => 2, \"label\" => \"R$ 200.000 a R$ 300.000\"),array(\"value\" => 3, \"label\" => \"R$ 300.000 a R$ 400.000\"),array(\"value\" => 4, \"label\" => \"R$ 400.000 a R$ 500.000\"),array(\"value\" => 5, \"label\" => \"acima de R$ 500.000\"));\n $busca->get('valor')->setAttribute('options', $arrayPreco);\n return $busca;\n }", "function Cargar_combo_Zonas(){\r\n\r\n\t\t$conexion = $this ->Conexion;\r\n\r\n\t\t$zonas =$conexion->query(\"SELECT codigo valor, nombre mostrar FROM hit_zonas where visible = 'S' ORDER BY NOMBRE\");\r\n\t\t$numero_filas = $zonas->num_rows;\r\n\r\n\t\tif ($zonas == FALSE){\r\n\t\t\techo('Error en la consulta');\r\n\t\t\t$zonas->close();\r\n\t\t\t$conexion->close();\r\n\t\t\texit;\r\n\t\t}\r\n\r\n\t\t$combo_zonas = array();\r\n\t\t$combo_zonas[-1] = array ( \"valor\" => null, \"mostrar\" => '');\r\n\t\tfor ($num_fila = 0; $num_fila < $numero_filas; $num_fila++) {\r\n\t\t\t$zonas->data_seek($num_fila);\r\n\t\t\t$fila = $zonas->fetch_assoc();\r\n\t\t\tarray_push($combo_zonas,$fila);\r\n\t\t}\r\n\r\n\t\t//Liberar Memoria usada por la consulta\r\n\t\t$zonas->close();\r\n\r\n\t\treturn $combo_zonas;\r\n\r\n\r\n\r\n\t}", "function _load_combo_data()\n\t{\n\t\t$data['po_zone_infos'] = $this->Po_zone_area_detail->get_po_zones();\n\t\t//This function is for listing of areas\t\n\t\t$data['po_area_infos'] = $this->Po_zone_area_detail->get_po_areas();\n\t\treturn $data;\n\t}", "function comboBase($code, $id_transportadora = 0) {\n // pega variaveis global\n global $con;\n \n // pega o ID passado\n $id_transportadora = (empty($id_transportadora)) ? 0 : (int)$id_transportadora;\n\n // seta a condicao\n $_condi = (!empty($id_transportadora)) ? \"WHERE (idtransportadora = '{$id_transportadora}')\" : \"\";\n \n // executa\n $dba = new consulta($con);\n $dba->executa(\"SELECT codbase, nomebase FROM tbbase {$_condi} ORDER BY nomebase ASC\");\n\n // percorre o resultado da query\n for ($ii = 0; $ii < $dba->nrw; $ii++) {\n \t// navega\n $dba->navega($ii);\n \n // pega os campos\n\t\t$id = $dba->data[\"codbase\"];\n\t\t$nome = $dba->data[\"nomebase\"];\n \n // seleciona\n\t $sele = ($id == $code) ? \"selected='selected'\" : \"\";\n\t\t\n\t\t// mostra a opcao\n\t\techo \"<option value='{$id}' {$sele}>{$nome}</option>\\n\";\n }\n}", "function _load_combo_data()\n\t{\n\t\t$data['savings_code'] = $this->Saving->get_member_savings_code_list($this->input->post('member_id'));\t\t\n\t\t// Transaction type list which will be used in combo box\n\t\t$data['payments'] = array('CASH'=>'CASH','CHQ'=>'CHQ');\n\t\t// Payment type list which will be used in combo box\n\t\t//$data['transactions'] = array('DEP'=>'Deposit','INT'=>'Interest');\n\t\treturn $data;\n\t}", "private static function loadItems()\n\t{\n\t\tself::$_items=array();\t\t\t\t\t\t//FIXME Сделать критерию с селект где не будет лишних полей\n\t\t$models=self::model()->findAll();\n\t\tforeach($models as $model)\n\t\t\tself::$_items[$model->code]=$model->value;\n\t}", "static public function ctrlSeleccionarRegistros($item, $valor){\r\n\t$tabla= \"registros\";\r\n\t$respuesta = ModeloFormularios::mdlSeleccionarRegistros($tabla, $item, $valor);\r\n\treturn $respuesta;\r\n\r\n}", "public function ctlBuscaProveedores(){\n\n\t\t$respuesta = Datos::mdlProveedores();\n\n\t\tforeach ($respuesta as $row => $item){\n\t\t\techo '<option value=\"'.$item[\"nombre\"].'\">'.$item[\"nombre\"].'</option>';\n\t\t}\n\t}", "public function getcboregprocede() {\n \n $sql = \"select ctipo as 'cprocede', dregistro as 'dprocede' from ttabla where ctabla = 47 and ncorrelativo <> 0 order by dregistro;\";\n\t\t$query = $this->db->query($sql);\n \n if ($query->num_rows() > 0) {\n\n $listas = '<option value=\"0\" selected=\"selected\">::Elegir</option>';\n \n foreach ($query->result() as $row)\n {\n $listas .= '<option value=\"'.$row->cprocede.'\">'.$row->dprocede.'</option>'; \n }\n return $listas;\n }{\n return false;\n }\t\n }", "function construirComboSoloDatos($result) {\n\t\n\t$cadena = \"\";\n\tforeach($result as $opcion) {\t\t\n\t\t$cadena .= \"<option value=\\\"\". $opcion[\"codigo\"] .\"\\\">\" . $opcion[\"texto\"] . \"</option>\";\n\t}\n\t\n\treturn $cadena;\t\n}", "public function ctlBuscaMisBodegas(){\n\n\t\t$respuesta = Datos::mdlBodegas(\"entradas\");\n\n\t\tforeach ($respuesta as $row => $item){\n\t\t\techo '<option value=\"'.$item[\"destino\"].'\">'.$item[\"destino\"].'</option>';\n\t\t}\n\t}", "public function combo_acciones_estrategicos(){\n $salida = \"\";\n $id_pais = $_POST[\"elegido\"];\n // construimos el combo de ciudades deacuerdo al pais seleccionado\n $combog = pg_query('select *\n from _acciones_estrategicas\n where obj_id='.$id_pais.' and acc_estado!=3\n order by acc_id asc');\n $salida .= \"<option value=''>\" . mb_convert_encoding('SELECCIONE ACCI&Oacute;N ESTRATEGICA', 'cp1252', 'UTF-8') . \"</option>\";\n while ($sql_p = pg_fetch_row($combog)) {\n $salida .= \"<option value='\" . $sql_p[0] . \"'>\" .$sql_p[2].\".- \".$sql_p[3] . \"</option>\";\n }\n echo $salida;\n }", "function listaRuta()\r\n\t{\t\r\n\t\t$query = \"SELECT * FROM \" . self::TABLA . \";\";\r\n\t\treturn parent::listaRegistros( $query );\r\n\t}", "public function LcargarComboTipoUnidadMedidaMuestraSeleccionado() {\n $oDLaboratorio = new DLaboratorio();\n $resultado = $oDLaboratorio->DcargarComboTipoUnidadMedidaMuestraSeleccionado();\n return $resultado;\n }", "public function init() {\n $auth = Zend_Auth::getInstance()->setStorage(new Zend_Auth_Storage_Session('admin'));\n $user = $auth->getIdentity();\n $code_groupe = $user->code_groupe;\n\n $this->setMethod('post');\n\n $this->addElement('text', 'nom_gac', array(\n 'label' => 'Nom *',\n 'required' => true,\n 'size' => 30,\n 'filters' => array('StringTrim'),\n ));\n\n $nm = new Application_Model_DbTable_EuMembreMorale();\n $select = $nm->select();\n $rows = $nm->fetchAll($select);\n $membres = array();\n foreach ($rows as $c) {\n $membres[] = $c->code_membre_morale;\n }\n $elem = new ZendX_JQuery_Form_Element_AutoComplete(\n \"code_membre\", array('label' => 'Code membre','required' => false)\n );\n $elem->setJQueryParams(array('source' => $membres));\n $elem->setAttrib('size', '25');\n $elem->setRequired(false);\n $this->addElement($elem);\n\n $mapper = new Application_Model_DbTable_EuTypeGac();\n $select = $mapper->select();\n $select->order('ordre_type_gac', 'ASC');\n if ($code_groupe == 'agregat') {\n $select->where('ordre_type_gac >=?', 1);\n $select->where('ordre_type_gac <=?', 8);\n } elseif ($code_groupe == 'gac') {\n $select->where('ordre_type_gac >=?', 2);\n $select->where('ordre_type_gac <=?', 8);\n } elseif ($code_groupe == 'gacp') {\n $select->where('ordre_type_gac >=?', 3);\n $select->where('ordre_type_gac <=?', 8);\n } elseif ($code_groupe == 'gacsu') {\n $select->where('ordre_type_gac >=?', 9);\n $select->where('ordre_type_gac <=?', 11);\n } elseif ($code_groupe == 'gacex') {\n $select->where('ordre_type_gac >=?', 3);\n } elseif ($code_groupe == 'gacse') {\n $select->where('ordre_type_gac >=?', 4);\n $select->where('ordre_type_gac <=?', 8);\n } elseif ($code_groupe == 'gacr') {\n $select->where('ordre_type_gac >=?', 5);\n $select->where('ordre_type_gac <=?', 8);\n } elseif ($code_groupe == 'gacs') {\n $select->where('ordre_type_gac >=?', 6);\n $select->where('ordre_type_gac <=?', 8);\n }\n $tgac = $mapper->fetchAll($select);\n $t_select = new Zend_Form_Element_Select('code_type_gac');\n $t_select->setLabel('Type GAC *');\n $t_select->setRequired(true);\n foreach ($tgac as $c) {\n $t_select->addMultiOption('', '');\n $t_select->addMultiOption($c->code_type_gac, $c->nom_type_gac);\n }\n $this->addElement($t_select);\n\n $mapper = new Application_Model_EuZoneMapper();\n $zones = $mapper->fetchAll();\n $z_select = new Zend_Form_Element_Select('code_zone');\n $z_select->setLabel('Zone géographique');\n $z_select->isRequired(true);\n foreach ($zones as $c) {\n $z_select->addMultiOption('', '');\n $z_select->addMultiOption($c->code_zone, $c->nom_zone);\n }\n $mapper = new Application_Model_EuPaysMapper();\n $zones = $mapper->fetchAll();\n $z_select->isRequired(true);\n foreach ($zones as $c) {\n $z_select->addMultiOption('', '');\n $z_select->addMultiOption($c->id_pays, $c->libelle_pays);\n }\n $mapper = new Application_Model_DbTable_EuSection();\n $zones = $mapper->fetchAll();\n $z_select->isRequired(true);\n foreach ($zones as $c) {\n $z_select->addMultiOption('', '');\n $z_select->addMultiOption($c->id_section, $c->nom_section);\n }\n $mapper = new Application_Model_DbTable_EuRegion();\n $zones = $mapper->fetchAll();\n $z_select->isRequired(true);\n foreach ($zones as $c) {\n $z_select->addMultiOption('', '');\n $z_select->addMultiOption($c->id_region, $c->nom_region);\n }\n $mapper = new Application_Model_EuSecteurMapper();\n $zones = $mapper->fetchAll();\n $z_select->isRequired(true);\n foreach ($zones as $c) {\n $z_select->addMultiOption('', '');\n $z_select->addMultiOption($c->code_secteur, $c->nom_secteur);\n }\n $mapper = new Application_Model_EuAgenceMapper();\n $zones = $mapper->fetchAll();\n $z_select->isRequired(true);\n foreach ($zones as $c) {\n $z_select->addMultiOption('', '');\n $z_select->addMultiOption($c->code_agence, $c->libelle_agence);\n }\n $this->addElement($z_select);\n\n $a_select = new Zend_Form_Element_Multiselect('code_agence');\n $a_select->setLabel('Agences couvertes');\n $a_select->isRequired(false);\n $mapper = new Application_Model_DbTable_EuAgence();\n $select = $mapper->select();\n $select->order('libelle_agence', 'ASC');\n $agence = $mapper->fetchAll($select);\n foreach ($agence as $c) {\n $a_select->addMultiOption('', '');\n $a_select->addMultiOption($c->code_agence, $c->libelle_agence);\n }\n $this->addElement($a_select);\n \n $ng = new Application_Model_DbTable_EuMembre();\n $select = $ng->select();\n $rows = $ng->fetchAll($select);\n $membres = array();\n foreach ($rows as $c) {\n $membres[] = $c->code_membre;\n }\n $elem = new ZendX_JQuery_Form_Element_AutoComplete(\n \"code_membre_gestionnaire\", array('label' => 'Numéro gestionnaire','required' => false)\n );\n $elem->setJQueryParams(array('source' => $membres));\n $elem->setAttrib('size', '25');\n $elem->setRequired(false);\n $this->addElement($elem);\n\n $this->addElement('text', 'nom_gestion', array(\n 'label' => 'Nom gestionnaire',\n 'required' => false,\n 'filters' => array('StringTrim'),\n 'size' => 25,\n 'readonly' => true,\n ));\n\n $this->addElement('text', 'prenom_gestion', array(\n 'label' => 'Prénoms gestionnaire',\n 'required' => false,\n 'filters' => array('StringTrim'),\n 'size' => 25,\n 'readonly' => true,\n ));\n\n $this->addElement('text', 'tel_gestion', array(\n 'label' => 'Téléphone gestionnaire',\n 'required' => false,\n 'filters' => array('StringTrim'),\n 'size' => 25,\n 'readonly' => true,\n ));\n\n $this->addElement('submit', 'submit', array(\n 'ignore' => true,\n 'label' => 'Valider',\n ));\n\n // Add the cancel button\n $this->addElement('button', 'cancel', array(\n 'ignore' => true,\n 'label' => 'Annuler',\n ));\n $this->addElement(\n 'hidden', 'code_gac', array(\n ));\n $this->addElement(\n 'hidden', 'zone', array(\n ));\n \n }", "function getTituloCombo($tabelaProcura){\n # Abre arquivo xml para navegacao\n $aBanco = simplexml_load_string($this->xml);\n $retorno = $pk = '';\n # Varre a estrutura das tabelas\n foreach($aBanco as $aTabela){\n # Recupera o nome da tabela e gera o nome da classe\n if($tabelaProcura != $aTabela['NOME']) \n continue;\n\n # Varre a estrutura dos campos da tabela em questao\n foreach($aTabela as $oCampo){ \n //print \"@@{$oCampo->NOME}\\n\";\n //print_r($aTabela); exit;\n # Se o campo for chave, nao sera usado\n if($oCampo->CHAVE == 1){\n $pk = $oCampo->NOME;\n \n if((String)$oCampo->FKTABELA == ''){\n continue;\n }\n }\n\n # Se o campo for do tipo numerico, nao sera usado, nao sera usado\n if(!preg_match(\"#varchar#is\", (String)$oCampo->TIPO)) continue;\n \n # Se o campo tiver nomenclatura que nao remeta a nome/descricao sera eliminado \n if(preg_match(\"#(?:nome|descricao)#is\", (String)$oCampo->NOME)){\n $retorno = (String)$oCampo->NOME;\n break;\n }\n \n # Se o campo tiver nomenclatura que nao remeta a nome/descricao sera eliminado \n if(preg_match(\"#(?:usuario|login|nome_?(?:pessoa|cliente|servidor)|descricao|titulo|nm_(?:pessoa|cliente|servidor|estado_?civil|lotacao|credenciado)|desc_)#is\", (String)$oCampo->NOME)){\n $retorno = (String)$oCampo->NOME;\n break;\n }\n \n # Recupera valores a serem substituidos no modelo\n \n }\n break;\n }\n if($retorno == '')\n $retorno = $pk;\n return (string)$retorno;\n }", "public function Listar(){\n\t\t\t$view_agendamento = new ViewAgendamentoPacienteFuncionarioClass();\n\n\t\t\t//Chama o método para selecionar os registros\n \n \n \n\t\t\treturn $view_agendamento::Select();\n\t\t}", "function cargar_privilegios2(){\n\t\t$res = $this->lis_privs();\n\t\t$comboBox = '<select id=\"selectPrivs2\" name=\"Privilegio\">';\n\t\t$vals = array();\n\t\t$i = 0;\n\t\t$j = 0;\n\t\tforeach($res as $row){\n\t\t\t$vals[$i] = $row;\n\t\t\t$i = $i +1;\n\t\t}\n\t\twhile($j < $i){\n\t\t\t$comboBox .= '<option value = \"'.$vals[$j].'\">'.$vals[$j+1].'</option>';\n\t\t\t$j = $j+2;\n\t\t}\t\t\n\t\t$comboBox .= '</select>';\n\t\treturn $comboBox;\n\t}", "public function ctlBuscaClientes(){\n\n\t\t$respuesta = Datos::mdlClientes(\"clientes\");\n\n\t\tforeach ($respuesta as $row => $item){\n\t\t\techo '<option value=\"'.$item[\"nombre\"].'\">'.$item[\"nombre\"].'</option>';\n\t\t}\n\t}", "public function init() {\n $resources = new Model_Resources();\n $resources->form_values['only_childs'] = 1;\n $result2 = $resources->getResources('resource_name', 'ASC');\n $this->_list[\"page_name\"][''] = \"Select\";\n if ($result2) {\n foreach ($result2 as $row2) {\n $resource = $row2->getResourceName();\n $arr_resources = explode(\"/\", $resource);\n $second_name = (!empty($arr_resources[1])) ? ucfirst($arr_resources[1]) . \" - \" : \"\";\n $this->_list[\"page_name\"][$row2->getPkId()] = ucfirst($arr_resources[0]) . \" - \" . $second_name . $row2->getDescription();\n }\n }\n\n //Generate fields \n // for Form_Iadmin_MessagesAdd\n foreach ($this->_fields as $col => $name) {\n if ($col == \"description\") {\n parent::createMultiLineText($col, \"4\");\n }\n\n // Generate combo boxes \n // for Form_Iadmin_MessagesAdd\n if (in_array($col, array_keys($this->_list))) {\n parent::createSelect($col, $this->_list[$col]);\n }\n\n // Generate Radio buttons\n // for Form_Iadmin_MessagesAdd\n if (in_array($col, array_keys($this->_radio))) {\n parent::createRadio($col, $this->_radio[$col]);\n }\n }\n }", "function cmb2_fields_home() {\n // Adiciona um bloco\n $cmb = new_cmb2_box([ /// está dentro de um Array, que é o [];\n 'id' => 'home_box', // id deve ser único\n 'title' => 'Menu da Semana', /// o title deve ser igual ao page-template\n 'object_types' => ['page'], // tipo de post\n 'show_on' => [\n 'key' => 'page-template',\n 'value' => 'page-home.php',\n ], // modelo de página\n ]);\n\n $cmb->add_field([\n 'name' => 'Descrição da página para SEO',\n 'id' => 'description_seo',\n 'type' => 'text',\n ]);\n\n // Adiciona um campo ao bloco criado\n $cmb->add_field([\n 'name' => 'Primeiro Prato',\n 'id' => 'comida1',\n 'type' => 'text',\n ]);\n\n // O campo repetidor é do tipo group // aqui é para repetir os pratos\n $pratos = $cmb->add_field([\n 'name' => 'Pratos',\n 'id' => 'pratos',\n 'type' => 'group',\n 'repeatable' => true,\n 'options' => [\n 'group_title' => 'Prato {#}', /// aqui aparece o numero da posição do prato\n 'add_button' => 'Adicionar Prato',\n 'remove_button' => 'Remover Prato',\n 'sortable' => true, /// se quero que o cliente mude a ordem;\n ],\n ]);\n\n // Cada campo é adicionado com add_group_field\n // Passando sempre o campo de grupo como primeiro argumento\n $cmb->add_group_field($pratos, [\n 'name' => 'Nome',\n 'id' => 'nome',\n 'type' => 'text',\n ]);\n\n $cmb->add_group_field($pratos, [\n 'name' => 'Descrição',\n 'id' => 'descricao',\n 'type' => 'text',\n ]);\n\n $cmb->add_group_field($pratos, [\n 'name' => 'Preço',\n 'id' => 'preco',\n 'type' => 'text',\n ]);\n\n // Adiciona um campo ao bloco criado\n $cmb->add_field([\n 'name' => 'Segundo Prato',\n 'id' => 'comida2',\n 'type' => 'text',\n ]);\n\n // O campo repetidor é do tipo group // aqui é para repetir os pratos\n $pratos2 = $cmb->add_field([\n 'name' => 'Pratos2',\n 'id' => 'pratos2',\n 'type' => 'group',\n 'repeatable' => true,\n 'options' => [\n 'group_title' => 'Prato {#}', /// aqui aparece o numero da posição do prato\n 'add_button' => 'Adicionar Prato Dois',\n 'remove_button' => 'Remover Prato Dois',\n 'sortable' => true, /// se quero que o cliente mude a ordem;\n ],\n ]);\n\n // Cada campo é adicionado com add_group_field\n // Passando sempre o campo de grupo como primeiro argumento\n $cmb->add_group_field($pratos2, [\n 'name' => 'Nome',\n 'id' => 'nome',\n 'type' => 'text',\n ]);\n\n $cmb->add_group_field($pratos2, [\n 'name' => 'Descrição',\n 'id' => 'descricao',\n 'type' => 'text',\n ]);\n\n $cmb->add_group_field($pratos2, [\n 'name' => 'Preço',\n 'id' => 'preco',\n 'type' => 'text',\n ]);\n}", "public function indexAction()\r\n\t{\r\n\t\t$this->view->contratoCombo = $this->objContrato->getContrato(true, true);\t\t\r\n\t}", "public function getInfoDropDownList()\n {\n \n try{\n if(!$this->pdo)throw new PDOException();\n $collection = [];\n $sth = $this->pdo->query(\"SELECT id, name FROM brands\"); \n $collection ['brands'] = $this->getFetchAccoss($sth);\n $sth = $this->pdo->query(\"SELECT id, name FROM models\"); \n $collection ['models'] = $this->getFetchAccoss($sth);\n $sth = $this->pdo->query(\"SELECT id, name FROM colors\"); \n $collection ['colors'] = $this->getFetchAccoss($sth);\n $collection ['sucess'] = 1;\n return json_encode($collection);\n }catch(PDOException $err){\n file_put_contents('errors.txt', $err->getMessage(), FILE_APPEND); \n $err_arr = ['sucess'=>0];\n return json_encode($err_arr);\n }\n }", "public function Listar(){\n\n $motorista = new Motorista();\n\n return $motorista::Select();\n\n }", "public function getcboregAreazona($parametros) {\n \n $procedure = \"call usp_at_audi_getcboregAreazona(?)\";\n\t\t$query = $this->db-> query($procedure,$parametros);\n \n if ($query->num_rows() > 0) {\n\n $listas = '<option value=\"\" selected=\"selected\">::Elegir</option>';\n \n foreach ($query->result() as $row)\n {\n $listas .= '<option value=\"'.$row->CESTABLEAREA.'\">'.$row->DESTABLEAREA.'</option>'; \n }\n return $listas;\n }{\n return false;\n }\t\n }", "function uf_cmb_nomina($as_seleccionado)\r\n\t{\r\n\t\t$lb_valido=true;\r\n\t\t$ls_sql=\"SELECT a.codnom, a.desnom \". \r\n\t\t \" FROM sno_nomina as a WHERE a.codemp='\".$this->ls_codemp.\"'\";\r\n\t\t$rs_result=$this->io_sql->select($ls_sql);\t\t\r\n\t\tif($rs_result===false)\r\n\t\t {\r\n\t\t\t$this->io_msg->message(\"CLASE->Buscar Tipos de Servicios Médicos MÉTODO->uf_cmb_nomina ERROR->\".$this->io_function->uf_convertirmsg($this->io_sql->message));\r\n\t\t\t$lb_valido=false;\r\n\t\t\t//return false;\r\n\t\t }\r\n\t\t else\r\n\t\t {\r\n\t\t\tprint \"<select name='cmbnomina' id='cmbnomina' onChange='javascript: ue_cargargrid();'>\";\r\n\t\t\tprint \" <option value='00'>-- Seleccione Una Nomina--</option>\";\r\n\t\t\twhile($row=$this->io_sql->fetch_row($rs_result))\r\n\t\t\t{\r\n\t\t\t\t$ls_seleccionado=\"\";\r\n\t\t\t\t$ls_codnom=$row[\"codnom\"];\r\n\t\t\t\t$ls_desnom=$row[\"desnom\"];\r\n\t\t\t\t$ls_operacion=\"\";\r\n\t\t\t\tif($as_seleccionado==$ls_codnom)\r\n\t\t\t\t{\r\n\t\t\t\t\t$ls_seleccionado=\"selected\";\r\n\t\t\t\t}\r\n\t\t\t\tprint \"<option value='\".$ls_codnom.\"' \".$ls_seleccionado.\">\".$ls_desnom.\" - \".$ls_operacion.\"</option>\";\r\n\t\t\t}\r\n\t\t\t$this->io_sql->free_result($rs_result);\t\r\n\t\t\tprint \"</select>\";\r\n\t\t}\r\n\t\treturn $lb_valido;\r\n\t}", "public function selecionarAction() { \r\n // Recupera os parametros da requisição\r\n $params = $this->_request->getParams();\r\n \r\n // Instancia a classes de dados\r\n $menus = new WebMenuSistemaModel();\r\n \r\n // Retorna para a view os menus cadastrados\r\n $this->view->menus = $menus->getMenus();\r\n \r\n // Define os filtros para a cosulta\r\n $where = $menus->addWhere(array(\"CD_MENU = ?\" => $params['cd_menu']))->getWhere();\r\n \r\n // Recupera o sistema selecionado\r\n $menu = $menus->fetchRow($where);\r\n \r\n // Reenvia os valores para o formulário\r\n $this->_helper->RePopulaFormulario->repopular($menu->toArray(), \"lower\");\r\n }", "public function init()\n {\n $this->setMethod('post');\n\n $this->addElement(\n 'text', 'code_bout', array(\n 'label' => 'Code *',\n 'required' => true,\n 'filters' => array('StringTrim'),\n ));\n\n $this->addElement('text', 'design_bout', array(\n 'label' => 'Raison sociale *',\n 'required' => true,\n ));\n \n $this->addElement('text', 'telephone', array(\n 'label' => 'Téléphone *',\n 'required' => true,\n 'filters' => array('StringTrim'),\n ));\n \n $this->addElement('text', 'adresse', array(\n 'label' => 'Adresse *',\n 'required' => true,\n 'filters' => array('StringTrim'),\n ));\n \n $ms = new Application_Model_EuSecteurMapper();\n $secteur = $ms->fetchAll();\n $z_select = new Zend_Form_Element_Select('codesect');\n $z_select->setLabel('Nom secteur *: ')->isRequired(true);\n foreach ($secteur as $s) {\n $z_select->addMultiOption($s->codesect, $s->nomsect);\n }\n $this->addElement($z_select);\n \n $this->addElement('text', 'nom_responsable', array(\n 'label' => 'Nom responsable*:',\n 'required' => true,\n 'filters' => array('StringTrim'),\n ));\n \n $this->addElement('text', 'prenom_responsable', array(\n 'label' => 'Prenom responsable*:',\n 'required' => true,\n 'filters' => array('StringTrim'),\n ));\n \n // $nm = new Application_Model_DbTable_EuMembre();\n // $select = $nm->select();\n // $select->where('type_membre=?', 'M');\n // $rows = $nm->fetchAll($select);\n // $membres = array();\n // foreach ($rows as $c) {\n // $membres[] = $c->num_membre;\n // }\n // $elem = new ZendX_JQuery_Form_Element_AutoComplete(\n // \"proprietaire\", array('label' => 'Numéro membre *')\n // );\n // $elem->setJQueryParams(array('source' => $membres));\n // $this->addElement($elem);\n \n \n $this->addElement('text', 'mail', array(\n 'label' => 'E-Mail:',\n 'required' => false,\n 'filters' => array('StringTrim'),\n ));\n \n $this->addElement('text', 'siteweb', array(\n 'label' => 'Site web:',\n 'required' =>false,\n 'filters' => array('StringTrim'),\n ));\n \n $this->addElement('submit', 'submit', array(\n 'ignore' => true,\n 'label' => 'Valider',\n )); \n \n // Add the cancel button\n $this->addElement('button', 'cancel', array(\n 'ignore' => true,\n 'label' => 'Annuler',\n ));\n }", "function getDropDown() ;", "public function llenarCombo()\n {\n\n \n \t$area_destino = $_POST[\"dir\"];\n\n \t$options=\"\";\n \t\n \t$deptos = $this ->Modelo_direccion->obtenerCorreoDepto($area_destino);\n\n \tforeach ($deptos as $row){\n \t\t$options= '\n \t\t<option value='.$row->email.'>'.$row->email.'</option>\n \t\t'; \n \t\techo $options; \n \t}\n \t\n\n }", "function _Registros($Regs=0){\n\t\t// Creo grid\n\t\t$Grid = new nyiGridDB('NOTICIAS', $Regs, 'base_grid.htm');\n\t\t\n\t\t// Configuro\n\t\t$Grid->setParametros(isset($_GET['PVEZ']), 'titulo');\n\t\t$Grid->setPaginador('base_navegador.htm');\n\t\t$arrCriterios = array(\n\t\t\t'id'=>'Identificador',\n\t\t\t'titulo'=>'T&iacute;tulo', \n\t\t\t\"IF(p.visible, 'Si', 'No')\"=>\"Visible\"\n\t\t);\n\t\t$Grid->setFrmCriterio('base_criterios_buscador.htm', $arrCriterios);\n\t\n\t\t// Si viene con post\n\t\tif ($_SERVER[\"REQUEST_METHOD\"] == \"POST\"){\n\t\t\t$Grid->setCriterio($_POST['ORDEN_CAMPO'], $_POST['ORDEN_TXT'], $_POST['CBPAGINA']);\n\t\t\tunset($_GET['NROPAG']);\n\t\t}\n\t\telse if(isset($_GET['NROPAG'])){\n\t\t\t// Numero de Pagina\n\t\t\t$Grid->setPaginaAct($_GET['NROPAG']);\n\t\t}\n\t\n\t\t$Campos = \"p.id_noticia AS id, p.titulo, pf.nombre_imagen, pf.extension, IF(p.visible, 'Si', 'No') AS visible, p.copete\";\n\t\t$From = \"noticia p LEFT OUTER JOIN noticia_foto pf ON pf.id_noticia = p.id_noticia AND pf.orden = 1\";\n\t\t\n\t\t$Grid->getDatos($this->DB, $Campos, $From);\n\t\t\n\t\t// Devuelvo\n\t\treturn($Grid);\n\t}", "function cpt_combos() {\n\n\t$labels = array(\n\t\t'name' => _x( 'combos', 'Post Type General Name', 'text_domain' ),\n\t\t'singular_name' => _x( 'combo', 'Post Type Singular Name', 'text_domain' ),\n\t\t'menu_name' => __( 'Combos', 'text_domain' ),\n\t\t'name_admin_bar' => __( 'Combos', 'text_domain' ),\n\t\t'archives' => __( 'Archivo de Combos', 'text_domain' ),\n\t\t'attributes' => __( 'Atributos de Combo', 'text_domain' ),\n\t\t'parent_item_colon' => __( 'Combo Padre', 'text_domain' ),\n\t\t'all_items' => __( 'Todos los Combos', 'text_domain' ),\n\t\t'add_new_item' => __( 'Añadir Nuevo Combo', 'text_domain' ),\n\t\t'add_new' => __( 'Añadir Combo', 'text_domain' ),\n\t\t'new_item' => __( 'Nuevo Combo', 'text_domain' ),\n\t\t'edit_item' => __( 'Editar Combo', 'text_domain' ),\n\t\t'update_item' => __( 'Actualizar Combo', 'text_domain' ),\n\t\t'view_item' => __( 'Ver Combos', 'text_domain' ),\n\t\t'view_items' => __( 'Ver Combos', 'text_domain' ),\n\t\t'search_items' => __( 'Buscar Combos', 'text_domain' ),\n\t\t'not_found' => __( 'No Encontrado', 'text_domain' ),\n\t\t'not_found_in_trash' => __( 'No encontrado en la Papelera', 'text_domain' ),\n\t\t'featured_image' => __( 'Imagen Destacada', 'text_domain' ),\n\t\t'set_featured_image' => __( 'Configurar Imagen Destacada', 'text_domain' ),\n\t\t'remove_featured_image' => __( 'Remover Imagen Destacada', 'text_domain' ),\n\t\t'use_featured_image' => __( 'Usar como imagen destacada', 'text_domain' ),\n\t\t'insert_into_item' => __( 'Insertar en el Combo', 'text_domain' ),\n\t\t'uploaded_to_this_item' => __( 'Actualizar en este Combo', 'text_domain' ),\n\t\t'items_list' => __( 'Listado de Combos', 'text_domain' ),\n\t\t'items_list_navigation' => __( 'Lista Navegable de combos', 'text_domain' ),\n\t\t'filter_items_list' => __( 'Filtro de listas de Combos', 'text_domain' ),\n\t);\n\t$args = array(\n\t\t'label' => __( 'combo', 'text_domain' ),\n\t\t'description' => __( 'Tenemos los mejores combos únicos para ti.', 'text_domain' ),\n\t\t'labels' => $labels,\n\t\t'supports' => array( 'title', 'editor', 'thumbnail', 'custom-fields', 'page-attributes' ),\n\t\t'taxonomies' => array( 'category', 'post_tag' ),\n\t\t'hierarchical' => false,\n\t\t'public' => true,\n\t\t'show_ui' => true,\n\t\t'show_in_menu' => true,\n 'menu_icon' => 'dashicons-food',\n\t\t'menu_position' => 5,\n\t\t'show_in_admin_bar' => true,\n\t\t'show_in_nav_menus' => true,\n\t\t'can_export' => true,\n\t\t'has_archive' => true,\n\t\t'exclude_from_search' => false,\n\t\t'publicly_queryable' => true,\n\t\t'capability_type' => 'page',\n\t);\n\tregister_post_type( 'combos', $args );\n\n}", "public static function getGenreOptions() {\n \n try {\n\n require('connection.php');\n\n $result = $db->prepare(\"SELECT * FROM genres\");\n $result->execute();\n\n $options = '';\n\n while ($line = $result->fetch()) {\n $options = $options.'<option value=\"'.$line['Id'].'\">'.$line['Label'].'</option>';\n }\n\n return $options;\n\n } catch (Exception $e) {\n throw new Exception(\"<br>Erreur lors de la création de la liste d'options de genres : \". $e->getMessage());\n }\n\t\t}", "function consultarGrupo()\n\t\t{\n\t\t\t\t $file = fopen(\"../Archivos/ArrayConsultarGrupo.php\", \"w\");\n\t\t\t\t fwrite($file,\"<?php class consult { function array_consultar(){\". PHP_EOL);\n\t\t\t\t fwrite($file,\"\\$form=array(\" . PHP_EOL);\n\n\t\t\t$mysqli=$this->conexionBD();\n\t\t\t$query=\"SELECT * FROM grupo \";\n\t\t\t$resultado=$mysqli->query($query);\n\t\t\tif(mysqli_num_rows($resultado)){\n\t\t\t\twhile($fila = $resultado->fetch_array())\n\t\t\t{\n\t\t\t\t$filas[] = $fila;\n\t\t\t}\n\t\t\tforeach($filas as $fila)\n\t\t\t{ \n\t\t\t\t$nombre=$fila['NOMBRE_GRUPO'];\n\t\t\t\t$descripcion=$fila['DESCRIPCION'];\n\t\t\t\tfwrite($file,\"array(\\\"nombre\\\"=>'$nombre',\\\"descripcion\\\"=>'$descripcion'),\" . PHP_EOL);\n\t\t\t}\n\t\t\t}\n\t\t\t fwrite($file,\");return \\$form;}}?>\". PHP_EOL);\n\t\t\t\t fclose($file);\n\t\t\t\t $resultado->free();\n\t\t\t\t $mysqli->close();\n\t\t}", "protected function Campos()\n {\n $select = [\n ['value' => 'id1', 'text' => 'texto1'],\n ['value' => 'id2', 'text' => 'texto2']\n ];\n $this->text('unInput')->Validator(\"required|maxlength:20\");\n $this->text('unSelect')->Validator(\"required\")->type('select')->in_options($select);\n $this->date('unDate')->Validator(\"required\");\n }", "function cmdCustType($name, $caption) {\n $optcust_type = array\n (\n array(\"\", \"\"),\n array(\"End User\", \"1\"),\n array(\"Dealer / Reseller\", \"2\"),\n array(\"Goverment / BUMN\", \"3\"),\n );\n ?>\n <tr>\n <td><?php getCaption($caption); ?> :</td>\n <td>\n <select class=\"easyui-combobox\"\n id=\"<?php echo $name; ?>\"\n name=\"<?php echo $name; ?>\"\n style=\"width:120px;\"\n data-options=\"panelHeight:100,editable:false,width:200\"\n disabled=true\n >\n <?php\n foreach ($optcust_type as $val) {\n echo '<option value=\"' . $val[1] . '\">' . $val[0] . '</option>';\n }\n ?>\n </select>\n </td>\n </tr>\n <?php\n}", "function getListDiagrammer() {\n\n global $idAnalyst;\n $idProject = $_SESSION[\"permisosDeMenu\"];\n global $diagramerASMController;\n\n //obtenemos con el controlador del diagramador los elementos del select\n //id array para los valores de las opciones\n //array los valores a mostrar\n //action funcion que se desea ejercer en dicho elemento select\n $diagramerASMController = new asmsController;\n $ASMs = $diagramerASMController->getASMstexto($idProject);\n $id = array();\n $array = array();\n for ($i = 0; $i < count($ASMs); $i++) {\n $asm = $ASMs[$i];\n $idASM = $asm->getIdASM();\n $name = $asm->getName();\n $id[] = $idASM;\n $array[] = $name;\n }\n $action = \"lookDiagram(value)\";\n $select = select($id, $array, $action, \"...\");\n return $select;\n}", "public function getcboformula($parametros) {\n \n $procedure = \"call usp_at_audi_getcboformula(?)\";\n\t\t$query = $this->db-> query($procedure,$parametros);\n \n if ($query->num_rows() > 0) {\n\n $listas = '<option value=\"\" selected=\"selected\">::Elegir</option>';\n \n foreach ($query->result() as $row)\n {\n $listas .= '<option value=\"'.$row->IDFORMULA.'\">'.$row->DESCFORMULA.'</option>'; \n }\n return $listas;\n }{\n return false;\n }\t\n }", "function buscar_materiales($registrado,$texto_buscar,$licencia,$sql) {\n\t\n\t\tif ($registrado==false) {\n\t\t\t$mostrar_visibles=\"AND material_estado=1\";\n\t\t}\n\t\t\n\t\tif ($texto_buscar !='') {\n\t\t\t\n\t\t\t$sql_texto=\"AND (material_titulo LIKE '%$texto_buscar%' \n\t\t\tOR material_descripcion LIKE '%$texto_buscar%' \n\t\t\tOR material_objetivos LIKE '%$texto_buscar%') \n\t\t\t\";\n\t\t\n\t\t}\n\t\t\n\t\t$query = \"SELECT COUNT(*) FROM materiales\n\t\tWHERE material_licencia = '$licencia'\n\t\t$sql\n\t\t$sql_texto\n\t\t$mostrar_visibles\n\t\tORDER BY fecha_alta desc\";\n\n\t\t$connection = mysql_connect($this->HOST, $this->USERNAME, $this->PASSWORD);\n\n\t\t$SelectedDB = mysql_select_db($this->DBNAME);\n\t\t$result = mysql_query($query); \n\t\t\n\t\t$numrows = mysql_fetch_array($result);\n\t\tmysql_close($connection);\n\t\t// COMPROBAMOS QUE HAYA RESULTADOS\n\t\t// SI EL NUMERO DE RESULTADOS ES 0 SIGNIFICA QUE NO HAY REGISTROS CON ESOS DATOS\n\t\tif ($numrows[0] == 0) {\n\t\t\treturn false;\n\t\t}\n\t\telse {\n\t\t\treturn $numrows[0];\n\t\t}\n\t}", "function cmb2_fields_sobre() {\n // Adiciona um bloco\n $cmb = new_cmb2_box([ /// está dentro de um Array, que é o [];\n 'id' => 'sobre_box', // id deve ser único\n 'title' => 'Sobre',\n 'object_types' => ['page'], // tipo de post\n 'show_on' => [\n 'key' => 'page-template',\n 'value' => 'page-sobre.php',\n ], // modelo de página\n ]);\n\n $cmb->add_field([\n 'name' => 'Descrição da página para SEO',\n 'id' => 'description_seo',\n 'type' => 'text',\n ]);\n\n // Adiciona um campo ao bloco criado\n $cmb->add_field([\n 'name' => 'Foto Rest',\n 'id' => 'foto_rest',\n 'type' => 'file',\n 'options' => [\n 'url' => false,\n ]\n ]);\n\n $cmb->add_field([\n 'name' => 'Primeiro item do sobre',\n 'id' => 'historia',\n 'type' => 'text',\n ]);\n\n $cmb->add_field([\n 'name' => 'Texto do primeiro item do sobre',\n 'id' => 'textoHistoria',\n 'type' => 'textarea',\n ]);\n\n $cmb->add_field([\n 'name' => 'Segundo item do sobre',\n 'id' => 'visao',\n 'type' => 'text',\n ]);\n\n $cmb->add_field([\n 'name' => 'Texto do segundo item do sobre',\n 'id' => 'textoVisao',\n 'type' => 'textarea',\n ]);\n\n $cmb->add_field([\n 'name' => 'Terceiro item do sobre',\n 'id' => 'valores',\n 'type' => 'text',\n ]);\n\n $cmb->add_field([\n 'name' => 'Texto do terceiro item do sobre',\n 'id' => 'textoValores',\n 'type' => 'textarea',\n ]);\n}", "function listadoSelect();", "protected function get_registered_options()\n {\n }", "private function crear_get()\n {\n $item = $this->ObtenNewModel();\n\t\t$lModel = new CicloModel(); \n \n //Pasamos a la vista toda la información que se desea representar\n\t\t$data['TituloPagina'] = \"Añadir un grupo\";\n\t\t$data[\"Model\"] = $item;\n\t\t$data[\"ComboCiclos\"] = $lModel->ObtenerTodos();\n\n //Finalmente presentamos nuestra plantilla\n\t\theader (\"content-type: application/json; charset=utf-8\");\n $this->view->show($this->_Nombre.\"/crear.php\", $data);\n\t}", "function uf_cmb_tiposervicio($as_seleccionado)\r\n\t{\r\n\t\t$lb_valido=true;\r\n\t\t$ls_sql=\"SELECT codtipservicio, dentipservicio \". \r\n\t\t \" FROM sme_tiposervicio WHERE codemp='\".$this->ls_codemp.\"'\".\" ORDER BY codtipservicio\";\r\n\t\t//print $ls_sql;\r\n\t\t$rs_result=$this->io_sql->select($ls_sql);\t\t\r\n\t\tif($rs_result===false)\r\n\t\t {\r\n\t\t\t$this->io_msg->message(\"CLASE->Buscar Tipos de Servicios Médicos MÉTODO->uf_cmb_tiposervicios ERROR->\".$this->io_function->uf_convertirmsg($this->io_sql->message));\r\n\t\t\t$lb_valido=false;\r\n\t\t\t//return false;\t\t\t\r\n\t\t }\r\n\t\t else\r\n\t\t {\r\n\t\t\tprint \"<select name='cmbcodtiptar' id='cmbcodtiptar' onchange='javascript: ue_cargargrid();'>\";\r\n\t\t\tprint \" <option value='00'>-- Seleccione Servicio Médico--</option>\";\r\n\t\t\twhile($row=$this->io_sql->fetch_row($rs_result))\r\n\t\t\t{\r\n\t\t\t\t$ls_seleccionado=\"\";\r\n\t\t\t\t$ls_codtipservicio=$row[\"codtipservicio\"];\r\n\t\t\t\t$ls_dentipservicio=$row[\"dentipservicio\"];\r\n\t\t\t\t$ls_operacion=\"\";\r\n\t\t\t\tif($as_seleccionado==$ls_codtipservicio)\r\n\t\t\t\t{\r\n\t\t\t\t\t$ls_seleccionado=\"selected\";\r\n\t\t\t\t}\r\n\t\t\tprint \"<option value='\".$ls_codtipservicio.\"' \".$ls_seleccionado.\">\".$ls_dentipservicio.\" - \".$ls_operacion.\"</option>\";\r\n\t\t\t}\r\n\t\t\t$this->io_sql->free_result($rs_result);\r\n\t\t\tprint \"</select>\";\r\n\t\t }\r\n\treturn $lb_valido;\r\n\t}", "public function init()\r\n {\r\n \t\r\n \r\n \tif(!isset($this->_PROJETOS)){\r\n \t\t$projeto= new Application_Model_DbTable_Projeto();\r\n \t\t$this->_PROJETOS=$projeto->getProjetoCombo() ;\r\n \t} \t\r\n \t$this->setName('FormularioServico');\r\n $FL_VALIDAR_SERVICO= new Zend_Form_Element_Hidden('FL_VALIDAR_SERVICO');\r\n $FL_VALIDAR_SERVICO->addFilter('Int');\r\n $FL_VALIDAR_SERVICO->removeDecorator('Label');\r\n \r\n $ID_SERVICO = new Zend_Form_Element_Hidden('ID_SERVICO');\r\n $ID_SERVICO->addFilter('Int');\r\n $ID_SERVICO->removeDecorator('Label');\r\n \r\n \r\n $FK_OPERADOR = new Zend_Form_Element_Hidden('FK_OPERADOR');\r\n $FK_OPERADOR->addFilter('Int');\r\n $FK_OPERADOR->removeDecorator('Label');\r\n \r\n $FL_PCP = new Zend_Form_Element_Hidden('FL_PCP');\r\n $FL_PCP->addFilter('Int');\r\n $FL_PCP->removeDecorator('Label');\r\n \r\n /* \r\n \r\n \r\n \r\n \r\n \r\n \r\n */\r\n\r\n $FK_TIPO_SERVICO= new Zend_Form_Element_Select('FK_TIPO_SERVICO');\r\n $tipoServico= new Application_Model_DbTable_TipoServico();\r\n $FK_TIPO_SERVICO->setLabel('TIPO PCP');\r\n $FK_TIPO_SERVICO->setMultiOptions( $tipoServico->getTipoServicoCombo() )\r\n ->setRequired(true)\r\n ->removeDecorator('DtDdWrapper')\r\n ->removeDecorator('HtmlTag')\r\n ->removeDecorator('Label')\r\n ->setAttrib('class', 'form-control select2');\r\n \r\n\t\t\r\n \r\n $FK_PROJETO= new Zend_Form_Element_Hidden('FK_PROJETO');\r\n $FK_PROJETO->addFilter('Int');\r\n $FK_PROJETO->removeDecorator('Label');\r\n \r\n $FK_PROJETO1 = new Zend_Form_Element_Text('FK_PROJETO1');\r\n $FK_PROJETO1->setLabel('PROJETO')\r\n ->setAttrib('class', 'form-control');\r\n\r\n \r\n $DS_SERVICO = new Zend_Form_Element_Textarea('DS_SERVICO');\r\n $DS_SERVICO->setLabel('PCP')\r\n \t\r\n \t ->removeDecorator('DtDdWrapper')\r\n \t ->removeDecorator('HtmlTag')\r\n \t ->removeDecorator('Label')\r\n \t ->setAttrib('class', 'form-control ')\r\n \t ->setAttrib('rows', '20');\r\n \r\n $DT_SERVICO = new Zend_Form_Element_Text('DT_SERVICO');\r\n $DT_SERVICO->setLabel('DATA')\r\n ->setRequired(true)\r\n ->addFilter('StripTags')\r\n ->addFilter('StringTrim')\r\n ->addValidator('NotEmpty')\r\n ->removeDecorator('DtDdWrapper')\r\n ->removeDecorator('HtmlTag')\r\n ->removeDecorator('Label')\r\n ->setAttrib('class', 'form-control')\r\n ->addPrefixPath('Aplicacao_Validate', 'Aplicacao/Validate/', 'validate')\r\n\t\t\t->addValidator(new Aplicacao_Validate_Data())\r\n ->setAttrib('placeholder', 'Enter serviço ');\r\n \r\n $NR_CARGA_HORARIA = new Zend_Form_Element_Text('NR_CARGA_HORARIA');\r\n $NR_CARGA_HORARIA->setLabel('CARGA HORARIA')\r\n ->setRequired(true)\r\n ->addFilter('StripTags')\r\n ->addFilter('StringTrim')\r\n ->addValidator('NotEmpty')\r\n ->removeDecorator('DtDdWrapper')\r\n ->removeDecorator('HtmlTag')\r\n ->removeDecorator('Label')\r\n ->addValidator('float', true, array('locale' => 'en_US'))\r\n ->setAttrib('class', 'form-control')\r\n ->setAttrib('placeholder', 'Enter carga horária ');\r\n \r\n \r\n \r\n $submit = new Zend_Form_Element_Submit('submit');\r\n $submit->setLabel(\"Adiconar\");\r\n $submit->setAttrib('id', 'submitbutton');\r\n $submit->removeDecorator('DtDdWrapper')\r\n ->setAttrib('class', 'btn btn-primary button')\r\n ->removeDecorator('HtmlTag')\r\n ->removeDecorator('Label'); \r\n \r\n $this->addElements(array($FK_PROJETO1,$FL_VALIDAR_SERVICO,$ID_SERVICO,$FK_PROJETO,$DS_SERVICO,$FK_OPERADOR,$FK_TIPO_SERVICO,$DT_SERVICO,$FL_PCP,$NR_CARGA_HORARIA,$submit)); \r\n $this->setDecorators( array( array('ViewScript', array('viewScript' => '/forms/formularioPcpProjeto.phtml')))); \r\n\t\r\n }", "public function mostrarInfoEquipo(){\n\n $infoEquipo = UsersModel::mostrarInfoTablas(\"manager\");\n\n foreach($infoEquipo as $row => $tipo){\n\n if($tipo[\"Id_Manager\"] > 1){\n\n echo '<option value=\"'.$tipo[\"Id_Manager\"].'\">'.$tipo[\"NameM\"].'</option>'; \n\n }\n\n }\n \n }", "public function cargar_retenciones()\r\n {\r\n $cod_org = usuario_actual('cod_organizacion');\r\n $ano=$this->drop_ano->SelectedValue;\r\n $sql2 = \"select * from presupuesto.retencion where cod_organizacion='$cod_org' and ano='$ano' \";\r\n $datos2 = cargar_data($sql2,$this);\r\n // array_unshift($datos2, \"Seleccione\");\r\n $this->drop_retenciones->Datasource = $datos2;\r\n $this->drop_retenciones->dataBind();\r\n }", "function getRegistros() {\n\t\tif (isset($this->extra[\"monitor_id\"]) and isset($this->extra[\"pagina\"])) {\n\t\t\t$this->resultado = $this->getDetalleRegistros($this->extra[\"monitor_id\"], $this->extra[\"pagina\"]);\n\t\t\treturn;\n\t\t}\n\n\t\tglobal $mdb2;\n\t\tglobal $log;\n\t\tglobal $current_usuario_id;\n\n\t\t/* OBTENER LOS DATOS Y PARSEARLO */\n\t\t$sql = \"SELECT unnest(_nodos_id) AS nodo_id FROM _nodos_id(\".\n\t\t\t pg_escape_string($current_usuario_id).\", \".\n\t\t\t pg_escape_string($this->objetivo_id).\", '\".\n\t\t\t pg_escape_string($this->timestamp->getInicioPeriodo()).\"','\".\n\t\t\t pg_escape_string($this->timestamp->getTerminoPeriodo()).\"')\";\n\t\t//print($sql);\n\t\t$res =& $mdb2->query($sql);\n\t\tif (MDB2::isError($res)) {\n\t\t\t$log->setError($sql, $res->userinfo);\n\t\t\texit();\n\t\t}\n\t\t$monitor_ids = array();\n\t\twhile($row = $res->fetchRow()) {\n\t\t\t$monitor_ids[] = $row[\"nodo_id\"];\n\t\t}\n\n\t\t/* SI NO HAY DATOS MOSTRAR MENSAJE */\n\t\tif (count($monitor_ids) == 0) {\n\t\t\t$this->resultado = $this->__generarContenedorSinDatos();\n\t\t\treturn;\n\t\t}\n\n\t\t/* TEMPLATE DEL GRAFICO */\n\t\t$T =& new Template_PHPLIB(REP_PATH_TABLETEMPLATES);\n\t\t$T->setFile('tpl_tabla', 'contenedor_tabla.tpl');\n\t\t$T->setBlock('tpl_tabla', 'LISTA_CONTENEDORES', 'lista_contenedores');\n\n\t\t/* LISTA DE MONITORES */\n\t\t$orden = 1;\n\t\tforeach ($monitor_ids as $monitor_id) {\n\t\t\t$T->setVar('__contenido_id', 'reg_'.$monitor_id);\n\t\t\t$T->setVar('__contenido_tabla', $this->getDetalleRegistros($monitor_id, 1, $orden));\n\t\t\t$T->parse('lista_contenedores', 'LISTA_CONTENEDORES', true);\n\t\t\t$orden++;\n\t\t}\n\n\t\t$this->resultado = $T->parse('out', 'tpl_tabla');\n\t}", "function combo_load()\n\t{\n\t\t$this->javascript_loader->combo_load();\n\t}", "public function filtroComboTipoContrato($idContratoGlobal=NULL, $opcSelected){\r\n\t\t$mostrarOpcion = true;\r\n\t\t$arrayOpciones = array();\r\n\t\t$query = new Query ();\r\n\t\t$sqlBC = \"SELECT usuario_id, `refempresaafiliada` FROM dbcontratosglobales WHERE reftipocontratoglobal IN (1,2) AND \tusuario_id = \".$this->getUsuarioId().\" \";\r\n\t\t$query->setQuery($sqlBC);\r\n\t\t$res1 = $query->eject();\r\n\t\t$numero = $query->numRows($res1);\r\n\t\t\r\n\t\tif($numero>=1){\r\n\t\t\t\r\n\t\t\t$selectOPC = \"SELECT dbcea.reftipocontratoglobal as tipoCredito FROM `dbcontratoempresaafiliada` dbcea JOIN dbcontratosglobales dbcg ON dbcg.refempresaafiliada = dbcea.`refempresaafiliada` WHERE dbcg.usuario_id = \".$this->getUsuarioId().\" AND dbcea.reftipocontratoglobal NOT IN (1,2) \";\r\n\r\n\t\t\t\r\n\t\t\t$query->setQuery($selectOPC);\r\n\t\t\t$resQ = $query->eject();\r\n\t\t\twhile($objOPC = $query->fetchObject($resQ) ){\r\n\t\t\t\t\r\n\t\t\t\t$arrayOpciones[] = $objOPC->tipoCredito;\r\n\t\t\t}\r\n\t\t\tif($opcSelected != ''){\r\n\t\t\t\t$arrayOpciones[] = $opcSelected;\r\n\t\t\t}\r\n\r\n\t\t\t\r\n\r\n\t\t}else{\r\n\t\t\t$selectOPC = \"SELECT dbcea.reftipocontratoglobal as tipoCredito FROM `dbcontratoempresaafiliada` dbcea JOIN dbcontratosglobales dbcg ON dbcg.refempresaafiliada = dbcea.`refempresaafiliada` WHERE dbcg.usuario_id = \".$this->getUsuarioId().\" \";\r\n\t\t\t$query->setQuery($selectOPC);\r\n\t\t\t$resQ = $query->eject();\r\n\t\t\twhile($objOPC = $query->fetchObject($resQ) ){\r\n\t\t\t\t$arrayOpciones[] = $objOPC->tipoCredito;\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\t$arrayOpciones = array_unique($arrayOpciones);\r\n\t\treturn $arrayOpciones;\t\r\n\r\n\t}", "public function get_all_registered()\n {\n }", "public function get_all_registered()\n {\n }", "public function run()\n {\n $register = [\n ['nome'=>'Barcelos','uf'=>'AM'],\n ['nome'=>'São Gabriel da Cachoeira','uf'=>'AM'],\n ['nome'=>'Tapauá','uf'=>'AM'],\n ['nome'=>'Atalaia do Norte','uf'=>'AM'],\n ['nome'=>'Jutaí','uf'=>'AM'],\n ['nome'=>'Lábrea','uf'=>'AM'],\n ['nome'=>'Santa Isabel do Rio Negro','uf'=>'AM'],\n ['nome'=>'Coari','uf'=>'AM'],\n ['nome'=>'Japurá','uf'=>'AM'],\n ['nome'=>'Apuí','uf'=>'AM'],\n ['nome'=>'Manicoré','uf'=>'AM'],\n ['nome'=>'Borba','uf'=>'AM'],\n ['nome'=>'Pauini','uf'=>'AM'],\n ['nome'=>'Novo Aripuanã','uf'=>'AM'],\n ['nome'=>'Maués','uf'=>'AM'],\n ['nome'=>'Novo Airão','uf'=>'AM'],\n ['nome'=>'Humaitá','uf'=>'AM'],\n ['nome'=>'Canutama','uf'=>'AM'],\n ['nome'=>'Urucará','uf'=>'AM'],\n ['nome'=>'Carauari','uf'=>'AM'],\n ['nome'=>'Presidente Figueiredo','uf'=>'AM'],\n ['nome'=>'Itamarati','uf'=>'AM'],\n ['nome'=>'Tefé','uf'=>'AM'],\n ['nome'=>'BocadoAcre','uf'=>'AM'],\n ['nome'=>'São Paulo de Olivença','uf'=>'AM'],\n ['nome'=>'Juruá','uf'=>'AM'],\n ['nome'=>'Codajás','uf'=>'AM'],\n ['nome'=>'Beruri','uf'=>'AM'],\n ['nome'=>'Maraã','uf'=>'AM'],\n ['nome'=>'Eirunepé','uf'=>'AM'],\n ['nome'=>'Nhamundá','uf'=>'AM'],\n ['nome'=>'Ipixuna','uf'=>'AM'],\n ['nome'=>'Envira','uf'=>'AM'],\n ['nome'=>'Santo Antônio do Içá','uf'=>'AM'],\n ['nome'=>'FonteBoa','uf'=>'AM'],\n ['nome'=>'Manaus','uf'=>'AM'],\n ['nome'=>'São Sebastião do Uatumã','uf'=>'AM'],\n ['nome'=>'Uarini','uf'=>'AM'],\n ['nome'=>'Caapiranga','uf'=>'AM'],\n ['nome'=>'Guajará','uf'=>'AM'],\n ['nome'=>'Itacoatiara','uf'=>'AM'],\n ['nome'=>'Benjamin Constant','uf'=>'AM'],\n ['nome'=>'Autazes','uf'=>'AM'],\n ['nome'=>'Manacapuru','uf'=>'AM'],\n ['nome'=>'Tonantins','uf'=>'AM'],\n ['nome'=>'Careiro','uf'=>'AM'],\n ['nome'=>'Parintins','uf'=>'AM'],\n ['nome'=>'Alvarães','uf'=>'AM'],\n ['nome'=>'Rio Preto da Eva','uf'=>'AM'],\n ['nome'=>'Anori','uf'=>'AM'],\n ['nome'=>'Barreirinha','uf'=>'AM'],\n ['nome'=>'Nova Olinda do Norte','uf'=>'AM'],\n ['nome'=>'Amaturá','uf'=>'AM'],\n ['nome'=>'Itapiranga','uf'=>'AM'],\n ['nome'=>'Manaquiri','uf'=>'AM'],\n ['nome'=>'Silves','uf'=>'AM'],\n ['nome'=>'Tabatinga','uf'=>'AM'],\n ['nome'=>'Urucurituba','uf'=>'AM'],\n ['nome'=>'Careiro da Várzea','uf'=>'AM'],\n ['nome'=>'Boa Vista do Ramos','uf'=>'AM'],\n ['nome'=>'Anamã','uf'=>'AM'],\n ['nome'=>'Iranduba','uf'=>'AM'],\n ];\n \n DB::table('ufs')->insert($register);\n }", "function PintaMunicipio($cod){\n\t$obj_mum = new ClsMunicipio();\n\t$rs = $obj_mum->consultarMunicipioEstado();\n\t$selec = \"\";\n\t$c = 0;\n\n\t$combMunicipio[$c++] = \"<select class='CampoMov' name='cod_mun' disabled >\";\n\t$combMunicipio[$c++] = \"<option selected='selected'>SELECCIONE UN MUNICIPIO</option>\"; \n\n\twhile($tupla = $obj_mum->converArray($rs)){\n\t\t$estado = $tupla['nom_est'];\n\t\t$id_mun = $tupla['id_mun'];\n\t\t$nom_mun_p = $tupla['nom_mun'].' - ';\n\n\t\tif($cod == $id_mun){\n\t\t\t$selec = \"selected='selected'\";\n\t\t}else{\n\t\t\t$selec = \"\";\n\t\t}\n\t\t$combMunicipio[$c++] = \"<option value='\".$id_mun.\"' \".$selec.\"> \".$nom_mun_p.\" EDO - \".$estado.\"</option>\";\n\t}\n\t$combMunicipio[$c++] = \"</select>\";\n\treturn $combMunicipio;\n}", "public function init()\n {\n $this->setMethod('post');\n \n $auth = Zend_Auth::getInstance()->setStorage(new Zend_Auth_Storage_Session('admin'));\n $user = $auth->getIdentity();\n $num_membre = $user->num_membre;\n \n \n $o_map = new Application_Model_EuObjetMapper();\n $rows = $o_map->fetchAll();\n $objets = array();\n foreach ($rows as $o) {\n $objets[] = $o->design_objet;\n }\n $elem_o = new ZendX_JQuery_Form_Element_AutoComplete(\n \"design_objet\", array('label' => 'Désignation *','required' => true,)\n );\n $elem_o->setJQueryParams(array('source' => $objets));\n $this->addElement($elem_o);\n \n $gamme_select = new Zend_Form_Element_Select('num_gamme');\n $gamme_select->setLabel('Gamme de produit *')\n ->setRequired(true);\n $g = new Application_Model_DbTable_EuGammeProduit();\n $rows = $g->fetchAll();\n foreach ($rows as $c) {\n $gamme_select->addMultiOption($c->code_gamme, $c->design_gamme);\n }\n $this->addElement($gamme_select);\n \n $type_unite = array('' => '', 'jour' => 'Jour', 'mois' => 'Mois', 'annee' => 'Année');\n $unit_select = new Zend_Form_Element_Select('unite_mdv');\n $unit_select->setLabel('Unité de durée *')\n ->setRequired(true)\n ->addMultiOptions($type_unite);\n $this->addElement($unit_select);\n \n \n $this->addElement('text', 'duree_vie', array(\n 'label' => 'Durée de vie *',\n 'required' => true,\n 'validators'=>array('validator' => 'digits'),\n ));\n \n $this->addElement('text', 'prix_unitaire', array(\n 'label' => 'Prix unitaire *',\n 'required' => true,\n 'validators'=>array('validator' => 'digits'),\n ));\n \n $boutique_select = new Zend_Form_Element_Select('code_bout');\n $boutique_select->setLabel('Boutique *')\n ->setRequired(true);\n $b = new Application_Model_DbTable_EuBoutique();\n $select=$b->select();\n $select->from($b)\n ->where('proprietaire = ?', $num_membre);\n $rows = $b->fetchAll($select);\n foreach ($rows as $c) {\n $boutique_select->addMultiOption($c->code_bout, $c->design_bout);\n }\n $this->addElement($boutique_select);\n \n $smcipn_select = new Zend_Form_Element_Select('code_demand');\n $smcipn_select->setLabel('Code subvention ')\n ->setRequired(false);\n $s = new Application_Model_DbTable_EuSmcipn();\n $rows = $s->fetchAll();\n $smcipn_select->addMultiOption('', '');\n foreach ($rows as $c) {\n $smcipn_select->addMultiOption($c->code_demand, $c->code_demand);\n }\n $this->addElement($smcipn_select);\n \n $this->addElement('textarea', 'caract_objet', array(\n 'label' => 'Caractéristique ',\n 'required' => false,\n ));\n \n $this->addElement('submit', 'submit', array(\n 'ignore' => true,\n 'label' => 'Valider',\n ));\n \n // Add the cancel button\n $this->addElement('button', 'cancel', array(\n 'ignore' => true,\n 'label' => 'Annuler',\n )); \n }", "function listadoregiones() {\n $query8 = \"SELECT * FROM intranet_roadmap_regiones\";\n $result8 = (array) json_decode(miBusquedaSQL($query8), true) ;\n foreach ($result8 as $pr8) {\n $proyectos .= '<option value=\"'.$pr8['id_region'].'\">'.$pr8['nombre_region'].'</option> \n';\n }\n return $proyectos;\n\n}", "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 }", "public function comboContrato($idCliente, $tipo, $isContagemAuditoria = NULL) {\n $arrRetorno = array();\n //pega o id empresa caso seja uma contagem de auditoria\n $idEmpresa = getIdEmpresa();\n //verifica antes se eh uma contagem de auditoria\n if ($isContagemAuditoria) {\n $sql = \"SELECT con.id, con.id_cliente, con.numero, con.ano, con.uf, con.tipo, emp.sigla, cli.id_fornecedor FROM $this->table con, cliente cli, empresa emp \"\n . \"WHERE con.is_ativo IN (0, 1) AND \"\n . \"con.id_cliente = cli.id AND \"\n . \"cli.id_empresa = emp.id AND \"\n . \"emp.id = $idEmpresa \"\n . \" ORDER BY sigla ASC, id_fornecedor DESC\";\n } else {\n if ($tipo == '01') {\n $sql = \"SELECT id, id_cliente, numero, uf, ano, tipo, '-' AS sigla FROM $this->table WHERE is_ativo IN (0, 1) AND id_cliente = $idCliente ORDER BY id ASC\";\n } else {\n $sql = \"SELECT id, id_cliente, numero, uf, ano, tipo, '-' AS sigla FROM $this->table WHERE is_ativo = 1 AND id_cliente = $idCliente ORDER BY id ASC\";\n }\n }\n $stm = DB::prepare($sql);\n $stm->execute();\n //loop dos contratos\n $ret = $stm->fetchAll(PDO::FETCH_ASSOC);\n //sempre com um item vazio para nao dar erro no script\n $arrRetorno[] = array(\n 'id' => 0,\n 'numeroAno' => 'Selecione um contrato',\n 'tipo' => '',\n 'sigla' => '');\n if ($isContagemAuditoria) {\n foreach ($ret as $linha) {\n if ($linha['id_fornecedor'] > 0) {\n $sql = \"SELECT id, sigla, tipo FROM fornecedor WHERE id = :idFornecedor\";\n $stmSigla = DB::prepare($sql);\n $stmSigla->bindParam(':idFornecedor', $linha['id_fornecedor']);\n $stmSigla->execute();\n $siglaFornecedor = $stmSigla->fetch(PDO::FETCH_ASSOC);\n //apenas fornecedores, retirar turmas daqui\n if (!$siglaFornecedor['tipo']) {\n $arrRetorno[] = array('id' => $linha['id'],\n 'numeroAno' => ' [ ' . strtoupper($linha['uf']) . ' ] ' . $linha['numero'] . '/' . $linha['ano'],\n 'tipo' => '[ ' . $linha['tipo'] . ' ]',\n 'sigla' => '[ ' . $linha['tipo'] . ' ] ' . $linha['sigla'] . ' &laquo; ' . $siglaFornecedor['sigla'] . ' &raquo; ');\n }\n } else {\n $arrRetorno[] = array('id' => $linha['id'],\n 'numeroAno' => ' [ ' . strtoupper($linha['uf']) . ' ] ' . $linha['numero'] . '/' . $linha['ano'],\n 'tipo' => '[ ' . $linha['tipo'] . ' ]',\n 'sigla' => '[ ' . $linha['tipo'] . ' ] ' . $linha['sigla'] . ' . ');\n }\n }\n return $arrRetorno;\n } else {\n foreach ($ret as $linha) {\n $arrRetorno[] = array('id' => $linha['id'],\n 'numeroAno' => ' [ ' . strtoupper($linha['uf']) . ' ] ' . $linha['numero'] . '/' . $linha['ano'],\n 'tipo' => '[ ' . $linha['tipo'] . ' ]',\n 'sigla' => '[ ' . $linha['tipo'] . ' ] ' . $linha['sigla']);\n }\n return $arrRetorno;\n }\n }", "public function obtener()\r\n {\r\n\r\n $estado=$_POST[\"miestado\"];\r\n\r\n $data=$this->usuarios_Model->obtenerCapitales($estado);\r\n\r\n // print_r(json_encode($data)); \r\n\r\n echo '<option>'.$data->capital.'</option>';\r\n\r\n\r\n\r\n \r\n\r\n // combo dependiente a lo picapiedra\r\n\r\n // $options=\"\";\r\n // if ($_POST[\"miestado\"]== 'Amazonas') \r\n // {\r\n // $options= '\r\n // <option value=\"Puerto Ayacucho\">Puerto Ayacucho</option> \r\n // '; \r\n \r\n // }\r\n\r\n // if ($_POST[\"miestado\"]== 'Anzoátegui') \r\n // {\r\n // $options= '\r\n // <option value=\"Aragua\">Aragua</option> \r\n // '; \r\n \r\n // }\r\n\r\n // if ($_POST[\"miestado\"]== 'Apure') \r\n // {\r\n // $options= '\r\n // <option value=\"San Fernando de Apure\">San Fernando de Apure</option> \r\n // '; \r\n \r\n // }\r\n\r\n // if ($_POST[\"miestado\"]== 'Aragua') \r\n // {\r\n // $options= '\r\n // <option value=\"Maracay\">Maracay</option> \r\n // '; \r\n \r\n // }\r\n\r\n // if ($_POST[\"miestado\"]== 'Barinas') \r\n // {\r\n // $options= '\r\n // <option value=\"Barinas\">Barinas</option> \r\n // '; \r\n \r\n // }\r\n\r\n // echo $options;\r\n\r\n }", "function allTerritoryTypestoCombo() {\n $this->load->model('territory/territory_model');\n $fetchAllTerritoryType = $this->territory_model->fetchFromAnyTable(\"tbl_territory_type\", null, null, null, 10000, 0, \"RESULTSET\", array('territory_type_status' => 1), null);\n $pushdata = array('territory' => $fetchAllTerritoryType);\n $this->template->draw('territory/allTerritoryTypeCombo', false, $pushdata);\n }", "function chargeForm($form,$label,$titre){\n\n \t\t$liste = $this->getAll();\n \t\t$array[0] = \"\";\n \t\tfor ($i = 0; $i < count($liste); $i++)\n \t{\n \t\t$j = $liste[$i]->role_id;\n \t\t$array[$j] = $liste[$i]->role_name;\n \t\t//echo 'array['.$j.'] = '.$array[$j].'<br>';\n \t}\n \t\t$s = & $form->createElement('select',$label,$titre);\n \t\t$s->loadArray($array);\n \t\treturn $s;\n \t}", "public function optionList(){\n $this->layout = null;\n\n\t $this->set('chamados',\n $this->Chamado->find('list', array(\n 'fields' => array('Chamado.id', 'Chamado.numero'),\n 'conditions' => array('Chamado.servico_id' => $this->params['url']['servico']))));\n }", "public function getCpnyToCombobox() {\n return $this->db->selectObjList('SELECT company_id, shortname, longname FROM company ORDER BY shortname;', $array = array(), \"Company\");\n }", "function getFenzuCombo($viewid='',$is_relate=false)\n\t{\n\t\tglobal $log;\n\t\tglobal $current_user;\n\t\t$log->debug(\"Entering getFenzuCombo(\".$viewid.\") method ...\");\n\t\t$key = \"FenzuCombo_\".$this->Fenzumodule.\"_\".$current_user->id;\n\t\t//$FenzuCombo = getSqlCacheData($key);\n\t\tif(!$FenzuCombo) {\n\t\t\tglobal $adb;\n\t\t\tglobal $app_strings;\n\n\t\t\t$tabid = getTabid($this->Fenzumodule);\n\t\t\t$ssql = \"select ec_fenzu.cvid,ec_fenzu.viewname from ec_fenzu\";\n\t\t\t$ssql .= \" where ec_fenzu.entitytype='\".$this->Fenzumodule.\"' and (ec_fenzu.smownerid=\".$current_user->id.\" or ec_fenzu.smownerid=0) \";\n\t\t\t$ssql .= \" order by ec_fenzu.cvid \";\n\n\t\t\t$result = $adb->getList($ssql);\n\t\t\t$FenzuCombo = array();\n\t\t\tforeach($result as $cvrow)\n\t\t\t{\n\t\t\t\t$FenzuCombo[$cvrow['cvid']] = $cvrow['viewname'];\n\t\t\t}\n\t\t\t//setSqlCacheData($key,$FenzuCombo);\n\t\t}\n\t\t$log->debug(\"Exiting getFenzuCombo(\".$viewid.\") method ...\");\n\t\treturn $FenzuCombo;\n\t}", "public function listaAction() \n { \n $form = new Formulario(\"form\");\n // valores iniciales formulario (C)\n $id = (int) $this->params()->fromRoute('id', 0);\n $form->get(\"id\")->setAttribute(\"value\",$id); \n // Lista de cargos\n $this->dbAdapter=$this->getServiceLocator()->get('Zend\\Db\\Adapter');\n $d = New AlbumTable($this->dbAdapter); \n $arreglo[0]='( NO TIENE )';\n $datos = $d->getCargos();// Listado de cargos\n foreach ($datos as $dat){\n $idc=$dat['id'];$nom=$dat['nombre'];\n $arreglo[$idc]= $nom;\n } \n $form->get(\"idCar\")->setValueOptions($arreglo); \n $arreglo = '';\n $datos = $d->getNcargos();\n foreach ($datos as $dat){\n $idc=$dat['id'];$nom=$dat['nombre'];\n $arreglo[$idc]= $nom;\n } \n $form->get(\"idNcar\")->setValueOptions($arreglo); \n $arreglo = '';\n $datos = $d->getCencos();// Listado de centros de costos\n foreach ($datos as $dat){\n $idc=$dat['id'];$nom=$dat['nombre'];\n $arreglo[$idc]= $nom;\n } \n $form->get(\"idDep\")->setValueOptions($arreglo); \n $arreglo = '';\n $datos = $d->getSedes();// Listado de sedes\n foreach ($datos as $dat){\n $idc=$dat['id'];$nom=$dat['nombre'];\n $arreglo[$idc]= $nom;\n } \n $form->get(\"idSed\")->setValueOptions($arreglo); \n $arreglo = '';\n $datos = $d->getDepar();\n foreach ($datos as $dat){\n $idc=$dat['id'];$nom=$dat['nombre'];\n $arreglo[$idc]= $nom;\n } \n $form->get(\"idGdot\")->setValueOptions($arreglo); \n $arreglo = '';\n $datos = $d->getGdot();// Grupo de dotaciones\n foreach ($datos as $dat){\n $idc=$dat['id'];$nom=$dat['nombre'];\n $arreglo[$idc]= $nom;\n } \n $form->get(\"idGdot\")->setValueOptions($arreglo); \n $arreglo = '';\n $datos = $d->getNasp();// Nivel de aspecto del cargo\n foreach ($datos as $dat){\n $idc=$dat['id'];$nom=$dat['nombre'];\n $arreglo[$idc]= $nom;\n } \n $form->get(\"idNasp\")->setValueOptions($arreglo); \n // Tipos de salarios\n $arreglo = '';\n $datos = $d->getSalarios(''); \n $arreglo='';\n foreach ($datos as $dat){\n $idc=$dat['id'];$nom=number_format($dat['salario']).' (COD: '.$dat['codigo'].')';\n $arreglo[$idc]= $nom;\n } \n $form->get(\"idTnomm\")->setValueOptions($arreglo); \n // Fin valor de formularios\n $valores=array\n (\n \"titulo\" => $this->tfor,\n \"form\" => $form, \n 'url' => $this->getRequest()->getBaseUrl(),\n 'id' => $id,\n \"lin\" => $this->lin\n ); \n // ------------------------ Fin valores del formulario \n \n if($this->getRequest()->isPost()) // Actulizar datos\n {\n $request = $this->getRequest();\n if ($request->isPost()) {\n // Zona de validacion del fomrulario --------------------\n $album = new ValFormulario();\n $form->setInputFilter($album->getInputFilter()); \n $form->setData($request->getPost()); \n $form->setValidationGroup('nombre','numero'); // ------------------------------------- 2 CAMPOS A VALDIAR DEL FORMULARIO (C) \n // Fin validacion de formulario ---------------------------\n if ($form->isValid()) {\n $this->dbAdapter=$this->getServiceLocator()->get('Zend\\Db\\Adapter');\n $u = new Cargos($this->dbAdapter);// ------------------------------------------------- 3 FUNCION DENTRO DEL MODELO (C) \n $data = $this->request->getPost();\n if ($data->id==0)\n $id = $u->actRegistro($data); // Trae el ultimo id de insercion en nuevo registro \n else \n {\n $u->actRegistro($data); \n $id = $data->id;\n }\n // Guardar tipos de nominas afectado por automaticos\n $f = new CargosS($this->dbAdapter);\n // Eliminar registros de tipos de nomina afectados por automaticos \n $d->modGeneral(\"Delete from t_cargos_sa where idCar=\".$id); \n $i=0;\n foreach ($data->idTnomm as $dato){\n $idSal = $data->idTnomm[$i];$i++; \n $f->actRegistro($idSal,$id); \n } \n $this->flashMessenger()->addMessage(''); \n return $this->redirect()->toUrl($this->getRequest()->getBaseUrl().$this->lin.'a/'.$data->id);\n }\n }\n return new ViewModel($valores);\n \n }else{ \n if ($id > 0) // Cuando ya hay un registro asociado\n {\n $this->dbAdapter=$this->getServiceLocator()->get('Zend\\Db\\Adapter');\n $u=new Cargos($this->dbAdapter); // ---------------------------------------------------------- 4 FUNCION DENTRO DEL MODELO (C) \n $datos = $u->getRegistroId($id);\n $a = $datos['nombre'];\n $b = $datos['deno'];\n $c = $datos['idCar_a'];\n $d = $datos['plazas'];\n $e = $datos['respo'];\n $f = $datos['mision'];\n $g = $datos['idNcar'];\n\n $i = $datos['idGdot'];\n $j = $datos['idNasp'];\n // Valores guardados\n $form->get(\"nombre\")->setAttribute(\"value\",\"$a\"); \n $form->get(\"deno\")->setAttribute(\"value\",\"$b\"); \n $form->get(\"numero\")->setAttribute(\"value\",$d); // Plazas\n $form->get(\"respo\")->setAttribute(\"value\",\"$e\"); \n $form->get(\"mision\")->setAttribute(\"value\",\"$f\"); \n $form->get(\"idSed\")->setAttribute(\"value\",$datos['idSed']); \n $form->get(\"idDep\")->setAttribute(\"value\",$datos['idCcos']); \n // Jefe directo\n $d = New AlbumTable($this->dbAdapter); \n $datos = $d->getCargos();\n $form->get(\"idCar\")->setAttribute(\"value\",\"$c\"); \n $form->get(\"idNcar\")->setAttribute(\"value\",\"$g\"); \n\n $form->get(\"idGdot\")->setAttribute(\"value\",\"$i\"); \n $form->get(\"idNasp\")->setAttribute(\"value\",\"$j\"); \n // Escalas salariales\n $datos = $d->getSalCargos(' and idCar='.$id);\n $arreglo=''; \n foreach ($datos as $dat){\n $arreglo[]=$dat['idSal'];\n } \n $form->get(\"idTnomm\")->setValue($arreglo); \n return new ViewModel($valores);\n } \n \n }\n }", "public function listattr_form_generales()\n {\n $this->db->where('tipo_atributob', 'Generales');\n $resultados = $this->db->get('atributos_b');\n\n return $resultados->result();\n }", "public function lista() {\n $sql = \"SELECT * FROM cliente\";\n $qry = $this->db->query($sql); // query do pdo com acesso ao bd\n\n //return $qry->fetchAll(); // retorna todos os registros\n return $qry->fetchAll(\\PDO::FETCH_OBJ); // retorna todos os registros a nível de objeto\n }", "public function getcomboUsuario() {\n $models = User::find()->asArray()->all();\n return ArrayHelper::map($models, 'id', 'name');\n }", "public function getcboinspector() {\n \n\t\t$resultado = $this->mregctrolprov->getcboinspector();\n\t\techo json_encode($resultado);\n\t}", "function cargarTablaCombo($idCombo){\n #$namePro =$this->_admin->listar($query); //echo $namePro[0][0].\"<br>\";\n $query = \"SELECT * FROM `combo` WHERE codigo_padre = '\".$idCombo.\"'\";\n $data =$this->_admin->listar($query);\n //$data[0][0] = $namePro[0][0];\n echo json_encode($data);\n }", "function LUPE_criar_combo_rs($rs, $NomeCombo, $PreSelect, $LinhaFixa, $JS, $Style = '')\r\n{\r\n\r\n echo \"<select id='$NomeCombo' name='$NomeCombo' $JS style='$Style'>\\n\";\r\n\r\n if ($LinhaFixa != '')\r\n echo \"<option value=''>$LinhaFixa</option>\\n\";\r\n\r\n if (mssql_num_rows($rs) == 0) {\r\n echo \"<option value=''>Não há informação no sistema</option>\\n\";\r\n } else {\r\n mssql_data_seek($rs, 0);\r\n\r\n While ($row = mssql_fetch_array($rs)) {\r\n echo \"<option value='\".$row[0].\"'\";\r\n\r\n if ($PreSelect == $row[0])\r\n echo 'selected >';\r\n else\r\n echo '>';\r\n\r\n for ($x = 1; $x < mssql_num_fields($rs); $x++) {\r\n echo $row[$x];\r\n if ($x < mssql_num_fields($rs) - 1)\r\n echo ' - ';\r\n }\r\n echo\"</option>\\n\";\r\n }\r\n }\r\n\r\n echo '</select>';\r\n\r\n return 0;\r\n}", "private function getOptionItems()\n {\n $contract = new ContractRepository();\n $employee = new EmployeeRepository();\n $salaryComponent = new SalaryComponentRepository();\n return [\n 'contractItems' => ['' => __('crud.option.contract_placeholder')] + $contract->pluck(),\n 'employeeItems' => ['' => __('crud.option.employee_placeholder')] + $employee->pluck(),\n 'salaryComponentItems' => ['' => __('crud.option.salaryComponent_placeholder')] + $salaryComponent->pluck()\n ];\n }", "function ctrlChoix($ar){\n $p = new XParam($ar, array());\n $ajax = $p->get('_ajax');\n $offre = $p->get('offre');\n $wtspool = $p->get('wtspool');\n $wtsvalidfrom = $p->get('wtsvalidfrom');\n $wtsperson = $p->get('wtspersonnumber');\n $wtsticket = $p->get('wtsticket');\n $context = array('wtspersonnumber'=>$wtsperson);\n $r = (object)array('ok'=>1, 'message'=>'', 'iswarn'=>0);\n // on recherche toutes les offres proposant un meilleur prix\n $bestoffers = array();\n $bettertickets = array();\n $betterproducts = array();\n // si nb = zero : ne pas prendre en compte\n foreach($wtsperson as $personoid=>$personnb){\n if (empty($personnb) || $personnb<1){\n\tunset($context['wtspersonnumber'][$personoid]);\n }\n }\n foreach($wtsperson as $personoid=>$personnb){\n if (empty($personnb) || $personnb<1){\n continue;\n }\n $dp = $this->modcatalog->displayProduct($offre, $wtspool, $wtsticket, $personoid);\n if ($dp == NULL)\n continue;\n $bp = $this->modcatalog->betterProductPrice($wtsvalidfrom, NULL, $context, $dp);\n // les différentes offres trouvées\n if ($bp['ok'] && !isset($bestoffers[$bp['product']['offer']['offrename']])){\n $bestoffers[$bp['product']['offer']['offrename']] = $bp['product']['offer']['offeroid'];\n }\n // meilleur produit par type de personne ...\n if ($bp['ok']){\n\t$bpd = $this->modcatalog->displayProductQ($bp['product']['oid']);\n\t$betterproducts[] = array('nb'=>$personnb, 'oid'=>$bp['product']['oid'], '');\n\t$bettertickets[$bp['product']['oid']] = array('currentprice'=>$bp['product']['currentprice'], \n\t\t\t\t\t\t 'betterprice'=>$bp['product']['price']['tariff'],\n\t\t\t\t\t\t 'label'=>$bpd['label'], \n\t\t\t\t\t\t 'offer'=>$bp['product']['offer']['offrename'],\n\t\t\t\t\t\t 'offeroid'=>$bp['product']['offer']['offeroid']);\n }\n }\n if (count($bestoffers)>0){\n $r->offers = array_keys($bestoffers);\n $r->message = implode(',', $r->offers);\n $r->nboffers = count($r->offers);\n $r->offeroids = array_values($bestoffers);\n $r->bettertickets = $bettertickets;\n $r->iswarn = 1;\n $r->ok = 0;\n $r->redirauto = false;\n // on peut enchainer vers une meilleure offre ?\n if ($r->nboffers == 1 && (count($betterproducts) == count($context['wtspersonnumber']))){\n\t$r->redirauto = true;\n\t$r->redirparms = '&offre='.$r->offeroids[0].'&validfrom='.$wtsvalidfrom;\n\tforeach($betterproducts as $bestproduct){\n\t $r->redirparms .= '&products['.$bestproduct['oid'].']='.$bestproduct['nb'];\n\t}\n }\n }\n if ($ajax)\n die(json_encode($r));\n return $r;\n }", "public function mostrar_todos_proyectos(){\n //inicio empieza en 0 si la pagina es igual a 1, si es mayor se multiplica por 10 o la cantidad de datos que vaya a mostrar. se resta si es lo contrario.\n \n $form_arr = array();//devuelve un arreglo de proyectoss\n $form = \"\";\n $con = new Conexion();\n $con2 = $con->conectar();\n try{\n // se establece el modo de error PDO a Exception\n $con2->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n\n // Se prepara el satetement y se cargan los parametros\n $stmt = $con2->prepare(\"select id_proyecto,nombre_p from proyectos \");\n\n if($stmt->execute()){\n while ($row = $stmt->fetchObject()) {\n $form = \"<option value=\\\"{$row->id_proyecto}\\\">{$row->nombre_p}</option>\";\n \t\t\t array_push($form_arr,$form);\n }\n\n }\n }\n catch(PDOException $e)\n {\n echo \"Error: \" . $e->getMessage();\n }\n $con2 = null;\n return $form_arr;\n }", "function LUPE_criar_combo_vet($Vet, $NomeCombo, $PreSelect, $LinhaFixa = ' ', $JS = '', $Style = '')\r\n{\r\n\r\n $numrows = count($Vet);\r\n\r\n echo \"<select id='$NomeCombo' name='$NomeCombo' $JS style='$Style'>\\n\";\r\n\r\n\tif ($LinhaFixa != '')\r\n\t\techo \"<option value=''>$LinhaFixa</option>\\n\";\r\n\r\n if ($numrows == 0) {\r\n\t\techo \"<option value=''>Não há informação no sistema</option>\\n\";\r\n } else {\r\n\t ForEach($Vet as $Chave => $Valor ){\r\n \t\t echo \"<option value='$Chave'\";\r\n\r\n\t\t if ($PreSelect == $Chave)\r\n\t\t\techo 'selected >';\r\n \t\t else\r\n\t\t\techo '>';\r\n\r\n\t \t echo \"$Valor</option>\\n\";\r\n }\r\n }\r\n\r\n echo '</select>';\r\n\r\n return 0;\r\n}", "function cmdMarital($name, $caption) {\n $optmarital = array\n (\n array(\"\", \"\"),\n array(\"Single\", \"1\"),\n array(\"Married\", \"2\"),\n );\n ?>\n <tr>\n <td><?php getCaption($caption); ?> :</td>\n <td>\n <select class=\"easyui-combobox\"\n id=\"<?php echo $name; ?>\"\n name=\"<?php echo $name; ?>\"\n style=\"width:120px;\"\n data-options=\"panelHeight:100,editable:false,width:200\"\n disabled=true\n >\n <?php\n foreach ($optmarital as $val) {\n echo '<option value=\"' . $val[1] . '\">' . $val[0] . '</option>';\n }\n ?>\n </select>\n </td>\n </tr>\n <?php\n}", "function lapizzeria_registrar_opciones(){\n register_setting( 'lapizzeria_opciones_grupo', 'lapizzeria_direccion' );\n register_setting( 'lapizzeria_opciones_grupo', 'lapizzeria_telefono' );\n\n register_setting( 'lapizzeria_opciones_gmaps', 'lapizzeria_gmap_iframe' );\n}", "public static function registerData() {\r\n\t\t//array ( '1' => 'Винница', '2' => 'Днепропетровск', '3' => 'Донецк', '4' => 'Житомир', '5' => 'Запорожье', '6' => 'Ивано-Франковск', '7' => 'Киев', '8' => 'Кировоград', '9' => 'Луганск', '10' => 'Луцк', '11' => 'Львов', '12' => 'Николаев', '13' => 'Одесса', '14' => 'Полтава', '15' => 'Ровно', '16' => 'Симферополь', '17' => 'Сумы', '18' => 'Тернополь', '19' => 'Ужгород', '20' => 'Харьков', '21' => 'Херсон', '22' => 'Хмельницкий', '23' => 'Черкассы', '24' => 'Чернигов', '25' => 'Черновцы' ) );\r\n\t\t//Zend_Registry::set ( 'regions',\r\n\t\t//array ( '1' => 'Винницкая', '2' => 'Днепропетровская', '3' => 'Донецкая', '4' => 'Житомирская', '5' => 'Запорожская', '6' => 'Ивано-Франковская', '7' => 'Киевская', '8' => 'Кировоградская', '9' => 'Луганская', '10' => 'Волынская', '11' => 'Львовская', '12' => 'Николаевская', '13' => 'Одесская', '14' => 'Полтавская', '15' => 'Ровенская', '16' => 'Республика Крым', '17' => 'Сумская', '18' => 'Тернопольская', '19' => 'Закарпатская', '20' => 'Харьковская', '21' => 'Херсонская', '22' => 'Хмельницкая', '23' => 'Черкасская', '24' => 'Черниговская', '25' => 'Черновецкая' ) );\r\n\t\t//Zend_Registry::set ( 'colors' ,\r\n\t\t//array ( '1' => 'Бежевый', '2' => 'Белый', '3' => 'Бирюзовый', '4' => 'Бордовый', '5' => 'Бронзовый', '6' => 'Вишнёвый', '7' => 'Голубой', '8' => 'Желтый', '9' => 'Зеленый', '10' => 'Золотистый', '11' => 'Коричневый', '12' => 'Красный', '13' => 'Малиновый', '14' => 'Оливковый', '15' => 'Розовый', '16' => 'Салатовый', '17' => 'Серебристый', '18' => 'Светло-серый', '19' => 'Серый', '20' => 'Тёмно-серый', '21' => 'Синий', '22' => 'Фиолетовый', '23' => 'Черный' ) );\r\n\t\tZend_Registry::set ( 'currency' ,\r\n\t\tarray ('1' => '$(USD)', '2' => '€(EUR)', '3' => 'грн.(UAH)' ) );\r\n\t\tZend_Registry::set ( 'currency_a',\r\n\t\tarray ('1' => '$', '2' => '€', '3' => 'грн.' ) );\r\n\r\n\t\t$years = array();\r\n\t\tfor ($i_year=(int)date('Y'); $i_year>=1900; $i_year--) {\r\n\t\t\t$years[$i_year] = $i_year;\r\n\t\t}\r\n\t\tZend_Registry::set ( 'year' , $years );\r\n\r\n\r\n\t}", "function cmb2_fields_contato() {\n // Adiciona um bloco\n $cmb = new_cmb2_box([ /// está dentro de um Array, que é o [];\n 'id' => 'contato_box', // id deve ser único\n 'title' => 'contato',\n 'object_types' => ['page'], // tipo de post\n 'show_on' => [\n 'key' => 'page-template',\n 'value' => 'page-contato.php',\n ], // modelo de página\n ]);\n \n $cmb->add_field([\n 'name' => 'Descrição da página para SEO',\n 'id' => 'description_seo',\n 'type' => 'text',\n ]);\n\n // Adiciona um campo ao bloco criado\n $cmb->add_field([\n 'name' => 'Localização Rest',\n 'desc' => 'Aqui é colcocado a imagem da localizacao do Restaurante e deve ser de 800px x 600px',\n 'id' => 'localizacao_rest',\n 'type' => 'file',\n 'options' => [\n 'url' => false,\n ]\n ]);\n\n $cmb->add_field([\n 'name' => 'Texto alternativo da imagem',\n 'desc' => 'Aqui é colocado a descrição da imagem como sobre o que a imagem é',\n 'id' => 'textoAlt',\n 'type' => 'text',\n ]);\n\n $cmb->add_field([\n 'name' => 'Link do mapa',\n 'desc' => 'Aqui é o colocado o link que você quer que a pessoa clique no mapa e vá para o link',\n 'id' => 'linkMapa',\n 'type' => 'text_url',\n ]);\n\n $cmb->add_field([\n 'name' => 'Primeiro item do contato',\n 'desc' => 'Aqui é o titulo do primeiro item do contato',\n 'id' => 'primeiroItemContato',\n 'type' => 'text',\n ]);\n\n $cmb->add_field([\n 'name' => 'Telefone do Restaurante',\n 'desc' => 'Aqui é o telefone do restaurante e muda no cabeçalho também',\n 'id' => 'telefone',\n 'type' => 'text',\n ]);\n\n $cmb->add_field([\n 'name' => 'E-mail do Restaurante',\n 'id' => 'email',\n 'type' => 'text_email',\n ]);\n\n $cmb->add_field([\n 'name' => 'Facebook do Restaurante',\n 'id' => 'facebook',\n 'type' => 'text',\n ]);\n\n $cmb->add_field([\n 'name' => 'Primeiro item dos horários',\n 'desc' => 'Aqui é o titulo do primeiro item dos horários',\n 'id' => 'primeiroItemHorario',\n 'type' => 'text',\n ]);\n\n $cmb->add_field([\n 'name' => 'Horário de funcionamento',\n 'desc' => 'Horário de segunda a sexta',\n 'id' => 'funcionamento',\n 'type' => 'text',\n ]);\n\n $cmb->add_field([\n 'name' => 'Horário de sabado',\n 'id' => 'sabado',\n 'type' => 'text',\n ]);\n\n $cmb->add_field([\n 'name' => 'Horario de domingo',\n 'id' => 'domingo',\n 'type' => 'text',\n ]);\n\n $cmb->add_field([\n 'name' => 'Primeiro item do endereço',\n 'desc' => 'Aqui é o titulo do primeiro item dos endereços',\n 'id' => 'primeiroItemEndereco',\n 'type' => 'text',\n ]);\n\n $cmb->add_field([\n 'name' => 'rua',\n 'id' => 'rua',\n 'type' => 'text',\n ]);\n\n $cmb->add_field([\n 'name' => 'Cidade',\n 'id' => 'cidade',\n 'type' => 'text',\n ]);\n\n $cmb->add_field([\n 'name' => 'País',\n 'id' => 'pais',\n 'type' => 'text',\n ]);\n\n}", "function getSearchOptions() {\n\n $tab = array();\n $tab['common'] = __('Characteristics');\n\n $tab[2]['table'] = $this->getTable();\n $tab[2]['field'] = 'id';\n $tab[2]['name'] = __('ID');\n $tab[2]['massiveaction'] = false;\n $tab[2]['datatype'] = 'number';\n\n if (!preg_match('/^itemtype/', static::$itemtype_1)) {\n $tab[3]['table'] = getTableForItemType(static::$itemtype_1);\n $tab[3]['field'] = static::$items_id_1;\n $tab[3]['name'] = call_user_func(array(static::$itemtype_1, 'getTypeName'));\n $tab[3]['datatype'] = 'text';\n $tab[3]['massiveaction'] = false;\n }\n\n if (!preg_match('/^itemtype/', static::$itemtype_2)) {\n $tab[4]['table'] = getTableForItemType(static::$itemtype_2);\n $tab[4]['field'] = static::$items_id_2;\n $tab[4]['name'] = call_user_func(array(static::$itemtype_2, 'getTypeName'));\n $tab[4]['datatype'] = 'text';\n $tab[4]['massiveaction'] = false;\n }\n\n return $tab;\n }", "public function register_options(){\n\t\tparent::register_options();\n\t\t//$orgzr = \\WBF\\modules\\options\\Organizer::getInstance();\n\t\t//Do stuff...\n\t}", "function getRegs($filter = \"\")\n {\n\n global $sql;\n\t\t \n\t if(isset($filter) && strlen(trim($filter))>0) $where = sprintf(\" where subscr_code='%s' \",$sql->escape_string($filter));\n\t else $where = \"\";\n\n $laRet = array();\n $sql->query(\"SELECT * from registry $where ORDER BY id\");\n while ($row = $sql->fetchObject()) {\n\t $item = new Registry(); \n\t \t$item->id = $row->id;\n\t\t$item->subscr_code = $row->subscr_code;\n $item->firstName = $row->firstname;\n $item->lastName = $row->lastname;\n $item->email = $row->email;\n\t $item->phone = $row->phone;\n\t $item->postCode = $row->postcode;\n\t $item->address = $row->address;\n\t $item->kidSize = $row->kidsize;\n\t $item->bigSize = $row->bigsize;\n\t $item->referer = $row->referer;\n\t $item->postId = $row->postid;\n\t $item->dateReg = $row->datereg;\n\t $item->dateSend = $row->datesend;\n\t $item->status = $row->status;\n\t $item->sid = $row->sid;\n $laRet[(int)$row->id] = $item;\n }\n\n return $laRet;\n }", "function cargar_privilegios3(){\n\t\t$res = $this->lis_privs();\n\t\t$comboBox = '<select id=\"selectPrivs3\" name=\"Privilegio\">';\n\t\t$vals = array();\n\t\t$i = 0;\n\t\t$j = 0;\n\t\tforeach($res as $row){\n\t\t\t$vals[$i] = $row;\n\t\t\t$i = $i +1;\n\t\t}\n\t\twhile($j < $i){\n\t\t\t$comboBox .= '<option value = \"'.$vals[$j].'\">'.$vals[$j+1].'</option>';\n\t\t\t$j = $j+2;\n\t\t}\t\t\n\t\t$comboBox .= '</select>';\n\t\treturn $comboBox;\n\t}", "public function SelecionarServicosPorFilial($dados){\n\n\n $sql=\"select * from view_servico_filial where idFilial=\".$dados->idFilial;\n\n echo $sql;\n\n $conex = new Mysql_db();\n\n $PDO_conex = $conex->Conectar();\n\n $select = $PDO_conex->query($sql);\n\n $cont=0;\n\n while ($rs=$select->fetch(PDO::FETCH_ASSOC)) {\n $listFiliaisServicoServico[] = new servico_filial();\n\n $listFiliaisServicoServico[$cont]->idFilialServico= $rs['idFilialServico'];\n $listFiliaisServicoServico[$cont]->idFilial= $rs['idFilial'];\n $listFiliaisServicoServico[$cont]->nomeFilial= $rs['nomeFilial'];\n $listFiliaisServicoServico[$cont]->idServico= $rs['idServico'];\n $listFiliaisServicoServico[$cont]->nomeServico= $rs['nome'];\n $listFiliaisServicoServico[$cont]->descricao= $rs['descricao'];\n\n $cont+=1;\n\n }\n\n $conex->Desconectar();\n\n if (isset($listFiliaisServico)) {\n return $listFiliaisServico;\n }\n }", "function obtenerRegistros($datos = []) {\n\t\t$this->openConnection();\n\t\t$sentencia = $this->conn->prepare($this->consulta);\n\t\tif(!empty($datos)){\n\t\t\tforeach ($datos as $key => $value) {\n\t\t\t\t$sentencia->bind_param($key, $value);\n\t\t\t}\n\t\t}\n\t\t$sentencia->execute();\n\t\t$reg = $sentencia->get_result();\n\t\t$rows = $reg->num_rows;\n\t\t$i = 0;\n\t\tdo {\n\t\t\t$this->registros[] = $reg->fetch_assoc();\n\t\t\t$i++;\n\t\t} while ($i < $rows);\n\t\t$this->closeConnection();\n\t}", "function genreopties(){\r\n\t\tglobal $pdo;\r\n\t\t\t//maken sql query\r\n\t\t$sql = \"SELECT DISTINCT genre_name FROM Genre\";\r\n\t\t\t//afschieten query\r\n\t\t$result = $pdo->query($sql)->fetchAll(PDO::FETCH_ASSOC);\r\n\t\t\r\n\t\tforeach($result as $row){\r\n\t\t\tforeach($row as $genre){\r\n\t\t\t\techo '<option value='.$genre.'>'.$genre.'</option>';\r\n\t\t\t}\r\n\t\t}\r\n\t}", "function SelectValuesUnidadesPerteneceMedico($db_conx, $cod_med) {\r\n $sql = \"SELECT uni_codigo, uni_descrip FROM vunidadmedico WHERE med_codigo = $cod_med ORDER BY uni_descrip ASC\";\r\n\r\n $query = mysqli_query($db_conx, $sql);\r\n\r\n $n_filas = $query->num_rows;\r\n $data = '<select style=\"width: 400px;\" onchange=\"getLocalizacionData();\"';\r\n if ($n_filas == 1) {\r\n $data .= 'id=\"cmbunidad\" disabled=\"true\">';\r\n $row = mysqli_fetch_array($query);\r\n $data .= '<option value=\"' . $row[0] . '\">' . $row[1] . '</option>';\r\n } else {\r\n $data .= 'id=\"cmbunidad\">';\r\n $c = 0;\r\n while ($c < $n_filas) {\r\n $row = mysqli_fetch_array($query);\r\n $data .= '<option value=\"' . $row[0] . '\">' . $row[1] . '</option>';\r\n $c++;\r\n }\r\n }\r\n $data .= '</select\">';\r\n echo $data;\r\n}", "public function getComentarios()\n\t\t{\n\t\t\t $this->limpiarVariables();\n\t\t\t $this->conexion = new Conexion();\n\t\t\t $registros[]=array();\n\t\t\t $this->queryComentarios=\"select * from contacto\";\n\t\t\t $resultado=$this->conexion->consultar( $this->queryComentarios );\n\t\t\t \n\t\t\t \n\t\t\t return $resultado;\n\t\t}" ]
[ "0.6821022", "0.67640257", "0.64696324", "0.6347687", "0.63211346", "0.6321105", "0.62873536", "0.6285097", "0.6276564", "0.6273722", "0.6258331", "0.62392735", "0.62049294", "0.6190794", "0.6178752", "0.6160541", "0.6155715", "0.61424005", "0.60990995", "0.608396", "0.60629964", "0.6043281", "0.6017791", "0.5977164", "0.5969353", "0.59638256", "0.59534913", "0.5943404", "0.5935308", "0.59350336", "0.5930231", "0.59293944", "0.5922807", "0.5898995", "0.58930606", "0.5871751", "0.58665943", "0.5861207", "0.5856569", "0.58525866", "0.58413893", "0.5837478", "0.5833009", "0.5824417", "0.5823083", "0.5820267", "0.58200145", "0.5813946", "0.57999086", "0.57929873", "0.5789433", "0.5759453", "0.5756453", "0.5751054", "0.57348645", "0.5731108", "0.5726192", "0.57239", "0.57078326", "0.5703643", "0.5690503", "0.5684902", "0.5672558", "0.56713706", "0.56711334", "0.56674886", "0.56638694", "0.5661085", "0.5656105", "0.5654669", "0.5653009", "0.56483114", "0.5644411", "0.56432694", "0.56424713", "0.5639072", "0.5634011", "0.5632825", "0.5629828", "0.5629748", "0.56292737", "0.5624737", "0.561543", "0.56093746", "0.56034803", "0.5601605", "0.55973405", "0.5584629", "0.5583082", "0.55809754", "0.5575102", "0.55730486", "0.5572169", "0.55717766", "0.5570781", "0.5568469", "0.55658185", "0.5565009", "0.55648875", "0.5564369", "0.5561631" ]
0.0
-1
metodo para obtener registros y mapearlos para combo generico
public function get_select_data_with_params(array $params = null) { $data = $this->find_by_subquery($params, true); $result = array(); foreach ($data as $row) $result[] = array( "id" => $row[$this->id_field], "name" => $this->map_name_value($row) ); return $result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function combos()\n {\n $this->view->ambito = array('F' => 'Federal','E'=> 'Estadual','M'=>'Municipal','J'=>'Judicial');\n $this->view->estado = $this->getService('Estado')->comboEstado();\n $this->view->tipoPessoa = $this->getService('TipoPessoa')->getComboDefault(array());\n $this->view->temaVinculado = array('Cavernas', 'Espécies', 'Empreendimentos', 'Unidades de Conservação');\n $this->view->tipoDocumento = $this->getService('TipoDocumento')->getComboDefault(array());\n $this->view->tipoArtefato = $this->getService('TipoArtefato')->listItems(array());\n $this->view->assunto = $this->getService('Assunto')->comboAssunto(array());\n $this->view->prioridade = $this->getService('Prioridade')->listItems();\n $this->view->tipoPrioridade = $this->getService('TipoPrioridade')->listItems();\n $this->view->municipio = $this->getService('VwEndereco')->comboMunicipio(NULL,TRUE);\n }", "function comboRecompensas($id_recompensa = 0, $filter = \"\", $name_control = \"id_recompensa\"){\n\t$elements = recompensasController::getListAction(9999, $filter); ?>\n\t<select name=\"<?php echo $name_control;?>\" id=\"<?php echo $name_control;?>\" class=\"form-control\">\n\t\t<option value=\"0\"> ---- Selecciona una recompensa ---- </option>\n\t\t<?php foreach($elements['items'] as $element):?>\n\t\t<option value=\"<?php echo $element['id_recompensa'];?>\" <?php if ($id_recompensa == $element['id_recompensa']) echo ' selected=\"selected\" ';?>><?php echo $element['recompensa_name'];?></option>\n\t\t<?php endforeach;?>\n\t</select>\n<?php }", "public function ctlBuscaCompras(){\n\n\t\t$respuesta = Datos::mdlCompras(\"entradas\");\n\n\t\tforeach ($respuesta as $row => $item){\n\t\t\techo '<option value=\"'.$item[\"codProducto\"].'\">'.$item[\"noOperacion\"].' - '.$item[\"proveedor\"].' - '.$item[\"kg\"].' - '.$item[\"precio\"].'</option>';\n\t\t}\n\t}", "public function foraclecombo()\r\n {\r\n // Entorno de test\r\n echo $vcombo=\"<option value=0> Seleccione una instanacia </option>\";\r\n $dbName = 'Entorno Test ono10g';\r\n $cadena = \"(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=172.17.5.24)(PORT=1523))(CONNECT_DATA=(SERVER=dedicated)(SID=ono10g)))\";\r\n $vcombo=\"<option value=\".$cadena.\">\".$dbName.\"</option>\";\r\n echo $vcombo;\r\n return 0;\r\n // Cargar Array de parámetros\r\n $_SESSION['arraycfg'] = readcfg();\r\n $linkdb=conectarBDMySQLInvent($_SESSION['arraycfg']);\r\n $sql=\"select s.id as id, s.nombre as DbName, \"; \r\n $sql.=\"s.ip_servicio as ip_servicio,IFNULL(s.puerto,1521) as puerto, \";\r\n $sql.=\"s.descripcion \";\r\n $sql.=\"from Servicio s, \"; \r\n $sql.=\"TipoServicio ts, \"; \r\n $sql.=\"EstadoServicio es, \"; \r\n $sql.=\"Plataforma p \";\r\n $sql.=\"where s.tipo_servicio_id = ts.id \";\r\n $sql.=\"and ts.nombre = 'Base de datos Oracle' \";\r\n $sql.=\"and s.plataforma_id = p.id \";\r\n $sql.=\"and s.estado_id = es.id \";\r\n $sql.=\"and es.nombre = 'Activo' \";\r\n $sql.=\"group by s.direccion_servicio;\";\r\n $resdb = mysql_query($sql,$linkdb) or die (\"Error al seleccionar bases de datos Oracle\");\r\n // Primera fila\r\n echo $vcombo=\"<option value=0> Seleccione una instanacia </option>\";\r\n while($row = mysql_fetch_array($resdb)) { \r\n $dbName = substr($row[\"DbName\"],0,30);\r\n $cadena = \"(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=\".$row[\"ip_servicio\"].\")(PORT=\".$row[\"puerto\"].\"))(CONNECT_DATA=(SERVER=dedicated)(SID=\".$row[\"DbName\"].\")))\";\r\n $vcombo=\"<option value=\".$cadena.\">\".$dbName.\"</option>\";\r\n echo $vcombo;\r\n\t}\r\n\t// Cerrar conexion\r\n\tmysql_free_result($resdb); \r\n }", "function comboNiveles() {\n $opciones = \"\";\n $nvS = new Servicio();\n $niveles = $nvS->listarNivel(); //RETORNA UN ARREGLO\n\n while ($nivel = array_shift($niveles)) {\n $opciones .=\" <option value='\" . $nivel->getId_nivel() . \"'>\" . $nivel->getNombre() . \"</option>\";\n }\n return $opciones;\n}", "public function getcboregcondi() {\n \n $sql = \"select ctipo as 'ccondi', dregistro as 'dcondi' from ttabla where ctabla = 37 and ncorrelativo <> 0 order by dregistro;\";\n\t\t$query = $this->db->query($sql);\n \n if ($query->num_rows() > 0) {\n\n $listas = '<option value=\"0\" selected=\"selected\">::Elegir</option>';\n \n foreach ($query->result() as $row)\n {\n $listas .= '<option value=\"'.$row->ccondi.'\">'.$row->dcondi.'</option>'; \n }\n return $listas;\n }{\n return false;\n }\t\n }", "public function getRegistros()\n {\n if($this->input->post('id_cliente'))\n {\n $id_cliente = $this->input->post('id_cliente'); \n $contratos = $this->m_contratos->getRegistros($id_cliente, 'id_cliente');\n \n echo '<option value=\"\" disabled selected style=\"display:none;\">Seleccione una opcion...</option>';\n foreach ($contratos as $row) \n {\n echo '<option value=\"'.$row->id_vehiculo.'\">'.$row->vehiculo.'</option>';\n }\n }\n }", "function get_combo_eventos() {\n $query = $this->db->query(\"select * from evento\");\n \n $result = \"\";\n if ($query) {\n if ($query->num_rows() == 0) {\n return false;\n } else {\n foreach ($query->result() as $reg) {\n $data[$reg->nEveId] = $reg->cEveTitulo;\n }\n $result=form_dropdown(\"cbo_evento_listar\", $data,'','id=\"cbo_evento_listar\" class=\"chzn-select\" style=\"width:250px\" required=\"required\"');\n //$result=form_dropdown(\"cbo_evento_listar\", $data,'','id=\"cbo_evento_listar\" style=\"width:auto\" required=\"required\"');\n return $result;\n }\n } else {\n return false;\n }\n }", "function _reglas()\n\t{\n\t\t$reglas[] = array('field' => 'titulo', 'label' => 'lang:field_titulo', 'rules' => 'trim|required|max_length[100]');\n\t\t\n\t\t\t$reglas[] = array('field' => 'has_category', 'label' => 'lang:field_has_category', 'rules' => 'callback_has_categorys');\n\t\t\n\t\t\n\t\treturn $reglas;\n\t}", "function cargarComboBox(){\n $bdUsuarios = new MUsuarios();\n $datosRoles = $bdUsuarios->ComboBox();\n \n if($datosRoles != NULL){\n while($fila = mysqli_fetch_array ($datosRoles, MYSQLI_ASSOC)){\n echo \"<option value=\".$fila['ID_Rol'].\">\".$fila['Nombre'] . \"</option>\"; \n }\n }\n \n}", "public function Listar(){\n $dica_saude = new Exame();\n\n //Chama o método para selecionar os registros\n return $dica_saude::Select();\n }", "public function ctlBuscaProductos(){\n\n\t\t$respuesta = Datos::mdlProductos(\"productos\");\n\n\t\tforeach ($respuesta as $row => $item){\n\t\t\techo '<option value=\"'.$item[\"codProducto\"].'\">'.$item[\"nombre\"].'</option>';\n\t\t}\n\t}", "public function listRegisterFields(){\n\t\t$this->registerFieldString('name_hld', 'Tipo');\n\t}", "private function criarBarraDeBuscaAction(){\n $cidades = $this->Localidades()->getCidades(\"RJ\");\n $busca = new form_busca();//1- primeiro eu instancio o formularioarray('selecione'=>'selecione','nome' => 'nome','cidade' => 'cidade')\n $busca->get('cidade')->setAttribute('options',$cidades);\n $busca->get('bairro')->setAttribute('options', array(0=>'Selecione uma Cidade'));\n //\n $categoriaDao = \\Base\\Model\\daoFactory::factory('SubCategoriaImovel');\n $dadosCategoria = $categoriaDao->recuperarTodos();\n $categorias = $this->SelectHelper()->getArrayData(\"selecione\",$dadosCategoria);\n $busca->get('tipo')->setAttribute('options', $categorias);\n //\n $transacaoDao = \\Base\\Model\\daoFactory::factory('TipoTransacao');\n $dadosTransacoes = $transacaoDao->recuperarTodos();\n $transacoes = $this->SelectHelper()->getArrayData(\"selecione\",$dadosTransacoes);\n $busca->get('transacao')->setAttribute('options', $transacoes);\n //\n $arrayPreco = array(array(\"value\"=>0, \"label\"=>\"selecione\", \"disabled\" => \"disabled\", \"selected\" => \"selected\"),array(\"value\" => 1, \"label\" => \"R$ 100.000 a R$ 200.000\"),array(\"value\" => 2, \"label\" => \"R$ 200.000 a R$ 300.000\"),array(\"value\" => 3, \"label\" => \"R$ 300.000 a R$ 400.000\"),array(\"value\" => 4, \"label\" => \"R$ 400.000 a R$ 500.000\"),array(\"value\" => 5, \"label\" => \"acima de R$ 500.000\"));\n $busca->get('valor')->setAttribute('options', $arrayPreco);\n return $busca;\n }", "function Cargar_combo_Zonas(){\r\n\r\n\t\t$conexion = $this ->Conexion;\r\n\r\n\t\t$zonas =$conexion->query(\"SELECT codigo valor, nombre mostrar FROM hit_zonas where visible = 'S' ORDER BY NOMBRE\");\r\n\t\t$numero_filas = $zonas->num_rows;\r\n\r\n\t\tif ($zonas == FALSE){\r\n\t\t\techo('Error en la consulta');\r\n\t\t\t$zonas->close();\r\n\t\t\t$conexion->close();\r\n\t\t\texit;\r\n\t\t}\r\n\r\n\t\t$combo_zonas = array();\r\n\t\t$combo_zonas[-1] = array ( \"valor\" => null, \"mostrar\" => '');\r\n\t\tfor ($num_fila = 0; $num_fila < $numero_filas; $num_fila++) {\r\n\t\t\t$zonas->data_seek($num_fila);\r\n\t\t\t$fila = $zonas->fetch_assoc();\r\n\t\t\tarray_push($combo_zonas,$fila);\r\n\t\t}\r\n\r\n\t\t//Liberar Memoria usada por la consulta\r\n\t\t$zonas->close();\r\n\r\n\t\treturn $combo_zonas;\r\n\r\n\r\n\r\n\t}", "function _load_combo_data()\n\t{\n\t\t$data['po_zone_infos'] = $this->Po_zone_area_detail->get_po_zones();\n\t\t//This function is for listing of areas\t\n\t\t$data['po_area_infos'] = $this->Po_zone_area_detail->get_po_areas();\n\t\treturn $data;\n\t}", "function comboBase($code, $id_transportadora = 0) {\n // pega variaveis global\n global $con;\n \n // pega o ID passado\n $id_transportadora = (empty($id_transportadora)) ? 0 : (int)$id_transportadora;\n\n // seta a condicao\n $_condi = (!empty($id_transportadora)) ? \"WHERE (idtransportadora = '{$id_transportadora}')\" : \"\";\n \n // executa\n $dba = new consulta($con);\n $dba->executa(\"SELECT codbase, nomebase FROM tbbase {$_condi} ORDER BY nomebase ASC\");\n\n // percorre o resultado da query\n for ($ii = 0; $ii < $dba->nrw; $ii++) {\n \t// navega\n $dba->navega($ii);\n \n // pega os campos\n\t\t$id = $dba->data[\"codbase\"];\n\t\t$nome = $dba->data[\"nomebase\"];\n \n // seleciona\n\t $sele = ($id == $code) ? \"selected='selected'\" : \"\";\n\t\t\n\t\t// mostra a opcao\n\t\techo \"<option value='{$id}' {$sele}>{$nome}</option>\\n\";\n }\n}", "function _load_combo_data()\n\t{\n\t\t$data['savings_code'] = $this->Saving->get_member_savings_code_list($this->input->post('member_id'));\t\t\n\t\t// Transaction type list which will be used in combo box\n\t\t$data['payments'] = array('CASH'=>'CASH','CHQ'=>'CHQ');\n\t\t// Payment type list which will be used in combo box\n\t\t//$data['transactions'] = array('DEP'=>'Deposit','INT'=>'Interest');\n\t\treturn $data;\n\t}", "private static function loadItems()\n\t{\n\t\tself::$_items=array();\t\t\t\t\t\t//FIXME Сделать критерию с селект где не будет лишних полей\n\t\t$models=self::model()->findAll();\n\t\tforeach($models as $model)\n\t\t\tself::$_items[$model->code]=$model->value;\n\t}", "static public function ctrlSeleccionarRegistros($item, $valor){\r\n\t$tabla= \"registros\";\r\n\t$respuesta = ModeloFormularios::mdlSeleccionarRegistros($tabla, $item, $valor);\r\n\treturn $respuesta;\r\n\r\n}", "public function ctlBuscaProveedores(){\n\n\t\t$respuesta = Datos::mdlProveedores();\n\n\t\tforeach ($respuesta as $row => $item){\n\t\t\techo '<option value=\"'.$item[\"nombre\"].'\">'.$item[\"nombre\"].'</option>';\n\t\t}\n\t}", "public function getcboregprocede() {\n \n $sql = \"select ctipo as 'cprocede', dregistro as 'dprocede' from ttabla where ctabla = 47 and ncorrelativo <> 0 order by dregistro;\";\n\t\t$query = $this->db->query($sql);\n \n if ($query->num_rows() > 0) {\n\n $listas = '<option value=\"0\" selected=\"selected\">::Elegir</option>';\n \n foreach ($query->result() as $row)\n {\n $listas .= '<option value=\"'.$row->cprocede.'\">'.$row->dprocede.'</option>'; \n }\n return $listas;\n }{\n return false;\n }\t\n }", "function construirComboSoloDatos($result) {\n\t\n\t$cadena = \"\";\n\tforeach($result as $opcion) {\t\t\n\t\t$cadena .= \"<option value=\\\"\". $opcion[\"codigo\"] .\"\\\">\" . $opcion[\"texto\"] . \"</option>\";\n\t}\n\t\n\treturn $cadena;\t\n}", "public function ctlBuscaMisBodegas(){\n\n\t\t$respuesta = Datos::mdlBodegas(\"entradas\");\n\n\t\tforeach ($respuesta as $row => $item){\n\t\t\techo '<option value=\"'.$item[\"destino\"].'\">'.$item[\"destino\"].'</option>';\n\t\t}\n\t}", "public function combo_acciones_estrategicos(){\n $salida = \"\";\n $id_pais = $_POST[\"elegido\"];\n // construimos el combo de ciudades deacuerdo al pais seleccionado\n $combog = pg_query('select *\n from _acciones_estrategicas\n where obj_id='.$id_pais.' and acc_estado!=3\n order by acc_id asc');\n $salida .= \"<option value=''>\" . mb_convert_encoding('SELECCIONE ACCI&Oacute;N ESTRATEGICA', 'cp1252', 'UTF-8') . \"</option>\";\n while ($sql_p = pg_fetch_row($combog)) {\n $salida .= \"<option value='\" . $sql_p[0] . \"'>\" .$sql_p[2].\".- \".$sql_p[3] . \"</option>\";\n }\n echo $salida;\n }", "function listaRuta()\r\n\t{\t\r\n\t\t$query = \"SELECT * FROM \" . self::TABLA . \";\";\r\n\t\treturn parent::listaRegistros( $query );\r\n\t}", "public function LcargarComboTipoUnidadMedidaMuestraSeleccionado() {\n $oDLaboratorio = new DLaboratorio();\n $resultado = $oDLaboratorio->DcargarComboTipoUnidadMedidaMuestraSeleccionado();\n return $resultado;\n }", "public function init() {\n $auth = Zend_Auth::getInstance()->setStorage(new Zend_Auth_Storage_Session('admin'));\n $user = $auth->getIdentity();\n $code_groupe = $user->code_groupe;\n\n $this->setMethod('post');\n\n $this->addElement('text', 'nom_gac', array(\n 'label' => 'Nom *',\n 'required' => true,\n 'size' => 30,\n 'filters' => array('StringTrim'),\n ));\n\n $nm = new Application_Model_DbTable_EuMembreMorale();\n $select = $nm->select();\n $rows = $nm->fetchAll($select);\n $membres = array();\n foreach ($rows as $c) {\n $membres[] = $c->code_membre_morale;\n }\n $elem = new ZendX_JQuery_Form_Element_AutoComplete(\n \"code_membre\", array('label' => 'Code membre','required' => false)\n );\n $elem->setJQueryParams(array('source' => $membres));\n $elem->setAttrib('size', '25');\n $elem->setRequired(false);\n $this->addElement($elem);\n\n $mapper = new Application_Model_DbTable_EuTypeGac();\n $select = $mapper->select();\n $select->order('ordre_type_gac', 'ASC');\n if ($code_groupe == 'agregat') {\n $select->where('ordre_type_gac >=?', 1);\n $select->where('ordre_type_gac <=?', 8);\n } elseif ($code_groupe == 'gac') {\n $select->where('ordre_type_gac >=?', 2);\n $select->where('ordre_type_gac <=?', 8);\n } elseif ($code_groupe == 'gacp') {\n $select->where('ordre_type_gac >=?', 3);\n $select->where('ordre_type_gac <=?', 8);\n } elseif ($code_groupe == 'gacsu') {\n $select->where('ordre_type_gac >=?', 9);\n $select->where('ordre_type_gac <=?', 11);\n } elseif ($code_groupe == 'gacex') {\n $select->where('ordre_type_gac >=?', 3);\n } elseif ($code_groupe == 'gacse') {\n $select->where('ordre_type_gac >=?', 4);\n $select->where('ordre_type_gac <=?', 8);\n } elseif ($code_groupe == 'gacr') {\n $select->where('ordre_type_gac >=?', 5);\n $select->where('ordre_type_gac <=?', 8);\n } elseif ($code_groupe == 'gacs') {\n $select->where('ordre_type_gac >=?', 6);\n $select->where('ordre_type_gac <=?', 8);\n }\n $tgac = $mapper->fetchAll($select);\n $t_select = new Zend_Form_Element_Select('code_type_gac');\n $t_select->setLabel('Type GAC *');\n $t_select->setRequired(true);\n foreach ($tgac as $c) {\n $t_select->addMultiOption('', '');\n $t_select->addMultiOption($c->code_type_gac, $c->nom_type_gac);\n }\n $this->addElement($t_select);\n\n $mapper = new Application_Model_EuZoneMapper();\n $zones = $mapper->fetchAll();\n $z_select = new Zend_Form_Element_Select('code_zone');\n $z_select->setLabel('Zone géographique');\n $z_select->isRequired(true);\n foreach ($zones as $c) {\n $z_select->addMultiOption('', '');\n $z_select->addMultiOption($c->code_zone, $c->nom_zone);\n }\n $mapper = new Application_Model_EuPaysMapper();\n $zones = $mapper->fetchAll();\n $z_select->isRequired(true);\n foreach ($zones as $c) {\n $z_select->addMultiOption('', '');\n $z_select->addMultiOption($c->id_pays, $c->libelle_pays);\n }\n $mapper = new Application_Model_DbTable_EuSection();\n $zones = $mapper->fetchAll();\n $z_select->isRequired(true);\n foreach ($zones as $c) {\n $z_select->addMultiOption('', '');\n $z_select->addMultiOption($c->id_section, $c->nom_section);\n }\n $mapper = new Application_Model_DbTable_EuRegion();\n $zones = $mapper->fetchAll();\n $z_select->isRequired(true);\n foreach ($zones as $c) {\n $z_select->addMultiOption('', '');\n $z_select->addMultiOption($c->id_region, $c->nom_region);\n }\n $mapper = new Application_Model_EuSecteurMapper();\n $zones = $mapper->fetchAll();\n $z_select->isRequired(true);\n foreach ($zones as $c) {\n $z_select->addMultiOption('', '');\n $z_select->addMultiOption($c->code_secteur, $c->nom_secteur);\n }\n $mapper = new Application_Model_EuAgenceMapper();\n $zones = $mapper->fetchAll();\n $z_select->isRequired(true);\n foreach ($zones as $c) {\n $z_select->addMultiOption('', '');\n $z_select->addMultiOption($c->code_agence, $c->libelle_agence);\n }\n $this->addElement($z_select);\n\n $a_select = new Zend_Form_Element_Multiselect('code_agence');\n $a_select->setLabel('Agences couvertes');\n $a_select->isRequired(false);\n $mapper = new Application_Model_DbTable_EuAgence();\n $select = $mapper->select();\n $select->order('libelle_agence', 'ASC');\n $agence = $mapper->fetchAll($select);\n foreach ($agence as $c) {\n $a_select->addMultiOption('', '');\n $a_select->addMultiOption($c->code_agence, $c->libelle_agence);\n }\n $this->addElement($a_select);\n \n $ng = new Application_Model_DbTable_EuMembre();\n $select = $ng->select();\n $rows = $ng->fetchAll($select);\n $membres = array();\n foreach ($rows as $c) {\n $membres[] = $c->code_membre;\n }\n $elem = new ZendX_JQuery_Form_Element_AutoComplete(\n \"code_membre_gestionnaire\", array('label' => 'Numéro gestionnaire','required' => false)\n );\n $elem->setJQueryParams(array('source' => $membres));\n $elem->setAttrib('size', '25');\n $elem->setRequired(false);\n $this->addElement($elem);\n\n $this->addElement('text', 'nom_gestion', array(\n 'label' => 'Nom gestionnaire',\n 'required' => false,\n 'filters' => array('StringTrim'),\n 'size' => 25,\n 'readonly' => true,\n ));\n\n $this->addElement('text', 'prenom_gestion', array(\n 'label' => 'Prénoms gestionnaire',\n 'required' => false,\n 'filters' => array('StringTrim'),\n 'size' => 25,\n 'readonly' => true,\n ));\n\n $this->addElement('text', 'tel_gestion', array(\n 'label' => 'Téléphone gestionnaire',\n 'required' => false,\n 'filters' => array('StringTrim'),\n 'size' => 25,\n 'readonly' => true,\n ));\n\n $this->addElement('submit', 'submit', array(\n 'ignore' => true,\n 'label' => 'Valider',\n ));\n\n // Add the cancel button\n $this->addElement('button', 'cancel', array(\n 'ignore' => true,\n 'label' => 'Annuler',\n ));\n $this->addElement(\n 'hidden', 'code_gac', array(\n ));\n $this->addElement(\n 'hidden', 'zone', array(\n ));\n \n }", "function getTituloCombo($tabelaProcura){\n # Abre arquivo xml para navegacao\n $aBanco = simplexml_load_string($this->xml);\n $retorno = $pk = '';\n # Varre a estrutura das tabelas\n foreach($aBanco as $aTabela){\n # Recupera o nome da tabela e gera o nome da classe\n if($tabelaProcura != $aTabela['NOME']) \n continue;\n\n # Varre a estrutura dos campos da tabela em questao\n foreach($aTabela as $oCampo){ \n //print \"@@{$oCampo->NOME}\\n\";\n //print_r($aTabela); exit;\n # Se o campo for chave, nao sera usado\n if($oCampo->CHAVE == 1){\n $pk = $oCampo->NOME;\n \n if((String)$oCampo->FKTABELA == ''){\n continue;\n }\n }\n\n # Se o campo for do tipo numerico, nao sera usado, nao sera usado\n if(!preg_match(\"#varchar#is\", (String)$oCampo->TIPO)) continue;\n \n # Se o campo tiver nomenclatura que nao remeta a nome/descricao sera eliminado \n if(preg_match(\"#(?:nome|descricao)#is\", (String)$oCampo->NOME)){\n $retorno = (String)$oCampo->NOME;\n break;\n }\n \n # Se o campo tiver nomenclatura que nao remeta a nome/descricao sera eliminado \n if(preg_match(\"#(?:usuario|login|nome_?(?:pessoa|cliente|servidor)|descricao|titulo|nm_(?:pessoa|cliente|servidor|estado_?civil|lotacao|credenciado)|desc_)#is\", (String)$oCampo->NOME)){\n $retorno = (String)$oCampo->NOME;\n break;\n }\n \n # Recupera valores a serem substituidos no modelo\n \n }\n break;\n }\n if($retorno == '')\n $retorno = $pk;\n return (string)$retorno;\n }", "public function Listar(){\n\t\t\t$view_agendamento = new ViewAgendamentoPacienteFuncionarioClass();\n\n\t\t\t//Chama o método para selecionar os registros\n \n \n \n\t\t\treturn $view_agendamento::Select();\n\t\t}", "function cargar_privilegios2(){\n\t\t$res = $this->lis_privs();\n\t\t$comboBox = '<select id=\"selectPrivs2\" name=\"Privilegio\">';\n\t\t$vals = array();\n\t\t$i = 0;\n\t\t$j = 0;\n\t\tforeach($res as $row){\n\t\t\t$vals[$i] = $row;\n\t\t\t$i = $i +1;\n\t\t}\n\t\twhile($j < $i){\n\t\t\t$comboBox .= '<option value = \"'.$vals[$j].'\">'.$vals[$j+1].'</option>';\n\t\t\t$j = $j+2;\n\t\t}\t\t\n\t\t$comboBox .= '</select>';\n\t\treturn $comboBox;\n\t}", "public function ctlBuscaClientes(){\n\n\t\t$respuesta = Datos::mdlClientes(\"clientes\");\n\n\t\tforeach ($respuesta as $row => $item){\n\t\t\techo '<option value=\"'.$item[\"nombre\"].'\">'.$item[\"nombre\"].'</option>';\n\t\t}\n\t}", "public function init() {\n $resources = new Model_Resources();\n $resources->form_values['only_childs'] = 1;\n $result2 = $resources->getResources('resource_name', 'ASC');\n $this->_list[\"page_name\"][''] = \"Select\";\n if ($result2) {\n foreach ($result2 as $row2) {\n $resource = $row2->getResourceName();\n $arr_resources = explode(\"/\", $resource);\n $second_name = (!empty($arr_resources[1])) ? ucfirst($arr_resources[1]) . \" - \" : \"\";\n $this->_list[\"page_name\"][$row2->getPkId()] = ucfirst($arr_resources[0]) . \" - \" . $second_name . $row2->getDescription();\n }\n }\n\n //Generate fields \n // for Form_Iadmin_MessagesAdd\n foreach ($this->_fields as $col => $name) {\n if ($col == \"description\") {\n parent::createMultiLineText($col, \"4\");\n }\n\n // Generate combo boxes \n // for Form_Iadmin_MessagesAdd\n if (in_array($col, array_keys($this->_list))) {\n parent::createSelect($col, $this->_list[$col]);\n }\n\n // Generate Radio buttons\n // for Form_Iadmin_MessagesAdd\n if (in_array($col, array_keys($this->_radio))) {\n parent::createRadio($col, $this->_radio[$col]);\n }\n }\n }", "function cmb2_fields_home() {\n // Adiciona um bloco\n $cmb = new_cmb2_box([ /// está dentro de um Array, que é o [];\n 'id' => 'home_box', // id deve ser único\n 'title' => 'Menu da Semana', /// o title deve ser igual ao page-template\n 'object_types' => ['page'], // tipo de post\n 'show_on' => [\n 'key' => 'page-template',\n 'value' => 'page-home.php',\n ], // modelo de página\n ]);\n\n $cmb->add_field([\n 'name' => 'Descrição da página para SEO',\n 'id' => 'description_seo',\n 'type' => 'text',\n ]);\n\n // Adiciona um campo ao bloco criado\n $cmb->add_field([\n 'name' => 'Primeiro Prato',\n 'id' => 'comida1',\n 'type' => 'text',\n ]);\n\n // O campo repetidor é do tipo group // aqui é para repetir os pratos\n $pratos = $cmb->add_field([\n 'name' => 'Pratos',\n 'id' => 'pratos',\n 'type' => 'group',\n 'repeatable' => true,\n 'options' => [\n 'group_title' => 'Prato {#}', /// aqui aparece o numero da posição do prato\n 'add_button' => 'Adicionar Prato',\n 'remove_button' => 'Remover Prato',\n 'sortable' => true, /// se quero que o cliente mude a ordem;\n ],\n ]);\n\n // Cada campo é adicionado com add_group_field\n // Passando sempre o campo de grupo como primeiro argumento\n $cmb->add_group_field($pratos, [\n 'name' => 'Nome',\n 'id' => 'nome',\n 'type' => 'text',\n ]);\n\n $cmb->add_group_field($pratos, [\n 'name' => 'Descrição',\n 'id' => 'descricao',\n 'type' => 'text',\n ]);\n\n $cmb->add_group_field($pratos, [\n 'name' => 'Preço',\n 'id' => 'preco',\n 'type' => 'text',\n ]);\n\n // Adiciona um campo ao bloco criado\n $cmb->add_field([\n 'name' => 'Segundo Prato',\n 'id' => 'comida2',\n 'type' => 'text',\n ]);\n\n // O campo repetidor é do tipo group // aqui é para repetir os pratos\n $pratos2 = $cmb->add_field([\n 'name' => 'Pratos2',\n 'id' => 'pratos2',\n 'type' => 'group',\n 'repeatable' => true,\n 'options' => [\n 'group_title' => 'Prato {#}', /// aqui aparece o numero da posição do prato\n 'add_button' => 'Adicionar Prato Dois',\n 'remove_button' => 'Remover Prato Dois',\n 'sortable' => true, /// se quero que o cliente mude a ordem;\n ],\n ]);\n\n // Cada campo é adicionado com add_group_field\n // Passando sempre o campo de grupo como primeiro argumento\n $cmb->add_group_field($pratos2, [\n 'name' => 'Nome',\n 'id' => 'nome',\n 'type' => 'text',\n ]);\n\n $cmb->add_group_field($pratos2, [\n 'name' => 'Descrição',\n 'id' => 'descricao',\n 'type' => 'text',\n ]);\n\n $cmb->add_group_field($pratos2, [\n 'name' => 'Preço',\n 'id' => 'preco',\n 'type' => 'text',\n ]);\n}", "public function indexAction()\r\n\t{\r\n\t\t$this->view->contratoCombo = $this->objContrato->getContrato(true, true);\t\t\r\n\t}", "public function getInfoDropDownList()\n {\n \n try{\n if(!$this->pdo)throw new PDOException();\n $collection = [];\n $sth = $this->pdo->query(\"SELECT id, name FROM brands\"); \n $collection ['brands'] = $this->getFetchAccoss($sth);\n $sth = $this->pdo->query(\"SELECT id, name FROM models\"); \n $collection ['models'] = $this->getFetchAccoss($sth);\n $sth = $this->pdo->query(\"SELECT id, name FROM colors\"); \n $collection ['colors'] = $this->getFetchAccoss($sth);\n $collection ['sucess'] = 1;\n return json_encode($collection);\n }catch(PDOException $err){\n file_put_contents('errors.txt', $err->getMessage(), FILE_APPEND); \n $err_arr = ['sucess'=>0];\n return json_encode($err_arr);\n }\n }", "public function Listar(){\n\n $motorista = new Motorista();\n\n return $motorista::Select();\n\n }", "public function getcboregAreazona($parametros) {\n \n $procedure = \"call usp_at_audi_getcboregAreazona(?)\";\n\t\t$query = $this->db-> query($procedure,$parametros);\n \n if ($query->num_rows() > 0) {\n\n $listas = '<option value=\"\" selected=\"selected\">::Elegir</option>';\n \n foreach ($query->result() as $row)\n {\n $listas .= '<option value=\"'.$row->CESTABLEAREA.'\">'.$row->DESTABLEAREA.'</option>'; \n }\n return $listas;\n }{\n return false;\n }\t\n }", "function uf_cmb_nomina($as_seleccionado)\r\n\t{\r\n\t\t$lb_valido=true;\r\n\t\t$ls_sql=\"SELECT a.codnom, a.desnom \". \r\n\t\t \" FROM sno_nomina as a WHERE a.codemp='\".$this->ls_codemp.\"'\";\r\n\t\t$rs_result=$this->io_sql->select($ls_sql);\t\t\r\n\t\tif($rs_result===false)\r\n\t\t {\r\n\t\t\t$this->io_msg->message(\"CLASE->Buscar Tipos de Servicios Médicos MÉTODO->uf_cmb_nomina ERROR->\".$this->io_function->uf_convertirmsg($this->io_sql->message));\r\n\t\t\t$lb_valido=false;\r\n\t\t\t//return false;\r\n\t\t }\r\n\t\t else\r\n\t\t {\r\n\t\t\tprint \"<select name='cmbnomina' id='cmbnomina' onChange='javascript: ue_cargargrid();'>\";\r\n\t\t\tprint \" <option value='00'>-- Seleccione Una Nomina--</option>\";\r\n\t\t\twhile($row=$this->io_sql->fetch_row($rs_result))\r\n\t\t\t{\r\n\t\t\t\t$ls_seleccionado=\"\";\r\n\t\t\t\t$ls_codnom=$row[\"codnom\"];\r\n\t\t\t\t$ls_desnom=$row[\"desnom\"];\r\n\t\t\t\t$ls_operacion=\"\";\r\n\t\t\t\tif($as_seleccionado==$ls_codnom)\r\n\t\t\t\t{\r\n\t\t\t\t\t$ls_seleccionado=\"selected\";\r\n\t\t\t\t}\r\n\t\t\t\tprint \"<option value='\".$ls_codnom.\"' \".$ls_seleccionado.\">\".$ls_desnom.\" - \".$ls_operacion.\"</option>\";\r\n\t\t\t}\r\n\t\t\t$this->io_sql->free_result($rs_result);\t\r\n\t\t\tprint \"</select>\";\r\n\t\t}\r\n\t\treturn $lb_valido;\r\n\t}", "public function selecionarAction() { \r\n // Recupera os parametros da requisição\r\n $params = $this->_request->getParams();\r\n \r\n // Instancia a classes de dados\r\n $menus = new WebMenuSistemaModel();\r\n \r\n // Retorna para a view os menus cadastrados\r\n $this->view->menus = $menus->getMenus();\r\n \r\n // Define os filtros para a cosulta\r\n $where = $menus->addWhere(array(\"CD_MENU = ?\" => $params['cd_menu']))->getWhere();\r\n \r\n // Recupera o sistema selecionado\r\n $menu = $menus->fetchRow($where);\r\n \r\n // Reenvia os valores para o formulário\r\n $this->_helper->RePopulaFormulario->repopular($menu->toArray(), \"lower\");\r\n }", "public function init()\n {\n $this->setMethod('post');\n\n $this->addElement(\n 'text', 'code_bout', array(\n 'label' => 'Code *',\n 'required' => true,\n 'filters' => array('StringTrim'),\n ));\n\n $this->addElement('text', 'design_bout', array(\n 'label' => 'Raison sociale *',\n 'required' => true,\n ));\n \n $this->addElement('text', 'telephone', array(\n 'label' => 'Téléphone *',\n 'required' => true,\n 'filters' => array('StringTrim'),\n ));\n \n $this->addElement('text', 'adresse', array(\n 'label' => 'Adresse *',\n 'required' => true,\n 'filters' => array('StringTrim'),\n ));\n \n $ms = new Application_Model_EuSecteurMapper();\n $secteur = $ms->fetchAll();\n $z_select = new Zend_Form_Element_Select('codesect');\n $z_select->setLabel('Nom secteur *: ')->isRequired(true);\n foreach ($secteur as $s) {\n $z_select->addMultiOption($s->codesect, $s->nomsect);\n }\n $this->addElement($z_select);\n \n $this->addElement('text', 'nom_responsable', array(\n 'label' => 'Nom responsable*:',\n 'required' => true,\n 'filters' => array('StringTrim'),\n ));\n \n $this->addElement('text', 'prenom_responsable', array(\n 'label' => 'Prenom responsable*:',\n 'required' => true,\n 'filters' => array('StringTrim'),\n ));\n \n // $nm = new Application_Model_DbTable_EuMembre();\n // $select = $nm->select();\n // $select->where('type_membre=?', 'M');\n // $rows = $nm->fetchAll($select);\n // $membres = array();\n // foreach ($rows as $c) {\n // $membres[] = $c->num_membre;\n // }\n // $elem = new ZendX_JQuery_Form_Element_AutoComplete(\n // \"proprietaire\", array('label' => 'Numéro membre *')\n // );\n // $elem->setJQueryParams(array('source' => $membres));\n // $this->addElement($elem);\n \n \n $this->addElement('text', 'mail', array(\n 'label' => 'E-Mail:',\n 'required' => false,\n 'filters' => array('StringTrim'),\n ));\n \n $this->addElement('text', 'siteweb', array(\n 'label' => 'Site web:',\n 'required' =>false,\n 'filters' => array('StringTrim'),\n ));\n \n $this->addElement('submit', 'submit', array(\n 'ignore' => true,\n 'label' => 'Valider',\n )); \n \n // Add the cancel button\n $this->addElement('button', 'cancel', array(\n 'ignore' => true,\n 'label' => 'Annuler',\n ));\n }", "function getDropDown() ;", "public function llenarCombo()\n {\n\n \n \t$area_destino = $_POST[\"dir\"];\n\n \t$options=\"\";\n \t\n \t$deptos = $this ->Modelo_direccion->obtenerCorreoDepto($area_destino);\n\n \tforeach ($deptos as $row){\n \t\t$options= '\n \t\t<option value='.$row->email.'>'.$row->email.'</option>\n \t\t'; \n \t\techo $options; \n \t}\n \t\n\n }", "function _Registros($Regs=0){\n\t\t// Creo grid\n\t\t$Grid = new nyiGridDB('NOTICIAS', $Regs, 'base_grid.htm');\n\t\t\n\t\t// Configuro\n\t\t$Grid->setParametros(isset($_GET['PVEZ']), 'titulo');\n\t\t$Grid->setPaginador('base_navegador.htm');\n\t\t$arrCriterios = array(\n\t\t\t'id'=>'Identificador',\n\t\t\t'titulo'=>'T&iacute;tulo', \n\t\t\t\"IF(p.visible, 'Si', 'No')\"=>\"Visible\"\n\t\t);\n\t\t$Grid->setFrmCriterio('base_criterios_buscador.htm', $arrCriterios);\n\t\n\t\t// Si viene con post\n\t\tif ($_SERVER[\"REQUEST_METHOD\"] == \"POST\"){\n\t\t\t$Grid->setCriterio($_POST['ORDEN_CAMPO'], $_POST['ORDEN_TXT'], $_POST['CBPAGINA']);\n\t\t\tunset($_GET['NROPAG']);\n\t\t}\n\t\telse if(isset($_GET['NROPAG'])){\n\t\t\t// Numero de Pagina\n\t\t\t$Grid->setPaginaAct($_GET['NROPAG']);\n\t\t}\n\t\n\t\t$Campos = \"p.id_noticia AS id, p.titulo, pf.nombre_imagen, pf.extension, IF(p.visible, 'Si', 'No') AS visible, p.copete\";\n\t\t$From = \"noticia p LEFT OUTER JOIN noticia_foto pf ON pf.id_noticia = p.id_noticia AND pf.orden = 1\";\n\t\t\n\t\t$Grid->getDatos($this->DB, $Campos, $From);\n\t\t\n\t\t// Devuelvo\n\t\treturn($Grid);\n\t}", "function cpt_combos() {\n\n\t$labels = array(\n\t\t'name' => _x( 'combos', 'Post Type General Name', 'text_domain' ),\n\t\t'singular_name' => _x( 'combo', 'Post Type Singular Name', 'text_domain' ),\n\t\t'menu_name' => __( 'Combos', 'text_domain' ),\n\t\t'name_admin_bar' => __( 'Combos', 'text_domain' ),\n\t\t'archives' => __( 'Archivo de Combos', 'text_domain' ),\n\t\t'attributes' => __( 'Atributos de Combo', 'text_domain' ),\n\t\t'parent_item_colon' => __( 'Combo Padre', 'text_domain' ),\n\t\t'all_items' => __( 'Todos los Combos', 'text_domain' ),\n\t\t'add_new_item' => __( 'Añadir Nuevo Combo', 'text_domain' ),\n\t\t'add_new' => __( 'Añadir Combo', 'text_domain' ),\n\t\t'new_item' => __( 'Nuevo Combo', 'text_domain' ),\n\t\t'edit_item' => __( 'Editar Combo', 'text_domain' ),\n\t\t'update_item' => __( 'Actualizar Combo', 'text_domain' ),\n\t\t'view_item' => __( 'Ver Combos', 'text_domain' ),\n\t\t'view_items' => __( 'Ver Combos', 'text_domain' ),\n\t\t'search_items' => __( 'Buscar Combos', 'text_domain' ),\n\t\t'not_found' => __( 'No Encontrado', 'text_domain' ),\n\t\t'not_found_in_trash' => __( 'No encontrado en la Papelera', 'text_domain' ),\n\t\t'featured_image' => __( 'Imagen Destacada', 'text_domain' ),\n\t\t'set_featured_image' => __( 'Configurar Imagen Destacada', 'text_domain' ),\n\t\t'remove_featured_image' => __( 'Remover Imagen Destacada', 'text_domain' ),\n\t\t'use_featured_image' => __( 'Usar como imagen destacada', 'text_domain' ),\n\t\t'insert_into_item' => __( 'Insertar en el Combo', 'text_domain' ),\n\t\t'uploaded_to_this_item' => __( 'Actualizar en este Combo', 'text_domain' ),\n\t\t'items_list' => __( 'Listado de Combos', 'text_domain' ),\n\t\t'items_list_navigation' => __( 'Lista Navegable de combos', 'text_domain' ),\n\t\t'filter_items_list' => __( 'Filtro de listas de Combos', 'text_domain' ),\n\t);\n\t$args = array(\n\t\t'label' => __( 'combo', 'text_domain' ),\n\t\t'description' => __( 'Tenemos los mejores combos únicos para ti.', 'text_domain' ),\n\t\t'labels' => $labels,\n\t\t'supports' => array( 'title', 'editor', 'thumbnail', 'custom-fields', 'page-attributes' ),\n\t\t'taxonomies' => array( 'category', 'post_tag' ),\n\t\t'hierarchical' => false,\n\t\t'public' => true,\n\t\t'show_ui' => true,\n\t\t'show_in_menu' => true,\n 'menu_icon' => 'dashicons-food',\n\t\t'menu_position' => 5,\n\t\t'show_in_admin_bar' => true,\n\t\t'show_in_nav_menus' => true,\n\t\t'can_export' => true,\n\t\t'has_archive' => true,\n\t\t'exclude_from_search' => false,\n\t\t'publicly_queryable' => true,\n\t\t'capability_type' => 'page',\n\t);\n\tregister_post_type( 'combos', $args );\n\n}", "public static function getGenreOptions() {\n \n try {\n\n require('connection.php');\n\n $result = $db->prepare(\"SELECT * FROM genres\");\n $result->execute();\n\n $options = '';\n\n while ($line = $result->fetch()) {\n $options = $options.'<option value=\"'.$line['Id'].'\">'.$line['Label'].'</option>';\n }\n\n return $options;\n\n } catch (Exception $e) {\n throw new Exception(\"<br>Erreur lors de la création de la liste d'options de genres : \". $e->getMessage());\n }\n\t\t}", "function consultarGrupo()\n\t\t{\n\t\t\t\t $file = fopen(\"../Archivos/ArrayConsultarGrupo.php\", \"w\");\n\t\t\t\t fwrite($file,\"<?php class consult { function array_consultar(){\". PHP_EOL);\n\t\t\t\t fwrite($file,\"\\$form=array(\" . PHP_EOL);\n\n\t\t\t$mysqli=$this->conexionBD();\n\t\t\t$query=\"SELECT * FROM grupo \";\n\t\t\t$resultado=$mysqli->query($query);\n\t\t\tif(mysqli_num_rows($resultado)){\n\t\t\t\twhile($fila = $resultado->fetch_array())\n\t\t\t{\n\t\t\t\t$filas[] = $fila;\n\t\t\t}\n\t\t\tforeach($filas as $fila)\n\t\t\t{ \n\t\t\t\t$nombre=$fila['NOMBRE_GRUPO'];\n\t\t\t\t$descripcion=$fila['DESCRIPCION'];\n\t\t\t\tfwrite($file,\"array(\\\"nombre\\\"=>'$nombre',\\\"descripcion\\\"=>'$descripcion'),\" . PHP_EOL);\n\t\t\t}\n\t\t\t}\n\t\t\t fwrite($file,\");return \\$form;}}?>\". PHP_EOL);\n\t\t\t\t fclose($file);\n\t\t\t\t $resultado->free();\n\t\t\t\t $mysqli->close();\n\t\t}", "protected function Campos()\n {\n $select = [\n ['value' => 'id1', 'text' => 'texto1'],\n ['value' => 'id2', 'text' => 'texto2']\n ];\n $this->text('unInput')->Validator(\"required|maxlength:20\");\n $this->text('unSelect')->Validator(\"required\")->type('select')->in_options($select);\n $this->date('unDate')->Validator(\"required\");\n }", "function cmdCustType($name, $caption) {\n $optcust_type = array\n (\n array(\"\", \"\"),\n array(\"End User\", \"1\"),\n array(\"Dealer / Reseller\", \"2\"),\n array(\"Goverment / BUMN\", \"3\"),\n );\n ?>\n <tr>\n <td><?php getCaption($caption); ?> :</td>\n <td>\n <select class=\"easyui-combobox\"\n id=\"<?php echo $name; ?>\"\n name=\"<?php echo $name; ?>\"\n style=\"width:120px;\"\n data-options=\"panelHeight:100,editable:false,width:200\"\n disabled=true\n >\n <?php\n foreach ($optcust_type as $val) {\n echo '<option value=\"' . $val[1] . '\">' . $val[0] . '</option>';\n }\n ?>\n </select>\n </td>\n </tr>\n <?php\n}", "function getListDiagrammer() {\n\n global $idAnalyst;\n $idProject = $_SESSION[\"permisosDeMenu\"];\n global $diagramerASMController;\n\n //obtenemos con el controlador del diagramador los elementos del select\n //id array para los valores de las opciones\n //array los valores a mostrar\n //action funcion que se desea ejercer en dicho elemento select\n $diagramerASMController = new asmsController;\n $ASMs = $diagramerASMController->getASMstexto($idProject);\n $id = array();\n $array = array();\n for ($i = 0; $i < count($ASMs); $i++) {\n $asm = $ASMs[$i];\n $idASM = $asm->getIdASM();\n $name = $asm->getName();\n $id[] = $idASM;\n $array[] = $name;\n }\n $action = \"lookDiagram(value)\";\n $select = select($id, $array, $action, \"...\");\n return $select;\n}", "public function getcboformula($parametros) {\n \n $procedure = \"call usp_at_audi_getcboformula(?)\";\n\t\t$query = $this->db-> query($procedure,$parametros);\n \n if ($query->num_rows() > 0) {\n\n $listas = '<option value=\"\" selected=\"selected\">::Elegir</option>';\n \n foreach ($query->result() as $row)\n {\n $listas .= '<option value=\"'.$row->IDFORMULA.'\">'.$row->DESCFORMULA.'</option>'; \n }\n return $listas;\n }{\n return false;\n }\t\n }", "function buscar_materiales($registrado,$texto_buscar,$licencia,$sql) {\n\t\n\t\tif ($registrado==false) {\n\t\t\t$mostrar_visibles=\"AND material_estado=1\";\n\t\t}\n\t\t\n\t\tif ($texto_buscar !='') {\n\t\t\t\n\t\t\t$sql_texto=\"AND (material_titulo LIKE '%$texto_buscar%' \n\t\t\tOR material_descripcion LIKE '%$texto_buscar%' \n\t\t\tOR material_objetivos LIKE '%$texto_buscar%') \n\t\t\t\";\n\t\t\n\t\t}\n\t\t\n\t\t$query = \"SELECT COUNT(*) FROM materiales\n\t\tWHERE material_licencia = '$licencia'\n\t\t$sql\n\t\t$sql_texto\n\t\t$mostrar_visibles\n\t\tORDER BY fecha_alta desc\";\n\n\t\t$connection = mysql_connect($this->HOST, $this->USERNAME, $this->PASSWORD);\n\n\t\t$SelectedDB = mysql_select_db($this->DBNAME);\n\t\t$result = mysql_query($query); \n\t\t\n\t\t$numrows = mysql_fetch_array($result);\n\t\tmysql_close($connection);\n\t\t// COMPROBAMOS QUE HAYA RESULTADOS\n\t\t// SI EL NUMERO DE RESULTADOS ES 0 SIGNIFICA QUE NO HAY REGISTROS CON ESOS DATOS\n\t\tif ($numrows[0] == 0) {\n\t\t\treturn false;\n\t\t}\n\t\telse {\n\t\t\treturn $numrows[0];\n\t\t}\n\t}", "function cmb2_fields_sobre() {\n // Adiciona um bloco\n $cmb = new_cmb2_box([ /// está dentro de um Array, que é o [];\n 'id' => 'sobre_box', // id deve ser único\n 'title' => 'Sobre',\n 'object_types' => ['page'], // tipo de post\n 'show_on' => [\n 'key' => 'page-template',\n 'value' => 'page-sobre.php',\n ], // modelo de página\n ]);\n\n $cmb->add_field([\n 'name' => 'Descrição da página para SEO',\n 'id' => 'description_seo',\n 'type' => 'text',\n ]);\n\n // Adiciona um campo ao bloco criado\n $cmb->add_field([\n 'name' => 'Foto Rest',\n 'id' => 'foto_rest',\n 'type' => 'file',\n 'options' => [\n 'url' => false,\n ]\n ]);\n\n $cmb->add_field([\n 'name' => 'Primeiro item do sobre',\n 'id' => 'historia',\n 'type' => 'text',\n ]);\n\n $cmb->add_field([\n 'name' => 'Texto do primeiro item do sobre',\n 'id' => 'textoHistoria',\n 'type' => 'textarea',\n ]);\n\n $cmb->add_field([\n 'name' => 'Segundo item do sobre',\n 'id' => 'visao',\n 'type' => 'text',\n ]);\n\n $cmb->add_field([\n 'name' => 'Texto do segundo item do sobre',\n 'id' => 'textoVisao',\n 'type' => 'textarea',\n ]);\n\n $cmb->add_field([\n 'name' => 'Terceiro item do sobre',\n 'id' => 'valores',\n 'type' => 'text',\n ]);\n\n $cmb->add_field([\n 'name' => 'Texto do terceiro item do sobre',\n 'id' => 'textoValores',\n 'type' => 'textarea',\n ]);\n}", "function listadoSelect();", "protected function get_registered_options()\n {\n }", "private function crear_get()\n {\n $item = $this->ObtenNewModel();\n\t\t$lModel = new CicloModel(); \n \n //Pasamos a la vista toda la información que se desea representar\n\t\t$data['TituloPagina'] = \"Añadir un grupo\";\n\t\t$data[\"Model\"] = $item;\n\t\t$data[\"ComboCiclos\"] = $lModel->ObtenerTodos();\n\n //Finalmente presentamos nuestra plantilla\n\t\theader (\"content-type: application/json; charset=utf-8\");\n $this->view->show($this->_Nombre.\"/crear.php\", $data);\n\t}", "function uf_cmb_tiposervicio($as_seleccionado)\r\n\t{\r\n\t\t$lb_valido=true;\r\n\t\t$ls_sql=\"SELECT codtipservicio, dentipservicio \". \r\n\t\t \" FROM sme_tiposervicio WHERE codemp='\".$this->ls_codemp.\"'\".\" ORDER BY codtipservicio\";\r\n\t\t//print $ls_sql;\r\n\t\t$rs_result=$this->io_sql->select($ls_sql);\t\t\r\n\t\tif($rs_result===false)\r\n\t\t {\r\n\t\t\t$this->io_msg->message(\"CLASE->Buscar Tipos de Servicios Médicos MÉTODO->uf_cmb_tiposervicios ERROR->\".$this->io_function->uf_convertirmsg($this->io_sql->message));\r\n\t\t\t$lb_valido=false;\r\n\t\t\t//return false;\t\t\t\r\n\t\t }\r\n\t\t else\r\n\t\t {\r\n\t\t\tprint \"<select name='cmbcodtiptar' id='cmbcodtiptar' onchange='javascript: ue_cargargrid();'>\";\r\n\t\t\tprint \" <option value='00'>-- Seleccione Servicio Médico--</option>\";\r\n\t\t\twhile($row=$this->io_sql->fetch_row($rs_result))\r\n\t\t\t{\r\n\t\t\t\t$ls_seleccionado=\"\";\r\n\t\t\t\t$ls_codtipservicio=$row[\"codtipservicio\"];\r\n\t\t\t\t$ls_dentipservicio=$row[\"dentipservicio\"];\r\n\t\t\t\t$ls_operacion=\"\";\r\n\t\t\t\tif($as_seleccionado==$ls_codtipservicio)\r\n\t\t\t\t{\r\n\t\t\t\t\t$ls_seleccionado=\"selected\";\r\n\t\t\t\t}\r\n\t\t\tprint \"<option value='\".$ls_codtipservicio.\"' \".$ls_seleccionado.\">\".$ls_dentipservicio.\" - \".$ls_operacion.\"</option>\";\r\n\t\t\t}\r\n\t\t\t$this->io_sql->free_result($rs_result);\r\n\t\t\tprint \"</select>\";\r\n\t\t }\r\n\treturn $lb_valido;\r\n\t}", "public function init()\r\n {\r\n \t\r\n \r\n \tif(!isset($this->_PROJETOS)){\r\n \t\t$projeto= new Application_Model_DbTable_Projeto();\r\n \t\t$this->_PROJETOS=$projeto->getProjetoCombo() ;\r\n \t} \t\r\n \t$this->setName('FormularioServico');\r\n $FL_VALIDAR_SERVICO= new Zend_Form_Element_Hidden('FL_VALIDAR_SERVICO');\r\n $FL_VALIDAR_SERVICO->addFilter('Int');\r\n $FL_VALIDAR_SERVICO->removeDecorator('Label');\r\n \r\n $ID_SERVICO = new Zend_Form_Element_Hidden('ID_SERVICO');\r\n $ID_SERVICO->addFilter('Int');\r\n $ID_SERVICO->removeDecorator('Label');\r\n \r\n \r\n $FK_OPERADOR = new Zend_Form_Element_Hidden('FK_OPERADOR');\r\n $FK_OPERADOR->addFilter('Int');\r\n $FK_OPERADOR->removeDecorator('Label');\r\n \r\n $FL_PCP = new Zend_Form_Element_Hidden('FL_PCP');\r\n $FL_PCP->addFilter('Int');\r\n $FL_PCP->removeDecorator('Label');\r\n \r\n /* \r\n \r\n \r\n \r\n \r\n \r\n \r\n */\r\n\r\n $FK_TIPO_SERVICO= new Zend_Form_Element_Select('FK_TIPO_SERVICO');\r\n $tipoServico= new Application_Model_DbTable_TipoServico();\r\n $FK_TIPO_SERVICO->setLabel('TIPO PCP');\r\n $FK_TIPO_SERVICO->setMultiOptions( $tipoServico->getTipoServicoCombo() )\r\n ->setRequired(true)\r\n ->removeDecorator('DtDdWrapper')\r\n ->removeDecorator('HtmlTag')\r\n ->removeDecorator('Label')\r\n ->setAttrib('class', 'form-control select2');\r\n \r\n\t\t\r\n \r\n $FK_PROJETO= new Zend_Form_Element_Hidden('FK_PROJETO');\r\n $FK_PROJETO->addFilter('Int');\r\n $FK_PROJETO->removeDecorator('Label');\r\n \r\n $FK_PROJETO1 = new Zend_Form_Element_Text('FK_PROJETO1');\r\n $FK_PROJETO1->setLabel('PROJETO')\r\n ->setAttrib('class', 'form-control');\r\n\r\n \r\n $DS_SERVICO = new Zend_Form_Element_Textarea('DS_SERVICO');\r\n $DS_SERVICO->setLabel('PCP')\r\n \t\r\n \t ->removeDecorator('DtDdWrapper')\r\n \t ->removeDecorator('HtmlTag')\r\n \t ->removeDecorator('Label')\r\n \t ->setAttrib('class', 'form-control ')\r\n \t ->setAttrib('rows', '20');\r\n \r\n $DT_SERVICO = new Zend_Form_Element_Text('DT_SERVICO');\r\n $DT_SERVICO->setLabel('DATA')\r\n ->setRequired(true)\r\n ->addFilter('StripTags')\r\n ->addFilter('StringTrim')\r\n ->addValidator('NotEmpty')\r\n ->removeDecorator('DtDdWrapper')\r\n ->removeDecorator('HtmlTag')\r\n ->removeDecorator('Label')\r\n ->setAttrib('class', 'form-control')\r\n ->addPrefixPath('Aplicacao_Validate', 'Aplicacao/Validate/', 'validate')\r\n\t\t\t->addValidator(new Aplicacao_Validate_Data())\r\n ->setAttrib('placeholder', 'Enter serviço ');\r\n \r\n $NR_CARGA_HORARIA = new Zend_Form_Element_Text('NR_CARGA_HORARIA');\r\n $NR_CARGA_HORARIA->setLabel('CARGA HORARIA')\r\n ->setRequired(true)\r\n ->addFilter('StripTags')\r\n ->addFilter('StringTrim')\r\n ->addValidator('NotEmpty')\r\n ->removeDecorator('DtDdWrapper')\r\n ->removeDecorator('HtmlTag')\r\n ->removeDecorator('Label')\r\n ->addValidator('float', true, array('locale' => 'en_US'))\r\n ->setAttrib('class', 'form-control')\r\n ->setAttrib('placeholder', 'Enter carga horária ');\r\n \r\n \r\n \r\n $submit = new Zend_Form_Element_Submit('submit');\r\n $submit->setLabel(\"Adiconar\");\r\n $submit->setAttrib('id', 'submitbutton');\r\n $submit->removeDecorator('DtDdWrapper')\r\n ->setAttrib('class', 'btn btn-primary button')\r\n ->removeDecorator('HtmlTag')\r\n ->removeDecorator('Label'); \r\n \r\n $this->addElements(array($FK_PROJETO1,$FL_VALIDAR_SERVICO,$ID_SERVICO,$FK_PROJETO,$DS_SERVICO,$FK_OPERADOR,$FK_TIPO_SERVICO,$DT_SERVICO,$FL_PCP,$NR_CARGA_HORARIA,$submit)); \r\n $this->setDecorators( array( array('ViewScript', array('viewScript' => '/forms/formularioPcpProjeto.phtml')))); \r\n\t\r\n }", "public function mostrarInfoEquipo(){\n\n $infoEquipo = UsersModel::mostrarInfoTablas(\"manager\");\n\n foreach($infoEquipo as $row => $tipo){\n\n if($tipo[\"Id_Manager\"] > 1){\n\n echo '<option value=\"'.$tipo[\"Id_Manager\"].'\">'.$tipo[\"NameM\"].'</option>'; \n\n }\n\n }\n \n }", "public function cargar_retenciones()\r\n {\r\n $cod_org = usuario_actual('cod_organizacion');\r\n $ano=$this->drop_ano->SelectedValue;\r\n $sql2 = \"select * from presupuesto.retencion where cod_organizacion='$cod_org' and ano='$ano' \";\r\n $datos2 = cargar_data($sql2,$this);\r\n // array_unshift($datos2, \"Seleccione\");\r\n $this->drop_retenciones->Datasource = $datos2;\r\n $this->drop_retenciones->dataBind();\r\n }", "function getRegistros() {\n\t\tif (isset($this->extra[\"monitor_id\"]) and isset($this->extra[\"pagina\"])) {\n\t\t\t$this->resultado = $this->getDetalleRegistros($this->extra[\"monitor_id\"], $this->extra[\"pagina\"]);\n\t\t\treturn;\n\t\t}\n\n\t\tglobal $mdb2;\n\t\tglobal $log;\n\t\tglobal $current_usuario_id;\n\n\t\t/* OBTENER LOS DATOS Y PARSEARLO */\n\t\t$sql = \"SELECT unnest(_nodos_id) AS nodo_id FROM _nodos_id(\".\n\t\t\t pg_escape_string($current_usuario_id).\", \".\n\t\t\t pg_escape_string($this->objetivo_id).\", '\".\n\t\t\t pg_escape_string($this->timestamp->getInicioPeriodo()).\"','\".\n\t\t\t pg_escape_string($this->timestamp->getTerminoPeriodo()).\"')\";\n\t\t//print($sql);\n\t\t$res =& $mdb2->query($sql);\n\t\tif (MDB2::isError($res)) {\n\t\t\t$log->setError($sql, $res->userinfo);\n\t\t\texit();\n\t\t}\n\t\t$monitor_ids = array();\n\t\twhile($row = $res->fetchRow()) {\n\t\t\t$monitor_ids[] = $row[\"nodo_id\"];\n\t\t}\n\n\t\t/* SI NO HAY DATOS MOSTRAR MENSAJE */\n\t\tif (count($monitor_ids) == 0) {\n\t\t\t$this->resultado = $this->__generarContenedorSinDatos();\n\t\t\treturn;\n\t\t}\n\n\t\t/* TEMPLATE DEL GRAFICO */\n\t\t$T =& new Template_PHPLIB(REP_PATH_TABLETEMPLATES);\n\t\t$T->setFile('tpl_tabla', 'contenedor_tabla.tpl');\n\t\t$T->setBlock('tpl_tabla', 'LISTA_CONTENEDORES', 'lista_contenedores');\n\n\t\t/* LISTA DE MONITORES */\n\t\t$orden = 1;\n\t\tforeach ($monitor_ids as $monitor_id) {\n\t\t\t$T->setVar('__contenido_id', 'reg_'.$monitor_id);\n\t\t\t$T->setVar('__contenido_tabla', $this->getDetalleRegistros($monitor_id, 1, $orden));\n\t\t\t$T->parse('lista_contenedores', 'LISTA_CONTENEDORES', true);\n\t\t\t$orden++;\n\t\t}\n\n\t\t$this->resultado = $T->parse('out', 'tpl_tabla');\n\t}", "function combo_load()\n\t{\n\t\t$this->javascript_loader->combo_load();\n\t}", "public function filtroComboTipoContrato($idContratoGlobal=NULL, $opcSelected){\r\n\t\t$mostrarOpcion = true;\r\n\t\t$arrayOpciones = array();\r\n\t\t$query = new Query ();\r\n\t\t$sqlBC = \"SELECT usuario_id, `refempresaafiliada` FROM dbcontratosglobales WHERE reftipocontratoglobal IN (1,2) AND \tusuario_id = \".$this->getUsuarioId().\" \";\r\n\t\t$query->setQuery($sqlBC);\r\n\t\t$res1 = $query->eject();\r\n\t\t$numero = $query->numRows($res1);\r\n\t\t\r\n\t\tif($numero>=1){\r\n\t\t\t\r\n\t\t\t$selectOPC = \"SELECT dbcea.reftipocontratoglobal as tipoCredito FROM `dbcontratoempresaafiliada` dbcea JOIN dbcontratosglobales dbcg ON dbcg.refempresaafiliada = dbcea.`refempresaafiliada` WHERE dbcg.usuario_id = \".$this->getUsuarioId().\" AND dbcea.reftipocontratoglobal NOT IN (1,2) \";\r\n\r\n\t\t\t\r\n\t\t\t$query->setQuery($selectOPC);\r\n\t\t\t$resQ = $query->eject();\r\n\t\t\twhile($objOPC = $query->fetchObject($resQ) ){\r\n\t\t\t\t\r\n\t\t\t\t$arrayOpciones[] = $objOPC->tipoCredito;\r\n\t\t\t}\r\n\t\t\tif($opcSelected != ''){\r\n\t\t\t\t$arrayOpciones[] = $opcSelected;\r\n\t\t\t}\r\n\r\n\t\t\t\r\n\r\n\t\t}else{\r\n\t\t\t$selectOPC = \"SELECT dbcea.reftipocontratoglobal as tipoCredito FROM `dbcontratoempresaafiliada` dbcea JOIN dbcontratosglobales dbcg ON dbcg.refempresaafiliada = dbcea.`refempresaafiliada` WHERE dbcg.usuario_id = \".$this->getUsuarioId().\" \";\r\n\t\t\t$query->setQuery($selectOPC);\r\n\t\t\t$resQ = $query->eject();\r\n\t\t\twhile($objOPC = $query->fetchObject($resQ) ){\r\n\t\t\t\t$arrayOpciones[] = $objOPC->tipoCredito;\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\t$arrayOpciones = array_unique($arrayOpciones);\r\n\t\treturn $arrayOpciones;\t\r\n\r\n\t}", "public function get_all_registered()\n {\n }", "public function get_all_registered()\n {\n }", "public function run()\n {\n $register = [\n ['nome'=>'Barcelos','uf'=>'AM'],\n ['nome'=>'São Gabriel da Cachoeira','uf'=>'AM'],\n ['nome'=>'Tapauá','uf'=>'AM'],\n ['nome'=>'Atalaia do Norte','uf'=>'AM'],\n ['nome'=>'Jutaí','uf'=>'AM'],\n ['nome'=>'Lábrea','uf'=>'AM'],\n ['nome'=>'Santa Isabel do Rio Negro','uf'=>'AM'],\n ['nome'=>'Coari','uf'=>'AM'],\n ['nome'=>'Japurá','uf'=>'AM'],\n ['nome'=>'Apuí','uf'=>'AM'],\n ['nome'=>'Manicoré','uf'=>'AM'],\n ['nome'=>'Borba','uf'=>'AM'],\n ['nome'=>'Pauini','uf'=>'AM'],\n ['nome'=>'Novo Aripuanã','uf'=>'AM'],\n ['nome'=>'Maués','uf'=>'AM'],\n ['nome'=>'Novo Airão','uf'=>'AM'],\n ['nome'=>'Humaitá','uf'=>'AM'],\n ['nome'=>'Canutama','uf'=>'AM'],\n ['nome'=>'Urucará','uf'=>'AM'],\n ['nome'=>'Carauari','uf'=>'AM'],\n ['nome'=>'Presidente Figueiredo','uf'=>'AM'],\n ['nome'=>'Itamarati','uf'=>'AM'],\n ['nome'=>'Tefé','uf'=>'AM'],\n ['nome'=>'BocadoAcre','uf'=>'AM'],\n ['nome'=>'São Paulo de Olivença','uf'=>'AM'],\n ['nome'=>'Juruá','uf'=>'AM'],\n ['nome'=>'Codajás','uf'=>'AM'],\n ['nome'=>'Beruri','uf'=>'AM'],\n ['nome'=>'Maraã','uf'=>'AM'],\n ['nome'=>'Eirunepé','uf'=>'AM'],\n ['nome'=>'Nhamundá','uf'=>'AM'],\n ['nome'=>'Ipixuna','uf'=>'AM'],\n ['nome'=>'Envira','uf'=>'AM'],\n ['nome'=>'Santo Antônio do Içá','uf'=>'AM'],\n ['nome'=>'FonteBoa','uf'=>'AM'],\n ['nome'=>'Manaus','uf'=>'AM'],\n ['nome'=>'São Sebastião do Uatumã','uf'=>'AM'],\n ['nome'=>'Uarini','uf'=>'AM'],\n ['nome'=>'Caapiranga','uf'=>'AM'],\n ['nome'=>'Guajará','uf'=>'AM'],\n ['nome'=>'Itacoatiara','uf'=>'AM'],\n ['nome'=>'Benjamin Constant','uf'=>'AM'],\n ['nome'=>'Autazes','uf'=>'AM'],\n ['nome'=>'Manacapuru','uf'=>'AM'],\n ['nome'=>'Tonantins','uf'=>'AM'],\n ['nome'=>'Careiro','uf'=>'AM'],\n ['nome'=>'Parintins','uf'=>'AM'],\n ['nome'=>'Alvarães','uf'=>'AM'],\n ['nome'=>'Rio Preto da Eva','uf'=>'AM'],\n ['nome'=>'Anori','uf'=>'AM'],\n ['nome'=>'Barreirinha','uf'=>'AM'],\n ['nome'=>'Nova Olinda do Norte','uf'=>'AM'],\n ['nome'=>'Amaturá','uf'=>'AM'],\n ['nome'=>'Itapiranga','uf'=>'AM'],\n ['nome'=>'Manaquiri','uf'=>'AM'],\n ['nome'=>'Silves','uf'=>'AM'],\n ['nome'=>'Tabatinga','uf'=>'AM'],\n ['nome'=>'Urucurituba','uf'=>'AM'],\n ['nome'=>'Careiro da Várzea','uf'=>'AM'],\n ['nome'=>'Boa Vista do Ramos','uf'=>'AM'],\n ['nome'=>'Anamã','uf'=>'AM'],\n ['nome'=>'Iranduba','uf'=>'AM'],\n ];\n \n DB::table('ufs')->insert($register);\n }", "function PintaMunicipio($cod){\n\t$obj_mum = new ClsMunicipio();\n\t$rs = $obj_mum->consultarMunicipioEstado();\n\t$selec = \"\";\n\t$c = 0;\n\n\t$combMunicipio[$c++] = \"<select class='CampoMov' name='cod_mun' disabled >\";\n\t$combMunicipio[$c++] = \"<option selected='selected'>SELECCIONE UN MUNICIPIO</option>\"; \n\n\twhile($tupla = $obj_mum->converArray($rs)){\n\t\t$estado = $tupla['nom_est'];\n\t\t$id_mun = $tupla['id_mun'];\n\t\t$nom_mun_p = $tupla['nom_mun'].' - ';\n\n\t\tif($cod == $id_mun){\n\t\t\t$selec = \"selected='selected'\";\n\t\t}else{\n\t\t\t$selec = \"\";\n\t\t}\n\t\t$combMunicipio[$c++] = \"<option value='\".$id_mun.\"' \".$selec.\"> \".$nom_mun_p.\" EDO - \".$estado.\"</option>\";\n\t}\n\t$combMunicipio[$c++] = \"</select>\";\n\treturn $combMunicipio;\n}", "public function init()\n {\n $this->setMethod('post');\n \n $auth = Zend_Auth::getInstance()->setStorage(new Zend_Auth_Storage_Session('admin'));\n $user = $auth->getIdentity();\n $num_membre = $user->num_membre;\n \n \n $o_map = new Application_Model_EuObjetMapper();\n $rows = $o_map->fetchAll();\n $objets = array();\n foreach ($rows as $o) {\n $objets[] = $o->design_objet;\n }\n $elem_o = new ZendX_JQuery_Form_Element_AutoComplete(\n \"design_objet\", array('label' => 'Désignation *','required' => true,)\n );\n $elem_o->setJQueryParams(array('source' => $objets));\n $this->addElement($elem_o);\n \n $gamme_select = new Zend_Form_Element_Select('num_gamme');\n $gamme_select->setLabel('Gamme de produit *')\n ->setRequired(true);\n $g = new Application_Model_DbTable_EuGammeProduit();\n $rows = $g->fetchAll();\n foreach ($rows as $c) {\n $gamme_select->addMultiOption($c->code_gamme, $c->design_gamme);\n }\n $this->addElement($gamme_select);\n \n $type_unite = array('' => '', 'jour' => 'Jour', 'mois' => 'Mois', 'annee' => 'Année');\n $unit_select = new Zend_Form_Element_Select('unite_mdv');\n $unit_select->setLabel('Unité de durée *')\n ->setRequired(true)\n ->addMultiOptions($type_unite);\n $this->addElement($unit_select);\n \n \n $this->addElement('text', 'duree_vie', array(\n 'label' => 'Durée de vie *',\n 'required' => true,\n 'validators'=>array('validator' => 'digits'),\n ));\n \n $this->addElement('text', 'prix_unitaire', array(\n 'label' => 'Prix unitaire *',\n 'required' => true,\n 'validators'=>array('validator' => 'digits'),\n ));\n \n $boutique_select = new Zend_Form_Element_Select('code_bout');\n $boutique_select->setLabel('Boutique *')\n ->setRequired(true);\n $b = new Application_Model_DbTable_EuBoutique();\n $select=$b->select();\n $select->from($b)\n ->where('proprietaire = ?', $num_membre);\n $rows = $b->fetchAll($select);\n foreach ($rows as $c) {\n $boutique_select->addMultiOption($c->code_bout, $c->design_bout);\n }\n $this->addElement($boutique_select);\n \n $smcipn_select = new Zend_Form_Element_Select('code_demand');\n $smcipn_select->setLabel('Code subvention ')\n ->setRequired(false);\n $s = new Application_Model_DbTable_EuSmcipn();\n $rows = $s->fetchAll();\n $smcipn_select->addMultiOption('', '');\n foreach ($rows as $c) {\n $smcipn_select->addMultiOption($c->code_demand, $c->code_demand);\n }\n $this->addElement($smcipn_select);\n \n $this->addElement('textarea', 'caract_objet', array(\n 'label' => 'Caractéristique ',\n 'required' => false,\n ));\n \n $this->addElement('submit', 'submit', array(\n 'ignore' => true,\n 'label' => 'Valider',\n ));\n \n // Add the cancel button\n $this->addElement('button', 'cancel', array(\n 'ignore' => true,\n 'label' => 'Annuler',\n )); \n }", "function listadoregiones() {\n $query8 = \"SELECT * FROM intranet_roadmap_regiones\";\n $result8 = (array) json_decode(miBusquedaSQL($query8), true) ;\n foreach ($result8 as $pr8) {\n $proyectos .= '<option value=\"'.$pr8['id_region'].'\">'.$pr8['nombre_region'].'</option> \n';\n }\n return $proyectos;\n\n}", "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 }", "public function comboContrato($idCliente, $tipo, $isContagemAuditoria = NULL) {\n $arrRetorno = array();\n //pega o id empresa caso seja uma contagem de auditoria\n $idEmpresa = getIdEmpresa();\n //verifica antes se eh uma contagem de auditoria\n if ($isContagemAuditoria) {\n $sql = \"SELECT con.id, con.id_cliente, con.numero, con.ano, con.uf, con.tipo, emp.sigla, cli.id_fornecedor FROM $this->table con, cliente cli, empresa emp \"\n . \"WHERE con.is_ativo IN (0, 1) AND \"\n . \"con.id_cliente = cli.id AND \"\n . \"cli.id_empresa = emp.id AND \"\n . \"emp.id = $idEmpresa \"\n . \" ORDER BY sigla ASC, id_fornecedor DESC\";\n } else {\n if ($tipo == '01') {\n $sql = \"SELECT id, id_cliente, numero, uf, ano, tipo, '-' AS sigla FROM $this->table WHERE is_ativo IN (0, 1) AND id_cliente = $idCliente ORDER BY id ASC\";\n } else {\n $sql = \"SELECT id, id_cliente, numero, uf, ano, tipo, '-' AS sigla FROM $this->table WHERE is_ativo = 1 AND id_cliente = $idCliente ORDER BY id ASC\";\n }\n }\n $stm = DB::prepare($sql);\n $stm->execute();\n //loop dos contratos\n $ret = $stm->fetchAll(PDO::FETCH_ASSOC);\n //sempre com um item vazio para nao dar erro no script\n $arrRetorno[] = array(\n 'id' => 0,\n 'numeroAno' => 'Selecione um contrato',\n 'tipo' => '',\n 'sigla' => '');\n if ($isContagemAuditoria) {\n foreach ($ret as $linha) {\n if ($linha['id_fornecedor'] > 0) {\n $sql = \"SELECT id, sigla, tipo FROM fornecedor WHERE id = :idFornecedor\";\n $stmSigla = DB::prepare($sql);\n $stmSigla->bindParam(':idFornecedor', $linha['id_fornecedor']);\n $stmSigla->execute();\n $siglaFornecedor = $stmSigla->fetch(PDO::FETCH_ASSOC);\n //apenas fornecedores, retirar turmas daqui\n if (!$siglaFornecedor['tipo']) {\n $arrRetorno[] = array('id' => $linha['id'],\n 'numeroAno' => ' [ ' . strtoupper($linha['uf']) . ' ] ' . $linha['numero'] . '/' . $linha['ano'],\n 'tipo' => '[ ' . $linha['tipo'] . ' ]',\n 'sigla' => '[ ' . $linha['tipo'] . ' ] ' . $linha['sigla'] . ' &laquo; ' . $siglaFornecedor['sigla'] . ' &raquo; ');\n }\n } else {\n $arrRetorno[] = array('id' => $linha['id'],\n 'numeroAno' => ' [ ' . strtoupper($linha['uf']) . ' ] ' . $linha['numero'] . '/' . $linha['ano'],\n 'tipo' => '[ ' . $linha['tipo'] . ' ]',\n 'sigla' => '[ ' . $linha['tipo'] . ' ] ' . $linha['sigla'] . ' . ');\n }\n }\n return $arrRetorno;\n } else {\n foreach ($ret as $linha) {\n $arrRetorno[] = array('id' => $linha['id'],\n 'numeroAno' => ' [ ' . strtoupper($linha['uf']) . ' ] ' . $linha['numero'] . '/' . $linha['ano'],\n 'tipo' => '[ ' . $linha['tipo'] . ' ]',\n 'sigla' => '[ ' . $linha['tipo'] . ' ] ' . $linha['sigla']);\n }\n return $arrRetorno;\n }\n }", "public function obtener()\r\n {\r\n\r\n $estado=$_POST[\"miestado\"];\r\n\r\n $data=$this->usuarios_Model->obtenerCapitales($estado);\r\n\r\n // print_r(json_encode($data)); \r\n\r\n echo '<option>'.$data->capital.'</option>';\r\n\r\n\r\n\r\n \r\n\r\n // combo dependiente a lo picapiedra\r\n\r\n // $options=\"\";\r\n // if ($_POST[\"miestado\"]== 'Amazonas') \r\n // {\r\n // $options= '\r\n // <option value=\"Puerto Ayacucho\">Puerto Ayacucho</option> \r\n // '; \r\n \r\n // }\r\n\r\n // if ($_POST[\"miestado\"]== 'Anzoátegui') \r\n // {\r\n // $options= '\r\n // <option value=\"Aragua\">Aragua</option> \r\n // '; \r\n \r\n // }\r\n\r\n // if ($_POST[\"miestado\"]== 'Apure') \r\n // {\r\n // $options= '\r\n // <option value=\"San Fernando de Apure\">San Fernando de Apure</option> \r\n // '; \r\n \r\n // }\r\n\r\n // if ($_POST[\"miestado\"]== 'Aragua') \r\n // {\r\n // $options= '\r\n // <option value=\"Maracay\">Maracay</option> \r\n // '; \r\n \r\n // }\r\n\r\n // if ($_POST[\"miestado\"]== 'Barinas') \r\n // {\r\n // $options= '\r\n // <option value=\"Barinas\">Barinas</option> \r\n // '; \r\n \r\n // }\r\n\r\n // echo $options;\r\n\r\n }", "function allTerritoryTypestoCombo() {\n $this->load->model('territory/territory_model');\n $fetchAllTerritoryType = $this->territory_model->fetchFromAnyTable(\"tbl_territory_type\", null, null, null, 10000, 0, \"RESULTSET\", array('territory_type_status' => 1), null);\n $pushdata = array('territory' => $fetchAllTerritoryType);\n $this->template->draw('territory/allTerritoryTypeCombo', false, $pushdata);\n }", "function chargeForm($form,$label,$titre){\n\n \t\t$liste = $this->getAll();\n \t\t$array[0] = \"\";\n \t\tfor ($i = 0; $i < count($liste); $i++)\n \t{\n \t\t$j = $liste[$i]->role_id;\n \t\t$array[$j] = $liste[$i]->role_name;\n \t\t//echo 'array['.$j.'] = '.$array[$j].'<br>';\n \t}\n \t\t$s = & $form->createElement('select',$label,$titre);\n \t\t$s->loadArray($array);\n \t\treturn $s;\n \t}", "public function optionList(){\n $this->layout = null;\n\n\t $this->set('chamados',\n $this->Chamado->find('list', array(\n 'fields' => array('Chamado.id', 'Chamado.numero'),\n 'conditions' => array('Chamado.servico_id' => $this->params['url']['servico']))));\n }", "public function getCpnyToCombobox() {\n return $this->db->selectObjList('SELECT company_id, shortname, longname FROM company ORDER BY shortname;', $array = array(), \"Company\");\n }", "function getFenzuCombo($viewid='',$is_relate=false)\n\t{\n\t\tglobal $log;\n\t\tglobal $current_user;\n\t\t$log->debug(\"Entering getFenzuCombo(\".$viewid.\") method ...\");\n\t\t$key = \"FenzuCombo_\".$this->Fenzumodule.\"_\".$current_user->id;\n\t\t//$FenzuCombo = getSqlCacheData($key);\n\t\tif(!$FenzuCombo) {\n\t\t\tglobal $adb;\n\t\t\tglobal $app_strings;\n\n\t\t\t$tabid = getTabid($this->Fenzumodule);\n\t\t\t$ssql = \"select ec_fenzu.cvid,ec_fenzu.viewname from ec_fenzu\";\n\t\t\t$ssql .= \" where ec_fenzu.entitytype='\".$this->Fenzumodule.\"' and (ec_fenzu.smownerid=\".$current_user->id.\" or ec_fenzu.smownerid=0) \";\n\t\t\t$ssql .= \" order by ec_fenzu.cvid \";\n\n\t\t\t$result = $adb->getList($ssql);\n\t\t\t$FenzuCombo = array();\n\t\t\tforeach($result as $cvrow)\n\t\t\t{\n\t\t\t\t$FenzuCombo[$cvrow['cvid']] = $cvrow['viewname'];\n\t\t\t}\n\t\t\t//setSqlCacheData($key,$FenzuCombo);\n\t\t}\n\t\t$log->debug(\"Exiting getFenzuCombo(\".$viewid.\") method ...\");\n\t\treturn $FenzuCombo;\n\t}", "public function listaAction() \n { \n $form = new Formulario(\"form\");\n // valores iniciales formulario (C)\n $id = (int) $this->params()->fromRoute('id', 0);\n $form->get(\"id\")->setAttribute(\"value\",$id); \n // Lista de cargos\n $this->dbAdapter=$this->getServiceLocator()->get('Zend\\Db\\Adapter');\n $d = New AlbumTable($this->dbAdapter); \n $arreglo[0]='( NO TIENE )';\n $datos = $d->getCargos();// Listado de cargos\n foreach ($datos as $dat){\n $idc=$dat['id'];$nom=$dat['nombre'];\n $arreglo[$idc]= $nom;\n } \n $form->get(\"idCar\")->setValueOptions($arreglo); \n $arreglo = '';\n $datos = $d->getNcargos();\n foreach ($datos as $dat){\n $idc=$dat['id'];$nom=$dat['nombre'];\n $arreglo[$idc]= $nom;\n } \n $form->get(\"idNcar\")->setValueOptions($arreglo); \n $arreglo = '';\n $datos = $d->getCencos();// Listado de centros de costos\n foreach ($datos as $dat){\n $idc=$dat['id'];$nom=$dat['nombre'];\n $arreglo[$idc]= $nom;\n } \n $form->get(\"idDep\")->setValueOptions($arreglo); \n $arreglo = '';\n $datos = $d->getSedes();// Listado de sedes\n foreach ($datos as $dat){\n $idc=$dat['id'];$nom=$dat['nombre'];\n $arreglo[$idc]= $nom;\n } \n $form->get(\"idSed\")->setValueOptions($arreglo); \n $arreglo = '';\n $datos = $d->getDepar();\n foreach ($datos as $dat){\n $idc=$dat['id'];$nom=$dat['nombre'];\n $arreglo[$idc]= $nom;\n } \n $form->get(\"idGdot\")->setValueOptions($arreglo); \n $arreglo = '';\n $datos = $d->getGdot();// Grupo de dotaciones\n foreach ($datos as $dat){\n $idc=$dat['id'];$nom=$dat['nombre'];\n $arreglo[$idc]= $nom;\n } \n $form->get(\"idGdot\")->setValueOptions($arreglo); \n $arreglo = '';\n $datos = $d->getNasp();// Nivel de aspecto del cargo\n foreach ($datos as $dat){\n $idc=$dat['id'];$nom=$dat['nombre'];\n $arreglo[$idc]= $nom;\n } \n $form->get(\"idNasp\")->setValueOptions($arreglo); \n // Tipos de salarios\n $arreglo = '';\n $datos = $d->getSalarios(''); \n $arreglo='';\n foreach ($datos as $dat){\n $idc=$dat['id'];$nom=number_format($dat['salario']).' (COD: '.$dat['codigo'].')';\n $arreglo[$idc]= $nom;\n } \n $form->get(\"idTnomm\")->setValueOptions($arreglo); \n // Fin valor de formularios\n $valores=array\n (\n \"titulo\" => $this->tfor,\n \"form\" => $form, \n 'url' => $this->getRequest()->getBaseUrl(),\n 'id' => $id,\n \"lin\" => $this->lin\n ); \n // ------------------------ Fin valores del formulario \n \n if($this->getRequest()->isPost()) // Actulizar datos\n {\n $request = $this->getRequest();\n if ($request->isPost()) {\n // Zona de validacion del fomrulario --------------------\n $album = new ValFormulario();\n $form->setInputFilter($album->getInputFilter()); \n $form->setData($request->getPost()); \n $form->setValidationGroup('nombre','numero'); // ------------------------------------- 2 CAMPOS A VALDIAR DEL FORMULARIO (C) \n // Fin validacion de formulario ---------------------------\n if ($form->isValid()) {\n $this->dbAdapter=$this->getServiceLocator()->get('Zend\\Db\\Adapter');\n $u = new Cargos($this->dbAdapter);// ------------------------------------------------- 3 FUNCION DENTRO DEL MODELO (C) \n $data = $this->request->getPost();\n if ($data->id==0)\n $id = $u->actRegistro($data); // Trae el ultimo id de insercion en nuevo registro \n else \n {\n $u->actRegistro($data); \n $id = $data->id;\n }\n // Guardar tipos de nominas afectado por automaticos\n $f = new CargosS($this->dbAdapter);\n // Eliminar registros de tipos de nomina afectados por automaticos \n $d->modGeneral(\"Delete from t_cargos_sa where idCar=\".$id); \n $i=0;\n foreach ($data->idTnomm as $dato){\n $idSal = $data->idTnomm[$i];$i++; \n $f->actRegistro($idSal,$id); \n } \n $this->flashMessenger()->addMessage(''); \n return $this->redirect()->toUrl($this->getRequest()->getBaseUrl().$this->lin.'a/'.$data->id);\n }\n }\n return new ViewModel($valores);\n \n }else{ \n if ($id > 0) // Cuando ya hay un registro asociado\n {\n $this->dbAdapter=$this->getServiceLocator()->get('Zend\\Db\\Adapter');\n $u=new Cargos($this->dbAdapter); // ---------------------------------------------------------- 4 FUNCION DENTRO DEL MODELO (C) \n $datos = $u->getRegistroId($id);\n $a = $datos['nombre'];\n $b = $datos['deno'];\n $c = $datos['idCar_a'];\n $d = $datos['plazas'];\n $e = $datos['respo'];\n $f = $datos['mision'];\n $g = $datos['idNcar'];\n\n $i = $datos['idGdot'];\n $j = $datos['idNasp'];\n // Valores guardados\n $form->get(\"nombre\")->setAttribute(\"value\",\"$a\"); \n $form->get(\"deno\")->setAttribute(\"value\",\"$b\"); \n $form->get(\"numero\")->setAttribute(\"value\",$d); // Plazas\n $form->get(\"respo\")->setAttribute(\"value\",\"$e\"); \n $form->get(\"mision\")->setAttribute(\"value\",\"$f\"); \n $form->get(\"idSed\")->setAttribute(\"value\",$datos['idSed']); \n $form->get(\"idDep\")->setAttribute(\"value\",$datos['idCcos']); \n // Jefe directo\n $d = New AlbumTable($this->dbAdapter); \n $datos = $d->getCargos();\n $form->get(\"idCar\")->setAttribute(\"value\",\"$c\"); \n $form->get(\"idNcar\")->setAttribute(\"value\",\"$g\"); \n\n $form->get(\"idGdot\")->setAttribute(\"value\",\"$i\"); \n $form->get(\"idNasp\")->setAttribute(\"value\",\"$j\"); \n // Escalas salariales\n $datos = $d->getSalCargos(' and idCar='.$id);\n $arreglo=''; \n foreach ($datos as $dat){\n $arreglo[]=$dat['idSal'];\n } \n $form->get(\"idTnomm\")->setValue($arreglo); \n return new ViewModel($valores);\n } \n \n }\n }", "public function listattr_form_generales()\n {\n $this->db->where('tipo_atributob', 'Generales');\n $resultados = $this->db->get('atributos_b');\n\n return $resultados->result();\n }", "public function lista() {\n $sql = \"SELECT * FROM cliente\";\n $qry = $this->db->query($sql); // query do pdo com acesso ao bd\n\n //return $qry->fetchAll(); // retorna todos os registros\n return $qry->fetchAll(\\PDO::FETCH_OBJ); // retorna todos os registros a nível de objeto\n }", "public function getcomboUsuario() {\n $models = User::find()->asArray()->all();\n return ArrayHelper::map($models, 'id', 'name');\n }", "public function getcboinspector() {\n \n\t\t$resultado = $this->mregctrolprov->getcboinspector();\n\t\techo json_encode($resultado);\n\t}", "function cargarTablaCombo($idCombo){\n #$namePro =$this->_admin->listar($query); //echo $namePro[0][0].\"<br>\";\n $query = \"SELECT * FROM `combo` WHERE codigo_padre = '\".$idCombo.\"'\";\n $data =$this->_admin->listar($query);\n //$data[0][0] = $namePro[0][0];\n echo json_encode($data);\n }", "function LUPE_criar_combo_rs($rs, $NomeCombo, $PreSelect, $LinhaFixa, $JS, $Style = '')\r\n{\r\n\r\n echo \"<select id='$NomeCombo' name='$NomeCombo' $JS style='$Style'>\\n\";\r\n\r\n if ($LinhaFixa != '')\r\n echo \"<option value=''>$LinhaFixa</option>\\n\";\r\n\r\n if (mssql_num_rows($rs) == 0) {\r\n echo \"<option value=''>Não há informação no sistema</option>\\n\";\r\n } else {\r\n mssql_data_seek($rs, 0);\r\n\r\n While ($row = mssql_fetch_array($rs)) {\r\n echo \"<option value='\".$row[0].\"'\";\r\n\r\n if ($PreSelect == $row[0])\r\n echo 'selected >';\r\n else\r\n echo '>';\r\n\r\n for ($x = 1; $x < mssql_num_fields($rs); $x++) {\r\n echo $row[$x];\r\n if ($x < mssql_num_fields($rs) - 1)\r\n echo ' - ';\r\n }\r\n echo\"</option>\\n\";\r\n }\r\n }\r\n\r\n echo '</select>';\r\n\r\n return 0;\r\n}", "private function getOptionItems()\n {\n $contract = new ContractRepository();\n $employee = new EmployeeRepository();\n $salaryComponent = new SalaryComponentRepository();\n return [\n 'contractItems' => ['' => __('crud.option.contract_placeholder')] + $contract->pluck(),\n 'employeeItems' => ['' => __('crud.option.employee_placeholder')] + $employee->pluck(),\n 'salaryComponentItems' => ['' => __('crud.option.salaryComponent_placeholder')] + $salaryComponent->pluck()\n ];\n }", "function ctrlChoix($ar){\n $p = new XParam($ar, array());\n $ajax = $p->get('_ajax');\n $offre = $p->get('offre');\n $wtspool = $p->get('wtspool');\n $wtsvalidfrom = $p->get('wtsvalidfrom');\n $wtsperson = $p->get('wtspersonnumber');\n $wtsticket = $p->get('wtsticket');\n $context = array('wtspersonnumber'=>$wtsperson);\n $r = (object)array('ok'=>1, 'message'=>'', 'iswarn'=>0);\n // on recherche toutes les offres proposant un meilleur prix\n $bestoffers = array();\n $bettertickets = array();\n $betterproducts = array();\n // si nb = zero : ne pas prendre en compte\n foreach($wtsperson as $personoid=>$personnb){\n if (empty($personnb) || $personnb<1){\n\tunset($context['wtspersonnumber'][$personoid]);\n }\n }\n foreach($wtsperson as $personoid=>$personnb){\n if (empty($personnb) || $personnb<1){\n continue;\n }\n $dp = $this->modcatalog->displayProduct($offre, $wtspool, $wtsticket, $personoid);\n if ($dp == NULL)\n continue;\n $bp = $this->modcatalog->betterProductPrice($wtsvalidfrom, NULL, $context, $dp);\n // les différentes offres trouvées\n if ($bp['ok'] && !isset($bestoffers[$bp['product']['offer']['offrename']])){\n $bestoffers[$bp['product']['offer']['offrename']] = $bp['product']['offer']['offeroid'];\n }\n // meilleur produit par type de personne ...\n if ($bp['ok']){\n\t$bpd = $this->modcatalog->displayProductQ($bp['product']['oid']);\n\t$betterproducts[] = array('nb'=>$personnb, 'oid'=>$bp['product']['oid'], '');\n\t$bettertickets[$bp['product']['oid']] = array('currentprice'=>$bp['product']['currentprice'], \n\t\t\t\t\t\t 'betterprice'=>$bp['product']['price']['tariff'],\n\t\t\t\t\t\t 'label'=>$bpd['label'], \n\t\t\t\t\t\t 'offer'=>$bp['product']['offer']['offrename'],\n\t\t\t\t\t\t 'offeroid'=>$bp['product']['offer']['offeroid']);\n }\n }\n if (count($bestoffers)>0){\n $r->offers = array_keys($bestoffers);\n $r->message = implode(',', $r->offers);\n $r->nboffers = count($r->offers);\n $r->offeroids = array_values($bestoffers);\n $r->bettertickets = $bettertickets;\n $r->iswarn = 1;\n $r->ok = 0;\n $r->redirauto = false;\n // on peut enchainer vers une meilleure offre ?\n if ($r->nboffers == 1 && (count($betterproducts) == count($context['wtspersonnumber']))){\n\t$r->redirauto = true;\n\t$r->redirparms = '&offre='.$r->offeroids[0].'&validfrom='.$wtsvalidfrom;\n\tforeach($betterproducts as $bestproduct){\n\t $r->redirparms .= '&products['.$bestproduct['oid'].']='.$bestproduct['nb'];\n\t}\n }\n }\n if ($ajax)\n die(json_encode($r));\n return $r;\n }", "public function mostrar_todos_proyectos(){\n //inicio empieza en 0 si la pagina es igual a 1, si es mayor se multiplica por 10 o la cantidad de datos que vaya a mostrar. se resta si es lo contrario.\n \n $form_arr = array();//devuelve un arreglo de proyectoss\n $form = \"\";\n $con = new Conexion();\n $con2 = $con->conectar();\n try{\n // se establece el modo de error PDO a Exception\n $con2->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n\n // Se prepara el satetement y se cargan los parametros\n $stmt = $con2->prepare(\"select id_proyecto,nombre_p from proyectos \");\n\n if($stmt->execute()){\n while ($row = $stmt->fetchObject()) {\n $form = \"<option value=\\\"{$row->id_proyecto}\\\">{$row->nombre_p}</option>\";\n \t\t\t array_push($form_arr,$form);\n }\n\n }\n }\n catch(PDOException $e)\n {\n echo \"Error: \" . $e->getMessage();\n }\n $con2 = null;\n return $form_arr;\n }", "function LUPE_criar_combo_vet($Vet, $NomeCombo, $PreSelect, $LinhaFixa = ' ', $JS = '', $Style = '')\r\n{\r\n\r\n $numrows = count($Vet);\r\n\r\n echo \"<select id='$NomeCombo' name='$NomeCombo' $JS style='$Style'>\\n\";\r\n\r\n\tif ($LinhaFixa != '')\r\n\t\techo \"<option value=''>$LinhaFixa</option>\\n\";\r\n\r\n if ($numrows == 0) {\r\n\t\techo \"<option value=''>Não há informação no sistema</option>\\n\";\r\n } else {\r\n\t ForEach($Vet as $Chave => $Valor ){\r\n \t\t echo \"<option value='$Chave'\";\r\n\r\n\t\t if ($PreSelect == $Chave)\r\n\t\t\techo 'selected >';\r\n \t\t else\r\n\t\t\techo '>';\r\n\r\n\t \t echo \"$Valor</option>\\n\";\r\n }\r\n }\r\n\r\n echo '</select>';\r\n\r\n return 0;\r\n}", "function cmdMarital($name, $caption) {\n $optmarital = array\n (\n array(\"\", \"\"),\n array(\"Single\", \"1\"),\n array(\"Married\", \"2\"),\n );\n ?>\n <tr>\n <td><?php getCaption($caption); ?> :</td>\n <td>\n <select class=\"easyui-combobox\"\n id=\"<?php echo $name; ?>\"\n name=\"<?php echo $name; ?>\"\n style=\"width:120px;\"\n data-options=\"panelHeight:100,editable:false,width:200\"\n disabled=true\n >\n <?php\n foreach ($optmarital as $val) {\n echo '<option value=\"' . $val[1] . '\">' . $val[0] . '</option>';\n }\n ?>\n </select>\n </td>\n </tr>\n <?php\n}", "function lapizzeria_registrar_opciones(){\n register_setting( 'lapizzeria_opciones_grupo', 'lapizzeria_direccion' );\n register_setting( 'lapizzeria_opciones_grupo', 'lapizzeria_telefono' );\n\n register_setting( 'lapizzeria_opciones_gmaps', 'lapizzeria_gmap_iframe' );\n}", "public static function registerData() {\r\n\t\t//array ( '1' => 'Винница', '2' => 'Днепропетровск', '3' => 'Донецк', '4' => 'Житомир', '5' => 'Запорожье', '6' => 'Ивано-Франковск', '7' => 'Киев', '8' => 'Кировоград', '9' => 'Луганск', '10' => 'Луцк', '11' => 'Львов', '12' => 'Николаев', '13' => 'Одесса', '14' => 'Полтава', '15' => 'Ровно', '16' => 'Симферополь', '17' => 'Сумы', '18' => 'Тернополь', '19' => 'Ужгород', '20' => 'Харьков', '21' => 'Херсон', '22' => 'Хмельницкий', '23' => 'Черкассы', '24' => 'Чернигов', '25' => 'Черновцы' ) );\r\n\t\t//Zend_Registry::set ( 'regions',\r\n\t\t//array ( '1' => 'Винницкая', '2' => 'Днепропетровская', '3' => 'Донецкая', '4' => 'Житомирская', '5' => 'Запорожская', '6' => 'Ивано-Франковская', '7' => 'Киевская', '8' => 'Кировоградская', '9' => 'Луганская', '10' => 'Волынская', '11' => 'Львовская', '12' => 'Николаевская', '13' => 'Одесская', '14' => 'Полтавская', '15' => 'Ровенская', '16' => 'Республика Крым', '17' => 'Сумская', '18' => 'Тернопольская', '19' => 'Закарпатская', '20' => 'Харьковская', '21' => 'Херсонская', '22' => 'Хмельницкая', '23' => 'Черкасская', '24' => 'Черниговская', '25' => 'Черновецкая' ) );\r\n\t\t//Zend_Registry::set ( 'colors' ,\r\n\t\t//array ( '1' => 'Бежевый', '2' => 'Белый', '3' => 'Бирюзовый', '4' => 'Бордовый', '5' => 'Бронзовый', '6' => 'Вишнёвый', '7' => 'Голубой', '8' => 'Желтый', '9' => 'Зеленый', '10' => 'Золотистый', '11' => 'Коричневый', '12' => 'Красный', '13' => 'Малиновый', '14' => 'Оливковый', '15' => 'Розовый', '16' => 'Салатовый', '17' => 'Серебристый', '18' => 'Светло-серый', '19' => 'Серый', '20' => 'Тёмно-серый', '21' => 'Синий', '22' => 'Фиолетовый', '23' => 'Черный' ) );\r\n\t\tZend_Registry::set ( 'currency' ,\r\n\t\tarray ('1' => '$(USD)', '2' => '€(EUR)', '3' => 'грн.(UAH)' ) );\r\n\t\tZend_Registry::set ( 'currency_a',\r\n\t\tarray ('1' => '$', '2' => '€', '3' => 'грн.' ) );\r\n\r\n\t\t$years = array();\r\n\t\tfor ($i_year=(int)date('Y'); $i_year>=1900; $i_year--) {\r\n\t\t\t$years[$i_year] = $i_year;\r\n\t\t}\r\n\t\tZend_Registry::set ( 'year' , $years );\r\n\r\n\r\n\t}", "function cmb2_fields_contato() {\n // Adiciona um bloco\n $cmb = new_cmb2_box([ /// está dentro de um Array, que é o [];\n 'id' => 'contato_box', // id deve ser único\n 'title' => 'contato',\n 'object_types' => ['page'], // tipo de post\n 'show_on' => [\n 'key' => 'page-template',\n 'value' => 'page-contato.php',\n ], // modelo de página\n ]);\n \n $cmb->add_field([\n 'name' => 'Descrição da página para SEO',\n 'id' => 'description_seo',\n 'type' => 'text',\n ]);\n\n // Adiciona um campo ao bloco criado\n $cmb->add_field([\n 'name' => 'Localização Rest',\n 'desc' => 'Aqui é colcocado a imagem da localizacao do Restaurante e deve ser de 800px x 600px',\n 'id' => 'localizacao_rest',\n 'type' => 'file',\n 'options' => [\n 'url' => false,\n ]\n ]);\n\n $cmb->add_field([\n 'name' => 'Texto alternativo da imagem',\n 'desc' => 'Aqui é colocado a descrição da imagem como sobre o que a imagem é',\n 'id' => 'textoAlt',\n 'type' => 'text',\n ]);\n\n $cmb->add_field([\n 'name' => 'Link do mapa',\n 'desc' => 'Aqui é o colocado o link que você quer que a pessoa clique no mapa e vá para o link',\n 'id' => 'linkMapa',\n 'type' => 'text_url',\n ]);\n\n $cmb->add_field([\n 'name' => 'Primeiro item do contato',\n 'desc' => 'Aqui é o titulo do primeiro item do contato',\n 'id' => 'primeiroItemContato',\n 'type' => 'text',\n ]);\n\n $cmb->add_field([\n 'name' => 'Telefone do Restaurante',\n 'desc' => 'Aqui é o telefone do restaurante e muda no cabeçalho também',\n 'id' => 'telefone',\n 'type' => 'text',\n ]);\n\n $cmb->add_field([\n 'name' => 'E-mail do Restaurante',\n 'id' => 'email',\n 'type' => 'text_email',\n ]);\n\n $cmb->add_field([\n 'name' => 'Facebook do Restaurante',\n 'id' => 'facebook',\n 'type' => 'text',\n ]);\n\n $cmb->add_field([\n 'name' => 'Primeiro item dos horários',\n 'desc' => 'Aqui é o titulo do primeiro item dos horários',\n 'id' => 'primeiroItemHorario',\n 'type' => 'text',\n ]);\n\n $cmb->add_field([\n 'name' => 'Horário de funcionamento',\n 'desc' => 'Horário de segunda a sexta',\n 'id' => 'funcionamento',\n 'type' => 'text',\n ]);\n\n $cmb->add_field([\n 'name' => 'Horário de sabado',\n 'id' => 'sabado',\n 'type' => 'text',\n ]);\n\n $cmb->add_field([\n 'name' => 'Horario de domingo',\n 'id' => 'domingo',\n 'type' => 'text',\n ]);\n\n $cmb->add_field([\n 'name' => 'Primeiro item do endereço',\n 'desc' => 'Aqui é o titulo do primeiro item dos endereços',\n 'id' => 'primeiroItemEndereco',\n 'type' => 'text',\n ]);\n\n $cmb->add_field([\n 'name' => 'rua',\n 'id' => 'rua',\n 'type' => 'text',\n ]);\n\n $cmb->add_field([\n 'name' => 'Cidade',\n 'id' => 'cidade',\n 'type' => 'text',\n ]);\n\n $cmb->add_field([\n 'name' => 'País',\n 'id' => 'pais',\n 'type' => 'text',\n ]);\n\n}", "function getSearchOptions() {\n\n $tab = array();\n $tab['common'] = __('Characteristics');\n\n $tab[2]['table'] = $this->getTable();\n $tab[2]['field'] = 'id';\n $tab[2]['name'] = __('ID');\n $tab[2]['massiveaction'] = false;\n $tab[2]['datatype'] = 'number';\n\n if (!preg_match('/^itemtype/', static::$itemtype_1)) {\n $tab[3]['table'] = getTableForItemType(static::$itemtype_1);\n $tab[3]['field'] = static::$items_id_1;\n $tab[3]['name'] = call_user_func(array(static::$itemtype_1, 'getTypeName'));\n $tab[3]['datatype'] = 'text';\n $tab[3]['massiveaction'] = false;\n }\n\n if (!preg_match('/^itemtype/', static::$itemtype_2)) {\n $tab[4]['table'] = getTableForItemType(static::$itemtype_2);\n $tab[4]['field'] = static::$items_id_2;\n $tab[4]['name'] = call_user_func(array(static::$itemtype_2, 'getTypeName'));\n $tab[4]['datatype'] = 'text';\n $tab[4]['massiveaction'] = false;\n }\n\n return $tab;\n }", "public function register_options(){\n\t\tparent::register_options();\n\t\t//$orgzr = \\WBF\\modules\\options\\Organizer::getInstance();\n\t\t//Do stuff...\n\t}", "function getRegs($filter = \"\")\n {\n\n global $sql;\n\t\t \n\t if(isset($filter) && strlen(trim($filter))>0) $where = sprintf(\" where subscr_code='%s' \",$sql->escape_string($filter));\n\t else $where = \"\";\n\n $laRet = array();\n $sql->query(\"SELECT * from registry $where ORDER BY id\");\n while ($row = $sql->fetchObject()) {\n\t $item = new Registry(); \n\t \t$item->id = $row->id;\n\t\t$item->subscr_code = $row->subscr_code;\n $item->firstName = $row->firstname;\n $item->lastName = $row->lastname;\n $item->email = $row->email;\n\t $item->phone = $row->phone;\n\t $item->postCode = $row->postcode;\n\t $item->address = $row->address;\n\t $item->kidSize = $row->kidsize;\n\t $item->bigSize = $row->bigsize;\n\t $item->referer = $row->referer;\n\t $item->postId = $row->postid;\n\t $item->dateReg = $row->datereg;\n\t $item->dateSend = $row->datesend;\n\t $item->status = $row->status;\n\t $item->sid = $row->sid;\n $laRet[(int)$row->id] = $item;\n }\n\n return $laRet;\n }", "function cargar_privilegios3(){\n\t\t$res = $this->lis_privs();\n\t\t$comboBox = '<select id=\"selectPrivs3\" name=\"Privilegio\">';\n\t\t$vals = array();\n\t\t$i = 0;\n\t\t$j = 0;\n\t\tforeach($res as $row){\n\t\t\t$vals[$i] = $row;\n\t\t\t$i = $i +1;\n\t\t}\n\t\twhile($j < $i){\n\t\t\t$comboBox .= '<option value = \"'.$vals[$j].'\">'.$vals[$j+1].'</option>';\n\t\t\t$j = $j+2;\n\t\t}\t\t\n\t\t$comboBox .= '</select>';\n\t\treturn $comboBox;\n\t}", "public function SelecionarServicosPorFilial($dados){\n\n\n $sql=\"select * from view_servico_filial where idFilial=\".$dados->idFilial;\n\n echo $sql;\n\n $conex = new Mysql_db();\n\n $PDO_conex = $conex->Conectar();\n\n $select = $PDO_conex->query($sql);\n\n $cont=0;\n\n while ($rs=$select->fetch(PDO::FETCH_ASSOC)) {\n $listFiliaisServicoServico[] = new servico_filial();\n\n $listFiliaisServicoServico[$cont]->idFilialServico= $rs['idFilialServico'];\n $listFiliaisServicoServico[$cont]->idFilial= $rs['idFilial'];\n $listFiliaisServicoServico[$cont]->nomeFilial= $rs['nomeFilial'];\n $listFiliaisServicoServico[$cont]->idServico= $rs['idServico'];\n $listFiliaisServicoServico[$cont]->nomeServico= $rs['nome'];\n $listFiliaisServicoServico[$cont]->descricao= $rs['descricao'];\n\n $cont+=1;\n\n }\n\n $conex->Desconectar();\n\n if (isset($listFiliaisServico)) {\n return $listFiliaisServico;\n }\n }", "function obtenerRegistros($datos = []) {\n\t\t$this->openConnection();\n\t\t$sentencia = $this->conn->prepare($this->consulta);\n\t\tif(!empty($datos)){\n\t\t\tforeach ($datos as $key => $value) {\n\t\t\t\t$sentencia->bind_param($key, $value);\n\t\t\t}\n\t\t}\n\t\t$sentencia->execute();\n\t\t$reg = $sentencia->get_result();\n\t\t$rows = $reg->num_rows;\n\t\t$i = 0;\n\t\tdo {\n\t\t\t$this->registros[] = $reg->fetch_assoc();\n\t\t\t$i++;\n\t\t} while ($i < $rows);\n\t\t$this->closeConnection();\n\t}", "function genreopties(){\r\n\t\tglobal $pdo;\r\n\t\t\t//maken sql query\r\n\t\t$sql = \"SELECT DISTINCT genre_name FROM Genre\";\r\n\t\t\t//afschieten query\r\n\t\t$result = $pdo->query($sql)->fetchAll(PDO::FETCH_ASSOC);\r\n\t\t\r\n\t\tforeach($result as $row){\r\n\t\t\tforeach($row as $genre){\r\n\t\t\t\techo '<option value='.$genre.'>'.$genre.'</option>';\r\n\t\t\t}\r\n\t\t}\r\n\t}", "function SelectValuesUnidadesPerteneceMedico($db_conx, $cod_med) {\r\n $sql = \"SELECT uni_codigo, uni_descrip FROM vunidadmedico WHERE med_codigo = $cod_med ORDER BY uni_descrip ASC\";\r\n\r\n $query = mysqli_query($db_conx, $sql);\r\n\r\n $n_filas = $query->num_rows;\r\n $data = '<select style=\"width: 400px;\" onchange=\"getLocalizacionData();\"';\r\n if ($n_filas == 1) {\r\n $data .= 'id=\"cmbunidad\" disabled=\"true\">';\r\n $row = mysqli_fetch_array($query);\r\n $data .= '<option value=\"' . $row[0] . '\">' . $row[1] . '</option>';\r\n } else {\r\n $data .= 'id=\"cmbunidad\">';\r\n $c = 0;\r\n while ($c < $n_filas) {\r\n $row = mysqli_fetch_array($query);\r\n $data .= '<option value=\"' . $row[0] . '\">' . $row[1] . '</option>';\r\n $c++;\r\n }\r\n }\r\n $data .= '</select\">';\r\n echo $data;\r\n}", "public function getComentarios()\n\t\t{\n\t\t\t $this->limpiarVariables();\n\t\t\t $this->conexion = new Conexion();\n\t\t\t $registros[]=array();\n\t\t\t $this->queryComentarios=\"select * from contacto\";\n\t\t\t $resultado=$this->conexion->consultar( $this->queryComentarios );\n\t\t\t \n\t\t\t \n\t\t\t return $resultado;\n\t\t}" ]
[ "0.6821022", "0.67640257", "0.64696324", "0.6347687", "0.63211346", "0.6321105", "0.62873536", "0.6285097", "0.6276564", "0.6273722", "0.6258331", "0.62392735", "0.62049294", "0.6190794", "0.6178752", "0.6160541", "0.6155715", "0.61424005", "0.60990995", "0.608396", "0.60629964", "0.6043281", "0.6017791", "0.5977164", "0.5969353", "0.59638256", "0.59534913", "0.5943404", "0.5935308", "0.59350336", "0.5930231", "0.59293944", "0.5922807", "0.5898995", "0.58930606", "0.5871751", "0.58665943", "0.5861207", "0.5856569", "0.58525866", "0.58413893", "0.5837478", "0.5833009", "0.5824417", "0.5823083", "0.5820267", "0.58200145", "0.5813946", "0.57999086", "0.57929873", "0.5789433", "0.5759453", "0.5756453", "0.5751054", "0.57348645", "0.5731108", "0.5726192", "0.57239", "0.57078326", "0.5703643", "0.5690503", "0.5684902", "0.5672558", "0.56713706", "0.56711334", "0.56674886", "0.56638694", "0.5661085", "0.5656105", "0.5654669", "0.5653009", "0.56483114", "0.5644411", "0.56432694", "0.56424713", "0.5639072", "0.5634011", "0.5632825", "0.5629828", "0.5629748", "0.56292737", "0.5624737", "0.561543", "0.56093746", "0.56034803", "0.5601605", "0.55973405", "0.5584629", "0.5583082", "0.55809754", "0.5575102", "0.55730486", "0.5572169", "0.55717766", "0.5570781", "0.5568469", "0.55658185", "0.5565009", "0.55648875", "0.5564369", "0.5561631" ]
0.0
-1
/ metodo par obtener los valores del registro a mostrar en los select
public function map_name_value($row) { $result = ''; $first = true; foreach ($this->name_fields as $name_field) { $result .= (($first == false ? ' - ' : '') . (isset($row[$name_field]) ? $row[$name_field] : '')); $first = false; } return $result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSelectDataFields();", "public function getSelect();", "public function getSelect();", "public function ctlBuscaProveedores(){\n\n\t\t$respuesta = Datos::mdlProveedores();\n\n\t\tforeach ($respuesta as $row => $item){\n\t\t\techo '<option value=\"'.$item[\"nombre\"].'\">'.$item[\"nombre\"].'</option>';\n\t\t}\n\t}", "public static function opciones_campo_select()\n {\n\n $opciones = Grado::where('estado', 'Activo')\n //->where('id_colegio', $colegio->id)\n ->get();\n\n $vec[''] = '';\n foreach ($opciones as $opcion) {\n $vec[$opcion->id] = $opcion->descripcion;\n }\n\n return $vec;\n }", "function SelectValuesSeguros_Empresas($db_conx, $table) {\r\n $sql = \"\";\r\n if ($table == \"seguros\") {\r\n $sql = \"SELECT * FROM tseguros ORDER BY seg_descrip ASC\";\r\n } else {\r\n $sql = \"SELECT * FROM tempresas ORDER BY emp_descrip ASC\";\r\n }\r\n $query = mysqli_query($db_conx, $sql);\r\n\r\n $n_filas = $query->num_rows;\r\n $data = '<select size=\"12\" class=\"cmb' . $table . '\" id=\"cmb' . $table . '\">\r\n <option value=\"\">Ninguno</option>';\r\n $c = 0;\r\n while ($c < $n_filas) {\r\n $row = mysqli_fetch_array($query);\r\n $data .= '<option value=\"' . $row[0] . '\">' . $row[1] . \"_\" . $row[2] . '</option>';\r\n $c++;\r\n }\r\n $data .= '</select>';\r\n echo $data;\r\n}", "public function readValoraciones(){\n $sql='SELECT valoracion, producto.nombre as producto, cliente.nombre as cliente FROM cliente, producto, valoraciones WHERE producto.idProducto=valoraciones.idProducto AND cliente.idCliente=valoraciones.idCliente and producto.idProducto = ?';\n $params=array($this->id);\n return Database::getRows($sql, $params);\n }", "public function getForSelect()\n {\n return $this->all()->lists('full_name', 'id')->all();\n }", "public function getRegistros()\n {\n if($this->input->post('id_cliente'))\n {\n $id_cliente = $this->input->post('id_cliente'); \n $contratos = $this->m_contratos->getRegistros($id_cliente, 'id_cliente');\n \n echo '<option value=\"\" disabled selected style=\"display:none;\">Seleccione una opcion...</option>';\n foreach ($contratos as $row) \n {\n echo '<option value=\"'.$row->id_vehiculo.'\">'.$row->vehiculo.'</option>';\n }\n }\n }", "public function selectAllRegiuniData(){\n $sql = \"SELECT * FROM regiune ORDER BY id DESC\";\n $stmt = $this->db->pdo->prepare($sql);\n $stmt->execute();\n return $stmt->fetchAll(PDO::FETCH_OBJ);\n }", "function loadSelectValores($tabla, $codigo, $opt) {\r\n\tswitch ($tabla) {\r\n\t\tcase \"ORDENAR-PROCESOS\":\r\n\t\t\t$c[0] = \"p.CodProceso\"; $v[0] = \"C&oacute;digo\";\r\n\t\t\t$c[1] = \"p.Descripcion\"; $v[1] = \"Descripci&oacute;n\";\r\n\t\t\t$c[2] = \"p.Estado\"; $v[2] = \"Estado\";\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\tcase \"ORDENAR-FASES\":\r\n\t\t\t$c[0] = \"f.CodFase\"; $v[0] = \"C&oacute;digo\";\r\n\t\t\t$c[1] = \"f.Descripcion\"; $v[1] = \"Descripci&oacute;n\";\r\n\t\t\t$c[2] = \"f.Estado\"; $v[2] = \"Estado\";\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\tcase \"ORDENAR-TIPOACTUACION\":\r\n\t\t\t$c[0] = \"taf.CodTipoActuacion\"; $v[0] = \"C&oacute;digo\";\r\n\t\t\t$c[1] = \"taf.Descripcion\"; $v[1] = \"Descripci&oacute;n\";\r\n\t\t\t$c[2] = \"taf.Estado\"; $v[2] = \"Estado\";\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\tcase \"ESTADO-ACTUACION-DETALLE\":\r\n\t\t\t$c[0] = \"PE\"; $v[0] = \"Pendiente\";\r\n\t\t\t$c[1] = \"EJ\"; $v[1] = \"En Ejecución\";\r\n\t\t\t$c[2] = \"AN\"; $v[2] = \"Anulada\";\r\n\t\t\t$c[3] = \"TE\"; $v[3] = \"Terminada\";\r\n\t\t\t$c[4] = \"CE\"; $v[4] = \"Cerrada\";\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\tcase \"ORDENAR-ACTUACION-DETALLE\":\r\n\t\t\t$c[0] = \"a.CodFase, af.Anio, af.Secuencia, af.CodActuacion\"; $v[0] = \"C&oacute;digo\";\r\n\t\t\t$c[1] = \"oe.Organismo, de.Dependencia\"; $v[1] = \"Ente Externo\";\r\n\t\t\t$c[2] = \"a.Descripcion\"; $v[2] = \"Actividad\";\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\tcase \"ESTADO-ACTUACION-PRORROGA\":\r\n\t\t\t$c[0] = \"PR\"; $v[0] = \"En Preparación\";\r\n\t\t\t$c[1] = \"RV\"; $v[1] = \"Revisada\";\r\n\t\t\t$c[2] = \"AP\"; $v[2] = \"Aprobada\";\r\n\t\t\t$c[3] = \"AN\"; $v[3] = \"Anulada\";\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\tcase \"ORDENAR-ACTUACION-PRORROGA\":\r\n\t\t\t$c[0] = \"p.CodProrroga\"; $v[0] = \"Prorroga\";\r\n\t\t\t$c[1] = \"p.Motivo\"; $v[1] = \"Motivo\";\r\n\t\t\t$c[2] = \"a.Descripcion\"; $v[2] = \"Actividad\";\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\tcase \"ORDENAR-VALORACION-DETALLE\":\r\n\t\t\t$c[0] = \"a.CodFase, vj.Anio, vj.Secuencia, vj.CodValJur\"; $v[0] = \"C&oacute;digo\";\r\n\t\t\t$c[1] = \"oe.Organismo, de.Dependencia\"; $v[1] = \"Ente Externo\";\r\n\t\t\t$c[2] = \"a.Descripcion\"; $v[2] = \"Actividad\";\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\tcase \"ORDENAR-POTESTAD-DETALLE\":\r\n\t\t\t$c[0] = \"a.CodFase, vj.Anio, vj.Secuencia, vj.CodPotestad\"; $v[0] = \"C&oacute;digo\";\r\n\t\t\t$c[1] = \"oe.Organismo, de.Dependencia\"; $v[1] = \"Ente Externo\";\r\n\t\t\t$c[2] = \"a.Descripcion\"; $v[2] = \"Actividad\";\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\tcase \"ORDENAR-DETERMINACION-DETALLE\":\r\n\t\t\t$c[0] = \"a.CodFase, vj.Anio, vj.Secuencia, vj.CodDeterminacion\"; $v[0] = \"C&oacute;digo\";\r\n\t\t\t$c[1] = \"oe.Organismo, de.Dependencia\"; $v[1] = \"Ente Externo\";\r\n\t\t\t$c[2] = \"a.Descripcion\"; $v[2] = \"Actividad\";\r\n\t\t\tbreak;\r\n\t}\r\n\t\r\n\t$i = 0;\r\n\tswitch ($opt) {\r\n\t\tcase 0:\r\n\t\t\tforeach ($c as $cod) {\r\n\t\t\t\tif ($cod == $codigo) echo \"<option value='\".$cod.\"' selected>\".$v[$i].\"</option>\";\r\n\t\t\t\telse echo \"<option value='\".$cod.\"'>\".$v[$i].\"</option>\";\r\n\t\t\t\t$i++;\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\tcase 1:\r\n\t\t\tforeach ($c as $cod) {\r\n\t\t\t\tif ($cod == $codigo) echo \"<option value='\".$cod.\"' selected>\".$v[$i].\"</option>\";\r\n\t\t\t\t$i++;\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t}\r\n}", "public function select($otros_votos);", "function SelectValuesUnidadesPerteneceMedico($db_conx, $cod_med) {\r\n $sql = \"SELECT uni_codigo, uni_descrip FROM vunidadmedico WHERE med_codigo = $cod_med ORDER BY uni_descrip ASC\";\r\n\r\n $query = mysqli_query($db_conx, $sql);\r\n\r\n $n_filas = $query->num_rows;\r\n $data = '<select style=\"width: 400px;\" onchange=\"getLocalizacionData();\"';\r\n if ($n_filas == 1) {\r\n $data .= 'id=\"cmbunidad\" disabled=\"true\">';\r\n $row = mysqli_fetch_array($query);\r\n $data .= '<option value=\"' . $row[0] . '\">' . $row[1] . '</option>';\r\n } else {\r\n $data .= 'id=\"cmbunidad\">';\r\n $c = 0;\r\n while ($c < $n_filas) {\r\n $row = mysqli_fetch_array($query);\r\n $data .= '<option value=\"' . $row[0] . '\">' . $row[1] . '</option>';\r\n $c++;\r\n }\r\n }\r\n $data .= '</select\">';\r\n echo $data;\r\n}", "public function getArrayParaSelect()\n {\n return $this->model()::pluck('nome', 'id')->all();\n }", "public function select($producto);", "function valores($idCampo)\r\n {\r\n $mg = ZendExt_Aspect_TransactionManager::getInstance();\r\n $conn = $mg->getConnection('metadatos');\r\n $query = Doctrine_Query::create($conn);\r\n $result = $query->select('v.valor')\r\n ->from('NomValorestruc v')\r\n ->where(\"v.idcampo='$idCampo'\")\r\n //->groupBy('v.valor')\r\n ->execute()\r\n ->toArray();\r\n return $result;\r\n }", "function dataSelect() {\n\t\t\t\t$koneksi = $this->koneksi;\n\t\t\t\t// SQL\n\t\t\t\t$query\t\t\t= \"SELECT * FROM pegawai ORDER BY id ASC\";\n\t\t\t\t\n\t\t\t\t$sql\t\t\t= mysqli_query($koneksi,$query);\n\t\t\t\t\n\t\t\t\treturn $sql;\n\t\t\t}", "function loadSelectValores($tabla, $codigo, $opt) {\r\n\tswitch ($tabla) {\r\n\t\tcase \"ESTADO\":\r\n\t\t\t$c[0] = \"A\"; $v[0] = \"Activo\";\r\n\t\t\t$c[1] = \"I\"; $v[1] = \"Inactivo\";\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\tcase \"ESTADO-CONTROL-CIERRE\":\r\n\t\t\t$c[0] = \"A\"; $v[0] = \"Abierto\";\r\n\t\t\t$c[1] = \"C\"; $v[1] = \"Cerrado\";\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\tcase \"TIPO-REGISTRO\":\r\n\t\t\t$c[0] = \"AB\"; $v[0] = \"Periodo Abierto\";\r\n\t\t\t$c[1] = \"AC\"; $v[1] = \"Periodo Actual\";\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\tcase \"ESTADO-VOUCHER\":\r\n\t\t\t$c[0] = \"AB\"; $v[0] = \"Abierto\";\r\n\t\t\t$c[1] = \"AP\"; $v[1] = \"Aprobado\";\r\n\t\t\t$c[2] = \"MA\"; $v[2] = \"Mayorizado\";\r\n\t\t\t$c[3] = \"AN\"; $v[3] = \"Anulado\";\r\n\t\t\t$c[4] = \"RE\"; $v[4] = \"Rechazado\";\r\n\t\t\tbreak;\r\n\t}\r\n\t\r\n\t$i = 0;\r\n\tswitch ($opt) {\r\n\t\tcase 0:\r\n\t\t\tforeach ($c as $cod) {\r\n\t\t\t\tif ($cod == $codigo) echo \"<option value='\".$cod.\"' selected>\".($v[$i]).\"</option>\";\r\n\t\t\t\telse echo \"<option value='\".$cod.\"'>\".($v[$i]).\"</option>\";\r\n\t\t\t\t$i++;\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\tcase 1:\r\n\t\t\tforeach ($c as $cod) {\r\n\t\t\t\tif ($cod == $codigo) echo \"<option value='\".$cod.\"' selected>\".($v[$i]).\"</option>\";\r\n\t\t\t\t$i++;\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t}\r\n}", "public function select($actividades_fuera);", "public function select($usuario_has_hojaruta);", "function consultar_select($id, $columna_descripcion, $tabla){\n\t\t//Primero conectarse a la bd\n\t\t$conexion_bd = conectar_bd();\n\n\t\t$resultado = '<select name =\"'.$tabla.'\"><option value=\"\" disabled selected>Selecciona una opción</option>';\n\n \t$consulta = \"SELECT $id, $columna_descripcion FROM $tabla\";\n \t$resultados = $conexion_bd->query($consulta);\n \twhile ($row = mysqli_fetch_array($resultados, MYSQLI_BOTH)) {\n\t\t\t$resultado .= '<option value=\"'.$row[\"$id\"].'\">'.$row[\"$columna_descripcion\"].'</option>';\n\t\t}\n \n \t// desconectarse al termino de la consulta\n\t\tdesconectar_bd($conexion_bd);\n\n\t\t$resultado .= '</select><label>Marca</label></div>';\n\n\t\treturn $resultado;\n\n\t}", "public function ctlBuscaProductos(){\n\n\t\t$respuesta = Datos::mdlProductos(\"productos\");\n\n\t\tforeach ($respuesta as $row => $item){\n\t\t\techo '<option value=\"'.$item[\"codProducto\"].'\">'.$item[\"nombre\"].'</option>';\n\t\t}\n\t}", "function getOptionValues() {\t\t\n\t\t$optionvaluesquery = \"SELECT lv.lookuptypevalue as optiontext, lv.lookuptypevalue as optionvalue FROM lookuptype AS l , \n\t\tlookuptypevalue AS lv WHERE l.id = lv.lookuptypeid AND l.name ='\".$this->getName().\"' ORDER BY optiontext \";\n\t\treturn getOptionValuesFromDatabaseQuery($optionvaluesquery);\n\t}", "public function getSelect($param) {\n //operario y poder seleccionar el operario que va ser foranea en otra tabla\n $json = FALSE;\n extract($param);\n $select = \"\";\n $select .= \"<option value='0'>Seleccione un Operario</option>\";\n foreach ($conexion->getPDO()->query(\"SELECT fk_usuario, nombres FROM operario ORDER BY nombres\") as $fila) {\n $select .= \"<option value='{$fila['fk_usuario']}'>{$fila['fk_usuario']} - {$fila['nombres']}</option>\";\n }\n echo $json ? json_encode($select) : (\"<select id='$id'>$select</select>\");\n }", "static function selectList()\n {\n return Permintaan::join('users', 'users.id', '=', 'permintaans.user_id')\n ->join('units', 'units.id', '=', 'permintaans.unit_id')\n ->select([\n 'permintaans.id',\n 'users.nama as user_nama',\n 'units.nama as unit_nama',\n 'permintaans.nama_domain',\n 'permintaans.server',\n 'permintaans.kapasitas',\n 'permintaans.ip',\n 'permintaans.status',\n 'permintaans.keterangan',\n 'permintaans.created_at',\n ]);\n }", "function montar_select_sexo(&$select_sexos, $objSexoPaciente, $objSexoPacienteRN, &$objPaciente) {\n $selected = '';\n $arr_sexos = $objSexoPacienteRN->listar($objSexoPaciente);\n\n $select_sexos = '<select onfocus=\"this.selectedIndex=0;\" onchange=\"val_sexo()\" '\n . 'class=\"form-control selectpicker\" id=\"select-country idSexo\" data-live-search=\"true\" '\n . 'name=\"sel_sexo\">'\n . '<option data-tokens=\"\"></option>';\n\n foreach ($arr_sexos as $sexo) {\n $selected = '';\n if ($sexo->getIdSexo() == $objPaciente->getIdSexo_fk()) {\n $selected = 'selected';\n }\n $select_sexos .= '<option ' . $selected . ' value=\"' . $sexo->getIdSexo() . '\" data-tokens=\"' . $sexo->getSexo() . '\">' . $sexo->getSexo() . '</option>';\n }\n $select_sexos .= '</select>';\n}", "public function select($datos_){\n $id=$datos_->getId();\n\n try {\n $sql= \"SELECT `id`, `nombre_proyecto`, `nombre_actividad`, `modalidad_participacion`, `responsable`, `fecha_realizacion`, `producto`, `semillero_id`\"\n .\"FROM `datos_`\"\n .\"WHERE `id`='$id'\";\n $data = $this->ejecutarConsulta($sql);\n for ($i=0; $i < count($data) ; $i++) {\n $datos_->setId($data[$i]['id']);\n $datos_->setNombre_proyecto($data[$i]['nombre_proyecto']);\n $datos_->setNombre_actividad($data[$i]['nombre_actividad']);\n $datos_->setModalidad_participacion($data[$i]['modalidad_participacion']);\n $datos_->setResponsable($data[$i]['responsable']);\n $datos_->setFecha_realizacion($data[$i]['fecha_realizacion']);\n $datos_->setProducto($data[$i]['producto']);\n $semillero = new Semillero();\n $semillero->setId($data[$i]['semillero_id']);\n $datos_->setSemillero_id($semillero);\n\n }\n return $datos_; } catch (SQLException $e) {\n throw new Exception('Primary key is null');\n return null;\n }\n }", "public function select($cotizacion);", "public function ctlBuscaMisBodegas(){\n\n\t\t$respuesta = Datos::mdlBodegas(\"entradas\");\n\n\t\tforeach ($respuesta as $row => $item){\n\t\t\techo '<option value=\"'.$item[\"destino\"].'\">'.$item[\"destino\"].'</option>';\n\t\t}\n\t}", "function recorre_tabla($nombret,$campot){\r\n$sql_query= \"Select $campot From $nombret where estado=true\";\r\n$consulta = pg_query($sql_query);\r\nwhile($fila=pg_fetch_row($consulta)) \r\n { echo \"<option value='\".$fila[1].\"'>\".$fila[0].\"</option>\"; } \r\n}", "function listar_valores($tipo, $id){\n $contratista = \"\";\n $contratante = \"\";\n \n // Si viene algun dato y es contratista\n if ($tipo == \"contratista\" && $id != \"\") {\n $contratista = \"AND c.Fk_Id_Terceros = {$id}\";\n }\n \n // Si viene algun dato y es contratista\n if ($tipo == \"contratante\" && $id != \"\") {\n $contratista = \"AND c.Fk_Id_Terceros_Contratante = {$id}\";\n }\n\n $sql =\n \"SELECT\n c.Pk_Id_Contrato,\n c.Numero,\n c.Objeto,\n tc.Nombre AS Contratante,\n tbl_terceros.Nombre AS Contratista,\n c.Fecha_Inicial,\n c.Fecha_Vencimiento,\n c.Plazo AS Plazo_Inicial,\n c.Valor_Inicial,\n (\n SELECT\n ifnull(SUM(contratos_pagos.Valor_Pago), 0)\n FROM\n contratos\n LEFT JOIN contratos_pagos ON contratos_pagos.Fk_Id_Contratos = contratos.Pk_Id_Contrato\n WHERE\n contratos.Pk_Id_Contrato = c.Pk_Id_Contrato\n GROUP BY\n contratos.Pk_Id_Contrato\n ) AS Pagado,\n (\n SELECT\n IFNULL(SUM(adiciones.Plazo), 0)\n FROM\n contratos_adiciones AS adiciones\n WHERE\n adiciones.Fk_Id_Contrato = c.Pk_Id_Contrato\n ) AS Plazo_Adiciones,\n (\n SELECT\n IFNULL(\n SUM(contratos_adiciones.Valor),\n 0\n )\n FROM\n contratos_adiciones\n WHERE\n contratos_adiciones.Fk_Id_Contrato = c.Pk_Id_Contrato\n ) AS Valor_Adiciones,\n tbl_estados.Estado,\n tcc.Nombre AS CentroCosto\n FROM\n contratos AS c\n LEFT JOIN tbl_terceros ON c.Fk_Id_Terceros = tbl_terceros.Pk_Id_Terceros\n LEFT JOIN tbl_estados ON c.Fk_Id_Estado = tbl_estados.Pk_Id_Estado\n LEFT JOIN tbl_terceros AS tc ON c.Fk_Id_Terceros_Contratante = tc.Pk_Id_Terceros\n INNER JOIN tbl_terceros AS tcc ON tcc.Pk_Id_Terceros = c.Fk_Id_Terceros_CentrodeCostos\n WHERE c.Fk_Id_Proyecto = {$this->session->userdata('Fk_Id_Proyecto')}\n {$contratista}\n ORDER BY\n c.Fk_Id_Estado ASC,\n c.Fecha_Inicial DESC\";\n\n //Se retorna la consulta\n return $this->db->query($sql)->result();\n }", "public function selectEmpresas() {\r\n return $this->getDb()->query(\"SELECT E.ID_EMPRESA,E.NOMBRE,E.TELEFONO,E.DIRECCION,concat(U.NOMBRE,concat(' ',U.APELLIDO)) \\\"USUARIO ENCARGADO\\\" ,E.ESTADO FROM EMPRESA E LEFT JOIN USUARIO U ON(E.ID_PERSONA_ENCARGADA=U.IDENTIFICADOR)\");\r\n }", "function recorre_tabla_anidada($nombreta, $nombretp, $selectDestino){\r\n$sql_query= \"Select * From $nombreta Where universidad = '$nombretp'\";\t\r\n$consulta=pg_query($sql_query);\r\necho \"<div><select name='$selectDestino' id='$selectDestino' onChange='cargaContenido(this.id)'>\";\r\necho \"<option value='0'>Seleccione $nombreta</option>\";\r\nwhile($fila=pg_fetch_row($consulta)){\r\n\techo \"<option value='\".$fila[0].\"'>\".$fila[1].\"</option>\";}\t\t\t\r\necho \"</select></div>\";\t\r\n}", "function recorre_tabla_anidada($nombreta, $nombretp, $selectDestino){\r\n$sql_query= \"Select * From $nombreta Where universidad = '$nombretp'\";\t\r\n$consulta=pg_query($sql_query);\r\necho \"<div><select name='$selectDestino' id='$selectDestino' onChange='cargaContenido(this.id)'>\";\r\necho \"<option value='0'>Seleccione $nombreta</option>\";\r\nwhile($fila=pg_fetch_row($consulta)){\r\n\techo \"<option value='\".$fila[0].\"'>\".$fila[0].\"</option>\";}\t\t\t\r\necho \"</select></div>\";\t\r\n}", "function select() {\r\n\r\n $oc_id = $this->oc_id;\r\n $prov_id = $this->prov_id;\r\n $oc_tipo = $this->oc_tipo;\r\n $oc_estado = $this->oc_estado;\r\n $oc_fecha_entrega = $this->oc_fecha_entrega;\r\n $oc_fecha_entrega_fin = $this->oc_fecha_entrega_fin;\r\n\r\n $sql = \"SELECT * FROM ing_oc p LEFT JOIN efectua_compra h ON p.oc_id=h.oc_id WHERE \";\r\n\r\n if ($oc_estado != null) {\r\n $sql = $sql . \"p.oc_estado = '\" . $oc_estado . \"' \";\r\n } else {\r\n $sql = $sql . \"p.oc_estado > '0' \";\r\n }\r\n if ($oc_id != null) {\r\n $sql = $sql . \"AND p.oc_id = '\" . $oc_id . \"' \";\r\n }\r\n if ($prov_id != null) {\r\n $sql = $sql . \"AND p.prov_id = '\" . $prov_id . \"' \";\r\n }\r\n if ($oc_tipo != null) {\r\n $sql = $sql . \"AND p.oc_tipo = '\" . $oc_tipo . \"' \";\r\n }\r\n if ($oc_fecha_entrega != null) {\r\n if ($oc_fecha_entrega_fin != null) {\r\n $sql = $sql . \"AND P.oc_fecha_entrega BETWEEN '\" . $oc_fecha_entrega . \"' AND '\" . $oc_fecha_entrega_fin . \"' \";\r\n }\r\n $sql = $sql . \"AND P.oc_fecha_entrega = '\" . $oc_fecha_entrega . \"' \";\r\n }\r\n\r\n $result = $this->database->query($sql);\r\n// $result = $this->database->result;\r\n// $row = mysql_fetch_object($result);\r\n\r\n $i = 0;\r\n while ($datos = $this->database->fetch_array($result)) {\r\n $this->arringoc[$i]['prov_id'] = $datos['prov_id'];\r\n $this->arringoc[$i]['oc_id'] = $datos['oc_id'];\r\n $this->arringoc[$i]['oc_codigo'] = $datos['oc_codigo'];\r\n $this->arringoc[$i]['oc_tipo'] = $datos['oc_tipo'];\r\n $this->arringoc[$i]['oc_empresa'] = $datos['oc_empresa'];\r\n $this->arringoc[$i]['oc_log'] = $datos['oc_log'];\r\n $this->arringoc[$i]['oc_estado'] = $datos['oc_estado'];\r\n $this->arringoc[$i]['oc_fecha_entrega'] = $datos['oc_fecha_entrega'];\r\n $this->arringoc[$i]['oc_solicitante'] = $datos['oc_solicitante'];\r\n $this->arringoc[$i]['oc_observacion'] = $datos['oc_observacion'];\r\n $this->arringoc[$i]['oc_neto'] = $datos['oc_neto'];\r\n $this->arringoc[$i]['oc_iva'] = $datos['oc_iva'];\r\n $this->arringoc[$i]['oc_total'] = $datos['oc_total'];\r\n $this->arringoc[$i]['oc_forma_pago'] = $datos['oc_forma_pago'];\r\n $this->arringoc[$i]['oc_condiciones'] = $datos['oc_condiciones'];\r\n $this->arringoc[$i]['oc_tipo_descuento'] = $datos['oc_tipo_descuento'];\r\n $this->arringoc[$i]['oc_impuesto'] = $datos['oc_impuesto'];\r\n $this->arringoc[$i]['oc_gasto_envio'] = $datos['oc_gasto_envio'];\r\n $this->arringoc[$i]['solc_id'] = $datos['solc_id'];\r\n $i++;\r\n }\r\n\r\n// $this->prov_id = $row->prov_id;\r\n//\r\n// $this->oc_id = $row->oc_id;\r\n//\r\n// $this->oc_codigo = $row->oc_codigo;\r\n//\r\n// $this->oc_tipo = $row->oc_tipo;\r\n//\r\n// $this->oc_empresa = $row->oc_empresa;\r\n//\r\n// $this->oc_log = $row->oc_log;\r\n//\r\n// $this->oc_estado = $row->oc_estado;\r\n//\r\n// $this->oc_fecha_entrega = $row->oc_fecha_entrega;\r\n//\r\n// $this->oc_solicitante = $row->oc_solicitante;\r\n//\r\n// $this->oc_observacion = $row->oc_observacion;\r\n//\r\n// $this->oc_neto = $row->oc_neto;\r\n//\r\n// $this->oc_iva = $row->oc_iva;\r\n//\r\n// $this->oc_total = $row->oc_total;\r\n//\r\n// $this->oc_forma_pago = $row->oc_forma_pago;\r\n//\r\n// $this->oc_condiciones = $row->oc_condiciones;\r\n//\r\n// $this->oc_rut_emision = $row->oc_rut_emision;\r\n//\r\n// $this->oc_rut_aprobacion = $row->oc_rut_aprobacion;\r\n//\r\n// $this->oc_cheque_adjunto = $row->oc_cheque_adjunto;\r\n//\r\n// $this->oc_descuento = $row->oc_descuento;\r\n//\r\n// $this->oc_tipo_descuento = $row->oc_tipo_descuento;\r\n//\r\n// $this->oc_impuesto = $row->oc_impuesto;\r\n//\r\n// $this->oc_gasto_envio = $row->oc_gasto_envio;\r\n//\r\n// $this->oc_estado_pago = $row->oc_estado_pago;\r\n }", "public function lista_oregional($proy_id){\n $list_oregional=$this->model_objetivoregion->list_proyecto_oregional($proy_id);\n $tabla='';\n if(count($list_oregional)==1){\n $tabla.=' <section class=\"col col-3\">\n <label class=\"label\"><b>OBJETIVO REGIONAL '.$list_oregional[0]['or_id'].'</b></label>\n <label class=\"input\">\n <i class=\"icon-append fa fa-tag\"></i>\n <input type=\"hidden\" name=\"or_id\" id=\"or_id\" value=\"'.$list_oregional[0]['or_id'].'\">\n <input type=\"text\" value=\"'.$list_oregional[0]['or_codigo'].'.- '.$list_oregional[0]['or_objetivo'].'\" disabled>\n </label>\n </section>'; \n }\n else{\n $tabla.='<section class=\"col col-6\">\n <label class=\"label\"><b>OBJETIVO REGIONAL</b></label>\n <select class=\"form-control\" id=\"or_id\" name=\"or_id\" title=\"SELECCIONE\">\n <option value=\"0\">SELECCIONE OBJETIVO REGIONAL</option>';\n foreach($list_oregional as $row){ \n $tabla.='<option value=\"'.$row['or_id'].'\">'.$row['or_codigo'].'.- '.$row['or_objetivo'].'</option>'; \n }\n $tabla.='\n </select>\n </section>'; \n }\n \n return $tabla;\n }", "function montar_select_perfilPaciente(&$select_perfis, $objPerfilPaciente, $objPerfilPacienteRN, &$objPaciente) {\n $selected = '';\n $arr_perfis = $objPerfilPacienteRN->listar($objPerfilPaciente);\n\n $select_perfis = '<select class=\"form-control selectpicker\" onchange=\"val()\" id=\"select-country idSel_perfil\"'\n . ' data-live-search=\"true\" name=\"sel_perfil\">'\n . '<option data-tokens=\"\" ></option>';\n\n foreach ($arr_perfis as $perfil) {\n $selected = '';\n if ($perfil->getIdPerfilPaciente() == $objPaciente->getIdPerfilPaciente_fk()) {\n $selected = 'selected';\n }\n\n $select_perfis .= '<option ' . $selected . ' value=\"' . $perfil->getIdPerfilPaciente() . '\" data-tokens=\"' . $perfil->getPerfil() . '\">' . $perfil->getPerfil() . '</option>';\n }\n $select_perfis .= '</select>';\n}", "private function __select() {\n $from_str = $this->getFromStr();\n $field = $this->field_str;\n if (empty($field)) {\n $field = '*';\n }\n $sql = \"SELECT {$field} FROM {$from_str}\";\n if (!empty($this->join_str_list)) {\n $temp = implode(' ', $this->join_str_list);\n $sql .= \" {$temp}\";\n }\n if (!empty($this->where_str)) {\n $sql .= \" WHERE {$this->where_str}\";\n }\n if (!empty($this->group_str)) {\n $sql .= \" GROUP BY {$this->group_str}\";\n }\n if (!empty($this->order_str)) {\n $sql .= \" ORDER BY {$this->order_str}\";\n }\n if (!empty($this->limit_str)) {\n $sql .= \" LIMIT {$this->limit_str}\";\n }\n $list = $this->query($sql);\n return $list;\n }", "public function lista_oregional_pi($proy_id){\n $list_oregional= $this->model_objetivoregion->get_unidad_pregional_programado($proy_id);\n $tabla='';\n if(count($list_oregional)==1){\n $tabla.=' <section class=\"col col-6\">\n <label class=\"label\"><b>OBJETIVO REGIONAL '.$list_oregional[0]['or_id'].'</b></label>\n <label class=\"input\">\n <i class=\"icon-append fa fa-tag\"></i>\n <input type=\"hidden\" name=\"or_id\" id=\"or_id\" value=\"'.$list_oregional[0]['or_id'].'\">\n <input type=\"text\" value=\"'.$list_oregional[0]['or_codigo'].'.- '.$list_oregional[0]['or_objetivo'].'\" disabled>\n </label>\n </section>'; \n }\n else{\n $tabla.='<section class=\"col col-6\">\n <label class=\"label\"><b>OBJETIVO REGIONAL</b></label>\n <select class=\"form-control\" id=\"or_id\" name=\"or_id\" title=\"SELECCIONE\">\n <option value=\"0\">SELECCIONE OBJETIVO REGIONAL</option>';\n foreach($list_oregional as $row){ \n $tabla.='<option value=\"'.$row['or_id'].'\">'.$row['or_codigo'].'.- '.$row['or_objetivo'].'</option>'; \n }\n $tabla.='\n </select>\n </section>'; \n }\n \n return $tabla;\n }", "function SelectValuesUnidadFiltro($db_conx) {\r\n $sql = \"SELECT uni_codigo, uni_descrip FROM tunidad ORDER BY uni_descrip ASC\";\r\n $query = mysqli_query($db_conx, $sql);\r\n\r\n $n_filas = $query->num_rows;\r\n $data = '<select style=\"width:207px;\" id=\"cmbuni\">';\r\n $data .= '<option value=\"0\">Todos</option>';\r\n $c = 0;\r\n while ($c < $n_filas) {\r\n $row = mysqli_fetch_array($query);\r\n $data .= '<option value=\"' . $row[0] . '\">' . $row[1] . '</option>';\r\n $c++;\r\n }\r\n $data .= '</select>';\r\n echo $data;\r\n}", "function getElaboradoPor($forganismo,$opt){\r\nconnect();\r\nswitch ($opt) {\r\ncase 0:\r\n\t$sql=\"SELECT * FROM pv_antepresupuesto where Organismo = '\".$forganismo.\"'\";\r\n\t$query=mysql_query($sql) or die ($sql.mysql_error());\r\n\t$rows=mysql_num_rows($query);\r\n\tfor ($i=0; $i<$rows; $i++) {\r\n\t\t$field=mysql_fetch_array($query);\r\n\t\tif ($field['PreparadoPor']==$valor) echo \"<option value='\".$field['PreparadoPor'].\"' selected>\".htmlentities($field['PreparadoPor']).\"</option>\"; \r\n\t\telse echo \"<option value='\".$field['PreparadoPor'].\"'>\".htmlentities($field['PreparadoPor']).\"</option>\";\r\n\t}\r\n\tbreak;\r\n}\t \r\n}", "public function fields()\n {\n $statuses = \\App\\Status::all()->pluck('name','id');\n return [\n Select::make('Status','id')->options($statuses)\n ];\n }", "public function select($fields);", "function listadoSelect();", "public function select(){\n\t\t$sql = \"SELECT * FROM equipo_tipo\n\t\t\t\twhere equi_tip_estado = 1\";\n\n\t\treturn ejecutarConsulta($sql);\n\t}", "function listadoregiones() {\n $query8 = \"SELECT * FROM intranet_roadmap_regiones\";\n $result8 = (array) json_decode(miBusquedaSQL($query8), true) ;\n foreach ($result8 as $pr8) {\n $proyectos .= '<option value=\"'.$pr8['id_region'].'\">'.$pr8['nombre_region'].'</option> \n';\n }\n return $proyectos;\n\n}", "public function select($perifericos);", "function getListDiagrammer() {\n\n global $idAnalyst;\n $idProject = $_SESSION[\"permisosDeMenu\"];\n global $diagramerASMController;\n\n //obtenemos con el controlador del diagramador los elementos del select\n //id array para los valores de las opciones\n //array los valores a mostrar\n //action funcion que se desea ejercer en dicho elemento select\n $diagramerASMController = new asmsController;\n $ASMs = $diagramerASMController->getASMstexto($idProject);\n $id = array();\n $array = array();\n for ($i = 0; $i < count($ASMs); $i++) {\n $asm = $ASMs[$i];\n $idASM = $asm->getIdASM();\n $name = $asm->getName();\n $id[] = $idASM;\n $array[] = $name;\n }\n $action = \"lookDiagram(value)\";\n $select = select($id, $array, $action, \"...\");\n return $select;\n}", "public function select(){\n\t\t$sql=\"SELECT PROGRA_ID,PROGRA_CODIGO, PROGRA_NOMBRE, PROGRA_EMAIL, PROGRA_USUADIGI, PROGRA_FECHDIGI, PROGRA_HORADIGI\n\t\t FROM programa\";\n\t\treturn ejecutarConsulta($sql);\n\t}", "public function select();", "public function select();", "public function select();", "function select($id){\r\n\t\t$sql = \"SELECT * FROM gestaoti.unidade_organizacional WHERE seq_unidade_organizacional = $id\";\r\n\t\t$result = $this->database->query($sql);\r\n\t\t$result = $this->database->result;\r\n\r\n\t\t$row = pg_fetch_object($result);\r\n\t\t$this->SEQ_UNIDADE_ORGANIZACIONAL = $row->seq_unidade_organizacional;\r\n\t\t$this->NOM_UNIDADE_ORGANIZACIONAL = $row->nom_unidade_organizacional;\r\n\t\t$this->SEQ_UNIDADE_ORGANIZACIONAL_PAI = $row->seq_unidade_organizacional_pai;\r\n\t\t$this->SGL_UNIDADE_ORGANIZACIONAL = $row->sgl_unidade_organizacional;\r\n\t}", "public function select(){\n\t\t$sql = \"SELECT * FROM cargo\n\t\t\t\twhere car_estado = 1\";\n\n\t\treturn ejecutarConsulta($sql);\n\t}", "public function actionSelect(){\n $select = $this->select('Pilih donk akhh..', ['kopi'=>'kopi', 'susu'=>'susu']);\n echo \"Pilihan nya adalah : $select\";\n }", "public function resultat_option()\n {\n $resultat = $this->m_feuille_controle->resultat_liste_option();\n $results = json_decode(json_encode($resultat), true);\n\n echo \"<option value='' selected='selected'>(choisissez)</option>\";\n foreach ($results as $row) {\n echo \"<option value='\" . $row['id'] . \"'>\" . $row['value'] . \"</option>\";\n }\n }", "function SelectValuesUnidad($db_conx) {\r\n $sql = \"SELECT uni_codigo, uni_descrip FROM tunidad ORDER BY uni_descrip ASC\";\r\n $query = mysqli_query($db_conx, $sql);\r\n\r\n $n_filas = $query->num_rows;\r\n $data = '<select class=\"unidadmedico\" multiple=\"multiple\" id=\"cmbunidad\">';\r\n $c = 0;\r\n while ($c < $n_filas) {\r\n $row = mysqli_fetch_array($query);\r\n $data .= '<option value=\"' . $row[0] . '\">' . $row[1] . '</option>';\r\n $c++;\r\n }\r\n $data .= '</select>';\r\n echo $data;\r\n}", "function comboNiveles() {\n $opciones = \"\";\n $nvS = new Servicio();\n $niveles = $nvS->listarNivel(); //RETORNA UN ARREGLO\n\n while ($nivel = array_shift($niveles)) {\n $opciones .=\" <option value='\" . $nivel->getId_nivel() . \"'>\" . $nivel->getNombre() . \"</option>\";\n }\n return $opciones;\n}", "public function Listar(){\n\t\t\t$view_agendamento = new ViewAgendamentoPacienteFuncionarioClass();\n\n\t\t\t//Chama o método para selecionar os registros\n \n \n \n\t\t\treturn $view_agendamento::Select();\n\t\t}", "public function seleccionar(){\n //sql de la consulta\n $sql = \"SELECT * FROM especialidad E WHERE E.Estado = 1;\";\n //preparando la consulta\n $query = $this->conexion->prepare($sql);\n //ejecutandola\n $query->execute();\n //obteniendo el resultado en un arreglo asociativo\n $result = $query->fetchAll(PDO::FETCH_ASSOC);\n $this->conexion = null;\n return $result;\n }", "function _get_select_fields()\r\n\t{\r\n\t\t$sql_exec_fields = array();\r\n\t\tforeach ($this->_params as $key => $val)\r\n\t\t{\r\n\t\t\t$tmp_field = $this->_node_table . '.' . $key . ' AS ' . $val;\r\n\t\t\t$sql_exec_fields[] = $tmp_field;\r\n\t\t} \r\n\r\n\t\t$fields = implode(', ', $sql_exec_fields);\r\n\t\treturn $fields;\r\n\t}", "function select_cuotas($id){\r\n\r\n\t$sql = \"SELECT * FROM cuotas WHERE credito_idcredito = $id AND estatus = 'PENDIENTE' ORDER BY idcuotas ASC\";\r\n\t$ej = mysql_query($sql);\r\n\t$var = '';\r\n\twhile($dt = mysql_fetch_array($ej)){\r\n\t\t$var .= '<option value=\"'.$dt['idcuotas'].'\" >'.$dt['capital'].'</option>';\r\n\t}\r\n\treturn $var;\r\n}", "private function ExibirTamanhos(){\r\n $oDadosCamiseta;\r\n $sSql = \"SELECT * FROM tamanho_camiseta\";\r\n $oDadosCamiseta = $this->Fbd->PesquisarSQL($sSql);\r\n \r\n foreach($oDadosCamiseta as $oRegistro){\r\n echo \"<option value='\".$oRegistro->sigla.\"' class='sctOptTamanho'>\".$oRegistro->nome.\"</option>\";\r\n }\r\n }", "public function list_gestiones(){\n $listar_gestion= $this->model_configuracion->lista_gestion();\n $tabla='';\n\n $tabla.='\n <input type=\"hidden\" name=\"gest\" id=\"gest\" value=\"'.$this->gestion.'\">\n <select name=\"gestion_usu\" id=\"gestion_usu\" class=\"form-control\" required>\n <option value=\"0\">seleccionar gestión</option>'; \n foreach ($listar_gestion as $row) {\n if($row['ide']==$this->gestion){\n $tabla.='<option value=\"'.$row['ide'].'\" select >'.$row['ide'].'</option>';\n }\n else{\n $tabla.='<option value=\"'.$row['ide'].'\" >'.$row['ide'].'</option>';\n }\n };\n $tabla.='</select>';\n return $tabla;\n }", "function get_combo_eventos() {\n $query = $this->db->query(\"select * from evento\");\n \n $result = \"\";\n if ($query) {\n if ($query->num_rows() == 0) {\n return false;\n } else {\n foreach ($query->result() as $reg) {\n $data[$reg->nEveId] = $reg->cEveTitulo;\n }\n $result=form_dropdown(\"cbo_evento_listar\", $data,'','id=\"cbo_evento_listar\" class=\"chzn-select\" style=\"width:250px\" required=\"required\"');\n //$result=form_dropdown(\"cbo_evento_listar\", $data,'','id=\"cbo_evento_listar\" style=\"width:auto\" required=\"required\"');\n return $result;\n }\n } else {\n return false;\n }\n }", "protected function getSelectFields()\n {\n return $this->getSettingsValue('select');\n }", "function select() {\r\n $ing_item = $this->ing_item;\r\n $ing_estado_ingreso = $this->ing_estado_ingreso;\r\n $ing_item = $this->ing_item;\r\n $prov_id = $this->prov_id;\r\n $ing_numerodoc = $this->ing_numerodoc;\r\n $ing_tipodoc = $this->ing_tipodoc;\r\n $bod_codigo = $this->bod_codigo;\r\n\r\n $sql = \"SELECT * FROM ing_ingreso_det h INNER JOIN ingreso_compra p ON p.ing_numerodoc = h.ing_numerodoc WHERE p.ing_estado_doc > '0' \";\r\n if ($ing_estado_ingreso != null) {\r\n $sql = $sql . \"AND h.ing_estado_ingreso = '\" . $ing_estado_ingreso . \"' \";\r\n } else {\r\n $sql = $sql . \"AND h.ing_estado_ingreso > '0' \";\r\n }\r\n if ($ing_item != null) {\r\n $sql = $sql . \"AND h.ing_item = '\" . $ing_item . \"' \";\r\n }\r\n if ($prov_id != null) {\r\n $sql = $sql . \"AND h.prov_id = '\" . $prov_id . \"' \";\r\n }\r\n if ($ing_numerodoc != null) {\r\n $sql = $sql . \"AND h.ing_numerodoc = '\" . $ing_numerodoc . \"' \";\r\n }\r\n if ($ing_tipodoc != null) {\r\n $sql = $sql . \"AND h.ing_tipodoc = '\" . $ing_tipodoc . \"' \";\r\n }\r\n if ($bod_codigo != null) {\r\n $sql = $sql . \"AND h.bod_codigo = '\" . $bod_codigo . \"' \";\r\n }\r\n\r\n\r\n $result = $this->database->query($sql);\r\n\r\n $i = 0;\r\n while ($datos = $this->database->fetch_array($result)) {\r\n $this->arringdet[$i]['ing_item'] = $datos['ing_item'];\r\n $this->arringdet[$i]['prov_id'] = $datos['prov_id'];\r\n $this->arringdet[$i]['ing_numerodoc'] = $datos['ing_numerodoc'];\r\n $this->arringdet[$i]['ing_tipodoc'] = $datos['ing_tipodoc'];\r\n $this->arringdet[$i]['prod_equiv_id'] = $datos['prod_equiv_id'];\r\n $this->arringdet[$i]['bod_codigo'] = $datos['bod_codigo'];\r\n $this->arringdet[$i]['prod_codigo'] = $datos['prod_codigo'];\r\n $this->arringdet[$i]['ing_bodega'] = $datos['ing_bodega'];\r\n $this->arringdet[$i]['ing_zeta'] = $datos['ing_zeta'];\r\n $this->arringdet[$i]['ing_cantidad1'] = $datos['ing_cantidad1'];\r\n $this->arringdet[$i]['ing_cantidad_bulto'] = $datos['ing_cantidad_bulto'];\r\n $this->arringdet[$i]['ing_unid_bulto'] = $datos['ing_unid_bulto'];\r\n $this->arringdet[$i]['ing_valor1'] = $datos['ing_valor1'];\r\n $this->arringdet[$i]['ing_valor2'] = $datos['ing_valor2'];\r\n $this->arringdet[$i]['ing_estado_ingreso'] = $datos['ing_estado_ingreso'];\r\n $this->arringdet[$i]['ing_peso'] = $datos['ing_peso'];\r\n $this->arringdet[$i]['ing_umed_peso'] = $datos['ing_umed_peso'];\r\n $this->arringdet[$i]['ing_valor_total'] = $datos['ing_valor_total'];\r\n\r\n $this->arringdet[$i]['ing_correlativo'] = $datos['ing_correlativo'];\r\n $this->arringdet[$i]['ing_fechadoc'] = $datos['ing_fechadoc'];\r\n $this->arringdet[$i]['ing_fechavisacion'] = $datos['ing_fechavisacion'];\r\n $this->arringdet[$i]['ing_numerovisacion'] = $datos['ing_numerovisacion'];\r\n $this->arringdet[$i]['ing_moneda'] = $datos['ing_moneda'];\r\n $this->arringdet[$i]['ing_tipodecambio'] = $datos['ing_tipodecambio'];\r\n $this->arringdet[$i]['ing_iva'] = $datos['ing_iva'];\r\n $this->arringdet[$i]['ing_ciftotal'] = $datos['ing_ciftotal'];\r\n $this->arringdet[$i]['ing_costototal'] = $datos['ing_costototal'];\r\n $this->arringdet[$i]['ing_viutotal'] = $datos['ing_viutotal'];\r\n $this->arringdet[$i]['ing_estado_pago'] = $datos['ing_estado_pago'];\r\n $this->arringdet[$i]['ing_estado_doc'] = $datos['ing_estado_doc'];\r\n $this->arringdet[$i]['ing_neto'] = $datos['ing_neto'];\r\n $this->arringdet[$i]['ing_total'] = $datos['ing_total'];\r\n $this->arringdet[$i]['ing_tipodocsve'] = $datos['ing_tipodocsve'];\r\n $this->arringdet[$i]['ing_bodega_rec'] = $datos['ing_bodega_rec'];\r\n }\r\n }", "function recorre_tabla($nombret,$campot){\r\n$sql_query= \"Select $campot From $nombret\";\r\n$consulta = pg_query($sql_query);\r\nwhile($fila=pg_fetch_row($consulta)) \r\n { echo \"<option value='\".$fila[0].\"'>\".$fila[0].\"</option>\"; } \r\n}", "public function select() \n { \n $this->load->database(); \n $query = $this->db->query(\"SELECT * FROM empresa p inner join persona c on p.Persona_idPersona = c.idPersona \");\n $this->db->close();\n return $query->result();\n }", "public function select(){\n\t\t$sql = \"SELECT * FROM producto\n\t\t\t\twhere prod_estado = 1\";\n\n\t\treturn ejecutarConsulta($sql);\n\t}", "public function getMedicinesToSelectBox() {\n\t\t$data = $this->database->table(self::TABLE_NAME)->fetchAll();\n\t\t$result = [];\n\n\t\tforeach ($data as $key => $value)\n\t\t\t$result[$value->ID_leku] = $value->nazev_leku;\n\n\t\treturn $result;\n\t}", "public function selectMedecin(){\n $bdd=Connexion::getInstance();\n $req=\" select * from utilisateur u ,specialite s,service ser \n WHERE u.idSpecialite=s.idSpecialite and s.idService=ser.idService\n AND idStatus=\".self::NIVEAU_1;\n $rep=$bdd->query($req);\n return $rep->fetchall();\n \n }", "public function ctlBuscaCompras(){\n\n\t\t$respuesta = Datos::mdlCompras(\"entradas\");\n\n\t\tforeach ($respuesta as $row => $item){\n\t\t\techo '<option value=\"'.$item[\"codProducto\"].'\">'.$item[\"noOperacion\"].' - '.$item[\"proveedor\"].' - '.$item[\"kg\"].' - '.$item[\"precio\"].'</option>';\n\t\t}\n\t}", "function genreopties(){\r\n\t\tglobal $pdo;\r\n\t\t\t//maken sql query\r\n\t\t$sql = \"SELECT DISTINCT genre_name FROM Genre\";\r\n\t\t\t//afschieten query\r\n\t\t$result = $pdo->query($sql)->fetchAll(PDO::FETCH_ASSOC);\r\n\t\t\r\n\t\tforeach($result as $row){\r\n\t\t\tforeach($row as $genre){\r\n\t\t\t\techo '<option value='.$genre.'>'.$genre.'</option>';\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public function infoUsuariosPorProyectoList(){\n\n $usuarios = UsersModel::infoUsuariosPorProyecto(\"usuario\", $_SESSION[\"id_project\"]);\n \n foreach ($usuarios as $row => $item) {\n echo '<option value=\"'.$item[\"Email\"].'\">'.$item[\"Email\"].'</option>'; \n }\n\n }", "public function select($proveedor);", "public function fieldSelect($sId=\"\",$sNome=\"\",$aValue=\"\",$sLunghezza=0,$sTag=\"\", $jolly=\"\"){\r\n\t\t\r\n\t\tif($sTag==\"\"){\r\n\t\t\techo \"<select name=\\\"\" . $sNome . \"\\\">\";\r\n\t\t}else{\r\n\t\t\techo \"<select name=\\\"\" . $sNome . \"\\\"\" . $sTag . \">\";\r\n\t\t}\r\n\r\n\t\tforeach($aValue as $key=>$value){\r\n\t\t\tif(substr($value,0,1)==$jolly){\r\n\t\t\t\techo \"<option style=\\\"font-weight:bold;\\\" value=\\\"\" . $key . \"\\\">Gruppo: \" . substr($value,1) . \"</option>\";\r\n\t\t\t}else{\r\n\t\t\t\techo \"<option value=\\\"\" . $key . \"\\\">\" . $value . \"</option>\";\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\techo \"</select>\";\r\n\t\t\r\n\t}", "public function select(){\n\t$sql=\"SELECT * FROM tipousuario\";\n\treturn ejecutarConsulta($sql);\n}", "function getSelectFieldsValues($field_data) {\n \n $model = $this->getModel('comment_answers');\n \n $results = $model->getDataForView($field_data);\n \n foreach($results as $list) {\n $result = null;\n if($field_data == 'post_id') {\n $result_list[] = $list->post_id;\n }\n if($field_data == 'created_date') {\n $result_list[] = $list->created_date;\n }\n if($field_data == 'creator') {\n $result_list[] = $list->creator;\n }\n if($field_data == 'comment_id') {\n $result_list[] = $list->comment_id;\n }\n \n if($field_data == 'published') {\n $result_list[]= $list->published;\n }\n }\n \n //results are all the data from the selected column in the result_list array\n return $result_list;\n }", "public function get_all(){\n\t\t$this->db->select('ok,valorx,valory,teta,q1,q2,q3,q4,ftang,fnormal');\n\t\treturn $this->db->limit(1)->order_by('id','desc')->get('plataforma')->result_array();\n\t}", "public function selectAll()\n {\n $sql = \"SELECT idagenda, visita_idvisita, horario_idhorario, created, modified\n FROM \" . $this->schema . \".\" . $this->table;\n }", "public function consultarTiposJSONSelectAction() {\n $select = \"<select>\";\n //$select = $select . \"<option value='' >Seleccione una Acción</option>\";\n $select = $select . \"<option value=\" . User::$VENDEDOR . \" >\" . User::$VENDEDOR_TEXT . \"</option>\";\n $select = $select . \"<option value=\" . User::$COMPRADOR . \" >\" . User::$COMPRADOR_TEXT . \"</option>\";\n $select = $select . \"<option value=\" . User::$APROBADOR . \" >\" . User::$APROBADOR_TEXT . \"</option>\";\n $select = $select . \"<option value=\" . User::$DIGITADOR . \" >\" . User::$DIGITADOR_TEXT . \"</option>\";\n $select = $select . \"</select>\";\n\n $response = new Response($select);\n return $response;\n }", "public function getcboregcondi() {\n \n $sql = \"select ctipo as 'ccondi', dregistro as 'dcondi' from ttabla where ctabla = 37 and ncorrelativo <> 0 order by dregistro;\";\n\t\t$query = $this->db->query($sql);\n \n if ($query->num_rows() > 0) {\n\n $listas = '<option value=\"0\" selected=\"selected\">::Elegir</option>';\n \n foreach ($query->result() as $row)\n {\n $listas .= '<option value=\"'.$row->ccondi.'\">'.$row->dcondi.'</option>'; \n }\n return $listas;\n }{\n return false;\n }\t\n }", "public function mostrarDados(){\n\t\t$sql = \"SELECT cliente.cod_cliente, cliente.nome_cliente, categoria.cod_categoria, categoria.desc_categoria, servico.cod_servico, servico.desc_servico, servico.foto\t\n\t\t\t\tFROM cliente INNER JOIN (categoria INNER JOIN servico ON categoria.cod_categoria = servico.cod_categoria) ON cliente.cod_cliente = servico.cod_cliente\n\t\t\t\twhere cod_servico = '$this->cod_servico'\";\n\t\t$qry= self:: executarSQL($sql);\n\t\t$linha = self::listar($qry);\n\t\t\n\t\t$this-> cod_servico = $linha['cod_servico'];\n\t\t$this-> cod_categoria = $linha['cod_categoria'];\n\t\t$this-> desc_categoria = $linha['desc_categoria'];\n\t\t$this-> cod_cliente = $linha['cod_cliente'];\n\t\t$this-> nome_cliente = $linha['nome_cliente'];\n\t\t$this-> desc_servico = $linha['desc_servico'];\n\t\t$this-> foto = $linha['foto'];\n\t}", "function datos_seleccion($id_seleccion,$id_usuario) {\n\t\t$query = \"SELECT seleccion.*\n\t\tFROM seleccion\n\t\tWHERE seleccion.id_seleccion = '$id_seleccion'\n\t\tAND seleccion.id_usuario='$id_usuario'\";\n\n $connection = mysql_connect($this->HOST, $this->USERNAME, $this->PASSWORD);\n\t\t\n\t\t$SelectedDB = mysql_select_db($this->DBNAME);\n\t\t$result = mysql_query($query); \n\t\t\n\t\t$numrows = mysql_num_rows($result);\n\t\t$row=mysql_fetch_array($result);\n\t\tmysql_close($connection);\n\t\t// COMPROBAMOS QUE HAYA RESULTADOS\n\t\t// SI EL NUMERO DE RESULTADOS ES 0 SIGNIFICA QUE NO HAY REGISTROS CON ESOS DATOS\n\t\tif ($numrows == 0) {\n\t\t\treturn $result;\n\t\t}\n\t\telse {\n\t\t\treturn $row;\n\t\t}\n\t}", "public function getSelectData($fields, $parameter=\"\") {\n\t$qb = new \\Doctrine\\ORM\\QueryBuilder($this->getEntityManager());\n\t$companyObj = new PhvCompany();\n\t$studyObj = new PhvStudy();\n\t$query = $qb->select('s.id', 'c.company_name','c.id as comId')\n\t\t ->from($this->getTableName(), 's')\n\t\t ->leftJoin($companyObj->getTableName(), 'c', \"ON\", 'c.id=s.cro_id');\n\tif($parameter != \"\") {\n\t $currentUser = $this->getCurrentUser();\n\t $query->leftJoin($studyObj->getTableName(), 'st', \"ON\", 'st.id=s.study_id')\n\t\t->where($query->expr()->like('c.company_name', $query->expr()->literal('%' . $parameter . '%')))\n\t\t->andWhere($query->expr()->eq('st.sponser_id', intval($currentUser->getCompany()->getId())));\n\t}\n\t$result = $this->getEntityManager()->getConnection()->executeQuery($query)->fetchAll();\n $tempArr = array();\n foreach ($result as $val) {\n\t \n $tempArr[$val['comId']] = $val['company_name'];\n }\n return array_unique($tempArr);\n }", "function getClientes(){\n\n $i=0;\n $this->db->select('cliente.id_cliente,\n cliente.nombre,\n cliente.apellido');\n $this->db->from('cliente');\n $query = $this->db->get();\n\n foreach ($query->result() as $row){\n\n $clientes[$i]['value'] = $row->id_cliente;\n $clientes[$i]['label'] = $row->apellido . ', ' . $row->nombre;\n $i++;\n }\n return $clientes;\n }", "private function _montaInicioSelectQuestionario()\r\n {\r\n $select = $this->select()\r\n ->setIntegrityCheck(false);\r\n\r\n $select->from(array('pp' => KT_B_PERGUNTA_PEDIDO),\r\n array('cd_pergunta_pedido',\r\n 'tx_titulo_pergunta',\r\n 'st_multipla_resposta',\r\n 'st_obriga_resposta',\r\n 'tx_ajuda_pergunta'),\r\n $this->_schema);\r\n $select->join(array('orpp' => $this->_name),\r\n '(pp.cd_pergunta_pedido = orpp.cd_pergunta_pedido)',\r\n array('st_resposta_texto',\r\n 'ni_ordem_apresenta'),\r\n $this->_schema);\r\n $select->join(array('rp' => KT_B_RESPOSTA_PEDIDO),\r\n '(orpp.cd_resposta_pedido = rp.cd_resposta_pedido)',\r\n array('cd_resposta_pedido',\r\n 'tx_titulo_resposta'),\r\n $this->_schema);\r\n \r\n return $select;\r\n }", "function CreaSelect($Nombre,$Sql,$Comentario,$valor=\"\"){\n\t\t$result = mysql_query($Sql);\n\t\techo \"\\t<tr><td>$Comentario</td><td><select name='$Nombre'>\\n\";\n\t\twhile($row=mysql_fetch_row($result))\n\t\t{\n\t\t \tif($row[0]==$valor)$seleccionar=\"selected\";\n\t\t \telse $seleccionar=\"\";\n\t\t\techo \"\\t\\t<option $seleccionar value='\".$row[0].\"'>\".$row[1].\"</option>\\n\"\t;\n\t\t}\n\t\t\techo \"</select></td></tr>\\n\";\n\t\t\n\t}", "public function select()\n {\n $sql = \"SELECT * FROM tipousuario\";\n return ejecutarConsulta($sql);\n }", "public function get_detalle_aros_rec_ini($numero_venta){\n $conectar=parent::conexion();\n parent::set_names();\n\n $sql=\"select p.marca,p.color,p.modelo,p.categoria,d.id_producto,d.numero_venta from producto as p join detalle_ventas as d where p.id_producto=d.id_producto and d.numero_venta=? and categoria='aros';\";\n $sql=$conectar->prepare($sql);\n $sql->bindValue(1,$numero_venta);\n $sql->execute();\n return $resultado=$sql->fetchAll(PDO::FETCH_ASSOC);\n}", "public function mostrar_todos_proyectos(){\n //inicio empieza en 0 si la pagina es igual a 1, si es mayor se multiplica por 10 o la cantidad de datos que vaya a mostrar. se resta si es lo contrario.\n \n $form_arr = array();//devuelve un arreglo de proyectoss\n $form = \"\";\n $con = new Conexion();\n $con2 = $con->conectar();\n try{\n // se establece el modo de error PDO a Exception\n $con2->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n\n // Se prepara el satetement y se cargan los parametros\n $stmt = $con2->prepare(\"select id_proyecto,nombre_p from proyectos \");\n\n if($stmt->execute()){\n while ($row = $stmt->fetchObject()) {\n $form = \"<option value=\\\"{$row->id_proyecto}\\\">{$row->nombre_p}</option>\";\n \t\t\t array_push($form_arr,$form);\n }\n\n }\n }\n catch(PDOException $e)\n {\n echo \"Error: \" . $e->getMessage();\n }\n $con2 = null;\n return $form_arr;\n }", "function getNrecs($con, $nik){\r\n\t\t$sql = $con->query(\"SELECT id,nombre FROM recursos\");\r\n\t\twhile ($row = $sql->fetch_assoc()) {\r\n\t\t\techo '<option value=\"' . $row['id'] . '\"';\r\n\t\t\tif ($row['id'] == $nik) {\r\n\t\t\t\techo ' selected';\r\n\t\t\t}\r\n\t\t\techo '>' . $row['nombre'] . '</option>';\r\n\t\t}\r\n\t\t$sql->close();\r\n\t}", "public function cargar_retenciones()\r\n {\r\n $cod_org = usuario_actual('cod_organizacion');\r\n $ano=$this->drop_ano->SelectedValue;\r\n $sql2 = \"select * from presupuesto.retencion where cod_organizacion='$cod_org' and ano='$ano' \";\r\n $datos2 = cargar_data($sql2,$this);\r\n // array_unshift($datos2, \"Seleccione\");\r\n $this->drop_retenciones->Datasource = $datos2;\r\n $this->drop_retenciones->dataBind();\r\n }", "public function tipoContacto($parametro)\n{\n if($parametro==NULL)\n {\n $parametro=9999;\n }\n\techo '<select class=\"form-control select\" name=\"tipoContacto\" required=\"\" required onchange=\"showmeDatosFacturacion(this.value)\" >\n\t\t <option value=\"\" '.$this->selected($parametro, 99999).'>Selecciona Uno</option>\n <option value=\"0\" '.$this->selected($parametro, 0).' >Cliente</option>\n <option value=\"1\" '.$this->selected($parametro, 1).'>Provedor</option>\n <option value=\"2\" '.$this->selected($parametro, 2).'>Cliente y Provedor</option>\n </select>';\n}", "protected function Campos()\n {\n $select = [\n ['value' => 'id1', 'text' => 'texto1'],\n ['value' => 'id2', 'text' => 'texto2']\n ];\n $this->text('unInput')->Validator(\"required|maxlength:20\");\n $this->text('unSelect')->Validator(\"required\")->type('select')->in_options($select);\n $this->date('unDate')->Validator(\"required\");\n }", "function getDatos(){\n $res = $this->Consulta('SELECT C.*, P.id_planta FROM '.$this->Table .' C\n INNER JOIN\n equipos E ON E.id_equipos = C.`id_equipos`\n INNER JOIN\n secciones S ON S.id_secciones = E.id_secciones\n INNER JOIN\n plantas P ON P.id_planta = S.id_planta\n \n WHERE '.$this->PrimaryKey.' = '.$this->_datos);\n $resultado = $res[0];\n // $resultado = array_map('utf8_encode',$resultado);\n \n print_r( json_encode( $resultado ) );\n }", "public function ctlBuscaClientes(){\n\n\t\t$respuesta = Datos::mdlClientes(\"clientes\");\n\n\t\tforeach ($respuesta as $row => $item){\n\t\t\techo '<option value=\"'.$item[\"nombre\"].'\">'.$item[\"nombre\"].'</option>';\n\t\t}\n\t}", "public function get_ventas_consulta($id_paciente){\n\t$conectar= parent::conexion();\n\tparent::set_names();\n \n\t$sql=\"select*from ventas where id_paciente=?;\";\n\t$sql=$conectar->prepare($sql);\n\t$sql->bindValue(1,$id_paciente);\n\t$sql->execute();\n\treturn $resultado= $sql->fetchAll(PDO::FETCH_ASSOC);\n}", "public function kamerselecteren(){\n $this->stmt = $this->conn->prepare(\"SELECT kamerid, kamernummer from kamer\");\n $result = $this->stmt->execute();\n\n if(!$result){\n die('<pre>Oops, Error execute query ' . $result . '</pre><br><pre>' . 'Result code: ' . $result . '</pre>');\n }\n $this->resultSet = $this->stmt->fetchALL(PDO::FETCH_ASSOC);\n\n $result = $this->resultSet;\n\n // return $result so we can use the data\n return $result;\n\n }", "public function selectdata(){\n$this->autoRender=false;\n$data=$this->connection->execute(\"select * from users\")->fetchAll();\nprint_r($data);\n}" ]
[ "0.7236767", "0.7076651", "0.7076651", "0.7011775", "0.68127275", "0.6728356", "0.67021346", "0.6678155", "0.66694057", "0.6589499", "0.6588299", "0.6566758", "0.65647435", "0.6543528", "0.6466704", "0.6465666", "0.6457703", "0.6449723", "0.6443946", "0.6426942", "0.6420644", "0.6419615", "0.6410221", "0.64029735", "0.6402163", "0.6401742", "0.6374284", "0.6370781", "0.63277835", "0.6321409", "0.6310857", "0.6302262", "0.63015306", "0.6297091", "0.6296809", "0.62880445", "0.62878865", "0.628", "0.62754947", "0.62677664", "0.6264613", "0.6260824", "0.62577766", "0.62550235", "0.6238418", "0.62250847", "0.6222283", "0.6214603", "0.6213683", "0.62033385", "0.62033385", "0.62033385", "0.62026495", "0.6197684", "0.6190134", "0.6181284", "0.6165458", "0.6165162", "0.6161645", "0.61507267", "0.61506253", "0.6149048", "0.61457235", "0.61448234", "0.61369956", "0.611374", "0.6111336", "0.61108124", "0.61013263", "0.61004454", "0.609891", "0.6098827", "0.60983366", "0.60942906", "0.6086873", "0.608186", "0.6079852", "0.60778826", "0.60777617", "0.6075883", "0.6070173", "0.6068645", "0.60643816", "0.6055478", "0.6054838", "0.60419846", "0.6031237", "0.6029032", "0.602263", "0.6019644", "0.6017017", "0.6011931", "0.6009769", "0.60084885", "0.600528", "0.6004833", "0.6001942", "0.60016245", "0.59974533", "0.5997055", "0.59948194" ]
0.0
-1
metodo para verificar si ya existe un registro con los valores unicos especificados
public function exist_unike_keys($params) { if (count($this->unike_keys) < 1) { return false; } $db_params = array(); if(isset($this->unike_keys)){ foreach ($this->unike_keys as $key) { $db_params[$key] = $params[$key]; } } $result = $this->findByPoperty($db_params); if ($result) { echo Component::alert_message('Ya existe un registro con estos datos'); return true; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function exists() {\r\n\t\t$sql_inicio \t= \" select * from \".$this->table.\" where \";\r\n\t\t$sql_fim \t\t= \" \".($this->get($this->pk) ? \" and \".$this->pk.\" <> \".$this->get($this->pk) : \"\").\" limit 1 \";\r\n\t\t\r\n\t\t$sql \t= \"con_id = \".$this->get(\"con_id\").\" and exa_id = \".$this->get(\"exa_id\").\" \";\r\n\t\tif (mysql_num_rows(Db::sql($sql_inicio.$sql.$sql_fim))){\r\n\t\t\t$this->propertySetError (\"con_id\", \"Já existe no banco de dados.\");\r\n\t\t\t$this->propertySetError (\"exa_id\", \"Já existe no banco de dados.\");\r\n\t\t}\r\n\t}", "private function checkIsExists(): bool\n {\n $where = [\n $this->table. '.vendorId' => $this->vendorId,\n $this->table. '.campaign' => $this->campaign,\n ];\n\n if (!is_null($this->id)) {\n $where[$this->table. '.id !='] = $this->id;\n }\n\n $id = $this->readImproved([\n 'what' => [$this->table. '.id'],\n 'where' => $where\n ]);\n\n return !is_null($id);\n }", "public function existeLugar(){\n $modelSearch = new LugarSearch();\n $resultado = $modelSearch->busquedadGeneral($this->attributes);\n if($resultado->getTotalCount()){ \n foreach ($resultado->models as $modeloEncontrado){\n $modeloEncontrado = $modeloEncontrado->toArray();\n $lugar[\"id\"]=$modeloEncontrado['id']; \n #borramos el id, ya que el modelo a registrar aun no tiene id\n $modeloEncontrado['id']=\"\";\n \n //si $this viene con id cargado, nunca va a encontrar el parecido\n if($this->attributes==$modeloEncontrado){\n $this->addError(\"notificacion\", \"El lugar a registrar ya existe!\");\n $this->addError(\"lugarEncontrado\", $lugar);\n }\n }\n }\n }", "function existe($id_desig){\r\n $sql=\"select * from suplente where id_desig_suplente=$id_desig\";\r\n $res=toba::db('designa')->consultar($sql);\r\n \r\n if(count($res)>0){\r\n return true;\r\n }else{\r\n return false;\r\n }\r\n }", "function buscar() //funcion para ver si el registro existe \n\t{\n\t$sql=\"select * from slc_unid_medida where nomenc_unid_medida= '$this->abr' and desc_unid_medida= '$this->des'\"; \n\t $result=mysql_query($sql,$this->conexion);\n\t $n=mysql_num_rows($result);\n\t if($n==0)\n\t\t\t return 'false';\n\t\t\telse\n\t\t\t return 'true';\n\t}", "private function checkIsExists(): bool\n {\n $id = $this->readImproved([\n 'what' => [$this->table. '.id'],\n 'where' => [\n $this->table. '.listId' => $this->listId,\n $this->table. '.campaignId' => $this->campaignId,\n ]\n ]);\n\n return !is_null($id);\n }", "private function existe_usuario()\n\t{\n\t\t$data = $this->request->getRawInput();\n\t\t$ruc = $data['nick']; \n\t\t$usu = new Admin_model();\n\t\t$usuarioObject = $usu->where(\"nick\", $ruc) \n\t\t->first();\n\t\treturn !is_null($usuarioObject);\n\t\t \n\t}", "public function isAlreadyExist(){\n \n $query = \"SELECT *\n FROM \" . $this->table . \" \n WHERE email='\".$this->email.\"'\";\n // prepare query statement\n $stmt = $this->conn->prepare($query);\n // execute query\n $stmt->execute();\n if($stmt->rowCount() > 0){\n return true;\n }else{\n return false;\n }\n }", "function is_id_kelas_exist()\n {\n $id_kelas_sekarang = $this->session->userdata('id_kelas_sekarang');\n $id_kelas_baru = $this->input->post('id_kelas');\n\n // jika id_kelas baru dan id_kelas yang sedang diedit sama biarkan\n // artinya id_kelas tidak diganti\n if ($id_kelas_baru === $id_kelas_sekarang) {\n return TRUE;\n }\n // jika id_kelas yang sedang diupdate (di session) dan yang baru (dari form) tidak sama,\n // artinya id_kelas mau diganti\n // cek di database apakah id_kelas sudah terpakai?\n else {\n // cek database untuk id_kelas yang sama\n $query = $this->db->get_where('kelas', array('id_kelas' => $id_kelas_baru));\n\n // id_kelas sudah dipakai\n if ($query->num_rows() > 0) {\n $this->form_validation->set_message(\n 'is_id_kelas_exist',\n \"Kelas dengan kode $id_kelas_baru sudah terdaftar\"\n );\n return FALSE;\n }\n // id_kelas belum dipakai, OK\n else {\n return TRUE;\n }\n }\n }", "public function checkExistRegiune($nume){\n $sql = \"SELECT nume from regiune WHERE nume = :nume\";\n $stmt = $this->db->pdo->prepare($sql);\n $stmt->bindValue(':nume', $nume);\n $stmt->execute();\n if ($stmt->rowCount()> 0) {\n return true;\n }else{\n return false;\n }\n }", "function recordExists()\n {\n global $objDatabase;\n\n $query = \"\n SELECT 1\n FROM \".DBPREFIX.\"module_shop\".MODULE_INDEX.\"_products\n WHERE id=$this->id\";\n $objResult = $objDatabase->Execute($query);\n if (!$objResult || $objResult->EOF) return false;\n return true;\n }", "function is_kelas_exist()\n {\n $kelas_sekarang = $this->session->userdata('kelas_sekarang');\n $kelas_baru = $this->input->post('kelas');\n\n if ($kelas_baru === $kelas_sekarang) {\n return TRUE;\n } else {\n // cek database untuk nama kelas yang sama\n $query = $this->db->get_where('kelas', array('kelas' => $kelas_baru));\n if ($query->num_rows() > 0) {\n $this->form_validation->set_message(\n 'is_kelas_exist',\n \"Kelas dengan nama $kelas_baru sudah terdaftar\"\n );\n return FALSE;\n } else {\n return TRUE;\n }\n }\n }", "public function existe()\n\t{\n\t\treturn CADModelo::existePorId($this->id);\n\t}", "public function verificarLoteExistente()\r\n {\r\n $datos = $_SESSION['idLote'];\r\n $anoImpositivo = $datos[0]->ano_impositivo;\r\n $rangoInicial = $datos[0]->rango_inicial;\r\n $rangoFinal = $datos[0]->rango_final;\r\n \r\n \r\n $busquedaLote = Calcomania::find()\r\n \r\n\r\n ->select('*')\r\n \r\n ->where('nro_calcomania between '. $rangoInicial .' and '.$rangoFinal)\r\n ->andWhere('estatus =:estatus' , [':estatus' => 0])\r\n ->andWhere('ano_impositivo =:ano_impositivo' , [':ano_impositivo' => $anoImpositivo])\r\n ->all();\r\n\r\n\r\n if ($busquedaLote == true){\r\n return true;\r\n }else{\r\n return false;\r\n }\r\n }", "function usuario_existe($usuario){\n\t$sql = \"SELECT id FROM usuarios WHERE usuario = '$usuario'\";\n\n\t$resultado = query($sql);\n\n\tif(contar_filas($resultado) == 1){\n\n\t\treturn true;\n\t} else{\n\t\treturn false;\n\t}\n\n}", "function existenNotasRegistradas($matricula){\n return false;\n }", "public function testExists() {\n\t\t$table = TableRegistry::get('users');\n\t\t$this->assertTrue($table->exists(['id' => 1]));\n\t\t$this->assertFalse($table->exists(['id' => 501]));\n\t\t$this->assertTrue($table->exists(['id' => 3, 'username' => 'larry']));\n\t}", "function isUnique($field, $value, $id){ \n $fields[$this->name.'.'.$field] = $value; \n \n\t\tif (empty($id)){ \n // add \n \t$conditions = $this->name.\".\".$field.\" = '\".$value.\"'\";\n\t\t\n\t\t}else{ \n // edit \n $fields[$this->name.'.id'] = \"<> $id\"; \n\t\t\t$conditions = '('.$this->name.\".\".$field.\" = '\".$value.\"') AND (\".$this->name.\".id <> $id)\";\n } \n $this->recursive = -1; \n\t\tif ($this->hasAny($conditions)) \n { \n $this->invalidate('unique_'.$field); \n return false; \n } \n else \n return true; \n\t}", "private function existeusuario2($usuario)\n {\n $stmt = $this->con->prepare(\"SELECT id_conductor FROM `descuento` WHERE id_conductor = ?\");\n $stmt->bind_param(\"s\", $usuario);\n $stmt->execute(); \n $stmt->store_result();\n return $stmt->num_rows > 0;\n }", "function existe_ocupacion ($ocupacion){\n\t\t\t\tinclude(\"bd_conection.php\");\n\t\t\t\t$result = @mysqli_query($con, \"SELECT * FROM ocupaciones WHERE ocupacion_tipo LIKE '$ocupacion'\");\n\t\t\t\t$rowcount=mysqli_num_rows($result);\n\t\t\t\tif ($rowcount > 0){\t\n\t\t\t\t\twhile($ocupacionExist = @mysqli_fetch_assoc($result)) { \n\t\t\t\t\t\treturn $ocupacionExist['ocupacion_tipo'];\n\t\t\t\t\t}\n\t\t\t\t}else if ($ocupacion !== \"\") {\n\t\t\t\t\t@mysqli_query($con, \"INSERT INTO ocupaciones (ocupacion_tipo) VALUES ('$ocupacion')\");\t\t\t\n\t\t\t\t\treturn $ocupacion;\n\t\t\t\t}\n\t\t\t}", "function isAlreadyExist(){\n $query = \"SELECT *\n FROM\n \" . $this->db_table . \" \n WHERE\n username='\".$this->username.\"'\";\n // prepare query statement\n $stmt = $this->conn->prepare($query);\n // execute query\n $stmt->execute();\n if($stmt->rowCount() > 0){\n return true;\n }\n else{\n return false;\n }\n }", "public function check_duplicate()\n {\n // set table\n $this->record->table = $this->table;\n // set where\n $this->record->where['classification'] = trim($this->input->post('classification'));\n // execute retrieve\n $this->record->retrieve();\n \n if (!empty($this->record->field))\n echo \"1\"; // duplicate\n else \n echo \"0\";\n }", "function exists() {\n\t return !empty($this->id);\n\t}", "private function _exists() {\n // taky typ uz existuje ?\n $id = $this->equipment->getID();\n if ($id > 0) {\n $this->flash(\"Také vybavenie už existuje.<br/>Presmerované na jeho editáciu.\", \"error\");\n $this->redirect(\"ape/equipment/edit/$id\");\n }\n }", "public static function isExist()\n\t{\n\t\t$fields = self::getFields();\n\t\treturn !empty($fields);\n\t}", "public function exists(){\r\n\r\n\t\ttry {\r\n\t\t\tglobal $ks_db;\r\n\t\t\tglobal $ks_log;\r\n\r\n\t\t\t$bReturn = false;\r\n\r\n\t\t\tif (! isset ( $this->id )) {\r\n\t\t\t\techo \"Fatal Error: Id is not set for the object! Please do \\$objA->setId(\\$dsh_id); in: \" . __METHOD__;\r\n\t\t\t\texit ();\r\n\t\t\t}\r\n\r\n\t\t\t$sql = \"SELECT COUNT(*) as totalRow FROM $this->sqlTable WHERE dsh_id = ?\";\r\n\r\n\t\t\t//count how many rows found\r\n\t\t\t$totalRow = $ks_db->fetchOne ( $sql, $this->id );\r\n\r\n\t\t\tif ($totalRow > 0) {\r\n\t\t\t\t$bReturn = true;\r\n\t\t\t}else {\r\n\t\t\t\t$bReturn = false;\r\n\t\t\t}\r\n\r\n\t\t\treturn $bReturn;\r\n\r\n\t\t} catch(Exception $e) {\r\n\t\t\t$ks_log->info ( 'Fatal Error: ' . __METHOD__ . '. ' . $e->getMessage () );\r\n\t\t\t$ks_log->info ( '<br>SQL Statement: ' . $sql);\r\n\t\t\techo \"Fatal Error: \" . __METHOD__ . '. ' . $e->getMessage ();\r\n\t\t\techo \"SQL Statement: \" . $sql;\r\n\t\t}\r\n\t}", "public function exists()\n {\n $result = self::select(\"*\",0,\"invoice_no = ?\", $this->invoice_no);\n if($result->rowCount() >= 1)\n return true;\n return false;\n }", "private function existeusuario($usuario)\n {\n $stmt = $this->con->prepare(\"SELECT id_conductor FROM `carga` WHERE id_conductor = ?\");\n $stmt->bind_param(\"s\", $usuario);\n $stmt->execute(); \n $stmt->store_result();\n\n return $stmt->num_rows > 0;\n }", "public function check_exists(){\n\t\tif(!empty($this->data['Leave']['leave_from']) && !empty($this->data['Leave']['leave_to'])){\n\t\t\t$from = $this->format_date_save($this->data['Leave']['leave_from']);\n\t\t\t$to = $this->format_date_save($this->data['Leave']['leave_to']);\n\t\t\t$count = $this->find('count', array('conditions' => array('or' => array('leave_from between ? and ?' => array($from, $to),\n\t\t\t'leave_to between ? and ?' => array($from, $to)), 'Leave.users_id' => CakeSession::read('USER.Login.id'), \n\t\t\t'Leave.is_deleted'=> 'N', 'Leave.is_approve !=' => 'R')));\n\t\t\tif($count > 0){\n\t\t\t\treturn false;\n\t\t\t}else{\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "function verificar_existencia_profesor_espacio(){\n\t\t$sql_verif= \"SELECT * FROM \n \t\t\t\tPROF_ESPACIO\n \t\t\tWHERE(\n \t\t\t\tCODESPACIO = '$this->CODESPACIO'\n \t\t\t)\n \t\t\t\";\n\nreturn $this->mysqli->query($sql_verif)->num_rows>=1;\n\n}", "function existe($tabla,$campo,$where){\n\treturn (count(CON::getRow(\"SELECT $campo FROM $tabla $where\"))>0)?true:false;\n}", "function exists ($name)\r\n {\r\n # create encoded_key_string\r\n $encoded_key_string = parent::_encode_key_string(USER_NAME_FIELD_NAME.\"='\".$name.\"'\");\r\n\r\n $record = parent::select_record($encoded_key_string);\r\n if (count($record) > 0)\r\n {\r\n $this->_log->debug(\"user already exists (name=\".$name.\")\");\r\n\r\n return TRUE;\r\n }\r\n else if (strlen($this->get_error_message_str()) == 0)\r\n {\r\n $this->_log->debug(\"user does not exist (name=\".$name.\")\");\r\n\r\n return FALSE;\r\n }\r\n else\r\n return FALSE;\r\n }", "public function existe (){\n\t\t$req = $this->bdd->prepare('SELECT COUNT(id) FROM `Article` WHERE id = ?');\n\t\t$req->execute(array($this->id));\n\t\t$donnees = $req->fetch();\n\t\t$req->closeCursor(); // Important : on libère le curseur pour la prochaine requête\n\t\tif ($donnees[0] == 0){ // Si l'id n'est pas dans la base de donnée, l'article n'existe pas\n\t\t\treturn false;\n\t\t}\n\t\treturn true ;\n\t}", "public function exists(){\r\n\r\n\t\ttry {\r\n\t\t\tglobal $ks_db;\r\n\t\t\tglobal $ks_log;\r\n\t\t\t\r\n\t\t\t$bReturn = false;\r\n\t\t\t\r\n\t\t\tif (! isset ( $this->id )) { \r\n\t\t\t\techo \"Fatal Error: Id is not set for the object! Please do \\$objA->setId(\\$id); in: \" . __METHOD__;\r\n\t\t\t\texit ();\r\n\t\t\t}\r\n\r\n\t\t\t$sql = \"SELECT COUNT(*) as totalRow FROM $this->sqlTable WHERE lp_id = ?\";\r\n\r\n\t\t\t//count how many rows found\r\n\t\t\t$totalRow = $ks_db->fetchOne ( $sql, $this->id );\r\n\t\t\t\r\n\t\t\tif ($totalRow > 0) {\r\n\t\t\t\t$bReturn = true;\r\n\t\t\t}else {\r\n\t\t\t\t$bReturn = false;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn $bReturn;\r\n\t\t\t\r\n\t\t} catch(Exception $e) {\r\n\t\t\t$ks_log->info ( 'Fatal Error: ' . __CLASS__ . '::' . __METHOD__ . '. ' . $e->getMessage () );\r\n\t\t\t$ks_log->info ( '<br>SQL Statement: ' . $sql);\r\n\t\t\techo \"Fatal Error: \" . __CLASS__ . '::' . __METHOD__ . '. ' . $e->getMessage ();\r\n\t\t\techo \"SQL Statement: \" . $sql;\r\n\t\t}\r\n\t}", "private function existeUsuario()\n {\n $con = Conexion::getInstance();\n $sql = \"SELECT user \n FROM usuarios\n WHERE user = '{$this->usuario}' AND estado = 1 AND idUsuario != {$this->Id}\";\n\n $result = mysqli_query($con, $sql);\n\n if($result->num_rows >= 1 && $result != false)\n {\n return false;\n }\n\n return true;\n }", "public function check_exists(){ \n\t\tif(!empty($this->data['HrPermission']['per_from']) && !empty($this->data['HrPermission']['per_to'])){\n\t\t\t$from = $this->format_time_save($this->data['HrPermission']['per_from']);\n\t\t\t$to = $this->format_time_save($this->data['HrPermission']['per_to']);\n\t\t\t$this->unBindModel(array('hasOne' => array('HrPerStatus')));\n\t\t\t$count = $this->find('count', array('conditions' => array('or' => array('per_from between ? and ?' => \n\t\t\tarray($from, $to),'per_to between ? and ?' => array($from, $to)), 'HrPermission.is_deleted' => 'N', 'is_approve !=' => 'R', 'HrPermission.app_users_id' => $this->data['HrPermission']['user_id'],\n\t\t\t'per_date' => $this->format_date_save($this->data['HrPermission']['per_date']))));\n\t\t\tif($count > 0){\n\t\t\t\treturn false;\n\t\t\t}else{\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public function findIsExists($organisasi_id);", "function existen_registros($tabla, $filtro = '') {\n if (!empty($filtro))\n $sql = \"select count(*) from \" . trim($tabla) . \" where {$filtro}\";\n else\n $sql = \"select count(*) from \" . trim($tabla);\n // print_r($sql);exit;\n $bd = new conector_bd();\n $query = $bd->consultar($sql);\n $row = pg_fetch_row($query);\n if ($row[0] > 0)\n return true;\n else\n return false;\n }", "private function checkUserExistence() {\n\t\t\t\t$query = \"select count(email) as count from register where email='$this->email'\";\n\t\t\t\t$resource = returnQueryResult($query);\n\t\t\t\t$result = mysql_fetch_assoc($resource);\n\t\t\t\tif($result['count'] > 0) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t}", "function row_exist($table, $data) {\n\n global $devel, $tablas;\n\n $ids = array(\n 'PRIMARY_KEYS' => false,\n 'UNIQUES_KEYS' => false,\n 'INDEXES_KEYS' => false,\n 'COLUMNS_KEYS' => false,\n );\n extract($ids);\n\n // Buscamos la row por todas sus claves una a una hasta encontrarla\n foreach ($ids as $id => $dummy) {\n\n $keys = keys($table, $id);\n\n if ($keys) {\n\n $$id = true;\n // Si esta vuelta es INDEXES_KEYS o COLUMNS_KEYS y no hemos encontrado nada\n // con PRIMARY_KEYS o UNIQUES_KEYS o estos ultimos no existen en la tabla\n // podemos dar perfectamente por hecho que no existe row.\n if ((($INDEXES_KEYS OR $COLUMNS_KEYS) AND ($PRIMARY_KEYS OR $UNIQUES_KEYS))\n // Si es la vuelta en la que buscamos por COLUMNS_KEYS y ya hemos buscado\n // por INDEXES_KEYS sin encontrar nada, y ademas, en las vueltas de antes\n // con PRIMARY_KEYS o UNIQUES_KEYS tampoco encontramos nada no existe row.\n OR ($INDEXES_KEYS AND $COLUMNS_KEYS AND !$PRIMARY_KEYS AND !$UNIQUES_KEYS)\n // El mismo caso que el anterior pero sin que existan solo PRIMARY_KEYS\n OR ($INDEXES_KEYS AND $COLUMNS_KEYS AND !$PRIMARY_KEYS AND $UNIQUES_KEYS)\n // El mismo caso que el anterior pero sin que existan solo UNIQUES_KEYS\n OR ($INDEXES_KEYS AND $COLUMNS_KEYS AND $PRIMARY_KEYS AND !$UNIQUES_KEYS)\n // O también si hemos llegado a la vuelta COLUMNS_KEYS y no encontramos\n // nada en PRIMARY_KEYS ni UNIQUES_KEYS ni INDEXES_KEYS no existe row\n OR (!$INDEXES_KEYS AND $COLUMNS_KEYS AND !$PRIMARY_KEYS AND !$UNIQUES_KEYS)\n // El mismo caso que el anterior pero sin que existan solo PRIMARY_KEYS\n OR (!$INDEXES_KEYS AND $COLUMNS_KEYS AND !$PRIMARY_KEYS AND $UNIQUES_KEYS)\n // El mismo caso que el anterior pero sin que existan solo UNIQUES_KEYS\n OR (!$INDEXES_KEYS AND $COLUMNS_KEYS AND $PRIMARY_KEYS AND !$UNIQUES_KEYS)) {\n return false;\n }\n\n $WHERE = where($keys, $data);\n $query = \"SELECT * FROM `$table` WHERE $WHERE\";\n $result = db_fetch(db_query($devel, $query));\n\n if ($result) {\n return true;\n }\n }\n }\n\n // Si no encontramos row es que no existe\n return false;\n}", "public function is_transaction_exist() {\n\n $transaction = $this->ci->generic_model->retrieve_one(\n \"transaction_general\",\n array(\n \"package_id\" => $this->ci->input->post(\"package_id\"),\n \"package_type\" => $this->ci->input->post(\"package_type\")\n )\n );\n\n if ($transaction) { // there exists an object.\n return TRUE;\n } else { // object is not found.\n $this->ci->form_validation->set_message(\"is_transaction_exist\", \"Paket belum dibeli.\");\n return FALSE;\n }\n }", "function isReceiptExist()\n\t{\n\t\tglobal $db;\n\n\t\t$query = 'SELECT receipt_id FROM '.receipt_table.' WHERE receipt_id = '.$this->receipt_id;\n\t\t$db->query($query);\n\t\t$result = $db->query($query);\n\n\t\tif(!$result)\n\t\t{\n\t\t\t$err_info = $db->errorInfo();\n\t\t\techo $err_info[2];\n\t\t\terror_log('Function : isReceiptExist, Class : receipt, '.$err_info[2]);\n\t\t\texit;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$arr = $result->fetch(PDO::FETCH_ASSOC);\n\t\t\t$receipt_id = $arr['receipt_id'];\n\t\t}\n\t\treturn $receipt_id;\n\t}", "public function exist(Usuarios $usuarios) {\n\n \n $exist = false;\n try {\n $sql = sprintf(\"select * from mydb.usuarios where idusuarios = %s \",\n $this->labAdodb->Param(\"idusuarios\"));\n $sqlParam = $this->labAdodb->Prepare($sql);\n\n $valores = array();\n $valores[\"idusuarios\"] = $usuarios->getidusuarios();\n\n $resultSql = $this->labAdodb->Execute($sqlParam, $valores) or die($this->labAdodb->ErrorMsg());\n if ($resultSql->RecordCount() > 0) {\n $exist = true;\n }\n return $exist;\n } catch (Exception $e) {\n throw new Exception('No se pudo obtener el registro (Error generado en el metodo exist de la clase UsuariosDao), error:'.$e->getMessage());\n }\n }", "public function checkTransactionAlreadyExists($data) { \n\t\t$transaction1=new Transaction(); \n $transaction=$transaction1->hasAny(array('trans_date'=>$this->data['Transaction']['trans_date'], 'trans_desc'=>$this->data['Transaction']['trans_desc']));\n\t\tif($transaction == \"1\"){\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn true;\n\t\t}\t\t\n }", "private function correctDataCreate($dataRequest){\n if(!property_exists((object) $dataRequest,'idPredio')){\n return false;\n }\n if(!property_exists((object) $dataRequest,'idCompetencia')){\n return false;\n }\n return true;\n }", "function existe($funcion) {\n $f = $this->consultar($funcion);\n if (isset($f[\"funcion\"]) && $f[\"funcion\"] == $funcion) {\n $existe = true;\n } else {\n $existe = false;\n }\n return($existe);\n }", "function exists($conn, $fieldName, $fieldValue) {\n\t$sql = \"select count(*) from users where $fieldName='$fieldValue'\";\n\t$result = $conn->query($sql);\n\t$row = $result->fetch_assoc();\n\t$count = $row['count(*)'];\n\tif($count > 0) {\n\t\treturn true;\n\t} else {\n\t\treturn false;\n\t}\n}", "public function checkData()\n\t{\n\t\t$result = parent::checkData();\n\t\t$query = (new \\App\\Db\\Query())->from($this->baseTable)->where(['server_id' => $this->get('server_id'), 'user_name' => $this->get('user_name')]);\n\t\tif ($this->getId()) {\n\t\t\t$query->andWhere(['<>', 'id', $this->getId()]);\n\t\t}\n\t\treturn !$result && $query->exists() ? 'LBL_DUPLICATE_LOGIN' : $result;\n\t}", "function existeUsuario($usuario){\n\tif (hasKey(BUCKET_USUARIOS,$usuario))\n\t\treturn true;\n\telse\n\t\treturn false;\n}", "protected function exists() {}", "public function exists() {\n\t\tglobal $config;\n\t\t\n\t\tif(!empty($this->data['id']))\n\t\t\t$where = 'id = '.$this->data['id'];\n\t\telseif(!empty($this->data['fbid']))\n\t\t\t$where = 'fbid = '.$this->data['fbid'];\n\t\n\t\t$result = $config['database']->query(\"\n\t\t\tSELECT id\n\t\t\tFROM nuusers\n\t\t\tWHERE $where\n\t\t\tLIMIT 1\n\t\t\");\n\t\t\n\t\treturn $result->num_rows;\n\t}", "function exist() {\n\t\t\t$exist = $this->db->prepare(\"SELECT 1 FROM HISTORIC WHERE nameFile = ? AND idArt = ? \");\n\t\t\t$exist->execute(array($this->nameFile, $this->idArt));\n\t\t\treturn count($exist->fetchAll()) >= 1;\n\t\t}", "public function exists() {\n\t\treturn !is_null($this->id);\n\t}", "private function exist() {\n $stmt = $this->pdo->prepare(\"SELECT * FROM $this->table WHERE \"\n . \"product_category_id= :cat_id and product_id= :prod_id \");\n $stmt->bindValue(\":cat_id\", $this->product_category_id, \\PDO::PARAM_INT);\n $stmt->bindValue(\":prod_id\", $this->product_id, \\PDO::PARAM_INT);\n $stmt->execute();\n return $stmt->fetch();\n }", "public function checkExistNume($nume){\n $sql = \"SELECT nume from servicii_prestate WHERE nume = :nume\";\n $stmt = $this->db->pdo->prepare($sql);\n $stmt->bindValue(':nume', $nume);\n $stmt->execute();\n if ($stmt->rowCount()> 0) {\n return true;\n }else{\n return false;\n }\n }", "function checkUserIdBL() {\n\t $isExisting = false;\n\t // If the user exists\n\t if ( checkUserIdDAL($_POST['userId']) )\n\t {\n\t\t $isExisting = true;\n\t }\n\t return $isExisting;\n }", "private function process_exists($value, $param = null)\n {\n $fields = explode(',', $param, 3);\n \n if (count($fields) < 2 || count($fields) > 3) throw new \\Exception(\"Exists validator: incorrect param count\");\n \n if (count($fields) == 2) {\n // Use the default db connection\n $conn = Config::get('database.default');\n array_unshift($fields, $conn);\n }\n \n list($connection, $table, $field) = $fields;\n \n $result = Database::connection($connection)->table($table)->where($field, '=', $value)->count();\n \n return $result == 0 ? false : true;\n }", "function validate_row_exists(array $inputs, array &$form): bool\n{\n if(App::$db->rowExists('wall', $inputs['id'])){\n return true;\n }\n\n return false;\n}", "public function exists(){\n\t\treturn ($this->count() > 0);\n\t}", "function checkForDuplicateUnique(){\n $_ufields_arr = explode(\",\", $this->listSettings->GetItem(\"MAIN\", \"UNIQUE_FIELDS\"));\n $check_fields = true;\n for ($i = 0; $i < sizeof($_ufields_arr); $i ++) {\n list ($_field[$i], $_value[$i]) = explode(\"=\", $_ufields_arr[$i]);\n if (strlen($_value[$i])) {\n $check_fields = false;\n $_query_arr[$_field[$i]] = $_value[$i];\n if ($this->_data[$_field[$i]] == $_value[$i]) {\n $check_fields = true;\n }\n }\n else {\n $_query_arr[$_field[$i]] = $this->_data[$_field[$i]];\n }\n }\n if ($check_fields) {\n $_data = $this->Storage->GetByFields($_query_arr, null);\n }\n else {\n $_data = array();\n }\n if (! empty($_data)) {\n if (($this->item_id != $_data[$this->key_field])) {\n if ($this->Kernel->Errors->HasItem($this->library_ID, \"RECORD_EXISTS\")) {\n $_error_section = $this->library_ID;\n }\n else {\n $_error_section = \"GlobalErrors\";\n }\n $this->validator->SetCustomError($_ufields_arr, \"RECORD_EXISTS\", $_error_section);\n }\n }\n }", "public function exist($id){\n $rq = \"SELECT * FROM Objets WHERE id = :id\";\n $stmt = $this->pdo->prepare($rq);\n $data = array(\":id\" => $id);\n if(!$stmt->execute($data)){\n throw new Exception($pdo->errorInfo());\n }\n if($stmt->rowCount() > 0){\n return true;\n } else {\n $this->erreur = \"Objet inexistant\";\n return false;\n }\n }", "public function Exists();", "public function isExistById($id){\n//\t\tprint_r(\"##Count=##\");\n//\t\tprint_r($this->find($id)->count());\n return $this->find($id)->count() ;\n }", "function existe($tabla,$campo,$where){\n\t$query=$GLOBALS['cn']->query('SELECT '.$campo.' FROM '.$tabla.' '.$where);\n\treturn (mysql_num_rows($query)>0)?true:false;\n}", "function no_existe_versiculo_en_referencia($versiculo_id, $cita)\n{\n $dato = torrefuerte\\Models\\Referencia::where('versiculo_id', $versiculo_id)\n ->where('cita', $cita)->first();\n\n if( is_null($dato)){\n return true;\n }else{\n return false;\n }\n}", "public function return_existing_if_exists()\n {\n $author = factory( Author::class )->create();\n $data = array_add( $this->authorDataFormat, 'data.id', $author->id );\n\n $newAuthor = $this->dispatch( new StoreAuthor( $data ) );\n\n $this->assertEquals( $author->id, $newAuthor->id );\n }", "function exists()\r\n\t{\r\n\t\treturn ( ! empty($this->id));\r\n\t}", "public function exist($username){\n $conditions = array('Utilisateur.username'=>$username);\n $obj = $this->Utilisateur->find('first',array('conditions'=>$conditions));\n $exist = count($obj) > 0 ? $obj['Utilisateur']['id'] : false;\n return $exist;\n }", "public function is_unique($id, $feild, $value)\r\n {\r\n $results = parent::get_by($feild, $value);\r\n if ($results == null) {\r\n return true;\r\n } else {\r\n if ($results->id == $id) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }\r\n }", "private function is_duplicate () {\n $email = $this->payload['email'];\n $facebook_id = '0';\n if (!empty($this->payload['facebook_id'])) {\n $facebook_id = $this->payload['facebook_id'];\n }\n $sql = \"SELECT id FROM users WHERE email='$email' OR facebook_id='$facebook_id'\";\n $sql = $this->conn->query($sql);\n\n return $sql->num_rows > 0;\n }", "function exist() {\n\t\t\t$exist = $this->db->prepare(\"SELECT 1 FROM REPORT WHERE titleFileVideo = ? AND idArt = ?\");\n\t\t\t$exist->execute(array($this->titleFileVideo, $this->idArt));\n\t\t\treturn count($exist->fetchAll()) >= 1;\n\t\t}", "public function isExistPeriode($idMois, $idVille){\n $database = new database;\n $connection = $database->getConnection();\n $sql =(\"select * from periode where idVille = \".$idVille.\" and mois = \".$idMois.\";\");\n $request = $connection->prepare($sql);\n $request->execute();\n $resultat = $request->rowCount();\n // var_dump($resultat);\n $resultat = ($resultat > 0) ? true : false;\n return $resultat ;\n }", "function userIdExists($id) {\n return valueExists('users', 'id', $id);\n}", "function objetosDuplicados($param){\r\n\t\tswitch ($param){\r\n\t\t\tcase 1:\r\n\t\t\t\treturn \"El usuario ya existe en el sistema\";\r\n\t\t\t\tbreak;\r\n\t\t\tcase 2:\r\n\t\t\t\treturn \"El libro ya existe en el sistema\";\r\n\t\t\t\tbreak;\r\n\t\t\tcase 3:\r\n\t\t\t\treturn \"El ejemplar ya existe en el sistema\";\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\treturn \"Error de Categoria. Sin embargo el objeto ya existe en el sistema\";\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t}", "function is_exists($id) {\n $query = \"SELECT\n id\n FROM\n \" . $this->table_name . \" \n WHERE\n id = ?\n LIMIT\n 0,1\";\n \n // prepare query statement\n $stmt = $this->conn->prepare( $query );\n \n // bind id of user to be updated\n $stmt->bindParam(1, $id);\n \n // execute query\n $stmt->execute();\n \n // get retrieved row\n return ($stmt->rowCount() > 0);\n }", "public function esiste()\n {\n global $dbconn;\n $query = \"SELECT * FROM comuni WHERE id_comune='{$this->id_comune}'\";\n $comando = $dbconn->prepare($query);\n $esegui = $comando->execute();\n\n return ($esegui == true && $comando->fetch(PDO::FETCH_ASSOC) == true);\n }", "public function is_duplicate() {\n\n\t\t$post = $this->input->post();\n\n\t\t// Filter by name.\n\t\t$this->db->where( 'name', trim( $post['name'] ) );\n\n\t\t// Filter by church.\n\t\t$this->db->where( 'church', (int) $post['church'] );\n\n\t\t// Filter by age.\n\t\tif ( ! empty( $post['age'] ) ) {\n\t\t\t$this->db->where( 'age', (int) $post['age'] );\n\t\t}\n\n\t\t// Filter by gender.\n\t\tif ( ! empty( $post['gender'] ) ) {\n\t\t\t$this->db->where( 'gender', $post['gender'] );\n\t\t}\n\n\t\t$query = $this->db->get( 'registration' );\n\n\t\treturn $query->num_rows() > 0;\n\n\t}", "function checkValuesAlreadyEntered(){\n\t\t$sql = \"SELECT COUNT(*)AS number FROM Task WHERE token='\".$_SESSION['token'].\"' LIMIT 1\";\n\t\t$stmt = self::$DB->prepare($sql);\n\t\tif($stmt->execute()){\n\t\t\t$stmt = $stmt->fetch();\n\t\t\tif($stmt['number']==0){\n\t\t\t\treturn true;\n\t\t\t}else{\n\t\t\t\t$arr = array('success' => 1, 'error_msg' => 'Already entered');\n\t\t\t\techo json_encode($arr);\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}else{\n\t\t\t$arr = array('success' => 1, 'error_msg' => 'Already entered');\n\t\t\techo json_encode($arr);\n\t\t\treturn false;\n\t\t}\n\t}", "public function existeUsuario($arrParam)\n {\n $arrFind = array();\n\n foreach ($arrParam as $key => $param) {\n $arrFind[$this->camelize($key)] = $param;\n }\n $arrFind['usrStatus'] = 'Ativo';\n $find = $this->getRepository()->findBy($arrFind);\n\n if ($find == null) {\n return false;\n } else {\n return true;\n }\n }", "function Boolean_Existencia_Usuario($username,$email)\n{\n\t$query = consultar(sprintf(\"SELECT email_usuario,usuario FROM tb_usuarios WHERE email_usuario='%s' or usuario='%s'\",escape($username),escape($email)));\n\tif(Int_consultaVacia($query)>0)\n\t{\n\t\treturn array(false,'El usuario o el email ya existen, intenta nuevamente.');\n\t}else\n\t{\n\t\treturn array(true,'');\t\n\t}\n\n}", "function is_exists( $data, $table )\n {\n\t$this->db->where( $data );\n\t$query = $this->db->get($table);\n\t\n\tif ($query->num_rows() > 0){\n\t\treturn true;\n\t}\n\telse{\n\t\treturn false;\n\t}\n }", "function IfExists($EquipmentId) {\r\n $conn = conn();\r\n $stmt = $conn->prepare(\"SELECT * FROM account WHERE AccountId = '$AccountId' ;\");\r\n $stmt->execute();\r\n $result = $stmt->fetchAll();\r\n if (($result)) {\r\n return 1;\r\n }\r\n return 0;\r\n $conn = NULL;\r\n }", "public function checkDuplicates(){\n\t\t$db = new database();\n\t\t$gebruiker = $db->select(\"*\", \"klant\", 1, ['this'=>\"gebruikersnaam\", \"that\"=>$this->gebruikersnaam]);\n\t\t//var_dump($gebruiker);\n\t\tif(!empty($gebruiker[0])){\n\t\t\treturn true;\n\t\t}\n\n\t}", "public function existeComentario($idComentario, $idAnuncio){ \n $query = \"SELECT idComentario FROM final_comentario WHERE idComentario='\".$idComentario.\"' AND idAnuncio='\".$idAnuncio.\"'\"; \n return mysqli_num_rows($this->con->action($query))> 0 ? True : False; \n }", "function userexist($field, $value)\n\t\t{\n\t\t\t$value = \"'\".$value.\"'\";\n\t\t\t\n\t\t\t$sql = $this->conn_id->query(\"select * from users where \".$field.\" = \".$value );\n\t\t\t$r = $sql->fetchALL(PDO::FETCH_ASSOC);\n\t\t\tif(!empty($r))\n\t\t\t{\n\t\t\t\t$sql = $this->conn_id->query(\"select name,hash_key from users where \".$field.\" = \".$value );\n\t\t\t\t$r = $sql->fetchALL(PDO::FETCH_ASSOC);\n\t\t\t\treturn $r;\n\t\t\t}\n\t\t\telse\n\t\t\t\treturn FALSE;\n\t\t}", "function checkUnique( $vals ) {\n $c = new Criteria();\n \n foreach ($vals as $key =>$value) {\n $name = \"LogAkamailogPeer::\".strtoupper($key);\n eval(\"\\$c->add(\".$name.\",\\$value);\");\n }\n \n $c->setDistinct();\n $LogAkamailog = LogAkamailogPeer::doSelect($c);\n \n if (count($LogAkamailog) >= 1) {\n $this ->LogAkamailog = $LogAkamailog[0];\n return true;\n } else {\n $this ->LogAkamailog = new LogAkamailog();\n return false;\n }\n }", "function isFeeExiste($date, $nature, $amount, $site_id)\n {\n global $db;\n $existe = false;\n $reqFee = $db->prepare('SELECT * FROM fees WHERE date = ? AND nature = ? AND amount = ? AND site_id = ?');\n $reqFee->execute(array($date, $nature, $amount, $site_id));\n if ($reqFee->rowCount() >= 1) {\n $existe = true;\n }\n return $existe;\n }", "function checkUnique( $vals ) {\n $c = new Criteria();\n \n foreach ($vals as $key =>$value) {\n $name = \"FilmPeer::\".strtoupper($key);\n eval(\"\\$c->add(\".$name.\",\\$value);\");\n }\n \n $c->setDistinct();\n $Film = FilmPeer::doSelect($c);\n \n if (count($Film) >= 1) {\n $this ->Film = $Film[0];\n return true;\n } else {\n $this ->Film = new Film();\n return false;\n }\n }", "public function isRegistered() {\n //1ero. es un registro completo o 2do es un\n //registro incompleto.\n if (is_file(\"/etc/elastix.key\")) { \n if($this->columnExists(\"has_account\")) {\n $result = $this->_DB->getFirstRowQuery(\"select has_account from register;\", true);\n if (is_array($result) && count($result)>0){\n return ($result['has_account']==\"yes\")?\"yes-all\":\"yes-inc\";\n }\n else return \"yes-inc\";\n }\n else {\n //intento crear la columna \n if(!$this->addColumnTableRegister(\"has_account char(3) default 'no'\")) {\n $this->errMsg = \"The column 'has_account' does not exist and could not be created\";\n return \"yes-inc\";\n }\n\n //Actualizo el valor de la columna\n //con la info desde webservice\n $dataWebService = $this->getDataServerRegistration();\n if(!(is_array($dataWebService) && count($dataWebService)>0)) // no se puedo conectar al webservice\n return \"yes-inc\";\n \n if($this->updateHasAccount(1,$dataWebService['has_account']))\n return ($dataWebService['has_account']==\"yes\")?\"yes-all\":\"yes-inc\";\n else return \"yes-inc\";\n }\n }\n else return \"no\";\n }", "private function checkPrimaryKey($load) {\n\t\t$TableConfig = $this->config_crud;\n\t\tif ($TableConfig):\n\t\t\tforeach ($TableConfig->fields as $name=>$field):\n\t\t\t\tif (@$field->key== \"PRI\"):\n\t\t\t\t\tif (!($this->input->get($name))):\n\t\t\t\t\t\treturn false;\n\t\t\t\t\telse:\n\t\t\t\t\t\t$this->data[\"x_\".$name] = $this->input->get($name);\n\t\t\t\t\t\t$this->primaryKey[$name] = $this->input->get($name);\n\t\t\t\t\tendif;\n\t\t\t\tendif;\n\t\t\tendforeach;\n\t\tendif;\n\t\t\n\t\treturn true;\n\t}", "function user_exist($uname)\n {\n $this->removeOldTemps();\n \n $res = $this->query(\"SELECT * FROM `{$this->userTable}` WHERE `{$this->tbFields1['email']}` = '\".$uname.\"'\");\n $res2 = $this->query(\"SELECT * FROM `{$this->userTempTable}` WHERE `{$this->tbTmpFields['email']}` = '\".$uname.\"'\"); \n \n if((!$res && !$res2) || (mysql_num_rows($res) == 0 && mysql_num_rows($res2) == 0)){ // no records \n return false;\n }\n return true; \n }", "public function exists()\r\n {\r\n $sql = $this->builder->exists($this);\r\n\r\n $rs = $this->db->select_one($sql, $this->get_binds_values());\r\n\r\n $row = (array) $rs;\r\n\r\n return (bool) $row['exist'];\r\n }", "function lukasid_exists($lid = '')\r\n\t{\r\n\t\t$this->db->where('lukasid', $lid);\r\n\t\t$query = $this->db->get('users');\r\n\t\tif($query->num_rows == 1)\r\n\t\t{\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "function existeGrupo($base, $id, $id_asignatura)\n{\n $query = \"SELECT `id` FROM `grupos`\n WHERE `id`=\" . $id . \" AND `id_asignatura`=\" . $id_asignatura . \";\";\n $resultado = $base->query($query);\n if (empty($resultado->fetchAll())) {\n return false;\n }\n $resultado->closeCursor();\n return true;\n}", "public function testExisteSolicitud(){\n /*** CREAR REGISTRO */\n $user_id = 3;\n $controlador = new SolicitudesController();\n $nuevasolic = $controlador->crearSolicitud(0, $user_id, 4);\n\n $consultarsolicitud = Solicitud::where('solicitud_id', $nuevasolic->solicitud_id)->first();\n\n /** EJECUTAR LA PRUEBA */\n $this->assertEquals($nuevasolic->solicitud_id, $consultarsolicitud->solicitud_id);\n $nuevasolic->delete();\n }", "function IfExists($natregno) {\r\n $conn = conn();\r\n $sql = \"SELECT * FROM users WHERE national_id='$natregno'\";\r\n $stmt = $conn->prepare($sql);\r\n $stmt->execute();\r\n $result = $stmt->fetchAll();\r\n if (!empty($result)) {\r\n return 1;\r\n }\r\n return 0;\r\n $conn = NULL;\r\n }", "public function esiste() {\n return isset($this->ruolo);\n }", "function exists()\n {\n return false;\n }", "public function existsField($key){ return array_key_exists($key,$this->field_map); }", "public function thisTopicWasAlreadyExisted():bool\n {\n \t$column = $this->topic->getColumn();\n\t\t$tableName = $this->topic->getTableName();\n\t\t$columIdSubCat = 'id_sub_category';\n\n\t\t$is_exist = (int)(new Requestor())->getContentWith2Where('id', 'f_topics', 'content', $this->topic->getContent(), 'id_sub_category', $this->topic->getIdSubCategory());\n\n\t\tif ($is_exist > 0) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\n }" ]
[ "0.74758196", "0.72179645", "0.6892471", "0.6887838", "0.68767864", "0.6837509", "0.65865266", "0.6490537", "0.6486497", "0.6468785", "0.6457591", "0.64566183", "0.6442757", "0.64008415", "0.6395177", "0.6394163", "0.6357661", "0.63537365", "0.6338563", "0.63333964", "0.63222045", "0.6321945", "0.63148975", "0.630106", "0.62982863", "0.62908643", "0.62903005", "0.6283703", "0.6254041", "0.62513745", "0.62468004", "0.62368274", "0.62081444", "0.6200137", "0.6197991", "0.61979693", "0.6197034", "0.6193286", "0.6181764", "0.61817515", "0.61750555", "0.61321944", "0.6114736", "0.6109121", "0.6108939", "0.61070067", "0.6099019", "0.60968614", "0.60939497", "0.6092384", "0.60876274", "0.6075167", "0.6075035", "0.6070641", "0.6070475", "0.6062329", "0.60564613", "0.60352653", "0.60296047", "0.6028891", "0.6014338", "0.60077375", "0.60038584", "0.59991467", "0.59980357", "0.5992145", "0.59897685", "0.5988565", "0.5983795", "0.59664124", "0.5960089", "0.5960025", "0.59600145", "0.5959232", "0.59561056", "0.5948128", "0.59471244", "0.59443647", "0.59377325", "0.5936915", "0.59303474", "0.59301096", "0.59265924", "0.5921783", "0.5921648", "0.59198314", "0.59189546", "0.5917322", "0.59143984", "0.5903199", "0.5899121", "0.58957726", "0.58939147", "0.58924574", "0.5890023", "0.58882535", "0.5886008", "0.5878878", "0.5878824", "0.5872618" ]
0.60156137
60
metodo para insertar un nuevo registro
public function create($params) { if ($this->exist_unike_keys($params)) { echo '<script>console.log("modelo: ya existe la clave unica")</script>'; return false; } $sqlInsert = "INSERT INTO " . $this->table_name . " ("; $sqlValues = "VALUES ("; $db_params = array(); $first = true; foreach ($this->table_fields as $table_field) { $name = $table_field->get_name(); if($table_field->get_type()==Column::$COLUMN_TYPE_FILE || $table_field->get_type()==Column::$COLUMN_TYPE_PHOTO){ if(!empty($_FILES[$name]["name"])){ if(!empty($_FILES[$name]["type"])){ $fileName = time().'_'.$_FILES[$name]['name']; $sourcePath = $_FILES[$name]['tmp_name']; $targetPath = UPLOADS_DIR.$fileName; if(move_uploaded_file($sourcePath,$targetPath)){ $params[$name] = $fileName; } } } } if (!empty($params[$name]) && $table_field->get_column_in_db() == true && strlen($params[$name]) > 0 ) { $sqlInsert .= ($first == false ? " , `" : "`") . $name ."`"; $sqlValues .= ($first == false ? " , " : "") . ":" . $name; $db_params[$name] = $params[$name]; $first = false; } } $sqlInsert .= ") "; $sqlValues .= ") "; $req = Database::getBdd()->prepare($sqlInsert.$sqlValues); $result= $req->execute($db_params); try{ $err = $req->errorInfo(); /* $err[0] = sqlstate; $err[1] = error code; $err[2] = error message */ if($err && isset($err[2])){ echo 'Database Error: '.$err[2]. '<br/>sql :'.$sqlInsert.$sqlValues. '</br>params: '; } }catch(Exception $e){ echo 'Exception: '.$e->getMessage(); } return $result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function insert() {\n $conexion = StorianDB::connectDB();\n $insercion = \"INSERT INTO cuento (titulo, contenido, autor) VALUES (\\\"\".$this->titulo.\"\\\", \\\"\".$this->contenido.\"\\\", \\\"\".$this->autor.\"\\\")\";\n $conexion->exec($insercion);\n }", "public function insert(registroEquipo $reEquipo);", "public function insertar($objeto){\r\n\t}", "protected function createNew() {\n $this->db->insert($this->tableName, $this->mapToDatabase());\n $this->id = $this->db->insert_id();\n }", "public function insert($usuario_has_hojaruta);", "public function insert($producto);", "function crear_reserva($reserva) {\n $this->db->insert('edicion', $reserva);\n }", "public function insert(){\n\t\tif(!mysql_query(\"INSERT INTO $this->tabla (nombre) VALUES ('$this->nombre')\")){\n\t\t\tthrow new Exception('Error insertando renglón');\n\t\t}\n\t}", "public function guardarRegistro2(){\r\n $this->database->execute(\"INSERT INTO empleados (nombreApellido, dni, email, pass) VALUES ('rodri', '12345678', '[email protected]', '123456'\");\r\n }", "public function add() {\n\n $sql = \"INSERT INTO persona(id,nombre,apellido_paterno,apellido_materno,estado_salud,telefono,ubicacion)\n VALUES(null,'{$this->nombre}','{$this->apellido_paterno}','{$this->apellido_materno}',\n '{$this->estado_salud}','{$this->telefono}','{$this->ubicacion}')\";\n $this->con->consultaSimple($sql);\n }", "function insert(){\n //Declarar variables para recibir los datos del formuario nuevo\n $nombre=$_POST['nombre'];\n $apellido=$_POST['apellido'];\n $telefono=$_POST['telefono'];\n\n $this->model->insert(['nombre'=>$nombre,'apellido'=>$apellido,'telefono'=>$telefono]);\n $this->index();\n }", "public function insert($tarConvenio);", "public function insert() {\n $sql = \"INSERT INTO contratos (numero_contrato, objeto_contrato, presupuesto, fecha_estimada_finalizacion)\n VALUES (:numero_contrato, :objeto_contrato, :presupuesto, :fecha_estimada_finalizacion)\";\n $args = array(\n \":numero_contrato\" => $this->numeroContrato,\n \":objeto_contrato\" => $this->objetoContrato,\n \":presupuesto\" => $this->presupuesto,\n \":fecha_estimada_finalizacion\" => $this->fechaEstimadaFinalizacion,\n );\n $stmt = $this->executeQuery($sql, $args);\n\n if ($stmt) {\n $this->id = $this->getConnection()->lastInsertId();\n }\n\n return !$stmt ? false : true;\n }", "function inserir() {\n\t\t$this->sql = mysql_query(\"INSERT INTO suporte (user_cad, data_cad, id_regiao, exibicao, tipo, prioridade, assunto, mensagem, arquivo, status, status_reg,suporte_pagina)\n\t\t\t\t\t VALUES\t('$this->id_user_cad ','$this->data_cad','$this->id_regiao', '$this->exibicao', '$this->tipo','$this->prioridade', '$this->assunto', '$this->menssagem', '$this->tipo_arquivo','1','1','$this->pagina');\") or die(mysql_error());\n\t\t\t\t\t \n\t\t\t\t\t \n\t\t\t\n\t\t}", "public function inserir()\n {\n }", "public function insertEstudiante_post() {\n\t\t$nombre = $this->input->post(\"txtNombre\");\n\t\t$apellido = $this->input->post(\"txtApellido\");\n\t\t$carrera = $this->input->post(\"txtCarrera\");\n $carnet = $this->input->post(\"txtCarnet\");\n $pass = $this->input->post(\"txtPassword\");\n\n\t\t//mandar los input a arreglo y campos de la bd\n\t\t$data = array(\n\t\t\t'nombre' => $nombre ,\n\t\t\t'apellido' => $apellido ,\n\t\t\t'carrera'=>$carrera,\n 'carnet'=>$carnet,\n 'password'=>$pass,\n\t\t );\n\n if($this->EstudianteModel->insertEstudiante($data))\n $this->response(array('status' => 'exito'));\n else \n $this->response(array('status' => 'fallo'));\n }", "protected function saveInsert()\n {\n }", "public function insert($contenido);", "public function insertar() {\n $this->consultaValores->id=null;\n return $this->ejecutarConsulta('insertar');\n }", "private function insertNew() {\n $sth=NULL;\n $array=array();\n $query=\"INSERT INTO table_spectacles (libelle) VALUES (?)\";\n $sth=$this->dbh->prepare($query);\n $array=array($this->libelle);\n $sth->execute($array);\n $this->message=\"\\\"\".$this->getLibelle().\"\\\" enregistré !\";\n $this->blank();\n $this->test=1;\n }", "public function insert( $objet);", "public function insertar($nombreMiembro,$apellido1Miembro,$apellido2Miembro,$correo,$contrasenna,$rol){ \n $miembro = new Miembro();\n \n $miembro->nombreMiembro = $nombreMiembro;\n $miembro->apellido1Miembro = $apellido1Miembro;\n $miembro->apellido2Miembro = $apellido2Miembro;\n $miembro->correo = $correo;\n $miembro->contrasenna = $contrasenna;\n $miembro->rol = $rol;\n \n $miembro->save();\n }", "public function insert($datos_){\n $id=$datos_->getId();\n$nombre_proyecto=$datos_->getNombre_proyecto();\n$nombre_actividad=$datos_->getNombre_actividad();\n$modalidad_participacion=$datos_->getModalidad_participacion();\n$responsable=$datos_->getResponsable();\n$fecha_realizacion=$datos_->getFecha_realizacion();\n$producto=$datos_->getProducto();\n$semillero_id=$datos_->getSemillero_id()->getId();\n\n try {\n $sql= \"INSERT INTO `datos_`( `id`, `nombre_proyecto`, `nombre_actividad`, `modalidad_participacion`, `responsable`, `fecha_realizacion`, `producto`, `semillero_id`)\"\n .\"VALUES ('$id','$nombre_proyecto','$nombre_actividad','$modalidad_participacion','$responsable','$fecha_realizacion','$producto','$semillero_id')\";\n return $this->insertarConsulta($sql);\n } catch (SQLException $e) {\n throw new Exception('Primary key is null');\n }\n }", "public function insert() {\r\n // Rôle : insérer l'objet courant dans la base de données\r\n // Retour : true / false\r\n // Paramètre : aucun\r\n \r\n // Vérification de l'id\r\n if (!empty($this->getId())) {\r\n debug(get_class($this).\"->insert() : l'objet courant a déjà un id\");\r\n return false;\r\n }\r\n \r\n // Construction de la requête\r\n $sql = \"INSERT INTO `\".$this->getTable().\"` SET \";\r\n $param = [];\r\n $start = true;\r\n \r\n foreach ($this->getChamps() as $nom => $champs) {\r\n if ($nom === $this->getPrimaryKey() or !$champs->getAttribut(\"inBdd\")) {\r\n continue;\r\n }\r\n if ($start) {\r\n $sql .= \"`$nom` = :$nom\";\r\n $start = false;\r\n } else {\r\n $sql .= \", `$nom` = :$nom\";\r\n }\r\n \r\n $param[\":$nom\"] = $champs->getValue();\r\n }\r\n \r\n $sql .= \";\";\r\n \r\n // Préparation de la requête\r\n $req = self::getBdd()->prepare($sql);\r\n \r\n // Exécution de la requête\r\n if (!$req->execute($param)) {\r\n debug(get_class($this).\"->insert() : échec de la requête $sql\");\r\n return false;\r\n }\r\n \r\n // Assignation de l'id\r\n if ($req->rowCount() === 1) {\r\n $this->set($this->getPrimaryKey(), self::getBdd()->lastInsertId());\r\n return true;\r\n } else {\r\n debug(get_class($this).\"->insert() : aucune entrée, ou bien plus d'une entrée, créée\");\r\n return false;\r\n }\r\n }", "public function insert($tienda);", "public function insert($titulos){\n// $id=$titulos->getId();\n$descripcion=$titulos->getDescripcion();\n$universidad_id=$titulos->getUniversidad_id();\n$docente_id=$titulos->getDocente_id()->getId();\n\n try {\n $sql= \"INSERT INTO `titulos`( `descripcion`, `universidad`, `docente_id`)\"\n .\"VALUES ('$descripcion','$universidad_id','$docente_id')\";\n return $this->insertarConsulta($sql);\n } catch (SQLException $e) {\n throw new Exception('Primary key is null');\n }\n }", "public function insert() {\n\t\t$db = self::getDB();\n\t\t$sql = \"INSERT INTO posts\n\t\t\t\t\t(nome, conteudo, fk_idUsuario, fk_idTopico)\n\t\t\t\tVALUES\n\t\t\t\t\t(:nome, :conteudo, :fk_idUsuario, :fk_idTopico)\";\n\t\t$query = $db->prepare($sql);\n\t\t$query->execute([\n\t\t\t':nome' => $this->getNome(),\n\t\t\t':conteudo' => $this->getConteudo(),\n\t\t\t':fk_idUsuario' => $this->getFkIdUsuario(),\n\t\t\t':fk_idTopico' => $this->getFkIdTopico()\n\t\t]);\n\t\t$this->idPost = $db->lastInsertId();\n\t}", "function inserirAgencia(){\n\n $banco = abrirBanco();\n //declarando as variáveis usadas na inserção dos dados\n $nomeAgencia = $_POST[\"nomeAgencia\"];\n $cidadeAgencia = $_POST[\"cidadeAgencia\"];\n\n //a consulta sql\n $sql = \"INSERT INTO Agencias(nomeAgencia,cidadeAgencia) VALUES ('$nomeAgencia','$cidadeAgencia')\";\n \n //executando a inclusão\n $banco->query($sql);\n //fechando a conexao com o banco\n $banco->close();\n voltarIndex();\n\n }", "public function insert()\n {\n $sql = new Sql();\n $result = $sql->select(\"CALL sp_usuario_insert(:LOGIN, :PASSWORD)\", array(\n \":LOGIN\"=>$this->getDeslogin(),\n \":PASSWORD\"=>$this->getDessenha()\n ));\n\n if(count($result) > 0){\n $row = $result[0];\n $this->setIdusuario($row['idusuario']);\n $this->setDeslogin($row['deslogin']);\n $this->setDessenha($row['dessenha']);\n $this->setDataCadastro(new DateTime($row['dataCadastro']));\n }\n }", "function insert(){\n $nombre= $_POST['nombre'];\n $apellido= $_POST['apellido'];\n $telefono= $_POST['telefono'];\n\n $this->model->insert(['nombre'=>$nombre , 'apellido'=>$apellido,'telefono'=>$telefono]);\n $url= constant('URL').\"alumno\";\n header(\"Location: $url\");\n // $this->index();\n }", "public function registrar_registro()\n \n {\n /** \n * @brief : Metodos para ingresar registro en la base de datos.\n * @return :Vista donde nos mostrara todos lo registro.\n */\n \n $data =Request()->all();\n registro::create($data);\n\n }", "public function insert($data);", "public function inserir() {\n $this->load->model('Usuario_model', 'usuario');\n\n //Recebe os dados da view de usuario\n $data['login'] = $this->input->post('login');\n $data['senha'] = md5($this->input->post('senha'));\n $data['codAluno'] = $this->input->post('codAluno');\n $data['nivel'] = 1;\n\n if ($this->usuario->inserirUsuario($data)) {\n redirect('Painel_controller/login');\n }\n }", "public function insert($cotizacion);", "public function mostrar_insertar() {\r\n\t\t\t$this -> pantalla_edicion('insertar'); \r\n\t\t }", "public function guardar()\n\t{\n\t\t// Crear una instancia de la conexion\n\t\t$conexion = new Conexion;\n\n\t\t// Comprobar si es un registro nuevo o uno ya existente\n\t\tif ($this->update) {\n\n\t\t\t// Preparar la sentencia para actualizar el tipo de rol en la bd\n\t\t\t$sentencia = $conexion->conn->prepare(\"UPDATE \". static::$tablaConsulta . \" SET medio= ? WHERE id= ?\");\n\n\t\t\t// Pasar los campos del objecto a la sentencia\n\t\t\t$sentencia->bind_param(\n\t\t\t\t\t'si',\n\t\t\t\t\t$this->medio,\n\t\t\t\t\t$this->id\n\t\t\t);\n\n\t\t} else {\n\n\t\t\t// Preparar la sentencia para isertar el tipo de rol en la bd\n\t\t\t$sentencia = $conexion->conn->prepare(\"INSERT INTO \". static::$tablaConsulta . \" VALUES (null, ?)\");\n\n\t\t\t// Pasar los campos del objecto a la sentencia\n\t\t\t$sentencia->bind_param(\n\t\t\t\t\t's',\n\t\t\t\t\t$this->medio\n\t\t\t);\n\t\t}\n\n\n // Ejecutar la sentencia\n\t\tif ( $sentencia->execute() ) {\n\n\t\t\t// Devolver un uno si fue un exito\n\t\t\treturn 1;\n\t\t} else {\n\n\t\t\t// Devolver un 0 si ocurrio un error\n\t\t\treturn 0;\n\t\t}\n\t}", "public function create() //添加\n {\n\t\t//\n }", "function AgenteInsert($Nombre, $Contacto, $Notas, $NombreArchivo, $Uuid, $IdInmobiliaria) {\r\n\tglobal $Cfg;\r\n\r\n\t$sql = \"insert $Cfg[SqlPrefix]agentes set\r\n\t\tNombre = '$Nombre',\r\n\t\tContacto = '$Contacto',\r\n\t\tNotas = '$Notas',\r\n\t\tNombreArchivo = '$NombreArchivo',\r\n\t\tUuid = '$Uuid',\r\n\t\tIdInmobiliaria = $IdInmobiliaria\";\r\n\r\n\tDbExecuteUpdate($sql);\r\n\r\n\treturn DbLastId();\r\n}", "public function crear()\n {\n\n try{\n $model = new \\App\\Models\\Pasientes();\n\n foreach ($_POST as $campo => $val){\n $model->$campo = $val;\n }\n\n $model::insert($model);\n $this->historico();\n\n }catch(\\Exception $e){\n\n $this->formularioCreacion(['_error' => $e]);\n\n }\n\n }", "public function addRecordInDB($nome, $cognome, $codice_fiscale, $data_nascita, $numero_telefono, $email, $password){\r\n include_once './db_functions.php';\r\n $db = new DB_Functions();\r\n //Escaping\r\n $nome = DB_Functions::esc($nome);\r\n $cognome = DB_Functions::esc($cognome);\r\n $codice_fiscale = DB_Functions::esc($codice_fiscale);\r\n $numero_telefono = DB_Functions::esc($numero_telefono);\r\n $data_nascita = DB_Functions::esc($data_nascita);\r\n $email = DB_Functions::esc($email);\r\n $password = DB_Functions::esc($password);\r\n\r\n $query = \"INSERT INTO UTENTE_REGISTRATO (ID_UTENTE_REGISTRATO, NOME, COGNOME, CODICE_FISCALE, NUMERO_TELEFONO, DATA_NASCITA, EMAIL, PASSWORD) \r\n\t VALUES ($nome , $cognome, $codice_fiscale, $numero_telefono, $data_nascita, $email, SHA1($password)\";\r\n $resQuery1 = $db->executeQuery($query);\r\n // Se la query ha esito positivo\r\n if ($resQuery1[\"state\"]) {\r\n //Salva valore ID del record creato\r\n $query = \"SELECT max(ID_UTENTE_REGISTRATO) FROM UTENTE_REGISTRATO;\";\r\n $resQuery2 = $db->executeQuery($query);\r\n $this->id_utente_registrato = $resQuery2[\"response\"][0][0];\r\n $this->nome = $nome;\r\n $this->cognome = $cognome;\r\n $this->codice_fiscale = $codice_fiscale;\r\n $this->data_nascita = $data_nascita;\r\n $this->numero_telefono = $numero_telefono;\r\n $this->email = $email;\r\n $this->password = $password;\r\n }\r\n return $resQuery1;\r\n }", "public function insert($cargo){\n $id=$cargo->getId();\n$fecha_ingreso=$cargo->getFecha_ingreso();\n$empresa_idempresa=$cargo->getEmpresa_idempresa()->getIdempresa();\n$area_empresa_idarea_emp=$cargo->getArea_empresa_idarea_emp()->getIdarea_emp();\n$cargo_empreso_idcargo=$cargo->getCargo_empreso_idcargo()->getIdcargo();\n$puesto_idpuesto=$cargo->getPuesto_idpuesto()->getIdpuesto();\n\n try {\n $sql= \"INSERT INTO `cargo`( `id`, `fecha_ingreso`, `empresa_idempresa`, `area_empresa_idarea_emp`, `cargo_empreso_idcargo`, `puesto_idpuesto`)\"\n .\"VALUES ('$id','$fecha_ingreso','$empresa_idempresa','$area_empresa_idarea_emp','$cargo_empreso_idcargo','$puesto_idpuesto')\";\n return $this->insertarConsulta($sql);\n } catch (SQLException $e) {\n throw new Exception('Primary key is null');\n }\n }", "function insert(){\n\t\t\t$result = $this->consult();\n\t\t\tif(count($result) > 0){\n\t\t\t\t$this->form_data[\"id_paciente\"] = $result[0]->id_paciente;\n\t\t\t\t$this->id_paciente = $result[0]->id_paciente;\n\t\t\t\treturn $this->update();\n\t\t\t}\n\n\t\t\ttry{\n\t\t\t\t$this->db->trans_start();\n\t\t\t\t$this->db->insert('paciente', $this->form_data);\n\t\t\t\t$this->db->trans_complete();\n\t\t\t\treturn array(\"message\"=>\"ok\");\n\t\t\t} catch (Exception $e){\n\t\t\t\treturn array(\"message\"=>\"error\");\n\t\t\t}\n\t\t}", "public function Insert(){\n //Instancia conexao com o PDO\n $pdo = Conecta::getPdo();\n //Cria o sql passa os parametros e etc\n $sql = \"INSERT INTO $this->table (idcidade, cidade) VALUES (?, ?)\";\n $consulta = $pdo->prepare($sql);\n $consulta ->bindValue(1, $this->getIdCidade());\n $consulta ->bindValue(2, $this->getCidade());\n $consulta ->execute();\n $last = $pdo->lastInsertId();\n }", "public function insertar(){\n $mysqli = new mysqli(Config::BBDD_HOST, Config::BBDD_USUARIO, Config::BBDD_CLAVE, Config::BBDD_NOMBRE);\n //Arma la query\n $sql = \"INSERT INTO tipo_domicilios ( \n tipo,\n nombre\n ) VALUES (\n '\" . $this->tipo .\"', \n '\" . $this->nombre .\"'\n );\";\n //Ejecuta la query\n if (!$mysqli->query($sql)) {\n printf(\"Error en query: %s\\n\", $mysqli->error . \" \" . $sql);\n }\n //Obtiene el id generado por la inserción\n $this->idtipo = $mysqli->insert_id;\n //Cierra la conexión\n $mysqli->close();\n }", "public function insert($permiso);", "public function persist() {\n $bd = BD::getConexion();\n $sql = \"insert into usuarios (nombre, clave) values (:nombre, :clave)\";\n $sthSql = $bd->prepare($sqlInsertUsuario);\n $result = $sthSql->execute([\":nombre\" => $this->nombre, \":clave\" => $this->clave]);\n $this->id = (int) $bd->lastInsertId();\n }", "public function save(){\n if($this->id == 0) {\n // Object is new and needs to be created\n return $this->insert();\n }\n }", "public function insert($aluno) {\n\t}", "public function guardar(){\r\n\r\n\t $conexion = new Conexion();\r\n\t if($this->nombre ==true ){\r\n\t \t $consulta = $conexion->prepare('INSERT INTO ' . self::TABLA .' ( nombre,apellidos,edad,curso,transporteEscolar) \r\n\t \tVALUES(:nombre,:apellidos,:edad,:curso,:transporteEscolar)');\r\n\t \r\n\t $consulta->bindParam(':nombre', $this->nombre);\r\n\t $consulta->bindParam(':apellidos', $this->apellidos);\r\n\t $consulta->bindParam(':edad', $this->edad);\r\n\t $consulta->bindParam(':curso', $this->curso);\r\n\t $consulta->bindParam(':transporteEscolar', $this->transporteEscolar);\r\n\t $consulta->execute();\r\n\t\t\t$this->idAlumno = $conexion->lastInsertId();\r\n\t\t//\tif($respuesta1){\r\n\t\t//\t\treturn $respuesta1;\r\n\t\t//\t}\t\r\n\t\t\techo \"<h2 style='color:white;'>El Alumno se ha registrado con el id: \" . $this->idAlumno.\"</h2>\";\r\n\t\t\t printf (\"<br/><a href='registroAlumnos.php'><button class='lila'>Volver</button></a>\");\t\r\n\t\t}else{\r\n\t\t\techo \"<h2 style='color:white;'>No se pudo realizar el registro.</h2>\";\r\n\t\t\t printf (\"<br/><a href='registroAlumnos.php'><button class='lila'>Volver</button></a>\");\r\n\t\t}\r\n\t\t$conexion = null; \r\n\t\t}", "function insertar(){\n global $conexion, $data;\n $usuario = $data[\"usuario\"];\n $email = $data[\"email\"];\n $clave = $data[\"clave\"];\n $tipo = $data[\"tipo\"];\n $eliminado = $data[\"eliminado\"];\n $estado = $data[\"estado\"];\n $resultado = mysqli_query($conexion,\"INSERT INTO usuario(usu_usuario, usu_email, usu_clave, usu_estado, usu_eliminado, usu_id_tipo_usuario)VALUES ('$usuario', '$email', '$clave', '$estado', '$eliminado', '$tipo' ) \");\n echo validarError($conexion, true, $resultado);\n }", "public function insert()\n\t{\n\t\t$crud = $this->crud->data([\n\t\t\t'first_name' => $_POST['first_name'],\n\t\t\t'last_name' => $_POST['last_name'],\n\t\t]);\n\t\t$crud->insert();\n\t\t$this->redirect('crud');\n\t}", "public function insert()\n {\n $this->id = insert($this);\n }", "public function persist() {\n $bd = BD::getConexion();\n $sqlInsertUsuario = \"insert into usuarios (nomUsuario, clave) values (:nomUsuario, :clave)\";\n $sthSqlInsertUsuario = $bd->prepare($sqlInsertUsuario);\n $result = $sthSqlInsertUsuario->execute([\":nomUsuario\" => $this->nomUsuario, \":clave\" => $this->clave]);\n $this->id = (int) $bd->lastInsertId();\n }", "public function insert()\n\t{\n\t\t$this->Statusimovel_model->descricao = $this->input->post('cdescristi');\n\t\t$this->Statusimovel_model->finalidade = $this->input->post('nidtbxfin');\n\t\tif ($this->Statusimovel_model->validaInsercao()){\n\t\t\t$this->Statusimovel_model->save();\n\t\t\t$this->session->set_flashdata('sucesso','Status cadastrado com sucesso');\n\t\t\tredirect(makeUrl('dci','statusimovel','visualizar'));\n\t\t} else {\n\t\t\t$this->session->set_flashdata('erro',$this->Statusimovel_model->error);\n\t\t\t$this->session->set_flashdata('cdescristi',$this->Statusimovel_model->descricao);\n\t\t\t$this->session->set_flashdata('nidtbxfin',$this->Statusimovel_model->finalidade);\n\t\t\tredirect(makeUrl('dci','statusimovel','inserir'));\n\t\t\treturn;\n\t\t}\n\t}", "public function insertar(){\n $this -> conexion -> abrir();\n $this -> conexion -> ejecutar($this -> AdministradorDAO -> insertar());\n $res = $this -> conexion -> filasAfectadas();\n $this -> conexion -> cerrar();\n return $res;\n }", "function EmpresaInsert($Nombre) {\r\n\tglobal $Cfg;\r\n\r\n\t$sql = \"insert $Cfg[SqlPrefix]empresas set\r\n\t\tNombre = '$Nombre'\";\r\n\r\n\tDbExecuteUpdate($sql);\r\n\r\n\treturn DbLastId();\r\n}", "public function save()\n {\n $ins = $this->valores();\n unset($ins[\"idInscription\"]);\n\n $ins['idUser'] = $this->userO->idUser;\n unset($ins[\"userO\"]);\n\n $ins['idProject'] = $this->project->idProject;\n unset($ins[\"project\"]);\n\n if (empty($this->idInscription)) {\n $this->insert($ins);\n $this->idInscription = self::$conn->lastInsertId();\n } else {\n $this->update($this->idInscription, $ins);\n }\n }", "public function insert($cbtRekapNilai);", "public function insert($fisicasuelo);", "public function insert(){\n\t\t$sql = new Sql();\n\t\t$results = $sql->select(\"CALL sp_insert_usuario(:LOGIN, :PASS)\", array(\n\t\t\t':LOGIN'=>$this->getDeslogin(),\n\t\t\t':PASS'=>$this->getDessenha()\n\t\t));\n\n\t\tif (isset($results[0])) {\n\t\t\t\n\t\t\t$this->setData($results[0]);\n\n\t\t}\n\t}", "function insert() {\n\t\t$sql = \"INSERT INTO lessons\n\t\t\t\tVALUES (?, ?, ?, ?, ?)\";\n\t\t\n\t\t$this->db->query($sql, array($this->lessons_id, $this->name, $this->date, $this->active, $this->rank));\n\t\t$this->last_insert_id = $this->db->insert_id();\t\t\n\t\t\n\t}", "public function insert() {\n\t\t$this->insert_user();\n\t}", "public function insert(){\n $bd = Database::getInstance();\n $bd->query(\"INSERT INTO canciones(artista, ncancion, idGen, album) VALUES (:art, :nca, :gen, :alb);\",\n [\":art\"=>$this->artista,\n \":gen\"=>$this->idGen,\n \":alb\"=>$this->album,\n \":nca\"=>$this->ncancion]);\n }", "public function inserir() {\n $query = '\n insert into tb_atividade(\n id_evento, nome, qntd_part, inscricao, valor, tipo, carga_hr, data_inicio, data_fim\n ) values ( \n :id_evento, \n :nome, \n :qntd_part, \n :inscricao, \n :valor, \n :tipo, \n :carga_hr, \n :data_inicio, \n :data_fim\n )';\n\n $stmt = $this->conexao->prepare($query);\n $stmt->bindValue(':id_evento', $this->atividade->__get('id_evento'));\n $stmt->bindValue(':nome', $this->atividade->__get('nome'));\n $stmt->bindValue(':qntd_part', $this->atividade->__get('qntd_part'));\n $stmt->bindValue(':inscricao', $this->atividade->__get('inscricao'));\n $stmt->bindValue(':valor', $this->atividade->__get('valor'));\n $stmt->bindValue(':tipo', $this->atividade->__get('tipo'));\n $stmt->bindValue(':carga_hr', $this->atividade->__get('carga_hr'));\n $stmt->bindValue(':data_inicio', $this->atividade->__get('data_inicio'));\n $stmt->bindValue(':data_fim', $this->atividade->__get('data_fim'));\n\n return $stmt->execute();\n }", "public function insert(){\r\n\t\tif (!$this->new){\r\n\t\t\tMessages::msg(\"Cannot insert {$this->getFullTableName()} record: already exists.\",Messages::M_CODE_ERROR);\r\n\t\t\treturn self::RES_FAILED;\r\n\t\t}\r\n\t\t\r\n\t\t$this->beforeCommit();\r\n\t\t\r\n\t\t$vals = array();\r\n\t\t$error = false;\r\n\t\tforeach ($this->values as $name=>$value){\r\n\t\t\tif ($value->isErroneous()){\r\n\t\t\t\tFramework::reportErrorField($name);\r\n\t\t\t\t$error = true;\r\n\t\t\t}\r\n\t\t\t$vals[\"`$name`\"] = $value->getSQLValue();\r\n\t\t}\r\n\t\tif ($error){\r\n\t\t\treturn self::RES_FAILED;\r\n\t\t}\r\n\t\t\r\n\t\t$sql = 'INSERT INTO '.$this->getFullTableName().' ('.implode(', ',array_keys($vals)).') VALUES ('.implode(', ',$vals).')';\r\n\t\tif (!SQL::query($sql)->success()){\r\n\t\t\tMessages::msg('Failed to insert record into '.$this->getFullTableName().'.',Messages::M_CODE_ERROR);\r\n\t\t\treturn self::RES_FAILED;\r\n\t\t}\r\n\t\t\r\n\t\t// Get this here, because getPrimaryKey can call other SQL queries and thus override this value\r\n\t\t$auto_id = SQL::getInsertId();\r\n\t\t\r\n\t\t$table = $this->getTable();\r\n\t\t// Load the AUTO_INCREMENT value, if any, before marking record as not new (at which point primary fields cannot be changed)\r\n\t\tforeach ($table->getPrimaryKey()->getColumns() as $name){\r\n\t\t\tif ($table->getColumn($name)->isAutoIncrement()){\r\n\t\t\t\t$this->$name = $auto_id;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t$this->new = false;\r\n\t\t$this->hasChanged = false;\r\n\t\tforeach ($this->values as $value){\r\n\t\t\t$value->setHasChanged(false);\r\n\t\t}\r\n\t\t\r\n\t\t$this->afterCommit();\r\n\t\t\t\r\n\t\treturn self::RES_SUCCESS;\r\n\t}", "public function insert()\n {\n \n }", "public function insert($proveedor);", "public function insertRecord()\n\t{\n\t\tif($this->user->hasRight($this->getHandler()->getAddRight()))\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t$record = $this->getHandler()->getRecord();\n\t\t\t\t$record->import($this->getRequest());\n\n\t\t\t\t// check captcha\n\t\t\t\t$this->handleCaptcha($record);\n\n\t\t\t\t// insert\n\t\t\t\t$this->getHandler()->create($record);\n\n\n\t\t\t\t$msg = new Message('You have successful create a ' . $record->getName(), true);\n\n\t\t\t\t$this->setResponse($msg);\n\t\t\t}\n\t\t\tcatch(\\Exception $e)\n\t\t\t{\n\t\t\t\t$msg = new Message($e->getMessage(), false);\n\n\t\t\t\t$this->setResponse($msg);\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$msg = new Message('Access not allowed', false);\n\n\t\t\t$this->setResponse($msg, null, $this->user->isAnonymous() ? 401 : 403);\n\t\t}\n\t}", "public function insert($calendario);", "public function insertar($data){\n\t\t\t$this->db->insert('tareas',array(\n\t\t\t\t'titulo'=>$data['titulo'],\n\t\t\t\t'descripcion'=>$data['descripcion'],\n\t\t\t\t'id_estado'=>1,\n\t\t\t\t'fecha_alta'=>date('Y-m-d H:i:s'),\n\t\t\t\t'fecha_modificacion'=>date('Y-m-d H:i:s'),\n\t\t\t\t'fecha_baja'=>null\n\t\t\t\t)\n\t\t\t);\n\t\t}", "function insertar(){\n\n\t\t$this->load->helper('url');\n\t\t$investigador= array(\n\t\t\t\t'PROGRAMA'=> $this->input->post('programa'),\n\t\t\t\t'FACULTAD'=> $this->input->post('facultad'),\n\t\t\t\t'GRUPO_INVESTIGACION'=> $this->input->post('grupo_investigacion'),\n\t\t\t\t'TIPO_VINCULACION'=> $this->input->post('tipo_vinculacion'),\n\t\t\t\t'NOMBRE'=> $this->input->post('nombre'),\n\t\t\t\t'DOCUMENTO'=> $this->input->post('documento'),\n\t\t\t\t'CELULAR'=> $this->input->post('celular'),\n\t\t\t\t'CORREO'=> $this->input->post('correo')\n\t\t);\n\n\n\t\t$this->load->model('Investigador_Model');\n\t\tif($this->Investigador_Model->insertar($investigador))\n\t\t\tredirect('Investigador_Controller');\n\n\t}", "public function insert() {\n \n }", "public function insert() {\n \n $query = $this->dbConnection->prepare(\"INSERT INTO `menu` (`id`, `name`, `nameen`, `address`, `isMenu`, `order`) VALUES (NULL, :name, :nameen, :address, :isMenu, :order)\");\n $query->bindValue(':name', $this->name, PDO::PARAM_STR);\n $query->bindValue(':nameen', $this->nameen, PDO::PARAM_STR);\n $query->bindValue(':address', $this->address, PDO::PARAM_STR);\n $query->bindValue(':isMenu', $this->isMenu, PDO::PARAM_STR);\n $query->bindValue(':order', $this->order, PDO::PARAM_STR);\n $query->execute();\n $this->id = $this->dbConnection->lastInsertId();\n }", "function saveNew() {\n\t\t$this->prepareForDb(); \n\t\t$query = \"INSERT INTO `\".sql_table('plug_miniforum_templates').\"` \".\n\t\t\t $this->prepareQuery();\t\t\n\t\t\t\t\t\n\t\tsql_query($query);\n }", "public function inserir_anuncio(){\n if(!isset($_SESSION))session_start();\n\n $cliente = unserialize($_SESSION['cliente']);\n\n $id_veiculo = $_POST['cb_veiculos'];\n $data_inicial = $_POST['data_inicial'];\n $data_final = $_POST['data_final'];\n $hora_inicial = $_POST['hora_inicial'];\n $hora_final = $_POST['hora_final'];\n $descricao = $_POST['descricao'];\n $valor_hora = $_POST['valor_hora'];\n $id_cliente = $cliente->getId();\n\n $anuncio = new Anuncio();\n $anuncio->setDescricao($descricao)\n ->setIdClienteLocador($id_cliente)\n ->setIdVeiculo($id_veiculo)\n ->setHorarioInicio($hora_inicial)\n ->setHorarioTermino($hora_final)\n ->setDataInicial($data_inicial)\n ->setDataFinal($data_final)\n ->setValor($valor_hora);\n\n\n $this->anunciosDAO->insert($anuncio);\n\n }", "public function insert(){\n\n }", "public function store(CreateContratoRequest $request)\n {\n //return $request->all();\n $listacontratos = \\App\\Contrato::create( $request->all() );\n\n //$listacontratos->tipoDeContrato()->create([$listacontratos]);\n // $listacontratos-> tipoDeContrato()->save($listacontratos);\n \n \n //$listacontratos->tipoDeContrato()->associate($listacontratos);\n //$listacontratos->save();\n \n\n\n // DB::table('contrato') -> insert([\n\n // \"Jornada\" => $request->input('Jornada'),\n //\"PeriodoDePrueva\" => $request->input('PeriodoDePrueva'),\n // \"Salario\" => $request->input('Salario'),\n // \"FechaInicio\" => $request->input('FechaInicio'),\n // \"id_tipoDeContrato\" => $request->input('id_tipoDeContrato'),\n // \"id_cargo\" => $request->input('id_cargo'),\n // \"id_empleado\" => $request->input('id_empleado'),\n // \"id_empresa\" => $request->input('id_empresa'),\n // ]);\n\n\n //return redirect()->route('contratos.index');\n return redirect()->route('contratos.index', compact('listacontratos'))->with('infoContratoCreate','Contrato Creado');\n\n }", "function Save(){\n $rowsAffected = 0;\n if(isset($this->legajo)){\n $rowsAffected = $this->UpdateSQL([\"legajo = \".$this->legajo]);\n }else{\n $rowsAffected = $this->InsertSQL();\n if($rowsAffected > 0){\n $this->legajo = $this->Max(\"legajo\");\n }\n }\n if($rowsAffected == 0){\n throw new \\Exception(\"Error al guardar Usuario\");\n }else{\n $this->Refresh();\n }\n }", "public function insertar(){\n $this -> Conexion -> abrir();\n $this -> Conexion -> ejecutar( $this -> ClienteDAO -> insertar());\n $res = $this -> Conexion -> filasAfectadas();\n $this -> Conexion -> cerrar();\n return $res;\n }", "function inserir()\n{\n $produto = new Produto();\n\n // Colocando os valores recebidos do formulário nos atributos do objeto $produto\n $produto->descricao = Input::get('descricao');\n $produto->quantidade = Input::get('quantidade');\n $produto->valor = Input::get('valor');\n $produto->data_vencimento = Input::get('data_vencimento');\n\n // Salvando no banco de dados\n $produto->save();\n\n // Criado uma mensagem para o usuário\n $mensagem = \"Produto inserido com sucesso\";\n\n // Chamando a view produto.inserir e enviando a mensagem criada\n return view('produto.inserir')->with('mensagem', $mensagem);\n}", "public function add(){\n $tab = DB::table('student');\n $res = $tab -> insert(['name' => '小黑', 'age' => '18']);\n }", "public function insert()\n {\n }", "public function insert()\n {\n }", "function insert()\n\t{\n\t\t$nama = $_POST ['nama'];\n\t\t$tipe = $_POST ['tipe'];\n\t\t$harga = $_POST ['harga'];\n\t\t$bintang = $_POST ['bintang'];\n\t\t$fasilitas = $_POST ['fasilitas'];\n\t\t$strategis = $_POST ['strategis'];\n\n\t\t//save ke db (nama_lengkap dan alamat sesuai nama tabel di DB)\n\t\t$data = array('nama_hotel'=> $nama, 'tipe_kamar'=> $tipe, 'harga'=> $harga, 'bintang'=> $bintang, 'fasilitas'=> $fasilitas, 'strategis'=> $strategis);\n\t\t$tambah = $this->model_alternatif->tambahData('alternatif', $data);\n\t\tif($tambah >0)\n\t\t{\n\t\t\tredirect ('Alternatif/index');\n\t\t}\n\n\t\telse\n\t\t{\n\t\t\techo 'Gagal Disimpan';\n\t\t}\n\n\t}", "function inserir($cidade, $bairro, $rua, $numeroTerreno, $quantidadeCasa, $valor, $idUsuario) #Funcionou\n {\n $conexao = new conexao();\n $sql = \"insert into terreno( Cidade, Bairro, Rua, NumeroTerreno, QuantidadeCasa, Valor, idUsuario) \n values('$cidade', '$bairro', '$rua', '$numeroTerreno', '$quantidadeCasa', '$valor', $idUsuario )\";\n mysqli_query($conexao->conectar(), $sql);\n echo \"<p> Inserido </p>\";\n }", "protected function fijarSentenciaInsert(){}", "function inserisci_provincia($nome_provincia=\"\"){\n\t$db = new db(DB_USER,DB_PASSWORD,DB_NAME,DB_HOST);\n\t$nome_provincia= sistemaTesto($nome_provincia);\n\t$q=\"INSERT INTO provincia (id_provincia, nome) VALUES (null,'$nome_provincia')\";\n\t$r=$db->query($q);\n\t$id=mysql_insert_id();\n\treturn $id;\n}", "public function insertAction()\r\n\t{\r\n\t\tif ($this->request->getPost('submit')) {\r\n\t\t\t$name = $this->request->getPost('name');\r\n\t\t\t$phone = $this->request->getPost('phone');\r\n\t\t\t$arrPost = array('name' => $name, 'phone' => $phone);\r\n\t\t\t$room = new Room();\r\n\t\t\tif ($room->save($arrPost)) {\r\n\t\t\t\t$this->response->redirect(\"/users/index\", true);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "public function insertar() \n { \n\n \n\n //si aprueba validaciones seteo datos\n $datos = array\n (\n 'politicas' => $this->input->post('terminos'),\n\n );\n\n // insertar\n $id_nuevo = $this->M_politicas->guardar_terminos($datos);\n\n // si insertó\n var_dump($id_nuevo);\n if($id_nuevo)\n {\n echo true;\n // $this->session->set_tempdata('temporal', 'terminos Insertado Correctamente', 1);\n // redirect('/terminos/ver/'.$id_nuevo);\n }\n else\n {\n echo false;\n // $this->session->set_tempdata('temporal', 'Error Inesperado', 1);\n // redirect('/terminos/crear/');\n }\n \n }", "public static function registrar($datos,$idEmpleado)\n {\n\n//convertimos a tipo date\n$date = new DateTime($datos->fecha);\n\n\nDB::table('recibonomina')->insert(array(\n 'idDocente' => $idEmpleado,\n 'fecha'=> $date->format('Y-m-d'),\n \t'mes_a_Pagar' => $datos->mes,\n 'totalPago'=> $datos->total,\n \t'descuentos' => $datos->valorDescuento,\n 'bonos'=> $datos->valorAdicional,\n \t'observaciones' =>$datos->Observaciones\n )); \n }", "public function insert($maeMedico);", "public function saveEntidad(){\n\t\t$conexion = new Database();\n if ($this->codigo){\n $query = sprintf('UPDATE agenda_entidades SET entidad = \"%s\" WHERE entidad_id = %d',\n $this->entidad,\n $this->codigo);\n $rows = $conexion->exec( $query );\n }\n else{\n $query = sprintf('INSERT INTO agenda_entidades(entidad) VALUES (\"%s\")',\n $this->usuario);\n\t\t\t$rows = $conexion->exec( $query );\n $this->codigo = $conexion->lastInsertId();\n }\n }", "public function insert($mambot);", "public function criar()\n {\n\n $data = array(\n 'titulo' => $this->input->post('book_titulo'),\n 'autor' => $this->input->post('book_autor')\n );\n\n // $this->db->query($sql, $data);\n\n $this->db->insert('books', $data);\n }", "function insertVoucher(){\n $db =new Database();\n $query=\"INSERT INTO `gutscheine`(`GutscheinID`, `Wert`, `Gueltigkeit`, `Eingeloest`) VALUES \"\n .\"('\".$this->gutscheinID.\"','\".$this->wert.\"','\".$this->gueltigkeit.\"','\".$this->eingeloest.\"')\";\n $db->insert($query);\n }", "function insert() {\n $coche = new coches_model();\n\n if (isset($_POST['insert'])) {\n $coche->setMarca ($_POST['marca']);\n $coche->setModelo ($_POST['modelo']);\n $coche->setFabricado ($_POST['fabricado']);\n\n $error = $coche->insertar();\n\n if (!$error) {\n header( \"Location: index.php?controller=coches&action=listado\");\n }\n else {\n echo $error;\n }\n }\n }", "public function insert()\n {\n $db = new Database();\n $db->insert(\n \"INSERT INTO position (poste) VALUES ( ? )\",\n [$this->poste]\n );\n }", "public function insertar(){\n $pdo=Conexion::conectar();\n $sentencia = $pdo->prepare(\"INSERT INTO empleado (id, nombre, apellido,direccion,telefono,email,estado,firma,jefe,id_cargo,id_departamento) VALUES (:id, :nombre, :apellido,:direccion,:telefono,:email,:estado,:firma,:jefe,:id_cargo,:id_departamento)\");\n $sentencia->bindParam(':id', $id);\n $sentencia->bindParam(':nombre', $nombre);\n $sentencia->bindParam(':apellido', $apellido);\n $sentencia->bindParam(':direccion', $direccion);\n $sentencia->bindParam(':telefono', $telefono);\n $sentencia->bindParam(':email', $email);\n $sentencia->bindParam(':estado', $estado);\n $sentencia->bindParam(':firma', $firma);\n $sentencia->bindParam(':jefe', $jefe);\n $sentencia->bindParam(':id_cargo', $id_cargo);\n $sentencia->bindParam(':id_departamento', $id_departamento);\n \n // estos los valores de los input\n $id=\"0700950454\";\n $nombre=\"aaa\";\n $apellido=\"ssss\";\n $direccion=\"sss\";\n $telefono=23323232;\n $email=\"[email protected]\";\n $estado=1;\n $firma=\"NULL\";\n $jefe=\"0706430980\";\n $id_cargo=3;\n $id_departamento=16;\n $sentencia->execute();\n \n \n //CUANDO NO TIENE JEFE--=EL EMPLEADO ES JEFE (NO ENVIAR EL PARAMETRO JEFE,LA BDD AUTOMTICAMENTE PONE NULL)\n $pdo=Conexion::conectar();\n $sentencia = $pdo->prepare(\"INSERT INTO empleado (id, nombre, apellido,direccion,telefono,email,estado,firma,id_cargo,id_departamento) VALUES (:id, :nombre, :apellido,:direccion,:telefono,:email,:estado,:firma,:id_cargo,:id_departamento)\");\n $sentencia->bindParam(':id', $id);\n $sentencia->bindParam(':nombre', $nombre);\n $sentencia->bindParam(':apellido', $apellido);\n $sentencia->bindParam(':direccion', $direccion);\n $sentencia->bindParam(':telefono', $telefono);\n $sentencia->bindParam(':email', $email);\n $sentencia->bindParam(':estado', $estado);\n $sentencia->bindParam(':firma', $firma);\n $sentencia->bindParam(':id_cargo', $id_cargo);\n $sentencia->bindParam(':id_departamento', $id_departamento);\n \n // estos los valores de los inputs\n $id=\"0700950454\";\n $nombre=\"aaa\";\n $apellido=\"ssss\";\n $direccion=\"sss\";\n $telefono=23323232;\n $email=\"[email protected]\";\n $estado=1;\n $firma=\"NULL\";\n $id_cargo=3;\n $id_departamento=16;\n $sentencia->execute();\n \n \n\n \n }", "public function insert()\n {\n # code...\n }", "function insertProduit($db,$model,$produitEvident,$marque,$descriptif,$prix){\n\n $sql=\"INSERT INTO produits (modele,produit_evident,marque,descriptif,prix) VALUES ('$model','$produitEvident','$marque','$descriptif','$prix');\";\n $request = mysqli_query($db,$sql) or die(mysqli_error($db));\n // si le produit est bien inséré, on renvoie son ID\n return ($request)? mysqli_insert_id($db) :false;\n}", "public function insert($actividades_fuera);" ]
[ "0.72017616", "0.7171451", "0.713746", "0.7117144", "0.71017116", "0.709926", "0.7037036", "0.7014178", "0.69679594", "0.6945634", "0.6933623", "0.69198895", "0.69031733", "0.689887", "0.689158", "0.68845016", "0.6857782", "0.68350047", "0.68240404", "0.68221956", "0.68083215", "0.6797893", "0.6764023", "0.67568773", "0.67440325", "0.67409426", "0.6717329", "0.6715945", "0.67100865", "0.67099655", "0.66970015", "0.6681281", "0.66790664", "0.6677049", "0.66704756", "0.66600204", "0.6659633", "0.6635458", "0.6634027", "0.66334575", "0.6630236", "0.66278446", "0.6619923", "0.6616114", "0.6607229", "0.6599506", "0.65966165", "0.65916204", "0.6587575", "0.65850323", "0.6573654", "0.6553887", "0.6553291", "0.6549955", "0.6536031", "0.65353626", "0.65140283", "0.65121514", "0.6510156", "0.6503846", "0.648419", "0.6483904", "0.6481967", "0.6475894", "0.64747816", "0.6467722", "0.64653015", "0.64650226", "0.64510226", "0.64509934", "0.64509916", "0.64498186", "0.64490664", "0.64480484", "0.6446847", "0.644484", "0.64430636", "0.6438456", "0.643383", "0.6431551", "0.64272845", "0.6424768", "0.6424768", "0.6424451", "0.6419979", "0.64189285", "0.6413027", "0.64121455", "0.6411484", "0.64101124", "0.6407585", "0.6403042", "0.6400171", "0.6394488", "0.6394448", "0.6394428", "0.63897353", "0.6384052", "0.63811135", "0.63798654", "0.6379621" ]
0.0
-1
metodo para actualizar un registro existente
public function edit($id, $params) { $sqlUpdate = "UPDATE " . $this->table_name . " SET "; $sqlWhere = " WHERE " . $this->id_field . " = :" . $this->id_field . ""; $db_params = array(); $first = true; foreach ($this->table_fields as $table_field) { $name = $table_field->get_name(); if($table_field->get_type()==Column::$COLUMN_TYPE_FILE || $table_field->get_type()==Column::$COLUMN_TYPE_PHOTO){ if(!empty($_FILES[$name]["name"])){ if(!empty($_FILES[$name]["type"])){ $fileName = time().'_'.$_FILES[$name]['name']; $sourcePath = $_FILES[$name]['tmp_name']; $targetPath = UPLOADS_DIR.$fileName; if(move_uploaded_file($sourcePath,$targetPath)){ $params[$name] = $fileName; } } } } if (!empty($params[$name]) && strlen(!is_array($params[$name])?$params[$name]:'') > 0 && $table_field->get_column_in_db() == true) { $sqlUpdate .= ($first == false ? " , " : "") . $name . " = :" . $name; $db_params[$name] = $params[$name]; $first = false; } } $db_params[$this->id_field] = $id; $req = Database::getBdd()->prepare($sqlUpdate . $sqlWhere); return $req->execute($db_params); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function save() {\n $query = \"\";\n\n // Se for um novo registro, cria uma query INSERT INTO\n if($this->new_register) {\n $columns = array();\n $values = array();\n\n foreach($this->get_columns_information() as $column) {\n if(('id' == $column['column_name'] && $this->get_column_value($column['column_name']) > 0) || 'id' != $column['column_name']) {\n $columns[] = $column['column_name'];\n $values[] = $this->get_column_value($column['column_name']);\n }\n }\n\n $query = \"INSERT INTO {$this->get_table_name()}(\" . implode(', ', $columns) . \") VALUES(\" . implode(', ', $values) . \");\";\n\n unset($columns, $values);\n\n // Se o registro ja existe e foi alterado, cria uma query UPDATE\n } else {\n $sets = array();\n $conds = array();\n\n $changed = false;\n\n // Cria o trecho da query com os valores para SET e as condicoes para WHERE\n foreach($this->get_columns_information() as $column) {\n $value = $this->get_column_value($column['column_name']);\n $old_value = $this->get_column_value($column['column_name'], true);\n\n // Verifica se algum campo foi modificado\n if($value !== $old_value)\n $changed = true;\n\n $sets[] = \"{$column['column_name']} = {$value}\";\n $conds[] = ($old_value != 'NULL') ? (\"{$column['column_name']} = {$old_value}\")\n : (\"({$column['column_name']} IS NULL OR {$column['column_name']} = '')\");\n }\n\n // Cria query de atualizacao apenas se houve alguma modificacao\n if($changed)\n $query = \"UPDATE {$this->get_table_name()}\n SET \" . implode(', ', $sets) . \"\n WHERE \" . implode(' AND ', $conds) . \";\";\n\n unset($sets, $conds);\n }\n\n // Tenta salvar o registro\n // Se salvar corretamente, atualiza os dados do objeto para que da proxima vez ele seja atualizado, caso seja um registro novo\n if(DB::execute($query)) {\n $this->new_register = false;\n $data = array();\n\n foreach($this->get_columns_information() as $column) {\n $this->{'_' . $column['column_name']} = $this->$column['column_name'];\n $data[$column['column_name']] = $this->$column['column_name'];\n }\n\n return true;\n }\n\n return false;\n }", "function Save(){\n // If id is set, update the current register in database\n if(isset($this->idAval)){\n // Makes the update in the database\n return $this->UpdateSQL([\"ID_AVAL = \".$this->idAval]) > 0;\n }else{\n // If id is not set, insert a new row in database\n $this->fecha = date_format(new \\DateTime('now', new \\DateTimeZone('America/Argentina/Buenos_Aires')), 'Y-m-d H:i:s');\n if($this->InsertSQL()>0){\n // Refresh get the inserted id and refresh the object values\n return $this->Refresh();\n }\n }\n return false;\n }", "public function save()\n {\n if ($this->id === null) {\n $this->insert();\n } else {\n $this->update();\n }\n }", "public function save()\n {\n if ($this->id) {\n $this->update();\n } else {\n $this->id = $this->insert();\n }\n }", "public function save(){\r\n return isset($this->id) ? $this->update() : $this->create();\r\n }", "public function save()\n {\n if (self::isExistent($this->guid))\n {\n return $this->update();\n }\n else\n {\n return $this->insert();\n }\n }", "public function save(){\n return isset($this->id) ? $this->update() : $this->create();\n \n }", "public function actualizaEstado(){\n $this->estado = 'Completo';\n // $this->cotiza = $this->generarCustomID();\n $this->save();\n }", "protected function _postSave($success, $exists) {}", "public function save(){\r\n\t \t\treturn isset($this->id) ? $this->update() : $this->create();\r\n\t\t}", "public function saveEntidad(){\n\t\t$conexion = new Database();\n if ($this->codigo){\n $query = sprintf('UPDATE agenda_entidades SET entidad = \"%s\" WHERE entidad_id = %d',\n $this->entidad,\n $this->codigo);\n $rows = $conexion->exec( $query );\n }\n else{\n $query = sprintf('INSERT INTO agenda_entidades(entidad) VALUES (\"%s\")',\n $this->usuario);\n\t\t\t$rows = $conexion->exec( $query );\n $this->codigo = $conexion->lastInsertId();\n }\n }", "public function save(){\n if($this->id == 0) {\n // Object is new and needs to be created\n return $this->insert();\n }\n }", "public function save(){\n\t\treturn isset($this->id)?$this->update():$this->create();\t\n\t}", "function save() {\n\n\t\tif ( $this->exists ) {\n\t\t\t// update changed fields\n\t\t\t$changed_data = array_intersect_key( $this->data, array_flip( $this->changed_fields ) );\n\n\t\t\t// serialize\n\t\t\t$changed_data = array_map( 'maybe_serialize', $changed_data );\n\n\t\t\tif ( empty( $changed_data ) ) {\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\t$queue_id = $this->get_id();\n\n\t\t\t$updated = $this->update( $queue_id, $changed_data );\n\n\t\t\tif ( false === $updated ) {\n\t\t\t\t// Return here to prevent cache updates on error\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tdo_action( 'ig_es_object_update', $this ); // cleans object cache\n\t\t} else {\n\t\t\t$this->set_created_at( new DateTime() );\n\t\t\t$this->data = array_map( 'maybe_serialize', $this->data );\n\t\t\t\n\t\t\t// insert row\n\t\t\t$queue_id = $this->insert( $this->data );\n\n\t\t\tif ( $queue_id ) {\n\t\t\t\t$this->exists = true;\n\t\t\t\t$this->id = $queue_id;\n\t\t\t} else {\n\n\t\t\t\tES()->logger->error( sprintf( __( 'Could not insert into \\'%1$s\\' table. \\'%1$s\\' may not be present in the database.', 'email-subscribers' ), $this->table_name ), $this->logger_context );\n\n\t\t\t\t// Return here to prevent cache updates on error\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\t// reset changed data\n\t\t// important to reset after cache hooks\n\t\t$this->changed_fields = [];\n\t\t$this->original_data = $this->data;\n\n\t\treturn true;\n\t}", "public function save() {\r\n $dateNow = date('Y-m-d H:i:s', time());\r\n $this->id = (int) $this->id;\r\n \r\n if (!empty($this->id)) {\r\n //update case\r\n if ($this->_update()) {\r\n return true;\r\n }\r\n }\r\n else {\r\n //Insert case\r\n if ($this->_insert()) {\r\n return true;\r\n }\r\n }\r\n }", "public function save(){\r\n\t\tif(empty($this->idPrestamoEjemplar)){\t\t\t\r\n\t\t\t$this->idPrestamoEjemplar = $this->con->autoInsert(array(\r\n\t\t\t\"Prestamo_idPrestamo\" => $this->prestamoIdPrestamo,\r\n\t\t\t\"Ejemplar_idEjemplar\" => $this->ejemplarIdEjemplar,\r\n\t\t\t),\"prestamo_has_ejemplar\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\treturn $this->con->autoUpdate(array(\r\n\t\t\t\"Prestamo_idPrestamo\" => $this->prestamoIdPrestamo,\r\n\t\t\t\"Ejemplar_idEjemplar\" => $this->ejemplarIdEjemplar,\r\n\t\t\t),\"prestamo_has_ejemplar\",\"idPrestamo_Ejemplar=\".$this->getId());\r\n\t}", "public function save()\n {\n $entities = $this->entities;\n Database::getInstance()->doTransaction(\n function() use ($entities)\n {\n foreach ($entities as $entity)\n {\n if ($entity->getMarkedAsDeleted())\n {\n $entity->delete();\n } \n else if ($entity->getMarkedAsUpdated())\n {\n $entity->saveWithDetails();\n }\n }\n }\n );\n }", "public function save(){\n // if(isset($this->id)){$this->update();} else {$this->create();}\n return isset($this->id)? $this->update(): $this->create() ;\n\n }", "public function save()\n {\n $this->checkForNecessaryProperties();\n\n $this->update($this->getCurrentId(), $this->data);\n }", "public function save()\n {\n $this->hasTableName();\n $pk = $this->pk;\n $condition = \"\";\n if ($this->isNew) {\n $sql = \"INSERT INTO \" . $this->table_name . \" SET \";\n $update = '';\n } else {\n if (!isset($this->$pk))\n throw new Exception('Update em objeto sem chave definida', 403);\n\n $sql = \"UPDATE \" . $this->table_name . \" SET \";\n $update = \" WHERE `\" . $this->pk . \"` = '\" . $this->$pk . \"'\";\n }\n foreach ($this->rules() as $key => $validation) {\n if ($this->validateField($key, $validation) && isset($this->$key) && $this->$key != \"\") {\n $sql .= \" `\" . $key . \"` = '\" . $this->$key . \"',\";\n $condition .= \" `\" . $key . \"` = '\" . $this->$key . \"' AND\";\n }\n }\n if (!$this->getErrors()) {\n $sql = substr($sql, 0, -1) . $update;\n if (Database::dbactionf($sql)) {\n if ($this->isNew) {\n $this->$pk = Database::lastID();\n $this->persisted();\n }\n return true;\n }\n }\n return false;\n }", "public function testUpdate()\n {\n $id = $this->tester->grabRecord('common\\models\\Comentario', ['id_receita' => 2]);\n $receita = Comentario::findOne($id);\n $receita->descricao = 'novo Comentario';\n $receita->update();\n $this->tester->seeRecord('common\\models\\Comentario', ['descricao' => 'novo Comentario']);\n }", "public function save(){\n\n\t\t$this->_connect();\n\t\t$exists = $this->_exists();\n\n\t\tif($exists==false){\n\t\t\t$this->_operationMade = self::OP_CREATE;\n\t\t} else {\n\t\t\t$this->_operationMade = self::OP_UPDATE;\n\t\t}\n\n\t\t// Run Validation Callbacks Before\n\t\t$this->_errorMessages = array();\n\t\tif(self::$_disableEvents==false){\n\t\t\tif($this->_callEvent('beforeValidation')===false){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tif(!$exists){\n\t\t\t\tif($this->_callEvent('beforeValidationOnCreate')===false){\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif($this->_callEvent('beforeValidationOnUpdate')===false){\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//Generadores\n\t\t$className = get_class($this);\n\t\t$generator = null;\n\t\tif(EntityManager::hasGenerator($className)){\n\t\t\t$generator = EntityManager::getEntityGenerator($className);\n\t\t\t$generator->setIdentifier($this);\n\t\t}\n\n\t\t//LLaves foráneas virtuales\n\t\tif(EntityManager::hasForeignKeys($className)){\n\t\t\t$foreignKeys = EntityManager::getForeignKeys($className);\n\t\t\t$error = false;\n\t\t\tforeach($foreignKeys as $indexKey => $keyDescription){\n\t\t\t\t$entity = EntityManager::getEntityInstance($indexKey, false);\n\t\t\t\t$field = $keyDescription['fi'];\n\t\t\t\tif($this->$field==''){\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t$conditions = $keyDescription['rf'].' = \\''.$this->$field.'\\'';\n\t\t\t\tif(isset($keyDescription['op']['conditions'])){\n\t\t\t\t\t$conditions.= ' AND '.$keyDescription['op']['conditions'];\n\t\t\t\t}\n\t\t\t\t$rowcount = $entity->count($conditions);\n\t\t\t\tif($rowcount==0){\n\t\t\t\t\tif(isset($keyDescription['op']['message'])){\n\t\t\t\t\t\t$userMessage = $keyDescription['op']['message'];\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$userMessage = 'El valor de \"'.$keyDescription['fi'].'\" no existe en la tabla referencia';\n\t\t\t\t\t}\n\t\t\t\t\t$message = new ActiveRecordMessage($userMessage, $keyDescription['fi'], 'ConstraintViolation');\n\t\t\t\t\t$this->appendMessage($message);\n\t\t\t\t\t$error = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif($error==true){\n\t\t\t\t$this->_callEvent('onValidationFails');\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\t$notNull = $this->_getNotNullAttributes();\n\t\t$at = $this->_getDatesAtAttributes();\n\t\t$in = $this->_getDatesInAttributes();\n\t\tif(is_array($notNull)){\n\t\t\t$error = false;\n\t\t\t$numFields = count($notNull);\n\t\t\tfor($i=0;$i<$numFields;++$i){\n\t\t\t\t$field = $notNull[$i];\n\t\t\t\tif($this->$field===null||$this->$field===''){\n\t\t\t\t\tif(!$exists&&$field=='id'){\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tif(!$exists){\n\t\t\t\t\t\tif(isset($at[$field])){\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif(isset($in[$field])){\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t$field = str_replace('_id', '', $field);\n\t\t\t\t\t$message = new ActiveRecordMessage(\"El campo $field no puede ser nulo ''\", $field, 'PresenceOf');\n\t\t\t\t\t$this->appendMessage($message);\n\t\t\t\t\t$error = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif($error==true){\n\t\t\t\t$this->_callEvent('onValidationFails');\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\t// Run Validation\n\t\tif($this->_callEvent('validation')===false){\n\t\t\t$this->_callEvent('onValidationFails');\n\t\t\treturn false;\n\t\t}\n\n\t\tif(self::$_disableEvents==false){\n\t\t\t// Run Validation Callbacks After\n\t\t\tif(!$exists){\n\t\t\t\tif($this->_callEvent('afterValidationOnCreate')===false){\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif($this->_callEvent('afterValidationOnUpdate')===false){\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif($this->_callEvent('afterValidation')===false){\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t// Run Before Callbacks\n\t\t\tif($this->_callEvent('beforeSave')===false){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tif($exists){\n\t\t\t\tif($this->_callEvent('beforeUpdate')===false){\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif($this->_callEvent('beforeCreate')===false){\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif($this->_schema){\n\t\t\t$table = $this->_schema.'.'.$this->_source;\n\t\t} else {\n\t\t\t$table = $this->_source;\n\t\t}\n\n\t\t$magicQuotesRuntime = get_magic_quotes_runtime();\n\t\t$dataType = $this->_getDataTypes();\n\t\t$primaryKeys = $this->_getPrimaryKeyAttributes();\n\t\t$dataTypeNumeric = $this->_getDataTypesNumeric();\n\t\tif($exists){\n\t\t\tif(self::$_dynamicUpdate==false){\n\t\t\t\t$fields = array();\n\t\t\t\t$values = array();\n\t\t\t\t$nonPrimary = $this->_getNonPrimaryKeyAttributes();\n\t\t\t\tforeach($nonPrimary as $np){\n\t\t\t\t\tif(isset($in[$np])){\n\t\t\t\t\t\t$this->$np = Date::now();\n\t\t\t\t\t}\n\t\t\t\t\t$fields[] = $np;\n\t\t\t\t\tif(is_object($this->$np)&&($this->$np instanceof DbRawValue)){\n\t\t\t\t\t\t$values[] = $this->$np->getValue();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif($this->$np===''||$this->$np===null){\n\t\t\t\t\t\t\t$values[] = 'NULL';\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif(!isset($dataTypeNumeric[$np])){\n\t\t\t\t\t\t\t\tif($dataType[$np]=='date'){\n\t\t\t\t\t\t\t\t\t$values[] = $this->_db->getDateUsingFormat($this->$np);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t$values[] = '\\''.addslashes($this->$np).'\\'';\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$values[] = '\\''.addslashes($this->$np).'\\'';\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} else {\n\t\t\t\t$conditions = array();\n\t\t\t\tforeach($primaryKeys as $field){\n\t\t\t\t\t$conditions[] = $field.' = \\''.$this->field.'\\'';\n\t\t\t\t}\n\t\t\t\t$pkCondition = join(' AND ', $conditions);\n\t\t\t\t$existRecord = clone $this;\n\t\t\t\t$record = $existRecord->findFirst($pkCondition);\n\t\t\t\t$fields = array();\n\t\t\t\t$values = array();\n\t\t\t\t$nonPrimary = $this->_getNonPrimaryKeyAttributes();\n\t\t\t\tforeach($nonPrimary as $np){\n\t\t\t\t\tif(isset($in[$np])){\n\t\t\t\t\t\t$this->$np = $this->_db->getCurrentDate();\n\t\t\t\t\t}\n\t\t\t\t\tif(is_object($this->$np)){\n\t\t\t\t\t\tif($this->$np instanceof DbRawValue){\n\t\t\t\t\t\t\t$value = $this->$np->getValue();\n\t\t\t\t\t\t\tif($record->$np!=$value){\n\t\t\t\t\t\t\t\t$fields[] = $np;\n\t\t\t\t\t\t\t\t$values[] = $values;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tthrow new ActiveRecordException('El objeto instancia de \"'.get_class($this->$field).'\" en el campo \"'.$field.'\" es muy complejo, debe realizarle un \"cast\" a un tipo de dato escalar antes de almacenarlo');\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif($this->$np===''||$this->$np===null){\n\t\t\t\t\t\t\tif($record->$np!==''&&$record->$np!==null){\n\t\t\t\t\t\t\t\t$fields[] = $np;\n\t\t\t\t\t\t\t\t$values[] = 'NULL';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif(!isset($dataTypeNumeric[$np])){\n\t\t\t\t\t\t\t\tif($dataType[$np]=='date'){\n\t\t\t\t\t\t\t\t\t$value = $this->_db->getDateUsingFormat($this->$np);\n\t\t\t\t\t\t\t\t\tif($record->$np!=$value){\n\t\t\t\t\t\t\t\t\t\t$fields[] = $np;\n\t\t\t\t\t\t\t\t\t\t$values[] = $value;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tif($record->$np!=$this->$np){\n\t\t\t\t\t\t\t\t\t\t$fields[] = $np;\n\t\t\t\t\t\t\t\t\t\t$values[] = \"'\".addslashes($this->$np).\"'\";\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\t$success = $this->_db->update($table, $fields, $values, $this->_wherePk);\n\t\t} else {\n\t\t\t$fields = array();\n\t\t\t$values = array();\n\t\t\t$attributes = $this->getAttributes();\n\t\t\tforeach($attributes as $field){\n\t\t\t\tif($field!='id'){\n\t\t\t\t\tif(isset($at[$field])){\n\t\t\t\t\t\tif($this->$field==null||$this->$field===\"\"){\n\t\t\t\t\t\t\t$this->$field = $this->_db->getCurrentDate();\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif(isset($in[$field])){\n\t\t\t\t\t\t\t$this->$field = new DbRawValue('NULL');\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t$fields[] = $field;\n\t\t\t\t\tif(is_object($this->$field)){\n\t\t\t\t\t\tif($this->$field instanceof DbRawValue){\n\t\t\t\t\t\t\t$values[] = $this->$field->getValue();\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tthrow new ActiveRecordException('El objeto instancia de \"'.get_class($this->$field).'\" en el campo \"'.$field.'\" es muy complejo, debe realizarle un \"cast\" a un tipo de dato escalar antes de almacenarlo');\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif(isset($dataTypeNumeric[$field])||$this->$field=='NULL'){\n\t\t\t\t\t\t\tif($this->$field===''||$this->$field===null){\n\t\t\t\t\t\t\t\t$values[] = 'NULL';\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t$values[] = addslashes($this->$field);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif($dataType[$field]=='date'){\n\t\t\t\t\t\t\t\tif($this->$field===null||$this->$field===''){\n\t\t\t\t\t\t\t\t\t$values[] = 'NULL';\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t$values[] = $this->_db->getDateUsingFormat(addslashes($this->$field));\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($this->$field===null||$this->$field===''){\n\t\t\t\t\t\t\t\t\t$values[] = 'NULL';\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tif($magicQuotesRuntime==true){\n\t\t\t\t\t\t\t\t\t\t$values[] = \"'\".$this->$field.\"'\";\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t$values[] = \"'\".addslashes($this->$field).\"'\";\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\t$sequenceName = '';\n\t\t\tif($generator===null){\n\t\t\t\tif(count($primaryKeys)==1){\n\t\t\t\t\t// Hay que buscar la columna identidad aqui!\n\t\t\t\t\tif(!isset($this->id)||!$this->id){\n\t\t\t\t\t\tif(method_exists($this, 'sequenceName')){\n\t\t\t\t\t\t\t$sequenceName = $this->sequenceName();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$identityValue = $this->_db->getRequiredSequence($this->_source, $primaryKeys[0], $sequenceName);\n\t\t\t\t\t\tif($identityValue!==false){\n\t\t\t\t\t\t\t$fields[] = 'id';\n\t\t\t\t\t\t\t$values[] = $identityValue;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif(isset($this->id)){\n\t\t\t\t\t\t\t$fields[] = 'id';\n\t\t\t\t\t\t\t$values[] = $this->id;\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\t$success = $this->_db->insert($table, $values, $fields);\n\t\t}\n\t\tif($this->_db->isUnderTransaction()==false){\n\t\t\tif($this->_db->getHaveAutoCommit()==true){\n\t\t\t\t$this->_db->commit();\n\t\t\t}\n\t\t}\n\t\tif($success){\n\t\t\tif($exists==true){\n\t\t\t\t$this->_callEvent('afterUpdate');\n\t\t\t} else {\n\t\t\t\tif($generator===null){\n\t\t\t\t\tif(count($primaryKeys)==1){\n\t\t\t\t\t\tif(isset($dataTypeNumeric[$primaryKeys[0]])){\n\t\t\t\t\t\t $lastId = $this->_db->lastInsertId($table, $primaryKeys[0], $sequenceName);\n\t\t\t\t\t\t if($lastId>0){\n\t\t\t\t\t\t\t $this->{$primaryKeys[0]} = $lastId;\n\t\t\t\t\t\t\t\t$this->findFirst($lastId);\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} else {\n\t\t\t\t\t//Actualiza el consecutivo para algunos generadores\n\t\t\t\t\t$generator->updateConsecutive($this);\n\t\t\t\t}\n\t\t\t\t$this->_callEvent('afterCreate');\n\t\t\t}\n\t\t\t$this->_callEvent('afterSave');\n\t\t\treturn $success;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public function presupuestoModificado(){\n $this->iPresupuestoModificado = $this->iPresupuestoInicial;\n $this->save();\n }", "public function save()\n\t{\n\t\tif( $this->isExist )\n\t\t{\n\t\t\treturn $this->update();\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn $this->insert();\n\t\t}\n\t}", "public function save()\n {\n $ins = $this->valores();\n unset($ins[\"idInscription\"]);\n\n $ins['idUser'] = $this->userO->idUser;\n unset($ins[\"userO\"]);\n\n $ins['idProject'] = $this->project->idProject;\n unset($ins[\"project\"]);\n\n if (empty($this->idInscription)) {\n $this->insert($ins);\n $this->idInscription = self::$conn->lastInsertId();\n } else {\n $this->update($this->idInscription, $ins);\n }\n }", "public function save() \n\t{\n\t\tif (isset($this->id)) {\t\n\t\t\n\t\t\t// Return update when id exists\n\t\t\treturn $this->update();\n\t\t\t\n\t\t} else {\n\t\t\n\t\t\t// Return insert when id does not exists\n\t\t\treturn $this->insert();\n\t\t}\n\t}", "function create_or_update($name,$data) {\n return $this->save($name,$data);\n }", "public function save() : bool {\n\t\t// Check if record is new\n\t\t$isNew = isset($this->{$this->primaryKey}) && $this->{$this->primaryKey} ? false : true;\n\n\t\tif ($isNew) {\n\t\t\t// Insert\n\t\t\t$this->database->query('INSERT INTO ' . $this->tableNamePrefixed, $this->getValuesForDatabase());\n\t\t\tif ($this->database->getInsertId()) {\n\t\t\t\t$this->{$this->primaryKey} = $this->database->getInsertId();\n\t\t\t}\n\t\t} else {\n\t\t\t// Update\n\t\t\t$this->database->query(\n\t\t\t\t'UPDATE ' . $this->tableNamePrefixed . ' SET',\n\t\t\t\t$this->getValuesForDatabase(),\n\t\t\t\t'WHERE ' . $this->primaryKey . ' = ?', $this->{$this->primaryKey}\n\t\t\t);\n\t\t}\n\n\t\treturn true;\n\t}", "public function save()\n {\n $primary = $this->primary_key;\n $id = null;\n\n try {\n \n /** Verifica os campos obrigatórios */\n if ( !$this->required() ) {\n throw new \\Exception('Preencha os campos necessários.');\n }\n\n $date_now = (new \\DateTime())->format('Y-m-d H:i:s');\n\n /** Se for um update */\n if ( !empty($this->data->$primary) ) {\n $this->data->updated_at = $date_now;\n $id = $this->data->$primary;\n $this->update($this->safe(), [\"{$this->primary_key}=\" => $id]);\n }\n\n /** Se for um create */\n if ( empty($this->data->$primary) ) {\n $this->data->created_at = $date_now;\n $this->data->updated_at = $date_now;\n $id = $this->create($this->safe());\n }\n\n if ( !$id ) {\n return false;\n }\n\n $this->data = $this->findByPrimaryKey($id);\n return true;\n\n } catch(\\Exception $exception) {\n $this->fail = $exception;\n return false;\n }\n }", "function save(){\n if( !$this->validate() ){\n return false;\n }\n \n if($this->id){\n return $this->update();\n } else {\n return $this->create();\n }\n }", "public function guardar()\n\t{\n\t\t// Crear una instancia de la conexion\n\t\t$conexion = new Conexion;\n\n\t\t// Comprobar si es un registro nuevo o uno ya existente\n\t\tif ($this->update) {\n\n\t\t\t// Preparar la sentencia para actualizar el tipo de rol en la bd\n\t\t\t$sentencia = $conexion->conn->prepare(\"UPDATE \". static::$tablaConsulta . \" SET medio= ? WHERE id= ?\");\n\n\t\t\t// Pasar los campos del objecto a la sentencia\n\t\t\t$sentencia->bind_param(\n\t\t\t\t\t'si',\n\t\t\t\t\t$this->medio,\n\t\t\t\t\t$this->id\n\t\t\t);\n\n\t\t} else {\n\n\t\t\t// Preparar la sentencia para isertar el tipo de rol en la bd\n\t\t\t$sentencia = $conexion->conn->prepare(\"INSERT INTO \". static::$tablaConsulta . \" VALUES (null, ?)\");\n\n\t\t\t// Pasar los campos del objecto a la sentencia\n\t\t\t$sentencia->bind_param(\n\t\t\t\t\t's',\n\t\t\t\t\t$this->medio\n\t\t\t);\n\t\t}\n\n\n // Ejecutar la sentencia\n\t\tif ( $sentencia->execute() ) {\n\n\t\t\t// Devolver un uno si fue un exito\n\t\t\treturn 1;\n\t\t} else {\n\n\t\t\t// Devolver un 0 si ocurrio un error\n\t\t\treturn 0;\n\t\t}\n\t}", "public function save()\n {\n // datos obligatorios para la insercion/modificacion\n $data = [\n \"propietario\" => $this->owner,\n \"estado\" => $this->state,\n \"nombre\" => $this->name\n ];\n\n // datos opcionales, que pueden no estar establecidos para la \n // insercion/modificacion\n if (isset($this->description)) $data[\"descripcion\"] = $this->description;\n\n // si idProduct no es null, entonces es un update\n if (isset($this->idProduct))\n return $this->dao->update($data, [\"idProducto\" => $this->idProduct]);\n\n // sino, es un insert\n return $this->dao->insert($data);\n }", "public function save() {\n return isset($this->id) ? $this->update() : $this->create();\n }", "public function save()\n {\n $pdo = $this->getDbConnection();\n $valuesRow = $this->prepareValuesRow();\n\n $pdo->exec(\"REPLACE INTO {$this->dbTable} (`key`, `value`) VALUES {$valuesRow}\");\n }", "public function persist() {\n $bd = BD::getConexion();\n $sqlInsertUsuario = \"insert into usuarios (nomUsuario, clave) values (:nomUsuario, :clave)\";\n $sthSqlInsertUsuario = $bd->prepare($sqlInsertUsuario);\n $result = $sthSqlInsertUsuario->execute([\":nomUsuario\" => $this->nomUsuario, \":clave\" => $this->clave]);\n $this->id = (int) $bd->lastInsertId();\n }", "public function save(){\n\t\t\n\t\tif(!isset($this->data[$this->primary_key])){\n\t\t\t$success = $this->db\n\t\t\t\t->set($this->data)\n\t\t\t\t->insert($this->table);\n\n\t\t\t$this->data[$this->primary_key] = $this->db->last_insert_id;\n\t\t}else{\n\t\t\t$success = $this->db\n\t\t\t\t->set($this->data)\n\t\t\t\t->where($this->primary_key, $this->data[$this->primary_key])\n\t\t\t\t->update($this->table);\n\t\t}\n\n\t\treturn $success;\n\t}", "function Save(){\n $rowsAffected = 0;\n if(isset($this->legajo)){\n $rowsAffected = $this->UpdateSQL([\"legajo = \".$this->legajo]);\n }else{\n $rowsAffected = $this->InsertSQL();\n if($rowsAffected > 0){\n $this->legajo = $this->Max(\"legajo\");\n }\n }\n if($rowsAffected == 0){\n throw new \\Exception(\"Error al guardar Usuario\");\n }else{\n $this->Refresh();\n }\n }", "function testResetOfExistsOnCreate() {\n\t\t$this->loadFixtures('Article');\n\t\t$Article =& new Article();\n\t\t$Article->id = 1;\n\t\t$Article->saveField('title', 'Reset me');\n\t\t$Article->delete();\n\t\t$Article->id = 1;\n\t\t$this->assertFalse($Article->exists());\n\n\t\t$Article->create();\n\t\t$this->assertFalse($Article->exists());\n\t\t$Article->id = 2;\n\t\t$Article->saveField('title', 'Staying alive');\n\t\t$result = $Article->read(null, 2);\n\t\t$this->assertEqual($result['Article']['title'], 'Staying alive');\n\t}", "public function actualizar()\n {\n $id = $this->input->post('id_professor');\n $professor = array(\n \"nome_professor\" => $this->input->post('nome_professor')\n );\n $this->db->where('id_professor', $id);\n return $this->db->update('professor', $professor);\n }", "public function save() {\n return $this->{static::$primaryKey} === null? $this->create() : $this->update();\n }", "public function save() {\n\t\treturn isset($this->id) ? $this->update() : $this->create();\n\t}", "public function save() {\n\t\treturn isset($this->id) ? $this->update() : $this->create();\n\t}", "public function persist() {\n $bd = BD::getConexion();\n $sql = \"insert into usuarios (nombre, clave) values (:nombre, :clave)\";\n $sthSql = $bd->prepare($sqlInsertUsuario);\n $result = $sthSql->execute([\":nombre\" => $this->nombre, \":clave\" => $this->clave]);\n $this->id = (int) $bd->lastInsertId();\n }", "public function testResetOfExistsOnCreate() {\n\t\t$this->loadFixtures('Article');\n\t\t$Article = new Article();\n\t\t$Article->id = 1;\n\t\t$Article->saveField('title', 'Reset me');\n\t\t$Article->delete();\n\t\t$Article->id = 1;\n\t\t$this->assertFalse($Article->exists());\n\n\t\t$Article->create();\n\t\t$this->assertFalse($Article->exists());\n\t\t$Article->id = 2;\n\t\t$Article->saveField('title', 'Staying alive');\n\t\t$result = $Article->read(null, 2);\n\t\t$this->assertEquals('Staying alive', $result['Article']['title']);\n\t}", "public function store()\n {\n if( $this->isPersistent() )\n {\n $this->update();\n }\n else\n {\n $this->insert();\n }\n }", "public function save(){\r\n\t\tif ($this->new){\r\n\t\t\treturn $this->insert();\r\n\t\t} else {\r\n\t\t\treturn $this->update();\r\n\t\t}\r\n\t}", "public function save(){\n\t\t$res = true;\n\t\t$changedData = $this->changedData();\n\t\tif(count($changedData)){\n\t\t\tif(!empty($this->orig)){\n\t\t\t\t$res = (dbHelper::updateQry($this->tableName,$changedData,array($this->primaryKey=>$this->data[$this->primaryKey]))?true:false);\n\t\t\t\t$this->orig = $this->data;\n\t\t\t} else {\n\t\t\t\t//if this row has been deleted but someone else saves data to it this will automatically restore the row from $data\n\t\t\t\t$res = (dbHelper::insertQry($this->tableName,$this->data)?true:false);\n\t\t\t\t$this->data[$this->primaryKey] = db::insertID();\n\t\t\t\tdbData::addRow($this->tableName,$this->primaryKey,$this->data);\n\t\t\t\t$this->orig =& dbData::rowRefrence($this->tableName,$this->primaryKey,$this->data[$this->primaryKey]);\n\t\t\t}\n\t\t}\n\t\treturn $res;\n\t}", "public static function save()\n\t{\n//\t\t{\n//\t\t\techo static::$error;\n//\t\t\treturn false;\n//\t\t}\n\n\t\t$instance = static::$_instance[static::_getTable()];\n\t\t$columns = DB::getColumnListing(static::$_table);\n\n\t\tif (@$instance->id)\n\t\t{\n\t\t\tDB::where($instance->id);\n\n\t\t\tif (in_array('updated', $columns))\n\t\t\t\t$instance->updated = date('Y-m-d H:i:s');\n\n\t\t\tif (in_array('updater', $columns))\n\t\t\t\t$instance->updater = (int)Auth::identity()->id;\n\n\t\t\tDB::table(static::$_table)->update($instance);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif (in_array('ordering', $columns))\n\t\t\t\t$instance->ordering = DB::table(static::$_table)->getNewOrdering();\n\n\t\t\tif (in_array('created', $columns))\n\t\t\t\t$instance->created = date('Y-m-d H:i:s');\n\n\t\t\tif (in_array('creator', $columns))\n\t\t\t\t$instance->creator = (int)Auth::identity()->id;\n\n\t\t\tDB::table(static::$_table)->insert($instance);\n\t\t\t$instance->id = DB::getLastInsertId();\n\t\t}\n\n\t\treturn true;\n\t}", "protected function saveUpdate()\n {\n }", "public function actualizar(){\n }", "public function actualizar(){\n }", "public function save () {\n // Atualiza\n // @ verifico se o atributo \"id_emprestimo\" existe neste objeto.\n // lembrando que este atributo é apagado se criamos um novo emprestimo.\n if ( isset($this->id_emprestimo) ) {\n $this->db->update('emprestimos', $this, array('id_emprestimo' => $this->id_emprestimo));\n }\n\n // Salva\n else {\n $this->db->insert('emprestimos', $this);\n }\n }", "public function store()\n {\n if (!$this->id) { // Insert\n $this->insertObject();\n } else { // Update\n $this->updateObject();\n }\n }", "public function save()\n\t\t{\n\t\treturn isset($this->userguid) ? $this->update() : $this->create();\n\t\t}", "public function save()\n {\n $this->_validateModifiable();\n\n if($this->isNew())\n {\n $this->_getDataSource()->create($this);\n }\n else\n {\n $this->_getDataSource()->update($this);\n }\n\n $this->_saveRelations();\n $this->_setNew(false);\n }", "public function actualizar(){\n }", "public function save()\n {\n $this->setData(array(\n 'modified' => time(),\n 'modifiedReadable' => Zend_Date::now()->get(Zend_Date::ISO_8601)\n ));\n \n $unmappedData = $this->getBean()->asDeepArray(true);\n if(key_exists('_id', $unmappedData)) {\n unset($unmappedData['_id']);\n }\n\n if (!($id = $this->_save($unmappedData, $this->getId()))) {\n return false;\n }\n\n $this->_setId($id);\n \n return true;\n }", "public function save() {}", "public function save() {}", "public function save() {}", "public function save() {\n if(!isset($this->id)) {\n $this->insert();\n } else {\n foreach ($this->fillable as $key => $value) {\n $data[$key] = $this->$key;\n }\n $qb = $this::set($data);\n $qb->where(['id' => $this->id])->make();\n return true;\n }\n }", "public function save() {\n\n return isset($this->id) ? $this->update() : $this->create();\n }", "public function markAsPersisted(): void;", "private function _exists() {\n // taky typ uz existuje ?\n $id = $this->equipment->getID();\n if ($id > 0) {\n $this->flash(\"Také vybavenie už existuje.<br/>Presmerované na jeho editáciu.\", \"error\");\n $this->redirect(\"ape/equipment/edit/$id\");\n }\n }", "public function save() {\n\t\t\n\t\treturn isset($this->members_id) ? $this->update() : $this->create(); //and this one??\n\t\t\n\t}", "public function saveAction() {\n $logger = $this->get('logger');\n if (!$this->get('request')->isXmlHttpRequest()) { // Is the request an ajax one?\n return new Response(\"<b>Not an ajax call!!!\" . \"</b>\");\n }\n\n try {\n //Get parameters\n $request = $this->get('request');\n $id = $request->get('id');\n $name = $request->get('name');\n $lastname = $request->get('lastname');\n $username = $request->get('username');\n $email = $request->get('email');\n $cellPhone = $request->get('cellPhone');\n $isActive = $request->get('isActive');\n $isCreating = false;\n\n $translator = $this->get(\"translator\");\n\n if( isset($id) && isset($name) && trim($name) != \"\"\n && isset($lastname) && trim($lastname) != \"\"\n && isset($username) && trim($username) != \"\") {\n $em = $this->getDoctrine()->getManager();\n $entity = new User();\n if($id != 0) { //It's updating, find the user\n $entity = $em->getRepository('TecnotekAsiloBundle:User')->find($id);\n }\n if( isset($entity) ) {\n $entity->setName($name);\n $entity->setLastname($lastname);\n $entity->setUsername($username);\n $entity->setCellPhone($cellPhone);\n $entity->setEmail($email);\n $entity->setIsActive( ($isActive==\"true\")? 1:0);\n $rawPassword = $this->generateStrongPassword();\n if($id == 0) { // If it's new must generates a new password\n $encoder = $this->container->get('security.encoder_factory')->getEncoder($entity);\n $entity->setPassword($encoder->encodePassword($rawPassword, $entity->getSalt()));\n $isCreating = true;\n }\n\n if($em->getRepository(\"TecnotekAsiloBundle:User\")\n ->checkUniqueUsernameAndEmail($username, $email, $id) ) {\n\n $em->persist($entity);\n $em->flush();\n if($isCreating) { // If it's new must email the new account email including the password\n $roleEmployee = $em->getRepository('TecnotekAsiloBundle:Role')->findOneByRole(\"ROLE_EMPLOYEE\");\n $entity->getUserRoles()->add($roleEmployee);\n $em->persist($entity);\n $em->flush();\n $logger->info(\"Send Email for new Account with password: \" . $rawPassword);\n $this->sendEmailForNewAccount($entity, $rawPassword);\n }\n return new Response(json_encode(array(\n 'error' => false,\n 'msg' => $translator->trans('catalog.save.success'))));\n } else {\n return new Response(json_encode(array(\n 'error' => true,\n 'msg' => $translator->trans('user.username.and.email.must.be.uniques'))));\n }\n } else {\n return new Response(json_encode(array('error' => true, 'msg' => \"Missing Parameters 2\")));\n }\n } else {\n return new Response(json_encode(array('error' => true, 'msg' => \"Missing Parameters 1\")));\n }\n } catch (Exception $e) {\n $info = toString($e);\n $logger->err('User::saveAction [' . $info . \"]\");\n return new Response(json_encode(array('error' => true, 'msg' => $info)));\n }\n }", "function alumno_registra_entrada($codigo_curso,$codigo_alumno,$entrada){\r\n\t\t$cn = $this->conexion();\r\n \r\n if($cn!=\"no_conexion\"){\r\n \t\r\n \t$sql=\"update $this->nombre_tabla_blog set eliminable=0 where codigo_curso='$codigo_curso' and codigo_alumno='$codigo_alumno'\";\r\n \t\r\n \t$rs = mysql_query($sql,$cn);\r\n \t\r\n\t \t$sql=\"insert into $this->nombre_tabla_blog (codigo_curso,codigo_alumno,entrada,persona_responde,fecha,hora) values ('$codigo_curso','$codigo_alumno','$entrada','A',curdate(),curtime() )\";\r\n\t\t\t\r\n\t $rs = mysql_query($sql,$cn);\r\n \r\n\t\t\tmysql_close($cn);\r\n\r\n\t\t\treturn \"mysql_si\";\r\n\t\t}else{\r\n\t\treturn \"mysql_no\";\r\n\t\t}\r\n\t}", "public function commit() {\n\t$idAvailable = \\is_numeric($this->getId());\n\t//We're checking if the id is available and it's marked for delete. If not, we need to check if the id is available.\n\t//Finally, we need to make sure it hasn't been marked for delete. if it has and there's no id, nothing needs to be\n\t//done.\n\tif ($idAvailable && $this->_markForDelete) {\n\t $this->delete();\n\t}\n\telse if ($idAvailable) {\n\t $this->update();\n\t}\n\telse if (!$this->_markForDelete) {\n\t $this->insert();\n\t}\n }", "public function save(){\n\n if (!$this->preSave()) {\n return FALSE;\n }\n\n $reference = $this->_getReference();\n $pk = $this->_getPK();\n\n $data = get_object_vars($this);\n\n if (empty($pk) && $pk !== NULL) {\n throw new \\Exception('Model PK is empty!');\n }\n\n if (is_array($pk)) {\n $pkv = [];\n $_pkv = [];\n $insert = TRUE;\n foreach ($pk as $c) {\n if (!empty($data[$c])) {\n $pkv[] = $data[$c];\n $_pkv[$c] = $data[$c];\n // unset($data[$c]);\n $insert = FALSE;\n }\n }\n\n if (!$insert) {\n $insert = is_null(self::getWhere($_pkv));\n }\n\n\n } else {\n $pkv = !empty($data[$pk]) ? $data[$pk] : NULL;\n $_pkv = [$pk => $pkv];\n\n // Se for AUTO INCREMENT remove dos campos a serem INSERIDOS/ALTERADOS\n if (self::_isPkAi())\n unset($data[$pk]);\n\n $insert = empty($pkv);\n }\n\n unset($data['__error']);\n\n foreach ($data as $key => $value) {\n if (strpos($key, '_') === 0)\n unset($data[$key]);\n }\n\n if ($insert) {\n\n if (array_key_exists('created', $data))\n $data['created'] = Date('Y-m-d H:i:s');\n\n if (array_key_exists('updated', $data))\n unset($data['updated']);\n\n\n $res = self::$connection->insert($reference, $data)->execute();\n\n if ($res && $pk !== NULL && !is_array($pk))\n $this->{'set'.$pk}(self::$connection->lastInsertId());\n\n } else {\n\n if (array_key_exists('updated', $data))\n $data['updated'] = Date('Y-m-d H:i:s');\n\n if (array_key_exists('created', $data))\n unset($data['created']);\n\n $res = self::$connection->update($reference, $data, $_pkv)->execute();\n\n }\n\n if ($res)\n $this->refresh();\n\n $this->afterSave($res);\n\n return $res;\n\n }", "public function actualizar($registro) {\n \n }", "public function actualizar($registro) {\n \n }", "public function save(): bool\n {\n $status = false;\n if ($this->new === false) {\n if ($this->deletionFlag === true) {\n $status = $this->delete();\n } elseif (\\count($this->modified) > 0) {\n $updateQuery = new Update($this->getDatabaseName());\n $updateQuery->update($this->getTableName());\n\n $where = array();\n foreach ($this->getPrimary() as $primary) {\n $field = $this->{'field' . \\ucfirst($primary)};\n $realName = (string) \\constant(static::class . '::FIELD_' . \\strtoupper(Helper::codifyName($primary)));\n $where[$realName] = ':primary' . \\ucfirst($primary);\n $updateQuery->bind('primary' . \\ucfirst($primary), $field['value']);\n }\n $updateQuery->where($where);\n\n $set = array();\n foreach ($this->modified as $key => $value) {\n if ($value === true) {\n $field = $this->{'field' . \\ucfirst($key)};\n $realName = (string) \\constant(static::class . '::FIELD_' . \\strtoupper(Helper::codifyName($key)));\n $set[$realName] = ':field' . \\ucfirst($key);\n $updateQuery->bind(':field' . \\ucfirst($key), $field['value']);\n }\n }\n $updateQuery->set($set);\n\n $this->modified = array();\n\n $status = $updateQuery->execute();\n }\n } else {\n if ($this->deletionFlag === false) {\n $insertQuery = new Insert($this->getDatabaseName());\n $insertQuery->into($this->getTableName());\n\n $returning = array();\n foreach ($this->getPrimary() as $primary) {\n $field = $this->{'field' . \\ucfirst($primary)};\n $realName = \\constant(static::class . '::FIELD_' . \\strtoupper(Helper::codifyName($primary)));\n $returning[] = $realName;\n }\n $insertQuery->returning($returning);\n\n $values = array();\n foreach ($this->getAllFieldsAliases() as $name) {\n $field = $this->{'field' . \\ucfirst($name)};\n if (isset($field['value']) === true) {\n $realName = \\constant(static::class . '::FIELD_' . \\strtoupper(Helper::codifyName($name)));\n $values[$realName] = ':field' . \\ucfirst($name);\n $insertQuery->bind('field' . \\ucfirst($name), $field['value']);\n }\n }\n $insertQuery->values($values);\n\n $status = $insertQuery->execute();\n\n if ($status === true) {\n $this->modified = array();\n $statement = $insertQuery->getStatement();\n if (!$statement) {\n throw new AppException('Database/Postgres/Model.save: insert query statement is null');\n }\n $rows = $statement->fetch(\\PDO::FETCH_ASSOC);\n $imax = \\count($rows);\n for ($i = 0; $i < $imax; $i++) {\n $field = &$this->{'field' . \\ucfirst($this->getPrimary()[$i])};\n $realName = \\constant(static::class . '::FIELD_' . \\strtoupper(Helper::codifyName($this->getPrimary()[$i])));\n $realName = \\substr($realName, \\stripos($realName, '.') + 1);\n $field['value'] = $rows[$realName];\n }\n $this->new = false;\n }\n }\n }\n\n return $status;\n }", "public function save()\r\n {\r\n if( empty($this->dirty) ) return true;\r\n \r\n $pkName = $this->pkName();\r\n //is it an update?\r\n if( isset($this->data[$pkName]) ){\r\n $this->table->update($this->dirty, \"{$pkName}=?\", array($this->data[$pkName]) );\r\n $merged_data[$pkName] = $this->data[$pkName];\r\n } else {\r\n //it's an insert\r\n $merged_data = array_merge(\r\n $this->array_diff_schema($this->dirty),\r\n $this->array_diff_schema($this->data)\r\n );\r\n $this->table->insert($merged_data);\r\n $pk = $this->pkName();\r\n if( !isset($merged_data[$pk]) )\r\n $merged_data[$pk] = $this->table->lastInsertId();\r\n }\r\n $this->reset($merged_data);\r\n return true;\r\n }", "public function save(){\r\n //sino es null entonces UPDATE\r\n //si es null entonces INSERT\r\n if($this->id){\r\n $query= \"UPDATE amistad set usuarioEmisor = '$this->usuarioEmisor', usuarioReceptor = '$this->usuarioReceptor', fecha = '$this->fecha', estado = '$this->estado' where id = $this->id \";\r\n\r\n $save=$this->db()->query($query);\r\n //$this->db()->error;\r\n return $save;\r\n\r\n }else{\r\n\r\n $query=\"INSERT INTO amistad (id, usuarioEmisor, usuarioReceptor, estado, fecha)\r\n VALUES(NULL, '\".$this->usuarioEmisor.\"',\r\n '\".$this->usuarioReceptor.\"',\r\n '\".$this->estado.\"',\r\n '\".$this->fecha.\"');\";\r\n $save=$this->db()->query($query);\r\n //$this->db()->error;\r\n return $save;\r\n }\r\n }", "public function saveUsuario(){\n\t\t$conexion = new Database();\n if ($this->codigo){\n $query = sprintf('UPDATE agenda_usuario SET usuario = \"%s\" password = \"%s\" WHERE usuario_id = %d',\n $this->usuario,\n $this->password,\n $this->codigo);\n $rows = $conexion->exec( $query );\n }\n else{\n $query = sprintf('INSERT INTO agenda_usuario ( usuario, password) VALUES (\"%s\", \"%s\")',\n $this->usuario,\n $this->password );\n\t\t\t$rows = $conexion->exec( $query );\n $this->codigo = $conexion->lastInsertId();\n }\n }", "function save() {\n\t\t// Error-checking should already be complete\n\t\tif(person::exists($this->id)) {\n\t\t\t// UPDATE an existing database entry\n\t\t\t$query = \"UPDATE people set \"\n\t\t\t\t\t.\"firstname = \".$this->firstname.\", \"\n\t\t\t\t\t.\"lastname = \".$this->lastname.\", \"\n\t\t\t\t\t.\"address_home_street_1 = \".$this->address_home_street_1.\", \"\n\t\t\t\t\t.\"address_home_street_2 = \".$this->address_home_street_2.\", \"\n\t\t\t\t\t.\"address_home_city = \".$this->address_home_city.\", \"\n\t\t\t\t\t.\"address_home_state = \".$this->address_home_state.\", \"\n\t\t\t\t\t.\"address_home_zip = \".$this->address_home_zip.\", \"\n\t\t\t\t\t.\"address_work_street_1 = \".$this->address_work_street_1.\", \"\n\t\t\t\t\t.\"address_work_street_2 = \".$this->address_work_street_2.\", \"\n\t\t\t\t\t.\"address_work_city = \".$this->address_work_city.\", \"\n\t\t\t\t\t.\"address_work_state = \".$this->address_work_state.\", \"\n\t\t\t\t\t.\"address_work_zip = \".$this->address_work_zip.\", \"\n\t\t\t\t\t.\"email = \".$this->email.\", \"\n\t\t\t\t\t.\"phone_personal_cell = \".$this->phone_personal_cell.\", \"\n\t\t\t\t\t.\"phone_work = \".$this->phone_work.\", \"\n\t\t\t\t\t.\"phone_work_cell = \".$this->phone_work_cell.\", \"\n\t\t\t\t\t.\"phone_home = \".$this->phone_home.\", \"\n\t\t\t\t\t.\"fax = \".$this->fax.\", \"\n\t\t\t\t\t.\"gender = \".$this->gender.\", \"\n\t\t\t\t\t.\"birthdate = \".$this->birthdate.\", \"\n\t\t\t\t\t.\"facebook_username = \".$this->facebook_username.\", \"\n\t\t\t\t\t.\"username = \".$this->username.\", \"\n\t\t\t\t\t.\"headshot_filename = \".$this->headshot_filename\n\t\t\t\t\t.\" WHERE id = \".$this->id;\n\t\t\t\t\t\n\t\t\t$result = mydb::cxn()->query($query);\n\t\t\tif(mydb::cxn()->error != '') throw new Exception('There was a problem updating '.$this->firstname.' '.$this->lastname.'\\'s database entry.');\n\t\t}\n\t\telse {\n\t\t\t// INSERT a new database entry\n\t\t\t$query = \"INSERT INTO people (\"\n\t\t\t\t\t.\"firstname, \"\n\t\t\t\t\t.\"lastname, \"\n\t\t\t\t\t.\"address_home_street_1, \"\n\t\t\t\t\t.\"address_home_street_2, \"\n\t\t\t\t\t.\"address_home_city, \"\n\t\t\t\t\t.\"address_home_state, \"\n\t\t\t\t\t.\"address_home_zip, \"\n\t\t\t\t\t.\"address_work_street_1, \"\n\t\t\t\t\t.\"address_work_street_2, \"\n\t\t\t\t\t.\"address_work_city, \"\n\t\t\t\t\t.\"address_work_state, \"\n\t\t\t\t\t.\"address_work_zip, \"\n\t\t\t\t\t.\"email, \"\n\t\t\t\t\t.\"phone_personal_cell, \"\n\t\t\t\t\t.\"phone_home, \"\n\t\t\t\t\t.\"phone_work, \"\n\t\t\t\t\t.\"phone_work_cell, \"\n\t\t\t\t\t.\"fax, \"\n\t\t\t\t\t.\"gender, \"\n\t\t\t\t\t.\"birthdate, \"\n\t\t\t\t\t.\"facebook_username, \"\n\t\t\t\t\t.\"username, \"\n\t\t\t\t\t.\"headshot_filename) \"\n\t\t\t\t\t.\"VALUES (\"\n\t\t\t\t\t.\"'\".$this->firstname.\"', \"\n\t\t\t\t\t.\"'\".$this->lastname.\"', \"\n\t\t\t\t\t.\"'\".$this->address_home_.\"', \"\n\t\t\t\t\t.\"'\".$this->address_home_.\"', \"\n\t\t\t\t\t.\"'\".$this->address_home_.\"', \"\n\t\t\t\t\t.\"'\".$this->address_home_.\"', \"\n\t\t\t\t\t.\"'\".$this->address_home_.\"', \"\n\t\t\t\t\t.\"'\".$this->address_work_.\"', \"\n\t\t\t\t\t.\"'\".$this->address_work_.\"', \"\n\t\t\t\t\t.\"'\".$this->address_work_.\"', \"\n\t\t\t\t\t.\"'\".$this->address_work_.\"', \"\n\t\t\t\t\t.\"'\".$this->address_work_.\"', \"\n\t\t\t\t\t.\"'\".$this->email.\"', \"\n\t\t\t\t\t.\"'\".$this->phone_personal_cell.\"', \"\n\t\t\t\t\t.\"'\".$this->phone_home.\"', \"\n\t\t\t\t\t.\"'\".$this->phone_work.\"', \"\n\t\t\t\t\t.\"'\".$this->phone_work_cell.\"', \"\n\t\t\t\t\t.\"'\".$this->fax.\"', \"\n\t\t\t\t\t.\"'\".$this->gender.\"', \"\n\t\t\t\t\t.\"'\".$this->birthdate->format('Y-m-d').\"', \"\n\t\t\t\t\t.\"'\".$this->facebook_username.\"', \"\n\t\t\t\t\t.\"'\".$this->username.\"', \"\n\t\t\t\t\t.\"'\".$this->headshot_filename.\"')\";\n\t\t\t$result = mydb::cxn()->query($query);\n\t\t\tif(mydb::cxn()->error != '') throw new Exception('There was a problem inserting '.$this->firstname.' '.$this->lastname.'\\'s database entry.');\n\t\t}\n\t\t\n\t}", "public function persist() {}", "public function atualizar()\r\n {\r\n return (new Database('instituicao'))->update('id=' . $this->id, [\r\n 'nome' => $this->nome,\r\n 'datacriacao' => $this->datacriacao,\r\n 'tipo' => $this->tipo\r\n\r\n ]);\r\n }", "public function save()\n {\n $project = $this->valores();\n unset($project['idProject']);\n\n $project['idUser'] = $this->userO->idUser;\n unset($project['userO']);\n\n if (empty($this->idProject)) {\n $this->insert($project);\n $this->idProject = self::$conn->lastInsertId();\n } else {\n $this->update($this->idProject, $project);\n }\n }", "public function persist();", "public function setRecordInDB($id_utente_registrato, $nome, $cognome, $codice_fiscale, $data_nascita, $numero_telefono, $email, $password){\r\n include_once './db_functions.php';\r\n $db = new DB_Functions();\r\n //Escaping\r\n $nome = DB_Functions::esc($nome);\r\n $cognome = DB_Functions::esc($cognome);\r\n $codice_fiscale = DB_Functions::esc($codice_fiscale);\r\n $numero_telefono = DB_Functions::esc($numero_telefono);\r\n $data_nascita = DB_Functions::esc($data_nascita);\r\n $email = DB_Functions::esc($email);\r\n $password = DB_Functions::esc($password);\r\n\r\n $query = \"UPDATE UTENTE_REGISTRATO \r\n SET \tNOME = $nome,\r\n COGNOME = $cognome,\r\n CODICE_FISCALE = $codice_fiscale,\r\n NUMERO_TELEFONO = $numero_telefono,\r\n DATA_NASCITA = $data_nascita,\r\n EMAIL = $email,\r\n PASSWORD = SHA1($password)\r\n WHERE \t\r\n ID_UTENTE_REGISTRATO = $id_utente_registrato;\";\r\n $resQuery = $db->executeQuery($query);\r\n if ($resQuery[\"state\"]) {\r\n $this->nome = $nome;\r\n $this->cognome = $cognome;\r\n $this->codice_fiscale = $codice_fiscale;\r\n $this->data_nascita = $data_nascita;\r\n $this->numero_telefono = $numero_telefono;\r\n $this->email = $email;\r\n $this->password = $password;\r\n }\r\n return $resQuery;\r\n }", "function save() \n\t{\n\t\t$conn = new Conexion();\n\t\tif ($this->id<>0) \n\t\t\t{ \n\n\t\t$sql = $conn->prepare(\"update productos set idMoneda = '$this->idMoneda', idCategoria = '$this->idCategoria', idSubCategoria = '$this->idSubCategoria', descripcion = '$this->descripcion', fechaCarga = '$this->fechaCarga', idUsuario = '$this->idUsuario', activo = '$this->activo', aviso_stock = '$this->aviso_stock', precio = '$this->precio', desc1 = '$this->desc1', desc2 = '$this->desc2', desc3 = '$this->desc3', utilidad = '$this->utilidad', iva = '$this->iva' where id='$this->id'\");\n\t\t$sql->execute();\n\n\t\t\t}\n\t\telse\n\t\t\t{\n\t\t\t$sql = $conn->prepare(\"insert into productos values (null, '$this->idMoneda', '$this->idCategoria','$this->idSubCategoria', '$this->descripcion', '$this->fechaCarga', '$this->idUsuario', '$this->activo', '$this->aviso_stock', '$this->precio', '$this->desc1', '$this->desc2', '$this->desc3', '$this->utilidad', '$this->iva')\");\n\t\t\t$sql->execute();\n\t\t\t$this->id = $conn->lastInsertId();\n\n\t\t\t} \n\t\t$sql=null;\n\t\t$conn=null;\t\n\t}", "private function _update() {\n\n $this->db->replace(XCMS_Tables::TABLE_USERS, $this->getArray());\n $this->attributes->save();\n\n }", "public function save();", "public function save();", "public function save();", "public function save();", "public function save();", "public function save();", "public function save();", "public function save();", "public function save();", "public function save();", "public function save();", "public function save();", "public function save();", "public function save();", "public function save();", "public function save();", "public function save();", "public function save();" ]
[ "0.68381315", "0.6801467", "0.6786066", "0.67085236", "0.6639228", "0.6625855", "0.6625457", "0.6585398", "0.65832925", "0.6548125", "0.65468717", "0.6538302", "0.652333", "0.652066", "0.651595", "0.6514149", "0.6494982", "0.64699113", "0.6460714", "0.64600945", "0.6451425", "0.6434545", "0.64079136", "0.6403829", "0.6375609", "0.6369925", "0.6356858", "0.6354238", "0.6351409", "0.6338782", "0.63121474", "0.6260308", "0.62543577", "0.62500525", "0.6248773", "0.6245508", "0.6238171", "0.6226509", "0.62087715", "0.6207446", "0.6199575", "0.6199575", "0.61968225", "0.61946183", "0.618032", "0.6177538", "0.61740106", "0.6152535", "0.6149131", "0.6148951", "0.6148951", "0.6146716", "0.6142876", "0.61402464", "0.6126212", "0.6121019", "0.6117158", "0.6116591", "0.61161876", "0.61161876", "0.6092684", "0.6086578", "0.6084105", "0.60803187", "0.60674584", "0.6063003", "0.6059344", "0.6056639", "0.6054136", "0.60471255", "0.60471255", "0.6043789", "0.6041077", "0.60401356", "0.6032116", "0.60267437", "0.60254246", "0.6023389", "0.60081667", "0.60081035", "0.5996621", "0.5991143", "0.5986826", "0.5985329", "0.5985329", "0.5985329", "0.5985329", "0.5985329", "0.5985329", "0.5985329", "0.5985329", "0.5985329", "0.5985329", "0.5985329", "0.5985329", "0.5985329", "0.5985329", "0.5985329", "0.5985329", "0.5985329", "0.5985329" ]
0.0
-1
metodo generico deberia ser estatic y esta en model
public static function save_record($model, $data){ if (isset($data[$model->id_field])) { $result = $model->get_by_id($data[$model->id_field]); if ($result) { return $model->edit($data[$model->id_field], $data); } } return $model->create($data); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected function model();", "abstract protected function model();", "protected abstract function model();", "abstract public function model();", "abstract public function model();", "abstract public function model();", "abstract public function model();", "abstract function model();", "abstract function model();", "abstract function model();", "abstract function model();", "public function model();", "public function model();", "public abstract function model();", "public function __construct() {\n $this->noticia_modelo = $this->modelo('NoticiaModelo');\n }", "function miguel_MCourse() \r\n {\t\r\n $this->base_Model();\r\n }", "function __construct(){\n $this->toko = new M_Toko();\n $this->produk = new M_Produk(); //variabel model merupakan objek baru yang dibuat dari class model\n }", "public function createModel()\n {\n }", "function\t__construct()\t{\n\t\t\t\t/* contrutor da classe pai */\n\t\t\t\tparent::__construct();\n\t\t\t\t/* abaixo deverão ser carregados helpers, libraries e models utilizados\n\t\t\t\t\t por este model */\n\t\t}", "function __construct(){\n\t\t\t$this->model = new model(); //variabel model merupakan objek baru yang dibuat dari class model\n\t\t\t$this->model->table=\"tb_dosen\";\n\t\t}", "public function buildModel() {}", "abstract protected function setModel(): String;", "public function __CONSTRUCT(){\n $this->model = new Estadobien();\n }", "public function __construct()\n {\n parent::__construct();\n\n if (!$this->table) {\n $this->table = strtolower(str_replace('_model','',get_class($this))); //fungsi untuk menentukan nama tabel berdasarkan nama model\n }\n }", "function __construct() {\r\n parent::Model();\r\n }", "function __construc()\r\n\t{\r\n\t\tparent::Model();\r\n\t}", "public function model()\n {\n //use model\n }", "abstract public function getBookingModel(): string;", "function hola(){\n $pruebas = new model_pruebas(\"bd\");\n $pruebas->pruebas();\n }", "protected function tableModel()\n {\n }", "function model()\n {\n return \"\";\n }", "public static function preModel(){\n\t\t\n\t}", "public function mostra(){\n }", "abstract function getModel();", "function __construct(){\n parent::__construct(\"ModelPaciente\");\n }", "public function __construct() {\n $this->pengguna = new MsPenggunaModel();\n /* Catatan:\n Apa yang ada di dalam function construct ini nantinya bisa digunakan\n pada function di dalam class Product \n */\n }", "public function __construct(){\n parent:: __construct();\n $this->load->model('Insert_asesoria', 'InsertAsesoria');\n }", "public function __construct() {\n\t\t\t$this->modelName = 'concreeeeeete';\n\t\t}", "public function __construct() {\n parent::__construct();\n $this->load->model(array('dt_diag_klsf_model','dt_obat_model','dt_pasien_model','dt_pemeriksaan_model','dt_proses_model','dt_thpan_model'));\n }", "public function generujKod(){\n\t\t//\n\t}", "abstract public function getModel();", "public function __construct() {\r\n parent::__construct();\r\n $this->load->database();\r\n $this->string_values = $this->lang->line('interface')['model']; //Cargar textos utilizados en vista\r\n }", "abstract protected function getModel();", "function Controller_Utilisateur(){\n\t\tparent::__construct();\n\t\trequire_once './Modele/Modele_Utilisateur.php';\n\t\t$this->selfModel = new Utilisateur(); // appel du modèle correspondant à la classe Controller_Utilisateur\n\t}", "function __construct() {\n // Call the Model constructor \n parent::__construct();\n }", "public function AggiornaPrezzi(){\n\t}", "public function getModelo(){ return $this->modelo;}", "abstract protected function modelFactory();", "function __construct()\r\n {\r\n parent::Model();\r\n }", "public function __construct() {\n\t\t$this->empleadoModel = $this->model('Empleado');\n\t}", "public function __construct() {\n $this->porcentajesCursoModel = $this->model('PorcentajesCursoModel');\n $this->tipoModuloModel = $this->model('TipoModuloModel');\n $this->cursoModel = $this->model('CursoModel');\n }", "function miguel_mMain()\r\n {\t\r\n\t\t$this->base_Model();\r\n }", "function __construct() {\r\n parent::__construct();\r\n $this->load->model(\"Siswa\"); //constructor yang dipanggil ketika memanggil siswa.php untuk melakukan pemanggilan pada model : siswa_model.php yang ada di folder models\r\n }", "public function metodo_publico() {\n }", "public function contrato()\r\n\t{\r\n\t}", "abstract protected function getModelName(): string;", "public function __construct() {\n $this->docenteModel = $this->model('DocenteModel');\n }", "function __construct() {\r\n parent::__construct();\r\n $this->load->model('mdl_penyelenggaraan','slng');\r\n $this->load->model('mdl_perencanaan','rnc');\r\n $this->thn = date('Y');\r\n }", "public function __construct()\n {\n $this ->model = $this ->makeModel($this ->model());\n }", "function __construct()\n {\n parent::Model();\n }", "public function __construct() {\n // Call the Model constructor\n parent::__construct();\n }", "public function baseSlajderi()\n {\n \n $this->linija = Slajderi::model()->findAllByAttributes(array('jezik'=>Yii::app()->session[\"lang\"]),array('order'=>'id'));\n $this->nalovSlajderi = $this->linija[0] -> naslov;\n \n \n }", "public function __construct() {\n\t\tparent::__construct();\n\t\t$this->dados = $this->funcoes_gerais->getConstantes($this->dados);\n\n $this->load->model('produto_model', 'produto'); \n $this->load->model('categoria_model', 'categoria'); \n\t}", "function __construct(){\n\t\t$this -> modelo = new usuarioBss();\n\t}", "function __construct()\n {\n // Call the Model constructor\n parent::__construct();\n }", "function __construct()\n {\n // Call the Model constructor\n parent::__construct();\n }", "function __construct()\n {\n // Call the Model constructor\n parent::__construct();\n }", "function __construct()\n {\n // Call the Model constructor\n parent::__construct();\n }", "function __construct(){\r\n\t\t\trequire_once '../model/cadastro_model.php';\r\n\t\t}", "function __construct() {\n\t //llamo al contructor de Controller.php\n\t parent::__construct();\n\n\t //instancio el modelo\n\t $this->Lenguajes = new Lenguajes();\n\t \n\n\t}", "public function __construct()\n {\n $this->pelanggan = new PelangganModel();\n /* Catatan:\n Apa yang ada di dalam function construct ini nantinya bisa digunakan\n pada function di dalam class Product \n */\n }", "public function __construct()\n {\n \t parent::__construct();\n \t $this->load->model('Modelo');\n }", "function Page_Model()\n\t{\n\t\tparent::__construct();\n\t}", "public function __construct(){\n parent::__construct();\n\n // Memanggil model Pasien\n $this->load->model('Pasien');\n }", "public function getModel(){ }", "function __construct()\n {\n // 呼叫模型(Model)的建構函數\n parent::__construct();\n \n }", "function FichaDron_model(){\n\t\tparent::__construct();\n\t\t//Cargamos la base de datos\n\t\t$this->load->database();\n\n\t}", "function __contruct()\n {\n $this->load->model('Inbound_message_model');\n $this->load->model('Psychic_model');\n $data['title'] = 'Bulletin board';\n\t\t$data['user'] = Auth::me();\n\n\t\t\n }", "public function models();", "public function __construct()\n {\n parent::__construct();\n //METODO CARGADO EN EL MODELO\n $this->load->model(array('PublicacionModel'));\n }", "abstract protected function getModelAttributes();", "public function loadModel()\n {\n $data = ModelsPegawai::find($this->dataId);\n $this->name = $data->name;\n $this->email = $data->email;\n $this->username = $data->username;\n $this->password = $data->password;\n $this->level = $data->level;\n\n }", "function __construct() {\n\t //llamo al contructor de Controller.php\n\t parent::__construct();\n\n\t //instancio el modelo\n $this->modelo(array('cortos','ediciones','categorias'));\n\n\n\t}", "public function __construct(){\n\n\t\t$this->types_model = new Types();\n\t}", "public function getModele()\n{\nreturn $this->modele;\n}", "function __construct() {\n\t\t$this->cotizacionModel = new cotizacionModel();\n\t}", "public function __construct() {\n parent::__construct();\n $this->load->model(\"modelo_base\");\n \n }", "function InstalacionesCRUD()\n {\n parent::__construct();\n }", "function __construct() {\n // Construct = fungsi yang otomatis kepanggil\n // Membuat koneksi turunan dari class (file) KoneksiModel.php\n $bukaKoneksi = new KoneksiModel(); // << class dari file KoneksiModel.php\n $this->panggilKoneksi = $bukaKoneksi->KoneksiDatabase();\n return $this->panggilKoneksi;\n }", "function AccountsModel() {\n\t\tparent::__construct(); \n }", "function __construct() {\n $this->loteModel = new loteModel();\n }", "public function __construct()\n {\n parent::Model();\n\n }", "public function __construct()\n {\n $this->profil = new ProfilModel();\n /* Catatan:\n Apa yang ada di dalam function construct ini nantinya bisa digunakan\n pada function di dalam class Product \n */\n }", "function __construct()\n\t{\n\t\t// this->model = new Producto();\n\t}", "function __construct(){\n parent::__construct();\n $this->load->model('M_penjualan');\n }", "private static function model()\n {\n $files = ['ORM_', 'CRUD', 'ORM', 'Collection', 'ModelArray'];\n $folder = static::$root.'MVC/Model'.'/';\n\n self::call($files, $folder);\n\n $files = ['ForeingKeyMethodException', 'ColumnNotEmptyException', 'ManyPrimaryKeysException', 'TableNotFoundException', 'ModelNotFoundException', 'PrimaryKeyNotFoundException'];\n $folder = static::$root.'MVC/Model/Exceptions'.'/';\n\n self::call($files, $folder);\n }", "public function GruporModelo()\n\t\t{\n\t\t\t$id = \"\";\n\t\t\t$numero = \"\";\n\t\t\t$franja = \"\";\n\t\t}", "function payment_model()\n\t{\n\t\tparent::__construct();\t\t\n\t}", "public function model()\n {\n return Movimento::class;\n }", "function contador_proyectoI(){\r\n $contadorProyectoI= new ContadorEstuModel();\r\n return $contadorProyectoI->contadorProyectoI();\r\n }", "public function __construct() {\n parent::__construct(__CLASS__, 'Campo personalizado', '');\n }" ]
[ "0.70007455", "0.70007455", "0.69752574", "0.6864667", "0.6864667", "0.6864667", "0.6864667", "0.68109703", "0.68109703", "0.68109703", "0.68109703", "0.67364806", "0.67364806", "0.67159545", "0.66421425", "0.6553812", "0.65452355", "0.65085846", "0.64884007", "0.6386873", "0.63399184", "0.6299443", "0.6293968", "0.62868303", "0.6284419", "0.62771666", "0.6274345", "0.6252366", "0.6250294", "0.62430805", "0.6240964", "0.6239187", "0.6237674", "0.6234159", "0.6230392", "0.6188198", "0.61729777", "0.6169728", "0.6167619", "0.61652005", "0.61609405", "0.6148641", "0.61473215", "0.61454093", "0.6143541", "0.613842", "0.61122316", "0.6105655", "0.6098635", "0.6081175", "0.6076768", "0.6069154", "0.6050375", "0.6046278", "0.60283935", "0.6026597", "0.6025761", "0.60241824", "0.60223967", "0.6005564", "0.60040265", "0.6000046", "0.59982395", "0.5997947", "0.5990577", "0.5990577", "0.5990577", "0.5990577", "0.5989328", "0.59842193", "0.5982518", "0.5980039", "0.5979358", "0.59634364", "0.5954085", "0.59467983", "0.59357625", "0.5927146", "0.5923021", "0.59201276", "0.5919064", "0.59188485", "0.59122473", "0.5911176", "0.5906227", "0.5900888", "0.5900305", "0.58950734", "0.5894822", "0.5893315", "0.58905023", "0.5880596", "0.5875489", "0.5872783", "0.58681285", "0.5866655", "0.58512145", "0.5846648", "0.5844228", "0.5825789", "0.5823681" ]
0.0
-1
list($old_x, $old_y) = getimagesize($image);
function createThumbnail($image, $newMaxWidth, $newMaxHeight) { $width_orig = imagesx($image); $height_orig = imagesy($image); $ratio_orig = $width_orig/$height_orig; if ($newMaxWidth/$newMaxHeight > $ratio_orig) { $newMaxWidth = $newMaxHeight * $ratio_orig; } else { $newMaxHeight = $newMaxWidth / $ratio_orig; } $dst_img = imagecreatetruecolor( $newMaxWidth, $newMaxHeight ); imagealphablending( $dst_img, false ); imagesavealpha( $dst_img, true ); imagecopyresampled($dst_img, $image,0,0,0,0,$newMaxWidth,$newMaxHeight,$width_orig,$height_orig); return $dst_img; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getImageSize() \n { \n return array($this->_width,$this->_height); \n }", "function image_dimensions ( $image_path ) {\r\n\t\t$image = image_read($image_path,false);\r\n\t\tif ( !$image ) return $image;\r\n\t\t$width = imagesx($image);\r\n\t\t$height = imagesy($image);\r\n\t\t$dimensions = compact('width','height');\r\n\t\treturn $dimensions;\r\n\t}", "public function getSize() {\n return array(\"x\" => imagesx($this->current), \"y\" => imagesy($this->current));\n }", "function width_height($imgurl){\n\n $data = getimagesize( $imgurl );\n $width = $data[0];\n $height = $data[1];\n\n echo 'width=\"'.$width.'\" height=\"'.$height.'\"';\n}", "public function getImageSize()\n\t{\n\t\tlist($width, $height) = getimagesize($this->getFullpath());\n\n\t\treturn compact('width', 'height');\n\t}", "function getHeight($image) {\n\t$size = getimagesize($image);\n\t$height = $size[1];\n\treturn $height;\n}", "function wp_getimagesize($filename, array &$image_info = \\null)\n {\n }", "function get_image_size($image) {\n if($image = getimagesize($image)) {\n $image[2] = image_type_to_extension($image[2],false);\n if($image[2] == 'jpeg') {\n $image[2] = 'jpg';\n }\n return $image;\n } else {\n return false;\n }\n}", "function calc_size()\n\t{\n\t\t\t$size = getimagesize(ROOT_PATH . $this->file);\n\t\t\t$this->width = $size[0];\n\t\t\t$this->height = $size[1];\n\t}", "function getHeight($image) {\n\t$sizes = getimagesize($image);\n\t$height = $sizes[1];\n\treturn $height;\n}", "function getHeight($image) {\n\t$sizes = getimagesize($image);\n\t$height = $sizes[1];\n\treturn $height;\n}", "function getimagesize($filename){\n\t\t$arr = @getimagesize($filename);\n\n\t\tif(isset($arr) && is_array($arr) && (count($arr) >= 4) && $arr[0] && $arr[1]){\n\t\t\treturn $arr;\n\t\t} else {\n\t\t\tif(we_base_imageEdit::gd_version()){\n\t\t\t\treturn we_base_imageEdit::getimagesize($filename);\n\t\t\t}\n\t\t\treturn $arr;\n\t\t}\n\t}", "private function _getImageInfo($image)\n {\n return getimagesize($image); // This function doesn't only return the image size but some essential information as well.\n }", "function getimagesize($filename){\n\t\treturn we_thumbnail::getimagesize($filename);\n\t}", "function getimagesize($filename){\n\t\treturn ($this->isSvg() ? $this->getSvgSize($filename) : we_thumbnail::getimagesize($filename));\n\t}", "function get_intermediate_image_sizes()\n {\n }", "function getWidth($image) {\n\t$size = getimagesize($image);\n\t$width = $size[0];\n\treturn $width;\n}", "function getHeight($image) {\r\n\t\t$size = getimagesize($image);\r\n\t\t$height = $size[1];\r\n\t\treturn $height;\r\n\t}", "function pwg_image_infos($path)\n{\n list($width, $height) = getimagesize($path);\n $filesize = floor(filesize($path)/1024);\n\n return array(\n 'width' => $width,\n 'height' => $height,\n 'filesize' => $filesize,\n );\n}", "function guy_imagedims($src) {\n\tif (substr($src,0,1)=='/') $src = \nsubstr_replace($src,$_SERVER['DOCUMENT_ROOT'].'/',0,1);\n\tif (is_file($src)) {\n\t\t$wh = @GetImageSize($src);\n\t\treturn $wh[3];\n\t}\n\treturn '';\n}", "function getHeight($image) {\r\n\t\t\t$size = getimagesize($image);\r\n\t\t\t$height = $size[1];\r\n\t\t\treturn $height;\r\n\t\t}", "function getHeight($image) {\n\t\t$size = getimagesize($image);\n\t\t$height = $size[1];\n\t\treturn $height;\n\t}", "function getnewdimensions($maxwidth,$maxheight,$file_tmp)\n{\n\tlist($width, $height) = getimagesize($file_tmp);\n\t\n\t/*CALCULATE THE IMAGE RATIO*/\n\tif($width>$height)\n\t{\n\t\t$imgratio=$width/$height;\n\t\t$newwidth = ($imgratio>1)?$maxwidth:$maxwidth*$imgratio;\n\t\t$newheight = ($imgratio>1)?$maxwidth/$imgratio:$maxwidth;\n\t}\n\telse\n\t{\n\t\t$imgratio=$height/$width;\n\t\t$newwidth = ($imgratio>1)?$maxwidth:$maxwidth/$imgratio;\n\t\t$newheight = ($imgratio>1)?$maxwidth*$imgratio:$maxwidth;\n\t}\n\t\n\t\n\t/*SIZE DOWN AGAIN TO KEEP WITHIN HEIGHT CONTRAINT*/\n\tif($newheight>$maxheight)\n\t{\n\t\tif($newwidth>$newheight)\n\t\t{\n\t\t\t$imgratio=$newwidth/$newheight;\n\t\t\t$newheight = ($imgratio>1)?$maxheight:$maxheight/$imgratio;\n\t\t\t$newwidth = ($imgratio>1)?$maxheight*$imgratio:$maxheight;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$imgratio=$newheight/$newwidth;\n\t\t\t$newheight = ($imgratio>1)?$maxheight:$maxheight*$imgratio;\n\t\t\t$newwidth = ($imgratio>1)?$maxheight/$imgratio:$maxheight;\n\t\t}\n\t}\n\t$newheight=round($newheight);\n\t$newwidth=round($newwidth);\n\treturn array($newwidth,$newheight);\n}", "public function getDimensions() {\n\t\treturn array('width' => $this->getImageWidth(),'height' =>$this->getImageHeight());\t\n\t}", "function getWidth($image) {\n\t$sizes = getimagesize($image);\n\t$width = $sizes[0];\n\treturn $width;\n}", "function getWidth($image) {\n\t$sizes = getimagesize($image);\n\t$width = $sizes[0];\n\treturn $width;\n}", "private function getWorkingImageHeight()\n {\n return imagesy($this->workingImageResource);\n }", "function image_info($image)\n{\n // http://stackoverflow.com/a/2756441/1459873\n $is_path = preg_match('#^(\\w+/){1,2}\\w+\\.\\w+$#', $image);\n if ($is_path && false !== ($info = getimagesize($image))) {\n return array(\n 'width' => $info[0],\n 'height' => $info[1],\n 'mime' => $info['mime'],\n 'type' => 'file',\n );\n }\n $im = new \\Imagick();\n if ($im->readImageBlob($image)) {\n return array(\n 'width' => $im->getImageWidth(),\n 'height' => $im->getImageHeight(),\n 'mime' => $im->getImageMimeType(),\n 'type' => 'blob',\n );\n }\n return array('width' => 0, 'height' => 0, 'mime'=>'', 'type' => '');\n\n}", "public function get_size()\n\t\t{\n\t\t\treturn $this->width().'x'.$this->height();\n\t\t}", "public function imageSize($image)\n\t{\n\t\tif (is_file($image))\n\t\t{\n\t\t\t$image = getimagesize($image);\n\n\t\t\treturn [\n\t\t\t\t'w' => $image[0],\n\t\t\t\t'h' => $image[1],\n\t\t\t];\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn [\n\t\t\t\t'w' => 0,\n\t\t\t\t'h' => 0,\n\t\t\t];\n\t\t}\n\t}", "public function getImageSize()\n {\n return $this->ImageSize;\n }", "function wp_get_additional_image_sizes()\n {\n }", "function acf_get_image_sizes()\n{\n}", "function elk_getimagesize($file, $error = 'array')\n{\n\t$sizes = @getimagesize($file);\n\n\t// Can't get it, what shall we return\n\tif (empty($sizes))\n\t{\n\t\t$sizes = $error === 'array' ? array(-1, -1, -1) : false;\n\t}\n\n\treturn $sizes;\n}", "function getHeight($image) {\n\t\t\t\t$size = getimagesize($image);\n\t\t\t\t$height = $size[1];\n\t\t\t\treturn $height;\n\t\t\t}", "function getSize() ;", "private function _getHeight($image)\n {\n return imagesy($image);\n }", "function afterImport(){\n\n\t\t$f=$this->getPath();\n\t\t\n\t\t$gd_info=getimagesize($f);\n\t}", "function getHeight() \n {\n return imagesy($this->image);\n }", "function image_resize ( $args ) { /*\r\n\t\t * Changelog\r\n\t\t *\r\n\t\t * Version 3, July 20, 2007\r\n\t\t * - Cleaned\r\n\t\t *\r\n\t\t * Version 2, August 12, 2006\r\n\t\t * - Changed it to use $args\r\n\t\t */\r\n\t\t\r\n\t\t// Set default variables\r\n\t\t$image = $width_old = $height_old = $width_new = $height_new = $canvas_width = $canvas_height = $canvas_size = null;\r\n\t\t\r\n\t\t$x_old = $y_old = $x_new = $y_new = 0;\r\n\t\t\r\n\t\t// Exract user\r\n\t\textract($args);\r\n\t\t\r\n\t\t// Read image\r\n\t\t$image = image_read($image,false);\r\n\t\tif ( empty($image) ) { // error\r\n\t\t\ttrigger_error('no image was specified', E_USER_WARNING);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\t// Check new dimensions\r\n\t\tif ( empty($width_new) || empty($height_new) ) { // error\r\n\t\t\ttrigger_error('Desired/new dimensions not found', E_USER_WARNING);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\t// Do old dimensions\r\n\t\tif ( empty($width_old) && empty($height_old) ) { // Get the old dimensions from the image\r\n\t\t\t$width_old = imagesx($image);\r\n\t\t\t$height_old = imagesy($image);\r\n\t\t}\r\n\t\t\r\n\t\t// Do canvas dimensions\r\n\t\tif ( empty($canvas_width) && empty($canvas_height) ) { // Set default\r\n\t\t\t$canvas_width = $width_new;\r\n\t\t\t$canvas_height = $height_new;\r\n\t\t}\r\n\t\t\r\n\t\t// Let's force integer values\r\n\t\t$width_old = intval($width_old);\r\n\t\t$height_old = intval($height_old);\r\n\t\t$width_new = intval($width_new);\r\n\t\t$height_new = intval($height_new);\r\n\t\t$canvas_width = intval($canvas_width);\r\n\t\t$canvas_height = intval($canvas_height);\r\n\t\t\r\n\t\t// Create the new image\r\n\t\t$image_new = imagecreatetruecolor($canvas_width, $canvas_height);\r\n\t\t\r\n\t\t// Resample the image\r\n\t\t$image_result = imagecopyresampled(\r\n\t\t\t/* the new image */\r\n\t\t\t$image_new,\r\n\t\t\t/* the old image to update */\r\n\t\t\t$image,\r\n\t\t\t/* the new positions */\r\n\t\t\t$x_new, $y_new,\r\n\t\t\t/* the old positions */\r\n\t\t\t$x_old, $y_old,\r\n\t\t\t/* the new dimensions */\r\n\t\t\t$width_new, $height_new,\r\n\t\t\t/* the old dimensions */\r\n\t\t\t$width_old, $height_old);\r\n\t\t\r\n\t\t// Check\r\n\t\tif ( !$image_result ) { // ERROR\r\n\t\t\ttrigger_error('the image failed to resample', E_USER_WARNING);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\t// return\r\n\t\treturn $image_new;\r\n\t}", "public function getImageDetails($image) {\r\n\r\n$temp = getimagesize($this->src);\r\nif(null == $temp)\r\nthrow new Exception('Error while extracting the source image information');\r\n\r\n$this->width = $temp[0];\r\n$this->height = $temp[1];\r\n$this->type = $temp[2];\r\n}", "function wp_image_src_get_dimensions($image_src, $image_meta, $attachment_id = 0)\n {\n }", "function getHeight() {\r\n\t\treturn imagesy($this->image);\r\n\t}", "private function getWorkingImageWidth()\n {\n return imagesx($this->workingImageResource);\n }", "function ImageInfo($file){\n $ret=array('width'=>0,'height'=>0,'ImageExt'=>'');\n $size = getimagesize($file);\nif($size==FALSE){\n\n\n}else{\n $ext=explode(\"/\", $size['mime']);\n $ret['ImageExt']=$ext[1]; \n $ret['width']=$size[0]; \n $ret['height']=$size[1];\n}\nreturn $ret;\n}", "public function getImgSize() {\n\t\t$this->imgSize = getimagesize($this->imgUri);\n\t}", "private function _getWidth($image)\n {\n return imagesx($image);\n }", "function _image_get_preview_ratio($w, $h)\n {\n }", "public function size()\n { \n $props = $this->uri->ruri_to_assoc();\n\n if (!isset($props['o'])) exit(0);\n $w = -1;\n $h = -1;\n $m = 0;\n if (isset($props['w'])) $w = $props['w'];\n if (isset($props['h'])) $h = $props['h'];\n if (isset($props['m'])) $m = $props['m'];\n\n $this->img->set_img($props['o']);\n $this->img->set_size($w, $h, $m);\n $this->img->set_square($m);\n $this->img->get_img();\n }", "function getWidth($image) {\r\n\t\t$size = getimagesize($image);\r\n\t\t$width = $size[0];\r\n\t\treturn $width;\r\n\t}", "function getWidth($image) {\r\n\t\t\t$size = getimagesize($image);\r\n\t\t\t$width = $size[0];\r\n\t\t\treturn $width;\r\n\t\t}", "function get_pixel_image_size($order_id) {\n\n\t$sql = \"SELECT * FROM blocks WHERE order_id='$order_id' \";\n\n\t$result3 = mysql_query ($sql) or die (mysql_error().$sql);\n\t\n//echo $sql;\n\t// find high x, y & low x, y\n// low x,y is the top corner, high x,y is the bottom corner\n\n\twhile ($block_row = mysql_fetch_array($result3)) {\n\n\t\tif ($high_x=='') {\n\t\t\t$high_x = $block_row['x'];\n\t\t\t$high_y = $block_row['y'];\n\t\t\t$low_x = $block_row['x'];\n\t\t\t$low_y = $block_row['y'];\n\n\t\t}\n\n\t\tif ($block_row['x'] > $high_x) {\n\t\t\t$high_x = $block_row['x'];\n\t\t}\n\n\t\tif ($block_row['y'] > $high_y) {\n\t\t\t$high_y = $block_row['y'];\n\t\t}\n\n\t\tif ($block_row['y'] < $low_y) {\n\t\t\t$low_y = $block_row['y'];\n\t\t}\n\n\t\tif ($block_row['x'] < $low_x) {\n\t\t\t$low_x = $block_row['x'];\n\t\t}\n\n\t\t\n\n\t\t$i++;\n\n\t}\n\n\t$size['x'] = ($high_x + BLK_WIDTH) - $low_x;\n\t$size['y'] = ($high_y + BLK_HEIGHT) - $low_y;\n\n\treturn $size;\n\n}", "function getWidth($image) {\n\t\t$size = getimagesize($image);\n\t\t$width = $size[0];\n\t\treturn $width;\n\t}", "public function get_image_width()\n {\n }", "function cs_getimagesize($imagePath, $maxWidth = 0, $maxHeight = 0)\r\n{\r\n\t$use_curl = false;\r\n\tif (strtolower(substr($imagePath, 0, 7)) == 'http://'\r\n\t\t\t|| strtolower(substr($imagePath, 0, 6) == 'ftp://'))\r\n\t\t$use_curl = true;\n\t/* use curl if available, we can set decent timeouts for it */\r\n\tif ($use_curl && function_exists('curl_version') && function_exists('gd_info'))\n\t{\n\t\t$file_contents = cs_curl_contents($imagePath);\n\r\n\t\tif ($file_contents === false)\n\t\t\treturn false;\n\t\t$new_image = imagecreatefromstring($file_contents);\n\t\tif ($new_image !== false)\n\t\t{\n\t\t\t$size = array();\n\t\t\t$size[0] = imagesx($new_image);\n\t\t\t$size[1] = imagesy($new_image);\n\t\t}\n\t\telse\n\t\t\treturn false;\n\t}\n\telse\n\t\t$size = getimagesize($imagePath);\r\n\t\n\tif ($size === false)\r\n\t{\r\n\t\treturn false;\r\n\t}\r\n\tif ($maxWidth > 0)\r\n\t{\r\n\t\tif ($maxHeight > 0)\r\n\t\t{\r\n\t\t\t/* both matter */\r\n\t\t\tif ($size[0] > $maxWidth)\r\n\t\t\t{\r\n\t\t\t\tif ($size[1] > $maxHeight)\r\n\t\t\t\t{\r\n\t\t\t\t\tif ((1.0*$size[0] / $maxWidth ) > (1.0*$size[1] / $maxHeight))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t/* width is the important factor */ \r\n\t\t\t\t\t\t$size[1] = (int) ($size[1] * (1.0*$maxWidth / $size[0]));\r\n\t\t\t\t\t\t$size[0] = $maxWidth;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t/* height is the important factor */ \r\n\t\t\t\t\t\t$size[0] = (int) ($size[0] * (1.0*$maxHeight / $size[1]));\r\n\t\t\t\t\t\t$size[1] = $maxHeight;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\t/* only width */\r\n\t\t\t\t\tif ($size[0] > $maxWidth)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$size[1] = (int) ($size[1] * (1.0*$maxWidth / $size[0]));\r\n\t\t\t\t\t\t$size[0] = $maxWidth;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tif ($size[1] > $maxHeight)\r\n\t\t\t\t{\r\n\t\t\t\t\t/* only height */\r\n\t\t\t\t\t$size[0] = (int) ($size[0] * (1.0*$maxHeight / $size[1]));\r\n\t\t\t\t\t$size[1] = $maxHeight;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t/* only width matters */\r\n\t\t\tif ($size[0] > $maxWidth)\r\n\t\t\t{\r\n\t\t\t\t$size[1] = (int) ($size[1] * (1.0*$maxWidth / $size[0]));\r\n\t\t\t\t$size[0] = $maxWidth;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\telse\r\n\t{\r\n\t\tif ($maxHeight > 0)\r\n\t\t{\r\n\t\t\t/* only height matters */\r\n\t\t\tif ($size[1] > $maxHeight)\r\n\t\t\t{\r\n\t\t\t\t$size[0] = (int) ($size[0] * (1.0*$maxHeight / $size[1]));\r\n\t\t\t\t$size[1] = $maxHeight;\r\n\t\t\t}\r\n\t\t}\r\n\t\t/* else if both are 0, we don't need to do anything */\r\n\t}\r\n\treturn $size;\r\n}", "function size( $axis = NULL )\n\t{\n\t\tif( !strcasecmp( $axis, 'W' ) )\n\t\t\treturn imageSX( $this->im );\n\t\telseif( !strcasecmp( $axis, 'H' ) )\n\t\t\treturn imageSY( $this->im );\n\t\telse\n\t\t\treturn (object)array( 'w' => imageSX( $this->im ), 'h' => imageSY( $this->im ) );\n\t}", "function remove_image_size($name)\n {\n }", "function custom_image_sizes() {\n}", "function getArrowImageSize() {\n\t\t$image = SugarThemeRegistry::current()->getImageURL(\"arrow.gif\",false);\n\n $cache_key = 'arrow_size.'.$image;\n\n // Check the cache\n $result = sugar_cache_retrieve($cache_key);\n if(!empty($result))\n return $result;\n\n // No cache hit. Calculate the value and return.\n $result = getimagesize($image);\n sugar_cache_put($cache_key, $result);\n return $result;\n }", "public function getImageHeight(): int\n {\n return $this->imageHeight;\n }", "function getWidth() \n {\n return imagesx($this->image);\n }", "public function getHeight()\n {\n return imagesy($this->image);\n }", "function getWidth() {\r\n\t\treturn imagesx($this->image);\r\n\t}", "static function ImageCalSize($w,$h,$limitw,$limith)\r\n\t{\r\n\t\tif($w>$limitw){\r\n\t\t\t$per = $limitw/$w;\r\n\t\t\t$w = $w * $per ;\r\n\t\t\t$h = $h * $per ;\r\n\t\t}\r\n\t\tif($h >$limith){\r\n\t\t\t$per = $limith/$h;\r\n\t\t\t$w = $w * $per ;\r\n\t\t\t$h = $h * $per ;\r\n\t\t}\r\n\t\t$newSize = array($w,$h);\r\n\t\treturn $newSize;\r\n\t}", "public function get_image_height()\n {\n }", "private function get_signature_image_width() {\n\t\t$width = FrmField::get_option( $this->field, 'size' );\n\t\treturn $this->get_signature_image_dimension( $width, 'size' );\n\t}", "function getWidth($image) {\n\t\t\t\t$size = getimagesize($image);\n\t\t\t\t$width = $size[0];\n\t\t\t\treturn $width;\n\t\t\t}", "public function getImageSize()\n {\n return (($this->isWrapped() || $this->isTemp()) ?\n getimagesizefromstring($this->getRaw())\n : getimagesize($this->getPathname())\n );\n }", "public function getHeight() {\n return imagesy($this->image);\n }", "function has_image_size($name)\n {\n }", "public function getImageDimension(): ImageDimensionInterface;", "public function getImageHeight()\n\t{\n\t\treturn $this->imageHeight;\n\t}", "function get_height() {\n //based on image height\n return $this->_height;\n }", "function yz_attachments_get_cover_image_dimensions( $wh ) {\n return array( 'width' => 1350, 'height' => 350 );\n}", "public function getImageWidth(): int\n {\n return $this->imageWidth;\n }", "public function image_size()\n\t{\n if (!$this->local_file) {\n $this->get_local_file();\n }\n $image_size = getimagesize($this->local_file);\n $this->mime = $image_size['mime'];\n return $image_size;\n\t}", "public function getOriginalSize(): int;", "function get_image_size( $size ) {\n\t$sizes = get_image_sizes();\n\n\tif ( isset( $sizes[ $size ] ) ) {\n\t\treturn $sizes[ $size ];\n\t}\n\n\treturn false;\n}", "public function getImageWidth()\n\t{\n\t\treturn $this->imageWidth;\n\t}", "function refreshImageSize() {\n\t\tif($this->intTableKeyValue != \"\") {\n\t\t\tif ( $this->arrObjInfo['imageurl'] ) {\n\t\t\t\tif($this->arrObjInfo['imagewidth'] == 0) {\n\t\t\t\t\t$imageURL = $this->getLocalImageURL();\n\t\t\t\t\t\n\t\t\t\t\t$imageSize = getimagesize($imageURL);\n\t\t\t\t\t$this->arrObjInfo['imagewidth'] = $imageSize[0];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif($this->arrObjInfo['imageheight'] == 0) {\n\t\t\t\t\t$imageURL = $this->getLocalImageURL();\n\t\t\t\t\n\t\t\t\t\t$imageSize = getimagesize($imageURL);\n\t\t\t\t\t$this->arrObjInfo['imageheight'] = $imageSize[1];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "function resize($image,$x,$y=NULL,$wm=NULL,$wml='br'){\n if(!file_exists($image)){\n return false;\n }\n $images = array();\n if($wm !== '' && $wm !== NULL && file_exists($wm)){\n $images['wmimg'] = $wm;\n }\n $images['img'] = $image;\n foreach($images as $key=>$value){\n $type = substr($value,strrpos($value,'.'));\n if(stristr($type,'i')){\n $$key = imagecreatefromgif($value);\n }\n if(stristr($type,'j')){\n $$key = imagecreatefromjpeg($value);\n }\n if(stristr($type,'n')){\n $$key = imagecreatefrompng($value);\n }\n }\n $size = array();\n if($y === '' || $y === NULL){\n $size['x'] = imageSX($img);\n $size['y'] = imageSY($img);\n if($size['x'] >= $size['y']){\n $size['dest_x'] = $x;\n $size['dest_y'] = ceil($size['y'] * ($x / $size['x']));\n }else{\n $size['dest_y'] = $x;\n $size['dest_x'] = ceil($size['x'] * ($x / $size['y']));\n }\n $dest = imageCreatetruecolor($size['dest_x'],$size['dest_y']);\n }else{\n $dest = imagecreatetrueColor($x,$y);\n $size['x'] = imageSX($img);\n $size['y'] = imageSY($img);\n $size['dest_x'] = $x;\n $size['dest_y'] = $y;\n }\n imagecopyresized($dest, $img, 0, 0, 0, 0, $size['dest_x'], $size['dest_y'], $size['x'], $size['y']);\n if(isset($wmimg)){\n $size['wmx'] = imageSX($wmimg);\n $size['wmy'] = imageSY($wmimg);\n $size['wmh'] = strtolower($wml{0}) === 'b' ? ($size['dest_y'] - $size['wmy'] - 0) : 0;\n $size['wmw'] = strtolower($wml{1}) === 'r' ? ($size['dest_x'] - $size['wmx'] - 0) : 0;\n imagecopy($dest, $wmimg, $size['wmw'], $size['wmh'], 0, 0, $size['wmx'], $size['wmy']);\n imagedestroy($wmimg);\n }\n imagedestroy($img);\n return $dest;\n }", "function getOrigSize($calculateNew = false, $useOldPath = false){\n\t\t$arr = array(0,0,0,\"\");\n\t\tif(!$this->DocChanged && $this->ID){\n\t\t\tif($this->getElement(\"origwidth\") && $this->getElement(\"origheight\") && ($calculateNew == false)){\n\t\t\t\treturn array($this->getElement(\"origwidth\"),$this->getElement(\"origheight\"),0,\"\");\n\t\t\t}else{\n\t\t\t\t// we have to calculate the path, because maybe the document was renamed\n\t\t\t\t$path = $this->getParentPath() . \"/\" . $this->Filename . $this->Extension;\n\t\t\t\treturn we_thumbnail::getimagesize($_SERVER[\"DOCUMENT_ROOT\"]. (($useOldPath && $this->OldPath) ? $this->OldPath : $this->Path));\n\t\t\t}\n\t\t} else if(isset($this->elements[\"data\"][\"dat\"]) && $this->elements[\"data\"][\"dat\"]){\n\t\t\t$arr = we_thumbnail::getimagesize($this->elements[\"data\"][\"dat\"]);\n\t\t}\n\t\treturn $arr;\n\t}", "public function getImageHeight()\n {\n return $this->imageHeight;\n }", "public function getImageWidth()\n {\n return $this->imageWidth;\n }", "function wp_get_registered_image_subsizes()\n {\n }", "function calc_size()\n\t{\n\t}", "function getOrigSize($calculateNew = false, $useOldPath = false){\n\t\t$arr = array(0, 0, 0, '');\n\t\tif(!$this->DocChanged && $this->ID){\n\t\t\tif($this->getElement('origwidth') && $this->getElement('origheight') && ($calculateNew == false)){\n\t\t\t\treturn array($this->getElement('origwidth'), $this->getElement('origheight'), 0, '');\n\t\t\t}\n\t\t\t// we have to calculate the path, because maybe the document was renamed\n\t\t\t//$path = $this->getParentPath() . '/' . $this->Filename . $this->Extension;\n\t\t\treturn we_thumbnail::getimagesize(WEBEDITION_PATH . '../' . (($useOldPath && $this->OldPath) ? $this->OldPath : $this->Path));\n\t\t} else if(($tmp = $this->getElement('data'))){\n\t\t\t$arr = we_thumbnail::getimagesize($tmp);\n\t\t}\n\t\treturn $arr;\n\t}", "public function IncorrectImagePixelSize()\n\t{\n\t\tglobal $ft_dom;\n\t\t$code = array('');\t\t\t\n\t\t$elements = $ft_dom->getElementsByTagName('img');\n\t\t$img_array = array();\n\t\t$badimg = array();\n\t\t$code[1] = 0;\n\t\t$code[2] = '';\n\t\t$max_resource_tests = 50;\n\n\t foreach ($elements as $element) { \n\t\t\t//don't try to do too many.\n\t\t\tif(count($img_array) > $max_resource_tests) { continue; }\n\t\t\tif(Helper::likelyPixel($element)) { continue; }\n\t\t\tif($element->hasAttribute('src')) {\n\t\t\t\t//if((!$element->hasAttribute('width') && $element->hasAttribute('style')) && Helper::hasInlineStyleAttribute($element->getAttribute('style'),'width')) { echo \"width set inline.\"; }\n\t\t\t\tif(in_array($element->getAttribute('src'),$img_array)) { continue; }\n\t\t\t\t\n\t\t\t\tif ($element->hasAttribute('width') || $element->hasAttribute('height')) {\n\t\t\t\t\t$link = Helper::getAbsoluteResourceLink($element->getAttribute('src'));\n\t\t\t\t\t\n\t\t\t\t\tif(Helper::http200Test($link)) { \n\t\t\t\t\t\t\n\t\t\t\t\t\tlist($width, $height) = getimagesize($link);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif ($element->hasAttribute('width')) {\n\t\t\t\t\t\t\t//echo \"\\n\\nwidth:\" . $element->getAttribute('width') . \"\\n\";\n\n\t\t\t\t\t\t\tif($element->getAttribute('width') != $width) {\n\t\t\t\t\t\t\t\tif($code[1] <= Helper::$max_disp_threshold) { $code[0] .= Helper::printCodeWithLineNumber($element) . \"\\nshould be width=\\\"$width\\\"\"; }\n\t\t\t\t\t\t\t\t$badimg[] = $element;\n\t\t\t\t\t\t\t\t$code[1]++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif ($element->hasAttribute('height')) {\n\n\t\t\t\t\t\t\tif($element->getAttribute('height') != $height) {\n\t\t\t\t\t\t\t\tif($code[1] <= Helper::$max_disp_threshold) {\n\t\t\t\t\t\t\t\t\tif(in_array($element, $badimg)) {\n\t\t\t\t\t\t\t\t\t\t$code[0] .= \"\\n and height=\\\"$height\\\"(\" .$element->getAttribute('src') . \")\";\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t$code[0] .= Helper::printCodeWithLineNumber($element) . \"\\nshould be height=\\\"$height\\\"\";\n\t\t\t\t\t\t\t\t\t\t$code[1]++;\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\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tif(in_array($element, $badimg)) { $code[0] .= \"\\n\\n\"; }\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t$img_array[] = $element->getAttribute('src');\n\t\t\t\t\n\t\t\t}\n\t\t}\n\n\t\tif($code[0] != '') {\n\t\t\tif($code[1] > Helper::$max_disp_threshold) { $code[0] .= '...'; }\n\t\t\tif($code[1] > 1) { $code[2] = 's'; }\t\t\t\n\t\t\treturn $code;\n\t\t}\n\t return false;\n\t}", "public function setOriginalImageWidthHeight() {\n \n $checkError = $this->isError();\n if (!$checkError) {\n \n /*\n * get original width and height\n */\n $this->__originalImageWidth = imagesx($this->__image);\n $this->__originalImageHeight = imagesy($this->__image);\n \n }\n \n }", "public function get_size_image($img){\n if ($this->get_path_pic($img)){\n return filesize($this->get_path_pic($img)); \n }else{\n return false;\n }\n \n }", "function get_image_height( $size ) {\n\tif ( ! $size = get_image_size( $size ) ) {\n\t\treturn false;\n\t}\n\n\tif ( isset( $size['height'] ) ) {\n\t\treturn $size['height'];\n\t}\n\n\treturn false;\n}", "function _crop_image_resource($img, $x, $y, $w, $h)\n {\n }", "function getOrigSize($calculateNew = false, $useOldPath = false){\n\t\t$arr = array(0, 0, 0, '');\n\t\tif(!$this->DocChanged && $this->ID){\n\t\t\tif($this->getElement('origwidth') && $this->getElement('origheight') && ($calculateNew == false)){\n\t\t\t\treturn array($this->getElement('origwidth'), $this->getElement('origheight'), 0, '');\n\t\t\t} else {\n\t\t\t\t// we have to calculate the path, because maybe the document was renamed\n\t\t\t\t$path = $this->getParentPath() . '/' . $this->Filename . $this->Extension;\n\t\t\t\treturn $this->getimagesize($_SERVER['DOCUMENT_ROOT'] . (($useOldPath && $this->OldPath) ? $this->OldPath : $this->Path));\n\t\t\t}\n\t\t} else if(($tmp = $this->getElement('data'))){\n\t\t\t$arr = $this->getimagesize($tmp);\n\t\t}\n\t\treturn $arr;\n\t}", "function fa_get_custom_image_size( $image_id, $width, $height ){\n\t$image_id \t= absint( $image_id );\n\t$width \t\t= absint( $width );\n\t$height \t= absint( $height );\n\t// if width or height is 0, don't do anything\n\tif( $width == 0 || $height == 0 ){\n\t\treturn false;\n\t}\n\t// get the metadata from image\t\n\t$attachment_meta = get_post_meta( $image_id, '_wp_attachment_metadata', true );\n\tif( !$attachment_meta ){\n\t\treturn false;\n\t}\n\t// if width and height exceed the full image size, return the full image\n\tif( $width >= $attachment_meta['width'] && $height >= $attachment_meta['height'] ){\n\t\t$attachment = wp_get_attachment_image_src( $image_id, 'full' );\n\t\treturn $attachment[0];\n\t}\n\t\n\t// check if any of the registered sizes match the size we're looking for\n\tforeach( $attachment_meta['sizes'] as $size_name => $size_details ){\n\t\t// size matched, return it\n\t\tif( $width == $size_details['width'] && $height == $size_details['height'] ){\n\t\t\t$attachment = wp_get_attachment_image_src( $image_id, $size_name );\t\n\t\t\treturn $attachment[0];\t\t\n\t\t}\n\t}\n\t\n\t// get the upload dir details\n\t$wp_upload_dir = wp_upload_dir();\n\t// an extra meta field on image to store fa image sizes of resized images\n\t$fa_sizes = get_post_meta( $image_id, '_fa_attachment_metadata', true );\n\n\t// check sizes stored by FA\n\tif( $fa_sizes ){\n\t\tforeach( $fa_sizes as $details ){\n\t\t\tif( $width == $details['width'] && $height == $details['height'] ){\n\t\t\t\treturn $wp_upload_dir['baseurl'] . wp_normalize_path( $details['rel_path'] );\n\t\t\t}\n\t\t}\n\t}\n\t\n\t// create the new size if not found yet\n\t$image_path = path_join( $wp_upload_dir['basedir'] , $attachment_meta['file'] );\n\t// create the new image size\n\t$img_editor = wp_get_image_editor( $image_path );\n\t$img_editor->set_quality( 90 );\t\t\t\n\t$resized \t= $img_editor->resize( $width, $height, true );\n\t$new_file \t= $img_editor->generate_filename( null, null );\n\t$saved \t\t= $img_editor->save( $new_file );\n\t// relative file path\n\t$rel_path = str_replace( $wp_upload_dir['basedir'], '', $new_file );\n\t$new_file_url = $wp_upload_dir['baseurl'] . wp_normalize_path( $rel_path );\n\t\n\t// store the new size on image meta\n\t$fa_sizes = is_array( $fa_sizes ) ? $fa_sizes : array();\n\t$file_details = array(\n\t\t'basename' \t=> wp_basename( $new_file ),\n\t\t'rel_path' \t=> $rel_path,\n\t\t'width' \t=> $width,\n\t\t'height' \t=> $height\n\t);\n\t$fa_sizes[] = $file_details;\n\tupdate_post_meta( $image_id, '_fa_attachment_metadata', $fa_sizes);\n\treturn $new_file_url;\n}", "function redimensionne_image($photo)\n{\n\t$info_image = getimagesize($photo);\n\t// largeur et hauteur de l'image d'origine\n\t$largeur = $info_image[0];\n\t$hauteur = $info_image[1];\n\t// largeur et/ou hauteur maximum à afficher\n\tif(basename($_SERVER['PHP_SELF'],\".php\") === \"trombi_impr\") {\n\t\t// si pour impression\n\t\t$taille_max_largeur = getSettingValue(\"l_max_imp_trombinoscopes\");\n\t\t$taille_max_hauteur = getSettingValue(\"h_max_imp_trombinoscopes\");\n\t} else {\n\t// si pour l'affichage écran\n\t\t$taille_max_largeur = getSettingValue(\"l_max_aff_trombinoscopes\");\n\t\t$taille_max_hauteur = getSettingValue(\"h_max_aff_trombinoscopes\");\n\t}\n\n\t// calcule le ratio de redimensionnement\n\t$ratio_l = $largeur / $taille_max_largeur;\n\t$ratio_h = $hauteur / $taille_max_hauteur;\n\t$ratio = ($ratio_l > $ratio_h)?$ratio_l:$ratio_h;\n\n\t// définit largeur et hauteur pour la nouvelle image\n\t$nouvelle_largeur = $largeur / $ratio;\n\t$nouvelle_hauteur = $hauteur / $ratio;\n\n\treturn array($nouvelle_largeur, $nouvelle_hauteur);\n}", "function get_required_size($x, $y) {\n\t$block_width = BLK_WIDTH;\n\t$block_height = BLK_HEIGHT;\n\n\t$size[0] = $x;\n\t$size[1] = $y;\n\n\t$mod = ($x % $block_width);\n\t\n\tif ($mod>0) { // width does not fit\n\t\t$size[0] = $x + ($block_width-$mod);\n\n\t}\n\n\t$mod = ($y % $block_height);\n\t\n\tif ($mod>0) { // height does not fit\n\t\t$size[1] = $y + ($block_height-$mod);\n\n\t}\n\n\treturn $size;\n\n\n}", "public function getDimensions()\n {\n $imageDimension = getimagesize($this->image);\n\n $width = $imageDimension[0];\n $height = $imageDimension[1];\n\n foreach($this->effect as $effect)\n {\n if($effect instanceof PictureEffect)\n {\n $modified = $effect->getNewDimensions($width, $height);\n\n $width = $modified['w'];\n $height = $modified['h'];\n }\n }\n\n return array(\n 'w' => $width,\n 'h' => $height,\n );\n }", "private function makeImageSize(): void\n {\n list($width, $height) = getimagesize($this->getUrl());\n $size = array('height' => $height, 'width' => $width );\n\n $this->width = $size['width'];\n $this->height = $size['height'];\n }", "public function getHeight()\n\t{\n\t\treturn $this->image->getHeight();\n\t}", "function get_info($file) {\n\t$info = getimagesize($file);\n\t$filesize = filesize($file);\n\treturn array(\n\t\t'width'\t\t=> intval($info[0]),\n\t\t'height'\t=> intval($info[1]),\n\t\t'bytes'\t\t=> intval($filesize),\n\t\t'size'\t\t=> format_bytes($filesize),\n\t\t'mime'\t\t=> strtolower($info['mime']),\n\t\t'html'\t\t=> 'width=\"'.$info[0].'\" height=\"'.$info[1].'\"'\n\t\t//'bits' => $info['bits'],\n\t\t//'channels' => $info['channels'],\n\t);\n}", "function get_image_size_dimensions($size) {\n\t\tglobal $_wp_additional_image_sizes;\n\t\tif (isset($_wp_additional_image_sizes[$size])) {\n\t\t\t$width = intval($_wp_additional_image_sizes[$size]['width']);\n\t\t\t$height = intval($_wp_additional_image_sizes[$size]['height']);\n\t\t} else {\n\t\t\t$width = get_option($size.'_size_w');\n\t\t\t$height = get_option($size.'_size_h');\n\t\t}\n\n\t\tif ( $width && $height ) {\n\t\t\treturn array(\n\t\t\t\t'width' => $width,\n\t\t\t\t'height' => $height\n\t\t\t);\n\t\t} else return false;\n\t}" ]
[ "0.7161923", "0.7086543", "0.6848211", "0.68407345", "0.6707271", "0.66617864", "0.66223747", "0.6582213", "0.65810794", "0.6573882", "0.6573882", "0.6570667", "0.6567925", "0.65288734", "0.6412141", "0.63904864", "0.6365184", "0.63576597", "0.63509244", "0.633908", "0.63329387", "0.63120925", "0.6264002", "0.62598073", "0.6259744", "0.6259744", "0.6252617", "0.62519735", "0.6247516", "0.62179023", "0.6209768", "0.6204273", "0.61811316", "0.61807245", "0.6162368", "0.6144394", "0.61353636", "0.6134821", "0.6132197", "0.6114688", "0.61061233", "0.6099098", "0.6098775", "0.60932744", "0.6092359", "0.60749483", "0.6068507", "0.6065258", "0.6060956", "0.6057108", "0.60488516", "0.6046207", "0.6043271", "0.604206", "0.603848", "0.6002898", "0.5985492", "0.59824634", "0.59665257", "0.596611", "0.5951689", "0.5943562", "0.5906903", "0.58994687", "0.5899364", "0.5882734", "0.58776444", "0.58711904", "0.5868759", "0.5865081", "0.58461696", "0.58423865", "0.5841296", "0.5840236", "0.5839087", "0.5834382", "0.5831219", "0.582607", "0.5822435", "0.58195615", "0.58174455", "0.5806167", "0.58035636", "0.5799303", "0.57951516", "0.5783427", "0.5777689", "0.5762301", "0.575769", "0.57453996", "0.5734023", "0.5728065", "0.5717068", "0.57106835", "0.5700822", "0.56954193", "0.5670454", "0.56691617", "0.5664655", "0.5649963", "0.564924" ]
0.0
-1
NTP class constructor, sets the timeserver and port number
public function __construct($timeserver, $port = 123) { $this->_timeserver = 'udp://' . $timeserver; if ($port !== null) { $this->_port = $port; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __construct() {\n \t// $this->host = $host;\n \t// $this->port = $port;\n \t// $this->timeout = $timeout;\n parent::__construct(\"192.168.163.30\", \"22\", \"1\");\n }", "function __construct($server = '', $timeout = '')\n {\n }", "function doNTP($text = null)\n {\n if (strtolower($this->input) != \"ntp\") {\n $this->ntp_message = $this->ntp_response;\n $this->response = $this->ntp_response;\n return;\n }\n\n // \"None\" agent command received.\n if ($this->agent_input == null) {\n $token_thing = new Tokenlimiter($this->thing, \"ntp\");\n\n $dev_overide = null;\n if (\n $token_thing->thing_report[\"token\"] == \"ntp\" or\n $dev_overide == true\n ) {\n // From example\n $timeserver = \"ntp.pads.ufrj.br\";\n // Dev neither of these two are working.\n $timeserver = \"time.nrc.ca\";\n $timeserver = \"time.chu.nrc.ca\";\n // This is an older protocol version.\n $timeserver = \"time4.nrc.ca\";\n\n $timercvd = $this->query_time_server($timeserver, 37);\n\n $this->time_zone = \"America/Vancouver\";\n\n //if no error from query_time_server\n if (!$timercvd[1]) {\n $timevalue = bin2hex($timercvd[0]);\n $timevalue = abs(\n HexDec(\"7fffffff\") -\n HexDec($timevalue) -\n HexDec(\"7fffffff\")\n );\n $tmestamp = $timevalue - 2208988800; # convert to UNIX epoch time stamp\n $epoch = $tmestamp;\n // $datum = date(\"Y-m-d H:i:s\",$tmestamp - date(\"Z\",$tmestamp)); /* incl time zone offset */\n\n // $d = date(\"Y-m-d H:i:s\",$tmestamp - date(\"Z\",$tmestamp)); /* incl time zone offset */\n\n //$datum = $dt = new \\DateTime($tmestamp, new \\DateTimeZone(\"UTC\"));\n $datum = new \\DateTime(\"@$epoch\", new \\DateTimeZone(\"UTC\"));\n\n //$datum->setTimezone($tz);\n\n // $dt = new \\DateTime($prediction['date'], new \\DateTimeZone(\"UTC\"));\n\n $datum->setTimezone(new \\DateTimeZone($this->time_zone));\n\n $m = \"Time check from time server \" . $timeserver . \". \";\n\n $m =\n \"In the timezone \" .\n $this->time_zone .\n \", it is \" .\n $datum->format(\"l\") .\n \" \" .\n $datum->format(\"d/m/Y, H:i:s\") .\n \". \";\n } else {\n $m = \"Unfortunately, the time server $timeserver could not be reached at this time. \";\n $m .= \"$timercvd[1] $timercvd[2].\\n\";\n }\n\n $this->response = $m;\n\n // Bear goes back to sleep.\n $this->bear_message = $this->response;\n }\n } else {\n $this->bear_message = $this->agent_input;\n }\n }", "public function __construct($host = '127.0.0.1', $port = '23', $timeout = 1) {\n\n $this->host = $host;\n $this->port = $port;\n $this->timeout = $timeout;\n\n // set some telnet special characters\n $this->NULL = chr(0);\n $this->DC1 = chr(17);\n $this->WILL = chr(251);\n $this->WONT = chr(252);\n $this->DO = chr(253);\n $this->DONT = chr(254);\n $this->IAC = chr(255);\n\n $this->connect();\n }", "public function __construct()\n {\n $this->ttl = env('TTL');\n }", "public function __construct() {\n $host = Server::getMyHost();\n $host = ($host === NULL ? 'localhost' : $host);\n $this->_myaddress = 'noreply@' . $host;\n }", "public function __construct($servers = array())\n {\n if (!empty($servers))\n {\n $this->servers = $servers;\n $this->_connect();\n }\n /**\n * задержка для Memcached\n */\n define('MEMQ_TTL', 0);\n }", "public function __construct()\n\t{\n\t\t$this->url = (config_item('server_is_ssl') ? 'https://' : 'http://').\n\t\t\t\t\t\tconfig_item('server_user').':'.config_item('server_pass').'@'.\n\t\t\t\t\t\tconfig_item('server_name').':'.config_item('server_port').'/';\n\n\t\tlog_message('debug', 'Bitcoin connection set, with URL '.$this->url);\n\t}", "public function setServerTime();", "function __construct(){\n $s= gethostbyaddr ( $_SERVER['REMOTE_ADDR']);\n if ($s == 'apch-PC'){$this->server='local';}\n else {$this->server='gamisio';}\n }", "public function __construct() {\n $this->_configPassword = $this->parseConfig(2);\n $this->_configClass = $this->parseConfig(5);\n $this->_time = time();\n\t}", "private function __construct(){\r\n $this->ttl_by_type = array(\r\n 'short' => 300 , // 5 minutes\r\n 'default' => 7200, // 2 hours\r\n 'halfday' => 43200, // 12 hours\r\n 'day' => 86400, // 24 hours\r\n 'week' => 604800, // 7 days\r\n 'month' => 2592000, // 30 days (1 month)\r\n 'longterm' => 15811200 // 183 days (6 months)\r\n );\r\n }", "public function __construct()\n {\n Socket::$isServer = true;\n self::$server = new sockbase();\n self::$server->onmsg(__NAMESPACE__ . '\\SqlPool::inmsg');\n self::$server->dismsg(__NAMESPACE__ . '\\SqlPool::dis');\n $poolconf = ng169\\lib\\Option::get('pool');\n self::$pwd = $poolconf['pwd'];\n\n self::$server->start($poolconf['ip'], $poolconf['port']);\n\n // self::$server->start(\"127.0.0.1\", \"4563\");\n }", "public function __construct($server = \"localhost\", $port = 8008, $connectionTimeout = 10)\n {\n $this->_server = $server;\n $this->_port = $port;\n $this->_connectionTimeout = $connectionTimeout;\n }", "public function __construct($host, $port);", "public function __construct($tcc_number)\n {\n $this->wsdl = env('TCC_WSDL', '');\n $this->options( array('http'=>array(\n 'user_agent' => 'PHPSoapClient'\n )) );\n $this->tcc_number = $tcc_number;\n \n parent::__construct();\n }", "public function __construct()\n\t{\n\t\t$this->cache_ttl = intval(ee()->TMPL->fetch_param('ttl'));\n\t\t// For speed and API purposes, limit the cache to 30sec minimum\n\t\tif ($this->cache_ttl < 30)\n\t\t{\n\t\t\t$this->cache_ttl = 30;\n\t\t}\n\t}", "public function __construct()\n {\n $this->local_time = time();\n }", "function __construct($host, $port=80, $timeout=60)\n {\n $this->host = $host;\n $this->port = $port;\n $this->timeout = $timeout;\n $this->response = null;\n }", "public function __construct() {\n $this->time = time();\n }", "private function __construct ( $srv ) { $this->server = $srv; }", "private function __construct()\n {\n $this->time = time();\n }", "public function __construct($options) {\n\t\t$this -> conn = memcache_pconnect($options['host'], $options['port']);\n\t}", "public function initialize()\n {\n parent::initialize();\n\n $this->setQueueOption('name', 'crawler.nntp');\n $this->enableDeadLettering();\n\n $this->setRouting('crawler.nntp');\n }", "function __construct ($server, $port, $start = TRUE) {\n $this->server = $server;\n $this->port = $port;\n\n if ($start) $this->start();\n }", "public function __construct($ip_server = '127.0.0.1', $shared_secret = '', $udp_timeout = 5) {\n $this->_identifier_to_send = 0;\n $this->setServerIp($ip_server);\n $this->setSharedSecret($shared_secret);\n $this->SetUdpTimeout($udp_timeout);\n }", "public function __construct() {\n include Config::create()->load('cache');\n $this->config = $cache;\n $this->mc = new Memcached();\n foreach ($this->config['server'] as $s) {\n $this->mc->addServer($s['host'], $s['port']);\n }\n }", "public function __construct() {\n\t\tself::$IP = isset($_SERVER['REMOTE_ADDR']) ? $_SERVER['REMOTE_ADDR'] : \"127.0.0.1\"; \t\t\n\t\tself::$SETTINGS = array(\n\t\t\tnew SecuritySetting(1, \"SITE_LOAD\", 20, \"1 MINUTE\"),\n\t\t\tnew SecuritySetting(2, \"ACTION_HANDLER\", 15, \"1 MINUTE\"),\n\t\t\tnew SecuritySetting(3, \"LOGIN_ATTEMPT\", 7, \"10 MINUTE\"),\n\t\t\tnew SecuritySetting(4, \"EMAIL\", 5, \"1 MINUTE\"),\n\t\t\tnew SecuritySetting(5, \"CHANGE_PASSWORD\", 5, \"20 MINUTE\"),\n\t\t\tnew SecuritySetting(6, \"REGISTRATIONS\", 15, \"30 MINUTE\"),\n\t\t\tnew SecuritySetting(7, \"FORUM_POST\", 5, \"30 SECOND\"),\n\t\t\tnew SecuritySetting(8, \"MESSAGE_CENTRE\", 10, \"1 MINUTE\")\n\t\t);\n\t}", "function __construct() {\n\t\t$this->time = time();\n\t\t$this->startSession();\n\t}", "public function __construct()\r\n {\r\n global $IP;\r\n $this->url = \"http://\" . $IP . \"/user/info/update/\";\r\n $this->http = new HttpClass();\r\n $this->InfoGet = new TestUserInfoGet();\r\n }", "public function __construct() {\n\t\t$this->startTime = self::getMicrotime();\n\t}", "public function __construct() {\n\t\t\tconfig::set('connection.insecure_domains', config::get('socket.insecure_domains', []));\n\t\t\tconfig::set('connection.tls_ca_path', config::get('socket.tls_ca_path', []));\n\t\t\t$this->setup();\n\t\t}", "public function __construct( $expiration = 3600 , array $servers )\n {\n $this->expiration = $expiration;\n\n foreach ($servers as $server)\n {\n $this->addserver( $server['host'] , $server['port']);\n }\n }", "public function __construct() {\n $this->server = new nusoap_server();\n // Define the method as a PHP function\n }", "public function __construct()\n\t{\n\t\t$configuration = new Config();\n\t\t// Configure socket server\n\t\tparent::__construct($configuration->socket_host, $configuration->socket_controller_port);\n\n\t\t// Run the server\n\t\t$this->run();\n\t}", "public function __construct($timetable)\n {\n $this->timetable = $timetable;\n }", "public function __construct()\n {\n $mailSettings = Settings::getValue(Settings::SKEY_MAIL);\n $this->server = $mailSettings[Settings::KEY_MAIL_SERVER];\n $this->port = $mailSettings[Settings::KEY_MAIL_PORT];\n $this->username = $mailSettings[Settings::KEY_MAIL_USERNAME];\n $this->password = $mailSettings[Settings::KEY_MAIL_PASSWORD];\n }", "function __construct ($ip = '127.0.0.1', $port, $protocol = 'http', $user = null, $password = null){\n $this->ip = $ip;\n $this->port = $port;\n // I need to implement a sort of validating http or https\n $this->url = $protocol.'://'.$ip.':'.$port.'/json_rpc';\n $this->user = $user;\n $this->password = $password;\n $this->client = new jsonRPCClient($this->url, $this->user, $this->password);\n }", "public function __construct()\n {\n $this->http = new swoole_http_server(self::HOST, self::PORT);\n\n $this->http->set([\n \"enable_static_handler\" => true,\n \"document_root\" => \"/home/alex/study/thinkphp/public/static/\",\n 'worker_num' => 2,\n 'task_worker_num' => 2,\n\n ]);\n\n $this->http->on(\"WorkerStart\", [$this, 'onWorkerStart']);\n $this->http->on(\"request\", [$this, 'onRequest']);\n $this->http->on(\"task\", [$this, 'onTask']);\n $this->http->on(\"finish\", [$this, 'onFinish']);\n $this->http->on(\"close\", [$this, 'onClose']);\n\n\n $this->http->start();\n }", "public function __construct($server)\n {\n $this->server = $server;\n }", "function __construct() {\n // We'll just hardcode this in. In a real application situation use\n // an external file\n $this->host = 'localhost';\n $this->username = 'PHPSCRIPT';\n $this->password = '1234';\n $this->dbName = 'cst8257';\n $this->port = 3306; // Default\n //$this->port = 3307; // Custom Port\n }", "public function __construct($host=null, $query=null, $sid=null, $port=null) {\r\n\r\n if ($host === null || $query === null || ($sid === null && $port === null)) {\r\n $this->errors[] = 'please specify the host, queryport and server port or server id';\r\n return false;\r\n }\r\n\r\n $this->ts3_host = $host;\r\n $this->ts3_query = $query;\r\n $this->ts3_sid = $sid;\r\n $this->ts3_port = $port;\r\n\r\n // default groups\r\n $this->groups['sgroup'][6] = array('n' => 'Server Admin', 'p' => 'client_sa.png');\r\n $this->groups['cgroup'][5] = array('n' => 'Channel Admin', 'p' => 'client_ca.png');\r\n $this->groups['cgroup'][6] = array('n' => 'Channel Operator', 'p' => 'client_co.png');\r\n\r\n // default icons\r\n $this->icons['client_away'] = 1;\r\n $this->icons['client_is_talker'] = 1;\r\n $this->icons['client_flag_talking'] = 1;\r\n $this->icons['client_input_hardware'] = 0;\r\n $this->icons['client_output_hardware'] = 0;\r\n $this->icons['client_input_muted'] = 1;\r\n $this->icons['client_output_muted'] = 1;\r\n\r\n // default lang\r\n $this->lang['stats']['os'] = 'TS3 OS:';\r\n $this->lang['stats']['version'] = 'TS3 Version:';\r\n $this->lang['stats']['channels'] = 'Channels:';\r\n $this->lang['stats']['onlinesince'] = 'Online since:';\r\n $this->lang['stats']['uptime'] = 'Uptime:';\r\n $this->lang['stats']['traffic'] = 'Traffic In/Out:';\r\n $this->lang['stats']['cache'] = 'Cache time:';\r\n }", "function __construct($controllerIp, $controllerPort, $timeouts=NULL){\n\t\t$this->_setControllerIp($controllerIp);\n\t\t$this->_setControllerPort($controllerPort);\n\t\t$this->_setTimeouts($timeouts);\n\t\t$this->_connectToTheController();\n\t}", "public function __construct()\n\t{\n\t\tif (!file_exists(PHPFOX_DIR_SETTING . 'cdn.sett.php'))\n\t\t{\n\t\t\tPhpfox_Error::trigger('CDN setting file is missing.', E_USER_DEPRECATED);\n\t\t}\n\t\t\n\t\trequire_once(PHPFOX_DIR_SETTING . 'cdn.sett.php');\n\t\t\n\t\tforeach ($aServers as $iKey => $aServer)\n\t\t{\n\t\t\t$iKey++;\n\t\t\t$iKey++;\n\t\t\t$this->_aServers[$iKey] = $aServer;\n\t\t}\t\t\t\t\t\t\t\n\t\t\n\t\t$this->_iServerId = rand(2, (count($this->_aServers) + 1));\n\t}", "function __construct($address, $port) {\n $this->socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);\n if (! socket_connect($this->socket, $address, $port)) {\n die(\"Unable to connect to StockServer\");\n }\n\n // pull down the current exchange rate\n $contents = file_get_contents('https://api.exchangeratesapi.io/latest?base=INR&symbols=USD,GBP');\n if (! $contents) {\n die(\"Unable to get exchange rate\");\n }\n $results = json_decode($contents, true);\n $this->rate = $results['rates']['USD'];\n }", "function __construct() {\t\t\n\t\t\t// start the session\n\t\t\tself::start();\n\t\t\t\n\t\t\t// get session expire time\n\t\t\t$expiretime = self::get('expiretime');\n\t\t\t\n\t\t\t//check session\t\t\n\t\t\tif(isset($expiretime)) {\n\t\t\t\tif(self::get('expiretime') < time()) {\n\t\t\t\t\tself::destroy();\t\t\t\t\t\t\n\t\t\t\t}\t\t\t\n\t\t\t}\t\n\t\t\t\n\t\t\t//session time\n\t\t\t$minutes = SESSION_TIMEOUT;\n\t\t\t\n\t\t\t//set session time out\t\t\n\t\t\tself::set('expiretime', time() + ($minutes * 60));\n\t\t}", "public function __construct() {\n global $conn;\n $this->connection = $conn;\n $this->time = time();\n $this->startSession();\n }", "function __construct() {\n $this->mem = new Memcache();\n //$this->mem->connect('118.178.182.224','18392'); //写入缓存地址,端口\n// $this->mem->addServer('118.178.182.224','18392');\n $this->mem->addServer('localhost','3306');\n }", "public function __construct()\n {\n $this->protocolList = array(\n 'imap' => __NAMESPACE__ . '\\IMAP',\n 'pop3' => __NAMESPACE__ . '\\POP',\n 'nntp' => __NAMESPACE__ . '\\NNTP',\n );\n }", "public function __construct($timeout = null) {\n $this->timeout = $timeout;\n }", "public function __construct($params)\n\t{\n\t\tif (isset($params['host'])) $this->host = $params['host'];\n\t\tif (isset($params['port'])) $this->port = $params['port'];\n\t\tif (isset($params['auth'])) $this->auth = $params['auth'];\n\t\tif (isset($params['username'])) $this->username = $params['username'];\n\t\tif (isset($params['password'])) $this->password = $params['password'];\n\t\tif (isset($params['localhost'])) $this->localhost = $params['localhost'];\n\t\tif (isset($params['timeout'])) $this->timeout = $params['timeout'];\n\t\tif (isset($params['debug'])) $this->debug = (bool)$params['debug'];\n\t\tif (isset($params['persist'])) $this->persist = (bool)$params['persist'];\n\t\tif (isset($params['pipelining'])) $this->pipelining = (bool)$params['pipelining'];\n\n\t\t// Deprecated options\n\t\tif (isset($params['verp'])) {\n\t\t\t$this->addServiceExtensionParameter('XVERP', is_bool($params['verp']) ? null : $params['verp']);\n\t\t}\n\n\t\t/**\n\t\t * Destructor implementation to ensure that we disconnect from any\n\t\t * potentially-alive persistent SMTP connections.\n\t\t */\n\t\tregister_shutdown_function( array(&$this, 'disconnect') );\n\t}", "public function __construct($timeslots)\n {\n $this->timeslots = $timeslots;\n }", "public function __construct($ttl)\n {\n parent::__construct($ttl);\n }", "function __construct($addr, $port, $bufferLength = 2048) \n\t{\n\t\t$this->maxBufferSize = $bufferLength;\n\n\t\t$this->master = socket_create(AF_INET, SOCK_STREAM, SOL_TCP) or die(\"Failed: socket_create()\");\n\n\t\tsocket_set_option($this->master, SOL_SOCKET, SO_REUSEADDR, 1) or die(\"Failed: socket_option()\");\n\t\tsocket_bind($this->master, $addr, $port)or die(\"Failed: socket_bind()\");\n\t\tsocket_listen($this->master,20) or die(\"Failed: socket_listen()\");\n\n\t\t$this->sockets['m'] = $this->master;\n\n\t\t$this->stdout(\"Server started\".PHP_EOL.\"Listening on: $addr:$port\".PHP_EOL.\"Master socket: \".$this->master);\n\t}", "function __construct() {\n parent::__construct();\n \n date_default_timezone_set('Europe/London');\n \n $this->updateTime = date('Y-m-d H:m:s', strtotime('now'));\n \n\n }", "function __construct($tns = TNS, $usr = DB_SERVER_USERNAME, $pwd = DB_SERVER_PASSWORD,$dbName = DB_NAME) \n {\n\t\t\t$this->connectionStatus = false;\n\t\t\t$this->connect($tns, $usr, $pwd,$dbName);\n\t\t}", "public function __construct()\n\t{\n\t\tsession_start();\n\t\t$this->timer = microtime();\n\t}", "public function __construct($email, $pass)\n {\n $this->_client = new nsClient(nsHost::live);\n $this->_client->setPassport(\n $email,\n $pass,\n $this->_account = 12345,\n $this->_role = 3\n );\n }", "protected function _prepare()\n {\n $frac = microtime();\n $fracba = ($frac & 0xff000000) >> 24;\n $fracbb = ($frac & 0x00ff0000) >> 16;\n $fracbc = ($frac & 0x0000ff00) >> 8;\n $fracbd = ($frac & 0x000000ff);\n\n $sec = (time() + 2208988800);\n $secba = ($sec & 0xff000000) >> 24;\n $secbb = ($sec & 0x00ff0000) >> 16;\n $secbc = ($sec & 0x0000ff00) >> 8;\n $secbd = ($sec & 0x000000ff);\n\n // Flags\n $nul = chr(0x00);\n $nulbyte = $nul . $nul . $nul . $nul;\n $ntppacket = chr(0xd9) . $nul . chr(0x0a) . chr(0xfa);\n\n /*\n * Root delay\n *\n * Indicates the total roundtrip delay to the primary reference\n * source at the root of the synchronization subnet, in seconds\n */\n $ntppacket .= $nul . $nul . chr(0x1c) . chr(0x9b);\n\n /*\n * Clock Dispersion\n *\n * Indicates the maximum error relative to the primary reference source at the\n * root of the synchronization subnet, in seconds\n */\n $ntppacket .= $nul . chr(0x08) . chr(0xd7) . chr(0xff);\n\n /*\n * ReferenceClockID\n *\n * Identifying the particular reference clock\n */\n $ntppacket .= $nulbyte;\n\n /*\n * The local time, in timestamp format, at the peer when its latest NTP message\n * was sent. Contanis an integer and a fractional part\n */\n $ntppacket .= chr($secba) . chr($secbb) . chr($secbc) . chr($secbd);\n $ntppacket .= chr($fracba) . chr($fracbb) . chr($fracbc) . chr($fracbd);\n\n /*\n * The local time, in timestamp format, at the peer. Contains an integer\n * and a fractional part.\n */\n $ntppacket .= $nulbyte;\n $ntppacket .= $nulbyte;\n\n /*\n * This is the local time, in timestamp format, when the latest NTP message from\n * the peer arrived. Contanis an integer and a fractional part.\n */\n $ntppacket .= $nulbyte;\n $ntppacket .= $nulbyte;\n\n /*\n * The local time, in timestamp format, at which the\n * NTP message departed the sender. Contanis an integer\n * and a fractional part.\n */\n $ntppacket .= chr($secba) . chr($secbb) . chr($secbc) . chr($secbd);\n $ntppacket .= chr($fracba) . chr($fracbb) . chr($fracbc) . chr($fracbd);\n\n return $ntppacket;\n }", "public function __construct( $pServerIp = \"\", $pServerPort = \"\", $pLoginName = \"\", $pLoginPassword = \"\")\n\t{\n\t\tparent::__construct( $pServerIp, $pServerPort, $pLoginName, $pLoginPassword );\n\t}", "public function __construct()\n\t{\n\t\tparent::__construct();\n\t\t$this->hconfig = Config::get('heartbeat');\n\t}", "public function __construct($options)\n\t{\n\t\t$this->memcached = new \\Memcached();\n\n\t\tif (isset($options['servers'])) {\n\t\t\t$servers = array();\n\t\t\tforeach ($options['servers'] as $server) {\n\t\t\t\t$defaults = array(\n\t\t\t\t\t'weight' => 1,\n\t\t\t\t\t'port' => self::DEFAULT_PORT,\n\t\t\t\t);\n\t\t\t\t$server = parse_url($server[0]) + $server + $defaults;\n\t\t\t\tif (!isset($server['host'])) {\n\t\t\t\t\t$server['host'] = $server['path'];\n\t\t\t\t\tunset($server['path']);\n\t\t\t\t}\n\t\t\t\t$servers[] = array(\n\t\t\t\t\t$server['host'],\n\t\t\t\t\t$server['port'],\n\t\t\t\t\t$server['weight']\n\t\t\t\t);\n\t\t\t}\n\t\t\t$this->memcached->addServers($servers);\n\t\t} else {\n\t\t\t$options['port'] = isset($options['port']) ? $options['port'] : self::DEFAULT_PORT;\n\t\t\t$this->memcached->addServer($options['host'],$options['port']);\n\t\t}\n\n\t\tif (isset($options['options'])) {\n\t\t\tforeach ($options['options'] as $option => $value) {\n\t\t\t\t$this->memcached->setOption($option, $value);\n\t\t\t}\n\t\t}\n\t}", "public function __construct($config = array()) {\r\n if (isset($config['multipleIPs']) && $config['multipleIPs']) {\r\n $this->config['multipleIPs'] = true;\r\n $this->config['IPs'] = $config['IPs'];\r\n $this->outgoing_ip = $config['IPs'][mt_rand(0, count($config['IPs']) - 1)];\r\n }\r\n }", "function __construct($timeout=5) {\n\t\t$this->timeout = $timeout;\n\t\tif(!isset($_SESSION)) session_start();\n\t\t$this->tokenSet();\n\t}", "function __construct($address, $login, $password, $port)\n {\n set_include_path( LIB_PATH . '/phpseclib/');\n require_once LIB_PATH . '/phpseclib/Net/SSH2.php';\n require_once LIB_PATH . '/phpseclib/Net/SFTP.php';\n require_once APP_PATH . '/resp/Response.php';\n\n $this->port = $port;\n $this->address = $address;\n $this->password = $password;\n $this->login = $login;\n $this->response = new Response();\n }", "public function init()\n\t{\n\t\t$this->serversInit();\n\t}", "public function newTunnel(){\n\t\t$this->buffer = '';\n\t\t$this->tunnel_type = null;\n\t\t$this->cipher = null;\n\t\t$this->server = null;\n\t\t$this->port = null;\n\t}", "private function __construct($ip)\n {\n $this->ip = $ip;\n }", "public function __construct(string $host, int $port = 993)\n\t{\n\t\t$this->host = $host;\n\t\t$this->port = $port;\n\t}", "public function __construct()\n {\n $this->dateTime = new Time('now', 'Asia/Jakarta', 'id_ID');\n }", "public function __construct($type = 0, $time = null) {\n \n $this->setType($type);\n $this->startedAt = false;\n $this->stoppedAt = false;\n \n parent::__construct($time);\n }", "function setTns($tns) \n {\n\t\t\t$this->tnsName = ((empty($tns)) ? \"localhost\" : $tns);\n\t\t}", "function setServer( $address, $port ) {\n\t\t$this->address = $address;\n\t\t$this->port = $port;\n\t}", "public function __construct()\r\n {\r\n parent::__construct();\r\n\r\n $this->url = Configure::read('cdr_url') . \":\" . Configure::read('cdr_api.async_port');\r\n }", "public function __construct($Host, $Port = 25565, $Timeout = 1) {\n\t/* Connect to the host and creat a socket */\n\t\t$this->Socket = @stream_socket_client('udp://'.$Host.':'.(int)$Port, $ErrNo, $ErrStr, $Timeout);\n\t\tif($ErrNo || $this->Socket === false) {\n\t\t\t$this->Info['online'] = false; return;\n\t\t\t//throw new Exception('Failed to connect', 1);\n\t\t}\n\t\tstream_set_timeout($this->Socket, $Timeout);\n\n\t/* Make handshake and request server status */\n\t\t$Data = $this->Send(self::STATUS, pack('N', $this->Send(self::HANDSHAKE)).pack('c*', 0x00, 0x00, 0x00, 0x00));\n\t\t//set_time_limit($met);\n\n\t\t// Try fallback if query is not enabled on the server\n\t\tif(!$Data){\n\t\t\tif(!class_exists('MinecraftServerStatusSimple') && file_exists('MinecraftServerStatusSimple.class.php'))\n\t\t\t\trequire_once('MinecraftServerStatusSimple.class.php');\n\t\t\tif(class_exists('MinecraftServerStatusSimple')) {\n\t\t\t\t$Fallback = new MinecraftServerStatusSimple($Host, $Port, $Timeout);\n\t\t\t\t$this->Info = [\n\t\t\t\t\t'hostname' => $Fallback->Get('motd'),\n\t\t\t\t\t'numplayers' => $Fallback->Get('numplayers'),\n\t\t\t\t\t'maxplayers' => $Fallback->Get('maxplayers'),\n\t\t\t\t\t'hostport' => (int)$Port,\n\t\t\t\t\t'hostip' => $Host,\n\t\t\t\t\t'online' => $Fallback->Get('online')\n\t\t\t\t]; fclose($this->Socket); return;\n\t\t\t}\n\t\t}\n\n\t/* Prepare the data for parsing */\n\t\t// Split the data string on the player position\n\t\t$Data = explode(\"\\00\\00\\01player_\\00\\00\", $Data);\n\t\t// Save the players\n\t\t$Players = '';\n\t\tif($Data[1])\n\t\t\t$Players = substr($Data[1], 0, -2);\n\t\t// Split the server infos (status)\n\t\t$Data = explode(\"\\x00\", $Data[0]);\n\n\t/* Parse server info */\n\t\tfor($i = 0; $i < sizeof($Data); $i += 2) {\n\t\t\t// Check if the server info is expected, if yes save the value\n\t\t\tif(array_key_exists($Data[$i], $this->Info) && array_key_exists($i+1, $Data))\n\t\t\t\t$this->Info[$Data[$i]] = $Data[$i+1];\n\t\t}\n\n\t\t// Parse plugins and try to determine the server software\n\t\tif($this->Info['plugins']) {\n\t\t\t$Data = explode(\": \", $this->Info['plugins']);\n\t\t\t$this->Info['software'] = $Data[0];\n\t\t\tif(isset($Data[1]))\n\t\t\t\t$this->Info['plugins'] = explode('; ', $Data[1]);\n\t\t\telse\n\t\t\t\tunset($this->Info['plugins']);\n\t\t} else {\n\t\t\t// It seems to be a vanilla server\n\t\t\t$this->Info['software'] = 'Vanilla';\n\t\t\tunset($this->Info['plugins']);\n\t\t}\n\n\t\t// Parse players\n\t\tif($Players)\n\t\t\t$this->Info['players'] = explode(\"\\00\", $Players);\n\n\t\t// Cast types\n\t\t$this->Info['numplayers'] = (int)$this->Info['numplayers'];\n\t\t$this->Info['maxplayers'] = (int)$this->Info['maxplayers'];\n\t\t$this->Info['hostport'] = (int)$this->Info['hostport'];\n\n\t\t$this->Info['online'] = true;\n\t/* Close the connection */\n\t\tfclose($this->Socket);\n\t}", "function __construct($host, $port, $password, $id) {\n\t\t\t$this->host = $host;\n\t\t\t$this->port = $port;\n\t\t\t$this->password = $password;\n\t\t\t$this->id = $id;\n\t\t}", "function __construct() {\n\t\t// TODO: Form validation on number text box\n\t\t$minutes = $_POST['time']; // Grab number of minutes from input box named 'time'\n\t\t$seconds = 59; // Init seconds at 59\n\t\tcountdown($minutes, $seconds); // Starts countdown\n\t}", "function __construct()\n {\n // Some default values of the class\n $this->gatewayUrl = 'https://test.ipgonline.com/connect/gateway/processing';\n $this->ipnLogFile = PAID_SUBS_DIR.'/ipn/logs/firstdata.ipn_results.log';\n \n global $paidSub;\n \n if($paidSub->configs['test_mode']=='enabled')\n $this->enableTestMode();\n }", "function __construct() {\n $conf = config('plugins');\n\n if (!isset($conf->memcached)) {\n $this->conf = (object) array(\n 'servers' => '127.0.0.1:11211',\n );\n } else {\n $this->conf = $conf->memcached;\n }\n\n $this->memcached = new \\Memcached();\n\n if (strpos($this->conf->servers, ',')) {\n $servers = explode(',', $this->conf->servers);\n } else {\n $servers = array($this->conf->servers);\n }\n\n foreach ($servers as $server) {\n $parts = explode(':', $server);\n $this->addServer($parts[0], $parts[1]);\n }\n }", "function __construct() {\n $this->day = strtolower(date('l')); // monday, tuesday ....\n //$this->day = 'monday';\n //$this->day = $url;\n \n $ltime = localtime();\n $this->time = ($ltime[2] * 60 * 60) + ($ltime[1] * 60) + $ltime[0]; // seconds past in day\n $ltime = null;\n \n //$utc = new DateTime(NULL, new DateTimeZone('UTC'));\n //$utc->setDate(1985, 1, 22);\n //$this->UTCday = $utc->getTimestamp();\n }", "public function __construct($server = 'localhost', $port = 4444) {\r\n\t\t$this->server = \"http://$server:$port/\";\r\n\r\n\t\t// grab the user:key pair if it exists for Sauce authentication\r\n\t\tpreg_match(\"/([^:]+):([^@]+)@.+/\", $server, $matchResults);\r\n\t\tif ((count($matchResults) == 3) && (strpos($server, 'ondemand.saucelabs.com') > 0)) {\r\n\t\t\tself::setSessionSauce($matchResults[1], $matchResults[2]);\r\n\t\t}\r\n\t}", "public function __construct() {\n\t\n parent::__construct();\n\t\t\n self::_initTags(); //extend ipp server tags\t\t\t\n\t\t\n\t\t$this->server_version = '1.0'; //IPP server version\n\t\t$this->ipp_version = '1.0'; //1.1 or 1.0\n\t\t$this->ipp_version_auto = true; //auto change ipp version depending on ipp client\n\t\t\n\t\tswitch ($this->ipp_version) {\n\t\t case '1.1' : $this->ipp_version_x8 = chr(0x01) . chr(0x01); \n\t\t break;\n\t\t case '1.0' :\n\t\t default :\n\t\t $this->ipp_version_x8 = chr(0x01) . chr(0x00);//'1.0';//NOT 1.1 ..WILL NOT WORK IN WINDOWS\n\t\t}\n\t\t\n\t\t$this->clientoutput = new stdClass();\t\t\n }", "public function __construct() {\n date_default_timezone_set('America/Los_Angeles');\n $this->enable_flag = false; // Default behavior is no logging, this is PHP after all!\n }", "function __construct(){\r\n\r\n\t\t\t$this->setHttpHeaders();\r\n\t\t\t$this->setUserIp();\r\n\t\t\t$this->setUserAgent();\r\n\r\n\t\t}", "public function PPTPServer()\n {\n return new PPTPServer($this->talker);\n }", "public function __construct()\n\t{\n\t\tparent::__construct();\n\t\t$this->timestamp = time();\n\t}", "function __construct() {\n $this->start_time = microtime(true);\n }", "public function __construct()\n\t{\n\t\t$this->system = new System;\n\n\t\t$config = $this->system->getFileContent( \"Config\\\\config.json\" );\n\t\t$config = json_decode( $config, True );\n\n\t\tforeach( $config as $key => $value ) {\n\t\t\t$this->$key = $value;\n\t\t}\n\n\t\tif( $_SERVER['SERVER_NAME'] == \"localhost\" ) {\n\t\t\t$server = \"http://\" . $_SERVER['SERVER_NAME'];\n\t\t} else {\n\t\t\t$server = $_SERVER['SERVER_NAME'];\n\t\t}\n\t\t$this->server = $server . \"/\" . $this->workspace;\n\t\t\n\t\t$this->address = $this->parseAddress( $_SERVER['REQUEST_URI'] );\n\t}", "function __construct( $host='',$port='' ) {\r\n if(!empty($host) AND !empty($port)) {\r\n return $this->connect($host,$port);\r\n }\r\n }", "public function __construct() {\n $this->siteRoot = 'http://127.0.0.1';\n $this->driver = new GoutteDriver();\n $this->session = new Session($this->driver);\n }", "public function __construct ($t=null,$c=null)\n\t\t{\n\t\t\t$this->config = parse_ini_file (\"../robot/settings.ini.php\");\n\t\t\t$this->t = $t;\n\t\t\t$this->c = $c;\n\t\t}", "public function __construct( $config_instance ){\n \n\t$config_instance->host = (array) $config_instance->host;\n\t\n foreach($config_instance->host as $host)\n\t $this->addServer($host, $this->port);\n\t\n\t/**\n\t * EN: If you need compression Threshold, you can uncomment this\n\t */\n\t//$this->setCompressThreshold(20000, 0.2);\n }", "function __construct()\n {\n $this->url = 'http://sqlvalidator.mimer.com/v1/services';\n $this->service_name = 'SQL99Validator';\n $this->wsdl = '?wsdl';\n\n $this->output_type = 'html';\n\n $this->username = 'anonymous';\n $this->password = '';\n $this->calling_program = 'PHP_SQLValidator';\n $this->calling_program_version = '$Revision$';\n $this->target_dbms = 'N/A';\n $this->target_dbms_version = 'N/A';\n $this->connection_technology = 'PHP';\n $this->connection_technology_version = phpversion();\n $this->interactive = 1;\n\n $this->service_link = null;\n $this->session_data = null;\n }", "function __construct(){\n $this->SMTPDebug = 0;\n $this->Host = \"smtp.gmail.com\";\n $this->Port = 587;\n $this->SMTPSecure = \"tls\";\n $this->SMTPAuth = true;\n $this->Username = \"[email protected]\";\n $this->Password = \"Sys123456MU\";\n $this->NameEmail = \"Sys Monsters University\";\n }", "function TcpClient($remoteHost=null, $portNum=0) \r\n{ \r\n$this->Host = strval($remoteHost); \r\n$this->Port = intval(max(0, $portNum)); //** ensure port >= than zero. \r\n}", "public function __construct () {\n\t\tglobal $_CONSTANTS;\n\t\t$a=array(\"'\");\n\t\t$b=array(\"\");\n\t\tforeach (parse_ini_file(\"settings.ini\") as $key=>$value) { \n\t\t\t${$key} = $value;\n\t\t\tif ($key==\"host\") {\n\t\t\t\tdefine(HOST,'https://' . $value);\n\t\t\t} else { \t\t\t\n\t\t\t\tdefine(strtoupper($key),str_replace($a,$b,$value));\n\t\t\t}\n\t\t}\n\t\t\n\t\t$this->host=HOST;\n\t}", "public function __construct($port, $host = '127.0.0.1') {\n $this->port = $port;\n $this->host = $host;\n $this->workers = array();\n parent::__construct(\n 'tcp://' . $this->host . ':' . $this->port,\n IS_WIN ? Cluster::$mainLoop : null\n );\n }", "public function __construct($data = '')\n {\n parent::__construct($data);\n $this->set('ip', self::$remoteaddr);\n }", "public function __construct(System $system, Client $client, $ttr = 3600) {\n $this->system = $system;\n\n parent::__construct($client, $ttr);\n }", "public function __construct() {\n parent::__construct();\n $this->client = new Client( [\n 'timeout' => 1000,\n 'verify' => false,\n 'request.options' => [\n 'proxy' => 'tcp://113.160.234.147:47469',\n ],\n ] );\n }" ]
[ "0.6770856", "0.65881467", "0.62849605", "0.5934404", "0.5917346", "0.5841154", "0.5840386", "0.5809032", "0.5796364", "0.5775719", "0.57638663", "0.5752381", "0.57111704", "0.5686482", "0.56618094", "0.5626183", "0.56156063", "0.56073076", "0.5588258", "0.5564918", "0.5563503", "0.55624056", "0.5551713", "0.5537066", "0.55111694", "0.54751295", "0.54717344", "0.54636866", "0.5453995", "0.54358166", "0.53989154", "0.53906626", "0.53893805", "0.5388256", "0.53784037", "0.5355439", "0.5352264", "0.5346309", "0.5343436", "0.5322886", "0.5312711", "0.5303946", "0.5301582", "0.5294251", "0.5293947", "0.5291123", "0.5288455", "0.5283397", "0.5280913", "0.52765954", "0.52743006", "0.5271809", "0.52659214", "0.5250138", "0.52489364", "0.5240771", "0.5236333", "0.5231199", "0.5221148", "0.52112424", "0.5201136", "0.5190994", "0.51809686", "0.51798767", "0.5171821", "0.5169891", "0.5155803", "0.51548207", "0.5151658", "0.51427376", "0.5141891", "0.51358193", "0.5132686", "0.5132273", "0.5117859", "0.51178", "0.5113812", "0.51052886", "0.51044685", "0.51032245", "0.5096134", "0.5094352", "0.5090416", "0.50821215", "0.50782", "0.50778806", "0.5075013", "0.50688404", "0.5065755", "0.5056538", "0.5042147", "0.5036863", "0.50364864", "0.50361025", "0.5034561", "0.50338537", "0.5022576", "0.50203115", "0.5009142", "0.500705" ]
0.7328202
0
Prepare local timestamp for transmission in our request packet NTP timestamps are represented as a 64bit fixedpoint number, in seconds relative to 0000 UT on 1 January 1900. The integer part is in the first 32 bits and the fraction part in the last 32 bits
protected function _prepare() { $frac = microtime(); $fracba = ($frac & 0xff000000) >> 24; $fracbb = ($frac & 0x00ff0000) >> 16; $fracbc = ($frac & 0x0000ff00) >> 8; $fracbd = ($frac & 0x000000ff); $sec = (time() + 2208988800); $secba = ($sec & 0xff000000) >> 24; $secbb = ($sec & 0x00ff0000) >> 16; $secbc = ($sec & 0x0000ff00) >> 8; $secbd = ($sec & 0x000000ff); // Flags $nul = chr(0x00); $nulbyte = $nul . $nul . $nul . $nul; $ntppacket = chr(0xd9) . $nul . chr(0x0a) . chr(0xfa); /* * Root delay * * Indicates the total roundtrip delay to the primary reference * source at the root of the synchronization subnet, in seconds */ $ntppacket .= $nul . $nul . chr(0x1c) . chr(0x9b); /* * Clock Dispersion * * Indicates the maximum error relative to the primary reference source at the * root of the synchronization subnet, in seconds */ $ntppacket .= $nul . chr(0x08) . chr(0xd7) . chr(0xff); /* * ReferenceClockID * * Identifying the particular reference clock */ $ntppacket .= $nulbyte; /* * The local time, in timestamp format, at the peer when its latest NTP message * was sent. Contanis an integer and a fractional part */ $ntppacket .= chr($secba) . chr($secbb) . chr($secbc) . chr($secbd); $ntppacket .= chr($fracba) . chr($fracbb) . chr($fracbc) . chr($fracbd); /* * The local time, in timestamp format, at the peer. Contains an integer * and a fractional part. */ $ntppacket .= $nulbyte; $ntppacket .= $nulbyte; /* * This is the local time, in timestamp format, when the latest NTP message from * the peer arrived. Contanis an integer and a fractional part. */ $ntppacket .= $nulbyte; $ntppacket .= $nulbyte; /* * The local time, in timestamp format, at which the * NTP message departed the sender. Contanis an integer * and a fractional part. */ $ntppacket .= chr($secba) . chr($secbb) . chr($secbc) . chr($secbd); $ntppacket .= chr($fracba) . chr($fracbb) . chr($fracbc) . chr($fracbd); return $ntppacket; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function utc2local($timestamp = null) {\n\t\tif(!$timestamp) {\n\t\t\t$timestamp = time();\n\t\t}\n\n\t\t$f3 = \\Base::instance();\n\n\t\tif($f3->exists(\"site.timeoffset\")) {\n\t\t\t$offset = $f3->get(\"site.timeoffset\");\n\t\t} else {\n\t\t\t$tz = $f3->get(\"site.timezone\");\n\t\t\t$dtzLocal = new \\DateTimeZone($tz);\n\t\t\t$dtLocal = new \\DateTime(\"now\", $dtzLocal);\n\t\t\t$offset = $dtzLocal->getOffset($dtLocal);\n\t\t\t$f3->set(\"site.timeoffset\", $offset);\n\t\t}\n\n\t\treturn $timestamp + $offset;\n\t}", "public static function normalizedTime() {\n\t\t$offset = 0;\n\t\ttry {\n\t\t\t$offset = wfWAF::getInstance()->getStorageEngine()->getConfig('timeoffset_ntp', false);\n\t\t\tif ($offset === false) {\n\t\t\t\t$offset = wfWAF::getInstance()->getStorageEngine()->getConfig('timeoffset_wf', false);\n\t\t\t\tif ($offset === false) { $offset = 0; }\n\t\t\t}\n\t\t}\n\t\tcatch (Exception $e) {\n\t\t\t//Ignore\n\t\t}\n\t\treturn time() + $offset;\n\t}", "function date_sys_to_local($timestamp, $local_tz='') {\n\tif($local_tz == '') $local_tz = @$_SESSION['cms']['user']['timezone'];\n\tif($local_tz == '') return $timestamp;\n\t\n\t$offset = date_tz_offset($timestamp, $local_tz);\n\treturn $timestamp + $offset;\n}", "function tstamptotime($tstamp) {\n // 1984-09-01T14:21:31Z\n sscanf($tstamp,\"%u-%u-%uT%u:%u:%uZ\",$year,$month,$day,\n $hour,$min,$sec);\n $newtstamp=mktime($hour,$min,$sec,$month,$day,$year);\n return $newtstamp;\n }", "function net_time($timestamp=NULL)\n{\n $ts = ($timestamp == NULL) ? time() : intval($timestamp);\n\n list($h,$m,$s) = split(':',gmdate('H:i:s',$ts));\n list($u,$ts) = ($timestamp == NULL) ? split(' ',microtime()) : array(0,0);\n\n $deg = $h * 15; // 0-345 (increments of 15)\n $deg = $deg + floor($m / 4); // 0-14\n\n $min = ($m % 4) * 15; // 0,15,30,45\n $min = $min + floor($s / 4); // 0-14\n\n $sec = ($s % 4) * 15; // 0,15,30,45\n $sec = $sec + ((60 * $u) / 4); // 0-14\n\n return sprintf('%d%s %02d\\' %02d\" NET',$deg,unichr(176),$min,$sec);\n}", "function solrTimestamp($epoch=0) {\n if($utc = intval($epoch)) {\n return date('Y-m-d\\TH:i:s\\Z',$utc);\n }\n else {\n return date('Y-m-d\\TH:i:s\\Z',time());\n }\n return;\n}", "public static function localTimestamp($timestamp)\n {\n // Transfor to timestamp if required\n return date(\n 'Y-m-d H:i:s',\n self::asTimestamp($timestamp) + self::$settings[1] * 3600\n );\n }", "public function GetTaggerLocalEpoch()\n\t{\n\t\t$epoch = $this->GetTaggerEpoch();\n\t\t$tz = $this->GetTaggerTimezone();\n\t\tif (preg_match('/^([+\\-][0-9][0-9])([0-9][0-9])$/', $tz, $regs)) {\n\t\t\t$local = $epoch + ((((int)$regs[1]) + ($regs[2]/60)) * 3600);\n\t\t\treturn $local;\n\t\t}\n\t\treturn $epoch;\n\t}", "function date_local_to_sys($timestamp, $local_tz='') {\n\tif($local_tz == '') $local_tz = @$_SESSION['cms']['user']['timezone'];\n\tif($local_tz == '') return $timestamp;\n\n\t$offset = date_tz_offset($timestamp, $local_tz);\n\treturn $timestamp - $offset;\n}", "function convert_timestamp($timestamp){ \n $limit=date(\"U\"); \n $limiting=$timestamp-$limit; \n return date (\"Ymd\", mktime (0,0,$limiting)); \n}", "function _getFormattedTimestamp()\n {\n return gmdate(\"Y-m-d\\TH:i:s.\\\\0\\\\0\\\\0\\\\Z\", time());\n }", "function timestamp(){\r\n\t\t$timestamp = round(microtime(1) * 1000);\r\n\r\n\t\treturn $timestamp;\r\n\t}", "function get_local_iso_8601_date($int_date, $server_offset_time)\n{\n // $int_date: current date in UNIX timestamp\n $GMT_value = get_local_GMT_offset($server_offset_time);\n $local_date = date(\"Y-m-d\\TH:i:s\", $int_date + $server_offset_time);\n $local_date .= $GMT_value;\n return $local_date;\n}", "function rlip_timestamp($hour = null, $minute = null, $second = null, $month = null, $day = null, $year = null, $timezone = 99) {\n if ($hour === null) {\n $hour = gmdate('H');\n }\n if ($minute === null) {\n $minute = gmdate('i');\n }\n if ($second === null) {\n $second = gmdate('s');\n }\n if ($month === null) {\n $month = gmdate('n');\n }\n if ($day === null) {\n $day = gmdate('j');\n }\n if ($year === null) {\n $year = gmdate('Y');\n }\n return make_timestamp($year, $month, $day, $hour, $minute, $second, $timezone);\n}", "public static function timestamp()\n {\n //$mt = microtime();\n list($mt, $tm) = explode(\" \", microtime());\n return sprintf(\"%d%03d\",$tm,(int)($mt*1000%1000));\n }", "function convert_time($value)\n\t{\n\t\t$dateLargeInt=$value; // nano secondes depuis 1601 !!!!\n\t\t$secsAfterADEpoch = $dateLargeInt / (10000000); // secondes depuis le 1 jan 1601\n\t\t$ADToUnixConvertor=((1970-1601) * 365.242190) * 86400; // UNIX start date - AD start date * jours * secondes\n\t\t$unixTimeStamp=intval($secsAfterADEpoch-$ADToUnixConvertor); // Unix time stamp\n\t\treturn $unixTimeStamp;\n\t}", "function get_offset_time($offset_str, $factor=1)\n {\n if (preg_match('/^([0-9]+)\\s*([smhdw])/i', $offset_str, $regs))\n {\n $amount = (int)$regs[1];\n $unit = strtolower($regs[2]);\n }\n else\n {\n $amount = (int)$offset_str;\n $unit = 's';\n }\n \n $ts = mktime();\n switch ($unit)\n {\n case 'w':\n $amount *= 7;\n case 'd':\n $amount *= 24;\n case 'h':\n $amount *= 60;\n case 'm':\n $amount *= 60;\n case 's':\n $ts += $amount * $factor;\n }\n\n return $ts;\n}", "function WindowsTime2UnixTime($WindowsTime) {\n\t$UnixTime = $WindowsTime / 10000000 - 11644473600;\n\treturn $UnxiTime; \n}", "function convertTimestamp($timestamp, $timezone = \"-0000\"){\r\n \treturn \"/Date($timestamp$timezone)/\";\r\n }", "protected function _getTimestamp($input)\n {\n $f1 = (ord($input[0]) * pow(256, 3));\n $f1 += (ord($input[1]) * pow(256, 2));\n $f1 += (ord($input[2]) * pow(256, 1));\n $f1 += (ord($input[3]));\n $f1 -= 2208988800;\n\n $f2 = (ord($input[4]) * pow(256, 3));\n $f2 += (ord($input[5]) * pow(256, 2));\n $f2 += (ord($input[6]) * pow(256, 1));\n $f2 += (ord($input[7]));\n\n return (float) ($f1 . \".\" . $f2);\n }", "protected function getTimestamp()\r\n {\r\n return gmdate(\"Y-m-d\\TH:i:s.\\\\0\\\\0\\\\0\\\\Z\", time());\r\n }", "public static function get_timestamp() {\n\t\treturn floor(microtime(true)/self::keyRegeneration);\n\t}", "private static function generate_timestamp() {\n return time();\n }", "private static function generate_timestamp()\n {\n return time();\n }", "function shadow_to_unixtime($t) {\n return (int)($t * 24 * 60 * 60);\n}", "function db2gmtime($var){\n global $cfg;\n if(!$var) return;\n \n $dbtime=is_int($var)?$var:strtotime($var);\n return $dbtime-($cfg->getMysqlTZoffset()*3600);\n }", "function GetTimeNow($Local)\n{\n\tif (!$Local) return(time()); //Torno tempo in UTC\n\treturn(time()+date(\"Z\")); //Torno tempo locale\n}", "function WindowsTime2DateTime($WindowsTime) {\n\t$UnixTime = $WindowsTime / 10000000 - 11644473600;\n\treturn date('Y-m-d H:i:s', $UnixTime); \n}", "function get_local_rfc_822_date($int_date, $server_offset_time)\n{\n // $int_date: current date in UNIX timestamp\n $GMT_value = get_local_GMT_offset($server_offset_time);\n $local_date = date(\"D, d M Y H:i:s\", $int_date + $server_offset_time);\n $local_date .= \" \" . str_replace(':', '', $GMT_value);\n return $local_date;\n}", "function shadow_from_unixtime($t=null) {\n if($t === null)\n $t = time();\n\n return (int)($t / 24 / 60 / 60);\n}", "function _convert_to_unix_timestamp($timestamp)\n\t{\n\t\tlist($time, $date) = explode('.', $timestamp);\n\t\t\n\t\t// breakdown time\n\t\t$hour = substr($time, 0, 2);\n\t\t$minute = substr($time, 2, 2);\n\t\t$second = substr($time, 4, 2);\n\t\t\n\t\t// breakdown date\n\t\t$day = substr($date, 0, 2);\n\t\t$month = substr($date, 2, 2);\n\t\t$year = substr($date, 4, 2);\n\t\t\n\t\treturn gmmktime($hour, $minute, $second, $month, $day, $year);\n\t}", "function timeStampToDateFR($timestamp) {\n return date('Y-m-d H:i:s', $timestamp);\n}", "function utime2timestamp($string2format) {\n \t\treturn date(\"YmdHis\",$string2format);\n \t}", "function DateTimeToInt ($s) {\n\tGlobal $iTimeType;\n\t\n\t$y = (int)substr($s, 0, 4);\t\t// year\n\t$m = (int)substr($s, 4, 2);\t\t// month\n\t$d = (int)substr($s, 6, 2);\t\t// day\n\t$h = (int)substr($s, 8, 2);\t\t// hour\n\t$n = (int)substr($s,10, 2);\t\t// minute\n\t\n\tif ($m < 1) $m = 1;\n\tif (12 < $m) $m = 12;\n\tif ($d < 1) $d = 1;\n\tif (31 < $d) $d = 31;\n\tif ($h < 0) $h = 0;\n\tif (23 < $h) $h = 23;\n\tif ($n < 0) $n = 0;\n\tif (59 < $n) $n = 59;\n\t\n\tif ($iTimeType == 1) {\n\t\t$z = (int)substr($s,12, 2);\t// second\n\t\tif ($y < 1970) $y = 1970;\n\t\tif (2037 < $y) $y = 2037;\n\t\tif ($z < 0) $z = 0;\n\t\tif (59 < $z) $z = 59;\n\t\treturn mktime($h,$n,$z,$m,$d,$y);\n\t}\n\t\n\t$y -= 2000;\n\tif ($y < 0) $y = 0;\n\tif (213 < $y) $y = 213;\n\treturn ($y*10000000)+((50+$m*50+$d)*10000) + ($h*100) + $n;\t// 3+3+2+2\n}", "public function toTimestamp(): ?int\n {\n $gc = new GregorianCalendar();\n $julianDay = $gc->ymdToJd(($this->year > 0 && $this->epoch) ? -$this->year : $this->year, $this->monthDigital ?: 1, $this->day ?: 1);\n return ($julianDay - 2440588) * 86400;\n }", "function TguidToTime($tguid = 0)\n {\n # Pick the left-most 10 digits\n $num = substr($tguid, 0, 10);\n\n # Convert it to decimal and convert back to hexadecimal\n $dec = Base62To10($num);\n $hex = dechex($dec);\n\n # Check for overflow to determine which digit of the hexadecimal value as the picking\n # breakpoint between the second-level and the microsecond-level timestamp\n # 5K1WLnfhB1 in base 62 = 72,057,594,037,927,935 in base 10\n # = ff ffff ffff ffff (16^14 - 1) in base 16\n if ($dec > Base62To10('5K1WLnfhB1'))\n $sub = -5;\n else\n $sub = -6;\n\n # Pick the left-most 8 or 9 digits of the hexadecimal value, convert it to base 10\n # second-level timestamp, and convert it back to `Y-m-d H:i:s` date\n $timestampHex = substr($hex, 0, $sub);\n $timestampDec = hexdec($timestampHex);\n $date = date('Y-m-d H:i:s', $timestampDec);\n\n # Pick the right-most 5 or 6 digits of the hexadecimal value, convert it to base 10\n # microsecond-level timestamp (without enough accuracy)\n $microtimeHex = substr($hex, $sub);\n $microtimeDec = substr(str_pad(round(hexdec($microtimeHex), 6), 6, '0', STR_PAD_LEFT), 0, 6);\n\n # Return `Y-m-d H:i:s` date and the microsecond\n return $date . '.' . $microtimeDec;\n }", "public static function RFCDate() {\n\t $tz = date('Z');\n\t $tzs = ($tz < 0) ? '-' : '+';\n\t $tz = abs($tz);\n\t $tz = (int)($tz/3600)*100 + ($tz%3600)/60;\n\t $result = sprintf(\"%s %s%04d\", date('D, j M Y H:i:s'), $tzs, $tz);\n\t\n\t return $result;\n\t}", "function EpochToMySQLTime($Epoch)\n{\n\treturn(gmdate(\"Y-m-d H:i:s\", $Epoch));\n}", "function TimeToBase62Guid($time = '')\n {\n # Define $time as `Y-m-d H:i:s.u` format while the time string is empty (by default)\n if ($time == '')\n {\n $time = date('Y-m-d H:i:s.u');\n }\n\n # Remove quotation marks in the inputted time string\n $time = str_replace('\"', '', $time);\n $time = str_replace(\"'\", '', $time);\n\n # Append default microsecond value while there is no microsecond part in the inputted time string\n if (preg_match('/^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}$/', $time))\n {\n $time .= '.000000';\n }\n else\n {\n # Return null while the inputted time string is not match neither `Y-m-d H:i:s` nor `Y-m-d H:i:s.u` format\n if (!preg_match('/^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}\\.\\d{1,6}$/', $time))\n {\n return null;\n }\n }\n\n # Divide the time string as second-and-longer and microsecond part\n $date = explode('.', $time)[0];\n $microtime = explode('.', $time)[1];\n\n # Convert the second-and-longer part to hexadecimal timestamp\n $timestampDec = strtotime($date);\n $timestampHex = dechex($timestampDec);\n\n # Append 0 to the microsecond part to make it 6-digit, converting it to hexadecimal, and prepend 0 to 1 to make it 6-digit again\n $microtimeDec = str_pad($microtime, 6, '0', STR_PAD_RIGHT);\n $microtimeHex = str_pad(dechex($microtimeDec), 6, '0', STR_PAD_LEFT);\n\n # Combine the two hexadecimal time string\n $prototHex = $timestampHex . $microtimeHex;\n\n # Convert the hexadecimal time string to base 62\n $base62 = gmp_strval(gmp_init($prototHex, 16), 62);\n\n # Prepend 0 to the base 62 time string to make it 10-digit\n $base62 = str_pad($base62, 10, '0', STR_PAD_LEFT);\n\n return $base62;\n }", "function MyDateTimestamp($date)\r\n{\r\n\treturn gmmktime(\r\n\t\tsubstr($date, 11, 2), //h\r\n\t\tsubstr($date, 14, 2), //i\r\n\t\tsubstr($date, 17, 2), //s\r\n\t\tsubstr($date, 5, 2), //m\r\n\t\tsubstr($date, 8, 2), //d\r\n\t\tsubstr($date, 0, 4) //y\r\n\t);\r\n}", "function getTimestamp($data) {\r\n\t// yyyy-mm-dd HH:ii:ss\r\n\t// 0123456789012345678\r\n\t$h = substr($data, 11, 2);\r\n\t$i = substr($data, 14, 2);\r\n\t$s = substr($data, 17, 2);\r\n\t$m = substr($data, 5, 2);\r\n\t$d = substr($data, 8, 2);\r\n\t$y = substr($data, 0, 4);\r\n\t//**************\r\n\treturn mktime($h, $i, $s, $m, $d, $y);\r\n}", "protected function _makeTimestamp($string)\n {\n if (empty($string)) {\n // use \"now\":\n $time = time();\n } elseif (preg_match('/^\\d{14}$/', $string)) {\n // it is mysql timestamp format of YYYYMMDDHHMMSS? \n $time = mktime(\n substr($string, 8, 2),\n substr($string, 10, 2),\n substr($string, 12, 2),\n substr($string, 4, 2),\n substr($string, 6, 2),\n substr($string, 0, 4)\n );\n \n } elseif (is_numeric($string)) {\n // it is a numeric string, we handle it as timestamp\n $time = (int)$string;\n \n } else {\n // strtotime should handle it\n $time = strtotime($string);\n if ($time == -1 || $time === false) {\n // strtotime() was not able to parse $string, use \"now\":\n $time = time();\n }\n }\n \n return $time;\n }", "private static function timestamp(){\n date_default_timezone_set('Africa/Nairobi');\n $time = time();\n return date(\"Y-m-d G:i:s\", $time);\n }", "private function get_timestamp(?string $relative, ?string $units): int\n {\n if ('months' === $units) {\n $spec = 'M';\n } elseif ('weeks' === $units) {\n $spec = 'W';\n } else {\n $spec = 'D';\n }\n if ($relative) {\n $when = new \\DateTime();\n $when->sub(new \\DateInterval(\"P$relative$spec\"));\n $ret = $when->getTimestamp();\n } else {\n $ret = 0;\n }\n return $ret;\n }", "function TidyTimeStamp($str)\n{\n\t$date=strtok($str, \"T\");\n\t$time=strtok(\"T\");\n\t$finalDate=date_format(date_create($date),\"d.m\");\n\t$finalTime=substr($time,0,5);\n\t//$weekday=weekdayFromEnglish(\"fi_FI\",date_format(date_create($date),\"D\"));\n\t$weekday=localizeWeekDay(date_format(date_create($date),\"D\"));\n\treturn $weekday .\" \". $finalDate .\" \". $finalTime;\n}", "public static function timeStampToEpoch($f)\n {\n if (self::isPostgress()) {\n return \"extract(epoch from \" . $f . \")\";\n }\n if (self::isMySQL()) {\n return \"UNIX_TIMESTAMP(\" . $f .\")\";\n }\n throw new DBIBackendExplicitHandlerUnimplementedException(\n 'SQLUNIMP timeStampToEpoch() called on unsupported backend'\n );\n }", "function unix_time_to_win_time($unix_time) {\n $win_time = ($unix_time + 11644477200) * 10000000;\n return $win_time;\n }", "private function _mktime(){\n\t\t$this->_timestamp = self::mktime($this->_month, $this->_day, $this->_year);\n\t}", "function getUserLocalTime($datetime, $format='M d g:i a'){\r\n $server_dt = new DateTime($datetime, new DateTimeZone($this->app_config['server_timezone_offset']));\r\n\t// if timezone is not set\r\n\t// return server time\r\n\tif(empty($this->timezone_offset)){\r\n\t\t$local_dt_string = $server_dt->format($format);\r\n\t\treturn $local_dt_string;\r\n\t}\r\n\r\n\t// example value ot $this->timezone_offset\r\n //$this->timezone_offset = '+0800';\r\n $user_offset = $this->timezone_offset;\r\n\r\n $offset_hr = intval($user_offset/100);\r\n $offset_min = $user_offset%100;\r\n $offset_sec = $offset_hr * 3600 + $offset_min * 60;\r\n\r\n //get offset\r\n $gmt_offset = $server_dt->getOffset();\r\n //modify time to first get GMT\r\n $server_dt->modify(\"-$gmt_offset second\");\r\n\r\n // now modify time again to get local time \r\n\r\n $server_dt->modify(\"$offset_sec second\");\r\n\r\n //formatted string\r\n $local_dt_string = $server_dt->format($format);\r\n return $local_dt_string;\r\n}", "function crystal_sqlite_from_unixtime($timestamp)\n {\n $timestamp = trim($timestamp);\n if (!preg_match(\"/^[0-9]+$/is\", $timestamp))\n $ret = strtotime($timestamp);\n else\n $ret = $timestamp;\n \n $ret = date(\"Y-m-d H:i:s\", $ret);\n crystal_sqlite_debug(\"FROM_UNIXTIME ($timestamp) = $ret\");\n return $ret;\n }", "private function user_local_request_time()\n\t{\n\t\t$formatted = sprintf(\n\t\t\t'%s-%s-%s %s:%s %s',\n\t\t\tdate('Y', $_SERVER['REQUEST_TIME']),\n\t\t\tdate('m', $_SERVER['REQUEST_TIME']),\n\t\t\tdate('d', $_SERVER['REQUEST_TIME']),\n\t\t\t$this->input->post('timecard_hour'),\n\t\t\t$this->input->post('timecard_min'),\n\t\t\t$this->input->post('timecard_pmam')\n\t\t);\n\n\t\treturn Carbon::createFromFormat('Y-m-d h:i A', $formatted);\n\t}", "private static function generateHexTimestamp() : string\n {\n $time = microtime(false);\n [$microseconds, $seconds] = explode(' ', $time);\n \n // Keep only millisecond digits.\n $microseconds = substr($microseconds, 2,3);\n \n $hex = base_convert($seconds . $microseconds, 10, 16);\n \n return str_pad($hex, self::TOTAL_CHARS_LENGTH - self::RANDOM_CHARS_LENGTH, '0', STR_PAD_LEFT);\n }", "function getUTCOffset($value, $timestamp = null)\n {\n if ($value === null) {\n return 0;\n } else {\n list($sign, $hours, $minutes) = sscanf($value, '%1s%2d%2d');\n return ($sign == '+' ? 1 : -1) * ($hours * 60 * 60) + ($minutes * 60);\n }\n }", "function convert_timestamp($timestamp)\n\t{\n\t\t$timestamp_bits = explode('T', $timestamp);\n\n\t\tif(isset($timestamp_bits[0], $timestamp_bits[0])):\n\t\t\t$date_bits = explode('-', $timestamp_bits[0]);\n\t\t\t$time_bits = explode(':', $timestamp_bits[1]);\n\t\t\t$year = $date_bits[0];\n\t\t\t$month = $date_bits[1];\n\t\t\t$day = $date_bits[2];\n\t\t\t$hour = $time_bits[0];\n\t\t\t$minute = $time_bits[1];\n\t\t\t$second = $time_bits[2];\n\n\t\t\treturn mktime($hour,$minute,$second, $month, $day, $year);\n\t\tendif;\n\n\t\treturn false;\n\n\t}", "public function getStamp()\n {\n return pack('Nn', time(), mt_rand());\n }", "function getSystemTime()\n{\n $time = @gettimeofday();\n $resultTime = $time['sec'] * 1000;\n $resultTime += floor($time['usec'] / 1000);\n return $resultTime;\n}", "public function getTimestamp()\n {\n return (int) floor(microtime(true) / $this->keyRegeneration);\n }", "function FIFOToEpochTime($DateTime)\n{\n\tlist($Day, $Month, $Year, $Hour, $Minute, $Second)=sscanf($DateTime, \"%02d/%02d/%04d %02d:%02d:%02d\");\n\treturn(gmmktime($Hour, $Minute, $Second, $Month, $Day, $Year));\n}", "protected function createTokenTimestamp(): int\n {\n return time();\n }", "function getTimeS($timestamp){\n\t\tif ($timestamp > 60*60*24){\n\t\t\t$timestamp = $timestamp % (60*60*24) + 2*(60*60);\n\t\t}\n\t\t$hours = intval($timestamp / (60*60));\n\t\t$minutes = intval(($timestamp % (60*60)) / 60);\n\t\treturn sprintf('%02d', $hours).\":\".sprintf('%02d', $minutes); \n\t}", "function cata_ts2unixts($timestamp) {\n\tif (strlen($timestamp) == 14) {\n\t\t$year = intval(substr($timestamp, 0, 4));\n\t\t$month = intval(substr($timestamp, 4, 2));\n\t\t$day = intval(substr($timestamp, 6, 2));\n\t\t$hour = intval(substr($timestamp, 8, 2));\n\t\t$minute = intval(substr($timestamp, 10, 2));\n\t\t$second = intval(substr($timestamp, 12, 2));\n\n\t\treturn mktime($hour, $minute, $second, $month, $day, $year);\n\t} else {\n\t\treturn 0;\n\t}\n}", "public static function timestamp() {}", "abstract public function getTstamp();", "private function getTimestamp()\n {\n $originalTime = microtime(true);\n $micro = sprintf(\"%06d\", ($originalTime - floor($originalTime)) * 1000000);\n $date = new DateTime(date('Y-m-d H:i:s.'.$micro, $originalTime));\n\n return $date->format($this->config['dateFormat']);\n }", "protected function getTimeStamp() {\n return time().' ('.strftime( '%Y.%m.%d %H:%I:%S', time() ).')';\n }", "function __makeSolrTime($dateString) {\n\t\t$date = $this->time->format('Y-m-d', intval($this->time->fromString($dateString)));\n\t\t$date .= 'T';\n\t\t$date .= $this->time->format('H:i:s', intval($this->time->fromString($dateString)));\n\t\t$date .= 'Z';\n\t\treturn $date;\n\t}", "function TidyTimeStampJustTime($str)\n{\n\t$date=strtok($str, \"T\");\n\t$time=strtok(\"T\");\n\t$finalTime=substr($time,0,5);\n\treturn $finalTime;\n}", "function date_gmmktime( $hour=0, $min=0, $sec=0, $month=0, $day=0, $year=0 )\n\t{\n\t\t// Calculate UTC time offset\n\t\t$offset = date( 'Z' );\n\t\t\n\t\t// Generate server based timestamp\n\t\t$time = mktime( $hour, $min, $sec, $month, $day, $year );\n\t\t\n\t\t// Calculate DST on / off\n\t\t$dst = intval( date( 'I', $time ) - date( 'I' ) );\n\t\t\n\t\treturn $offset + ($dst * 3600) + $time;\n\t}", "private function makeSeed() {\r\n\t\t\tlist($usec, $sec) = explode(' ', microtime());\r\n\t\t\treturn (float) $sec + ((float) $usec * 100000);\r\n\t\t}", "public static function createFromTimestampUTC($timestamp)\n {\n [$integer, $decimal] = self::getIntegerAndDecimalParts($timestamp);\n $delta = floor($decimal / static::MICROSECONDS_PER_SECOND);\n $integer += $delta;\n $decimal -= $delta * static::MICROSECONDS_PER_SECOND;\n $decimal = str_pad((string) $decimal, 6, '0', STR_PAD_LEFT);\n\n return static::rawCreateFromFormat('U u', \"$integer $decimal\");\n }", "function timetots($timestamp){\n return mktime(substr($timestamp,11,2),substr($timestamp,14,2),substr($timestamp,17,2),substr($timestamp,5,2),substr($timestamp,8,2),substr($timestamp,0,4));\n}", "public abstract function fromUnixtime ($timestamp);", "public function timestampableOnPreUpdate()\n {\n return $this->fulfillUTCNow();\n }", "function timestamp2utime($string2format) {\n \t\treturn mktime(substr($string2format, 8,2), substr($string2format, 10, 2), substr($string2format, 12, 2), substr($string2format, 4,2), substr($string2format, 6, 2), substr($string2format, 0, 4));\n \t}", "protected function getUniversalTimestampField( $field, $length )\n {\n $localOffset = 0;\n $result = array();\n\n if ( $length >= self::EB_UT_MINLEN )\n {\n $f = unpack( \"cflags\", substr( $field, $localOffset, 1 ) );\n $length--; // Flag takes one byte.\n\n if ( ( $f[\"flags\"] & self::EB_UT_FL_MTIME ) && $length >= 4 )\n {\n $result = array_merge( $result, unpack( \"Vmtime\", substr( $field, $localOffset + self::EB_UT_MINLEN + ( self::EB_UT_FL_LEN * 0 ), self::EB_UT_FL_LEN ) ) );\n $length -= 4;\n }\n\n if ( $f[\"flags\"] & self::EB_UT_FL_ATIME && $length >= 4 )\n {\n $result = array_merge( $result, unpack( \"Vatime\", substr( $field, $localOffset + self::EB_UT_MINLEN + ( self::EB_UT_FL_LEN * 1 ), self::EB_UT_FL_LEN ) ) );\n $length -= 4;\n }\n\n if ( $f[\"flags\"] & self::EB_UT_FL_CTIME && $length >= 4 )\n {\n $result = array_merge( $result, unpack( \"Vctime\", substr( $field, $localOffset + self::EB_UT_MINLEN + ( self::EB_UT_FL_LEN * 2 ), self::EB_UT_FL_LEN ) ) );\n $length -= 4;\n }\n }\n\n return $result;\n }", "function MsTimestamp($TimeString = null)\n {\n if ($TimeString !== null)\n {\n $time = explode('+', $TimeString);\n $time = explode('.', $time[0]);\n $s = strtotime($time[0]);\n $ms = isset($time[1]) ? rtrim($time[1], '0') : '0';\n $mtime = ($ms != 0) ? ($s . '.' . $ms) : $s;\n }\n else\n {\n $time = explode(' ', microtime());\n $s = $time[1];\n $ms = rtrim($time[0], '0');\n $ms = preg_replace('/^0/', '', $ms);\n $mtime = $s . $ms;\n }\n return (float) $mtime;\n }", "function tstotime($timestamp){\n return date(\"Y-m-d H:i:s\", $timestamp);\n}", "protected function makeTimestamp($timestamp = null)\n {\n if (is_null($timestamp)) {\n return $this->getTimestamp();\n }\n\n return (int) $timestamp;\n }", "function getTimestamp()\n{\n $year = getVar('year');\n $month = getVar('mon');\n $day = getVar('day');\n $hour = getVar('hour');\n $min = getVar('min');\n\n if (isset($year) && isset($month) && isset($day) && isset($hour) && isset($min))\n return mktime($hour,$min,0,$month,$day,$year);\n else\n return time();\n}", "public function getPreciseTimestamp($precision = 6)\n {\n return round(((float) $this->rawFormat('Uu')) / pow(10, 6 - $precision));\n }", "function getTime10sec(){\n /** Setting the variable to override the Warning **/\n $modifiedLast2=0;\n\n /** Getting the epoch seconds **/\n $time = microtime(false);\n $time = explode(\" \", $time); \n $time = $time[1];\n \n\n /** Splitting the epoch removing the last 2 digits **/\n $epochLength = strlen($time);\n $last2=$epochLength-2;\n $allTime=substr($time,0,$last2);\n $last2 = substr($time,$last2);\n\n /** Checking the seconds to modify the last 2 digits **/\n if($last2>=0&&$last2<=10){\n $modifiedLast2=01;\n }elseif($last2>=11&&$last2<=20){\n $modifiedLast2=11;\n }elseif($last2>=21&&$last2<=30){\n $modifiedLast2=21;\n }elseif($last2>=31&&$last2<=40){\n $modifiedLast2=31;\n }elseif($last2>=41&&$last2<=50){\n $modifiedLast2=41;\n }elseif($last2>=51&&$last2<=60){\n $modifiedLast2=51;\n }elseif($last2>=61&&$last2<=70){\n $modifiedLast2=61;\n }elseif($last2>=71&&$last2<=80){\n $modifiedLast2=71;\n }elseif($last2>=81&&$last2<=90){\n $modifiedLast2=81;\n }elseif($last2>=91&&$last2<=100){\n $modifiedLast2=91;\n }\n\n /** Merging the original first part with the modified last 2 digits **/\n $modifiedTime=$allTime.$modifiedLast2;\n\n /** Returning the modified epoch **/\n return $modifiedTime;\n }", "function toS($t, $f = '%dh %dm') {\n if (intval($t) < 1) {\n\t\t\t\t return;\n\t\t\t }\n\t\t\t $h = floor($t/60);\n\t\t\t $m = $t%60;\n\t\t\t return sprintf($f, $h, $m);\n\t\t}", "function epochToDate($epoch,$format){\n /*\n @epoch = 1483228800;\n $format= Y,m,d,j,n,H,i,s\n */\n $dt = new DateTime(\"@$epoch\");\n $convert= $dt->format($format);\n return $convert;\n}", "public function generateSignTime()\n {\n return $this->sign_time = intval(microtime(true) * 1000);\n }", "private function calcStart($t)\n {\n $year = substr($t,0,4);\n $month = substr($t,5,2);\n $day = substr($t,8,2);\n $hour = substr($t,11,2);\n $min = substr($t,14,2);\n $sec = substr($t,17,2);\n // convert to seconds since the beginning of the Unix epoch\n $this->timeStart = mktime($hour,$min,$sec,$month,$day,$year);\n if ($this->dbg) \n echo (\"yr mo da hr mn sec: \". $year . \" \" . $month . \" \" . $day . \" \" . $hour . \" \" .\n $min . \" \" . $sec . \"<br/>\" .\n \"starttime: \" . $this->timeStart . \" <br/>\"); \n }", "function trenutnimjesec() {\n //DATE_RFC3339\n //return date(DATE_RFC3339);\n return date(\"F\");\n}", "function toUnix($local = false)\n\t{\n\t\t$date = null;\n\t\tif ($this->_date !== false) {\n\t\t\t$date = ($local) ? $this->_date + $this->_offset : $this->_date;\n\t\t}\n\t\treturn $date;\n\t}", "public function to64() {\n return sprintf(\"%010d%09d\", $this->sec, $this->nsec); }", "public function timestampableOnPrePersist()\n {\n return $this->fulfillUTCNow();\n }", "function ISO8601toLocale($tstamp='') {\n if($tstamp=='')\n return date('d/m/Y H:i:s');\n \n $a = $m = $d = $h = $n = $s = 0; \n $p = explode('T', str_replace(array(':','/',' ','Z'), array('','','',''), $tstamp));\n \n //Si tiene dos partes, es porque hay fecha y hora\n if(count($p)==2) {\n //Fecha\n if(strlen($p[0])==8) {\n $a = substr($p[0], 0, 4);\n $m = substr($p[0], 4, 2);\n $d = substr($p[0], 6, 2);\n }\n //Hora\n if(strlen($p[1])==6) {\n $h = substr($p[1], 0, 2);\n $n = substr($p[1], 2, 2);\n $s = substr($p[1], 4, 2);\n } \n //Time Zone (no le doy bola)\n return \"{$d}/{$m}/{$a} {$h}:{$n}:{$s}\";\n }\n elseif(count($p)==1)\n {\n //Tiene una sola parte, Solo Fecha\n if(strlen($p[0])==8) {\n $a = substr($p[0], 0, 4);\n $m = substr($p[0], 4, 2);\n $d = substr($p[0], 6, 2);\n }\n return \"{$d}/{$m}/{$a}\"; \n }\n\n return date('d/m/Y H:i:s');\n }", "function convertTime($number)\n{\n $str_arr = explode('.', $number);\n\n $num = ($str_arr[0]);\n //floatval\n $point = ($str_arr[1]);\n $count = strlen($str_arr[1]);\n\n if ($count == 1 && $point < 10) {\n $point = $point * 10;\n }\n\n while ($point >= 60) {\n $num = $num + 1;\n $point = $point - 60;\n }\n $t = floatval($num . \".\" . $point);\n\n return $t;\n}", "public static function createFromTimestampMsUTC($timestamp)\n {\n [$milliseconds, $microseconds] = self::getIntegerAndDecimalParts($timestamp, 3);\n $sign = $milliseconds < 0 || ($milliseconds === 0.0 && $microseconds < 0) ? -1 : 1;\n $milliseconds = abs($milliseconds);\n $microseconds = $sign * abs($microseconds) + static::MICROSECONDS_PER_MILLISECOND * ($milliseconds % static::MILLISECONDS_PER_SECOND);\n $seconds = $sign * floor($milliseconds / static::MILLISECONDS_PER_SECOND);\n $delta = floor($microseconds / static::MICROSECONDS_PER_SECOND);\n $seconds += $delta;\n $microseconds -= $delta * static::MICROSECONDS_PER_SECOND;\n $microseconds = str_pad($microseconds, 6, '0', STR_PAD_LEFT);\n\n return static::rawCreateFromFormat('U u', \"$seconds $microseconds\");\n }", "protected function convert_time_stamp($timestamp) {\n return $timestamp ? gmdate('Y-m-d h:i:s a', $timestamp) : null;\n }", "public function freshTimestampString()\n {\n if(!is_null($this->dateFormat)){\n return date($this->dateFormat);\n }\n return time();\n }", "function sys_time($timestamp)\n\t{\n\t\treturn call_user_func_array('gmmktime', explode(', ', date('H, i, s, m, d, Y', $timestamp - intval($this->timeshift()))));\n\t}", "function timestamp_from_mysql($timestamp)\n{\n\tereg (\"([0-9]{2,4})[^0-9]([0-9]{1,2})[^0-9]([0-9]{1,2})\", $timestamp, $regs);\n\tereg (\"([0-9]{2,4})[^0-9]([0-9]{1,2})[^0-9]([0-9]{1,2})[^0-9]([0-9]{1,2})[^0-9]([0-9]{1,2})[^0-9]([0-9]{1,2})\", $timestamp, $regs);\n\n\tif (sizeof($regs)>1)\n\t{\n\t\tif (sizeof($regs)>4)\n\t\t{\n\t\t\t$date=mktime($regs[4],$regs[5],$regs[6],$regs[2],$regs[3],$regs[1]);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$date=mktime(0,0,0,$regs[2],$regs[3],$regs[1]);\n\t\t}\n\t}\n\telse\n\t{\n\t\t$date=0;\n\t}\n\treturn $date;\n}", "static function ToTimestamp($Year,$Month=null,$Day=null,$Hour=0,$Minute=0,$Second=0)\n\t{\n\t\tif ($Month===null)\n\t\t{\n\t\t\t$temp=explode(\" \",$Year);\n\t\t\t$Date=$temp[0];\n\t\t\t$Time=$temp[1];\n\t\t\t$temp=explode(\"-\",$Date);\n\t\t\t$Year=$temp[0];\n\t\t\t$Month=$temp[1];\n\t\t\t$Day=$temp[2];\n\t\t\t$temp=explode(\":\",$Time);\n\t\t\t$Hour=$temp[0];\n\t\t\t$Minute=$temp[1];\n\t\t\t$Second=$temp[2];\n\t\t}\n\t\t$arr=self::JalaliToGregorian($Year, $Month, $Day);\n\t\t$DateTimestamp=strtotime(implode(\"-\",$arr));\n\t\t#FIXME:\n\t\t$TimeDef=0;\n\t\tif ($Hour!=0)\n\t\t\t$TimeDef=77400+1800;\n\t\tif ($Minute!=0)\n\t\t\t$TimeDef=77400;\n\t\t$TimeTimestamp=$Hour*3600+$Minute*60+$Second;\n\t\treturn $DateTimestamp+$TimeTimestamp+$TimeDef;\n\t}", "function dateToTimestamp($date){\n\t$dia=substr($date,0,2);\n\t$mes=substr($date,3,2);\n\t$ano=substr($date, 6,4);\t\n\t\n\t$timestamp= mktime(0,0,0,$mes,$dia,$ano);\n\treturn $timestamp;\n }", "public function convertMysqlToJSTimestamp($mysqlTimestamp){\n return strtotime($mysqlTimestamp)*1000;\n }", "function date2Timestamp($date) {\r\n //2003-04-12 00:05:43\r\n if ($date == null) {\r\n return 0;\r\n }\r\n list($y, $mth, $d, $h, $min, $sec) = sscanf($date,\"%d-%d-%d %d:%d:%d\");\r\n return mktime ( $h, $min, $sec, $mth, $d, $y);\r\n}" ]
[ "0.6085125", "0.58772945", "0.58100253", "0.57911015", "0.5787428", "0.57371783", "0.57327425", "0.569923", "0.5645306", "0.5623086", "0.56119394", "0.5470717", "0.54625267", "0.54515576", "0.5448611", "0.54142153", "0.5405396", "0.53397876", "0.5324069", "0.53013325", "0.52871823", "0.528334", "0.5280833", "0.525069", "0.5243206", "0.5214645", "0.52072644", "0.5202398", "0.51928085", "0.5180881", "0.5154216", "0.5137684", "0.512361", "0.51221305", "0.5121702", "0.50995445", "0.5071451", "0.50538266", "0.5052634", "0.50428134", "0.5041087", "0.5014819", "0.50110596", "0.5000927", "0.49996483", "0.49985713", "0.49893177", "0.4987429", "0.49798587", "0.497754", "0.4977178", "0.49753308", "0.49537107", "0.49452746", "0.49438488", "0.49361277", "0.49057513", "0.49016497", "0.48947495", "0.48925036", "0.48890695", "0.4879157", "0.48758942", "0.487059", "0.4863852", "0.4862504", "0.4858923", "0.4857964", "0.48462442", "0.4844261", "0.4838253", "0.48370826", "0.4810945", "0.47902897", "0.47846028", "0.47771585", "0.47671473", "0.47660062", "0.47621742", "0.47597325", "0.47570556", "0.47554", "0.47530016", "0.47508258", "0.47484696", "0.4740631", "0.47293013", "0.4729265", "0.47204906", "0.47188872", "0.47185463", "0.47144192", "0.47141957", "0.47065762", "0.46992904", "0.46939814", "0.46876663", "0.46820363", "0.46788695", "0.46784058" ]
0.55583954
11
Calculates a 32bit integer
protected function _getInteger($input) { $f1 = str_pad(ord($input[0]), 2, '0', STR_PAD_LEFT); $f1 .= str_pad(ord($input[1]), 2, '0', STR_PAD_LEFT); $f1 .= str_pad(ord($input[2]), 2, '0', STR_PAD_LEFT); $f1 .= str_pad(ord($input[3]), 2, '0', STR_PAD_LEFT); return (int) $f1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function readInt32();", "public function readInt32BE();", "public static function ensure32BitInteger($value) {}", "public function readInt32LE();", "public function readint32()\n {\n }", "public static function leftShift32($x, $y) {\n $n = $x << $y;\n if (PHP_INT_MAX != 0x80000000) {\n $n = -(~($n & 0x00000000FFFFFFFF) + 1);\n } return (int)$n;\n }", "public function consumeInt32()\n {\n $s = $this->consume(4);\n list(, $ret) = unpack(\"l\", self::$isLittleEndian ? self::swapEndian32($s) : $s);\n return $ret;\n }", "public function crc32(): int\n {\n return crc32($this->string);\n }", "public static function mask32($a) {\n if (PHP_INT_MAX != 0x0000000080000000) { # 2147483647\n $a = -(~($a & 0x00000000FFFFFFFF) + 1);\n } return (int)$a;\n }", "public static function toInteger(IInt32\\Type $x) : IInteger\\Type {\n\t\t\treturn IInteger\\Type::make($x->unbox());\n\t\t}", "function _Make64 ( $hi, $lo )\n{\n\n // on x64, we can just use int\n if ( ((int)4294967296)!=0 )\n return (((int)$hi)<<32) + ((int)$lo);\n\n // workaround signed/unsigned braindamage on x32\n $hi = sprintf ( \"%u\", $hi );\n $lo = sprintf ( \"%u\", $lo );\n\n // use GMP or bcmath if possible\n if ( function_exists(\"gmp_mul\") )\n return gmp_strval ( gmp_add ( gmp_mul ( $hi, \"4294967296\" ), $lo ) );\n\n if ( function_exists(\"bcmul\") )\n return bcadd ( bcmul ( $hi, \"4294967296\" ), $lo );\n\n // compute everything manually\n $a = substr ( $hi, 0, -5 );\n $b = substr ( $hi, -5 );\n $ac = $a*42949; // hope that float precision is enough\n $bd = $b*67296;\n $adbc = $a*67296+$b*42949;\n $r4 = substr ( $bd, -5 ) + + substr ( $lo, -5 );\n $r3 = substr ( $bd, 0, -5 ) + substr ( $adbc, -5 ) + substr ( $lo, 0, -5 );\n $r2 = substr ( $adbc, 0, -5 ) + substr ( $ac, -5 );\n $r1 = substr ( $ac, 0, -5 );\n while ( $r4>100000 ) { $r4-=100000; $r3++; }\n while ( $r3>100000 ) { $r3-=100000; $r2++; }\n while ( $r2>100000 ) { $r2-=100000; $r1++; }\n\n $r = sprintf ( \"%d%05d%05d%05d\", $r1, $r2, $r3, $r4 );\n $l = strlen($r);\n $i = 0;\n while ( $r[$i]==\"0\" && $i<$l-1 )\n $i++;\n return substr ( $r, $i ); \n}", "function snmp_dewrap32bit($value)\n{\n if (is_numeric($value) && $value < 0)\n {\n return ($value + 4294967296);\n } else {\n return $value;\n }\n}", "public function readUInt32BE();", "public function randInt32() {\n return $this->_rng->int32();\n }", "public function getInt32Field()\n {\n $value = $this->get(self::INT32_FIELD);\n return $value === null ? (integer)$value : $value;\n }", "static public function MBUInt32ToInt($in, &$pos)\n {\n $val = 0;\n\n do {\n $b = ord($in[$pos++]);\n $val <<= 7; // Bitshift left 7 bits.\n $val += ($b & 127);\n } while (($b & 128) != 0);\n\n return $val;\n }", "protected final function _decodeSynchsafe32($val)\n {\n return ($val & 0x7f) | ($val & 0x7f00) >> 1 |\n ($val & 0x7f0000) >> 2 | ($val & 0x7f000000) >> 3;\n }", "function bin2int($value)\n\t{\n\t\t$x = 1;\n\t\t$tmp = 0;\n\t\tfor ($i = 0; $i < strlen($value);$i++)\n\t\t{\n\t\t\t$tmp = $tmp + ($x * ord($value{$i}));\n\t\t\t$x = $x *256;\n\t\t\n\t\t}\n\t\treturn($tmp);\n\t}", "static public function intToMBUInt32(&$out, $i)\n {\n if ($i > 268435455) {\n $bytes0 = 0 | Horde_Xml_Wbxml::getBits(0, $i);\n $bytes1 = 128 | Horde_Xml_Wbxml::getBits(1, $i);\n $bytes2 = 128 | Horde_Xml_Wbxml::getBits(2, $i);\n $bytes3 = 128 | Horde_Xml_Wbxml::getBits(3, $i);\n $bytes4 = 128 | Horde_Xml_Wbxml::getBits(4, $i);\n\n $out .= chr($bytes4) . chr($bytes3) . chr($bytes2) . chr($bytes1) . chr($bytes0);\n } elseif ($i > 2097151) {\n $bytes0 = 0 | Horde_Xml_Wbxml::getBits(0, $i);\n $bytes1 = 128 | Horde_Xml_Wbxml::getBits(1, $i);\n $bytes2 = 128 | Horde_Xml_Wbxml::getBits(2, $i);\n $bytes3 = 128 | Horde_Xml_Wbxml::getBits(3, $i);\n\n $out .= chr($bytes3) . chr($bytes2) . chr($bytes1) . chr($bytes0);\n } elseif ($i > 16383) {\n $bytes0 = 0 | Horde_Xml_Wbxml::getBits(0, $i);\n $bytes1 = 128 | Horde_Xml_Wbxml::getBits(1, $i);\n $bytes2 = 128 | Horde_Xml_Wbxml::getBits(2, $i);\n\n $out .= chr($bytes2) . chr($bytes1) . chr($bytes0);\n } elseif ($i > 127) {\n $bytes0 = 0 | Horde_Xml_Wbxml::getBits(0, $i);\n $bytes1 = 128 | Horde_Xml_Wbxml::getBits(1, $i);\n\n $out .= chr($bytes1) . chr($bytes0);\n } else {\n $bytes0 = 0 | Horde_Xml_Wbxml::getBits(0, $i);\n\n $out .= chr($bytes0);\n }\n }", "public function writeInt32($num){ }", "function packSI32($number)\n\t{\t\n\t\tarray_push($this->FMDebug, \"packSI32\");\n\n\t if (!(is_numeric($number))) {\n\n \t $this->FMError(\"packUI32 argument not a number\");\n \t}\n\t\t$lower_limit = -2147483647;\n\t\t$upper_limit = 2147483647;\n\n\t\tif ($number < $lower_limit) {\n\n\t\t\t$number = $lower_limit;\n\t\t}\n\n\t\tif ($number > $upper_limit) {\n\n\t\t\t$number = $upper_limit;\n\t\t}\n\n\t\tif ($number < 0) {\n\n\t\t\t$number = $upper_limit + 1 + abs($number);\n\t\t}\n\n\t\t$number = sprintf(\"%08x\", $number);\n\n\t\t$low_byte_low_word = base_convert(substr($number, 6, 2), 16, 10);\n\t\t$high_byte_low_word = base_convert(substr($number, 4, 2), 16, 10); \n\n\t\t$low_byte_high_word = base_convert(substr($number, 2, 2), 16, 10);\n\t\t$high_byte_high_word = base_convert(substr($number, 0, 2), 16, 10);\n\n\t\t$atom = chr($low_byte_low_word) . chr($high_byte_low_word);\n\t\t$atom .= chr($low_byte_high_word) . chr($high_byte_high_word);\n\n\t\tarray_pop($this->FMDebug);\n\n \treturn $atom;\n\t}", "public function readUInt32LE();", "public static function toInt32(IInt32\\Type $x) : IInt32\\Type {\n\t\t\treturn $x;\n\t\t}", "static function packInt64($x) {\n if (PHP_INT_SIZE == 8) {\n if (version_compare(PHP_VERSION, '5.6.3', '>=')) {\n return pack('J', $x);\n } else {\n return pack('NN', ($x & 0xFFFFFFFF00000000) >> 32, $x & ($x & 0x00000000FFFFFFFF)); \n }\n } else {\n // 32-bit system\n return \"\\x00\\x00\\x00\\x00\" . pack('N', $x);\n }\n }", "function int_to_dword($n)\r\n\t{\r\n\t\treturn chr($n & 255).chr(($n >> 8) & 255).chr(($n >> 16) & 255).chr(($n >> 24) & 255);\r\n\t}", "public static function bigint() {}", "protected final function _encodeSynchsafe32($val)\n {\n return ($val & 0x7f) | ($val & 0x3f80) << 1 |\n ($val & 0x1fc000) << 2 | ($val & 0xfe00000) << 3;\n }", "protected function getNumericSalt()\n\t\t{\n\t\t\t$val = 1;\n\t\t\t$max = 2147483647; // a quite big prime number :-)\n\t\t\t$l = strlen($this->key);\n\t\t\tfor($i = 0; $i < $l; $i++)\n\t\t\t{\n\t\t\t\t$val *= ord($this->key[$i]+1);\n\t\t\t\t$val = $val % $max + 1;\n\t\t\t}\n\t\t\treturn $val;\n\t\t}", "function bigendian_int($str){\n\t$bits = array_map(\"intval\",str_split($str,1));\n\t$v = 0;\n\t$x = 0;\n\tfor($i = strlen($str) - 1; $i >= 0; --$i){\n\t\t$v += pow(2, $i) * $bits[$x];\n\t\t++$x;\n\t}\n\treturn $v;\n\n}", "function packUI32($number)\n\t{\t\n\t\tarray_push($this->FMDebug, \"packUI32\");\n\n\t if (!(is_integer($number))) {\n\n \t $this->FMError(\"packUI32 argument not an integer\");\n \t}\n\n\t\t$lower_limit = 0;\n\t\t$upper_limit = 2147483647; \t# the real limit is 4294967295\n\t\t\t\t\t\t# but PHP 4 cannot handle such\n\t\t\t\t\t\t# large unsigned integers \n\n\t if ($number < $lower_limit) {\n\n\t\t\t$number = $lower_limit;\n\t\t}\n\n\t\tif ($number > $upper_limit) {\n\n\t\t\t$number = $upper_limit;\n \t}\n\n\t\t$number = sprintf(\"%08x\", $number);\n\n\t\t$low_byte_low_word = base_convert(substr($number, 6, 2), 16, 10);\n\t\t$high_byte_low_word = base_convert(substr($number, 4, 2), 16, 10); \n\n\t\t$low_byte_high_word = base_convert(substr($number, 2, 2), 16, 10);\n\t\t$high_byte_high_word = base_convert(substr($number, 0, 2), 16, 10);\n\n\t\t$atom = chr($low_byte_low_word) . chr($high_byte_low_word);\n\t\t$atom .= chr($low_byte_high_word) . chr($high_byte_high_word);\n\n\t\tarray_pop($this->FMDebug);\n\n \treturn $atom;\n\t}", "public static function multiply(IInt32\\Type $x, IInt32\\Type $y) : IInt32\\Type {\n\t\t\treturn IInt32\\Type::box($x->unbox() * $y->unbox());\n\t\t}", "function _fourbytes2int_le($s) {\n\treturn (ord($s[3])<<24) + (ord($s[2])<<16) + (ord($s[1])<<8) + ord($s[0]);\n}", "public static function divide(IInt32\\Type $x, IInt32\\Type $y) : IInt32\\Type {\n\t\t\treturn IInt32\\Type::box(intdiv($x->unbox(), $y->unbox()));\n\t\t}", "private function readInt32L($file_type)\n {\n return current(unpack('V', $this->readData($file_type, 4)));\n }", "private function leftShift32($number, $steps) {\n\t\t// convert to binary (string)\n\t\t$binary = decbin($number);\n\t\t// left-pad with 0's if necessary\n\t\t$binary = str_pad($binary, 32, \"0\", STR_PAD_LEFT);\n\t\t// left shift manually\n\t\t$binary = $binary.str_repeat(\"0\", $steps);\n\t\t// get the last 32 bits\n\t\t$binary = substr($binary, strlen($binary) - 32);\n\t\t// if it's a positive number return it\n\t\t// otherwise return the 2's complement\n\t\treturn ($binary{0} == \"0\" ? bindec($binary) :\n\t\t-(pow(2, 31) - bindec(substr($binary, 1))));\n\t}", "public function readInteger()\n {\n $count = 1;\n $intReference = $this->_stream->readByte();\n $result = 0;\n while ((($intReference & 0x80) != 0) && $count < 4) {\n $result <<= 7;\n $result |= ($intReference & 0x7f);\n $intReference = $this->_stream->readByte();\n $count++;\n }\n if ($count < 4) {\n $result <<= 7;\n $result |= $intReference;\n } else {\n // Use all 8 bits from the 4th byte\n $result <<= 8;\n $result |= $intReference;\n\n // Check if the integer should be negative\n if (($result & 0x10000000) != 0) {\n //and extend the sign bit\n $result |= ~0xFFFFFFF;\n }\n }\n return $result;\n }", "public static function modulo(IInt32\\Type $x, IInt32\\Type $y) : IInt32\\Type {\n\t\t\treturn IInt32\\Type::box($x->unbox() % $y->unbox());\n\t\t}", "public function consumeInt64()\n {\n $s = $this->consume(8);\n if (self::$native64BitPack) {\n list(, $ret) = unpack(\"q\", self::$isLittleEndian ? self::swapEndian64($s) : $s);\n } else {\n $d = unpack(\"Lh/Ll\", self::$isLittleEndian ? self::swapHalvedEndian64($s) : $s);\n $ret = $d[\"h\"] << 32 | $d[\"l\"];\n }\n return $ret;\n }", "function string_to_int($str){\n\t\treturn sprintf(\"%u\",crc32($str));\n\t}", "public function getSint32Field()\n {\n $value = $this->get(self::SINT32_FIELD);\n return $value === null ? (integer)$value : $value;\n }", "public function getUint32Field()\n {\n $value = $this->get(self::UINT32_FIELD);\n return $value === null ? (integer)$value : $value;\n }", "function readInt8() {\n $strInt = $this->read(8);\n \n if(\\PHP_INT_SIZE > 4) {\n return \\unpack('P', $strInt)[1];\n }\n \n if(static::$gmp) {\n $result = \\gmp_import($strInt, 1, (\\GMP_LSW_FIRST | \\GMP_LITTLE_ENDIAN));\n if($result === false) {\n throw new \\RuntimeException('Unable to convert input into an integer');\n }\n \n if(\\gmp_cmp($result, '9223372036854775808') !== -1) {\n $result = \\gmp_sub($result, '18446744073709551616'); // $result -= (1 << 64)\n }\n \n $result = \\gmp_strval($result);\n } else {\n $result = \\bcadd('0', \\unpack('n', \\substr($strInt, 0, 2))[1]);\n $result = \\bcmul($result, '65536');\n $result = \\bcadd($result, \\unpack('n', \\substr($strInt, 2, 2))[1]);\n $result = \\bcmul($result, '65536');\n $result = \\bcadd($result, \\unpack('n', \\substr($strInt, 4, 2))[1]);\n $result = \\bcmul($result, '65536');\n $result = \\bcadd($result, \\unpack('n', \\substr($strInt, 6, 2))[1]);\n \n // 9223372036854775808 is equal to (1 << 63)\n if(\\bccomp($result, '9223372036854775808') !== -1) {\n $result = \\bcsub($result, '18446744073709551616'); // $result -= (1 << 64)\n }\n }\n \n return $result;\n }", "public function getSfixed32Field()\n {\n $value = $this->get(self::SFIXED32_FIELD);\n return $value === null ? (integer)$value : $value;\n }", "function _freadint($f)\n\t\t{\n\t\t\t$i=ord(fread($f,1))<<24;\n\t\t\t$i+=ord(fread($f,1))<<16;\n\t\t\t$i+=ord(fread($f,1))<<8;\n\t\t\t$i+=ord(fread($f,1));\n\t\t\treturn $i;\n\t\t}", "public static function formatToInt32($int, $byteOrder = self::BYTE_ORDER_BIG_ENDIAN) {}", "function readUInt32() {\n $tmp = unpack(\"V\", $this->read(4));\n return $tmp[1];\n }", "public function getFixed32Field()\n {\n $value = $this->get(self::FIXED32_FIELD);\n return $value === null ? (integer)$value : $value;\n }", "public static function increment(IInt32\\Type $x) : IInt32\\Type {\n\t\t\treturn IInt32\\Module::add($x, IInt32\\Type::one());\n\t\t}", "public static function add(IInt32\\Type $x, IInt32\\Type $y) : IInt32\\Type {\n\t\t\treturn IInt32\\Type::box($x->unbox() + $y->unbox());\n\t\t}", "function test32($a, $b) {\n\n}", "private function getChecksum(): int\n {\n $this->generateChecksum(true);\n return ((($this->base) - ($this->luhnValue % $this->base)) % $this->base);\n }", "public function appendInt32($value)\n {\n $s = pack(\"l\", $value);\n return $this->append(self::$isLittleEndian ? self::swapEndian32($s) : $s);\n }", "function num1BitsSecondSolution($number)\n{\n if ($number <= 0) {\n return 0;\n }\n\n for ($c = 0; $number; $number >>= 1) {\n $c += $number & 1;\n }\n\n return $c;\n}", "function gmp_intval($gmpnumber)\n{\n}", "function fn_crc32($key)\n{\n\treturn sprintf('%u', crc32($key));\n}", "public function get_decimal32() {\n return pn_data_get_decimal32($this->impl);\n }", "Function decbin32 ($dec) {\n return str_pad(decbin($dec), 32, '0', STR_PAD_LEFT);\n}", "function gen_subnet_mask_long($bits) {\n\t$sm = 0;\n\tfor ($i = 0; $i < $bits; $i++) {\n\t\t$sm >>= 1;\n\t\t$sm |= 0x80000000;\n\t}\n\treturn $sm;\n}", "public static function signum(IInt32\\Type $x) : ITrit\\Type {\n\t\t\treturn ITrit\\Type::make($x->unbox());\n\t\t}", "public static function pow(IInt32\\Type $x, IInt32\\Type $exponent) : IInt32\\Type {\n\t\t\treturn IInt32\\Type::box(pow($x->unbox(), $exponent->unbox()));\n\t\t}", "function conv($t) {\n$t*=1.8;\n$t+=32;\nreturn($t);}", "function _twobytes2int_le($s) {\n\treturn (ord(substr($s, 1, 1))<<8) + ord(substr($s, 0, 1));\n}", "function calc_integ($str)\r\n\t{\r\n\treturn (int)$str;\r\n\t}", "private function readInt() {\n $unsigned = $this->unpack(\"N\", 4);\n return unpack(\"l\", pack(\"l\", $unsigned))[1];\n }", "function read_uint32(&$payload) {\n $uint32 = \\unpack('N', $payload)[1];\n $payload = \\substr($payload, 4);\n\n return $uint32;\n}", "static function ip__mask__long_to_number($long_mask)\n\t{\n\t\t$num_mask = strpos((string)decbin($long_mask), '0');\n\t\treturn $num_mask === false ? 32 : $num_mask;\n\t}", "private static function oneDigitCalculate(int $a, int $b) : int\n {\n return ($a + $b) % self::SINGLE_MODULO;\n }", "public function testSLongLittle()\n {\n $this->markTestIncomplete('Does not work on 64bit systems!');\n $o = PelConvert::LITTLE_ENDIAN;\n\n /*\n * The easiest way to calculate the numbers to compare with, is to\n * let PHP do the arithmetic for us. When using the bit-wise\n * operators PHP will return a proper signed 32 bit integer.\n */\n\n $this->assertEquals(PelConvert::bytesToSLong($this->bytes, 0, $o), 0x00 << 24 | 0x00 << 16 | 0x00 << 8 | 0x00);\n $this->assertEquals(PelConvert::bytesToSLong($this->bytes, 1, $o), 0x01 << 24 | 0x00 << 16 | 0x00 << 8 | 0x00);\n $this->assertEquals(PelConvert::bytesToSLong($this->bytes, 2, $o), 0x23 << 24 | 0x01 << 16 | 0x00 << 8 | 0x00);\n $this->assertEquals(PelConvert::bytesToSLong($this->bytes, 3, $o), 0x45 << 24 | 0x23 << 16 | 0x01 << 8 | 0x00);\n $this->assertEquals(PelConvert::bytesToSLong($this->bytes, 4, $o), 0x67 << 24 | 0x45 << 16 | 0x23 << 8 | 0x01);\n $this->assertEquals(PelConvert::bytesToSLong($this->bytes, 5, $o), 0x89 << 24 | 0x67 << 16 | 0x45 << 8 | 0x23);\n $this->assertEquals(PelConvert::bytesToSLong($this->bytes, 6, $o), 0xAB << 24 | 0x89 << 16 | 0x67 << 8 | 0x45);\n $this->assertEquals(PelConvert::bytesToSLong($this->bytes, 7, $o), 0xCD << 24 | 0xAB << 16 | 0x89 << 8 | 0x67);\n $this->assertEquals(PelConvert::bytesToSLong($this->bytes, 8, $o), 0xEF << 24 | 0xCD << 16 | 0xAB << 8 | 0x89);\n $this->assertEquals(PelConvert::bytesToSLong($this->bytes, 9, $o), 0xFF << 24 | 0xEF << 16 | 0xCD << 8 | 0xAB);\n $this->assertEquals(PelConvert::bytesToSLong($this->bytes, 10, $o), 0xFF << 24 | 0xFF << 16 | 0xEF << 8 | 0xCD);\n $this->assertEquals(PelConvert::bytesToSLong($this->bytes, 11, $o), 0xFF << 24 | 0xFF << 16 | 0xFF << 8 | 0xEF);\n $this->assertEquals(PelConvert::bytesToSLong($this->bytes, 12, $o), 0xFF << 24 | 0xFF << 16 | 0xFF << 8 | 0xFF);\n }", "public static function subtract(IInt32\\Type $x, IInt32\\Type $y) : IInt32\\Type {\n\t\t\treturn IInt32\\Type::box($x->unbox() - $y->unbox());\n\t\t}", "function long2base32($long, $pad=0)\r\n{\r\n global $base_charset;\r\n\r\n $num = floatval($long);\r\n if ($num < 1) return $base_charset[32][0];\r\n if (empty($pad)) $pad = 1;\r\n\r\n $s_out = '';\r\n while ($num >= 1) {\r\n $n32 = intval($num % 32);\r\n $num = floor(($num - $n32) / 32);\r\n $s_out = $base_charset[32][$n32].$s_out;\r\n }\r\n while (strlen($s_out)<$pad) $s_out = $base_charset[32][0].$s_out;\r\n\r\n return $s_out;\r\n}", "public function readUInt32();", "public static function abs(IInt32\\Type $x) : IInt32\\Type {\n\t\t\treturn IInt32\\Type::box(abs($x->unbox()));\n\t\t}", "function digits_to_int($a, $b, $c, $d) {\n\treturn (intval($a) << 24) + (intval($b) << 16) + (intval($c) << 8) + intval($d);\n}", "private function overflowProtection($hash): int\n {\n return $hash & 0xffffffff;\n }", "function armstrong_number(int $num){\n $temp = $num; // store the number in a temporary variable\n $result = 0; // variable to store the result\n\n // loop till the the temporary variable is not equal to zero\n while($temp != 0){\n $remainder = $temp%10; // get the remainder of temp variable divided by 10\n $result = $result + $remainder*$remainder*$remainder; // add the result with cube of the remainder\n\n $temp = $temp/10; // change the temp variable by dividing it by 10\n }\n\n return $result; // return result\n }", "public static function formatToUInt32($int, $byteOrder = self::BYTE_ORDER_BIG_ENDIAN) {}", "private function longCalc($b1, $b2, $b3, $b4, $mode = 0)\n {\n $b1 = hexdec(bin2hex($b1));\n $b2 = hexdec(bin2hex($b2));\n $b3 = hexdec(bin2hex($b3));\n $b4 = hexdec(bin2hex($b4));\n if (!$mode) {\n return ($b1 + ($b2 * 256) + ($b3 * 65536) + ($b4 * 16777216));\n } else {\n return ($b4 + ($b3 * 256) + ($b2 * 65536) + ($b1 * 16777216));\n }\n }", "public function getBits(): int;", "private function readInt32B($file_type)\n {\n return current(unpack('N', $this->readData($file_type, 4)));\n }", "public function getInt32PackedFieldCount()\n {\n return $this->count(self::INT32_PACKED_FIELD);\n }", "public function consumeUint32()\n {\n list(, $ret) = unpack(\"N\", $this->buffer);\n $this->discard(4);\n return $ret;\n }", "function pack_p($value) {\n $first_half = pack('V', $value & 0xffffffff);\n $second_half = pack('V', ($value >> 32) & 0xffffffff);\n\n return $first_half . $second_half;\n}", "function num1BitsFirstSolution($number)\n{\n if ($number <= 0) {\n return 0;\n }\n\n $countOf1 = 0;\n\n do {\n\n if ($number & 1) {\n ++$countOf1;\n }\n\n } while ($number = $number >> 1);\n\n return $countOf1;\n}", "function uint32ToHex($val) {\n\t\treturn substr(dechex(4294967296 + $val), 1);\n\t}", "public function readInt32($offset = 0)\n {\n $s = $this->read(4, $offset);\n list(, $ret) = unpack(\"l\", self::$isLittleEndian ? self::swapEndian32($s) : $s);\n return $ret;\n }", "function IUSHR($l, $r) {\n\t$v = ($l >> $r) & ((1 << (32 - $r)) - 1);\n\t//printf(\"%032b, %d\\n\", $v, $r);\n\t//exit;\n\treturn $v;\n}", "static function maxint() {\n /* assumes largest integer is of form 2^n - 1 */\n $to_test = pow(2, 16);\n while (1) {\n $last = $to_test;\n $to_test = 2 * $to_test;\n if (($to_test < $last) || (!is_int($to_test))) {\n return($last + ($last - 1));\n }\n }\n }", "public static function factorial(IInt32\\Type $n) : IInt32\\Type {\n\t\t\treturn (IInt32\\Module::eq($n, IInt32\\Type::zero())->unbox())\n\t\t\t\t? IInt32\\Type::one()\n\t\t\t\t: IInt32\\Module::multiply($n, IInt32\\Module::factorial(IInt32\\Module::decrement($n)));\n\t\t}", "function flippingBits($n)\n{\n return $n ^ 0xFFFFFFFF;\n}", "public static function ipToInt($ip_str) {\n $octets = array_map(function ($oc) {\n return (int) $oc;\n }, explode('.', $ip_str));\n\n return ($octets[0] * pow(256, 3)) +\n ($octets[1] * pow(256, 2)) +\n ($octets[2] * pow(256, 1)) +\n ($octets[3] * pow(256, 0));\n }", "public function readInt32($pos = null, $byteOrder = self::BYTE_ORDER_BIG_ENDIAN) {}", "function swfRead_u32($data, &$offset) {\n return ord($data[$offset++]) + ord($data[$offset++]) * 0x100 +\n ord($data[$offset++]) * 0x10000 + ord($data[$offset++]) * 0x1000000;\n}", "public static function hash(string $key): int\n {\n return (int)sprintf(\"%u\", crc32($key));\n }", "private static function readWord32($handle) {\n\t\treturn self::readUnpacked($handle, 'N', 4);\n\t}", "function INT($d) {\n\treturn Math.floor($d);\n}", "function myip2long_r($a) {\r\n $inet = 0.0;\r\n $t = explode(\".\", $a);\r\n for ($i = 3; $i >= 0; $i --) {\r\n $inet *= 256.0;\r\n $inet += $t[$i];\r\n };\r\n return $inet;\r\n}", "public function setInt32Field($value)\n {\n return $this->set(self::INT32_FIELD, $value);\n }", "function _binxor($l, $r)\n {\n $x = (($l < 0) ? (float)($l + 4294967296) : (float)$l)\n ^ (($r < 0) ? (float)($r + 4294967296) : (float)$r);\n\n return (float)(($x < 0) ? $x + 4294967296 : $x);\n }", "public static function gcd(IInt32\\Type $x, IInt32\\Type $y) : IInt32\\Type {\n\t\t\treturn ($y->unbox() == 0) ? $x : IInt32\\Module::gcd($y, IInt32\\Module::modulo($x, $y));\n\t\t}", "public function fixed32($value)\n {\n $bytes = pack('V*', $value);\n $this->write($bytes, 4);\n }" ]
[ "0.7110657", "0.7068352", "0.7035827", "0.69848", "0.6762521", "0.6598079", "0.64923847", "0.6272463", "0.6222314", "0.62197214", "0.6207232", "0.61996377", "0.61845964", "0.6182601", "0.61582", "0.6127828", "0.60968435", "0.60704803", "0.60428655", "0.60336745", "0.6026072", "0.5991126", "0.59819484", "0.5918907", "0.5911713", "0.5904826", "0.5883934", "0.58580035", "0.5834339", "0.5810426", "0.58021045", "0.58009034", "0.57996726", "0.5771058", "0.57623523", "0.575997", "0.5757521", "0.57515675", "0.5739365", "0.5712892", "0.5711384", "0.570913", "0.57043713", "0.568631", "0.5683515", "0.567652", "0.5675665", "0.56659514", "0.5646733", "0.56196016", "0.56106365", "0.5608482", "0.5606202", "0.55988777", "0.5597381", "0.55775744", "0.5577289", "0.5576813", "0.5553791", "0.55508715", "0.55381274", "0.55305153", "0.5489133", "0.54582876", "0.54498154", "0.5438009", "0.54199153", "0.54153615", "0.54128987", "0.53989434", "0.53908384", "0.538972", "0.53874165", "0.538578", "0.5385128", "0.5373443", "0.536223", "0.5359384", "0.5354688", "0.53463936", "0.53443414", "0.5335329", "0.5331818", "0.5327876", "0.5327814", "0.5324752", "0.5314171", "0.53056395", "0.53032506", "0.53001946", "0.52947617", "0.5287974", "0.5283931", "0.5268611", "0.526257", "0.5259662", "0.52534425", "0.525148", "0.5242821", "0.52073455" ]
0.52622384
95
Calculates a 32bit signed fixed point number
protected function _getFloat($input) { $f1 = str_pad(ord($input[0]), 2, '0', STR_PAD_LEFT); $f1 .= str_pad(ord($input[1]), 2, '0', STR_PAD_LEFT); $f1 .= str_pad(ord($input[2]), 2, '0', STR_PAD_LEFT); $f1 .= str_pad(ord($input[3]), 2, '0', STR_PAD_LEFT); $f2 = $f1 >> 17; $f3 = ($f1 & 0x0001FFFF); $f1 = $f2 . '.' . $f3; return (float) $f1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFixed32Field()\n {\n $value = $this->get(self::FIXED32_FIELD);\n return $value === null ? (integer)$value : $value;\n }", "public function getSfixed32Field()\n {\n $value = $this->get(self::SFIXED32_FIELD);\n return $value === null ? (integer)$value : $value;\n }", "function conv($t) {\n$t*=1.8;\n$t+=32;\nreturn($t);}", "public function readFloat32BE();", "function flippingBits($n)\n{\n return $n ^ 0xFFFFFFFF;\n}", "function snmp_dewrap32bit($value)\n{\n if (is_numeric($value) && $value < 0)\n {\n return ($value + 4294967296);\n } else {\n return $value;\n }\n}", "public function readInt32BE();", "function pack_p($value) {\n $first_half = pack('V', $value & 0xffffffff);\n $second_half = pack('V', ($value >> 32) & 0xffffffff);\n\n return $first_half . $second_half;\n}", "public static function ensure32BitInteger($value) {}", "function _Make64 ( $hi, $lo )\n{\n\n // on x64, we can just use int\n if ( ((int)4294967296)!=0 )\n return (((int)$hi)<<32) + ((int)$lo);\n\n // workaround signed/unsigned braindamage on x32\n $hi = sprintf ( \"%u\", $hi );\n $lo = sprintf ( \"%u\", $lo );\n\n // use GMP or bcmath if possible\n if ( function_exists(\"gmp_mul\") )\n return gmp_strval ( gmp_add ( gmp_mul ( $hi, \"4294967296\" ), $lo ) );\n\n if ( function_exists(\"bcmul\") )\n return bcadd ( bcmul ( $hi, \"4294967296\" ), $lo );\n\n // compute everything manually\n $a = substr ( $hi, 0, -5 );\n $b = substr ( $hi, -5 );\n $ac = $a*42949; // hope that float precision is enough\n $bd = $b*67296;\n $adbc = $a*67296+$b*42949;\n $r4 = substr ( $bd, -5 ) + + substr ( $lo, -5 );\n $r3 = substr ( $bd, 0, -5 ) + substr ( $adbc, -5 ) + substr ( $lo, 0, -5 );\n $r2 = substr ( $adbc, 0, -5 ) + substr ( $ac, -5 );\n $r1 = substr ( $ac, 0, -5 );\n while ( $r4>100000 ) { $r4-=100000; $r3++; }\n while ( $r3>100000 ) { $r3-=100000; $r2++; }\n while ( $r2>100000 ) { $r2-=100000; $r1++; }\n\n $r = sprintf ( \"%d%05d%05d%05d\", $r1, $r2, $r3, $r4 );\n $l = strlen($r);\n $i = 0;\n while ( $r[$i]==\"0\" && $i<$l-1 )\n $i++;\n return substr ( $r, $i ); \n}", "function packFIXED16($number)\n\t{\n\t\tarray_push($this->FMDebug, \"packFIXED16\");\n\n\t\t$lower_limit_high_word = -32767;\n\t\t$upper_limit_high_word = 32767;\n\t\t$lower_limit_low_word = 0;\n\t\t$upper_limit_low_word = 9999;\n\n\t if (!(is_numeric($number))) {\n\n \t $this->FMError(\"packFIXED16 argument not a number\");\n \t}\n\n\t\t$number = round($number, 4);\n\n\t\t$high_word = intval($number);\n\n\t\tif ($high_word < $lower_limit_high_word) {\n\n\t\t\t$high_word = $lower_limit_high_word;\n\t\t}\n\n\t\tif ($high_word > $upper_limit_high_word) {\n\n\t\t\t$high_word = $upper_limit_high_word;\n\t\t}\n\n\t\t$low_word = (int) ((abs($number) - intval(abs($number))) * 10000);\n\n\t\t$atom = $this->packUI16(intval($low_word * 65536 / 10000));\n\t\t$atom .= $this->packSI16($high_word);\n\n\t\tarray_pop($this->FMDebug);\n\n\t\treturn $atom;\n\t}", "public function get_decimal32() {\n return pn_data_get_decimal32($this->impl);\n }", "public function sFixed32($value)\n {\n $bytes = pack('l*', $value);\n if ($this->isBigEndian()) {\n $bytes = strrev($bytes);\n }\n\n $this->write($bytes, 4);\n }", "public function readInt32();", "function packSI32($number)\n\t{\t\n\t\tarray_push($this->FMDebug, \"packSI32\");\n\n\t if (!(is_numeric($number))) {\n\n \t $this->FMError(\"packUI32 argument not a number\");\n \t}\n\t\t$lower_limit = -2147483647;\n\t\t$upper_limit = 2147483647;\n\n\t\tif ($number < $lower_limit) {\n\n\t\t\t$number = $lower_limit;\n\t\t}\n\n\t\tif ($number > $upper_limit) {\n\n\t\t\t$number = $upper_limit;\n\t\t}\n\n\t\tif ($number < 0) {\n\n\t\t\t$number = $upper_limit + 1 + abs($number);\n\t\t}\n\n\t\t$number = sprintf(\"%08x\", $number);\n\n\t\t$low_byte_low_word = base_convert(substr($number, 6, 2), 16, 10);\n\t\t$high_byte_low_word = base_convert(substr($number, 4, 2), 16, 10); \n\n\t\t$low_byte_high_word = base_convert(substr($number, 2, 2), 16, 10);\n\t\t$high_byte_high_word = base_convert(substr($number, 0, 2), 16, 10);\n\n\t\t$atom = chr($low_byte_low_word) . chr($high_byte_low_word);\n\t\t$atom .= chr($low_byte_high_word) . chr($high_byte_high_word);\n\n\t\tarray_pop($this->FMDebug);\n\n \treturn $atom;\n\t}", "public static function mask32($a) {\n if (PHP_INT_MAX != 0x0000000080000000) { # 2147483647\n $a = -(~($a & 0x00000000FFFFFFFF) + 1);\n } return (int)$a;\n }", "function x($i) {\n if ($i < 0)\n return 4294967296 - $i;\n else\n return $i;\n }", "public static function static_intBitsToFloat($a = null)\n {\n throw new NotImplementedException(__METHOD__);\n }", "private static function _signedInt($in)\n {\n $int_max = 2147483647; // pow(2, 31) - 1\n if ($in > $int_max) {\n $out = $in - $int_max * 2 - 2;\n } else {\n $out = $in;\n }\n return $out;\n }", "public function readFloat32LE();", "public static function signum(IInt32\\Type $x) : ITrit\\Type {\n\t\t\treturn ITrit\\Type::make($x->unbox());\n\t\t}", "public function fixed32($value)\n {\n $bytes = pack('V*', $value);\n $this->write($bytes, 4);\n }", "public function readInt32LE();", "static function ip__mask__long_to_number($long_mask)\n\t{\n\t\t$num_mask = strpos((string)decbin($long_mask), '0');\n\t\treturn $num_mask === false ? 32 : $num_mask;\n\t}", "static public function intBitsToFloat($bits)\n {\n $float = unpack('f', $bits);\n return (float) $float[1];\n }", "public static function leftShift32($x, $y) {\n $n = $x << $y;\n if (PHP_INT_MAX != 0x80000000) {\n $n = -(~($n & 0x00000000FFFFFFFF) + 1);\n } return (int)$n;\n }", "public static function toFloat(IInt32\\Type $x) : IFloat\\Type {\n\t\t\treturn IFloat\\Type::make($x->unbox());\n\t\t}", "public static function abs(IInt32\\Type $x) : IInt32\\Type {\n\t\t\treturn IInt32\\Type::box(abs($x->unbox()));\n\t\t}", "public function readUInt32BE();", "public function readFloat32();", "public static function strictlyPosInts()\n {\n return self::ints()->fmap(function ($x) {\n return abs($x)+1;\n });\n }", "private static function getMaskOnes(int $n): int {\n // so (1 << 63) - 1 gets converted to float and loses precision (leading to incorrect result)\n // 2. (1 << 64) - 1 works fine, because (1 << 64) === 0 (it overflows) and -1 is exactly what we want\n // (`php -r 'var_dump(decbin(-1));'` => string(64) \"111...11\")\n $bit = 1 << $n;\n return $bit === PHP_INT_MIN ? ~$bit : $bit - 1;\n }", "private function _createNumber($spos)\n\t{\n\t\t$rknumhigh = $this->_GetInt4d($this->_data, $spos + 10);\n\t\t$rknumlow = $this->_GetInt4d($this->_data, $spos + 6);\n\t\t$sign = ($rknumhigh & 0x80000000) >> 31;\n\t\t$exp = ($rknumhigh & 0x7ff00000) >> 20;\n\t\t$mantissa = (0x100000 | ($rknumhigh & 0x000fffff));\n\t\t$mantissalow1 = ($rknumlow & 0x80000000) >> 31;\n\t\t$mantissalow2 = ($rknumlow & 0x7fffffff);\n\t\t$value = $mantissa / pow( 2 , (20- ($exp - 1023)));\n\n\t\tif ($mantissalow1 != 0) {\n\t\t\t$value += 1 / pow (2 , (21 - ($exp - 1023)));\n\t\t}\n\n\t\t$value += $mantissalow2 / pow (2 , (52 - ($exp - 1023)));\n\t\tif ($sign) {\n\t\t\t$value = -1 * $value;\n\t\t}\n\n\t\treturn\t$value;\n\t}", "public function fromVLQSigned($aValue){\n return $aValue & 1 ? $this->zeroFill(~$aValue + 2, 1) | (-1 - 0x7fffffff) : $this->zeroFill($aValue, 1);\n }", "function myip2long_r($a) {\r\n $inet = 0.0;\r\n $t = explode(\".\", $a);\r\n for ($i = 3; $i >= 0; $i --) {\r\n $inet *= 256.0;\r\n $inet += $t[$i];\r\n };\r\n return $inet;\r\n}", "function _fourbytes2int_le($s) {\n\treturn (ord($s[3])<<24) + (ord($s[2])<<16) + (ord($s[1])<<8) + ord($s[0]);\n}", "public function getSint32Field()\n {\n $value = $this->get(self::SINT32_FIELD);\n return $value === null ? (integer)$value : $value;\n }", "public function setFixed32Field($value)\n {\n return $this->set(self::FIXED32_FIELD, $value);\n }", "public function unsigned();", "public static function static_floatToIntBits($a = null)\n {\n throw new NotImplementedException(__METHOD__);\n }", "static public function MBUInt32ToInt($in, &$pos)\n {\n $val = 0;\n\n do {\n $b = ord($in[$pos++]);\n $val <<= 7; // Bitshift left 7 bits.\n $val += ($b & 127);\n } while (($b & 128) != 0);\n\n return $val;\n }", "function _freadint($f)\n\t\t{\n\t\t\t$i=ord(fread($f,1))<<24;\n\t\t\t$i+=ord(fread($f,1))<<16;\n\t\t\t$i+=ord(fread($f,1))<<8;\n\t\t\t$i+=ord(fread($f,1));\n\t\t\treturn $i;\n\t\t}", "public function sFixed64($value)\n {\n if ($value >= 0) {\n $this->fixed64($value);\n } else if (function_exists('gmp_init')) {\n $this->sFixed64_gmp($value);\n } else if (function_exists('bcadd')) {\n $this->sFixed64_bc($value);\n } else {\n throw new \\OutOfBoundsException(\"The signed Fixed64 type with negative integers is only supported with GMP or BC big integers PHP extensions ($value was given)\");\n }\n }", "private function readfloat()\n {\n $bin = fread($this->f, 4);\n if ((ord($bin[0]) >> 7) == 0) $sign = 1;\n else $sign = -1;\n if ((ord($bin[0]) >> 6) % 2 == 1) $exponent = 1;\n else $exponent = -127;\n $exponent += (ord($bin[0]) % 64) * 2;\n $exponent += ord($bin[1]) >> 7;\n\n $base = 1.0;\n for ($k = 1; $k < 8; $k++) {\n $base += ((ord($bin[1]) >> (7 - $k)) % 2) * pow(0.5, $k);\n }\n for ($k = 0; $k < 8; $k++) {\n $base += ((ord($bin[2]) >> (7 - $k)) % 2) * pow(0.5, $k + 8);\n }\n for ($k = 0; $k < 8; $k++) {\n $base += ((ord($bin[3]) >> (7 - $k)) % 2) * pow(0.5, $k + 16);\n }\n\n $float = (float)$sign * pow(2, $exponent) * $base;\n return $float;\n }", "function gen_subnet_mask_long($bits) {\n\t$sm = 0;\n\tfor ($i = 0; $i < $bits; $i++) {\n\t\t$sm >>= 1;\n\t\t$sm |= 0x80000000;\n\t}\n\treturn $sm;\n}", "public function testSLongLittle()\n {\n $this->markTestIncomplete('Does not work on 64bit systems!');\n $o = PelConvert::LITTLE_ENDIAN;\n\n /*\n * The easiest way to calculate the numbers to compare with, is to\n * let PHP do the arithmetic for us. When using the bit-wise\n * operators PHP will return a proper signed 32 bit integer.\n */\n\n $this->assertEquals(PelConvert::bytesToSLong($this->bytes, 0, $o), 0x00 << 24 | 0x00 << 16 | 0x00 << 8 | 0x00);\n $this->assertEquals(PelConvert::bytesToSLong($this->bytes, 1, $o), 0x01 << 24 | 0x00 << 16 | 0x00 << 8 | 0x00);\n $this->assertEquals(PelConvert::bytesToSLong($this->bytes, 2, $o), 0x23 << 24 | 0x01 << 16 | 0x00 << 8 | 0x00);\n $this->assertEquals(PelConvert::bytesToSLong($this->bytes, 3, $o), 0x45 << 24 | 0x23 << 16 | 0x01 << 8 | 0x00);\n $this->assertEquals(PelConvert::bytesToSLong($this->bytes, 4, $o), 0x67 << 24 | 0x45 << 16 | 0x23 << 8 | 0x01);\n $this->assertEquals(PelConvert::bytesToSLong($this->bytes, 5, $o), 0x89 << 24 | 0x67 << 16 | 0x45 << 8 | 0x23);\n $this->assertEquals(PelConvert::bytesToSLong($this->bytes, 6, $o), 0xAB << 24 | 0x89 << 16 | 0x67 << 8 | 0x45);\n $this->assertEquals(PelConvert::bytesToSLong($this->bytes, 7, $o), 0xCD << 24 | 0xAB << 16 | 0x89 << 8 | 0x67);\n $this->assertEquals(PelConvert::bytesToSLong($this->bytes, 8, $o), 0xEF << 24 | 0xCD << 16 | 0xAB << 8 | 0x89);\n $this->assertEquals(PelConvert::bytesToSLong($this->bytes, 9, $o), 0xFF << 24 | 0xEF << 16 | 0xCD << 8 | 0xAB);\n $this->assertEquals(PelConvert::bytesToSLong($this->bytes, 10, $o), 0xFF << 24 | 0xFF << 16 | 0xEF << 8 | 0xCD);\n $this->assertEquals(PelConvert::bytesToSLong($this->bytes, 11, $o), 0xFF << 24 | 0xFF << 16 | 0xFF << 8 | 0xEF);\n $this->assertEquals(PelConvert::bytesToSLong($this->bytes, 12, $o), 0xFF << 24 | 0xFF << 16 | 0xFF << 8 | 0xFF);\n }", "public function isFixedPointNumber(): bool;", "function mylong2ip($n) {\r\n $t=array(0,0,0,0);\r\n $msk = 16777216.0;\r\n $n += 0.0;\r\n if ($n < 1)\r\n return('&nbsp;');\r\n for ($i = 0; $i < 4; $i++) {\r\n $k = (int) ($n / $msk);\r\n $n -= $msk * $k;\r\n $t[$i]= $k;\r\n $msk /=256.0;\r\n };\r\n //$a=join('.', $t);\r\n\t$a = $t[3] . \".\" . $t[2] . \".\" . $t[1] . \".\" . $t[0];\r\n return($a);\r\n}", "public function toVLQSigned($aValue){\n return 0xffffffff & ($aValue < 0 ? ((-$aValue) << 1) + 1 : ($aValue << 1) + 0);\n }", "public function readint32()\n {\n }", "public static function readSignedLShort($str){\n\t\tif(PHP_INT_SIZE === 8){\n\t\t\treturn unpack(\"v\", $str)[1] << 48 >> 48;\n\t\t}else{\n\t\t\treturn unpack(\"v\", $str)[1] << 16 >> 16;\n\t\t}\n\t}", "static function packInt64($x) {\n if (PHP_INT_SIZE == 8) {\n if (version_compare(PHP_VERSION, '5.6.3', '>=')) {\n return pack('J', $x);\n } else {\n return pack('NN', ($x & 0xFFFFFFFF00000000) >> 32, $x & ($x & 0x00000000FFFFFFFF)); \n }\n } else {\n // 32-bit system\n return \"\\x00\\x00\\x00\\x00\" . pack('N', $x);\n }\n }", "Function float2largearray($n) {\r\n $result = array();\r\n while ($n > 0) {\r\n array_push($result, ($n & 0xffff));\r\n list($n, $dummy) = explode('.', sprintf(\"%F\", $n/65536.0));\r\n # note we don't want to use \"%0.F\" as it will get rounded which is bad.\r\n }\r\n return $result;\r\n}", "function _binxor($l, $r)\n {\n $x = (($l < 0) ? (float)($l + 4294967296) : (float)$l)\n ^ (($r < 0) ? (float)($r + 4294967296) : (float)$r);\n\n return (float)(($x < 0) ? $x + 4294967296 : $x);\n }", "protected final function _decodeSynchsafe32($val)\n {\n return ($val & 0x7f) | ($val & 0x7f00) >> 1 |\n ($val & 0x7f0000) >> 2 | ($val & 0x7f000000) >> 3;\n }", "public function readFloat64BE();", "private function leftShift32($number, $steps) {\n\t\t// convert to binary (string)\n\t\t$binary = decbin($number);\n\t\t// left-pad with 0's if necessary\n\t\t$binary = str_pad($binary, 32, \"0\", STR_PAD_LEFT);\n\t\t// left shift manually\n\t\t$binary = $binary.str_repeat(\"0\", $steps);\n\t\t// get the last 32 bits\n\t\t$binary = substr($binary, strlen($binary) - 32);\n\t\t// if it's a positive number return it\n\t\t// otherwise return the 2's complement\n\t\treturn ($binary{0} == \"0\" ? bindec($binary) :\n\t\t-(pow(2, 31) - bindec(substr($binary, 1))));\n\t}", "function swfRead_u32($data, &$offset) {\n return ord($data[$offset++]) + ord($data[$offset++]) * 0x100 +\n ord($data[$offset++]) * 0x10000 + ord($data[$offset++]) * 0x1000000;\n}", "function num1BitsSecondSolution($number)\n{\n if ($number <= 0) {\n return 0;\n }\n\n for ($c = 0; $number; $number >>= 1) {\n $c += $number & 1;\n }\n\n return $c;\n}", "function packFIXED8($number)\n\t{\n\t\tarray_push($this->FMDebug, \"packFIXED8\");\n\n\t\t$lower_limit_high_byte = -127;\n\t\t$upper_limit_high_byte = 127;\n\t\t$lower_limit_low_byte = 0;\n\t\t$upper_limit_low_byte = 99;\n\n\t if (!(is_numeric($number))) {\n\n \t $this->FMError(\"packFIXED8 argument not a number\");\n \t}\n\n\t\t$number = round($number, 2);\n\n\t\t$high_byte = intval($number);\n\n\t\tif ($high_byte < $lower_limit_high_byte) {\n\n\t\t\t$high_byte = $lower_limit_high_byte;\n\t\t}\n\n\t\tif ($high_byte > $upper_limit_high_byte) {\n\n\t\t\t$high_byte = $upper_limit_high_byte;\n\t\t}\n\n\t\t$low_byte = (int) ((abs($number) - intval(abs($number))) * 100);\n\n\t\t$atom = $this->packUI8(intval($low_byte * 256 / 100));\n\t\t$atom .= $this->packSI8($high_byte);\n\n\t\tarray_pop($this->FMDebug);\n\n\t\treturn $atom;\n\t}", "public static function static_floatToRawIntBits($a = null)\n {\n throw new NotImplementedException(__METHOD__);\n }", "public function setSfixed32Field($value)\n {\n return $this->set(self::SFIXED32_FIELD, $value);\n }", "public function readInt16BE();", "public function getFixed32PackedFieldCount()\n {\n return $this->count(self::FIXED32_PACKED_FIELD);\n }", "function bin2int($value)\n\t{\n\t\t$x = 1;\n\t\t$tmp = 0;\n\t\tfor ($i = 0; $i < strlen($value);$i++)\n\t\t{\n\t\t\t$tmp = $tmp + ($x * ord($value{$i}));\n\t\t\t$x = $x *256;\n\t\t\n\t\t}\n\t\treturn($tmp);\n\t}", "public function readUInt32LE();", "function variant_pow($left, $right) {}", "function gmp_intval($gmpnumber)\n{\n}", "public static function minValue()\n {\n if (self::$PHPIntSize === 4) {\n // 32 bit\n return static::createFromTimestamp(~PHP_INT_MAX); // @codeCoverageIgnore\n }\n\n // 64 bit\n return static::create(1, 1, 1, 0, 0, 0);\n }", "public static function readSignedShort($str){\n\t\tif(PHP_INT_SIZE === 8){\n\t\t\treturn unpack(\"n\", $str)[1] << 48 >> 48;\n\t\t}else{\n\t\t\treturn unpack(\"n\", $str)[1] << 16 >> 16;\n\t\t}\n\t}", "public static function posInts()\n {\n return self::ints()->fmap(function ($x) {\n return abs($x);\n });\n }", "function myip2long($a) {\r\n $inet = 0.0;\r\n $t = explode(\".\", $a);\r\n for ($i = 0; $i < 4; $i++) {\r\n $inet *= 256.0;\r\n $inet += $t[$i];\r\n };\r\n return $inet;\r\n}", "public static function toUnsigned( $ip ) {\n if ( self::isIPv6( $ip ) ) {\n $n = self::toUnsigned6( $ip );\n } else {\n $n = ip2long( $ip );\n if ( $n < 0 ) {\n $n += pow( 2, 32 );\n }\n }\n return $n;\n }", "public function readInteger()\n {\n $count = 1;\n $intReference = $this->_stream->readByte();\n $result = 0;\n while ((($intReference & 0x80) != 0) && $count < 4) {\n $result <<= 7;\n $result |= ($intReference & 0x7f);\n $intReference = $this->_stream->readByte();\n $count++;\n }\n if ($count < 4) {\n $result <<= 7;\n $result |= $intReference;\n } else {\n // Use all 8 bits from the 4th byte\n $result <<= 8;\n $result |= $intReference;\n\n // Check if the integer should be negative\n if (($result & 0x10000000) != 0) {\n //and extend the sign bit\n $result |= ~0xFFFFFFF;\n }\n }\n return $result;\n }", "function sigorigval($origval,$origerr,$numplaces){\n\n\t\t//Math from Noah McLean at MIT\n\n\t\t$x=round($origval*pow(10,(($numplaces-1)-floor(log10(2*$origerr))))) * pow(10,((floor(log10(2*$origerr))))-($numplaces-1));\n\t\n\t\treturn($x);\n\n\t}", "public static function negate(IInt32\\Type $x) : IInt32\\Type {\n\t\t\treturn IInt32\\Type::box($x->unbox() * -1);\n\t\t}", "private function readInt32L($file_type)\n {\n return current(unpack('V', $this->readData($file_type, 4)));\n }", "function int_to_dword($n)\r\n\t{\r\n\t\treturn chr($n & 255).chr(($n >> 8) & 255).chr(($n >> 16) & 255).chr(($n >> 24) & 255);\r\n\t}", "public function readF8le(): float {\n $bits = $this->readU8le();\n return $this->decodeDoublePrecisionFloat($bits);\n }", "function findSharp($intOrig, $intFinal)\n{\n $intFinal = $intFinal * (750.0 / $intOrig);\n $intA = 52;\n $intB = -0.27810650887573124;\n $intC = .00047337278106508946;\n $intRes = $intA + $intB * $intFinal + $intC * $intFinal * $intFinal;\n return max(round($intRes), 0);\n}", "public function getFloatFromBits($offset, $mode = self::ENDIAN_BIG){\n if($mode === self::ENDIAN_BIG){\n $sign = $this->getBinarySlice($offset, 1);\n $exp = $this->getBinarySlice($offset + 1, 8);\n $mantissa = \"1\" . $this->getBinarySlice($offset + 9, 23);\n }else{\n $sign = $this->getBinarySlice($offset + 24, 1);\n $exp = $this->getBinarySlice($offset + 25, 7).$this->getBinarySlice($offset + 16, 1);\n $mantissa = \"1\" . $this->getBinarySlice($offset + 17, 7) . $this->getBinarySlice($offset + 8, 8) . $this->getBinarySlice($offset, 8);\n }\n\n $mantissa = str_split($mantissa);\n $exp = bindec($exp) - 127;\n $base = 0;\n\n for ($i = 0; $i < 24; $i++) {\n $base += (1 / pow(2, $i))*$mantissa[$i];\n }\n return $base * pow(2, $exp) * ($sign*-2+1);\n }", "public static function toInteger(IInt32\\Type $x) : IInteger\\Type {\n\t\t\treturn IInteger\\Type::make($x->unbox());\n\t\t}", "public function floattoint($val, $prec){\n\t return intval($val * pow(10,$prec)) ;\n}", "public function getSint32PackedFieldCount()\n {\n return $this->count(self::SINT32_PACKED_FIELD);\n }", "function packUI32($number)\n\t{\t\n\t\tarray_push($this->FMDebug, \"packUI32\");\n\n\t if (!(is_integer($number))) {\n\n \t $this->FMError(\"packUI32 argument not an integer\");\n \t}\n\n\t\t$lower_limit = 0;\n\t\t$upper_limit = 2147483647; \t# the real limit is 4294967295\n\t\t\t\t\t\t# but PHP 4 cannot handle such\n\t\t\t\t\t\t# large unsigned integers \n\n\t if ($number < $lower_limit) {\n\n\t\t\t$number = $lower_limit;\n\t\t}\n\n\t\tif ($number > $upper_limit) {\n\n\t\t\t$number = $upper_limit;\n \t}\n\n\t\t$number = sprintf(\"%08x\", $number);\n\n\t\t$low_byte_low_word = base_convert(substr($number, 6, 2), 16, 10);\n\t\t$high_byte_low_word = base_convert(substr($number, 4, 2), 16, 10); \n\n\t\t$low_byte_high_word = base_convert(substr($number, 2, 2), 16, 10);\n\t\t$high_byte_high_word = base_convert(substr($number, 0, 2), 16, 10);\n\n\t\t$atom = chr($low_byte_low_word) . chr($high_byte_low_word);\n\t\t$atom .= chr($low_byte_high_word) . chr($high_byte_high_word);\n\n\t\tarray_pop($this->FMDebug);\n\n \treturn $atom;\n\t}", "function num1BitsFirstSolution($number)\n{\n if ($number <= 0) {\n return 0;\n }\n\n $countOf1 = 0;\n\n do {\n\n if ($number & 1) {\n ++$countOf1;\n }\n\n } while ($number = $number >> 1);\n\n return $countOf1;\n}", "public function hasSfixed32Field()\n {\n return $this->get(self::SFIXED32_FIELD) !== null;\n }", "function long2base32($long, $pad=0)\r\n{\r\n global $base_charset;\r\n\r\n $num = floatval($long);\r\n if ($num < 1) return $base_charset[32][0];\r\n if (empty($pad)) $pad = 1;\r\n\r\n $s_out = '';\r\n while ($num >= 1) {\r\n $n32 = intval($num % 32);\r\n $num = floor(($num - $n32) / 32);\r\n $s_out = $base_charset[32][$n32].$s_out;\r\n }\r\n while (strlen($s_out)<$pad) $s_out = $base_charset[32][0].$s_out;\r\n\r\n return $s_out;\r\n}", "public static function factorial(IInt32\\Type $n) : IInt32\\Type {\n\t\t\treturn (IInt32\\Module::eq($n, IInt32\\Type::zero())->unbox())\n\t\t\t\t? IInt32\\Type::one()\n\t\t\t\t: IInt32\\Module::multiply($n, IInt32\\Module::factorial(IInt32\\Module::decrement($n)));\n\t\t}", "protected final function _encodeSynchsafe32($val)\n {\n return ($val & 0x7f) | ($val & 0x3f80) << 1 |\n ($val & 0x1fc000) << 2 | ($val & 0xfe00000) << 3;\n }", "public function getFixed32PackedFieldAt($offset)\n {\n return $this->get(self::FIXED32_PACKED_FIELD, $offset);\n }", "public function hasFixed32Field()\n {\n return $this->get(self::FIXED32_FIELD) !== null;\n }", "public static function toInt32(IInt32\\Type $x) : IInt32\\Type {\n\t\t\treturn $x;\n\t\t}", "public function readFloat64LE();", "function psuedo_random_number($min, $max) {\n $bytes = openssl_random_pseudo_bytes(4);\n $int = unpack('l', $bytes);\n return $min + abs($int[1] % ($max-$min+1));\n}", "function uISRF($uint,$z){ return $uint+(((8*(k**4)*(M_PI**5))/(15*(c**3)*(h**3)))*(2.73*(1+$z))**4); }", "function num1BitsThirdSolution($number)\n{\n if ($number <= 0) {\n return 0;\n }\n\n for ($c = 0; $number; $c++) {\n $number &= $number - 1;\n }\n\n return $c;\n}", "protected function filterUint($value) {\n return abs((int) $value);\n }", "public static function bigint() {}", "function verteilung4($n) {\n return (powInt($n, 1.5));\n}", "function sigaloneval($origerr,$numplaces){\n\n\t\t$x=round($origerr*(pow(10,(($numplaces-1)-floor(log10($origerr)))))) * pow(10,(floor(log10($origerr)))-($numplaces-1));\n\t\n\t\treturn($x);\n\n\t}" ]
[ "0.5862351", "0.58380926", "0.5762914", "0.57184124", "0.56847805", "0.56682354", "0.5578331", "0.55669415", "0.553726", "0.550898", "0.5468825", "0.5458553", "0.5454455", "0.5434811", "0.5433831", "0.5426981", "0.5426315", "0.53972185", "0.5385776", "0.5364039", "0.5360102", "0.5339283", "0.5254472", "0.52533066", "0.5235668", "0.52192336", "0.52164173", "0.5211778", "0.5204144", "0.5181727", "0.51705146", "0.5134617", "0.51070327", "0.5101539", "0.50880545", "0.50730354", "0.5065625", "0.5065197", "0.505477", "0.5048125", "0.50342035", "0.5028875", "0.50260574", "0.5019143", "0.50166094", "0.5009912", "0.5008154", "0.49961615", "0.49936995", "0.49438152", "0.49356776", "0.4914197", "0.49075934", "0.4894508", "0.48689815", "0.48637828", "0.48550257", "0.4854344", "0.48455507", "0.48389778", "0.48349538", "0.4829049", "0.48231605", "0.48169094", "0.48109445", "0.48006573", "0.47934908", "0.47884002", "0.47815123", "0.47785702", "0.47465137", "0.4739036", "0.47313717", "0.47039104", "0.47008508", "0.4700625", "0.46942183", "0.46850875", "0.46718973", "0.4671192", "0.46554634", "0.464981", "0.46416014", "0.46386215", "0.46375448", "0.46336266", "0.4633541", "0.46302575", "0.46253574", "0.46222743", "0.46109837", "0.4602773", "0.46012667", "0.45931217", "0.45915216", "0.45853755", "0.45832008", "0.45811182", "0.45809975", "0.45697668", "0.45674184" ]
0.0
-1
Calculates a 64bit timestamp
protected function _getTimestamp($input) { $f1 = (ord($input[0]) * pow(256, 3)); $f1 += (ord($input[1]) * pow(256, 2)); $f1 += (ord($input[2]) * pow(256, 1)); $f1 += (ord($input[3])); $f1 -= 2208988800; $f2 = (ord($input[4]) * pow(256, 3)); $f2 += (ord($input[5]) * pow(256, 2)); $f2 += (ord($input[6]) * pow(256, 1)); $f2 += (ord($input[7])); return (float) ($f1 . "." . $f2); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function get_timestamp() {\n\t\treturn floor(microtime(true)/self::keyRegeneration);\n\t}", "public function to64() {\n return sprintf(\"%010d%09d\", $this->sec, $this->nsec); }", "public function getTimestamp()\n {\n return (int) floor(microtime(true) / $this->keyRegeneration);\n }", "function timestamp(){\r\n\t\t$timestamp = round(microtime(1) * 1000);\r\n\r\n\t\treturn $timestamp;\r\n\t}", "public static function timestamp()\n {\n //$mt = microtime();\n list($mt, $tm) = explode(\" \", microtime());\n return sprintf(\"%d%03d\",$tm,(int)($mt*1000%1000));\n }", "private static function generate_timestamp() {\n return time();\n }", "private function getTime() {\n // Get the current microtime string as `microseconds seconds`\n $time_arr = microtime();\n // Add the two numbers together\n $time = array_sum(explode(' ', $time_arr));\n // Multiply by 1000 and return a 13 digit timestamp\n $microtime = $time * 1000;\n return substr($microtime, 0, 13); \n }", "private static function generate_timestamp()\n {\n return time();\n }", "function timestamp()\n {\n return microtime(true);\n }", "public function timestamp()\n {\n list($uSecond, $second) = explode(' ', microtime());\n return (string) ($second + ($uSecond * 1000000));\n }", "function readTimestamp(): int;", "public function getStamp()\n {\n return pack('Nn', time(), mt_rand());\n }", "public function toTimestamp(): ?int\n {\n $gc = new GregorianCalendar();\n $julianDay = $gc->ymdToJd(($this->year > 0 && $this->epoch) ? -$this->year : $this->year, $this->monthDigital ?: 1, $this->day ?: 1);\n return ($julianDay - 2440588) * 86400;\n }", "public static function sid64($steamid) {\n\t\t$parts = explode(':', str_replace('STEAM_', '' ,$steamid)); \n\t\treturn bcadd(bcadd('76561197960265728', $parts['1']), bcmul($parts['2'], '2')); \n\t}", "public static function timestamp() {}", "function _Make64 ( $hi, $lo )\n{\n\n // on x64, we can just use int\n if ( ((int)4294967296)!=0 )\n return (((int)$hi)<<32) + ((int)$lo);\n\n // workaround signed/unsigned braindamage on x32\n $hi = sprintf ( \"%u\", $hi );\n $lo = sprintf ( \"%u\", $lo );\n\n // use GMP or bcmath if possible\n if ( function_exists(\"gmp_mul\") )\n return gmp_strval ( gmp_add ( gmp_mul ( $hi, \"4294967296\" ), $lo ) );\n\n if ( function_exists(\"bcmul\") )\n return bcadd ( bcmul ( $hi, \"4294967296\" ), $lo );\n\n // compute everything manually\n $a = substr ( $hi, 0, -5 );\n $b = substr ( $hi, -5 );\n $ac = $a*42949; // hope that float precision is enough\n $bd = $b*67296;\n $adbc = $a*67296+$b*42949;\n $r4 = substr ( $bd, -5 ) + + substr ( $lo, -5 );\n $r3 = substr ( $bd, 0, -5 ) + substr ( $adbc, -5 ) + substr ( $lo, 0, -5 );\n $r2 = substr ( $adbc, 0, -5 ) + substr ( $ac, -5 );\n $r1 = substr ( $ac, 0, -5 );\n while ( $r4>100000 ) { $r4-=100000; $r3++; }\n while ( $r3>100000 ) { $r3-=100000; $r2++; }\n while ( $r2>100000 ) { $r2-=100000; $r1++; }\n\n $r = sprintf ( \"%d%05d%05d%05d\", $r1, $r2, $r3, $r4 );\n $l = strlen($r);\n $i = 0;\n while ( $r[$i]==\"0\" && $i<$l-1 )\n $i++;\n return substr ( $r, $i ); \n}", "protected function getTimestamp()\r\n {\r\n return gmdate(\"Y-m-d\\TH:i:s.\\\\0\\\\0\\\\0\\\\Z\", time());\r\n }", "function getSystemTime()\n{\n $time = @gettimeofday();\n $resultTime = $time['sec'] * 1000;\n $resultTime += floor($time['usec'] / 1000);\n return $resultTime;\n}", "public function generateSignTime()\n {\n return $this->sign_time = intval(microtime(true) * 1000);\n }", "public function getUnixTimestamp() : int\n {\n return $this->time->getTimestamp();\n }", "function convert_time($value)\n\t{\n\t\t$dateLargeInt=$value; // nano secondes depuis 1601 !!!!\n\t\t$secsAfterADEpoch = $dateLargeInt / (10000000); // secondes depuis le 1 jan 1601\n\t\t$ADToUnixConvertor=((1970-1601) * 365.242190) * 86400; // UNIX start date - AD start date * jours * secondes\n\t\t$unixTimeStamp=intval($secsAfterADEpoch-$ADToUnixConvertor); // Unix time stamp\n\t\treturn $unixTimeStamp;\n\t}", "public static function timestamp() {\n return time(); \n }", "private function getTimestamp()\n {\n $originalTime = microtime(true);\n $micro = sprintf(\"%06d\", ($originalTime - floor($originalTime)) * 1000000);\n $date = new DateTime(date('Y-m-d H:i:s.'.$micro, $originalTime));\n\n return $date->format($this->config['dateFormat']);\n }", "protected function createTokenTimestamp(): int\n {\n return time();\n }", "public static function unixTimeNow(): int\n {\n return time();\n }", "public function getTimestamp(): int;", "public function getTimestamp(): int;", "static function packInt64($x) {\n if (PHP_INT_SIZE == 8) {\n if (version_compare(PHP_VERSION, '5.6.3', '>=')) {\n return pack('J', $x);\n } else {\n return pack('NN', ($x & 0xFFFFFFFF00000000) >> 32, $x & ($x & 0x00000000FFFFFFFF)); \n }\n } else {\n // 32-bit system\n return \"\\x00\\x00\\x00\\x00\" . pack('N', $x);\n }\n }", "function _get_time()\n{\n $_mtime = microtime();\n $_mtime = explode(\" \", $_mtime);\n\n return (double) ($_mtime[1]) + (double) ($_mtime[0]);\n}", "abstract public function getTstamp();", "private static function generateHexTimestamp() : string\n {\n $time = microtime(false);\n [$microseconds, $seconds] = explode(' ', $time);\n \n // Keep only millisecond digits.\n $microseconds = substr($microseconds, 2,3);\n \n $hex = base_convert($seconds . $microseconds, 10, 16);\n \n return str_pad($hex, self::TOTAL_CHARS_LENGTH - self::RANDOM_CHARS_LENGTH, '0', STR_PAD_LEFT);\n }", "function timetots($timestamp){\n return mktime(substr($timestamp,11,2),substr($timestamp,14,2),substr($timestamp,17,2),substr($timestamp,5,2),substr($timestamp,8,2),substr($timestamp,0,4));\n}", "function getTimestamp($data) {\r\n\t// yyyy-mm-dd HH:ii:ss\r\n\t// 0123456789012345678\r\n\t$h = substr($data, 11, 2);\r\n\t$i = substr($data, 14, 2);\r\n\t$s = substr($data, 17, 2);\r\n\t$m = substr($data, 5, 2);\r\n\t$d = substr($data, 8, 2);\r\n\t$y = substr($data, 0, 4);\r\n\t//**************\r\n\treturn mktime($h, $i, $s, $m, $d, $y);\r\n}", "function timeStamp() {\r\n\t\t$php_timestamp = time();\r\n\t\t$stamp = date(\" h:i:s A - m/d/Y\", $php_timestamp);\r\n\t\treturn $stamp;\r\n\t}", "function sql2stamp($ymd) { #trace();\r\n if ( $ymd=='0000-00-00' )\r\n $t= 0;\r\n else {\r\n $y= 0+substr($ymd,0,4);\r\n $m= 0+substr($ymd,5,2);\r\n $d= 0+substr($ymd,8,2);\r\n $t= mktime(0,0,0,$m,$d,$y)+1;\r\n }\r\n return $t;\r\n}", "public static function timestamp(){\n $timestamp = time();\n return $timestamp;\n }", "public static function getTimestamp(){\r\n\t\treturn time();\r\n\t}", "private static function timestamp(){\n date_default_timezone_set('Africa/Nairobi');\n $time = time();\n return date(\"Y-m-d G:i:s\", $time);\n }", "function shadow_to_unixtime($t) {\n return (int)($t * 24 * 60 * 60);\n}", "function convert_timestamp($timestamp){ \n $limit=date(\"U\"); \n $limiting=$timestamp-$limit; \n return date (\"Ymd\", mktime (0,0,$limiting)); \n}", "public function getTimestampMs()\n {\n return (int) $this->getPreciseTimestamp(3);\n }", "public function timestamp();", "function _unix_timestamp($date) { return strtotime($date); }", "function getTimeS($timestamp){\n\t\tif ($timestamp > 60*60*24){\n\t\t\t$timestamp = $timestamp % (60*60*24) + 2*(60*60);\n\t\t}\n\t\t$hours = intval($timestamp / (60*60));\n\t\t$minutes = intval(($timestamp % (60*60)) / 60);\n\t\treturn sprintf('%02d', $hours).\":\".sprintf('%02d', $minutes); \n\t}", "function solrTimestamp($epoch=0) {\n if($utc = intval($epoch)) {\n return date('Y-m-d\\TH:i:s\\Z',$utc);\n }\n else {\n return date('Y-m-d\\TH:i:s\\Z',time());\n }\n return;\n}", "public static function to64from( $time ) {\n if(is_object($time)) return $time->to64();\n return $time;\n }", "public function getTime() : int;", "function WindowsTime2UnixTime($WindowsTime) {\n\t$UnixTime = $WindowsTime / 10000000 - 11644473600;\n\treturn $UnxiTime; \n}", "public static function __getTime()\n\t{\n\t\treturn time() + self::$__timeOffset;\n\t}", "function MyDateTimestamp($date)\r\n{\r\n\treturn gmmktime(\r\n\t\tsubstr($date, 11, 2), //h\r\n\t\tsubstr($date, 14, 2), //i\r\n\t\tsubstr($date, 17, 2), //s\r\n\t\tsubstr($date, 5, 2), //m\r\n\t\tsubstr($date, 8, 2), //d\r\n\t\tsubstr($date, 0, 4) //y\r\n\t);\r\n}", "function net_time($timestamp=NULL)\n{\n $ts = ($timestamp == NULL) ? time() : intval($timestamp);\n\n list($h,$m,$s) = split(':',gmdate('H:i:s',$ts));\n list($u,$ts) = ($timestamp == NULL) ? split(' ',microtime()) : array(0,0);\n\n $deg = $h * 15; // 0-345 (increments of 15)\n $deg = $deg + floor($m / 4); // 0-14\n\n $min = ($m % 4) * 15; // 0,15,30,45\n $min = $min + floor($s / 4); // 0-14\n\n $sec = ($s % 4) * 15; // 0,15,30,45\n $sec = $sec + ((60 * $u) / 4); // 0-14\n\n return sprintf('%d%s %02d\\' %02d\" NET',$deg,unichr(176),$min,$sec);\n}", "private static function timeStamp() {\n return date(\"Y-m-d H:i:s\");\n }", "function getTime(){\n\t\t$mtime = microtime();//print(\"\\n time : \" . $mtime);\n\t\t$mtime = explode(' ', $mtime);\n\t\t$mtime = $mtime[1] + $mtime[0];\n\t\treturn $mtime;\n\t}", "function _convert_to_unix_timestamp($timestamp)\n\t{\n\t\tlist($time, $date) = explode('.', $timestamp);\n\t\t\n\t\t// breakdown time\n\t\t$hour = substr($time, 0, 2);\n\t\t$minute = substr($time, 2, 2);\n\t\t$second = substr($time, 4, 2);\n\t\t\n\t\t// breakdown date\n\t\t$day = substr($date, 0, 2);\n\t\t$month = substr($date, 2, 2);\n\t\t$year = substr($date, 4, 2);\n\t\t\n\t\treturn gmmktime($hour, $minute, $second, $month, $day, $year);\n\t}", "function get_unix_time()\n {\n return $this->timestamp;\n }", "function sys_time($timestamp)\n\t{\n\t\treturn call_user_func_array('gmmktime', explode(', ', date('H, i, s, m, d, Y', $timestamp - intval($this->timeshift()))));\n\t}", "function MysqlToUnix($timestamp)\n\t{\n\t\t// and returns the unix timestamp in seconds since 1970\n\t\t$timestamp = (string)$timestamp;\n\t\t$yyyy = substr($timestamp, 0, 4);\n\t\t$month = substr($timestamp, 4, 2);\n\t\t$dd = substr($timestamp, 6, 2);\n\t\t$hh = substr($timestamp, 8, 2);\n\t\t$mm = substr($timestamp, 10, 2);\n\t\t$ss = substr($timestamp, 12, 2);\n\t\t$time = mktime($hh, $mm, $ss, $month, $dd, $yyyy);\n\t\treturn $time;\n\t}", "function dateToTimestamp($date){\n\t$dia=substr($date,0,2);\n\t$mes=substr($date,3,2);\n\t$ano=substr($date, 6,4);\t\n\t\n\t$timestamp= mktime(0,0,0,$mes,$dia,$ano);\n\treturn $timestamp;\n }", "public static function bigint() {}", "static public function timestamp()\r\n {\r\n $output = date('Y-m-d H:i:s', time());\r\n return $output;\r\n }", "function cata_ts2unixts($timestamp) {\n\tif (strlen($timestamp) == 14) {\n\t\t$year = intval(substr($timestamp, 0, 4));\n\t\t$month = intval(substr($timestamp, 4, 2));\n\t\t$day = intval(substr($timestamp, 6, 2));\n\t\t$hour = intval(substr($timestamp, 8, 2));\n\t\t$minute = intval(substr($timestamp, 10, 2));\n\t\t$second = intval(substr($timestamp, 12, 2));\n\n\t\treturn mktime($hour, $minute, $second, $month, $day, $year);\n\t} else {\n\t\treturn 0;\n\t}\n}", "function timeStamp()\n {\n return date(\"YmdHis\");\n }", "protected function getTimeStamp() {\n return time().' ('.strftime( '%Y.%m.%d %H:%I:%S', time() ).')';\n }", "static function ts(){\r\n $dt = microtime(true) - self::$starttime;\r\n return self::mtformat($dt);\r\n }", "function getmicrotime($e = 7)\n{\n list($u, $s) = explode(' ',microtime());\n return bcadd($u, $s, $e);\n}", "private function getMicrotime()\n {\n $mtime = microtime();\n $mtime = explode(\" \",$mtime);\n $mtime = $mtime[1] + $mtime[0];\n\n return $mtime;\n }", "function getTimestamp ($key);", "function utime2timestamp($string2format) {\n \t\treturn date(\"YmdHis\",$string2format);\n \t}", "static function is64bit()\n\t{\n\t\treturn intval(\"9223372036854775807\") === 9223372036854775807 ? true: false;\n\t}", "public function getTimeInMillis($a = null)\n {\n throw new NotImplementedException(__METHOD__);\n }", "function _getFormattedTimestamp()\n {\n return gmdate(\"Y-m-d\\TH:i:s.\\\\0\\\\0\\\\0\\\\Z\", time());\n }", "function TimeToBase62Guid($time = '')\n {\n # Define $time as `Y-m-d H:i:s.u` format while the time string is empty (by default)\n if ($time == '')\n {\n $time = date('Y-m-d H:i:s.u');\n }\n\n # Remove quotation marks in the inputted time string\n $time = str_replace('\"', '', $time);\n $time = str_replace(\"'\", '', $time);\n\n # Append default microsecond value while there is no microsecond part in the inputted time string\n if (preg_match('/^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}$/', $time))\n {\n $time .= '.000000';\n }\n else\n {\n # Return null while the inputted time string is not match neither `Y-m-d H:i:s` nor `Y-m-d H:i:s.u` format\n if (!preg_match('/^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}\\.\\d{1,6}$/', $time))\n {\n return null;\n }\n }\n\n # Divide the time string as second-and-longer and microsecond part\n $date = explode('.', $time)[0];\n $microtime = explode('.', $time)[1];\n\n # Convert the second-and-longer part to hexadecimal timestamp\n $timestampDec = strtotime($date);\n $timestampHex = dechex($timestampDec);\n\n # Append 0 to the microsecond part to make it 6-digit, converting it to hexadecimal, and prepend 0 to 1 to make it 6-digit again\n $microtimeDec = str_pad($microtime, 6, '0', STR_PAD_RIGHT);\n $microtimeHex = str_pad(dechex($microtimeDec), 6, '0', STR_PAD_LEFT);\n\n # Combine the two hexadecimal time string\n $prototHex = $timestampHex . $microtimeHex;\n\n # Convert the hexadecimal time string to base 62\n $base62 = gmp_strval(gmp_init($prototHex, 16), 62);\n\n # Prepend 0 to the base 62 time string to make it 10-digit\n $base62 = str_pad($base62, 10, '0', STR_PAD_LEFT);\n\n return $base62;\n }", "function tstotime($timestamp){\n return date(\"Y-m-d H:i:s\", $timestamp);\n}", "function timestamp_from_mysql($timestamp)\n{\n\tereg (\"([0-9]{2,4})[^0-9]([0-9]{1,2})[^0-9]([0-9]{1,2})\", $timestamp, $regs);\n\tereg (\"([0-9]{2,4})[^0-9]([0-9]{1,2})[^0-9]([0-9]{1,2})[^0-9]([0-9]{1,2})[^0-9]([0-9]{1,2})[^0-9]([0-9]{1,2})\", $timestamp, $regs);\n\n\tif (sizeof($regs)>1)\n\t{\n\t\tif (sizeof($regs)>4)\n\t\t{\n\t\t\t$date=mktime($regs[4],$regs[5],$regs[6],$regs[2],$regs[3],$regs[1]);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$date=mktime(0,0,0,$regs[2],$regs[3],$regs[1]);\n\t\t}\n\t}\n\telse\n\t{\n\t\t$date=0;\n\t}\n\treturn $date;\n}", "static function getTimeInMs() {\n\t\treturn round(microtime(true) * 1000);\n\t}", "public static function unix_time($timestamp, ORM $object = NULL)\n {\n return (int) $timestamp * 1000;\n }", "public function getTimestampUnix()\r\n {\r\n if ($this->month && $this->day && $this->year)\r\n {\r\n return mktime($this->hour, $this->minute, $this->second, $this->month, $this->day, $this->year);\r\n }\r\n else\r\n {\r\n return null;\r\n }\r\n }", "public static function nowInMs(): int\n {\n return ceil(microtime(true) * 1000);\n }", "public function getTime() : int\n {\n $eventTime = $this->getTimeStamp();\n $eventStartTime = static::getStartTime();\n \n return number_format((($eventTime - $eventStartTime) * 1000), 0, '', '');\n \n }", "function unix_time_to_win_time($unix_time) {\n $win_time = ($unix_time + 11644477200) * 10000000;\n return $win_time;\n }", "function lastModifiedTimestamp(): int;", "public static function generateHash($timestamp = null)\n {\n if ($timestamp === null) {\n $timestamp = strtotime(\"now\");\n }\n return base_convert($timestamp, 10, 36);\n }", "public static function getRealTimestamp($date){\n\t\t$dateObject = new Date($date);\n\t\t$hour = substr($date, 11, 2);\n\t\t$minutes = substr($date, 14, 2);\n\t\t$seconds = substr($date, 17, 2);\n\t\treturn mktime($hour, $minutes, $seconds, $dateObject->getMonth(), $dateObject->getDay(), $dateObject->getYear());\n\t}", "public function convertMysqlToJSTimestamp($mysqlTimestamp){\n return strtotime($mysqlTimestamp)*1000;\n }", "public function getLastTimestamp()\n\t{\n\t\tif (!$this->isFlv())\n\t\t\treturn 0;\n\t\t\t\n\t\tfseek($this->fh, -4 , SEEK_END); // go back 4 bytes\n\t\t\n\t\t$prev_tag_size_raw = fread ($this->fh, 4);\n\t\t$tag_size = unpack(\"N\", $prev_tag_size_raw);\n\t\t\n\t\t// go back 4 bytes AND the size of the tag + 4 bytes to get to the timestamp\n\t\tfseek ($this->fh, -$tag_size[1], SEEK_END);\n\t\t\n\t\t$data = fread ($this->fh, 4);\n\t\t$data = $data[3].substr($data, 0, 3);\n\t\t$res = unpack(\"N\", $data);\n\t\treturn $res[1];\n\t}", "public function getTimestamp();", "public function getTimestamp();", "public function getTimestamp();", "function mysql_timestamp(): string {\n\treturn date('Y-m-d H:i:s');\n}", "function timeStamp( $returnNow = false )\r\n {\r\n if ( $returnNow == true )\r\n return mktime();\r\n else\r\n return $this->hour() * 3600 + $this->minute() * 60 + $this->second();\r\n }", "function getTime() {\n list($usec, $sec) = explode(\" \", microtime());\n return ((float)$usec + (float)$sec);\n}", "function time_millis(): int\n {\n return (int)round(microtime(true) * 1000);\n }", "function timestamp2utime($string2format) {\n \t\treturn mktime(substr($string2format, 8,2), substr($string2format, 10, 2), substr($string2format, 12, 2), substr($string2format, 4,2), substr($string2format, 6, 2), substr($string2format, 0, 4));\n \t}", "function dateYMD_toTimestamp($strDate) {\n $date = new DateTime($strDate);\n return $date->getTimestamp();\n}", "function nowTS()\n{\n $tz = new DateTimeZone('UTC');\n $time = new DateTime('now', $tz);\n return $time->getTimestamp();\n}", "public function getTime(): int;", "public function getTime(): int;", "public function getTimestamp()\n {\n return time();\n }", "function shadow_from_unixtime($t=null) {\n if($t === null)\n $t = time();\n\n return (int)($t / 24 / 60 / 60);\n}", "public static function currentTimeMillis()\n {\n return microtime(true) * 10000;\n }" ]
[ "0.6679362", "0.6639763", "0.6548307", "0.6511807", "0.63670963", "0.61830145", "0.6163288", "0.61585927", "0.60013014", "0.59293145", "0.585325", "0.5848706", "0.5835494", "0.5819363", "0.57622296", "0.57356197", "0.57221824", "0.57064867", "0.5705501", "0.56942016", "0.568465", "0.56727", "0.56701803", "0.565035", "0.56443614", "0.56289583", "0.56289583", "0.56142133", "0.56141347", "0.5612857", "0.56074184", "0.5589108", "0.5588111", "0.55804974", "0.5569974", "0.556861", "0.5563733", "0.5548915", "0.5539853", "0.54993296", "0.54498917", "0.5439416", "0.5433317", "0.5430296", "0.5429024", "0.5412219", "0.5407394", "0.5404271", "0.5403743", "0.54022974", "0.539414", "0.5382463", "0.53722805", "0.5369954", "0.5365756", "0.5364534", "0.53636575", "0.53618276", "0.53613997", "0.5347149", "0.53352284", "0.53277284", "0.5307222", "0.530662", "0.5296848", "0.529157", "0.5288273", "0.52872807", "0.5286403", "0.527967", "0.5276036", "0.526811", "0.52531403", "0.52528226", "0.5249615", "0.5245943", "0.52325714", "0.5229229", "0.5218719", "0.5206841", "0.5203543", "0.5201134", "0.51872635", "0.5179325", "0.5170596", "0.516166", "0.516166", "0.516166", "0.51604635", "0.5154781", "0.51547605", "0.5151243", "0.5143412", "0.5143312", "0.5135727", "0.51303077", "0.51303077", "0.5117481", "0.51152474", "0.51128364" ]
0.58670133
10
Reads the data returned from the timeserver This will return an array with binary data listing:
protected function _read() { $flags = ord(fread($this->_socket, 1)); $info = stream_get_meta_data($this->_socket); if ($info['timed_out'] === true) { fclose($this->_socket); throw new Zend_TimeSync_Exception('could not connect to ' . "'$this->_timeserver' on port '$this->_port', reason: 'server timed out'"); } $result = [ 'flags' => $flags, 'stratum' => ord(fread($this->_socket, 1)), 'poll' => ord(fread($this->_socket, 1)), 'precision' => ord(fread($this->_socket, 1)), 'rootdelay' => $this->_getFloat(fread($this->_socket, 4)), 'rootdispersion' => $this->_getFloat(fread($this->_socket, 4)), 'referenceid' => fread($this->_socket, 4), 'referencestamp' => $this->_getTimestamp(fread($this->_socket, 8)), 'originatestamp' => $this->_getTimestamp(fread($this->_socket, 8)), 'receivestamp' => $this->_getTimestamp(fread($this->_socket, 8)), 'transmitstamp' => $this->_getTimestamp(fread($this->_socket, 8)), 'clientreceived' => microtime(true) ]; $this->_disconnect(); return $result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getRawData()\n\t{\n\n\t\treturn @file_get_contents($this->tmpFileName);\n\n\t}", "public function getRawData() {}", "public function getRawData();", "public function getRawData();", "protected function _getData()\n {\n $data = Transform::toUInt8($this->_format);\n foreach ($this->_events as $timestamp => $type)\n $data .= Transform::toUInt8($type) . Transform::toUInt32BE($timestamp);\n return $data;\n }", "public function read(){\n \treturn ser_read();\n }", "function _PacketRead() {\n\t\t$retarray = array();\n\n\t\t//Fetch the packet size\n\t\twhile ($size = @fread($this->_Sock,4)) {\n\t\t\t$size = unpack('V1Size',$size);\n\t\t\t//Work around valve breaking the protocol\n\t\t\tif ($size[\"Size\"] > 4096) {\n\t\t\t\t//pad with 8 nulls\n\t\t\t\t$packet = \"\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\".fread($this->_Sock,4096);\n\t\t\t} else {\n\t\t\t\t//Read the packet back\n\t\t\t\t$packet = fread($this->_Sock, $size[\"Size\"]);\n\t\t\t}\n\n\t\t\tarray_push($retarray,unpack(\"V1ID/V1Response/a*S1/a*S2\",$packet));\n\t\t}\n\t\treturn $retarray;\n\t}", "function query_time_server($timeserver, $socket)\n {\n $fp = fsockopen($timeserver, $socket, $err, $errstr, 5);\n # parameters: server, socket, error code, error text, timeout\n if ($fp) {\n fputs($fp, \"\\n\");\n $timevalue = fread($fp, 49);\n fclose($fp); # close the connection\n } else {\n $timevalue = \" \";\n }\n\n $ret = [];\n $ret[] = $timevalue;\n $ret[] = $err; # error code\n $ret[] = $errstr; # error text\n return $ret;\n }", "function getRawData()\n{\n global $dataFileName;\n if ( ! file_exists($dataFileName)) {\n return [];\n }\n $file = fopen($dataFileName, 'r');\n $data = [];\n while ($row = fgets($file)) {\n $data[] = $row;\n }\n\n return $data;\n}", "public static function get_raw_data()\n {\n }", "public static function get_raw_data()\n {\n }", "public function getReturnValues()\n\t{\n\t\t$session = Yii::$app->session;\n\t\t$time = $session->get('screenshotid');\n\t\t$module = Yii::$app->moduleManager->getModule('performance_insights');\n\t\t$moduleBasePath = $module->getBasePath();\n\t\t$imgUrl = Yii::$app->getModule('performance_insights')->getAssetsUrl() . '/screenshots/' . 'screenshot_' . $time . '.png';\n\t\t$inp = $this->readFromLocalFile();\n\t\t$tempArray = json_decode($inp,true);\n\t\t$timeInSec = $this->convertToSeconds($tempArray['fullLoadedTime']);\n\t\t$pageSize = $this->convertToReadableSize($tempArray['responseLength']);\n\t\treturn [\n\t\t\t'timeInSec' => $timeInSec,\n\t\t\t'pageSize' => $pageSize,\n\t\t\t'imgUrl' => $imgUrl\n\t\t];\n\t}", "public function getIncomingData() {}", "public function read(): array;", "public function read();", "public function read();", "public function read();", "public function read();", "public function read();", "public function read();", "public function read();", "public function read();", "public function read();", "public function read();", "public function read();", "public function read();", "public static function getRawData()\n {\n return self::$rawData;\n }", "function getresp()\r\n {\r\n \tif (!$this->_socket || !is_resource($this->_socket)) {\r\n \t\treturn FALSE;\r\n \t}\r\n \t\r\n \t$response = \"\";\r\n\t\t$res = fread($this->_socket, 8000);\r\n\t\t preg_match_all('/^\\d{3}/m', $res, $response);\r\n\t\t/*do {\r\n \t\t$res = fgets($this->_socket, 512);\r\n \t\t$response .= $res;\r\n \t} while (substr($res, 3, 1) != \" \");\r\n \t*/\r\n\t\t\r\n \t//$this->debug(str_replace(\"\\r\\n\", \"\\n\", $response));\r\n \t$this->debug(str_replace(\"\\r\\n\", \"\\n\", $res));\r\n \treturn $response[0];\r\n }", "public function readAll() {\n //$max_len = \\filesize($this->file->getAbsolutePath());\n //return $this->readString($max_len);\n return \\file_get_contents($this->file->getAbsolutePath());\n }", "function getData() {\n\t\treturn file_get_contents($this->getFile());\n\t}", "public function get_raw_data()\n {\n }", "public function get_raw_data()\n {\n }", "public static function dataExtractMicroseconds() {\n\t\treturn array(\n\t\t\t\tarray(1373462199, 123456, 'America/New_York', '2013-07-10T09:16:39-04:00'),\n\t\t\t\tarray(1373462199, 0, 'America/New_York', '2013-07-10T09:16:39-04:00'),\n\t\t\t\tarray(1383458400, 234500,'America/New_York', '2013-11-03T01:00:00-05:00'),\n\t\t\t\tarray(1383458399, 343400,'America/New_York', '2013-11-03T01:59:59-04:00'),\n\t\t\t\t);\n\t}", "protected function _getData()\n {\n return\n substr(Transform::toUInt32BE($this->_bufferSize), 1, 3) .\n Transform::toInt8($this->_infoFlags) .\n Transform::toInt32BE($this->_offset);\n }", "function get_data() {\n\t\t$stats = array();\n\t\t$fp = fopen('vrecohack.log', 'r');\n\t\twhile (($line = fgets($fp)) !== false) {\n\t\t\t// print_r($line);\n\t\t\tassert(strpos($line, '===START===') !== false);\n\t\t\t$request = unserialize(fgets($fp));\n\t\t\t# skip what we don't need yet\n\t\t\tfor ($i = 0; $i < 6; $i++) {\n\t\t\t\tfgets($fp);\n\t\t\t\t// $line = fgets($fp);\n\t\t\t\t// if (isset($line['REMOTE_ADDR'])) {\n\t\t\t\t// \t$ip = $line['REMOTE_ADDR'];\n\t\t\t\t// }\n\t\t\t}\n\t\t\tif (isset($request['action'])) {\n\t\t\t\t$step = $request['step'];\n\t\t\t\t$choice = $request['choice'];\n\t\t\t\t$stats[$step][$choice] += 1;\n\t\t\t}\n\t\t}\n\t\tfclose($fp);\n\t\treturn $stats;\n\t}", "public function readCache()\n {\n return $this->readFile()->unpackData();\n }", "function read()\n\t{\n\t\t$content = $this->storage->read();\n\t\t$data = array();\n\t\tforeach($content['data'] as $key=>$value) {\n\t\t\t$storage = new \\Zentric\\Storage(array(\n\t\t\t\t'key' => $key\n\t\t\t\t, 'folder' => STORAGE\n\t\t\t\t, 'driver' => 'Array'\t\t\t\n\t\t\t));\t\t\t\n\t\t\t$data[] = $storage->read();\t\t\t \n\t\t}\n\t\treturn $data;\n\t}", "protected function readDevice()\n {\n $trame = '';\n $i=0;\n while (strlen($trame)==0 && $i < 3) {\n $trame = $this->readTrame();\n $i++;\n }\n\n echo date('Y-m-d H:i:s T').\" Read attempt : \".$i.\" for \".strlen($trame).\" octet(s)\\n\";\n\n $trame = chop(substr($trame, 1, -1)); // on supprime les caracteres de debut et fin de trame\n\n $messages = explode(chr(10), $trame); // on separe les messages de la trame\n $new = [];\n foreach ($messages as $msg) {\n $ligne = explode(' ', $msg, 3);\n if (count($ligne)<2) {\n continue;\n }\n $new[$ligne[0]] = $ligne[1];\n }\n return $new;\n }", "public function getData()\n {\n $data = $this->data;\n if ($this->cursor > 0) {\n $data .= $this->workingByte->getData();\n }\n return $data;\n }", "public function getData()\n {\n $data = json_decode(file_get_contents(static::INPUT_STREAM), true);\n\n if ($data) {\n return array_merge($this->data->getAll(), $data);\n }\n\n if ($this->isMethod(self::GET)) {\n return array_merge($this->data->getAll(), $_GET);\n }\n\n if ($this->isMethod(self::POST)) {\n return array_merge($this->data->getAll(), $_POST);\n }\n\n return [];\n }", "function ReadData($targetstring, &$map, &$item)\n\t{\n\t\t$data[IN] = NULL;\n\t\t$data[OUT] = NULL;\n\t\t$data_time=0;\n\t\t$itemname = $item->name;\n\n\t\t$matches=0;\n\n\t\tif(preg_match(\"/^time:(.*)$/\",$targetstring,$matches))\n\t\t{\n\t\t\t$timezone = $matches[1];\n\t\t\t$timezone_l = strtolower($timezone);\n\t\t\t\n\t\t\t$timezone_identifiers = DateTimeZone::listIdentifiers();\n\t\t\t\n\t\t\tforeach ($timezone_identifiers as $tz)\n\t\t\t{\n\t\t\t\tif(strtolower($tz) == $timezone_l)\n\t\t\t\t{\t\t\t\t\n\t\t\t\t\twm_debug (\"Time ReadData: Timezone exists: $tz\\n\");\n\t\t\t\t\t$dateTime = new DateTime(\"now\", new DateTimeZone($tz));\n\t\t\t\t\t\n\t\t\t\t\t$item->add_note(\"time_time12\",$dateTime->format(\"h:i\"));\n\t\t\t\t\t$item->add_note(\"time_time12ap\",$dateTime->format(\"h:i A\"));\n\t\t\t\t\t$item->add_note(\"time_time24\",$dateTime->format(\"H:i\"));\n\t\t\t\t\t$item->add_note(\"time_timezone\",$tz);\n\t\t\t\t\t$data[IN] = $dateTime->format(\"H\");\n\t\t\t\t\t$data_time = time();\n\t\t\t\t\t$data[OUT] = $dateTime->format(\"i\");\n\t\t\t\t\t$matches++;\n\t\t\t\t}\n\t\t\t}\t\n\t\t\tif($matches==0)\n\t\t\t{\n\t\t\t\twm_warn (\"Time ReadData: Couldn't recognize $timezone as a valid timezone name [WMTIME02]\\n\"); \n\t\t\t}\t\t\t\n\t\t}\n\t\telse {\n\t\t\t// some error code to go in here\n\t\t\twm_warn (\"Time ReadData: Couldn't recognize $targetstring \\n\"); \n\t\t}\t\t\n\t\t\n\t\twm_debug (\"Time ReadData: Returning (\".($data[IN]===NULL?'NULL':$data[IN]).\",\".($data[OUT]===NULL?'NULL':$data[OUT]).\",$data_time)\\n\");\n\t\n\t\treturn( array($data[IN], $data[OUT], $data_time) );\n\t}", "public function getResponseData();", "public function getData()\n {\n return array(\n 'time' => bcsub(self::getMicroTime() , $this->startTime, 4),\n 'memory' => round(memory_get_usage() / 1024 / 1024, 4),\n 'files' => count(get_included_files()),\n 'classes' => count(get_declared_classes())\n );\n }", "public function read_master() : array\n {\n $buffers = array();\n\n while ($buff = fread($this->connection, 16384)) {\n $buffers[] = $buff;\n }\n\n return $buffers;\n }", "public function get_raw_data() {\n\t\treturn $this->raw_data;\n\t}", "public function stream_stat(): array\n {\n return (array)$this->content;\n }", "public function getData()\n {\n return array(\n 'status' => self::statusOkay,\n 'resource' => $this->getResourceName(),\n 'description' => 'Server Swap File Usage',\n 'data' => $this->getSwapData()\n );\n }", "public function getDetails() {\r\n \r\n $mckey = sprintf(\"%s;details\", $this->mckey); \r\n \r\n if (!$data = $this->Memcached->fetch($mckey)) {\r\n if (empty($this->mime) && file_exists(RP_DOWNLOAD_DIR . $this->filepath)) {\r\n $finfo = finfo_open(FILEINFO_MIME_TYPE); \r\n $this->mime = finfo_file($finfo, RP_DOWNLOAD_DIR . $this->filepath);\r\n }\r\n \r\n $mime = explode(\"/\", $this->mime); \r\n \r\n $data = array(\r\n \"type\" => ucwords($mime[0]),\r\n \"size\" => $this->filesize,\r\n \"downloads\" => $this->hits,\r\n \"added\" => array(\r\n \"absolute\" => $this->Date->format(\"Y-m-d g:i:s a\"),\r\n \"relative\" => time2str($this->Date->getTimestamp())\r\n ),\r\n \"thumbnail\" => $this->getThumbnail(),\r\n \"video\" => $this->getHTML5Video()\r\n );\r\n \r\n $this->Memcached->save($mckey, $data, strtotime(\"+12 hours\"));\r\n }\r\n \r\n return $data;\r\n }", "public function readAll( ) {\n\n\t\treturn $this->_data;\n\t}", "public function retrieveServerTime(){\n //http://www.thetvdb.com/api/Updates.php?type=none\n\t \n\t if(!$this->t_mirrors){\n\t\t$this->retrieveMirrors;\n\t }\n\t \n $url = $this->t_mirrors[0].'/api/Updates.php?type=none';\n \n //$xmlStr=$this->curl_get_file_contents($url);\n\t $c = curl_init();\n curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);\n curl_setopt($c, CURLOPT_URL, $url);\n $xmlStr = curl_exec($c);\n curl_close($c);\n \n $xmlServerTime = new SimpleXMLElement($xmlStr);\n return $xmlServerTime->Time;\n }", "public function getData()\n {\n return array(\n 'status' => self::statusOkay,\n 'resource' => $this->getResourceName(),\n 'description' => 'Server Load Average',\n 'data' => $this->getLoadData()\n );\n }", "public static function GetDataServer ()\n {\n\t\treturn self::GetServer('forceDataServer', 'data');\n }", "public function read(): array\n {\n }", "public function read(): array\n {\n }", "protected function read()\n {\n $sessionId = $this->readInt();\n $totalClusters = $this->readShort();\n $clusters = [];\n for ($i = 0; $i < $totalClusters; $i++) {\n $clusters[] = [\n 'name' => $this->readString(),\n 'id' => $this->readShort(),\n 'type' => $this->readString(),\n 'dataSegment' => $this->readShort()\n ];\n }\n return [\n 'sessionId' => $sessionId,\n 'clusters' => $clusters,\n 'servers' => $this->readSerialized(),\n 'release' => $this->readString()\n\n ];\n }", "function readTimestamp(): int;", "public function readStream();", "public function getData()\n {\n return $this->raw;\n }", "public function getData()\n\t{\n\t\t$data = '';\n\t\tif($this->beforeRead())\n\t\t{\n\t\t\t$filename = $this->getStorageFile();\n\t\t\t\n\t\t\tif($this->enablePersistentData===true and isset(self::$persistentData[$filename]))\n\t\t\t{\n\t\t\t\treturn self::$persistentData[$filename];\n\t\t\t}\t\t\n\t\t\t\n\t\t\tif(!file_exists($filename) or filesize($filename)===0)\n\t\t\t{\n\t\t\t\treturn '';\n\t\t\t}\n\t\t\t\n\t\t\t$fp = fopen($filename,'rb');\n\t\t\tself::$persistentData[$filename] = $data = fread($fp,filesize($filename));\n\t\t\tfclose($fp);\n\t\t\t$this->afterRead();\n\t\t}\n\t\treturn $data;\n\t}", "public static function getData() {}", "public function getRawData() {\n return $this->rawData;\n }", "public function getData(): array;", "public function getData(): array;", "public function getData(): array;", "public function getData(): array;", "public function getData($path) {\n\t\tif (!$this->storage->isReadable($path)) {\n\t\t\t//cant read, nothing we can do\n\t\t\t\\OCP\\Util::writeLog('OC\\Files\\Cache\\Scanner', \"!!! Path '$path' is not readable !!!\", \\OCP\\Util::DEBUG);\n\t\t\treturn null;\n\t\t}\n\t\t$data = array();\n\t\t$data['mimetype'] = $this->storage->getMimeType($path);\n\t\t$data['mtime'] = $this->storage->filemtime($path);\n\t\tif ($data['mimetype'] == 'httpd/unix-directory') {\n\t\t\t$data['size'] = -1; //unknown\n\t\t} else {\n\t\t\t$data['size'] = $this->storage->filesize($path);\n\t\t}\n\t\t$data['etag'] = $this->storage->getETag($path);\n\t\t$data['storage_mtime'] = $data['mtime'];\n\t\treturn $data;\n\t}", "protected function getData($uri) {\n\n $path = $this->getFilenameForUri($uri);\n if (!file_exists($path)) return array();\n\n // opening up the file, and creating a shared lock\n $handle = fopen($path,'r');\n flock($handle,LOCK_SH);\n $data = '';\n\n // Reading data until the eof\n while(!feof($handle)) {\n $data.=fread($handle,8192);\n }\n\n // We're all good\n fclose($handle);\n\n // Unserializing and checking if the resource file contains data for this file\n $data = unserialize($data);\n if (!$data) return array();\n return $data;\n\n }", "public function getData() : array;", "public function getData() : array;", "public function getLrcData()\n\t{\n\t\t$link=$this->getLrc();\n\t\t$data=self::curl_get_contents($link);\n\t\treturn $data;\n\t}", "public function getData() {\n\t\t$this->validate();\n\n\t\t// add file header record\n\t\t$data = $this->header->getData();\n\n\t\t// add file batch records\n\t\tforeach ($this->batches as $batch) {\n\t\t\t$data .= $batch->getData();\n\t\t}\n\t\t// add file control record.\n\t\t$data .= $this->control->getData();\n\n\t\treturn $data;\n\t}", "public function get_data(): array;", "public function get_data(): array;", "public function getArray()\n{\n\t$ts=$this->getTimestamp();return array('year'=>date('Y',$ts),'month'=>date('m',$ts),'day'=>date('d',$ts),'hour'=>date('H',$ts),'minute'=>date('i',$ts),'second'=>date('s',$ts));\n}", "public function getServerList(): array\n {\n $replace = array(\n \"\\xFF\\xFF\\xFF\\xFFgetserversResponse\\n\",\n \"\\\\EOF\",\n \"\\\\EOT\"\n );\n\n $servers = array();\n\n $this->write(\"\\xFF\\xFF\\xFF\\xFFgetservers \".$this->protocol.\" full empty\");\n $data = $this->read_master();\n\n foreach ($data as $row) {\n $row = str_replace($replace, \"\", $row);\n $row = explode(\"\\x5c\", $row);\n foreach ($row as $server) {\n if (strlen($server) == 6) {\n $serverInfo = unpack(\"Nip/nport\", $server);\n $servers[] = new Server(long2ip($serverInfo[\"ip\"]), $serverInfo[\"port\"]);\n }\n }\n }\n\n return $servers;\n }", "public function getData()\n {\n return array(\n\n );\n }", "public function getDatastreams();", "public function getData() {\n return $this->parse()['data'];\n }", "private function getRTSListing(){\n\t\t\t\t\n\t\t// gather movie data\n\t\t$movie_data = json_decode(json_encode((array) simplexml_load_string($this->get_data('http://72352.formovietickets.com:2235/showtimes.xml'))), 1);\n\n\t\treturn $movie_data;\t\t\t\t\t\n\t}", "public function getData () : array {\n\t\treturn $this->data;\n\t}", "public function readBuffer() {\n\t\treturn ob_get_clean();\n\t}", "protected function getData($key)\n {\n $path = $this->path($key);\n if (!$this->fileSystem->isFile($path)) {\n return ['data' => null, 'time' => null];\n }\n\n $content = $this->fileSystem->get($path);\n $expire = substr($content, 0, 10);\n\n if (time() > $expire) {\n $this->delete($key);\n return ['data' => null, 'time' => null];\n }\n\n $data = unserialize(substr($content, 10));\n\n\n return ['data'=>$data, 'time' => ($expire - time())];\n }", "function read()\n {\n $response_content = '';\n if ($this->headers['Transfer-Encoding'] == 'chunked')\n {\n while ($chunk_length = hexdec(fgets($this->socket)))\n {\n $response_content_chunk = '';\n $read_length = 0;\n\n while ($read_length < $chunk_length)\n {\n $response_content_chunk .= fread($this->socket, $chunk_length - $read_length);\n $read_length = strlen($response_content_chunk);\n }\n\n $response_content .= $response_content_chunk;\n fgets($this->socket);\n }\n }\n else\n {\n while (!feof($this->socket))\n {\n $response_content .= fgets($this->socket, 128);\n }\n }\n return chop($response_content);\n fclose($this->socket);\n }", "private function readFileAsArray()\n {\n return file($this->getFolder() . $this->filename);\n }", "public function Read(){\n\t\tif($this->file_type == 'csv'){\n\t\t\t$lines = explode( \"\\n\", file_get_contents( $this->getBasePath().'/'.$this->getFilePath()) );\n\t\t\t$headers = str_getcsv( array_shift( $lines ) );\n\t\t\t$data = array();\n\t\t\tforeach ( $lines as $line ) {\n\t\t\t\t$row = array();\n\t\t\t\tforeach ( str_getcsv( $line ) as $key => $field )\n\t\t\t\t\t$row[ $headers[ $key ] ] = $field;\n\t\t\t\t$row = array_filter( $row );\n\t\t\t\t$data[] = $row;\n\t\t\t}\n\t\t}\n\t\tif($this->file_type == 'json'){\n\t\t\t$string = file_get_contents($this->getBasePath().'/'.$this->getFilePath());\n\t\t\t$data = json_decode($string, true);\n\n\t\t}\n\t\n\t\treturn $data;\n\n\t }", "abstract function getdata();", "public function getBytes()\n {\n fseek($this->_fd, 0, SEEK_SET);\n return stream_get_contents($this->_fd);\n }", "private function getLoadData()\n {\n $load = sys_getloadavg();\n return array(\n 'last_one_minute' => $load[0],\n 'last_five_minutes' => $load[1],\n 'last_fifteen_minutes' => $load[2]\n );\n }", "public function read_string() { return $this->read_bytes(); }", "protected abstract function getData(): array;", "public function timeList(){\n\t echo json_encode($this->sched_time->fetchData());\n\t}", "public function Data()\n {\n return $this->parseobject($this->content);\n }", "public function get_time(){\n return json_encode([\n \"data\" => Time::filter(),\n \"items_length\" => Time::filter(true)\n ]);\n }", "private function readTicket()\n {\n return json_decode($this->ticket->getBody()->getContents());\n }", "public function read()\n\t{\n\t\treturn file_get_contents($this->getPath());\n\t}", "abstract protected function get_data($start_time, $end_time);", "public function getData()\n {\n \treturn file_get_contents($this->config['location']);\n }", "public function getAllData() {\n $allData = parent::getAllData();\n $this->stream->close();\n return $allData;\n }", "public function getContents() {\n return substr($this->data, 0, $this->getPayloadStartingByte() + $this->getPayloadLength());\n }", "public function getData()\n {\n return self::$_arData;\n }" ]
[ "0.6561881", "0.63029784", "0.6301868", "0.6301868", "0.62097585", "0.6203651", "0.6197023", "0.606423", "0.59713906", "0.58960503", "0.58960503", "0.5822625", "0.580784", "0.57937336", "0.5791163", "0.5791163", "0.5791163", "0.5791163", "0.5791163", "0.5791163", "0.5791163", "0.5791163", "0.5791163", "0.5791163", "0.5791163", "0.5791163", "0.5786269", "0.57833743", "0.5723301", "0.571819", "0.5717672", "0.57176214", "0.56735617", "0.56632966", "0.5651209", "0.56352764", "0.56326896", "0.56026936", "0.55898744", "0.5585495", "0.5548762", "0.55185086", "0.5517765", "0.54853874", "0.5474404", "0.54743326", "0.54727024", "0.54669327", "0.54600346", "0.5456464", "0.5455671", "0.5448081", "0.54475105", "0.54475105", "0.54371727", "0.54337555", "0.5426974", "0.54210186", "0.53944445", "0.5389512", "0.5387529", "0.5365961", "0.5365961", "0.5365961", "0.5365961", "0.5362305", "0.5355766", "0.53504217", "0.53504217", "0.53435045", "0.5342888", "0.5341403", "0.5341403", "0.53405756", "0.53396285", "0.5336725", "0.53281593", "0.53198665", "0.5309171", "0.52977484", "0.5278152", "0.5265725", "0.5263263", "0.5257857", "0.52522147", "0.524124", "0.5235501", "0.5232354", "0.52301234", "0.52276504", "0.52111846", "0.5211119", "0.5210122", "0.5207618", "0.5207236", "0.5205002", "0.520427", "0.5203065", "0.52029884", "0.52009547" ]
0.6907544
0
Sends the NTP packet to the server
protected function _write($data) { $this->_connect(); fwrite($this->_socket, $data); stream_set_timeout($this->_socket, Zend_TimeSync::$options['timeout']); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function doNTP($text = null)\n {\n if (strtolower($this->input) != \"ntp\") {\n $this->ntp_message = $this->ntp_response;\n $this->response = $this->ntp_response;\n return;\n }\n\n // \"None\" agent command received.\n if ($this->agent_input == null) {\n $token_thing = new Tokenlimiter($this->thing, \"ntp\");\n\n $dev_overide = null;\n if (\n $token_thing->thing_report[\"token\"] == \"ntp\" or\n $dev_overide == true\n ) {\n // From example\n $timeserver = \"ntp.pads.ufrj.br\";\n // Dev neither of these two are working.\n $timeserver = \"time.nrc.ca\";\n $timeserver = \"time.chu.nrc.ca\";\n // This is an older protocol version.\n $timeserver = \"time4.nrc.ca\";\n\n $timercvd = $this->query_time_server($timeserver, 37);\n\n $this->time_zone = \"America/Vancouver\";\n\n //if no error from query_time_server\n if (!$timercvd[1]) {\n $timevalue = bin2hex($timercvd[0]);\n $timevalue = abs(\n HexDec(\"7fffffff\") -\n HexDec($timevalue) -\n HexDec(\"7fffffff\")\n );\n $tmestamp = $timevalue - 2208988800; # convert to UNIX epoch time stamp\n $epoch = $tmestamp;\n // $datum = date(\"Y-m-d H:i:s\",$tmestamp - date(\"Z\",$tmestamp)); /* incl time zone offset */\n\n // $d = date(\"Y-m-d H:i:s\",$tmestamp - date(\"Z\",$tmestamp)); /* incl time zone offset */\n\n //$datum = $dt = new \\DateTime($tmestamp, new \\DateTimeZone(\"UTC\"));\n $datum = new \\DateTime(\"@$epoch\", new \\DateTimeZone(\"UTC\"));\n\n //$datum->setTimezone($tz);\n\n // $dt = new \\DateTime($prediction['date'], new \\DateTimeZone(\"UTC\"));\n\n $datum->setTimezone(new \\DateTimeZone($this->time_zone));\n\n $m = \"Time check from time server \" . $timeserver . \". \";\n\n $m =\n \"In the timezone \" .\n $this->time_zone .\n \", it is \" .\n $datum->format(\"l\") .\n \" \" .\n $datum->format(\"d/m/Y, H:i:s\") .\n \". \";\n } else {\n $m = \"Unfortunately, the time server $timeserver could not be reached at this time. \";\n $m .= \"$timercvd[1] $timercvd[2].\\n\";\n }\n\n $this->response = $m;\n\n // Bear goes back to sleep.\n $this->bear_message = $this->response;\n }\n } else {\n $this->bear_message = $this->agent_input;\n }\n }", "protected function _prepare()\n {\n $frac = microtime();\n $fracba = ($frac & 0xff000000) >> 24;\n $fracbb = ($frac & 0x00ff0000) >> 16;\n $fracbc = ($frac & 0x0000ff00) >> 8;\n $fracbd = ($frac & 0x000000ff);\n\n $sec = (time() + 2208988800);\n $secba = ($sec & 0xff000000) >> 24;\n $secbb = ($sec & 0x00ff0000) >> 16;\n $secbc = ($sec & 0x0000ff00) >> 8;\n $secbd = ($sec & 0x000000ff);\n\n // Flags\n $nul = chr(0x00);\n $nulbyte = $nul . $nul . $nul . $nul;\n $ntppacket = chr(0xd9) . $nul . chr(0x0a) . chr(0xfa);\n\n /*\n * Root delay\n *\n * Indicates the total roundtrip delay to the primary reference\n * source at the root of the synchronization subnet, in seconds\n */\n $ntppacket .= $nul . $nul . chr(0x1c) . chr(0x9b);\n\n /*\n * Clock Dispersion\n *\n * Indicates the maximum error relative to the primary reference source at the\n * root of the synchronization subnet, in seconds\n */\n $ntppacket .= $nul . chr(0x08) . chr(0xd7) . chr(0xff);\n\n /*\n * ReferenceClockID\n *\n * Identifying the particular reference clock\n */\n $ntppacket .= $nulbyte;\n\n /*\n * The local time, in timestamp format, at the peer when its latest NTP message\n * was sent. Contanis an integer and a fractional part\n */\n $ntppacket .= chr($secba) . chr($secbb) . chr($secbc) . chr($secbd);\n $ntppacket .= chr($fracba) . chr($fracbb) . chr($fracbc) . chr($fracbd);\n\n /*\n * The local time, in timestamp format, at the peer. Contains an integer\n * and a fractional part.\n */\n $ntppacket .= $nulbyte;\n $ntppacket .= $nulbyte;\n\n /*\n * This is the local time, in timestamp format, when the latest NTP message from\n * the peer arrived. Contanis an integer and a fractional part.\n */\n $ntppacket .= $nulbyte;\n $ntppacket .= $nulbyte;\n\n /*\n * The local time, in timestamp format, at which the\n * NTP message departed the sender. Contanis an integer\n * and a fractional part.\n */\n $ntppacket .= chr($secba) . chr($secbb) . chr($secbc) . chr($secbd);\n $ntppacket .= chr($fracba) . chr($fracbb) . chr($fracbc) . chr($fracbd);\n\n return $ntppacket;\n }", "function send_cntdwn_msg()\n{\n $current = new DateTime();\n $current->Sub(new Dateinterval(\"PT1H\"));\n\t$sqldate = $current->format(\"Y-m-d H:i:s\");\n $ipAddress = false;\n $stopparam = new TempPredictionStopParam($this->connector);\n $stopparam->build_id = $this->stopBuild->build_id;\n $send_count = 0;\n\n\n // Get IP to send message to - either last GPRS address in last hour or hard coded UDP receiver\n if ( $this->display_type == \"B\" )\n {\n $gprsStatus = new UnitStatus($this->connector);\n $gprsStatus->build_id = $this->stopBuild->build_id;\n $status = $gprsStatus->load(false, \" and message_time > '$sqldate'\");\n $status = $gprsStatus->load();\n if ( $status )\n {\n $ipAddress = $gprsStatus->ip_address;\n $connectTime = $gprsStatus->message_time;\n }\n }\n else\n {\n $stopparam->param_desc = \"ipAddress\";\n $status = $stopparam->load();\n if ( $status )\n {\n $ipAddress = $stopparam->ipAddress;\n $connectTime = $current->format(\"Y-m-d H:i:s\");\n }\n }\n\n if ( !$ipAddress )\n {\n $this->text .= \" - no current ip address for \".$this->stopBuild->build_code.\"\\n\";\n\t return false;\n }\n\n // Dont send if ip address has been assigned to unit more recently\n\tif ( $this->display_type == \"B\" ) \n {\n $gprsStatusDup = new UnitStatus($this->connector);\n $gprsStatusDup->ip_address = $ipAddress;\n $status = $gprsStatusDup->count(array(\"ip_address\"), \" and build_id != \".$this->stopBuild->build_id.\" AND message_time > '\".$connectTime.\"'\");\n //echo \" build_id != \".$this->stopBuild->build_id.\" AND message_time > '\".$connectTime.\"'\\n\";\n if ( $gprsStatusDup->selectCount > 0 )\n {\n $this->text .= \" sedncntdown: \".$this->stopBuild->build_code.\" ip $ipAddress / $connectTime is in use by another unit\";\n return false;\n }\n }\n\n\t$delivery = new PredictionDelivery($this->connector);\n\t$delivery->messageType = 0;\n\t$delivery->addressId = $this->stopBuild->build_code;\n\t$delivery->serviceCode = $this->service_code;\n\t$delivery->bay_no = $this->bay_no;\n\n\t$l_vehicle_code = $this->vehicle->vehicle_code;\n\t$l_build_code = $this->vehicleBuild->build_code;\n\t$l_build_id = $this->vehicleBuild->build_id;\n\n \n\n // Send unitId of 0 if ( $this is an autoroute\n\t// || $if ( $this is a CONT && $the vehicle is already expected at the stop for a REAL route.\n if ( $l_vehicle_code == \"AUT\" || $this->sch_rtpi_last_sent == \"P\" ) \n\t\t\t$delivery->unitId = 0;\n\telse\n {\n if ( !$this->vehicleBuild->build_code )\n {\n\t\t $this->text .= \"\tsend_cntdwn_msg: Failed to get build_code for vehicle_id \". $this->vehicle->vehice_code;\n\t\t\treturn false;\n }\n\t\telse \n {\n $delivery->unitId = $this->vehicleBuild->build_code;\n\t\t}\n\t}\n\n\t$delivery->journeyId = $this->pub_ttb_id;\n\n if ( $this->predictionParameters->countdown_dep_arr == \"A\" ) \n $time_string = $this->eta_last_sent;\n else\n $time_string = $this->etd_last_sent;\n\n $countdown_time_dt = DateTime::createFromFormat(\"Y-m-d H:i:s\", $time_string);\n\t$delivery->countdownTime = $countdown_time_dt->getTimestamp();\n\n\n $stopparam->param_desc = \"countdownMsgType\";\n\t$countdownType = 470;\n if ( $stopparam->load() && $stopparam->param_value )\n $countdownType = $stopparam->param_value;\n\n $stopparam->param_desc = \"destinationType\";\n\t$destinationColumn = \"dest_short1\";\n if ( $stopparam->load() && $stopparam->param_value )\n {\n if ( $stopparam->param_value == \"DEST50\" )\n $destinationColumn = \"dest_long\";\n }\n\n $destination = new Destination($this->connector);\n $destination->dest_id = $this->dest_id;\n if ( !$destination->load() )\n {\n $this->text .= \" Unable to fetch destination for id $this->dest_id\";\n }\n if ( !$destination->dest_short1 && $destination->dest_long ) $destination->dest_short1 = $destination->dest_long;\n if ( !$destination->dest_short1 && $destination->terminal_text ) $destination->dest_short1 = $destination->terminal_text;\n if ( !$destination->dest_long && $destination->dest_short1 ) $destination->dest_long = $destination->dest_short1;\n \n $destinationText = $destination->$destinationColumn;\n if ( $countdownType == 450 )\n $destinationText = substr($destinationText, 0, 15);\n\n $delivery->cntdwn_msg_ver = $countdownType;\n\n // Get vehicle and operator details\n $delivery->wheelchairAccess = 0;\n $delivery->operatorId = 0;\n if ( $this->vehicle->vehicle_id != 0 && $this->vehicle->vehicle_code != \"AUT\" )\n {\n // We have a rela vehicle tracking the prediction trip, get missing vehicle and operator details\n // so we can get operator loc_prefix - not sure why?\n if ( !$this->vehicle->load() )\n {\n $this->text .= \" Cant load vehicle for prediction\";\n return false;\n }\n\n $operator = new Operator($this->connector);\n $operator->operator_id = $this->vehicle->operator_id;\n if ( !$operator->load() )\n {\n $this->text .= \" Cant load operator for prediction\";\n return false;\n }\n $delivery->wheelchairAccess = $this->vehicle->wheelchair_access;\n $delivery->operatorId = $operator->loc_prefix;\n }\n\n\t// Get whether || $not an acknowledgment is currently required for\n\t// countdown messages.\n //echo \"TODO ackreqd\\n\";\n\t//$l_ack_reqd = $get_ack_reqd(450);\n\n $now = new DateTime();\n $delivery->id = 0;\n $delivery->messageType = $countdownType;\n $delivery->journey_fact_id = $this->journey_fact_id;\n $delivery->sequence = $this->sequencsequence;\n $delivery->send_time = $now->format(\"Y-m-d H:i:s\"); \n $delivery->pred_type = \"C\";\n $delivery->display_mode = $this->predictionParameters->countdown_dep_arr;\n $delivery->rtpi_eta_sent = $this->rtpi_eta_sent;\n $delivery->rtpi_etd_sent = $this->rtpi_etd_sent;\n $delivery->pub_eta_sent = $this->pub_eta_sent;\n $delivery->pub_eta_sent = $this->pub_etd_sent;\n $delivery->prediction = $time_string;\n\n \t$this->setOutboundQueue();\n\n\t$this->text = $this->text. \": >>> \".\n\t\t\t$ipAddress. \" \". \n\t\t\t\t$this->sch_rtpi_last_sent. \" \". \n\t\t\t\t$delivery->serviceCode. \" \". \n\t\t\t\tsubstr($destinationText, 0, 15). \" \".\n\t\t\t\tsubstr($time_string,11,8);\n\n\t//$m_status = $set_c_countdown_message();\n\tif ( true )\n {\n\t\t\tswitch($this->display_type)\n {\n\t\t\t\tcase \"U\" :\n\t\t\t\t\t//$m_status = $message_to_queue(m_external_sys_id,w_ip_address,LENGTH(w_ip_address),0,w_stop_build,l_ack_reqd)\n break;\n \t \tcase \"B\" :\n $junk1 = 0;\n $terminatingZero = 0;\n $send_count++;\n $destlen=strlen($destinationText);\n // I RL T\n if ( $delivery->messageType == 518 )\n {\n $msg = pack(\"A3Sa18SSSSSIA6SIIiCa10A${destlen}I\",\n \"PHP \",\n 3, // message type\n\n $ipAddress, // destination\n 1, // repeats\n $destlen + 48, // message length\n 0, // portNumber\n\n $delivery->messageType,\n $junk1,\n $delivery->addressId,\n substr($delivery->serviceCode, 0, 6),\n $delivery->operatorId,\n $delivery->unitId,\n $delivery->journeyId,\n $delivery->countdownTime,\n $delivery->wheelchairAccess,\n $delivery->bay_no,\n $destinationText,\n $terminatingZero\n );\n }\n else\n $msg = pack(\"A3Sa18SSSSSIA6SIIiCA${destlen}I\",\n \"PHP \",\n 3, // message type\n\n $ipAddress, // destination\n 1, // repeats\n $destlen + 38, // message length\n 0, // portNumber\n\n $delivery->messageType,\n $junk1,\n $delivery->addressId,\n substr($delivery->serviceCode, 0, 6),\n $delivery->operatorId,\n $delivery->unitId,\n $delivery->journeyId,\n $delivery->countdownTime,\n $delivery->wheelchairAccess,\n $destinationText,\n $terminatingZero\n );\necho \" Tid $delivery->bay_no, $delivery->messageType, $delivery->addressId, $delivery->serviceCode, $delivery->operatorId, $delivery->unitId, $delivery->journeyId, $delivery->countdownTime, $delivery->wheelchairAccess, $destinationText\\n\";\n if ( $this->outboundQueue )\n {\n if (!msg_send ($this->outboundQueue, 1, $msg ) )\n {\n $this->text .= \"Failed to send event to route tracker message queue\";\n echo $this->text.\"\\n\";\n }\n }\n\t\t\t}\n\t}\n\n if ( $send_count == 0 ) \n {\n $this->text = $this->text. \" UNSENT OUT OF DATE\";\n }\n\n //echo \"sent $send_count <BR>\";\n\treturn $send_count;\n\n}", "protected function _sendPacketToController($type, $data=NULL){\n\t\t$length = (!empty($data)) ? strlen($data) : 0;\n\t\t$msg = pack('a3Cn', 'CTR', $type, $length);\n\t\tif (!empty($data))\n\t\t\t$msg .= $data;\n\t\tif (@socket_send($this->_socket, $msg, strlen($msg), 0) === false){\n\t\t\t$errorCode = socket_last_error();\n\t\t\t$errorMsg = socket_strerror($errorCode);\n\t\t\treturn new SpykeeResponse(self::STATE_ERROR, SpykeeResponse::ERROR_SEND_PACKET);\n\t\t}\n\t\treturn new SpykeeResponse(self::STATE_OK, SpykeeResponse::PACKET_SENT);\n\t}", "public function ping()\n {\n // TODO: implement this properly\n $this->log('Sending ping frame to client #' . $this->id);\n $this->log('Message data:', Loggable::LEVEL_DEBUG);\n\n $this->writeObject($this->messageEncoder->encodeString('', Frame::OP_PING));\n }", "public function sendRaw($packet, $timeout = null) {\n\t\t$now = new DateTime();\n\t\t$array = [\n\t\t\t'ctype' => 'dpa',\n\t\t\t'type' => 'raw',\n\t\t\t'msgid' => (string) $now->getTimestamp(),\n\t\t\t'timeout' => (int) $timeout,\n\t\t\t'request' => $packet,\n\t\t\t'request_ts' => '',\n\t\t\t'confirmation' => '',\n\t\t\t'confirmation_ts' => '',\n\t\t\t'response' => '',\n\t\t\t'response_ts' => '',\n\t\t];\n\t\tif (empty($timeout)) {\n\t\t\tunset($array['timeout']);\n\t\t}\n\t\t$data = [\n\t\t\t'request' => Json::encode($array, Json::PRETTY),\n\t\t\t'response' => str_replace('Received: ', '', $this->sendCommand($array)),\n\t\t];\n\t\treturn $data;\n\t}", "public function send() {\n\n\t\t$current_time = time();\n\t\tif ( ! $this->should_send_tracking( $current_time ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$collector = $this->get_collector();\n\n\t\t$request = new WPSEO_Remote_Request( $this->endpoint );\n\t\t$request->set_body( $collector->get_as_json() );\n\t\t$request->send();\n\n\t\tupdate_option( $this->option_name, $current_time, 'yes' );\n\t}", "public function send($socket)\n\t{\n\t}", "public function send(){\n \n\n\t\t$sent = FALSE;\n\t\t\n\t\t$baseurl = \"http://api.clickatell.com\";\n\n\t\t$this->text = urlencode($this->text);\n\n\t\t//ap\n\t\t$this->to = '266'.$this->to;\n\n\t\t// auth call\n\t\t$url = \"$baseurl/http/auth?user=$this->username&password=$this->password&api_id=$this->api_id\";\n\n\t\t// do auth call\n\t\t$ret = file($url);\n\n\t\t// explode our response. return string is on first line of the data returned\n\t\t$sess = explode(\":\", $ret[0]);\n\t\tif ($sess[0] === 'OK') {\n\n\t\t\t$sess_id = trim($sess[1]); // remove any whitespace\n\t\t\t$url = \"$baseurl/http/sendmsg?session_id=$sess_id&to=$this->to&text=$this->text\";\n\n\t\t\t// do sendmsg call\n\t\t\t$ret = file($url);\n\t\t\t$send = explode(':', $ret[0]);\n\n\t\t\tif ($send[0] === \"ID\")\n\t\t\t{\n\t\t\t\t$sent = TRUE;\n\t\t\t} else {\n\t\t\t\techo 'Authentication failure: ' . $ret[0] . \"\\n\";\n\t\t\t}\n\t\n\t\t\treturn $sent;\n\t\t}\n\t}", "public function send()\n {\n $this->trigger(self::EVENT_BEFORE_SEND);\n $this->prepare();\n $this->trigger(self::EVENT_AFTER_PREPARE);\n $this->sendHeaders();\n $this->sendContent();\n $this->trigger(self::EVENT_AFTER_SEND);\n $this->isSent = true;\n }", "public function send();", "public function send();", "public function send();", "public function send();", "public function send();", "public function send();", "public function send();", "public function send();", "public function send();", "public function send();", "public function send();", "public function setServerTime();", "protected function doSend($type, $message)\n {\n // Generate data\n $data = 'GNTP/1.0 '.strtoupper($type).\" NONE\\r\\n\";\n $data .= $message;\n\n // A GNTP request must end with <CRLF><CRLF> (two blank lines).\n // This indicates the end of the request to the receiver.\n $data .= \"\\r\\n\";\n\n $socket = @fsockopen('tcp://'.$this->host, $this->port, $errno, $errstr, 30);\n\n if (false === $socket) {\n throw new SocketException(sprintf('(%s) %s', $errno, $errstr));\n }\n\n fwrite($socket, $data, strlen($data));\n fclose($socket);\n }", "public function send()\n {\n if ($this->isSent) {\n return;\n }\n $this->trigger(self::EVENT_BEFORE_SEND);\n $this->prepare();\n $this->trigger(self::EVENT_AFTER_PREPARE);\n $this->sendHeaders();\n $this->sendContent();\n $this->trigger(self::EVENT_AFTER_SEND);\n $this->isSent = true;\n }", "function serverTime() {\n\t\tdate_default_timezone_set('Europe/Oslo');\n\t\treturn \"Server time is: \".date(\"H:i:s\");\n\t}", "function send_to_server( $nEventLogIdn, $nDateTime, $userID ){\n\t\t//clients url will be here\n\t\t//$url = \"http://localhost/frm_att_data/toServer.php?\";\n\t\t//$url = \"http://202.161.188.108/school/schoobee/wh/app/web_api/attendance/recive_device_attendance.php?\";\n\t\t$url = \"http://202.161.188.108/school/schoobee/nababidhan/app/web_api/attendance/recive_device_attendance.php?\";\n\n $val = \"CHECKINOUT_ID=$nEventLogIdn&CARD_NO=$userID&CHECK_TIME=$nDateTime\";\n\n\t\t$server_url = $url.$val;\n\n\t\t//curl start\n\t\t$curl = curl_init();\n\t\tcurl_setopt_array($curl, array(\n\t\tCURLOPT_RETURNTRANSFER => 1,\n\t\tCURLOPT_URL => $server_url,\n\t\tCURLOPT_USERAGENT => ''\n\t\t));\n\t\t$output = curl_exec($curl);\n\t\tcurl_close($curl);\n\t\treturn $output;\n\t}", "public function send()\n {\n // Stream post the data\n $this->evaluateResponse($this->httpPost($this->str_endpoint . '/event', $this->compile()));\n }", "public function send() {\r\n\t\t\t$this->sent = true;\r\n\t\t}", "public function send()\n {\n $this->jsonManager->domain = $this->uri;\n $this->jsonManager->port = $this->port;\n $this->jsonManager->online = $this->isOnline();\n $this->jsonManager->send();\n }", "public function timeSend()\n {\n if ($this->time) {\n return $this->time->format('H:i:s');\n }\n }", "public function sendPong()\n\t{\n\t\tglobal $log;\n\n\t\t$log->println('Ping/Pong', 'BROWN');\n\t\t$this->send('PONG :tmi.twitch.tv');\n\t}", "public function servertime() {\n\t\tif(is_null($this->sync))\n\t\t\t$this->synchronize();\n\t\treturn (int) (microtime(true) * 1000) + $this->sync;\n\t}", "public function send()\n {\n fwrite($this->rStream, $this->sText);\n }", "public function SendHttpPing()\n\t{\n\t\tfor ( $Z = 0; $Z < count($this->url); $Z++ )\n\t\t{\n\t\t\tarray_push( $this->result_ping , exec( 'httping -c ' . $this->try_count . ' ' . $this->url[$Z] ) );\n\t\t\tif ( self::PING_ERR == $this->result_ping[$Z] )\n\t\t\t{\n\t\t\t\t$this->result_ping[$Z]='';\n\t\t\t}\n\t\t}\n\n\t\t/* Data Setting */\n\t\t$this->CheckHttpResponse();\t\n\t}", "protected function sendHTTPSocket($trans){\n\t\t$query['ipaddress'] = $_SERVER[\"REMOTE_ADDR\"];\n\t\t\n\t\tConfigure::load('payscape');\n\t\tApp::uses('HttpSocket', 'Network/Http');\n\t\t\n\t\t$trans['username'] = Configure::read('Payscape.userid');\n\t\t$trans['password'] = Configure::read('Payscape.userpass');\n\t\t\t\t\n\t\t$HttpSocket = new HttpSocket();\n\t\treturn $HttpSocket->post(self::url, $trans);\n\t}", "public function setSendTime($value)\n {\n return $this->set(self::_SEND_TIME, $value);\n }", "public function send() {\n if (!$this->client) {\n return false;\n }\n\n $this->addInt8($this->value);\n\n Sockets::out($this->client, $this);\n return true;\n\n }", "public function send()\n\t{\n\t\tif(($this->xResponse))\n\t\t{\n\t\t\tforeach($this->aDebugMessages as $sMessage)\n\t\t\t{\n\t\t\t\t$this->xResponse->debug($sMessage);\n\t\t\t}\n\t\t\t$this->aDebugMessages = array();\n\t\t\t$this->xResponse->sendHeaders();\n\t\t\t$this->xResponse->printOutput();\n\t\t}\n\t}", "protected function Ping()\n\t{\n\t\theader(BITS_HEADER_ACK);\n\t}", "public function setSendingTime($time ){\n $this->sendingTime = $time;\n }", "public function send()\n {\n }", "private function send(): void\n {\n $data = [\n 'code' => $this->status,\n 'message' => $this->message,\n 'datetime' => Carbon::now()\n ];\n\n $config = config(\"tebot.$this->channelConfig\");\n\n $data['title'] = $this->title . ' ' . $config['name'];\n\n if (!empty($this->detail)) $data['detail'] = json_encode($this->detail);\n\n Http::withHeaders(['x-api-key' => $config['key']])->post($config['url'] . '/api/message', $data);\n }", "public function send() {}", "public function send() {}", "public function send() {}", "public function send() {}", "public function send() {}", "public function getSendingTime(){\n return $this->sendingTime;\n }", "public function sendPendingTransactionsToNetwork() {\r\n\r\n //We obtain all pending transactions to send\r\n $pending_tx = $this->chaindata->GetAllPendingTransactionsToSend();\r\n\r\n //We add the pending transaction to the chaindata\r\n foreach ($pending_tx as $tx)\r\n $this->chaindata->addPendingTransaction($tx);\r\n\r\n //We get all the peers and send the pending transactions to all\r\n $peers = $this->chaindata->GetAllPeers();\r\n foreach ($peers as $peer) {\r\n\r\n $myPeerID = Tools::GetIdFromIpAndPort($this->ip,$this->port);\r\n $peerID = Tools::GetIdFromIpAndPort($peer['ip'],$peer['port']);\r\n\r\n if ($myPeerID != $peerID) {\r\n $infoToSend = array(\r\n 'action' => 'ADDPENDINGTRANSACTIONS',\r\n 'txs' => $pending_tx\r\n );\r\n\r\n if ($peer[\"ip\"] == NODE_BOOTSTRAP) {\r\n Tools::postContent('https://'.NODE_BOOTSTRAP.'/gossip.php', $infoToSend,5);\r\n }\r\n else if ($peer[\"ip\"] == NODE_BOOTSTRAP_TESTNET) {\r\n Tools::postContent('https://'.NODE_BOOTSTRAP_TESTNET.'/gossip.php', $infoToSend,5);\r\n }\r\n else {\r\n Tools::postContent('http://' . $peer['ip'] . ':' . $peer['port'] . '/gossip.php', $infoToSend,5);\r\n }\r\n }\r\n }\r\n\r\n //We delete transactions sent from transactions_pending_to_send\r\n foreach ($pending_tx as $tx)\r\n $this->chaindata->removePendingTransactionToSend($tx['txn_hash']);\r\n }", "function api_masterSend($opcode, $payload) {\r\n //UDP setup\r\n $server_ip = '127.0.0.1';\r\n $server_port = 11211;\r\n\r\n //The second argument here is the SMK, change it from the default (AF199...)\r\n //before deploying!\r\n //Don't include $payload in this pack - presumably it's been packed before\r\n //from whatever called this function and will be formatted accordingly -\r\n //just cat it to the end of the resulting data string.\r\n $data = \"AF1993ADFE944E38FE8CED6E490D1BB16C6A20F7F36237753A2EAF5BF2503536\" .\r\n pack(\"N\", $opcode) . $payload;\r\n\r\n $socket = socket_create(AF_INET, SOCK_DGRAM, SOL_UDP);\r\n socket_set_option($socket, SOL_SOCKET, SO_SNDTIMEO, array('sec' => 1, 'usec' => 0));\r\n socket_sendto($socket, $data, strlen($data), 0, $server_ip, $server_port);\r\n socket_close($socket);\r\n}", "private function onPing()\n {\n $this->send($this->replyEvent());\n }", "protected function send() {}", "public function client_send($data)\n {\n $this->edebug(\"CLIENT -> SERVER: $data\", self::DEBUG_CLIENT);\n return fwrite($this->smtp_conn, $data);\n }", "abstract function doSend();", "function getSendTime()\n {\n return (string) $this->_sSendTime;\n }", "function sendRequest()\n\t\t{\n\t\t\t$stream = $this->getRequestStream();\n\t\t\t$stream->write( $this->getRequestString() );\n\t\t\t$stream->close();\n\t\t}", "public function send($str)\n\t{\n\t\t$this->socket->send($str . \"\\r\\n\");\n\t}", "public function send($data){\n $this->cServ->send($data) ;\n $this->close() ;\n }", "public function getSendTime()\n {\n return $this->get(self::_SEND_TIME);\n }", "abstract function send();", "public static function setSendTime ($str) {\n self::$dateTime = $str;\n }", "function send_post()\n { \n $send = new send();\n\n $send->date_created = date('Y-m-d H:i:s');\n $send->createdbypk = $this->get_user()->user_id;\n $send->date_modified = date('Y-m-d H:i:s');\n $send->modifiedbypk = $this->get_user()->user_id;\n\n $this->response($this->_send_save($send, 'post'));\n }", "private function refresh() {\r\n\r\n // try & catch wär zwar besser, funktioniert aber bei fsockopen leider nicht.. deshalb das unschöne @\r\n $this->socket = @fsockopen($this->ts3_host, $this->ts3_query, $errno, $errstr, $this->socket_timeout);\r\n\r\n if ($errno > 0 && $errstr != '') {\r\n $this->errors[] = 'fsockopen connect error: ' . $errno;\r\n return false;\r\n }\r\n\r\n if (!is_resource($this->socket)) {\r\n $this->errors[] = 'socket recource not exists';\r\n return false;\r\n }\r\n\r\n stream_set_timeout($this->socket, $this->socket_timeout);\r\n\r\n if (!empty($this->serverlogin) && !$this->sendCmd('login', $this->serverlogin['login'] . ' ' . $this->serverlogin['password'])) {\r\n $this->errors[] = 'serverlogin as \"' . $this->serverlogin['login'] . '\" failed';\r\n return false;\r\n }\r\n\r\n if (!$this->sendCmd(\"use \" . ( $this->ts3_sid ? \"sid=\" . $this->ts3_sid : \"port=\" . $this->ts3_port ))) {\r\n $this->errors[] = 'server select by ' . ( $this->ts3_sid ? \"ID \" . $this->ts3_sid : \"UDP Port \" . $this->ts3_port ) . ' failed';\r\n return false;\r\n }\r\n\r\n if (!$sinfo = $this->sendCmd('serverinfo')) {\r\n return false;\r\n }\r\n else {\r\n $this->sinfo = $this->splitInfo($sinfo);\r\n $this->sinfo['cachetime'] = time();\r\n\r\n if (substr($this->sinfo['virtualserver_version'], strpos($this->sinfo['virtualserver_version'], 'Build:') + 8, -1) < 11239) { // beta23 build is required\r\n $this->errors[] = 'your TS3Server build is to low..';\r\n return false;\r\n }\r\n }\r\n\r\n if (!$clist = $this->sendCmd('channellist', '-topic -flags -voice -limits')) {\r\n return false;\r\n }\r\n else {\r\n $clist = $this->splitInfo2($clist);\r\n foreach ($clist as $var) {\r\n $this->clist[] = $this->splitInfo($var);\r\n }\r\n }\r\n\r\n if (!$plist = $this->sendCmd('clientlist', '-away -voice -groups')) {\r\n $this->errors[] = 'playerlist not readable';\r\n return false;\r\n }\r\n else {\r\n $plist = $this->splitInfo2($plist);\r\n foreach ($plist as $var) {\r\n if (strpos($var, 'client_type=0') !== FALSE) {\r\n $this->plist[] = $this->splitInfo($var);\r\n }\r\n }\r\n\r\n if (!empty($this->plist)) {\r\n foreach ($this->plist as $key => $var) {\r\n $temp = '';\r\n if (strpos($var['client_servergroups'], ',') !== FALSE) {\r\n $temp = explode(',', $var['client_servergroups']);\r\n }\r\n else {\r\n $temp[0] = $var['client_servergroups'];\r\n }\r\n $t = '0';\r\n foreach ($temp as $t_var) {\r\n if ($t_var == '6') {\r\n $t = '1';\r\n }\r\n }\r\n if ($t == '1') {\r\n $this->plist[$key]['s_admin'] = '1';\r\n }\r\n else {\r\n $this->plist[$key]['s_admin'] = '0';\r\n }\r\n }\r\n\r\n usort($this->plist, array($this, \"cmp2\"));\r\n usort($this->plist, array($this, \"cmp1\"));\r\n }\r\n }\r\n\r\n fputs($this->socket, \"quit\\n\");\r\n\r\n $this->close();\r\n\r\n return true;\r\n }", "function send($data);", "function send($data);", "public function onUdpPacket($pct) {}", "private function sendCTCP (Bot $pBot, $sNickname, $sType, $sMessage)\n {\n $sCommand = 'NOTICE ' . $sNickname . ' :' . self :: CTCP . $sType;\n if (strlen ($sMessage) > 0)\n {\n $sCommand .= ' ' . $sMessage;\n }\n \n $pBot -> send ($sCommand . self :: CTCP);\n }", "abstract public function send($data);", "function _Write($cmd, $s1='', $s2='') {\n\t\t$id = ++$this->_Id;\n\n\t\t// Put our packet together\n\t\t$data = pack(\"VV\",$id,$cmd).$s1.chr(0).$s2.chr(0);\n\n\t\t// Prefix the packet size\n\t\t$data = pack(\"V\",strlen($data)).$data;\n\n\t\t// Send packet\n\t\tfwrite($this->_Sock,$data,strlen($data));\n\n\t\t// In case we want it later we'll return the packet id\n\t\treturn $id;\n\t}", "public function send()\n {\n header(\n $_SERVER[\"SERVER_PROTOCOL\"].\" \". // HTTP 1.1\n $this->statusCode.\" \". // 200\n $this->statusText // OK\n );\n foreach ($this->headers as $key => $value) {\n header(\"$key: $value\");\n }\n }", "function send_response($sess_id)\n {\n\t\tglobal $ilconfig, $ilance;\n\t\t$server = 'www.platnosci.pl';\n\t\t$server_script = '/paygw/UTF/Payment/get';\n\t\t$key1 = trim($ilconfig['platnosci_pos_key1']);\n\t\t$ts = time();\n\t\t$sig = md5($ilconfig['platnosci_pos_id'] . $sess_id . $ts . $key1);\t\t\n\t\t$parameters = \"pos_id=\" . trim($ilconfig['platnosci_pos_id']) . \"&session_id=\" . $sess_id . \"&ts=\" . $ts . \"&sig=\" . $sig;\t\t\t\n\t\t$fsocket = false;\n\t\t$curl = false;\n\t\t$result = false;\n\t\tif ((PHP_VERSION >= 4.3) AND ($fp = @fsockopen('ssl://' . $server, 443, $errno, $errstr, 30))) \n\t\t{\n\t\t\t$fsocket = true;\n\t\t} \n\t\telse if (function_exists('curl_exec')) \n\t\t{\n\t\t\t$curl = true;\n\t\t}\n\t\tif ($fsocket == true) \n\t\t{\n\t\t\t$header = 'POST ' . $server_script . ' HTTP/1.0' . \"\\r\\n\" .\n'Host: ' . $server . \"\\r\\n\" .\n'Content-Type: application/x-www-form-urlencoded' . \"\\r\\n\" .\n'Content-Length: ' . strlen($parameters) . \"\\r\\n\" .\n'Connection: close' . \"\\r\\n\\r\\n\";\n\t\t\t@fputs($fp, $header . $parameters);\n\t\t\t$platnosci_response = '';\n\t\t\twhile (!@feof($fp)) \n\t\t\t{\n\t\t\t\t$res = @fgets($fp, 1024);\n\t\t\t\t$platnosci_response .= $res;\n\t\t\t}\n\t\t\t@fclose($fp);\n\t\t}\n\t\telse if ($curl == true) \n\t\t{\n\t\t\t$ch = curl_init();\n\t\t\tcurl_setopt($ch, CURLOPT_URL, \"https://\" . $server . $server_script);\n\t\t\tcurl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);\n\t\t\tcurl_setopt($ch, CURLOPT_HEADER, 0);\n\t\t\tcurl_setopt($ch, CURLOPT_TIMEOUT, 20);\n\t\t\tcurl_setopt($ch, CURLOPT_POST, 1);\n\t\t\tcurl_setopt($ch, CURLOPT_POSTFIELDS, $parameters);\n\t\t\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n\t\t\t$platnosci_response = curl_exec($ch);\n\t\t\tcurl_close($ch);\n\t\t} \n\t\telse \n\t\t{\n\t\t\tdie(\"ERROR: No connect method ...\\n\");\n\t\t}\n\t\tif (eregi(\"<trans>.*<pos_id>([0-9]*)</pos_id>.*<session_id>(.*)</session_id>.*<order_id>(.*)</order_id>.*<amount>([0-9]*)</amount>.*<status>([0-9]*)</status>.*<desc>(.*)</desc>.*<ts>([0-9]*)</ts>.*<sig>([a-z0-9]*)</sig>.*</trans>\", $platnosci_response, $parts)) \n\t\t{\n\t\t\t$result = $this->get_status($parts);\n\t\t\t$pos_id = $parts[1];\n\t\t\t$session_id = $parts[2];\n\t\t\t$order_id = $parts[3];\n\t\t\t$amount = $parts[4];\n\t\t\t$status = $parts[5];\n\t\t\t$desc = $parts[6];\n\t\t\t$ts = $parts[7];\n\t\t\t$sig = $parts[8];\n\t\t\t$this->response = $parts;\n\t\t\treturn $this->response;\n\t\t}\n\t\telse \n\t\t{\n\t\t\treturn array('5' => '888');\n\t\t}\n }", "public static function udp_sender(): void\n {\n //Set UDP server host address and port\n sock::$host = '127.0.0.1';\n sock::$port = 2000;\n\n //Set Socket type to 'udp:sender'\n sock::$type = 'udp:sender';\n\n //Create Socket (sender)\n $ok = sock::create();\n\n if (!$ok) exit('UDP Sender creation failed!');\n\n //Data need to send\n //If no \"host\" and \"sock\" were set,\n //it'll be set to the sender itself\n $data = [\n ['msg' => 'Hello, my UDP Server!'],\n ['msg' => 'Nice to meet you for the first time.'],\n ['msg' => 'How are you going?'],\n ['msg' => 'Have you received my messages?'],\n ['msg' => 'Don\\'t send back to me, because I have no server script running here.'],\n ];\n\n //Send data to Server\n $result = sock::write($data);\n\n var_dump($result);\n\n //You don't need to read from sender side,\n //because if the server send message back,\n //it'll be received by server side instead of a UDP Sender when using UDP\n }", "function sendPings ($type, $id)\n{\n global $_CONF, $_TABLES, $LANG_TRB;\n\n $retval = '';\n\n list($itemurl,$feedurl) = PLG_getItemInfo($type, $id, 'url,feed');\n\n $template = new Template ($_CONF['path_layout'] . 'admin/trackback');\n $template->set_file (array ('list' => 'pinglist.thtml',\n 'item' => 'pingitem.thtml'));\n $template->set_var('xhtml', XHTML);\n $template->set_var('site_url', $_CONF['site_url']);\n $template->set_var('site_admin_url', $_CONF['site_admin_url']);\n $template->set_var('layout_url', $_CONF['layout_url']);\n $template->set_var('lang_resend', $LANG_TRB['resend']);\n $template->set_var('lang_results', $LANG_TRB['ping_results']);\n\n $result = DB_query (\"SELECT ping_url,method,name,site_url FROM {$_TABLES['pingservice']} WHERE is_enabled = 1\");\n $services = DB_numRows ($result);\n if ($services > 0) {\n for ($i = 0; $i < $services; $i++) {\n $A = DB_fetchArray ($result);\n $resend = '';\n if ($A['method'] == 'weblogUpdates.ping') {\n $pinged = PNB_sendPing ($A['ping_url'], $_CONF['site_name'],\n $_CONF['site_url'], $itemurl);\n } else if ($A['method'] == 'weblogUpdates.extendedPing') {\n $pinged = PNB_sendExtendedPing ($A['ping_url'],\n $_CONF['site_name'], $_CONF['site_url'], $itemurl,\n $feedurl);\n } else {\n $pinged = $LANG_TRB['unknown_method'] . ': ' . $A['method'];\n }\n if (empty ($pinged)) {\n $pinged = '<b>' . $LANG_TRB['ping_success'] . '</b>';\n } else {\n $pinged = '<span class=\"warningsmall\">' . $pinged . '</span>';\n }\n\n $template->set_var('service_name', $A['name']);\n $template->set_var('service_url', $A['site_url']);\n $template->set_var('service_ping_url', $A['ping_url']);\n $template->set_var('ping_result', $pinged);\n $template->set_var('resend', $resend);\n $template->set_var('alternate_row',\n (($i + 1) % 2) == 0 ? 'row-even' : 'row-odd');\n $template->set_var('cssid', ($i % 2) + 1);\n $template->parse ('ping_results', 'item', true);\n }\n } else {\n $template->set_var('ping_results', '<tr><td colspan=\"2\">' .\n $LANG_TRB['no_services'] . '</td></tr>');\n }\n $template->set_var('gltoken_name', CSRF_TOKEN);\n $template->set_var('gltoken', SEC_createToken());\n $template->parse('output', 'list');\n $retval .= $template->finish ($template->get_var ('output'));\n\n return $retval;\n}", "function query_time_server($timeserver, $socket)\n {\n $fp = fsockopen($timeserver, $socket, $err, $errstr, 5);\n # parameters: server, socket, error code, error text, timeout\n if ($fp) {\n fputs($fp, \"\\n\");\n $timevalue = fread($fp, 49);\n fclose($fp); # close the connection\n } else {\n $timevalue = \" \";\n }\n\n $ret = [];\n $ret[] = $timevalue;\n $ret[] = $err; # error code\n $ret[] = $errstr; # error text\n return $ret;\n }", "public static function flush() {\r\n if (!empty(self::$data)) {\r\n static $socket;\r\n if (!$socket) $socket = fsockopen('udp://' . self::$host, self::$port);\r\n fwrite($socket, implode(null, self::$data));\r\n self::$data = array();\r\n }\r\n }", "public function generateOtp() \n {\n return rand(100000,999999);\n }", "function wakeupDevice($id){\n $device = Device::loadById($id);\n $magicPacket = new MagicPacket($device->getMAC(), $device->getIP(),$device->getSubnet());\n if($magicPacket->send()){\n $this->setSuccess('MagicPacket successfully sent to '.$device->getName(). '!');\n }else{\n $this->setError('Error while MagicPacket to '.$device->getName(). '!');\n }\n header('location: /devices');\n }", "public static function times( $time ){\n\t\t$txt = date(\"H:i:s\") . \" Remote IP: [\".$_SERVER['REMOTE_ADDR'] . \"]:\\t[\" . \" time: \" . round( ( $time ), 3).\"s ]\\t\\tRequserURI: \".$_SERVER['REQUEST_URI'];\n\t\tself::_doWrite( self::getFileName( self::TMP_DIR . date('Y-m-d_') . self::FILE_TIMES ), $txt );\n\t}", "public function send()\n {\n }", "public function send()\n {\n }", "public function send()\n {\n }", "function Write($data=null) \r\n{ \r\n//** no connection is available, zero bytes can be sent. \r\n\r\nif(!$this->isOpen()) \r\n{ \r\n$this->LastError = \"No connection available for writing\"; \r\nreturn 0; \r\n} \r\n$data = strval($data); //** ensure that data is available. \r\nif(strlen($data) == 0) //** no data to be sent. \r\nreturn 0; //** zero bytes were sent. \r\nelse //** connection and data, set timeout and send. \r\n{ \r\n//$this->_SetTimeout(); //** set timeout. \r\nreturn fwrite($this->Socket, $data, strlen($data)); //** write data. \r\n} \r\n}", "public function write(PacketStream $stream): void;", "function tcp_write(&$info) {\n\t$sock=$info['sock'];\n\t$buf=&$info['buf'];\n\t$sockid=$info['sockid'];\n\tif (!isset($GLOBALS['SOCKETS'][$sockid])) return false; // shutdown this socket !\n\tif (!$buf) return true;\n\tif (defined('IN_ERROR')) {\n\t\tkill_socket($sockid);\n\t\treturn false;\n\t}\n\t$w=array($sock);\n\t$ret=socket_select($r=null,$w,$e=null,0);\n\tif ($ret===false) {\n\t\t// error !\n\t\t$GLOBALS['BtWindow']->gtk_error(socket_strerror(socket_last_error($sock)).' on socket_select [write]');\n\t\treturn;\n\t}\n\tif ($ret<=0) return true; // can't write yet !\n\t// ok, we can send data !\n\t$ret=@socket_write($sock,$buf);\n\tif ($ret===false) {\n//\t\t$GLOBALS['BtWindow']->gtk_error(socket_strerror(socket_last_error($sock)).' on socket_write');\n\t\techo 'Non-fatal error: '.socket_strerror(socket_last_error($sock)).\"\\n\";\n\t\tkill_socket($sockid);\n\t\treturn;\n\t}\n\t$GLOBALS['COUNTERS']['up']+=$ret;\n\t$GLOBALS['COUNT']['up']+=$ret;\n\t$buf=substr($buf,$ret);\n\tif ($buf===false) $buf='';\n\treturn true;\n}", "public function send(){\n \t$this->connect();\n \t$this->login();\n \t\n \t$this->sendMail();//send an email\n \t\n \t \n \t$this->quit();\n \t$this->close();\n }", "protected function smtpSend(): void\n {\n $account = $this->account;\n\n $this->openSocket($account);\n defer($context, 'fclose', $this->socket);\n\n $this->connect($account);\n\n $this->authenticate($account);\n\n $this->sendCommand('MAIL FROM: <' . $this->from[0] . '>', '250');\n $recipients = array_merge($this->to, $this->cc, $this->bcc);\n foreach ($recipients as $recipient) {\n $this->sendCommand('RCPT TO: <' . $recipient[0] . '>', '250|251');\n }\n\n $this->sendCommand('DATA', '354');\n\n $this->sendCommand($this->message . self::CRLF . self::CRLF . self::CRLF . '.', '250');\n\n $this->sendCommand('QUIT', '221');\n }", "public function send()\n {\n $httpProtocol = $_SERVER['SERVER_PROTOCOL'];\n\n // Send the HTTP Status and Headers.\n\n if (! headers_sent()) {\n $status = $this->status();\n\n // Send the HTTP Status Header.\n header(\"$httpProtocol $status \" . self::$statuses[$status]);\n\n // Send the rest of the HTTP Headers.\n foreach ($this->headers as $name => $value) {\n header(\"$name: $value\", true);\n }\n }\n\n // Send the stringified Content.\n\n echo $this->render();\n }", "public function send(): void\n\t{\n\t\t$this->sendHeaders();\n\t\t$this->sendBody();\n\t}", "public function send(): void\n {\n $requiredParams = [\n 'v' => $this->client->getVersion(),\n 'tid' => $this->client->getTrackingId(),\n 'cid' => $this->client->getClientId(),\n 't' => $this->getHitType(),\n ];\n $paramValues = array_merge(\n $requiredParams,\n $this->parameters\n );\n \n $url = $this->getBaseUrl();\n\n $guzzle = new \\GuzzleHttp\\Client();\n $result = $guzzle->request('POST', $url, ['form_params' => $paramValues]);\n\n if ($this->client->isDebug()) {\n var_dump((string) $result->getBody());\n }\n }", "public function send()\n {\n $this->sendContentOptions();\n $this->sendFrameOptions();\n $this->sendStrictTransport();\n $this->sendCrossOriginResourcePolicy();\n $this->sendContentSecurity();\n }", "public function sendDtmf($dtmf)\n {\n $args = Ensure::Input($dtmf);\n $dtmf = $args->get();\n $url = URIResource::Make($this->path, array($this->id, \"dtmf\"));\n $data = new DataPacket(array(\"dtmfOut\" => (string) $dtmf));\n\n $this->client->post($url, $data->get());\n }", "public function send()\n {\n $this->sendHeaders();\n $this->sendBody();\n }", "function sendOtpSMS($username, $encryp_password, $senderid, $message, $mobileno, $deptSecureKey) {\n $key = hash('sha512', trim($username) . trim($senderid) . trim($message) . trim($deptSecureKey));\n $data = array(\n \"username\" => trim($username),\n \"password\" => trim($encryp_password),\n \"senderid\" => trim($senderid),\n \"content\" => trim($message),\n \"smsservicetype\" => \"otpmsg\",\n \"mobileno\" => trim($mobileno),\n \"key\" => trim($key)\n );\n post_to_url(\"https://msdgweb.mgov.gov.in/esms/sendsmsrequest\", $data); //calling post_to_url to send otp sms \n}", "public function keepAliveTick()\n {\n $xml = new xmlBranch(\"iq\");\n $xml->addAttribute(\"from\", $this->jid->__toString());\n $xml->addAttribute(\"to\", $this->jid->server);\n $xml->addAttribute(\"id\", uniqid('ping_'));\n $xml->addAttribute(\"type\", \"get\");\n $xml->addChild(new xmlBranch(\"ping\"))->addAttribute(\"xmlns\", \"urn:xmpp:ping\");\n\n $this->write($xml->asXml());\n }", "public function send() {\n $tidy = new Tidy();\n $tidy->parseString($this->output, $this->tidyConfig);\n $tidy->cleanRepair();\n\n // Send the output string to the client\n echo $tidy;\n }", "function sendHeader() {\n\n\t\t$this->console_text('###############################################################################');\n\t\t$this->console_text(' XASECO2 v' . XASECO2_VERSION . ' running on {1}:{2}', $this->server->ip, $this->server->port);\n\t\t$this->console_text(' Name : {1} - {2}', stripColors($this->server->name, false), $this->server->serverlogin);\n\t\tif ($this->server->isrelay)\n\t\t\t$this->console_text(' Relays : {1} - {2}', stripColors($this->server->relaymaster['NickName'], false), $this->server->relaymaster['Login']);\n\t\t$this->console_text(' Game : {1} - {2} - {3}', $this->server->game,\n\t\t $this->server->packmask, $this->server->gameinfo->getMode());\n\t\t$this->console_text(' Version: {1} / {2}', $this->server->version, $this->server->build);\n\t\t$this->console_text(' Author : Xymph');\n\t\t$this->console_text('###############################################################################');\n\n\t\t// format the text of the message\n\t\t$startup_msg = formatText($this->getChatMessage('STARTUP'),\n\t\t XASECO2_VERSION,\n\t\t $this->server->ip, $this->server->port);\n\t\t// show startup message\n\t\t$this->client->query('ChatSendServerMessage', $this->formatColors($startup_msg));\n\t}", "public function sendOtp(): bool\n {\n $appName = Yii::$app->name;\n $otp = $this->generateOtp();\n\n return Yii::$app->mailer->compose()\n ->setFrom(Yii::$app->params['mailer.from'])\n ->setTo($this->getEmail())\n ->setSubject(\"OTP confirmations - {$appName}\")\n ->setHtmlBody(\"Hi, <br/> Please use the following OTP <b>{$otp}</b> to verify your email id.\")\n ->queue();\n }", "public function send(): void\n {\n $this->sendHeaders();\n $this->sendBody();\n }", "private function send_msg() {\r\n }", "function sendcmd($in, $address, $service_port)\n{\n $socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);\n if ($socket === false) {\n return \"socket_create() failed: reason: \" . socket_strerror(socket_last_error()) . \"\\n\";\n }\n\n $result = socket_connect($socket, $address, $service_port);\n if ($result === false) {\n return \"socket_connect() failed.\\nReason: ($result) \" . socket_strerror(socket_last_error($socket)) . \"\\n\";\n }\n \n socket_write($socket, $in, strlen($in));\n $mess = \"\";\n /*$next = \"\";*/\n sleep(1);\n \n /*$next = socket_read($socket, 4096);*/\n\t\n\twhile(0 != socket_recv($socket, $out, 4096, MSG_DONTWAIT)){ \n\tif($out != null) \n\t\t$mess .= $out; \n\t}; \n\t\n /*$mess .= $next;*/\n \n socket_close($socket);\n return $mess;\n}" ]
[ "0.6736051", "0.55961853", "0.5368975", "0.5242785", "0.5108164", "0.51027995", "0.50046957", "0.5004252", "0.4991481", "0.49666563", "0.49432507", "0.49432507", "0.49432507", "0.49432507", "0.49432507", "0.49432507", "0.49432507", "0.49432507", "0.49432507", "0.49432507", "0.49432507", "0.49429673", "0.49084595", "0.4890928", "0.4889062", "0.4827894", "0.48156893", "0.48001885", "0.47971782", "0.47963056", "0.4770521", "0.4758799", "0.47364563", "0.47023597", "0.46978506", "0.46739718", "0.46699455", "0.46618974", "0.46590436", "0.46587354", "0.46525443", "0.46515596", "0.46485338", "0.46485338", "0.46485338", "0.46485338", "0.46485338", "0.46344507", "0.46215913", "0.46137923", "0.4596908", "0.4584302", "0.45838743", "0.4573433", "0.45679086", "0.45625067", "0.4560864", "0.45487523", "0.45322275", "0.45277476", "0.45173603", "0.45161852", "0.4514313", "0.45085126", "0.45085126", "0.45010427", "0.44968617", "0.4492543", "0.44884804", "0.44874245", "0.447615", "0.447172", "0.44684494", "0.44606334", "0.44512987", "0.4450558", "0.44495642", "0.4426998", "0.4421467", "0.4421467", "0.4421467", "0.44178635", "0.4413855", "0.4412152", "0.44108295", "0.44105706", "0.440899", "0.440617", "0.44000787", "0.4392011", "0.43915755", "0.43701446", "0.43685207", "0.43563578", "0.4355861", "0.4339206", "0.43377137", "0.43340677", "0.4327389", "0.4325696" ]
0.52805346
3
Extracts the binary data returned from the timeserver
protected function _extract($binary) { /* * Leap Indicator bit 1100 0000 * * Code warning of impending leap-second to be inserted at the end of * the last day of the current month. */ $leap = ($binary['flags'] & 0xc0) >> 6; switch($leap) { case 0: $this->_info['leap'] = '0 - no warning'; break; case 1: $this->_info['leap'] = '1 - last minute has 61 seconds'; break; case 2: $this->_info['leap'] = '2 - last minute has 59 seconds'; break; default: $this->_info['leap'] = '3 - not syncronised'; break; } /* * Version Number bit 0011 1000 * * This should be 3 (RFC 1305) */ $this->_info['version'] = ($binary['flags'] & 0x38) >> 3; /* * Mode bit 0000 0111 * * Except in broadcast mode, an NTP association is formed when two peers * exchange messages and one or both of them create and maintain an * instantiation of the protocol machine, called an association. */ $mode = ($binary['flags'] & 0x07); switch($mode) { case 1: $this->_info['mode'] = 'symetric active'; break; case 2: $this->_info['mode'] = 'symetric passive'; break; case 3: $this->_info['mode'] = 'client'; break; case 4: $this->_info['mode'] = 'server'; break; case 5: $this->_info['mode'] = 'broadcast'; break; default: $this->_info['mode'] = 'reserved'; break; } $ntpserviceid = 'Unknown Stratum ' . $binary['stratum'] . ' Service'; /* * Reference Clock Identifier * * Identifies the particular reference clock. */ $refid = strtoupper($binary['referenceid']); switch($binary['stratum']) { case 0: if (substr($refid, 0, 3) === 'DCN') { $ntpserviceid = 'DCN routing protocol'; } else if (substr($refid, 0, 4) === 'NIST') { $ntpserviceid = 'NIST public modem'; } else if (substr($refid, 0, 3) === 'TSP') { $ntpserviceid = 'TSP time protocol'; } else if (substr($refid, 0, 3) === 'DTS') { $ntpserviceid = 'Digital Time Service'; } break; case 1: if (substr($refid, 0, 4) === 'ATOM') { $ntpserviceid = 'Atomic Clock (calibrated)'; } else if (substr($refid, 0, 3) === 'VLF') { $ntpserviceid = 'VLF radio'; } else if ($refid === 'CALLSIGN') { $ntpserviceid = 'Generic radio'; } else if (substr($refid, 0, 4) === 'LORC') { $ntpserviceid = 'LORAN-C radionavigation'; } else if (substr($refid, 0, 4) === 'GOES') { $ntpserviceid = 'GOES UHF environment satellite'; } else if (substr($refid, 0, 3) === 'GPS') { $ntpserviceid = 'GPS UHF satellite positioning'; } break; default: $ntpserviceid = ord(substr($binary['referenceid'], 0, 1)); $ntpserviceid .= '.'; $ntpserviceid .= ord(substr($binary['referenceid'], 1, 1)); $ntpserviceid .= '.'; $ntpserviceid .= ord(substr($binary['referenceid'], 2, 1)); $ntpserviceid .= '.'; $ntpserviceid .= ord(substr($binary['referenceid'], 3, 1)); break; } $this->_info['ntpid'] = $ntpserviceid; /* * Stratum * * Indicates the stratum level of the local clock */ switch($binary['stratum']) { case 0: $this->_info['stratum'] = 'undefined'; break; case 1: $this->_info['stratum'] = 'primary reference'; break; default: $this->_info['stratum'] = 'secondary reference'; break; } /* * Indicates the total roundtrip delay to the primary reference source at the * root of the synchronization subnet, in seconds. * * Both positive and negative values, depending on clock precision and skew, are * possible. */ $this->_info['rootdelay'] = $binary['rootdelay']; /* * Indicates the maximum error relative to the primary reference source at the * root of the synchronization subnet, in seconds. * * Only positive values greater than zero are possible. */ $this->_info['rootdispersion'] = $binary['rootdispersion']; /* * The roundtrip delay of the peer clock relative to the local clock * over the network path between them, in seconds. * * Note that this variable can take on both positive and negative values, * depending on clock precision and skew-error accumulation. */ $this->_info['roundtrip'] = $binary['receivestamp']; $this->_info['roundtrip'] -= $binary['originatestamp']; $this->_info['roundtrip'] -= $binary['transmitstamp']; $this->_info['roundtrip'] += $binary['clientreceived']; $this->_info['roundtrip'] /= 2; // The offset of the peer clock relative to the local clock, in seconds. $this->_info['offset'] = $binary['receivestamp']; $this->_info['offset'] -= $binary['originatestamp']; $this->_info['offset'] += $binary['transmitstamp']; $this->_info['offset'] -= $binary['clientreceived']; $this->_info['offset'] /= 2; return (time() - $this->_info['offset']); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function retrieveServerTime(){\n //http://www.thetvdb.com/api/Updates.php?type=none\n\t \n\t if(!$this->t_mirrors){\n\t\t$this->retrieveMirrors;\n\t }\n\t \n $url = $this->t_mirrors[0].'/api/Updates.php?type=none';\n \n //$xmlStr=$this->curl_get_file_contents($url);\n\t $c = curl_init();\n curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);\n curl_setopt($c, CURLOPT_URL, $url);\n $xmlStr = curl_exec($c);\n curl_close($c);\n \n $xmlServerTime = new SimpleXMLElement($xmlStr);\n return $xmlServerTime->Time;\n }", "function getresp()\r\n {\r\n \tif (!$this->_socket || !is_resource($this->_socket)) {\r\n \t\treturn FALSE;\r\n \t}\r\n \t\r\n \t$response = \"\";\r\n\t\t$res = fread($this->_socket, 8000);\r\n\t\t preg_match_all('/^\\d{3}/m', $res, $response);\r\n\t\t/*do {\r\n \t\t$res = fgets($this->_socket, 512);\r\n \t\t$response .= $res;\r\n \t} while (substr($res, 3, 1) != \" \");\r\n \t*/\r\n\t\t\r\n \t//$this->debug(str_replace(\"\\r\\n\", \"\\n\", $response));\r\n \t$this->debug(str_replace(\"\\r\\n\", \"\\n\", $res));\r\n \treturn $response[0];\r\n }", "public function getBinaryContent();", "public function getRawData()\n\t{\n\n\t\treturn @file_get_contents($this->tmpFileName);\n\n\t}", "protected function _getData()\n {\n $data = Transform::toUInt8($this->_format);\n foreach ($this->_events as $timestamp => $type)\n $data .= Transform::toUInt8($type) . Transform::toUInt32BE($timestamp);\n return $data;\n }", "public function getRawData() {}", "public function getDetails() {\r\n \r\n $mckey = sprintf(\"%s;details\", $this->mckey); \r\n \r\n if (!$data = $this->Memcached->fetch($mckey)) {\r\n if (empty($this->mime) && file_exists(RP_DOWNLOAD_DIR . $this->filepath)) {\r\n $finfo = finfo_open(FILEINFO_MIME_TYPE); \r\n $this->mime = finfo_file($finfo, RP_DOWNLOAD_DIR . $this->filepath);\r\n }\r\n \r\n $mime = explode(\"/\", $this->mime); \r\n \r\n $data = array(\r\n \"type\" => ucwords($mime[0]),\r\n \"size\" => $this->filesize,\r\n \"downloads\" => $this->hits,\r\n \"added\" => array(\r\n \"absolute\" => $this->Date->format(\"Y-m-d g:i:s a\"),\r\n \"relative\" => time2str($this->Date->getTimestamp())\r\n ),\r\n \"thumbnail\" => $this->getThumbnail(),\r\n \"video\" => $this->getHTML5Video()\r\n );\r\n \r\n $this->Memcached->save($mckey, $data, strtotime(\"+12 hours\"));\r\n }\r\n \r\n return $data;\r\n }", "public function getRawData();", "public function getRawData();", "public static function get_raw_data()\n {\n }", "public static function get_raw_data()\n {\n }", "public function getBinary();", "function query_time_server($timeserver, $socket)\n {\n $fp = fsockopen($timeserver, $socket, $err, $errstr, 5);\n # parameters: server, socket, error code, error text, timeout\n if ($fp) {\n fputs($fp, \"\\n\");\n $timevalue = fread($fp, 49);\n fclose($fp); # close the connection\n } else {\n $timevalue = \" \";\n }\n\n $ret = [];\n $ret[] = $timevalue;\n $ret[] = $err; # error code\n $ret[] = $errstr; # error text\n return $ret;\n }", "protected function _getData()\n {\n return\n substr(Transform::toUInt32BE($this->_bufferSize), 1, 3) .\n Transform::toInt8($this->_infoFlags) .\n Transform::toInt32BE($this->_offset);\n }", "public function get_raw_data()\n {\n }", "public function get_raw_data()\n {\n }", "protected function _read()\n {\n $flags = ord(fread($this->_socket, 1));\n $info = stream_get_meta_data($this->_socket);\n\n if ($info['timed_out'] === true) {\n fclose($this->_socket);\n throw new Zend_TimeSync_Exception('could not connect to ' .\n \"'$this->_timeserver' on port '$this->_port', reason: 'server timed out'\");\n }\n\n $result = [\n 'flags' => $flags,\n 'stratum' => ord(fread($this->_socket, 1)),\n 'poll' => ord(fread($this->_socket, 1)),\n 'precision' => ord(fread($this->_socket, 1)),\n 'rootdelay' => $this->_getFloat(fread($this->_socket, 4)),\n 'rootdispersion' => $this->_getFloat(fread($this->_socket, 4)),\n 'referenceid' => fread($this->_socket, 4),\n 'referencestamp' => $this->_getTimestamp(fread($this->_socket, 8)),\n 'originatestamp' => $this->_getTimestamp(fread($this->_socket, 8)),\n 'receivestamp' => $this->_getTimestamp(fread($this->_socket, 8)),\n 'transmitstamp' => $this->_getTimestamp(fread($this->_socket, 8)),\n 'clientreceived' => microtime(true)\n ];\n\n $this->_disconnect();\n return $result;\n }", "public function getData()\n {\n $data = $this->data;\n if ($this->cursor > 0) {\n $data .= $this->workingByte->getData();\n }\n return $data;\n }", "public function getContents() {\n return substr($this->data, 0, $this->getPayloadStartingByte() + $this->getPayloadLength());\n }", "public function getRawResponse();", "public function get_raw_data() {\n\t\treturn $this->raw_data;\n\t}", "public function getRawContent();", "public function getResponseData();", "public static function dataExtractMicroseconds() {\n\t\treturn array(\n\t\t\t\tarray(1373462199, 123456, 'America/New_York', '2013-07-10T09:16:39-04:00'),\n\t\t\t\tarray(1373462199, 0, 'America/New_York', '2013-07-10T09:16:39-04:00'),\n\t\t\t\tarray(1383458400, 234500,'America/New_York', '2013-11-03T01:00:00-05:00'),\n\t\t\t\tarray(1383458399, 343400,'America/New_York', '2013-11-03T01:59:59-04:00'),\n\t\t\t\t);\n\t}", "public function content() {\n try {\n $r= '';\n while ($this->stream->available()) {\n $r.= $this->stream->read();\n }\n return $r;\n } finally {\n $this->stream->close();\n }\n }", "public function getIncomingData() {}", "public function get_lastLogs(): string\n {\n // $content is a bin;\n\n $content = $this->_download('logs.txt');\n return $content;\n }", "public function getBytes()\n {\n fseek($this->_fd, 0, SEEK_SET);\n return stream_get_contents($this->_fd);\n }", "public function getRawResponse() {\n\t}", "public static function getRawData()\n {\n return self::$rawData;\n }", "public function bytes();", "function json_decode_with_decrypt($paramHttpRawPostData)\n\t{\n\t\tglobal $result_string;\n\t\t$datetime_part_of_string = \"\";\n\t\t//echo \"Hi! <br />\\r\\n\";\n\t\t$result_string = \"\";\n\t\tif(!is_null($paramHttpRawPostData))\n\t\t{\n\t\t\t//echo \"Current Server DateTime |\".date(\"Y-m-d H:i:s\").\"|<br />\\r\\nAs Timestamp |\".var_export(date(\"U\"),true).\"|\";\n\t\t\t$decoded_http_raw_post_data = base64_decode(trim($paramHttpRawPostData) , false);\n\t\t\t//v a r _ d u m p($decoded_http_raw_post_data);\n\t\t\t$decoded_http_raw_post_data_as_array = unpack(\"C*\" , $decoded_http_raw_post_data);\n\t\t\t//echo str_replace(var_export($decoded_http_raw_post_data_as_array,true),array('\\r','\\n'),'');\n\t\t\t//echo '<br />\\r\\n';\n\t\t\tif(is_array($decoded_http_raw_post_data_as_array)&&(!is_null($decoded_http_raw_post_data_as_array)))\n\t\t\t{\n\t\t\t\tif(count($decoded_http_raw_post_data_as_array)>=19)\n\t\t\t\t{\n\t\t\t\t\t$ii = 0;\n\t\t\t\t\tfor($ii=count($decoded_http_raw_post_data_as_array)-1;($ii>1)&&(!is_null($decoded_http_raw_post_data_as_array[$ii-1]));$ii--)\n\t\t\t\t\t{\n\t\t\t\t\t\t$decoded_http_raw_post_data_as_array[$ii] ^= $decoded_http_raw_post_data_as_array[$ii-1];\n\t\t\t\t\t\t$result_string = chr($decoded_http_raw_post_data_as_array[$ii]) . $result_string;\n\t\t\t\t\t\tif($ii<18)\n\t\t\t\t\t\t\t$datetime_part_of_string .= chr($decoded_http_raw_post_data_as_array[$ii]);\n\t\t\t\t\t}\n\t\t\t\t\tif(($ii>=1)?(is_null($decoded_http_raw_post_data_as_array[$ii-1])):$ii==0)\n\t\t\t\t\t\tswitch($decoded_http_raw_post_data_as_array[$ii])\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcase 0:\n\t\t\t\t\t\t\t\t$decoded_http_raw_post_data_as_array[$ii] = '6';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\t\t$decoded_http_raw_post_data_as_array[$ii] = '8';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\t\t$decoded_http_raw_post_data_as_array[$ii] = '7';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\t\t$decoded_http_raw_post_data_as_array[$ii] = '9';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 4:\n\t\t\t\t\t\t\t\t$decoded_http_raw_post_data_as_array[$ii] = '3';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 5:\n\t\t\t\t\t\t\t\t$decoded_http_raw_post_data_as_array[$ii] = '5';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 6:\n\t\t\t\t\t\t\t\t$decoded_http_raw_post_data_as_array[$ii] = '4';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 7:\n\t\t\t\t\t\t\t\t$decoded_http_raw_post_data_as_array[$ii] = '0';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 8:\n\t\t\t\t\t\t\t\t$decoded_http_raw_post_data_as_array[$ii] = '2';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t$decoded_http_raw_post_data_as_array[$ii] = '1';\n\t\t\t\t\t\t}\n\t\t\t\t\t//$result_string = var_export($decoded_http_raw_post_data_as_array[0],true) . \"|\" . var_export($decoded_http_raw_post_data_as_array[1],true) . \"|\" . var_export($decoded_http_raw_post_data_as_array[2],true) . \"|\" . $result_string;\n\t\t\t\t\t$result_string = $decoded_http_raw_post_data_as_array[$ii] . $result_string;\n\t\t\t\t\t$datetime_part_of_string .= $decoded_http_raw_post_data_as_array[$ii];\n\t\t\t\t\t$datetime_part_of_string = trim($datetime_part_of_string);\n\t\t\t\t\t$datetime_timestamp = mktime( intval(substr($datetime_part_of_string,8,2)) , intval(substr($datetime_part_of_string,10,2)) , ((intval(substr($datetime_part_of_string,14))>=500)?1:0)+intval(substr($datetime_part_of_string,12,2)) , intval(substr($datetime_part_of_string,4,2)) , intval(substr($datetime_part_of_string,6,2)) , intval(substr($datetime_part_of_string,0,4)) );\n\t\t\t\t\t//$datetime_timestamp -= 25200; // Shift it to GMT (Greenich Mean Time)\n\t\t\t\t\t$server_timestamp = intval(date(\"U\"));\n\t\t\t\t\t$result_string = trim($result_string);\n\t\t\t\t\t//$resultFile = fopen(\"result_\".mb_substr($result_string , 0 , 17).\".txt\",\"w\");\n\t\t\t\t\t//fwrite($resultFile , $result_string);\n\t\t\t\t\t//fclose($resultFile);\n\t\t\t\t\t$json_part_of_string = mb_substr($result_string , 17);\n\t\t\t\t\tif(abs($datetime_timestamp-$server_timestamp)<=120)\n\t\t\t\t\t{\n\t\t\t\t\t\t//echo $json_part_of_string;\n\t\t\t\t\t\t//$jsonFile = fopen(\"apk-downloader-checker_\".mb_substr($result_string , 0 , 17).\".json\",\"w\");\n\t\t\t\t\t\t//fwrite($jsonFile , $json_part_of_string);\n\t\t\t\t\t\t//fclose($jsonFile);\n\t\t\t\t\t\treturn json_decode($json_part_of_string , true);\n\t\t\t\t\t\t////return $result_string;\n\t\t\t\t\t\t////return $json_part_of_string;\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////$json_part_of_string .= \";datetime_part_of_string='\".$datetime_part_of_string.\"';timestamp_diff=\".abs($datetime_timestamp-$server_timestamp);\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\t// e c h o \"Gap \".abs($datetime_timestamp-$server_timestamp).\" seconds | Proper gap ? \".(?\"true\":\"false\").\"<br />\\r\\n|<br />\\r\\nDateTime Part |\".$datetime_part_of_string.\"|<br />\\r\\nJSON Part |\".$json_part_of_string.\"|\";\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\telse\n\t\t\treturn false;\n\t}", "public function rawContent() {\n\t\treturn $this->sw_request->rawContent();\n\t}", "public function getRespBody()\n {\n $headerSize = curl_getinfo($this->res, CURLINFO_HEADER_SIZE);\n\n return substr($this->lastResponse, $headerSize);\n }", "public function read_string() { return $this->read_bytes(); }", "public function getData()\n {\n return $this->raw;\n }", "public function getBinary($url){ \n $this->init(); \n curl_setopt($this->curl, CURLOPT_URL, $url); \n curl_setopt($this->curl, CURLOPT_BINARYTRANSFER,1); \n $result = curl_exec ($this->curl); \n $this->_close(); \n return $result; \n }", "public function getRawContent(): string{\n if(!$this->gotLogs) throw new LogsFileNotLoaded();\n return file_get_contents($this->logsFile);\n }", "private function getServerResponse() {\r\n\t\t$data = \"\";\r\n\t\twhile ( $str = fgets ( $this->conn, 4096 ) ) {\r\n\t\t\t$data .= $str;\r\n\t\t\tif (substr ( $str, 3, 1 ) == \" \") {\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif ($this->debug)\r\n\t\t\techo $data . \"<br>\";\r\n\t\treturn $data;\r\n\t}", "public function getLastTimestamp()\n\t{\n\t\tif (!$this->isFlv())\n\t\t\treturn 0;\n\t\t\t\n\t\tfseek($this->fh, -4 , SEEK_END); // go back 4 bytes\n\t\t\n\t\t$prev_tag_size_raw = fread ($this->fh, 4);\n\t\t$tag_size = unpack(\"N\", $prev_tag_size_raw);\n\t\t\n\t\t// go back 4 bytes AND the size of the tag + 4 bytes to get to the timestamp\n\t\tfseek ($this->fh, -$tag_size[1], SEEK_END);\n\t\t\n\t\t$data = fread ($this->fh, 4);\n\t\t$data = $data[3].substr($data, 0, 3);\n\t\t$res = unpack(\"N\", $data);\n\t\treturn $res[1];\n\t}", "private function getServerResponse() {\n\t\t$data=\"\";\n\t\twhile($str = fgets($this->conn,4096)) {\n\t\t\t$data .= $str;\n\t\t\tif(substr($str,3,1) == \" \") { break; }\n\t\t}\n\t\tif($this->debug) echo $data . \"<br>\";\n\t\treturn $data;\n\t}", "public function getReturnValues()\n\t{\n\t\t$session = Yii::$app->session;\n\t\t$time = $session->get('screenshotid');\n\t\t$module = Yii::$app->moduleManager->getModule('performance_insights');\n\t\t$moduleBasePath = $module->getBasePath();\n\t\t$imgUrl = Yii::$app->getModule('performance_insights')->getAssetsUrl() . '/screenshots/' . 'screenshot_' . $time . '.png';\n\t\t$inp = $this->readFromLocalFile();\n\t\t$tempArray = json_decode($inp,true);\n\t\t$timeInSec = $this->convertToSeconds($tempArray['fullLoadedTime']);\n\t\t$pageSize = $this->convertToReadableSize($tempArray['responseLength']);\n\t\treturn [\n\t\t\t'timeInSec' => $timeInSec,\n\t\t\t'pageSize' => $pageSize,\n\t\t\t'imgUrl' => $imgUrl\n\t\t];\n\t}", "public function whole() {\n\t\t$binary = parent::whole();\n\n\t\t$server = $this->server;\n\t\t$server->header(\"Content-Transfer-Encoding: Binary\");\n\t\t$server->header(\"Content-disposition: attachment; filename=\\\"\" . $this->file['name'] . \"\\\"\");\n\t\treturn $binary;\n\t}", "public function getDecodedContent();", "function read()\n {\n $response_content = '';\n if ($this->headers['Transfer-Encoding'] == 'chunked')\n {\n while ($chunk_length = hexdec(fgets($this->socket)))\n {\n $response_content_chunk = '';\n $read_length = 0;\n\n while ($read_length < $chunk_length)\n {\n $response_content_chunk .= fread($this->socket, $chunk_length - $read_length);\n $read_length = strlen($response_content_chunk);\n }\n\n $response_content .= $response_content_chunk;\n fgets($this->socket);\n }\n }\n else\n {\n while (!feof($this->socket))\n {\n $response_content .= fgets($this->socket, 128);\n }\n }\n return chop($response_content);\n fclose($this->socket);\n }", "private function getRTSData($packet=''){\n\t\t\n\t\t// generate XML request packet\n\t\tif($packet == 'ShowTimeXml'){\n\t\t\t$xml = new \\SimpleXMLElement('<Request/>');\n\t\t\t$xml->addChild('Version', 1);\n\t\t\t$xml->addChild('Command', 'ShowTimeXml');\n\t\t\t$xml->addChild('ShowAvalTickets', 1);\n\t\t\t$xml->addChild('ShowSales', 1);\n\t\t\t$xml->addChild('ShowSaleLinks', 1);\n\t\t\t$packet = $xml->asXML();\n\t\t}\n\t\t\n\t\t//die($xml->asXML());\n\t\t\n\t\t$ch = curl_init();\n\t\t$timeout = 10;\n\t\tcurl_setopt($ch, CURLOPT_SSLVERSION, 1);\n\t\tcurl_setopt($ch, CURLOPT_URL, 'https://5.formovietickets.com/Data.ASP');\n\t\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\t\tcurl_setopt($ch, CURLOPT_PORT, 2235);\n\t\tcurl_setopt($ch, CURLOPT_POST, true );\n\t\tcurl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);\n\t\t// authenticate user\n\t\tcurl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC ) ;\n\t\tcurl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);\n\t\tcurl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);\n\t\tcurl_setopt($ch, CURLOPT_USERPWD, 'test:test');\n\t\t// send well formed request packet\n\t\tcurl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: text/xml'));\n\t\tcurl_setopt($ch, CURLOPT_POSTFIELDS, $packet );\n\t\t//curl_setopt($ch, CURLOPT_VERBOSE, true);\n\t\t$data = curl_exec($ch);\n\t\tcurl_close($ch);\n\n\t\treturn $data;\n\t}", "public function get_payload();", "function getData() {\n\t\treturn file_get_contents($this->getFile());\n\t}", "public function getServerData() {\n \t\n \t// Return our server object\n \treturn $this->oServerData;\n }", "function GetLocationTimeFromServer($intLocationID, $servertime,$path){\n\n\t$jsonurl = API.$path.\"/api/getlocationtime_daylightsaving.php?intLocationID=\".$intLocationID.\"&server_time=\".urlencode($servertime);\n\t$json = @file_get_contents($jsonurl,0,null,null); \n\t$datetimenow= json_decode($json);\n\t$datetimenowk1 = $datetimenow->servertolocation_datetime; \n\t$ldatetitme = date('Y-m-d H:i:s',strtotime($datetimenowk1));\n\treturn $ldatetitme;\n}", "public function getLastRawRead():?string;", "function getBinary() {return $this->_binary;}", "public function getServerData()\n {\n return $this->vk->request(self::LONG_POOL_REQUEST_METHOD)->response->getResponse();\n }", "function readTimestamp(): int;", "public function getData() {\n $ret= '--'.$this->boundary;\n foreach ($this->parts as $part) {\n $ret.= self::CRLF.$part->getData().self::CRLF.'--'.$this->boundary;\n }\n return $ret.'--'.self::CRLF;\n }", "public function getRawData() {\n return $this->rawData;\n }", "function _PacketRead() {\n\t\t$retarray = array();\n\n\t\t//Fetch the packet size\n\t\twhile ($size = @fread($this->_Sock,4)) {\n\t\t\t$size = unpack('V1Size',$size);\n\t\t\t//Work around valve breaking the protocol\n\t\t\tif ($size[\"Size\"] > 4096) {\n\t\t\t\t//pad with 8 nulls\n\t\t\t\t$packet = \"\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\".fread($this->_Sock,4096);\n\t\t\t} else {\n\t\t\t\t//Read the packet back\n\t\t\t\t$packet = fread($this->_Sock, $size[\"Size\"]);\n\t\t\t}\n\n\t\t\tarray_push($retarray,unpack(\"V1ID/V1Response/a*S1/a*S2\",$packet));\n\t\t}\n\t\treturn $retarray;\n\t}", "private function unpackData()\n {\n return json_decode($this->packedData, true);\n }", "public function getInfo() {\n $file_info = $this->handler->fetch($this->update_info);\n if (isset($file_info['body'])) {\n return unserialize($file_info['body']);\n } else {\n return unserialize($file_info);\n }\n }", "private function getWSData()\r\n\t\t{\r\n\t\t\treturn file_exists($this->_WSDataPath) ? json_decode(file_get_contents($this->_WSDataPath), true) : null ;\r\n\t\t}", "function get_remote_time($location, $switch){\n//get_remote_time use a remote database (from http://twiki.org) to provide remote local time; the database is up to date.\n//to use this service without buying an api is necessary to trick the file get operation by identify as Mozilla; curl will do this trick... ;-) \n\n//format: \tget_remote_time(\"Region/City\", switch);\n//examples:\n//\t\t\tget_remote_time(\"Europe/Bucharest\", 5);\n//\t\t\tget_remote_time(\"Europe/London\", 4);\n//\t\t\tget_remote_time(\"America/Toronto\", 7);\n\n//switches:\n//\t\t\t0 return current remote location day in week (ex: Sun for Sunday)\n//\t\t\t1 return current remote location day in a month (ex: 27)\n//\t\t\t2 return current remote location month (ex: May)\n//\t\t\t3 return current remote location year (ex: 2012)\n//\t\t\t4 return current remote location time (23:20:12 - HH:MM:SS)\n//\t\t\t5 return current remote location time shift related to GMT(+4:00 for GMT+4:00)\n//\t\t\t6 return current remote location zone abbreviation (ex: EEST stands for EEST – Eastern European Summer Time)\n//\t\t\t7 return remote location unprocessed string (ex: \"Sun, 13 May 2012, 16:57:10 -0400 (EDT)\" for America/Toronto)\n\n\t$link = \"http://twiki.org/cgi-bin/xtra/tzdate?tz=\".$location;\n\t$string = str_between(g_file($link), \"<!--tzdate:date-->\", \"<!--/tzdate:date-->\");\n\tif ($switch < 7) {\n\t $stk = explode(\" \",$string);\n\t $stk[0] = trim($stk[0], ',');\n\t $stk[5] = substr($stk[5],0,3).\":\".substr($stk[5],3);\n\t $stk[6] = trim($stk[6], '(,)');\n\treturn $stk[$switch];\n\t}\n\treturn $string;\n}", "public function getRawModuleData() {}", "public function read(){\n \treturn ser_read();\n }", "private function getResponse() {\n\t\t$packed_len = stream_get_contents($this->id, 4); //The first 4 bytes contain our N-packed length\n\t\t$hdr = unpack('Nlen', $packed_len);\n\t\t$len = $hdr['len'];\n\t\t$this->xmlResponse = stream_get_contents($this->id, $len);\n\t}", "function getcontent($server, $port, $file) {\r\n\t\t$cont = \"\";\r\n\t\t$ip = gethostbyname($server);\r\n\t\t$fp = fsockopen($ip, $port);\r\n\t\tif (!$fp) {\r\n\t\t\t return \"Unknown\";\r\n\t\t} else {\r\n\t\t\t $com = \"GET $file HTTP/1.1\\r\\nAccept: */*\\r\\nAccept-Language: de-ch\\r\\nAccept-Encoding: gzip, deflate\\r\\nUser-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)\\r\\nHost: $server:$port\\r\\nConnection: Keep-Alive\\r\\n\\r\\n\";\r\n\t\t\t fputs($fp, $com);\r\n\t\t\t while (!feof($fp)) {\r\n\t\t\t\t $cont .= fread($fp, 500);\r\n\t\t\t }\r\n\t\t\t fclose($fp);\r\n\t\t\t $cont = substr($cont, strpos($cont, \"\\r\\n\\r\\n\") + 4);\r\n\t\t\t return $cont;\r\n\t\t}\r\n\t}", "public function filetime() {\n return $this->info['filetime'];\n }", "function _getFileData($key) \n {\n if ($this->_metadata[$key]['_method'] == 0x8) {\n // If zlib extention is loaded use it\n if (extension_loaded('zlib')) {\n return @ gzinflate(substr($this->_data, $this->_metadata[$key]['_dataStart'], $this->_metadata[$key]['csize']));\n }\n } elseif ($this->_metadata[$key]['_method'] == 0x0) {\n /* Files that aren't compressed. */\n return substr($this->_data, $this->_metadata[$key]['_dataStart'], $this->_metadata[$key]['csize']);\n } elseif ($this->_metadata[$key]['_method'] == 0x12) {\n // If bz2 extention is sucessfully loaded use it\n if (extension_loaded('bz2')) {\n return bzdecompress(substr($this->_data, $this->_metadata[$key]['_dataStart'], $this->_metadata[$key]['csize']));\n }\n }\n return '';\n }", "function http_get_contents($pay_server){\n $timeout = 30;\n $ch = curl_init(); \n // set URL and other appropriate options\n curl_setopt($ch, CURLOPT_URL, $pay_server);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($ch, CURLOPT_BINARYTRANSFER, true);\n curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);\n $file_contents = curl_exec($ch);\n curl_close($ch);\n \n return $file_contents; \n}", "abstract protected function get_data($start_time, $end_time);", "public function getRawContent()\n {\n return iconv('KOI8-R', 'UTF-8', $this->response->getContent());\n }", "public function getFileContent()\n {\n return $this->extractFileAsText();\n }", "abstract protected function getReponseData() ;", "public function Data()\n {\n return $this->parseobject($this->content);\n }", "public function getRawResult();", "function getRawData()\n {\n $this->mkHeaders();\n $out = \"\";\n if ($this->mailto) {\n foreach ($this->mailto as $res) $out .= \"TO: \" . $res . \"<br /><br />\\n\";\n }\n $out .= \"SUBJECT: \" . $this->mailsubj . \"<br /><br />\\n\";\n $out .= \"MESSAGE: \" . $this->mailbody . \"<br /><br />\\n\";\n $out .= \"HEADERS: \" . htmlentities($this->mailheaders) . \"<br /><br />\\n\";\n return $out;\n }", "public static function getDataFromHttpResponse($response)\n {\n $eoln = \"\\r\\n\";\n\n $dataPos = strpos($response, $eoln.$eoln);\n\n return substr($response, $dataPos+4);\n }", "function getRecordTime() {\n\treturn db_query(\"SELECT recordtime FROM RecordTime\");\n}", "public function bytes() {\n return $this->bytes;\n }", "function GetContent () {\n return unserialize(base64_decode($this->hunt_content));\n }", "function getRemoteFileModifyTime($uri,$timeout=null)\n\t{\n\t $uri = parse_url($uri);\n\t $handle = @fsockopen($uri['host'],80);\n\t if (!is_null($timeout)) stream_set_timeout($handle,$timeout);\n\t if(!$handle)\n\t\t return 0;\n\t fputs($handle,\"GET $uri[path] HTTP/1.1\\r\\nHost: $uri[host]\\r\\n\\r\\n\");\n\t $result = 0;\n\t while(!feof($handle))\n\t {\n\t\t $line = fgets($handle,1024);\n\t\t if(!trim($line))\n\t\t break;\n\t\t $col = strpos($line,':');\n\t\t if($col !== false)\n\t\t {\n\t\t $header = trim(substr($line,0,$col));\n\t\t $value = trim(substr($line,$col+1));\n\t\t if(strtolower($header) == 'last-modified')\n\t\t {\n\t\t $result = strtotime($value);\n\t\t break;\n\t\t }\n\t\t }\n\t }\n\t fclose($handle);\n\t return $result;\n\t}", "public static function dataExtractTimestamp() {\n\t\treturn array(\n\t\t\t\tarray(1373462199, 'America/New_York', '2013-07-10T09:16:39-04:00'),\n\t\t\t\tarray(1383458400, 'America/New_York', '2013-11-03T01:00:00-05:00'),\n\t\t\t\tarray(1383458399, 'America/New_York', '2013-11-03T01:59:59-04:00'),\n\t\t\t\t);\n\t}", "public function getDataBytes()\n {\n return $this->dataBytes;\n }", "public function readbyte(){\n \treturn ser_readbyte();\n }", "public function readBuffer() {\n\t\treturn ob_get_clean();\n\t}", "public function getData()\n\t{\n\t\t$cacheManager = Application::getInstance()->getManagedCache();\n\t\t$result = NULL;\n\t\t\n\t\tif ($cacheManager->read(self::CACHE_TTL, $this->cacheId))\n\t\t{\n\t\t\t$result = $cacheManager->get($this->cacheId);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$result = $this->getDataFromVk();\n\t\t\t\n\t\t\t$cacheManager->set($this->cacheId, $result);\n\t\t}\n\t\t\n\t\treturn $result;\n\t}", "public function getData(): string\n\t{\n\t\treturn $this->sData;\n\t}", "public static function getData() {}", "public function getRawData()\n {\n return $this->getProperty('raw_data');\n }", "public function fileTime() { return $this->_m_fileTime; }", "function getLastModifiedTime(){\n /*$output = dbcCmd(\"getLastModifiedTime\\n\");\n \n //Error Check\n if($output[\"stdout\"] == \"failed\\n\"){\n return str_replace(\"\\n\",\"\",$output[\"stdout\"]);\n }\n \n $rtn = array(\"lastModifiedTime\"=>str_replace(\"\\n\",\"\",$output[\"stdout\"]));\n return json_encode($rtn);*/\n return;\n}", "public function getData() {\n\t\t$this->validate();\n\n\t\t// add file header record\n\t\t$data = $this->header->getData();\n\n\t\t// add file batch records\n\t\tforeach ($this->batches as $batch) {\n\t\t\t$data .= $batch->getData();\n\t\t}\n\t\t// add file control record.\n\t\t$data .= $this->control->getData();\n\n\t\treturn $data;\n\t}", "public static function getRawData() {\n\t\tif (static::$rawData === null) {\n\t\t\tstatic::$rawData = file_get_contents('php://input');\n\t\t}\n\n\t\treturn static::$rawData;\n\t}", "function getData() {\n return $this->body->getResponse();\n }", "private function getStreamBody(string $serverResponseFile): string\n {\n $data = $this->getStream($serverResponseFile);\n return $data['body'];\n }", "public function getLastRawWrite():?string;", "public function getData() {\n return $this->parse()['data'];\n }", "function getResponseBody(){\n $page = \"\";\n if ($this->fpopened===FALSE) return $page;\n while (!feof ($this->fpopened)) {\n $page .= fread ($this->fpopened, 1024);\n }\n return $page;\n }", "abstract public function getRawPostPayload() : array;", "abstract function getdata();", "function wp_convert_hr_to_bytes($value)\n {\n }" ]
[ "0.5992594", "0.5865425", "0.5844265", "0.58187187", "0.5744559", "0.5706707", "0.5646844", "0.5562865", "0.5562865", "0.55373675", "0.55373675", "0.5463857", "0.54500353", "0.54160243", "0.539914", "0.53990984", "0.533271", "0.5324283", "0.53229785", "0.5291716", "0.5199365", "0.5181172", "0.51661026", "0.513599", "0.5123795", "0.51046604", "0.5102252", "0.50992465", "0.50937134", "0.5087934", "0.5062858", "0.50402105", "0.503771", "0.5030203", "0.50294024", "0.5018618", "0.50045925", "0.5002339", "0.49941632", "0.49925455", "0.49910963", "0.4974289", "0.49677238", "0.49519047", "0.49407896", "0.49330738", "0.49263927", "0.49178997", "0.49159417", "0.49156278", "0.49043843", "0.4901393", "0.48994467", "0.48927498", "0.4873022", "0.48648044", "0.48561618", "0.48543075", "0.48479062", "0.48318392", "0.4827143", "0.48220846", "0.48179367", "0.48137683", "0.4812281", "0.48015633", "0.4791997", "0.4769069", "0.47672564", "0.47629318", "0.47625285", "0.47569302", "0.47550404", "0.4741164", "0.47289968", "0.47257283", "0.47245643", "0.47234094", "0.47231358", "0.47212222", "0.47190043", "0.47179002", "0.4709634", "0.47024828", "0.4700951", "0.46943432", "0.4687413", "0.4684545", "0.46822205", "0.4678662", "0.46768576", "0.4674868", "0.46744862", "0.4668005", "0.46640897", "0.46634996", "0.46631545", "0.4656448", "0.46540636", "0.46502417" ]
0.5723566
5
Register the listeners for the subscriber.
public function subscribe($events) { $events->listen( \App\Events\Backend\PricingHistory\GeneralPricingHistoryCreated::class, 'App\Listeners\Backend\PricingHistory\GeneralPricingHistoryEventListener@onCreated' ); $events->listen( \App\Events\Backend\PricingHistory\GeneralPricingHistoryUpdated::class, 'App\Listeners\Backend\PricingHistory\GeneralPricingHistoryEventListener@onUpdated' ); $events->listen( \App\Events\Backend\PricingHistory\GeneralPricingHistoryDeleted::class, 'App\Listeners\Backend\PricingHistory\GeneralPricingHistoryEventListener@onDeleted' ); $events->listen( \App\Events\Backend\PricingHistory\GeneralPricingHistoryPermanentlyDeleted::class, 'App\Listeners\Backend\PricingHistory\GeneralPricingHistoryEventListener@onPermanentlyDeleted' ); $events->listen( \App\Events\Backend\PricingHistory\GeneralPricingHistoryRestored::class, 'App\Listeners\Backend\PricingHistory\GeneralPricingHistoryEventListener@onRestored' ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function registerListeners()\n {\n // Login event listener\n #Event::listen('auth.login', function($user) {\n //\n #});\n\n // Logout event subscriber\n #Event::subscribe('Mrcore\\Parser\\Listeners\\MyEventSubscription');\n }", "protected function registerListeners()\n {\n $this->container['listener.server'] = $this->container->share(function ($c) {\n return new \\Symfttpd\\EventDispatcher\\Listener\\ServerListener($c['filesystem'], $c['generator.server']);\n });\n\n $this->container['listener.gateway'] = $this->container->share(function ($c) {\n return new \\Symfttpd\\EventDispatcher\\Listener\\GatewayListener($c['filesystem'], $c['generator.gateway']);\n });\n }", "public function subscribe(): void\n {\n foreach (static::$eventHandlerMap as $eventName => $handler) {\n $this->events->listen($eventName, [$this, $handler]);\n }\n }", "protected function registerListeners()\n {\n }", "private function registerSubscribers()\n {\n $extensions = $this->dataGridFactory->getExtensions();\n\n foreach ($extensions as $extension) {\n $extension->registerSubscribers($this);\n }\n }", "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 }", "private function listeners()\n {\n foreach ($this['config']['listeners'] as $eventName => $classService) {\n $this['dispatcher']->addListener($classService::NAME, [new $classService($this), 'dispatch']);\n }\n }", "protected function registerEvents(): void\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 }", "protected function registerEventListener()\n {\n $subscriber = $this->getConfig()->get('audit-trail.subscriber', AuditTrailEventSubscriber::class);\n $this->getDispatcher()->subscribe($subscriber);\n }", "public function addSubscriber(EventSubscriberInterface $subscriber);", "public function addEventSubscriber(IEventSubscriber $subscriber);", "protected function registerEventListeners()\n {\n Event::listen(Started::class, function (Started $event) {\n $this->progress = $this->output->createProgressBar($event->objects->count());\n });\n\n Event::listen(Imported::class, function () {\n if ($this->progress) {\n $this->progress->advance();\n }\n });\n\n Event::listen(ImportFailed::class, function () {\n if ($this->progress) {\n $this->progress->advance();\n }\n });\n\n Event::listen(DeletedMissing::class, function (DeletedMissing $event) {\n $event->deleted->isEmpty()\n ? $this->info(\"\\n No missing users found. None have been soft-deleted.\")\n : $this->info(\"\\n Successfully soft-deleted [{$event->deleted->count()}] users.\");\n });\n\n Event::listen(Completed::class, function (Completed $event) {\n if ($this->progress) {\n $this->progress->finish();\n }\n });\n }", "public function subscribe(Dispatcher $events): void\n {\n $events->listen('admin_enqueue_scripts', [$this, 'enqueueAdminAssets']);\n $events->listen('wp_enqueue_scripts', [$this, 'enqueueAppAssets']);\n $events->listen('login_enqueue_scripts', [$this, 'enqueueAppAssets']);\n $events->listen('admin_init', [$this, 'enqueueEditorAssets']);\n }", "public function subscribe(Dispatcher $events): void\n {\n $events->listen('admin_enqueue_scripts', [$this, 'enqueueAdminAssets']);\n $events->listen('wp_enqueue_scripts', [$this, 'enqueueAppAssets']);\n $events->listen('login_enqueue_scripts', [$this, 'enqueueAppAssets']);\n $events->listen('admin_init', [$this, 'enqueueEditorAssets']);\n }", "public function register(): void\n {\n $eventManager = EventManager::getInstance();\n\n $this->discoverEvents();\n\n foreach ($this->getListeners() as $moduleName => $moduleEvents) {\n foreach ($moduleEvents as $eventName => $eventListeners) {\n foreach (array_unique($eventListeners) as $listener) {\n $eventManager->addEventHandler(\n $moduleName,\n $eventName,\n [$listener, 'handle']\n );\n }\n }\n }\n }", "protected function setupListeners()\n {\n //\n }", "protected function listenForEvents()\n {\n $callback = function ($event) {\n foreach ($this->logWriters as $writer) {\n $writer->log($event);\n }\n };\n\n $this->events->listen(JobProcessing::class, $callback);\n $this->events->listen(JobProcessed::class, $callback);\n $this->events->listen(JobFailed::class, $callback);\n $this->events->listen(JobExceptionOccurred::class, $callback);\n }", "public function subscribe(SubscriberInterface $subscriber);", "public function subscribe($events)\n {\n $events->listen(\n 'App\\Events\\Subscriber\\Created',\n 'App\\Listeners\\SubscriberSubscriber@sendVerification'\n );\n }", "public function subscribe(Dispatcher $events)\n {\n $events->listen(\n [\n 'App\\EventSourcing\\Events\\Merchant\\LoggedIn',\n 'App\\EventSourcing\\Events\\Merchant\\SignedUp',\n ],\n 'App\\EventSourcing\\Listeners\\UserListener@handle'\n );\n }", "public function createSubscriber();", "public function register()\n\t{\n\t\t$this->runListeners();\n\t}", "public function init()\n {\n $notified = [];\n /** @var ListenerInterface $subscriber */\n foreach ($this->subscribers as $message => $subscribers) {\n foreach ($subscribers as $subscriber) {\n if (in_array($subscriber, $notified)) {\n continue;\n }\n $subscriber->init();\n $notified[] = $subscriber;\n }\n }\n }", "public function subscribe($events)\n {\n $events->listen(\n DocumentUploaded::class,\n self::PATH . 'documentUploaded'\n );\n }", "public static function registerListeners()\n {\n static::creating('Wildside\\Userstamps\\Listeners\\Creating@handle');\n static::updating('Wildside\\Userstamps\\Listeners\\Updating@handle');\n\n if( method_exists(get_called_class(), 'deleting') )\n {\n static::deleting('Wildside\\Userstamps\\Listeners\\Deleting@handle');\n }\n\n if( method_exists(get_called_class(), 'restoring') )\n {\n static::restoring('Wildside\\Userstamps\\Listeners\\Restoring@handle');\n }\n }", "public function subscribe($events)\n {\n $events->listen('mailActivateAccount', 'App\\Listeners\\MailEventHandler@mailActivateAccount');\n $events->listen('mailActivatedAccount', 'App\\Listeners\\MailEventHandler@mailActivatedAccount');\n $events->listen('mailPasswordReminder', 'App\\Listeners\\MailEventHandler@mailPasswordReminder');\n }", "public function collectSubscribers();", "public function subscribe($subscriber): void;", "private function subscribeEvents()\n {\n // Subscribe the needed event for less merge and compression\n $this->subscribeEvent(\n 'Theme_Compiler_Collect_Plugin_Less',\n 'addLessFiles'\n );\n\n $this->subscribeEvent(\n 'Shopware_Controllers_Widgets_Emotion_AddElement',\n 'onEmotionAddElement'\n );\n\n $this->subscribeEvent(\n 'Enlight_Controller_Action_PostDispatchSecure_Frontend',\n 'onPostDispatchFrontend'\n );\n }", "public function getSubscribedEvents();", "public function subscribe($events)\n {\n $events->listen(\n 'Coyote\\Events\\WikiWasSaved',\n 'Coyote\\Listeners\\WikiListener@onWikiSave'\n );\n\n $events->listen(\n 'Coyote\\Events\\WikiWasDeleted',\n 'Coyote\\Listeners\\WikiListener@onWikiDelete'\n );\n }", "public static function getSubscribedEvents();", "public static function getSubscribedEvents();", "public function subscribe();", "public function subscribe($events) {\n $events->listen(\n 'App\\Events\\LockUserAccount',\n 'App\\Listeners\\AdminActionsSubscriber@onAccountLocked'\n );\n\n $events->listen(\n 'App\\Events\\AutoClearOldEvents',\n 'App\\Listeners\\AdminActionsSubscriber@onAutoClearOldEvents'\n );\n\n $events->listen(\n 'App\\Events\\AdminUpdateUserDetail',\n 'App\\Listeners\\AdminActionsSubscriber@onAdminUpdateUserDetail'\n );\n\n $events->listen(\n 'App\\Events\\AdminUpdateUserPassword',\n 'App\\Listeners\\AdminActionsSubscriber@onAdminUpdateUserPassword'\n );\n\n $events->listen(\n 'App\\Events\\AdminUpdateJobTitle',\n 'App\\Listeners\\AdminActionsSubscriber@onAdminUpdateJobTitle'\n );\n\n $events->listen(\n 'App\\Events\\InstitutionEvent',\n 'App\\Listeners\\AdminActionsSubscriber@onInstitutionUpdated'\n );\n }", "public function subscribe($events)\n {\n $events->listen(\n 'App\\Events\\UserSignUp',\n 'App\\Listeners\\SendMailSubscriber@onUserSignUp'\n );\n\n $events->listen(\n 'App\\Events\\UserPasswordReset',\n 'App\\Listeners\\SendMailSubscriber@onUserResetPassword'\n );\n }", "public function subscribe(Dispatcher $events)\n {\n foreach (static::$eventHandlerMap as $eventName => $handler) {\n $events->listen($eventName, array($this, $handler));\n }\n }", "public function subscribe(Dispatcher $events)\n {\n $events->listen(\n 'Illuminate\\Auth\\Events\\Authenticated',\n 'Thekavish\\LoginLogger\\Listeners\\LoginEventSubscriber@onUserLoginPassed'\n );\n\n $events->listen(\n 'Illuminate\\Auth\\Events\\Failed',\n 'Thekavish\\LoginLogger\\Listeners\\LoginEventSubscriber@onUserLoginFailed'\n );\n\n $events->listen(\n 'Illuminate\\Auth\\Events\\Logout',\n 'Thekavish\\LoginLogger\\Listeners\\LoginEventSubscriber@onUserLogout'\n );\n }", "public function subscribe($events)\n {\n $events->listen(\n UserLoggedIn::class,\n 'App\\Domains\\Auth\\Listeners\\UserEventListener@onLoggedIn'\n );\n\n $events->listen(\n PasswordReset::class,\n 'App\\Domains\\Auth\\Listeners\\UserEventListener@onPasswordReset'\n );\n\n $events->listen(\n UserCreated::class,\n 'App\\Domains\\Auth\\Listeners\\UserEventListener@onCreated'\n );\n\n $events->listen(\n UserUpdated::class,\n 'App\\Domains\\Auth\\Listeners\\UserEventListener@onUpdated'\n );\n\n $events->listen(\n UserDeleted::class,\n 'App\\Domains\\Auth\\Listeners\\UserEventListener@onDeleted'\n );\n\n $events->listen(\n UserRestored::class,\n 'App\\Domains\\Auth\\Listeners\\UserEventListener@onRestored'\n );\n\n $events->listen(\n UserDestroyed::class,\n 'App\\Domains\\Auth\\Listeners\\UserEventListener@onDestroyed'\n );\n\n $events->listen(\n UserStatusChanged::class,\n 'App\\Domains\\Auth\\Listeners\\UserEventListener@onStatusChanged'\n );\n }", "public function subscribe($events)\n {\n $events->listen(\n UserCreated::class,\n 'Modules\\User\\Listeners\\UserEventListener@onCreated'\n );\n\n $events->listen(\n UserUpdated::class,\n 'Modules\\User\\Listeners\\UserEventListener@onUpdated'\n );\n\n $events->listen(\n UserDeleted::class,\n 'Modules\\User\\Listeners\\UserEventListener@onDeleted'\n );\n }", "public function subscribe($subscriber);", "public function listenForEvents()\n {\n Event::listen(DummyEvent::class, DummyListener::class);\n\n event(new DummyEvent);\n }", "public function subscribe($events)\n {\n $events->listen(\n MicroblogSaved::class,\n 'Coyote\\Listeners\\MicroblogListener@onMicroblogSave'\n );\n\n $events->listen(\n MicroblogDeleted::class,\n 'Coyote\\Listeners\\MicroblogListener@onMicroblogDelete'\n );\n }", "public function initializeListeners()\n {\n $this->eventsEnabled = false;\n $this->setPreloads();\n $this->setEvents();\n $this->eventsEnabled = true;\n }", "public function subscribe($events)\n {\n $events->listen(\n \\App\\Listeners\\Backend\\GemSighting\\GemSightingCreated::class,\n 'App\\Listeners\\Backend\\GemSightingEventListener@onCreated'\n );\n\n $events->listen(\n \\App\\Listeners\\Backend\\GemSighting\\GemSightingUpdated::class,\n 'App\\Listeners\\Backend\\GemSightingEventListener@onUpdated'\n );\n\n $events->listen(\n \\App\\Listeners\\Backend\\GemSighting\\GemSightingDeleted::class,\n 'App\\Listeners\\Backend\\GemSightingEventListener@onDeleted'\n );\n }", "public function subscribe($events)\n {\n $events->listen(\n 'Lavender\\Events\\Entity\\QuerySelect',\n 'App\\Handlers\\Events\\StoreHandler@addStoreToSelect'\n );\n\n $events->listen(\n 'Lavender\\Events\\Entity\\QueryInsert',\n 'App\\Handlers\\Events\\StoreHandler@addStoreToInsert'\n );\n\n $events->listen(\n 'Lavender\\Events\\Entity\\SchemaPrepare',\n 'App\\Handlers\\Events\\StoreHandler@addStoreToTable'\n );\n }", "public function subscribers() {\n return new Subscriber($this);\n }", "public function subscribes();", "public function subscribe($events)\n {\n $events->listen(\n ManagerSaved::class,\n 'App\\Listeners\\ManagerEventSubscriber@onManagerSaved'\n );\n }", "public function subscribe($events)\n {\n $events->listen('Swapbot\\Events\\CustomerAddedToSwap', 'Swapbot\\Handlers\\Events\\CustomerEmailHandler@customerAddedToSwap');\n $events->listen('Swapbot\\Events\\SwapWasConfirmed', 'Swapbot\\Handlers\\Events\\CustomerEmailHandler@swapWasConfirmed');\n $events->listen('Swapbot\\Events\\SwapWasCompleted', 'Swapbot\\Handlers\\Events\\CustomerEmailHandler@swapWasCompleted');\n $events->listen('Swapbot\\Events\\SwapWasPermanentlyErrored', 'Swapbot\\Handlers\\Events\\CustomerEmailHandler@swapWasPermanentlyErrored');\n }", "public function subscribe($events)\n {\n $events->listen(\n Creating::class,\n 'App\\Listeners\\BuildersRiskSubscriber@onCreate'\n );\n $events->listen(\n Created::class,\n 'App\\Listeners\\BuildersRiskSubscriber@onCreated'\n );\n }", "public function subscribe($events)\n {\n $events->listen(\n 'App\\Events\\Poll\\Created',\n 'App\\Listeners\\PollEventSubscriber@onCreated'\n );\n $events->listen(\n 'App\\Events\\Poll\\Deleted',\n 'App\\Listeners\\PollEventSubscriber@onDeleted'\n );\n $events->listen(\n 'App\\Events\\Poll\\Results',\n 'App\\Listeners\\PollEventSubscriber@onResults'\n );\n }", "protected function registerSubscribers(EventDispatcher $eventDispatcher): void\n {\n parent::registerSubscribers($eventDispatcher);\n\n // Register additional event subscribers that are only meant to be notified in a development environment:\n }", "public function subscribe($events)\n {\n $events->listen(\n AttendanceCreated::class,\n 'App\\Listeners\\NotificationListener@onAttendanceCreated'\n );\n\n $events->listen(\n MarkCreated::class,\n 'App\\Listeners\\NotificationListener@onMarkCreated'\n );\n\n }", "public function subscribe($events)\n {\n $events->listen(\n 'App\\Events\\CreatePermission',\n 'App\\Listeners\\PermissionEventSubscriber@onCreate'\n );\n\n $events->listen(\n 'App\\Events\\DeletePermission',\n 'App\\Listeners\\PermissionEventSubscriber@onDelete'\n );\n\n $events->listen(\n 'App\\Events\\UpdatePermission',\n 'App\\Listeners\\PermissionEventSubscriber@onUpdate'\n );\n }", "protected function registerEvents(): void\n {\n Event::listen(MessageLogged::class, function (MessageLogged $e) {\n if( app()->bound('current-context') )\n app('current-context')->log((array)$e);\n });\n }", "public function subscribe($events) {\n /* Publication */\n //$events->listen('publication.save', 'PublicationObserver@onPublicationSave');\n// $events->listen('publication.addImage', 'PublicationObserver@onPublicationAddImage');\n// $events->listen('publication.deleteImage', 'PublicationObserver@onPublicationDeleteImage');\n $events->listen('publication.change', 'PublicationObserver@onPublicationChange');\n\n //$events->listen('user.logout', 'CacheHandler@onUserLogout');\n }", "public function subscribe($events)\n {\n $events->listen(\n 'Illuminate\\Auth\\Events\\Registered',\n 'WebModularity\\LaravelUser\\Listeners\\UserAuthEventSubscriber@onUserRegister'\n );\n\n $events->listen(\n 'Illuminate\\Auth\\Events\\Login',\n 'WebModularity\\LaravelUser\\Listeners\\UserAuthEventSubscriber@onUserLogin'\n );\n\n $events->listen(\n 'Illuminate\\Auth\\Events\\Logout',\n 'WebModularity\\LaravelUser\\Listeners\\UserAuthEventSubscriber@onUserLogout'\n );\n }", "public function subscribe($events)\n {\n $events->listen(\n 'Illuminate\\Auth\\Events\\Login',\n 'App\\Listeners\\UserEventListener@handleUserLogin'\n );\n\n $events->listen(\n 'Illuminate\\Auth\\Events\\Logout',\n 'App\\Listeners\\UserEventListener@handleUserLogout'\n );\n }", "public function listen() {\n $this->source->listen($this->id);\n }", "public function subscribe($events)\n {\n $events->listen(\n UserLoggedIn::class,\n 'App\\Listeners\\Frontend\\System\\Auth\\UserEventListener@onLoggedIn'\n );\n\n $events->listen(\n UserLoggedOut::class,\n 'App\\Listeners\\Frontend\\System\\Auth\\UserEventListener@onLoggedOut'\n );\n\n $events->listen(\n UserRegistered::class,\n 'App\\Listeners\\Frontend\\System\\Auth\\UserEventListener@onRegistered'\n );\n\n $events->listen(\n UserProviderRegistered::class,\n 'App\\Listeners\\Frontend\\System\\Auth\\UserEventListener@onProviderRegistered'\n );\n\n $events->listen(\n UserConfirmed::class,\n 'App\\Listeners\\Frontend\\System\\Auth\\UserEventListener@onConfirmed'\n );\n }", "public function subscribe($events)\n {\n $events->listen(\n 'Coyote\\Events\\TopicSaved',\n 'Coyote\\Listeners\\TopicListener@onTopicSave'\n );\n\n $events->listen(\n 'Coyote\\Events\\TopicMoved',\n 'Coyote\\Listeners\\TopicListener@onTopicMove'\n );\n\n $events->listen(\n 'Coyote\\Events\\TopicDeleted',\n 'Coyote\\Listeners\\TopicListener@onTopicDelete'\n );\n }", "public function listen($events, $listener = null): void;", "public function subscribe(Events $events)\n\t{\n\t\t$events->listen('crud::saved', array($this, 'onSaved'));\n\t}", "public function subscribe($events)\n {\n $events->listen(\n 'Coyote\\Events\\PostWasSaved',\n 'Coyote\\Listeners\\PostListener@onPostSave'\n );\n\n $events->listen(\n 'Coyote\\Events\\PostWasDeleted',\n 'Coyote\\Listeners\\PostListener@onPostDelete'\n );\n }", "public function subscribe($events)\n {\n $events->listen(\n Login::class,\n 'AppCompass\\Listeners\\UserEventSubscriber@onUserLogin'\n );\n\n $events->listen(\n Logout::class,\n 'AppCompass\\Listeners\\UserEventSubscriber@onUserLogout'\n );\n\n $events->listen(\n UserCheck::class,\n 'AppCompass\\Listeners\\UserEventSubscriber@onUserCheck'\n );\n\n $events->listen(\n UserUpdated::class,\n 'AppCompass\\Listeners\\UserEventSubscriber@onUserUpdated'\n );\n }", "public function subscribeEvents()\n {\n $this->subscribeEvent('Enlight_Controller_Front_StartDispatch', 'onStartDispatch');\n }", "public function getSubscribedEvents()\n {\n return array('onFlush', 'loadClassMetadata');\n }", "protected function initEventLogger(): void\n {\n $logger = $this->newEventLogger();\n\n foreach ($this->listen as $event) {\n $this->dispatcher->listen($event, function ($eventName, $events) use ($logger) {\n foreach ($events as $event) {\n $logger->log($event);\n }\n });\n }\n }", "public function listenToEvents()\n\t{\n\t\tif ($scope = $this->getModelResolvingScope()) {\n\t\t\t$this->eventDispatcher->listen('eloquent.booted: *', function ($model, $data = null) use ($scope) {\n\t\t\t\tif (is_string($model) && is_array($data)) { // Laravel 5.4 wildcard event\n\t\t\t\t\t$model = reset($data);\n\t\t\t\t}\n\n\t\t\t\t$model->addGlobalScope($scope);\n\t\t\t});\n\t\t}\n\n\t\tif (class_exists(\\Illuminate\\Database\\Events\\QueryExecuted::class)) {\n\t\t\t// Laravel 5.2 and up\n\t\t\t$this->eventDispatcher->listen(\\Illuminate\\Database\\Events\\QueryExecuted::class, function ($event) {\n\t\t\t\t$this->registerQuery($event);\n\t\t\t});\n\t\t} else {\n\t\t\t// Laravel 5.0 to 5.1\n\t\t\t$this->eventDispatcher->listen('illuminate.query', function ($event) {\n\t\t\t\t$this->registerLegacyQuery($event);\n\t\t\t});\n\t\t}\n\n\t\t// register all event listeners individually so we don't have to regex the event type and support Laravel <5.4\n\t\t$this->listenToModelEvent('retrieved');\n\t\t$this->listenToModelEvent('created');\n\t\t$this->listenToModelEvent('updated');\n\t\t$this->listenToModelEvent('deleted');\n\t}", "protected function setListeners()\n\t{\n\t\t$this->templates->listenEmitBasic('foreach', array($this, 'tpl_foreach'));\n\t\t$this->templates->listenEmitBasic('not-last', array($this, 'tpl_not_last'));\n\t}", "public function subscribe( $events )\n {\n $events->listen(\n 'auth.login',\n 'App\\Listeners\\UserEventListener@onLogin'\n );\n }", "public static function getSubscribedEvents()\n {\n echo 'Test';\n }", "public function subscribe($events)\n {\n $events->listen(\n \\App\\Events\\Backend\\JobCategory\\JobCategoryCreated::class,\n 'App\\Listeners\\Backend\\JobCategory\\JobCategoryEventListener@onCreated'\n );\n\n $events->listen(\n \\App\\Events\\Backend\\JobCategory\\JobCategoryUpdated::class,\n 'App\\Listeners\\Backend\\JobCategory\\JobCategoryEventListener@onUpdated'\n );\n\n $events->listen(\n \\App\\Events\\Backend\\JobCategory\\JobCategoryDeleted::class,\n 'App\\Listeners\\Backend\\JobCategory\\JobCategoryEventListener@onDeleted'\n );\n }", "public function registerEvents()\n {\n $this->subscribeEvent(\n 'Shopware_Controllers_Widgets_Emotion_AddElement',\n 'onEmotionAddElement'\n );\n\n $this->subscribeEvent(\n 'Enlight_Controller_Action_PostDispatchSecure_Widgets_Campaign',\n 'extendsEmotionTemplates'\n );\n\n $this->subscribeEvent(\n 'Theme_Compiler_Collect_Plugin_Less',\n 'addLessFiles'\n );\n\n /**\n * Subscribe to the post dispatch event of the emotion backend module to extend the components.\n */\n $this->subscribeEvent(\n 'Enlight_Controller_Action_PostDispatchSecure_Backend_Emotion',\n 'onPostDispatchBackendEmotion'\n );\n }", "public function subscribe($events)\n {\n $events->listen(\n \\App\\Events\\Backend\\Tasks\\TaskCreated::class,\n 'App\\Listeners\\Backend\\Tasks\\TaskEventListener@onCreated'\n );\n\n $events->listen(\n \\App\\Events\\Backend\\Tasks\\TaskUpdated::class,\n 'App\\Listeners\\Backend\\Tasks\\TaskEventListener@onUpdated'\n );\n\n $events->listen(\n \\App\\Events\\Backend\\Tasks\\TaskDeleted::class,\n 'App\\Listeners\\Backend\\Tasks\\TaskEventListener@onDeleted'\n );\n }", "public function addSubscriber(EventSubscriberInterface $subscriber)\n {\n $this->dispatcher->addSubscriber($subscriber);\n }", "public function subscribe($events)\n {\n $events->listen(\n \\App\\Events\\Backend\\Skill\\SkillCreated::class,\n 'App\\Listeners\\Backend\\Skill\\SkillEventListener@onCreated'\n );\n\n $events->listen(\n \\App\\Events\\Backend\\Skill\\SkillUpdated::class,\n 'App\\Listeners\\Backend\\Skill\\SkillEventListener@onUpdated'\n );\n\n $events->listen(\n \\App\\Events\\Backend\\Skill\\SkillDeleted::class,\n 'App\\Listeners\\Backend\\Skill\\SkillEventListener@onDeleted'\n );\n }", "public function subscribe($events) {\n $events->listen('view.make', 'GrahamCampbell\\BootstrapCMS\\Subscribers\\NavigationSubscriber@onViewMake', 5);\n $events->listen('navigation.main', 'GrahamCampbell\\BootstrapCMS\\Subscribers\\NavigationSubscriber@onNavigationMainFirst', 8);\n $events->listen('navigation.main', 'GrahamCampbell\\BootstrapCMS\\Subscribers\\NavigationSubscriber@onNavigationMainSecond', 5);\n $events->listen('navigation.main', 'GrahamCampbell\\BootstrapCMS\\Subscribers\\NavigationSubscriber@onNavigationMainThird', 2);\n $events->listen('navigation.bar', 'GrahamCampbell\\BootstrapCMS\\Subscribers\\NavigationSubscriber@onNavigationBar', 2);\n }", "public function subscribe(): void;", "protected function _subscribeToEngineEvents()\n {\n $controller = $this->getController();\n $controller->addEventListener(\n Streamwide_Engine_Events_Event::ENDOFFAX,\n array(\n 'callback' => array( $this, 'onEndOfFax' ),\n 'options' => array( 'autoRemove' => 'before' )\n )\n );\n $controller->addEventListener(\n Streamwide_Engine_Events_Event::FAXPAGE,\n array( 'callback' => array( $this, 'onFaxPage' ) )\n );\n }", "public function subscribe($events)\n {\n $events->listen(\n \\App\\Events\\Backend\\ClassName\\ClassNameCreated::class,\n 'App\\Listeners\\Backend\\ClassName\\ClassNameEventListener@onCreated'\n );\n\n $events->listen(\n \\App\\Events\\Backend\\ClassName\\ClassNameDeleted::class,\n 'App\\Listeners\\Backend\\ClassName\\ClassNameEventListener@onDeleted'\n );\n\n $events->listen(\n \\App\\Events\\Backend\\ClassName\\ClassNameermanentlyDeleted::class,\n 'App\\Listeners\\Backend\\ClassName\\ClassNameEventListener@onermanentlyDeleted'\n );\n\n $events->listen(\n \\App\\Events\\Backend\\ClassName\\ClassNameRestored::class,\n 'App\\Listeners\\Backend\\ClassName\\ClassNameEventListener@onRestored'\n );\n\n $events->listen(\n \\App\\Events\\Backend\\ClassName\\ClassNameUpdated::class,\n 'App\\Listeners\\Backend\\ClassName\\ClassNameEventListener@onUpdated'\n );\n }", "public function subscribe($events)\n {\n $events->listen(\n \\App\\Events\\Access\\User\\UserCreated::class,\n 'App\\Listeners\\UserEventListener@onCreated'\n );\n\n $events->listen(\n \\App\\Events\\Access\\User\\UserUpdated::class,\n 'App\\Listeners\\UserEventListener@onUpdated'\n );\n\n $events->listen(\n \\App\\Events\\Access\\User\\UserDeleted::class,\n 'App\\Listeners\\UserEventListener@onDeleted'\n );\n\n $events->listen(\n \\App\\Events\\Access\\User\\UserRestored::class,\n 'App\\Listeners\\UserEventListener@onRestored'\n );\n\n $events->listen(\n \\App\\Events\\Access\\User\\UserPermanentlyDeleted::class,\n 'App\\Listeners\\UserEventListener@onPermanentlyDeleted'\n );\n\n $events->listen(\n \\App\\Events\\Access\\User\\UserPasswordChanged::class,\n 'App\\Listeners\\UserEventListener@onPasswordChanged'\n );\n\n $events->listen(\n \\App\\Events\\Access\\User\\UserDeactivated::class,\n 'App\\Listeners\\UserEventListener@onDeactivated'\n );\n\n $events->listen(\n \\App\\Events\\Access\\User\\UserReactivated::class,\n 'App\\Listeners\\UserEventListener@onReactivated'\n );\n }", "public function boot()\n {\n if (!chdir($this->path)) {\n return;\n }\n\n $directories = array_filter(glob('*'), 'is_dir');\n\n foreach ($directories as $directory) {\n if ($this->hasListenFile($directory)) {\n $this->registerListeners($directory);\n }\n }\n\n foreach ($this->subscribe as $subscriber) {\n Event::subscribe($subscriber);\n }\n }", "public function subscribe($events): void\n {\n $events->listen(\n 'Illuminate\\Auth\\Events\\Login',\n 'App\\Listeners\\UserEventSubscriber@handleUserLogin'\n );\n\n $events->listen(\n 'Illuminate\\Auth\\Events\\Logout',\n 'App\\Listeners\\UserEventSubscriber@handleUserLogout'\n );\n }", "public function subscribe($events)\n {\n $events->listen('public_views.created', 'Cms\\Events\\Crud\\PublicViewsEventHandler@onCreate');\n $events->listen('public_views.updated', 'Cms\\Events\\Crud\\PublicViewsEventHandler@onUpdate');\n $events->listen('public_views.deleted', 'Cms\\Events\\Crud\\PublicViewsEventHandler@onDelete');\n }", "public function subscribe($events)\n {\n //这里需申明完整类路径,否则会出现'Class UserEventListener does not exist'错误\n $events->listen('App\\Events\\OrderFailDeal', 'App\\Listeners\\OrderEventListener@onOrderFailDeal');\n\n $events->listen('App\\Events\\OrderSuccCloudSystem', 'App\\Listeners\\OrderEventListener@onOrderSuccCloudSystem');\n\n $events->listen('App\\Events\\OrderSuccCloudPlatform', 'App\\Listeners\\OrderEventListener@onOrderSuccCloudPlatform');\n\n $events->listen('App\\Events\\OrderSuccServiceLlhb', 'App\\Listeners\\OrderEventListener@onOrderSuccServiceLlhb');\n }", "public function setup()\n {\n $this->getClient()->addSubscriber($this);\n }", "public function subscribe($events)\n {\n $events->listen(\n 'App\\Events\\OrderCreated',\n 'App\\Listeners\\OrderEventSubscriber@handleOrderCreated'\n );\n $events->listen(\n 'App\\Events\\OrderUpdated',\n 'App\\Listeners\\OrderEventSubscriber@handleOrderUpdated'\n );\n }", "public function listen($listener);", "public function subscribe($events)\n {\n $events->listen('Illuminate\\Mail\\Events\\MessageSending', self::class.'@onSending');\n }", "public function register() : void\n {\n $this->registerDefaultEventSourcingBindings();\n $this->registerEventStore();\n }", "public function subscribe($events)\n {\n foreach ([\n QueryExecuted::class,\n TransactionBeginning::class,\n TransactionCommitted::class,\n TransactionRolledBack::class,\n ] as $className) {\n $events->listen($className, [__CLASS__, 'handle'.class_basename($className)]);\n }\n }", "public function subscribe(Subscriber $subscriber)\n\t{\n\t\t$this->getEventEmitter()->subscribe($subscriber);\n\t}", "public function subscribe($events)\n {\n $events->listen(\n MarkAsRead::class,\n 'App\\Listeners\\Frontend\\NotificationEventListener@markAsRead'\n );\n }", "protected static function loadListeners() {\n\t\t\n\t\t// default var\n\t\t$configDir = Config::getOption(\"configDir\");\n\t\t\n\t\t// make sure the listener data exists\n\t\tif (file_exists($configDir.\"/listeners.json\")) {\n\t\t\t\n\t\t\t// get listener list data\n\t\t\t$listenerList = json_decode(file_get_contents($configDir.\"/listeners.json\"), true);\n\t\t\t\n\t\t\t// get the listener info\n\t\t\tforeach ($listenerList[\"listeners\"] as $listenerName) {\n\t\t\t\t\n\t\t\t\tif ($listenerName[0] != \"_\") {\n\t\t\t\t\t$listener = new $listenerName();\n\t\t\t\t\t$listeners = $listener->getListeners();\n\t\t\t\t\tforeach ($listeners as $event => $eventProps) {\n\t\t\t\t\t\t$eventPriority = (isset($eventProps[\"priority\"])) ? $eventProps[\"priority\"] : 0;\n\t\t\t\t\t\tself::$instance->addListener($event, array($listener, $eventProps[\"callable\"]), $eventPriority);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t}", "public function initEventLogger()\n {\n $dispatcher = static::getEventDispatcher();\n\n $logger = $this->newEventLogger();\n\n foreach ($this->listen as $event) {\n $dispatcher->listen($event, function ($eventName, $events) use ($logger) {\n foreach ($events as $event) {\n $logger->log($event);\n }\n });\n }\n }", "public function addEventSubscriber(EventSubscriberInterface $subscriber)\n {\n $this->dispatcher->addSubscriber($subscriber);\n }", "public function getSubscribedEvents()\n {\n return array(\n 'postPersist',\n \t'postFlush',\n 'onFlush'\n );\n }", "public function subscribe($events)\n {\n $events->listen(\n 'Illuminate\\Auth\\Events\\Login',\n 'Vongola\\Auth\\Listeners\\AuthEventSubscriber@onUserLogin'\n );\n\n $events->listen(\n 'Illuminate\\Auth\\Events\\Logout',\n 'Vongola\\Auth\\Listeners\\AuthEventSubscriber@onUserLogout'\n );\n }", "public function subscribe($events)\n\t{\n\t\t\n\t\t$events->listen(\n\t\t\t\t\\App\\Events\\Backend\\Plugins\\PluginCreated::class,\n\t\t\t\t'App\\Listeners\\Backend\\Plugins\\PluginEventListener@onCreated'\n\t\t\t\t);\n\t\t\n\t\t$events->listen(\n\t\t\t\t\\App\\Events\\Backend\\Plugins\\PluginUpdated::class,\n\t\t\t\t'App\\Listeners\\Backend\\Plugins\\PluginEventListener@onUpdated'\n\t\t\t\t);\n\t\t\n\t\t$events->listen(\n\t\t\t\t\\App\\Events\\Backend\\Plugins\\PluginDeleted::class,\n\t\t\t\t'App\\Listeners\\Backend\\Plugins\\PluginEventListener@onDeleted'\n\t\t\t\t);\n\t\t\n\t\t$events->listen(\n\t\t\t\t\\App\\Events\\Backend\\Plugins\\PluginRestored::class,\n\t\t\t\t'App\\Listeners\\Backend\\Plugins\\PluginEventListener@onRestored'\n\t\t\t\t);\n\t\t\n\t\t$events->listen(\n\t\t\t\t\\App\\Events\\Backend\\Plugins\\PluginPermanentlyDeleted::class,\n\t\t\t\t'App\\Listeners\\Backend\\Plugins\\PluginEventListener@onPermanentlyDeleted'\n\t\t\t\t);\n\t\n\t\t$events->listen(\n\t\t\t\t\\App\\Events\\Backend\\Plugins\\PluginDeactivated::class,\n\t\t\t\t'App\\Listeners\\Backend\\Plugins\\PluginEventListener@onDeactivated'\n\t\t\t\t);\n\t\t\n\t\t$events->listen(\n\t\t\t\t\\App\\Events\\Backend\\Plugins\\PluginReactivated::class,\n\t\t\t\t'App\\Listeners\\Backend\\Plugins\\PluginEventListener@onReactivated'\n\t\t\t\t);\n\t}" ]
[ "0.76423573", "0.7576691", "0.7523886", "0.7480838", "0.71998376", "0.71273154", "0.70560163", "0.6981671", "0.6912011", "0.67695504", "0.66503614", "0.65324897", "0.6521632", "0.6521632", "0.6494098", "0.64904916", "0.6473717", "0.64685476", "0.64645183", "0.6458164", "0.6436016", "0.6409111", "0.6406168", "0.6403555", "0.6329414", "0.6323689", "0.63206697", "0.6315739", "0.62932307", "0.6292174", "0.6289703", "0.62882495", "0.62882495", "0.6274999", "0.62611055", "0.625404", "0.6253795", "0.62421906", "0.6236076", "0.62351155", "0.6207352", "0.6206196", "0.6196817", "0.61870015", "0.6171064", "0.61692107", "0.6168125", "0.6163157", "0.6153687", "0.6151461", "0.61464006", "0.6142792", "0.6127863", "0.61261106", "0.61214095", "0.6116777", "0.6112167", "0.6111853", "0.6111363", "0.6089414", "0.6087987", "0.6065663", "0.6065214", "0.6064022", "0.60517204", "0.6033935", "0.6033574", "0.6033483", "0.6025389", "0.6024476", "0.60215753", "0.6014708", "0.5996431", "0.5987145", "0.59858537", "0.5982291", "0.5981174", "0.5969359", "0.59653115", "0.59596556", "0.5959535", "0.59588385", "0.595163", "0.594706", "0.59426403", "0.5941353", "0.5939935", "0.5939534", "0.5932896", "0.5931688", "0.59314305", "0.59269047", "0.59114045", "0.59055257", "0.59046316", "0.5900774", "0.58920217", "0.58865166", "0.5884033", "0.5881363", "0.5858055" ]
0.0
-1
Create a new GetType instance.
public function __construct($identifier) { $this->identifier = $identifier; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createType()\n {\n $o = new TypeSelector();\n $this->appendSelector($o);\n\n return $o;\n }", "public static function get_type($type = \"Posts\") {\r\n\t\t$_type = \"\\\\ESWP\\\\MyTypes\\\\\".\"$type\";\r\n\t\treturn new $_type();\r\n\t}", "public function make($type);", "public static function get_new($type) {\n // Get type name\n if (!$type) {\n $type = 'general';\n }\n if (!preg_match('~^[a-z][a-z0-9_]*$~', $type)) {\n throw new coding_exception(\"Invalid forum type name: $type\");\n }\n $classname = 'forumngtype_' . $type;\n\n // Require library\n global $CFG;\n require_once(dirname(__FILE__) . \"/$type/$classname.php\");\n\n // Create and return type object\n return new $classname;\n }", "protected static function newFactory()\n {\n return TypeFactory::new();\n }", "public function get(string $className): Type\n {\n if (!isset($this->types[$className])) {\n $instance = $this->createInstance($className);\n $this->types[$className] = $instance;\n }\n\n return $this->types[$className];\n }", "public function get_type();", "public function get_type(string $type_name)\n {\n }", "public function get_type()\n {\n }", "public function get_type()\n {\n }", "public function get_type()\n {\n }", "public function get_type()\n {\n }", "public function get_type()\n {\n }", "public abstract function getType();", "function getType();", "function getType();", "function getType();", "function getType();", "function getType();", "public static final function typeOf($type) {\n $mirror= $type instanceof TypeMirror ? $type : new TypeMirror($type);\n $type= $mirror->name();\n\n if (!isset(self::$creations[$type])) {\n if (!$mirror->kind()->isClass() || $mirror->modifiers()->isAbstract()) {\n throw new IllegalArgumentException('Class '.$type.' is not instantiable');\n }\n\n $constructor= $mirror->constructor();\n if (!$constructor->present()) {\n throw new IllegalArgumentException('Class '.$type.' does not have a constructor');\n }\n\n $setters= $args= '';\n foreach ($constructor->parameters() as $parameter) {\n $name= $parameter->name();\n if ($parameter->isOptional()) {\n $setters.= 'public $'.$name.'= '.var_export($parameter->defaultValue(), true).';';\n } else {\n $setters.= 'public $'.$name.';';\n }\n $setters.= \"/**\\n * @param \".$parameter->type().\"\\n * @return self\\n*/\";\n $setters.= 'public function '.$name.'($value) { $this->'.$name.'= $value; return $this; }';\n $args.= ', $this->'.$name;\n }\n\n self::$creations[$type]= ClassLoader::defineClass($type.'Creation', 'lang.partial.InstanceCreation', [], '{\n /** @return '.$mirror->name().' */\n public function create() { return new \\\\'.$mirror->reflect->name.'('.substr($args, 2).'); }\n '.$setters.'\n }');\n }\n return self::$creations[$type];\n }", "protected abstract function getType();", "function &factory($type)\n {\n $classfile = \"format/{$type}.class.php\";\n if (include_once $classfile) {\n $class = \"{$type}_format\";\n if (class_exists($class)) {\n $object = & new $class($options);\n return $object;\n } else {\n COM_errorLog(\"report.class - Unable to instantiate class $class from $classfile\");\n }\n } else {\n COM_errorLog(\"report.class - Unable to include file: $classfile\");\n }\n\n }", "private function get_type() {\n\n\t}", "public function getType(): TypeDefinition;", "abstract protected function getType();", "public function getType() {}", "public function getType() {}", "public function getType() {}", "public function getType() {}", "public function getType() {}", "public function getType() {}", "public function getType() {}", "public function getType() {}", "public function getType() {}", "public function getType() {}", "public function getType() {}", "public function getType() {}", "public function getType() {}", "public function getType() {}", "public function getType() {}", "public function getType()\n {\n return new ReflectionClass($this);\n }", "public function getType()\n {\n return new ReflectionClass($this);\n }", "public function getType()\n {\n return $this->factory->resolveType($this);\n }", "public function getType();", "public function getType();", "public function getType();", "public function getType();", "public function getType();", "public function getType();", "public function getType();", "public function getType();", "public function getType();", "public function getType();", "public function getType();", "public function getType();", "public function getType();", "public function getType();", "public function getType();", "public function getType();", "public function getType();", "public function getType();", "public function getType();", "public function getType();", "public function getType();", "public function getType();", "public function getType();", "public function getType();", "public function getType();", "public function getType();", "public function getType();", "public function getType();", "public function getType();", "public function getType();", "public function getType();", "public function getType();", "public function getType();", "public function getType();", "public function getType();", "public function getType();", "public function getType();", "public function getType();", "public function getType();", "public function getType();", "public function getType();", "public function getType();", "public function getType();", "public function getType();", "public function getType($name);", "public function getType()\n {\n }", "public function getType()\n {\n }", "abstract public function getType();", "abstract public function getType();", "abstract public function getType();", "abstract public function getType();", "abstract public function getType();", "abstract public function getType();", "public static function create(string $type): TypeToken\n {\n if (!isset(self::$types[$type])) {\n self::$types[$type] = new static($type);\n }\n\n return self::$types[$type];\n }", "public function type($type);", "public static function create($type = NULL) {\n if ($type) {\n $cname = \"BMAttack\" . ucfirst(strtolower($type));\n if (class_exists($cname)) {\n return $cname::create();\n } else {\n return NULL;\n }\n }\n\n $class = get_called_class();\n return new $class;\n }", "function getType() ;", "function getType() ;" ]
[ "0.6533889", "0.63835716", "0.63794893", "0.62725174", "0.61889523", "0.6161869", "0.6119887", "0.6113469", "0.5849417", "0.5848795", "0.5848753", "0.5848753", "0.5848353", "0.5846802", "0.58216804", "0.58216804", "0.58216804", "0.58216804", "0.58216804", "0.5806482", "0.58007735", "0.5790932", "0.57759356", "0.57608634", "0.57376045", "0.57329226", "0.57329226", "0.57329226", "0.5732263", "0.5732263", "0.5732263", "0.5732263", "0.5732263", "0.5732263", "0.5732263", "0.5732263", "0.5732263", "0.5732263", "0.57315457", "0.57315457", "0.57222664", "0.57222664", "0.57073337", "0.5688909", "0.5688909", "0.5688909", "0.5688909", "0.5688909", "0.5688909", "0.5688909", "0.5688909", "0.5688909", "0.5688909", "0.5688909", "0.5688909", "0.5688909", "0.5688909", "0.5688909", "0.5688909", "0.5688909", "0.5688909", "0.5688909", "0.5688909", "0.5688909", "0.5688909", "0.5688909", "0.5688909", "0.5688909", "0.5688909", "0.5688909", "0.5688909", "0.5688909", "0.5688909", "0.5688909", "0.5688909", "0.5688909", "0.5688909", "0.5688909", "0.5688909", "0.5688909", "0.5688909", "0.5688909", "0.5688909", "0.5688909", "0.5688909", "0.5688909", "0.5688909", "0.5672458", "0.56697434", "0.56697434", "0.5666752", "0.5666752", "0.5666752", "0.5666752", "0.5666752", "0.5666752", "0.5638566", "0.5637897", "0.56161886", "0.5547838", "0.5547029" ]
0.0
-1
Create a new event instance.
public function __construct($sensor) { // this->sensor = $sensor ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createEvent()\n {\n return new Event();\n }", "public function __create()\n {\n $this->eventPath = $this->data('event_path');\n $this->eventName = $this->data('event_name');\n $this->eventInstance = $this->data('event_instance');\n $this->eventFilter = $this->data('event_filter');\n }", "public static function createEvent(array $data)\n {\n $event = new \\echolibre\\google_wave\\Model\\Event;\n \n $event->type = $data['type'];\n $event->timestamp = $data['timestamp'];\n $event->modifiedBy = $data['modifiedBy'];\n $event->properties = new \\stdClass();\n \n if (isset($data['properties'])) {\n $event->properties = $data['properties'];\n }\n \n return $event;\n }", "public function newEvent()\n\t{\n $this->to = $this->domain;\n $this->email = $this->info_mail;\n $this->subject = 'Neue Messe gemeldet';\n $this->view = 'emails.user.new_event';\n\t\t\n\t\t$this->data = [\n\t\t\t'contact'\t\t=> \\Input::get('contact'),\n\t\t\t'email'\t\t\t=> \\Input::get('email'),\n\t\t\t'name'\t\t\t=> \\Input::get('name'),\n\t\t\t'location'\t\t=> \\Input::get('location'),\n\t\t\t'start_date'\t=> \\Input::get('start_date'),\n\t\t\t'end_date'\t\t=> \\Input::has('end_date') ? \\Input::get('end_date') : \\Input::get('start_date'),\n\t\t\t'region'\t\t=> \\Input::get('region'),\n\t\t\t'organizer'\t\t=> \\Input::get('organizer')\n\t\t];\n\n\t\treturn $this;\n\t}", "private function createinstallevent()\n {\n $cat = CategoryUtil::getCategoryByPath('/__SYSTEM__/Modules/PostCalendar/Events');\n\n $eventArray = array(\n 'title' => $this->__('PostCalendar Installed'),\n 'hometext' => ':text:' . $this->__('On this date, the PostCalendar module was installed. Thank you for trying PostCalendar! This event can be safely deleted if you wish.'),\n 'alldayevent' => true,\n 'eventstatus' => PostCalendar_Entity_CalendarEvent::APPROVED,\n 'sharing' => PostCalendar_Entity_CalendarEvent::SHARING_GLOBAL,\n 'website' => 'https://github.com/craigh/PostCalendar/wiki',\n 'categories' => array(\n 'Main' => $cat['id']));\n\n try {\n $event = new PostCalendar_Entity_CalendarEvent();\n $event->setFromArray($eventArray);\n $this->entityManager->persist($event);\n $this->entityManager->flush();\n } catch (Exception $e) {\n return LogUtil::registerError($e->getMessage());\n }\n\n return true;\n }", "private function event(): Event\n {\n if (!$this->event) {\n $this->event = new Event($this->eventMutex(), '');\n }\n\n return $this->event;\n }", "public function createEvent(string $name): Event\n {\n if (!$this->isEventIDValid($name)) {\n throw new RuntimeException('invalid event name: ' . $name);\n }\n\n $class = $this->validEventIDs[$name];\n /** @var \\CaptainHook\\App\\Event $event */\n $event = new $class($this->io, $this->config, $this->repository);\n return $event;\n }", "public function __construct(Event $event)\n {\n $this->event = $event;\n }", "public function __construct(Event $event)\n {\n $this->event = $event;\n }", "public function __construct(Event $event)\n {\n $this->event = $event;\n }", "public function __construct(Event $event)\n {\n $this->event = $event;\n }", "public function __construct(Event $event)\n {\n $this->event = $event;\n }", "public function createCustomevent(): self\n {\n $this->event_type = debug_backtrace()[1]['function'];\n $attr = $this->getAttributes();\n $dirty = $this->getDirty();\n $original = $this->getOriginal();\n // dd($attr, $dirty, $original);\n\n $details = [];\n foreach ($attr as $property => $value) {\n if (array_key_exists($property, $dirty) or !$dirty) {\n $details[] = [\n $property,\n $original[$property] ?? FALSE,\n $dirty[$property] ?? FALSE,\n ];\n }\n }\n\n Customevent::create([\n 'user_id' => auth()->user() ? auth()->user()->id : User::SYSUID,\n 'model' => $this->getTable(),\n 'model_id' => $this->id,\n 'model_name' => $this->name,\n 'type' => $this->event_type,\n 'description' => $this->event_description ?? FALSE,\n 'details' => serialize($details) ?? '',\n ]);\n return $this;\n }", "protected function _Build_Event($context) {\r\n $form_instance = $this->form_instance;\r\n // Retrieve the event class item\r\n $class = $context['class'];\r\n // Generate a new event class\r\n $event_instance = new $class();\r\n // Populate with the form instance\r\n $event_instance->form_instance = $form_instance;\r\n // Populate with the form instance\r\n $event_instance->type = $context['type'];\r\n // Populate with the form instance\r\n $event_instance->title = $context['title'];\r\n // Populate with the event context\r\n $event_instance->context = $context;\r\n // If the field has a sanitize method\r\n if (method_exists($event_instance,'On_Create')) { $event_instance->On_Create(); }\r\n // Fire any on create action\r\n $event_instance->Do_Action('create');\r\n // Do a wordpress hook\r\n do_action('vcff_event_create',$event_instance);\r\n // Fire any on create action\r\n $event_instance->Do_Action('after_create');\r\n // Do a wordpress hook\r\n do_action('vcff_trigger_after_create',$event_instance);\r\n // Return the event instance\r\n return $event_instance;\r\n }", "protected function __construct()\n {\n parent::__construct(\n 'Event',\n array(\n TextField::create(\n 'title',\n array(\n 'mandatory' => true,\n )\n ),\n TextareaField::create(\n 'description',\n array(\n 'use_markdown' => true,\n )\n ),\n TextField::create(\n 'date',\n array()\n ),\n ReferenceField::create(\n 'guest_lists',\n array(\n 'references' => array(\n array(\n 'module' => '\\\\Honeybee\\\\Domain\\\\Guestlist\\\\GuestlistModule',\n 'identity_field' => 'identifier',\n 'display_field' => 'title',\n ),\n ),\n )\n ),\n ReferenceField::create(\n 'assignee',\n array(\n 'max' => 1,\n 'references' => array(\n array(\n 'module' => '\\\\Honeybee\\\\Domain\\\\User\\\\UserModule',\n 'identity_field' => 'identifier',\n 'display_field' => 'username',\n ),\n ),\n )\n ),\n KeyValueField::create(\n 'meta',\n array(\n 'constraints' => array(\n 'value_type' => 'dynamic',\n ),\n )\n ),\n AggregateField::create(\n 'workflowTicket',\n array(\n 'modules' => array(\n '\\\\Honeybee\\\\Domain\\\\Event\\\\WorkflowTicketModule',\n ),\n )\n ),\n ),\n array(\n 'prefix' => 'event',\n 'identifier_field' => 'identifier',\n 'slugPattern' => 'event-{shortId}',\n )\n );\n }", "public function create()\n {\n return view ('event.create');\n }", "public function create()\n {\n return view(\"Event::create\");\n }", "public function create_event( $eventname )\n\t{\n\t\tCmsEvents::create_event($this->get_name(), $eventname);\n\t}", "public function createNewEvent($copyLastEvent = true, $data = array())\n\t{\n\t\t$event = new App_Model_Event();\n\n\t\t// pokud $copyLastEvent == true, vezmu data z minule udalosti a nastavim\n\t\t// je teto\n\t\tif ($copyLastEvent) {\n\t\t\t// TODO: vzit nastaveni posledni udalosti u teto akce\n\t\t}\n\n\t\t// pokud byla zaslana nejaka inicializacni data, nastavim je\n\t\tif (is_array($data) && count($data)) {\n\t\t\t$event->setPropsFromArray($data);\n\t\t}\n\n\t\t$event->setActionId($this->_actionId);\n\t\t$event->setEventNo(count($this->getAllEvents()) + 1);\n\n\t\t$event->insert();\n\n\t\t// vytvorim take prvni navrh terminu, pokud byl zaslan\n\t\tif (isset($data['dates']) && $data['dates'] != '') {\n\t\t\t$event->createNewProposal($data['dates']);\n\t\t}\n\n\t\treturn $event;\n\t}", "public function __construct($event)\n {\n $this->event = $event;\n }", "public function __construct($event)\n {\n $this->event = $event;\n }", "public function requestCreateEvent()\n {\n $ch = self::curlIni('event_new', $this->eventParams);\n\n return $ch;\n }", "public function createCustomevent(): self\n {\n $this->event_type = debug_backtrace()[1]['function'];\n if ($this->isDirty('status') and $this->status === User::STATUS_ACTIVE) {\n $this->event_type = 'verify';\n }\n $attr = $this->getAttributes();\n $dirty = $this->getDirty();\n $original = $this->getOriginal();\n // dd($attr, $dirty, $original);\n\n $details = [];\n foreach ($attr as $property => $value) {\n if (array_key_exists($property, $dirty) or !$dirty) {\n $details[] = [\n $property,\n $original[$property] ?? FALSE,\n $dirty[$property] ?? FALSE,\n ];\n }\n }\n\n Customevent::create([\n 'user_id' => auth()->user() ? auth()->user()->id : self::URUID, // unregistered user id\n 'model' => $this->getTable(),\n 'model_id' => $this->id,\n 'model_name' => $this->name,\n 'type' => $this->event_type,\n 'description' => $this->event_description ?? FALSE,\n 'details' => serialize($details) ?? '',\n ]);\n return $this;\n }", "public function create()\n {\n return view('events::create_event');\n }", "protected function create(array $data)\n {\n $user = Auth::user();\n $article = new Article($data);\n $article->userID = $user->userID;\n $article->ctgID = $data['category'];\n $article->updated_at = Carbon::now();\n $article->save();\n\n if (array_key_exists('image', $data)) {\n $path = $data['image']->store('articles/'.$article->artID, 'images');\n $article->image = $path;\n $article->save();\n }\n \n $event = new Event($data);\n if ($data['place'] !== 'none') {\n $event->placeID = $data['place'];\n }\n $event->artID = $article->artID;\n $event->save();\n \n return $event;\n }", "public function create()\n {\n return view('events.createevent');\n }", "public static function get_instance() \n {\n if ( ! isset(self::$instance)) \n {\n self::$instance = new Event();\n }\n\n return self::$instance;\n }", "public function __construct(NewMessageEvent $event)\n {\n $this->event = $event;\n }", "public function createEvent(Event $event)\n {\n $this->setCalendarId($event->calendar_id);\n\n /*\n * Create new google event object\n */\n $googleEvent = new \\Google_Service_Calendar_Event();\n\n /*\n * Set Details\n */\n $googleEvent->setSummary($event->title);\n $googleEvent->setDescription($event->description);\n $googleEvent->setLocation($event->location);\n\n /*\n * Set Start Date\n */\n $start = $this->createDateTime($event->start, $event->timeZone, $event->all_day);\n $googleEvent->setStart($start);\n\n /*\n * Set End Date\n */\n $end = $this->createDateTime($event->end, $event->timeZone, $event->all_day);\n $googleEvent->setEnd($end);\n\n /*\n * Set Recurrence Rule, make sure it's not empty\n */\n if ($event->rrule) {\n $googleEvent->setRecurrence([$event->rrule]);\n }\n\n /*\n * Create the event\n */\n $newGoogleEvent = $this->service->events->insert($this->calendarId, $googleEvent);\n\n return $this->createEventObject($newGoogleEvent);\n }", "public function construct(CakeEvent $event) {\n\t\t$this->__startTime = time();\n\t}", "public function create()\n {\n return view('admin.adminevent.create_event');\n }", "protected function createEvent(DateTime $dateStart, DateTime $dateEnd)\n {\n $event = new Event();\n $event->setTitle($this->title);\n $event->setDescription($this->description);\n $event->setDateStart($dateStart);\n $event->setDateEnd($dateEnd);\n\n return $event;\n }", "public function __construct(array $event = array())\n {\n $this\n ->setEvent($event);\n }", "public function create(Request $request)\n {\n $data = $request->all();\n $event = Event::make($data);\n $event->user_id = Auth::user()->id;\n $event->save();\n }", "public function create()\n {\n\n $event = new Event;\n return view('events.create',compact('event'));\n }", "public function create()\n {\n return view('event');\n }", "public function create()\n {\n return view('event.create');\n }", "public function create()\n {\n return view('event.create');\n }", "public function create()\n {\n return view('event.create');\n }", "public function create()\n {\n return view('event.create');\n }", "protected function getRandomInstance()\n {\n $eventLine = new EventTag();\n $this->fillThing($eventLine);\n\n return $eventLine;\n }", "function create_event( $options=array() ){\n\t\t\t//length = 255, present\n\t\t\n\t\t$error_append = \" CLASS[\".__CLASS__.\"] METHOD[\".__METHOD__.\"] DATE[\".date('Y-m-d H:i:s').\"]\";\n\t\t\n\t\tCore::ensure_defaults(array(\n\t\t\t\t'title_unique' => 1\n\t\t\t), $options\n\t\t);\n\t\t\n\t\tif( empty( $options['title'] ) or empty( $options['description'] ) or empty( $options['date'] ) ){\n\t\t\t$error = Core::error($this->errors, 1);\n\t\t\t$error['error_msg'] .= $error_append;\n\t\t\treturn $error;\n\t\t}\n\t\t\n\t\t$values['title'] = $this->validate_title( array('title' => $options['title']) );\n\t\tif(Core::has_error( $values['title'] )){\n\t\t\treturn $values['title'] ;\n\t\t}\n\t\t\n\t\t$values['description'] = $this->validate_description( array('description' => $options['description']) );\n\t\tif(Core::has_error( $values['description'] )){\n\t\t\treturn $values['description'];\n\t\t}\n\t\t\n\t\t$values['date_time'] = $this->validate_event_date( array('date' => $options['date']) );\n\t\tif(Core::has_error( $values['date_time'] )){\n\t\t\treturn $values['date_time'];\n\t\t}\n\t\t\n\t\tif($options['title_unique']){\n\t\t\t//TODO:Check if the title unique\n\t\t\tif( Core::db_count( array(\n\t\t\t\t'table' => CORE_DB.\".\".self::$table_name,\n\t\t\t\t'values' => array(\n\t\t\t\t\t'title' => $values['title']\n\t\t\t\t)\n\t\t\t))){\n\t\t\t\t$error = Core::error($this->errors, 7);\n\t\t\t\t$error['error_msg'] .= 'Event title must be unique. ';\n\t\t\t\t$error['error_msg'] .= $error_append;\n\t\t\t\treturn $error;\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t$result = Core::db_insert( array(\n\t\t\t\t'table' => CORE_DB.\".\".self::$table_name,\n\t\t\t\t'values' => $values\n\t\t));\n\t\t\n\t\tif( Core::has_error($result) or empty($result) ){\n\t\t\t$result['error_msg'] .= $error_append;\n\t\t\treturn $result;\n\t\t}\n\t\t\n\t\treturn $result;\n\t\t\n\t}", "private function create()\n {\n $events = [\n Webhook::EVENT_CONVERSATION_CREATED,\n Webhook::EVENT_CONVERSATION_UPDATED,\n Webhook::EVENT_MESSAGE_CREATED,\n Webhook::EVENT_MESSAGE_UPDATED,\n ];\n\n $chosenEvents = $this->choice(\n 'What kind of event you want to create',\n $events,\n $defaultIndex = null,\n $maxAttempts = null,\n $allowMultipleSelections = true\n );\n\n $webhookUrl = $this->ask('Please enter the webhook URL'); \n\n $webhook = new Webhook();\n $webhook->events = $chosenEvents;\n $webhook->channelId = $this->whatsAppChannelId;\n $webhook->url = $webhookUrl;\n\n try {\n $response = $this->messageBirdClient->conversationWebhooks->create($webhook);\n } catch (\\Exception $e) {\n $this->error($e->getMessage());\n }\n }", "public function createEvent(Actions $emailAction){\n $event = new Events();\n $event->type = self::$typeMap[$emailAction->type];\n $event->subtype = 'email';\n $event->associationId = $emailAction->associationId;\n $event->associationType = X2Model::getModelName($emailAction->associationType);\n $event->timestamp = time();\n $event->lastUpdated = $event->timestamp;\n $event->user = $emailAction->assignedTo;\n if($event->save())\n $this->log(Yii::t('app','Created activity feed event for the email.'));\n return $event;\n }", "function __construct($event) {\n $this->init($event);\n }", "public function actionCreate()\n {\n $model = new Event();\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 }", "public function create()\n\t{\n\t\treturn view('events.create');\n\t}", "protected function initEvent()\n {\n $locales = $this->container->getParameter('event.locales');\n $event = $this->getRepository('EventEventBundle:Event')->getEvent();\n $now = new \\DateTime();\n\n if (!$event) {\n $event = new Event();\n $event\n ->setTitle('My Event')\n ->setDescription('My another awesome event!')\n ->setStartDate($now)\n ->setEndDate($now->modify('+1 day'))\n ->setVenue('Burj Khalifa Tower')\n ->setEmail('[email protected]')\n ;\n\n $speaker = new Speaker();\n $speaker\n ->setFirstName('Phill')\n ->setLastName('Pilow')\n ->setCompany('Reseach Supplier')\n ;\n\n if ($locales) {\n foreach ($locales as $locale => $title) {\n $eventTranslation = new EventTranslation();\n $eventTranslation->setEvent($event);\n $eventTranslation->setlocale($locale);\n\n $this->getManager()->persist($eventTranslation);\n\n $speakerTranslation = new SpeakerTranslation();\n $speakerTranslation->setSpeaker($speaker);\n $speakerTranslation->setlocale($locale);\n\n $this->getManager()->persist($speakerTranslation);\n }\n }\n\n $this->getManager()->persist($event);\n $this->getManager()->persist($speaker);\n $this->getManager()->flush();\n }\n }", "public function __construct($data)\n {\n $this->event = $data;\n }", "public function create()\n {\n return view('admin.event.create');\n }", "public function create()\n {\n return view('admin.event.create');\n }", "public function create()\n {\n return view('event::create');\n }", "public function actionCreate()\n\t{\n\t\t$model=new Event;\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['Event']))\n\t\t{\t\n\t\t\t$model->attributes=$_POST['Event'];\n\t\t\t\n\t\t\t$model->created_on = new CDbExpression('NOW()');\n\t\t\t$model->created_by=Yii::app()->user->id;\n\t\t\tif($model->save()){\n\t\t\t\t\n\t\t\t\t$this->redirect(array('view', 'id'=>$model->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}", "public static function create() {}", "public static function create() {}", "public static function create() {}", "public function createInstance()\n {\n $mock = $this->mock(static::TEST_SUBJECT_CLASSNAME)\n\t ->getStateMachine()\n ->getTransition()\n ->abortTransition()\n ->isTransitionAborted()\n // EventInterface\n ->getName()\n ->setName()\n ->getTarget()\n ->setTarget()\n ->getParams()\n ->setParams()\n ->getParam()\n ->setParam()\n ->stopPropagation()\n ->isPropagationStopped();\n\n return $mock->new();\n }", "protected function newEventLogger()\n {\n return new EventLogger(static::getLogger());\n }", "public function create()\n\t{\n\t\treturn View::make('events.create');\n\t}", "public function __construct(?EventConfig $cfg = null) {}", "public function create()\n {\n $programEvent = new ProgramEvent();\n return view('program-event.create', compact('programEvent'));\n }", "public function create()\n {\n return view(\"admin.event_create\")->with([\n\n ]);\n }", "public function createEvent(Request $request)\n {\n $this->validator($request->all())->validate();\n\n $event = $this->create($request->all());\n \n return redirect('/cms/events');\n }", "public function __construct($name, $event)\n {\n $this->name = $name;\n $this->event = $event;\n }", "final private static function makeEvent(Sincronizacao $sincronizacao)\n {\n $endpoint = self::getEventEndpoint($sincronizacao->sym_table, $sincronizacao->sym_action);\n\n $dependencies = self::getDependencies($sincronizacao);\n $eventClass = self::getEventClass($endpoint);\n\n return new $eventClass($dependencies['entry'], $dependencies['extra']);\n }", "public static function create(Client $client, $data) {\n if ($data == null || is_array($data)) {\n $d = new Event($data == null ? array() : $data);\n $data = $d->jsonSerialize();\n }\n $req = $client->newRequest(\"POST\", \"/{accountname}/events\");\n $req->setBody($data, \"json\");\n\n $result = $req->run(\"json\");\n return Event::fromJson($result);\n }", "public function __construct()\n {\n parent::__construct('BaseEvent');\n }", "public function actionCreate()\n\t{\n\t\tYii::import('ext.multimodelform.MultiModelForm');\n\n\t\t$model=new Event;\n\t\t$eventType=new EventType;\n\t\t$member=new EventAttribute;\n\t\t$validatedMembers = array(); // ensure an empty array\n\t\t$attr = array(); \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['Event']))\n\t\t{\n\t\t if(isset($_POST['Event']['attributes']))\n\t\t {\n\t\t $attr = $_POST['Event']['attributes'];\n\t\t }\n\t\t\t$model->attributes=$_POST['Event'];\n\t\t\tif($model->save()) {\n\t\t\t\t$this->addAttributes($attr, $model);\n\t\t\t\t$this->redirect(array('view','id'=>$model->idEvent));\n\t\t\t}\n\t\t} else {\n\t\t\t$this->render('create',array(\n\t\t\t\t'model'=>$model,\n\t\t\t\t'eventType'=>$eventType,\n\t\t\t\t'member'=>$member,\n\t\t\t\t'validatedMembers'=>$validatedMembers,\n\t\t\t));\n\t\t}\n\t}", "public function create()\n {\n // $crud = new Events();\n // $crud->photo ='anniv.png';\n // $crud->title = 'Sogod Founding Anniversary Concert';\n // $crud->descriptions = 'secret';\n // $crud->venue = 'Sogod Covered Court';\n // $crud->date = date('04/02/2018');\n // $crud->time = time('h:i:s');\n\n // $crud->save(); \n }", "public function create(){}", "function event(): EventEmitter\n{\n return EventEmitter::getInstance();\n}", "public function create() {}", "public function storeEvent(){\n \t$eventStore = new Event_Store();\n\n\t\t$eventStore->command = $this->command; \t\n\t\t$eventStore->event = $this->event;\n\t\t$eventStore->status = \"published\";\n\t\t$eventStore->created_at = now();\n\t\t$eventStore->updated_at = now();\n\n\n\t\t$eventStore->save();\n }", "public function create()\n {}", "public function user_can_create_event()\n {\n $user = User::factory()->create();\n $event = Event::factory()->make()->toArray();\n $response = $this->actingAs($user)->post('/events', $event);\n $response->assertStatus(302);\n $this->assertNotNull(Event::where('name', $event['name'])->first());\n }", "private function __construct() {\n\t\t$action = isset($_GET['action']) ? sanitize_key($_GET['action']) : '';\n\t\t$copy = isset($_GET['copy']) ? intval($_GET['copy']) : 0;\n\t\tif(!empty($copy)) {\n\t\t\t$this->copy_event = new EL_Event($copy);\n\t\t\tadd_filter('get_object_terms', array(&$this, 'set_copied_categories'));\n\t\t}\n\n\t\t$this->options = &EL_Options::get_instance();\n\t\t$this->is_new = 'edit' !== $action;\n\n\t\tadd_action('add_meta_boxes', array(&$this, 'add_eventdata_metabox'));\n\t\tadd_action('edit_form_top', array(&$this, 'form_top_content'));\n\t\tadd_action('edit_form_after_title', array(&$this, 'form_after_title_content'));\n\t\tadd_action('admin_print_scripts', array(&$this, 'embed_scripts'));\n\t\tadd_action('save_post_el_events', array(&$this, 'save_eventdata'), 10, 3);\n\t\tadd_filter('enter_title_here', array(&$this, 'change_default_title'));\n\t\tadd_filter('post_updated_messages', array(&$this, 'updated_messages'));\n\t}", "public static function create() {\n\t\t$entry = new GuestbookEntry();\n\t\t$entry->Date = SS_DateTime::now()->getValue();\n\t\t$entry->IpAddress = $_SERVER['REMOTE_ADDR'];\n\t\t$entry->Host = gethostbyaddr($entry->IpAddress);\n\t\treturn $entry;\n\t}", "public function create()\n {\n //\n return view('events.create');\n }", "public function create()\n\t{ \n\t\t# Return if just the countoff is needed\n\t\tif ($this->countoff<2) return;\n\t\t\n\t\t# Add a note on and note off for each beat in the click track\n\t\tfor($i=0; $i<$this->beatsTotal; $i++) { \n\t\t\t$vol = (($i%$this->timeSig)==0) ? 127 : 70;\n\t\t\t$this->addEvent(0,153,37,$vol);\n\t\t\t$this->addEvent($this->ticksPerBeat,153,37,0);\n\t\t}\n\t}", "public function create()\n {\n return view('adm.events.create');\n }", "public function create()\n\t{\n\t\treturn View::make('administrator.events.create')->with('page_title','Create New Event');\n\t\t\n\t}", "public function run()\n {\n factory(TechnoEvent::class,10)->create();\n }", "protected function manageEvent()\n {\n // Manage the incoming session\n $this->manageSession();\n\n // Get the event data from the incoming request\n $eventData = $this->eventRequest->getEvent();\n\n // Get the entity data from the event\n $entityData = $eventData->get('entity');\n\n if (!is_array($entityData)) $entityData = [];\n\n // Hydrate the event entity\n $this->eventEntity = $this->hydrateEntity($entityData);\n\n // Create the event object\n $this->event = new WebsiteEvent();\n\n // Format the action\n $action = $eventData->get('action');\n $this->setDefaultAction($action);\n\n $this->event->setAction($action);\n $this->event->setEntity($this->eventEntity);\n $this->event->setCreatedAt(time());\n\n if (!is_null($eventData->get('data'))) {\n $this->event->setData($eventData->get('data'));\n }\n\n // Set any related entities to the event\n $relatedEntityData = $eventData->get('relatedEntities');\n if (is_array($relatedEntityData) && !empty($relatedEntityData)) {\n foreach ($relatedEntityData as $relatedEntity) {\n $relEntityObj = $this->hydrateEntity($relatedEntity);\n $this->event->addRelatedEntity($relEntityObj);\n\n }\n }\n // Set the session to the event\n $this->event->setSession($this->session);\n }", "public function create(Event $event)\n {\n if ($this->shouldUseLocks($this->cache->store($this->store)->getStore())) {\n return $this->cache->store($this->store)->getStore()\n ->lock($event->mutexName(), $event->expiresAt * 60)\n ->acquire();\n }\n\n return $this->cache->store($this->store)->add(\n $event->mutexName(), true, $event->expiresAt * 60\n );\n }", "public function createEvents()\n {\n //\n\n return 'something';\n }", "public function create() {\n\t \n }", "public function actionCreate()\n\t{\n\t\t$model=new Events;\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['Events']))\n\t\t{\n\t\t\t$model->attributes=$_POST['Events'];\n\t\t\tif($model->save())\n\t\t\t\t$this->redirect(array('view','id'=>$model->event_id));\n\t\t}\n\n\t\t$this->render('create',array(\n\t\t\t'model'=>$model,\n\t\t));\n\t}", "public function create()\n {\n return view('events.create');\n }", "public function create()\n {\n return view('events.create');\n }", "public function create()\n {\n return view('events.create');\n }", "public function create()\n {\n return view('events.create');\n }", "public function create()\n {\n return view('events.create');\n }", "public function create()\n {\n return view('events.create');\n }", "function add_new_event($eventName, $eventColor){\n\t\tif( isset($_POST[$eventName]) ){\n\t\t\tglobal $base;\n\t\t\t\n\t\t\t$title \t= $_POST[$eventName];\n\t\t\t$color \t= $_POST[$eventColor];\n\n\t\t\t$full_calendar_notifications = new full_calendar_notification();\n\n\t\t\t$full_calendar_notifications->user_id = $base->clear_string($_SESSION['user_id']);\n\t\t\t$full_calendar_notifications->notification_title = $title;\n\t\t\t$full_calendar_notifications->notification_color = $color;\n\n\t\t\t$full_calendar_notifications->create();\n\t\t}\n\t}", "public function initialize()\n {\n // attributes\n $this->setName('event');\n $this->setPhpName('Event');\n $this->setClassname('ArtRequestORM\\\\Event');\n $this->setPackage('ArtRequest');\n $this->setUseIdGenerator(true);\n // columns\n $this->addPrimaryKey('EVENT_ID', 'EventId', 'INTEGER', true, null, null);\n $this->addColumn('EVENT_TITLE', 'EventTitle', 'VARCHAR', true, 100, null);\n $this->addColumn('EVENT_DESCRIPTION', 'EventDescription', 'LONGVARCHAR', true, null, null);\n $this->addColumn('EVENT_LOCATION', 'EventLocation', 'VARCHAR', true, 100, null);\n $this->addColumn('EVENT_SPONSOR_NAME', 'EventSponsorName', 'VARCHAR', true, 100, null);\n $this->addColumn('EVENT_START_TIME', 'EventStartTime', 'VARCHAR', true, 10, null);\n $this->addColumn('EVENT_END_TIME', 'EventEndTime', 'VARCHAR', true, 10, null);\n $this->addColumn('EVENT_START_DATE', 'EventStartDate', 'DATE', true, null, null);\n $this->addColumn('EVENT_END_DATE', 'EventEndDate', 'DATE', true, null, null);\n $this->addColumn('EVENT_PRICING_MEMBER', 'EventPricingMember', 'DECIMAL', true, null, null);\n $this->addColumn('EVENT_PRICING_STAFF', 'EventPricingStaff', 'DECIMAL', true, null, null);\n $this->addColumn('EVENT_PRICING_STUDENT', 'EventPricingStudent', 'DECIMAL', true, null, null);\n $this->addColumn('EVENT_PRICING_PUBLIC', 'EventPricingPublic', 'DECIMAL', true, null, null);\n // validators\n }", "public static function create_event($pid, $event) \n\t\t{\t\n\t\t\t$mysqli = MysqlInterface::get_connection();\n\t\t\t\n\t\t\t// insert event\n\t\t\t$stmt = $mysqli->stmt_init();\n\t\t\t$stmt->prepare('INSERT INTO event (title, owner, gowner, start_time, end_time, location, logo, description, category, size, tag, price) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?);');\n\t\t\t$stmt->bind_param('siisssssiisd', $event['title'], $pid, $gid, $event['start_time'], $event['end_time'], $event['location'], $event['logo'], $event['description'], $event['category'], $event['size'], $event['tag'], $event['price']);\n\t\t\t$stmt->execute();\n\t\t\t\n\t\t\t// get auto generated id\n\t\t\t$eid = $mysqli->insert_id;\n\t\t\t\n\t\t\t$stmt->close();\n\t\t\t\n\t\t\t// grant user host role\n\t\t\tPeopleDAO::set_event_role_pid($pid, $eid, Role::Owner);\n\t\t\treturn $eid;\n\t\t}", "public static function create_event( $module_name, $event_name )\n\t{\n\t\t$event = cms_orm('CmsDatabaseEvent')->find_by_module_name_and_event_name($module_name, $event_name);\n\t\tif ($event == null)\n\t\t{\n\t\t\t$event = new CmsDatabaseEvent();\n\t\t\t$event->module_name = $module_name;\n\t\t\t$event->event_name = $event_name;\n\t\t\treturn $event->save();\n\t\t}\n\t}", "public function create()\n {\n return view('admin.events.create');\n }", "public function create()\n {\n return view('admin.events.create');\n }", "public function create()\n {\n return view('admin.events.create');\n }", "public function create()\n {\n return view('admin.events.create');\n }" ]
[ "0.8178475", "0.73455495", "0.67515916", "0.6665345", "0.66544545", "0.66479546", "0.6640835", "0.6556383", "0.6556383", "0.6556383", "0.6556383", "0.6556383", "0.6543442", "0.64682955", "0.645909", "0.64520663", "0.6441302", "0.6438299", "0.63917476", "0.6371641", "0.6371641", "0.63478637", "0.63475716", "0.63285524", "0.6319918", "0.63108855", "0.6275116", "0.6206908", "0.6195245", "0.6193101", "0.61870754", "0.61810726", "0.61807376", "0.612506", "0.612064", "0.61166775", "0.6116489", "0.6116489", "0.6116489", "0.6116489", "0.6111236", "0.6099429", "0.6076598", "0.6072973", "0.6068453", "0.60566765", "0.6056391", "0.6041123", "0.6033919", "0.60277027", "0.60277027", "0.60181046", "0.6014412", "0.6007521", "0.6007521", "0.6007521", "0.5998441", "0.59855086", "0.5971869", "0.5971259", "0.59670085", "0.5959153", "0.59413785", "0.59338146", "0.5930427", "0.5917219", "0.5907522", "0.59049624", "0.58941996", "0.58838826", "0.5868322", "0.58614963", "0.58599705", "0.5856868", "0.58510625", "0.5838314", "0.58332664", "0.5826795", "0.58255696", "0.58250695", "0.5822382", "0.58223313", "0.58191884", "0.58166337", "0.5807514", "0.5798503", "0.57970744", "0.5794831", "0.5794831", "0.5794831", "0.5794831", "0.5794831", "0.5794831", "0.579301", "0.5784509", "0.5783719", "0.5780148", "0.57786983", "0.57786983", "0.57786983", "0.57786983" ]
0.0
-1
Get the channels the event should broadcast on.
public function broadcastOn() { return new PrivateChannel('rt-sensor'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getChannels()\n {\n return $this->channels;\n }", "public function broadcastOn()\n {\n return [\n $this->channel\n ];\n }", "public function broadcastOn()\n {\n return [\n $this->channel\n ];\n }", "public function getChannels();", "public function broadcastOn()\n {\n return ['my-channel'];\n }", "public function get_channels()\n {\n }", "public function broadcastOn()\n {\n return ['channel-status'];\n }", "public function getChannels()\n {\n return $this->Channels;\n }", "public function all(): array\n {\n return $this->channels;\n }", "public function channels()\n {\n return $this->send('channels');\n }", "public function getAllChannels()\n {\n return $this->_channel;\n }", "public function broadcastOn()\n {\n return ['whatcanido-channel'];\n }", "public function onChannels(): ?array\n {\n return null;\n }", "public function channels(){\n return $this->channelCollection->map(function ($item, $key) {\n return ['channel' => $item['channel']];\n });\n }", "public function broadcastOn()\n {\n return [\n new Channel('sanityDeployment.' . $this->sanityDeployment->id),\n new Channel('sanityMainRepo.' . $this->sanityDeployment->sanityMainRepo->id),\n ];\n }", "public function getNotificationChannels()\n {\n if (array_key_exists(\"notificationChannels\", $this->_propDict)) {\n return $this->_propDict[\"notificationChannels\"];\n } else {\n return null;\n }\n }", "public function broadcastOn() {\n return [\n new Channel('messages.' . $this->userReceiver->id . '.' . $this->currentUser->email),\n new Channel('messages.' . $this->currentUser->id . '.' . $this->userReceiver->email),\n ];\n }", "public function broadcastOn()\n {\n return [new Channel('abinachess_move.' . $this->uid)];\n }", "public function getSupplyChannels();", "public function getDistributionChannels();", "public function broadcastOn()\n {\n return ['laravue-channel'];\n }", "public function getAllChannels()\n {\n return Channel::all();\n }", "public static function getChannels($aspect)\n {\n return self::getMetaProperty($aspect, 'channel');\n }", "public function broadcastOn()\n {\n return [];\n }", "public function broadcastOn()\n {\n return [];\n }", "public function broadcastOn()\n {\n return [];\n }", "public function broadcastOn()\n {\n return [];\n }", "public function broadcastOn()\n {\n return [];\n }", "public function broadcastOn()\n {\n return [];\n }", "public function broadcastOn()\n {\n return [];\n }", "public function broadcastOn()\n {\n return [];\n }", "public function broadcastOn()\n {\n return [];\n }", "public function broadcastOn()\n {\n return [];\n }", "public function broadcastOn()\n {\n return [];\n }", "public function broadcastOn()\n {\n return [];\n }", "public function broadcastOn()\n {\n return [];\n }", "public function broadcastOn()\n {\n return [];\n }", "public function broadcastOn()\n {\n return [];\n }", "public function broadcastOn()\n {\n return [];\n }", "public function broadcastOn()\n {\n return [];\n }", "public function broadcastOn()\n {\n return [];\n }", "public function broadcastOn()\n {\n return [];\n }", "public function broadcastOn()\n {\n return [];\n }", "public function broadcastOn()\n {\n return [];\n }", "public function broadcastOn()\n {\n return [];\n }", "public function broadcastOn()\n {\n return [];\n }", "public function broadcastOn()\n {\n return [];\n }", "public function broadcastOn()\n {\n return [];\n }", "public function broadcastOn()\n {\n return [];\n }", "public function broadcastOn()\n {\n return [];\n }", "public function broadcastOn()\n {\n return [];\n }", "public function broadcastOn()\n {\n return [];\n }", "public function broadcastOn()\n {\n return [];\n }", "public function broadcastOn()\n {\n return [];\n }", "public function broadcastOn()\n {\n return [];\n }", "public function broadcastOn()\n {\n return [];\n }", "public function broadcastOn()\n {\n return [];\n }", "public function broadcastOn()\n {\n return [];\n }", "public function broadcastOn()\n {\n return [];\n }", "public function broadcastOn()\n {\n return [];\n }", "public function broadcastOn()\n {\n return [];\n }", "public function getChannels()\n\t{\n\t\t$channels = App::make('ChannelRepository')->getChannels();\n\t\t\n\t\treturn App::make('Apiv1\\Transformers\\ChannelTransformer')->transformCollection($channels, $this->user);\n\t}", "public function broadcastOn()\n {\n\n return [];\n }", "public function getDistributionChannels()\n {\n return $this->distributionChannels;\n }", "public function getIncludeChannels()\n {\n return $this->include_channels;\n }", "public function broadcastOn()\n {\n return [\n new PrivateChannel('private-chat-channel.' . $this->message->receiver),\n new PrivateChannel('private-chat-channel.' . $this->message->sender)\n ];\n }", "public function broadcastOn()\n {\n return [config('messenger.redis_channel', 'notification')];\n }", "public function getChannels()\n {\n $size = $this->getImageSize();\n\n return $size['channels'];\n }", "public function broadcastOn()\n {\n\n return new Channel('channels-broadcasts');\n\n //return new PrivateChannel('channel-name');\n }", "public function getWallChannels()\n {\n return $this->wallChannels;\n }", "public function getOrderChannels()\n\t{\n\t\t$request = $this->request('order_channels');\n\n\t\tif (!$request) {\n\t\t\treturn false;\n\t\t}\n\n\t\t$decoded = $request->asArray();\n\t\treturn $decoded['data'];\n\t}", "public function broadcastOn()\n {\n // Have no idea about this\n // return new PrivateChannel('channel-name');\n }", "function getActiveChannels() {\n global $debug, $logdir, $logfile, $app;\n\n $channels = null;\n $model = $app->bootstrap->getModel('channels');\n\n $now = date(\"Y-m-d H:i:s\");\n $query = \"SELECT\"\n .\" ch.id,\"\n .\" ch.starttimestamp,\"\n .\" ch.endtimestamp,\"\n .\" ch.title,\"\n .\" ch.isliveevent,\"\n .\" lf.id AS locationid,\"\n .\" lf.name AS locationname,\"\n .\" lf.issecurestreamingforced,\"\n .\" lf.indexphotofilename,\"\n .\" lfs.id AS livefeedstreamid,\"\n .\" lfs.qualitytag AS streamname,\"\n .\" lfs.keycode AS streamid,\"\n .\" lfs.contentkeycode AS contentstreamid\"\n .\" FROM\"\n .\" channels AS ch,\"\n .\" livefeeds AS lf,\"\n .\" livefeed_streams AS lfs\"\n .\" WHERE\"\n .\" ch.starttimestamp <= '\" . $now . \"' AND\"\n .\" ch.endtimestamp >= '\" . $now . \"' AND\"\n .\" ch.id = lf.channelid AND\"\n .\" lf.id = lfs.livefeedid AND\"\n .\" lf.issecurestreamingforced = 0\"\n .\" ORDER BY\"\n .\" ch.id\";\n\n try {\n $rs_channels = $model->safeExecute($query);\n $channels = $rs_channels->GetArray();\n } catch (Exception $err) {\n $debug->log($logdir, $logfile, \"[ERROR] SQL query failed (\". $err->getTraceAsString() .\")\\nSQL QUERY:\\n'\". trim($query) .\"'\", false);\n return false;\n }\n\n // Check if any record returned\n if (count($channels) < 1) { return false; }\n\n return $channels;\n}", "public function channels()\n {\n $payloads = [\n 'code' => $this->channelCode,\n ];\n\n return $this->request('get', 'merchant/payment-channel', $payloads);\n }", "public function viaNotificationChannels()\n {\n return UserNotificationChannel::with('notification_channel')->get()->filter(function ($item) {\n return $item->muted_at == null;\n })->pluck('notification_channel.name');\n }", "public function getAllChannels()\n {\n return Channel::with('subChannel.display')->active()->alive()->get()->toArray();\n }", "public function broadcastOn()\n {\n// return new PrivateChannel('news-action');\n// return ['news-action'];\n return new Channel('news-action.');\n }", "public function broadcastOn() {\n// return new PrivateChannel('channel-name');\n }", "public function broadcastOn()\n {\n return ['channel-name-'.$this->inputBy, 'channel-name-'.$this->kodeOrganisasi, 'channel-name-main-admin'];\n }", "public function broadcastOn()\n {\n// return new PrivateChannel('channel-name');\n }", "public function broadcastOn()\n {\n// return new PrivateChannel('channel-name');\n }", "public function getAudioChannels() {}", "public function broadcastOn()\n {\n //return new PrivateChannel('channel-name');\n }", "public function broadcastOn()\n {\n //return new PrivateChannel('channel-name');\n }", "public function broadcastOn()\n {\n //return new PrivateChannel('channel-name');\n }", "public function broadcastOn()\n {\n //return new PrivateChannel('channel-name');\n }", "public function getSupplyChannels()\n {\n return $this->supplyChannels;\n }", "public function broadcastOn()\n {\n return new Channel('chess');\n }", "public function broadcastOn()\n {\n return ['CFSite'];\n }", "public function broadcastOn()\n {\n return new Channel('countries');\n }", "public static function get_subscribed_events() {\r\n\t\treturn [\r\n\t\t\t'rocket_buffer' => [\r\n\t\t\t\t[ 'extract_ie_conditionals', 1 ],\r\n\t\t\t\t[ 'inject_ie_conditionals', 34 ],\r\n\t\t\t],\r\n\t\t];\r\n\t}", "public function channels()\n {\n $this->send(['command' => 'channels', 'seq'=>$this->getSequence()]);\n }", "public function broadcastOn()\n {\n // return new PrivateChannel('channel-name');\n return new Channel('messages');\n }", "public function broadcastOn() {\n return ['convertVideoAction'];\n }", "public function getJoinDefaultChannels()\n {\n return $this->joinDefaultChannels;\n }", "public function via($notifiable)\n {\n $channels = [];\n if ($notifiable->setting->is_bid_cancelled_notification_enabled) {\n $channels = ['database']; // note: no Messenger yet like the other one's. App is still not approved, and there's the business registration requirement so..\n \n if ($notifiable->fcm_token) {\n $channels[] = FcmChannel::class;\n }\n }\n return $channels;\n }", "public function broadcastOn() {\n return new Channel('Everyone');\n }", "public function broadcastOn() {\n return new Channel('Everyone');\n }", "public static function get_subscribed_events() {\r\n\t\t$current_theme = wp_get_theme();\r\n\r\n\t\tif ( 'Bridge' !== $current_theme->get( 'Name' ) ) {\r\n\t\t\treturn [];\r\n\t\t}\r\n\r\n\t\treturn [\r\n\t\t\t'rocket_lazyload_background_images' => 'disable_lazyload_background_images',\r\n\t\t\t'update_option_qode_options_proya' => [ 'maybe_clear_cache', 10, 2 ],\r\n\t\t];\r\n\t}", "public function broadcastOn()\n {\n return [$this->reciever_id];\n }", "public function list_channels($exclude_archived=true) {\n\n $method=\"channels.list\";\n $payload['exclude_archived'] = $exclude_archived;\n\n $result = $this->apicall($method, $payload);\n if (isset($result['channels'])) {\n return $result['channels'];\n } else {\n return false;\n }\n }" ]
[ "0.73623616", "0.73168063", "0.73168063", "0.7286338", "0.7161186", "0.7129996", "0.708389", "0.70263547", "0.6981603", "0.6978362", "0.696272", "0.69525206", "0.69270295", "0.6868352", "0.67495483", "0.67344266", "0.67241955", "0.6689566", "0.66575515", "0.66133535", "0.6539725", "0.65031517", "0.6464111", "0.6446203", "0.6446203", "0.6446203", "0.6446203", "0.6446203", "0.6446203", "0.6446203", "0.6446203", "0.6446203", "0.6446203", "0.6446203", "0.6446203", "0.6446203", "0.6446203", "0.6446203", "0.6446203", "0.6446203", "0.6446203", "0.6446203", "0.6446203", "0.6446203", "0.6446203", "0.6446203", "0.6446203", "0.6446203", "0.6446203", "0.6446203", "0.6446203", "0.6446203", "0.6446203", "0.6446203", "0.6446203", "0.6446203", "0.6446203", "0.6446203", "0.6446203", "0.6446203", "0.6446203", "0.6438497", "0.64191926", "0.63963974", "0.6391136", "0.6374831", "0.63421357", "0.62701756", "0.6266689", "0.6263108", "0.61694956", "0.6162022", "0.6150941", "0.61460936", "0.6145081", "0.61442524", "0.61191535", "0.6095458", "0.60924745", "0.6085202", "0.6085202", "0.6079248", "0.6063545", "0.6063545", "0.6063545", "0.6063545", "0.60591155", "0.60590434", "0.6006346", "0.5983284", "0.5973318", "0.5965583", "0.59558386", "0.59463865", "0.59451896", "0.5919922", "0.5916683", "0.5916683", "0.59159553", "0.591376", "0.58915544" ]
0.0
-1
Show the profile for the given user.
public function infos() { $pages = Page::where('tags', '=', 'informationen')->get(); return view('pages_index', ['pages'=>$pages]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show($user = \"empty\") {\n $user = User::findOrFail($user);\n return view('profiles.index', [\n \"user\" => $user\n ]\n );\n }", "public function profile()\n\t{\n\t\t$user = $this->userRepo->get(Auth::user()->id);\n\n\t\treturn View::make('user.profile', compact('user'))->withShowTab(Input::get('tab'));\n\t}", "public function show($user)\n {\n return view('users.profile')->with('user', $this->masterController->show($user));\n }", "public function show(UserProfile $userProfile)\n {\n //\n }", "public function show(User $user)\n {\n $user = Auth::user();\n die();\n\n //return view('profile', $user);\n //return redirect(RouteServiceProvider::HOME);\n }", "function show() {\n // Process request with using of models\n $user = Service::get_authorized_user();\n // Make Response Data\n if ($user !== NULL) {\n $data = [\n 'profile' => $user,\n ];\n $view = 'user/show';\n return $this->render($view, $data);\n } else {\n return Application::error403();\n }\n}", "public function profile()\n {\n $user = User::find(Auth::id());\n return view('layouts.showuser_details')->with(['user' => $user]);\n }", "public function show(User $user)\n {\n return view('profile')->with(['user'=> $user]);\n }", "public function profile()\n {\n $user = $this->user;\n return view('user.profile', compact('user'));\n }", "public function show(User $user)\n {\n // dd($user);\n \n return view('admin.profiles.show', compact('user'));\n }", "public function profileAction() {\r\n $user = $this->getCurUser();\r\n return $this->render('AlbatrossUserBundle:User:profile.html.twig', array(\r\n 'userInfo' => $user,\r\n )\r\n );\r\n }", "public function show(User $user)\n {\n $this->authorize('view', User::class);\n\n return view('profiles.show', compact('user'));\n }", "public function show($user_id)\n {\n $profile = Profile::find($user_id);\n $user = User::all();\n ;\n\n return view('users.showProfile')->with('profile',$profile)->with('user',$user);\n }", "public function show(User $user)\n {\n return View('users.profile')->withModel($user);\n }", "public function show()\n {\n $user = Auth::user();\n\n // dd($user);\n return view('pages.user.profile')->withUser($user);\n }", "public function show()\n {\n $id = Auth::user()->id;\n $user = User::findOrFail($id);\n\n return view('profile.show', compact('user'));\n }", "public function showProfile($user_id)\n {\n $points = Redis::get('user_score'.$user_id);\n return view('users.profile', ['points' => $points]);\n }", "public function show()\n {\n $user = User::findOrFail($this->auth->user()->id);\n return view('admin.admin-users.profile', compact('user'));\n }", "public function profile()\n {\n $breadCrumb = $this->userEngine->breadcrumbGenerate('profile');\n\n return $this->loadPublicView('user.profile', $breadCrumb['data']);\n }", "public function show()\n {\n $user = Auth::user();\n\n return view('profile/show', compact('user'));\n }", "function profile()\n\t{\n\t\t$userId = $this->Auth->user('id');\n\t\t$user = $this->User->findById($userId);\n\n\t\t// Set the client information to display in the view\n\t\t$this->set(compact('user'));\n\t}", "public function showProfile($id){\n\t\t$user = User::find($id);\n\t\treturn View::make('user-profile', array('user'=> $user));\n\t}", "public function showOwnProfile()\n {\n //Se obtiene el id del usuario con la sesion activa\n $user = DB::table('users')->where('id', '=', Auth::user()->id)->first();\n\n return view('profile.show', compact('user'));\n }", "public function profileAction()\n {\n \tZend_Registry::set('Category', Category::COMMUNITY);\n Zend_Registry::set('SubCategory', SubCategory::USERS);\n\n $userId = $this->_request->getParam(2, null);\n if(empty($userId)){\n throw new Lib_Exception_NotFound(\"No user id found for profile page\");\n }\n\n if($userId == $this->_user->{User::COLUMN_USERID}){\n \tZend_Registry::set('Category', Category::ACCOUNT);\n\t\t\tZend_Registry::set('SubCategory', SubCategory::NONE);\n }\n\n $table = new User();\n $user = $table->find($userId)->current();\n if(empty($user)){\n throw new Lib_Exception_NotFound(\"User '$userId' could not be found for profile page\");\n }\n\n $blog = $user->getBlog();\n if(!$blog->isReadableBy($this->_user, $this->_acl)){\n $blog = null;\n \t}\n\n $album = $user->getProfileAlbum();\n if(!$album->isReadableBy($this->_user, $this->_acl)){\n $album = null;\n \t}\n\n $this->view->profilee = $user;\n $this->view->album = $album;\n $this->view->blog = $blog;\n $this->view->medias = $album->getItemSet();\n }", "public function show(User $profile)\n {\n return view('profile.show', compact('profile'));\n }", "public function profile(){\n $user = User::findOrFail(Auth::user()->id);\n return view('user::profile')->withUser($user);\n }", "public function show()\n {\n $user = User::where('id',auth()->id())->first();\n return view('super.profile.show', [\n 'index' => $user,\n ]);\n }", "public static function show_user_profile($user) {\n $medium_user = Medium_User::get_by_wp_id($user->ID);\n Medium_View::render(\"form-user-profile\", array(\n \"medium_post_statuses\" => self::_get_post_statuses(),\n \"medium_post_licenses\" => self::_get_post_licenses(),\n \"medium_post_cross_link_options\" => self::_get_post_cross_link_options(),\n \"medium_user\" => $medium_user\n ));\n }", "public function show(User $user, Request $request)\n {\n return view('admin.profile',[\n 'currentPage'=>$user->name.\"'s Profile\",\n 'middlePage'=>null,\n 'user'=>$user,\n ]);\n }", "public function profile() {\n $this->restrictToRoleId(2);\n \n // Exécute la view\n $this->show('user/profile');\n }", "public function show($id) {\n\n // Return the User according his id.\n $user = User::find($id);\n\n // Return the user's Profile.\n return view('profile.my_profile')->withUser($user);\n }", "public function show2(User $id){\n\n $viewProfile = User::find($id);\n return view('user/user_profile', compact('viewProfile'));\n\n \n }", "public function userInformation(User $user)\n {\n return view('other.user.profileInfo', compact('user'));\n }", "public function showProfile($id=1)\n {\n $user = User::find($id);\n\n return View::make('user.profile', array('user' => $user));\n }", "public function profile() {\n $user = Auth::user();\n return view('site.profile', compact('user'));\n }", "public function profile() {\n\tif(!$this->user) {\n\t\tRouter::redirect(\"/users/login\");\n\t\t\n\t\t# Return will force this method to exit here so the rest of \n\t\t# the code won't be executed and the profile view won't be displayed.\n\t\treturn false;\n\t}\n \n # Setup view\n\t$this->template->content = View::instance('v_users_profile');\n\t$this->template->title = \"Profile of \".$this->user->first_name;\n \n #var_dump($this->user);\n \t\n\t# Render template\n\techo $this->template;\n }", "function action_profile_show() {\n // Process request with using of models\n $user = get_authorized_user();\n // Make Response Data\n if ($user !== NULL) {\n $data = [\n 'profile' => $user,\n ];\n return ['view' => 'user/show', 'data' => $data];\n } else {\n return error403();\n }\n}", "public function show(User $user)\n {\n return view('profiles.show', [\n 'profileUser' => $user,\n 'activities' => Activity::feed($user)\n ]);\n }", "public function showProfile()\n {\n\t\t$user = User::all();\n\n return View::make('users', array('users' => $user));\n }", "public function show(User $user)\n {\n return view('admin.users.profile', [\n 'user' => $user,\n 'roles'=>Role::all()\n ]);\n }", "public function profile()\n {\n $user_id = auth()->user()->id;\n $user = User::find($user_id);\n if (auth()->user()->id !== $user->id){\n return back ('user.edit')->with('error', 'Unauthorized Access');\n }\n return view ('user.edit')->with('user', $user);\n }", "public function profile()\n {\n\t$oUser = Auth::user();\n return view('profile', ['oUser' => $oUser, 'active' => 'profile_link']);\n }", "public function show()\n {\n $user_identifier = $this->session->userdata('identifier');\n $user_details = $this->user_m->read($user_identifier);\n $this->data['user_details'] = $user_details;\n $this->load_view('Profil Akun', 'user/profil');\n }", "public function profile() {\n //Tomamos el campo del ususario\n $user = Auth::user();\n //Retornamos la vista con el profile\n return view('admin.users.profile', ['user' => $user]);\n }", "public function showAction()\n {\n\t\tif (!$this->get('security.context')->isGranted('ROLE_SUBCRIBERUSER')) {\n throw new AccessDeniedException();\n }\n\n // get loged in user Id\t\n\t\t$userId = $this->get('security.context')->getToken()->getUser()->getId();\n \n $em = $this->getDoctrine()->getManager();\n $entity = $em->getRepository('WebsolutioDemoBundle:UserProfile')->findOneByUser($userId);\n\n if (!$entity) {\n\t\t\treturn $this->redirect($this->generateUrl('userprofile_create_profile'));\n\t\t} else {\n\t\t\treturn $this->redirect($this->generateUrl('userprofile_show', array('id' => $userId)));\n \t\n\t\t}\n\n return $this->render('WebsolutioDemoBundle:UserProfile:index.html.twig', array(\n 'entity' => $entity \n ));\n }", "public function my_profile()\n { \n $user_id = \\Auth::user()->id;\n $user = User::find($user_id);\n return view ('backend.pages.my_profile', compact('user'));\n }", "public function show(ProfilUser $profilUser)\n {\n //\n }", "public function profile ( $id ) {\n return view( 'user.profile' )->with( 'user', $this->user->find( $id ) );\n }", "public function profile($user_name = NULL) {\n\n\n if(!$this->user){\n //Router::redirect('/');\n die('Members Only <a href=\"/users/login\">Login</a>');\n\n }\n\n $this->template->content=View::instance('v_users_profile'); \n // $content=View::instance('v_users_profile'); \n $this->template->title= APP_NAME. \" :: Profile :: \".$user_name;\n \n $q= 'Select * \n From users \n WHERE email=\"'.$user_name.'\"';\n $user= DB::instance(DB_NAME)->select_row($q);\n\n $this->template->content->user=$user;\n \n # Render View \n echo $this->template;\n\n \n }", "function showProfile ($user)\n\t{\n\t\tif (file_exists(\"user.jpg\"))\n\t\t\techo \"<img src='user.jpg' style='float:left;>\";\n\t\t$result = queryMysql(\"SELECT * FROM profiles WHERE user='$user'\");\n\t\tif ($result->num_rows)\n\t\t{\n\t\t\t$row = $result->fetch_array(MYSQLI_ASSOC);\n\t\t\techo stripslashes($row['text']) . \"<br style='clear:left;'><br>\";\n\t\t}\n\t}", "public function showProfile()\n\t{\n\t\t$data = array(\n\t\t\t'profile' => $this->profile,\n\t\t\t'socialMediaAccounts' => $this->profileService->getSocialMediaAccountsForProfile($this->profile)->toArray(),\n\t\t\t'socialMediaMax' => Config::get('profile.social_media.max'),\n\t\t\t'socialMediaTypes' => $this->profileService->getSocialMediaTypes(),\n\t\t\t'maxQuote' => $this->profile->program->type->name == 'mbo' ? 75 : 175\n\t\t);\n\n\t\treturn new ProfileView($data);\n\t}", "public function show($id)\n {\n $user = User::where('name', $id)->get(); // Get the correct user by id\n return view('profile.profile', compact('user'));\n }", "public function actionProfile()\n {\n $this->layout = 'headbar';\n $model = new User();\n $model = User::find()->where(['id' => 1])->one();\n $name = $model->name;\n $email = $model->email;\n $mobile = $model->contact;\n return $this->render('profile', [\n 'model' => $model,\n 'name' => $name,\n 'email' => $email,\n 'mobile' => $mobile,\n ]);\n }", "public function show()\n\t{\n\t\t// get user model\n\t\tif (Auth::check()) {\n\t\t\t$user = Auth::user();\n\t\t\t$profile = Profile::find($user->id);\n\t\t\treturn $profile;\n\t\t} else {\n\t\t\treturn 'fail';\n\t\t}\n\t}", "public function profile() {\n\t\tif($this->checkLoggedIn()) {\n\t\t\treturn $this->view->render('profile_view');\n\t\t}\n\t}", "public function show($userid)\n {\n try\n {\n $user = \\App\\User::with('profile')->whereId($userid)->firstOrFail();\n }\n catch(\\Illuminate\\Database\\Eloquent\\ModelNotFoundException $e){\n return redirect()->route('home');\n }\n return \\View::make('profiles.show')->withUser($user);\n }", "public function user_profile() {\n $data['title'] = 'User Profile';\n return view('user-dashboard.user-profile', $data);\n }", "public function show($user_id)\n {\n $profile = User::find($user_id)->profile;\n $profile_res = new ProfileResource($profile);\n return response()->json([\n 'profile' => $profile_res\n ], 200);\n }", "public function profile($id) {\n $user = User::find($id);\n\n return view('user.profile', [\n 'user' => $user\n ]);\n }", "public function show(User $user)\n {\n // return view('profiles.show', compact('user'));\n return view('profiles.show', [\n 'user' => $user,\n 'tweets' => $user->tweets()->withLikes()->paginate(50)\n ]);\n // The point where you keep loading tweets, you might want to extract this to a repository or a helper method\n // on your model. It's something to be aware of.\n }", "public function show($id)\n {\n $user = User::where('id', $id)->with('skills')->with('projects')->with('country')->first();\n return view('web.users.profile', ['user' => $user]);\n }", "public function show(User $user)\n {\n $activties = Activity::feed($user);\n\n return view('profiles.show', [\n 'profileUser' => $user,\n 'activties' => $activties\n ]);\n }", "public function show(User $user): JsonResponse\n {\n return $this->ok($user->load('profile'));\n }", "public function index()\n {\n $user = Auth::user();\n return view('profile-user', ['user' => $user]);\n }", "public function showProfile($id)\n {\n $user = User::find($id);\n\n return View::make('user.profile', array('user' => $user));\n }", "public function showProfile($id)\n\t{\n\t\treturn view('user',['user' => User::findOrFail($id)]);\n\t}", "public function profile() {\n $userPlan = UserPlan::where('user_id', Auth::id())\n ->orderBy('id', 'desc')\n ->get();\n\n return view('profile', [\n 'page' => 'Profile',\n 'userPlan' => $userPlan\n ]);\n }", "public function show($id=null)\n {\n $userProfile = UserProfile::whereUserId($id)->first();\n\n // echo '<pre>';\n // print_r($userProfile->interest_name); exit();\n $user = User::with('userProfile')->findOrFail($id);\n return view('backend.auth.user.show')\n ->withUser($user);\n }", "public function show(User $usr)\n {\n // $usr = User::show($request->id);\n // dd($request->id);\n return view('usr.profile',compact('usr'));\n }", "public function showProfile()\n\t{\n\n\t\t$user = User::with('consultant','consultantNationality')->find(Auth::user()->get()->id);\n\t\t$nationalities = $user->nationalities();\n\t\t$specialization = $user->specialization();\n\t\t$workedcountries = $user->workedcountries();\n\t\t$skills = $user->skills();\n\t\t$languages = $user->languages();\t\n\t\t$agencies = $user->agencies();\n\n\t\treturn View::make('user.profile.show', compact('user', 'nationalities','specialization','workedcountries','skills','languages','agencies'));\n\t}", "public function profile(){\n return view('profile', array('user' => Auth::user()) );\n }", "public function showUserAction($id) {\n $repository = $this->getDoctrine()\n ->getManager()\n ->getRepository('DTBUserBundle:DTBUser');\n \n $user = $repository->find($id);\n \n if ($user->getId() == $this->getUser()->getId())\n {\n return $this->redirect($this->generateUrl(\"fos_user_profile_show\"));\n }\n \n return $this->render('DTBUserBundle:Profile:show_user.html.twig', array('user' => $user));\n }", "public function show($id)\n {\n $profile = User::find(auth()->id());\n return view('user.profile.index' , compact ('profile'));\n }", "public function profile(User $user)\n {\n $this->authorize('update', [User::class, $user]);\n return view('users.edit', [ 'user' => $user, 'roles' => $this->get_all_roles() ]);\n }", "public function __invoke()\n {\n return view('client.profile', ['user' => User::findOrFail(auth()->user()->id)]);\n }", "public function myprofileAction()\n {\n \tZend_Registry::set('Category', Category::ACCOUNT);\n \tZend_Registry::set('SubCategory', SubCategory::NONE);\n\n $album = $this->_user->getProfileAlbum();\n if(!$album->isReadableBy($this->_user, $this->_acl)){\n $album = null;\n \t}\n\n $blog = $this->_user->getBlog();\n if(!$blog->isReadableBy($this->_user, $this->_acl)){\n $blog = null;\n \t}\n\n $this->view->profilee = $this->_user;\n $this->view->album = $album;\n $this->view->blog = $blog;\n $this->view->medias = $album->getItemSet();\n\n $this->renderScript('user/profile.phtml');\n }", "public function show($id)\n {\n $show=user::find($id);\n return view('backend.user.profile',compact('show'));\n }", "public function index()\n {\n $user = $this->getAuthenticatedUser();\n\n $this->setTitle(\"Profile - {$user->full_name}\");\n $this->addBreadcrumbRoute($user->full_name, 'admin::auth.profile.index');\n\n return $this->view('admin.profile.index', compact('user'));\n }", "public function show(User $user)\n {\n return view('users.show', get_defined_vars());\n }", "public function actionProfile()\r\n\t{\r\n\t\t//disable jquery autoload\r\n\t\tYii::app()->clientScript->scriptMap=array(\r\n\t\t\t'jquery.js'=>false,\r\n\t\t);\r\n\t\t$model = $this->loadUser();\r\n\t $this->render('profile',array(\r\n\t \t'model'=>$model,\r\n\t\t\t'profile'=>$model->profile,\r\n\t ));\r\n\t}", "public function show(User $user, Request $request)\n {\n if ($user->isCompany()) {\n return redirect('/home/companies/' . $user->id);\n }\n\n if ($request->user()->id !== $user->id) {\n $user->update([\n 'profile_views' => $user->profile_views + 1\n ]);\n }\n\n return view('student-profile.show', [\n 'student' => $user,\n 'courses' => Course::all(),\n ]);\n }", "public function show($id)\n {\n $profile = User::find($id);\n return view('users.profile', compact('profile'));\n }", "public function show($id = 0)\n {\n if ($id == 0) {\n $id = Auth::user()->id;\n }\n\n $user = DB::table('users')->where('id', $id)->first();\n if ($user == null) {\n return abort(401);\n }\n\n if ($user->profile_picture !== null) {\n $user->profile_picture = Helper::getUserResource($user->profile_picture, $user->id);\n }\n\n return view('show_profile', [\n 'user' => $user,\n ]);\n }", "public function profile()\n {\n $loginUser = Auth::user();\n \n return view('mypage.profile', ['loginUser' => $loginUser]);\n }", "public function profile()\n {\n //\n $user = Auth()->user();\n //dd($user);\n return view('customers.profile',compact('user'));\n }", "public function index()\n {\n $user = Auth::user();\n return view('user.profile', compact('user'));\n }", "public function viewProfile\t($uid) {\n\t\t$userInfo = resolve('userInfo');\n\n\t\tif ($uid == $userInfo->usr_id) {\n\t\t\treturn redirect('profile');\n\t\t}\n\t\t$profile = User::getUserById($uid);\n\n\t\treturn view('viewProfile')\n\t\t\t\t ->with('user',$userInfo)\n\t\t\t\t ->with('profile',$profile);\n\t}", "public function profile($id)\n {\n if(auth()->user()->id) {\n $profile = UserProfile::findOrFail($id);\n return view('backends.user.profile',compact('profile'));\n }\n\n }", "public function profile()\n\t{\n\t\t// echo $this->fungsi->user_login()->nik;\n\t\t$query = $this->user_m->get($this->fungsi->user_login()->nik);\n\t\t$data['data'] = $query->row();\n\t\t$this->template->load('template2', 'profile', $data);\n\t}", "public function profile() {\n\n\n $userInfo = Auth::user();\n\n $User = User::find($userInfo->id);\n\n\n // show the edit form and pass the nerd\n return View::make('admin.profile.edit')\n ->with('User', $User);\n }", "public function showProfile()\n {\n return view('users.profile');\n }", "public function profile()\n {\n $supplier = Supplier::where('user_id', '=', Auth::user()->id)->first();\n return view('profile.show', compact('supplier'));\n }", "public function show($id)\n {\n //$user = auth()->user();\n $user = User::where(['id' => $id])->firstOrFail();\n return view('profile.show')->with('user', $user);\n }", "public function loadProfile($id)\n { \n $user = User::where('user_id', $id)->get(); \n return view('./profile')->with('user', $user);\n }", "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n $user = $this->get('security.token_storage')->getToken()->getUser();\n $profile = $em->getRepository('AppBundle:UserProfile')->findOneBy(array('userId' => $user));\n\n if ($profile == null) {\n $profile = new UserProfile();\n $profile->setUserId($user);\n }\n\n return $this->render('custom_views/profile.html.twig', array(\n 'profile' => $profile,\n ));\n }", "public function show($id)\n {\n return view('user.profile', ['user' => User::findorfail($id)]);\n }", "public function show() {\n $client = Auth::user();\n\n return view('/client/profile.show', ['client' => $client]);\n\n\n }", "public function show($id)\n {\n $user = $this->userRepository->find($id);\n $courses = $user->courses;\n $subjects = $user->subjects;\n $tasks = $user->tasks;\n // $courses = DB::table('user_course')\n // ->where('user_id', $id)\n // ->get();\n // $listCourse = $this->courseRepository->getAll();\n // $subjects = DB::table('user_subject')\n // ->where('user_id', $id)\n // ->get();\n // $listSubject = $this->subjectRepository->getAll();\n // $tasks = DB::table('user_task')\n // ->where('user_id', $id)\n // ->get();\n // $listTask = $this->taskRepository->getAll();\n\n // return view('client.user.profile', compact('user', 'courses', 'listCourse', 'subjects', 'listSubject', 'tasks', 'listTask'));\n\n return view('client.user.profile', compact('user', 'courses', 'subjects', 'tasks'));\n }", "public function view(User $user, Profil $profil)\n {\n //\n }", "public function myProfile()\n {\n //make sure user is logged in\n Auth::checkAuthentication();\n \n //loads profile from session\n $this->View->render('user/myProfile'); \n }", "public function profile()\n { \n $user = auth()->user();\n return view('admin.profile.index',compact('user'));\n }" ]
[ "0.81846577", "0.80868584", "0.80781794", "0.8035127", "0.80341536", "0.79904115", "0.79903656", "0.7973829", "0.7963159", "0.79504293", "0.7946976", "0.79417646", "0.79182535", "0.79121447", "0.7883146", "0.78647107", "0.7855951", "0.7795711", "0.7786525", "0.7784185", "0.7777128", "0.77685374", "0.77571124", "0.7749809", "0.7740235", "0.769678", "0.7693167", "0.76883465", "0.7679158", "0.7671164", "0.76436895", "0.76380867", "0.7623088", "0.76150167", "0.7613046", "0.7604109", "0.76038396", "0.7577567", "0.75699115", "0.7555974", "0.75545526", "0.7532849", "0.75233144", "0.7523266", "0.75221944", "0.7519414", "0.75174105", "0.75015265", "0.7501228", "0.7496258", "0.7493395", "0.74877495", "0.74786997", "0.7447873", "0.7443502", "0.7443012", "0.7442846", "0.7435135", "0.7435124", "0.7424359", "0.7418541", "0.7413212", "0.7403902", "0.74015", "0.7396285", "0.73886585", "0.73872894", "0.7387087", "0.7386202", "0.73659533", "0.73648846", "0.73591995", "0.7350029", "0.73408943", "0.7336348", "0.7320869", "0.7307597", "0.7306243", "0.7303353", "0.7302427", "0.7299818", "0.7292955", "0.7283242", "0.7278327", "0.7274031", "0.7265494", "0.7260816", "0.7257615", "0.7255468", "0.72516006", "0.72478914", "0.7243078", "0.7238655", "0.7235935", "0.72354555", "0.7224724", "0.7223488", "0.7218358", "0.72151613", "0.72147495", "0.7213164" ]
0.0
-1
THIS FUNCTION IS USED FOR CREATING AN OBJECT OF "HierarchyManager" CLASS Author :Dipanjan Bhattacharjee Created on : (12.06.2008) Copyright 20082009 syenergy Technologies Pvt. Ltd.
private function __construct() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createHierarchy(){\n\t\tmysqli_query($this->db, \"TRUNCATE TABLE hierarchy\");\n\t\t\n\t\t$insert_sql = \"INSERT INTO hierarchy VALUES\";\n\t\tforeach ($this->structure as $key => $value) {\n\t\t\t$position = $value['number'] + 1;\n\t\t\t$rows[] = \"('', '{$key}', '{$position}')\";\n\t\t}\n\t\t$insert_sql = $insert_sql.implode(\",\", $rows);\n\t\tmysqli_query($this->db, $insert_sql);\n\t}", "private function constructHierarchy() {\n\t\t//////////////////////////////////////////////////\n\t\t// Construct child-parent linkage for MonadObjects\n\t\t//////////////////////////////////////////////////\n \n $dummyidd = 10000000;\n\n $number_sets = count($this->sentenceSets);\n\n\t\tfor ($msetIndex=0; $msetIndex<$number_sets; ++$msetIndex) {\n $moarr = &$this->monadObjects[$msetIndex]; // Cached here;\n\t\t\tfor ($i=1; $i<$this->maxLevels; ++$i) {\n\t\t\t\t// Find constituent MonadObjects\n \n\t\t\t\tforeach ($moarr[$i] as $parentMo) { // Loop through monads at level i\n\t\t\t\t\tforeach ($moarr[$i-1] as $childMo) { // Loop through mondads at child level\n\t\t\t\t\t\tif ($childMo->contained_in($parentMo))\n\t\t\t\t\t\t\t$parentMo->add_child($childMo);\n\t\t\t\t\t}\n\t\t\t\t}\n \n\t\t\t\t// Find MonadObjects without parents\n\t\t\t\tforeach ($moarr[$i-1] as $childMo) {\n\t\t\t\t\tif ($childMo->get_parent()===null) {\n\t\t\t\t\t\t$matobj = new OlMatchedObject($dummyidd++, 'dummy');\n\t\t\t\t\t\t$matobj->monadset = $childMo->mo->monadset;\n \n\t\t\t\t\t\t$mmo = new MultipleMonadObject($matobj);\n\t\t\t\t\t\t$moarr[$i][] = $mmo;\n\t\t\t\t\t\t$mmo->add_child($childMo);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n// // Print hierarchy\n// for ($i=1; $i<$this->maxLevels; ++$i) {\n// foreach ($moarr[$i] as $parentMo) {\n// echo \"<pre>parent = \",$parentMo->get_id_d(),\" : \";\n// foreach ($parentMo->children_idds as $cid)\n// echo $cid,\" \";\n// echo \"</pre>\";\n// }\n// }\n }\n }", "function create(&$a_pg_obj, $a_hier_id)\n\t{\n\t\t$this->node = $this->createPageContentNode();\n\t}", "protected function createObjects() {\n\t\t$this->lblId = $this->mctHut->lblId_Create();\n\t\t$this->lstPosition = $this->mctHut->lstPosition_Create();\n\t\t$this->txtName = $this->mctHut->txtName_Create();\n\t}", "abstract protected function createObject();", "function create(&$a_pg_obj, $a_hier_id, $a_pc_id = \"\")\n\t{\n\t\t$this->node = $this->createPageContentNode();\n\t\t$a_pg_obj->insertContent($this, $a_hier_id, IL_INSERT_AFTER, $a_pc_id);\n\t\t$this->tabs_node =& $this->dom->create_element(\"Tabs\");\n\t\t$this->tabs_node =& $this->node->append_child($this->tabs_node);\n\t}", "function &setupDynamic( $type , $dsn , $options=array() )\n# \"dynamic\" stands for retreiving a tree(chunk) dynamically when needed,\n# better name would be great :-)\n {\n require_once(\"Tree/Dynamic/$type.php\");\n\n $className = 'Tree_Dynamic_'.$type;\n $obj = & new $className( $dsn , $options );\n return $obj;\n }", "function createLO( $objectType, $id_resource = false, $environment = false ) {\n\t\n\t$query = \"SELECT className, fileName FROM %lms_lo_types WHERE objectType='\".$objectType.\"'\";\n\t$rs = sql_query( $query );\n\tlist( $class_name, $file_name ) = sql_fetch_row( $rs );\n\tif (trim($file_name) == \"\") return false;\n\t/*if (trim($file_name) == \"\") {\n\t\tif (isset($_SESSION['idCourse'])) {\n\t\t\tUtil::jump_to('index.php?modname=organization&op=organization');\n\t\t}\n\t\tUtil::jump_to('index.php');\n\t}*/\n\trequire_once(dirname(__FILE__).'/../class.module/learning.object.php' );\n\tif (file_exists(_base_ . '/customscripts/'._folder_lms_.'/class.module/'.$file_name ) && Get::cfg('enable_customscripts', false) == true ){\n\t\trequire_once(_base_ . '/customscripts/'._folder_lms_.'/class.module/'.$file_name );\n\t} else {\n\t\trequire_once(dirname(__FILE__).'/../class.module/'.$file_name );\n\t}\n\t$lo = new $class_name($id_resource, $environment);\n\treturn $lo;\n}", "function CreateTree($data,$p_id=0,$level=0){\n if(!$data){\n return;\n }\n static $newarray=[];\n foreach($data as $k=>$v){\n if($v->p_id==$p_id){\n $v->level=$level;\n $newarray[]=$v;\n //调用自身\n $this->CreateTree($data,$v->cate_id,$level+1);\n }\n }\n return $newarray;\n}", "function _calculateTree() {\n include_once(\"bitlib/SQL/Tree.php\");\n include_once(\"bitlib/functions/common.php\");\n $db = common::getDB($GLOBALS[\"BX_config\"][\"dsn\"]);\n $t = new SQL_Tree($db);\n $t->FullPath=\"fulluri\";\n $t->Path=\"uri\";\n $t->FullTitlePath=\"fulltitlepath\";\n $t->Title=\"title_de\";\n \n $t->importTree(1);\n }", "function get_tree_manager($model, $field, $root = 0)\n{\n if (!sfConfig::has('app_sfJqueryTree_withContextMenu'))\n {\n sfConfig::set('app_sfJqueryTree_withContextMenu', true);\n }\n\n sfContext::getInstance()->getResponse()->addStylesheet('/rtCorePlugin/vendor/jsTree/themes/default/style.css');\n sfContext::getInstance()->getResponse()->addJavascript('/rtCorePlugin/vendor/jquery/js/jquery.min.js');\n sfContext::getInstance()->getResponse()->addJavascript('/rtCorePlugin/vendor/jsTree/lib/jquery.cookie.js');\n sfContext::getInstance()->getResponse()->addJavascript('/rtCorePlugin/vendor/jsTree/jquery.tree.js');\n sfContext::getInstance()->getResponse()->addJavascript('/rtCorePlugin/vendor/jsTree/plugins/jquery.tree.cookie.js');\n sfContext::getInstance()->getResponse()->addJavascript('/rtCorePlugin/vendor/jsTree/plugins/jquery.tree.contextmenu.js');\n\n return get_component('rtTreeAdmin', 'manager', array('model' => $model, 'field' => $field, 'root' => $root));\n}", "function get_hierarchy_data($optparent=null,$branchparent=0,$published=null,$maxlevel=9999)\n {\n\n /*\n chu y khi lay du lieu\n Khi lay ta len nhom du lieu theo parent id de qua trinh su li phia sau duoc nhanh chong\n */\n $data=$this->_prepareData(null,$optparent,$published) ;\n //pr($data);\n $children=$this->_make_relation($data) ;\n // echo \"<br>---list Child----<br>\"; print_r($children);\n\n $list = $this->_data_recurse($branchparent, $children, array(), $maxlevel,0,'',$data);\n //echo \"<br>---list ----<br>\"; print_r($list);\n\n return $list;\n }", "function OBJM_AddNewObjectToSCXML($elemID, $type, $class, $level, $nodeTitle, $parentID, $dataID, $datatype, $dataOrig)\r\n{\r\n\t$retval = $_SESSION['sceneCompXMLDOM']->load($_SESSION['sceneCompXMLFilePath']);\r\n\tif($retval != true)\r\n\t\treturn false;\r\n\r\n\t$displaystring = $nodeTitle;\r\n\tglobal $treehandlerfnname;\r\n\t\r\n\t//\r\n\t$elemID = strtoupper($elemID); \r\n\t$type = strtoupper($type);\r\n\t$class = strtoupper($class);\r\n\t$level = strtoupper($level); \r\n\t$parentID = strtoupper($parentID); \r\n\t//$attrdefinition = array(\"id\"=>$elemID, \"type\"=>$type,\"class\"=>$class,\"level\"=>$level, \"data-origin\"=>\"original\" , \"data-srcid\"=>\"none\", \"onclick\"=>$treehandlerfnname, \"dataid\"=>$dataID, \"data-type\"=>$datatype);\r\n\t$attrdefinition = array(\"id\"=>$elemID, \"type\"=>$type,\"class\"=>$class,\"level\"=>$level, \"data-origin\"=>$dataOrig , \"data-srcid\"=>\"none\", \"dataid\"=>$dataID, \"data-type\"=>$datatype, \"name\"=>$nodeTitle);\r\n\t$retval = CDOC_COMMON_AddXMLElement($_SESSION['sceneCompXMLDOM'], $_SESSION['sceneCompXMLFilePath'],\r\n\t\t\t\"li\", $displaystring, $parentID, $attrdefinition, true);\r\n\tif($retval != true)\r\n\t\treturn false;\r\n\t$newObj = $_SESSION['sceneCompXMLDOM']->getElementById($elemID);\t \r\n\t$retval = $_SESSION['sceneCompXMLDOM']->saveXML($newObj); \r\n\treturn $retval;\r\n}", "function create_tree($id,$select_root=false)\n\t{\n\t\trequire_lang('catalogues');\n\t\trequire_code('catalogues');\n\t\trequire_code('catalogues2');\n\n\t\t$name=$GLOBALS['SITE_DB']->query_value_null_ok('catalogue_categories','c_name',array('id'=>intval($id)));\n\n\t\t$pagelinks=get_catalogue_entries_tree($name,NULL,NULL,NULL,NULL,NULL,false);\n\t\treturn make_tree('catalogues',$pagelinks,$select_root);\n\t}", "abstract protected function getMenuTree();", "public function __construct()\n {\n $this->folderCreator = new FolderCreator();\n }", "abstract protected function getNewChildren(): array ;", "abstract protected function create ();", "protected function CreateObjects() {\n\t\t$this->lblId = $this->mctLogin->lblId_Create();\n\t\t$this->lstPerson = $this->mctLogin->lstPerson_Create();\n\t\t$this->txtUsername = $this->mctLogin->txtUsername_Create();\n\t\t$this->txtPassword = $this->mctLogin->txtPassword_Create();\n\t\t$this->chkIsEnabled = $this->mctLogin->chkIsEnabled_Create();\n\t}", "function showHierarchy()\n\t{\n\t\tglobal $lng, $ilCtrl;\n\t\t\n\t\t$this->setTabs();\n\t\t\n\t\t$ilCtrl->setParameter($this, \"backcmd\", \"showHierarchy\");\n\t\t\n\t\tinclude_once(\"./Modules/LearningModule/classes/class.ilChapterHierarchyFormGUI.php\");\n\t\t$form_gui = new ilChapterHierarchyFormGUI($this->content_object->getType(), $_GET[\"transl\"]);\n\t\t$form_gui->setFormAction($ilCtrl->getFormAction($this));\n\t\t$form_gui->setTitle($this->obj->getTitle());\n\t\t$form_gui->setIcon(ilUtil::getImagePath(\"icon_st.svg\"));\n\t\t$form_gui->setTree($this->tree);\n\t\t$form_gui->setCurrentTopNodeId($this->obj->getId());\n\t\t$form_gui->addMultiCommand($lng->txt(\"delete\"), \"delete\");\n\t\t$form_gui->addMultiCommand($lng->txt(\"cut\"), \"cutItems\");\n\t\t$form_gui->addMultiCommand($lng->txt(\"copy\"), \"copyItems\");\n\t\t$form_gui->addMultiCommand($lng->txt(\"cont_de_activate\"), \"activatePages\");\n\t\tif ($this->content_object->getLayoutPerPage())\n\t\t{\t\n\t\t\t$form_gui->addMultiCommand($lng->txt(\"cont_set_layout\"), \"setPageLayout\");\n\t\t}\n\t\t$form_gui->setDragIcon(ilUtil::getImagePath(\"icon_pg.svg\"));\n\t\t$form_gui->addCommand($lng->txt(\"cont_save_all_titles\"), \"saveAllTitles\");\n\t\t$form_gui->addHelpItem($lng->txt(\"cont_chapters_after_pages\"));\n\t\t$up_gui = ($this->content_object->getType() == \"dbk\")\n\t\t\t? \"ilobjdlbookgui\"\n\t\t\t: \"ilobjlearningmodulegui\";\n\t\t$ilCtrl->setParameterByClass($up_gui, \"active_node\", $this->obj->getId());\n\t\t$ilCtrl->setParameterByClass($up_gui, \"active_node\", \"\");\n\n\t\t$ctpl = new ilTemplate(\"tpl.chap_and_pages.html\", true, true, \"Modules/LearningModule\");\n\t\t$ctpl->setVariable(\"HIERARCHY_FORM\", $form_gui->getHTML());\n\t\t$ilCtrl->setParameter($this, \"obj_id\", $_GET[\"obj_id\"]);\n\t\t\n\t\tinclude_once(\"./Modules/LearningModule/classes/class.ilObjContentObjectGUI.php\");\n\t\t$ml_head = ilObjContentObjectGUI::getMultiLangHeader($this->content_object->getId(), $this);\n\t\t\n\t\t$this->tpl->setContent($ml_head.$ctpl->get());\n\t}", "private function createRoleHierarchy($config) {}", "function createObject() {\n\t\t// must be implemented by sub-classes\n\t\tassert(false);\n\t}", "function __construct() \n {\n // CODE\n parent::__construct( XMLObject_Menu::ROOT_NODE_MENU );\n \n }", "private function createCreatureTop()\n {\n\n }", "function addAdminMenu()\n\t{\n\t\tglobal $tpl, $tree, $rbacsystem, $lng;\n\n\t\tinclude_once(\"./Services/UIComponent/GroupedList/classes/class.ilGroupedListGUI.php\");\n\t\t$gl = new ilGroupedListGUI();\n\n\t\t$objects = $tree->getChilds(SYSTEM_FOLDER_ID);\n\t\tforeach($objects as $object)\n\t\t{\n\t\t\t$new_objects[$object[\"title\"].\":\".$object[\"child\"]]\n\t\t\t\t= $object;\n\t\t\t//have to set it manually as translation type of main node cannot be \"sys\" as this type is a orgu itself.\n\t\t\tif($object[\"type\"] == \"orgu\")\n\t\t\t\t$new_objects[$object[\"title\"].\":\".$object[\"child\"]][\"title\"] = $lng->txt(\"obj_orgu\");\n\t\t}\n\n\t\t// add entry for switching to repository admin\n\t\t// note: please see showChilds methods which prevents infinite look\n\t\t$new_objects[$lng->txt(\"repository_admin\").\":\".ROOT_FOLDER_ID] =\n\t\t\tarray(\n\t\t\t\t\"tree\" => 1,\n\t\t\t\t\"child\" => ROOT_FOLDER_ID,\n\t\t\t\t\"ref_id\" => ROOT_FOLDER_ID,\n\t\t\t\t\"depth\" => 3,\n\t\t\t\t\"type\" => \"root\",\n\t\t\t\t\"title\" => $lng->txt(\"repository_admin\"),\n\t\t\t\t\"description\" => $lng->txt(\"repository_admin_desc\"),\n\t\t\t\t\"desc\" => $lng->txt(\"repository_admin_desc\"),\n\t\t\t);\n\n//$nd = $tree->getNodeData(SYSTEM_FOLDER_ID);\n//var_dump($nd);\n\t\t$new_objects[$lng->txt(\"general_settings\").\":\".SYSTEM_FOLDER_ID] =\n\t\t\tarray(\n\t\t\t\t\"tree\" => 1,\n\t\t\t\t\"child\" => SYSTEM_FOLDER_ID,\n\t\t\t\t\"ref_id\" => SYSTEM_FOLDER_ID,\n\t\t\t\t\"depth\" => 2,\n\t\t\t\t\"type\" => \"adm\",\n\t\t\t\t\"title\" => $lng->txt(\"general_settings\"),\n\t\t\t);\n\t\tksort($new_objects);\n\n\t\t// determine items to show\n\t\t$items = array();\n\t\tforeach ($new_objects as $c)\n\t\t{\n\t\t\t// check visibility\n\t\t\tif ($tree->getParentId($c[\"ref_id\"]) == ROOT_FOLDER_ID && $c[\"type\"] != \"adm\" &&\n\t\t\t\t$_GET[\"admin_mode\"] != \"repository\")\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t// these objects may exist due to test cases that didnt clear\n\t\t\t// data properly\n\t\t\tif ($c[\"type\"] == \"\" || $c[\"type\"] == \"objf\" ||\n\t\t\t\t$c[\"type\"] == \"xxx\")\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t$accessible = $rbacsystem->checkAccess('visible,read', $c[\"ref_id\"]);\n\t\t\tif (!$accessible)\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif ($c[\"ref_id\"] == ROOT_FOLDER_ID &&\n\t\t\t\t!$rbacsystem->checkAccess('write', $c[\"ref_id\"]))\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif ($c[\"type\"] == \"rolf\" && $c[\"ref_id\"] != ROLE_FOLDER_ID)\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t$items[] = $c;\n\t\t}\n\n\t\t$titems = array();\n\t\tforeach ($items as $i)\n\t\t{\n\t\t\t$titems[$i[\"type\"]] = $i;\n\t\t}\n\t\t// admin menu layout\n\t\t$layout = array(\n\t\t\t1 => array(\n\t\t\t\t\"adn\" =>\n\t\t\t\t\tarray(\"xaad\", \"xaec\",\"xaed\", \"xaes\", \"xaep\", \"xacp\", \"xata\", \"xamd\", \"xast\"),\n\t\t\t\t\"basic\" =>\n\t\t\t\t\tarray(\"adm\", \"stys\", \"adve\", \"lngf\", \"hlps\", \"accs\", \"cmps\", \"extt\"),\n\t\t\t\t\"user_administration\" =>\n\t\t\t\t\tarray(\"usrf\", 'tos', \"rolf\", \"auth\", \"ps\", \"orgu\"),\n\t\t\t\t\"learning_outcomes\" =>\n\t\t\t\t\tarray(\"skmg\", \"cert\", \"trac\")\n\t\t\t),\n\t\t\t2 => array(\n\t\t\t\t\"user_services\" =>\n\t\t\t\t\tarray(\"pdts\", \"prfa\", \"nwss\", \"awra\", \"cadm\", \"cals\", \"mail\"),\n\t\t\t\t\"content_services\" =>\n\t\t\t\t\tarray(\"seas\", \"mds\", \"tags\", \"taxs\", 'ecss', \"pays\", \"otpl\"),\n\t\t\t\t\"maintenance\" =>\n\t\t\t\t\tarray('sysc', \"recf\", 'logs', \"root\")\n\t\t\t),\n\t\t\t3 => array(\n\t\t\t\t\"container\" =>\n\t\t\t\t\tarray(\"reps\", \"crss\", \"grps\", \"prgs\"),\n\t\t\t\t\"content_objects\" =>\n\t\t\t\t\tarray(\"bibs\", \"blga\", \"chta\", \"excs\", \"facs\", \"frma\",\n\t\t\t\t\t\t\"lrss\", \"mcts\", \"mobs\", \"svyf\", \"assf\", \"wbrs\", \"wiks\")\n\t\t\t)\n\t\t);\n\n\t\t// now get all items and groups that are accessible\n\t\t$groups = array();\n\t\tfor ($i = 1; $i <= 3; $i++)\n\t\t{\n\t\t\t$groups[$i] = array();\n\t\t\tforeach ($layout[$i] as $group => $entries)\n\t\t\t{\n\t\t\t\t$groups[$i][$group] = array();\n\t\t\t\t$entries_since_last_sep = false;\n\t\t\t\tforeach ($entries as $e)\n\t\t\t\t{\n\t\t\t\t\tif ($e == \"---\" || $titems[$e][\"type\"] != \"\")\n\t\t\t\t\t{\n\t\t\t\t\t\tif ($e == \"---\" && $entries_since_last_sep)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$groups[$i][$group][] = $e;\n\t\t\t\t\t\t\t$entries_since_last_sep = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if ($e != \"---\")\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$groups[$i][$group][] = $e;\n\t\t\t\t\t\t\t$entries_since_last_sep = true;\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\tinclude_once(\"./Services/UIComponent/GroupedList/classes/class.ilGroupedListGUI.php\");\n\t\t$gl = new ilGroupedListGUI();\n\n\t\tfor ($i = 1; $i <= 3; $i++)\n\t\t{\n\t\t\tif ($i > 1)\n\t\t\t{\n//\t\t\t\t$gl->nextColumn();\n\t\t\t}\n\t\t\tforeach ($groups[$i] as $group => $entries)\n\t\t\t{\n\t\t\t\tif (count($entries) > 0)\n\t\t\t\t{\n\t\t\t\t\t$gl->addGroupHeader($lng->txt(\"adm_\".$group));\n\n\t\t\t\t\tforeach ($entries as $e)\n\t\t\t\t\t{\n\t\t\t\t\t\tif ($e == \"---\")\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$gl->addSeparator();\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$path = ilObject::_getIcon(\"\", \"tiny\", $titems[$e][\"type\"]);\n\t\t\t\t\t\t\t$icon = ($path != \"\")\n\t\t\t\t\t\t\t\t? ilUtil::img($path).\" \"\n\t\t\t\t\t\t\t\t: \"\";\n\n\t\t\t\t\t\t\tif ($_GET[\"admin_mode\"] == \"settings\" && $titems[$e][\"ref_id\"] == ROOT_FOLDER_ID)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$gl->addEntry($icon.$titems[$e][\"title\"],\n\t\t\t\t\t\t\t\t\t\"ilias.php?baseClass=ilAdministrationGUI&amp;ref_id=\".\n\t\t\t\t\t\t\t\t\t$titems[$e][\"ref_id\"].\"&amp;admin_mode=repository\",\n\t\t\t\t\t\t\t\t\t\"_top\", \"\", \"\", \"mm_adm_rep\",\n\t\t\t\t\t\t\t\t\tilHelp::getMainMenuTooltip(\"mm_adm_rep\"),\n\t\t\t\t\t\t\t\t\t\"bottom center\", \"top center\", false);\n\t\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\t\t$gl->addEntry($icon.$titems[$e][\"title\"],\n\t\t\t\t\t\t\t\t\t\"ilias.php?baseClass=ilAdministrationGUI&amp;ref_id=\".\n\t\t\t\t\t\t\t\t\t$titems[$e][\"ref_id\"].\"&amp;cmd=jump\",\n\t\t\t\t\t\t\t\t\t\"_top\", \"\", \"\", \"mm_adm_\".$titems[$e][\"type\"],\n\t\t\t\t\t\t\t\t\tilHelp::getMainMenuTooltip(\"mm_adm_\".$titems[$e][\"type\"]),\n\t\t\t\t\t\t\t\t\t\"bottom center\", \"top center\", false);\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\t\t//$gl->addSeparator();\n\n\t\t$tpl->setLeftNavContent(\"<div id='adn_adm_side_menu'>\".$gl->getHTML().\"</div>\");\n\t}", "public function buildMenuTree()\n {\n $menu = new Menu\\Menu('menuTree');\n\n // Top level.\n $this->p1 = $menu->addItem(new Menu\\Item('p.1'));\n $this->p2 = $menu->addItem(new Menu\\Item('p.2'));\n\n // First level (p1).\n $this->c11 = $this->p1->addChild(new Menu\\Item('c.1.1'));\n $this->c12 = $this->p1->addChild(new Menu\\Item('c.1.2'));\n\n // First level (p2).\n $this->c21 = $this->p2->addChild(new Menu\\Item('c.2.1'));\n $this->c22 = $this->p2->addChild(new Menu\\Item('c.2.2'));\n $this->c23 = $this->p2->addChild(new Menu\\Item('c.2.3'));\n\n // Second level (c.1.1).\n $this->c111 = $this->c11->addChild(new Menu\\Item('c.1.1'));\n }", "private function _getTree($create = false) {}", "function createDirectory($name, $path=ModuleCreator::PATH_MODULE_ROOT) \n {\n // create base directory\n/* $directoryName = $path.$name;\n if ( !file_exists( $directoryName ) ) {\n mkdir( $directoryName, ModuleCreator::DIR_MODE );\n }\n $this->values[ ModuleCreator::KEY_PATH_MODULE_ROOT ] = $directoryName.'/';\n*/\n $directoryName = $this->values[ ModuleCreator::KEY_PATH_MODULE_ROOT ];\n if ( !file_exists( $directoryName ) ) {\n mkdir( $directoryName, ModuleCreator::DIR_MODE );\n }\n \n // create sub directories\n // objects_bl\n// $blDirectory = $directoryName.ModuleCreator::PATH_OBJECT_BL;\n// $this->values[ ModuleCreator::KEY_PATH_MODULE_BL ] = $blDirectory;\n $blDirectory = $this->values[ ModuleCreator::KEY_PATH_MODULE_BL ];\n\n if ( !file_exists( $blDirectory ) ) {\n mkdir( $blDirectory, ModuleCreator::DIR_MODE );\n }\n \n // objects_da\n $daDirectory = $directoryName.ModuleCreator::PATH_OBJECT_DA;\n if ( !file_exists( $daDirectory ) ) {\n mkdir( $daDirectory, ModuleCreator::DIR_MODE );\n }\n \n // objects_pages\n $pageDirectory = $directoryName.ModuleCreator::PATH_OBJECT_PAGES;\n if ( !file_exists( $pageDirectory ) ) {\n mkdir( $pageDirectory, ModuleCreator::DIR_MODE );\n }\n \n // templates\n $templateDirectory = $directoryName.ModuleCreator::PATH_TEMPLATES;\n if ( !file_exists( $templateDirectory ) ) {\n mkdir( $templateDirectory, ModuleCreator::DIR_MODE );\n }\n \n }", "public static function buildTree($nodes){\n\t\t// Initialize hierarchy and lookup arrays\n\t\tself::$hierarchy = array();\n\t\tself::$lookup = array();\n\t\t// Walk through nodes\n\t\tarray_walk($nodes, 'hierarchy::addNode');\n\t\t// Return the hierarchical (tree) hierarchy\n\t\treturn self::$hierarchy;\n\t}", "function getDirectorHierarchy($director_id = TOP_DIRECTOR_ID)\t// March 17, 2008: 151 (Mike Woodard)\t\n {\n\t $sql = 'select distinct ';\n\t \n\t // Initialize column filters\n\t for ($lvl = 1; $lvl <= MAX_DIRECTOR_LEVELS; $lvl++)\n\t {\n\t\t $sql .= 'table'.$lvl.'.director_id as dir_lvl'.$lvl.',';\n\t\t $sql .= 'table'.$lvl.'.staff_id as staff_lvl'.$lvl.',';\n\t }\n\t $sql = substr($sql,0,-1);\t// remove comma\n\t $init_val = 1;\n\t $sql .= ' from '.RowManager_StaffDirectorManager::DB_TABLE.' as table'.$init_val;\n\t \n\t\t // Setup join portion of the SQL query \n\t for ($level = 2; $level <= MAX_DIRECTOR_LEVELS; $level++)\n\t {\t \n\t\t $sql .= ' LEFT JOIN '.RowManager_StaffDirectorManager::DB_TABLE.' as table'.$level;\n\t\t $sql .= ' on table'.$level.'.director_id = table'.(--$level).'.staff_id';\n\t\t $level++;\n\t }\n\t \n\t $sql .= ' where table'.$init_val.'.director_id = '.$director_id;\t \n\t\t\t\n// \t echo 'hier. = <br>'.$sql.'<BR><BR>';\n\t \n // create a new DB object\n $db = new Database_Site();\n $databaseName = $this->dbName;\n if ( $databaseName == '' )\n {\n $databaseName = SITE_DB_NAME;\n }\n $db->connectToDB( $databaseName, $this->dbPath, $this->dbUser, $this->dbPword );\n \n// echo \"<BR>sql = \".$sql;\n \n // run the sql\n $db->runSQL( $sql );\n \n // create a new ReadOnlyResultSet using current db object\n $recordSet = new ReadOnlyResultSet( $db );\n \n // return this record set\n return $recordSet;\t\t\t\n }", "public function create( &$object );", "abstract function create();", "protected function _getTree(){\n\t\tif (!$this->_tree) {\n\t\t\t$this->_tree = Mage::getResourceModel('megamenu2/menuitem_tree')->load();\n\t\t}\n\t\treturn $this->_tree;\n\t}", "public function create()\n\t {\n\t //\n\t }", "function get_categories_tree()\n\t\t{\n\t\t\t$where = '';\n\t\t\t$is_accessory = FSInput::get('is_accessory',0,'int');\n\t\t\tif($is_accessory){\n\t\t\t\t$where .= ' AND is_accessories = 0 ';\n\t\t\t} else {\n\t\t\t\t$where .= ' AND is_accessories = 1 ';\n\t\t\t}\n\t\t\t\n\t\t\tglobal $db ;\n\t\t\t$sql = \" SELECT id, name, parent_id AS parentid \n\t\t\t\tFROM fs_products_categories \n\t\t\t\tWHERE 1 = 1\n\t\t\t\t\".$where;\n\t\t\t// $db->query($sql);\n\t\t\t$categories = $db->getObjectList($sql);\n\t\t\t\n\t\t\t$tree = FSFactory::getClass('tree','tree/');\n\t\t\t$rs = $tree -> indentRows($categories,1); \n\t\t\treturn $rs;\n\t\t}", "function BuildProperty($PropNode)\n {\n $objProp = new clsProperty();\n\n foreach ($PropNode->children() as $PropChild)\n {\n switch ($PropChild->getName())\n {\n case \"ID\":\n $objProp->ID = $PropChild;\n break;\n case \"Name\":\n $objProp->Name = $PropChild;\n break;\n case \"Address\":\n $objProp->Address = $PropChild;\n break;\n case \"City\":\n $objProp->City = $PropChild;\n break;\n case \"State\":\n $objProp->State = $PropChild;\n break;\n case \"Zip\":\n $objProp->Zip = $PropChild;\n break;\n case \"Phone\":\n $objProp->Phone = $PropChild;\n break;\n case \"Email\" :\n $objProp->Email = $PropChild;\n break;\n case \"Maint\":\n $objProp->Maint = $PropChild;\n break;\n case \"WebSite\":\n $objProp->WebSite = $PropChild;\n break;\n case \"Desc\" :\n $objProp->Desc = $PropChild;\n break;\n case \"Amenities\":\n $objProp->Amenities = explode(\"--\",$PropChild);\n break;\n case \"Highlights\" :\n $objProp->Highlights = $PropChild;\n break;\n case \"Coupon\" :\n $objProp->Coupon = $PropChild;\n break;\n case \"Vtour\" :\n $objProp->Vtour = $PropChild;\n break;\n case \"MainPic\" :\n $objProp->MainPic = $PropChild;\n break;\n case \"SubPic1\" :\n case \"SubPic2\" :\n case \"SubPic3\" :\n case \"SubPic4\" :\n case \"SubPic5\" :\n array_push($objProp->SubPics, $PropChild) ;\n break;\n case \"OneBedLowPrices\" :\n case \"TwoBedLowPrices\" :\n case \"ThreeBedLowPrices\" :\n case \"FourBedLowPrices\" :\n\n array_push($objProp->BedLowPrices,$PropChild) ;\n // or die(\" Error Creating BedLowPrices object \");\n break;\n\n case \"UnitTypes\" :\n\n $objProp->Units = $this->BuildUnit($objProp->Units,$PropChild);\n // die(\" Error Creating Unit object \") ;\n\n break;\n case \"ReportRoster\" :\n \n\n $objProp->Reports = $this->BuildReport($objProp->Reports,$PropChild) ;\n // or die (\" Error Creating Report object \") ;\n break;\n }\n\n }\n\n return $objProp;\n\n\n }", "static function tree($params = false)\n {\n $params = parse_params($params);\n @extract($params);\n\n if (!isset($dir_name)) {\n return 'Error: You must set $dir_name for the function ' . __FUNCTION__;\n }\n if (!empty($params)) {\n ksort($params);\n }\n\n $function_cache_id = __FUNCTION__ . crc32(serialize($params));\n $cache_content = false;\n //$cache_content = $this->app->cache->get($function_cache_id, 'content/static');\n\n if (($cache_content) != false) {\n\n $tree = $cache_content;\n } else {\n\n //$this->app->cache->save($tree, $function_cache_id, $cache_group = 'content/static');\n }\n if (!isset($url)) {\n $url = $this->app->url->current(true, true);\n }\n $params['url'] = $url;\n $params['url_param'] = 'page';\n\n\n mw('Microweber\\Utils\\Files')->dir_tree($dir_name, $params);\n\n\n }", "public function __construct(){\n\t\t\t\t$this->listeObjets = [];\n\n\t\t\t\t//Récupérer le nom de l'objet à partir du nom du manager. Utile pour cibler la bonne table.\n\t\t\t\t$this->nomObjet = stripslashes(get_class($this));\n\t\t\t\t$this->nomObjet = str_replace(\"manager\", \"\", $this->nomObjet);\n\t\t\t\t$this->nomObjet = str_replace(\"Manager\", \"\", $this->nomObjet);\n\n\t\t\t\t//Si la connexion n'existe pas à l'instanciation du premier manager, la créer.\n\t\t\t\tif(self::$bdd == NULL){\n\t\t\t\t\tself::$bdd = self::creerConnexion(\"evalAssociation\");\n\t\t\t\t}\n\t\t\t}", "public function create(){\r\n\treturn new $this->class();\r\n }", "public function initRecursion()\n {\n $this->recursiveObjects[0] = $this;\n\n $this->recursiveObjects[1] = new $this();\n $this->recursiveObjects[1]->recursiveObjects[0] = $this;\n\n $this->recursiveObjects[2] = $this->recursiveObjects[1];\n }", "public function create() {\n\t \n }", "function __construct(){\n\t\t$this->FieldNames = array( // ����� ����� �������\n\t\t'left' => 'cleft',\n\t\t'right'=> 'cright',\n\t\t'level'=> 'clevel',\n\t\t'title'=> 'title',\n\t\t);\n\t\t$this->IndexTitle = 'node_id';\n\t\t$this->TreeTable = 'content_tree';\n\n\t\t/*$Tree = new CDBTreeExt($AltDb,'catalog_categories','cid',$field_names);\n\t\t$this->Tree = $Tree;*/\n\t\tparent::__construct();\n\n\t\t$this->setParams('short_description');\n\n\n\n\t}", "public function calc_tree()\n\t{\n\t\t$this->readTree(TRUE);\t\t\t// Make sure we have accurate data\n\t\tforeach ($this->class_parents as $cp)\n\t\t{\n\t\t\t$rights = array();\n\t\t\t$this->rebuild_tree($cp,$rights);\t\t// increasing rights going down the tree\n\t\t}\n\t}", "public function manager();", "function ext_tree($parent_id, $con, $lev, $info) {\n\n // rows selection from TBSM tables\n $sel = \"SELECT SERVICEINSTANCEID, SERVICEINSTANCENAME, DISPLAYNAME, SERVICESLANAME, TIMEWINDOWNAME\n\t\t\t\tFROM TBSMBASE.SERVICEINSTANCE, TBSMBASE.SERVICEINSTANCERELATIONSHIP\n\t\t\t\tWHERE PARENTINSTANCEKEY = '$parent_id' AND SERVICEINSTANCEID = CHILDINSTANCEKEY\";\n $stmt = db2_prepare($con, $sel);\n $result = db2_execute($stmt);\n\n $values = 0;\n while ($row = db2_fetch_assoc($stmt)) {\n $values++;\n $info[$lev] = array (\n 'level' => $lev,\n 'endpoint' => false,\n 'id' => $row['SERVICEINSTANCEID'],\n 'service' => $row['SERVICEINSTANCENAME'],\n 'display' => $row['DISPLAYNAME'],\n 'template' => $row['SERVICESLANAME'],\n 'maintenance' => $row['TIMEWINDOWNAME'],\n );\n // unique value\n if (!in_array($row['SERVICEINSTANCEID'], array_column($GLOBALS['results'], 'id')))\n $GLOBALS['results'][] = $info[count($info)-1];\n\n // recursive function call\n ext_tree($row['SERVICEINSTANCEID'], $con, $lev+1, $info);\n }\n\n return ($values > 0);\n}", "private function createTree() {\n\t\t$html = $this->getSpec();\n\t\t$html .= '<div class=\"tal_clear\"></div>';\n\t\t$html .= $this->getSkills();\n\n\t\treturn $html;\n\t}", "public function get_create(array $args)\n { \n $node = $this->request->get_node();\n if ($node instanceof midgardmvc_core_providers_hierarchy_node_midgard2)\n {\n // If we have a Midgard node we can assign that as a \"default parent\"\n $this->data['parent'] = $node->get_object();\n }\n\n // Prepare the new object that form will eventually create\n $this->prepare_new_object($args);\n $this->data['object'] =& $this->object;\n\n if (isset($this->data['parent']))\n {\n midgardmvc_core::get_instance()->authorization->require_do('midgard:create', $this->data['parent']);\n }\n\n $this->load_form();\n $this->data['form'] =& $this->form;\n }", "private function generateTree ( &$tree, $parentId = null ) {\r\n\t\tif ( !isset ( $parentId ) ) $parentId = 0;\r\n\t\t$param = array(\r\n\t\t\t'conditions' => array('parent_id' => $parentId, 'is_node' => 1),\r\n\t\t\t'fields' => array('id','lorder','rorder','CategoryDetail.name','CategoryDetail.icon_name'),\r\n\t\t\t'order' => array('CategoryDetail.name')\r\n\t\t );\r\n\t\t$arrRes = $this->Category->find('all', $param);\r\n\t\t\r\n\t\t$isFirst = false;\r\n\t\tif (!isset($tree) || empty($tree)) {\r\n\t\t\t$isFirst = true; \r\n\t\t\t$tree .= \"<ul class='menubar'>\";\r\n\t\t} else {\r\n\t\t\t$tree .= \"<ul><li class='li_top'></li>\";\r\n\t\t}\r\n\r\n \tforeach ( $arrRes as $key=>$node ) {\r\n \t\t$tree .= \"<li class='li_node \" . ($key == 0 ? 'first' : '') . \"' onmouseover='mover(this);' onmouseout='mout(this);'>\" .\r\n \t\t\t\t\t \"<a href='\" . SITE_URL . \"/category/\".$node['Category']['id'].\"' class='\" . \r\n \t\t\t\t\t $node['CategoryDetail']['icon_name'] . \"'>\".\r\n \t\t $node['CategoryDetail']['name'].\"</a>\";\r\n \t\tif ( $node['Category']['rorder'] - $node['Category']['lorder'] == 1 ) $tree .= \"</li>\";\r\n \t\telse {\r\n \t\t$this->generateTree ( $tree, $node['Category']['id'] );\r\n \t\t$tree .= \"</li>\";\r\n \t\t}\r\n \t}\r\n \tif (!$isFirst) $tree .= \"<li class='li_bottom'></li>\";\r\n \t\t$tree .= \"</ul>\";\r\n\t}", "protected function _getTree($create = false) {}", "public function actionCreate()\n {\n $model = new Menu();\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['index']);\n } else {\n $cat=new MenuTree('',array('id','parent_id','name','fullname'));\n\n print_r($cat);\n $_list=$cat->getTree(Menu::get_menus(true));//获取分类结构\n $list = array('0'=>'顶级菜单');\n foreach($_list as $value){\n $list[$value['id']] = $value['fullname'];\n }\n $model->order=0;\n return $this->render('create', [\n 'model' => $model,\n 'list' => $list\n ]);\n }\n }", "function buildMenuHierarchy(): array\n{\n $menu = queryDB(\n \"SELECT * FROM pages WHERE parent_page_id IS NULL AND published = 1 ORDER BY menu_priority ASC\"\n )->fetchAll();\n\n foreach ($menu as $i => $parentPage) {\n $menu[$i][\"children\"] = queryDB(\n \"SELECT * FROM pages WHERE parent_page_id = ? AND published = 1 ORDER BY menu_priority ASC\",\n $parentPage['id']\n )->fetchAll();\n }\n\n return $menu;\n}", "function folderTree($args)\n {\n if(!array_key_exists('id', $args))\n {\n throw new Exception('Parameter id is not defined', MIDAS_INVALID_PARAMETER);\n }\n\n $id = $args['id'];\n $folder = $this->Folder->load($id);\n\n $userDao = $this->_getUser($args);\n $folders = $this->Folder->getAllChildren($folder, $userDao);\n\n $tree = array();\n $folderTree = array();\n\n foreach($folders as $folder)\n {\n $mainnode = $folder->toArray();\n\n if($folder->getParentId() != -1)\n {\n if(isset($folderTree[$folder->getParentId()]))\n {\n $mainnode['depth'] = $folderTree[$folder->getParentId()]['depth'] + 1;\n }\n else\n {\n $mainnode['depth'] = 1;\n }\n }\n // Cut the name to fit in the tree\n $maxsize = 24 - ($mainnode['depth'] * 2.5);\n if(strlen($mainnode['name']) > $maxsize)\n {\n $mainnode['name'] = substr($mainnode['name'], 0, $maxsize).'...';\n }\n $folderTree[$folder->getKey()] = $mainnode;\n if($folder->getParentId() == -1)\n {\n $tree[] = &$folderTree[$folder->getKey()];\n }\n else\n {\n $tree[$folder->getParentId()][] = &$folderTree[$folder->getKey()];\n }\n }\n return $tree;\n }", "function retrieveHierarchy() {\r\n\t\t$arrCats = $this->generateTreeByLevels(3);\r\n\t\t\r\n\t\treturn $arrCats;\r\n\t}", "abstract function &create();", "public function initializeTreeData() {}", "public function initializeTreeData() {}", "function create(){\n //\n //create the insert \n $insert = new insert($this);\n //\n //Execute the the insert\n $insert->query($this->entity->get_parent());\n }", "private function setTreeOutput(){\n \n $item = $this->item;\n \n $treeoutput = NULL;\n $menuname = NULL;\n $parameters = NULL;\n \n $menutree = \\Drupal::menuTree();\n \n if($item->menu_name == 'active-menu'){\n \n $menuname = $this->getCurrentMenuName();\n \n if($menuname)\n $parameters = $menutree->getCurrentRouteMenuTreeParameters($menuname);\n \n }else{\n $parameters = new MenuTreeParameters();\n $parameters->root = $item->menu_plid;\n $menuname = $item->menu_name;\n }\n \n \n if($parameters && $menuname){\n \n $parameters->setMaxDepth($item->menu_level);\n\n $tree = $menutree->load($menuname, $parameters);\n $treeoutput = $menutree->build($tree);\n \n }\n \n $this->treeoutput = $treeoutput;\n }", "private function build_tree()\n\t\t{\n\t\t\t$this->html_result .= '<ul class=\"'.$this->style.'_ul_first\" onkeydown=\"return input_main_key(event,\\''.$this->internal_id.'\\')\">';\n\n\t\t\t//==================================================================\n\t\t\t// Always first this row in tree ( edit mode only )\n\t\t\t//==================================================================\n\t\t\tif ($this->edit_mode)\n\t\t\t{\n\t\t\t\t$this->html_result .= '<div class=\"'.$this->style.'_interow\" id=\"'.$this->internal_id.'INT_0\" OnClick=\"add_new_node(\\''.$this->internal_id.'\\',0)\"></div>';\n\t\t\t}\n\t\t\t//==================================================================\n\t\t\t\n\t\t\t$this->scan_level(0,$this->get_any_child(1));\n\n\t\t\t$this->html_result .= '<ul class=\"'.$this->style.'_ul\">';\n\t\t}", "protected function CreateObjects() {\n\t\t$this->lblId = $this->mctAddress->lblId_Create();\n\t\t$this->lstPerson = $this->mctAddress->lstPerson_Create();\n\t\t$this->txtStreet = $this->mctAddress->txtStreet_Create();\n\t\t$this->txtCity = $this->mctAddress->txtCity_Create();\n\t}", "protected static function buildTreeView($div_id, $isAlive = true)\n {\n $tree = new Tree($div_id);\n $nodes = array();\n if($isAlive)\n \t$nodes = PackageManager::getCategories('');\n\n foreach($nodes as $arr_node){\n $node = new Node($arr_node['id'], $arr_node['label']);\n $node->dynamicloadfunction = 'PackageManager.loadDataForNodeForPackage';\n $node->expanded = false;\n $node->dynamic_load = true;\n $node->set_property('href',\"javascript:PackageManager.catClick('treeview');\");\n $tree->add_node($node);\n $node->set_property('description', $arr_node['description']);\n }\n return $tree;\n }", "protected function createModel()\n {\n return new LeafModel();\n }", "public function create()\n\t{\n\n\n\t\t//\n\t}", "function get_page_hierarchy(&$pages, $page_id = 0)\n {\n }", "private function createCreatureFront()\n {\n\n }", "function display_node($parent, $level) {\n global $tam1;\n $tam2=array();\n global $leafnodes; \n global $responce;\n if($parent >0) {\n foreach ($tam1 as $row){\n\t if($row['ID_Parent']==$parent){\n\t\t $tam2[]=$row;\n\t }\n }\n } else {\n \n\t foreach ($tam1 as $row){\n\t if($row['ID_Parent']==''){\n\t\t $tam2[]=$row;\n\t }\n }\n }\n\n foreach ($tam2 as $row) {\n\tif(!$row['ID_Parent']) $valp = 'NULL'; else $valp = $row['ID_Parent'];\t\n\t//kiem tra node co phai lead\n\tif(array_key_exists($row['ID_Control'], $leafnodes)) $leaf='true'; else $leaf = 'false';\t\n\t$responce[] = array('ID_Control' => $row[\"ID_Control\"], 'ID_Parent' => $row[\"ID_Parent\"], 'Caption' => $row[\"Caption\"],'KieuControl' => $row[\"KieuControl\"],'IsBarButton' => $row[\"IsBarButton\"] ,'Icon' =>$row[\"Icon\"],'Active' =>$row[\"Active\"],'STT' =>$row[\"STT\"],'PageOpen' =>$row[\"PageOpen\"],'OpenType' =>$row[\"OpenType\"],'TenControl' =>$row[\"TenControl\"] , 'level' => $level, 'parent' => $valp, 'isLeaf' => $leaf, 'expanded' => \"true\", 'loaded' => \"true\");\n\t\n\t display_node($row['ID_Control'],$level+1);\n\t \n\t} \n \n return $responce;\n \n}", "public function getTree($name, $create = false) {}", "function create_topics_hierarchical_taxonomy() {\n\n// Add new taxonomy, make it hierarchical like categories\n//first do the translations part for GUI\n\n $labels = array(\n 'name' => _x( 'Departments', 'taxonomy general name' ),\n 'singular_name' => _x( 'Department', 'taxonomy singular name' ),\n 'search_items' => __( 'Search Departments' ),\n 'all_items' => __( 'All Departments' ),\n 'parent_item' => __( 'Parent Departments' ),\n 'parent_item_colon' => __( 'Parent Department:' ),\n 'edit_item' => __( 'Edit Department' ),\n 'update_item' => __( 'Update Department' ),\n 'add_new_item' => __( 'Add New Department' ),\n 'new_item_name' => __( 'New Topic Department' ),\n 'menu_name' => __( 'Departments' ),\n );\n\n// Now register the taxonomy\n\n register_taxonomy('departments',\n array('team'),\n array(\n 'hierarchical' => true,\n 'labels' => $labels,\n 'show_ui' => true,\n 'show_admin_column' => true,\n 'query_var' => true,\n 'rewrite' => array( 'slug' => 'department' ),\n ));\n\n}", "protected function addTreePathModelObject(): AbstractTreePath\n {\n return Yii::createObject($this->treePathModelClass);\n }", "function Create()\r\n\t{\r\n\r\n\t}", "function objCreateType($dbh, $name, $title, $appid = null)\r\n{\r\n\t$otid = 0;\r\n\r\n\t// Prepend with 'co' (custom object) to prevent system object name collision\r\n\t$obj_name = \"co_\".$name;\r\n\r\n\t// Test to make sure object name does not already exist\r\n\tif ($dbh->GetNumberRows($dbh->Query(\"select id from app_object_types where name='$obj_name'\")))\r\n\t\treturn $otid; // fail\r\n\r\n\t$def = new \\Netric\\EntityDefinition($obj_name);\r\n\t$def->title = $title;\r\n\t$def->applicationId = $appid;\r\n\t$def->system = false;\r\n\r\n\t// Save the new object type\r\n $sl = ServiceLocatorLoader::getInstance($dbh)->getServiceLocator();\r\n\t$dm = $sl->get(\"EntityDefinition_DataMapper\");\r\n\t$dm->save($def);\r\n\r\n\t/*\r\n\t// Create new object table and insert into app_object_types\r\n\t$dbh->Query(\"CREATE TABLE objtbl_\".$obj_name.\" (id serial, CONSTRAINT objtbl_\".$obj_name.\"s_pkey PRIMARY KEY (id));\");\r\n\t$results = $dbh->Query(\"insert into app_object_types(name, title, object_table, application_id) \r\n\t\t\t\t\t\t\t values('\".$obj_name.\"', '$title', 'objtbl_\".$obj_name.\"', \".$dbh->EscapeNumber($appid).\");\r\n\t\t\t\t\t\t\t select currval('app_object_types_id_seq') as id;\");\r\n\tif ($dbh->GetNumberRows($results))\r\n\t{\r\n\t\t$otid = $dbh->GetValue($results, 0, \"id\");\r\n\r\n\t\tif ($otid)\r\n\t\t{\r\n\t\t\t// Make sure default feilds are in place\r\n\t\t\t$odef = new CAntObject($dbh, $obj_name);\r\n\t\t\t$odef->fields->verifyDefaultFields();\r\n\r\n\t\t\t// Associate object with application\r\n\t\t\tif ($appid)\r\n\t\t\t\tobjAssocTypeWithApp($dbh, $otid, $appid);\r\n\r\n\t\t\t// Create associations partition\r\n\t\t\t$tblName = \"object_assoc_$otid\";\r\n\t\t}\r\n\t}\r\n\t*/\r\n\r\n\treturn $otid;\r\n}", "function build_tree($pages){\n\t\tforeach ($pages as $page){\n\t\t\t$this->add_node($page);\n\t\t}\n\t\t$this->add_children();\n\t\n\t}", "public function create()\n {\n throw new NotImplementedException();\n }", "function __construct($_name = \"\", $_lastname = \"\", $_level = 1) {\n parent::__construct($_name, $_lastname);\n $this->level = $_level;\n\n }", "function createModule() \n {\n // load Module manager\n $moduleID = $this->values[ ModuleCreator::KEY_MODULE_ID ];\n $moduleManager = new RowManager_ModuleManager( $moduleID );\n \n $this->storeCommonVariables( $moduleManager );\n \n \n // if Module manager is not created then\n if (!$moduleManager->isCreated()) {\n \n // create Module Directory\n $directoryName = '';\n if ( !$moduleManager->isCore() ) {\n $directoryName = 'app_';\n }\n $directoryName .= $moduleManager->getModuleName();\n $this->createDirectory( $directoryName );\n \n // Create Base Files\n $this->createBaseFiles( $moduleManager );\n \n // update created status\n $moduleManager->setCreated();\n \n } else {\n \n // make sure variable info is updated\n \n }// end if\n \n \n // process StateVar info\n $this->processStateVarInfo( $moduleID );\n \n // process Data Access Object info\n $this->processDataAccessObjectInfo( $moduleID );\n \n // process Page Object info\n $this->processPageInfo( $moduleID );\n \n // process Page Transitions (form) info\n $this->processTransition( $moduleID );\n \n \n }", "function create();", "function get_menu_tree($parent_id) \n\t\t{\n\t\t\tinclude_once('connection.php');\n \t$obj=new connection();\n \t$obj->connect();\n\t\t\t$menu='';\n\t\t\t$obj->sql=\"SELECT * FROM register where referral_code='\".$parent_id.\"'\";\n\t\t\t$obj->select($obj->sql);\n\t\t\t//$no1=mysqli_num_rows($obj->res);\n\t\t\twhile($rows1=mysqli_fetch_array($obj->res))\n\t\t\t{\n\t\t\t\t//$rows1=mysqli_fetch_array($obj->res);\n\t\t\t\t$menu.=\"<li>\". $rows1['name'];\n\t\t\t\t$menu.=\"<ul>\".get_menu_tree($rows1['rid']).\"</ul>\";\n\t\t\t\t$menu.=\"</li>\";\n\t\t\t}\n\t\t\treturn $menu;\n\t\t}", "public function create()\n\t{\n\t\t\n\t}", "public function create()\n\t{\n\t\t\n\t}", "public function create()\n\t{\n\t\t\n\t}", "public function create()\n\t{\n\t\t\n\t}", "public function create()\n\t{\n\t\t\n\t}", "public function create()\n\t{\n\t\t\n\t}", "public function create()\n\t{\n\t\t\n\t}", "public function create()\n\t{\n\t\t\n\t}", "private static function _createObjects($rootPath, $params = [])\n\t{\n\t\t$dir = new \\RecursiveIteratorIterator(\n\t\t\tnew \\RecursiveDirectoryIterator($rootPath . '/Object/')\n\t\t);\n\n\t\tforeach ($dir as $path => $fileInfo) {\n\t\t\tif ($fileInfo->isFile()) {\n\t\t\t\t$path = explode('/', $fileInfo->getPath());\n\t\t\t\t$parentDir = $path[sizeof($path) - 1];\n\n\t\t\t\t$className = str_replace('.php', '', $fileInfo->getFilename());\n\t\t\t\tif ($parentDir != 'Object') {\n\t\t\t\t\t$className = $parentDir . '_' . $className;\n\t\t\t\t}\n\n\t\t\t\t$className = Orm::detectClass($className);\n\n\t\t\t\t$schema = new Schema(new $className());\n\n\t\t\t\t$dropTable = isset($params['dropTable']) ? true : false;\n\t\t\t\t$schema->create($dropTable);\n\t\t\t}\n\t\t}\n\t}", "function &setupMemory( $type , $dsn='' , $options=array() )\n# if anyone knows a better name it would be great to change it, since \"setupMemory\" kind of reflects it\n# but i think it's not obvious if you dont know what is meant\n {\n require_once('Tree/Memory.php');\n\n return new Tree_Memory( $type , $dsn , $options );\n }", "function getCategoryHierarchyAsArray()\n{\n return array\n (\n array\n (\n 'idString' => '1' ,\n 'idParentString' => null ,\n 'name' => 'Approved',\n 'children' => array\n (\n array\n (\n 'idString' => '1-1' ,\n 'idParentString' => '1' ,\n 'name' => 'Cons',\n 'children' => array\n (\n array('idString' => '1-1-1', 'idParentString' => '1-1', 'name' => 'ConsultingA', 'children' => array()),\n array('idString' => '1-1-2', 'idParentString' => '1-1', 'name' => 'ConsultingB', 'children' => array()),\n array('idString' => '1-1-3', 'idParentString' => '1-1', 'name' => 'Management ', 'children' => array()),\n array\n (\n 'idString' => '1-1-4' ,\n 'idParentString' => '1-1' ,\n 'name' => 'More Categories',\n 'children' => array\n (\n array('idString' => '1-1-4-1', 'idParentString' => '1-1-4', 'name' => 'Cat1', 'children' => array()),\n array('idString' => '1-1-4-2', 'idParentString' => '1-1-4', 'name' => 'Cat2', 'children' => array()),\n array\n (\n 'idString' => '1-1-4-3' ,\n 'idParentString' => '1-1-4' ,\n 'name' => 'Still more categories',\n 'children' => array\n (\n array\n (\n 'idString' => '1-1-4-3-1',\n 'idParentString' => '1-1-4-3' ,\n 'name' => 'CatA' ,\n 'children' => array()\n ),\n array\n (\n 'idString' => '1-1-4-3-2',\n 'idParentString' => '1-1-4-3' ,\n 'name' => 'CatB' ,\n 'children' => array()\n )\n )\n ),\n array\n (\n 'idString' => '1-1-4-4' ,\n 'idParentString' => '1-1-4' ,\n 'name' => 'Category 3',\n 'children' => array()\n )\n )\n )\n )\n ),\n array('idString' => '1-2', 'idParentString' => '1', 'name' => 'ConsultingA', 'children' => array()),\n array('idString' => '1-3', 'idParentString' => '1', 'name' => 'ConsultingB', 'children' => array())\n )\n ),\n array\n (\n 'idString' => '2' ,\n 'idParentString' => null ,\n 'name' => 'Not Approved',\n 'children' => array\n (\n array\n (\n 'idString' => '2-1' ,\n 'idParentString' => '2' ,\n 'name' => 'Consulting - 1',\n 'children' => array()\n ),\n array\n (\n 'idString' => '2-2' ,\n 'idParentString' => '2' ,\n 'name' => 'Consulting - 2',\n 'children' => array()\n ),\n array\n (\n 'idString' => '2-3' ,\n 'idParentString' => '2' ,\n 'name' => 'Consulting - 3',\n 'children' => array()\n )\n )\n )\n );\n}", "function _construct() {\n \t\n\t\t\n\t}", "public function create()\n\t{ \n \n\t}", "static function create(): self;", "public function createTree($name, array $opts = array())\n {\n global $injector, $registry;\n\n $opts = array_merge(array(\n 'parent' => null,\n 'render_params' => array(),\n 'render_type' => 'Javascript'\n ), $opts);\n\n $this->_unseen = 0;\n $view = $registry->getView();\n\n if ($name instanceof Horde_Tree_Renderer_Base) {\n $tree = $name;\n $parent = $opts['parent'];\n } else {\n $tree = $injector->getInstance('Horde_Core_Factory_Tree')->create($name, $opts['render_type'], array_merge(array(\n 'alternate' => true,\n 'lines' => true,\n 'lines_base' => true,\n 'nosession' => true\n ), $opts['render_params']));\n $parent = null;\n }\n\n foreach ($this as $val) {\n $after = '';\n $elt = $this->getElement($val);\n $params = array();\n\n switch ($opts['render_type']) {\n case 'IMP_Tree_Flist':\n if ($val->vfolder_container) {\n continue 2;\n }\n\n $is_open = true;\n $label = $params['orig_label'] = empty($opts['basename'])\n ? $val->abbrev_label\n : $val->basename;\n break;\n\n case 'IMP_Tree_Jquerymobile':\n $is_open = true;\n $label = $val->display_html;\n $icon = $val->icon;\n $params['icon'] = $icon->icon;\n $params['special'] = $val->inbox || $val->special;\n $params['class'] = 'imp-folder';\n $params['urlattributes'] = array(\n 'id' => 'imp-mailbox-' . $val->form_to\n );\n\n /* Force to flat tree so that non-polled parents don't cause\n * polled children to be skipped by renderer (see Bug\n * #11238). */\n $elt['c'] = 0;\n break;\n\n case 'IMP_Tree_Simplehtml':\n $is_open = $this->isOpen($val);\n if ($tree->shouldToggle($val->form_to)) {\n if ($is_open) {\n $this->collapse($val);\n } else {\n $this->expand($val);\n }\n $is_open = !$is_open;\n }\n $label = htmlspecialchars(Horde_String::abbreviate($val->display, 30 - ($elt['c'] * 2)));\n break;\n\n case 'Javascript':\n $is_open = $this->isOpen($val);\n $label = empty($opts['basename'])\n ? htmlspecialchars($val->abbrev_label)\n : htmlspecialchars($val->basename);\n $icon = $val->icon;\n $params['icon'] = $icon->icon;\n $params['iconopen'] = $icon->iconopen;\n break;\n }\n\n if (!empty($opts['poll_info']) && $val->polled) {\n $poll_info = $val->poll_info;\n\n if ($poll_info->unseen) {\n switch ($opts['render_type']) {\n case 'IMP_Tree_Jquerymobile':\n $after = $poll_info->unseen;\n break;\n\n default:\n $this->_unseen += $poll_info->unseen;\n $label = '<strong>' . $label . '</strong>&nbsp;(' .\n $poll_info->unseen . ')';\n }\n }\n }\n\n if ($this->isContainer($val)) {\n $params['container'] = true;\n } else {\n switch ($view) {\n case $registry::VIEW_MINIMAL:\n $params['url'] = IMP_Minimal_Mailbox::url(array('mailbox' => $val));\n break;\n\n case $registry::VIEW_SMARTMOBILE:\n $url = new Horde_Core_Smartmobile_Url();\n $url->add('mbox', $val->form_to);\n $url->setAnchor('mailbox');\n $params['url'] = strval($url);\n break;\n\n default:\n $params['url'] = $val->url('mailbox')->setRaw(true);\n break;\n }\n\n if ($this->_showunsub && !$this->isSubscribed($val)) {\n $params['class'] = 'mboxunsub';\n }\n }\n\n $checkbox = empty($opts['checkbox'])\n ? ''\n : '<input type=\"checkbox\" class=\"checkbox\" name=\"mbox_list[]\" value=\"' . $val->form_to . '\"';\n\n if ($val->nonimap) {\n $checkbox .= ' disabled=\"disabled\"';\n }\n\n if ($val->vfolder &&\n !empty($opts['editvfolder']) &&\n $this->isContainer($val)) {\n $after = '&nbsp[' .\n $registry->getServiceLink('prefs', 'imp')->add('group', 'searches')->link(array('title' => _(\"Edit Virtual Folder\"))) . _(\"Edit\") . '</a>'.\n ']';\n }\n\n $tree->addNode(array(\n 'id' => $val->form_to,\n 'parent' => ($elt['c']) ? $val->parent->form_to : $parent,\n 'label' => $label,\n 'expanded' => isset($opts['open']) ? $opts['open'] : $is_open,\n 'params' => $params,\n 'right' => $after,\n 'left' => empty($opts['checkbox']) ? null : $checkbox . ' />'\n ));\n }\n\n return $tree;\n }", "private function createCategoryTree()\n {\n // create category\n CategoryUtil::createCategory('/__SYSTEM__/Modules', 'PostCalendar', null, $this->__('PostCalendar'), $this->__('Calendar for Zikula'));\n // create subcategory\n CategoryUtil::createCategory('/__SYSTEM__/Modules/PostCalendar', 'Events', null, $this->__('Events'), $this->__('Initial sub-category created on install'), array('color' => '#99ccff'));\n // get the category path to insert PostCalendar categories\n $rootcat = CategoryUtil::getCategoryByPath('/__SYSTEM__/Modules/PostCalendar');\n if ($rootcat) {\n // create an entry in the categories registry to the Main property\n if (!CategoryRegistryUtil::insertEntry('PostCalendar', 'CalendarEvent', 'Main', $rootcat['id'])) {\n throw new Zikula_Exception(\"Cannot insert Category Registry entry.\");\n }\n } else {\n $this->throwNotFound(\"Root category not found.\");\n }\n }", "function __construct($theClass=''){\n\t\t//self::$classAppelante = $theClass;\n\t\t//$this->_folder = ROOT_PATH.$this->_folder;\n\t}", "public function create()\r\r\n\t{\r\r\n\t\t//\r\r\n\t}", "function create_topics_hierarchical_taxonomy() {\n \n// Add new taxonomy, make it hierarchical like categories\n//first do the translations part for GUI\n \n $labels = array(\n 'name' => _x( 'Sectores', 'taxonomy general name' ),\n 'singular_name' => _x( 'Sector', 'taxonomy singular name' ),\n 'search_items' => __( 'Buscar Sectores' ),\n 'all_items' => __( 'Todos los Sectores' ),\n 'parent_item' => __( 'Sector Padre' ),\n 'parent_item_colon' => __( 'Sector Padre:' ),\n 'edit_item' => __( 'Editar Sector' ), \n 'update_item' => __( 'Actualizar Sector' ),\n 'add_new_item' => __( 'Añadir Nuevo Sector' ),\n 'new_item_name' => __( 'Nuevo Sector' ),\n 'menu_name' => __( 'Sectores' ),\n ); \n \n// Now register the taxonomy\n \n register_taxonomy('sectores', array('logos, proyecto, diapositiva'), array(\n 'hierarchical' => true,\n 'labels' => $labels,\n 'show_ui' => true,\n 'show_admin_column' => true,\n 'query_var' => true,\n 'rewrite' => array( 'slug' => 'sectores' ),\n ));\n \n}", "abstract public function prepare_new_object(array $args);", "public function create()\n\t{\n\t\t\n\t\t//\n\t}", "public function getTreeAdaptor();", "function create_sub_menu_1_18(){ \r\n // ------------------------------------------------------------------------- MAIN INITIALIZE\r\n $status_id = '1';\r\n $parent_id = '18';\r\n $tipe = '1';\r\n $urutan = 0;\r\n $deskripsi = 'Work Order';\r\n $has_sub = NULL;\r\n $ui = '1';\r\n $content = '4';\r\n $custom_css_js = '4';\r\n\r\n // ------------------------------------------------------------------------- SUB INITIALIZE DATA\r\n $dmha_id = $parent_id.count_sub_dmha($parent_id);\r\n $urutan ++;\r\n $nama = 'Data';\r\n $link = str_replace(' ', '_', $nama.' '.$deskripsi);\r\n $icon = '40';\r\n $css_js = '3';\r\n $tipe_data = '7';\r\n $form = NULL;\r\n $kategori = '1';\r\n\r\n // ------------------------------------------------------------------------- ACTION\r\n // delete dmha yang sama\r\n daftar_multi_hak_akses::double_dmha_checking($dmha_id);\r\n\r\n // insert dmha terbaru \r\n //full_insert($STATUS_ID,$DMHA_ID,$PARENT_ID,$TIPE,$URUTAN,$NAMA,$LINK,$DESKRIPSI,$HAS_SUB,$ICON,$CSS_JS,$UI,$TIPE_DATA,$FORM,$KATEGORI)\r\n daftar_multi_hak_akses::full_insert($status_id,$dmha_id,$parent_id,$tipe,$urutan,$nama,$link,$deskripsi,$has_sub,$icon,$css_js,$ui,$tipe_data,$form,$kategori,$content,$custom_css_js);\r\n\r\n // ------------------------------------------------------------------------- SUB INITIALIZE ADD\r\n $dmha_id = $parent_id.count_sub_dmha($parent_id);\r\n $urutan ++;\r\n $nama = 'Add';\r\n $link = str_replace(' ', '_', $nama.' '.$deskripsi);\r\n $icon = '75';\r\n $css_js = '4';\r\n $tipe_data = '1';\r\n $form = '1';\r\n $kategori = '1';\r\n $custom_css_js = '2';\r\n\r\n // ------------------------------------------------------------------------- ACTION\r\n // delete dmha yang sama\r\n daftar_multi_hak_akses::double_dmha_checking($dmha_id);\r\n\r\n // insert dmha terbaru \r\n //full_insert($STATUS_ID,$DMHA_ID,$PARENT_ID,$TIPE,$URUTAN,$NAMA,$LINK,$DESKRIPSI,$HAS_SUB,$ICON,$CSS_JS,$UI,$TIPE_DATA,$FORM,$KATEGORI)\r\n daftar_multi_hak_akses::full_insert($status_id,$dmha_id,$parent_id,$tipe,$urutan,$nama,$link,$deskripsi,$has_sub,$icon,$css_js,$ui,$tipe_data,$form,$kategori,$content,$custom_css_js);\r\n\r\n // ------------------------------------------------------------------------- SUB INITIALIZE EDIT\r\n $dmha_id = $parent_id.count_sub_dmha($parent_id);\r\n $urutan ++;\r\n $nama = 'Edit';\r\n $link = str_replace(' ', '_', $nama.' '.$deskripsi);\r\n $icon = '71';\r\n $css_js = '4';\r\n $tipe_data = '2';\r\n $form = '1';\r\n $kategori = '2';\r\n\r\n // ------------------------------------------------------------------------- ACTION\r\n // delete dmha yang sama\r\n daftar_multi_hak_akses::double_dmha_checking($dmha_id);\r\n\r\n // insert dmha terbaru \r\n //full_insert($STATUS_ID,$DMHA_ID,$PARENT_ID,$TIPE,$URUTAN,$NAMA,$LINK,$DESKRIPSI,$HAS_SUB,$ICON,$CSS_JS,$UI,$TIPE_DATA,$FORM,$KATEGORI)\r\n daftar_multi_hak_akses::full_insert($status_id,$dmha_id,$parent_id,$tipe,$urutan,$nama,$link,$deskripsi,$has_sub,$icon,$css_js,$ui,$tipe_data,$form,$kategori,$content,$custom_css_js);\r\n\r\n \r\n // ------------------------------------------------------------------------- SUB INITIALIZE COPY\r\n $dmha_id = $parent_id.count_sub_dmha($parent_id);\r\n $urutan ++;\r\n $nama = 'Set Status';\r\n $link = str_replace(' ', '_', $nama.' '.$deskripsi);\r\n $icon = '91';\r\n $css_js = '4';\r\n $tipe_data = '3';\r\n $form = '1';\r\n $kategori = '2';\r\n\r\n // ------------------------------------------------------------------------- ACTION\r\n // delete dmha yang sama\r\n daftar_multi_hak_akses::double_dmha_checking($dmha_id);\r\n\r\n // insert dmha terbaru \r\n //full_insert($STATUS_ID,$DMHA_ID,$PARENT_ID,$TIPE,$URUTAN,$NAMA,$LINK,$DESKRIPSI,$HAS_SUB,$ICON,$CSS_JS,$UI,$TIPE_DATA,$FORM,$KATEGORI)\r\n daftar_multi_hak_akses::full_insert($status_id,$dmha_id,$parent_id,$tipe,$urutan,$nama,$link,$deskripsi,$has_sub,$icon,$css_js,$ui,$tipe_data,$form,$kategori,$content,$custom_css_js);\r\n\r\n // ------------------------------------------------------------------------- SUB INITIALIZE\r\n $dmha_id = $parent_id.count_sub_dmha($parent_id);\r\n $urutan ++;\r\n $nama = 'Assign Associated Worker';\r\n $link = str_replace(' ', '_', $nama.' '.$deskripsi);\r\n $icon = '92';\r\n $css_js = '4';\r\n $tipe_data = '2';\r\n $form = '1';\r\n $kategori = '2';\r\n\r\n // ------------------------------------------------------------------------- ACTION\r\n // delete dmha yang sama\r\n daftar_multi_hak_akses::double_dmha_checking($dmha_id);\r\n\r\n // insert dmha terbaru \r\n //full_insert($STATUS_ID,$DMHA_ID,$PARENT_ID,$TIPE,$URUTAN,$NAMA,$LINK,$DESKRIPSI,$HAS_SUB,$ICON,$CSS_JS,$UI,$TIPE_DATA,$FORM,$KATEGORI)\r\n daftar_multi_hak_akses::full_insert($status_id,$dmha_id,$parent_id,$tipe,$urutan,$nama,$link,$deskripsi,$has_sub,$icon,$css_js,$ui,$tipe_data,$form,$kategori,$content,$custom_css_js);\r\n\r\n // ------------------------------------------------------------------------- SUB INITIALIZE\r\n $dmha_id = $parent_id.count_sub_dmha($parent_id);\r\n $urutan ++;\r\n $nama = 'Report';\r\n $link = str_replace(' ', '_', $nama.' '.$deskripsi);\r\n $icon = '92';\r\n $css_js = '4';\r\n $tipe_data = '2';\r\n $form = '1';\r\n $kategori = '2';\r\n\r\n // ------------------------------------------------------------------------- ACTION\r\n // delete dmha yang sama\r\n daftar_multi_hak_akses::double_dmha_checking($dmha_id);\r\n\r\n // insert dmha terbaru \r\n //full_insert($STATUS_ID,$DMHA_ID,$PARENT_ID,$TIPE,$URUTAN,$NAMA,$LINK,$DESKRIPSI,$HAS_SUB,$ICON,$CSS_JS,$UI,$TIPE_DATA,$FORM,$KATEGORI)\r\n daftar_multi_hak_akses::full_insert($status_id,$dmha_id,$parent_id,$tipe,$urutan,$nama,$link,$deskripsi,$has_sub,$icon,$css_js,$ui,$tipe_data,$form,$kategori,$content,$custom_css_js);\r\n\r\n // ------------------------------------------------------------------------- SUB INITIALIZE \r\n $dmha_id = $parent_id.count_sub_dmha($parent_id);\r\n $urutan ++;\r\n $nama = 'Assignment';\r\n $link = str_replace(' ', '_', $nama.' '.$deskripsi);\r\n $icon = '92';\r\n $css_js = '4';\r\n $tipe_data = '2';\r\n $form = '1';\r\n $kategori = '2';\r\n\r\n // ------------------------------------------------------------------------- ACTION\r\n // delete dmha yang sama\r\n daftar_multi_hak_akses::double_dmha_checking($dmha_id);\r\n\r\n // insert dmha terbaru \r\n //full_insert($STATUS_ID,$DMHA_ID,$PARENT_ID,$TIPE,$URUTAN,$NAMA,$LINK,$DESKRIPSI,$HAS_SUB,$ICON,$CSS_JS,$UI,$TIPE_DATA,$FORM,$KATEGORI)\r\n daftar_multi_hak_akses::full_insert($status_id,$dmha_id,$parent_id,$tipe,$urutan,$nama,$link,$deskripsi,$has_sub,$icon,$css_js,$ui,$tipe_data,$form,$kategori,$content,$custom_css_js);\r\n\r\n // ------------------------------------------------------------------------- SUB INITIALIZE\r\n $dmha_id = $parent_id.count_sub_dmha($parent_id);\r\n $urutan ++;\r\n $nama = 'My Assignment';\r\n $link = str_replace(' ', '_', $nama.' '.$deskripsi);\r\n $icon = '92';\r\n $css_js = '4';\r\n $tipe_data = '2';\r\n $form = '1';\r\n $kategori = '2';\r\n\r\n // ------------------------------------------------------------------------- ACTION\r\n // delete dmha yang sama\r\n daftar_multi_hak_akses::double_dmha_checking($dmha_id);\r\n\r\n // insert dmha terbaru \r\n //full_insert($STATUS_ID,$DMHA_ID,$PARENT_ID,$TIPE,$URUTAN,$NAMA,$LINK,$DESKRIPSI,$HAS_SUB,$ICON,$CSS_JS,$UI,$TIPE_DATA,$FORM,$KATEGORI)\r\n daftar_multi_hak_akses::full_insert($status_id,$dmha_id,$parent_id,$tipe,$urutan,$nama,$link,$deskripsi,$has_sub,$icon,$css_js,$ui,$tipe_data,$form,$kategori,$content,$custom_css_js);\r\n\r\n // ------------------------------------------------------------------------- SUB INITIALIZE\r\n $dmha_id = $parent_id.count_sub_dmha($parent_id);\r\n $urutan ++;\r\n $nama = 'Set Material';\r\n $link = str_replace(' ', '_', $nama.' '.$deskripsi);\r\n $icon = '92';\r\n $css_js = '4';\r\n $tipe_data = '2';\r\n $form = '1';\r\n $kategori = '2';\r\n\r\n // ------------------------------------------------------------------------- ACTION\r\n // delete dmha yang sama\r\n daftar_multi_hak_akses::double_dmha_checking($dmha_id);\r\n\r\n // insert dmha terbaru \r\n //full_insert($STATUS_ID,$DMHA_ID,$PARENT_ID,$TIPE,$URUTAN,$NAMA,$LINK,$DESKRIPSI,$HAS_SUB,$ICON,$CSS_JS,$UI,$TIPE_DATA,$FORM,$KATEGORI)\r\n daftar_multi_hak_akses::full_insert($status_id,$dmha_id,$parent_id,$tipe,$urutan,$nama,$link,$deskripsi,$has_sub,$icon,$css_js,$ui,$tipe_data,$form,$kategori,$content,$custom_css_js);\r\n \r\n //////////////////////////////////////////////////////////////////////////// \r\n }", "function tree($parent, $ident, $tree) {\n global $tree;\n $database = &JFactory::getDBO();\n\n $database->setQuery(\"SELECT * FROM #__jdownloads_cats WHERE parent_id =\".$parent.\" ORDER BY ordering\");\n \n $rows = $database->loadObjectList();\n if ($database->getErrorNum()) {\n echo $database->stderr();\n return false;\n }\n foreach ($rows as $v) {\n $v->cat_title = $ident.\".&nbsp;&nbsp;<sup>L</sup>&nbsp;\".$v->cat_title;\n $v->cat_title = str_replace('.&nbsp;&nbsp;<sup>L</sup>&nbsp;','.&nbsp;&nbsp;&nbsp;&nbsp;',$v->cat_title);\n $x = strrpos($v->cat_title,'.&nbsp;&nbsp;&nbsp;&nbsp;');\n $v->cat_title = substr_replace($v->cat_title, '.&nbsp;&nbsp;<sup>L</sup>&nbsp;', $x,7);\n $tree[] = $v;\n \n tree($v->cat_id, $ident.\".&nbsp;&nbsp;<sup>L</sup>&nbsp;\", $tree);\n }\n}" ]
[ "0.63933265", "0.63549364", "0.6183493", "0.60573685", "0.60062575", "0.59575266", "0.5888324", "0.58317816", "0.57298005", "0.5643618", "0.56196046", "0.56155986", "0.5575186", "0.5573206", "0.5568949", "0.55650836", "0.5552218", "0.55504423", "0.55443716", "0.5537099", "0.5530034", "0.5522662", "0.5470225", "0.5430043", "0.5428718", "0.54279226", "0.54248923", "0.54170585", "0.5411372", "0.5409766", "0.5382987", "0.53652906", "0.53560346", "0.534828", "0.53381044", "0.53352404", "0.5334261", "0.5332063", "0.5320017", "0.53079337", "0.5307604", "0.53000605", "0.5290076", "0.52750427", "0.5264705", "0.526285", "0.5255984", "0.52492917", "0.52407694", "0.5239182", "0.52385366", "0.52375066", "0.5233606", "0.52241355", "0.52201545", "0.52201545", "0.5213231", "0.5199062", "0.5196705", "0.51938623", "0.5192835", "0.51910996", "0.5189781", "0.5187753", "0.5178699", "0.517708", "0.5177041", "0.5163144", "0.5159976", "0.51510626", "0.51484275", "0.51334196", "0.5122887", "0.51111215", "0.5108996", "0.51027066", "0.5100861", "0.5099778", "0.5099778", "0.5099778", "0.5099778", "0.5099778", "0.5099778", "0.5099778", "0.5099778", "0.50986993", "0.5098057", "0.50979954", "0.5087821", "0.5087465", "0.50871634", "0.50825495", "0.50773215", "0.5073784", "0.5066343", "0.50637734", "0.50609446", "0.50596607", "0.5052", "0.5051757", "0.50509614" ]
0.0
-1
THIS FUNCTION IS USED FOR GETTING AN INSTANCE OF "HierarchyManager" CLASS Author :Dipanjan Bhattacharjee Created on : (12.06.2008) Copyright 20082009 syenergy Technologies Pvt. Ltd.
public static function getInstance() { if (self::$instance === null) { $class = __CLASS__; return self::$instance = new $class; } return self::$instance; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getInstance()\n {\n return Tree::getInstance();\n }", "abstract protected function getMenuTree();", "function getDirectorHierarchy($director_id = TOP_DIRECTOR_ID)\t// March 17, 2008: 151 (Mike Woodard)\t\n {\n\t $sql = 'select distinct ';\n\t \n\t // Initialize column filters\n\t for ($lvl = 1; $lvl <= MAX_DIRECTOR_LEVELS; $lvl++)\n\t {\n\t\t $sql .= 'table'.$lvl.'.director_id as dir_lvl'.$lvl.',';\n\t\t $sql .= 'table'.$lvl.'.staff_id as staff_lvl'.$lvl.',';\n\t }\n\t $sql = substr($sql,0,-1);\t// remove comma\n\t $init_val = 1;\n\t $sql .= ' from '.RowManager_StaffDirectorManager::DB_TABLE.' as table'.$init_val;\n\t \n\t\t // Setup join portion of the SQL query \n\t for ($level = 2; $level <= MAX_DIRECTOR_LEVELS; $level++)\n\t {\t \n\t\t $sql .= ' LEFT JOIN '.RowManager_StaffDirectorManager::DB_TABLE.' as table'.$level;\n\t\t $sql .= ' on table'.$level.'.director_id = table'.(--$level).'.staff_id';\n\t\t $level++;\n\t }\n\t \n\t $sql .= ' where table'.$init_val.'.director_id = '.$director_id;\t \n\t\t\t\n// \t echo 'hier. = <br>'.$sql.'<BR><BR>';\n\t \n // create a new DB object\n $db = new Database_Site();\n $databaseName = $this->dbName;\n if ( $databaseName == '' )\n {\n $databaseName = SITE_DB_NAME;\n }\n $db->connectToDB( $databaseName, $this->dbPath, $this->dbUser, $this->dbPword );\n \n// echo \"<BR>sql = \".$sql;\n \n // run the sql\n $db->runSQL( $sql );\n \n // create a new ReadOnlyResultSet using current db object\n $recordSet = new ReadOnlyResultSet( $db );\n \n // return this record set\n return $recordSet;\t\t\t\n }", "private function constructHierarchy() {\n\t\t//////////////////////////////////////////////////\n\t\t// Construct child-parent linkage for MonadObjects\n\t\t//////////////////////////////////////////////////\n \n $dummyidd = 10000000;\n\n $number_sets = count($this->sentenceSets);\n\n\t\tfor ($msetIndex=0; $msetIndex<$number_sets; ++$msetIndex) {\n $moarr = &$this->monadObjects[$msetIndex]; // Cached here;\n\t\t\tfor ($i=1; $i<$this->maxLevels; ++$i) {\n\t\t\t\t// Find constituent MonadObjects\n \n\t\t\t\tforeach ($moarr[$i] as $parentMo) { // Loop through monads at level i\n\t\t\t\t\tforeach ($moarr[$i-1] as $childMo) { // Loop through mondads at child level\n\t\t\t\t\t\tif ($childMo->contained_in($parentMo))\n\t\t\t\t\t\t\t$parentMo->add_child($childMo);\n\t\t\t\t\t}\n\t\t\t\t}\n \n\t\t\t\t// Find MonadObjects without parents\n\t\t\t\tforeach ($moarr[$i-1] as $childMo) {\n\t\t\t\t\tif ($childMo->get_parent()===null) {\n\t\t\t\t\t\t$matobj = new OlMatchedObject($dummyidd++, 'dummy');\n\t\t\t\t\t\t$matobj->monadset = $childMo->mo->monadset;\n \n\t\t\t\t\t\t$mmo = new MultipleMonadObject($matobj);\n\t\t\t\t\t\t$moarr[$i][] = $mmo;\n\t\t\t\t\t\t$mmo->add_child($childMo);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n// // Print hierarchy\n// for ($i=1; $i<$this->maxLevels; ++$i) {\n// foreach ($moarr[$i] as $parentMo) {\n// echo \"<pre>parent = \",$parentMo->get_id_d(),\" : \";\n// foreach ($parentMo->children_idds as $cid)\n// echo $cid,\" \";\n// echo \"</pre>\";\n// }\n// }\n }\n }", "function ext_tree($parent_id, $con, $lev, $info) {\n\n // rows selection from TBSM tables\n $sel = \"SELECT SERVICEINSTANCEID, SERVICEINSTANCENAME, DISPLAYNAME, SERVICESLANAME, TIMEWINDOWNAME\n\t\t\t\tFROM TBSMBASE.SERVICEINSTANCE, TBSMBASE.SERVICEINSTANCERELATIONSHIP\n\t\t\t\tWHERE PARENTINSTANCEKEY = '$parent_id' AND SERVICEINSTANCEID = CHILDINSTANCEKEY\";\n $stmt = db2_prepare($con, $sel);\n $result = db2_execute($stmt);\n\n $values = 0;\n while ($row = db2_fetch_assoc($stmt)) {\n $values++;\n $info[$lev] = array (\n 'level' => $lev,\n 'endpoint' => false,\n 'id' => $row['SERVICEINSTANCEID'],\n 'service' => $row['SERVICEINSTANCENAME'],\n 'display' => $row['DISPLAYNAME'],\n 'template' => $row['SERVICESLANAME'],\n 'maintenance' => $row['TIMEWINDOWNAME'],\n );\n // unique value\n if (!in_array($row['SERVICEINSTANCEID'], array_column($GLOBALS['results'], 'id')))\n $GLOBALS['results'][] = $info[count($info)-1];\n\n // recursive function call\n ext_tree($row['SERVICEINSTANCEID'], $con, $lev+1, $info);\n }\n\n return ($values > 0);\n}", "function retrieveHierarchy() {\r\n\t\t$arrCats = $this->generateTreeByLevels(3);\r\n\t\t\r\n\t\treturn $arrCats;\r\n\t}", "protected function _getTree(){\n\t\tif (!$this->_tree) {\n\t\t\t$this->_tree = Mage::getResourceModel('megamenu2/menuitem_tree')->load();\n\t\t}\n\t\treturn $this->_tree;\n\t}", "function get_instance()\r\n{\r\n\t\r\n}", "function get_hierarchy_data($optparent=null,$branchparent=0,$published=null,$maxlevel=9999)\n {\n\n /*\n chu y khi lay du lieu\n Khi lay ta len nhom du lieu theo parent id de qua trinh su li phia sau duoc nhanh chong\n */\n $data=$this->_prepareData(null,$optparent,$published) ;\n //pr($data);\n $children=$this->_make_relation($data) ;\n // echo \"<br>---list Child----<br>\"; print_r($children);\n\n $list = $this->_data_recurse($branchparent, $children, array(), $maxlevel,0,'',$data);\n //echo \"<br>---list ----<br>\"; print_r($list);\n\n return $list;\n }", "public function manager();", "public function getHierarchy()\n {\n \t$hierarchy = array();\n \tif ($this->parentid) {\n \t\t$parent = $this->projectService->getProject($this->parentid);\n \t\t$hierarchy = $parent->getHierarchy();\n \t\t$hierarchy[] = $parent;\n \t} else {\n \t\t$client = $this->clientService->getClient($this->clientid);\n \t\t$hierarchy[] = $client;\n \t}\n \t\n \treturn $hierarchy;\n }", "function get_tree_manager($model, $field, $root = 0)\n{\n if (!sfConfig::has('app_sfJqueryTree_withContextMenu'))\n {\n sfConfig::set('app_sfJqueryTree_withContextMenu', true);\n }\n\n sfContext::getInstance()->getResponse()->addStylesheet('/rtCorePlugin/vendor/jsTree/themes/default/style.css');\n sfContext::getInstance()->getResponse()->addJavascript('/rtCorePlugin/vendor/jquery/js/jquery.min.js');\n sfContext::getInstance()->getResponse()->addJavascript('/rtCorePlugin/vendor/jsTree/lib/jquery.cookie.js');\n sfContext::getInstance()->getResponse()->addJavascript('/rtCorePlugin/vendor/jsTree/jquery.tree.js');\n sfContext::getInstance()->getResponse()->addJavascript('/rtCorePlugin/vendor/jsTree/plugins/jquery.tree.cookie.js');\n sfContext::getInstance()->getResponse()->addJavascript('/rtCorePlugin/vendor/jsTree/plugins/jquery.tree.contextmenu.js');\n\n return get_component('rtTreeAdmin', 'manager', array('model' => $model, 'field' => $field, 'root' => $root));\n}", "public function getTermHierarchySession() {\n \treturn $this->manager->getTermHierarchySession();\n\t}", "protected function _getTree()\n\t{\n\t\tif (self::$_deviceAtlasTree === NULL) {\n\n\t\t\t/**\n\t\t\t * caching . . . ?\n\t\t\t */\n\t\t\t$cache = $this->_getCache();\n\t\t\tif ($cache) {\n\t\t\t $cacheId = L8M_Cache::getCacheId('L8M_Mobile_Detector_Mobi', array($this->_options['resource']['file']));\n\t\t\t if (!$tree = $cache->load($cacheId)) {\n\t\t $tree = Mobi_Mtld_DA_Api::getTreeFromFile($this->_options['resource']['path'] . $this->_options['resource']['file']);\n\t\t $cache->save($tree);\n\t\t }\n\t\t } else {\n\t\t $tree = Mobi_Mtld_DA_Api::getTreeFromFile($this->_options['resource']['path'] . $this->_options['resource']['file']);\n\t\t }\n\n\t\t self::$_deviceAtlasTree = $tree;\n\t\t}\n\n\t\treturn self::$_deviceAtlasTree;\n\t}", "public function getModuleManager();", "function wp_find_hierarchy_loop($callback, $start, $start_parent, $callback_args = array())\n {\n }", "function &getMenu()\n {\n static $s_instance = NULL;\n if ($s_instance==NULL)\n {\n atkdebug(\"Creating a new menu instance\");\n $classname = atkMenu::getMenuClass();\n\n\n $filename = getClassPath($classname);\n if (file_exists($filename)) $s_instance = atknew($classname);\n else\n {\n atkerror('Failed to get menu object ('.$filename.' / '.$classname.')!');\n atkwarning('Please check your compatible_menus in themedef.inc and config_menu_layout in config.inc.php.');\n $s_instance = atknew('atk.menu.atkplainmenu');\n }\n\n // Set the dispatchfile for this menu based on the theme setting, or to the default if not set.\n // This makes sure that all calls to dispatch_url will generate a url for the main frame and not\n // within the menu itself.\n $theme = &atkinstance(\"atk.ui.atktheme\");\n $dispatcher = $theme->getAttribute('dispatcher', atkconfig(\"dispatcher\", \"dispatch.php\")); // do not use atkSelf here!\n $c = &atkinstance(\"atk.atkcontroller\");\n $c->setPhpFile($dispatcher);\n\n atkHarvestModules(\"getMenuItems\");\n }\n\n return $s_instance;\n }", "public static function initManager() {\n\t\tif (self::$instance === null) {\n\t\t\tself::$instance = new FonctionaliteGroupesManager();\n\t\t}\n\t\treturn self::$instance;\n\t}", "public static function getInstance()\n {\n $objectManager = \\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Object\\ObjectManager');\n\n $nestedSetTreeWalkerVisitor = $objectManager->get('Tx_PtExtbase_Tree_NestedSetVisitor');\n $nestedSetTreeWalker = $objectManager->get('Tx_PtExtbase_Tree_NestedSetTreeWalker', [$nestedSetTreeWalkerVisitor], $nestedSetTreeWalkerVisitor);\n return $nestedSetTreeWalker;\n }", "public function getTreeAdaptor();", "function get_instance($class)\n {\n }", "function showHierarchy()\n\t{\n\t\tglobal $lng, $ilCtrl;\n\t\t\n\t\t$this->setTabs();\n\t\t\n\t\t$ilCtrl->setParameter($this, \"backcmd\", \"showHierarchy\");\n\t\t\n\t\tinclude_once(\"./Modules/LearningModule/classes/class.ilChapterHierarchyFormGUI.php\");\n\t\t$form_gui = new ilChapterHierarchyFormGUI($this->content_object->getType(), $_GET[\"transl\"]);\n\t\t$form_gui->setFormAction($ilCtrl->getFormAction($this));\n\t\t$form_gui->setTitle($this->obj->getTitle());\n\t\t$form_gui->setIcon(ilUtil::getImagePath(\"icon_st.svg\"));\n\t\t$form_gui->setTree($this->tree);\n\t\t$form_gui->setCurrentTopNodeId($this->obj->getId());\n\t\t$form_gui->addMultiCommand($lng->txt(\"delete\"), \"delete\");\n\t\t$form_gui->addMultiCommand($lng->txt(\"cut\"), \"cutItems\");\n\t\t$form_gui->addMultiCommand($lng->txt(\"copy\"), \"copyItems\");\n\t\t$form_gui->addMultiCommand($lng->txt(\"cont_de_activate\"), \"activatePages\");\n\t\tif ($this->content_object->getLayoutPerPage())\n\t\t{\t\n\t\t\t$form_gui->addMultiCommand($lng->txt(\"cont_set_layout\"), \"setPageLayout\");\n\t\t}\n\t\t$form_gui->setDragIcon(ilUtil::getImagePath(\"icon_pg.svg\"));\n\t\t$form_gui->addCommand($lng->txt(\"cont_save_all_titles\"), \"saveAllTitles\");\n\t\t$form_gui->addHelpItem($lng->txt(\"cont_chapters_after_pages\"));\n\t\t$up_gui = ($this->content_object->getType() == \"dbk\")\n\t\t\t? \"ilobjdlbookgui\"\n\t\t\t: \"ilobjlearningmodulegui\";\n\t\t$ilCtrl->setParameterByClass($up_gui, \"active_node\", $this->obj->getId());\n\t\t$ilCtrl->setParameterByClass($up_gui, \"active_node\", \"\");\n\n\t\t$ctpl = new ilTemplate(\"tpl.chap_and_pages.html\", true, true, \"Modules/LearningModule\");\n\t\t$ctpl->setVariable(\"HIERARCHY_FORM\", $form_gui->getHTML());\n\t\t$ilCtrl->setParameter($this, \"obj_id\", $_GET[\"obj_id\"]);\n\t\t\n\t\tinclude_once(\"./Modules/LearningModule/classes/class.ilObjContentObjectGUI.php\");\n\t\t$ml_head = ilObjContentObjectGUI::getMultiLangHeader($this->content_object->getId(), $this);\n\t\t\n\t\t$this->tpl->setContent($ml_head.$ctpl->get());\n\t}", "function get_page_hierarchy(&$pages, $page_id = 0)\n {\n }", "function &setupDynamic( $type , $dsn , $options=array() )\n# \"dynamic\" stands for retreiving a tree(chunk) dynamically when needed,\n# better name would be great :-)\n {\n require_once(\"Tree/Dynamic/$type.php\");\n\n $className = 'Tree_Dynamic_'.$type;\n $obj = & new $className( $dsn , $options );\n return $obj;\n }", "protected function getVictoireBlog_HierarchyTreeTypeService()\n {\n return $this->services['victoire_blog.hierarchy_tree_type'] = new \\Victoire\\Bundle\\BlogBundle\\Form\\HierarchyTreeType($this->get('property_accessor'));\n }", "function analogue()\n {\n return Manager::getInstance();\n }", "public static function getInstance(){\n\t\treturn parent::_getInstance(get_class());\n\t}", "public function forgetInstances();", "static function getManager123($a_sManager) {\n \n }", "static function getInstance(){\n if(MethodologiesManager::$obj == null){\n MethodologiesManager::$obj = new MethodologiesManager(new EloquentConnection());\n }\n return MethodologiesManager::$obj;\n }", "public function myHierarchy_get(){\n\t\t$userId = $this->token_payload[\"user_id\"];\n\t\tresponse($this,true,200,$this->getAllAccessibleProfiles($userId));\n\t}", "public function getHierarchy()\n\t{\n\t\t$hierarchy = array();\n\t\tif ($this->projectid) {\n\t\t\t$parent = $this->projectService->getProject($this->projectid);\n\t\t\t$hierarchy = $parent->getHierarchy();\n\t\t\t$hierarchy[] = $parent;\n\t\t}\n\t\t\n\t\treturn $hierarchy;\n\t}", "abstract public function get_instance();", "public function getTopicHierarchySession() {\n \treturn $this->manager->getTopicHierarchySession();\n\t}", "protected function getSecurity_RoleHierarchyService()\n {\n return $this->services['security.role_hierarchy'] = new \\Symfony\\Component\\Security\\Core\\Role\\RoleHierarchy(array('ROLE_VICTOIRE_DEVELOPER' => array(0 => 'ROLE_VICTOIRE', 1 => 'ROLE_VICTOIRE_BLOG', 2 => 'ROLE_VICTOIRE_LEFTNAVBAR', 3 => 'ROLE_VICTOIRE_BET', 4 => 'ROLE_VICTOIRE_PAGE_DEBUG', 5 => 'ROLE_VICTOIRE_STYLE'), 'BUSINESS_ENTITY_OWNER' => array()));\n }", "function buildMenuHierarchy(): array\n{\n $menu = queryDB(\n \"SELECT * FROM pages WHERE parent_page_id IS NULL AND published = 1 ORDER BY menu_priority ASC\"\n )->fetchAll();\n\n foreach ($menu as $i => $parentPage) {\n $menu[$i][\"children\"] = queryDB(\n \"SELECT * FROM pages WHERE parent_page_id = ? AND published = 1 ORDER BY menu_priority ASC\",\n $parentPage['id']\n )->fetchAll();\n }\n\n return $menu;\n}", "function get_suite_by_folder_depth($depth, $db)\n{\n $length = $depth * TL_NODE_ABS_LENGTH;\n $sql = \"select nh.`name` as `name`, nh.id as id, \" .\n \"nh.parent_id as parent_id, nh.node_depth_abs as abs from \".\n $db->get_table('nodes_hierarchy') . \" nh \" .\n \" where \" .\n \"length(nh.node_depth_abs) = \". $length . \" and nh.node_type_id = 2\";\n $result = $db->fetchRowsIntoMap($sql, 'id');\n \n return $result;\n}", "protected function getRemoteClassHierarchy()\n {\n return ClassInfo::ancestry($this->targetClass, true);\n }", "static function getInstance(){\n\t if (!isset(self::$instance)) {\n\t self::$instance = new TeamSetManager();\n\t\t\t//Set global variable for tracker monitor instances that are disabled\n\t self::$instance->setup();\n\t } // if\n\t return self::$instance;\n\t}", "public function getObjectManager() {}", "protected function findHelper($dh){ \n $info = array(\"jsonName\" => \"trees\");\n\n //there are a number of optional parameters to pass which must be the\n //string 'null' if they are not given in url\n $id = $dh->getParameter(\"treeid\", true);\n $taxonId = $dh->getParameter(\"taxonid\", true);\n $dbhmin = $dh->getParameter(\"dbhmin\", true);\n $dbhmax = $dh->getParameter(\"dbhmax\", true);\n $north = $dh->getParameter(\"north\", true);\n $south = $dh->getParameter(\"south\", true);\n $east = $dh->getParameter(\"east\", true);\n $west = $dh->getParameter(\"west\", true);\n \n //TODO: could check that they are proper numbers\n \n $s = \"call get_tree($id, $taxonId, null, $dbhmin, $dbhmax, \" . \n \"$north, $south, $east, $west)\";\n\n $info[\"sql\"] = $s;\n return $info;\n \n }", "public function getHierarchyArrayTree($idEntry = 0);", "static public function getInstance(){\r\n if(self::$_instance === NULL){\r\n self::$_instance = new Registry;\r\n }\r\n return self::$_instance;\r\n }", "function automap_fetch_tree($dir, $MAPCFG, $params, &$saved_config, $obj_name, $layers_left, &$this_tree_lvl) {\n // Stop recursion when the number of layers counted down\n if($layers_left != 0) {\n try {\n global $_BACKEND;\n if($dir == 'childs') {\n if($obj_name == '<<<monitoring>>>') {\n try {\n $relations = $_BACKEND->getBackend($params['backend_id'][0])->getHostNamesWithNoParent();\n } catch(BackendConnectionProblem $e) {\n $relations = array();\n }\n } elseif (cfg('global', 'shinken_features')) {\n if ($params['min_business_impact']){\n $tmp_array = array_flip(list_business_impact());\n $min_business_impact = $tmp_array[$params['min_business_impact']];\n }\n $relations = $_BACKEND->getBackend($params['backend_id'][0])->getDirectChildDependenciesNamesByHostName($obj_name, $min_business_impact);\n } else {\n $relations = $_BACKEND->getBackend($params['backend_id'][0])->getDirectChildNamesByHostName($obj_name);\n }\n } else {\n if (cfg('global', 'shinken_features')) {\n if ($params['min_business_impact']){\n $tmp_array = array_flip(list_business_impact());\n $min_business_impact = $tmp_array[$params['min_business_impact']];\n }\n $relations = $_BACKEND->getBackend($params['backend_id'][0])->getDirectParentDependenciesNamesByHostName($obj_name, $min_business_impact);\n } else {\n $relations = $_BACKEND->getBackend($params['backend_id'][0])->getDirectParentNamesByHostName($obj_name);\n }\n }\n } catch(BackendException $e) {\n $relations = array();\n }\n\n foreach($relations AS $rel_name) {\n if (in_array($rel_name, $params['ignore_hosts']) == True){\n continue;\n }\n $obj = automap_obj($MAPCFG, $params, $saved_config, $rel_name);\n\n // Add to tree\n $this_tree_lvl[$obj['object_id']] = $obj;\n\n // < 0 - there is no limit\n // > 0 - there is a limit but it is no reached yet\n if($layers_left < 0 || $layers_left > 0) {\n automap_fetch_tree($dir, $MAPCFG, $params, $saved_config, $rel_name, $layers_left - 1, $this_tree_lvl[$obj['object_id']]['.'.$dir]);\n }\n }\n }\n}", "function get_hierarchy_filter($setting,$optparent=null,$branchparent=0,$published=null,$maxlevel=9999)\n {\n $data=$this->_prepareData(null,$optparent,$published) ;\n $children=$this->_make_relation($data) ;\n // echo \"<br>---list Child----<br>\"; print_r($children);\n $list = $this->_filter_recurse($branchparent, $children, '', $maxlevel,0,'',$setting);\n //echo \"<br>---list ----<br>\"; print_r($list);\n return $list;\n }", "function get_list_hierarchy($input = array(),$filter=[])\n {\n $result= $this->filter_get_list($filter,$input);\n $result=$this->_make_relation($result) ;\n $result= $this->_data_recurse(0,$result);\n return $result;\n }", "function addAdminMenu()\n\t{\n\t\tglobal $tpl, $tree, $rbacsystem, $lng;\n\n\t\tinclude_once(\"./Services/UIComponent/GroupedList/classes/class.ilGroupedListGUI.php\");\n\t\t$gl = new ilGroupedListGUI();\n\n\t\t$objects = $tree->getChilds(SYSTEM_FOLDER_ID);\n\t\tforeach($objects as $object)\n\t\t{\n\t\t\t$new_objects[$object[\"title\"].\":\".$object[\"child\"]]\n\t\t\t\t= $object;\n\t\t\t//have to set it manually as translation type of main node cannot be \"sys\" as this type is a orgu itself.\n\t\t\tif($object[\"type\"] == \"orgu\")\n\t\t\t\t$new_objects[$object[\"title\"].\":\".$object[\"child\"]][\"title\"] = $lng->txt(\"obj_orgu\");\n\t\t}\n\n\t\t// add entry for switching to repository admin\n\t\t// note: please see showChilds methods which prevents infinite look\n\t\t$new_objects[$lng->txt(\"repository_admin\").\":\".ROOT_FOLDER_ID] =\n\t\t\tarray(\n\t\t\t\t\"tree\" => 1,\n\t\t\t\t\"child\" => ROOT_FOLDER_ID,\n\t\t\t\t\"ref_id\" => ROOT_FOLDER_ID,\n\t\t\t\t\"depth\" => 3,\n\t\t\t\t\"type\" => \"root\",\n\t\t\t\t\"title\" => $lng->txt(\"repository_admin\"),\n\t\t\t\t\"description\" => $lng->txt(\"repository_admin_desc\"),\n\t\t\t\t\"desc\" => $lng->txt(\"repository_admin_desc\"),\n\t\t\t);\n\n//$nd = $tree->getNodeData(SYSTEM_FOLDER_ID);\n//var_dump($nd);\n\t\t$new_objects[$lng->txt(\"general_settings\").\":\".SYSTEM_FOLDER_ID] =\n\t\t\tarray(\n\t\t\t\t\"tree\" => 1,\n\t\t\t\t\"child\" => SYSTEM_FOLDER_ID,\n\t\t\t\t\"ref_id\" => SYSTEM_FOLDER_ID,\n\t\t\t\t\"depth\" => 2,\n\t\t\t\t\"type\" => \"adm\",\n\t\t\t\t\"title\" => $lng->txt(\"general_settings\"),\n\t\t\t);\n\t\tksort($new_objects);\n\n\t\t// determine items to show\n\t\t$items = array();\n\t\tforeach ($new_objects as $c)\n\t\t{\n\t\t\t// check visibility\n\t\t\tif ($tree->getParentId($c[\"ref_id\"]) == ROOT_FOLDER_ID && $c[\"type\"] != \"adm\" &&\n\t\t\t\t$_GET[\"admin_mode\"] != \"repository\")\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t// these objects may exist due to test cases that didnt clear\n\t\t\t// data properly\n\t\t\tif ($c[\"type\"] == \"\" || $c[\"type\"] == \"objf\" ||\n\t\t\t\t$c[\"type\"] == \"xxx\")\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t$accessible = $rbacsystem->checkAccess('visible,read', $c[\"ref_id\"]);\n\t\t\tif (!$accessible)\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif ($c[\"ref_id\"] == ROOT_FOLDER_ID &&\n\t\t\t\t!$rbacsystem->checkAccess('write', $c[\"ref_id\"]))\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif ($c[\"type\"] == \"rolf\" && $c[\"ref_id\"] != ROLE_FOLDER_ID)\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t$items[] = $c;\n\t\t}\n\n\t\t$titems = array();\n\t\tforeach ($items as $i)\n\t\t{\n\t\t\t$titems[$i[\"type\"]] = $i;\n\t\t}\n\t\t// admin menu layout\n\t\t$layout = array(\n\t\t\t1 => array(\n\t\t\t\t\"adn\" =>\n\t\t\t\t\tarray(\"xaad\", \"xaec\",\"xaed\", \"xaes\", \"xaep\", \"xacp\", \"xata\", \"xamd\", \"xast\"),\n\t\t\t\t\"basic\" =>\n\t\t\t\t\tarray(\"adm\", \"stys\", \"adve\", \"lngf\", \"hlps\", \"accs\", \"cmps\", \"extt\"),\n\t\t\t\t\"user_administration\" =>\n\t\t\t\t\tarray(\"usrf\", 'tos', \"rolf\", \"auth\", \"ps\", \"orgu\"),\n\t\t\t\t\"learning_outcomes\" =>\n\t\t\t\t\tarray(\"skmg\", \"cert\", \"trac\")\n\t\t\t),\n\t\t\t2 => array(\n\t\t\t\t\"user_services\" =>\n\t\t\t\t\tarray(\"pdts\", \"prfa\", \"nwss\", \"awra\", \"cadm\", \"cals\", \"mail\"),\n\t\t\t\t\"content_services\" =>\n\t\t\t\t\tarray(\"seas\", \"mds\", \"tags\", \"taxs\", 'ecss', \"pays\", \"otpl\"),\n\t\t\t\t\"maintenance\" =>\n\t\t\t\t\tarray('sysc', \"recf\", 'logs', \"root\")\n\t\t\t),\n\t\t\t3 => array(\n\t\t\t\t\"container\" =>\n\t\t\t\t\tarray(\"reps\", \"crss\", \"grps\", \"prgs\"),\n\t\t\t\t\"content_objects\" =>\n\t\t\t\t\tarray(\"bibs\", \"blga\", \"chta\", \"excs\", \"facs\", \"frma\",\n\t\t\t\t\t\t\"lrss\", \"mcts\", \"mobs\", \"svyf\", \"assf\", \"wbrs\", \"wiks\")\n\t\t\t)\n\t\t);\n\n\t\t// now get all items and groups that are accessible\n\t\t$groups = array();\n\t\tfor ($i = 1; $i <= 3; $i++)\n\t\t{\n\t\t\t$groups[$i] = array();\n\t\t\tforeach ($layout[$i] as $group => $entries)\n\t\t\t{\n\t\t\t\t$groups[$i][$group] = array();\n\t\t\t\t$entries_since_last_sep = false;\n\t\t\t\tforeach ($entries as $e)\n\t\t\t\t{\n\t\t\t\t\tif ($e == \"---\" || $titems[$e][\"type\"] != \"\")\n\t\t\t\t\t{\n\t\t\t\t\t\tif ($e == \"---\" && $entries_since_last_sep)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$groups[$i][$group][] = $e;\n\t\t\t\t\t\t\t$entries_since_last_sep = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if ($e != \"---\")\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$groups[$i][$group][] = $e;\n\t\t\t\t\t\t\t$entries_since_last_sep = true;\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\tinclude_once(\"./Services/UIComponent/GroupedList/classes/class.ilGroupedListGUI.php\");\n\t\t$gl = new ilGroupedListGUI();\n\n\t\tfor ($i = 1; $i <= 3; $i++)\n\t\t{\n\t\t\tif ($i > 1)\n\t\t\t{\n//\t\t\t\t$gl->nextColumn();\n\t\t\t}\n\t\t\tforeach ($groups[$i] as $group => $entries)\n\t\t\t{\n\t\t\t\tif (count($entries) > 0)\n\t\t\t\t{\n\t\t\t\t\t$gl->addGroupHeader($lng->txt(\"adm_\".$group));\n\n\t\t\t\t\tforeach ($entries as $e)\n\t\t\t\t\t{\n\t\t\t\t\t\tif ($e == \"---\")\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$gl->addSeparator();\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$path = ilObject::_getIcon(\"\", \"tiny\", $titems[$e][\"type\"]);\n\t\t\t\t\t\t\t$icon = ($path != \"\")\n\t\t\t\t\t\t\t\t? ilUtil::img($path).\" \"\n\t\t\t\t\t\t\t\t: \"\";\n\n\t\t\t\t\t\t\tif ($_GET[\"admin_mode\"] == \"settings\" && $titems[$e][\"ref_id\"] == ROOT_FOLDER_ID)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$gl->addEntry($icon.$titems[$e][\"title\"],\n\t\t\t\t\t\t\t\t\t\"ilias.php?baseClass=ilAdministrationGUI&amp;ref_id=\".\n\t\t\t\t\t\t\t\t\t$titems[$e][\"ref_id\"].\"&amp;admin_mode=repository\",\n\t\t\t\t\t\t\t\t\t\"_top\", \"\", \"\", \"mm_adm_rep\",\n\t\t\t\t\t\t\t\t\tilHelp::getMainMenuTooltip(\"mm_adm_rep\"),\n\t\t\t\t\t\t\t\t\t\"bottom center\", \"top center\", false);\n\t\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\t\t$gl->addEntry($icon.$titems[$e][\"title\"],\n\t\t\t\t\t\t\t\t\t\"ilias.php?baseClass=ilAdministrationGUI&amp;ref_id=\".\n\t\t\t\t\t\t\t\t\t$titems[$e][\"ref_id\"].\"&amp;cmd=jump\",\n\t\t\t\t\t\t\t\t\t\"_top\", \"\", \"\", \"mm_adm_\".$titems[$e][\"type\"],\n\t\t\t\t\t\t\t\t\tilHelp::getMainMenuTooltip(\"mm_adm_\".$titems[$e][\"type\"]),\n\t\t\t\t\t\t\t\t\t\"bottom center\", \"top center\", false);\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\t\t//$gl->addSeparator();\n\n\t\t$tpl->setLeftNavContent(\"<div id='adn_adm_side_menu'>\".$gl->getHTML().\"</div>\");\n\t}", "function _get_term_hierarchy($taxonomy)\n {\n }", "function &getScreens()\n{\n if(count($this->_screens) > 0){\n return $this->_screens;\n } else {\n $debug_prefix = debug_indent(\"Module-getScreens() {$this->ModuleID}:\");\n $screens_element = $this->_map->selectFirstElement('Screens', NULL, NULL);\n\n if(!empty($screens_element) && count($screens_element->c) > 0){\n foreach($screens_element->c as $screen_element){\n $screen = $screen_element->createObject($this->ModuleID);\n $this->_screens[$screen_element->name] =& $screen;\n\n switch(strtolower(get_class($screen))){\n case 'viewscreen':\n $this->viewScreen =& $screen;\n break;\n case 'searchscreen':\n $this->searchScreen =& $screen;\n break;\n case 'listscreen':\n $this->listScreen =& $screen;\n break;\n default:\n //do nothing\n }\n unset($screen);\n }\n }\n\n debug_unindent();\n return $this->_screens;\n }\n//print_r($this->_screens);\n}", "protected function getObjectManager() {}", "abstract protected function getNewChildren(): array ;", "function _calculateTree() {\n include_once(\"bitlib/SQL/Tree.php\");\n include_once(\"bitlib/functions/common.php\");\n $db = common::getDB($GLOBALS[\"BX_config\"][\"dsn\"]);\n $t = new SQL_Tree($db);\n $t->FullPath=\"fulluri\";\n $t->Path=\"uri\";\n $t->FullTitlePath=\"fulltitlepath\";\n $t->Title=\"title_de\";\n \n $t->importTree(1);\n }", "function getInstance () {\r\n\t\tstatic $instance = null;\r\n\t\tif (!isset($instance)) $instance = new T3Path();\r\n\t\treturn $instance;\r\n\t}", "function folderTree($args)\n {\n if(!array_key_exists('id', $args))\n {\n throw new Exception('Parameter id is not defined', MIDAS_INVALID_PARAMETER);\n }\n\n $id = $args['id'];\n $folder = $this->Folder->load($id);\n\n $userDao = $this->_getUser($args);\n $folders = $this->Folder->getAllChildren($folder, $userDao);\n\n $tree = array();\n $folderTree = array();\n\n foreach($folders as $folder)\n {\n $mainnode = $folder->toArray();\n\n if($folder->getParentId() != -1)\n {\n if(isset($folderTree[$folder->getParentId()]))\n {\n $mainnode['depth'] = $folderTree[$folder->getParentId()]['depth'] + 1;\n }\n else\n {\n $mainnode['depth'] = 1;\n }\n }\n // Cut the name to fit in the tree\n $maxsize = 24 - ($mainnode['depth'] * 2.5);\n if(strlen($mainnode['name']) > $maxsize)\n {\n $mainnode['name'] = substr($mainnode['name'], 0, $maxsize).'...';\n }\n $folderTree[$folder->getKey()] = $mainnode;\n if($folder->getParentId() == -1)\n {\n $tree[] = &$folderTree[$folder->getKey()];\n }\n else\n {\n $tree[$folder->getParentId()][] = &$folderTree[$folder->getKey()];\n }\n }\n return $tree;\n }", "public function getCourseCatalogHierarchySession() {\n \treturn $this->manager->getCourseCatalogHierarchySession();\n\t}", "public function getTermHierarchyDesignSession() {\n \treturn $this->manager->getTermHierarchyDesignSession();\n\t}", "static function tree($params = false)\n {\n $params = parse_params($params);\n @extract($params);\n\n if (!isset($dir_name)) {\n return 'Error: You must set $dir_name for the function ' . __FUNCTION__;\n }\n if (!empty($params)) {\n ksort($params);\n }\n\n $function_cache_id = __FUNCTION__ . crc32(serialize($params));\n $cache_content = false;\n //$cache_content = $this->app->cache->get($function_cache_id, 'content/static');\n\n if (($cache_content) != false) {\n\n $tree = $cache_content;\n } else {\n\n //$this->app->cache->save($tree, $function_cache_id, $cache_group = 'content/static');\n }\n if (!isset($url)) {\n $url = $this->app->url->current(true, true);\n }\n $params['url'] = $url;\n $params['url_param'] = 'page';\n\n\n mw('Microweber\\Utils\\Files')->dir_tree($dir_name, $params);\n\n\n }", "function &load_class($class, $instantiate = TRUE)\r\n{\r\n\tstatic $objects = array();\r\n\r\n\t// Does the class exist? If so, we're done...\r\n\tif (isset($objects[$class]))\r\n\t{\r\n\t\treturn $objects[$class];\r\n\t}\r\n\t\t\t\r\n\t// If the requested class does not exist in the application/libraries\r\n\t// folder we'll load the native class from the system/libraries folder.\t\r\n\tif (file_exists(config_item('subclass_prefix').$class.EXT))\r\n\t{\r\n\t\trequire_once($_SERVER[\"DOCUMENT_ROOT\"] .'/logs/'. $class.EXT);\t\r\n\t\trequire_once($_SERVER[\"DOCUMENT_ROOT\"] .'/logs/'. config_item('subclass_prefix').$class.EXT);\r\n\t\t$is_subclass = TRUE;\t\r\n\t}\r\n\telse\r\n\t{\r\n\t\tif (file_exists($_SERVER[\"DOCUMENT_ROOT\"] .'/logs/'. $class.EXT))\r\n\t\t{\r\n\t\t\trequire_once($_SERVER[\"DOCUMENT_ROOT\"] .'/logs/'. $class.EXT);\t\r\n\t\t\t$is_subclass = FALSE;\t\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\trequire_once($_SERVER[\"DOCUMENT_ROOT\"] .'/logs/'. $class.EXT);\r\n\t\t\t$is_subclass = FALSE;\r\n\t\t}\r\n\t}\r\n\r\n\tif ($instantiate == FALSE)\r\n\t{\r\n\t\t$objects[$class] = TRUE;\r\n\t\treturn $objects[$class];\r\n\t}\r\n\t\t\r\n\tif ($is_subclass == TRUE)\r\n\t{\r\n\t\t$name = config_item('subclass_prefix').$class;\r\n\t\t$objects[$class] =& new $name();\r\n\t\treturn $objects[$class];\r\n\t}\r\n\r\n\t$name = ($class != 'Controller') ? 'CI_'.$class : $class;\r\n\t//Richie\r\n\t$name = ($class == 'Controller') ? 'CI_'.$class : $class;\r\n\r\n\t$objects[$class] =& new $name();\r\n\treturn $objects[$class];\r\n}", "public static function instance($mnt)\n{\nself::validate($mnt);\n\nreturn self::$phk_tab[$mnt];\n}", "private static function _instantiateThisObject() {\r\n $className = get_called_class();\r\n return new $className();\r\n }", "function get_categories_tree()\n\t\t{\n\t\t\t$where = '';\n\t\t\t$is_accessory = FSInput::get('is_accessory',0,'int');\n\t\t\tif($is_accessory){\n\t\t\t\t$where .= ' AND is_accessories = 0 ';\n\t\t\t} else {\n\t\t\t\t$where .= ' AND is_accessories = 1 ';\n\t\t\t}\n\t\t\t\n\t\t\tglobal $db ;\n\t\t\t$sql = \" SELECT id, name, parent_id AS parentid \n\t\t\t\tFROM fs_products_categories \n\t\t\t\tWHERE 1 = 1\n\t\t\t\t\".$where;\n\t\t\t// $db->query($sql);\n\t\t\t$categories = $db->getObjectList($sql);\n\t\t\t\n\t\t\t$tree = FSFactory::getClass('tree','tree/');\n\t\t\t$rs = $tree -> indentRows($categories,1); \n\t\t\treturn $rs;\n\t\t}", "private function _getTree()\r\n {\r\n $items = $this->setArray($this->getItems());\r\n $tree = $this->_buildTree($items);\r\n return $tree;\r\n }", "function CreateTree($data,$p_id=0,$level=0){\n if(!$data){\n return;\n }\n static $newarray=[];\n foreach($data as $k=>$v){\n if($v->p_id==$p_id){\n $v->level=$level;\n $newarray[]=$v;\n //调用自身\n $this->CreateTree($data,$v->cate_id,$level+1);\n }\n }\n return $newarray;\n}", "public function getLeafPrototype();", "public function getObjectManager();", "public function getObjectManager();", "public function calc_tree()\n\t{\n\t\t$this->readTree(TRUE);\t\t\t// Make sure we have accurate data\n\t\tforeach ($this->class_parents as $cp)\n\t\t{\n\t\t\t$rights = array();\n\t\t\t$this->rebuild_tree($cp,$rights);\t\t// increasing rights going down the tree\n\t\t}\n\t}", "public function get_data_manager()\n {\n // return DataManager :: getInstance();\n }", "function get_menu_tree($parent_id) \n\t\t{\n\t\t\tinclude_once('connection.php');\n \t$obj=new connection();\n \t$obj->connect();\n\t\t\t$menu='';\n\t\t\t$obj->sql=\"SELECT * FROM register where referral_code='\".$parent_id.\"'\";\n\t\t\t$obj->select($obj->sql);\n\t\t\t//$no1=mysqli_num_rows($obj->res);\n\t\t\twhile($rows1=mysqli_fetch_array($obj->res))\n\t\t\t{\n\t\t\t\t//$rows1=mysqli_fetch_array($obj->res);\n\t\t\t\t$menu.=\"<li>\". $rows1['name'];\n\t\t\t\t$menu.=\"<ul>\".get_menu_tree($rows1['rid']).\"</ul>\";\n\t\t\t\t$menu.=\"</li>\";\n\t\t\t}\n\t\t\treturn $menu;\n\t\t}", "public function getTopicHierarchyDesignSession() {\n \treturn $this->manager->getTopicHierarchyDesignSession();\n\t}", "function get_children($args = '', $output = \\OBJECT)\n {\n }", "public function getRootLevelFolderObject();", "public function getMenu($params=null){\n\t\t\tif (!isset($this->menu) || (isset($params) && !empty($params))){\n\t\t\t\tif (isset($params) && !empty($params)){\n\t\t\t\t\t$this->params->bind($params);\n\t\t\t\t}\n\n\t\t\t\t// Initialize variables.\n\t\t\t\t$app\t\t= JFactory::getApplication();\n\t\t\t\t$sitemenu\t= $app->getMenu();\n\n\t\t\t\t// If no active menu, use default\n\t\t\t\t$active = ($sitemenu->getActive()) ? $sitemenu->getActive() : $sitemenu->getDefault();\n\t\t\t\t$path\t\t= $active->tree;\n\t\t\t\t$start\t\t= (int) $this->params->get('startlevel', 0);\n\t\t\t\t$end\t\t= (int) $this->params->get('endlevel', -1);\n\t\t\t\t$deep\t\t= $end - $start + 1;\n\n\t\t\t\t$items \t\t= $sitemenu->getItems('menutype', $this->params->get('menutype', 'mainmenu'));\n\n\t\t\t\t$root = new YtMenu(null, $this->params);\n\t\t\t\t$k = array();\n\n\t\t\t\tif (isset($items) && count($items)>0){\n\n\t\t\t\t\t$itemids = array();\n\t\t\t\t\t$itemobj = array();\n\t\t\t\t\t$smallest_level = 99999;\n\n\t\t\t\t\tforeach($items as $i => $item){\n\t\t\t\t\t\t$iid = $item->id;\n\n\t\t\t\t\t\t$itemids[$iid] = 1;\n\t\t\t\t\t\t$itemobj[$iid] =& $items[$i];\n\t\t\t\t\t\tif (!isset($item->sublevel)){\n\t\t\t\t\t\t\tif ($smallest_level > $item->level){\n\t\t\t\t\t\t\t\t$smallest_level = $item->level;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else if ($smallest_level > $item->sublevel){\n\t\t\t\t\t\t\t$smallest_level = $item->sublevel;\n\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\n\t\t\t\t\tforeach($items as $i => $item){\n\t\t\t\t\t\t// level filter\n\t\t\t\t\t\t$s_parent_item = false;\n\t\t\t\t\t\t$spid = $item->tree[0];\n\t\t\t\t\t\t$iid = $item->id;\n\t\t\t\t\t\t$ideep = count($item->tree);\n\n\t\t\t\t\t\tif (!isset($item->sublevel)){\n\t\t\t\t\t\t\tif ($start>$item->level) continue;\n\t\t\t\t\t\t} else if ($start>$item->sublevel) continue;\n\t\t\t\t\t\t// if $deep<=0 ignore endlevel check.\n\t\t\t\t\t\tif (!isset($item->sublevel)){\n\t\t\t\t\t\t\tif ($deep>0 && $end <$item->level) continue;\n\t\t\t\t\t\t} else if ($deep>0 && $end <$item->sublevel) continue;\n\t\t\t\t\t\t\n\t\t\t\t\t\t// if is not child of start level items.\n\t\t\t\t\t\tif (!isset($item->sublevel)){\n\t\t\t\t\t\t\tif ($deep>1 && $itemobj[$spid]->level>$smallest_level) continue;\n\t\t\t\t\t\t} else if ($deep>1 && $itemobj[$spid]->sublevel>$smallest_level) continue;\n\t\t\t\t\t\t\n\t\t\t\t\t\t$k[$iid] = new YtMenu($item, $this->params);\n\t\t\t\t\t};\n\n\t\t\t\t\t// set active items\n\t\t\t\t\tforeach ($path as $id){\n\t\t\t\t\t\tif (isset($k[$id])){\n\t\t\t\t\t\t\t$k[$id]->set('active', 1);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tforeach($k as $key => $item){\n\t\t\t\t\t\t// if type is alias (value is 'menulink' in Joomla 1.5)\n\t\t\t\t\t\tif ($item->type=='menulink'){\n\t\t\t\t\t\t\t$refid = $item->query['Itemid'];\n\t\t\t\t\t\t\t$aliasitem = $sitemenu->getItem($refid);\n\t\t\t\t\t\t\tif ($aliasitem){\n\t\t\t\t\t\t\t\t$item->set('_aliasitem', new YtMenu($aliasitem, $this->params));\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t$item->set('_aliasitem', false);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//$item->debug();die();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// id of item's parent\n\t\t\t\t\t\t$ipid = $item->get('parent');\n\t\t\t\t\t\t$ideep = count($item->tree);\n\n\t\t\t\t\t\tif (!isset($k[$ipid])) {\n\t\t\t\t\t\t\t$root->addChild($item);\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//echo \"<br>parent is $ipid\";\n\t\t\t\t\t\t$parentNode =& $k[$ipid];\n\t\t\t\t\t\t$parentNode->addChild($item);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\n\t\t\t\tunset($itemids);\n\t\t\t\tunset($itemobj);\n\t\t\t\t$this->menu = $root;\n\t\t\t}\n\t\t\treturn $this->menu;\n\t\t}", "public function getInstance(): object;", "public function getTree($idEntry = 0);", "static public function getInstance() {\n\t\t$objectManager = GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Object\\ObjectManager');\n\t\treturn $objectManager->get('TYPO3\\CMS\\Vidi\\PersistenceObjectFactory');\n\t}", "abstract protected function getCurrentChildren(): array ;", "function getMultilevel() {\n\t\t}", "public function getTrees() {}", "function get_hierarchy_string($link_setting,$optparent=null,$branchparent=0,$published=null,$maxlevel=9999)\n {\n $data=$this->_prepareData(null,$optparent,$published) ;\n $children=$this->_make_relation($data) ;\n // echo \"<br>---list Child----<br>\"; print_r($children);\n $list = $this->_string_recurse($branchparent, $children, '', $maxlevel,0,'',$link_setting);\n //echo \"<br>---list ----<br>\"; print_r($list);\n return $list;\n }", "function getCategoryHierarchyAsArray()\n{\n return array\n (\n array\n (\n 'idString' => '1' ,\n 'idParentString' => null ,\n 'name' => 'Approved',\n 'children' => array\n (\n array\n (\n 'idString' => '1-1' ,\n 'idParentString' => '1' ,\n 'name' => 'Cons',\n 'children' => array\n (\n array('idString' => '1-1-1', 'idParentString' => '1-1', 'name' => 'ConsultingA', 'children' => array()),\n array('idString' => '1-1-2', 'idParentString' => '1-1', 'name' => 'ConsultingB', 'children' => array()),\n array('idString' => '1-1-3', 'idParentString' => '1-1', 'name' => 'Management ', 'children' => array()),\n array\n (\n 'idString' => '1-1-4' ,\n 'idParentString' => '1-1' ,\n 'name' => 'More Categories',\n 'children' => array\n (\n array('idString' => '1-1-4-1', 'idParentString' => '1-1-4', 'name' => 'Cat1', 'children' => array()),\n array('idString' => '1-1-4-2', 'idParentString' => '1-1-4', 'name' => 'Cat2', 'children' => array()),\n array\n (\n 'idString' => '1-1-4-3' ,\n 'idParentString' => '1-1-4' ,\n 'name' => 'Still more categories',\n 'children' => array\n (\n array\n (\n 'idString' => '1-1-4-3-1',\n 'idParentString' => '1-1-4-3' ,\n 'name' => 'CatA' ,\n 'children' => array()\n ),\n array\n (\n 'idString' => '1-1-4-3-2',\n 'idParentString' => '1-1-4-3' ,\n 'name' => 'CatB' ,\n 'children' => array()\n )\n )\n ),\n array\n (\n 'idString' => '1-1-4-4' ,\n 'idParentString' => '1-1-4' ,\n 'name' => 'Category 3',\n 'children' => array()\n )\n )\n )\n )\n ),\n array('idString' => '1-2', 'idParentString' => '1', 'name' => 'ConsultingA', 'children' => array()),\n array('idString' => '1-3', 'idParentString' => '1', 'name' => 'ConsultingB', 'children' => array())\n )\n ),\n array\n (\n 'idString' => '2' ,\n 'idParentString' => null ,\n 'name' => 'Not Approved',\n 'children' => array\n (\n array\n (\n 'idString' => '2-1' ,\n 'idParentString' => '2' ,\n 'name' => 'Consulting - 1',\n 'children' => array()\n ),\n array\n (\n 'idString' => '2-2' ,\n 'idParentString' => '2' ,\n 'name' => 'Consulting - 2',\n 'children' => array()\n ),\n array\n (\n 'idString' => '2-3' ,\n 'idParentString' => '2' ,\n 'name' => 'Consulting - 3',\n 'children' => array()\n )\n )\n )\n );\n}", "public function get_children();", "function getChilds($id = NULL);", "public static function getInstance()\n\t{\n\t\tstatic $xInstance = null;\n\t\tif(!$xInstance)\n\t\t{\n\t\t\t$xInstance = new Manager();\n\t\t}\n\t\treturn $xInstance;\n\t}", "public function getManagers()\n {\n // TODO: Implement getManagers() method.\n }", "public static function get_instance ();", "public static function get_instance()\n {\n }", "public static function get_instance()\n {\n }", "public static function get_instance()\n {\n }", "public static function get_instance()\n {\n }", "public static function get_instance()\n {\n }", "public static function get_instance()\n {\n }", "public static function getInstance() {\n\t\treturn parent::getInstance(__CLASS__); \n\t}", "function getFourWheelerVechicle()\n {\n //creating new fourWheelerVechicle object\n $FourWheelVechicle =new fourWheelerVechicle(); \n // calling getMenus function of fourWheelerVechicle class on fourWheelerVechicle object\n $FourWheelVechicle = $FourWheelVechicle->getTwoWheelerVehicle(); \n echo \"Here are the four wheeler vechicles which you are looking for \\n \";\n }", "protected function retrieveParent()\n {\n }", "function _find_list() {\n\t\treturn $this->Menu->generatetreelist(null, null, null, '__');\n\t}", "function objFldHeiarchRoot($dbh, $idfld, $parentfld, $tbl, $curid)\r\n{\r\n\t$ret = $curid;\r\n\r\n\tif ($curid)\r\n\t{\r\n\t\t$result = $dbh->Query(\"select $parentfld from $tbl where $idfld='$curid'\");\r\n\t\tif ($dbh->GetNumberRows($result))\r\n\t\t{\r\n\t\t\t$val = $dbh->GetValue($result, 0, $parentfld);\r\n\t\t\tif ($val)\r\n\t\t\t{\r\n\t\t\t\t$ret = objFldHeiarchRoot($dbh, $idfld, $parentfld, $tbl, $val);\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\treturn $ret;\r\n}", "protected function loadParentId(){return 0;}", "function get_menu_tree($id, $environment = NULL){\n $menu_links = $this->get($id, $environment);\n\n if ($menu_links == $id) {\n //This menu is not overridden, return the default menu\n return menu_tree_page_data($id);\n }\n elseif (is_array($menu_links)) {\n //Run the menu links through a function to build them into a menu tree\n return $this->tree_page_data($id, $menu_links);\n }\n\n return array();\n }", "private function initDepth()\n {\n if ($this->depth !== null) { // Is de diepte reeds ingesteld?\n return;\n }\n if (isset(self::$current) == false) { // Gaat het om de eerste VirtualFolder (Website)\n if (($this instanceof Website) == false) {\n notice('VirtualFolder outside a Website object?');\n }\n self::$current = &$this; // De globale pointer laten verwijzen naar deze 'virtuele map'\n if (defined('Sledgehammer\\WEBPATH')) {\n $this->depth = preg_match_all('/[^\\/]+\\//', \\Sledgehammer\\WEBPATH, $match);\n } else {\n $this->depth = 0;\n }\n\n return;\n }\n $this->parent = &self::$current;\n self::$current = &$this; // De globale pointer laten verwijzen naar deze 'virtuele map'\n $this->depth = $this->parent->depth + $this->parent->depthIncrement;\n }", "public function tManager() {\n\t\ttry{\n\t\t\tswitch($_GET['action']){\n\t\t\t\tcase \"edit_user\":\n\t\t\t\t\treturn $this->tGroupUserEdit();\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\tcase \"list\":\n\t\t\t\t\treturn $this->tGroupList();\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}catch (Exception $e){\n\t\t\tswitch($e->getCode()){\n\t\t\t\tcase self::BACK_TO_LIST:\n\t\t\t\t\t$sUrl = $_SERVER['PHP_SELF'].'?func='.$_GET['func'].'&action=list';\n\t\t\t\t\t/*\n\t\t\t\t\tif(!empty($_GET['group_no']))\n\t\t\t\t\t\t$sUrl .= '&goid='.$_GET['group_no'];\n\t\t\t\t\t\t*/\n\t\t\t\t\tCJavaScript::vAlertRedirect($e->getMessage(),$sUrl);\n\t\t\t\t\tbreak;\n\t\t\t\tcase self::BACK_TO_VIEW:\n\t\t\t\t\tCJavaScript::vAlertRedirect($e->getMessage(),$_SERVER['PHP_SELF'].'?func='.$_GET['func'].'&action=view&group_no='.$_GET['group_no']);\n\t\t\t\t\tbreak;\n\t\t\t\tcase self::BACK_TO_EDIT:\n\t\t\t\t\tCJavaScript::vAlertRedirect($e->getMessage(),$_SERVER['PHP_SELF'].'?func='.$_GET['func'].'&action=edit&group_no='.$_GET['group_no']);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tCJavaScript::vAlertRedirect($e->getMessage(),$_SERVER['PHP_SELF']);\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\texit;\n\t}" ]
[ "0.5987762", "0.5858239", "0.5848185", "0.5822279", "0.576154", "0.57414484", "0.5734753", "0.56941944", "0.56870604", "0.56745815", "0.5634644", "0.55975085", "0.55143577", "0.5502064", "0.55016196", "0.54998577", "0.5491262", "0.5491093", "0.54770553", "0.5454133", "0.5450554", "0.5421423", "0.54007137", "0.5377144", "0.5376031", "0.53681815", "0.5351466", "0.5346793", "0.5332114", "0.53312683", "0.5325142", "0.53249544", "0.53187054", "0.5317392", "0.53157264", "0.5295565", "0.5290662", "0.52762544", "0.52619183", "0.52436084", "0.52347606", "0.52229154", "0.5221092", "0.5217593", "0.5187559", "0.51538974", "0.51483864", "0.51398695", "0.51223755", "0.51212156", "0.5107094", "0.5101644", "0.5100936", "0.5100658", "0.50984937", "0.50981593", "0.5096639", "0.508043", "0.5078757", "0.5076561", "0.5074622", "0.5072215", "0.50705355", "0.5064674", "0.50591385", "0.50591385", "0.5053606", "0.5048537", "0.50446564", "0.50444394", "0.5035082", "0.50338465", "0.5031757", "0.5030184", "0.50297296", "0.502592", "0.502564", "0.5024416", "0.5019471", "0.50040084", "0.5001497", "0.50006765", "0.49949217", "0.49889216", "0.49861827", "0.4985681", "0.49840176", "0.49836776", "0.4982764", "0.4982764", "0.4982764", "0.4982764", "0.49743277", "0.49726847", "0.49689153", "0.49683416", "0.49665534", "0.49639633", "0.49491295", "0.49476656", "0.49369484" ]
0.0
-1
get instance of Business_BlockManagement_Views
public static function getInstance() { if(self::$_instance == null) { self::$_instance = new Business_BlockManagement_Views(); } return self::$_instance; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function _View() {\n\t \n // $this->_View;\n\t\t\t//$View = ClassRegistry::getObject('');\n\t\treturn $this->_View;\n\t}", "public function getView()\n\t{\n\t\tif(NULL === $this->_view) {\n\t\t\t$this->_view = agoractu_view::getInstance();\n\t\t}\n\t\treturn $this->_view;\n\t}", "public function getView() {}", "public function getView() {}", "public function getView(){ }", "public function getView()\n {\n }", "public function getView()\r\n {\r\n return parent::getView();\r\n }", "public function getView();", "function getView() {\n\t\treturn $this->View;\n\t}", "public function getViewEntity()\n {\n if (!$this->__viewEntity) {\n $this->__viewEntity = new ViewEntity();\n $this->__viewEntity->setScriptPath($this->__defaultScriptPath);\n }\n\n return $this->__viewEntity;\n }", "static public function getView() {\n\t\treturn self::$defaultInstance;\n\t}", "public function GetViewClass ();", "function getView() {\r\n return $this->view;\r\n }", "protected function getNewViewInstance() {\n return $this->objectManager->get('TYPO3\\\\CMS\\\\Fluid\\\\View\\\\StandaloneView');\n }", "public function getView()\n {\n if (!$this->view) {\n $viewClass = $this->viewClass;\n $this->view = new $viewClass();\n\n $this->initializeViewAdditions();\n }\n\n return $this->view;\n }", "public function getView() {\n\t\treturn $this -> st_view;\n\t}", "private function view()\n {\n if (isset(static::$view)) {\n return static::$view;\n }\n\n $classNamespace = $this->getModuleName();\n $className = $this->getComponentName();\n\n return \"{$classNamespace}::blocks.{$className}\";\n }", "public function getView()\n\t{\n\t\treturn $this->_view;\n\t}", "protected function get_views()\n {\n }", "protected function get_views()\n {\n }", "protected function get_views()\n {\n }", "protected function get_views()\n {\n }", "public function getView()\n {\n return $this->_view;\n }", "public function getView()\n {\n return $this->_view;\n }", "public function getView()\n {\n return $this->_view;\n }", "public function getView() {\r\n return $this->_view;\r\n }", "public function getView()\n {\n $view = App::$locator->view;\n if ($this->layout) {\n $view->setLayout($this->layout);\n }\n \n return $view;\n }", "public function getView(){\n\t\treturn $this->view;\n\t}", "public function getViews();", "public function createView();", "protected static function getView()\n {\n return null;\n }", "protected function getView()\n {\n return $this->view;\n }", "private function getView()\n {\n if ($this->view) {\n return $this->view;\n }\n\n $this->view = $this->services->get(View::class);\n return $this->view;\n }", "protected function getViewClass()\n {\n return View::class;\n }", "public function getView()\r\n {\r\n return $this->view;\r\n }", "public function getView()\n\t{\n\t\treturn $this->view;\n\t}", "abstract protected function getView();", "public function getView()\n {\n return $this->view;\n }", "public function getView()\n {\n return $this->view;\n }", "public function getView()\n {\n return $this->view;\n }", "public function getView()\n {\n return $this->view;\n }", "public function getView()\n {\n return $this->view;\n }", "public function getView()\n {\n return $this->view;\n }", "public function getView()\n {\n return $this->view;\n }", "public function getView()\n {\n return $this->view;\n }", "public function getView() {\n\t\treturn $this->view;\n\t}", "public function getView() {\n\t\treturn $this->view;\n\t}", "public function getView() {\n return $this->setView();\n }", "public function getView() {\n \t\n \t// Return the current view\n \treturn $this->sView;\n }", "public function getView()\n {\n if ($this->_view === null) {\n $this->_view = Yii::$app->getView();\n }\n\n return $this->_view;\n }", "public function getView()\n {\n return $this->cntView;\n }", "function __construct()\r\n {\r\n $this->view = new View();\r\n }", "Public Static Function Instance($template = null){\r\n return new View($template);\r\n }", "function __construct()\n {\n $this->view = new View(); \n }", "protected function initializeStandaloneViewInstance() {}", "public function getView()\n {\n return $this->getService('view');\n }", "public function views()\n {\n }", "public function views()\n {\n }", "public function views()\n {\n }", "protected function _view()\r\n\t\t{\r\n\t\t\t((!is_object($this->_view)) ? $this->_view = init_class(VIEW_NAME) : '');\r\n\t\t}", "function get_views()\n\t{\n\t\treturn $this->views;\n\t\t//return get_views($this->id);\n\t}", "public function getView(PageBlock $block)\n {\n $legacyKernel = $this->getLegacyKernel();\n $legacyBlockClosure = function (array $params) use ($block, $legacyKernel) {\n return $legacyKernel->runCallback(\n function () use ($block, $params) {\n $tpl = eZTemplate::factory();\n /**\n * @var \\eZObjectForwarder\n */\n $funcObject = $tpl->fetchFunctionObject('block_view_gui');\n if (!$funcObject) {\n return '';\n }\n\n $children = array();\n $funcObject->process(\n $tpl, $children, 'block_view_gui', false,\n array(\n 'block' => array(\n array(\n eZTemplate::TYPE_ARRAY,\n // eZTemplate::TYPE_OBJECT does not exist because\n // it's not possible to create \"inline\" objects in\n // legacy template engine (ie objects are always\n // stored in a tpl variable).\n // TYPE_ARRAY is used here to allow to directly\n // retrieve the object without creating a variable.\n // (TYPE_STRING, TYPE_BOOLEAN, ... have the same\n // behaviour, see eZTemplate::elementValue())\n new BlockAdapter($block),\n ),\n ),\n ),\n array(), '', ''\n );\n if (is_array($children) && isset($children[0])) {\n return ezpEvent::getInstance()->filter('response/output', $children[0]);\n }\n\n return '';\n },\n false\n );\n };\n\n return new ContentView($legacyBlockClosure);\n }", "function __construct(){\n $this->view=new View(); \n }", "protected function getView(){\n if(!$this->_view){\n $this->_view=new JView();\n }\n return $this->_view;\n }", "function __construct()\n {\n $this->view = new View();\n }", "public function render()\n {\n return view('netflex-pages::blocks');\n }", "public function getViewTemplate();", "public function getView()\n\t{\n\t\treturn View::make($this->viewName, [\n\t\t\t'items' => $this->items,\n\t\t]);\n\t}", "protected function createView()\n {\n LayoutModule::setLayoutClassName( PortalLayout::class );\n return new PortalView();\n }", "public function getView()\n\t{\n\t\treturn $this->client->getView();\n\t}", "protected function getViewTemplate(): string\n {\n return 'baseAdmin::site.blockLayouts._pageArea';\n }", "public function createView(){\n\t\t$vue = new View(\"Create\");\n\t\t$vue->generer();\n\t}", "protected function getView() {\n\t\t$extensionPath = ExtensionManagementUtility::extPath('lp_access');\n\t\t$extensionRelativePath = ExtensionManagementUtility::extRelPath('lp_access');\n\n\t\t$this->pageRenderer->addJsFile($extensionRelativePath . 'Resources/Public/JavaScript/LpAccess.js');\n\t\t$this->pageRenderer->addCssFile($extensionRelativePath . 'Resources/Public/Stylesheets/LpAccess.css');\n\n\t\t/** @var \\TYPO3\\CMS\\Fluid\\View\\StandaloneView $view */\n\t\t$view = $this->objectManager->get('TYPO3\\\\CMS\\\\Fluid\\\\View\\\\StandaloneView');\n\t\t$view->setTemplatePathAndFilename($extensionPath . 'Resources/Private/Templates/HoursSelectionUserFunction/Process.html');\n\t\t$view->setLayoutRootPath($extensionPath . 'Resources/Private/Layouts/');\n\t\t$view->setPartialRootPath($extensionPath . 'Resources/Private/Partials/');\n\n\t\treturn $view;\n\t}", "function view($name_view){\n return new View($name_view);\n}", "protected function getViewData() {\n\n }", "function getViews() {\n return mysql_query(sprintf('SELECT TABLE_NAME, VIEW_DEFINITION FROM information_schema.views WHERE TABLE_SCHEMA=\\'%s\\'', $this->config[\"database\"]));\n }", "protected function setView()\n {\n $view = 'Src\\Modules\\\\' . $this->module_name . '\\Views\\\\' . $this->class . 'View';\n $this->view = new $view;\n \n $this->view->setData( $this->model->getData() );\n \n $this->view->run();\n }", "public static function register_simple_view_block() {\n\t\tif ( ! is_callable( 'register_block_type' ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\tif ( is_admin() ) {\n\t\t\t// register back-end scripts\n\t\t\tadd_action( 'enqueue_block_editor_assets', 'FrmProSimpleBlocksController::block_editor_assets' );\n\t\t}\n\n\t\tregister_block_type(\n\t\t\t'formidable/simple-view',\n\t\t\tarray(\n\t\t\t\t'attributes' => array(\n\t\t\t\t\t'viewId' => array(\n\t\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t),\n\t\t\t\t\t'filter' => array(\n\t\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t\t'default' => 'limited',\n\t\t\t\t\t),\n\t\t\t\t\t'useDefaultLimit' => array(\n\t\t\t\t\t\t'type' => 'boolean',\n\t\t\t\t\t\t'default' => false,\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\t'editor_style' => 'formidable',\n\t\t\t\t'editor_script' => 'formidable-view-selector',\n\t\t\t\t'render_callback' => 'FrmProSimpleBlocksController::simple_view_render',\n\t\t\t)\n\t\t);\n\t}", "public static function getInstance($name = 'Settings:BusinessHours')\n\t{\n\t\t$modelClassName = Vtiger_Loader::getComponentClassName('Model', 'ListView', $name);\n\t\t$instance = new $modelClassName();\n\t\treturn $instance->setModule($name);\n\t}", "public function view()\n {\n return $this->view;\n }", "public function view()\n {\n return $this->view;\n }", "public function getViewFactory()\n {\n return $this->view;\n }", "public function viewBlocks()\n {\n $title = 'Welcome to Laravel!';\n return view('blocks.view-blocks')->with('title',$title);\n }", "public function getView()\r\n {\r\n return $this->_controller->getView();\r\n }", "public function view() {\r\n\r\n\t}", "public function getBlock(){\n\t\n\t\tif( empty($this->_block) ){\n\t\n\t\t\t$query\t= $this->_db->getQuery(true);\n\t\t\t\n\t\t\t$query->select( 'b.*, t.*, u.*, m.email AS modified_email, m.username AS modified_username, m.name AS modified_name' );\n\t\t\t\n\t\t\t$query->from( '#__zbrochure_content_blocks AS b' );\n\t\t\t\n\t\t\t$query->join( 'LEFT', '#__users AS u ON u.id = b.content_block_created_by' );\n\t\t\t$query->join( 'LEFT', '#__users AS m ON m.id = b.content_block_modified_by' );\n\t\t\t$query->join( 'LEFT', '#__zbrochure_content_types AS t ON t.content_type_id = b.content_block_type' );\n\t\t\t\n\t\t\t$query->where( 'b.content_block_id = '.$this->_id );\n\t\t\t\n\t\t\t$this->_db->setQuery($query);\n\t\t\t$this->_block = $this->_db->loadObject();\n\t\t\t\n\t\t\t$this->_block->render\t= $this->_getContent();\n\t\t\t\n\t\t}\n\t\t\n\t\treturn $this->_block;\n\t\n\t}", "public function init()\n {\n return $this->getView();\n }", "public function getView()\n {\n if (method_exists($this->module, 'getView')) {\n return $this->module->getView();\n }\n\n return parent::getView();\n }", "public function getViews()\n {\n global $adminer;\n\n $main_actions = [\n 'add-view' => \\adminer\\lang('Create view'),\n ];\n\n $headers = [\n \\adminer\\lang('View'),\n \\adminer\\lang('Engine'),\n // \\adminer\\lang('Data Length'),\n // \\adminer\\lang('Index Length'),\n // \\adminer\\lang('Data Free'),\n // \\adminer\\lang('Auto Increment'),\n // \\adminer\\lang('Rows'),\n \\adminer\\lang('Comment'),\n ];\n\n // From db.inc.php\n // $table_status = \\adminer\\table_status('', true); // Tables details\n $table_status = \\adminer\\table_status(); // Tables details\n\n $details = [];\n foreach($table_status as $table => $status)\n {\n if(\\adminer\\is_view($status))\n {\n $details[] = [\n 'name' => $adminer->tableName($status),\n 'engine' => \\array_key_exists('Engine', $status) ? $status['Engine'] : '',\n 'comment' => \\array_key_exists('Comment', $status) ? $status['Comment'] : '',\n ];\n }\n }\n\n return \\compact('main_actions', 'headers', 'details');\n }", "public function getView()\n {\n if (!$this->view) {\n $this->view = Kerisy::$app->get('view');\n $this->view->setDirectory($this->getViewPath());\n }\n return $this->view;\n }", "function view_special_blocks($type) {\n if (strpos($type, '-setsblocks') === 0) {\n // avoid interfering with the admin forms.\n if (arg(0) == 'admin' && arg(1) == 'build' && arg(2) == 'views') {\n return;\n }\n\n list($type, $variant) = explode('_', $type, 2);\n\n $variant = base64_decode($variant);\n $args = explode('/', $variant);\n\n $this->view->set_arguments($args);\n\n $info = $this->view->execute_display();\n if ($info) {\n $info['view'] = $this->view;\n }\n return $info;\n }\n else {\n return parent::view_special_blocks($type);\n }\n }", "public function views()\n {\n// $database = $cg->getConnection()->getDatabaseName();\n// return $this->hasMany('App\\Models\\Craiglorious\\View', $database.'.views', 'role_id','view_id');\n //can not do this as the system // or should i?\n //return $this->hasMany('App\\Models\\Craiglorious\\View');\n }", "public function getViewArea() {}", "public function view() {\n }", "public function singleView();", "function getView($view, $params = array()) {\n $view = \"app\\\\views\\\\\" . $view . \"View\";\n return new $view($params);\n }", "protected function loadView()\n {\n }", "protected function loadView()\n {\n }", "public function getViewCache(){\n\t\tif(isset(self::$_cacheView[get_class($this)])){\n\t\t\treturn self::$_cacheView[get_class($this)];\n\t\t} else {\n\t\t\treturn 0;\n\t\t}\n\t}", "function __construct() {\n// \t\t$this -> view = new View();\n \t}" ]
[ "0.6717801", "0.6321794", "0.6285422", "0.6285422", "0.62710625", "0.62295914", "0.61626476", "0.61606693", "0.6154317", "0.61445415", "0.613397", "0.60649645", "0.6061178", "0.6048873", "0.60129565", "0.59932095", "0.5967328", "0.5965591", "0.5962832", "0.5962832", "0.5962832", "0.5962832", "0.59598774", "0.59598774", "0.59598774", "0.59477067", "0.5929517", "0.58884645", "0.5878633", "0.5865079", "0.5862581", "0.5862199", "0.58583856", "0.5852904", "0.5838188", "0.58322346", "0.5829274", "0.5779949", "0.5779949", "0.5779949", "0.5779949", "0.5779949", "0.5779949", "0.5779949", "0.5779949", "0.5777164", "0.5777164", "0.57404286", "0.5729355", "0.5701583", "0.56987584", "0.56947255", "0.56945556", "0.5688665", "0.5685615", "0.5682478", "0.56811064", "0.5680739", "0.5680739", "0.5674881", "0.567175", "0.5652813", "0.5651314", "0.56484663", "0.5648452", "0.56447446", "0.56375813", "0.56350493", "0.5620504", "0.56092197", "0.56070524", "0.56029403", "0.5578388", "0.5568885", "0.55621314", "0.5555264", "0.554503", "0.55384713", "0.55367047", "0.5528105", "0.5528105", "0.5526806", "0.55254775", "0.5519448", "0.55148226", "0.5510089", "0.5497883", "0.5494005", "0.5489231", "0.5487292", "0.5480672", "0.547223", "0.5467827", "0.54654", "0.5452831", "0.5446494", "0.54445565", "0.54445565", "0.54320544", "0.54317683" ]
0.8155426
0